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

 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 HUV,iUU,S$W,s0u,j0i,wZ0,SZ,JV$,Y$0,jZ,JV,zpV,MZw,G6,fU,q$E,Tuw,mDW,vZ,Nu0,bUZ,o0,uWu,VZV,XZi,dD6,pZ$,k6$,nE$,DDZ,KEW,LEu,j7,RpZ,J_,Iwi,Fd,awE,Z1,bY,HP6,iPE,Qb,dU,Sn7,J_E,F1$,kM,Ynp,zWw,rU,M7U,qnV,TUZ,B7,ZP7,D1,W1V,bPE,f1E,c3,vME,l1E,Zq,eW$,A9,udZ,GdZ,$ii,kdZ,hW6,bp,BUu,r_7,Dii,K1Z,t7E,gMi,Ui$,a1Z,xip,Cpp,sOp,w3D,c9p,zi0,Y_u,$t,Mop,y9U,kt,brp,fq$,eiU,vt0,uRu,h9,L16,nr,B3,Dq,lqU,Lr,Ori,VoE,otU,aO,X3E,QOi,d9U,Ppw,p3p,$97,kKi,hiu,ntE,RO,Biu,KjD,LjZ,U9E,jh,Iq7,H90,Ac,Stp,wVZ,x97,AcZ,FTU,Z9E,mr7,zBU,
ycE,b9E,ED7,uTV,G7Z,VhZ,oD6,Q2V,$rp,k7u,hBE,rcE,KTD,I4E,Vv,xrU,iMi,Cfw,$D,p9,hc,gP,R2,xD,ZM7,z9W,MnW,mOU,yYw,Ns6,zv,bMu,qO,Tv,m2,We,e9U,uN6,GvZ,fAU,v$W,VnD,o$Z,OM7,Xe7,dO7,EM,bf,PfE,$OZ,peZ,h9E,kvp,n$p,rYu,BsU,OM,XN,Qx,ds,$$,K2Z,pM,L2p,aA$,hY,xOV,HXE,iXE,rs,CRV,Slp,spZ,Be,AbE,KM,ZXW,cbZ,LM,z_U,Yl$,M2E,qlW,TxU,mHw,RT,WD0,yb$,IT,Nxi,bXU,aT,x$,Hj,iR,ElV,uAU,e_$,CX,f9V,vlu,l9D,sl,wx,Ab,Jb,FA,Z9,V2i,ol$,Xji,QpZ,dH7,PR6,$HU,pjZ,kVW,h_i,nlw,rbD,BxZ,DHU,zV,KDw,t2W,mD,LDZ,El,e2,glW,I9E,a9u,xHp,i6W,Cd7,Sp7,
Akp,Jk0,FmE,Z67,ck7,Yp$,zzV,mx7,fX,WmE,yku,NSp,b6Z,EJp,ez$,GZi,plD,kZ7,hz7,BSw,DxE,Pj,Kmw,gJw,IaE,aai,xx7,HsW,isZ,CWV,SFw,sEZ,wNE,AaE,Ux7,JaV,FBZ,Zsu,caU,YFZ,zUW,ML6,qFD,T6w,N6$,WB7,eUZ,bsU,E17,fpV,v1E,lpE,ubV,o17,GR0,XNV,xl,QE$,Hl,C6,dju,$jZ,pNU,n1Z,Ip0,B6W,raZ,KBp,LBZ,DjE,SgE,HpV,s6E,j6i,whZ,AED,JE6,ZpU,Fli,cEu,Yg7,zti,MIi,ThV,WlU,yEE,Nhw,ET7,bpp,dnE,wS,PEU,phU,kAu,htV,nT$,rEE,Dnp,KlV,tIU,zZ,Mx,LlE,xn7,mm,Wl,SE$,jaw,qEi,em,WCw,yAw,e3u,bv7,EB0,ld,u0U,G9$,vBE,lQW,V$7,oBu,Ov7,XAp,Qai,P5i,$EU,k9V,pAU,
rA6,kJ,rS,DEi,KCw,t$6,LC$,gBu,UE$,IQw,xE$,aQE,iW,SL,ftZ,Aa,X9Z,QMZ,Ja,PCE,dzV,KQE,tkw,LQE,Uzi,xzu,iCu,CbU,SsZ,s8u,wnE,Jt7,Fvi,Y1,ctZ,MrD,qsZ,Tvi,mKp,ytW,zbu,ZC$,Wvu,Mj,EI$,fZ6,u2Z,TR,lZV,oIi,OCp,Xn0,Q8i,Nj,dK6,$KE,PbZ,pni,hb7,eL,tr0,aZi,imu,HmE,sqZ,lW,APE,OF,QM,Xb,cP6,w5E,YW0,$1,Td7,ha,ns,yP7,Ef$,uyD,Gqp,fVp,r6,vfU,BN,lV$,ofE,OmE,X5W,Qqp,Py0,ta,$_p,p5$,RE,x1,nfi,rPW,BdU,D_$,Lrw,gfZ,RrV,IV$,sew,jei,iDE,AJV,JJw,FPZ,ZY,zA,Mn,zkZ,MjZ,TA,qku,TM0,mQE,WP0,NMZ,bD0,E_Z,ekU,yJE,uji,yq,fgZ,ODi,bE,o_W,XMV,Gc0,
QeD,eI,Psp,$Qi,pMi,kcW,n_7,hkE,rJ6,KP$,BMZ,LPZ,xQ$,iLi,SX$,wH0,jkW,sk$,AMi,F7D,cMw,ZLu,zN6,Qq,qXE,TVW,m3$,W7Z,bLE,eNU,ERE,uwp,Gop,pp,fRE,vR$,VR7,OLU,d37,$3i,P9Z,j$,pHu,oRU,K7D,L7V,gR6,U3U,cA,RN6,aRE,i8Z,su0,Sap,Jf6,FFD,Z8w,cf0,zDZ,WFE,Mp0,TBi,md$,yfU,NBW,E6V,b86,u_U,eD6,fv,Gn$,v6E,lyE,XFU,d4,PA,Qu7,ddE,$B,knu,nv,r4,BA,BBU,DQ,tp6,Lv,LFD,g6Z,Ud0,RD7,Ra,Iy$,ayZ,xdW,if0,SxD,wUp,JGi,wT,F6W,Zf$,cGp,Yxu,zui,Mtw,qxW,Tmu,F6,yG0,NmU,bfi,EF6,euE,uG6,G5W,foV,vFp,lo7,VtD,oFZ,OfU,W9,D5Z,K6W,yE,Nz,bC,tt$,L6p,gFw,
U5Z,RuU,Io6,aoZ,Sdu,sZi,jZ7,wYZ,Ar6,Gf,v9,lC,VE,QE,dT,P9,FY0,pV,crW,ku,Yd$,zK6,hO,Ms0,qd0,TEE,GzW,vzi,XYW,$T6,PAp,f27,pYZ,nz6,i70,LYE,wIw,UT$,jmW,AxZ,tO,FnZ,gT,cxp,Y40,MUD,q4u,TCu,Wn$,IM,NCU,b7D,EjZ,exi,uHp,Gp6,f5i,yxW,VUE,oj$,O7w,xu,pIE,kpD,$Ww,njw,rxE,DW6,KnU,BCw,a5u,Hu6,CmD,sW6,F2,cgW,F36,ZuU,TWE,W3Z,yg$,NWW,bu7,EbE,ee0,ym,XbW,ds7,obi,VJD,QWp,GGi,$s0,gbZ,he0,nbi,rgZ,s$E,wt6,S5E,Y5Z,Cr6,uBV,cBD,kGW,L3i,j$i,PmZ,vbV,fl7,llu,Ouu,in$,$I,fz0,lz6,V4D,oii,OnU,niU,L_D,giU,LC,RXu,xp$,SjZ,CKZ,jJZ,wQu,Jhu,
ZNZ,FRD,chV,wd,YjZ,zME,qjW,MAp,AP,bNZ,N$$,yhV,G_u,EQp,fBZ,ue0,vQ0,lBu,XQi,oQE,ONZ,dNW,pQ7,k_V,rhp,B$i,DNw,tA0,Yf,gQ$,IBD,UNW,aBE,CzZ,S6Z,wfE,JNi,mr,W5,Y6E,z8E,yF,N_,M96,by,EW,q6i,ea,TRU,uy,mI6,WxW,fm,yNZ,NRw,bd7,ECi,e8$,GXZ,unZ,vCE,oCE,V9V,Odw,XfE,ffZ,Qh$,$Ip,PzE,lfE,pf0,kXZ,OW,h8p,rNi,nC$,BRD,DIw,t9W,KxZ,LxD,QF,UIZ,R80,gCV,afU,xIZ,H5i,ss0,ACZ,YbE,TO$,dd,yCW,NOE,$f,b5U,nm,rd,vvV,kf,Lm,lhu,VCE,O5U,Xu7,dyD,$yE,pu7,ktZ,h6i,BOu,gv$,tCW,rCE,Uy6,R6i,Iq,LUu,IhE,HM,ahE,xy0,Hi$,iii,joV,C7p,so6,FJ$,Zii,qv0,
MMu,WJE,ui7,GlU,vSU,VMi,oSW,X8E,Qop,dei,$eZ,p8$,kl6,rlE,tMW,LJp,B1E,Ue7,Isu,R57,gS$,asZ,Hh$,ih0,CwZ,SwW,sYZ,Y_,zc,Tc,WM,ASi,JSu,ZhU,zwp,y8,NQ,MQ$,bs,Wa$,ySW,NLU,ej,G4E,VQZ,Ohu,XCE,QYp,dR7,Pwi,k4E,Gc,hw$,BLZ,fD,DRZ,Lai,gcU,URZ,tQV,iqU,sBi,C0i,jBV,JyD,ZqE,Y2E,Tai,q20,Na6,Ok,bqZ,EV6,Xj,eLW,Q8,usE,GaZ,fKD,lKu,vVE,VKu,oVE,Oqi,XwZ,hLZ,ry0,DL6,BaD,$L0,dLV,tKp,gVW,xLU,H30,SNi,Fi7,c7u,pD,YNZ,MiD,qNZ,mgW,b3p,uUD,vUw,lx7,Vi6,oU7,PM7,O3p,hqW,nU$,r7W,Dg0,nD,Ki7,LiZ,gUu,UgE,RqE,IxE,ax7,xgZ,iHV,Cki,KD,SSW,sFp,wW7,
LD,jFp,JiZ,YS6,Re,zJ6,MvE,qS$,W9Z,yiU,Te6,bHV,GTE,fJZ,vg$,CL,lJE,XW7,QF$,wV,$Zp,dZw,Pk0,hJU,ngW,ri6,tvV,UZ0,ggw,L9i,RJ0,aJ$,xZ7,sxu,Hl0,jxE,An7,waE,zZ7,TAw,WuZ,NAE,ur7,Olp,rV,Qxp,pap,hZu,hM,Rk,tcV,RZW,UfZ,aC7,xfE,iop,HoE,Ct7,Syu,Ik,QZW,Luw,ICW,gAD,gV,wJi,AoU,Jow,ZoW,coZ,YyD,z1U,MB$,Jf,qy7,TZ7,mJ6,Wy7,yoU,Y6,NZV,e10,Gjw,f6W,Q4u,PtE,$JV,pJ6,h1i,nHi,ep,BZW,DJ$,Kyu,tBu,LyV,gHU,R1Z,a6$,HOu,iOw,AdZ,jy6,Jd6,cdi,YfV,ou,z$E,MfD,qfE,WkU,NH0,yd6,EP0,u7U,dB,f3$,vP7,GNW,l3E,VfV,OOU,QyZ,XgW,dcU,oP7,P3w,$ci,pg0,
kN7,h$E,nPZ,rdu,BHW,Dcw,Lk0,tfD,gPi,R$0,UcV,PF,I3u,H$W,siu,a3$,A$D,J$Z,FNi,Z$V,zlu,NQV,b$0,el7,uKV,Ua,lbE,XPV,PoW,Ru,hlV,$bZ,pP7,km7,neE,t8W,HU,LN0,geW,UbE,IbU,abE,xb7,Hw6,CZW,SAw,YAw,JZu,Zw6,MxE,zcp,qAU,TcV,WLu,Ncp,E46,uPu,GHU,sn0,M3i,mh$,yvE,N2E,b4U,ErV,evU,GhD,f$u,V37,oru,O40,XmU,QnW,dhZ,PQu,$hW,hvu,Dhi,YF,z5,M5,Kw$,t30,m6,gr0,SIZ,F46,A1w,GxU,fLp,vo7,RvZ,CUE,xh6,Vwp,ooi,OT6,X_E,jI7,QIE,PUV,p_u,nou,r1u,VL,XG,QL,Rsi,U$Z,HJZ,iJ0,ZJD,YuW,MD7,qu7,W$7,Nzu,yTE,eow,GuZ,XqE,omp,vmV,OJE,lkE,QN0,pqU,xF,L$E,
DvV,UvE,RoE,aku,xvZ,iA,HtZ,SrE,sbu,jbE,AKu,wGw,sd,znU,Z2,qr$,TnD,Yz,mqE,WS0,yK0,NnV,btE,EnE,enV,ux0,GYw,fTU,vnp,lT7,V_E,onu,OtD,zz,XGZ,Qb$,dqU,Pep,$qZ,pGw,kY7,hnZ,nnw,rKu,BnE,Dq0,qT,t_W,gnZ,RnV,xqV,CIZ,SHD,svE,wBi,JUp,Fb6,Zgp,es,qHw,zRE,ToV,mlD,Wbp,bgD,EdV,eRZ,GJD,PY,vd6,QQ,Vu6,odZ,$z,OgE,XB$,QvV,dlZ,kz,kJD,ndp,tuw,Kb$,gdU,Ul0,gE,RRu,I0Z,xlp,iE0,CjE,sjE,jji,HE7,wou,c06,qZU,TtV,Ud,mkW,Wz6,eHW,y0W,bEw,EyE,VVW,GF0,oyW,Xo6,dkU,PjZ,$k6,poD,kF$,hHE,r0E,BtD,DkZ,Kz0,tVp,gyw,RHV,xkU,SRU,wLZ,JjE,cji,C7,YR$,
zaV,MOD,qRu,TGW,W0w,yj7,NG$,b16,EaU,eaZ,u3i,GI0,fXE,vaE,lXu,oaU,VOu,QCD,PTi,jU,$w7,ha$,kIU,BGp,DwZ,K0u,L0V,RaE,xwE,aX0,Uw6,Cu$,iSV,A67,SDE,Z5,jX0,MSp,ZS6,c6Z,YDZ,zAE,qDE,m6$,T3W,cI,Yj,uhW,y6Z,eAZ,Epp,N30,bSE,vp7,VSW,OS$,opZ,Xvp,$6W,Pu0,kg6,npE,r6$,hAD,B3i,KAD,D6i,LAZ,RAE,WI,Ir6,ari,i06,wdw,Yq7,NW,Mgp,WdV,E70,b0i,ymD,Ng$,Gp,fD$,e2i,uYi,v7Z,VgD,lDi,XdE,Q96,P6E,$AU,pd$,kPu,h2E,rmp,Bgu,hx,KdE,tgW,R2$,IDW,K7,aDZ,HyZ,Foi,Rm,sDV,J2$,jDE,wyW,zGZ,YhD,m4Z,MzV,WoW,y26,am,byZ,ENi,eGi,NYE,SJ,umU,im,lWU,Pcu,$4D,
pyU,kQ$,hG$,nNE,KoZ,BYD,D4V,r2i,LoE,RGZ,x47,HB$,CS7,j3u,S0$,s3U,wOZ,Js7,FsW,ZB7,csu,Y0Z,zPZ,q06,cb,mGZ,N8Z,ysi,EZ7,bBi,ePD,uIW,fH6,vZp,pOD,PSE,nZW,rs$,gZu,UG0,RPV,IHV,aHZ,xG7,C_w,SGw,sg$,wkU,AzE,Jz0,GG,YGE,czi,ZAW,FXE,M0w,mFu,qGZ,yz6,NfV,bA0,Ehp,edE,ukW,G30,fEE,OA7,vh6,lE6,V0Z,Xk6,QgD,dF7,oh6,Vi,pkW,hdw,k3u,OU,rz$,BfE,DFi,nhZ,KXZ,t0E,LXu,ghZ,UFW,IEp,aE$,xFi,HbE,Szp,C86,JHu,ibZ,XB,FtW,s1u,AHE,YzD,zfV,MND,qzW,Tk$,mo0,Wtu,yHu,NkE,bbZ,Ew6,efV,Gip,fFD,vwp,VNZ,Obw,Q1$,P8$,nwu,ki$,hf0,psu,$oU,rHV,Bk$,gW,
tN7,gwZ,UoD,Rf0,IF$,aF6,xoE,szE,iYZ,HYi,C$$,qm7,zgE,Smp,Ym0,E0W,egw,uSU,GW6,f_i,VPZ,OY7,Qzw,P$0,$M6,p06,rRV,n0i,Bqu,KZ$,Mp,g0W,UM$,RgZ,I_$,Tb,m_,HRu,iRZ,STu,wTi,YTZ,T0Z,mmZ,Wcu,yqw,N0E,bR$,eTW,GwZ,ufp,fPp,lP0,VXE,osV,ORZ,XTE,Qc6,e4,dmW,rqZ,B07,kw$,pTW,ns6,hTE,gsE,Umi,RTW,IPE,aPV,xmE,C2w,iIU,HIE,ZIZ,cpU,YK7,qK$,TlV,zFV,M16,utE,fSw,lSV,o97,X$E,d7i,k07,hF7,n9$,D7D,Blw,rpU,Kgi,t1Z,g9V,U7E,RFp,ISE,aSp,x7U,ikZ,Clw,SCZ,sGV,jGZ,wxZ,Fei,Zk6,YC$,Mqp,z4$,qCu,$i,TIW,m8U,Wew,yXp,e4$,ELW,u86,GO6,fe6,vLE,oL0,XxU,
QGZ,d8V,Pl6,$8i,pxD,kOD,h47,nLV,rX0,D8E,BI7,Ke0,tqU,LeZ,gLZ,U8Z,R4D,Ie$,aeW,Kn,HQ$,iQE,SoE,sti,jtD,wc0,A5i,J56,ZQU,c5Z,zQE,qoE,mPE,bQD,y5U,WGV,NDE,EqW,eQ7,uqU,vqU,lI6,V5W,oqw,Xcp,Qt6,dPi,$Pu,P1i,pcu,kk$,hQi,BD7,DPw,KGU,t5D,LGw,gqZ,II6,aIZ,sj,slE,jlU,AwZ,ZZu,FH$,cwZ,Y9E,jA,Ah,MbZ,q9w,ZB,cQ,ywE,Tp6,mu0,EWZ,eIU,uVu,GUw,VbW,OZ7,Xr0,Ql$,dui,PxE,prZ,kUV,hIi,nWE,rw0,BpU,DuW,MN,KHE,tbZ,T_,LHu,gWU,UuW,RIp,I87,a8E,yB,NN,xuD,HFZ,bK,iFZ,CNi,SOE,sKV,wzu,AeU,FK0,MGE,zyw,YOi,qOD,Tr$,E3U,yeV,NrW,WK$,bF7,eA,GLU,fOE,
v3V,lOp,VGW,OF0,QKi,$BV,n3E,kL0,uK,pzW,tGU,g3Z,G_,UB6,RyV,IO$,xBW,HKV,iKZ,Chw,sQp,jQ6,wiE,JQw,FWZ,cQW,YVE,m1Z,TJ6,yQw,NJV,bKZ,vY7,l7u,VEE,oYp,QQV,$10,Xe,QB,piZ,kyZ,hCi,nY0,rQZ,D1U,KWZ,tEi,LWE,U1D,RCZ,I7E,d$,a7U,x1Z,CFZ,SJZ,PQ,$Q,wRp,s5Z,AL0,Z_0,JL$,cLD,z7Z,nN,MeZ,qJE,WOp,NXW,r$,EkU,e76,uoZ,GeE,fcU,vk$,lcu,Ve$,Q5u,d2W,pRU,PFW,$2V,kei,BXU,h7E,rL$,D2Z,KOZ,teZ,U2D,R7Z,IcV,x2$,Hai,wXp,jHV,Yi7,qii,IJ,TN0,$n6,m0p,WMZ,NN$,eYD,uZ6,OaU,XXW,QHW,d06,POU,$06,k1V,hYZ,ruD,D0u,nGE,BN6,tT$,KM$,gGu,In0,U0Z,anD,x00,
H2u,i2W,CLD,S77,jdi,sdV,FIw,Y7D,Z2$,zhV,Myi,q76,wR,Tj0,maZ,JN,y3u,WIp,NjU,b2V,ehD,u46,fii,v8Z,liZ,VyZ,XDD,daU,pD7,$au,kS7,hh6,BjZ,xaV,LI0,ij0,CHW,sAw,jAE,F5V,ZjW,cD$,Y1Z,zjw,MHZ,T76,mVE,W5w,N7E,yDU,ej$,upE,G2w,fvV,vK6,lv$,VHi,OjV,dVE,PH7,$Vp,p6p,k2$,hjU,B76,rDZ,L5E,gKU,UV0,RjZ,IvW,xVV,avZ,iG7,w2E,ZGZ,F8Z,cI7,YL7,zE6,qL$,lz,mti,Xn,yIu,bG0,ExV,vxi,VdU,X2u,dtw,Pgi,p27,krZ,hEE,rIw,Dt0,K8$,L8E,REV,Utp,gxU,kC,amu,ImD,xtp,HcU,icu,CXW,SPp,sRZ,jRZ,AWW,JWD,Fqp,Zcu,cW7,YPp,zSE,M6Z,qPD,mCD,Wqi,fjW,v20,ljW,o27,
Oc6,XKE,PX$,U6,rWE,B_0,DCW,Kqu,t60,Rh,Ih,Cs,ah,Hu,HWU,iWE,srE,w1E,jrE,C5,A8Z,J87,FpW;HUV=function(){var H,C;return typeof CSS!=="undefined"&&((C=(H=CSS).supports)==null?void 0:C.call(H,"selector(:has(*))"))};
iUU=function(H){return H.visibility!=="hidden"&&H.display!=="none"};
S$W=function(H){if(HUV()||H.tagName!=="DETAILS"?!H.matches(Ci6):H.querySelector("summary")!==null)return-1;H=H.getAttribute("tabindex")||"0";return Number(H)};
s0u=function(H){return H.some(function(C){return S$W(C)>0})};
j0i=function(H){if(H.textContent||H.ariaLabel)return!0;if(H instanceof HTMLInputElement){if(!H.labels)return!1;H=_.Z(H.labels);for(var C=H.next();!C.done;C=H.next())if(C.value.textContent)return!0}return!1};
wZ0=function(H){return H.sort(function(C,S){return S$W(S)-S$W(C)})};
_.AV6=function(H){H=Array.from(H.querySelectorAll(Ci6)).filter(function(C){return(iUU(C.style)?iUU(window.getComputedStyle(C)):!1)&&j0i(C)});
return s0u(H)?wZ0(H):H};
_.CU=function(H,C){if(Error.captureStackTrace)Error.captureStackTrace(this,_.CU);else{var S=Error().stack;S&&(this.stack=S)}H&&(this.message=String(H));C!==void 0&&(this.cause=C)};
SZ=function(){throw Error("E");};
JV$=function(H,C){C=String.fromCharCode.apply(null,C);return H==null?C:H+C};
Y$0=function(H){var C=!1;C=C===void 0?!1:C;if(FEZ){if(C&&(ZUu?!H.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(H)))throw Error("F");H=(cVu||(cVu=new TextEncoder)).encode(H)}else{for(var S=0,w=new Uint8Array(3*H.length),A=0;A<H.length;A++){var J=H.charCodeAt(A);if(J<128)w[S++]=J;else{if(J<2048)w[S++]=J>>6|192;else{if(J>=55296&&J<=57343){if(J<=56319&&A<H.length){var c=H.charCodeAt(++A);if(c>=56320&&c<=57343){J=(J-55296)*1024+c-56320+65536;w[S++]=J>>18|
240;w[S++]=J>>12&63|128;w[S++]=J>>6&63|128;w[S++]=J&63|128;continue}else A--}if(C)throw Error("F");J=65533}w[S++]=J>>12|224;w[S++]=J>>6&63|128}w[S++]=J&63|128}}H=S===w.length?w:w.subarray(0,S)}return H};
jZ=function(H){_.s$.setTimeout(function(){throw H;},0)};
_.AV=function(H,C){return H.lastIndexOf(C,0)==0};
JV=function(H,C){var S=H.length-C.length;return S>=0&&H.indexOf(C,S)==S};
_.YE=function(H){return/^[\s\xa0]*$/.test(H)};
_.z6=function(H,C){return H.indexOf(C)!=-1};
_.MD=function(H,C){return _.z6(H.toLowerCase(),C.toLowerCase())};
_.T6=function(H,C){var S=0;H=qD(String(H)).split(".");C=qD(String(C)).split(".");for(var w=Math.max(H.length,C.length),A=0;S==0&&A<w;A++){var J=H[A]||"",c=C[A]||"";do{J=/(\d*)(\D*)(.*)/.exec(J)||["","","",""];c=/(\d*)(\D*)(.*)/.exec(c)||["","","",""];if(J[0].length==0&&c[0].length==0)break;S=zpV(J[1].length==0?0:parseInt(J[1],10),c[1].length==0?0:parseInt(c[1],10))||zpV(J[2].length==0,c[2].length==0)||zpV(J[2],c[2]);J=J[3];c=c[3]}while(S==0)}return S};
zpV=function(H,C){return H<C?-1:H>C?1:0};
_.WZ=function(){var H=_.s$.navigator;return H&&(H=H.userAgent)?H:""};
MZw=function(H){if(!y7||!E$)return!1;for(var C=0;C<E$.brands.length;C++){var S=E$.brands[C].brand;if(S&&_.z6(S,H))return!0}return!1};
G6=function(H){return _.z6(_.WZ(),H)};
fU=function(){return y7?!!E$&&E$.brands.length>0:!1};
q$E=function(){return fU()?!1:G6("Opera")};
Tuw=function(){return fU()?!1:G6("Trident")||G6("MSIE")};
mDW=function(){return fU()?MZw("Microsoft Edge"):G6("Edg/")};
vZ=function(){return G6("Firefox")||G6("FxiOS")};
_.WED=function(){return G6("Safari")&&!(_.li()||(fU()?0:G6("Coast"))||q$E()||(fU()?0:G6("Edge"))||mDW()||(fU()?MZw("Opera"):G6("OPR"))||vZ()||G6("Silk")||G6("Android"))};
_.li=function(){return fU()?MZw("Chromium"):(G6("Chrome")||G6("CriOS"))&&!(fU()?0:G6("Edge"))||G6("Silk")};
_.yVU=function(){return G6("Android")&&!(_.li()||vZ()||q$E()||G6("Silk"))};
Nu0=function(H){var C={};H.forEach(function(S){C[S[0]]=S[1]});
return function(S){return C[S.find(function(w){return w in C})]||""}};
bUZ=function(H){var C=_.WZ();if(H==="Internet Explorer"){if(Tuw())if((H=/rv: *([\d\.]*)/.exec(C))&&H[1])C=H[1];else{H="";var S=/MSIE +([\d\.]+)/.exec(C);if(S&&S[1])if(C=/Trident\/(\d.\d)/.exec(C),S[1]=="7.0")if(C&&C[1])switch(C[1]){case "4.0":H="8.0";break;case "5.0":H="9.0";break;case "6.0":H="10.0";break;case "7.0":H="11.0"}else H="7.0";else H=S[1];C=H}else C="";return C}var w=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");S=[];for(var A;A=w.exec(C);)S.push([A[1],A[2],A[3]||void 0]);
C=Nu0(S);switch(H){case "Opera":if(q$E())return C(["Version","Opera"]);if(fU()?MZw("Opera"):G6("OPR"))return C(["OPR"]);break;case "Microsoft Edge":if(fU()?0:G6("Edge"))return C(["Edge"]);if(mDW())return C(["Edg"]);break;case "Chromium":if(_.li())return C(["Chrome","CriOS","HeadlessChrome"])}return H==="Firefox"&&vZ()||H==="Safari"&&_.WED()||H==="Android Browser"&&_.yVU()||H==="Silk"&&G6("Silk")?(C=S[2])&&C[1]||"":""};
_.EEZ=function(H){if(fU()&&H!=="Silk"){var C=E$.brands.find(function(S){return S.brand===H});
if(!C||!C.version)return NaN;C=C.version.split(".")}else{C=bUZ(H);if(C==="")return NaN;C=C.split(".")}return C.length===0?NaN:Number(C[0])};
o0=function(){return y7?!!E$&&!!E$.platform:!1};
_.epZ=function(){return o0()?E$.platform==="Android":G6("Android")};
uWu=function(){return G6("iPhone")&&!G6("iPod")&&!G6("iPad")};
_.XW=function(){return uWu()||G6("iPad")||G6("iPod")};
_.G6E=function(){return o0()?E$.platform==="macOS":G6("Macintosh")};
_.fw7=function(){return o0()?E$.platform==="Windows":G6("Windows")};
_.vEW=function(){return o0()?E$.platform==="Chrome OS":G6("CrOS")};
_.du=function(H){return H[H.length-1]};
_.PZ=function(H,C,S){C=_.lwZ(H,C,S);return C<0?null:typeof H==="string"?H.charAt(C):H[C]};
_.lwZ=function(H,C,S){for(var w=H.length,A=typeof H==="string"?H.split(""):H,J=0;J<w;J++)if(J in A&&C.call(S,A[J],J,H))return J;return-1};
VZV=function(H){for(var C=_.$E,S=typeof H==="string"?H.split(""):H,w=H.length-1;w>=0;w--)if(w in S&&C.call(void 0,S[w],w,H))return w;return-1};
_.nU=function(H,C){return _.hV(H,C)>=0};
_.oEV=function(H,C){_.nU(H,C)||H.push(C)};
_.ru=function(H,C){C=_.hV(H,C);var S;(S=C>=0)&&_.OUW(H,C);return S};
_.OUW=function(H,C){Array.prototype.splice.call(H,C,1)};
_.BZ=function(H){var C=H.length;if(C>0){for(var S=Array(C),w=0;w<C;w++)S[w]=H[w];return S}return[]};
_.KU=function(H,C){for(var S=1;S<arguments.length;S++){var w=arguments[S];if(_.Dw(w)){var A=H.length||0,J=w.length||0;H.length=A+J;for(var c=0;c<J;c++)H[A+c]=w[c]}else H.push(w)}};
_.Q0E=function(H,C,S,w){Array.prototype.splice.apply(H,XZi(arguments,1))};
XZi=function(H,C,S){return arguments.length<=2?Array.prototype.slice.call(H,C):Array.prototype.slice.call(H,C,S)};
dD6=function(H,C){C=C||H;for(var S=0,w=0,A={};w<H.length;){var J=H[w++],c=_.U$(J)?"o"+_.I0(J):(typeof J).charAt(0)+J;Object.prototype.hasOwnProperty.call(A,c)||(A[c]=!0,C[S++]=J)}C.length=S};
_.$Dw=function(H,C,S){S=S||_.Piw;for(var w=0,A=H.length,J;w<A;){var c=w+(A-w>>>1);var Y=S(C,H[c]);Y>0?w=c+1:(A=c,J=!Y)}return J?w:-w-1};
_.a0=function(H,C,S){if(!_.Dw(H)||!_.Dw(C)||H.length!=C.length)return!1;var w=H.length;S=S||pZ$;for(var A=0;A<w;A++)if(!S(H[A],C[A]))return!1;return!0};
_.Piw=function(H,C){return H>C?1:H<C?-1:0};
pZ$=function(H,C){return H===C};
k6$=function(H,C,S){C=Array.prototype.splice.call(H,C,1);Array.prototype.splice.call(H,S,0,C[0])};
nE$=function(H){return hpE[H]||""};
DDZ=function(H){if(!rV$)return _.iY(H);H=Bu7.test(H)?H.replace(Bu7,nE$):H;H=atob(H);for(var C=new Uint8Array(H.length),S=0;S<H.length;S++)C[S]=H.charCodeAt(S);return C};
KEW=function(H,C){H.__closure__error__context__984382||(H.__closure__error__context__984382={});H.__closure__error__context__984382.severity=C};
_.CP=function(H){H=Error(H);KEW(H,"warning");return H};
LEu=function(H,C){if(H!=null){var S;var w=(S=tZp)!=null?S:tZp={};S=w[H]||0;S>=C||(w[H]=S+1,H=Error(),KEW(H,"incident"),jZ(H))}};
j7=function(H,C,S){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(S===void 0?0:S)&&Symbol.for&&H?Symbol.for(H):H!=null?Symbol(H):Symbol():C};
RpZ=function(H,C){wU||_.A_ in H||gE$(H,UDE);H[_.A_]|=C};
J_=function(H,C){wU||_.A_ in H||gE$(H,UDE);H[_.A_]=C};
Iwi=function(H){if(4&H)return 512&H?512:1024&H?1024:0};
Fd=function(H){RpZ(H,34);return H};
awE=function(H){RpZ(H,32);return H};
Z1=function(){return typeof BigInt==="function"};
bY=function(H,C){return C===void 0?H.copyOnWrite!==zd&&!!(2&(H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.A_]|0)):!!(2&C)&&H.copyOnWrite!==zd};
_.On=function(H,C){if(H!=null)if(typeof H==="string")H=H?new v7(H,Vb):_.oV();else if(H.constructor!==v7)if(xDZ&&H!=null&&H instanceof Uint8Array)H=H.length?new v7(new Uint8Array(H),Vb):_.oV();else{if(!C)throw Error();H=void 0}return H};
HP6=function(H,C){if(typeof C!=="number"||C<0||C>=H.length)throw Error();};
iPE=function(H,C,S){var w=C&128?0:-1,A=H.length,J;if(J=!!A)J=H[A-1],J=J!=null&&typeof J==="object"&&J.constructor===Object;var c=A+(J?-1:0);for(C=C&128?1:0;C<c;C++)S(C-w,H[C]);if(J){H=H[A-1];for(var Y in H)!isNaN(Y)&&S(+Y,H[Y])}};
Qb=function(H){return H&128?Xd:void 0};
dU=function(H){H.isGuard_doNotManuallySetPrettyPlease=!0;return H};
Sn7=function(){var H=CYV;return dU(function(C){for(var S in H)if(C===H[S]&&!/^[0-9]+$/.test(S))return!0;return!1})};
_.P7=function(H){var C=H;if(sVZ(C)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(C))throw Error(String(C));}else if(jVw(C)&&!Number.isSafeInteger(C))throw Error(String(C));return w7u?BigInt(H):H=A_u(H)?H?"1":"0":sVZ(H)?H.trim()||"0":String(H)};
J_E=function(H,C){if(H.length>C.length)return!1;if(H.length<C.length||H===C)return!0;for(var S=0;S<H.length;S++){var w=H[S],A=C[S];if(w>A)return!1;if(w<A)return!0}};
F1$=function(H){var C=H>>>0;$M=C;pP=(H-C)/4294967296>>>0};
kM=function(H){if(H<0){F1$(-H);var C=_.Z(ZP7($M,pP));H=C.next().value;C=C.next().value;$M=H>>>0;pP=C>>>0}else F1$(H)};
Ynp=function(H){var C=c_Z||(c_Z=new DataView(new ArrayBuffer(8)));C.setFloat32(0,+H,!0);pP=0;$M=C.getUint32(0,!0)};
zWw=function(H,C){var S=C*4294967296+(H>>>0);return Number.isSafeInteger(S)?S:_.h_(H,C)};
rU=function(H,C){var S=C&2147483648;S&&(H=~H+1>>>0,C=~C>>>0,H==0&&(C=C+1>>>0));H=zWw(H,C);return typeof H==="number"?S?-H:H:S?"-"+H:H};
M7U=function(H){var C=$M,S=pP,w=S>>31;S=(S<<1|C>>>31)^w;H(C<<1^w,S)};
qnV=function(H,C){var S=-(H&1);H=(H>>>1|C<<31)^S;return rU(H,C>>>1^S)};
_.h_=function(H,C){C>>>=0;H>>>=0;if(C<=2097151)var S=""+(4294967296*C+H);else Z1()?S=""+(BigInt(C)<<BigInt(32)|BigInt(H)):(S=(H>>>24|C<<8)&16777215,C=C>>16&65535,H=(H&16777215)+S*6777216+C*6710656,S+=C*8147497,C*=2,H>=1E7&&(S+=H/1E7>>>0,H%=1E7),S>=1E7&&(C+=S/1E7>>>0,S%=1E7),S=C+TUZ(S)+TUZ(H));return S};
TUZ=function(H){H=String(H);return"0000000".slice(H.length)+H};
_.miw=function(H,C){C&2147483648?Z1()?H=""+(BigInt(C|0)<<BigInt(32)|BigInt(H>>>0)):(C=_.Z(ZP7(H,C)),H=C.next().value,C=C.next().value,H="-"+_.h_(H,C)):H=_.h_(H,C);return H};
B7=function(H){if(H.length<16)kM(Number(H));else if(Z1())H=BigInt(H),$M=Number(H&BigInt(4294967295))>>>0,pP=Number(H>>BigInt(32)&BigInt(4294967295));else{var C=+(H[0]==="-");pP=$M=0;for(var S=H.length,w=C,A=(S-C)%6+C;A<=S;w=A,A+=6)w=Number(H.slice(w,A)),pP*=1E6,$M=$M*1E6+w,$M>=4294967296&&(pP+=Math.trunc($M/4294967296),pP>>>=0,$M>>>=0);C&&(C=_.Z(ZP7($M,pP)),H=C.next().value,C=C.next().value,$M=H,pP=C)}};
ZP7=function(H,C){C=~C;H?H=~H+1:C+=1;return[H,C]};
D1=function(H){return Array.prototype.slice.call(H)};
_.KP=function(H,C){throw Error(C===void 0?"unexpected value "+H+"!":C);};
_.t_=function(H){if(H!=null&&typeof H!=="number")throw Error("L`"+typeof H+"`"+H);return H};
_.gU=function(H){if(H==null||typeof H==="number")return H;if(H==="NaN"||H==="Infinity"||H==="-Infinity")return Number(H)};
W1V=function(H){if(H!=null&&typeof H!=="boolean")throw Error("M`"+_.IV(H)+"`"+H);return H};
_.y_u=function(H){if(H==null||typeof H==="boolean")return H;if(typeof H==="number")return!!H};
_.xM=function(H){switch(typeof H){case "bigint":return!0;case "number":return aV(H);case "string":return NUZ.test(H);default:return!1}};
_.ip=function(H){if(!aV(H))throw _.CP("enum");return H|0};
_.s_=function(H){return H==null?H:aV(H)?H|0:void 0};
bPE=function(H){if(typeof H!=="number")throw _.CP("int32");if(!aV(H))throw _.CP("int32");return H|0};
_.jo=function(H){return H==null?H:bPE(H)};
_.wi=function(H){if(H==null)return H;if(typeof H==="string"&&H)H=+H;else if(typeof H!=="number")return;return aV(H)?H|0:void 0};
_.EMp=function(H){if(H==null)return H;if(typeof H==="string"&&H)H=+H;else if(typeof H!=="number")return;return aV(H)?H>>>0:void 0};
f1E=function(H){var C=0;C=C===void 0?0:C;if(!_.xM(H))throw _.CP("int64");var S=typeof H;switch(C){case 512:switch(S){case "string":return A9(H);case "bigint":return String(FR(64,H));default:return eW$(H)}case 1024:switch(S){case "string":return udZ(H);case "bigint":return _.P7(FR(64,H));default:return GdZ(H)}case 0:switch(S){case "string":return A9(H);case "bigint":return _.P7(FR(64,H));default:return Zq(H)}default:return _.KP(C,"Unknown format requested type for int64")}};
c3=function(H){return H==null?H:f1E(H)};
vME=function(H){var C=H.length;if(H[0]==="-"?C<20||C===20&&H<="-9223372036854775808":C<19||C===19&&H<="9223372036854775807")return H;B7(H);return _.miw($M,pP)};
l1E=function(H){if(H[0]==="-")var C=!1;else C=H.length,C=C<20?!0:C===20&&H<="18446744073709551615";if(C)return H;B7(H);return _.h_($M,pP)};
Zq=function(H){H=Yt(H);zK(H)||(kM(H),H=rU($M,pP));return H};
_.V7E=function(H){H=Yt(H);H>=0&&zK(H)||(kM(H),H=zWw($M,pP));return H};
eW$=function(H){H=Yt(H);zK(H)?H=String(H):(kM(H),H=_.miw($M,pP));return H};
_.oMW=function(H){H=Yt(H);H>=0&&zK(H)?H=String(H):(kM(H),H=_.h_($M,pP));return H};
A9=function(H){var C=Yt(Number(H));if(zK(C))return String(C);C=H.indexOf(".");C!==-1&&(H=H.substring(0,C));return vME(H)};
udZ=function(H){var C=Yt(Number(H));if(zK(C))return _.P7(C);C=H.indexOf(".");C!==-1&&(H=H.substring(0,C));return Z1()?_.P7(FR(64,BigInt(H))):_.P7(vME(H))};
GdZ=function(H){return zK(H)?_.P7(Zq(H)):_.P7(eW$(H))};
_.OPE=function(H){return zK(H)?_.P7(_.V7E(H)):_.P7(_.oMW(H))};
_.X7E=function(H){var C=Yt(Number(H));if(zK(C)&&C>=0)return String(C);C=H.indexOf(".");C!==-1&&(H=H.substring(0,C));return l1E(H)};
_.QVW=function(H){var C=Yt(Number(H));if(zK(C)&&C>=0)return _.P7(C);C=H.indexOf(".");C!==-1&&(H=H.substring(0,C));return Z1()?_.P7((0,_.q9)(64,BigInt(H))):_.P7(l1E(H))};
_.PYZ=function(H){if(H==null)return H;if(typeof H==="bigint")return diZ(H)?H=Number(H):(H=FR(64,H),H=diZ(H)?Number(H):String(H)),H;if(_.xM(H))return typeof H==="number"?Zq(H):A9(H)};
$ii=function(H,C){C=C===void 0?!1:C;var S=typeof H;if(H==null)return H;if(S==="bigint")return String(FR(64,H));if(_.xM(H))return S==="string"?A9(H):C?eW$(H):Zq(H)};
_.p7E=function(H){var C=typeof H;if(H==null)return H;if(C==="bigint")return _.P7(FR(64,H));if(_.xM(H))return C==="string"?udZ(H):GdZ(H)};
kdZ=function(H){if(H==null)return H;var C=typeof H;if(C==="bigint")return String(FR(64,H));if(_.xM(H)){if(C==="string")return A9(H);if(C==="number")return Zq(H)}};
hW6=function(H){if(H==null)return H;var C=typeof H;if(C==="bigint")return String((0,_.q9)(64,H));if(_.xM(H)){if(C==="string")return _.X7E(H);if(C==="number")return _.V7E(H)}};
_.mj=function(H){if(typeof H!=="string")throw Error();return H};
bp=function(H){if(H!=null&&typeof H!=="string")throw Error();return H};
_.E_=function(H){return H==null||typeof H==="string"?H:void 0};
BUu=function(H,C,S,w){if(H!=null&&H[up]===fr)return H;if(!Array.isArray(H))return S?w&2?C[nM$]||(C[nM$]=r_7(C)):new C:void 0;S=H[_.A_]|0;w=S|w&32|w&2;w!==S&&J_(H,w);return new C(H)};
r_7=function(H){H=new H;Fd(H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return H};
Dii=function(H,C,S){H=C?bPE(H):_.wi(H);return H==null?S?0:void 0:H|0};
K1Z=function(H){return H};
t7E=function(H){return H};
gMi=function(H,C,S,w,A,J){H=BUu(H,w,S,J);A&&(H=L16(H));return H};
Ui$=function(H){return[H,this.get(H)]};
a1Z=function(){return RWu||(RWu=new lp(Fd([]),void 0,void 0,void 0,I1V))};
xip=function(H){var C=VO(oO);return C?H[C]:void 0};
Cpp=function(H,C){var S=S===void 0?!1:S;if(VO(Hr7)&&VO(oO)&&void 0===Hr7){var w=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,A=w[oO];if(!A)return;if(A=A.reviveUnknownFields)try{A(w,C,irZ);return}catch(J){jZ(J)}}S&&(H=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(S=VO(oO))&&S in H&&(H=H[S])&&delete H[C])};
sOp=function(H,C){var S=VO(oO),w;wU&&S&&((w=H[S])==null?void 0:w[C])!=null&&LEu(S_Z,3)};
w3D=function(H,C){C<100||LEu(jOV,1)};
c9p=function(H,C,S,w){var A=w!==void 0;w=!!w;var J=VO(oO),c;!A&&wU&&J&&(c=H[J])&&A9E(c,w3D);J=[];var Y=H.length;c=4294967295;var M=!1,m=!!(C&64),W=m?C&128?0:-1:void 0;if(!(C&1)){var y=Y&&H[Y-1];y!=null&&typeof y==="object"&&y.constructor===Object?(Y--,c=Y):y=void 0;if(m&&!(C&128)&&!A){M=!0;var N;c=((N=J96)!=null?N:K1Z)(c-W,W,H,y,void 0)+W}}C=void 0;for(N=0;N<Y;N++){var b=H[N];if(b!=null&&(b=S(b,w))!=null)if(m&&N>=c){var u=N-W,O=void 0;((O=C)!=null?O:C={})[u]=b}else J[N]=b}if(y)for(var d in y)Y=y[d],
Y!=null&&(Y=S(Y,w))!=null&&(N=+d,b=void 0,m&&!Number.isNaN(N)&&(b=N+W)<c?J[b]=Y:(N=void 0,((N=C)!=null?N:C={})[d]=Y));C&&(M?J.push(C):J[c]=C);A&&VO(oO)&&(H=xip(H))&&H instanceof Fj7&&(J[oO]=ZrE(H));return J};
zi0=function(H){H[0]=Y_u(H[0]);H[1]=Y_u(H[1]);return H};
Y_u=function(H){switch(typeof H){case "number":return Number.isFinite(H)?H:""+H;case "bigint":return diZ(H)?Number(H):""+H;case "boolean":return H?1:0;case "object":if(Array.isArray(H)){var C=H[_.A_]|0;return H.length===0&&C&1?void 0:c9p(H,C,Y_u)}if(H!=null&&H[up]===fr)return Mop(H);if(H instanceof v7){C=H.JSC$8834_value_;if(C==null)H="";else if(typeof C==="string")H=C;else{if(rV$){for(var S="",w=0,A=C.length-10240;w<A;)S+=String.fromCharCode.apply(null,C.subarray(w,w+=10240));S+=String.fromCharCode.apply(null,
w?C.subarray(w):C);C=btoa(S)}else C=_.QO(C);H=H.JSC$8834_value_=C}return H}if(H instanceof lp)return H=H.size!==0?Array.from(P3.prototype.entries.call(H),zi0):void 0,H;return}return H};
$t=function(H,C){if(C){J96=C==null||C===K1Z||C[q_E]!==TiE?K1Z:C;try{return Mop(H)}finally{J96=void 0}}return Mop(H)};
Mop=function(H){H=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return c9p(H,H[_.A_]|0,Y_u)};
y9U=function(H){switch(typeof H){case "boolean":return m9i||(m9i=[0,void 0,!0]);case "number":return H>0?void 0:H===0?WjZ||(WjZ=[0,void 0]):[-H,void 0];case "string":return[0,H];case "object":return H}};
kt=function(H,C,S){return H=_.pr(H,C[0],C[1],S?1:2)};
_.pr=function(H,C,S,w){w=w===void 0?0:w;if(H==null){var A=32;S?(H=[S],A|=128):H=[];C&&(A=A&-8380417|(C&1023)<<13)}else{if(!Array.isArray(H))throw Error("O");A=H[_.A_]|0;if(NiE&&1&A)throw Error("P");2048&A&&!(2&A)&&brp();if(A&256)throw Error("Q");if(A&64)return w!==0||A&2048||J_(H,A|2048),H;if(S&&(A|=128,S!==H[0]))throw Error("R");a:{S=H;A|=64;var J=S.length;if(J){var c=J-1,Y=S[c];if(Y!=null&&typeof Y==="object"&&Y.constructor===Object){C=A&128?0:-1;c-=C;if(c>=1024)throw Error("T");for(var M in Y)J=
+M,J<c&&(S[J+C]=Y[M],delete Y[M]);A=A&-8380417|(c&1023)<<13;break a}}if(C){M=Math.max(C,J-(A&128?0:-1));if(M>1024)throw Error("U");A=A&-8380417|(M&1023)<<13}}}A|=64;w===0&&(A|=2048);J_(H,A);return H};
brp=function(){if(NiE)throw Error("S");LEu(Et7,5)};
fq$=function(H,C){if(typeof H!=="object")return H;if(Array.isArray(H)){var S=H[_.A_]|0;return H.length===0&&S&1?void 0:eiU(H,S,C)}if(H!=null&&H[up]===fr)return uRu(H);if(H instanceof lp){C=H.arrayState;if(C&2)return H;if(!H.size)return;S=Fd(GKU(H));if(H.valueCtor)for(H=0;H<S.length;H++){var w=S[H],A=w[1];A==null||typeof A!=="object"?A=void 0:A!=null&&A[up]===fr?A=uRu(A):Array.isArray(A)?A=eiU(A,A[_.A_]|0,!!(C&32)):A=void 0;w[1]=A}return S}if(H instanceof v7)return H};
eiU=function(H,C,S){if(C&2)return H;!S||4096&C||16&C?H=h9(H,C,!1,S&&!(C&16)):(RpZ(H,34),C&4&&Object.freeze(H));return H};
vt0=function(H,C,S){H=new H.constructor(C);S&&(H.copyOnWrite=zd);H.noLegacyNull=zd;return H};
uRu=function(H){var C=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,S=C[_.A_]|0;return bY(H,S)?H:lqU(H,C,S)?vt0(H,C):h9(C,S)};
h9=function(H,C,S,w){w!=null||(w=!!(34&C));H=c9p(H,C,fq$,w);w=32;S&&(w|=2);C=C&8380609|w;J_(H,C);return H};
L16=function(H){var C=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,S=C[_.A_]|0;return bY(H,S)?lqU(H,C,S)?vt0(H,C,!0):new H.constructor(h9(C,S,!1)):H};
nr=function(H){if(H.copyOnWrite!==zd)return!1;var C=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;C=h9(C,C[_.A_]|0);RpZ(C,2048);H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=C;H.copyOnWrite=void 0;H.noLegacyNull=void 0;return!0};
B3=function(H){if(!nr(H)&&bY(H,H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.A_]|0))throw Error();};
Dq=function(H,C){C===void 0&&(C=H[_.A_]|0);C&32&&!(C&4096)&&J_(H,C|4096)};
lqU=function(H,C,S){return S&2?!0:S&32&&!(S&4096)?(J_(C,S|2),H.copyOnWrite=zd,!0):!1};
Lr=function(H,C,S,w,A){var J=S+(A?0:-1),c=H.length-1;if(c>=1+(A?0:-1)&&J>=c){var Y=H[c];if(Y!=null&&typeof Y==="object"&&Y.constructor===Object)return Y[S]=w,C}if(J<=c)return H[J]=w,C;if(w!==void 0){var M;c=((M=C)!=null?M:C=H[_.A_]|0)>>13&1023||536870912;S>=c?w!=null&&(J={},H[c+(A?0:-1)]=(J[S]=w,J)):H[J]=w}return C};
_.IO=function(H,C,S,w,A){var J=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=J[_.A_]|0;w=bY(H,c)?1:w;A=!!A||w===3;w===2&&nr(H)&&(J=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=J[_.A_]|0);H=VoE(J,C);var Y=H===gi?7:H[_.A_]|0,M=otU(Y,c);var m=4&M?!1:!0;if(m){4&M&&(H=D1(H),Y=0,M=RO(M,c),c=Lr(J,c,C,H));for(var W=0,y=0;W<H.length;W++){var N=S(H[W]);N!=null&&(H[y++]=N)}y<W&&(H.length=y);S=(M|4)&-513;M=S&=-1025;M&=-4097}M!==Y&&(J_(H,M),2&M&&Object.freeze(H));return H=Ori(H,M,J,
c,C,w,m,A)};
Ori=function(H,C,S,w,A,J,c,Y){var M=C;J===1||(J!==4?0:2&C||!(16&C)&&32&w)?aO(C)||(C|=!H.length||c&&!(4096&C)||32&w&&!(4096&C||16&C)?2:256,C!==M&&J_(H,C),Object.freeze(H)):(J===2&&aO(C)&&(H=D1(H),M=0,C=RO(C,w),w=Lr(S,w,A,H)),aO(C)||(Y||(C|=16),C!==M&&J_(H,C)));2&C||!(4096&C||16&C)||Dq(S,w);return H};
VoE=function(H,C,S){H=xt(H,C,S);return Array.isArray(H)?H:gi};
otU=function(H,C){2&C&&(H|=2);return H|1};
aO=function(H){return!!(2&H)&&!!(4&H)||!!(256&H)};
X3E=function(H){return _.On(H,!0)};
QOi=function(H){H=D1(H);for(var C=0;C<H.length;C++){var S=H[C]=D1(H[C]);Array.isArray(S[1])&&(S[1]=Fd(S[1]))}return H};
d9U=function(H,C){var S=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,w=S[_.A_]|0;a:{var A=w;w=bY(H,w);!w&&nr(H)&&(S=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,A=S[_.A_]|0);var J=xt(S,C);H=!1;if(J==null){if(w){C=a1Z();break a}J=[]}else if(J.constructor===lp)if(J.arrayState&2&&!w)J=GKU(J);else{C=J;break a}else Array.isArray(J)?H=!!((J[_.A_]|0)&2):J=[];if(w){if(!J.length){C=a1Z();break a}H||(H=!0,Fd(J))}else H&&(H=!1,J=QOi(J));!H&&A&32&&awE(J);w=new lp(J,void 0,Dii,Dii);A=Lr(S,
A,C,w);H||Dq(S,A);C=w}return C};
_.HV=function(H,C,S,w){B3(H);var A=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=A[_.A_]|0;if(S==null)return Lr(A,J,C),H;var c=S===gi?7:S[_.A_]|0,Y=c,M=aO(c),m=M||Object.isFrozen(S);M||(c=0);m||(S=D1(S),Y=0,c=RO(c,J),m=!1);c|=5;var W;M=(W=Iwi(c))!=null?W:0;for(W=0;W<S.length;W++){var y=S[W],N=w(y,M);Object.is(y,N)||(m&&(S=D1(S),Y=0,c=RO(c,J),m=!1),S[W]=N)}c!==Y&&(m&&(S=D1(S),c=RO(c,J)),J_(S,c));Lr(A,J,C,S);return H};
_.iB=function(H,C,S,w,A){B3(H);var J=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Lr(J,J[_.A_]|0,C,(w==="0"?Number(S)===0:S===w)?void 0:S,A);return H};
_.C9=function(H,C,S){if(C&2)throw Error();var w=Qb(C),A=VoE(H,S,w),J=A===gi?7:A[_.A_]|0,c=otU(J,C);if(2&c||aO(c)||16&c)A=D1(A),J=0,c=RO(c,C),Lr(H,C,S,A,w);c&=-13;c!==J&&J_(A,c);return A};
Ppw=function(H){if(wU){var C;return(C=H[Sh])!=null?C:H[Sh]=new Map}if(Sh in H)return H[Sh];C=new Map;Object.defineProperty(H,Sh,{value:C});return C};
p3p=function(H,C,S,w,A){var J=Ppw(H),c=$97(J,H,C,S,A);c!==w&&(c&&(C=Lr(H,C,c,void 0,A)),J.set(S,w));return C};
$97=function(H,C,S,w,A){var J=H.get(w);if(J!=null)return J;for(var c=J=0;c<w.length;c++){var Y=w[c];xt(C,Y,A)!=null&&(J!==0&&(S=Lr(C,S,J,void 0,A)),J=Y)}H.set(w,J);return J};
kKi=function(H,C,S,w,A){var J=!1;w=xt(H,w,A,function(c){var Y=BUu(c,S,!1,C);J=Y!==c&&Y!=null;return Y});
if(w!=null)return J&&!bY(w)&&Dq(H,C),w};
hiu=function(H,C,S,w,A,J,c,Y){var M=bY(H,S);J=M?1:J;c=!!c||J===3;M=Y&&!M;(J===2||M)&&nr(H)&&(C=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,S=C[_.A_]|0);H=VoE(C,A);var m=H===gi?7:H[_.A_]|0,W=otU(m,S);if(Y=!(4&W)){var y=H,N=S,b=!!(2&W);b&&(N|=2);for(var u=!b,O=!0,d=0,p=0;d<y.length;d++){var k=BUu(y[d],w,!1,N);if(k instanceof w){if(!b){var R=bY(k);u&&(u=!R);O&&(O=R)}y[p++]=k}}p<d&&(y.length=p);W|=4;W=O?W&-4097:W|4096;W=u?W|8:W&-9}W!==m&&(J_(H,W),2&W&&Object.freeze(H));if(M&&!(8&W||!H.length&&
(J===1||(J!==4?0:2&W||!(16&W)&&32&S)))){aO(W)&&(H=D1(H),W=RO(W,S),S=Lr(C,S,A,H));w=H;M=W;for(m=0;m<w.length;m++)y=w[m],W=L16(y),y!==W&&(w[m]=W);M|=8;W=M=w.length?M|4096:M&-4097;J_(H,W)}return H=Ori(H,W,C,S,A,J,Y,c)};
ntE=function(H){H==null&&(H=void 0);return H};
RO=function(H,C){return H=(2&C?H|2:H&-3)&-273};
_.r9E=function(H,C,S,w,A){B3(H);C=_.IO(H,C,A,2,!0);var J;A=(J=Iwi(C===gi?7:C[_.A_]|0))!=null?J:0;C.push(S(w,A));return H};
Biu=function(H,C,S,w,A,J,c){B3(H);var Y=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;H=hiu(H,Y,Y[_.A_]|0,S,C,2,!0);if(J&&c)A!=null||(A=H.length-1),HP6(H,A),H.splice(A,J),H.length||(H[_.A_]&=-4097);else{if(J){if(typeof A!=="number"||A<0||A>H.length)throw Error();}else w=w!=null?w:new S;A!=void 0?H.splice(A,J,w):H.push(w);A=S=H===gi?7:H[_.A_]|0;(w=bY(w))?(S&=-9,H.length===1&&(S&=-4097)):S|=4096;S!==A&&J_(H,S);w||Dq(Y)}};
KjD=function(H,C){if(typeof H==="string")return new st(DDZ(H),C);if(Array.isArray(H))return new st(new Uint8Array(H),C);if(H.constructor===Uint8Array)return new st(H,!1);if(H.constructor===ArrayBuffer)return H=new Uint8Array(H),new st(H,!1);if(H.constructor===v7)return C=D9$(H)||new Uint8Array(0),new st(C,!0,H);if(H instanceof Uint8Array)return H=H.constructor===Uint8Array?H:new Uint8Array(H.buffer,H.byteOffset,H.byteLength),new st(H,!1);throw Error();};
LjZ=function(H){switch(typeof H){case "string":toZ(H)}};
U9E=function(H){switch(typeof H){case "string":gt7(H)}};
jh=function(){var H=function(){throw Error();};
Object.setPrototypeOf(H,H.prototype);return H};
Iq7=function(H,C){var S=S===void 0?RiZ:S;return new wP(H,C,S)};
H90=function(H,C,S,w,A){aqE(H,S,x97(C,w),A)};
Ac=function(H,C,S,w){var A=w[H];if(A)return A;A={};A.binaryFields=w;A.messageMetadata=y9U(w[0]);var J=w[1],c=1;J&&J.constructor===Object&&(A.extensions=J,J=w[++c],typeof J==="function"&&(A.isMessageSet=!0,i9i!=null||(i9i=J),CBE!=null||(CBE=w[c+1]),J=w[c+=2]));for(var Y={};J&&Stp(J);){for(var M=0;M<J.length;M++)Y[J[M]]=J;J=w[++c]}for(M=1;J!==void 0;){typeof J==="number"&&(M+=J,J=w[++c]);var m=void 0;if(J instanceof wP)var W=J;else W=s2$,c--;J=void 0;if((J=W)==null?0:J.$$isMsg){J=w[++c];m=w;var y=c;
typeof J==="function"&&(J=J(),m[y]=J);m=J}J=w[++c];y=M+1;typeof J==="number"&&J<0&&(y-=J,J=w[++c]);for(;M<y;M++){var N=Y[M];m?S(A,M,W,m,N):C(A,M,W,N)}}return w[H]=A};
Stp=function(H){return Array.isArray(H)&&!!H.length&&typeof H[0]==="number"&&H[0]>0};
wVZ=function(H){return Array.isArray(H)?H[0]instanceof wP?H:[j2Z,H]:[H,void 0]};
x97=function(H,C){if(H instanceof _.Jc)return H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(H))return kt(H,C,!1)};
AcZ=function(H,C,S,w){var A=S.$$binaryReaderFn;H[C]=w?function(J,c,Y){return A(J,c,Y,w)}:A};
FTU=function(H,C,S,w,A){var J=S.$$binaryReaderFn,c,Y;H[C]=function(M,m,W){return J(M,m,W,Y||(Y=Ac(Jc6,AcZ,FTU,w).messageMetadata),c||(c=Z9E(w)),A)}};
Z9E=function(H){var C=H[ccZ];if(C!=null)return C;var S=Ac(Jc6,AcZ,FTU,H);C=S.isMessageSet?function(w,A){return i9i(w,A,S)}:function(w,A){for(;Ytu(A)&&A.nextWireType_!=4;){var J=A.nextField_,c=S[J];
if(c==null){var Y=S.extensions;Y&&(Y=Y[J])&&(Y=zBU(Y),Y!=null&&(c=S[J]=Y))}if(c==null||!c(A,w,J)){Y=A;c=Y.fieldCursor_;Mh0(Y);if(Y.discardUnknownFields)var M=void 0;else{var m=Y.decoder_.cursor_-c;Y.decoder_.cursor_=c;M=qt6(Y.decoder_,m)}m=Y=c=void 0;var W=w;M&&((c=(Y=(m=W[oO])!=null?m:W[oO]=new Fj7)[J])!=null?c:Y[J]=[]).push(M)}}if(w=xip(w))w.reviveUnknownFields=S.binaryFields[TPZ];return!0};
H[ccZ]=C;H[TPZ]=mr7.bind(H);return C};
mr7=function(H,C,S,w){var A=this[Jc6],J=this[ccZ],c=kt(void 0,A.messageMetadata,!1),Y=xip(H);if(Y){var M=!1,m=A.extensions;if(m){A=function(u,O,d){if(d.length!==0)if(m[O])for(u=_.Z(d),O=u.next();!O.done;O=u.next()){O=WTW(O.value);try{M=!0,J(c,O)}finally{O.free()}}else w==null||w(H,O,d)};
if(C==null)A9E(Y,A);else if(Y!=null){var W=Y[C];W&&A(Y,C,W)}if(M){var y=H[_.A_]|0;if(y&2&&y&2048&&(S==null||!S.reviveIntoImmutable))throw Error();var N=Qb(y),b=function(u,O){if(xt(H,u,N)!=null)switch(S==null?void 0:S.resolutionBehavior){case 1:return;default:throw Error();}O!=null&&(y=Lr(H,y,u,O,N));delete Y[u]};
C==null?iPE(c,c[_.A_]|0,function(u,O){b(u,O)}):b(C,xt(c,C,N))}}}};
zBU=function(H){H=wVZ(H);var C=H[0].$$binaryReaderFn;if(H=H[1]){var S=Z9E(H),w=Ac(Jc6,AcZ,FTU,H).messageMetadata;return function(A,J,c){return C(A,J,c,w,S)}}return C};
ycE=function(H,C,S){H[C]=S.$$binaryWriterFn};
b9E=function(H,C,S,w){var A,J,c=S.$$binaryWriterFn;H[C]=function(Y,M,m){return c(Y,M,m,J||(J=Ac(NPE,ycE,b9E,w).messageMetadata),A||(A=ED7(w)))}};
ED7=function(H){var C=H[eBU];if(!C){var S=Ac(NPE,ycE,b9E,H);C=function(w,A){return uTV(w,A,S)};
H[eBU]=C}return C};
uTV=function(H,C,S){iPE(H,H[_.A_]|0,function(w,A){if(A!=null){var J=G7Z(S,w);J?J(C,A,w):w<500||LEu(f4E,3)}});
(H=xip(H))&&A9E(H,function(w,A,J){FT(C,C.encoder_.end());for(w=0;w<J.length;w++)FT(C,D9$(J[w])||new Uint8Array(0))})};
G7Z=function(H,C){var S=H[C];if(S)return S;if(S=H.extensions)if(S=S[C]){S=wVZ(S);var w=S[0].$$binaryWriterFn;if(S=S[1]){var A=ED7(S),J=Ac(NPE,ycE,b9E,S).messageMetadata;S=H.isMessageSet?CBE(J,A):function(c,Y,M){return w(c,Y,M,J,A)}}else S=w;
return H[C]=S}};
_.vDw=function(H,C,S){if(Array.isArray(C)){var w=C[_.A_]|0;if(w&4)return C;for(var A=0,J=0;A<C.length;A++){var c=H(C[A]);c!=null&&(C[J++]=c)}J<A&&(C.length=J);S&&(J_(C,(w|5)&-1537),w&2&&Object.freeze(C));return C}};
_.cV=function(H,C,S){return new wP(H,C,S)};
_.l47=function(H,C,S){return new wP(H,C,S)};
_.YD=function(H,C,S){Lr(H,H[_.A_]|0,C,S,Qb(H[_.A_]|0))};
VhZ=function(H,C,S){C=_.gU(C);C!=null&&(_.z7(H,S,1),H=H.encoder_,S=c_Z||(c_Z=new DataView(new ArrayBuffer(8))),S.setFloat64(0,+C,!0),$M=S.getUint32(0,!0),pP=S.getUint32(4,!0),_.Mr(H,$M),_.Mr(H,pP))};
oD6=function(H,C,S){C=_.gU(C);C!=null&&(_.z7(H,S,5),H=H.encoder_,Ynp(C),_.Mr(H,$M))};
_.T7=function(H,C,S){C=kdZ(C);if(C!=null&&(LjZ(C),C!=null))switch(_.z7(H,S,0),typeof C){case "number":H=H.encoder_;kM(C);qr(H,$M,pP);break;case "bigint":S=BigInt.asUintN(64,C);S=new O97(Number(S&BigInt(4294967295)),Number(S>>BigInt(32)));qr(H.encoder_,S.JSC$8877_lo,S.JSC$8877_hi);break;default:S=toZ(C),qr(H.encoder_,S.JSC$8877_lo,S.JSC$8877_hi)}};
Q2V=function(H,C,S){C=_.wi(C);C!=null&&C!=null&&(_.z7(H,S,0),_.XVw(H.encoder_,C))};
_.PBE=function(H,C,S){drp(H,S,hW6(C))};
$rp=function(H,C,S){C=_.y_u(C);C!=null&&(_.z7(H,S,0),H.encoder_.JSC$8879_buffer_.push(C?1:0))};
k7u=function(H,C,S){C=_.E_(C);C!=null&&pVp(H,S,Y$0(C))};
hBE=function(H,C,S,w,A){aqE(H,S,x97(C,w),A)};
_.nD7=function(H,C,S){C=C==null||typeof C=="string"||C instanceof v7?C:void 0;C!=null&&pVp(H,S,KjD(C,!0).buffer)};
rcE=function(H,C,S){C=_.EMp(C);C!=null&&C!=null&&(_.z7(H,S,0),mT(H.encoder_,C))};
_.BPE=function(H,C,S){C=_.wi(C);C!=null&&(C=parseInt(C,10),_.z7(H,S,0),_.XVw(H.encoder_,C))};
_.WV=function(H,C){return function(S,w){var A={treatNewDataAsImmutable:!0};w&&Object.assign(A,w);S=WTW(S,void 0,void 0,A);try{var J=new H,c=J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Z9E(C)(c,S);var Y=J}finally{S.free()}return Y}};
_.yv=function(H){return function(C){return DrZ(C,H)}};
KTD=function(H){return function(){return DrZ(this,H)}};
_.thp=function(H){return dU(function(C){return C instanceof H&&!bY(C)})};
_.Et=function(H){return function(C){return LT6(H,C)}};
I4E=function(H,C){return gDi({child:H,origin:C||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:Ur$,getPayloadCase:function(S){return S.getPayloadCase()},
createInitMessage:function(S){var w=new G7,A=new RB6;S=_.f9(A,1,S);return _.vV(w,5,lB,S)}})};
Vv=function(H){return{valueOf:H}.valueOf()};
xrU=function(){var H=null;if(!a47)return H;try{var C=function(S){return S};
H=a47.createPolicy("goog#html",{createHTML:C,createScript:C,createScriptURL:C})}catch(S){}return H};
iMi=function(){HMU===void 0&&(HMU=xrU());return HMU};
_.Ot=function(H){var C=iMi();H=C?C.createScriptURL(H):H;return new o2(H)};
_.Qv=function(H){if(H instanceof o2)return H.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.dP=function(H){return Object.isFrozen(H)&&Object.isFrozen(H.raw)};
Cfw=function(H){return H.toString().indexOf("`")===-1};
$D=function(H){return new _.PV(SME,H)};
p9=function(H){return H instanceof _.PV};
_.kD=function(H){if(p9(H))return H.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
hc=function(H){return new sT6(function(C){return C.substr(0,H.length+1).toLowerCase()===H+":"})};
_.n9=function(H,C){C=C===void 0?jTE:C;if(p9(H))return H;for(var S=0;S<C.length;++S){var w=C[S];if(w instanceof sT6&&w.isValid(H))return $D(H)}};
_.D4=function(H,C){C=C===void 0?jTE:C;return _.n9(H,C)||BV};
_.K9=function(H){var C=window;if(typeof MediaSource!=="undefined"&&H instanceof MediaSource||typeof C.ManagedMediaSource!=="undefined"&&H instanceof C.ManagedMediaSource)return $D(URL.createObjectURL(H));C=H.type;C.toLowerCase()==="application/octet-stream"?C=!0:(C=C.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),C=(C==null?void 0:C.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(C[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(C[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(C[1])||/^font\/[\w-]+$/i.test(C[1])));if(!C)throw Error("Z");return $D(URL.createObjectURL(H))};
_.weZ=function(H){for(var C=_.tc.apply(1,arguments),S=[H[0]],w=0;w<C.length;w++)S.push(String(C[w])),S.push(H[w+1]);return $D(S.join(""))};
_.JY6=function(H){if(!AYi){a:{var C=document.createElement("a");try{C.href=H}catch(S){H=void 0;break a}H=C.protocol;H=H===":"||H===""?"https:":H}return H}try{C=new URL(H)}catch(S){return"https:"}return C.protocol};
_.L9=function(H){H instanceof _.PV?H=_.kD(H):H=F2Z.test(H)?H:void 0;return H};
gP=function(H,C){C=_.L9(C);C!==void 0&&(H.href=C)};
R2=function(H){var C=iMi();H=C?C.createHTML(H):H;return new Ut(H)};
xD=function(H){if(H instanceof Ut)return H.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.He=function(H,C){H.src=_.Qv(C).toString()};
ZM7=function(H,C){H.setAttribute("sandbox","");for(var S=0;S<C.length;S++)H.sandbox.supports&&!H.sandbox.supports(C[S])||H.sandbox.add(C[S])};
_.YMi=function(H,C,S){H.removeAttribute("srcdoc");switch(C){case 0:if(S instanceof o2)throw new cYD("TrustedResourceUrl",0);ZM7(H,[]);C=_.L9(S);C!==void 0&&(H.src=C);break;case 1:if(!(S instanceof o2))throw new cYD(typeof S,1);ZM7(H,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.He(H,S);break;case 2:if(S instanceof o2)throw new cYD("TrustedResourceUrl",2);ZM7(H,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
C=_.L9(S);C!==void 0&&(H.src=C);break;default:_.KP(C)}};
_.CM=function(H,C,S,w){C=_.L9(C);return C!==void 0?H.open(C,S,w):null};
_.Sn=function(H){H=H===void 0?document:H;var C,S;H=(S=(C=H).querySelector)==null?void 0:S.call(C,"script[nonce]");return H==null?"":H.nonce||H.getAttribute("nonce")||""};
_.ws=function(H){var C=iMi();H=C?C.createScript(H):H;return new _.jn(H)};
z9W=function(H){if(H instanceof _.jn)return H.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
MnW=function(H){var C=_.Sn(H.ownerDocument);C&&H.setAttribute("nonce",C)};
_.AY=function(H,C){H.textContent=z9W(C);MnW(H)};
_.JY=function(H,C){H.src=_.Qv(C);MnW(H)};
_.FN=function(H,C){if(H.nodeType===1&&/^(script|style)$/i.test(H.tagName))throw Error("Z");H.innerHTML=xD(C)};
_.ZA=function(H,C,S,w){if(H.length===0)throw Error("Z");H=H.map(function(J){if(J instanceof qMp)J=J.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return J});
var A=S.toLowerCase();if(H.every(function(J){return A.indexOf(J)!==0}))throw Error("aa`"+S);
C.setAttribute(S,w)};
_.ce=function(H,C,S){if(C instanceof o2)H.href=_.Qv(C).toString(),H.rel=S;else{if(TsU.indexOf(S)===-1)throw Error("ba`"+S);C=_.L9(C);C!==void 0&&(H.href=C,H.rel=S)}};
mOU=function(H){if(H instanceof Y$)return H.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.W2$=function(H,C){C=_.L9(C);C!==void 0&&(H.href=C)};
yYw=function(H){return _.Ot(H)};
Ns6=function(H,C){H&&(C=H.indexOf(C),0<=C&&H.splice(C,1))};
zv=function(H){return typeof H==="function"};
bMu=function(H){return H instanceof MO||H&&"closed"in H&&zv(H.remove)&&zv(H.add)&&zv(H.unsubscribe)};
qO=function(){};
Tv=function(H){E$p(function(){throw H;})};
m2=function(H){return H};
We=function(){return e9U(_.tc.apply(0,arguments))};
e9U=function(H){return H.length===0?m2:H.length===1?H[0]:function(C){return H.reduce(function(S,w){return w(S)},C)}};
uN6=function(H){var C;return(C=H!=null?H:void 0)!=null?C:Promise};
GvZ=function(H,C){return new yx(function(S){var w=0;return C.schedule(function(){w===H.length?S.complete():(S.next(H[w++]),S.closed||this.schedule())})})};
fAU=function(H,C){if(!H)throw Error("ca");return new yx(function(S){var w=new MO;w.add(C.schedule(function(){var A=H[Symbol.asyncIterator]();w.add(C.schedule(function(){var J=this;A.next().then(function(c){c.done?S.complete():(S.next(c.value),J.schedule())})}))}));
return w})};
v$W=function(H,C,S){C=C.schedule(function(){try{S.call(this)}catch(w){H.error(w)}},0);
H.add(C)};
VnD=function(H,C){return new yx(function(S){var w;S.add(C.schedule(function(){w=H[lAU]();v$W(S,C,function(){var A=w.next(),J=A.value;A.done?S.complete():(S.next(J),this.schedule())})}));
return function(){var A;return zv((A=w)==null?void 0:A.return)&&w.return()}})};
o$Z=function(H,C){return new yx(function(S){var w=new MO;w.add(C.schedule(function(){var A=H[NO]();w.add(A.subscribe({next:function(J){w.add(C.schedule(function(){return S.next(J)}))},
error:function(J){w.add(C.schedule(function(){return S.error(J)}))},
complete:function(){w.add(C.schedule(function(){return S.complete()}))}}))}));
return w})};
OM7=function(H,C){return new yx(function(S){return C.schedule(function(){return H.then(function(w){S.add(C.schedule(function(){S.next(w);S.add(C.schedule(function(){return S.complete()}))}))},function(w){S.add(C.schedule(function(){return S.error(w)}))})})})};
Xe7=function(H){return new TypeError("da`"+(H!==null&&typeof H==="object"?"an invalid object":"'"+H+"'"))};
dO7=function(H,C){if(H!=null){if(zv(H[NO]))return o$Z(H,C);if(QTW(H))return GvZ(H,C);if(zv(H==null?void 0:H.then))return OM7(H,C);if(Symbol.asyncIterator&&zv(H==null?void 0:H[Symbol.asyncIterator]))return fAU(H,C);if(zv(H==null?void 0:H[lAU]))return VnD(H,C)}throw Xe7(H);};
EM=function(H,C){return C?dO7(H,C):bf(H)};
bf=function(H){if(H instanceof yx)return H;if(H!=null){if(zv(H[NO]))return PfE(H);if(QTW(H))return $OZ(H);if(zv(H==null?void 0:H.then))return peZ(H);if(Symbol.asyncIterator&&zv(H==null?void 0:H[Symbol.asyncIterator]))return kvp(H);if(zv(H==null?void 0:H[lAU]))return h9E(H)}throw Xe7(H);};
PfE=function(H){return new yx(function(C){var S=H[NO]();if(zv(S.subscribe))return S.subscribe(C);throw new TypeError("ea");})};
$OZ=function(H){return new yx(function(C){for(var S=0;S<H.length&&!C.closed;S++)C.next(H[S]);C.complete()})};
peZ=function(H){return new yx(function(C){H.then(function(S){C.closed||(C.next(S),C.complete())},function(S){return C.error(S)}).then(null,Tv)})};
h9E=function(H){return new yx(function(C){for(var S=H[lAU]();!C.closed;){var w=S.next(),A=w.value;w.done?C.complete():C.next(A)}return function(){return zv(S==null?void 0:S.return)&&S.return()}})};
kvp=function(H){return new yx(function(C){n$p(H,C).catch(function(S){return C.error(S)})})};
n$p=function(H,C){var S,w,A,J,c,Y;return _.z(function(M){switch(M.nextAddress){case 1:_.en(M,2,3),J=_.uf(H);case 5:return M.yield(J.next(),8);case 8:w=M.yieldResult;if(w.done){M.jumpTo(3);break}c=w.value;C.next(c);M.jumpTo(5);break;case 3:_.Gv(M);_.fM(M,9);if(!w||w.done||!(A=J.return)){M.jumpTo(9);break}return M.yield(A.call(J),9);case 9:_.Gv(M,0,0,1);if(S)throw S.error;_.lf(M,10,1);break;case 10:_.lf(M,4);break;case 2:Y=_.Vx(M);S={error:Y};M.jumpTo(3);break;case 4:C.complete(),_.oT(M)}})};
rYu=function(H,C){return C?GvZ(H,C):$OZ(H)};
BsU=function(H){return zv(H[H.length-1])?H.pop():void 0};
OM=function(H){var C=H[H.length-1];return C&&zv(C.schedule)?H.pop():void 0};
XN=function(){var H=_.tc.apply(0,arguments),C=OM(H);return C?GvZ(H,C):rYu(H)};
Qx=function(H){var C=zv(H)?H:function(){return H};
return new yx(function(S){return S.error(C())})};
ds=function(H){return function(C){if(zv(C==null?void 0:C.lift))return C.lift(function(S){try{return H(S,this)}catch(w){this.error(w)}});
throw new TypeError("fa");}};
$$=function(){return ds(function(H,C){var S=null;H._refCount++;var w=new Pe(C,void 0,void 0,void 0,function(){if(!H||H._refCount<=0||0<--H._refCount)S=null;else{var A=H._connection,J=S;S=null;!A||J&&A!==J||A.unsubscribe();C.unsubscribe()}});
H.subscribe(w);w.closed||(S=H.connect())})};
K2Z=function(){var H=DOD;var C=C===void 0?0:C;return ds(function(S,w){w.add(H.schedule(function(){return S.subscribe(w)},C))})};
pM=function(H){return ds(function(C,S){var w=0;C.subscribe(new Pe(S,function(A){S.next(H.call(void 0,A,w++))}))})};
L2p=function(H){return pM(function(C){return tnu(C)?H.apply(null,_.k$(C)):H(C)})};
aA$=function(H){if(H.length===1){var C=H[0];if(g$E(C))return{args:C,keys:null};if(C&&typeof C==="object"&&UOV(C)===R9U)return H=IAW(C),{args:H.map(function(S){return C[S]}),
keys:H}}return{args:H,keys:null}};
hY=function(){var H=_.tc.apply(0,arguments),C=OM(H),S=BsU(H);H=aA$(H);var w=H.args,A=H.keys;if(w.length===0)return EM([],C);C=new yx(xOV(w,C,A?function(J){for(var c={},Y=0;Y<J.length;Y++)c[A[Y]]=J[Y];return c}:m2));
return S?C.pipe(L2p(S)):C};
xOV=function(H,C,S){S=S===void 0?m2:S;return function(w){HXE(C,function(){for(var A=H.length,J=Array(A),c=A,Y=H.map(function(){return!1}),M=!0,m={i$jscomp$217:0};m.i$jscomp$217<A;m={i$jscomp$217:m.i$jscomp$217},m.i$jscomp$217++)HXE(C,function(W){return function(){EM(H[W.i$jscomp$217],C).subscribe(new nM(w,function(y){J[W.i$jscomp$217]=y;
M&&(Y[W.i$jscomp$217]=!0,M=!Y.every(m2));M||w.next(S(J.slice()))},function(){return--c===0}))}}(m),w)},w)}};
HXE=function(H,C,S){H?S.add(H.schedule(C)):C()};
iXE=function(H,C,S,w){var A=[],J=0,c=0,Y=!1,M=function(m){J++;bf(S(m,c++)).subscribe(new Pe(C,function(W){C.next(W)},void 0,function(){J--;
for(var W={};A.length&&J<w;W={bufferedValue:void 0})W.bufferedValue=A.shift(),M(W.bufferedValue);!Y||A.length||J||C.complete()}))};
H.subscribe(new Pe(C,function(m){return J<w?M(m):A.push(m)},void 0,function(){Y=!0;
!Y||A.length||J||C.complete()}));
return function(){A=null}};
rs=function(H,C){var S=S===void 0?Infinity:S;if(zv(C))return rs(function(w,A){return pM(function(J,c){return C(w,J,A,c)})(bf(H(w,A)))},S);
typeof C==="number"&&(S=C);return ds(function(w,A){return iXE(w,A,H,S)})};
CRV=function(H){H=H===void 0?Infinity:H;return rs(m2,H)};
Slp=function(){var H=_.tc.apply(0,arguments);return CRV(1)(rYu(H,OM(H)))};
spZ=function(H){return new yx(function(C){bf(H()).subscribe(C)})};
Be=function(H,C,S){if(zv(S)){var w=S;S=void 0}if(w)return Be(H,C,S).pipe(L2p(w));w=_.Z(zv(H.addEventListener)&&zv(H.removeEventListener)?jpV.map(function(c){return function(Y){return H[c](C,Y,S)}}):zv(H.addListener)&&zv(H.removeListener)?wjp.map(AbE(H,C)):zv(H.on)&&zv(H.off)?Jbi.map(AbE(H,C)):[]);
var A=w.next().value,J=w.next().value;return!A&&QTW(H)?rs(function(c){return Be(c,C,S)})(rYu(H)):new yx(function(c){if(!A)throw new TypeError("ga");
var Y=function(){var M=_.tc.apply(0,arguments);return c.next(1<M.length?M:M[0])};
A(Y);return function(){return J(Y)}})};
AbE=function(H,C){return function(S){return function(w){return H[S](C,w)}}};
KM=function(){var H=_.tc.apply(0,arguments),C=OM(H);var S=typeof H[H.length-1]==="number"?H.pop():Infinity;return H.length?H.length===1?bf(H[0]):CRV(S)(rYu(H,C)):DA};
ZXW=function(H){return H.length===1&&FD6(H[0])?H[0]:H};
cbZ=function(){var H=ZXW(_.tc.apply(0,arguments));return ds(function(C,S){var w=[C].concat(_.k$(H)),A=function(){if(!S.closed)if(w.length>0){try{var J=bf(w.shift())}catch(Y){A();return}var c=new Pe(S,void 0,qO,qO);S.add(J.subscribe(c));c.add(A)}else S.complete()};
A()})};
LM=function(H){return ds(function(C,S){var w=0;C.subscribe(new Pe(S,function(A){return H.call(void 0,A,w++)&&S.next(A)}))})};
z_U=function(){var H=_.tc.apply(0,arguments);H=ZXW(H);return H.length===1?bf(H[0]):new yx(Yl$(H))};
Yl$=function(H){return function(C){for(var S=[],w={i$jscomp$220:0};S&&!C.closed&&w.i$jscomp$220<H.length;w={i$jscomp$220:w.i$jscomp$220},w.i$jscomp$220++)S.push(bf(H[w.i$jscomp$220]).subscribe(new Pe(C,function(A){return function(J){if(S){for(var c=0;c<S.length;c++)c!==A.i$jscomp$220&&S[c].unsubscribe();S=null}C.next(J)}}(w))))}};
M2E=function(){var H=_.tc.apply(0,arguments),C=BsU(H),S=ZXW(H);return S.length?new yx(function(w){var A=S.map(function(){return[]}),J=S.map(function(){return!1});
w.add(function(){A=J=null});
for(var c={sourceIndex$jscomp$1:0};!w.closed&&c.sourceIndex$jscomp$1<S.length;c={sourceIndex$jscomp$1:c.sourceIndex$jscomp$1},c.sourceIndex$jscomp$1++)bf(S[c.sourceIndex$jscomp$1]).subscribe(new Pe(w,function(Y){return function(M){A[Y.sourceIndex$jscomp$1].push(M);A.every(function(m){return m.length})&&(M=A.map(function(m){return m.shift()}),w.next(C?C.apply(null,_.k$(M)):M),A.some(function(m,W){return!m.length&&J[W]})&&w.complete())}}(c),void 0,function(Y){return function(){J[Y.sourceIndex$jscomp$1]=
!0;
!A[Y.sourceIndex$jscomp$1].length&&w.complete()}}(c)));
return function(){A=J=null}}):DA};
qlW=function(H){var C,S,w;return!!H&&typeof H.active==="boolean"&&typeof((C=H.clock)==null?void 0:C.now)==="function"&&((S=H.clock)==null?void 0:S.timeline)!==void 0&&!((w=H.lastMeasurement)==null||!w.timestamp)&&typeof H.equivalentTo==="function"&&typeof H.extrapolateToNow==="function"&&typeof H.extrapolateToTime==="function"&&typeof H.map==="function"&&typeof H.joinWith==="function"};
TxU=function(H){function C(S){return typeof S==="boolean"||typeof S==="string"||typeof S==="number"||S===void 0||S===null}
return C(H)?!0:Array.isArray(H)?H.every(C):typeof H==="object"?Object.keys(H).every(function(S){return typeof S==="string"})&&Object.values(H).every(function(S){return Array.isArray(S)?S.every(C):C(S)}):!1};
mHw=function(H){if(TxU(H))return H;if(qlW(H))return{lastMeasurement:{value:mHw(H.lastMeasurement.value),timestamp:gs(H.lastMeasurement.timestamp,new UM(0,H.lastMeasurement.timestamp.timeline))},active:H.active};try{return JSON.parse(JSON.stringify(H))}catch(C){}return String(H)};
RT=function(H,C){return function(S){return new yx(function(w){return S.subscribe(function(A){H.timeExecution(C,function(){w.next(A)})()},function(A){H.timeExecution(C,function(){w.error(A)})()},function(){H.timeExecution(C,function(){w.complete()})()})})}};
WD0=function(H,C){var S=!1;return new yx(function(w){var A=H.setTimeout(function(){S=!0;w.next(!0);w.complete()},C);
return function(){S||H.clearTimeout(A)}})};
yb$=function(H){H=H.global;if(H.fetchLater)return H.fetchLater.bind(H)};
IT=function(H){return ds(function(C,S){var w=null,A=!1,J;w=C.subscribe(new Pe(S,void 0,function(c){J=bf(H(c,IT(H)(C)));w?(w.unsubscribe(),w=null,J.subscribe(S)):A=!0}));
A&&(w.unsubscribe(),w=null,J.subscribe(S))})};
Nxi=function(H,C,S){return function(w,A){var J=S,c=C,Y=0;w.subscribe(new Pe(A,function(M){var m=Y++;c=J?H(c,M,m):(J=!0,M);A.next(c)},void 0,void 0))}};
bXU=function(H){H=H===void 0?null:H;return ds(function(C,S){var w=!1;C.subscribe(new Pe(S,function(A){w=!0;S.next(A)},void 0,function(){w||S.next(H);
S.complete()}))})};
aT=function(){return ds(function(H,C){H.subscribe(new Pe(C,qO))})};
x$=function(H){return ds(function(C,S){C.subscribe(new Pe(S,function(){return S.next(H)}))})};
Hj=function(H){return H<=0?function(){return DA}:ds(function(C,S){var w=0;
C.subscribe(new Pe(S,function(A){++w<=H&&(S.next(A),H<=w&&S.complete())}))})};
iR=function(H){var C=C===void 0?m2:C;var S;H=(S=H)!=null?S:ElV;return ds(function(w,A){var J,c=!0;w.subscribe(new Pe(A,function(Y){var M=C(Y);if(c||!H(J,M))c=!1,J=M,A.next(Y)}))})};
ElV=function(H,C){return H===C};
uAU=function(H){H=H===void 0?e_$:H;return ds(function(C,S){var w=!1;C.subscribe(new Pe(S,function(A){w=!0;S.next(A)},void 0,function(){return w?S.complete():S.error(H())}))})};
e_$=function(){return new GVD};
CX=function(){var H=_.tc.apply(0,arguments);return function(C){return Slp(C,XN.apply(null,_.k$(H)))}};
f9V=function(H){return ds(function(C,S){var w=0;C.subscribe(new Pe(S,function(A){H.call(void 0,A,w++,C)||(S.next(!1),S.complete())},void 0,function(){S.next(!0);
S.complete()}))})};
vlu=function(){return ds(function(H,C){var S=[];H.subscribe(new Pe(C,function(w){S.push(w);1<S.length&&S.shift()},void 0,function(){for(var w=_.Z(S),A=w.next();!A.done;A=w.next())C.next(A.value);
C.complete()},function(){S=null}))})};
l9D=function(H,C){var S=arguments.length>=2;return function(w){return w.pipe(H?LM(function(A,J){return H(A,J,w)}):m2,vlu(),S?bXU(C):uAU(function(){return new GVD}))}};
sl=function(H){var C=zv(H)?H:function(){return H};
return zv()?ds(function(S,w){var A=C();(void 0)(A).subscribe(w).add(S.subscribe(A))}):function(S){var w=new S2(S,C);
zv(S==null?void 0:S.lift)&&(w.lift=S.lift);w.source=S;w.subjectFactory=C;return w}};
wx=function(H){var C=new j2(H,void 0,void 0);return function(S){return sl(function(){return C})(S)}};
Ab=function(H,C){return ds(Nxi(H,C,arguments.length>=2))};
Jb=function(){var H=_.tc.apply(0,arguments),C=OM(H);return ds(function(S,w){(C?Slp(H,S,C):Slp(H,S)).subscribe(w)})};
FA=function(H){return ds(function(C,S){var w=null,A=0,J=!1;C.subscribe(new Pe(S,function(c){var Y;(Y=w)==null||Y.unsubscribe();Y=A++;bf(H(c,Y)).subscribe(w=new Pe(S,function(M){return S.next(M)},void 0,function(){w=null;
J&&!w&&S.complete()}))},void 0,function(){(J=!0,!w)&&S.complete()}))})};
Z9=function(H,C){C=C===void 0?!1:C;return ds(function(S,w){var A=0;S.subscribe(new Pe(w,function(J){var c=H(J,A++);(c||C)&&w.next(J);!c&&w.complete()}))})};
V2i=function(H,C,S){var w=zv(H)||C||S?{next:H,error:C,complete:S}:H;return w?ds(function(A,J){A.subscribe(new Pe(J,function(c){var Y;(Y=w.next)==null||Y.call(w,c);J.next(c)},function(c){var Y;
(Y=w.error)==null||Y.call(w,c);J.error(c)},function(){var c;
(c=w.complete)==null||c.call(w);J.complete()}))}):m2};
ol$=function(){var H=_.tc.apply(0,arguments),C=BsU(H);return ds(function(S,w){for(var A=H.length,J=Array(A),c=H.map(function(){return!1}),Y=!1,M={i$jscomp$230:0};M.i$jscomp$230<A;M={i$jscomp$230:M.i$jscomp$230},M.i$jscomp$230++)bf(H[M.i$jscomp$230]).subscribe(new Pe(w,function(m){return function(W){J[m.i$jscomp$230]=W;
Y||c[m.i$jscomp$230]||(c[m.i$jscomp$230]=!0,(Y=c.every(m2))&&(c=null))}}(M),void 0,qO));
S.subscribe(new Pe(w,function(m){Y&&(m=[m].concat(_.k$(J)),w.next(C?C.apply(null,_.k$(m)):m))}))})};
Xji=function(H){try{return!!H&&H.location.href!=null&&OXE(H,"foo")}catch(C){return!1}};
QpZ=function(H){var C=[],S=0,w;for(w in H)C[S++]=w;return C};
dH7=function(H,C){for(var S in H)if(H[S]==C)return!0;return!1};
PR6=function(H,C,S){for(var w in H)if(C.call(S,H[w],w,H))return w};
$HU=function(H){if(!H||typeof H!=="object")return H;if(typeof H.clone==="function")return H.clone();if(typeof Map!=="undefined"&&H instanceof Map)return new Map(H);if(typeof Set!=="undefined"&&H instanceof Set)return new Set(H);if(H instanceof Date)return new Date(H.getTime());var C=Array.isArray(H)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(H)||H instanceof DataView?{}:new H.constructor(H.length),S;for(S in H)C[S]=$HU(H[S]);return C};
pjZ=function(H){var C=arguments.length;if(C==1&&Array.isArray(arguments[0]))return pjZ.apply(null,arguments[0]);if(C%2)throw Error("ka");for(var S={},w=0;w<C;w+=2)S[arguments[w]]=arguments[w+1];return S};
kVW=function(H){var C=arguments.length;if(C==1&&Array.isArray(arguments[0]))return kVW.apply(null,arguments[0]);for(var S={},w=0;w<C;w++)S[arguments[w]]=!0;return S};
_.cj=function(H){return new qMp(H[0].toLowerCase())};
h_i=function(H){for(var C=_.tc.apply(1,arguments),S=H[0],w=0;w<H.length-1;w++)S+=String(C[w]),S+=H[w+1];C=document.implementation.createHTMLDocument("");w=C.createElement("style");C.head.appendChild(w);C=w.sheet;C.insertRule(S,0);if(C.cssRules.length===1&&(S=C.cssRules[0],S instanceof CSSStyleRule))return new Y$(S.cssText.replace(/</g,"\\3C "))};
nlw=function(H){try{return new URL(H,window.document.baseURI)}catch(C){return new URL("about:invalid")}};
rbD=function(H,C){var S=C.createRange();S.selectNode(C.body);H=R2(H);return S.createContextualFragment(xD(H))};
BxZ=function(H){H=H.nodeName;return typeof H==="string"?H:"FORM"};
DHU=function(H){H=H.nodeType;return H===1||typeof H!=="number"};
zV=function(H,C,S){H.setAttribute(C,S)};
KDw=function(H){return H.parts.map(function(C){var S=C.descriptor;return""+C.url+(S?" "+S:"")}).join(" , ")};
_.qH=function(H){var C=_.tc.apply(1,arguments);if(C.length===0)return _.Ot(H[0]);for(var S=H[0],w=0;w<C.length;w++)S+=encodeURIComponent(C[w])+H[w+1];return _.Ot(S)};
_.TV=function(H,C){H=_.Qv(H).toString();var S=H.split(/[?#]/),w=/[?]/.test(H)?"?"+S[1]:"";return t2W(S[0],w,/[#]/.test(H)?"#"+(w?S[2]:S[1]):"",C)};
t2W=function(H,C,S,w){function A(c,Y){c!=null&&(Array.isArray(c)?c.forEach(function(M){return A(M,Y)}):(C+=J+encodeURIComponent(Y)+"="+encodeURIComponent(c),J="&"))}
var J=C.length?"&":"?";w.constructor===Object&&(w=Object.entries(w));Array.isArray(w)?w.forEach(function(c){return A(c[1],c[0])}):w.forEach(A);
return _.Ot(H+C+S)};
mD=function(H,C,S,w){this.top=H;this.right=C;this.bottom=S;this.left=w};
LDZ=function(H){H=H.global;if(H.PendingGetBeacon)return H.PendingGetBeacon};
El=function(H){return function(C){return C.pipe(glW(H,sl(new Wj)))}};
e2=function(H){return function(C){return C.pipe(glW(H,wx(1)))}};
glW=function(H,C){function S(w){return new yx(function(A){return w.subscribe(function(J){uR(H,function(){return void A.next(J)},3)},function(J){uR(H,function(){return void A.error(J)},3)},function(){uR(H,function(){return void A.complete()},3)})})}
return We(S,K2Z(),C,$$(),S)};
I9E=function(H){var C=UHp(H);return C===null?new GV(null):C.pipe(pM(function(S){S=S.serialize();if(R_p)S=_.s$.btoa(S);else{for(var w=[],A=0,J=0;J<S.length;J++){var c=S.charCodeAt(J);c>255&&(w[A++]=c&255,c>>=8);w[A++]=c}S=_.QO(w)}return S}),Hj(1),e2(H.queue))};
a9u=function(H){var C=C===void 0?{}:C;if(typeof Event==="function")return new Event(H,C);if(typeof document!=="undefined"){var S=document.createEvent("CustomEvent");S.initCustomEvent(H,C.bubbles||!1,C.cancelable||!1,C.detail);return S}throw Error();};
xHp=function(H){return typeof H==="string"?document.getElementById(H):H};
i6W=function(H){var C=!1;C=C===void 0?!1:C;if(H.tagName==="IMG"){if(H.complete&&(!H.naturalWidth||!H.naturalHeight))return!0;var S;if(C&&((S=H.style)==null?void 0:S.display)==="none")return!0}var w,A;return H6U.test((w=H.getAttribute("width"))!=null?w:"")&&H6U.test((A=H.getAttribute("height"))!=null?A:"")};
Cd7=function(H,C){if(H.tagName==="IMG")return H.naturalWidth&&H.naturalHeight?!0:!1;try{if(H.readyState)var S=H.readyState;else{var w,A;S=(w=H.contentWindow)==null?void 0:(A=w.document)==null?void 0:A.readyState}return S==="complete"}catch(J){return C===void 0?!1:C}};
Sp7=function(H){H||(H=function(C,S,w){C.addEventListener(S,w)});
return H};
Akp=function(H,C){var S=s7u();S=S===void 0?new j77:S;if(H=xHp(H)){var w=Sp7(w);for(var A=!1,J=function(d){A||(A=!0,C(d))},c,Y=2,M=0;M<wlp.length;++M)if(wlp[M]===H.tagName){Y=3;
c=[H];break}c||(c=H.querySelectorAll(wlp.join(",")));var m=0,W=0,y=!0,N=H=!1;M={};for(var b=0;b<c.length;M={isImg:void 0},b++){var u=c[b];if(!i6W(u))if(M.isImg=u.tagName==="IMG",Cd7(u,S.crossDomainLoadedDefault))H=!0,M.isImg&&(y=!0);else{m++;var O=function(d){return function(p){m--;!m&&y&&J(Y);d.isImg&&(p=p&&p.type==="error",W--,p||(y=!0),!W&&N&&y&&J(Y))}}(M);
w(u,"load",O);M.isImg&&(W++,w(u,"error",O))}}W===0&&(y=!0);c=null;c=_.s$.document.readyState==="complete";if(m===0&&!H&&c)Y=5;else if(m||!H){w(_.s$,"load",function(){!S.pendingImagesBlockLoad||!W&&y?J(4):N=!0});
return}J(Y)}};
Jk0=function(H,C,S){if(H)for(var w=0;H!=null&&w<500&&!S(H);++w)H=C(H)};
FmE=function(H,C){Jk0(H,function(S){try{return S===S.parent?null:S.parent}catch(w){}return null},C)};
Z67=function(H,C){if(H.tagName=="IFRAME")C(H);else{H=H.querySelectorAll("IFRAME");for(var S=0;S<H.length&&!C(H[S]);++S);}};
ck7=function(H){return(H=H.ownerDocument)&&(H.parentWindow||H.defaultView)||null};
Yp$=function(H,C,S){try{var w=JSON.parse(S.data)}catch(c){}if(typeof w==="object"&&w&&w.type==="creativeLoad"){var A=ck7(H);if(S.source&&A){var J;FmE(S.source,function(c){try{if(c.parent===A)return J=c,!0}catch(Y){}});
J&&Z67(H,function(c){if(c.contentWindow===J)return C(w),!0})}}};
zzV=function(H){return typeof H==="string"?document.getElementById(H):H};
mx7=function(){var H={};return H[0]=_.qH(Mm0,"current"),H[1]=_.qH(qp0),H[2]=_.qH(TS$),H};
fX=function(H,C){return H.left===C.left&&H.top===C.top&&H.width===C.width&&H.height===C.height};
WmE=function(H,C){return{left:Math.max(H.left,C.left),top:Math.max(H.top,C.top),width:Math.max(0,Math.min(H.left+H.width,C.left+C.width)-Math.max(H.left,C.left)),height:Math.max(0,Math.min(H.top+H.height,C.top+C.height)-Math.max(H.top,C.top))}};
yku=function(H,C){return{left:Math.round(H.left+C.x),top:Math.round(H.top+C.y),width:H.width,height:H.height}};
NSp=function(H,C,S){if(H&&C!==null&&C!=C.top){if(!C.top)return new _.vj(-12245933,-12245933);C=C.top}try{return(S===void 0?0:S)?(new _.vj(C.innerWidth,C.innerHeight)).round():_.lR(C).round()}catch(w){return new _.vj(-12245933,-12245933)}};
b6Z=function(H,C,S){try{if(H){if(!C.top)return new mD(-12245933,-12245933,-12245933,-12245933);C=C.top}var w=NSp(H,C,S),A=w.height,J=w.width;if(J===-12245933)return new mD(J,J,J,J);var c=op(Ol(C.document)),Y=c.x,M=c.y;return new mD(M,Y+J,M+A,Y)}catch(m){return new mD(-12245933,-12245933,-12245933,-12245933)}};
EJp=function(H){var C;return(C=H.google_tag_data)!=null?C:H.google_tag_data={}};
ez$=function(H){var C,S;return typeof((C=H.navigator)==null?void 0:(S=C.userAgentData)==null?void 0:S.getHighEntropyValues)==="function"};
GZi=function(H){if(!ez$(H))return null;var C=EJp(H);if(C.uach_promise)return C.uach_promise;H=H.navigator.userAgentData.getHighEntropyValues(uvp).then(function(S){C.uach!=null||(C.uach=S);return S});
return C.uach_promise=H};
plD=function(H){var C;return faV(vJ0(laE(VmU(oJZ(O6i(Xl$(Q7E(dxD(new PdZ,H.architecture||""),H.bitness||""),H.mobile||!1),H.model||""),H.platform||""),H.platformVersion||""),H.uaFullVersion||""),((C=H.fullVersionList)==null?void 0:C.map(function(S){var w=new $xW;w=_.XA(w,1,S.brand);return _.XA(w,2,S.version)}))||[]),H.wow64||!1)};
kZ7=function(H){var C,S;return(S=(C=GZi(H))==null?void 0:C.then(function(w){return plD(w)}))!=null?S:null};
hz7=function(H,C){return new yx(function(S){var w=!1,A=Array(C.length);A.fill(void 0);var J=new Set,c=new Set,Y=function(y,N){H.running?(A[N]=y,J.add(N),w||(w=!0,uR(H,function(){w=!1;S.next(_.BZ(A))},1))):S.error(new dx(N))},M=function(y,N){c.add(N);
J.add(N);uR(H,function(){S.error(y)},1)},m=function(y){c.add(y);
uR(H,function(){c.size===C.length&&S.complete()},1)},W=C.map(function(y,N){return y.subscribe(function(b){return void Y(b,N)},function(b){return void M(b,N)},function(){return void m(N)})});
return function(){W.forEach(function(y){return void y.unsubscribe()})}})};
BSw=function(H,C,S){function w(){if(C.debugChannel){var d=C.debugChannel,p=d.next;var k={creativeId:C.debugNames.getName(S),requiredSignals:A,signals:Object.assign({},J),hasPrematurelyCompleted:c,errorMessage:Y,erroredSignalKey:M};k={specMajor:2,specMinor:0,specPatch:0,timestamp:gs(C.timeProvider.now(),new UM(0,C.timeProvider.timeline)),instanceId:C.debugNames.getName(C.symbol),creativeState:k};p.call(d,k)}}
for(var A=Object.keys(H),J={},c=!1,Y=null,M=null,m={},W=new Set,y=[],N=[],b=_.Z(A),u=b.next(),O={};!u.done;O={key$jscomp$398:void 0},u=b.next())O.key$jscomp$398=u.value,u=H[O.key$jscomp$398],u instanceof GV?(m[O.key$jscomp$398]=u.value,W.add(O.key$jscomp$398),C.debugChannel&&(J[String(O.key$jscomp$398)]=mHw(u.value))):(u=u.pipe(iR(function(d,p){return qlW(d)||qlW(p)?!1:d===p}),pM(function(d){return function(p){C.debugChannel&&(J[String(d.key$jscomp$398)]=mHw(p),w());
var k={};return k[d.key$jscomp$398]=p,k}}(O)),IT(function(d){return function(p){if(p instanceof dx)throw new nJV(String(d.key$jscomp$398));
throw p;}}(O)),V2i(function(d){return function(){W.add(d.key$jscomp$398)}}(O),function(d){return function(p){M=String(d.key$jscomp$398);
Y=String(p);w()}}(O),function(d){return function(){W.has(d.key$jscomp$398)||(c=!0,w())}}(O))),N.push(O.key$jscomp$398),y.push(u));
(H=Object.keys(J).length>0)&&w();b=hz7(C.queue,y).pipe(IT(function(d){if(d instanceof dx)throw new rk7(String(N[d.inputObservableIndex]));throw d;}),pM(function(d){return Object.freeze(Object.assign.apply(Object,[{},
m].concat(_.k$(d))))}));
return(y=y.length>0)&&H?KM(XN(Object.freeze(m)),b):y?b:XN(Object.freeze(m))};
DxE=function(H,C,S,w,A){return H.performanceMonitor.timeExecution.bind(H.performanceMonitor)(733,function(){var J={};try{return C.pipe(IT(function(c){w(Object.assign({},J,{error:c}));return DA}),rs(function(c){try{var Y=S(H,c)}catch(m){return w(Object.assign({},J,{error:m instanceof Error?m:String(m)})),DA}var M={};
return BSw(Y,H,c.symbol).pipe(V2i(function(m){M=m}),wx(1),$$()).pipe(A,IT(function(m){w(Object.assign({},M,{error:m}));
return DA}),CX(void 0),pM(function(){return!0}))})).pipe(Ab(function(c){return c+1},0),IT(function(c){w(Object.assign({},J,{error:c}));
return DA}))}catch(c){return w(Object.assign({},J,{error:c})),DA}})()};
Pj=function(H){var C=new Map;if(typeof H!=="object"||H===null)return C;Object.values(H).forEach(function(S){S&&typeof S.extrapolateToNow==="function"&&(C.has(S.clock.timeline)||C.set(S.clock.timeline,S.clock.now()))});
return C};
Kmw=function(H,C){return typeof H==="string"?encodeURIComponent(H):typeof H==="number"?String(H):Array.isArray(H)?H.map(function(S){return Kmw(S,C)}).join(","):H instanceof UM?H.toString():H&&typeof H.extrapolateToNow==="function"?Kmw(H.extrapolateUsingTimestampMap(C).value,C):H===!0?"1":H===!1?"0":H===void 0||H===null?null:H instanceof tmp?Lmp(H):[H.top,
H.left,H.top+H.height,H.left+H.width].join()};
gJw=function(H,C){H=Object.entries(H).map(function(S){var w=_.Z(S);S=w.next().value;w=w.next().value;w=Kmw(w,C);return w===null?"":S+"="+w}).filter(function(S){return S!==""});
return H.length?H.join("&"):""};
IaE=function(H,C){var S=Ux7,w=Rz$;C=C===void 0?.01:C;return function(A){C>0&&Math.random()<=C&&(H.global.HTMLFencedFrameElement&&H.global.fence&&typeof H.global.fence.reportEvent==="function"&&H.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),A=Object.assign({},A,{errorMessage:A.error instanceof Error&&A.error.message?A.error.message:String(A.error),errorStack:A.error instanceof Error&&A.error.stack?String(A.error.stack):null,errorName:A.error instanceof
Error&&A.error.name?String(A.error.name):null,errorContext:String(H.performanceMonitor.timedFunctionContext),errorEscapedQueryId:A.escapedQueryId}),S(Object.assign({},A,{payloadMapper:function(){return function(J){try{return w(Object.assign({},J))}catch(c){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),Pj(A)).forEach(function(J){H.beaconFactory.makeBeacon(J).sendNow()}))}};
aai=function(){var H=_.tc.apply(0,arguments);return function(C){var S=C.pipe(wx(1),$$());C=H.map(function(w){return S.pipe(w,CX(!0))});
return hY(C).pipe(Hj(1),aT())}};
xx7=function(){var H=_.tc.apply(0,arguments);return function(C){var S=C.pipe(wx(1),$$());C=H.map(function(w){return S.pipe(w,CX(!0))});
return KM.apply(null,_.k$(C)).pipe(Hj(1),aT())}};
HsW=function(H,C){return function(S){var w=S.pipe(wx(1),$$());S=w.pipe(H,CX(!0));w=w.pipe(We(C,wx(),$$()),CX(!0));S=hY([S,w]);return z_U(S,w).pipe(Hj(1),aT())}};
isZ=function(H,C,S){S(!0)};
CWV=function(H,C){return We(FA(function(S){var w=H(S),A=C(S),J={};return w&&A&&J?new yx(function(c){A(w,J,function(Y){c.next(Object.assign({},S,{canEmit:Y}));c.complete()});
return function(){}}):$l}),LM(function(S){return S.canEmit}))};
SFw=function(H){var C={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(S){return S.pipe(FA(function(w){return new yx(function(A){function J(){Y.disconnect();M.unsubscribe()}
var c=H.MutationObserver;if(c&&w.ref!==void 0){var Y=new c(function(m){A.next(m)});
Y.observe(w.ref,C);var M=w.JSC$9373_released.subscribe(J);return J}})}))}};
sEZ=function(H){if(H.measurementDeferralState===3)return null;if(H.timeOnScreenReason!==void 0){var C=H.creativeFound===!1?"n":null;if(C!==null)return C}return H.geometricMeasurementErrors instanceof pX?"msf":H.contextValidationErrors instanceof kl?"c":H.contextVisibilityKnown===!1?"pv":H.geometricMeasurementErrors||H.contextValidationErrors?"x":null};
wNE=function(H,C){return H.replace(jEU,function(S,w){try{var A=_.hb.get(C,w);if(A==null||A.toString()==null)return S;A=A.toString();if(A==""||!_.YE(A==null?"":String(A)))return encodeURIComponent(A).replace(/%2C/g,",")}catch(J){}return S})};
AaE=function(H,C){var S=Object.assign({},H),w=H.userAgentClientHints;S=(delete S.userAgentClientHints,S);S=H.payloadMapper(S);var A=gJw(S,C);return _.nX(H.urlPrefixes,function(J){var c="";typeof w==="string"&&(c="&"+gJw({uach:w},C));var Y={};return wNE(J,(Y.VIEWABILITY=A,Y))+c})};
Ux7=function(H,C){var S=H.payloadMapper(H),w=gJw(S,C);return w?_.nX(H.urlPrefixes,function(A){A=A.indexOf("?")>=0?A:A+"?";A="?&".indexOf(A.slice(-1))>=0?A:A+"&";return A+w}):H.urlPrefixes};
JaV=function(){return We(LM(function(H){return H!==void 0}),pM(function(H){return H}))};
FBZ=function(H){return We(pM(function(){return!0}),Jb(!1),e2(H))};
Zsu=function(H){return H.length<=0?DA:hY(H.map(function(C){var S=0;return C.pipe(pM(function(w){return{index:S++,value:w}}))})).pipe(LM(function(C){return C.every(function(S){return S.index===C[0].index})}),pM(function(C){return C.map(function(S){return S.value})}))};
caU=function(H,C){H.currentState&&(H.previousState=H.currentState);H.currentState=C;H.previousState&&H.previousState.value?(C=Math.max(0,gs(C.timestamp,H.previousState.timestamp)),H.totalTime+=C,H.consecutiveTime+=C):H.consecutiveTime=0;return H};
YFZ=function(){return We(Ab(caU,{totalTime:0,consecutiveTime:0}),pM(function(H){return H.totalTime}))};
zUW=function(){return We(Ab(caU,{totalTime:0,consecutiveTime:0}),pM(function(H){return H.consecutiveTime}))};
ML6=function(H,C){return function(S){return Zsu(C.map(function(w){return S.pipe(H(w))}))}};
qFD=function(){var H;return We(V2i(function(C){return void(H=C.timestamp)}),zUW(),pM(function(C){return{timestamp:H,
value:Math.round(C)}}))};
T6w=function(H,C){return fX(H.topWindowViewportExternalGeometry,C.topWindowViewportExternalGeometry)&&fX(H.elementGeometry,C.elementGeometry)&&fX(H.exposedViewportLocalGeometry,C.exposedViewportLocalGeometry)&&fX(H.intersectionGeometry,C.intersectionGeometry)&&H.elementGeometrySourceName===C.elementGeometrySourceName&&H.measurementRequests===C.measurementRequests&&H.viewportGeometrySourceName===C.viewportGeometrySourceName&&H.viewportLocalAppOffset.x===C.viewportLocalAppOffset.x&&H.viewportLocalAppOffset.y===
C.viewportLocalAppOffset.y};
N6$=function(H,C){return function(S){return function(w){var A=w.pipe(sl(new Wj),$$());w=S.element.pipe(iR());A=A.pipe(pM(function(J){return J.value}));
return hY([w,A,C]).pipe(pM(function(J){var c=_.Z(J);J=c.next().value;var Y=c.next().value;c=c.next().value;if(J.ref===void 0)var M={top:0,left:0,width:0,height:0};else{M=J.ref.getBoundingClientRect();var m=J.ref,W=H.global,y=new _.rx(0,0),N=Bj(_.D9(m));if(OXE(N,"parent")){do{if(N==W)var b=_.KX(m);else b=mjU(m),b=new _.rx(b.left,b.top);y.x+=b.x;y.y+=b.y}while(N&&N!=W&&N!=N.parent&&(m=N.frameElement)&&(N=N.parent))}M={top:y.y,left:y.x,width:M.width,height:M.height}}M=yku(M,Y.viewportLocalAppOffset);
W=WmE(M,Y.exposedViewportLocalGeometry);y=H.timeProvider.now();N=Object;m=N.assign;if(c!==2||H.inCrossDomainIframe||W.width<=0||W.height<=0)var u=!1;else try{var O=H.document.elementFromPoint(W.left+W.width/2,W.top+W.height/2);u=O?!WB7(O,J):!1}catch(d){u=!1}return{timestamp:y,value:m.call(N,{},Y,{elementGeometrySourceName:"geo",intersectionGeometry:u?ya7.intersectionGeometry:W,elementGeometry:M})}}),El(H.queue))}}};
WB7=function(H,C,S){S=S===void 0?0:S;return H.ref===void 0||C.ref===void 0?!1:H.ref===C.ref||_.tb(C.ref,function(w){return w===H.ref})?!0:C.ref.ownerDocument&&C.ref.ownerDocument.defaultView&&C.ref.ownerDocument.defaultView===C.ref.ownerDocument.defaultView.top?!1:S<10&&C.ref.ownerDocument&&C.ref.ownerDocument.defaultView&&C.ref.ownerDocument.defaultView.frameElement?WB7(H,new LX(C.ref.ownerDocument.defaultView.frameElement),S+1):!0};
eUZ=function(H){return function(C){return C.pipe(H.ResizeObserver?bsU(H):E17(H),wx(1),$$())}};
bsU=function(H){return function(C){return C.pipe(FA(function(S){var w=H.ResizeObserver;if(!w||S.ref===void 0)return XN(ya7.elementGeometry);var A=(new yx(function(J){function c(){S.ref!==void 0&&Y.unobserve(S.ref);Y.disconnect();M.unsubscribe()}
if(S.ref===void 0)return J.complete(),function(){};
var Y=new w(function(m){m.forEach(function(W){J.next(W)})});
Y.observe(S.ref);var M=S.JSC$9373_released.subscribe(c);return c})).pipe(RT(H.performanceMonitor,736),pM(function(J){return J.contentRect}));
return KM(XN(S.ref.getBoundingClientRect()),A)}),iR(fX))}};
E17=function(H){return function(C){var S=C.pipe(SFw(H)),w=H.onResize;S=KM(C.pipe(pM(function(){return a9u("resize")})),S,w);
return hY(C,S).pipe(RT(H.performanceMonitor,737),pM(function(A){A=_.Z(A).next().value;return A.ref===void 0?void 0:A.ref.getBoundingClientRect()}),JaV(),iR(fX))}};
fpV=function(H,C){var S=ubV(H,C).pipe(wx(1),$$());return function(w){return function(A){A=A.pipe(FA(function(J){return J.element}),iR());
return hY([S,A]).pipe(FA(function(J){var c=_.Z(J);J=c.next().value;c=c.next().value;return GR0(H,J.intersectionObserver,eUZ(H),J.observations,w,J.flushRecords,c)}),El(H.queue))}}};
v1E=function(H){return pM(function(C){return C.value.viewportGeometrySourceName!=="nio"?C:Object.assign({},C,{value:Object.assign({},C.value,{exposedViewportLocalGeometry:gx(H,!0),topWindowViewportExternalGeometry:gx(H,!0)})})})};
lpE=function(H,C){return XN(C).pipe(H,pM(function(){return C}))};
ubV=function(H,C){return H.timeProvider.timeline!==VLp?Qx(new pX(2)):H.MutationObserver?typeof IntersectionObserver==="undefined"?Qx(new pX(0)):(new yx(function(S){var w=new Wj,A=new Ul(w.next.bind(w),{threshold:[].concat(_.k$(C))});S.next({observations:w.pipe(RT(H.performanceMonitor,735)),intersectionObserver:A,flushRecords:function(J){J=A.takeRecords(J);J.length>0&&w.next(J)}})})).pipe(Hj(1),wx(1),$$()):Qx(new pX(1))};
o17=function(H){return dO7(H.sort(function(C,S){return C.time-S.time}),DOD)};
GR0=function(H,C,S,w,A,J,c){return new yx(function(Y){function M(){u||(u=!0,c.ref!==void 0&&C.unobserve(A,c.ref),W.unsubscribe(),b.unsubscribe(),N.unsubscribe(),O.unsubscribe())}
if(c.ref!==void 0){OsV(C,A);C.observe(A,c.ref);var m=new Ip({timestamp:H.timeProvider.now(),value:Object.assign({},ya7,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),W=w.pipe(rs(function(d){return o17(d)}),LM(function(d){return d.target===c.ref}),pM(function(d){return{timestamp:new UM(d.time,VLp),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:d.rootBounds||ap,topWindowViewportExternalGeometry:d.rootBounds||gx(H,!0),measurementRequests:y,elementGeometrySourceName:"nio",intersectionGeometry:d.intersectionRect,elementGeometry:d.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:d.isIntersecting,isV2Visible:d.isVisible}}}),sl(m),$$()).subscribe(Y),y=new Wj,N=y.subscribe(function(){J(A);
Y.next({timestamp:H.timeProvider.now(),value:m.value.value});c.ref!==void 0&&(C.unobserve(A,c.ref),C.observe(A,c.ref))}),b=lpE(S,c).subscribe(function(){y.next()}),u=!1,O=c.JSC$9373_released.subscribe(function(){return M()});
return M}})};
XNV=function(H,C){var S=H.getOnBackgrounded().pipe(pM(function(){return"b"}));
return z_U(C,S).pipe(Hj(1),e2(H.queue))};
xl=function(H){return function(C){var S;return C.pipe(V2i(function(w){return void(S=w.timestamp)}),pM(function(w){return w.value}),H,pM(function(w){return{timestamp:S,
value:w}}))}};
QE$=function(H){return H.intersectionGeometry.width*H.intersectionGeometry.height/(H.elementGeometry.width*H.elementGeometry.height)};
Hl=function(H,C,S){S=S===void 0?function(w,A){return w===A}:S;
return H.timestamp.equals(C.timestamp)&&S(H.value,C.value)};
C6=function(H,C){return C.pipe(pM(function(S){return new id(H.timeProvider,{timestamp:H.timeProvider.now(),value:S})}))};
dju=function(H){return function(C){return C.pipe(ol$(H),pM(function(S){var w=_.Z(S);S=w.next().value;w=w.next().value;var A=S.value;return{timestamp:S.timestamp,value:A>=1?!0:A<=0?!1:A>=w}}))}};
$jZ=function(){return We(LM(function(H,C){return C>0}),PWw,Jb(-1),iR())};
pNU=function(H,C,S){return H?hY([C,S]).pipe(LM(function(w){var A=_.Z(w);w=A.next().value;A=A.next().value;return w.timestamp.equals(A.timestamp)}),pM(function(w){var A=_.Z(w);
w=A.next().value;A=A.next().value;return w.value>A.value?w:A})):C};
n1Z=function(H){return function(C){var S=C.pipe(kRE),w=C.pipe(hUD);return H instanceof yx?H.pipe(FA(function(A){return pNU(A,S,w)})):pNU(H.value,S,w)}};
Ip0=function(H,C,S,w){var A=w.geometryIsOccluded,J=w.exposureThreshold,c=w.wasLargeAdAtRender,Y=w.allowLargeAdThreshold,M=w.largeAdExposureThreshold,m=w.mayUseViewportShareExposure,W=w.hasMeasurementStarted;w=w.useIntersectionObserverV2;C=raZ(H,S,C);S=B6W(H,S);w=DjE(C,w);var y=KBp(H,A,m,C),N=y.pipe(pM(function(t){return t.value}),iR(),e2(H),Ab(function(t,g){return Math.max(t,g)},0)),b=y.pipe(pM(function(t){return t.value}),$jZ(),e2(H)),u=C.pipe(tLi,pM(function(t){return t.value}),Hj(2),iR(),e2(H));
c=LBZ(H,C,c,Y);var O=c.pipe(Jb(!1),iR(),pM(function(t){return t?M:J}));
Y=y.pipe(dju(O),iR(),e2(H));var d=hY([Y,C]).pipe(LM(function(t){var g=_.Z(t);t=g.next().value;g=g.next().value;return t.timestamp.equals(g.timestamp)}),pM(function(t){var g=_.Z(t);
t=g.next().value;g=g.next().value;return{visible:t.value,geometry:g.value.elementGeometry}}),Ab(function(t,g){return!g.visible&&t.visible?t:g},{visible:!1,
geometry:ap}),pM(function(t){return t.geometry}),Jb(ap),e2(H),iR(fX));
m=m instanceof yx?m.pipe(iR(),x$()):$l;O=hY([m,O]).pipe(x$());var p=C.pipe(LM(function(t){return t.value.viewportGeometrySourceName!=="ns"&&t.value.elementGeometrySourceName!=="ns"}),Ab(function(t){return t+1},0),Jb(0),e2(H)),k=S.pipe(x$(!0),Jb(!1),e2(H));
k=hY([W,k]).pipe(pM(function(t){var g=_.Z(t);t=g.next().value;g=g.next().value;return t&&!g}),e2(H));
var R=C.pipe(g1w,iR()),L=R.pipe(pM(function(t){return t.value}),Ab(function(t,g){return Math.max(t,g)},0),iR(),e2(H));
H=R.pipe(pM(function(t){return t.value}),$jZ(),e2(H));
return{shouldResetExposureSignals:m,shouldResetViewabilitySignals:O,geometrySignals:{readyGeometryWithDefault:C,measurementStrategy:C.pipe(Uj$),creativePosition:d.pipe(iR(fX)),visible:Y.pipe(iR(Hl)),timestampedExposure:y.pipe(iR(Hl)),maximumExposure:N,minimumExposure:b,browserSize:C.pipe(RUV,iR(_.a0)),timestampedScreenShare:R,maxScreenShare:L,minScreenShare:H,geometricMeasurementErrors:S,measurementRequests:C.pipe(pM(function(t){return t.value.measurementRequests})),
isLargeAd:c,geometryIsOccluded:A,hasMeasurementStarted:W,geometryMeasurable:k,validMeasurementCount:p,loadTimeExposure:u,v2VisibilityBitVector:w}}};
B6W=function(H,C){return C.pipe(LM(function(){return!1}),pM(function(S){return S}),IT(function(S){return Sm(new GV(S),H)}))};
raZ=function(H,C,S){return C.pipe(cbZ($l),e2(H)).pipe(iR(function(w,A){return Hl(w,A,T6w)}),Jb({timestamp:S.now(),
value:ya7}),e2(H))};
KBp=function(H,C,S,w){S=w.pipe(n1Z(S),xl(pM(function(A){return Math.round(A*100)/100})),e2(H));
return C instanceof GV?S:hY([S,C]).pipe(pM(function(A){var J=_.Z(A);A=J.next().value;J=J.next().value;return{timestamp:J.timestamp.maximum(A.timestamp),value:J.value?0:A.value}}),iR(Hl),e2(H))};
LBZ=function(H,C,S,w){C=[C.pipe(pM(function(A){return A.value.elementGeometry.width*A.value.elementGeometry.height>=242500}))];
S instanceof yx&&C.push(S.pipe(pM(function(A){return!!A})));
S=hY(C);return w?S.pipe(pM(function(A){return A.some(function(J){return J})}),Jb(!1),iR(),e2(H)):Sm(new GV(!1),H)};
DjE=function(H,C){H=hY([H,C]).pipe(pM(function(A){var J=_.Z(A);A=J.next().value;if(J.next().value&&A.value.isIntersecting)return A.value.isV2Visible}),iR());
var S=H.pipe(pM(function(A){return A===void 0?!0:A}),Ab(function(A,J){return A||!J},!1)),w=H.pipe(Ab(function(A,J){return J===void 0?A:J?!1:A!=null?A:!0},void 0),pM(function(A){return!!A}));
return hY([C,M2E(H,S,w)]).pipe(pM(function(A){var J=_.Z(A);A=J.next().value;var c=_.Z(J.next().value);J=c.next().value;var Y=c.next().value;c=c.next().value;var M=0;if(!A)return 0;if(J===void 0)return 16;J&&(M|=1);J||(M|=2);Y&&(M|=4);c&&(M|=8);return M}))};
SgE=function(H,C,S,w,A){var J=api.timeThresholdMs;var c=c===void 0?new xj7(C,w):c;return(new yx(function(Y){var M=S.pipe(Jb(void 0),FA(function(){return HpV(A)})).pipe(pM(function(m){var W=m.value;
m=m.timestamp;var y=W.visible;W=W.consecutiveViewTime;var N=W>=J;N||!y?ipu(c):(m=Math.max(0,gs(C.now(),m)),CEp(c,Math.max(0,J-W-m)));return N}),Ab(function(m,W){return W||m},!1),iR()).subscribe(Y);
return function(){c.dispose();M.unsubscribe()}})).pipe(Z9(function(Y){return!Y},!0),e2(H))};
HpV=function(H){return Zsu([H,H.pipe(qFD())]).pipe(pM(function(C){var S=_.Z(C);C=S.next().value;S=S.next().value;return{timestamp:C.timestamp,value:{visible:C.value,consecutiveViewTime:S.value}}}),iR(function(C,S){return Hl(C,S,function(w,A){return w.consecutiveViewTime===A.consecutiveViewTime&&w.visible===A.visible})}))};
s6E=function(){return We(zUW(),Ab(function(H,C){return Math.max(H,C)},0),pM(function(H){return Math.round(H)}))};
j6i=function(H){return We(dju(XN(H)),s6E())};
whZ=function(H,C){return C instanceof yx?C.pipe(FA(function(S){return(S=S?15:null)?Qx(new pX(S)):H})):(C=C.value?15:null)?Qx(new pX(C)):H};
AED=function(H){var C=new pX(13);if(H.length<1)return{chain:DA,capturedErrors:DA};var S=new Wj,w=H[0];return{chain:H.slice(1).reduce(function(A,J){return A.pipe(IT(function(c){S.next(c);return J}))},w).pipe(IT(function(A){S.next(A);
return Qx(C)}),sl(new Wj),$$()),
capturedErrors:S}};
JE6=function(H,C){var S=H.pipe(sl(new Wj),$$());return FA(function(w){return S.pipe(C(w))})};
ZpU=function(H,C){if(H.inCrossDomainIframe)return Qx(new pX(6));var S=new Wj;return KM(XN({}),C,S).pipe(pM(function(){return{timestamp:H.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:Fli(H),topWindowViewportExternalGeometry:gx(H,!0),measurementRequests:S,viewportLocalAppOffset:{x:0,y:0}}}}),El(H.queue))};
Fli=function(H){var C=gx(H,!1);if(!H.inIframe||!Xji(H.global.parent)||H.global.parent===H.global)return C;var S=new sp(H.global.parent,H.debugChannel);S.beaconFactory=H.beaconFactory;S=Fli(S);H=H.global.frameElement.getBoundingClientRect();return WmE(yku(WmE(S,H),{x:C.left-H.left,y:C.top-H.top}),C)};
cEu=function(H){if(H.prerendering)return 3;var C;return(C={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[H.visibilityState||H.webkitVisibilityState||H.mozVisibilityState||""])!=null?C:0};
Yg7=function(H){return H.document.JSC$9384_onVisibilityChange.pipe(pM(function(C){return C==="visible"}),iR(),e2(H.queue))};
zti=function(H,C,S){var w;return C.pipe(iR(),FA(function(A){return S.pipe(pM(function(){if(!w){w=!0;try{A.next()}finally{w=!1}}return!0}))}),Jb(!1),e2(H.queue))};
MIi=function(H){return We(xl(pM(function(C){return C>=1?!0:C<=0?!1:C>=H})),YFZ(),pM(function(C){return Math.round(C)}))};
ThV=function(H,C,S,w,A){var J=qg$;if(J.length>1)for(var c=0;c<J.length-1;c++)if(J[c]<J[c+1])throw Error();c=A.pipe(Jb(void 0),FA(function(){return S.pipe(qFD())}),iR(),e2(H));
A=A.pipe(Jb(void 0),FA(function(){return S.pipe(s6E())}),iR(),e2(H));
return{totalMeasurementTime:w.pipe(Jb(void 0),FA(function(){return C.pipe(pM(function(Y){return{timestamp:Y.timestamp,value:!0}}),YFZ())}),iR(),e2(H)),
totalUnviewedTime:w.pipe(Jb(void 0),FA(function(){return C.pipe(pM(function(Y){return{timestamp:Y.timestamp,value:Y.value===0}}),YFZ())}),iR(),e2(H)),
maxTimeOnScreen:w.pipe(Jb(void 0),FA(function(){return C.pipe(ML6(j6i,J))}),iR(_.a0),e2(H)),
timeOnScreen:w.pipe(Jb(void 0),FA(function(){return C.pipe(ML6(MIi,J),pM(function(Y){return Y.map(function(M,m){return m>0?M-Y[m-1]:M})}))}),iR(_.a0),e2(H)),
maxConsecutiveViewTime:A,consecutiveViewTime:c.pipe(iR(Hl),e2(H))}};
WlU=function(H){var C=!0;C=C===void 0?!1:C;return We(FA(function(S){return mnW(H.document,S,C)}),e2(H.queue))};
yEE=function(H,C,S){var w=S.pipe(pM(function(A){return{value:A,timestamp:H.timeProvider.now()}}),iR(Hl));
return C instanceof yx?C.pipe(iR(),FA(function(A){return A?Sm(new GV({value:!1,timestamp:H.timeProvider.now()}),H.queue):w})):C.value===!1?w:new GV(!1)};
Nhw=function(H,C,S,w,A,J,c){var Y=api;C=C instanceof yx?C.pipe(Jb(!1),iR()):C;var M=!H.isMobile();S=yEE(H,S,w);H=c.measurableCreative.pipe(FBZ(H.queue));return Object.assign({},Y,{geometryIsOccluded:S,wasLargeAdAtRender:A,allowLargeAdThreshold:M,mayUseViewportShareExposure:C,hasMeasurementStarted:H,useIntersectionObserverV2:J})};
ET7=function(H,C,S,w,A,J){var c=1;J=J===void 0?!0:J;c=c===void 0?.01:c;var Y=Y===void 0?H.timeProvider.intervalObservable(100).pipe(e2(H.queue)):Y;return H.performanceMonitor.timeExecution(916,function(){return bpp(H,C.pipe(El(H.queue)),S.pipe(El(H.queue)),w,A,J,c,Y)})()};
bpp=function(H,C,S,w,A,J,c,Y){var M=Yg7(H).pipe(pM(function(W){return!W})),m=new etE(H,[new u9Z(H,qg$),
new GAE(H,Y)]);Y=aai(fYW,vTZ);return DxE(H,C,function(W,y){var N=Sm(new GV(y.element),W.queue).pipe(WlU(W),e2(W.queue)),b={loadedElement:N,shouldMeasure:N.pipe(x$(!0)),measurableCreative:N.pipe(pM(function(t){var g=g===void 0?Symbol():g;return Object.freeze({symbol:g,element:Sm(new GV(t),W.queue)})})),
creativeSearchResult:Sm(new GV("mue"),W.queue)},u=new GV(!1),O=new GV(!1),d=new GV(17),p=new GV(!1),k=new GV(!1),R=Sm(jm,W.queue);u=m.buildGeometrySource(b,{inApp:u,useV2:!1,requestSource:Sm(d,W.queue)}).geometrySource;b=Nhw(W,p,O,M,k,R,b);O=Ip0(W.queue,W.timeProvider,u,b);b=O.geometrySignals;p=O.shouldResetViewabilitySignals;O=ThV(W.queue,b.timestampedExposure,b.visible,O.shouldResetExposureSignals,p);p=SgE(W.queue,W.timeProvider,p,b.measurementRequests,b.visible);k=S.pipe(LM(function(t){return t===
y.element.ref}),pM(function(){return"ur"}));
R=WD0(W.timeProvider,A).pipe(x$("t"));k=XNV(W,KM(k,R));R=zti(W,b.measurementRequests,k.pipe(LM(function(t){return t!==null})));
u=k.pipe(LM(function(t){return t!==null}),pM(function(){return cEu(W.global.document)===1}));
var L=lYW(W.document);return Object.assign({},{beaconFactory:new GV(W.beaconFactory),context:new GV(W),inferredPingId:new GV("lidar2"),timeOnScreenPingId:new GV("lidartos"),binaryContext:new GV(17),binaryVersion:new GV(w),requestSource:d,contextValidationErrors:new GV(W.validate()?null:new kl),contextVisibilityKnown:new GV(L),payloadMapper:new GV(Rz$),endOfSessionReason:k,timeOnScreenReason:k,requestMeasurementOnEndOfSession:R,hasImpressionFired:VI7,crossDomainIframeState:new GV(W.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:jm,inFetchLaterBeaconExperiment:jm,isTurtlex:jm,turtlexReportEventData:new GV(""),reportFencedFrameEvent:$l,isViewableAttributionEnabled:jm,inViewableAttributionExperiment:new GV(0),fetchBeaconFactory:$l,supportsPendingBeacon:jm,supportsFetchLater:jm,emit:new GV(isZ),beginToRenderEvent:new GV(Symbol()),activeViewUnmeasurableEvent:new GV(Symbol()),activeViewViewableEvent:new GV(Symbol()),creativeFound:VI7,immediateUrlPrefixes:new GV(y.immediateUrls),timeOnScreenUrlPrefixes:new GV(y.timeOnScreenUrls),
cpmavUrls:$l,viewableRelayUrls:$l,measurementDeferralState:new GV(2),urlSerializer:new GV(AaE),viewUrlSerializer:new GV(oT7),isCreativeLoaded:N.pipe(FBZ(W.queue)),pageVisible:M.pipe(pM(function(t){return!t})),
eosPageVisible:u,timestampedExposureHistory:b.timestampedExposure.pipe(Ab(function(t,g){t.push(g);return t},[]))},b,{viewable:C6(W,p),
maxTimeOnScreen:C6(W,O.maxTimeOnScreen),timeOnScreen:C6(W,O.timeOnScreen),maxConsecutiveViewTime:C6(W,O.maxConsecutiveViewTime),consecutiveViewTime:O.consecutiveViewTime.pipe(pM(function(t){return new id(W.timeProvider,t)})),
totalMeasurementTime:C6(W,O.totalMeasurementTime),totalUnviewedTime:C6(W,O.totalUnviewedTime),userAgentClientHints:I9E(W),clientOrderPingCounter:new GV(new tmp)})},IaE(H,c),xx7(J?HsW(Y,OpD):HsW(Y,XhE),Q6E))};
dnE=function(H){var C=_.tc.apply(1,arguments).filter(Boolean).join("&");if(!C)return H;var S=H.match(/[?&]adurl=/);return S?H.slice(0,S.index+1)+C+"&"+H.slice(S.index+1):H+(H.indexOf("?")<0?"?":"&")+C};
wS=function(H,C){return C?"&"+H+"="+encodeURIComponent(C):""};
PEU=function(){try{var H,C;return!!((H=window)==null?0:(C=H.top)==null?0:C.location.href)&&!1}catch(S){return!0}};
_.Ak=function(H){H&&typeof H.dispose=="function"&&H.dispose()};
_.Jk=function(H){for(var C=0,S=arguments.length;C<S;++C){var w=arguments[C];_.Dw(w)?_.Jk.apply(null,w):_.Ak(w)}};
phU=function(){var H=$n6();H=H===void 0?"bevasrsg":H;return new Promise(function(C){var S=window===window.top?window:PEU()?window:window.top,w=S[H],A;((A=w)==null?0:A.bevasrs)?C(new Fv(w.bevasrs)):(w||(w={},w=(w.nqfbel=[],w),S[H]=w),w.nqfbel.push(function(J){C(new Fv(J))}))})};
kAu=function(H){var C={c:H.v5,e:H.m5K,mc:H.tvK,me:H.w80};H.ih&&(C.co={c:H.ih.zHT,a:H.ih.x9R,s:H.ih.pY6});return C};
htV=function(H){var C,S,w={v5:H.c,m5K:H.e,tvK:(C=H.mc)!=null?C:!1,w80:(S=H.me)!=null?S:!1};H.co&&(w.ih={zHT:H.co.c,x9R:H.co.a,pY6:H.co.s});return w};
nT$=function(H){return function(){var C;return _.z(function(S){if(S.nextAddress==1)return S.yield(H(),2);C=S.yieldResult;return S.return({f:function(){return C.tXM()},
c:function(w){return C.vI9(w)},
m:function(w){return C.za(htV(w))},
mws:function(w){return C.n2R(htV(w))}})})}};
rEE=function(H,C){var S=$n6();S=S===void 0?"bevasrsg":S;C={s:function(J){var c;return H.snapshot(Object.assign({},J.c&&{v5:J.c},J.s&&{lFK:J.s},{iXX:(c=J.p)!=null?c:!0}))},
e:function(J){var c;return void((c=H.zpT)==null?void 0:c.call(H,J))},
c:function(J,c){return H.j6C(J,c)},
p:H.zaT,l:function(){return H.vFb()},
wpc:C?nT$(C):void 0};var w=window===window.top?window:PEU()?window:window.top,A=w[S];if(A){A.bevasrs=C;if(A.nqfbel!==void 0)for(S=_.Z(A.nqfbel),w=S.next();!w.done;w=S.next())w=w.value,w(C);A.nqfbel=void 0}else A={},A=(A.bevasrs=C,A.nqfbel=void 0,A),w[S]=A};
Dnp=function(H){var C=C===void 0?51:C;var S=[];_.Za(H,BhW,6,_.cl()).forEach(function(w){_.YJ(w,2)<=C&&S.push(_.YJ(w,1))});
return S};
KlV=function(H){var C=C===void 0?51:C;var S=[];_.Za(H,BhW,6,_.cl()).forEach(function(w){_.YJ(w,2)>C&&S.push(_.YJ(w,1))});
return S};
tIU=function(H){H.then(function(){},function(){})};
zZ=function(H){return{fieldType:1,fieldName:H}};
Mx=function(H){return{fieldType:2,fieldName:H}};
_.qx=function(H){return{fieldType:3,fieldName:H}};
LlE=function(){function H(){A[0]=1732584193;A[1]=4023233417;A[2]=2562383102;A[3]=271733878;A[4]=3285377520;W=m=0}
function C(y){for(var N=c,b=0;b<64;b+=4)N[b/4]=y[b]<<24|y[b+1]<<16|y[b+2]<<8|y[b+3];for(b=16;b<80;b++)y=N[b-3]^N[b-8]^N[b-14]^N[b-16],N[b]=(y<<1|y>>>31)&4294967295;y=A[0];var u=A[1],O=A[2],d=A[3],p=A[4];for(b=0;b<80;b++){if(b<40)if(b<20){var k=d^u&(O^d);var R=1518500249}else k=u^O^d,R=1859775393;else b<60?(k=u&O|d&(u|O),R=2400959708):(k=u^O^d,R=3395469782);k=((y<<5|y>>>27)&4294967295)+k+p+R+N[b]&4294967295;p=d;d=O;O=(u<<30|u>>>2)&4294967295;u=y;y=k}A[0]=A[0]+y&4294967295;A[1]=A[1]+u&4294967295;A[2]=
A[2]+O&4294967295;A[3]=A[3]+d&4294967295;A[4]=A[4]+p&4294967295}
function S(y,N){if(typeof y==="string"){y=unescape(encodeURIComponent(y));for(var b=[],u=0,O=y.length;u<O;++u)b.push(y.charCodeAt(u));y=b}N||(N=y.length);b=0;if(m==0)for(;b+64<N;)C(y.slice(b,b+64)),b+=64,W+=64;for(;b<N;)if(J[m++]=y[b++],W++,m==64)for(m=0,C(J);b+64<N;)C(y.slice(b,b+64)),b+=64,W+=64}
function w(){var y=[],N=W*8;m<56?S(Y,56-m):S(Y,64-(m-56));for(var b=63;b>=56;b--)J[b]=N&255,N>>>=8;C(J);for(b=N=0;b<5;b++)for(var u=24;u>=0;u-=8)y[N++]=A[b]>>u&255;return y}
for(var A=[],J=[],c=[],Y=[128],M=1;M<64;++M)Y[M]=0;var m,W;H();return{reset:H,update:S,digest:w,digestString:function(){for(var y=w(),N="",b=0;b<y.length;b++)N+="0123456789ABCDEF".charAt(Math.floor(y[b]/16))+"0123456789ABCDEF".charAt(y[b]%16);return N}}};
xn7=function(H,C){C=C===void 0?gT0:C;if(!UnW){var S;H=(S=H.navigator)==null?void 0:S.userAgentData;if(!H||typeof H.getHighEntropyValues!=="function"||H.brands&&typeof H.brands.map!=="function")return Promise.reject(Error("ua"));RtW((H.brands||[]).map(function(A){var J=new IYV;J=_.XA(J,1,A.brand);return _.XA(J,2,A.version)}));
typeof H.mobile==="boolean"&&_.TZ(aYi,2,H.mobile);UnW=H.getHighEntropyValues(C)}var w=new Set(C);return UnW.then(function(A){var J=aYi.clone();w.has("platform")&&_.XA(J,3,A.platform);w.has("platformVersion")&&_.XA(J,4,A.platformVersion);w.has("architecture")&&_.XA(J,5,A.architecture);w.has("model")&&_.XA(J,6,A.model);w.has("uaFullVersion")&&_.XA(J,7,A.uaFullVersion);return J.serialize()}).catch(function(){return aYi.serialize()})};
mm=function(H,C,S,w){this.initialValue_=H;this.maxValue_=C;this.currBaseValue_=this.currValue_=H;this.randomFactor_=S||0;this.backoffFactor_=w||2};
Wl=function(H){this.src=H;this.listeners={};this.typeCount_=0};
SE$=function(){for(var H;H=Hvw.remove();){try{H.fn.call(H.scope)}catch(C){jZ(C)}ivw.put(H)}C5u=!1};
_.saV=function(H){switch(H){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}};
jaw=function(H){switch(H){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""}};
_.wAD=function(){};
qEi=function(H,C,S,w){H=AAE(JA$(FCD(new _.yy(1828,"0"),H),new ZvW)).disableWithCredentials();C.length&&cAZ(H,YE7(new z3U,C));w!==void 0&&(H.destinationUrl=w);var A=new M$Z(1828,"","",!1,"",H.build());_.Nx(A,H);var J=new Ep({flush:function(c){try{A.flush(c)}catch(Y){S(Y)}}});
J.addOnDisposeCallback(function(){setTimeout(function(){try{J.snapshotAndFlush()}finally{A.dispose()}})});
J.invocationLimit=1E5;J.flushInterval=3E4;J.JSC$9800_flushTimer.setInterval(3E4);return J};
em=function(){var H,C,S;return(S=(H=globalThis.performance)==null?void 0:(C=H.now)==null?void 0:C.call(H))!=null?S:Date.now()};
WCw=function(H,C){if(H.disable)return new T4E;C=C?Dnp(C):[];H={gs:H.gs,yfm:H.bfE,xKk:H.wek,destinationUrl:H.destinationUrl,x9K:H.x9K,dqm:H.dqm};C=C===void 0?[]:C;return new mE$(H,C)};
yAw=function(H){if(!H)return null;H=_.ud(H,2);return H===null||H===void 0?null:R2(H)};
_.N4W=function(H){if(!H)return null;H=_.ud(H,4);return H===null||H===void 0?null:_.Ot(H)};
e3u=function(H,C){return C?bv7(C):H?EB0(H):Promise.resolve()};
bv7=function(H){return new Promise(function(C,S){var w=_.GZ("SCRIPT"),A=_.N4W(H);_.JY(w,A);w.onload=function(){_.f6(w);C()};
w.onerror=function(){_.f6(w);S(Error("Fa"))};
(vl("HEAD")[0]||document.documentElement).appendChild(w)})};
EB0=function(H){return new Promise(function(C){var S=_.GZ("SCRIPT");if(H){var w=_.ud(H,6);w=w===null||w===void 0?null:_.ws(w)}else w=null;_.AY(S,w);(vl("HEAD")[0]||document.documentElement).appendChild(S);_.f6(S);C()})};
ld=function(H,C,S){var w,A=new Promise(function(J){w=setTimeout(J,C)});
return Promise.race([H.finally(function(){return void clearTimeout(w)}),
A.then(S)])};
u0U=function(H,C){try{return globalThis.sessionStorage.setItem(H,C),!0}catch(S){return!1}};
G9$=function(H,C,S,w){C=C===void 0?0:C;S=S===void 0?H.length:S;var A=0;for(w&&(A=G9$(w));C<S;C++)w=typeof H==="string"?H.charCodeAt(C):H[C],A=fQW(31,A)+w|0;return A};
vBE=function(H,C){return[G9$(H,0,H.length>>1,C),G9$(H,H.length>>1)]};
lQW=function(H){var C=_.Z(vBE(H,Vy));H=C.next().value;C=C.next().value;return H.toString(16)+C.toString(16)};
V$7=function(H,C){var S=vBE(C);H=new Uint32Array(H.buffer);C=H[0];var w=_.Z(S);S=w.next().value;w=w.next().value;for(var A=1;A<H.length;A+=2){for(var J=C,c=A,Y=S,M=w,m=0;m<22;m++)c=c>>>8|c<<24,c+=J|0,c^=Y+38293,J=J<<3|J>>>29,J^=c,M=M>>>8|M<<24,M+=Y|0,M^=m+38293,Y=Y<<3|Y>>>29,Y^=M;J=[J,c];H[A]^=J[0];A+1<H.length&&(H[A+1]^=J[1])}};
oBu=function(H,C,S,w,A){var J=(4-(Vy.length+S.length)%4)%4,c=new Uint8Array(4+J+Vy.length+4+S.length),Y=new DataView(c.buffer),M=0;Y.setUint32(M,Math.random()*4294967295);M=M+4+J;c.set(Vy,M);M+=Vy.length;Y.setUint32(M,A);c.set(S,M+4);V$7(c,w);return H.insert(C,function(m){return void globalThis.sessionStorage.removeItem(m)})?u0U(C,_.QO(c))?"s":"t":"i"};
Ov7=function(H,C){var S=globalThis.sessionStorage.getItem(H);if(!S)return["m"];try{var w=_.iY(S);V$7(w,C)}catch(A){return globalThis.sessionStorage.removeItem(H),["c"]}for(C=4;C<7&&w[C]===0;)C++;for(S=0;S<Vy.length;S++)if(w[C++]!==Vy[S])return globalThis.sessionStorage.removeItem(H),["d"];S=(new DataView(w.buffer)).getUint32(C);return Math.floor(Date.now()/1E3)>=S?(globalThis.sessionStorage.removeItem(H),["e"]):["a",new Uint8Array(w.buffer,C+4)]};
XAp=function(H){return globalThis.TextEncoder?(new TextEncoder).encode(H):_.o7(H)};
Qai=function(H){var C=H,S;return function(){if(C){var w=C;C=void 0;S=w.apply(this,arguments)}return S}};
P5i=function(H){return dU(function(C){if(C instanceof H)return!0;var S,w,A=C==null?void 0:(S=C.ownerDocument)==null?void 0:(w=S.defaultView)==null?void 0:w[H.name];return dEE(A)&&C instanceof A})};
_.Qy=function(H,C,S){_.Op.call(this);this.JSC$10014_listener_=H;this.JSC$10014_interval_=C||0;this.handler_=S;this.callback_=(0,_.Xv)(this.JSC$10016_doAction_,this)};
_.Pl=function(H){H=$EU(H);return _.Ot(H)};
$EU=function(H){return H===null?"null":H===void 0?"undefined":H};
k9V=function(H){if(H&&H.focus)if(H!==document.activeElement)H.focus();else return pAU(function(){return _.z(function(C){document.activeElement&&document.activeElement.blur();return C.return(pAU(function(){H.focus()}))})})};
_.h37=function(H){var C=C===void 0?5:C;setTimeout(function(){var S;return _.z(function(w){w.nextAddress==1&&(S=document.activeElement);if(w.nextAddress!=5)return(document.activeElement===S||document.activeElement===document.body)&&C>=0&&H?w.yield(k9V(H),5):w.jumpTo(0);if(document.activeElement===H)return w.return();H=H.parentElement;--C;return w.jumpTo(2)})},15)};
pAU=function(H){return new Promise(function(C){requestAnimationFrame(function(){C(H())})})};
rA6=function(H){if(_.$J)H(_.$J);else{var C;((C=nB0)!=null?C:nB0=[]).push(H)}};
kJ=function(){!_.$J&&_.p6&&_.B4Z(_.p6());return _.$J};
_.B4Z=function(H){_.$J=H;var C;(C=nB0)==null||C.forEach(rA6);nB0=void 0};
_.hk=function(H){_.$J&&_.$J.beforeLoadModuleCode(H)};
_.n6=function(){_.$J&&_.$J.JSC$11070_setLoaded()};
rS=function(H){return diZ(H)?Number(H):String(H)};
DEi=function(H){this.action=H;this.wfv=!1};
KCw=function(H,C){DEi.call(this,"set-drive-options");this.appId=H;this.appOrigin=C};
t$6=function(H){DEi.call(this,"visibility");this.visible=H};
LC$=function(H,C,S){Bl.call(this,H,C,S)};
gBu=function(H){K6.call(this,H)};
UE$=function(H){H=H&&H.getWindow()||window;return H.gadgets&&H.gadgets.rpc};
IQw=function(H,C){var S=C&&C.getWindow()||window;if(UE$(C))H();else if(R36)R36.push(H);else var w=R36=[H],A=S.setInterval(function(){if(UE$(C)){S.clearInterval(A);for(var J=0;J<w.length;J++)w[J]();R36=null}},100)};
xE$=function(H,C){var S=new tk(H);_.Nx(C,S);var w={passive:!1};C.listen(S,"mousewheel",function(A){return void aQE(H,A)},w).listen(H,"scroll",function(A){return void aQE(H,A)},w)};
aQE=function(H,C){var S;a:{for(S=C.target;S;){if(S.nodeType==1){var w=_.L6(S,"overflowY");if(w=="auto"||w=="scroll")break a}S=S.parentNode}S=null}if(!S||!_.gS(H,S)||S.scrollHeight==S.clientHeight||C.deltaY>0&&Math.abs(S.scrollTop-(S.scrollHeight-S.clientHeight))<=1||C.deltaY<0&&S.scrollTop==0)C.preventDefault(),C.stopPropagation()};
iW=function(H,C,S,w,A,J,c,Y,M){Y=Y===void 0?!1:Y;M=M===void 0?!1:M;Bl.call(this,void 0,void 0,void 0);Bl.call(this,J?J+" picker modal-dialog":"picker modal-dialog",!0,S);_.Up(H,"protocol");this.iframeManager_=new mz6;this.targetId_=R7();this.rpcToken_=R7();H=_.I7(H);_.a7(H,"hostId");S=_.a7(H,"parent");this.useGapi_=!M&&!0||(S==null?void 0:S.includes("onepick.corp.google.com"));Y&&_.xJ(H,"fv2","true");this.setUrl(H.toString());this.preferredDialogWidth_=w;this.preferredDialogHeight_=A;w!==void 0||
A!==void 0?w=!0:(w=_.a7(_.I7(H.toString()),"hostId"),WQw||(WQw=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),w=!WQw.has(w));this.autoSizeDialog_=w;this.JSC$10204_gadgetsDomHelper_=c||this.JSC$10155_dom_;C&&(c=this.JSC$10204_gadgetsDomHelper_,C=_.a7(_.I7(this.JSC$10206_url_),"grugl")=="true"?yOZ:NTU,UE$(c)||(c=c||Ol(document),w=c.createElement("SCRIPT"),_.JY(w,C),w.type="text/javascript",c.JSC$9339_document_.body.appendChild(w)));
H=H.toString();C=null;c=H.indexOf("/picker?");c>-1?C=H.substring(0,c+8-1):JV(H,"/picker")&&(C=H);C&&this.setRelayUrl(C+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(H=this.buttons_,H.JSC$10189_element_=this.buttonEl_,H.render()):_.FN(this.buttonEl_,bVD),_.HN(this.buttonEl_,!!this.buttons_))};
_.GfZ=function(H){var C=C===void 0?EuU:C;var S=_.I0(H),w=function(J){J=_.Z(J);J.next();J=Cs(J);return C(S,J)},A=function(J){var c=_.Z(J);
J=c.next().value;c=Cs(c);return H.apply(J,c)};
return function(){var J=_.tc.apply(0,arguments),c=this||_.s$,Y=e00.get(c);Y||(Y={},e00.set(c,Y));return u6E(Y,[this].concat(_.k$(J)),A,w)}};
SL=function(H){var C={};H=H.replace(/\r/g,"").split("\n");for(var S=0;S<H.length;S++){var w=H[S],A=w.indexOf(":");A<0||(C[w.substring(0,A)]=w.substring(A+2,w.length))}return C};
ftZ=function(H,C,S){S=S===void 0?function(){}:S;
return H?C():S()};
_.lt6=function(H){var C;return((C=vup.documentOverride)!=null?C:H).__wizdispatcher};
_.jL=function(H){var C=sF;sF=H;return C};
_.ouE=function(H){return H===Vk$||(H==null?void 0:H.name)==="\u0275NotFound"};
_.w6=function(H,C){var S;if((S=H)==null?0:S.isDisposed)throw Error("jb`"+String(H.debugName));for(;H!==void 0;){S=H;if(S.retrieve)return S.retrieve(C,{optional:!0});H=H.parent}return Vk$};
Aa=function(H){return{"\u0275prov":{providedIn:"root",token:Symbol(H),factory:void 0,value:void 0}}};
_.OVi=function(H){var C=sF;if(!C){switch(H===void 0?3:H){case 0:H=Error("ib");break;case 1:H=Error("kb");break;case 2:H=Error("lb");break;default:H=Error("mb")}throw H;}return C};
X9Z=function(H){var C=_.jL(H);H={};return H[Symbol.dispose]=function(){_.jL(C)},H};
QMZ=function(H,C){H.disposables||(H.disposables=[]);H.disposables.push(C)};
Ja=function(H){var C=sF;C&&!C.isDisposed&&(QMZ(C,H),H.parent=C)};
PCE=function(H){if(H.disposables){for(var C=_.Z(H.disposables),S=C.next();!S.done;S=C.next())S=S.value,typeof S==="function"?S():dzV(S);H.disposables.length=0}};
dzV=function(H){if(!H.isDisposed){H.isDisposed=!0;var C;(C=H[Symbol.dispose])==null||C.call(H);delete H.parent;PCE(H)}};
KQE=function(H){var C={retrieve:function(S){switch(S.\u0275prov.token){case $zE.\u0275prov.token:var w=H.asyncDeps;break;case _.p9i.\u0275prov.token:w=H.rootElement;break;case kf$.\u0275prov.token:w=H.modelRootElement;break;case h0Z.\u0275prov.token:w=H.appContext;break;case nuw.\u0275prov.token:w=H.rendererData;break;case rOW.\u0275prov.token:w=H.injectingConstructor;break;case BTU.\u0275prov.token:w=H.dispatcher}if(w)S=w;else a:{for(w=C.parent;w;){var A=w;if(A.retrieve){S=A.retrieve(S);break a}w=
w.parent}w=S.\u0275prov.token;A=Dzw[w];A!==void 0?S=A:(A=S.\u0275prov.providedIn,S.\u0275prov.factory?(S=S.\u0275prov.factory(),w&&A==="root"&&(Dzw[w]=S)):S=Vk$)}return S}};
Ja(C);return C};
tkw=function(){var H=_.OVi(1),C=_.w6(H,h0Z);if(!_.ouE(C))return C;H=_.w6(H,BTU);if(!_.ouE(H))return H.getOptionalAppContext()};
LQE=function(H){if(typeof document!=="undefined"&&document&&document.getElementById&&(H=document.getElementById(H))){var C=H.tagName.toUpperCase();if(C=="SCRIPT"||C=="LINK")return H}return null};
Uzi=function(H,C){if((H=H===void 0?"":H)&&C)throw Error("sb");var S="";var w=_.s$._F_jsUrl;(H=C||LQE(H))&&(S=H.src?H.src:H.getAttribute("href"));if(w&&S){if(w!=S)throw Error("tb`"+w+"`"+S);S=w}else S=w||S;if(!gu0(S))throw Error("ub");return S};
xzu=function(){if(!R0D){R0D=!0;try{var H=Uzi(_.s$._F_jsUrl?"":"base-js")}catch(w){return}var C=ItD(atU(H)),S=Object.keys(C);S.length!==0&&rA6(function(w){for(var A=_.Z(S),J=A.next();!J.done;J=A.next()){J=J.value;for(var c=_.Z(Object.keys(C[J])),Y=c.next();!Y.done;Y=c.next())w.addExtraEdge(J,Y.value)}})}};
iCu=function(){var H=Object.assign({},HCE);Object.getOwnPropertyNames(HCE).forEach(function(C){Fb[C]!==void 0&&(H[C]=Fb[C])});
return H};
CbU=function(H,C){if(Fb.enablePerformanceTiming){var S,w;(w=(S=performance).mark)==null||w.call(S,H+"Start__"+C)}};
SsZ=function(H,C){if(Fb.enablePerformanceTiming){var S,w;(w=(S=performance).measure)==null||w.call(S,H+"__"+C,H+"Start__"+C)}};
s8u=function(H,C,S){var w;return H&&C?H+"__"+C:(w=H!=null?H:C)!=null?w:S};
wnE=function(H,C){var S=Object.create(j8E);S.debugName=C;!sF||Ja(S);C=_.jL(S);try{H(S)}finally{_.jL(C)}return function(){return void dzV(S)}};
Jt7=function(H){return Zp(H)&&Atp in H};
Fvi=function(H,C){return Object.is(H,C)};
Y1=function(H){var C=cN;cN=H;return C};
ctZ=function(H){if(zR)throw Error("Z");if(cN!==null){var C=cN.producersTail;if(C===void 0||C.producer!==H){var S=void 0,w=cN.recomputing;if(w&&(S=C!==void 0?C.nextProducer:cN.producers,S!==void 0&&S.producer===H)){cN.producersTail=S;S.lastReadVersion=H.version;return}var A=H.consumersTail,J;if(!(J=A===void 0||A.consumer!==cN)){if(w){a:{J=cN;w=J.producersTail;if(w!==void 0){J=J.producers;do{if(J===A){w=!0;break a}if(J===w)break;J=J.nextProducer}while(J!==void 0)}w=!1}w=!w}J=w}J&&(w=Mj(cN),S={producer:H,
consumer:cN,nextProducer:S,prevConsumer:A,lastReadVersion:H.version,nextConsumer:void 0},cN.producersTail=S,C!==void 0?C.nextProducer=S:cN.producers=S,w&&ZC$(H,S))}}};
MrD=function(H){if(!Mj(H)||H.dirty)if(H.dirty||H.lastCleanEpoch!==Ysp)(H.producerMustRecompute(H)||zbu(H))&&H.producerRecomputeValue(H),H.dirty=!1,H.lastCleanEpoch=Ysp};
qsZ=function(H){if(H.consumers!==void 0){var C=zR;zR=!0;try{for(var S=H.consumers;S!==void 0;S=S.nextConsumer){var w=S.consumer;w.dirty||(H=void 0,w.dirty=!0,qsZ(w),(H=w.consumerMarkedDirty)==null||H.call(w,w))}}finally{zR=C}}};
Tvi=function(){var H;return((H=cN)==null?void 0:H.consumerAllowSignalWrites)!==!1};
mKp=function(H){H&&(H.producersTail=void 0,H.recomputing=!0);return Y1(H)};
ytW=function(H,C){Y1(C);if(H){H.recomputing=!1;C=H.producersTail;var S=C!==void 0?C.nextProducer:H.producers;if(S!==void 0){if(Mj(H)){do S=Wvu(S);while(S!==void 0)}C!==void 0?C.nextProducer=void 0:H.producers=void 0}}};
zbu=function(H){for(H=H.producers;H!==void 0;H=H.nextProducer){var C=H.producer,S=H.lastReadVersion;if(S!==C.version)return!0;MrD(C);if(S!==C.version)return!0}return!1};
ZC$=function(H,C){var S=H.consumersTail,w=Mj(H);S!==void 0?(C.nextConsumer=S.nextConsumer,S.nextConsumer=C):(C.nextConsumer=void 0,H.consumers=C);C.prevConsumer=S;H.consumersTail=C;if(!w)for(H=H.producers;H!==void 0;H=H.nextProducer)ZC$(H.producer,H)};
Wvu=function(H){var C=H.producer,S=H.nextProducer,w=H.nextConsumer,A=H.prevConsumer;H.nextConsumer=void 0;H.prevConsumer=void 0;w!==void 0?w.prevConsumer=A:C.consumersTail=A;if(A!==void 0)A.nextConsumer=w;else if(C.consumers=w,!Mj(C))for(H=C.producers;H!==void 0;)H=Wvu(H);return S};
Mj=function(H){return H.consumerIsAlwaysLive||H.consumers!==void 0};
EI$=function(H){var C=Object.create(Nvw);C.computation=H;H=function(){MrD(C);ctZ(C);if(C.value===qj)throw C.error;return C.value};
H[bCD]=C;return H};
fZ6=function(H,C){var S=Object.create(ebu);S.value=H;C!==void 0&&(S.equal=C);H=function(){ctZ(S);return S.value};
H[bCD]=S;return[H,function(w){return u2Z(S,w)},
function(w){Tvi()||G8W(S);u2Z(S,w(S.value))}]};
u2Z=function(H,C){Tvi()||G8W(H);if(!H.equal(H.value,C)){H.value=C;H.version++;Ysp++;qsZ(H);var S;(S=vI6)==null||S(H)}};
TR=function(H){var C=Y1(null);try{return H()}finally{Y1(C)}};
_.mB=function(H,C,S){S=S===void 0?"":S;H=fZ6(H,C==null?void 0:C.equals);var w=H[0],A=w[bCD];A.debugName=s8u(C==null?void 0:C.debugName,S,"[signal]");if(!Fb.enablePerformanceTiming)return H;var J=H[1],c=H[2];return[w,function(Y){lZV(function(){return void J(Y)},A)},
function(Y){lZV(function(){return void c(Y)},A)}]};
lZV=function(H,C){CbU("signalSet",C.debugName);try{H()}finally{SsZ("signalSet",C.debugName)}};
oIi=function(H,C){var S=_.Z(_.mB(H,void 0,"cPpJzc"));H=S.next().value;S=S.next().value;H[VrE]=S;H[WN]=C;return H};
OCp=function(H){return!!H&&typeof H==="object"&&Object.getPrototypeOf(H)===Object.prototype};
Xn0=function(H){return typeof H==="function"&&VrE in H&&typeof H[VrE]==="function"};
Q8i=function(H,C){Object.defineProperty(H,WN,{get:function(){return C}})};
Nj=function(H,C){if(yM(H)){var S=H.map(function(J){return Nj(J,C)});
Q8i(S,C);return S}if(OCp(H)){S={};H=_.Z(Object.entries(H));for(var w=H.next();!w.done;w=H.next()){var A=_.Z(w.value);w=A.next().value;A=A.next().value;S[w]=Nj(A,C)}Q8i(S,C);return S}return oIi(H,C)};
dK6=function(H){if(yM(H))return H.map(function(A){return dK6(A)});
if(OCp(H)){var C={};H=_.Z(Object.entries(H));for(var S=H.next();!S.done;S=H.next()){var w=_.Z(S.value);S=w.next().value;w=w.next().value;C[S]=dK6(w)}return C}return Xn0(H)?H():H};
$KE=function(){var H={height:0,width:0};if(!OCp(H))throw Error("Jb");var C=Symbol("Kb");return[Nj(H,C),function(S,w){if(S[WN]===C)if(typeof w==="function"){var A=[].concat(_.k$(dK6(S)));w=w(A)||A;PbZ(S,[].concat(_.k$(w)))}else PbZ(S,w);else throw Error("Lb");}]};
PbZ=function(H,C){if(Xn0(H))H[VrE](C);else if(yM(H)&&yM(C))C=Nj(C,H[WN]),H.length=0,H.push.apply(H,_.k$(C));else if((OCp(H)||yM(H))&&(yM(C)||typeof C==="object"&&C!==null)){C=_.Z(Object.entries(C));for(var S=C.next();!S.done;S=C.next()){var w=_.Z(S.value);S=w.next().value;w=w.next().value;var A=H,J=A[S];Object.hasOwn(H,S)?PbZ(J,w):A[S]=Nj(w,H[WN])}}else throw Error("Mb");};
pni=function(H){return Object.create(Object.assign({},bW,H))};
hb7=function(){var H;return(H=k8D)!=null?H:k8D=pni({consumerAllowSignalWrites:!0})};
_.EF=function(H,C,S){S=S===void 0?"":S;var w=EI$(function(){return H()}),A=w[bCD];
A.debugName=s8u(C==null?void 0:C.debugName,S,"[computed]");(C==null?void 0:C.equals)!=null&&(A.equal=C.equals);return w};
eL=function(H){var C=Y1(nIZ);try{H()}finally{Y1(C)}};
tr0=function(H){switch(H.onInitType){case rtZ:BvU.schedule(H);break;case DK7:Kvi.schedule(H);break;default:_.KP(H.onInitType)}};
aZi=function(H){if(!H.isDisposed)switch(H.effectType){case uW:Lvp.schedule(H);break;case gIE:UKi.schedule(H);break;case Rbi:IZ6.schedule(H);break;default:_.KP(H.effectType)}};
imu=function(){if(GR>0)Fb.flushRenderEffectsDuringRender&&Lvp.flush();else{for(var H=_.Z(xKw),C=H.next();!C.done;C=H.next())C.value.flush();HmE()}};
HmE=function(){_.z(function(H){if(H.nextAddress==1)return H.yield(Promise.resolve(),2);for(var C=_.Z(CyZ),S=C.next();!S.done;S=C.next())S.value.flush();_.oT(H)})};
sqZ=function(H){vN=!0;try{for(var C=_.Z(H),S=C.next();!S.done;S=C.next()){for(var w=S.value,A=[w],J=w;J.parent!==void 0;)J=J.parent,SWW(J)&&H.has(J)&&A.push(J);for(;A.length>0;){var c=A.pop();H.delete(c);c.run()}}}finally{vN=!1}};
lW=function(H){GR--;if(H){H=_.Z(jqZ);for(var C=H.next();!C.done;C=H.next())C.value.clear()}else GR>0||vN&&!Fb.flushRenderEffectsDuringRender||imu()};
APE=function(H,C,S){var w=w5E(H);VM={name:S?w+" ("+S+")":w,isReactive:H.componentType!==oE,parent:VM};H=C();VM=VM.parent;return H};
OF=function(){var H=VM;return H?H.isReactive:!1};
QM=function(H,C,S){var w=VM;C&&(VM=C);try{return S==null?H():H.call(S)}catch(J){H=J;Xb(H,VM);if(H!==JPp){Frp=VM;C=[];for(S=sF;S;){var A=void 0;C.push((A=S.debugName)!=null?A:"[context]");A=void 0;S=(A=S.parent)!=null?A:null}ZmW=C.reverse()}JPp=H;throw H;}finally{VM=w}};
Xb=function(H,C){try{var S=cP6(C);if(S&&!H.componentStack&&(H.componentStack=S,Fb.enableComponentStacksInErrorMessages)){var w=H.message+"\n\nComponent stack: "+S;H.stack&&(H.stack=H.stack.replace(H.message,w));H.message=w}}catch(A){}};
cP6=function(H){if(Zp(H)&&H.name!==void 0&&H.isReactive!==void 0&&H.parent!==void 0||H===null){for(var C=0,S="";C<20&&H;)S+=H.name+" > ",H=H.parent,C++;H=S.slice(0,-3)}else if(Fb.enableContextBasedComponentStacks){a:{for(H=H===void 0?sF:H;H;){if(Jt7(H))break a;C=void 0;H=(C=H.parent)!=null?C:null}H=null}H=H.getComponentStack().slice(0,20).join(" > ")}else H="";return H};
w5E=function(H){return H.debugName||H.name||"[component]"};
YW0=function(H,C,S){C=Object.create(C);H&&(C.effectFn=H);S&&(C.debugName=S);Ja(C);C.componentStack=VM;return C};
_.d6=function(H,C){H=YW0(H,zrW,C);aZi(H)};
_.PN=function(H){var C=sF;if(C){var S=VM;QMZ(C,function(){var w=Y1(hb7());try{QM(function(){return void H()},S)}catch(A){throw Fb.enableContextBasedComponentStacks&&Xb(A),A;
}finally{Y1(w)}})}};
$1=function(H,C){var S={};(C===void 0||C)&&Ja(S);C=_.jL(S);try{H(S)}finally{_.jL(C)}return function(){return void dzV(S)}};
_.ps=function(H){return typeof H==="function"?H():(H==null?0:H[Ma$])?H.get():H};
_.k1=function(H,C){H=YW0(H,qWZ,C);aZi(H)};
Td7=function(H){if(sF)throw Error("nb");$1(H,!1)};
ha=function(H,C){H=_.jL(H);try{return TR(C)}finally{_.jL(H)}};
ns=function(H,C){var S=cP6(Frp),w,A;var J=(A=(w=ZmW)==null?void 0:w.slice())!=null?A:[];C={componentStack:S,contextTrace:J,errorSeverity:3,featureFlags:iCu(),tagName:C};return[H,C]};
yP7=function(H,C,S){if(Object.hasOwnProperty.call(m_V,H)&&(H=m_V[H],Object.hasOwnProperty.call(H,C)&&(H=H[C],H instanceof Array))){for(var w=null,A=!1,J=0,c=H.length;J<c;++J){var Y=H[J],M=Y.contingentAttribute;if(!M)return Y.contract;w===null&&(w={});M=Object.hasOwnProperty.call(w,M)?w[M]:w[M]=S(M);if(M===Y.requiredValue)return Y.contract;M==null&&(A=!0)}if(A)return null}C=WrW[C];return typeof C==="number"?C:null};
Ef$=function(H,C,S){var w=null;(H=NdE[H])&&(w=H[C]);return typeof w!=="number"&&((H=NdE["*"])&&(w=H[C]),typeof w!=="number")?!1:!0===bmW[w][String(S).toLowerCase()]};
uyD=function(H,C){C=yP7(H.toLowerCase(),C,function(){var w;(w=Fb.handleError)==null||w.call.apply(w,[Fb].concat(_.k$(ns(Error("Wb"),H.toLowerCase()))))});
if(C===null)return null;var S;return(S=erw[C])!=null?S:null};
Gqp=function(H,C,S){if(S===null||S===void 0)return S;C=C.toLowerCase();H=uyD(H,C);return H===null?S:H(C,S)};
fVp=function(){};
r6=function(H,C){for(;H.length>C;)H.pop()};
vfU=function(H){H=Array(H);r6(H,0);return H};
BN=function(H,C,S){if(S==null)H.removeAttribute(C);else{var w;(w=C.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":C.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?H.setAttributeNS(w,C,S):H.setAttribute(C,S)}};
lV$=function(H,C,S){H[C]=S};
ofE=function(H,C,S){H=H.style;if(typeof S==="string")H.cssText=S;else{H.cssText="";for(var w in S)if(Vai.call(S,w)){C=H;var A=w,J=S[w];A.indexOf("-")>=0?C.setProperty(A,J):C[A]=J}}};
OmE=function(H,C,S){var w=typeof S;w==="object"||w==="function"?H[C]=S:BN(H,C,S)};
X5W=function(){var H=new fVp;H[Dp.default]=OmE;H.style=ofE;return H};
Qqp=function(H,C,S,w){(w[C]||w[Dp.default])(H,C,S)};
Py0=function(H,C,S){C=new d_p(C,S);return H.__incrementalDOMData=C};
ta=function(H,C){if(H.__incrementalDOMData)return H.__incrementalDOMData;var S=H.nodeType===1?H.localName:H.nodeName,w=H.nodeType===1?H.getAttribute("key"):null;C=Py0(H,S,H.nodeType===1?w||C:null);if(H.nodeType===1&&(H=H.attributes,S=H.length)){w=C._attrsArr||(C._attrsArr=vfU(S*2));for(var A=0,J=0;A<S;A+=1,J+=2){var c=H[A],Y=c.value;w[J]=c.name;w[J+1]=Y}}return C};
$_p=function(H,C,S,w,A){return C==S&&w==A};
p5$=function(H){for(var C=Ls,S=RE();S!==H;){var w=S.nextSibling;C.removeChild(S);IE.deleted.push(S);S=w}};
RE=function(){return aE?aE.nextSibling:Ls.firstChild};
x1=function(){aE=RE()};
nfi=function(H,C,S){x1();var w;a:{if(w=aE){do{var A=w,J=H,c=C,Y=ta(A,c);if(kqp(A,J,Y.nameOrCtor,c,Y.key))break a}while(C&&(w=w.nextSibling))}w=null}w||(H==="#text"?(S=Hh.createTextNode(""),Py0(S,"#text",null),H=S):(w=Hh,A=Ls,typeof H==="function"?w=new H:w=(A=H==="svg"?"http://www.w3.org/2000/svg":H==="math"?"http://www.w3.org/1998/Math/MathML":A==null||ta(A).nameOrCtor==="foreignObject"?null:A.namespaceURI)?w.createElementNS(A,H):w.createElement(H),Py0(w,H,C),H=w,S&&H.setAttribute("nonce",S)),IE.created.push(H),
w=H);S=w;if(S!==aE){if(hrE.indexOf(S)>=0)for(H=Ls,C=S.nextSibling,w=aE;w!==null&&w!==S;)A=w.nextSibling,H.insertBefore(w,C),w=A;else Ls.insertBefore(S,aE);aE=S}};
rPW=function(H,C,S){nfi(H,C,S);Ls=aE;aE=null;return Ls};
BdU=function(){p5$(null);aE=Ls;Ls=Ls.parentNode};
D_$=function(){aE=Ls.lastChild};
Lrw=function(H,C){C=C===void 0?{}:C;var S=C.matches===void 0?$_p:C.matches;return function(w,A,J){var c=IE,Y=Hh,M=hrE,m=iE,W=Cp,y=aE,N=Ls,b=kqp;Hh=w.ownerDocument;IE=new Kr6(w);kqp=S;iE=[];Cp=[];aE=null;var u=Ls=w.parentNode,O,d=ta0.call(w);if((O=d.nodeType===11||d.nodeType===9?d.activeElement:null)&&w.contains(O)){for(d=[];O!==u;)d.push(O),O=O.parentNode||(u?O.host:null);u=d}else u=[];hrE=u;try{return H(w,A,J)}finally{w=IE,SI&&w.deleted.length>0&&SI(w.deleted),Hh=Y,IE=c,kqp=b,iE=m,Cp=W,aE=y,Ls=N,
hrE=M}}};
gfZ=function(H,C,S,w){sg.push(Qqp);sg.push(H);sg.push(C);sg.push(S);sg.push(w)};
RrV=function(H,C,S){var w=Cp;C=C._attrsArr||(C._attrsArr=vfU(w.length));for(var A=!C.length||!1,J=0;J<w.length;J+=2){var c=w[J];if(A)C[J]=c;else if(C[J]!==c)break;var Y=w[J+1];if(A||C[J+1]!==Y)C[J+1]=Y,gfZ(H,c,Y,S)}if(J<w.length||J<C.length){for(J=A=J;J<C.length;J+=2)jI[C[J]]=C[J+1];for(J=A;J<w.length;J+=2)A=w[J],c=w[J+1],jI[A]!==c&&gfZ(H,A,c,S),C[J]=A,C[J+1]=c,delete jI[A];r6(C,w.length);for(var M in jI)gfZ(H,M,void 0,S),delete jI[M]}H=U_i;U_i=S=sg.length;for(M=H;M<S;M+=5)(0,sg[M])(sg[M+1],sg[M+
2],sg[M+3],sg[M+4]);U_i=H;r6(sg,H);r6(w,0)};
IV$=function(H){nfi("#text",null);var C=aE;var S=ta(C);if(S.text!==H){S=S.text=H;for(var w=1;w<arguments.length;w+=1)S=(0,arguments[w])(S);C.data!==S&&(C.data=S)}};
sew=function(H,C,S){if(S===!1&&aVp.has(C))BN(H,C,null);else if(C!=="idomKey"&&C!=="skip"&&C!=="skipchildren"&&C!=="children"&&C!=="el")if(C.startsWith("on")){if(C[2]!==":")throw Error("Sb`"+C);if(S===void 0||S===null){var w;(w=Fb.handleError)==null||w.call.apply(w,[Fb].concat(_.k$(ns(Error("$b`"+C),H.tagName))));H[C]=void 0}else{var A=C.slice(3);w=OF();if(A==="jsaction"){S=Array.isArray(S)?S:[S];S=_.Z(S);for(var J=S.next();!J.done;J=S.next()){J=J.value;if(typeof J!=="object"||J===null||typeof J.selfReg!==
"function")throw Error("Tb`"+C);J.selfReg(0,H,w?_.PN:function(){})}}else{if(typeof S!=="object"||S===null)throw Error("Vb`"+C+"`"+typeof S);
if(typeof S.getFn!=="function")throw Error("Ub`"+C+"`"+Object.keys(S));if(S.selfReg)S.selfReg(0,H,A,w?_.PN:function(){});
else if(w&&H["on"+A]===void 0){var c=S.getFn(0);H.addEventListener(A,c);_.PN(function(){return void H.removeEventListener(A,c)})}else if(w||!x_0.includes(A))H["on"+A]=S.getFn(0)}}}else{if(C.startsWith("data-")&&typeof S==="string")try{S=HDW(S)}catch(Y){S="zSoyz"}typeof S!=="function"||H._disposeEffects!=null?((w=C.startsWith("prop:"))&&(C=C.slice(5)),Fb.enableAttributeSanitization&&(w&&iDE(H.tagName)||(S=Gqp(H.tagName,C,S))),C==="style"?("function"==typeof _.wh&&S instanceof _.wh&&(S=S.toString()),
Cs0(H,C,S)):w?H[C]=S:SkU(H,C,S)):(H._signalProps||(H._signalProps=[]),H._signalValues||(H._signalValues=[]),H._signalProps.push(C))}};
jei=function(H,C,S){S=(S===void 0?{}:S).isReactive;if(C==null?0:C.el){var w=C.el,A;(A=w.onRender)==null||A.call(w,H);H._disposeRef||(H._disposeRef=function(){var J;(J=w.onUnmount)==null||J.call(w);delete H._disposeRef},S&&_.PN(function(){var J;
(J=H._disposeRef)==null||J.call(H)}))}};
iDE=function(H){return H.length>0&&H.includes("-")&&!wME.includes(H.toLowerCase())};
AJV=function(H){return Zp(H)&&AE in H};
JJw=function(H){return AJV(H)?H[AE].flattened:H};
FPZ=function(H,C){var S=_.tc.apply(2,arguments),w;C=(w=C)!=null?w:{};w={};return w.type=H,w.props=C,w.children=S,w[JE]=!0,w};
_.F9=function(H){return H.children};
ZY=function(H){var C=ZDp!==FPZ;ZDp=H?cJZ:FPZ;return C};
_.ch=function(H){return _.U$(H)?"nodeType"in H:!1};
zA=function(){return document.createTextNode("")};
Mn=function(H){H=document.createTextNode(String(H));H._isSignalTextNode=!0;return H};
zkZ=function(H){return H!=null&&H.contentKind===qn||H instanceof Ut||YkE(H)};
MjZ=function(H){var C=document.createElement("div");if(YkE(H)&&yAw(H))_.FN(C,yAw(H));else if(H instanceof Ut)_.FN(C,H);else if(H!=null&&H.contentKind===qn){if(H.contentKind!==qn)throw Error("Zb");H=R2(H.toString());_.FN(C,H)}H=_.Z(C.childNodes);for(var S=H.next();!S.done;S=H.next())S.value._isSafeOrSanitizedHtmlNode=!0;return C};
TA=function(H){H=typeof H;return H==="string"||H==="number"||H==="boolean"};
qku=function(H){return H instanceof o2||p9(H)||H instanceof Y$||"function"==typeof _.wh&&H instanceof _.wh};
TM0=function(H,C){var S=H.parentElement;if(!S)return C;S.replaceChild(C,H);return C};
mQE=function(H,C){var S=H[0].parentElement;if(S)if(H[0].previousSibling||H[H.length-1].nextSibling){S.insertBefore(C,H[0]);for(var w=H.length-1;w>=0;w--)S.removeChild(H[w])}else S.textContent="",S.appendChild(C);return C};
WP0=function(H,C){if(H[0].parentElement)for(var S=H[0].parentElement,w=C.length,A=H.length,J=w,c=0,Y=0,M=H[A-1].nextSibling,m=null;c<A||Y<J;)if(H[c]===C[Y])c++,Y++;else{for(;H[A-1]===C[J-1];)A--,J--;if(A===c)for(var W=J<w?Y?C[Y-1].nextSibling:C[J-Y]:M;Y<J;){var y=C[Y++];S.insertBefore(y,W)}else if(J===Y)for(;c<A;)W=H[c],m&&m.has(W)||S.removeChild(W),c++;else if(H[c]===C[J-1]&&C[Y]===H[A-1])W=H[--A].nextSibling,S.insertBefore(C[Y++],H[c++].nextSibling),S.insertBefore(C[--J],W),H[A]=C[J];else{if(!m)for(m=
new Map,W=Y;W<J;)m.set(C[W],W++);W=m.get(H[c]);if(W==null)S.removeChild(H[c]),c++;else if(Y<W&&W<J){y=c;for(var N=1,b=void 0;++y<A&&y<J&&(b=m.get(H[y]))!=null&&b===W+N;)N++;if(N>W-Y)for(y=H[c];Y<W;)S.insertBefore(C[Y++],y);else S.replaceChild(C[Y++],H[c++])}else c++}}return C};
NMZ=function(H){if(Array.isArray(H)){if(H.length>1)throw Error("jc`"+H.length+"`"+H.map(yJE).join(", "));H=H[0]}if(H==null)return null;if(!(H instanceof _.jn)){var C,S;if((C=window)==null?0:(S=C.trustedTypes)==null?0:S.isScript(H))throw Error("ic");if(String(H).trim().length===0)return null;throw Error("kc`"+yJE(H));}return H};
bD0=function(H,C){C=NMZ(C);C!==null&&_.AY(H,C)};
E_Z=function(H){if(Array.isArray(H)){if(H.length>1)throw Error("lc`"+H.length+"`"+H.map(yJE).join(", "));H=H[0]}if(H==null)return null;if(!(H instanceof Y$)){if(String(H).trim().length===0)return null;throw Error("mc`"+yJE(H));}return H};
ekU=function(H,C){C=E_Z(C);C!==null&&(H.textContent=mOU(C))};
yJE=function(H){return"("+typeof H+") "+(H!=null&&typeof H==="object"?H.constructor.name:typeof H)+" "+H};
uji=function(){};
yq=function(H,C){C=C===void 0?{}:C;var S=Gc0(),w=!0,A,J=!!Fb.legacyTriggerSoyRendererEvents;J&&(A=tkw());_.k1(function(){var c=!w&&C.isControlFlowComponent&&J,Y=c?S[AE].flattened[0].parentElement:void 0;w=!1;_.ml.setUp();C.isControlFlowComponent&&GR++;var M=S[0],m=S[AE].flattened,W=ZY(!0);try{var y=H(),N=fgZ(M,y,S);Array.isArray(N)||(S[AE].flattened=[N]);var b=S[AE].flattened;if(m&&(!Array.isArray(m)||m.length!==0)){var u=Array.isArray(m)?m[0]:m,O=u[Wh],d=u._disposeEffects;u._disposeEffects=void 0;
u=Array.isArray(b)?b[0]:b;u[Wh]=O;u[Wh]&&(u[Wh].numNodes=u===b?1:b.length);u._disposeEffects=d}S[0]=N;C.isControlFlowComponent&&lW(!1)}catch(p){throw C.isControlFlowComponent&&lW(!0),p;}finally{ZY(W),_.ml.tearDown()}c&&(c=A,c!=null||(c=_.lt6(document).getAppContext()),c.get(v_w).JSC$29116_getEventTarget().dispatchEvent(new lg6(VjU,Y,qn)))},C.debugName);
return S};
fgZ=function(H,C,S){for(;typeof C==="function";)C=C();if(C!=null&&C[JE]){var w,A,J;(J=Fb.handleError)==null||J.call.apply(J,[Fb].concat(_.k$(ns(Error("nc`"+((w=C.type)==null?void 0:w.TAG_NAME)),(A=C.type)==null?void 0:A.TAG_NAME))))}if(H==null)return C==null?zA():TA(C)?Mn(C):qku(C)?Mn(C.toString()):_.ch(C)?C:C.length===0?zA():o_W(C,S);if(_.ch(H)){if(C==null)return TM0(H,zA());if(TA(C))return ODi(H,C);if(qku(C))return ODi(H,C.toString());if(_.ch(C))return TM0(H,C);if(C.length===0)return TM0(H,zA());
C=o_W(C,S);WP0([H],S[AE].flattened);return C}H=bE(H);if(C==null)return mQE(H,zA());if(TA(C))return mQE(H,Mn(C));if(qku(C))return mQE(H,Mn(C.toString()));if(_.ch(C))return WP0(H,[C])[0];if(C.length===0)return mQE(H,zA());C=o_W(C,S);WP0(H,S[AE].flattened);return C};
ODi=function(H,C){H.nodeType===Node.TEXT_NODE?H.textContent!==String(C)&&(H.textContent=String(C)):H=TM0(H,Mn(C));return H};
bE=function(H,C,S){return XMV(H,C!=null?C:[],S===void 0?!1:S)};
o_W=function(H,C){var S=bE(H,void 0,!0);if(S.length===0)return zA();C[AE].flattened=S;return H};
XMV=function(H,C,S,w,A){C=C===void 0?[]:C;S=S===void 0?!1:S;A=A===void 0?-1:A;if(H==null)return C;if(H instanceof Eg){var J=H.render();return XMV(J,C,S,w,A)}if(_.ch(C)&&C.nodeType===Node.ELEMENT_NODE)switch(C.tagName){case "SCRIPT":bD0(C,H);return;case "STYLE":ekU(C,H);return}TA(H)&&(H=Mn(H),w&&S&&(w[A]=H));if(zkZ(H)){S=MjZ(H);S=Array.from(S.childNodes);S=_.Z(S);for(J=S.next();!J.done;J=S.next())QeD(C,J.value);return C}qku(H)&&(H=Mn(H.toString()),w&&S&&(w[A]=H));if(_.ch(H))return QeD(C,H);if(Array.isArray(H)){for(J=
0;J<H.length;J++)XMV(H[J],C,S,H,J);return C}if(typeof H==="function"){J=yq(function(){var Y=H();return Y!=null&&!TA(Y)&&zkZ(Y)?(Y=MjZ(Y),Array.from(Y.childNodes)):Y},{debugName:"qmF2ne",
debugFn:H})[0];if(Array.isArray(J)){S=_.Z(J);for(J=S.next();!J.done;J=S.next())QeD(C,J.value);return C}w&&S&&(w[A]=J);return QeD(C,J)}if(H!=null&&H[JE]){w=H;A=ZY(!0);var c=ZDp;try{J=c.apply(null,[w.type,w.props].concat(_.k$(w.children)))}finally{ZY(A)}return XMV(J,C,S)}(c=Fb.handleError)==null||c.call.apply(c,[Fb].concat(_.k$(ns(Error("oc")))));return C};
Gc0=function(H){var C={};C=Object.assign([],(C[AE]={flattened:[]},C));if(!H)return C;C[0]=o_W(H,C);return C};
QeD=function(H,C){Array.isArray(H)?H.push(C):H.appendChild(C);return H};
eI=function(H){if(!Fb.enableLazyTsx)return H;if(Array.isArray(H)){for(var C=0;C<H.length;C++)H[C]=eI(H[C]);return H}return H instanceof Eg?(H=H.render(),eI(H)):H};
Psp=function(H,C){var S,w,A=w5E(H),J=function(b){w=b;b=ZY(!0);var u=Y1(uE);CbU("render",A);try{S=eI(H(C))}finally{SsZ("render",A),Y1(u),ZY(b)}};
J=Fb.enableContextPerComponent?wnE(J,A):$1(J,Fb.alwaysTrackContexts||!!sF);Jt7(w);if(!C.renderedFromIdom){var c=_.jL(w);try{return dQZ(H,C,S),S}finally{_.jL(c)}}!AJV(S)&&Array.isArray(S)&&(S=Gc0(S));var Y=JJw(S);c=Array.isArray(Y)?Y[0]:Y;var M=!1;if(c){var m,W=(m=C==null?void 0:C.idomKey)!=null?m:H;m=Y!==c;c._disposeEffects=J;var y=c[Wh]||{},N=AJV(S)?S:y.sourceDynamicRange;Object.assign(y,{key:W,numNodes:m?Y.length:1,context:w,higherOrder:!!c[Wh],sourceDynamicRange:N});c[Wh]=y}else M=!0;(function(){var b=
_.jL(w);try{dQZ(H,C,Y)}finally{_.jL(b)}})();
M&&J();return S};
$Qi=function(H){var C={},S;for(S in H)C={prev$jscomp$24:void 0,next$jscomp$33:void 0},C.prev$jscomp$24=GA[S],C.next$jscomp$33=H[S],GA[S]=function(w){return function(){var A=_.tc.apply(0,arguments);w.prev$jscomp$24.apply(null,_.k$(A));w.next$jscomp$33.apply(null,_.k$(A))}}(C)};
pMi=function(){if(OF())throw Error("pc");return fp};
kcW=function(H,C){if(!H.__unmounted&&C){H.__unmounted=!0;try{H.didUnmount()}catch(A){var S,w;(w=Fb.handleError)==null||w.call.apply(w,[Fb].concat(_.k$(ns(A,(S=H.__type)==null?void 0:S.TAG_NAME))))}GA.didUnmount(H);H.el=null;C.__instance&&delete C.__instance}};
n_7=function(H,C,S){H._signalProps!=null&&H._disposeEffects==null&&((S===void 0?0:S)?H._disposeEffects=$1(function(){return void hkE(H,C)},Fb.alwaysTrackContexts||!!sF):hkE(H,C))};
hkE=function(H,C){_.k1(function(){for(var S=H._signalProps,w=H._signalValues,A=0;A<S.length;A++){var J=S[A],c=C[J]();w[A]!==c&&(w[A]=c,sew(H,J,c))}},"e3YVbb")};
rJ6=function(H,C,S){var w,A=[];H._disposeEffects=$1(function(){_.k1(function(){var J=S();if(J===null||J===void 0)J="";if(TA(J)||J===null)w!=null||(w=document.createTextNode("")),w.parentNode!==H&&(w._isSignalTextNode=!0,H.insertBefore(w,C)),w.textContent=String(J);else if(zkZ(J)){for(var c=A.length>0?A[A.length-1].nextSibling:C,Y=_.Z(A),M=Y.next();!M.done;M=Y.next())H.removeChild(M.value);J=MjZ(J);A=Array.from(J.childNodes);J=_.Z(A);for(Y=J.next();!Y.done;Y=J.next())H.insertBefore(Y.value,c)}else throw M=
(Y=(c=VM)==null?void 0:c.name)!=null?Y:"unknown",Error("ec`"+M+"`"+typeof J);},"VvDgC")},Fb.alwaysTrackContexts||!!sF)};
KP$=function(H,C){var S=_.tc.apply(2,arguments);C!=null||(C={});return!Fb.enableLazyTsx||VM!=null&&!OF()?BMZ(H,C,S):new DQp(H,C,S)};
BMZ=function(H,C,S){if(H===_.F9)return S;if(typeof H==="function")return VM&&!OF()&&(C.renderedFromIdom=!0),APE(H,function(){var J=tjZ(H,C,S);if(J)return J;S.length>0&&(C.children=S.length===1?S[0]:S);if(H.componentType===oE){var c;wnE(function(){var Y=C;if(H.componentType!==oE)c=!1;else{Y||(Y={});var M=new vh(Y,H),m=Y1(uE);try{var W=M.render(Y)}finally{Y1(m)}W instanceof HTMLElement?(W.__instance=M,M.el=W,M.__type=H,H.TAG_NAME=W.tagName.toLowerCase(),GA.didPatch(M),c=W):c=W}},H.name);
if(c)return c}return Psp(H,C)},C.debugInstance);
var w=LPZ(H,C),A;for(A in C)sew(w,A,C[A]);n_7(w,C);bE(S,w);jei(w,C,{isReactive:!0});g_W(w,C);return w};
LPZ=function(H,C){H=(UQD.has(H.toLowerCase())?0:RkZ.has(H.startsWith("svg:")?H.replace("svg:",""):H))?document.createElementNS("http://www.w3.org/2000/svg",H.startsWith("svg:")?H.replace("svg:",""):H):Igw(H,C)||document.createElement(H);H[agE]=!0;return H};
xQ$=function(H){if(H){var C;(C=H._disposeRef)==null||C.call(H);var S;(S=H._disposeEffects)==null||S.call(H);H.__instance&&H.__instance instanceof lE&&(C=H.__instance,kcW(C,H),C instanceof vh&&C.disposeEffects());for(C=0;C<H.childNodes.length;C++)xQ$(H.childNodes[C])}};
iLi=function(H){HL$.push(H)===1&&requestAnimationFrame(function(){setTimeout(function(){var C=[].concat(_.k$(HL$));HL$=[];C=_.Z(C);for(var S=C.next();!S.done;S=C.next()){S=S.value;try{for(var w=0;w<S.length;w++)xQ$(S[w])}catch(A){w=S=void 0,(w=(S=Fb).handleError)==null||w.call.apply(w,[S].concat(_.k$(ns(A))))}}})})};
_.q=function(H,C){return ZDp.apply(null,[H,C].concat(_.k$(_.tc.apply(2,arguments))))};
_.T=function(H){var C=H.cond;if(C===void 0)return H.else&&H.else();var S=_.EF(function(){return!!C()},void 0,"JHVi8"),w=function(){var A=C();
if(!A){var J;(J=Fb.handleError)==null||J.call.apply(J,[Fb].concat(_.k$(ns(C9i.nonNullableCondIsNull()))))}return A};
return yq(function(){var A=S(),J;$1(function(){var c=Y1(uE);try{J=eI(A?H.then(w):H.else&&H.else())}finally{Y1(c)}},!0);
return J},{debugName:H.debugInstance,
debugFn:H.then,isControlFlowComponent:!0})};
SX$=function(H){return _.T(H)};
_.Vq=function(H){return H.keyBy==="INDEX"?sk$(H):jkW(H)};
wH0=function(H){H=_.Z(H);for(var C=H.next();!C.done;C=H.next()){var S=void 0;(S=C.value)==null||S()}};
jkW=function(H){var C=H.keyBy===void 0||H.keyBy==="REFERENCE",S=C?function(W){return W}:H.keyBy,w=[],A=[],J=[],c=[],Y=[],M=[],m=!0;
_.PN(function(){wH0(c)});
return yq(function(){var W=H.each(),y=W.length;if(y===0){if(w.length===0&&!m)return J;wH0(c);w=W;A=[];for(W=0;W<w.length;W++)A.push(S(w[W]));J=[];c=[];Y=[];M=[];H.fallback&&(c[0]=AMi(function(){J[0]=eI(H.fallback())}));
m=!1;return J}for(var N=new JME,b=w.length-1;b>=0;b--)N.push(A[b],b);b=Array(y);for(var u=Array(y),O=Array(y),d=Array(y),p=Array(C?0:y),k={i$jscomp$450:0};k.i$jscomp$450<y;k={i$jscomp$450:k.i$jscomp$450,item$jscomp$104:void 0,key$jscomp$566:void 0},k.i$jscomp$450++){k.item$jscomp$104=W[k.i$jscomp$450];k.key$jscomp$566=S(k.item$jscomp$104);var R=N.pop(k.key$jscomp$566);R!=null?(O[k.i$jscomp$450]=J[R],u[k.i$jscomp$450]=A[R],b[k.i$jscomp$450]=c[R],d[k.i$jscomp$450]=Y[R],C||(p[k.i$jscomp$450]=M[R]),eL(function(L){return function(){d[L.i$jscomp$450](L.i$jscomp$450);
if(!C)p[L.i$jscomp$450](L.item$jscomp$104)}}(k)),delete c[R]):b[k.i$jscomp$450]=AMi(function(L){return function(){var t=_.Z(_.mB(L.i$jscomp$450,void 0,"Fqk1zd")),g=t.next().value;
t=t.next().value;d[L.i$jscomp$450]=t;u[L.i$jscomp$450]=L.key$jscomp$566;if(C)O[L.i$jscomp$450]=eI(H.children(L.item$jscomp$104,g));else{var ii=_.Z(_.mB(L.item$jscomp$104,void 0,"GBj5de"));t=ii.next().value;ii=ii.next().value;p[L.i$jscomp$450]=ii;O[L.i$jscomp$450]=eI(H.children(t,g))}}}(k))}wH0(c);
w=W;A=u;J=O;c=b;Y=d;M=p;m=!1;return O},{debugName:H.debugInstance,
debugFn:H.each,isControlFlowComponent:!0})};
sk$=function(H){var C=[],S=[],w=[],A=[],J=!1;_.PN(function(){for(var c=_.Z(A),Y=c.next();!Y.done;Y=c.next())Y=Y.value,Y()});
return yq(function(){var c=H.each();J&&c.length>0&&(A.pop()(),C.pop(),J=!1);for(var Y=Array(c.length),M={i$jscomp$451:0};M.i$jscomp$451<c.length;M={i$jscomp$451:M.i$jscomp$451},M.i$jscomp$451++)if(M.i$jscomp$451<C.length)C[M.i$jscomp$451]!==c[M.i$jscomp$451]&&(eL(function(W){return function(){return void S[W.i$jscomp$451](c[W.i$jscomp$451])}}(M)),C[M.i$jscomp$451]=c[M.i$jscomp$451]),Y[M.i$jscomp$451]=w[M.i$jscomp$451];
else{var m=AMi(function(W){return function(){C[W.i$jscomp$451]=c[W.i$jscomp$451];var y=_.Z(_.mB(c[W.i$jscomp$451],void 0,"JMMLmd")),N=y.next().value;y=y.next().value;S[W.i$jscomp$451]=y;Y[W.i$jscomp$451]=eI(H.children(N,W.i$jscomp$451))}}(M));
A[M.i$jscomp$451]=m}for(;C.length>c.length;)C.pop(),A.pop()(),S.pop();c.length===0&&!J&&H.fallback&&(M=AMi(function(){Y[0]=eI(H.fallback())}),A[0]=M,J=!0);
return w=Y},{debugName:H.debugInstance,
isControlFlowComponent:!0})};
AMi=function(H){var C=sF;return $1(function(S){var w=Y1(uE);try{S.parent=C,H(S)}finally{Y1(w)}},!1)};
_.o6=function(H){return H};
_.Og=function(H){return{isDefault:!0,children:H.children}};
_.X9=function(H){var C=F7D(H),S=_.EF(function(){return ZLu(C)},void 0,"F1PF4");
return yq(function(){var w=S(),A;$1(function(){var J=Y1(uE);try{A=eI(w())}finally{Y1(J)}});
return A},{debugName:H.debugInstance,
isControlFlowComponent:!0})};
F7D=function(H){H=H.children;return Array.isArray(H)?H:[H]};
cMw=function(H){var C=H.props;H=H.getChildren()[0];return C.when?{when:C.when,children:H}:{isDefault:!0,children:H}};
ZLu=function(H){var C=function(){return null};
H=_.Z(H);for(var S=H.next();!S.done;S=H.next())if(S=S.value,S!=null&&S[JE]&&(S=S.type===_.Og?{isDefault:!0,children:S.children[0]}:{when:S.props.when,children:S.children[0]}),S instanceof Eg&&(S=cMw(S)),S.isDefault)C=S.children;else if(S.when())return S.children;return C};
zN6=function(H){var C=null,S,w={get value(){var J,c;(c=(J=A).validateGetValue)==null||c.call(J);return A.__value},set value(J){var c,Y;(Y=(c=A).validateSetValue)==null||Y.call(c,J);A.__value=J;A.__hasBeenSet=!0}},A=(w.__value=null,w.__hasBeenSet=!1,w.__hasErrored=!1,w.onRender=function(J){if(S&&J!==S){S._disposeRef=void 0;var c;(c=C)==null||c()}S=J;C=H(J)||null},w.onUnmount=function(){var J;
(J=C)==null||J();C=A.value=null},w[_.YXp]=!0,w);
return A};
Qq=function(H){return typeof H==="symbol"};
qXE=function(H){var C=pMi();if(C==null)throw _.MRU.PRIMITIVE_INVALID_HOOK_CALL();var S=C.hookCounter++;C.hooks||(C.hooks=[]);var w=C.hooks;w[S]||(w[S]={key:H,host:C});if(H!==w[S].key){if(C.__type){var A;H=(A=C.__type)==null?void 0:A.name}else H=C instanceof vh?w5E(C.functionComponent):"<"+C.el.tagName.toLowerCase()+">";throw _.MRU.OUT_OF_ORDER_HOOK_CALL(H);}return w[S]};
TVW=function(H,C){return!H||H.length!==(C==null?void 0:C.length)||H.some(function(S,w){return S!==C[w]})};
m3$=function(H,C){var S=qXE("onChange"),w=pMi();TVW(S.deps,C)&&(S.deps=C,S.pendingEffect=H,w.__syncEffects||(w.__syncEffects=[]),w.__syncEffects.push(S))};
_.dh=function(H,C,S){S!=null||(S={});S=S.appContext;var w=!!Fb.legacyTriggerSoyRendererEvents;_.ml.setUp();try{var A=W7Z(H,C,S);w&&(C=S,C!=null||(C=_.lt6(document).getAppContext()),C.get(v_w).JSC$29116_getEventTarget().dispatchEvent(new lg6(yME,H,qn)));_.ml.log(H);return A}finally{_.ml.tearDown()}};
W7Z=function(H,C,S){var w=function(){var J=Y1(uE);try{return $1(function(){var c=_.lt6(_.D9(H)),Y;var M=KQE({rootElement:{value:H},appContext:S||(c==null?void 0:(Y=c.getOptionalAppContext)==null?void 0:Y.call(c)),dispatcher:c});c=_.jL(M);M=ZY(!0);GR++;try{bE(C(),H),lW(!1)}catch(m){throw lW(!0),m;}finally{ZY(M),_.jL(c)}},!1)}catch(c){throw Fb.enableContextBasedComponentStacks&&Xb(c),c;
}finally{Y1(J)}},A=QM(function(){return w()});
H[NVw]=!0;return function(){H.textContent="";A();H[NVw]=!1}};
_.Ph=function(H){if(SWW(cN)){var C;(C=Fb.handleError)==null||C.call.apply(C,[Fb].concat(_.k$(ns(Error("dc")))))}var S=sF,w=VM;tr0({onInitType:DK7,run:function(){if(S&&!S.isDisposed){var A=_.jL(S);try{QM(function(){return void H()},w)}catch(J){throw Fb.enableContextBasedComponentStacks&&Xb(J),J;
}finally{_.jL(A)}}}})};
bLE=function(H,C){m3$(function(){return TR(H)},C)};
_.$T=function(H){OF()?_.Ph(function(){TR(H)}):m3$(function(){return TR(H)},[])};
eNU=function(H){var C=[].concat(_.k$(H));H.length=0;H=_.Z(C);for(C=H.next();!C.done;C=H.next()){C=C.value;ERE(C);var S=C.pendingEffect;C.pendingEffect=null;if(S=S==null?void 0:S())C.pendingCleanup=S}};
ERE=function(H){var C=H.pendingCleanup;H.pendingCleanup=null;C==null||C()};
uwp=function(H,C){if(OF())return H();var S=qXE("useMemoInternal");TVW(S.deps,C)&&(S.deps=C,S.value=H());return S.value};
Gop=function(H,C){return uwp(H,C)};
pp=function(H){return uwp(H,[])};
fRE=function(H){return pp(function(){return{value:H}})};
_.kT=function(H,C){if(!H)return null;H=Object.keys(H);H=_.Z(H);for(var S=H.next();!S.done;S=H.next()){S=S.value;var w=S.toLowerCase();if(w.indexOf(C,w.length-C.length)>-1)return S}return null};
_.np=function(){var H=arguments,C=_.hE;H.length>1?C[H[0]]=H[1]:H.length===1&&Object.assign(C,H[0])};
_.rh=function(H,C){return H in _.hE?_.hE[H]:C};
_.Bh=function(H,C){return!!_.rh(H,C)};
vR$=function(H){var C=_.hE.EXPERIMENT_FLAGS;return C?C[H]:void 0};
VR7=function(H){lR0.forEach(function(C){return C(H)})};
_.Lp=function(H){return H&&window.yterr?function(){try{return H.apply(this,arguments)}catch(C){_.tE(C)}}:H};
_.tE=function(H){var C=_.gh("yt.logging.errors.log");C?C(H,"ERROR",void 0,void 0,void 0,void 0,void 0):(C=_.rh("ERRORS",[]),C.push([H,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.np("ERRORS",C));VR7(H)};
_.Ug=function(H,C,S,w,A){var J=_.gh("yt.logging.errors.log");J?J(H,"WARNING",C,S,w,void 0,A):(J=_.rh("ERRORS",[]),J.push([H,"WARNING",C,S,w,void 0,A]),_.np("ERRORS",J))};
OLU=function(H,C){C=H.split(C);for(var S={},w=0,A=C.length;w<A;w++){var J=C[w].split("=");if(J.length===1&&J[0]||J.length===2)try{var c=oRU(J[0]||""),Y=oRU(J[1]||"");if(c in S){var M=S[c];Array.isArray(M)?_.KU(M,Y):S[c]=[M,Y]}else S[c]=Y}catch(N){var m=N,W=J[0],y=String(OLU);m.args=[{key:W,value:J[1],query:H,method:XH$===y?"unchanged":y}];Qk6.hasOwnProperty(W)||_.Ug(m)}}return S};
d37=function(H){var C=[];_.hb.forEach(H,function(S,w){var A=_.R6(w);S=Array.isArray(S)?S:[S];_.I6(S,function(J){J==""?C.push(A):C.push(A+"="+_.R6(J))})});
return C.join("&")};
_.a6=function(H){H.charAt(0)==="?"&&(H=H.substring(1));return OLU(H,"&")};
_.xT=function(H){return H.indexOf("?")!==-1?(H=(H||"").split("#")[0],H=H.split("?",2),_.a6(H.length>1?H[1]:H[0])):{}};
_.HA=function(H,C){return P9Z(H,C||{},!0)};
$3i=function(H,C){return P9Z(H,C||{},!1)};
P9Z=function(H,C,S){var w=H.split("#",2);H=w[0];w=w.length>1?"#"+w[1]:"";var A=H.split("?",2);H=A[0];A=_.a6(A[1]||"");for(var J in C)if(S||!_.hb.containsKey(A,J))A[J]=C[J];return _.i5(H,A)+w};
j$=function(H){if(!C)var C=window.location.href;var S=_.Cv(H)[1]||null,w=_.S$(H);return S&&w?sE(H,C):w?_.S$(C)===w&&(Number(_.Cv(C)[4]||null)||null)===(Number(_.Cv(H)[4]||null)||null):!0};
_.kou=function(H){H=pHu(H);return H===null?!1:H[0]==="com"&&H[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
pHu=function(H){H=_.S$(H);return H!==null?H.split(".").reverse():null};
oRU=function(H){return H&&H.match(hNU)?H:w4(H)};
_.AA=function(H){return new nRU(H)};
_.JA=function(){rMw||(rMw=new BVZ);return rMw};
K7D=function(){var H=D3w;return function(){var C=_.JA();if(!C.resolve(_.AA(H))){var S={};C.addProvider((S.provide=H,S.useClass=H,S[F0]=void 0,S))}return C.resolve(H)}};
L7V=function(H){var C=_.ZQ,S,w;_.z(function(A){S=_.JA();return(w=S.resolve(_.AA(C)))?(H(w),A.return(Promise.resolve(w))):A.return(S.resolve(new tR6(C)).then(function(J){H(J);return J}))})};
_.E=function(H){H=cA(H);return typeof H==="string"&&H==="false"?!1:!!H};
_.YB=function(H,C){H=cA(H);return H===void 0&&C!==void 0?C:Number(H||0)};
gR6=function(H){H=cA(H);return Array.isArray(H)?_.nX(H,function(C){return Number(C||0)}):[Number(H||0)]};
_.z9=function(H){H=cA(H);return H!==void 0?String(H):""};
_.mC=function(H){H=cA(H);return Array.isArray(H)?_.nX(H,function(C){return String(C||"")}):[String(H||"")]};
U3U=function(){return _.rh("EXPERIMENTS_TOKEN","")};
cA=function(H){return _.rh("EXPERIMENT_FLAGS",{})[H]};
RN6=function(){for(var H=[],C=_.rh("EXPERIMENTS_FORCED_FLAGS",{}),S=_.Z(Object.keys(C)),w=S.next();!w.done;w=S.next())w=w.value,H.push({key:w,value:String(C[w])});S=_.rh("EXPERIMENT_FLAGS",{});w=_.Z(Object.keys(S));for(var A=w.next();!A.done;A=w.next())A=A.value,A.startsWith("force_")&&C[A]===void 0&&H.push({key:A,value:String(S[A])});return H};
aRE=function(){if(!IRw)return null;var H=IRw();return"open"in H?H:null};
_.x36=function(H){switch(_.WA(H)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.WA=function(H){return H&&"status"in H?H.status:-1};
_.yD=function(H,C){typeof H==="function"&&(H=_.Lp(H));return window.setTimeout(H,C)};
_.NE=function(H,C){typeof H==="function"&&(H=_.Lp(H));return window.setInterval(H,C)};
_.b5=function(H){window.clearTimeout(H)};
i8Z=function(H){H=_.xT(H);for(var C=_.Z(H8u),S=C.next();!S.done;S=C.next())if(H[S.value]!==void 0)return!0;return!1};
su0=function(H,C,S,w,A,J,c,Y,M){S=S===void 0?"GET":S;w=w===void 0?"":w;Y=Y===void 0?!1:Y;var m=aRE();if(!m)return null;var W=function(){(m&&"readyState"in m?m.readyState:0)===4&&C&&_.Lp(C)(m)};
"onloadend"in m?m.addEventListener("loadend",W,!1):m.onreadystatechange=W;_.E("debug_forward_web_query_parameters")&&(H=CaZ(H,window.location.search));m.open(S,H,!0);J&&(m.responseType=J);c&&(m.withCredentials=!0);S=S==="POST"&&(window.FormData===void 0||!(w instanceof FormData));if(A=Sap(H,A))for(var y in A)m.setRequestHeader(y,A[y]),"content-type"===y.toLowerCase()&&(S=!1);S&&m.setRequestHeader("Content-Type","application/x-www-form-urlencoded");M&&"onprogress"in m&&(m.onprogress=function(){M(m.responseText)});
if(Y&&"setAttributionReporting"in XMLHttpRequest.prototype){H={eventSourceEligible:!0,triggerEligible:!1};try{m.setAttributionReporting(H)}catch(N){_.Ug(N)}}m.send(w);return m};
Sap=function(H,C){C=C===void 0?{}:C;var S=j$(H),w=_.rh("INNERTUBE_CLIENT_NAME"),A=_.E("web_ajax_ignore_global_headers_if_set"),J;for(J in juE){var c=_.rh(juE[J]),Y=J==="X-Goog-AuthUser"||J==="X-Goog-PageId";J!=="X-Goog-Visitor-Id"||c||(c=_.rh("VISITOR_DATA"));var M;if(!(M=!c)){if(!(M=S||(_.S$(H)?!1:!0))){M=H;var m;if(m=_.E("add_auth_headers_to_remarketing_google_dot_com_ping")&&J==="Authorization"&&(w==="TVHTML5"||w==="TVHTML5_UNPLUGGED"||w==="TVHTML5_SIMPLY"))m=pHu(M),m=m===null?!1:m[1]==="google"?
!0:m[2]==="google"?m[0]==="au"&&m[1]==="com"?!0:m[0]==="uk"&&m[1]==="co"?!0:!1:!1;m&&(M=_.EE(M)||"",M=M.split("/"),M="/"+(M.length>1?M[1]:""),m=M==="/pagead");M=m?!0:!1}M=!M}M||A&&C[J]!==void 0||w==="TVHTML5_UNPLUGGED"&&Y||(C[J]=c)}"X-Goog-EOM-Visitor-Id"in C&&"X-Goog-Visitor-Id"in C&&delete C["X-Goog-Visitor-Id"];if(S||!_.S$(H))C["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(S||!_.S$(H)){try{var W=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(y){}W&&(C["X-YouTube-Time-Zone"]=
W)}document.location.hostname.endsWith("youtubeeducation.com")||!S&&_.S$(H)||(C["X-YouTube-Ad-Signals"]=d37(wFZ()));return C};
_.AfE=function(H,C){var S=_.S$(H);_.E("debug_handle_relative_url_for_query_forward_killswitch")||!S&&j$(H)&&(S=document.location.hostname);var w=_.EE(H);w=(S=S&&(S.endsWith("youtube.com")||S.endsWith("youtube-nocookie.com")))&&w&&w.startsWith("/api/");if(!S||w)return H;var A=_.a6(C),J={};_.I6(H8u,function(c){A[c]&&(J[c]=A[c])});
return $3i(H,J)};
Jf6=function(H,C){C.method="POST";C.postParams||(C.postParams={});return _.e$(H,C)};
FFD=function(H,C){var S=_.rh("XSRF_FIELD_NAME"),w;C.headers&&(w=C.headers["Content-Type"]);return!C.excludeXsrf&&(!_.S$(H)||C.withCredentials||_.S$(H)===document.location.hostname)&&C.method==="POST"&&(!w||w==="application/x-www-form-urlencoded")&&!(C.postParams&&C.postParams[S])};
_.e$=function(H,C){var S=C.format||"JSON";H=Z8w(H,C);var w=cf0(H,C),A=!1,J=YaZ(H,function(M){if(!A){A=!0;Y&&_.b5(Y);var m=_.x36(M),W=null,y=400<=M.status&&M.status<500,N=500<=M.status&&M.status<600;if(m||y||N)W=zDZ(H,S,M,C.convertToSafeHtml);m&&(m=Mp0(S,M,W));W=W||{};y=C.context||_.s$;m?C.onSuccess&&C.onSuccess.call(y,M,W):C.onError&&C.onError.call(y,M,W);C.onFinish&&C.onFinish.call(y,M,W)}},C.method,w,C.headers,C.responseType,C.withCredentials,!1,C.onProgress);
w=C.timeout||0;if(C.onTimeout&&w>0){var c=C.onTimeout;var Y=_.yD(function(){A||(A=!0,J.abort(),_.b5(Y),c.call(C.context||_.s$,J))},w)}return J};
Z8w=function(H,C){C.includeDomain&&(H=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+H);var S=_.rh("XSRF_FIELD_NAME");if(C=C.urlParams)C[S]&&delete C[S],H=_.HA(H,C);return H};
cf0=function(H,C){var S=_.rh("XSRF_FIELD_NAME"),w=_.rh("XSRF_TOKEN"),A=C.postBody||"",J=C.postParams;FFD(H,C)&&(J||(J={}),J[S]=w);(_.E("ajax_parse_query_data_only_when_filled")&&J&&Object.keys(J).length>0||J)&&typeof A==="string"&&(A=_.a6(A),_.hb.extend(A,J),A=C.postBodyFormat&&C.postBodyFormat==="JSON"?JSON.stringify(A):_.u5(A));J=A||J&&!_.hb.isEmpty(J);!qaZ&&J&&C.method!=="POST"&&(qaZ=!0,_.tE(Error("Jc")));return A};
zDZ=function(H,C,S,w){var A=null;switch(C){case "JSON":try{var J=S.responseText}catch(c){throw w=Error("Kc"),w.params=H,_.Ug(w),c;}H=S.getResponseHeader("Content-Type")||"";J&&H.indexOf("json")>=0&&(J.substring(0,5)===")]}'\n"&&(J=J.substring(5)),A=JSON.parse(J));break;case "XML":if(H=(H=S.responseXML)?TBi(H):null)A={},_.I6(H.getElementsByTagName("*"),function(c){A[c.tagName]=md$(c)})}w&&WFE(A);
return A};
WFE=function(H){if(_.U$(H))for(var C in H)C==="html_content"||JV(C,"_html")?H[C]=R2(H[C]):WFE(H[C])};
Mp0=function(H,C,S){if(C&&C.status===204)return!0;switch(H){case "JSON":return!!S;case "XML":return Number(S&&S.return_code)===0;case "RAW":return!0;default:return!!S}};
TBi=function(H){return H?(H=("responseXML"in H?H.responseXML:H).getElementsByTagName("root"))&&H.length>0?H[0]:null:null};
md$=function(H){var C="";_.I6(H.childNodes,function(S){C+=S.nodeValue});
return C};
yfU=function(H){if(H.name==="JavaException")return!0;H=H.stack;return H.includes("chrome://")||H.includes("-extension://")||H.includes("webkit-masked-url://")};
NBW=function(H){if(!H.stack)return!0;var C=!H.stack.includes("\n");return C&&H.stack.includes("ErrorType: ")||C&&H.stack.includes("Anonymous function (Unknown script")||H.stack.toLowerCase()==="not available"||H.fileName==="user-script"||H.fileName.startsWith("user-script:")?!0:!1};
_.G9=function(H){_.Op.call(this);this.JSC$10535_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!H};
E6V=function(H,C){var S=H.length,w=0,A=function(){return H.charCodeAt(w++)};
do{var J=b86(A);if(J===Infinity)break;var c=J>>3;switch(J&7){case 0:J=b86(A);if(c===C)return J;break;case 1:if(c===C)return;w+=8;break;case 2:J=b86(A);if(c===C)return H.substr(w,J);w+=J;break;case 5:if(c===C)return;w+=4;break;default:return}}while(w<S)};
b86=function(H){var C=H(),S=C&127;if(C<128)return S;C=H();S|=(C&127)<<7;if(C<128)return S;C=H();S|=(C&127)<<14;if(C<128)return S;C=H();return C<128?S|(C&127)<<21:Infinity};
u_U=function(H,C,S,w){if(H)if(Array.isArray(H)){var A=w;for(w=0;w<H.length&&!(H[w]&&(A+=eD6(w,H[w],C,S),A>500));w++);w=A}else if(typeof H==="object")for(A in H){if(H[A]){var J=A;var c=H[A],Y=C,M=S;J=typeof c!=="string"||J!=="clickTrackingParams"&&J!=="trackingParams"?0:(c=E6V(atob(c.replace(/-/g,"+").replace(/_/g,"/")),2))?eD6(J+".ve",c,Y,M):0;w+=J;w+=eD6(A,H[A],C,S);if(w>500)break}}else S[C]=fv(H),w+=S[C].length;else S[C]=fv(H),w+=S[C].length;return w};
eD6=function(H,C,S,w){S+="."+H;H=fv(C);w[S]=H;return S.length+H.length};
fv=function(H){try{return(typeof H==="string"?H:String(JSON.stringify(H))).substr(0,500)}catch(C){return"unable to serialize "+typeof H+" ("+C.message+")"}};
Gn$=function(H){switch(H){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}};
_.l5=function(H,C,S,w,A){_.vA.set(H,C,{maxAge:S,path:"/",domain:w===void 0?"youtube.com":w,secure:A===void 0?!1:A})};
_.fyZ=function(H,C,S){_.vA.remove(H,C===void 0?"/":C,S===void 0?"youtube.com":S)};
_.VD=function(){if(_.E("embeds_web_enable_cookie_detection_fix")){if(!_.s$.navigator.cookieEnabled)return!1}else if(!_.vA.isEnabled())return!1;if(!_.vA.isEmpty())return!0;_.E("embeds_web_enable_cookie_detection_fix")?_.vA.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.vA.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.vA.get("TESTCOOKIESENABLED")!=="1")return!1;_.vA.remove("TESTCOOKIESENABLED");return!0};
v6E=function(){var H=_.s$.navigator;return H?H.connection:void 0};
lyE=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(H){}};
_.o6$=function(){var H=v6E();if(H){var C=Vp0[H.type||"unknown"]||"CONN_UNKNOWN";H=Vp0[H.effectiveType||"unknown"]||"CONN_UNKNOWN";C==="CONN_CELLULAR_UNKNOWN"&&H!=="CONN_UNKNOWN"&&(C=H);if(C!=="CONN_UNKNOWN")return C;if(H!=="CONN_UNKNOWN")return H}};
XFU=function(){var H=v6E();if(H!=null&&H.effectiveType)return O8p.hasOwnProperty(H.effectiveType)?O8p[H.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.OE=function(){try{return _.oa(),!0}catch(H){return!1}};
_.oa=function(H){if(_.rh("DATASYNC_ID")!==void 0)return _.rh("DATASYNC_ID");throw new _.X0("Datasync ID not set",H===void 0?"unknown":H);};
_.QD=function(H){this.mechanism=H};
d4=function(H){this.mechanism=H};
PA=function(H){this.storage_=H;this.cachedIsStorageAvailable_=null};
Qu7=function(){var H=null;try{H=_.s$.localStorage||null}catch(C){}PA.call(this,H)};
ddE=function(){var H=null;try{H=_.s$.sessionStorage||null}catch(C){}PA.call(this,H)};
$B=function(H,C){this.mechanism_=H;this.JSC$10637_prefix_=C+"::"};
_.Pai=function(H){var C=new Qu7;return C.isAvailable()?H?new $B(C,H):C:null};
_.$dE=function(H){var C=new ddE;return C.isAvailable()?H?new $B(C,H):C:null};
knu=function(){var H;return(H=pFV())==null?void 0:H.get("LAST_RESULT_ENTRY_KEY",!0)};
_.hA=function(H){hDw||(_.pv?_.pv.logError(H):(_.kB.push({type:"ERROR",payload:H}),_.kB.length>10&&_.kB.shift()))};
nv=function(H,C){hDw||(_.pv?_.pv.logEvent(H,C):(_.kB.push({type:"EVENT",eventType:H,payload:C}),_.kB.length>10&&_.kB.shift()))};
r4=function(H){if(H.indexOf(":")>=0)throw Error("Rc");};
BA=function(H){return H.substr(0,H.indexOf(":"))||H};
BBU=function(){return(n6W||rfi)&&DQ("applewebkit")&&!DQ("version")&&(!DQ("safari")||DQ("gsa/"))};
DQ=function(H){var C=_.WZ();return C?C.toLowerCase().indexOf(H)>=0:!1};
tp6=function(H,C,S,w){C=BA(C);var A=H instanceof Error?H:Error("Sc`"+H);if(A instanceof Kv)return A;H={objectStoreNames:S,dbName:C,dbVersion:w};if(A.name==="QuotaExceededError")return new Kv("QUOTA_EXCEEDED",H);if(_.tA&&A.name==="UnknownError")return new Kv("QUOTA_MAYBE_EXCEEDED",H);if(A instanceof DdE)return new Kv("MISSING_INDEX",Object.assign({},H,{objectStore:A.objectStore,index:A.index}));if(A.name==="InvalidStateError"&&KFu.some(function(J){return A.message.includes(J)}))return new Kv("EXECUTE_TRANSACTION_ON_CLOSED_DB",
H);
if(A.name==="AbortError")return new Kv("UNKNOWN_ABORT",H,A.message);A.args=[Object.assign({},H,{name:"IdbError",originalName:A.name})];A.level="WARNING";return A};
Lv=function(H,C,S){var w=knu();return new Kv("IDB_NOT_SUPPORTED",{context:{caller:H,publicName:C,version:S,hasSucceededOnce:w==null?void 0:w.hasSucceededOnce}})};
LFD=function(H){if(!H)throw Error();throw H;};
g6Z=function(H){return H};
Ud0=function(H,C,S){var w=function(){try{H.removeEventListener("success",A),H.removeEventListener("error",J)}catch(c){}},A=function(){C(H.result);
w()},J=function(){S(H.error);
w()};
H.addEventListener("success",A);H.addEventListener("error",J)};
RD7=function(H){return new Promise(function(C,S){Ud0(H,C,S)})};
Ra=function(H){return new g4(new UE(function(C,S){Ud0(H,C,S)}))};
Iy$=function(H,C){return new g4(new UE(function(S,w){var A=function(){var J=H?C(H):null;J?J.then(function(c){H=c;A()},w):S()};
A()}))};
ayZ=function(H,C,S){return new Promise(function(w,A){var J=C!==void 0?self.indexedDB.open(H,C):self.indexedDB.open(H);var c=S.blocked,Y=S.blocking,M=S.terminated,m=S.upgrade,W=S.closed,y,N=function(){y||(y=new Ia(J.result,{closed:W}));return y};
J.addEventListener("upgradeneeded",function(b){try{if(b.newVersion===null)throw Error("Xc");if(J.transaction===null)throw Error("Yc");b.dataLoss&&b.dataLoss!=="none"&&nv("IDB_DATA_CORRUPTED",{reason:b.dataLossMessage||"unknown reason",dbName:BA(H)});var u=N(),O=new aa(J.transaction);m&&m(u,function(d){return b.oldVersion<d&&b.newVersion>=d},O);
O.done.catch(function(d){A(d)})}catch(d){A(d)}});
J.addEventListener("success",function(){var b=J.result;Y&&b.addEventListener("versionchange",function(){Y(N())});
b.addEventListener("close",function(){nv("IDB_UNEXPECTEDLY_CLOSED",{dbName:BA(H),dbVersion:b.version});M&&M()});
w(N())});
J.addEventListener("error",function(){A(J.error)});
c&&J.addEventListener("blocked",function(){c()})})};
xdW=function(H,C,S){S=S===void 0?{}:S;return ayZ(H,C,S)};
_.H9=function(H,C){C=C===void 0?{}:C;var S,w,A,J;return _.z(function(c){if(c.nextAddress==1)return _.en(c,2),S=self.indexedDB.deleteDatabase(H),w=C,(A=w.blocked)&&S.addEventListener("blocked",function(){A()}),c.yield(RD7(S),4);
if(c.nextAddress!=2)return _.xB(c,0);J=_.Vx(c);throw tp6(J,H,"",-1);})};
if0=function(H,C){var S;return _.z(function(w){if(w.nextAddress==1)return w.yield(_.iC(Hfi,C),2);S=w.yieldResult;return w.return(_.CV(S,["databases"],{enableRetries:!0,mode:"readwrite"},function(A){var J=A.objectStore("databases");return J.get(H.actualName).then(function(c){if(c?H.actualName!==c.actualName||H.publicName!==c.publicName||H.userIdentifier!==c.userIdentifier:1)return J.put(H).then(function(){})})}))})};
_.Sk=function(H,C){var S;return _.z(function(w){if(w.nextAddress==1)return H?w.yield(_.iC(Hfi,C),2):w.return();S=w.yieldResult;return w.return(S.delete("databases",H))})};
_.C4$=function(H,C){var S,w;return _.z(function(A){return A.nextAddress==1?(S=[],A.yield(_.iC(Hfi,C),2)):A.nextAddress!=3?(w=A.yieldResult,A.yield(_.CV(w,["databases"],{enableRetries:!0,mode:"readonly"},function(J){S.length=0;return sc(J.objectStore("databases"),{},function(c){H(c.getValue())&&S.push(c.getValue());return c.continue()})}),3)):A.return(S)})};
SxD=function(H,C){return _.C4$(function(S){return S.publicName===H&&S.userIdentifier!==void 0},C)};
wUp=function(){var H,C,S,w;return _.z(function(A){switch(A.nextAddress){case 1:H=knu();if((C=H)==null?0:C.hasSucceededOnce)return A.return(!0);var J;if(J=swD)J=/WebKit\/([0-9]+)/.exec(_.WZ()),J=!!(J&&parseInt(J[1],10)>=600);J&&(J=/WebKit\/([0-9]+)/.exec(_.WZ()),J=!(J&&parseInt(J[1],10)>=602));if(J||jk)return A.return(!1);try{if(S=self,!(S.indexedDB&&S.IDBIndex&&S.IDBKeyRange&&S.IDBObjectStore))return A.return(!1)}catch(c){return A.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return A.return(!1);
_.en(A,2);w={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return A.yield(if0(w,jw7),4);case 4:return A.yield(_.Sk("yt-idb-test-do-not-use",jw7),5);case 5:return A.return(!0);case 2:return _.Vx(A),A.return(!1)}})};
JGi=function(){if(AGW!==void 0)return AGW;hDw=!0;return AGW=wUp().then(function(H){hDw=!1;var C;if((C=pFV())!=null&&C.expiringStorage_){var S;C={hasSucceededOnce:((S=knu())==null?void 0:S.hasSucceededOnce)||H};var w;(w=pFV())==null||w.set("LAST_RESULT_ENTRY_KEY",C,2592E3,!0)}return H})};
wT=function(){return _.gh("ytglobal.idbToken_")||void 0};
_.JO=function(){var H=wT();return H?Promise.resolve(H):JGi().then(function(C){(C=C?jw7:void 0)&&_.AO("ytglobal.idbToken_",C);return C})};
F6W=function(H){if(!_.OE())throw H=new Kv("AUTH_INVALID",{dbName:H}),_.hA(H),H;var C=_.oa();return{actualName:H+":"+C,publicName:H,userIdentifier:C}};
Zf$=function(H,C,S,w){var A,J,c,Y,M,m;return _.z(function(W){switch(W.nextAddress){case 1:return J=(A=Error().stack)!=null?A:"",W.yield(_.JO(),2);case 2:c=W.yieldResult;if(!c)throw Y=Lv("openDbImpl",H,C),_.E("ytidb_async_stack_killswitch")||(Y.stack=Y.stack+"\n"+J.substring(J.indexOf("\n")+1)),_.hA(Y),Y;r4(H);M=S?{actualName:H,publicName:H,userIdentifier:void 0}:F6W(H);_.en(W,3);return W.yield(if0(M,c),5);case 5:return W.yield(xdW(M.actualName,C,w),6);case 6:return W.return(W.yieldResult);case 3:return m=
_.Vx(W),_.en(W,7),W.yield(_.Sk(M.actualName,c),9);case 9:_.xB(W,8);break;case 7:_.Vx(W);case 8:throw m;}})};
cGp=function(H,C,S){S=S===void 0?{}:S;return Zf$(H,C,!1,S)};
Yxu=function(H,C,S){S=S===void 0?{}:S;return Zf$(H,C,!0,S)};
zui=function(H,C){C=C===void 0?{}:C;var S,w;return _.z(function(A){if(A.nextAddress==1)return A.yield(_.JO(),2);if(A.nextAddress!=3){S=A.yieldResult;if(!S)return A.return();r4(H);w=F6W(H);return A.yield(_.H9(w.actualName,C),3)}return A.yield(_.Sk(w.actualName,S),0)})};
Mtw=function(H,C,S){H=H.map(function(w){return _.z(function(A){return A.nextAddress==1?A.yield(_.H9(w.actualName,C),2):A.yield(_.Sk(w.actualName,S),0)})});
return Promise.all(H).then(function(){})};
qxW=function(H){var C=C===void 0?{}:C;var S,w;return _.z(function(A){if(A.nextAddress==1)return A.yield(_.JO(),2);if(A.nextAddress!=3){S=A.yieldResult;if(!S)return A.return();r4(H);return A.yield(SxD(H,S),3)}w=A.yieldResult;return A.yield(Mtw(w,C,S),0)})};
Tmu=function(H,C){C=C===void 0?{}:C;var S;return _.z(function(w){if(w.nextAddress==1)return w.yield(_.JO(),2);if(w.nextAddress!=3){S=w.yieldResult;if(!S)return w.return();r4(H);return w.yield(_.H9(H,C),3)}return w.yield(_.Sk(H,S),0)})};
F6=function(H,C){return m57(H,C)};
yG0=function(H){return _.iC(W6U(),H)};
NmU=function(H,C,S,w){var A,J,c;return _.z(function(Y){switch(Y.nextAddress){case 1:return A={config:H,hashData:C,timestamp:w!==void 0?w:(0,_.Zt)()},Y.yield(yG0(S),2);case 2:return J=Y.yieldResult,Y.yield(J.clear("hotConfigStore"),3);case 3:return Y.yield(J.put("hotConfigStore",A),4);case 4:return c=Y.yieldResult,Y.return(c)}})};
bfi=function(H,C,S,w,A){var J,c,Y;return _.z(function(M){switch(M.nextAddress){case 1:return J={config:H,hashData:C,configData:S,timestamp:A!==void 0?A:(0,_.Zt)()},M.yield(yG0(w),2);case 2:return c=M.yieldResult,M.yield(c.clear("coldConfigStore"),3);case 3:return M.yield(c.put("coldConfigStore",J),4);case 4:return Y=M.yieldResult,M.return(Y)}})};
EF6=function(H){var C,S;return _.z(function(w){return w.nextAddress==1?w.yield(yG0(H),2):w.nextAddress!=3?(C=w.yieldResult,S=void 0,w.yield(_.CV(C,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(A){return _.c9(A.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(J){S=J.getValue()})}),3)):w.return(S)})};
euE=function(H){var C,S;return _.z(function(w){return w.nextAddress==1?w.yield(yG0(H),2):w.nextAddress!=3?(C=w.yieldResult,S=void 0,w.yield(_.CV(C,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(A){return _.c9(A.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(J){S=J.getValue()})}),3)):w.return(S)})};
uG6=function(){return _.z(function(H){return H.yield(qxW("ytGcfConfig"),0)})};
G5W=function(){return"INNERTUBE_API_KEY"in _.hE&&"INNERTUBE_API_VERSION"in _.hE};
_.Yu=function(){return{innertubeApiKey:_.rh("INNERTUBE_API_KEY"),innertubeApiVersion:_.rh("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.rh("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.rh("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.rh("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.rh("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.rh("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.rh("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.rh("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.Bh("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.Bh("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.rh("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.XUE=function(H){var C={client:{hl:H.innertubeContextHostLanguage,gl:H.innertubeContextGeoLocation,clientName:H.innertubeContextClientName,clientVersion:H.innertubeContextClientVersion,configInfo:H.innertubeContextClientConfigInfo}};navigator.userAgent&&(C.client.userAgent=String(navigator.userAgent));var S=_.s$.devicePixelRatio;S&&S!=1&&(C.client.screenDensityFloat=String(S));S=U3U();S!==""&&(C.client.experimentsToken=S);S=RN6();S.length>0&&(C.request={internalExperimentFlags:S});foV(H,void 0,C);
vFp(void 0,C);lo7(void 0,C);VtD(H,void 0,C);oFZ(void 0,C);_.E("start_client_gcf")&&OfU(void 0,C);_.rh("DELEGATED_SESSION_ID")&&!_.E("pageid_as_header_web")&&(C.user={onBehalfOfUser:_.rh("DELEGATED_SESSION_ID")});!_.E("fill_delegate_context_in_gel_killswitch")&&(H=_.rh("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(C.user=Object.assign({},C.user,{serializedDelegationContext:H}));H=_.rh("INNERTUBE_CONTEXT");var w;if(_.E("enable_persistent_device_token")&&(H==null?0:(w=H.client)==null?0:w.rolloutToken)){var A;
C.client.rolloutToken=H==null?void 0:(A=H.client)==null?void 0:A.rolloutToken}w=Object;A=w.assign;H=C.client;S={};for(var J=_.Z(Object.entries(_.a6(_.rh("DEVICE","")))),c=J.next();!c.done;c=J.next()){var Y=_.Z(c.value);c=Y.next().value;Y=Y.next().value;c==="cbrand"?S.deviceMake=Y:c==="cmodel"?S.deviceModel=Y:c==="cbr"?S.browserName=Y:c==="cbrver"?S.browserVersion=Y:c==="cos"?S.osName=Y:c==="cosver"?S.osVersion=Y:c==="cplatform"&&(S.platform=Y)}C.client=A.call(w,H,S);return C};
foV=function(H,C,S){H=H.innertubeContextClientName;if(H==="WEB"||H==="MWEB"||H===1||H===2)if(C){S=_.zf(C,QwD,96)||new QwD;var w=d5$();w=Object.keys(P4p).indexOf(w);w=w===-1?null:w;w!==null&&_.qz(S,3,w);_.f9(C,96,S)}else S&&(S.client.mainAppWebInfo=(w=S.client.mainAppWebInfo)!=null?w:{},S.client.mainAppWebInfo.webDisplayMode=d5$())};
vFp=function(H,C){var S=_.gh("yt.embedded_player.embed_url");S&&(H?(C=_.zf(H,$5u,7)||new $5u,_.XA(C,4,S),_.f9(H,7,C)):C&&(C.thirdParty={embedUrl:S}))};
lo7=function(H,C){var S;if(_.E("web_log_memory_total_kbytes")&&((S=_.s$.navigator)==null?0:S.deviceMemory)){var w;S=(w=_.s$.navigator)==null?void 0:w.deviceMemory;H?_.Tf(H,95,c3(S*1E6)):C&&(C.client.memoryTotalKbytes=""+S*1E6)}};
VtD=function(H,C,S){if(H.appInstallData)if(C){var w;S=(w=_.zf(C,mQ,62))!=null?w:new mQ;_.XA(S,6,H.appInstallData);_.f9(C,62,S)}else S&&(S.client.configInfo=S.client.configInfo||{},S.client.configInfo.appInstallData=H.appInstallData)};
oFZ=function(H,C){var S=_.o6$();S&&(H?_.qz(H,61,pU7[S]):C&&(C.client.connectionType=S));_.E("web_log_effective_connection_type")&&(S=XFU())&&(H?_.qz(H,94,k5Z[S]):C&&(C.client.effectiveConnectionType=S))};
_.rGE=function(H,C,S){S=S===void 0?{}:S;var w={};_.rh("EOM_VISITOR_DATA")?w={"X-Goog-EOM-Visitor-Id":_.rh("EOM_VISITOR_DATA")}:w={"X-Goog-Visitor-Id":S.visitorData||_.rh("VISITOR_DATA","")};if(C&&C.includes("www.youtube-nocookie.com"))return w;C=S.authorization||_.rh("AUTHORIZATION");C||(H?C="Bearer "+_.gh("gapi.auth.getToken")().access_token:(hu$.instance||(hu$.instance=new hu$),H=nFE(),_.E("pageid_as_header_web")||delete H["X-Goog-PageId"],w=Object.assign({},w,H)));C&&(w.Authorization=C);return w};
OfU=function(H,C){var S=Bm7();if(S){var w=S.coldConfigData,A=S.coldHashData;S=S.hotHashData;if(H){var J;C=(J=_.zf(H,mQ,62))!=null?J:new mQ;w=_.XA(C,1,w);_.XA(w,3,A).setHotHashData(S);_.f9(H,62,C)}else C&&(C.client.configInfo=C.client.configInfo||{},w&&(C.client.configInfo.coldConfigData=w),A&&(C.client.configInfo.coldHashData=A),S&&(C.client.configInfo.hotHashData=S))}};
W9=function(H){for(var C=H.length;--C>=0;)H[C]=0};
D5Z=function(H,C,S,w,A){this.static_tree=H;this.extra_bits=C;this.extra_base=S;this.elems=w;this.max_length=A;this.has_stree=H&&H.length};
K6W=function(H,C){this.dyn_tree=H;this.max_code=0;this.stat_desc=C};
yE=function(H,C){H.pending_buf[H.pending++]=C&255;H.pending_buf[H.pending++]=C>>>8&255};
Nz=function(H,C,S){H.bi_valid>16-S?(H.bi_buf|=C<<H.bi_valid&65535,yE(H,H.bi_buf),H.bi_buf=C>>16-H.bi_valid,H.bi_valid+=S-16):(H.bi_buf|=C<<H.bi_valid&65535,H.bi_valid+=S)};
bC=function(H,C,S){Nz(H,S[C*2],S[C*2+1])};
tt$=function(H,C){var S=0;do S|=H&1,H>>>=1,S<<=1;while(--C>0);return S>>>1};
L6p=function(H,C,S){var w=Array(16),A=0,J;for(J=1;J<=15;J++)w[J]=A=A+S[J-1]<<1;for(S=0;S<=C;S++)A=H[S*2+1],A!==0&&(H[S*2]=tt$(w[A]++,A))};
gFw=function(H){var C;for(C=0;C<286;C++)H.dyn_ltree[C*2]=0;for(C=0;C<30;C++)H.dyn_dtree[C*2]=0;for(C=0;C<19;C++)H.bl_tree[C*2]=0;H.dyn_ltree[512]=1;H.opt_len=H.static_len=0;H.last_lit=H.matches=0};
U5Z=function(H){H.bi_valid>8?yE(H,H.bi_buf):H.bi_valid>0&&(H.pending_buf[H.pending++]=H.bi_buf);H.bi_buf=0;H.bi_valid=0};
RuU=function(H,C,S){U5Z(H);yE(H,S);yE(H,~S);Ec.arraySet(H.pending_buf,H.window,C,S,H.pending);H.pending+=S};
Io6=function(H,C,S,w){var A=C*2,J=S*2;return H[A]<H[J]||H[A]===H[J]&&w[C]<=w[S]};
aoZ=function(H,C,S){for(var w=H.heap[S],A=S<<1;A<=H.heap_len;){A<H.heap_len&&Io6(C,H.heap[A+1],H.heap[A],H.depth)&&A++;if(Io6(C,w,H.heap[A],H.depth))break;H.heap[S]=H.heap[A];S=A;A<<=1}H.heap[S]=w};
Sdu=function(H,C,S){var w=0;if(H.last_lit!==0){do{var A=H.pending_buf[H.d_buf+w*2]<<8|H.pending_buf[H.d_buf+w*2+1];var J=H.pending_buf[H.l_buf+w];w++;if(A===0)bC(H,J,C);else{var c=ek[J];bC(H,c+256+1,C);var Y=x5u[c];Y!==0&&(J-=Hxu[c],Nz(H,J,Y));A--;c=A<256?uC[A]:uC[256+(A>>>7)];bC(H,c,S);Y=ixu[c];Y!==0&&(A-=CA6[c],Nz(H,A,Y))}}while(w<H.last_lit)}bC(H,256,C)};
sZi=function(H,C){var S=C.dyn_tree,w=C.stat_desc.static_tree,A=C.stat_desc.has_stree,J=C.stat_desc.elems,c,Y=-1;H.heap_len=0;H.heap_max=573;for(c=0;c<J;c++)S[c*2]!==0?(H.heap[++H.heap_len]=Y=c,H.depth[c]=0):S[c*2+1]=0;for(;H.heap_len<2;){var M=H.heap[++H.heap_len]=Y<2?++Y:0;S[M*2]=1;H.depth[M]=0;H.opt_len--;A&&(H.static_len-=w[M*2+1])}C.max_code=Y;for(c=H.heap_len>>1;c>=1;c--)aoZ(H,S,c);M=J;do c=H.heap[1],H.heap[1]=H.heap[H.heap_len--],aoZ(H,S,1),w=H.heap[1],H.heap[--H.heap_max]=c,H.heap[--H.heap_max]=
w,S[M*2]=S[c*2]+S[w*2],H.depth[M]=(H.depth[c]>=H.depth[w]?H.depth[c]:H.depth[w])+1,S[c*2+1]=S[w*2+1]=M,H.heap[1]=M++,aoZ(H,S,1);while(H.heap_len>=2);H.heap[--H.heap_max]=H.heap[1];c=C.dyn_tree;M=C.max_code;w=C.stat_desc.static_tree;A=C.stat_desc.has_stree;J=C.stat_desc.extra_bits;var m=C.stat_desc.extra_base,W=C.stat_desc.max_length,y,N=0;for(y=0;y<=15;y++)H.bl_count[y]=0;c[H.heap[H.heap_max]*2+1]=0;for(C=H.heap_max+1;C<573;C++){var b=H.heap[C];y=c[c[b*2+1]*2+1]+1;y>W&&(y=W,N++);c[b*2+1]=y;if(!(b>
M)){H.bl_count[y]++;var u=0;b>=m&&(u=J[b-m]);var O=c[b*2];H.opt_len+=O*(y+u);A&&(H.static_len+=O*(w[b*2+1]+u))}}if(N!==0){do{for(y=W-1;H.bl_count[y]===0;)y--;H.bl_count[y]--;H.bl_count[y+1]+=2;H.bl_count[W]--;N-=2}while(N>0);for(y=W;y!==0;y--)for(b=H.bl_count[y];b!==0;)w=H.heap[--C],w>M||(c[w*2+1]!==y&&(H.opt_len+=(y-c[w*2+1])*c[w*2],c[w*2+1]=y),b--)}L6p(S,Y,H.bl_count)};
jZ7=function(H,C,S){var w,A=-1,J=C[1],c=0,Y=7,M=4;J===0&&(Y=138,M=3);C[(S+1)*2+1]=65535;for(w=0;w<=S;w++){var m=J;J=C[(w+1)*2+1];++c<Y&&m===J||(c<M?H.bl_tree[m*2]+=c:m!==0?(m!==A&&H.bl_tree[m*2]++,H.bl_tree[32]++):c<=10?H.bl_tree[34]++:H.bl_tree[36]++,c=0,A=m,J===0?(Y=138,M=3):m===J?(Y=6,M=3):(Y=7,M=4))}};
wYZ=function(H,C,S){var w,A=-1,J=C[1],c=0,Y=7,M=4;J===0&&(Y=138,M=3);for(w=0;w<=S;w++){var m=J;J=C[(w+1)*2+1];if(!(++c<Y&&m===J)){if(c<M){do bC(H,m,H.bl_tree);while(--c!==0)}else m!==0?(m!==A&&(bC(H,m,H.bl_tree),c--),bC(H,16,H.bl_tree),Nz(H,c-3,2)):c<=10?(bC(H,17,H.bl_tree),Nz(H,c-3,3)):(bC(H,18,H.bl_tree),Nz(H,c-11,7));c=0;A=m;J===0?(Y=138,M=3):m===J?(Y=6,M=3):(Y=7,M=4)}}};
Ar6=function(H){var C=4093624447,S;for(S=0;S<=31;S++,C>>>=1)if(C&1&&H.dyn_ltree[S*2]!==0)return 0;if(H.dyn_ltree[18]!==0||H.dyn_ltree[20]!==0||H.dyn_ltree[26]!==0)return 1;for(S=32;S<256;S++)if(H.dyn_ltree[S*2]!==0)return 1;return 0};
Gf=function(H,C,S){H.pending_buf[H.d_buf+H.last_lit*2]=C>>>8&255;H.pending_buf[H.d_buf+H.last_lit*2+1]=C&255;H.pending_buf[H.l_buf+H.last_lit]=S&255;H.last_lit++;C===0?H.dyn_ltree[S*2]++:(H.matches++,C--,H.dyn_ltree[(ek[S]+256+1)*2]++,H.dyn_dtree[(C<256?uC[C]:uC[256+(C>>>7)])*2]++);return H.last_lit===H.lit_bufsize-1};
v9=function(H,C){H.msg=fV[C];return C};
lC=function(H){for(var C=H.length;--C>=0;)H[C]=0};
VE=function(H){var C=H.state,S=C.pending;S>H.avail_out&&(S=H.avail_out);S!==0&&(Ec.arraySet(H.output,C.pending_buf,C.pending_out,S,H.next_out),H.next_out+=S,C.pending_out+=S,H.total_out+=S,H.avail_out-=S,C.pending-=S,C.pending===0&&(C.pending_out=0))};
QE=function(H,C){var S=H.block_start>=0?H.block_start:-1,w=H.strstart-H.block_start,A=0;if(H.level>0){H.strm.data_type===2&&(H.strm.data_type=Ar6(H));sZi(H,H.l_desc);sZi(H,H.d_desc);jZ7(H,H.dyn_ltree,H.l_desc.max_code);jZ7(H,H.dyn_dtree,H.d_desc.max_code);sZi(H,H.bl_desc);for(A=18;A>=3&&H.bl_tree[Jr$[A]*2+1]===0;A--);H.opt_len+=3*(A+1)+5+5+4;var J=H.opt_len+3+7>>>3;var c=H.static_len+3+7>>>3;c<=J&&(J=c)}else J=c=w+5;if(w+4<=J&&S!==-1)Nz(H,C?1:0,3),RuU(H,S,w);else if(H.strategy===4||c===J)Nz(H,2+(C?
1:0),3),Sdu(H,oM,Oc);else{Nz(H,4+(C?1:0),3);S=H.l_desc.max_code+1;w=H.d_desc.max_code+1;A+=1;Nz(H,S-257,5);Nz(H,w-1,5);Nz(H,A-4,4);for(J=0;J<A;J++)Nz(H,H.bl_tree[Jr$[J]*2+1],3);wYZ(H,H.dyn_ltree,S-1);wYZ(H,H.dyn_dtree,w-1);Sdu(H,H.dyn_ltree,H.dyn_dtree)}gFw(H);C&&U5Z(H);H.block_start=H.strstart;VE(H.strm)};
dT=function(H,C){H.pending_buf[H.pending++]=C};
P9=function(H,C){H.pending_buf[H.pending++]=C>>>8&255;H.pending_buf[H.pending++]=C&255};
FY0=function(H,C){var S=H.max_chain_length,w=H.strstart,A=H.prev_length,J=H.nice_match,c=H.strstart>H.w_size-262?H.strstart-(H.w_size-262):0,Y=H.window,M=H.w_mask,m=H.prev,W=H.strstart+258,y=Y[w+A-1],N=Y[w+A];H.prev_length>=H.good_match&&(S>>=2);J>H.lookahead&&(J=H.lookahead);do{var b=C;if(Y[b+A]===N&&Y[b+A-1]===y&&Y[b]===Y[w]&&Y[++b]===Y[w+1]){w+=2;for(b++;Y[++w]===Y[++b]&&Y[++w]===Y[++b]&&Y[++w]===Y[++b]&&Y[++w]===Y[++b]&&Y[++w]===Y[++b]&&Y[++w]===Y[++b]&&Y[++w]===Y[++b]&&Y[++w]===Y[++b]&&w<W;);
b=258-(W-w);w=W-258;if(b>A){H.match_start=C;A=b;if(b>=J)break;y=Y[w+A-1];N=Y[w+A]}}}while((C=m[C&M])>c&&--S!==0);return A<=H.lookahead?A:H.lookahead};
pV=function(H){var C=H.w_size,S;do{var w=H.window_size-H.lookahead-H.strstart;if(H.strstart>=C+(C-262)){Ec.arraySet(H.window,H.window,C,C,0);H.match_start-=C;H.strstart-=C;H.block_start-=C;var A=S=H.hash_size;do{var J=H.head[--A];H.head[A]=J>=C?J-C:0}while(--S);A=S=C;do J=H.prev[--A],H.prev[A]=J>=C?J-C:0;while(--S);w+=C}if(H.strm.avail_in===0)break;A=H.strm;S=H.window;J=H.strstart+H.lookahead;var c=A.avail_in;c>w&&(c=w);c===0?S=0:(A.avail_in-=c,Ec.arraySet(S,A.input,A.next_in,c,J),A.state.wrap===
1?A.adler=Zx7(A.adler,S,c,J):A.state.wrap===2&&(A.adler=$u(A.adler,S,c,J)),A.next_in+=c,A.total_in+=c,S=c);H.lookahead+=S;if(H.lookahead+H.insert>=3)for(w=H.strstart-H.insert,H.ins_h=H.window[w],H.ins_h=(H.ins_h<<H.hash_shift^H.window[w+1])&H.hash_mask;H.insert&&!(H.ins_h=(H.ins_h<<H.hash_shift^H.window[w+3-1])&H.hash_mask,H.prev[w&H.w_mask]=H.head[H.ins_h],H.head[H.ins_h]=w,w++,H.insert--,H.lookahead+H.insert<3););}while(H.lookahead<262&&H.strm.avail_in!==0)};
crW=function(H,C){for(var S;;){if(H.lookahead<262){pV(H);if(H.lookahead<262&&C===0)return 1;if(H.lookahead===0)break}S=0;H.lookahead>=3&&(H.ins_h=(H.ins_h<<H.hash_shift^H.window[H.strstart+3-1])&H.hash_mask,S=H.prev[H.strstart&H.w_mask]=H.head[H.ins_h],H.head[H.ins_h]=H.strstart);S!==0&&H.strstart-S<=H.w_size-262&&(H.match_length=FY0(H,S));if(H.match_length>=3)if(S=Gf(H,H.strstart-H.match_start,H.match_length-3),H.lookahead-=H.match_length,H.match_length<=H.max_lazy_match&&H.lookahead>=3){H.match_length--;
do H.strstart++,H.ins_h=(H.ins_h<<H.hash_shift^H.window[H.strstart+3-1])&H.hash_mask,H.prev[H.strstart&H.w_mask]=H.head[H.ins_h],H.head[H.ins_h]=H.strstart;while(--H.match_length!==0);H.strstart++}else H.strstart+=H.match_length,H.match_length=0,H.ins_h=H.window[H.strstart],H.ins_h=(H.ins_h<<H.hash_shift^H.window[H.strstart+1])&H.hash_mask;else S=Gf(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++;if(S&&(QE(H,!1),H.strm.avail_out===0))return 1}H.insert=H.strstart<2?H.strstart:2;return C===4?(QE(H,
!0),H.strm.avail_out===0?3:4):H.last_lit&&(QE(H,!1),H.strm.avail_out===0)?1:2};
ku=function(H,C){for(var S,w;;){if(H.lookahead<262){pV(H);if(H.lookahead<262&&C===0)return 1;if(H.lookahead===0)break}S=0;H.lookahead>=3&&(H.ins_h=(H.ins_h<<H.hash_shift^H.window[H.strstart+3-1])&H.hash_mask,S=H.prev[H.strstart&H.w_mask]=H.head[H.ins_h],H.head[H.ins_h]=H.strstart);H.prev_length=H.match_length;H.prev_match=H.match_start;H.match_length=2;S!==0&&H.prev_length<H.max_lazy_match&&H.strstart-S<=H.w_size-262&&(H.match_length=FY0(H,S),H.match_length<=5&&(H.strategy===1||H.match_length===3&&
H.strstart-H.match_start>4096)&&(H.match_length=2));if(H.prev_length>=3&&H.match_length<=H.prev_length){w=H.strstart+H.lookahead-3;S=Gf(H,H.strstart-1-H.prev_match,H.prev_length-3);H.lookahead-=H.prev_length-1;H.prev_length-=2;do++H.strstart<=w&&(H.ins_h=(H.ins_h<<H.hash_shift^H.window[H.strstart+3-1])&H.hash_mask,H.prev[H.strstart&H.w_mask]=H.head[H.ins_h],H.head[H.ins_h]=H.strstart);while(--H.prev_length!==0);H.match_available=0;H.match_length=2;H.strstart++;if(S&&(QE(H,!1),H.strm.avail_out===0))return 1}else if(H.match_available){if((S=
Gf(H,0,H.window[H.strstart-1]))&&QE(H,!1),H.strstart++,H.lookahead--,H.strm.avail_out===0)return 1}else H.match_available=1,H.strstart++,H.lookahead--}H.match_available&&(Gf(H,0,H.window[H.strstart-1]),H.match_available=0);H.insert=H.strstart<2?H.strstart:2;return C===4?(QE(H,!0),H.strm.avail_out===0?3:4):H.last_lit&&(QE(H,!1),H.strm.avail_out===0)?1:2};
Yd$=function(H,C){for(var S,w,A,J=H.window;;){if(H.lookahead<=258){pV(H);if(H.lookahead<=258&&C===0)return 1;if(H.lookahead===0)break}H.match_length=0;if(H.lookahead>=3&&H.strstart>0&&(w=H.strstart-1,S=J[w],S===J[++w]&&S===J[++w]&&S===J[++w])){for(A=H.strstart+258;S===J[++w]&&S===J[++w]&&S===J[++w]&&S===J[++w]&&S===J[++w]&&S===J[++w]&&S===J[++w]&&S===J[++w]&&w<A;);H.match_length=258-(A-w);H.match_length>H.lookahead&&(H.match_length=H.lookahead)}H.match_length>=3?(S=Gf(H,1,H.match_length-3),H.lookahead-=
H.match_length,H.strstart+=H.match_length,H.match_length=0):(S=Gf(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++);if(S&&(QE(H,!1),H.strm.avail_out===0))return 1}H.insert=0;return C===4?(QE(H,!0),H.strm.avail_out===0?3:4):H.last_lit&&(QE(H,!1),H.strm.avail_out===0)?1:2};
zK6=function(H,C){for(var S;;){if(H.lookahead===0&&(pV(H),H.lookahead===0)){if(C===0)return 1;break}H.match_length=0;S=Gf(H,0,H.window[H.strstart]);H.lookahead--;H.strstart++;if(S&&(QE(H,!1),H.strm.avail_out===0))return 1}H.insert=0;return C===4?(QE(H,!0),H.strm.avail_out===0?3:4):H.last_lit&&(QE(H,!1),H.strm.avail_out===0)?1:2};
hO=function(H,C,S,w,A){this.good_length=H;this.max_lazy=C;this.nice_length=S;this.max_chain=w;this.func=A};
Ms0=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 Ec.Buf16(1146);this.dyn_dtree=new Ec.Buf16(122);this.bl_tree=new Ec.Buf16(78);lC(this.dyn_ltree);lC(this.dyn_dtree);lC(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new Ec.Buf16(16);this.heap=new Ec.Buf16(573);lC(this.heap);this.heap_max=this.heap_len=0;this.depth=new Ec.Buf16(573);lC(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};
qd0=function(H,C){if(!H||!H.state||C>5||C<0)return H?v9(H,-2):-2;var S=H.state;if(!H.output||!H.input&&H.avail_in!==0||S.status===666&&C!==4)return v9(H,H.avail_out===0?-5:-2);S.strm=H;var w=S.last_flush;S.last_flush=C;if(S.status===42)if(S.wrap===2)H.adler=0,dT(S,31),dT(S,139),dT(S,8),S.gzhead?(dT(S,(S.gzhead.text?1:0)+(S.gzhead.hcrc?2:0)+(S.gzhead.extra?4:0)+(S.gzhead.name?8:0)+(S.gzhead.comment?16:0)),dT(S,S.gzhead.time&255),dT(S,S.gzhead.time>>8&255),dT(S,S.gzhead.time>>16&255),dT(S,S.gzhead.time>>
24&255),dT(S,S.level===9?2:S.strategy>=2||S.level<2?4:0),dT(S,S.gzhead.os&255),S.gzhead.extra&&S.gzhead.extra.length&&(dT(S,S.gzhead.extra.length&255),dT(S,S.gzhead.extra.length>>8&255)),S.gzhead.hcrc&&(H.adler=$u(H.adler,S.pending_buf,S.pending,0)),S.gzindex=0,S.status=69):(dT(S,0),dT(S,0),dT(S,0),dT(S,0),dT(S,0),dT(S,S.level===9?2:S.strategy>=2||S.level<2?4:0),dT(S,3),S.status=113);else{var A=8+(S.w_bits-8<<4)<<8;A|=(S.strategy>=2||S.level<2?0:S.level<6?1:S.level===6?2:3)<<6;S.strstart!==0&&(A|=
32);S.status=113;P9(S,A+(31-A%31));S.strstart!==0&&(P9(S,H.adler>>>16),P9(S,H.adler&65535));H.adler=1}if(S.status===69)if(S.gzhead.extra){for(A=S.pending;S.gzindex<(S.gzhead.extra.length&65535)&&(S.pending!==S.pending_buf_size||(S.gzhead.hcrc&&S.pending>A&&(H.adler=$u(H.adler,S.pending_buf,S.pending-A,A)),VE(H),A=S.pending,S.pending!==S.pending_buf_size));)dT(S,S.gzhead.extra[S.gzindex]&255),S.gzindex++;S.gzhead.hcrc&&S.pending>A&&(H.adler=$u(H.adler,S.pending_buf,S.pending-A,A));S.gzindex===S.gzhead.extra.length&&
(S.gzindex=0,S.status=73)}else S.status=73;if(S.status===73)if(S.gzhead.name){A=S.pending;do{if(S.pending===S.pending_buf_size&&(S.gzhead.hcrc&&S.pending>A&&(H.adler=$u(H.adler,S.pending_buf,S.pending-A,A)),VE(H),A=S.pending,S.pending===S.pending_buf_size)){var J=1;break}J=S.gzindex<S.gzhead.name.length?S.gzhead.name.charCodeAt(S.gzindex++)&255:0;dT(S,J)}while(J!==0);S.gzhead.hcrc&&S.pending>A&&(H.adler=$u(H.adler,S.pending_buf,S.pending-A,A));J===0&&(S.gzindex=0,S.status=91)}else S.status=91;if(S.status===
91)if(S.gzhead.comment){A=S.pending;do{if(S.pending===S.pending_buf_size&&(S.gzhead.hcrc&&S.pending>A&&(H.adler=$u(H.adler,S.pending_buf,S.pending-A,A)),VE(H),A=S.pending,S.pending===S.pending_buf_size)){J=1;break}J=S.gzindex<S.gzhead.comment.length?S.gzhead.comment.charCodeAt(S.gzindex++)&255:0;dT(S,J)}while(J!==0);S.gzhead.hcrc&&S.pending>A&&(H.adler=$u(H.adler,S.pending_buf,S.pending-A,A));J===0&&(S.status=103)}else S.status=103;S.status===103&&(S.gzhead.hcrc?(S.pending+2>S.pending_buf_size&&VE(H),
S.pending+2<=S.pending_buf_size&&(dT(S,H.adler&255),dT(S,H.adler>>8&255),H.adler=0,S.status=113)):S.status=113);if(S.pending!==0){if(VE(H),H.avail_out===0)return S.last_flush=-1,0}else if(H.avail_in===0&&(C<<1)-(C>4?9:0)<=(w<<1)-(w>4?9:0)&&C!==4)return v9(H,-5);if(S.status===666&&H.avail_in!==0)return v9(H,-5);if(H.avail_in!==0||S.lookahead!==0||C!==0&&S.status!==666){w=S.strategy===2?zK6(S,C):S.strategy===3?Yd$(S,C):nV[S.level].func(S,C);if(w===3||w===4)S.status=666;if(w===1||w===3)return H.avail_out===
0&&(S.last_flush=-1),0;if(w===2&&(C===1?(Nz(S,2,3),bC(S,256,oM),S.bi_valid===16?(yE(S,S.bi_buf),S.bi_buf=0,S.bi_valid=0):S.bi_valid>=8&&(S.pending_buf[S.pending++]=S.bi_buf&255,S.bi_buf>>=8,S.bi_valid-=8)):C!==5&&(Nz(S,0,3),RuU(S,0,0),C===3&&(lC(S.head),S.lookahead===0&&(S.strstart=0,S.block_start=0,S.insert=0))),VE(H),H.avail_out===0))return S.last_flush=-1,0}if(C!==4)return 0;if(S.wrap<=0)return 1;S.wrap===2?(dT(S,H.adler&255),dT(S,H.adler>>8&255),dT(S,H.adler>>16&255),dT(S,H.adler>>24&255),dT(S,
H.total_in&255),dT(S,H.total_in>>8&255),dT(S,H.total_in>>16&255),dT(S,H.total_in>>24&255)):(P9(S,H.adler>>>16),P9(S,H.adler&65535));VE(H);S.wrap>0&&(S.wrap=-S.wrap);return S.pending!==0?0:1};
TEE=function(H){if(!(this instanceof TEE))return new TEE(H);H=this.options=Ec.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},H||{});H.raw&&H.windowBits>0?H.windowBits=-H.windowBits:H.gzip&&H.windowBits>0&&H.windowBits<16&&(H.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new mT0;this.strm.avail_out=0;var C=this.strm;var S=H.level,w=H.method,A=H.windowBits,J=H.memLevel,c=H.strategy;if(C){var Y=1;S===-1&&(S=6);A<0?(Y=0,A=-A):A>15&&
(Y=2,A-=16);if(J<1||J>9||w!==8||A<8||A>15||S<0||S>9||c<0||c>4)C=v9(C,-2);else{A===8&&(A=9);var M=new Ms0;C.state=M;M.strm=C;M.wrap=Y;M.gzhead=null;M.w_bits=A;M.w_size=1<<M.w_bits;M.w_mask=M.w_size-1;M.hash_bits=J+7;M.hash_size=1<<M.hash_bits;M.hash_mask=M.hash_size-1;M.hash_shift=~~((M.hash_bits+3-1)/3);M.window=new Ec.Buf8(M.w_size*2);M.head=new Ec.Buf16(M.hash_size);M.prev=new Ec.Buf16(M.w_size);M.lit_bufsize=1<<J+6;M.pending_buf_size=M.lit_bufsize*4;M.pending_buf=new Ec.Buf8(M.pending_buf_size);
M.d_buf=M.lit_bufsize;M.l_buf=3*M.lit_bufsize;M.level=S;M.strategy=c;M.method=w;if(C&&C.state){C.total_in=C.total_out=0;C.data_type=2;S=C.state;S.pending=0;S.pending_out=0;S.wrap<0&&(S.wrap=-S.wrap);S.status=S.wrap?42:113;C.adler=S.wrap===2?0:1;S.last_flush=0;if(!WYW){w=Array(16);for(J=c=0;J<28;J++)for(Hxu[J]=c,A=0;A<1<<x5u[J];A++)ek[c++]=J;ek[c-1]=J;for(J=c=0;J<16;J++)for(CA6[J]=c,A=0;A<1<<ixu[J];A++)uC[c++]=J;for(c>>=7;J<30;J++)for(CA6[J]=c<<7,A=0;A<1<<ixu[J]-7;A++)uC[256+c++]=J;for(A=0;A<=15;A++)w[A]=
0;for(A=0;A<=143;)oM[A*2+1]=8,A++,w[8]++;for(;A<=255;)oM[A*2+1]=9,A++,w[9]++;for(;A<=279;)oM[A*2+1]=7,A++,w[7]++;for(;A<=287;)oM[A*2+1]=8,A++,w[8]++;L6p(oM,287,w);for(A=0;A<30;A++)Oc[A*2+1]=5,Oc[A*2]=tt$(A,5);yrW=new D5Z(oM,x5u,257,286,15);NEu=new D5Z(Oc,ixu,0,30,15);bxE=new D5Z([],EzV,0,19,7);WYW=!0}S.l_desc=new K6W(S.dyn_ltree,yrW);S.d_desc=new K6W(S.dyn_dtree,NEu);S.bl_desc=new K6W(S.bl_tree,bxE);S.bi_buf=0;S.bi_valid=0;gFw(S);S=0}else S=v9(C,-2);S===0&&(C=C.state,C.window_size=2*C.w_size,lC(C.head),
C.max_lazy_match=nV[C.level].max_lazy,C.good_match=nV[C.level].good_length,C.nice_match=nV[C.level].nice_length,C.max_chain_length=nV[C.level].max_chain,C.strstart=0,C.block_start=0,C.lookahead=0,C.insert=0,C.match_length=C.prev_length=2,C.match_available=0,C.ins_h=0);C=S}}else C=-2;if(C!==0)throw Error(fV[C]);H.header&&(C=this.strm)&&C.state&&C.state.wrap===2&&(C.state.gzhead=H.header);if(H.dictionary){var m;typeof H.dictionary==="string"?m=eKp(H.dictionary):uJu.call(H.dictionary)==="[object ArrayBuffer]"?
m=new Uint8Array(H.dictionary):m=H.dictionary;H=this.strm;J=m;c=J.length;if(H&&H.state)if(m=H.state,C=m.wrap,C===2||C===1&&m.status!==42||m.lookahead)C=-2;else{C===1&&(H.adler=Zx7(H.adler,J,c,0));m.wrap=0;c>=m.w_size&&(C===0&&(lC(m.head),m.strstart=0,m.block_start=0,m.insert=0),S=new Ec.Buf8(m.w_size),Ec.arraySet(S,J,c-m.w_size,m.w_size,0),J=S,c=m.w_size);S=H.avail_in;w=H.next_in;A=H.input;H.avail_in=c;H.next_in=0;H.input=J;for(pV(m);m.lookahead>=3;){J=m.strstart;c=m.lookahead-2;do m.ins_h=(m.ins_h<<
m.hash_shift^m.window[J+3-1])&m.hash_mask,m.prev[J&m.w_mask]=m.head[m.ins_h],m.head[m.ins_h]=J,J++;while(--c);m.strstart=J;m.lookahead=2;pV(m)}m.strstart+=m.lookahead;m.block_start=m.strstart;m.insert=m.lookahead;m.lookahead=0;m.match_length=m.prev_length=2;m.match_available=0;H.next_in=w;H.input=A;H.avail_in=S;m.wrap=C;C=0}else C=-2;if(C!==0)throw Error(fV[C]);this._dict_set=!0}};
GzW=function(H,C){C=C||{};C.gzip=!0;C=new TEE(C);C.push(H,!0);if(C.err)throw C.msg||fV[C.err];return C.result};
vzi=function(H,C){var S=f27();S&&S.publish.call(S,H.toString(),H,C)};
XYW=function(H,C,S){var w=f27();if(!w)return 0;var A=w.subscribe(H.toString(),function(J,c){var Y=_.gh("ytPubsub2Pubsub2SkipSubKey");Y&&Y==A||(Y=function(){if(l27[A])try{if(c&&H instanceof Vs0&&H!=J)try{var M=H.dataClass,m=c;if(!m.args||!m.version)throw Error("$c");try{if(!M.version_){var W=new M;M.version_=W.version}var y=M.version_}catch(N){}if(!y||m.version!=y)throw Error("ad");try{c=Reflect.construct(M,_.BZ(m.args))}catch(N){throw N.message="yt.pubsub2.Data.deserialize(): "+N.message,N;}}catch(N){throw N.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+H.toString()+": "+N.message,N;}C.call(S||window,c)}catch(N){_.tE(N)}},ozp[H.toString()]?_.gh("yt.scheduler.instance")?_.rT.addLowPriorityJob(Y):_.yD(Y,0):Y())});
l27[A]=!0;Ox6[H.toString()]||(Ox6[H.toString()]=[]);Ox6[H.toString()].push(A);return A};
$T6=function(){var H=QZW,C=XYW(dTi,function(S){H.apply(void 0,arguments);PAp(C)});
return C};
PAp=function(H){var C=f27();C&&(typeof H==="number"&&(H=[H]),_.I6(H,function(S){C.unsubscribeByKey(S);delete l27[S]}))};
f27=function(){return _.gh("ytPubsub2Pubsub2Instance")};
pYZ=function(H,C,S){S=S===void 0?{sampleRate:.1}:S;Math.random()<Math.min(.02,S.sampleRate/100)&&vzi("meta_logging_csi_event",{timerName:H,timelineData:C})};
_.kzV=function(H){return H?(H=H.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.ws(H):null:null};
_.B9=function(H){return H?(H=H.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.Ot(H):null:null};
nz6=function(){hKu||(hKu=_.B9(_.rh("WORKER_SERIALIZATION_URL")));return hKu||void 0};
_.BE6=function(){var H=nz6();rrZ||H===void 0||(rrZ=new Worker(_.Qv(H),void 0));return rrZ};
_.DTE=function(){return typeof Worker==="function"&&nz6()?!0:!1};
_.gzp=function(){if(_.DTE()&&!KYi){var H=function(S){S=S.data;if(S.op==="gzippedGelBatch"){var w=tsp.get(S.key);w&&(LYE(S.gzippedBatch,w.latencyPayload,w.url,w.options,w.sendFn),tsp.delete(S.key))}},C=_.BE6();
C&&(C.addEventListener("message",H),C.onerror=function(){tsp.clear()},KYi=!0)}};
i70=function(H,C,S,w,A){A=A===void 0?!1:A;var J={startTime:(0,_.Zt)(),ticks:{},infos:{}};if(Dt)try{var c=UT$(C);if(c!=null&&(c>RK$||c<I2Z))w(H,S);else{if(_.E("gzip_gel_with_worker")&&(_.E("initial_gzip_use_main_thread")&&!a2E||!_.E("initial_gzip_use_main_thread"))){KYi||_.gzp();var Y=_.BE6();if(Y&&!A){tsp.set(xTu,{latencyPayload:J,url:H,options:S,sendFn:w});Y.postMessage({op:"gelBatchToGzip",serializedBatch:C,key:xTu});xTu++;return}}var M=GzW(H77(C));LYE(M,J,H,S,w)}}catch(m){_.Ug(m),w(H,S)}else w(H,
S)};
LYE=function(H,C,S,w,A){a2E=!1;var J=(0,_.Zt)();C.ticks.gelc=J;KV++;_.E("disable_compression_due_to_performance_degredation")&&J-C.startTime>=CJV&&(S40++,_.E("abandon_compression_after_N_slow_zips")?KV===_.YB("compression_disable_point")&&S40>smi&&(Dt=!1):Dt=!1);jmW(C);w.headers||(w.headers={});w.headers["Content-Encoding"]="gzip";w.postBody=H;w.postParams=void 0;A(S,w)};
wIw=function(H){var C=C===void 0?!1:C;var S=S===void 0?!1:S;var w=(0,_.Zt)(),A={startTime:w,ticks:{},infos:{}},J=C?_.gh("yt.logging.gzipForFetch",!1):!0;if(Dt&&J){if(!H.body)return H;try{var c=S?H.body:typeof H.body==="string"?H.body:JSON.stringify(H.body);J=c;if(!S&&typeof c==="string"){var Y=UT$(c);if(Y!=null&&(Y>RK$||Y<I2Z))return H;S=C?{level:1}:void 0;J=GzW(H77(c),S);var M=(0,_.Zt)();A.ticks.gelc=M;if(C){KV++;if((_.E("disable_compression_due_to_performance_degredation")||_.E("disable_compression_due_to_performance_degradation_lr"))&&
M-w>=CJV)if(S40++,_.E("abandon_compression_after_N_slow_zips")||_.E("abandon_compression_after_N_slow_zips_lr")){C=S40/KV;var m=smi/_.YB("compression_disable_point");KV>0&&KV%_.YB("compression_disable_point")===0&&C>=m&&(Dt=!1)}else Dt=!1;jmW(A)}}H.headers=Object.assign({},{"Content-Encoding":"gzip"},H.headers||{});H.body=J;return H}catch(W){return _.Ug(W),H}}else return H};
UT$=function(H){try{return(new Blob(H.split(""))).size}catch(C){return _.Ug(C),null}};
jmW=function(H){_.E("gel_compression_csi_killswitch")||!_.E("log_gel_compression_latency")&&!_.E("log_gel_compression_latency_lr")||pYZ("gel_compression",H,{sampleRate:.1})};
AxZ=function(){this.blockSize=-1};
tO=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var H=1;H<this.blockSize;++H)this.pad_[H]=0;this.total_=this.inbuf_=0;this.reset()};
FnZ=function(H){H=Object.assign({},H);delete H.Authorization;var C=_.Jx6();if(C){var S=new tO;S.update(_.rh("INNERTUBE_API_KEY"));S.update(C);H.hash=_.QO(S.digest(),3)}return H};
gT=function(){Z7Z||(Z7Z=new _.LV("yt.innertube"));return Z7Z};
cxp=function(H,C,S,w){if(w)return null;w=gT().get("nextId",!0)||1;var A=gT().get("requests",!0)||{};A[w]={method:H,request:C,authState:FnZ(S),requestTime:Math.round((0,_.Zt)())};gT().set("nextId",w+1,86400,!0);gT().set("requests",A,86400,!0);return w};
Y40=function(H){var C=gT().get("requests",!0)||{};delete C[H];gT().set("requests",C,86400,!0)};
MUD=function(H){var C=gT().get("requests",!0);if(C){for(var S in C){var w=C[S];if(!(Math.round((0,_.Zt)())-w.requestTime<6E4)){var A=w.authState,J=FnZ(_.rGE(!1));_.hb.equals(A,J)&&(A=w.request,"requestTimeMs"in A&&(A.requestTimeMs=Math.round((0,_.Zt)())),zxE(H,w.method,A,{}));delete C[S]}}gT().set("requests",C,86400,!0)}};
q4u=function(H){var C;return(H=H==null?void 0:(C=H.error)==null?void 0:C.code)&&H>=400&&H<=599?!1:!0};
TCu=function(H){var C;H=H==null?void 0:(C=H.error)==null?void 0:C.code;return!(H!==400&&H!==415)};
Wn$=function(){if(mW7)return mW7();var H={};mW7=F6("LogsDatabaseV2",{objectStores:(H.LogsRequestsStore={addedAtVersion:2},H),shared:!1,upgrade:function(C,S,w){S(2)&&Uc(C,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});S(3);S(5)&&(w=w.objectStore("LogsRequestsStore"),w.JSC$10696_wrapped.indexNames.contains("newRequest")&&w.JSC$10696_wrapped.deleteIndex("newRequest"),RM(w,"newRequestV2",["status","interface","timestamp"]));S(7)&&C.JSC$10681_wrapped.objectStoreNames.contains("sapisid")&&C.JSC$10681_wrapped.deleteObjectStore("sapisid");
S(9)&&C.JSC$10681_wrapped.objectStoreNames.contains("SWHealthLog")&&C.JSC$10681_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return mW7()};
IM=function(H){return _.iC(Wn$(),H)};
NCU=function(H,C){var S,w,A,J;return _.z(function(c){if(c.nextAddress==1)return S={startTime:(0,_.Zt)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},c.yield(IM(C),2);if(c.nextAddress!=3)return w=c.yieldResult,A=Object.assign({},H,{options:JSON.parse(JSON.stringify(H.options)),interface:_.rh("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),c.yield(w.put("LogsRequestsStore",A),3);J=c.yieldResult;S.ticks.tc=(0,_.Zt)();yxW(S);return c.return(J)})};
b7D=function(H,C){var S,w,A,J,c,Y,M,m,W;return _.z(function(y){if(y.nextAddress==1)return S={startTime:(0,_.Zt)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},y.yield(IM(C),2);if(y.nextAddress!=3)return w=y.yieldResult,A=_.rh("INNERTUBE_CONTEXT_CLIENT_NAME",0),J=[H,A,0],c=[H,A,(0,_.Zt)()],Y=IDBKeyRange.bound(J,c),M="prev",_.E("use_fifo_for_networkless")&&(M="next"),m=void 0,W=H==="NEW"?"readwrite":"readonly",_.E("use_readonly_for_get_most_recent_by_status_killswitch")&&(W="readwrite"),
y.yield(_.CV(w,["LogsRequestsStore"],{mode:W,enableRetries:!0},function(N){return _.c9(N.objectStore("LogsRequestsStore").index("newRequestV2"),{query:Y,direction:M},function(b){b.getValue()&&(m=b.getValue(),H==="NEW"&&(m.status="QUEUED",b.update(m)))})}),3);
S.ticks.tc=(0,_.Zt)();yxW(S);return y.return(m)})};
EjZ=function(H,C){var S;return _.z(function(w){if(w.nextAddress==1)return w.yield(IM(C),2);S=w.yieldResult;return w.return(_.CV(S,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(A){var J=A.objectStore("LogsRequestsStore");return J.get(H).then(function(c){if(c)return c.status="QUEUED",J.put(c).then(function(){return c})})}))})};
exi=function(H,C,S,w){S=S===void 0?!0:S;var A;return _.z(function(J){if(J.nextAddress==1)return J.yield(IM(C),2);A=J.yieldResult;return J.return(_.CV(A,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(c){var Y=c.objectStore("LogsRequestsStore");return Y.get(H).then(function(M){return M?(M.status="NEW",S&&(M.sendCount+=1),w!==void 0&&(M.options.compress=w),Y.put(M).then(function(){return M})):g4.resolve(void 0)})}))})};
uHp=function(H,C){var S;return _.z(function(w){if(w.nextAddress==1)return w.yield(IM(C),2);S=w.yieldResult;return w.return(S.delete("LogsRequestsStore",H))})};
Gp6=function(H){var C,S;return _.z(function(w){if(w.nextAddress==1)return w.yield(IM(H),2);C=w.yieldResult;S=(0,_.Zt)()-2592E6;return w.yield(_.CV(C,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(A){return sc(A.objectStore("LogsRequestsStore"),{},function(J){if(J.getValue().timestamp<=S)return J.delete().then(function(){return J.continue()})})}),0)})};
f5i=function(){_.z(function(H){return H.yield(qxW("LogsDatabaseV2"),0)})};
yxW=function(H){_.E("nwl_csi_killswitch")||pYZ("networkless_performance",H,{sampleRate:1})};
_.l5Z=function(H){return _.iC(vj$(),H)};
VUE=function(H){var C,S;_.z(function(w){if(w.nextAddress==1)return w.yield(_.l5Z(H),2);C=w.yieldResult;S=(0,_.Zt)()-2592E6;return w.yield(_.CV(C,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(A){return sc(A.objectStore("SWHealthLog"),{},function(J){if(J.getValue().timestamp<=S)return J.delete().then(function(){return J.continue()})})}),0)})};
oj$=function(H){var C;return _.z(function(S){if(S.nextAddress==1)return S.yield(_.l5Z(H),2);C=S.yieldResult;return S.yield(C.clear("SWHealthLog"),0)})};
_.aM=function(H,C,S,w,A,J,c){A=A===void 0?"":A;J=J===void 0?!1:J;c=c===void 0?!1:c;if(H)if(S&&!DQ("cobalt"))_.Ug(new _.X0("Legacy referrer-scrubbed ping detected")),H&&O7w(H,void 0,{scrubReferrer:!0});else if(A)su0(H,C,"POST",A,w);else if(_.rh("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||w||c)su0(H,C,"GET","",w,void 0,J,c);else{b:{try{c:{var Y=new XIZ({url:H});if(Y.urlParamValues_.dsh==="1")var M=null;else{var m=Y.urlParamValues_.ae;if(m==="1"){var W=Y.urlParamValues_.adurl;if(W)try{M={version:3,directUrl:decodeURIComponent(W),
asyncUrl:dnE(Y.JSC$9489_url_,"act=1","ri=1",Qmp(Y))};break c}catch(u){}}M=m==="2"?{version:4,directUrl:dnE(Y.JSC$9489_url_,"dct=1","suid="+Y.suid_,""),asyncUrl:dnE(Y.JSC$9489_url_,"act=1","ri=1","suid="+Y.suid_)}:null}}if(M){var y=_.EE(H);var N=!(!y||!y.endsWith("/aclk")||_.Up(H,"ri")!=="1");break b}}catch(u){}N=!1}if(N){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(H,"")){var b=!0;break b}}catch(u){}b=!1}b?(C&&C(),S=!0):S=!1}else S=!1;S||O7w(H,C)}};
O7w=function(H,C,S){S=S===void 0?{}:S;var w=new Image,A=""+dWp++;PJp[A]=w;w.onload=w.onerror=function(){C&&PJp[A]&&C();delete PJp[A]};
S.scrubReferrer&&(w.referrerPolicy="no-referrer");w.src=H};
xu=function(H,C){$Ww(H,C==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
pIE=function(H){var C;return((C=document.featurePolicy)==null?0:C.allowedFeatures().includes("attribution-reporting"))?H+"&nis=6":H+"&nis=5"};
kpD=function(H){if(!H)return!1;try{var C;if(((C=_.a6(H))==null?void 0:C.asm)==="4")return!0}catch(S){_.tE(S)}return!1};
$Ww=function(H,C){C?(H=pIE(H),_.aM(H,void 0,void 0,void 0,"",!0,!0)):_.aM(H)};
njw=function(){hx$||(hx$=new _.LV("yt.offline"));return hx$};
rxE=function(H){if(_.E("offline_error_handling")){var C=njw().get("errors",!0)||{};C[H.message]={name:H.name,stack:H.stack};H.level&&(C[H.message].level=H.level);njw().set("errors",C,2592E3,!0)}};
DW6=function(H,C,S,w){w=w===void 0?!1:w;C=_.E("web_fp_via_jspb")?Object.assign({},C):C;_.E("use_cfr_monitor")&&BCw(H,C);if(_.E("use_request_time_ms_header"))C.headers&&j$(H)&&(C.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.Zt)())));else{var A;if((A=C.postParams)==null?0:A.requestTimeMs)C.postParams.requestTimeMs=Math.round((0,_.Zt)())}S&&Object.keys(C).length===0?_.aM(H):C.compress?C.postBody?(typeof C.postBody!=="string"&&(C.postBody=JSON.stringify(C.postBody)),i70(H,C.postBody,
C,_.e$,w)):i70(H,JSON.stringify(C.postParams),C,Jf6,w):_.e$(H,C)};
KnU=function(H,C){_.E("use_event_time_ms_header")&&j$(H)&&(C.headers||(C.headers={}),C.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.Zt)())));return C};
_.LnD=function(){tUW||(tUW=new _.Hn({logOfflineErrors:!0,enablePolling:!0}));return tUW};
BCw=function(H,C){var S=C.onError?C.onError:function(){};
C.onError=function(A,J){ib().requestComplete(H,!1);S(A,J)};
var w=C.onSuccess?C.onSuccess:function(){};
C.onSuccess=function(A,J){ib().requestComplete(H,!0);w(A,J)}};
_.gjw=function(){return _.S$(document.location.toString())!=="www.youtube-nocookie.com"};
_.I5E=function(){return _.gh("ytNetworklessLoggingInitializationOptions")?_.UWW.isNwlInitialized:_.Rx7};
a5u=function(H,C){if(_.E("polymer_on_demand_shady_dom")){var S;var w=(S=H.__shady_native_firstElementChild)!=null?S:H.firstElementChild}else w=H.firstElementChild;for(;w;){if(H=C(w)?w:a5u(w,C))return H;w=w.nextElementSibling}return null};
Hu6=function(){var H=document;if("visibilityState"in H)return H.visibilityState;var C=xWD+"VisibilityState";if(C in H)return H[C]};
_.iu6=function(H,C){var S;CC(H,function(w){S=C[w];return!!S});
return S};
_.ss=function(H){var C=CmD(H);C?C.focus(void 0):_.Sr(H)};
CmD=function(H){return(H=a5u(H,function(C){return _.jr(C)?SU0(C)&&!!C.offsetParent:!1}))?H:null};
_.Sr=function(H,C){H.hasAttribute("tabindex")||H.setAttribute("tabindex","-1");H.focus(C)};
sW6=function(H,C,S,w){w=w===void 0?{}:w;H.addEventListener&&(C!="mouseenter"||"onmouseenter"in document?C!="mouseleave"||"onmouseenter"in document?C=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(C="MozMousePixelScroll"):C="mouseout":C="mouseover");return _.hb.findKey(wv,function(A){var J=typeof A[4]==="boolean"&&A[4]==!!w,c=_.U$(A[4])&&_.U$(w)&&_.hb.equals(A[4],w);return!!A.length&&A[0]==H&&A[1]==C&&A[2]==S&&(J||c)})};
_.Jt=function(H,C,S,w){w=w===void 0?{}:w;if(!H||!H.addEventListener&&!H.attachEvent)return"";var A=sW6(H,C,S,w);if(A)return A;A=++jWE.count+"";var J=!(C!="mouseenter"&&C!="mouseleave"||!H.addEventListener||"onmouseenter"in document);var c=J?function(Y){Y=new At(Y);if(!_.tb(Y.relatedTarget,function(M){return M==H},!0))return Y.currentTarget=H,Y.type=C,S.call(H,Y)}:function(Y){Y=new At(Y);
Y.currentTarget=H;return S.call(H,Y)};
c=_.Lp(c);H.addEventListener?(C=="mouseenter"&&J?C="mouseover":C=="mouseleave"&&J?C="mouseout":C=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(C="MozMousePixelScroll"),wbE()||typeof w==="boolean"?H.addEventListener(C,c,w):H.addEventListener(C,c,!!w.capture)):H.attachEvent("on"+C,c);wv[A]=[H,C,S,c,w];return A};
_.Jg$=function(H,C,S){var w=w===void 0?{}:w;var A=_.Jt(H,C,function(){_.Ag0(A);S.apply(H,arguments)},w)};
_.Ag0=function(H){H&&(typeof H=="string"&&(H=[H]),_.I6(H,function(C){if(C in wv){var S=wv[C],w=S[0],A=S[1],J=S[3];S=S[4];w.removeEventListener?wbE()||typeof S==="boolean"?w.removeEventListener(A,J,S):w.removeEventListener(A,J,!!S.capture):w.detachEvent&&w.detachEvent("on"+A,J);delete wv[C]}}))};
F2=function(H){this.callback_=H;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(H=0;H<4;H++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.Jt(window,"mousemove",(0,_.Xv)(this.onMouseMove_,this));this.timerId_=_.NE((0,_.Xv)(this.checkPosition_,this),25)};
cgW=function(){var H={};var C=H.preferMobileEvents===void 0?!1:H.preferMobileEvents;H=H.enableScrollEventListener===void 0?!0:H.enableScrollEventListener;if(_.gh("_lact",window)==null){var S=parseInt(_.rh("LACT"),10);S=isFinite(S)?Date.now()-Math.max(S,0):-1;_.AO("_lact",S,window);_.AO("_fact",S,window);S==-1&&_.ZZ();F36(window,C,H);new F2(function(){ZuU("mouse",100)})}};
F36=function(H,C,S){C=C===void 0?!1:C;S=S===void 0?!0:S;_.Jt(H.document,"keydown",_.ZZ);_.Jt(H.document,"keyup",_.ZZ);_.Jt(H.document,"mousedown",_.ZZ);_.Jt(H.document,"mouseup",_.ZZ);C?_.Jt(H,"touchmove",function(){ZuU("touchmove",200)},{passive:!0}):(_.Jt(H,"resize",function(){ZuU("resize",200)}),S&&_.Jt(H,"scroll",function(){ZuU("scroll",200)}));
_.Jt(H.document,"touchstart",_.ZZ,{passive:!0});_.Jt(H.document,"touchend",_.ZZ,{passive:!0})};
ZuU=function(H,C){YU7[H]||(YU7[H]=!0,_.rT.addLowPriorityJob(function(){_.ZZ();YU7[H]=!1},C))};
_.ZZ=function(){_.gh("_lact",window)==null&&cgW();var H=Date.now();_.AO("_lact",H,window);_.gh("_fact",window)==-1&&_.AO("_fact",H,window);(H=_.gh("ytglobal.ytUtilActivityCallback_"))&&H()};
_.cn=function(){var H=_.gh("_lact",window);return H==null?-1:Math.max(Date.now()-H,0)};
_.T8=function(H,C,S){var w=_.YI();if(w&&C){var A=w.subscribe(H,function(){var J=arguments,c=function(){z8[A]&&C.apply&&typeof C.apply=="function"&&C.apply(S||window,J)};
try{_.zei[H]?c():_.yD(c,0)}catch(Y){_.tE(Y)}},S);
z8[A]=!0;qK[H]||(qK[H]=[]);qK[H].push(A);return A}return 0};
_.MJD=function(H){var C=_.YI();C&&(typeof H==="number"?H=[H]:typeof H==="string"&&(H=[parseInt(H,10)]),_.I6(H,function(S){C.unsubscribeByKey(S);delete z8[S]}))};
_.qUi=function(H,C){var S=_.YI();S&&S.publish.apply(S,arguments)};
_.msZ=function(H){var C=_.YI();if(C)if(C.clear(H),H)TWE(H);else for(var S in qK)TWE(S)};
_.YI=function(){return _.s$.ytPubsubPubsubInstance};
TWE=function(H){qK[H]&&(H=qK[H],_.I6(H,function(C){z8[C]&&delete z8[C]}),H.length=0)};
W3Z=function(){var H,C;return"h5vcc"in mv&&((H=mv.h5vcc.traceEvent)==null?0:H.traceBegin)&&((C=mv.h5vcc.traceEvent)==null?0:C.traceEnd)?1:"performance"in mv&&mv.performance.mark&&mv.performance.measure?2:0};
yg$=function(H){var C=W3Z();switch(C){case 1:mv.h5vcc.traceEvent.traceBegin("YTLR",H);break;case 2:mv.performance.mark(H+"-start");break;case 0:break;default:_.KP(C,"unknown trace type")}};
NWW=function(H){var C=W3Z();switch(C){case 1:mv.h5vcc.traceEvent.traceEnd("YTLR",H);break;case 2:C=H+"-start";var S=H+"-end";mv.performance.mark(S);mv.performance.measure(H,C,S);break;case 0:break;default:_.KP(C,"unknown trace type")}};
bu7=function(H){var C,S;(S=(C=window).onerror)==null||S.call(C,H.message,"",0,0,H)};
EbE=function(H){if(_.E("web_lifecycle_error_handling_killswitch"))return H();try{return H()}catch(C){bu7(C)}};
ee0=function(H){return[H.auth===void 0?"undefined":H.auth,H.isJspb===void 0?"undefined":H.isJspb,H.cttAuthInfo===void 0?"undefined":H.cttAuthInfo,H.tier===void 0?"undefined":H.tier].join("/")};
_.e=function(H,C){if(H)return H[C.name]};
ym=function(){var H=_.gh("yt.logging.ims");H||(H=new Wn,_.AO("yt.logging.ims",H));return H};
XbW=function(H,C){if(H.endpoint==="log_event"){uBV(H);var S=GGi(H),w=fl7(H.payload)||"",A=vbV(w),J=200;if(A){if(A.enabled===!1&&!_.E("web_payload_policy_disabled_killswitch"))return;J=llu(A.tier);if(J===400){VJD(H,C);return}}NK[S]=!0;S={cttAuthInfo:S,isJspb:!1,tier:J};ym().storePayload(S,H.payload);obi(C,!1,S,Ouu(w))}};
ds7=function(H,C,S){if(C.endpoint==="log_event"){uBV(void 0,C);var w=GGi(C,!0),A=vbV(H),J=200;if(A){if(A.enabled===!1&&!_.E("web_payload_policy_disabled_killswitch"))return;J=llu(A.tier);if(J===400){QWp(H,C,S);return}}NK[w]=!0;w={cttAuthInfo:w,isJspb:!0,tier:J};ym().storePayload(w,$t(C.payload));obi(S,!0,w,Ouu(H))}};
obi=function(H,C,S,w){C=C===void 0?!1:C;w=w===void 0?!1:w;H&&(bb=new H);H=_.YB("tvhtml5_logging_max_batch_ads_fork")||_.YB("tvhtml5_logging_max_batch")||_.YB("web_logging_max_batch")||100;var A=(0,_.Zt)(),J=PmZ(C,S.tier),c=J.lastDebounceQueueFromLogTimeMs;w&&(J.useVideoStatsEndPoint=!0);w=0;S&&(w=ym().getSequenceCount(S));var Y=function(){$s0({writeThenSend:!0},C,S.tier)};
w>=1E3?Y():w>=H?pbp||(pbp=kGW(function(){Y();pbp=void 0},0)):A-c>=10&&(he0(C,S.tier),J.lastDebounceQueueFromLogTimeMs=A)};
VJD=function(H,C){if(H.endpoint==="log_event"){_.E("more_accurate_gel_parser")&&ym().storePayload({isJspb:!1},H.payload);uBV(H);var S=GGi(H),w=new Map;w.set(S,[H.payload]);var A=fl7(H.payload)||"";C&&(bb=new C);return new _.Es(function(J,c){bb&&bb.isReady()?nbi(w,bb,J,c,{bypassNetworkless:!0},!0,Ouu(A)):J()})}};
QWp=function(H,C,S){if(C.endpoint==="log_event"){uBV(void 0,C);var w=GGi(C,!0),A=new Map;A.set(w,[$t(C.payload)]);S&&(bb=new S);return new _.Es(function(J){bb&&bb.isReady()?rgZ(A,bb,J,{bypassNetworkless:!0},!0,Ouu(H)):J()})}};
GGi=function(H,C){var S="";if(H.dangerousLogToVisitorSession)S="visitorOnlyApprovedKey";else if(H.cttAuthInfo){if(C===void 0?0:C){C=H.cttAuthInfo.token;S=H.cttAuthInfo;var w=new BW7;S.videoId?w.setVideoId(S.videoId):S.playlistId&&er(w,2,Ds7,bp(S.playlistId));K3Z[C]=w}else C=H.cttAuthInfo,S={},C.videoId?S.videoId=C.videoId:C.playlistId&&(S.playlistId=C.playlistId),tJE[H.cttAuthInfo.token]=S;S=H.cttAuthInfo.token}return S};
$s0=function(H,C,S){H=H===void 0?{}:H;C=C===void 0?!1:C;new _.Es(function(w,A){var J=PmZ(C,S),c=J.useVideoStatsEndPoint;J.useVideoStatsEndPoint=!1;L3i(J.queueTimer);L3i(J.queueMaxTimer);J.queueMaxTimer=0;bb&&bb.isReady()?S===void 0&&_.E("enable_web_tiered_gel")?gbZ(w,A,H,C,300,c):gbZ(w,A,H,C,S,c):(he0(C,S),w())})};
gbZ=function(H,C,S,w,A,J){var c=bb;S=S===void 0?{}:S;w=w===void 0?!1:w;A=A===void 0?200:A;J=J===void 0?!1:J;var Y=new Map,M=new Map,m={isJspb:w,cttAuthInfo:void 0,tier:A},W={isJspb:w,cttAuthInfo:void 0};if(w){C=_.Z(Object.keys(NK));for(A=C.next();!A.done;A=C.next())A=A.value,M=_.E("enable_web_tiered_gel")?ym().smartExtractMatchingEntries({keys:[m,W],sizeLimit:1E3}):ym().extractMatchingEntries({isJspb:!0,cttAuthInfo:A}),M.length>0&&Y.set(A,M),(_.E("web_fp_via_jspb_and_json")&&S.writeThenSend||!_.E("web_fp_via_jspb_and_json"))&&
delete NK[A];rgZ(Y,c,H,S,!1,J)}else{Y=_.Z(Object.keys(NK));for(m=Y.next();!m.done;m=Y.next())m=m.value,W=_.E("enable_web_tiered_gel")?ym().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:m,tier:A},{isJspb:!1,cttAuthInfo:m}],sizeLimit:1E3}):ym().extractMatchingEntries({isJspb:!1,cttAuthInfo:m}),W.length>0&&M.set(m,W),(_.E("web_fp_via_jspb_and_json")&&S.writeThenSend||!_.E("web_fp_via_jspb_and_json"))&&delete NK[m];nbi(M,c,H,C,S,!1,J)}};
he0=function(H,C){H=H===void 0?!1:H;C=C===void 0?200:C;var S=function(){$s0({writeThenSend:!0},H,C)},w=PmZ(H,C),A=w===UsE||w===ReW?5E3:Il7;
_.E("web_gel_timeout_cap")&&!w.queueMaxTimer&&(A=kGW(function(){S()},A),w.queueMaxTimer=A);
L3i(w.queueTimer);A=_.rh("LOGGING_BATCH_TIMEOUT",_.YB("web_gel_debounce_ms",1E4));_.E("shorten_initial_gel_batch_timeout")&&ali&&(A=xsW);A=kGW(function(){_.YB("gel_min_batch_size")>0?ym().getSequenceCount({cttAuthInfo:void 0,isJspb:H,tier:C})>=Hnu&&S():S()},A);
w.queueTimer=A};
nbi=function(H,C,S,w,A,J,c){A=A===void 0?{}:A;var Y=Math.round((0,_.Zt)()),M=H.size,m=in$(c);H=_.Z(H);var W=H.next();for(c={};!W.done;c={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},W=H.next()){var y=_.Z(W.value);W=y.next().value;y=y.next().value;c.batchRequest=_.hb.unsafeClone({context:_.XUE(C.config_||_.Yu())});if(!_.Dw(y)&&!_.E("throw_err_when_logevent_malformed_killswitch")){w();break}c.batchRequest.events=y;
(y=tJE[W])&&Cr6(c.batchRequest,W,y);delete tJE[W];c.dangerousLogToVisitorSession=W==="visitorOnlyApprovedKey";S5E(c.batchRequest,Y,c.dangerousLogToVisitorSession);s$E(A);c.onSuccess$jscomp$3=function(N){_.E("start_client_gcf")&&_.rT.addLowPriorityJob(function(){return _.z(function(b){return b.yield(j$i(N),0)})});
M--;M||S()};
c.networkFailures=0;c.onError$jscomp$5=function(N){return function(){N.networkFailures++;if(A.bypassNetworkless&&N.networkFailures===1)try{zxE(C,m,N.batchRequest,wt6({writeThenSend:!0},N.dangerousLogToVisitorSession,N.onSuccess$jscomp$3,N.onError$jscomp$5,J)),ali=!1}catch(b){_.tE(b),w()}M--;M||S()}}(c);
try{zxE(C,m,c.batchRequest,wt6(A,c.dangerousLogToVisitorSession,c.onSuccess$jscomp$3,c.onError$jscomp$5,J)),ali=!1}catch(N){_.tE(N),w()}}};
rgZ=function(H,C,S,w,A,J){w=w===void 0?{}:w;var c=Math.round((0,_.Zt)()),Y={value:H.size},M=new Map([].concat(_.k$(H)));M=_.Z(M);for(var m=M.next();!m.done;m=M.next()){var W=_.Z(m.value).next().value,y=H.get(W);m=new AB6;var N=C.config_||_.Yu(),b=new ub,u=new JBU;_.XA(u,1,N.innertubeContextHostLanguage);_.XA(u,2,N.innertubeContextGeoLocation);_.qz(u,16,N.innertubeContextClientNameFieldNumber);_.XA(u,17,N.innertubeContextClientVersion);if(N.innertubeContextClientConfigInfo){var O=N.innertubeContextClientConfigInfo,
d=new mQ;O.coldConfigData&&_.XA(d,1,O.coldConfigData);O.appInstallData&&_.XA(d,6,O.appInstallData);O.coldHashData&&_.XA(d,3,O.coldHashData);O.hotHashData&&d.setHotHashData(O.hotHashData);_.f9(u,62,d)}(O=_.s$.devicePixelRatio)&&O!=1&&_.Tf(u,65,_.t_(O));O=U3U();O!==""&&_.XA(u,54,O);O=RN6();if(O.length>0){d=new F_Z;for(var p=0;p<O.length;p++){var k=new G8;k.setKey(O[p].key);er(k,2,ZnD,bp(O[p].value));fC(d,15,G8,k)}_.f9(b,5,d)}foV(N,u);vFp(b);lo7(u);VtD(N,u);oFZ(u);_.E("start_client_gcf")&&OfU(u);_.rh("DELEGATED_SESSION_ID")&&
!_.E("pageid_as_header_web")&&(N=new vn,_.XA(N,3,_.rh("DELEGATED_SESSION_ID")));!_.E("fill_delegate_context_in_gel_killswitch")&&(O=_.rh("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(d=_.zf(b,vn,3)||new vn,N=b,O=_.XA(d,18,O),_.f9(N,3,O));N=u;O=_.Z(Object.entries(_.a6(_.rh("DEVICE",""))));for(d=O.next();!d.done;d=O.next())p=_.Z(d.value),d=p.next().value,p=p.next().value,d==="cbrand"?_.XA(N,12,p):d==="cmodel"?_.XA(N,13,p):d==="cbr"?_.XA(N,87,p):d==="cbrver"?_.XA(N,88,p):d==="cos"?_.XA(N,18,
p):d==="cosver"?_.XA(N,19,p):d==="cplatform"&&_.qz(N,42,Gn$(p));b.setClient(u);_.f9(m,1,b);if(u=K3Z[W])a:{if(_.ud(u,lb(u,Ds7,1)))b=1;else if(u.getPlaylistId())b=2;else break a;_.f9(m,4,u);u=m.getContext()||new ub;N=_.zf(u,vn,3)||new vn;O=new Vm;O.setToken(W);_.qz(O,1,b);fC(N,12,Vm,O);_.f9(u,3,N)}delete K3Z[W];W=W==="visitorOnlyApprovedKey";cBD()||_.o8(m,2,c);!W&&(b=_.rh("EVENT_ID"))&&(u=Y5Z(),N=new zXW,_.XA(N,1,b),_.o8(N,2,u),_.f9(m,5,N));s$E(w);if(_.E("jspb_serialize_with_worker")&&(b=_.BE6())&&
w.writeThenSend){_.M4E.set(q5w,{client:C,resolve:S,networklessOptions:w,isIsolated:A,useVSSEndpoint:J,dangerousLogToVisitorSession:W,requestsOutstanding:Y});b.postMessage({op:"gelBatchToSerialize",batchRequest:$t(m),clientEvents:y,key:q5w});q5w++;break}if(y){b=[];for(u=0;u<y.length;u++)try{b.push(new Os(y[u]))}catch(R){_.tE(new _.X0("Transport failed to deserialize "+String(y[u])))}y=b}else y=[];y=_.Z(y);for(b=y.next();!b.done;b=y.next())fC(m,3,Os,b.value);y={startTime:(0,_.Zt)(),ticks:{},infos:{}};
m=m.serialize();y.ticks.geljspc=(0,_.Zt)();_.E("log_jspb_serialize_latency")&&pYZ("gel_jspb_serialize",y,{sampleRate:.1});_.TwD(m,C,S,w,A,J,W,Y)}};
_.TwD=function(H,C,S,w,A,J,c,Y){w=w===void 0?{}:w;Y=Y===void 0?{value:0}:Y;J=in$(J);w=wt6(w,c,function(M){_.E("start_client_gcf")&&_.rT.addLowPriorityJob(function(){return _.z(function(m){return m.yield(j$i(M),0)})});
Y.value--;Y.value||S()},function(){Y.value--;
Y.value||S()},A);
w.headers["Content-Type"]="application/json+protobuf";w.postBodyFormat="JSPB";w.postBody=H;zxE(C,J,"",w);ali=!1};
s$E=function(H){_.E("always_send_and_write")&&(H.writeThenSend=!1)};
wt6=function(H,C,S,w,A){H={retry:!0,onSuccess:S,onError:w,networklessOptions:H,dangerousLogToVisitorSession:C,bypassMonitoring:!!A,headers:{},postBodyFormat:"",postBody:"",compress:_.E("compress_gel")||_.E("compress_gel_lr")};cBD()&&(H.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.Zt)())));return H};
S5E=function(H,C,S){cBD()||(H.requestTimeMs=String(C));_.E("unsplit_gel_payloads_in_logs")&&(H.unsplitGelPayloadsInLogs=!0);!S&&(C=_.rh("EVENT_ID"))&&(S=Y5Z(),H.serializedClientEventId={serializedEventId:C,clientCounter:String(S)})};
Y5Z=function(){var H=_.rh("BATCH_CLIENT_COUNTER")||0;H||(H=Math.floor(Math.random()*65535/2));H++;H>65535&&(H=1);_.np("BATCH_CLIENT_COUNTER",H);return H};
Cr6=function(H,C,S){if(S.videoId)var w="VIDEO";else if(S.playlistId)w="PLAYLIST";else return;H.credentialTransferTokenTargetId=S;H.context=H.context||{};H.context.user=H.context.user||{};H.context.user.credentialTransferTokens=[{token:C,scope:w}]};
uBV=function(H,C){var S=_.z9("il_payload_scraping")==="enable_il_payload_scraping";if(!_.gh("yt.logging.transport.enableScrapingForTest"))if(S)mp7=[],_.AO("yt.logging.transport.enableScrapingForTest",!0),_.AO("yt.logging.transport.scrapedPayloadsForTesting",mp7),_.AO("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.AO("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.AO("yt.logging.transport.scrapeClientEvent",!0);else return;S=_.gh("yt.logging.transport.scrapedPayloadsForTesting");var w=_.gh("yt.logging.transport.payloadToScrape");C&&(C=_.gh("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(C.payload)())&&S.push(C);C=_.gh("yt.logging.transport.scrapeClientEvent");if(w&&w.length>=1)for(var A=0;A<w.length;A++)if(H&&H.payload[w[A]])if(C)S.push(H.payload);else{var J=void 0;S.push(((J=H)==null?void 0:J.payload)[w[A]])}_.AO("yt.logging.transport.scrapedPayloadsForTesting",
S)};
cBD=function(){return _.E("use_request_time_ms_header")||_.E("lr_use_request_time_ms_header")};
kGW=function(H,C){return _.E("transport_use_scheduler")===!1?_.yD(H,C):_.E("logging_avoid_blocking_during_navigation")||_.E("lr_logging_avoid_blocking_during_navigation")?_.X2(_.rT,function(){if(_.W_0().currentState==="none")H();else{var S={};_.W_0().install((S.none={callback:H},S))}},C):_.X2(_.rT,H,C)};
L3i=function(H){_.E("transport_use_scheduler")?_.rT.cancelJob(H):_.b5(H)};
j$i=function(H){var C,S,w,A,J,c,Y,M,m,W;return _.z(function(y){return y.nextAddress==1?(w=(C=H)==null?void 0:(S=C.responseContext)==null?void 0:S.globalConfigGroup,A=_.e(w,yB7),c=(J=w)==null?void 0:J.hotHashData,Y=_.e(w,Nw7),m=(M=w)==null?void 0:M.coldHashData,(W=_.JA().resolve(_.AA(Qm)))?c?A?y.yield(bnE(W,c,A),2):y.yield(bnE(W,c),2):y.jumpTo(2):y.return()):m?Y?y.yield(EiZ(W,m,Y),0):y.yield(EiZ(W,m),0):y.jumpTo(0)})};
PmZ=function(H,C){C=C===void 0?200:C;return H?C===300?UsE:eXZ:C===300?ReW:u1u};
vbV=function(H){if(_.E("enable_web_tiered_gel")){H=GbV[H||""];var C,S,w,A=_.JA().resolve(_.AA(Qm))==null?void 0:(C=dv())==null?void 0:(S=C.loggingHotConfig)==null?void 0:(w=S.eventLoggingConfig)==null?void 0:w.payloadPolicies;if(A)for(C=0;C<A.length;C++)if(A[C].payloadNumber===H)return A[C]}};
fl7=function(H){H=Object.keys(H);H=_.Z(H);for(var C=H.next();!C.done;C=H.next())if(C=C.value,GbV[C])return C};
llu=function(H){switch(H){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}};
Ouu=function(H){return H==="gelDebuggingEvent"};
in$=function(H){return(H===void 0?0:H)&&_.E("vss_through_gel_video_stats")?"video_stats":"log_event"};
$I=function(H,C,S,w){w=w===void 0?{}:w;var A={},J=Math.round(w.timestamp||(0,_.Zt)());A.eventTimeMs=J<Number.MAX_SAFE_INTEGER?J:0;A[H]=C;H=_.cn();A.context={lastActivityMs:String(w.timestamp||!isFinite(H)?-1:H)};w.sequenceGroup&&!_.E("web_gel_sequence_info_killswitch")&&(H=A.context,C=w.sequenceGroup,C={index:fz0(C),groupKey:C},H.sequence=C,w.endOfSequence&&delete Pn[w.sequenceGroup]);_.E("web_tag_automated_log_events")&&(A.context.automatedLogEventSource=w.automatedLogEventSource);(w.sendIsolatedPayload?
VJD:XbW)({endpoint:"log_event",payload:A,cttAuthInfo:w.cttAuthInfo,dangerousLogToVisitorSession:w.dangerousLogToVisitorSession},S)};
fz0=function(H){Pn[H]=H in Pn?Pn[H]+1:0;return Pn[H]};
_.kI=function(H,C,S){S=S===void 0?{}:S;var w=pC;_.Bh("ytLoggingEventsDefaultDisabled",!1)&&pC===pC&&(w=null);$I(H,C,w,S)};
_.ht=function(){if(_.E("web_fp_via_jspb")){var H=!0;H=H===void 0?!1:H;var C=viu;viu=[];if(C){C=_.Z(C);for(var S=C.next();!S.done;S=C.next())S=S.value,H?$I(S.payloadName,S.payload,pC,S.options):_.kI(S.payloadName,S.payload,S.options)}$s0(void 0,!0);if(!_.E("web_fp_via_jspb_and_json"))return}$s0(void 0,!1)};
lz6=function(H,C){var S;if((S=C)==null?0:S.componentStack)return C;if(H=H.componentStack)C||(C={}),C.componentStack=H;return C};
V4D=function(){_.I6(_.rh("ERRORS")||[],function(H){_.nC.apply(null,H)});
_.np("ERRORS",[])};
_.rv=function(H){_.nC(H)};
_.Bn=function(H){_.nC(H,"WARNING")};
oii=function(H){H instanceof Error?_.nC(H):(H=_.U$(H)?JSON.stringify(H):String(H),H=new _.X0(H),H.name="RejectedPromiseError",_.Bn(H))};
OnU=function(H,C,S,w,A,J){C=C===void 0?"Unknown file":C;S=S===void 0?0:S;var c=!1,Y=vR$("log_window_onerror_fraction");if(Y&&Math.random()<Y)c=!0;else{Y=document.getElementsByTagName("script");for(var M=0,m=Y.length;M<m;M++)if(Y[M].src.indexOf("/debug-")>0){c=!0;break}}c&&(c=!1,A?c=!0:(typeof H==="string"?Y=H:ErrorEvent&&H instanceof ErrorEvent?(c=!0,Y=H.message,C=H.filename,S=H.lineno,w=H.colno):(Y="Unknown error",C="Unknown file",S=0),A=new _.X0(Y),A.name="UnhandledWindowError",A.message=Y,A.fileName=
C,A.lineNumber=S,isNaN(w)?delete A.columnNumber:A.columnNumber=w),_.E("wiz_enable_component_stack_propagation_killswitch")||(J=lz6(A,J)),J&&_.DZ(A,J),c?_.nC(A):_.Bn(A))};
_.nC=function(H,C,S,w,A,J,c,Y){J=J===void 0?{}:J;J.name=S||_.rh("INNERTUBE_CONTEXT_CLIENT_NAME",1);J.version=w||_.rh("INNERTUBE_CONTEXT_CLIENT_VERSION");S=J;C=C===void 0?"ERROR":C;c=c===void 0?!1:c;C=C===void 0?"ERROR":C;c=c===void 0?!1:c;if(H&&(H.hasOwnProperty("level")&&H.level&&(C=H.level),_.E("console_log_js_exceptions")&&(w=[],w.push("Name: "+H.name),w.push("Message: "+H.message),H.hasOwnProperty("params")&&w.push("Error Params: "+JSON.stringify(H.params)),H.hasOwnProperty("args")&&w.push("Error args: "+
JSON.stringify(H.args)),w.push("File name: "+H.fileName),w.push("Stacktrace: "+H.stack),w=w.join("\n"),window.console.log(w,H)),!(XtZ>=5))){w=[];A=_.Z(Q$E);for(J=A.next();!J.done;J=A.next()){J=J.value;try{J()&&w.push(J())}catch(d){}}w=[].concat(_.k$(dp7),_.k$(w));var M=PrV(H);A=M.message||"Unknown Error";J=M.name||"UnknownError";var m=M.stack||H.stacktrace||"Not available";if(m.startsWith(J+": "+A)){var W=m.split("\n");W.shift();m=W.join("\n")}W=M.lineNumber||"Not available";M=M.fileName||"Not available";
var y=0;if(H.hasOwnProperty("args")&&H.args&&H.args.length)for(var N=0;N<H.args.length&&!(y=u_U(H.args[N],"params."+N,S,y),y>=500);N++);else if(H.hasOwnProperty("params")&&H.params){var b=H.params;if(typeof H.params==="object")for(N in b){if(b[N]){var u="params."+N,O=fv(b[N]);S[u]=O;y+=u.length+O.length;if(y>500)break}}else S.params=fv(b)}if(w.length)for(N=0;N<w.length&&!(y=u_U(w[N],"params.context."+N,S,y),y>=500);N++);navigator.vendor&&!S.hasOwnProperty("vendor")&&(S["device.vendor"]=navigator.vendor);
N={message:A,name:J,lineNumber:W,fileName:M,stack:m,params:S,sampleWeight:1};S=Number(H.columnNumber);isNaN(S)||(N.lineNumber=N.lineNumber+":"+S);if(H.level==="IGNORED")H=0;else a:{H=$pi();S=_.Z(H.messageWeights);for(w=S.next();!w.done;w=S.next())if(w=w.value,N.message&&N.message.match(w.messageRegExp)){H=w.weight;break a}H=_.Z(H.callbackWeights);for(S=H.next();!S.done;S=H.next())if(S=S.value,S.callback(N)){H=S.weight;break a}H=1}N.sampleWeight=H;H=_.Z(ptE);for(S=H.next();!S.done;S=H.next())if(S=
S.value,S.patternsForType[N.name])for(A=_.Z(S.patternsForType[N.name]),w=A.next();!w.done;w=A.next())if(J=w.value,w=N.message.match(J.regexp)){N.params["params.error.original"]=w[0];A=J.groups;J={};for(W=0;W<A.length;W++)J[A[W]]=w[W+1],N.params["params.error."+A[W]]=w[W+1];N.message=S.messageFn(J);break}N.params||(N.params={});H=$pi();N.params["params.errorServiceSignature"]="msg="+H.messageWeights.length+"&cb="+H.callbackWeights.length;N.params["params.serviceWorker"]="false";_.s$.document&&_.s$.document.querySelectorAll&&
(N.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new KC(kbU,"sample")).constructor!==KC&&(N.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(N);if(N.sampleWeight!==0&&!hX$.has(N.message)){if(c&&_.E("web_enable_error_204"))niU(C===void 0?"ERROR":C,N);else{C=C===void 0?"ERROR":C;C==="ERROR"?(rBu.publish("handleError",N),_.E("record_app_crashed_web")&&Bw0===0&&N.sampleWeight===1&&(Bw0++,c={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.E("report_client_error_with_app_crash_ks")||(c.systemHealth={crashData:{clientError:{logMessage:{message:N.message}}}}),_.kI("appCrashed",c)),Dp6++):C==="WARNING"&&rBu.publish("handleWarning",N);if(_.E("kevlar_gel_error_routing")){c=C;Y=Y===void 0?{}:Y;b:{H=_.Z(K_E);for(S=H.next();!S.done;S=H.next())if(DQ(S.value.toLowerCase())){H=!0;break b}H=!1}if(H)Y=void 0;else{S={stackTrace:N.stack};N.fileName&&(S.filename=N.fileName);H=N.lineNumber&&N.lineNumber.split?N.lineNumber.split(":"):[];H.length!==
0&&(H.length!==1||isNaN(Number(H[0]))?H.length!==2||isNaN(Number(H[0]))||isNaN(Number(H[1]))||(S.lineNumber=Number(H[0]),S.columnNumber=Number(H[1])):S.lineNumber=Number(H[0]));H={level:"ERROR_LEVEL_UNKNOWN",message:N.message,errorClassName:N.name,sampleWeight:N.sampleWeight};c==="ERROR"?H.level="ERROR_LEVEL_ERROR":c==="WARNING"&&(H.level="ERROR_LEVEL_WARNNING");S={isObfuscated:!0,browserStackInfo:S};Y.pageUrl=window.location.href;Y.kvPairs=[];_.rh("FEXP_EXPERIMENTS")&&(Y.experimentIds=_.rh("FEXP_EXPERIMENTS"));
w=_.rh("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!vR$("web_disable_gel_stp_ecatcher_killswitch")&&w)for(A=_.Z(Object.keys(w)),J=A.next();!J.done;J=A.next())J=J.value,Y.kvPairs.push({key:J,value:String(w[J])});if(w=N.params)for(A=_.Z(Object.keys(w)),J=A.next();!J.done;J=A.next())J=J.value,Y.kvPairs.push({key:"client."+J,value:String(w[J])});w=_.rh("SERVER_NAME");A=_.rh("SERVER_VERSION");w&&A&&(Y.kvPairs.push({key:"server.name",value:w}),Y.kvPairs.push({key:"server.version",value:A}));Y={errorMetadata:Y,
stackTrace:S,logMessage:H}}Y&&(_.kI("clientError",Y),(c==="ERROR"||_.E("errors_flush_gel_always_killswitch"))&&_.ht())}_.E("suppress_error_204_logging")||niU(C,N)}try{hX$.add(N.message)}catch(d){}XtZ++}}};
niU=function(H,C){var S=C.params||{};H={urlParams:{a:"logerror",t:"jserror",type:C.name,msg:C.message.substr(0,250),line:C.lineNumber,level:H,"client.name":S.name},postParams:{url:_.rh("PAGE_NAME",window.location.href),file:C.fileName},method:"POST"};S.version&&(H["client.version"]=S.version);if(H.postParams){C.stack&&(H.postParams.stack=C.stack);C=_.Z(Object.keys(S));for(var w=C.next();!w.done;w=C.next())w=w.value,H.postParams["client."+w]=S[w];if(S=_.rh("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(C=
_.Z(Object.keys(S)),w=C.next();!w.done;w=C.next())w=w.value,H.postParams[w]=S[w];(S=_.rh("LAVA_VERSION"))&&(H.postParams["lava.version"]=S);S=_.rh("SERVER_NAME");C=_.rh("SERVER_VERSION");S&&C&&(H.postParams["server.name"]=S,H.postParams["server.version"]=C)}_.e$(_.rh("ECATCHER_REPORT_HOST","")+"/error_204",H)};
_.t4p=function(H,C){C=C===void 0?"ERROR":C;var S=S===void 0?{}:S;var w=_.gh("ytbin.polymer.shared.lib.tampering.info");w&&(w=w())&&(S["params.tamperingInfo"]=w.sort().join(","));_.nC(H,C,void 0,void 0,!0,S)};
_.DZ=function(H){var C=_.tc.apply(1,arguments);H.args||(H.args=[]);Array.isArray(H.args)&&H.args.push.apply(H.args,_.k$(C))};
L_D=function(H){H.level="IGNORED"};
giU=function(H,C){dp7.push(H);C();dp7.pop()};
LC=function(H,C){for(var S in C)C.hasOwnProperty(S)&&(H=_.tt(H,S,C[S]));return H};
_.UpZ=function(H,C,S){S=S===void 0?!1:S;if(!H)return null;if(H.adInfoDialogEndpoint||H.backstageImageUploadEndpoint||H.confirmDialogEndpoint||H.clientActionEndpoint||H.createBackstagePostDialogEndpoint||H.createCommentReplyDialogEndpoint||H.flowEndpoint||H.guideBuilderEndpoint||H.liveChatDialogEndpoint||H.modalEndpoint||H.openPopupAction||H.shareEndpoint||H.shareEntityEndpoint||H.showLiveChatItemEndpoint||H.subscriptionManagerEndpoint||H.unlimitedCreateFamilyEndpoint||H.unlimitedFamilyFlowEndpoint||
H.updateCommentDialogEndpoint||H.updateCommentReplyDialogEndpoint||H.userFeedbackEndpoint||H.videoEditorEndpoint||H.ypcCancelSurveyEndpoint)return C=_.YB("polymer_report_client_url_requested_rate"),!S&&Math.random()<C&&_.Bn(new _.X0("urlForEndpoint used on client endpoint",H)),null;var w=_.YB("polymer_report_missing_web_navigation_endpoint_rate");if(H.liveChatEndpoint||H.liveChatReplayEndpoint)w=0;if(!H.commandMetadata&&!H.clickTrackingParams&&Math.random()<w){var A={},J;for(J in H)A[J]="1";_.Bn(new _.X0("Missing navigation data",
A))}A="";if(H.commandMetadata&&H.commandMetadata.webCommandMetadata&&H.commandMetadata.webCommandMetadata.url)A=H.commandMetadata.webCommandMetadata.url;else if(H.searchEndpoint)Math.random()<w&&_.Bn(new _.X0("Should not manually handle search",H)),A="/results?search_query="+encodeURIComponent(H.searchEndpoint.query).replace(/%20/g,"+"),H.searchEndpoint.params&&(A+="&sp="+H.searchEndpoint.params);else if(H.watchEndpoint)Math.random()<w&&_.Bn(new _.X0("Should not manually handle watch",H)),A="/watch?v="+
H.watchEndpoint.videoId,H.watchEndpoint.playlistId&&(A+="&list="+H.watchEndpoint.playlistId),H.watchEndpoint.index&&(A+="&index="+H.watchEndpoint.index),H.watchEndpoint.startTimeSeconds&&(A+="&t="+H.watchEndpoint.startTimeSeconds);else if(H.browseEndpoint)w=H.browseEndpoint.browseId,(J=H.browseEndpoint.canonicalBaseUrl)?A=J:w&&(A=w.substr(0,2),A=A==="FE"?w==="FEwhat_to_watch"?"/":w==="FEmy_videos"?"/my_videos":"/feed/"+w.substr(2):A==="VL"?"/playlist?list="+w.substr(2):"/channel/"+w),A&&H.browseEndpoint.query&&
(A=LC(A+"/search",{query:H.browseEndpoint.query})),A&&H.browseEndpoint.params&&(A=LC(A,{params:H.browseEndpoint.params}));else{if(H.urlEndpoint)return H.urlEndpoint.url;H.signInEndpoint?(A="https://accounts.google.com/ServiceLogin",w={},_.hb.extend(w,C||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),C=w):H.uploadEndpoint?A="//www.youtube.com/upload":H.liveChatEndpoint?(A=H.liveChatEndpoint,w=_.hb.clone(A),_.U$(A.continuation)&&(J=Object.keys(A.continuation)[0],
w.continuation=A.continuation[J].continuation),A=LC("/youtubei/v1/live_chat/get_live_chat",w)):H.liveChatReplayEndpoint?(A=_.hb.clone(H.liveChatReplayEndpoint),A.currentPlayerState&&(_.hb.extend(A,A.currentPlayerState),delete A.currentPlayerState),A=LC("/youtubei/v1/live_chat/get_live_chat_replay",A)):H.liveChatItemContextMenuEndpoint?A=LC("/youtubei/v1/live_chat/get_item_context_menu",H.liveChatItemContextMenuEndpoint):H.liveChatPurchaseMessageEndpoint?A=LC("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
H.liveChatPurchaseMessageEndpoint):H.openSuperStickerBuyFlowCommand?A=LC("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",H.openSuperStickerBuyFlowCommand):H.videoEditEndpoint?A=LC("/edit",{video_id:H.videoEditEndpoint.videoId}):H.liveDashboardEndpoint?A=H.liveDashboardEndpoint.videoId?LC("/live_dashboard",{v:H.liveDashboardEndpoint.videoId}):"/live_dashboard":H.signalNavigationEndpoint&&H.signalNavigationEndpoint.signal&&H.signalNavigationEndpoint.signal==="WEBCAM"?A="/webcam":H.getPdgBuyFlowCommand&&
(A=LC(H.getPdgBuyFlowCommand.buyflowApiPath,{params:H.getPdgBuyFlowCommand.params}))}return A||S?LC(A,C||{}):(_.Bn(new _.X0("Error: Can't construct url for endpoint","keys:"+Object.keys(H).sort().join(","),H)),null)};
RXu=function(H){if(H){if(H.browseEndpoint)return!!H.browseEndpoint.nofollow;if(H.watchEndpoint)return!!H.watchEndpoint.nofollow;if(H.urlEndpoint)return!!H.urlEndpoint.nofollow}return!1};
_.az0=function(H,C){var S=C+H,w=Iz6.get(S);if(w)return w;H=C+"-"+H.replace(/([A-Z])/g,"-$1").toLowerCase();Iz6.set(S,H);return H};
xp$=function(H){var C=_.kT(H,"action")||_.kT(H,"command")||_.kT(H,"endpoint");if(!C)return null;C=_.az0(C,"yt");_.e(H,_.gv)&&(C+="-"+_.e(H,_.gv).signal.toLowerCase().replace(/_/g,"-"));return C};
SjZ=function(H){try{var C=Object.keys(H)}catch(A){return[]}for(var S=0;S<C.length;S++){var w=C[S];if(HNZ.test(w)||iNi.test(w))return CKZ(H[w])}return[]};
CKZ=function(H){return H.command?[H.command]:H.onExecutionAction?[H.onExecutionAction]:H.onResponseReceivedCommand?[H.onResponseReceivedCommand]:H.updateFlowCommand?[H.updateFlowCommand]:H.clientActions?H.clientActions:H.action?[H.action]:H.actions||H.commands||H.onResponseReceivedActions||H.onResponseReceivedCommands||H.onResponseReceivedEndpoints||[]};
jJZ=function(H,C){C=C===void 0?!1:C;var S=_.JA().resolve(_.AA(Us));S||(S=new sJW,_.JA().addProvider({provide:Us,useValue:S}));return S&&H&&!_.hb.isEmpty(H)?S.getUrl(H,C):""};
wQu=function(H,C,S){S=S===void 0?"":S;if(C){H.data=C;var w=jJZ(C);w?(gP(H,w),RXu(C)||!j$(w)?H.rel="nofollow":H.removeAttribute("rel"),_.e(C,_.R8)&&_.e(C,_.R8).target==="TARGET_NEW_WINDOW"?H.target="_blank":S?H.target=S:H.removeAttribute("target")):(H.removeAttribute("href"),H.removeAttribute("rel"),H.removeAttribute("target"))}};
_.iy=function(H,C){var S=sF;if(OF())Ah7(H,function(){var J=_.tc.apply(0,arguments);ha(S,function(){C.apply(null,_.k$(J))})});
else{var w=_.a8.getInstance(),A=fRE(C);m3$(function(){A.value=C});
_.$T(function(){var J={},c=_.xI(w,(J[H]=function(){var Y=_.tc.apply(0,arguments);ha(S,function(){A.value.apply(A,_.k$(Y))})},J));
return function(){var Y={};_.H5(w,(Y[H]="",Y),c)}})}};
_.sW=function(H,C){return Jhu(H,!1,C)};
_.ja=function(H,C){return Jhu(H,!0,C)};
Jhu=function(H,C,S){return OF()?FRD(H,C,S):ZNZ(H,C,S)};
ZNZ=function(H,C,S){return pp(function(){return FRD(H,C,S)})};
FRD=function(H,C,S){var w=zN6(function(A){w.value=A;var J=function(){var c=Y1(null);try{return S==null?void 0:S(A)}finally{Y1(c)}}();
return function(){J==null||J()}});
w.__expectedTagName=H;w.__optional=C;w.isIdom=!OF();return w};
chV=function(H){var C=sF,S=VM;return{getFn:function(){return function(w){C.isDisposed||QM(function(){return TR(function(){return H(w)})},S)!==!0&&w.stopPropagation()}}}};
wd=function(H){if(typeof H.children==="function")return H.children(),null;H=_.Z(H.children);for(var C=H.next();!C.done;C=H.next())C=C.value,C();return null};
YjZ=function(H){var C;return((C=H.prototype)==null?void 0:C.render)===void 0};
zME=function(H){return H.items.map(H.children)};
qjW=function(H,C,S){S=S===void 0?!1:S;QM(function(){return MAp(H,C,S)})};
MAp=function(H,C,S){var w=null;GR++;S=(S===void 0?0:S)?T$6:mNu;try{w=S(H,function(){AP(C)}),lW(!1)}catch(A){throw lW(!0),A;
}return w===null?H:w};
AP=function(H){if(H!==void 0&&H!==null)if(H instanceof Eg)for(var C=Ls;RE()!=null&&agE in RE()&&C.contains(RE());)x1();else if(Array.isArray(H))for(C=_.Z(H),H=C.next();!H.done;H=C.next())AP(H.value);else if(H instanceof o2||H instanceof Y$||"function"==typeof _.wh&&H instanceof _.wh)IV$(H.toString());else if(_.ch(H)){if(RE()!==H){var S,w;C=(w=(S=VM)==null?void 0:S.name)!=null?w:"unknown";throw Error("hc`"+H.tagName+"`"+C);}x1()}else if(H!=null&&H.contentKind===qn||H instanceof Ut||YkE(H))for(C=MjZ(H),
C=Array.from(C.childNodes),C=_.Z(C),H=C.next();!H.done;H=C.next())Ls.appendChild(H.value),x1();else if(p9(H)&&(H=H.toString()),S=typeof H,S==="boolean"||S==="number"||S==="string")IV$(H);else if(typeof H==="function"){C=Ls;var A=RE();A&&(A._isSignalTextNode||A._isSafeOrSanitizedHtmlNode)||rJ6(C,A,H);x1()}else if(H.type===zME)AP(H.type(Object.assign({},H.props,{children:H.children[0]})));else{GA.beforeVisit(H);if(typeof H.type==="string"){a:{H.__open||rPW(H.type,H.props.idomKey);A=Ls;for(C in H.props)if(H.props[C]!==
WRi){var J=H.props[C];S=Cp;S.push(C);S.push(J)}C=Fb.attributes;C=C===void 0?JP:C;J=Ls;S=ta(J);RrV(J,S,C);n_7(A,H.props,!0);if((H.props.skip||H.props.skipchildren)&&Ls.hasChildNodes())D_$();else{if(H.type==="style"&&E_Z(H.children)===null){D_$();C=void 0;break a}AP(H.children)}BdU();H.__open&&(H.__open=!1);jei(A,H.props);C=A}return C}if(H.type===_.F9)AP(H.children);else if(!yhV(H)){C=H;try{N$$(C)}catch(c){H=c,(J=Fb.handleError)==null||J.call.apply(J,[Fb].concat(_.k$(ns(H,(A=C.type)==null?void 0:A.TAG_NAME))))}C.__open&&
(BdU(),C.__open=!1)}}};
bNZ=function(H,C){var S;YjZ(H)?S=new vh(C,H):S=new H(C);S.__type=H;S.__updateContext={nextState:S.state,isForced:!1};return S};
N$$=function(H){var C=H.type,S=C.TAG_NAME;if(C===wd)H.props.children=H.children,C(H.props);else{H.children.length>0&&(H.props.children=H.children);var w;(w=H.props).idomKey||(w.idomKey=C);if(S){var A=rPW(S,H.props.idomKey);H.__open=!0;var J=A.__instance}J||(J=bNZ(C,H.props),J.props=null,A&&(A.__instance=J,J.el=A));var c;S=((c=J.__updateContext)!=null?c:{nextState:J.state,isForced:!1}).nextState;J.__updateContext=void 0;C.getDerivedStateFromProps&&(S=C.getDerivedStateFromProps(H.props,S));J.props=
H.props;J.state=S;c=function(){var Y=J;GA.beforeRender(Y);var M=Y.render(Y.props);GA.afterRender(Y,M);M?(Y.props.idomKey&&(M.props.idomKey=Y.props.idomKey),Y=M):Y=void 0;if(M=Y)if(M.__open=H.__open,Y=AP(M),H.__open=M.__open,!C.TAG_NAME)if(Y)C.TAG_NAME=Y.tagName.toLowerCase(),Y.__instance=J,J.el=Y;else{var m;if((m=J.hooks)==null?0:m.length){var W;(W=Fb.handleError)==null||W.call.apply(W,[Fb].concat(_.k$(ns(Error("nd")))))}}J.didPatch();GA.didPatch(J)};
(S=J.functionComponent)?APE(S,c,J.props.debugInstance):c()}};
yhV=function(H){var C=H.type;if(!YjZ(C)||C===wd||C.componentType===oE)return!1;H.props.children=H.children.length>1?H.children:H.children[0];var S,w=(S=H.props.idomKey)!=null?S:H.type,A;if(RE()&&((A=RE()[Wh])==null?void 0:A.key)===w){var J=RE(),c=J[Wh];if(!c)throw Error("gc`"+J.tagName);var Y;(Y=c.updateSignalsFromIdomProps)==null||Y.call(c,H.props);EQp(c);return!0}if(eMu.has(C.name))throw Y=C.name,C=(c=(J=VM)==null?void 0:J.name)!=null?c:"unknown",Error("fc`"+Y+"`"+C);tjZ(H.type,H.props,H.children);
H.props.renderedFromIdom=!0;(Y=APE(H.type,function(){return Psp(H.type,H.props)},H.props.debugInstance))&&ue0(Y);
return!0};
G_u=function(H){for(var C=0;C<bE(H).length;C++)x1()};
EQp=function(H){var C=fBZ();if(C)G_u(C);else for(var S=0;S<H.numNodes;S++)(C=fBZ())?G_u(C):x1()};
fBZ=function(){var H;return(H=RE()[Wh])==null?void 0:H.sourceDynamicRange};
ue0=function(H){H=JJw(H);H=Array.isArray(H)?H:[H];H=_.Z(H);for(var C=H.next();!C.done;C=H.next())Ls.insertBefore(C.value,RE()),x1()};
vQ0=function(){var H=pMi(),C=pp(function(){return{value:0}});
return[C.value,function(S){if(fp!==null){var w;(w=Fb.handleError)==null||w.call.apply(w,[Fb].concat(_.k$(ns(Error("od")))))}C.value=typeof S==="function"?S(C.value):S;H.__updateContext={nextState:H.state,isForced:!0};S=_.jL(H.effectContext);w=ZY(!1);try{if(H.el){var A,J={},c=(J.props=H.props,J.type=H.__type,J.children=(A=H.props.children)!=null?A:[],J[JE]=!0,J);try{qjW(H.el,c,!0)}catch(m){var Y,M;(M=Fb.handleError)==null||M.call.apply(M,[Fb].concat(_.k$(ns(m,(Y=H.__type)==null?void 0:Y.TAG_NAME))))}}}finally{ZY(w),
_.jL(S)}}]};
_.Fy=function(H,C){var S=sF,w=function(A){ha(S,function(){C(A)})};
window.addEventListener(H,w,void 0);_.PN(function(){window.removeEventListener(H,w,void 0)})};
_.c5=function(H){var C=sF;return function(S){var w,A=(w=H.observer)!=null?w:_.JA().resolve(ZV);w=lBu(S);var J=[];H.showOption&&J.push(A.observe(S,function(){ha(C,function(){H.visibilityCallback(!0,S)})},H.showOption));
H.hideOption&&J.push(A.observe(S,function(){ha(C,function(){H.visibilityCallback(!1,S)})},H.hideOption));
H.prescanOption&&H.prescanCallback&&J.push(A.observe(S,function(){ha(C,function(){H.prescanCallback()})},H.prescanOption));
var c;w.visibilityMonitorKeys=((c=w.visibilityMonitorKeys)!=null?c:[]).concat(J)}};
lBu=function(H){var C;return(C=H.polymerController)!=null?C:H};
XQi=function(H,C){var S=VAE;return _.q(_.F9,null,ftZ(Fb.enableLazyTsx,function(){return _.q(oQE,{id:S,value:H,children:C})},function(){var w=ONZ(S,H);
Ja(w);w=_.jL(w);try{return C()}finally{_.jL(w)}}))};
oQE=function(H){var C=H.children;H=ONZ(H.id,H.value);Ja(H);H=_.jL(H);try{return _.q(_.F9,null,eI(C()))}finally{_.jL(H)}};
ONZ=function(H,C){return Object.assign(Object.create(QJ$),{id:H,contextValue:C})};
dNW=function(H){var C,S=sF;_.k1(function(){var w=_.jL(S),A=ZY(!C);try{if(C)qjW(C,H.children(),!0);else if(C=eI(H.children()),!(C instanceof Element))throw Error("pd");}finally{ZY(A),_.jL(w)}});
return C};
_.PKE=function(H,C){var S;C=$1(function(){var w=ZY(!0);GR++;try{S=bE(H()),lW(!1)}catch(A){throw lW(!0),A;}finally{ZY(w)}},C===void 0?!1:C);
return[S,C]};
pQ7=function(H){var C=new $N7;C.abort(H);return C.signal};
k_V=function(){if(this.aborted){var H;throw(H=this.reason)!=null?H:new DOMException("signal is aborted without reason","AbortError");}};
rhp=function(H){var C=new $N7;H=_.Z(H);for(var S=H.next();!S.done;S=H.next())if(S=S.value,S.aborted){C.abort(S.reason);break}else hMD.set(C.signal,C),nQ$.add(S,C.signal);return C.signal};
B$i=function(){for(var H=_.Z(nQ$.get(this)),C=H.next();!C.done;C=H.next())hMD.get(C.value).abort(this.reason)};
DNw=function(H){var C=new $N7;setTimeout(function(){C.abort(new DOMException("signal timed out","TimeoutError"))},H);
return C.signal};
tA0=function(H){H=H.buf.charCodeAt(H.pos++);return KR0[H]};
Yf=function(H){var C=0,S=0;do{var w=tA0(H);C|=(w&31)<<S;S+=5}while(w&32);return C<0?C+4294967296:C};
gQ$=function(){var H=!0;H=H===void 0?!1:H;var C=C===void 0?!1:C;var S=S===void 0?{}:S;var w=S.cssRowKey||"",A=S.combinedSignature||"";!w&&window&&window._F_cssRowKey&&(w=window._F_cssRowKey,!A&&window._F_combinedSignature&&(A=window._F_combinedSignature));if(w&&typeof window._F_installCss!=="function")throw Error("zd");var J=S.loaderClass||_.zq,c=LQE("base-js");H=new J(yYw(Uzi("",c)),w,A,H,C);C=S.useCors||c&&c.hasAttribute("crossorigin");c=S.corsMode||c&&c.getAttribute("crossorigin");C&&(H.useCors_=
C);c&&(H.corsMode_=c);S.urlMaxLength&&(H.urlMaxLength=S.urlMaxLength);S.fetchPriority&&(H.fetchPriority=S.fetchPriority);var Y=kJ();Y.JSC$10067_loader_=H;Y.setBatchModeEnabled(!0);_.LRE=function(M){return Promise.resolve(Y.load(M))}};
IBD=function(H,C,S){UNW(H,C);H[C][RM6].unshift(S)};
UNW=function(H,C){if(!H[C]||!H[C][RM6]){var S=H[C],w=S?[S]:[];H[C]=function(){for(var A=_.Z(w),J=A.next();!J.done;J=A.next())J.value.apply(this,arguments)};
H[C][RM6]=w}};
aBE=function(H){if(!H)return[];var C=[];H=_.Z(H);for(var S=H.next();!S.done;S=H.next())S=S.value,Array.isArray(S)?C.push.apply(C,_.k$(aBE(S))):C.push(S);return C};
_.q_=function(H,C){if(H&&xNU.test(H)||H==="//")return H;if(Hdi===void 0){Hdi=!1;try{var S=new URL("b","http://a");S.pathname="c%20d";Hdi=S.href==="http://a/c%20d"}catch(w){}}C||(C=document.baseURI||window.location.href);if(Hdi)try{return(new URL(H,C)).href}catch(w){return H}M_||(M_=document.implementation.createHTMLDocument("temp"),M_.base=M_.createElement("base"),M_.head.appendChild(M_.base),M_.anchor=M_.createElement("a"),M_.body.appendChild(M_.anchor));M_.base.href=C;M_.anchor.href=H;return M_.anchor.href||
H};
CzZ=function(H,C){return H.replace(idU,function(S,w,A,J){return w+"'"+_.q_(A.replace(/["']/g,""),C)+"'"+J})};
S6Z=function(H){return H.substring(0,H.lastIndexOf("/")+1)};
wfE=function(){shZ=!1;for(var H=Tq.length,C=0;C<H;C++){var S=Tq[C];if(S)try{S()}catch(w){setTimeout(function(){throw w;})}}Tq.splice(0,H);
jhp+=H};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(H){console.log("["+H.is+"]: registered")};
JNi=function(H){AN0.push(H)};
mr=function(H){return Fxw[H]||(Fxw[H]=H.indexOf("-")<0?H:H.replace(Zdu,function(C){return C[1].toUpperCase()}))};
W5=function(H){return Fxw[H]||(Fxw[H]=H.replace(cN6,"-$1").toLowerCase())};
Y6E=function(H,C){var S=C.parentInfo&&Y6E(H,C.parentInfo);if(S)for(H=S.firstChild,S=0;H;H=H.nextSibling){if(C.parentIndex===S++)return H}else return H};
z8E=function(H,C){H=H._methodHost||H;return function(S){if(H[C])H[C](S,S.detail);else console.warn("listener method `"+C+"` not defined")}};
yF=function(H){return H.indexOf(".")>=0};
N_=function(H){var C=H.indexOf(".");return C===-1?H:H.slice(0,C)};
M96=function(H,C){return H.indexOf(C+".")===0};
by=function(H,C){return C.indexOf(H+".")===0};
EW=function(H,C,S){return C+S.slice(H.length)};
q6i=function(H,C){return H===C||M96(H,C)||by(H,C)};
ea=function(H){if(Array.isArray(H)){for(var C=[],S=0;S<H.length;S++)for(var w=H[S].toString().split("."),A=0;A<w.length;A++)C.push(w[A]);return C.join(".")}return H};
TRU=function(H){return Array.isArray(H)?ea(H).split("."):H.toString().split(".")};
uy=function(H,C,S){C=TRU(C);for(var w=0;w<C.length;w++){if(!H)return;H=H[C[w]]}S&&(S.path=C.join("."));return H};
mI6=function(H,C,S){var w=TRU(C),A=w[w.length-1];if(w.length>1){for(C=0;C<w.length-1;C++)if(H=H[w[C]],!H)return;H[A]=S}else H[C]=S;return w.join(".")};
WxW=function(H,C,S){var w=H[C];if(!w)w=H[C]={};else if(!H.hasOwnProperty(C)&&(w=H[C]=Object.create(H[C]),S))for(var A in w)for(H=w[A],C=w[A]=Array(H.length),S=0;S<H.length;S++)C[S]=H[S];return w};
fm=function(H,C,S,w,A,J){if(C){var c=!1,Y=Gq++,M;for(M in S){var m=A?N_(M):M;if(m=C[m])for(var W=0,y=m.length,N=void 0;W<y&&(N=m[W]);W++)N.info&&N.info.lastRun===Y||A&&!yNZ(M,N.trigger)||(N.info&&(N.info.lastRun=Y),N.fn(H,M,S,w,N.info,A,J),c=!0)}return c}return!1};
yNZ=function(H,C){if(C){var S=C.name;return S==H||!(!C.structured||!M96(S,H))||!(!C.wildcard||!by(S,H))}return!0};
NRw=function(H,C,S,w,A){C=typeof A.method==="string"?H[A.method]:A.method;S=A.property;C?C.call(H,H.__data[S],w[S]):A.dynamicFn||console.warn("observer method `"+A.method+"` not defined")};
bd7=function(H,C,S,w){S={value:S,queueProperty:!0};w&&(S.path=w);(0,_.v5)(H).dispatchEvent(new CustomEvent(C,{detail:S}))};
ECi=function(H,C,S,w,A,J){J=(w=(J?N_(C):C)!=C?C:null)?uy(H,w):H.__data[C];w&&J===void 0&&(J=S[C]);bd7(H,A.eventName,J,w)};
e8$=function(H,C,S,w,A){S=H.__data[C];ly&&(S=ly(S,A.attrName,"attribute",H));H._propertyToAttribute(C,A.attrName,S)};
GXZ=function(H){var C=H.constructor.__orderedComputedDeps;if(!C){C=new Map;for(var S=H.__computeEffects,w=unZ(H),A=w.counts,J=w.ready,c=w.total;w=J.shift();)C.set(w,C.size),(w=S[w])&&w.forEach(function(Y){Y=Y.info.methodInfo;--c;--A[Y]===0&&J.push(Y)});
c!==0&&console.warn("Computed graph for "+H.localName+" incomplete; circular?");H.constructor.__orderedComputedDeps=C}return C};
unZ=function(H){var C=H.__computeInfo,S={};H=H.__computeEffects;var w=[],A=0,J;for(J in C){var c=C[J];A+=S[J]=c.args.filter(function(M){return!M.literal}).length+(c.dynamicFn?1:0)}for(var Y in H)C[Y]||w.push(Y);
return{counts:S,ready:w,total:A}};
vCE=function(H,C,S,w,A){C=ffZ(H,C,S,w,A);if(C===VF)return!1;A=A.methodInfo;if(H.__dataHasAccessor&&H.__dataHasAccessor[A])return H._setPendingProperty(A,C,!0);H[A]=C;return!1};
oCE=function(H,C,S,w,A,J,c){S.bindings=S.bindings||[];w={kind:w,target:A,parts:J,literal:c,isCompound:J.length!==1};S.bindings.push(w);w.target&&w.kind!="attribute"&&w.kind!="text"&&!w.isCompound&&w.parts[0].mode==="{"&&(S=w.parts[0],J=S.negate,w.listenerEvent=S.event||W5(A)+"-changed",w.listenerNegate=J);A=C.nodeInfoList.length;for(S=0;S<w.parts.length;S++){var Y=w.parts[S];Y.compoundIndex=S;J=H;c=C;var M=w,m=Y,W=A;if(!m.literal)if(M.kind==="attribute"&&M.target[0]==="-")console.warn("Cannot set attribute "+
M.target+' because "-" is not a valid attribute starting character');else for(Y=m.dependencies,M={index:W,binding:M,part:m,evaluator:J},m=0;m<Y.length;m++)W=Y[m],typeof W=="string"&&(W=lfE(W),W.wildcard=!0),J._addTemplatePropertyEffect(c,W.rootProperty,{fn:V9V,info:M,trigger:W})}};
V9V=function(H,C,S,w,A,J,c){c=c[A.index];var Y=A.binding,M=A.part;J&&M.source&&C.length>M.source.length&&Y.kind=="property"&&!Y.isCompound&&c.__isPropertyEffectsClient&&c.__dataHasAccessor&&c.__dataHasAccessor[Y.target]?(S=S[C],C=EW(M.source,Y.target,C),c._setPendingPropertyOrPath(C,S,!1,!0)&&H._enqueueClient(c)):(C=A.evaluator._evaluateBinding(H,M,C,S,w,J),C!==VF&&(Y.isCompound&&(S=c.__dataCompoundStorage[Y.target],S[M.compoundIndex]=C,C=S.join("")),Y.kind==="attribute"||Y.target!=="textContent"&&
(Y.target!=="value"||c.localName!=="input"&&c.localName!=="textarea")||(C=C==void 0?"":C),M=C,ly&&(M=ly(M,Y.target,Y.kind,c)),Y.kind=="attribute"?H._valueToNodeAttribute(c,M,Y.target):(Y=Y.target,c.__isPropertyEffectsClient&&c.__dataHasAccessor&&c.__dataHasAccessor[Y]?c.__readOnly&&c.__readOnly[Y]||c._setPendingProperty(Y,M)&&H._enqueueClient(c):H._setUnmanagedPropertyToNode(c,Y,M))))};
Odw=function(H,C,S){if(S.listenerEvent){var w=S.parts[0];H.addEventListener(S.listenerEvent,function(A){var J=S.target,c=w.source,Y=w.negate,M=A.detail,m=M&&M.path;m?(c=EW(J,c,m),A=M&&M.value):A=A.currentTarget[J];C.__readOnly&&C.__readOnly[c]||!C._setPendingPropertyOrPath(c,Y?!A:A,!0,!!m)||M&&M.queueProperty||C._invalidateProperties()})}};
XfE=function(H,C,S,w,A,J){J=C.static||J&&(typeof J!=="object"||J[C.methodName]);A={methodName:C.methodName,args:C.args,methodInfo:A,dynamicFn:J};for(var c=0,Y=void 0;c<C.args.length&&(Y=C.args[c]);c++)Y.literal||H._addPropertyEffect(Y.rootProperty,S,{fn:w,info:A,trigger:Y});J&&H._addPropertyEffect(C.methodName,S,{fn:w,info:A});return A};
ffZ=function(H,C,S,w,A){w=H._methodHost||H;var J=w[A.methodName];if(J)return H=H._marshalArgs(A.args,C,S),H===VF?VF:J.apply(w,H);A.dynamicFn||console.warn("method `"+A.methodName+"` not defined")};
Qh$=function(H){for(var C="",S=0;S<H.length;S++)C+=H[S].literal||"";return C};
$Ip=function(H){if(H=H.match(/([^\s]+?)\(([\s\S]*)\)/)){var C={methodName:H[1],static:!0,args:dIi};return H[2].trim()?PzE(H[2].replace(/\\,/g,"&comma;").split(","),C):C}return null};
PzE=function(H,C){C.args=H.map(function(S){S=lfE(S);S.literal||(C.static=!1);return S},this);
return C};
lfE=function(H){H=H.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var C={name:H,value:"",literal:!1},S=H[0];S==="-"&&(S=H[1]);S>="0"&&S<="9"&&(S="#");switch(S){case "'":case '"':C.value=H.slice(1,-1);C.literal=!0;break;case "#":C.value=Number(H),C.literal=!0}C.literal||(C.rootProperty=N_(H),C.structured=yF(H),C.structured&&(C.wildcard=H.slice(-2)==".*",C.wildcard&&(C.name=H.slice(0,-2))));return C};
pf0=function(H,C,S){H=uy(H,S);H===void 0&&(H=C[S]);return H};
kXZ=function(H,C,S,w){w={indexSplices:w};oq&&!H._overrideLegacyUndefined&&(C.splices=w);H.notifyPath(S+".splices",w);H.notifyPath(S+".length",C.length);oq&&!H._overrideLegacyUndefined&&(w.indexSplices=[])};
OW=function(H,C,S,w,A,J){kXZ(H,C,S,[{index:w,addedCount:A,removed:J,object:C,type:"splice"}])};
h8p=function(H){H=CzZ((H.body?H.body:H).textContent,H.baseURI);var C=document.createElement("style");C.textContent=H;return C};
rNi=function(H){H=H.trim().split(/\s+/);for(var C=[],S=0;S<H.length;S++)C.push.apply(C,_.k$(nC$(H[S])));return C};
nC$=function(H){var C=Xy.import(H);if(!C)return console.warn("Could not find style data in module named",H),[];if(C._styles===void 0){H=[];H.push.apply(H,_.k$(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(C)));var S=C.querySelector("template");S&&H.push.apply(H,_.k$(BRD(S,C.assetpath)));C._styles=H}return C._styles};
BRD=function(H,C){if(!H._styles){for(var S=[],w=H.content.querySelectorAll("style"),A=0;A<w.length;A++){var J=w[A],c=J.getAttribute("include");c&&S.push.apply(S,_.k$(rNi(c).filter(function(Y,M,m){return m.indexOf(Y)===M})));
C&&(J.textContent=CzZ(J.textContent,C));S.push(J)}H._styles=S}return H._styles};
DIw=function(H){return(H=Xy.import(H))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(H):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(H){var C=[];H=H.querySelectorAll("link[rel=import][type~=css]");for(var S=0;S<H.length;S++){var w=H[S];if(w.import){var A=w.import;if((w=w.hasAttribute("shady-unscoped"))&&!A._unscopedStyle){var J=h8p(A);J.setAttribute("shady-unscoped","");A._unscopedStyle=J}else A._style||(A._style=h8p(A));C.push(w?A._unscopedStyle:A._style)}}return C};
t9W=function(H){H=H.trim().split(/\s+/);for(var C="",S=0;S<H.length;S++)C+=KxZ(H[S]);return C};
KxZ=function(H){var C=Xy.import(H);if(C&&C._cssText===void 0){var S=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(C),w=C.querySelector("template");w&&(S+=LxD(w,C.assetpath));C._cssText=S||null}C||console.warn("Could not find style data in module named",H);return C&&C._cssText||""};
LxD=function(H,C){var S="";H=BRD(H,C);for(C=0;C<H.length;C++){var w=H[C];w.parentNode&&w.parentNode.removeChild(w);S+=w.textContent}return S};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(H){var C="";H=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(H);for(var S=0;S<H.length;S++)C+=H[S].textContent;return C};
QF=function(H,C){return{index:H,removed:[],addedCount:C}};
UIZ=function(H,C,S,w){var A=0,J=0,c=0,Y=0,M=Math.min(C-A,w-J);if(A==0&&J==0)a:{for(c=0;c<M;c++)if(H[c]!==S[c])break a;c=M}if(C==H.length&&w==S.length){Y=H.length;for(var m=S.length,W=0;W<M-c&&gCV(H[--Y],S[--m]);)W++;Y=W}A+=c;J+=c;C-=Y;w-=Y;if(C-A==0&&w-J==0)return[];if(A==C){for(C=QF(A,0);J<w;)C.removed.push(S[J++]);return[C]}if(J==w)return[QF(A,C-A)];M=A;c=J;w=w-c+1;Y=C-M+1;C=Array(w);for(m=0;m<w;m++)C[m]=Array(Y),C[m][0]=m;for(m=0;m<Y;m++)C[0][m]=m;for(m=1;m<w;m++)for(W=1;W<Y;W++)if(H[M+W-1]===
S[c+m-1])C[m][W]=C[m-1][W-1];else{var y=C[m-1][W]+1,N=C[m][W-1]+1;C[m][W]=y<N?y:N}M=C.length-1;c=C[0].length-1;w=C[M][c];for(H=[];M>0||c>0;)M==0?(H.push(2),c--):c==0?(H.push(3),M--):(Y=C[M-1][c-1],m=C[M-1][c],W=C[M][c-1],y=m<W?m<Y?m:Y:W<Y?W:Y,y==Y?(Y==w?H.push(0):(H.push(1),w=Y),M--,c--):y==m?(H.push(3),M--,w=m):(H.push(2),c--,w=W));H.reverse();C=void 0;M=[];for(c=0;c<H.length;c++)switch(H[c]){case 0:C&&(M.push(C),C=void 0);A++;J++;break;case 1:C||(C=QF(A,0));C.addedCount++;A++;C.removed.push(S[J]);
J++;break;case 2:C||(C=QF(A,0));C.addedCount++;A++;break;case 3:C||(C=QF(A,0)),C.removed.push(S[J]),J++}C&&M.push(C);return M};
R80=function(H,C){return UIZ(H,H.length,C,C.length)};
gCV=function(H,C){return H===C};
afU=function(H){if(H instanceof IfZ)return H.value;throw Error("Hd`"+H);};
xIZ=function(H,C){for(var S in C)S===null?H.style.removeProperty(S):H.style.setProperty(S,C[S])};
H5i=function(H,C){return(H=window.getComputedStyle(H).getPropertyValue(C))?H.trim():""};
ss0=function(H){requestAnimationFrame(function(){i5W?i5W(H):(CP$||(CP$=new Promise(function(C){Sbw=C}),document.readyState==="complete"?Sbw():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Sbw()})),CP$.then(function(){H&&H()}))})};
ACZ=function(H){jsZ=H&&H.shimcssproperties?!1:wui||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
YbE=function(H){if(!(JCW.indexOf(H)>-1)&&H!=="touchend"&&FU7&&Z50&&cCE)return{passive:!0}};
TO$=function(H){for(var C=z6$?["click"]:JCW,S=0,w;S<C.length;S++)w=C[S],H?(MC6.length=0,document.addEventListener(w,qb0,!0)):document.removeEventListener(w,qb0,!0)};
dd=function(H){var C=H.type;return JCW.indexOf(C)>-1?C==="mousemove"?(C=H.buttons===void 0?1:H.buttons,H instanceof window.MouseEvent&&!myp&&(C=WUZ[H.which]||0),!!(C&1)):(H.button===void 0?0:H.button)===0:!1};
yCW=function(H){if(H.type==="click"){if(H.detail===0)return!0;var C=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H);if(!C.nodeType||C.nodeType!==Node.ELEMENT_NODE)return!0;C=C.getBoundingClientRect();var S=H.pageX;H=H.pageY;return!(S>=C.left&&S<=C.right&&H>=C.top&&H<=C.bottom)}return!1};
NOE=function(H,C,S){H.movefn=C;H.upfn=S;document.addEventListener("mousemove",C);document.addEventListener("mouseup",S)};
$f=function(H){document.removeEventListener("mousemove",H.movefn);document.removeEventListener("mouseup",H.upfn);H.movefn=null;H.upfn=null};
b5U=function(H,C){for(var S=document.elementFromPoint(H,C),w=S;w&&w.shadowRoot&&!window.ShadyDOM;){var A=w;w=w.shadowRoot.elementFromPoint(H,C);if(A===w)break;w&&(S=w)}return S};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(H){var C=Ev0(H);return C.length>0?C[0]:H.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(H){var C=H.type,S=H.currentTarget.__polymerGestures;if(S&&(S=S[C])){if(!H.__polymerGesturesHandled&&(H.__polymerGesturesHandled={},C.slice(0,5)==="touch")){var w=H.changedTouches[0];C==="touchstart"&&H.touches.length===1&&(e6D=w.identifier);if(e6D!==w.identifier)return;FU7||(C==="touchstart"||C==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H)}w=
H.__polymerGesturesHandled;if(!w.skip){for(var A=0,J;A<pm.length;A++)J=pm[A],S[J.name]&&!w[J.name]&&J.flow&&J.flow.start.indexOf(H.type)>-1&&J.reset&&J.reset();for(A=0;A<pm.length;A++)J=pm[A],S[J.name]&&!w[J.name]&&(w[J.name]=!0,J[C](H))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(H){var C=H.changedTouches[0],S=H.type;if(S==="touchstart")uFE=C.clientX,GtD=C.clientY,fhZ=!1;else if(S==="touchmove"&&!fhZ){fhZ=!0;S="auto";for(var w=Ev0(H),A=0,J;A<w.length;A++)if(J=w[A],J.__polymerGesturesTouchAction){S=J.__polymerGesturesTouchAction;break}w=!1;A=Math.abs(uFE-C.clientX);C=Math.abs(GtD-C.clientY);H.cancelable&&(S==="none"?w=!0:S==="pan-x"?w=C>A:S==="pan-y"&&(w=A>C));w?H.preventDefault():
kf("track")}};
nm=function(H,C,S){return hP[C]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H,C,S),!0):!1};
rd=function(H,C,S){return hP[C]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H,C,S),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(H,C,S){var w=hP[C],A=w.deps,J=w.name,c=H.__polymerGestures;c||(H.__polymerGestures=c={});for(var Y=0,M,m;Y<A.length;Y++)M=A[Y],z6$&&JCW.indexOf(M)>-1&&M!=="click"||((m=c[M])||(c[M]=m={_count:0}),m._count===0&&H.addEventListener(M,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,YbE(M)),m[J]=(m[J]||0)+1,m._count=(m._count||0)+1);H.addEventListener(C,S);w.touchAction&&_.B5(H,w.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(H,C,S){var w=hP[C],A=w.deps;w=w.name;var J=H.__polymerGestures;if(J)for(var c=0,Y,M;c<A.length;c++)Y=A[c],(M=J[Y])&&M[w]&&(M[w]=(M[w]||1)-1,M._count=(M._count||1)-1,M._count===0&&H.removeEventListener(Y,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,YbE(Y)));H.removeEventListener(C,S)};
vvV=function(H){pm.push(H);for(var C=0;C<H.emits.length;C++)hP[H.emits[C]]=H};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(H){for(var C=0,S;C<pm.length;C++){S=pm[C];for(var w=0,A;w<S.emits.length;w++)if(A=S.emits[w],A===H)return S}return null};
_.B5=function(H,C){FU7&&H instanceof HTMLElement&&tP.run(function(){H.style.touchAction=C});
H.__polymerGesturesTouchAction=C};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(H,C,S){C=new Event(C,{bubbles:!0,cancelable:!0,composed:!0});C.detail=S;(0,_.v5)(H).dispatchEvent(C);C.defaultPrevented&&(H=S.preventer||S.sourceEvent)&&H.preventDefault&&H.preventDefault()};
kf=function(H){H=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H);H.info&&(H.info.prevent=!0)};
Lm=function(H,C,S,w){C&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(C,H,{x:S.clientX,y:S.clientY,sourceEvent:S,preventer:w,prevent:function(A){return kf(A)}})};
lhu=function(H,C,S){if(H.prevent)return!1;if(H.started)return!0;S=Math.abs(H.y-S);return Math.abs(H.x-C)>=5||S>=5};
VCE=function(H,C,S){if(C){var w=H.moves[H.moves.length-2],A=H.moves[H.moves.length-1],J=A.x-H.x,c=A.y-H.y,Y=0;if(w){var M=A.x-w.x;Y=A.y-w.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(C,"track",{state:H.state,x:S.clientX,y:S.clientY,dx:J,dy:c,ddx:M,ddy:Y,sourceEvent:S,hover:function(){return b5U(S.clientX,S.clientY)}})}};
O5U=function(H,C,S){var w=Math.abs(C.clientX-H.x),A=Math.abs(C.clientY-H.y),J=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(S||C);!J||ovU[J.localName]&&J.hasAttribute("disabled")||!(isNaN(w)||isNaN(A)||w<=25&&A<=25||yCW(C))||H.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(J,"tap",{x:C.clientX,y:C.clientY,sourceEvent:C,preventer:S})};
Xu7=function(H,C,S,w,A){var J;A&&(J=typeof S==="object"&&S!==null)&&(w=H.__dataTemp[C]);w=w!==S&&(w===w||S===S);J&&w&&(H.__dataTemp[C]=S);return w};
dyD=function(){if(gd&&!UW){if(!QsE){QsE=!0;var H=document.createElement("style");H.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(H)}return!0}return!1};
$yE=function(){return PPw};
pu7=function(H,C){PPw=H;Object.setPrototypeOf(H,C.prototype);new C;PPw=null};
ktZ=function(H,C){for(var S=0;S<C.length;S++){var w=C[S];if(!!H!=!!w.__hideTemplateChildren__)if(w.nodeType===Node.TEXT_NODE)H?(w.__polymerTextContent__=w.textContent,w.textContent=""):w.textContent=w.__polymerTextContent__;else if(w.localName==="slot")if(H)w.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.v5)((0,_.v5)(w).parentNode).replaceChild(w.__polymerReplaced__,w);else{var A=w.__polymerReplaced__;A&&(0,_.v5)((0,_.v5)(A).parentNode).replaceChild(w,A)}else w.style&&(H?(w.__polymerDisplay__=
w.style.display,w.style.display="none"):w.style.display=w.__polymerDisplay__);w.__hideTemplateChildren__=H;w._showHideChildren&&w._showHideChildren(H)}};
h6i=function(H){return(H=H.__dataHost)&&H._methodHost||H};
BOu=function(H,C,S){var w=S.mutableData?nvE:Rq;Iq.mixin&&(w=Iq.mixin(w));var A=function(){return w.apply(this,arguments)||this};
_.G(A,w);A.prototype.__templatizeOptions=S;A.prototype._bindTemplate(H);rCE(A,H,C,S);return A};
gv$=function(H,C,S,w){var A=S.forwardHostProp;if(A&&C.hasHostProps){var J=H.localName=="template",c=C.templatizeTemplateClass;if(!c){if(J){var Y=S.mutableData?DyV:KU0;c=function(){return Y.apply(this,arguments)||this};
_.G(c,Y);c=C.templatizeTemplateClass=c}else{var M=H.constructor;c=function(){return M.apply(this,arguments)||this};
_.G(c,M);c=C.templatizeTemplateClass=c}var m=C.hostProps,W;for(W in m)c.prototype._addPropertyEffect("_host_"+W,c.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:tCW(A)}),c.prototype._createNotifyingProperty("_host_"+W);aq&&w&&LUu(C,S,w)}H.__dataProto&&Object.assign(H.__data,H.__dataProto);if(J)pu7(H,c),H.__dataTemp={},H.__dataPending=null,H.__dataOld=null,H._enableProperties();else{Object.setPrototypeOf(H,c.prototype);C=C.hostProps;for(var y in C)y="_host_"+y,y in H&&(C=H[y],delete H[y],H.__data[y]=
C)}}};
tCW=function(H){return function(C,S,w){H.call(C.__templatizeOwner,S.substring(6),w[S])}};
rCE=function(H,C,S,w){var A=S.hostProps||{},J;for(J in w.instanceProps){delete A[J];var c=w.notifyInstanceProp;c&&H.prototype._addPropertyEffect(J,H.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Uy6(c)})}if(w.forwardHostProp&&C.__dataHost)for(var Y in A)S.hasHostProps||(S.hasHostProps=!0),H.prototype._addPropertyEffect(Y,H.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:R6i()})};
Uy6=function(H){return function(C,S,w){H.call(C.__templatizeOwner,C,S,w[S])}};
R6i=function(){return function(H,C,S){H.__dataHost._setPendingPropertyOrPath("_host_"+C,S[C],!0,!0)}};
Iq=function(H,C,S){if(xf&&!h6i(H))throw Error("Nd");S=S||{};if(H.__templatizeOwner)throw Error("Od");H.__templatizeOwner=C;var w=(C?C.constructor:Rq)._parseTemplate(H),A=w.templatizeInstanceClass;A||(A=BOu(H,w,S),w.templatizeInstanceClass=A);var J=h6i(H);gv$(H,w,S,J);S=function(){return A.apply(this,arguments)||this};
_.G(S,A);S.prototype._methodHost=J;S.prototype.__dataHost=H;S.prototype.__templatizeOwner=C;S.prototype.__hostProps=w.hostProps;return S};
LUu=function(H,C,S){S=S.constructor._properties;H=H.propertyEffects;C=C.instanceProps;for(var w in H)if(!(S[w]||C&&C[w]))for(var A=H[w],J=0;J<A.length;J++){var c=A[J].info.part;if(!c.signature||!c.signature.static){console.warn("Property '"+w+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
IhE=function(H,C){for(var S;C;)if(S=C.__dataHost?C:C.__templatizeInstance)if(S.__dataHost!=H)C=S.__dataHost;else return S;else C=(0,_.v5)(C).parentNode;return null};
HM=function(H){return H.localName==="slot"};
ahE=function(){for(var H=is.prototype,C="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),S={},w=0;w<C.length;S={method$jscomp$33:void 0},w++)S.method$jscomp$33=C[w],H[S.method$jscomp$33]=function(A){return function(){return this.node[A.method$jscomp$33].apply(this.node,arguments)}}(S)};
xy0=function(H,C){for(var S={},w=0;w<C.length;S={name$jscomp$448:void 0},w++)S.name$jscomp$448=C[w],Object.defineProperty(H,S.name$jscomp$448,{get:function(A){return function(){return this.node[A.name$jscomp$448]}}(S),
configurable:!0})};
Hi$=function(){for(var H=is.prototype,C=["textContent","innerHTML","className"],S={},w=0;w<C.length;S={name$jscomp$449:void 0},w++)S.name$jscomp$449=C[w],Object.defineProperty(H,S.name$jscomp$449,{get:function(A){return function(){return this.node[A.name$jscomp$449]}}(S),
set:function(A){return function(J){this.node[A.name$jscomp$449]=J}}(S),
configurable:!0})};
iii=function(){CD=document.documentElement.getAttribute("dir");CD=document.documentElement.getAttribute("dir");for(var H=0;H<Sj.length;H++){var C=Sj[H];C.__autoDirOptOut||C.setAttribute("dir",CD)}};
joV=function(){sk=!0;requestAnimationFrame(function(){sk=!1;C7p(SvZ);setTimeout(function(){for(var H=0,C=jj.length;H<C;H++)so6(jj.shift())})})};
C7p=function(H){for(;H.length;)so6(H.shift())};
so6=function(H){var C=H[0],S=H[1];H=H[2];try{S.apply(C,H)}catch(w){setTimeout(function(){throw w;})}};
_.w80=function(H,C,S){sk||joV();SvZ.push([H,C,S])};
_.wM=function(H,C,S){sk||joV();jj.push([H,C,S])};
FJ$=function(H,C){C=C===void 0?!1:C;if(!AlZ||!Jl0||!AlZ.handlesDynamicScoping)return null;var S=Jl0.ScopingShim;if(!S)return null;var w=S.scopeForNode(H),A=(0,_.v5)(H).getRootNode(),J=function(c){if((0,_.v5)(c).getRootNode()===A){var Y=Array.from(AlZ.nativeMethods.querySelectorAll.call(c,"*"));Y.push(c);for(c=0;c<Y.length;c++){var M=Y[c];if((0,_.v5)(M).getRootNode()===A){var m=S.currentScopeForNode(M);m!==w&&(m!==""&&S.unscopeNode(M,m),S.scopeNode(M,w))}}}};
J(H);return C?(C=new MutationObserver(function(c){for(var Y=0;Y<c.length;Y++)for(var M=c[Y],m=0;m<M.addedNodes.length;m++){var W=M.addedNodes[m];W.nodeType===Node.ELEMENT_NODE&&J(W)}}),C.observe(H,{childList:!0,
subtree:!0}),C):null};
Zii=function(){document.body.removeAttribute("unresolved")};
qv0=function(H){var C=H=H.replace(cl7,"").replace(YvU,""),S=new z5E;S.start=0;S.end=C.length;for(var w=S,A=0,J=C.length;A<J;A++)if(C[A]==="{"){w.rules||(w.rules=[]);var c=w,Y=c.rules[c.rules.length-1]||null;w=new z5E;w.start=A+1;w.parent=c;w.previous=Y;c.rules.push(w)}else C[A]==="}"&&(w.end=A+1,w=w.parent||S);return MMu(S,H)};
MMu=function(H,C){var S=C.substring(H.start,H.end-1);H.parsedCssText=H.cssText=S.trim();H.parent&&(S=C.substring(H.previous?H.previous.end:H.parent.start,H.start-1),S=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(S),S=S.replace(T1Z," "),S=S.substring(S.lastIndexOf(";")+1),S=H.parsedSelector=H.selector=S.trim(),H.atRule=S.indexOf("@")===0,H.atRule?S.indexOf("@media")===0?H.type=4:S.match(meZ)&&(H.type=7,H.keyframesName=H.selector.split(T1Z).pop()):S.indexOf("--")===
0?H.type=1E3:H.type=1);if(S=H.rules)for(var w=0,A=S.length,J=void 0;w<A&&(J=S[w]);w++)MMu(J,C);return H};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(H){return H.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var C=arguments[1],S=6-C.length;S--;)C="0"+C;return"\\"+C})};
WJE=function(H,C,S){S=S===void 0?"":S;var w="";if(H.cssText||H.rules){var A=H.rules;if(A&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(A))for(var J=0,c=A.length,Y=void 0;J<c&&(Y=A[J]);J++)w=WJE(Y,C,w);else C?C=H.cssText:(C=H.cssText,C=C.replace(ylV,"").replace(N16,""),C=C.replace(biZ,"").replace(ES7,"")),(w=C.trim())&&(w="  "+w+"\n")}w&&(H.selector&&(S+=H.selector+" {\n"),S+=w,H.selector&&(S+="}\n\n"));return S};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(H){H=H[0];return!!H&&!!H.selector&&H.selector.indexOf("--")===0};
ui7=function(H){if(H=e50[H])H._applyShimCurrentVersion=H._applyShimCurrentVersion||0,H._applyShimValidatingVersion=H._applyShimValidatingVersion||0,H._applyShimNextVersion=(H._applyShimNextVersion||0)+1};
GlU=function(H){return H._applyShimCurrentVersion===H._applyShimNextVersion};
vSU=function(H){H._applyShimValidatingVersion=H._applyShimNextVersion;H._validating||(H._validating=!0,fs$.then(function(){H._applyShimCurrentVersion=H._applyShimNextVersion;H._validating=!1}))};
VMi=function(H){if(!H)return"";typeof H==="string"&&(H=qv0(H));return WJE(H,lsU)};
oSW=function(H){!H.__cssRules&&H.textContent&&(H.__cssRules=qv0(H.textContent));return H.__cssRules||null};
X8E=function(H,C,S,w){if(H){var A=!1,J=H.type;if(w&&J===4){var c=H.selector.match(Oii);c&&(window.matchMedia(c[1]).matches||(A=!0))}J===1?C(H):S&&J===7?S(H):J===1E3&&(A=!0);if((H=H.rules)&&!A)for(A=0,J=H.length,c=void 0;A<J&&(c=H[A]);A++)X8E(c,C,S,w)}};
Qop=function(H,C){var S=H.indexOf("var(");if(S===-1)return C(H,"","","");a:{var w=0;var A=S+3;for(var J=H.length;A<J;A++)if(H[A]==="(")w++;else if(H[A]===")"&&--w===0)break a;A=-1}w=H.substring(S+4,A);S=H.substring(0,S);H=Qop(H.substring(A+1),C);J=w.indexOf(",");if(J===-1)return C(S,w.trim(),"",H);A=w.substring(0,J).trim();w=w.substring(J+1).trim();return C(S,A,w,H)};
dei=function(H){if(AJ!==void 0)return AJ;if(H.__cssBuild===void 0){var C=H.getAttribute("css-build");if(C)H.__cssBuild=C;else{a:{C=H.localName==="template"?H.content.firstChild:H.firstChild;if(C instanceof Comment&&(C=C.textContent.trim().split(":"),C[0]==="css-build")){C=C[1];break a}C=""}if(C!==""){var S=H.localName==="template"?H.content.firstChild:H.firstChild;S.parentNode.removeChild(S)}H.__cssBuild=C}}return H.__cssBuild||""};
$eZ=function(H,C,S,w){for(var A=C._noAccessors,J=Object.getOwnPropertyNames(C),c=0;c<J.length;c++){var Y=J[c];if(!(Y in w))if(A)H[Y]=C[Y];else{var M=Object.getOwnPropertyDescriptor(C,Y);M&&(M.configurable=!0,Object.defineProperty(H,Y,M))}}for(var m in P7$)C[m]&&(S[m]=S[m]||[],S[m].push(C[m]))};
p8$=function(H,C,S){C=C||[];for(var w=H.length-1;w>=0;w--){var A=H[w];A?Array.isArray(A)?p8$(A,C):C.indexOf(A)<0&&(!S||S.indexOf(A)<0)&&C.unshift(A):console.warn("behavior is null, check for missing or 404 import")}return C};
kl6=function(H,C){for(var S in C){var w=H[S],A=C[S];H[S]=!("value"in A)&&w&&"value"in w?Object.assign({value:w.value},A):A}};
rlE=function(H,C,S){var w={},A=function(){return C.apply(this,arguments)||this};
_.G(A,C);A._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(c)for(var M=0,m;M<c.length;M++)m=c[M],m.properties&&this.createProperties(m.properties),m.observers&&this.createObservers(m.observers,m.properties);H.properties&&this.createProperties(H.properties);H.observers&&this.createObservers(H.observers,H.properties);this._prepareTemplate()}else C._finalizeClass.call(this)};
A.prototype.created=function(){C.prototype.created.call(this);var M=w.created;if(M)for(var m=0;m<M.length;m++)M[m].call(this)};
A.prototype._registered=function(){var M=A.prototype;if(!M.hasOwnProperty("__hasRegisterFinished")){M.__hasRegisterFinished=!0;C.prototype._registered.call(this);gd&&Y(M);M=Object.getPrototypeOf(this);var m=w.beforeRegister;if(m)for(var W=0;W<m.length;W++)m[W].call(M);if(m=w.registered)for(W=0;W<m.length;W++)m[W].call(M)}};
A.prototype._applyListeners=function(){C.prototype._applyListeners.call(this);var M=w.listeners;if(M)for(var m=0;m<M.length;m++){var W=M[m];if(W)for(var y in W)this._addMethodEventListenerToNode(this,y,W[y])}};
A.prototype._ensureAttributes=function(){var M=w.hostAttributes;if(M)for(var m=M.length-1;m>=0;m--){var W=M[m],y;for(y in W)this._ensureAttribute(y,W[y])}C.prototype._ensureAttributes.call(this)};
A.prototype.ready=function(){C.prototype.ready.call(this);var M=w.ready;if(M)for(var m=0;m<M.length;m++)M[m].call(this)};
A.prototype.attached=function(){C.prototype.attached.call(this);var M=w.attached;if(M)for(var m=0;m<M.length;m++)M[m].call(this)};
A.prototype.detached=function(){C.prototype.detached.call(this);var M=w.detached;if(M)for(var m=0;m<M.length;m++)M[m].call(this)};
A.prototype.attributeChanged=function(M,m,W){C.prototype.attributeChanged.call(this);var y=w.attributeChanged;if(y)for(var N=0;N<y.length;N++)y[N].call(this,M,m,W)};
_.JJ.Object.defineProperties(A,{properties:{configurable:!0,enumerable:!0,get:function(){var M={};if(c)for(var m=0;m<c.length;m++)kl6(M,c[m].properties);kl6(M,H.properties);return M}},
observers:{configurable:!0,enumerable:!0,get:function(){var M=[];if(c)for(var m=0,W;m<c.length;m++)W=c[m],W.observers&&(M=M.concat(W.observers));H.observers&&(M=M.concat(H.observers));return M}}});
if(S){Array.isArray(S)||(S=[S]);var J=C.prototype.behaviors;var c=p8$(S,null,J);A.prototype.behaviors=J?J.concat(S):c}var Y=function(M){if(c)for(var m=c,W=0;W<m.length;W++)$eZ(M,m[W],w,h57);$eZ(M,H,w,nSu)};
gd||Y(A.prototype);A.generatedFrom=H;return A};
tMW=function(H){var C=typeof H!=="string"?H:{is:H,notifyObserversOnUndefined:!0};C.fastInit===void 0&&(C.fastInit=!0);return function(S){if(!C.disableInheritanceCheck&&Object.getPrototypeOf(S.prototype).constructor!==_.Fj)throw Error("Sd");var w=S.prototype;w.is=C.is;IBD(w,"created",function(){this.hostElement=this;this.polymerController=this});
B1E(w,S,C.fastInit);C.notifyObserversOnUndefined&&(w._overrideLegacyUndefined=!0);if(De6)for(var A=_.Z(Object.getOwnPropertyNames(w)),J=A.next();!J.done;J=A.next()){J=J.value;var c=Object.getOwnPropertyDescriptor(w,J);c.enumerable===!1&&(c.enumerable=!0,Object.defineProperty(w,J,c))}if("template"in S)var Y=function(){return S.template};
else C.template!==void 0&&(Y=C.template);if(Y!==void 0){var M;Object.defineProperty(w,"_template",{get:function(){M===void 0&&(M=Y());return M},
set:function(m){M=m},
configurable:!0,enumerable:!0})}Polymer(w);S[KJi]=w}};
LJp=function(H){H=H===void 0?{}:H;H.fastInit===void 0&&(H.fastInit=!0);return function(C){if(!H.disableInheritanceCheck&&Object.getPrototypeOf(C.prototype).constructor!==Zg)throw Error("Td");B1E(C.prototype,C,H.fastInit)}};
B1E=function(H,C,S){S=S===void 0?!1:S;gS$(C);S?IBD(H,"created",function(){this.disableEnforceFastDefaultValuesCheck||Ue7(C,this)}):IBD(H,"ready",function(){for(var w={},A=_.Z(aBE(this.behaviors)),J=A.next();!J.done;J=A.next())J=J.value,J.properties&&Object.assign(w,R57(this,J.properties));
Object.assign(w,R57(this,this.properties));Ue7(C,this);A=_.Z(Object.keys(w));for(J=A.next();!J.done;J=A.next())J=J.value,this[J]=w[J]})};
Ue7=function(H,C){if(De6){H=new H;for(var S=_.Z(Object.getOwnPropertyNames(H)),w=S.next();!w.done;w=S.next())w=w.value,C[w]=H[w];for(S=C;S&&S!==Object.prototype;S=Object.getPrototypeOf(S)){w=_.Z(Object.getOwnPropertyNames(S));for(var A=w.next();!A.done;A=w.next())A=A.value,H.hasOwnProperty(A)||Object.defineProperty(H,A,Isu(C,A))}}else H.apply(C)};
Isu=function(H,C){return{get:function(){var S=H[C];return S instanceof Function?S.bind(H):S},
set:function(S){H[C]=S}}};
R57=function(H,C){if(!C)return{};for(var S={},w=_.Z(Object.keys(C)),A=w.next();!A.done;A=w.next())if(A=A.value,!C[A].readOnly){var J=H[A];J!==void 0&&(S[A]=J)}return S};
gS$=function(H){var C=new H;H=H.prototype.properties||{};for(var S=_.Z(Object.keys(H)),w=S.next();!w.done;w=S.next())if(w=w.value,C.hasOwnProperty(w)){var A=H[w];typeof A==="function"&&(H[w]=A={type:A});C[w]!=null&&A.type===Object&&(A.type=asZ(C[w].constructor))}};
asZ=function(H){for(var C=_.Z(xeu),S=C.next();!S.done;S=C.next())if(S=S.value,H===S)return S;return Object};
Hh$=function(H){return function(C,S){C.behaviors=C.behaviors||[];C.behaviors.push(H||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",C,S).prototype:void 0));Object.defineProperty(C,S,{get:function(){return this},
enumerable:!0,configurable:!0})}};
ih0=function(H){H=H===void 0?{}:H;return function(C,S){C.properties=C.properties||{};H.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?H.type=asZ(Reflect.getMetadata("design:type",C,S)):H.type=String);var w=H,A=C.properties[S];C.properties[S]=A?Object.assign({},A,w):w}};
CwZ=function(H){return function(C,S){C.listeners=C.listeners||{};C.listeners[H]=S}};
SwW=function(){var H=_.tc.apply(0,arguments);if(H.length===0)throw Error("Ud");return function(C,S){C.observers=C.observers||[];C.observers.push(S+"("+H.join(",")+")")}};
sYZ=function(){var H=_.tc.apply(0,arguments);return function(C,S,w){var A=Object.getOwnPropertyDescriptor(C,S).get,J="__compute__"+S;Object.defineProperty(C,J,{value:A,enumerable:!0});C.properties=C.properties||{};A=C.properties[S];A||(A={},C.properties[S]=A);A.computed=J+"("+H.join(",")+")";w.get=void 0}};
_.cM=function(H,C,S){_.Op.call(this);this.JSC$11327_id_=null;this.usingListeners_=!1;this.JSC$11327_listener_=H;this.handler_=S;this.JSC$11327_win_=C||window;this.callback_=(0,_.Xv)(this.JSC$11329_doAction_,this)};
Y_=function(H){this.range_=H};
zc=function(H){this.range_=H};
Tc=function(H,C,S){_.Op.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=H;this.scrollTimer_=new _.MQ(50);this.JSC$11406_eventHandler_=new _.qQ(this);this.scrollDelta_=new _.rx;this.containerIsActuallyContent_=H.tagName==="BODY"||H.tagName==="HTML";this.containerBounds_=jYw(H);this.containerIsActuallyContent_&&(H=_.lR(),this.containerBounds_.height=H.height,this.containerBounds_.width=H.width);this.margin_=C||0;if(C){if(C=this.containerBounds_.clone(),H=this.margin_){var w=
Math.min(H,C.height*.25);C.top+=w;C.height-=2*w;H=Math.min(H,C.width*.25);C.left+=H;C.width-=2*H}}else C=this.containerBounds_;this.scrollBounds_=C;S||this.JSC$11406_eventHandler_.listen(_.D9(this.containerNode_),"mousemove",this.JSC$11408_onMouseMove);this.JSC$11406_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11408_onTick_)};
_.mP=function(H){this.mechanism=H};
WM=function(H,C){this.JSC$11504_key_=H;this.JSC$11504_value_=C};
ASi=function(H){if(H>=55296&&H<=57343||H>1114111)return"\ufffd";H in wCV&&(H=wCV[H]);var C="";H>65535&&(H-=65536,C+=String.fromCharCode(H>>>10&1023|55296),H=56320|H&1023);return C+=String.fromCharCode(H)};
JSu=function(H,C){return H<C?1:-1};
ZhU=function(){return function(H){return H.charAt(1)==="#"?H.charAt(2)==="X"||H.charAt(2)==="x"?ASi(parseInt(H.substr(3),16)):ASi(parseInt(H.substr(2),10)):Fap[H.slice(1,-1)]}};
zwp=function(H){return H.slice(1,H.length-1).trim().replace(cSE,function(C){return YwD[C]||" "})};
y8=function(H){return H===32||H===9};
NQ=function(H,C){return C<H.length?H.charCodeAt(C):-1};
MQ$=function(H){for(;H;){if(H._lastLineBlank)return!0;var C=H.type;if(C==="list"||C==="item")H=H._lastChild;else break}return!1};
bs=function(H){if(TL$.test(H)){var C=1,S=0,w=0;for(H[S]=="|"&&S++;S<H.length;){switch(H[S]){case "|":w=1;break;case " ":break;case "\t":break;default:w&&(w=0,C++)}S++}return mRu.test(H)?-C:C}return 0};
Wa$=function(H){return H=="table"||H=="row"||H=="cell"};
ySW=function(){return new Ek("document",[[1,1],[0,0]])};
NLU=function(){};
ej=function(){var H={safe:!1};H=H||{};H.softbreak=H.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=H};
G4E=function(H,C){var S="";if(H)if(H=H.toLowerCase(),H===" "||bhw.test(H))S="space";else if(Ecp.test(H))S="esc";else if(H.length==1){if(!C||ewU.test(H))S=H}else S=uc0.test(H)?H.replace("arrow",""):H=="multiply"?"*":H;return S};
VQZ=function(H,C){var S=H.hasModifiers;if(C.key)S=G4E(C.key,S);else if(C.detail&&C.detail.key)S=G4E(C.detail.key,S);else{S=C.keyIdentifier;var w="";S&&(S in fNE?w=fNE[S]:vcE.test(S)?(S=parseInt(S.replace("U+","0x"),16),w=String.fromCharCode(S).toLowerCase()):w=S.toLowerCase());(S=w)||(S=C.keyCode,w="",Number(S)&&(S>=65&&S<=90?w=String.fromCharCode(32+S):S>=112&&S<=123?w="f"+(S-112+1):S>=48&&S<=57?w=String(S-48):S>=96&&S<=105?w=String(S-96):w=lNi[S]),S=w);S=S||""}return S===H.key&&(!H.hasModifiers||
!!C.shiftKey===!!H.shiftKey&&!!C.ctrlKey===!!H.ctrlKey&&!!C.altKey===!!H.altKey&&!!C.metaKey===!!H.metaKey)};
Ohu=function(H){return H.length===1?{combo:H,key:H,event:"keydown"}:H.split("+").reduce(function(C,S){var w=S.split(":");S=w[0];w=w[1];S in ocZ?(C[ocZ[S]]=!0,C.hasModifiers=!0):(C.key=S,C.event=w||"keydown");return C},{combo:H.split(":").shift()})};
XCE=function(H){return H.trim().split(" ").map(function(C){return Ohu(C)})};
QYp=function(H,C){if(H&&H.fn){var S=H.fn;H.fn=function(){try{S.apply(this,arguments)}catch(w){if(w instanceof us)console.warn("Argument '"+w.arg+"'"+(C?" for method '"+C+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw w;}}}return H};
dR7=function(){var H=_.tc.apply(0,arguments);return H.length===0?function(C){return C}:H.length===1?H[0]:H.reduce(function(C,S){return function(){return C(S.apply(null,_.k$(_.tc.apply(0,arguments))))}})};
Pwi=function(){var H=_.tc.apply(0,arguments);return function(C){return function(S,w){S=C(S,w);var A=function(){throw Error("Ee");},J={getState:S.getState,
dispatch:function(c){return A.apply(null,[c].concat(_.k$(_.tc.apply(1,arguments))))}};
w=H.map(function(c){return c(J)});
A=dR7.apply(null,_.k$(w))(S.dispatch);return Object.assign({},S,{dispatch:A})}}};
k4E=function(H){Object.keys(H).forEach(function(C){var S=H[C];if(typeof S(void 0,{type:$RV})==="undefined")throw Error("Fe`"+C);if(typeof S(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+pC6()})==="undefined")throw Error("Ge`"+C+"`"+$RV);})};
Gc=function(H){for(var C=Object.keys(H),S={},w=0;w<C.length;w++){var A=C[w];typeof H[A]==="function"&&(S[A]=H[A])}var J=Object.keys(S);try{k4E(S)}catch(Y){var c=Y}return function(Y,M){Y=Y===void 0?{}:Y;if(c)throw c;for(var m=!1,W={},y=0;y<J.length;y++){var N=J[y],b=Y[N],u=(0,S[N])(b,M);if(typeof u==="undefined")throw Y=M&&M.type,Error("He`"+(Y?'"'+String(Y)+'"':"(unknown type)")+"`"+N);W[N]=u;m=m||u!==b}return(m=m||J.length!==Object.keys(Y).length)?W:Y}};
hw$=function(H,C,S){function w(){if(W)throw Error("Ie");return Y}
function A(b){if(typeof b!=="function")throw Error("Je`"+typeof b);if(W)throw Error("Ke");var u=!0;m===M&&(m=M.slice());m.push(b);return function(){if(u){if(W)throw Error("Le");u=!1;m===M&&(m=M.slice());var O=m.indexOf(b);m.splice(O,1);M=null}}}
function J(b){if(typeof b!=="object"||b===null)var u=!1;else{for(u=b;Object.getPrototypeOf(u)!==null;)u=Object.getPrototypeOf(u);u=Object.getPrototypeOf(b)===u}if(!u)throw Error("Me`"+typeof b);if(typeof b.type==="undefined")throw Error("Ne");if(W)throw Error("Oe");try{W=!0,Y=c(Y,b)}finally{W=!1}u=M=m;for(var O=0;O<u.length;O++)(0,u[O])();return b}
if(typeof C==="function"&&typeof S==="function"||typeof S==="function"&&typeof arguments[3]==="function")throw Error("Pe");typeof C==="function"&&typeof S==="undefined"&&(S=C,C=void 0);if(typeof S!=="undefined"){if(typeof S!=="function")throw Error("Qe`"+typeof S);return S(hw$)(H,C)}if(typeof H!=="function")throw Error("Re`"+typeof H);var c=H,Y=C,M=[],m=M,W=!1;J({type:$RV});var y={},N=(y.dispatch=J,y.subscribe=A,y.getState=w,y.replaceReducer=function(b){if(typeof b!=="function")throw Error("Se`"+
typeof b);c=b;J({type:nc7});return N},y[rSW]=function(){var b={};
return b.subscribe=function(u){function O(){u.next&&u.next(w())}
if(typeof u!=="object"||u===null)throw new TypeError("Te`"+typeof u);O();return{unsubscribe:A(O)}},b[rSW]=function(){return this},b},y);
return N};
BLZ=function(H){function C(){A&&(A=!1,H());J&&w()}
function S(){requestAnimationFrame(C)}
function w(){var Y=Date.now();if(A){if(Y-c<2)return;J=!0}else A=!0,J=!1,setTimeout(S,20);c=Y}
var A=!1,J=!1,c=0;return w};
fD=function(H){return typeof H==="number"?H:parseFloat(H)||0};
DRZ=function(H){return _.tc.apply(1,arguments).reduce(function(C,S){return C+fD(H["border-"+S+"-width"])},0)};
_.f=function(H,C){C=xD(R2(C));H.innerHTML=C};
Lai=function(H){var C=KaE;C||(C=tQV(),C=KaE=_.hb.transpose(C));C=C[H];return typeof C==="string"?C:_.vM(H)};
gcU=function(H){H=String(H).toLowerCase();var C=tQV()[H];return typeof C==="string"?C:_.ls(H)};
URZ=function(H){H=H.toLowerCase();H=tQV()[H];return typeof H==="string"?H:null};
tQV=function(){if(!RwD){for(var H=Object.assign({},INE),C=_.Z(aNZ),S=C.next();!S.done;S=C.next())S=S.value,H[S.toLowerCase()]=S;RwD=H}return RwD};
iqU=function(H,C){var S=window.customElements;return S&&S.get(H)||xRE[H]===!0?2:C.name==="HTMLUnknownElement"?1:C.name==="HTMLElement"&&HqW.test(H)?3:0};
sBi=function(H,C){switch(C){case "innerHTML":return C0i(H)===1?2:null;case "textContent":return H=C0i(H),H===1||H===6?1:null;default:var S,w;return(w=(S=S26[H.localName])==null?void 0:S[C])!=null?w:null}};
C0i=function(H){var C=H.localName,S=iqU(C,H.constructor);switch(S){case 0:case 1:return jBV(C,H);case 3:case 2:return 1;default:_.KP(S,"got an unknown element classification")}};
jBV=function(H,C){var S=Object.hasOwnProperty.call(wwE,H)?wwE[H]:null;return S!==null?S:Object.hasOwnProperty.call(AyZ,H)&&C instanceof SVGElement?AyZ[H]:null};
JyD=function(H,C){return C};
ZqE=function(H){return(H=H.split(FhD,2))?{url:H[0],metadata:H[1]}:null};
Y2E=function(H){var C=String(H.url).replace(cyZ,encodeURIComponent);if(H=H.metadata){cyZ.lastIndex=0;if(cyZ.test(H))return null;C+=" "+H}return C};
Tai=function(H){function C(m){var W=m.localName;if(!m.getAttribute("is")&&iqU(W,m.constructor)===2){var y;return(y=M)!=null?y:M=document.createElement("polyresinuncustomized")}(m=Y[W])||(m=Y[W]=document.createElement(W));return m}
var S=H.reportHandler||void 0,w=H.safeTypesBridge||zLZ,A=/^$/;if(H=H.allowedIdentifierPrefixes){H=_.Z(H);for(var J=H.next();!J.done;J=H.next())A=new RegExp(A.source+"|^"+_.MK7(J.value))}S&&S(!1,"initResin",null);var c=q20(A,w,S),Y={},M=null;return function(m,W,y){var N=m.nodeType;if(N!==Node.ELEMENT_NODE){if(N===Node.TEXT_NODE){W=m.parentElement;y=!W;if(W&&W.nodeType===Node.ELEMENT_NODE){N=W.localName;var b=iqU(N,W.constructor);switch(b){case 0:case 1:W=jBV(N,W);y=W===1||W===6;break;case 3:case 2:y=
!0;break;default:_.KP(b,"got an unknown element classification")}}if(y)return function(p){return""+w(p,"STRING",p)}}return function(p){if(!p&&p!==document.all)return p;
S&&S(!0,"Failed to sanitize "+(m.parentElement&&m.parentElement.nodeName)+" #text node to value "+p,m.parentElement);return V8}}var u=m.localName;
N=C(m);var O=null;switch(y){case "attribute":if(gcU(W)in N)break;return function(p){return p};
case "property":if(W in N){O=sBi(N,W);break}if((b=URZ(W))&&b in N)break;return function(p){return p};
default:_.KP(y,"got an unknown resin type, expected either 'property' or 'attribute'")}var d=y==="attribute"?W.toLowerCase():Lai(W);O||(O=yP7(u,d,function(p){var k=m.getAttribute(p);return!k||/[\[\{]/.test(p)?null:k}));
return function(p){var k=oe,R=null;if(!p&&p!==document.all)return p;if(O!=null){var L=c[O],t=L.safeType;R=L.safeReplacement;t&&(k=w(p,t,oe));k===oe&&(L.filterString?(k=String(w(p,"STRING",p)),k=L.filterString(u,d,k)):L.filterRaw&&(k=L.filterRaw(u,d,p,m)),k===R&&(k=oe))}k===oe&&(k=R||V8,S&&S(!0,"Failed to sanitize attribute of <"+u+">: <"+u+" "+d+'="'+p+'">',m));return k}}};
q20=function(H,C,S){return[,{filterRaw:function(w,A,J){return J},
filterString:void 0,safeReplacement:void 0,safeType:void 0},{filterRaw:void 0,filterString:void 0,safeReplacement:void 0,safeType:"HTML"},{filterRaw:void 0,filterString:void 0,safeReplacement:mLE,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:mLE,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:V8,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:WhZ,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(w,A,J){J=
String(J).toLowerCase();return Ef$(w,A,J)?J:V8},
safeReplacement:V8,safeType:void 0},,{filterRaw:void 0,filterString:function(w,A,J){return H.test(J)?J:V8},
safeReplacement:V8,safeType:"CONSTANT"},{filterRaw:function(w,A,J,c){if(typeof J==="string")var Y=(Y=J.match(yyi))?Y.map(ZqE).filter(Boolean):[];else if(Array.isArray(J))Y=J;else return mLE;var M=Y;Y=[];var m=[],W={};if(Array.isArray(M))for(var y=0,N=M.length;y<N;++y){var b=M[y],u=b&&b.url;if(u){var O=C(u,"URL",W);if(O){var d=O!==W;(d?Y:m).push({url:d?O:u,metadata:b.metadata})}}}else m.push(M);M=m.length?JSON.stringify(m):null;m=oe;if(Y.length){if(!Array.isArray(Y))throw Error();m=Y.map(Y2E).filter(Boolean).join(" , ")||
oe}M&&S&&S(!0,"Failed to sanitize attribute value of <"+w+">: <"+w+" "+A+'="'+J+'">: '+M,c);return m===oe?mLE:m},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
Na6=function(H){var C=Tai(H);return function(S,w,A,J){return J||J===document.all?C(S,w,A)(J):J}};
Ok=function(H,C){function S(){function A(Y,M,m){for(M=Reflect.getMetadata("parameters",Y)||[];M.length<=m;)M.push(null);M[m]=M[m]||[];M[m].push(c);Reflect.defineMetadata(M,Y);return Y}
var J=_.tc.apply(0,arguments);if(this instanceof S)return w.apply(this,J),this;var c=new (Function.prototype.bind.apply(S,[null].concat(_.k$(J))));A.annotation=c;return A}
var w=bqZ(C);S.prototype.toString=function(){return"@"+H};
return S.annotationCls=S};
bqZ=function(H){return function(){var C=_.tc.apply(0,arguments),S=this;H.forEach(function(w,A){A=C[A];if(Array.isArray(w))S[w[0]]=A&&A!==void 0?A:w[1];else for(var J in w)S[J]=A&&A[J]!==void 0?A[J]:w[J]})}};
EV6=function(H){return H!==void 0&&H!==null};
Xj=function(H){if(typeof H==="string")return H;if(H===void 0||H===null)return""+H;if(H.overriddenName)return H.overriddenName;if(H.name)return H.name;H=H.toString();var C=H.indexOf("\n");return C===-1?H:H.substring(0,C)};
eLW=function(H){H.__forward_ref__=eLW;H.toString=function(){return Xj(this())};
return H};
Q8=function(H){return typeof H==="function"&&H.hasOwnProperty("__forward_ref__")&&H.__forward_ref__===eLW?H():H};
usE=function(H){return H?H.map(function(C){return new (Function.prototype.bind.apply(C.type.annotationCls,[null].concat(_.k$(C.args?C.args:[]))))}):[]};
GaZ=function(H){for(var C=[],S=0;S<H.length;++S){if(C.indexOf(H[S])>-1){C.push(H[S]);break}C.push(H[S])}return C};
fKD=function(H){return H.length>1?" ("+GaZ(H.slice().reverse()).map(function(C){return Xj(C.token)}).join(" -> ")+")":""};
lKu=function(H,C,S,w){if(w){var A=Error("$e``"+(w instanceof Error?w.message:w));A.ngOriginalError=w}else A=Error();A.addKey=vVE;A.keys=[C];A.injectors=[H];A.constructResolvingMessage=S;A.message=A.constructResolvingMessage();A.ngOriginalError=w;return A};
vVE=function(H,C){this.injectors.push(H);this.keys.push(C);this.message=this.constructResolvingMessage()};
VKu=function(H,C){return lKu(H,C,function(){return"No provider for "+Xj(this.keys[0].token)+"!"+fKD(this.keys)})};
oVE=function(H,C){return lKu(H,C,function(){return"Cannot instantiate cyclic dependency!"+fKD(this.keys)})};
Oqi=function(H,C,S){return lKu(H,S,function(){var w=Xj(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+w+"!"+fKD(this.keys)+"."},C)};
XwZ=function(H,C){for(var S=[],w=0,A=C.length;w<A;w++){var J=C[w];J&&J.length!=0?S.push(J.map(Xj).join(" ")):S.push("?")}return Error("df`"+Xj(H)+"`"+S.join(", ")+"`"+Xj(H))};
hLZ=function(H){var C=void 0,S=void 0;if(H&&H.useClass!==void 0){C=H.useClass;var w=Q8(H.useClass);var A=QBu.factory(w);w=dLV(w)}else H&&H.useExisting!==void 0?(A=function(J){return J},w=[P0U(dM.get(Q8(H.useExisting)))]):H&&H.useFactory!==void 0?(A=H.useFactory,w=$L0(H.useFactory,H.deps)):(S=H.useValue,A=function(){return H.useValue},w=pw0);
return new kaV(A,w,C,S)};
ry0=function(H){return new nVu(dM.get(Q8(H.provide)),[hLZ(H)],H.multi)};
DL6=function(H){H=BaD(H,[]).map(ry0);for(var C=new Map,S=0;S<H.length;S++){var w=H[S],A=C.get(w.key.id);if(A){if(w.multiProvider!==A.multiProvider)throw Error("ff`"+A+"`"+w);if(w.multiProvider)for(var J=0;J<w.resolvedFactories.length;J++)A.resolvedFactories.push(w.resolvedFactories[J]);else C.set(w.key.id,w)}else A=void 0,w.multiProvider?A=new nVu(w.key,w.resolvedFactories.slice(),w.multiProvider):A=w,C.set(w.key.id,A)}return Array.from(C.values())};
BaD=function(H,C){H.forEach(function(S){if(S instanceof KhE)C.push({provide:S,useClass:S});else if(S&&typeof S=="object"&&S.provide!==void 0)C.push(S);else if(S instanceof Array)BaD(S,C);else throw Error("cf`"+S);});
return C};
$L0=function(H,C){if(C){var S=C.map(function(w){return[w]});
return C.map(function(w){return tKp(H,w,S)})}return dLV(H)};
dLV=function(H){var C=QBu.parameters(H);if(!C)return[];if(C.some(function(S){return S==null}))throw XwZ(H,C);
return C.map(function(S){return tKp(H,S,C)})};
tKp=function(H,C,S){var w=null,A=!1;if(!Array.isArray(C))return C instanceof LhU?gVW(C.token,A,null):gVW(C,A,null);for(var J=null,c=0;c<C.length;++c){var Y=C[c];if(Y instanceof KhE)w=Y;else if(Y instanceof LhU)w=Y.token;else if(Y instanceof ULE)A=!0;else if(Y instanceof RLU||Y instanceof IKE)J=Y}w=Q8(w);if(w!=null)return gVW(w,A,J);throw XwZ(H,S);};
gVW=function(H,C,S){return new aKZ(dM.get(Q8(H)),C,S)};
xLU=function(H,C){for(var S=Array(H.providers.length),w=0;w<H.providers.length;++w){var A=w;if(w<0||w>=H.providers.length)throw Error("ef`"+w);S[A]=C(H.providers[w])}return S};
H30=function(H){return typeof H==="function"&&QBu.parameters(H).every(function(C){return!!C})};
SNi=function(H){var C=i3Z;CMi.get(H)||CMi.set(H,new C);return CMi.get(H)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(H){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(H)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(H){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(H)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(H,C){var S,w;if(H.contains(C))return!0;H=_.PM(H).querySelectorAll("content,slot");for(S=0;S<H.length;++S){var A=_.PM(H[S]).getDistributedNodes();for(w=0;w<A.length;++w)if(A[w].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(A[w],C))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(H){H.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(H)&&H.preventDefault();H.targetTouches&&(H=H.targetTouches[0],sS$=H.pageX,jSZ=H.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 H=0,C=$_.length;H<C;H++)document.addEventListener($_[H],_._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 H=0,C=$_.length;H<C;H++)document.removeEventListener($_[H],_._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(H){var C=_.PM(H).rootTarget;H.type!=="touchmove"&&w4u!==C&&(w4u=C,A7i=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.PM(H).path));if(!A7i.length)return!0;if(H.type==="touchstart")return!1;H=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(H);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(A7i,H.deltaX,H.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(H){for(var C=[],S=H.indexOf(J7D),w=0;w<=S;w++)if(H[w].nodeType===Node.ELEMENT_NODE){var A=H[w],J=A.style;J.overflow!=="scroll"&&J.overflow!=="auto"&&(J=window.getComputedStyle(A));J.overflow!=="scroll"&&J.overflow!=="auto"||C.push(A)}return C};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(H,C,S){if(C||S)for(var w=Math.abs(S)>=Math.abs(C),A=0;A<H.length;A++){var J=H[A];if(w?S<0?J.scrollTop>0:J.scrollTop<J.scrollHeight-J.clientHeight:C<0?J.scrollLeft>0:J.scrollLeft<J.scrollWidth-J.clientWidth)return J}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(H){var C={deltaX:H.deltaX,deltaY:H.deltaY};"deltaX"in H||("wheelDeltaX"in H&&"wheelDeltaY"in H?(C.deltaX=-H.wheelDeltaX,C.deltaY=-H.wheelDeltaY):"wheelDelta"in H?(C.deltaX=0,C.deltaY=-H.wheelDelta):"axis"in H?(C.deltaX=H.axis===1?H.detail:0,C.deltaY=H.axis===2?H.detail:0):H.targetTouches&&(H=H.targetTouches[0],C.deltaX=sS$-H.pageX,C.deltaY=jSZ-H.pageY));return C};
Fi7=function(H){this.element=H;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
c7u=function(H){this.element=H;this.color=window.getComputedStyle(H).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");_.PM(this.waveContainer).appendChild(this.wave);Z3V(this)};
pD=function(H,C){for(var S in H)if(S.toLowerCase()===C.toLowerCase())return H[S]};
YNZ=function(H,C){for(var S in H)if(S.toLowerCase()===C.toLowerCase()){delete H[S];break}};
MiD=function(H){H=_.hb.clone(H);for(var C=0;C<zq$.length;++C){var S=zq$[C],w=pD(H,S);w&&(H["X-Goog-Upload-Header-"+S]=w,YNZ(H,S))}return H};
qNZ=function(H){H=_.hb.clone(H);YNZ(H,"X-Goog-Upload-Status")};
mgW=function(H){return T57.some(function(C){return C.test(H)})};
b3p=function(H,C){var S;var w=(S=H.formContent)==null?void 0:S.locale;S=w==null?void 0:w.split("-")[0];w=w&&WiZ.includes(w)?w:S&&WiZ.includes(S)?S:void 0;w=(w!=null?w:"en").replaceAll("-","_").toLowerCase();var A;H=((A=H.initializationData)==null?0:A.useNightlyRelease)?"nightly":"live";var J;return(C==null?0:(J=C.getEnableAlohaBinarySplit)==null?0:J.call(C))?_.qH(y7V,H):_.qH(N50,H,w)};
uUD=function(H,C,S,w){if(EUE&&eqw===C)return EUE;eqw=C;var A=b3p(H,w);return EUE=C.feedbackV2GlobalObject?Promise.resolve(C.feedbackV2GlobalObject):new Promise(function(J,c){var Y=_.GZ("SCRIPT");_.JY(Y,A);Y.onload=function(){C.feedbackV2GlobalObject?J(C.feedbackV2GlobalObject):c(Error("jf"))};
Y.onerror=function(){c(Error("kf`"+A.toString()))};
S.body.appendChild(Y)})};
vUw=function(H,C,S,w){if(G$7&&fxW===C)return G$7;fxW=C;var A=b3p(H,w);return G$7=C.feedbackV2GlobalObject?Promise.resolve(C.feedbackV2GlobalObject):new Promise(function(J,c){var Y=_.GZ("SCRIPT");_.JY(Y,A);Y.onload=function(){C.feedbackV2GlobalObject?J(C.feedbackV2GlobalObject):c(Error("jf"))};
Y.onerror=function(){c(Error("kf`"+A.toString()))};
S.body.appendChild(Y)})};
lx7=function(H,C,S,w,A){A=A===void 0?!0:A;var J,c,Y,M,m;return _.z(function(W){switch(W.nextAddress){case 1:return J=Date.now(),W.yield(uUD(H,S,w,C),2);case 2:c=W.yieldResult;if(!(A||((M=H.initializationData)==null?0:M.useNightlyRelease)||((m=H.initializationData)==null?0:m.isLocalServer))){Y=c.initializeFeedbackClient(H,J,C);W.jumpTo(3);break}return W.yield(c.initializeFeedbackClientAsync(H,J,C),4);case 4:Y=W.yieldResult;case 3:return Y.initiateAloha(),W.return(Y)}})};
Vi6=function(H,C,S,w){var A,J,c;return _.z(function(Y){if(Y.nextAddress==1)return A=Date.now(),Y.yield(vUw(H,S,w.document,C),2);if(Y.nextAddress!=3)return J=Y.yieldResult,Y.yield(J.initializeFeedbackClientAsync(H,A,C,w),3);c=Y.yieldResult;c.initiateAloha();return Y.return(c)})};
oU7=function(H,C,S){var w=!0;w=w===void 0?!0:w;var A,J,c,Y,M,m,W,y,N,b;return _.z(function(u){A=S||_.s$;if((J=C)==null?0:(Y=(c=J).getEnableAlohaBinarySplit)==null?0:Y.call(c)){M=A;if(M.isFormOpened)throw m=Error("lf"),m.name="DuplicateFormError",m;M.isFormOpened=!0;H.callbacks=H.callbacks||{};W=H.callbacks.onClose||function(){};
H.callbacks.onClose=function(O){M.isFormOpened=!1;W(O)};
try{return u.return(Vi6(H,C,M,A))}catch(O){throw M.isFormOpened=!1,O;}}else{y=A;if(y.isFormOpened)throw N=Error("lf"),N.name="DuplicateFormError",N;y.isFormOpened=!0;H.callbacks=H.callbacks||{};b=H.callbacks.onClose||function(){};
H.callbacks.onClose=function(O){y.isFormOpened=!1;b(O)};
try{return u.return(lx7(H,C,y,A.document,w))}catch(O){throw y.isFormOpened=!1,O;}}_.oT(u)})};
PM7=function(H,C){return _.z(function(S){return S.return(new Promise(function(w,A){Number.isInteger(Number(H))&&Number(H)>0?(A=O3p(C!=null?C:"")+"/aloha_form_properties?productId="+H,X4Z(A,function(J){J=J.target;var c=null;try{var Y=JSON,M=Y.stringify;if(J.JSC$9809_xhr_){var m=J.JSC$9809_xhr_.responseText;m.indexOf(")]}'\n")==0&&(m=m.substring(5));var W=(0,_.k_)(m)}else W=void 0;c=LT6(QSi,M.call(Y,W))}catch(y){M=new QSi,W=dg$(),W=_.hJ(W,13,!1),W=_.hJ(W,14,!0),W=_.hJ(W,15,!0),W=_.hJ(W,20,!1),c=_.f9(M,
1,W)}w(c)},"GET","",{},2E3,!0)):A(Error("mf`"+H))}))})};
O3p=function(H){return mgW(H)?H:"https://www.google.com/tools/feedback"};
hqW=function(H){H=H.match(new RegExp($g0,"gi"))||[];H=_.Z(H);for(var C=H.next();!C.done;C=H.next()){C=C.value;a:{var S=_.Z(p4V);for(var w=S.next();!w.done;w=S.next())if(w.value.test(C)){S=!1;break a}S=!0}if(!S)a:{S=_.Z(k$6);for(w=S.next();!w.done;w=S.next())if(w.value.test(C)){S=!0;break a}S=!1}if(S)return!0}return!1};
nU$=function(H,C){var S={},w=Object.keys(H);w=_.Z(w);for(var A=w.next();!A.done;A=w.next())A=A.value,S[A]=C(A,H[A]);return S};
r7W=function(H){switch(H){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"}};
Dg0=function(H){if(window.crypto&&window.crypto.getRandomValues)try{var C=Array(H),S=new Uint8Array(H);window.crypto.getRandomValues(S);for(var w=0;w<C.length;w++)C[w]=S[w];return C}catch(J){}C=Array(H);for(S=0;S<H;S++){w=Date.now();for(var A=0;A<w%23;A++)C[S]=Math.random();C[S]=Math.floor(Math.random()*256)}if(B5E)for(S=1,w=0;w<B5E.length;w++)C[S%H]^=C[(S-1)%H]/4^B5E.charCodeAt(w),S++;return C};
nD=function(H){H=Dg0(H);for(var C=[],S=0;S<H.length;S++)C.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(H[S]&63));return C.join("")};
Ki7=function(){var H=_.s$.ytLoggingDocDocumentNonce_;H||(H=nD(16),_.AO("ytLoggingDocDocumentNonce_",H));return H};
LiZ=function(H){H&&_.kI("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:tiE,clientScreenNonce:H})};
gUu=function(H){return _.rh("client-screen-nonce-store",{})[H===void 0?0:H]};
UgE=function(H,C){C=C===void 0?0:C;var S=_.rh("client-screen-nonce-store");S||(S={},_.np("client-screen-nonce-store",S));S[C]=H};
RqE=function(H){H=H===void 0?0:H;return H===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+H};
IxE=function(H){return _.rh(RqE(H===void 0?0:H))};
_.BM=function(H){return(H=IxE(H===void 0?0:H))?new rM({veType:H,youtubeData:void 0,jspbYoutubeData:void 0}):null};
ax7=function(){var H=_.rh("csn-to-ctt-auth-info");H||(H={},_.np("csn-to-ctt-auth-info",H));return H};
xgZ=function(){return Object.values(_.rh("client-screen-nonce-store",{})).filter(function(H){return H!==void 0})};
_.Dg=function(H){H=gUu(H===void 0?0:H);if(!H&&!_.Bh("USE_CSN_FALLBACK",!0))return null;H||(H="UNDEFINED_CSN");return H?H:null};
iHV=function(H){for(var C=_.Z(Object.values(HH6)),S=C.next();!S.done;S=C.next())if(_.Dg(S.value)===H)return!0;return!1};
Cki=function(H,C,S){var w=ax7();(S=_.Dg(S))&&delete w[S];C&&(w[H]=C)};
KD=function(H){return ax7()[H]};
_.tJ=function(H,C,S,w){S=S===void 0?0:S;if(H!==gUu(S)||C!==_.rh(RqE(S)))if(Cki(H,w,S),UgE(H,S),_.np(RqE(S),C),C=function(){setTimeout(function(){LiZ(H)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(C)}catch(A){C()}else C()};
SSW=function(H,C){C=C===void 0?"":C;var S=[],w;for(w in H)if(H.hasOwnProperty(w)){var A=C!==""?C+"."+w:w;typeof H[w]==="object"?S.push.apply(S,_.k$(SSW(H[w],A))):S.push([A,H[w]])}S.sort();return S};
_.gM=function(H){var C=_.tc.apply(1,arguments);if(!LD(H)||C.some(function(w){return!LD(w)}))throw Error("nf");
C=_.Z(C);for(var S=C.next();!S.done;S=C.next())sFp(H,S.value)};
sFp=function(H,C){for(var S in C)if(LD(C[S])){if(S in H&&!LD(H[S]))throw Error("of");S in H||(H[S]={});sFp(H[S],C[S])}else if(jFp(C[S])){if(S in H&&!jFp(H[S]))throw Error("pf");S in H||(H[S]=[]);wW7(H[S],C[S])}else H[S]=C[S];return H};
wW7=function(H,C){C=_.Z(C);for(var S=C.next();!S.done;S=C.next())S=S.value,LD(S)?H.push(sFp({},S)):jFp(S)?H.push(wW7([],S)):H.push(S);return H};
LD=function(H){return typeof H==="object"&&!Array.isArray(H)};
jFp=function(H){return typeof H==="object"&&Array.isArray(H)};
JiZ=function(H){for(var C=_.Z(Object.entries(Aiu)),S=C.next();!S.done;S=C.next())if(S=_.Z(S.value),S.next(),S=S.next().value,S==="SLI_STATUS_"+H)return S;return"SLI_STATUS_UNKNOWN"};
_.Uk=function(H,C,S,w){return F9Z(H,C,function(){return new _.ZH6(H,C,S,w)})};
_.ciZ=function(){return _.Uk("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
YS6=function(){return _.Uk("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
Re=function(){return _.Uk("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
zJ6=function(){return _.Uk("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
MvE=function(){return _.Uk("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
qS$=function(){return _.Uk("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
W9Z=function(H){H&&(H.dataset?H.dataset[Te6()]="true":_.ZA([_.cj(mZ6)],H,"data-loaded","true".toString()))};
yiU=function(H){return H?H.dataset?H.dataset[Te6()]:H.getAttribute("data-loaded"):null};
Te6=function(){return NeE.loaded||(NeE.loaded="loaded".replace(/\-([a-z])/g,function(H,C){return C.toUpperCase()}))};
_.Ie=function(H,C,S){bHV(H,C,S===void 0?null:S)};
_.eJW=function(H,C){H&&C&&(H=""+_.I0(C),(H=Eg6[H])&&_.MJD(H))};
bHV=function(H,C,S){S=S===void 0?null:S;var w=_.uLE(typeof H==="string"?H:H.toString()),A=document.getElementById(w),J=A&&yiU(A),c=A&&!J;J?C&&C():(C&&(J=_.T8(w,C),C=""+_.I0(C),Eg6[C]=J),c||(A=GTE(H,w,function(){yiU(A)||(W9Z(A),_.qUi(w),_.yD(function(){_.msZ(w)},0))},S)))};
GTE=function(H,C,S,w){w=w===void 0?null:w;var A=_.GZ("SCRIPT");A.id=C;A.onload=function(){S&&setTimeout(S,0)};
A.onreadystatechange=function(){switch(A.readyState){case "loaded":case "complete":A.onload()}};
w&&A.setAttribute("nonce",w);_.JY(A,typeof H==="string"?_.Pl(H):H);H=document.getElementsByTagName("head")[0]||document.body;H.insertBefore(A,H.firstChild);return A};
_.uLE=function(H){var C=document.createElement("a");gP(C,H);return"js-"+ae(C.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
fJZ=function(H){var C=_.rh("INNERTUBE_HOST_OVERRIDE");C&&(H=String(C)+String(_.x_(H)));return H};
vg$=function(H){var C={};_.E("json_condensed_response")&&(C.prettyPrint="false");return H=$3i(H,C)};
_.HH=function(H){return j$(H)?"same-origin":"include"};
_.i9=function(H){return j$(H)?"same-origin":"cors"};
CL=function(H,C,S){S=S===void 0?{}:S;H={method:C===void 0?"POST":C,mode:_.i9(H),credentials:_.HH(H)};C={};for(var w=_.Z(Object.keys(S)),A=w.next();!A.done;A=w.next())A=A.value,S[A]&&(C[A]=S[A]);Object.keys(C).length>0&&(H.headers=C);return H};
_.SR=function(H,C){C=C===void 0?{}:C;return"service:"+H+"/"+Object.keys(C).sort().map(function(S){return S+":"+C[S]}).join("/")};
lJE=function(H){var C,S,w,A;H=(C=_.e(H,_.sX))==null?void 0:(S=C.watchEndpointSupportedOnesieConfig)==null?void 0:(w=S.html5PlaybackOnesieConfig)==null?void 0:(A=w.commonConfig)==null?void 0:A.url;if(!H)return[];C=new _.jR(H);return C.JSC$10045_domain_?["https://"+C.JSC$10045_domain_+"/generate_204"]:[]};
_.OH$=function(){return VvU()||BBU()||ogE&&DQ("version/")?!0:_.rh("EOM_VISITOR_DATA")?!1:!0};
XW7=function(H){var C=H.docid||H.video_id||H.videoId||H.id;if(C)return C;C=H.raw_player_response;C||(H=H.player_response)&&(C=JSON.parse(H));return C&&C.videoDetails&&C.videoDetails.videoId||null};
QF$=function(H){return H.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
wV=function(H){return!isNaN(Number(H))&&!_.YE(H)};
_.JM=function(H,C,S,w){w=w===void 0?!0:w;var A=_.rh("VALID_SESSION_TEMPDATA_DOMAINS",[]),J=_.S$(window.location.href);J&&A.push(J);J=_.S$(H);if(_.nU(A,J)||!J&&_.AV(H,"/"))if(A=document.createElement("a"),gP(A,H),H=A.href)if(H=_.x_(H),H=_.AM(H))w&&!C.csn&&(C.itct||C.ved)&&(C=Object.assign({csn:_.Dg()},C)),S?(S=parseInt(S,10),isFinite(S)&&S>0&&dZw(H,C,S)):dZw(H,C)};
$Zp=function(H){var C=_.rh("VALID_SESSION_TEMPDATA_DOMAINS",[]),S=_.S$(window.location.href);S&&C.push(S);S=_.S$(H);if(!(_.nU(C,S)||!S&&_.AV(H,"/")))return null;H=_.x_(H);(H=_.AM(H))?(H=Pk0(H),H=(H=_.vA.get(H,void 0)||null)?_.a6(H):{}):H=null;return H};
dZw=function(H,C,S){H=Pk0(H);C=C?_.u5(C):"";S=S||5;_.OH$()&&_.l5(H,C,S)};
Pk0=function(H){for(var C=_.Z(pWp),S=C.next();!S.done;S=C.next())H=_.Fw(H,S.value);return"ST-"+ae(H).toString(36)};
_.kT6=function(H){if(H.requestFullscreen)H=H.requestFullscreen(void 0);else if(H.webkitRequestFullscreen)H=H.webkitRequestFullscreen();else if(H.mozRequestFullScreen)H=H.mozRequestFullScreen();else if(H.msRequestFullscreen)H=H.msRequestFullscreen();else if(H.webkitEnterFullscreen)H=H.webkitEnterFullscreen();else return Promise.reject(Error("yf"));return H instanceof Promise?H:Promise.resolve()};
_.cH=function(H){var C;_.iu6(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.ZR()==H&&(C=document):C=H;if(C&&(H=_.iu6(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],C))){H.call(C)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.ZR=function(){var H=H===void 0?!1:H;var C=_.iu6(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(H)for(;C&&C.shadowRoot;)C=C.shadowRoot.fullscreenElement;return C?C:null};
_.YR=function(H,C){C=C===void 0?!0:C;H.addEventListener("wheel",hJU);H.overscrollConfig={cooldown:C}};
_.zo=function(H){H.overscrollConfig=void 0;H.removeEventListener("wheel",hJU)};
hJU=function(H){var C=H.deltaY,S=H.target,w=null;if(window.Polymer&&window.Polymer.Element){if(S=H.path||H.composedPath&&H.composedPath()){S=_.Z(S);for(var A=S.next();!A.done&&(A=A.value,!ngW(A,C));A=S.next())if(A.overscrollConfig){w=A;break}}}else for(;S&&!ngW(S,C);){if(S.overscrollConfig){w=S;break}S=S.parentElement}w&&(C=w.overscrollConfig,C.cooldown?(w=H.deltaY,S=C.lastDeltaY||0,C.lastDeltaY=w,A=C.lastStopped||0,S&&A&&S>0==w>0?Math.abs(S)>=Math.abs(w)?(w=A+1200,S=!1):(w=A+600,S=!0):(w=Date.now()+
600,S=!0),w>Date.now()&&(H.preventDefault(),S&&(C.lastStopped=Date.now()))):H.preventDefault())};
ngW=function(H,C){return C<0&&H.scrollTop>0||C>0&&H.scrollTop<H.scrollHeight-H.clientHeight-1?(H=getComputedStyle(H).overflowY,H=="auto"||H=="scroll"):!1};
_.M3=function(H,C,S,w){w||(w={bubbles:!0,cancelable:!1,composed:!0});S!==null&&S!==void 0&&(w.detail=S);var A=new CustomEvent(C,w);_.E("untrack_fire_custom_event_killswitch")?H.dispatchEvent(A):TR(function(){return void H.dispatchEvent(A)});
return A};
ri6=function(H){var C=window,S=function(w){C.removeEventListener("yt-navigate-start",S);return H.call(C,w)};
C.addEventListener("yt-navigate-start",S,void 0)};
_.q3=function(H,C,S,w){C=new BeE(C,!(w===void 0||!w),S);_.M3(H,"yt-action",C);return C.returnValue};
_.m7=function(H,C,S){return _.q3(H,C,S,!0)};
_.yN=function(H,C,S,w){C&&C.length&&C.forEach(function(A){var J=xp$(A);J&&(_.E("handle_service_request_actions")&&A.commandMetadata&&A.commandMetadata.webCommandMetadata&&A.commandMetadata.webCommandMetadata.sendPost?_.WH(S?S:H,[A]):_.m7(H,J,[A,S,w]))})};
_.WH=function(H,C){var S=[H];C&&S.push.apply(S,C);C=_.q3(H,"yt-service-request",S);return C.length>0&&(C=C[0],_.M3(H,"yt-service-request-sent",C),C&&C.ajaxPromise)?(C.ajaxPromise.then(function(w){_.M3(H,"yt-service-request-completed",w)},function(w){_.M3(H,"yt-service-request-error",{error:w,
params:S})},H),C.ajaxPromise):_.N3()};
_.EX=function(H,C){if(_.E("handle_service_request_actions"))_.yN(C,H,C);else{H=_.Z(H);for(var S=H.next();!S.done;S=H.next()){S=S.value;var w=void 0;((w=_.e(S,_.b9))==null?0:w.commands)?_.EX(_.e(S,_.b9).commands,C):(w=void 0,((w=_.e(S,_.eR))==null?0:w.actions)?_.EX(_.e(S,_.eR).actions,C):(w=void 0,((w=_.e(S.commandMetadata,_.u9))==null?0:w.sendPost)?_.WH(C,[S]):_.yN(C,[S],C)))}}};
_.K9u=function(H,C,S){C=C===void 0?{}:C;typeof C==="function"&&(C={callback:C});S||C._c&&C._c.jsl&&C._c.jsl.h||_.hb.extend(C,{_c:{jsl:{h:_.rh("GAPI_HINT_PARAMS")}}});(C.gapiHintOverride||_.rh("GAPI_HINT_OVERRIDE"))&&(S=_.xT(document.location.href).gapi_jsh)&&_.hb.extend(C,{_c:{jsl:{h:S}}});DZ0(H,C)};
_.fL=function(H,C,S){C=C===void 0?{}:C;H=(H=H in Go?Go[H]:S)||"";S={};for(var w in C){S={key$jscomp$840:S.key$jscomp$840};S.key$jscomp$840=w;var A=function(J){return function(){return String(C[J.key$jscomp$840])}}(S);
H=H.replace(new RegExp("\\$\\{"+S.key$jscomp$840+"\\}","gi"),A);H=H.replace(new RegExp("\\$"+S.key$jscomp$840,"gi"),A)}return H};
_.vH=function(H,C){return tvV(H in Go?Go[H]:{},C)};
tvV=function(H,C){var S=_.rh("I18N_PLURAL_RULES");S||(S=function(w){return w==1?"one":"other"});
return(H=H["case"+C]||H[S(C)])?H.replace("#",C.toString()):C+""};
UZ0=function(H){var C=L9i(H),S=document.getElementById(C),w=S&&yiU(S);w||S&&!w||(S=ggw(H,C,function(){if(!yiU(S)){W9Z(S);_.qUi(C);var A=_.l9(_.msZ,C);_.yD(A,0)}}))};
ggw=function(H,C,S){var w=document.createElement("link");w.id=C;w.onload=function(){S&&setTimeout(S,0)};
H=_.Pl(H);_.ce(w,H,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(w);return w};
L9i=function(H){var C=_.GZ("A");gP(C,$D(H));return"css-"+ae(C.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.IJZ=function(H){var C=RJ0();H!==C&&(C=_.VN(),!_.E("web_autonav_allow_off_by_default")&&H||_.ok(0,141,!0),_.ok(0,140,!H),C.save())};
RJ0=function(){var H=_.VN();return _.E("web_autonav_allow_off_by_default")&&!H.getFlag(141)&&_.rh("AUTONAV_OFF_BY_DEFAULT")?!1:!H.getFlag(140)};
aJ$=function(H,C){var S,w;H=((S=H.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(w=S.videoAuthorizationToken)==null?void 0:w.credentialTransferTokens)||[];for(S=0;S<H.length;++S)if(H[S].scope===C)return H[S].token||void 0};
xZ7=function(H){for(var C=0,S=0;S<H.length;S++)C=C*31+H.charCodeAt(S),S<H.length-1&&(C%=0x800000000000);return C%1E5};
_.OX=function(H){return _.gh("ytcsi."+(H||"")+"data_")||Hl0(H)};
_.ilV=function(H){H=_.OX(H);H.metadata||(H.metadata={});return H.metadata};
_.CDu=function(H){H=_.OX(H);H.tick||(H.tick={});return H.tick};
_.Xw=function(H){H=_.OX(H);if(H.gel){var C=H.gel;C.gelInfos||(C.gelInfos={});C.gelTicks||(C.gelTicks={})}else H.gel={gelTicks:{},gelInfos:{}};return H.gel};
_.SQp=function(H){H=_.Xw(H);H.gelInfos||(H.gelInfos={});return H.gelInfos};
sxu=function(H){var C=_.OX(H).nonce;C||(C=nD(16),_.OX(H).nonce=C);return C};
Hl0=function(H){var C={tick:{},info:{}};_.AO("ytcsi."+(H||"")+"data_",C);return C};
jxE=function(){var H=_.gh("ytcsi.debug");H||(H=[],_.AO("ytcsi.debug",H),_.AO("ytcsi.reference",{}));return H};
_.QN=function(H){H=H||"";var C=waE();if(C[H])return C[H];var S=jxE(),w={timerName:H,info:{},tick:{},span:{},jspbInfo:[]};S.push(w);return C[H]=w};
An7=function(H){H=H||"";var C=waE();C[H]&&delete C[H];var S=jxE(),w={timerName:H,info:{},tick:{},span:{},jspbInfo:[]};S.push(w);C[H]=w};
waE=function(){var H=_.gh("ytcsi.reference");if(H)return H;jxE();return _.gh("ytcsi.reference")};
_.Fup=function(H){return JnE[H]||"LATENCY_ACTION_UNKNOWN"};
zZ7=function(H,C,S){S=S===void 0?{}:S;var w=!1;_.Bh("ytLoggingEventsDefaultDisabled",!1)&&(w=!0);w=w?null:pC;S=S===void 0?{}:S;var A=Math.round(S.timestamp||(0,_.Zt)());_.o8(C,1,A<Number.MAX_SAFE_INTEGER?A:0);A=new ZlV;if(S.lact)_.o8(A,1,isFinite(S.lact)?S.lact:-1);else if(S.timestamp)_.o8(A,1,-1);else{var J=_.cn();_.o8(A,1,isFinite(J)?J:-1)}if(S.sequenceGroup&&!_.E("web_gel_sequence_info_killswitch")){J=S.sequenceGroup;var c=fz0(J),Y=new cnE;_.o8(Y,2,c);_.XA(Y,1,J);_.f9(A,3,Y);S.endOfSequence&&delete YQ7[S.sequenceGroup]}_.f9(C,
33,A);(S.sendIsolatedPayload?QWp:ds7)(H,{endpoint:"log_event",payload:C,cttAuthInfo:S.cttAuthInfo,dangerousLogToVisitorSession:S.dangerousLogToVisitorSession},w)};
_.PH=function(){return(_.E("csi_use_time_origin")||_.E("csi_use_time_origin_tvhtml5"))&&_.dV.timeOrigin?Math.floor(_.dV.timeOrigin):_.dV.timing.navigationStart};
_.Mc0=function(H,C){_.$R("_start",H,C)};
_.pL=function(H,C){if(!_.E("web_csi_action_sampling_enabled")||!_.OX(C).actionDisabled){var S=_.QN(C||"");_.gM(S.info,H);H.loadType&&(S=H.loadType,_.ilV(C).loadType=S);_.gM(_.SQp(C),H);S=sxu(C);C=_.OX(C).cttAuthInfo;qQ7().info(H,S,C)}};
TAw=function(){var H,C,S,w;return((w=_.JA().resolve(_.AA(Qm))==null?void 0:(H=dv())==null?void 0:(C=H.loggingHotConfig)==null?void 0:(S=C.csiConfig)==null?void 0:S.debugTicks)!=null?w:[]).map(function(A){return Object.values(A)[0]})};
_.$R=function(H,C,S){if(!_.E("web_csi_action_sampling_enabled")||!_.OX(S).actionDisabled){var w=sxu(S),A;if(A=_.E("web_csi_debug_sample_enabled")&&w){(_.JA().resolve(_.AA(Qm))==null?0:dv())&&!mfE&&(mfE=!0,_.$R("gcfl",(0,_.Zt)(),S));var J,c,Y;A=(_.JA().resolve(_.AA(Qm))==null?void 0:(J=dv())==null?void 0:(c=J.loggingHotConfig)==null?void 0:(Y=c.csiConfig)==null?void 0:Y.debugSampleWeight)||0;if(J=A!==0)b:{J=TAw();if(J.length>0)for(c=0;c<J.length;c++)if(H===J[c]){J=!0;break b}J=!1}J?(A=xZ7(w)%A!==0,
_.OX(S).debugTicksExcludedLogged||(J={},J.debugTicksExcluded=A,_.pL(J,S)),_.OX(S).debugTicksExcludedLogged=!0):A=!1}if(!A){H[0]!=="_"&&WuZ(H,S,C);A=_.QN(S||"");A.tick[H]=C||(0,_.Zt)();if(A.callback&&A.callback[H])for(A=_.Z(A.callback[H]),J=A.next();!J.done;J=A.next())J=J.value,J();A=_.Xw(S);A.gelTicks&&(A.gelTicks[H]=!0);J=_.CDu(S);A=C||(0,_.Zt)();_.E("log_repeated_ytcsi_ticks")?H in J||(J[H]=A):J[H]=A;J=_.OX(S).cttAuthInfo;H==="_start"?qQ7().baseline(w,C,J):qQ7().tick(H,w,C,J);_.ynu(S);return A}}};
WuZ=function(H,C,S){if(_.dV.mark)if(H.startsWith("mark_")||(H="mark_"+H),C&&(H+=" ("+C+")"),S===void 0||_.E("web_csi_disable_alt_time_performance_mark"))_.dV.mark(H);else{S=_.E("csi_use_performance_navigation_timing")?S-_.dV.timeOrigin:S-(_.dV.timeOrigin||_.dV.timing.navigationStart);try{_.dV.mark(H,{startTime:S})}catch(w){}}};
NAE=function(){var H,C=(H=_.dV.getEntriesByType)==null?void 0:H.call(_.dV,"mark");C&&C.forEach(function(S){if(S.name.startsWith("mark_")){var w;(w=_.dV.clearMarks)==null||w.call(_.dV,S.name)}})};
_.blZ=function(){switch(Hu6()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.EA0=function(H){var C={},S=function(J,c,Y){c=c.match("_rid")?c.split("_rid")[0]:c;typeof Y==="number"&&(Y=JSON.stringify(Y));J.requestIds?J.requestIds.push({endpoint:c,id:Y}):J.requestIds=[{endpoint:c,id:Y}]};
H=_.Z(Object.entries(H));for(var w=H.next();!w.done;w=H.next()){var A=_.Z(w.value);w=A.next().value;A=A.next().value;switch(w){case "GetBrowse_rid":S(C,w,A);break;case "GetGuide_rid":S(C,w,A);break;case "GetHome_rid":S(C,w,A);break;case "GetPlayer_rid":S(C,w,A);break;case "GetSearch_rid":S(C,w,A);break;case "GetSettings_rid":S(C,w,A);break;case "GetTrending_rid":S(C,w,A);break;case "GetWatchNext_rid":S(C,w,A);break;case "yt_red":C.isRedSubscriber=!!A;break;case "yt_ad":C.isMonetized=!!A}}return C};
ur7=function(H,C,S,w,A,J){if(!_.E("web_csi_action_sampling_enabled")||!_.OX(J).actionDisabled){var c=_.Xw(J);if(c.gelSpans)c.gelSpans[H]=!0;else{var Y={};c.gelSpans=(Y[H]=!0,Y)}eZU++;H={spanName:H,spanLengthUsec:String(Math.round(C*1E3)),spanNonce:eZU};w&&(H.spanInfo=w);A&&(H.parentSpanNonce=A);S&&(H.spanStartTimeUsec=String(Math.round(S*1E3)));_.QN(J||"").span[String(H.spanName)]=H;S=_.Xw(J);S.gelSpans||(S.gelSpans={});_.gM(S.gelSpans,H);S=sxu(J);J=_.OX(J).cttAuthInfo;qQ7().span(H,S,J);return H.spanNonce}};
_.GMU=function(H){var C=_.kR("aft",H);if(C)return C;C=_.rh((H||"")+"TIMING_AFT_KEYS",["ol"]);for(var S=C.length,w=0;w<S;w++){var A=_.kR(C[w],H);if(A)return A}return NaN};
_.fC$=function(H,C){_.AO("ytglobal.timing"+(C||"")+"ready_",H)};
_.kR=function(H,C){if(H=_.CDu(C)[H])return typeof H==="number"?H:H[H.length-1]};
_.ynu=function(H){var C=_.kR("_start",H),S=_.GMU(H),w=!vA7;C&&S&&w&&(vzi(lCZ,new Vcw(Math.round(S-C),H)),vA7=!0)};
Olp=function(H){Hl0(H);oAU();NAE();H||(_.rh("TIMING_ACTION")&&_.np("PREVIOUS_ACTION",_.rh("TIMING_ACTION")),_.np("TIMING_ACTION",""))};
_.XaE=function(H){H=H===void 0?{}:H;_.Lp(function(){hM();An7();Olp();_.fC$(!1);H.cttAuthInfo&&(_.OX().cttAuthInfo=H.cttAuthInfo);_.np("TIMING_AFT_KEYS",[]);H.isHot?_.nL({loadType:"hot"}):_.nL({loadType:"warm"});_.np("TIMING_ACTION","");delete _.rh("TIMING_INFO",{}).yt_lt;_.Lp(_.Mc0)(H.startTime,void 0)})()};
_.BH=function(H,C,S,w){C=C===void 0?{}:C;_.Lp(function(){var A=S?S:H;rV(A);var J=C.sampleRate;if(!_.E("web_csi_action_sampling_enabled")||J===void 0||J<=1)J=!1;else{var c=sxu(A);J=xZ7(c)%J!==0}J&&(_.OX(A).actionDisabled=!0);_.QN(A||"").info.actionType=H;C.cttAuthInfo&&(_.OX(A).cttAuthInfo=C.cttAuthInfo);_.np(A+"TIMING_ACTION",H);_.Lp(_.Mc0)(C.startTime,A);J={actionType:w||_.Fup(H)};C.logPreviousAction&&(J.previousAction=_.Fup(_.rh("TIMING_ACTION")));(c=_.Dg())&&c!=="UNDEFINED_CSN"&&(J.clientScreenNonce=
c);_.nL(J,A);_.fC$(!0,A)})()};
rV=function(H){_.Lp(function(){hM(H);An7(H);Olp(H)})()};
Qxp=function(){_.Lp(function(){var H=[],C;for(C in _.gh("ytcsi.".slice(0,-1)))C.endsWith("data_")&&H.push(C.slice(0,-5));H=_.Z(H);for(C=H.next();!C.done;C=H.next())rV(C.value);hM()})()};
_.PDD=function(H){return _.Lp(function(){return _.dfE("_start",H)})()};
_.nL=function(H,C,S){_.Lp(_.pL)(H,C,S===void 0?!1:S)};
_.DR=function(H,C,S){return _.Lp(_.$R)(H,C,S)};
_.dfE=function(H,C){return _.Lp(function(){var S=_.CDu(C);return H in S})()};
pap=function(H){if(!_.E("universal_csi_network_ticks"))return"";H=_.EE(H)||"";for(var C=Object.keys($fV),S=0;S<C.length;S++){var w=C[S];if(H.includes(w))return w}return""};
hZu=function(H){if(!_.E("universal_csi_network_ticks"))return function(){};
var C=$fV[H];return C?(_.KL(C),function(){var S=_.E("universal_csi_network_ticks")?(S=kMp[H])?_.KL(S):!1:!1;return S}):function(){}};
_.KL=function(H,C,S){return _.Lp(function(){if(_.dfE(H,S))return!1;_.DR(H,C,S);return!0})()};
_.tM=function(H,C,S){_.Lp(function(){if(!_.PDD(S)||_.dfE(H,S))return!1;_.DR(H,C,S);return!0})()};
_.LL=function(H){return _.Lp(_.kR)(H,void 0)};
hM=function(H){_.PDD(H)&&_.DR("aa",void 0,H)};
_.Ku7=function(H,C,S,w,A,J,c,Y,M){var m=nAi();Y=new rM({veType:C,youtubeData:J,jspbYoutubeData:Y});J=gV({},m);A&&(J.cttAuthInfo=A);A={csn:m,pageVe:Y.getAsJson()};_.E("expectation_logging")&&M&&M.screenCreatedLoggingExpectations&&(A.screenCreatedLoggingExpectations=M.screenCreatedLoggingExpectations);S&&S.visualElement?(A.implicitGesture={parentCsn:S.clientScreenNonce,gesturedVe:S.visualElement.getAsJson()},c&&(A.implicitGesture.gestureType=c)):S&&_.Bn(new _.X0("newScreen() parent element does not have a VE - rootVe",
C));w&&(A.cloneCsn=w);H?$I("screenCreated",A,H,J):_.kI("screenCreated",A,J);vzi(dTi,new rn$(m));UX.clear();BAZ.clear();DfE.clear();return m};
Rk=function(H,C,S,w,A,J){J=J===void 0?{}:J;tcV(H,C,S,[w],A===void 0?!1:A,J)};
tcV=function(H,C,S,w,A,J){A=A===void 0?!1:A;J=J===void 0?{}:J;Object.assign(J,gV({cttAuthInfo:KD(C)||void 0},C));for(var c=_.Z(w),Y=c.next();!Y.done;Y=c.next()){Y=Y.value;var M=Y.getAsJson();(_.hb.isEmpty(M)||!M.trackingParams&&!M.veType)&&_.Bn(Error("zf"));if(_.E("no_client_ve_attach_unless_shown")){var m=Luw(Y,C);if(M.veType&&!BAZ.has(m)&&!DfE.has(m)&&!A){if(!_.E("il_attach_cache_limit")||UX.size<1E3){UX.set(m,[H,C,S,Y]);return}_.E("il_attach_cache_limit")&&UX.size>1E3&&_.Bn(new _.X0("IL Attach cache exceeded limit"))}Y=
Luw(S,C);UX.has(Y)?gAD(S,C):DfE.set(Y,!0)}}w=w.filter(function(W){W.csn!==C?(W.csn=C,W=!0):W=!1;return W});
S={csn:C,parentVe:S.getAsJson(),childVes:_.nX(w,function(W){return W.getAsJson()})};
C==="UNDEFINED_CSN"?Ik("visualElementAttached",J,S):H?$I("visualElementAttached",S,H,J):_.kI("visualElementAttached",S,J)};
RZW=function(H,C,S,w,A){UfZ(H,C,S,A)};
UfZ=function(H,C,S,w){ICW(S,C);var A=gV({cttAuthInfo:KD(C)||void 0},C);S={csn:C,ve:S.getAsJson(),eventType:1};w&&(S.clientData=w);C==="UNDEFINED_CSN"?Ik("visualElementShown",A,S):H?$I("visualElementShown",S,H,A):_.kI("visualElementShown",S,A)};
aC7=function(H,C,S,w){ICW(S,C);var A=gV({cttAuthInfo:KD(C)||void 0},C);S={csn:C,ve:S.getAsJson(),eventType:4};w&&(S.clientData=w);C==="UNDEFINED_CSN"?Ik("visualElementShown",A,S):H?$I("visualElementShown",S,H,A):_.kI("visualElementShown",S,A)};
xfE=function(H,C,S,w,A){var J=(w=w===void 0?!1:w)?16:8;w=gV({cttAuthInfo:KD(C)||void 0,endOfSequence:w},C);S={csn:C,ve:S.getAsJson(),eventType:J};A&&(S.clientData=A);C==="UNDEFINED_CSN"?Ik("visualElementHidden",w,S):H?$I("visualElementHidden",S,H,w):_.kI("visualElementHidden",S,w)};
iop=function(H,C,S,w,A){HoE(H,C,S,void 0,w,A)};
HoE=function(H,C,S,w,A){ICW(S,C);w=w||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var J=gV({cttAuthInfo:KD(C)||void 0},C);S={csn:C,ve:S.getAsJson(),gestureType:w};A&&(S.clientData=A);C==="UNDEFINED_CSN"?Ik("visualElementGestured",J,S):H?$I("visualElementGestured",S,H,J):_.kI("visualElementGestured",S,J)};
Ct7=function(H,C,S,w){var A=gV({cttAuthInfo:KD(C)||void 0},C);S={csn:C,ve:S.getAsJson(),clientData:w};C==="UNDEFINED_CSN"?Ik("visualElementStateChanged",A,S):H?$I("visualElementStateChanged",S,H,A):_.kI("visualElementStateChanged",S,A)};
Syu=function(){var H=Dg0(16);for(var C=[],S=0;S<H.length;S++)C.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(H[S]&63));return C.join("")};
Ik=function(H,C,S){s4U.push({payloadName:H,payload:S,jspbPayload:void 0,options:C});j4Z||(j4Z=$T6())};
QZW=function(H){if(s4U){for(var C=_.Z(s4U),S=C.next();!S.done;S=C.next())S=S.value,S.payload&&(S.payload.csn=H.csn,_.kI(S.payloadName,S.payload,S.options));s4U.length=0}j4Z=0};
Luw=function(H,C){return""+H.getAsJson().veType+H.getAsJson().veCounter+C};
ICW=function(H,C){if(_.E("no_client_ve_attach_unless_shown")){var S=Luw(H,C);BAZ.set(S,!0);gAD(H,C)}};
gAD=function(H,C){H=Luw(H,C);UX.has(H)&&(C=UX.get(H)||[],Rk(C[0],C[1],C[2],C[3],!0),UX.delete(H))};
gV=function(H,C){_.E("log_sequence_info_on_gel_web")&&(H.sequenceGroup=C);return H};
_.ak=function(H,C,S){_.Lp(Rk)(void 0,H,C,S)};
_.xR=function(H,C,S){_.Lp(tcV)(void 0,H,C,S)};
_.HF=function(H,C){_.Lp(RZW)(void 0,H,C,void 0,void 0,void 0)};
_.ia=function(H,C,S){_.Lp(function(){_.I6(C,function(w){aC7(void 0,H,w,S)})})()};
_.C8=function(H,C,S,w){_.Lp(function(){_.I6(C,function(A){xfE(void 0,H,A,S,w)})})()};
_.Sp=function(H,C,S){_.Lp(iop)(void 0,H,C,S,void 0)};
_.sa=function(H,C,S,w){_.Lp(HoE)(void 0,H,C,S,w,void 0)};
_.jp=function(H,C,S){_.Lp(Ct7)(void 0,H,C,S,void 0)};
wJi=function(H,C){wB.set(H,C)};
AoU=function(H){return Af.initialized?Af.enabledSpans?Af.enabledSpans[H]:!0:!1};
Jow=function(H,C){if(H){C=C===void 0?1:C;if(H){H.endTime=(0,_.Zt)();C&&(H.status=C);C=_.Z(Af.processors);for(var S=C.next();!S.done;S=C.next()){var w=void 0,A=void 0;(A=(w=S.value).onSpanEnd)==null||A.call(w,H)}}H!==Af.stack[Af.stack.length-1]&&_.Bn(Error("Cf`"+H.name));Af.stack.pop()}};
ZoW=function(H,C,S){if(AoU(H)&&Af.shouldSampleFn(H,C,FyW)){var w=Af.nextSpanId++,A=Af.stack[Af.stack.length-1];H={id:w,parentId:A==null?void 0:A.id,name:H,attributes:C,traceId:A?A.traceId:w,sessionId:Af.sessionId,startTime:(0,_.Zt)(),status:0};A&&(A.children||(A.children=[]),A.children.push(H));A=_.Z(Af.processors);for(C=A.next();!C.done;C=A.next()){var J=w=void 0;(J=(w=C.value).onSpanStart)==null||J.call(w,H)}}else H=void 0;H?Af.stack.push(H):H=void 0;if(!H)return S();try{var c=S(H);Jow(H);return c}catch(Y){throw Jow(H,
2),Y;}};
coZ=function(){};
YyD=function(H,C){var S=Object.keys(H);H=new _.X0("[Command Handler] "+C,{filteredCommandNames:S,originalCommand:H});_.nC(H)};
z1U=function(H,C){YyD(H,C+" was called but not set")};
MB$=function(H){return function(){return new H}};
Jf=function(H){return function(){return _.JA().resolve(H)}};
qy7=function(H,C){var S=_.e(H,_.gv);if(S&&(S=C[S.signal]))return S();H=_.Z(Object.keys(H));for(S=H.next();!S.done;S=H.next())if(S=S.value,C[S]&&(S=C[S]))return S()};
_.F_=function(H,C,S,w){return{browseEndpoint:{browseId:H},commandMetadata:{webCommandMetadata:{url:C,rootVe:S,webPageType:w===void 0?"WEB_PAGE_TYPE_BROWSE":w}}}};
TZ7=function(H,C,S){var w=C=C===void 0?0:C;S=S===void 0?0:S;var A=S-w;return _.Zy(H,"PPSV",void 0,void 0,(A>600?0:A<60||S<=0||w/S>.9)?0:C)};
_.Zy=function(H,C,S,w,A){var J="/watch?v="+H;H={videoId:H};C&&(H.playlistId=C,J+="&list="+C);w&&(J+="&pp="+w);A&&(H.startTimeSeconds=A,J+="&t="+A+"s");C={watchEndpoint:H,commandMetadata:{webCommandMetadata:{url:J,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};S&&(C.clickTrackingParams=S);w&&(_.e(C,_.sX).playerParams=w);return C};
mJ6=function(H){return{browseEndpoint:{browseId:"VL"+H},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+H,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
Wy7=function(H){if(H){var C;if(H){var S=(C=_.e(H.commandMetadata,_.u9))==null?void 0:C.url;C=!(!S||S==="/service_ajax")}else C=!1;if(C)return H;var w;if(H=(w=_.e(H,_.b9))==null?void 0:w.commands)for(w=_.Z(H),H=w.next();!H.done;H=w.next())if(H=Wy7(H.value))return H}};
_.cF=function(H){return{runs:[{text:H}]}};
yoU=function(H,C){return H&&C?{runs:[{text:H,navigationEndpoint:C}]}:void 0};
Y6=function(H){return H?_.cF(H):void 0};
_.zn=function(H){return H?{simpleText:H}:void 0};
_.Md=function(H){var C=H.type;H=H.payload;C={type:C};H!==void 0&&(C.payload=H);return C};
NZV=function(H,C,S){for(var w=Object.assign({},H),A=_.Z(Object.keys(C)),J=A.next();!J.done;J=A.next()){J=J.value;var c=H[J],Y=C[J];if(Y===void 0)delete w[J];else if(c===void 0)w[J]=Y;else if(Array.isArray(Y)&&Array.isArray(c))w[J]=S?[].concat(_.k$(c),_.k$(Y)):Y;else if(!Array.isArray(Y)&&_.U$(Y)&&!Array.isArray(c)&&_.U$(c))w[J]=NZV(c,Y,S);else if(typeof Y===typeof c)w[J]=Y;else return C=new _.X0("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:J,originalValue:c,updateValue:Y}),
_.nC(C),H}return w};
e10=function(H){if(!H.length)return"";try{if(boW)return boW.decode(H);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(H)}catch(c){}for(var C=0,S=[],w=H.length;C<w;){for(var A=0;A<1024&&C<w;){var J=H[C++];if(J<128)EHW[A++]=J;else{if(J<224)J=(J&31)<<6|H[C++]&63;else if(J<240)J=(J&15)<<12|(H[C++]&63)<<6|H[C++]&63;else{if(A+1===1024){--C;break}J=(J&7)<<18|(H[C++]&63)<<12|(H[C++]&63)<<6|H[C++]&63;J-=65536;EHW[A++]=55296|J>>10;J=56320|J&1023}EHW[A++]=J}}J=String.fromCharCode.apply(String,
EHW);A<1024&&(J=J.substring(0,A));S.push(J)}return S.join("")};
Gjw=function(H,C){var S;if((S=uOE)==null?0:S.encodeInto)return C=uOE.encodeInto(H,C),C.read<H.length?H.length*4:C.written;for(var w=S=0;w<H.length;w++){var A=H.charCodeAt(w);A<128?C[S++]=A:(A<2048?C[S++]=A>>6|192:((A&64512)===55296&&w+1<H.length&&(H.charCodeAt(w+1)&64512)===56320?(A=65536+((A&1023)<<10)+(H.charCodeAt(++w)&1023),C[S++]=A>>18|240,C[S++]=A>>12&63|128):C[S++]=A>>12|224,C[S++]=A>>6&63|128),C[S++]=A&63|128)}return S};
f6W=function(H,C,S){if(C&&S&&S.buffer===C.exports.memory.buffer){var w=C.realloc(S.byteOffset,H);if(w)return new Uint8Array(C.exports.memory.buffer,w,H)}H=C?new Uint8Array(C.exports.memory.buffer,C.malloc(H),H):new Uint8Array(H);S&&H.set(S);return H};
_.Tn=function(H){H=new vH6(new l60([_.iY(decodeURIComponent(H))]));if(VB7(H,2)){var C=qd(H);var S=H.pos;var w=H.arrayView;S=S===void 0?0:S;var A=C===void 0?-1:C;S=S===void 0?0:S;A=A===void 0?-1:A;if(w.totalLength&&A){A<0&&(A=w.totalLength-S);w.focus(S);if(!(S-w.arrayPos+A<=w.arrays[w.arrayIdx].length)){var J=w.arrayIdx,c=w.arrayPos;w.focus(S+A-1);c=new Uint8Array(w.arrayPos+w.arrays[w.arrayIdx].length-c);for(var Y=0,M=J;M<=w.arrayIdx;M++)c.set(w.arrays[M],Y),Y+=w.arrays[M].length;w.arrays.splice(J,
w.arrayIdx-J+1,c);w.arrayIdx=0;w.arrayPos=0;w.focus(S)}J=w.arrays[w.arrayIdx];w=new DataView(J.buffer,J.byteOffset+S-w.arrayPos,A)}else w=new DataView(new ArrayBuffer(0));w=new Uint8Array(w.buffer,w.byteOffset,w.byteLength);H.pos+=C;C=w}else C=void 0;C=C?e10(C):void 0;H=VB7(H,4)?qd(H):void 0;w=oHZ[H];if(typeof w==="undefined")throw H=new _.X0("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:H}),_.nC(H),H;return{entityTypeFieldNumber:H,entityType:w,entityId:C}};
_.ba=function(H,C,S){S=S===void 0?0:S;var w=new Oo0;if(uOE)H=uOE.encode(H);else{var A=new Uint8Array(Math.ceil(H.length*1.2)),J=Gjw(H,A);A.length<J&&(A=new Uint8Array(J),J=Gjw(H,A));A.length>J&&(A=A.subarray(0,J));H=A}H!==void 0&&(mF(w,18),A=H.length,mF(w,A),Nd(w,A),w.buf.set(H,w.pos),w.pos+=A);H=XJV[C];if(typeof H==="undefined")throw S=new _.X0("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:C}),_.nC(S),S;H!==void 0&&(mF(w,32),mF(w,H));mF(w,40);mF(w,1);C=new Uint8Array(w.buf.buffer,
w.buf.byteOffset,w.pos);return encodeURIComponent(_.QO(C,S))};
Q4u=function(H){H=H.key||H.id;if(!H)throw Error("Ef");return H};
PtE=function(H,C){H=H===void 0?{}:H;return dJZ(H,C)};
$JV=function(H,C,S,w){if(w===void 0)return w=Object.assign({},H[C]||{}),S=(delete w[S],w),w={},Object.assign({},H,(w[C]=S,w));var A={},J={};return Object.assign({},H,(J[C]=Object.assign({},H[C],(A[S]=w,A)),J))};
pJ6=function(H,C,S,w,A){var J=H[C];if(J==null||!J[S])return H;w=NZV(J[S],w,A==="REPEATED_FIELDS_MERGE_OPTION_APPEND");A={};J={};return Object.assign({},H,(J[C]=Object.assign({},H[C],(A[S]=w,A)),J))};
_.Ea=function(H,C,S){return H[C]?H[C][S]||null:null};
h1i=function(){if(kjp)return kjp();var H={};kjp=F6("PersistentEntityStoreDb",{objectStores:(H.EntityStore={addedAtVersion:1},H.EntityAssociationStore={addedAtVersion:2},H),shared:!1,upgrade:function(C,S){S(1)&&RM(Uc(C,"EntityStore",{keyPath:"key"}),"entityType","entityType");S(2)&&(C=Uc(C,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),RM(C,"byParentEntityKey","parentEntityKey"),RM(C,"byChildEntityKey","childEntityKey"))},
version:3});return kjp()};
nHi=function(H){return _.iC(h1i(),H)};
ep=function(H){return window.Int32Array?new Int32Array(H):Array(H)};
BZW=function(H){return _.iC(rou(),H)};
DJ$=function(H){return new ua("WRONG_DATA_TYPE",{encoderVersion:H})};
Kyu=function(H){return H instanceof Error?new ua("UNKNOWN_ENCODE_ERROR",{originalMessage:H.message}):new ua("UNKNOWN_ENCODE_ERROR")};
tBu=function(H){return H instanceof Error?new ua("UNKNOWN_DECODE_ERROR",{originalMessage:H.message}):new ua("UNKNOWN_DECODE_ERROR")};
LyV=function(H,C){H=H instanceof ua?H:C(H);_.nC(H);throw H;};
gHU=function(H){H=(new TextEncoder).encode(H).subarray(0,16);var C=new Uint8Array(16);C.set(H);return C};
R1Z=function(H){var C=UJD[H];if(C)return C;_.Bn(new _.X0("Entity model not found.",{entityType:H}))};
_.Gn=function(){I6Z||(I6Z=a6$());return I6Z};
a6$=function(){var H,C,S;return _.z(function(w){if(w.nextAddress==1)return _.en(w,2),w.yield(_.JO(),4);if(w.nextAddress!=2){H=w.yieldResult;if(!H||!_.OE()||typeof _.s$.BroadcastChannel==="undefined")return w.return();C=new xJ6;return w.return(new f8(H,C))}S=_.Vx(w);S instanceof Error&&_.nC(S);return w.return()})};
_.vF=function(H,C){var S;return _.z(function(w){if(w.nextAddress==1){S=H.mutations;if(!S||S.length<=0)return w.return();C&&C.dispatch(_.Md({type:"ENTITY_LOADED",payload:S}));return w.yield(HOu(S),2)}S.length=0;_.oT(w)})};
HOu=function(H){var C;return _.z(function(S){return S.nextAddress==1?S.yield(_.Gn(),2):(C=S.yieldResult)?S.yield(_.la(C,"readwrite",function(w){for(var A={},J=_.Z(H),c=J.next(),Y={};!c.done;Y={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},c=J.next())Y.mutation$jscomp$4=c.value,Y.mutation$jscomp$4.entityKey&&iOw(Y.mutation$jscomp$4)&&(Y.mutationEntityType$jscomp$3=(0,_.hb.getAnyKey)(Y.mutation$jscomp$4.payload),c=void 0,Y.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(c=function(M){return function(){return _.C3u(w,
M.mutation$jscomp$4.payload[M.mutationEntityType$jscomp$3],M.mutationEntityType$jscomp$3)}}(Y)),Y.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(c=function(M){return function(){return Sf7(w,M.mutation$jscomp$4.entityKey)}}(Y)),Y.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(c=function(M){return function(){return syu(w,M.mutation$jscomp$4.entityKey,M.mutation$jscomp$4.payload[M.mutationEntityType$jscomp$3],M.mutationEntityType$jscomp$3)}}(Y)),c&&(A[Y.mutation$jscomp$4.entityKey]=
A[Y.mutation$jscomp$4.entityKey]?A[Y.mutation$jscomp$4.entityKey].then(c):c()));
return g4.all(Object.values(A))}),0):S.return()})};
iOw=function(H){var C;H=(C=H.options)==null?void 0:C.persistenceOption;return H==="ENTITY_PERSISTENCE_OPTION_PERSIST"||H==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
AdZ=function(H,C){var S,w;_.z(function(A){if(A.nextAddress==1)return A.yield(_.Gn(),2);if(A.nextAddress!=3)return(S=A.yieldResult)?A.yield(_.la(S,"readonly",function(J){var c={},Y=Object.keys(C).map(function(M){var m=C[M]?[].concat(_.k$(C[M])):[];return jy6(J,M,m,c)});
return g4.all(Y).then(function(){return c})}),3):A.return();
w=A.yieldResult;Object.keys(w).length>0&&H.dispatch(wgp(w));_.oT(A)})};
jy6=function(H,C,S,w){return Vf(H,C,S).then(function(A){w[C]=Jd6(S,A)})};
Jd6=function(H,C){if(C.length!==H.length)throw Error("Hf");return C.reduce(function(S,w,A){S[H[A]]=w;return S},{})};
cdi=function(H){var C=H.filter(function(A){var J;return(A==null?void 0:(J=A.transferEntity)==null?void 0:J.transferState)==="TRANSFER_STATE_COMPLETE"}).length,S=H.filter(function(A){var J;
return(A==null?void 0:(J=A.transferEntity)==null?void 0:J.transferState)==="TRANSFER_STATE_FAILED"}).length,w=H.filter(function(A){var J;
return(A==null?void 0:(J=A.transferEntity)==null?void 0:J.transferState)&&Fk7.includes(A.transferEntity.transferState)});
if(!(C||w!=null&&w.length))return 0;C=_.ZOw(w)+C;H=H.length-S;return H===0?0:Math.round(C*100/H)/100};
_.ZOw=function(H){var C=[];C=C.concat.apply(C,_.k$(H.filter(function(J){return J.streamEntity}).map(function(J){var c=Object.assign({},J.streamEntity),Y,M=(Y=J.transferEntity)==null?void 0:Y.transferState;
c.streamsProgress=c.streamsProgress||[];c.streamsProgress=c.streamsProgress.map(function(m){var W=Object.assign({},m);W.numBytesDownloaded=M==="TRANSFER_STATE_COMPLETE"?m.numTotalBytes:m.numBytesDownloaded;return W});
return c}).map(function(J){return J.streamsProgress})));
var S=H=0;C=_.Z(C);for(var w=C.next();!w.done;w=C.next()){var A=w.value;w=Number(A.numBytesDownloaded);A=Number(A.numTotalBytes);S+=isNaN(w)?0:w;H+=isNaN(A)?0:A}return H===0?0:Math.round(S*100/H)/100};
YfV=function(H){if(!H||!H.expirationTimestamp||!H.action)return!1;var C=(0,_.Zt)()/1E3;return Number(H.expirationTimestamp)>=C};
ou=function(H){return H&&H.expirationTimestamp&&H.action?YfV(H)&&H.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.Oa=function(H){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(H||"TRANSFER_STATE_UNKNOWN")};
z$E=function(H){var C=new Oo0;if(H!==void 0){var S=Math.ceil(Math.log2(H.length*4+2)/7);S=S===void 0?2:S;mF(C,10);C.submessagePosStack.push(C.pos);C.submessagePosStack.push(S);C.pos+=S;Nd(C,H.length*1.2);S=Gjw(H,C.buf.subarray(C.pos));C.pos+S>C.buf.length&&(Nd(C,S),S=Gjw(H,C.buf.subarray(C.pos)));C.pos+=S;H=C.submessagePosStack.pop();S=C.submessagePosStack.pop();for(var w=C.pos-S-H;H--;){var A=H?128:0;C.view.setUint8(S++,w&127|A);w>>=7}}C=new Uint8Array(C.buf.buffer,C.buf.byteOffset,C.pos);return(new TextDecoder("utf-8")).decode(C)};
_.X_=function(H){var C=0;H=_.Z(H);for(var S=H.next(),w={};!S.done;w={transferState$jscomp$3:void 0},S=H.next()){var A=S.value,J=void 0;S=(J=A.streamEntity)!=null?J:{};J=void 0;w.transferState$jscomp$3=(J=A.transferEntity)==null?void 0:J.transferState;J=A=void 0;((A=S)==null?0:(J=A.streamsProgress)==null?0:J.length)&&S.streamsProgress.forEach(function(c){return function(Y){Y=Number(c.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?Y.numTotalBytes:Y.numBytesDownloaded);isFinite(Y)&&(C+=Y)}}(w))}return C};
MfD=function(H){return H.some(function(C){var S;if(!(C==null?0:(S=C.transferEntity)==null?0:S.transferState)){var w;return!(C==null?0:(w=C.policyEntity)==null?0:w.action)||C.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return Fk7.includes(C.transferEntity.transferState)})};
qfE=function(H,C){if(!C)return!1;if(_.E("of_pb_en_po_ks"))return!0;var S;H=(S=_.Ea(H,"offlineVideoPolicy",_.ba(C,"offlineVideoPolicy")))!=null?S:void 0;return!!H&&ou(H)};
_.mcu=function(H){var C=["TRANSFER_STATE_COMPLETE"];C=C===void 0?THw:C;return H.filter(function(S){var w,A;return C.includes((A=(w=S.transferEntity)==null?void 0:w.transferState)!=null?A:"TRANSFER_STATE_UNKNOWN")})};
WkU=function(H,C){if(C){var S,w=(S=_.Ea(H,"playbackData",_.ba(C,"playbackData")))!=null?S:null,A;S=(A=_.Ea(H,"transfer",_.ba(C,"transfer")))!=null?A:null;var J;A=(J=_.Ea(H,"offlineVideoStreams",_.ba(C,"offlineVideoStreams")))!=null?J:null;var c;H=(c=_.Ea(H,"offlineVideoPolicy",_.ba(C,"offlineVideoPolicy")))!=null?c:null;if(w||S||A||H)return{playbackDataEntity:w,transferEntity:S,streamEntity:A,policyEntity:H}}};
_.Qf=function(H){var C=H.playbackData;if(!C)return[];var S=[];C=_.Z(Object.keys(C));for(var w=C.next();!w.done;w=C.next()){var A=w.value;if(!yd6(H,_.Tn(A).entityId)&&(w=WkU(H,_.Tn(A).entityId))){var J=void 0,c=void 0;A=(c=Number((J=_.Ea(H,"playbackData",A))==null?void 0:J.streamDownloadTimestampSeconds))!=null?c:(0,_.Zt)();S.push({entity:w,streamDownloadTimestamp:A})}}return S.sort(function(Y,M){var m=Y.streamDownloadTimestamp,W=M.streamDownloadTimestamp;return W===m?Y.entity.streamEntity&&!M.entity.streamEntity?
1:-1:W-m}).map(function(Y){return Y.entity})};
NH0=function(H){return _.mcu(_.Qf(H))};
_.bO0=function(H){return _.Qf(H).filter(function(C){var S;if(((S=C.policyEntity)==null?0:S.action)&&C.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var w;if((w=C.transferEntity)==null?0:w.transferState){var A;return Fk7.includes((A=C.transferEntity)==null?void 0:A.transferState)}return!0})};
yd6=function(H,C){var S;return((S=_.Ea(H,"downloadStatusEntity",_.ba(C,"downloadStatusEntity")))==null?void 0:S.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
EP0=function(H){var C;if(H==null?0:(C=H.playbackDataEntity)==null?0:C.key)return _.Tn(H.playbackDataEntity.key).entityId;var S;if(H==null?0:(S=H.transferEntity)==null?0:S.key)return _.Tn(H.transferEntity.key).entityId;var w;if(H==null?0:(w=H.streamEntity)==null?0:w.key)return _.Tn(H.streamEntity.key).entityId;var A;if(H==null?0:(A=H.policyEntity)==null?0:A.key)return _.Tn(H.policyEntity.key).entityId};
u7U=function(H){var C=new Set,S;H=(S=H.mainDownloadsListEntity)==null?void 0:S[e$i];var w;if(!(H==null?0:(w=H.downloads)==null?0:w.length))return C;var A;H==null||(A=H.downloads)==null||A.forEach(function(J){(J==null?0:J.videoItem)&&C.add(J.videoItem)});
return C};
dB=function(H,C){if(C){var S=_.Ea(H,"mainVideoEntity",_.ba(C,"mainVideoEntity")),w=_.Ea(H,"downloadStatusEntity",_.ba(C,"downloadStatusEntity")),A=_.Ea(H,"ytMainChannelEntity",_.ba(C,"ytMainChannelEntity")),J={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};H=WkU(H,C);w=(w==null?void 0:w.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.E("woffle_render_failed_download_state_ks")&&(w==null?void 0:w.downloadState)==="DOWNLOAD_STATE_FAILED";!H&&w&&(H=J);if(H&&S&&
A)return Object.assign({},{videoEntity:S,channelEntity:A},H)}};
f3$=function(H,C){return GNW(H,C)==="TRANSFER_STATE_COMPLETE"&&qfE(H,C)};
vP7=function(H,C){if(!C)return!1;var S;H=(S=_.Ea(H,"playbackData",_.ba(C,"playbackData")))!=null?S:void 0;return!!H&&!!H.playerResponseJson};
GNW=function(H,C){if(!C)return"TRANSFER_STATE_UNKNOWN";var S=_.Ea(H,"transfer",_.ba(C,"transfer"));if(S){var w;return(w=S.transferState)!=null?w:"TRANSFER_STATE_UNKNOWN"}S=_.Ea(H,"offlineOrchestrationActionWrapperEntity",_.ba(C,"offlineOrchestrationActionWrapperEntity"));H=_.Ea(H,"mainVideoEntity",_.ba(C,"mainVideoEntity"));return S||H?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
l3E=function(H,C){if(!C)return"TRANSFER_STATE_UNKNOWN";if(H=_.Ea(H,"transfer",_.ba(C,"transfer"))){var S;return(S=H.transferState)!=null?S:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
VfV=function(H,C){return C&&(H=_.Ea(H,"videoPlaybackPositionEntity",_.ba(C,"videoPlaybackPositionEntity")),H==null?0:H.lastPlaybackPositionSeconds)?Number(H.lastPlaybackPositionSeconds):0};
OOU=function(H,C){return oP7(H).some(function(S){var w;return(S==null?void 0:(w=S.mainPlaylistEntity)==null?void 0:w.playlistId)===C})};
QyZ=function(H,C,S){var w=XgW(H,C);if(!w.length)return[];C=[];w=_.Z(w);for(var A=w.next();!A.done;A=w.next()){A=A.value;var J=dB(H,A);S&&GNW(H,A)!=="TRANSFER_STATE_COMPLETE"||J&&C.push(J)}return C};
XgW=function(H,C){if(!C)return[];var S=_.ba(C,"mainPlaylistEntity"),w;C=(w=H.mainPlaylistEntity)==null?void 0:w[S];w=[];if(C==null||!C.videos)return w;C=_.Z(C.videos);for(S=C.next();!S.done;S=C.next()){S=S.value;var A=void 0,J=void 0,c=void 0,Y=(A=H)==null?void 0:(J=A.mainPlaylistVideoEntity)==null?void 0:(c=J[S])==null?void 0:c.video;Y&&(S=_.Tn(Y).entityId)&&w.push(S)}return w};
dcU=function(H,C){if(C){var S=_.Ea(H,"mainPlaylistEntity",_.ba(C,"mainPlaylistEntity")),w=_.Ea(H,"mainPlaylistDownloadStateEntity",_.ba(C,"mainPlaylistDownloadStateEntity"));H=_.Ea(H,"ytMainChannelEntity",_.ba(C,"ytMainChannelEntity"));if(w&&S)return Object.assign({},{mainPlaylistEntity:S,mainPlaylistDownloadStateEntity:w},!!H&&{channelEntity:H})}};
oP7=function(H){return P3w(H).sort(function(C,S){return S.addedTimestampMillis-C.addedTimestampMillis}).map(function(C){return C.downloadedPlaylistEntities})};
P3w=function(H){var C=H.mainPlaylistDownloadStateEntity,S=[];if(!C)return S;for(var w=_.Z(Object.keys(C)),A=w.next();!A.done;A=w.next()){var J=A.value;A=dcU(H,_.Tn(J).entityId);var c=void 0;J=Number((c=C[J])==null?void 0:c.addedTimestampMillis);c=isNaN(J)?(0,_.Zt)():J;A!==void 0&&S.push({downloadedPlaylistEntities:A,addedTimestampMillis:c})}return S};
$ci=function(H){var C,S=(C=H.mainPlaylistVideoEntity)!=null?C:{};return new Set(oP7(H).reduce(function(w,A){w=w===void 0?[]:w;var J,c;A==null||(J=A.mainPlaylistEntity)==null||(c=J.videos)==null||c.forEach(function(Y){var M;(Y=(M=S[Y])==null?void 0:M.video)&&w.push(Y)});
return w},[]))};
pg0=function(H){return"downloadedMusicPlaylistEntities"in H};
kN7=function(H){return"mainPlaylistEntity"in H&&"mainPlaylistDownloadStateEntity"in H};
h$E=function(H){return"videoEntity"in H&&"channelEntity"in H};
nPZ=function(H){var C=H.musicPlaylistDownloadMetadataEntity,S=[];if(!C)return S;for(var w=_.Z(Object.keys(C)),A=w.next();!A.done;A=w.next()){A=A.value;a:{var J=H,c=_.Tn(A).entityId;if(c){var Y=_.Ea(J,"musicPlaylist",_.ba(c,"musicPlaylist"));J=_.Ea(J,"musicPlaylistDownloadMetadataEntity",_.ba(c,"musicPlaylistDownloadMetadataEntity"));if(Y&&J){Y={musicPlaylistEntity:Y,musicPlaylistDownloadStateEntity:J};break a}}Y=void 0}J=void 0;A=Number((J=C[A])==null?void 0:J.addedTimestampMillis);A=isNaN(A)?(0,_.Zt)():
A;Y!==void 0&&S.push({downloadedMusicPlaylistEntities:Y,addedTimestampMillis:A})}return S};
rdu=function(H){var C=new Set;H=_.Z(H);for(var S=H.next();!S.done;S=H.next())if(S=S.value,"musicPlaylistEntity"in S&&"musicPlaylistDownloadStateEntity"in S){S=_.Z(S.musicPlaylistEntity.tracks);for(var w=S.next();!w.done;w=S.next())C.add(w.value)}return C};
BHW=function(H,C){if(C){var S=_.Ea(H,"musicTrack",_.ba(C,"musicTrack")),w=_.Ea(H,"musicArtist",_.ba(C,"musicArtist"))||{};if((H=WkU(H,C))&&S&&w)return Object.assign({},{musicTrackEntity:S,musicArtistEntity:w},H)}};
Dcw=function(H){var C=H.musicTrackDownloadMetadataEntity,S=[];if(!C)return[];C=_.Z(Object.keys(C));for(var w=C.next();!w.done;w=C.next()){var A=w.value;w=BHW(H,_.Tn(A).entityId);var J=void 0;A=Number((J=_.Ea(H,"musicTrackDownloadMetadataEntity",A))==null?void 0:J.addedTimestampMillis);J=isNaN(A)?(0,_.Zt)():A;w!==void 0&&S.push({downloadedMusicEntities:w,addedTimestampMillis:J})}return S};
Lk0=function(H,C){if(!C)return[];if(Object.values(KkV).includes(C))return tfD(H,C);C=_.ba(C,"musicPlaylist");var S;H=(S=H.musicPlaylist)==null?void 0:S[C];S=[];if(H==null||!H.tracks)return S;H=_.Z(H.tracks);for(C=H.next();!C.done;C=H.next())(C=_.Tn(C.value).entityId)&&S.push(C);return S};
tfD=function(H,C){var S=new Set,w=nPZ(H).map(function(J){return J.downloadedMusicPlaylistEntities});
w=rdu(w);w=_.Z(w);for(var A=w.next();!A.done;A=w.next())(A=_.Tn(A.value).entityId)&&S.add(A);return gPi(H).downloadedMusicEntities.filter(function(J){var c;if((c=J.musicTrackEntity)!=null&&c.videoId){J=J.musicTrackEntity;if(c=C==="PPOM"?!0:!S.has(J.videoId))b:switch(J=J.musicVideoType,C){case "PPSE":c=J==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:c=J!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}J=c}else J=!1;return J}).map(function(J){var c;
return(c=J.musicTrackEntity)==null?void 0:c.videoId})};
gPi=function(H){var C=Dcw(H).sort(function(S,w){return w.addedTimestampMillis-S.addedTimestampMillis}).map(function(S){return"downloadedMusicEntities"in S?S.downloadedMusicEntities:pg0(S)?S.downloadedMusicPlaylistEntities:{}});
H=nPZ(H).sort(function(S,w){return w.addedTimestampMillis-S.addedTimestampMillis}).map(function(S){return"downloadedMusicEntities"in S?S.downloadedMusicEntities:pg0(S)?S.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:C,downloadedMusicPlaylistEntities:H}};
R$0=function(H,C){C=_.rh("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?Lk0(H,C):XgW(H,C);if(!C.length)return"TRANSFER_STATE_UNKNOWN";C=C.map(function(S){return l3E(H,S)});
return UcV(C)};
UcV=function(H){var C=new Set(H);if(C.has("TRANSFER_STATE_FAILED")&&C.size===1)return"TRANSFER_STATE_FAILED";C.delete("TRANSFER_STATE_FAILED");if(C.has("TRANSFER_STATE_UNKNOWN")&&C.size===1)return"TRANSFER_STATE_PRE_TRANSFER";C.delete("TRANSFER_STATE_UNKNOWN");if(C.has("TRANSFER_STATE_PRE_TRANSFER")&&C.size===1||C.size===0)return"TRANSFER_STATE_PRE_TRANSFER";H=C.has("TRANSFER_STATE_TRANSFERRING");C=C.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return H||C?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
PF=function(H){var C=H.mainVideoDownloadStateEntity,S=[];if(!C)return[];C=_.Z(Object.keys(C));for(var w=C.next();!w.done;w=C.next()){var A=w.value;if(!yd6(H,_.Tn(A).entityId)){w=dB(H,_.Tn(A).entityId);var J=void 0,c=void 0;A=(c=Number((J=_.Ea(H,"mainVideoDownloadStateEntity",A))==null?void 0:J.addedTimestampMillis))!=null?c:(0,_.Zt)();w!==void 0&&S.push({downloadedVideoEntities:w,addedTimestampMillis:A})}}return S};
I3u=function(H){return PF(H).sort(function(C,S){return S.addedTimestampMillis-C.addedTimestampMillis}).map(function(C){return C.downloadedVideoEntities})};
_.xc6=function(H){var C=$ci(H),S=_.$6(H),w=u7U(H),A=PF(H).filter(function(c){var Y,M;if((c==null?void 0:(Y=c.downloadedVideoEntities)==null?void 0:(M=Y.transferEntity)==null?void 0:M.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var m,W;c=c==null?void 0:(m=c.downloadedVideoEntities)==null?void 0:(W=m.videoEntity)==null?void 0:W.key;return _.E("kevlar_use_library_entity")?c&&(w.has(c)||S[c]):c&&!C.has(c)}),J=P3w(H).filter(function(c){return R$0(H,c.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.k$(A),_.k$(J)).sort(function(c,Y){return Y.addedTimestampMillis-c.addedTimestampMillis}).map(function(c){return a3$(c)})};
H$W=function(H,C){if(C&&qfE(H,C)){var S,w,A=(w=(S=_.Ea(H,"playbackData",_.ba(C,"playbackData")))!=null?S:void 0)==null?void 0:w.playerResponseJson;if(A){try{var J=JSON.parse(A);var c=_.Ea(H,"transfer",_.ba(C,"transfer")),Y=VfV(H,C);Y&&(J=Object.assign({},J,{playerConfig:Object.assign({},J.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+Y*1E3}}})}));J.cotn=c==null?void 0:c.cotn}catch(M){}return J}}};
_.CoV=function(H){var C,S,w;H=(w=(S=((C=H.downloadsPageViewConfigurationEntity)!=null?C:{})[_.p8])==null?void 0:S.smartDownloadsOptInBannerVisibility)!=null?w:{};var A;return(A=_.e(H,i$E))!=null?A:{}};
_.$6=function(H){var C,S,w;H=(w=(S=((C=H.mainDownloadsListEntity)!=null?C:{})[_.Sew])==null?void 0:S.downloads)!=null?w:[];C={};S=_.Z(H);for(w=S.next();!w.done;w=S.next())H=void 0,C[(H=w.value.videoItem)!=null?H:""]=!0;return C};
siu=function(H){var C=_.$6(H);if(Object.keys(C).length===0)return!1;var S=H.mainVideoEntity;if(!S)return!0;S=_.Z(Object.keys(S));for(var w=S.next();!w.done;w=S.next()){w=w.value;var A=_.Tn(w).entityId;if(C[w]&&!yd6(H,A))return!1}return!0};
_.k6=function(H){var C=_.$6(H);return PF(H).sort(function(S,w){return S.addedTimestampMillis-w.addedTimestampMillis}).map(function(S){return S.downloadedVideoEntities}).filter(function(S){var w;
return(S=S==null?void 0:(w=S.videoEntity)==null?void 0:w.key)&&!!C[S]})};
_.wPw=function(H){var C,S,w;H=(w=(S=((C=H.downloadsPageViewConfigurationEntity)!=null?C:{})[_.p8])==null?void 0:S.downloadsUpsellBannerVisibility)!=null?w:{};var A;return(A=_.e(H,jiZ))!=null?A:{}};
a3$=function(H){return"downloadedVideoEntities"in H?H.downloadedVideoEntities:"downloadedPlaylistEntities"in H?H.downloadedPlaylistEntities:{}};
A$D=function(H){var C=_.$6(H),S=$ci(H),w=PF(H).filter(function(A){var J,c;return(A=A==null?void 0:(J=A.downloadedVideoEntities)==null?void 0:(c=J.videoEntity)==null?void 0:c.key)&&!C[A]&&!S.has(A)});
H=P3w(H);return[].concat(_.k$(w),_.k$(H)).sort(function(A,J){return J.addedTimestampMillis-A.addedTimestampMillis}).map(function(A){return a3$(A)})};
_.hf=function(H){if(!_.E("kevlar_use_library_entity"))return A$D(H);var C=PF(H).filter(function(w){var A,J;if(A=w=w==null?void 0:(A=w.downloadedVideoEntities)==null?void 0:(J=A.videoEntity)==null?void 0:J.key){var c,Y,M;A=((Y=(c=H.mainDownloadsListEntity)==null?void 0:c[e$i])==null?0:(M=Y.downloads)==null?0:M.length)?u7U(H).has(w):!1}return A}),S=P3w(H);
return[].concat(_.k$(C),_.k$(S)).sort(function(w,A){return A.addedTimestampMillis-w.addedTimestampMillis}).map(function(w){return a3$(w)})};
J$Z=function(H){var C=_.$6(H),S=$ci(H);return I3u(H).filter(function(w){var A;return(w=w==null?void 0:(A=w.videoEntity)==null?void 0:A.key)&&!C[w]&&!S.has(w)})};
FNi=function(H){if(!_.E("kevlar_use_library_entity"))return J$Z(H);var C=_.$6(H),S=u7U(H);return I3u(H).filter(function(w){var A;return(w=w==null?void 0:(A=w.videoEntity)==null?void 0:A.key)&&!C[w]&&S.has(w)})};
Z$V=function(H,C){C=_.ba(C,"settingEntity");var S,w,A;return!!((A=(w=((S=H.settingEntity)!=null?S:{})[C])==null?void 0:w.settingOptionValue)!=null?A:{}).boolValue};
_.n8=function(H){var C=_.k6(H);if(MfD(C))return 0;var S=[];C=_.Z(C);for(var w=C.next();!w.done;w=C.next()){w=w.value;var A=void 0,J=void 0;if((A=w)==null?0:(J=A.videoEntity)==null?0:J.key)A=_.Tn(w.videoEntity.key).entityId,w=H,A=_.ba(A,"mainVideoDownloadStateEntity"),w=_.Ea(w,"mainVideoDownloadStateEntity",A),(w=Number(w==null?void 0:w.addedTimestampMillis))&&S.push(w)}return Math.max.apply(Math,_.k$(S))};
_.rB=function(H){return H.ui.richGridMiniMode};
_.BF=function(H){return H.ui.richGridItemsPerRow};
_.c$U=function(H){return H.ui.richGridSlimItemsPerRow};
_.YeV=function(H){return H.ui.guideIsExpanded};
_.Dy=function(H){return H.ui.miniplayerIsActive};
zlu=function(H){return H.ui.singleOptionSurveyIsActive};
_.K8=function(H){var C;return((C=H.ui)==null?void 0:C.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.M8$=function(H){return _.K8(H)==="WEB_PAGE_TYPE_WATCH"};
_.qeD=function(H){return _.K8(H)==="WEB_PAGE_TYPE_SHORTS"};
_.TQp=function(H){return H.ui.inlinePreviewIsActive};
_.mbp=function(H){return H.ui.inlinePreviewIsEnabled};
_.WNZ=function(H){return H.ui.miniplayerPlaybackState};
_.tf=function(H){return H.ui.isOnline};
_.y$7=function(H){return H.ui.frostedGlassMode};
_.L8=function(H,C){return GNW(H.entities,C)};
_.gB=function(H,C){return R$0(H.entities,C)};
NQV=function(H,C){var S;if(C){var w;H=(w=_.Ea(H.entities,"offlineVideoPolicy",_.ba(C,"offlineVideoPolicy")))==null?void 0:w.action}else H=void 0;return(S=H)!=null?S:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
b$0=function(H,C){var S;C?(H=_.Ea(H.entities,"offlineVideoPolicy",_.ba(C,"offlineVideoPolicy")),H=Number(H==null?void 0:H.expirationTimestamp)):H=void 0;return(S=H)!=null?S:0};
_.EeV=function(H){return _.Qf(H.entities).length};
el7=function(H,C){return dB(H.entities,C)};
uKV=function(H,C){return dcU(H.entities,C)};
Ua=function(H,C){return(H=dB(H.entities,C))?_.ZOw([H]):0};
_.Gm7=function(H,C){var S=_.rh("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(S){var w=H.entities;var A=Lk0(w,C);if(A.length){var J=[];A=_.Z(A);for(var c=A.next();!c.done;c=A.next())(c=BHW(w,c.value))&&J.push(c);w=J}else w=[]}else w=QyZ(H.entities,C);var Y;if(S){var M=H.entities;C?(C=_.ba(C,"musicPlaylist"),M=(Y=M.musicPlaylist)==null?void 0:Y[C],Y=M!=null&&M.tracks?M.tracks.length:0):Y=0}else Y=H.entities,C?(C=_.ba(C,"mainPlaylistEntity"),Y=(M=Y.mainPlaylistEntity)==null?void 0:M[C],Y=Y!=null&&Y.videos?
Y.videos.length:0):Y=0;return w.length!==Y?0:w?cdi(w):0};
_.fb$=function(H){return H.download.isLeaderTab};
_.veD=function(H,C,S){if(!C&&S){var w=H.entities;if(S){var A=z$E(S),J,c;C=(c=(J=_.Ea(w,"offlineabilityEntity",_.ba(A,"offlineabilityEntity")))==null?void 0:J.addToOfflineButtonState)!=null?c:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else C="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else J=H.entities,C?(c=z$E(C),C=(A=(w=_.Ea(J,"offlineabilityEntity",_.ba(c,"offlineabilityEntity")))==null?void 0:w.addToOfflineButtonState)!=null?A:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):C="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return C};
lbE=function(H,C){H=H.entities;if(C){C=z$E(C);var S,w;C=(w=(S=_.Ea(H,"offlineabilityEntity",_.ba(C,"offlineabilityEntity")))==null?void 0:S.addToOfflineButtonState)!=null?w:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else C="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return C};
_.V8E=function(H){var C=H.entities;H=_.tf(H);var S=Z$V(C,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.E("kevlar_modern_downloads_page")&&S)var w=!1;else{var A,J;C=(J=(A=((w=C.downloadsPageViewConfigurationEntity)!=null?w:{})[_.p8])==null?void 0:A.smartDownloadsOptInBannerVisibility)!=null?J:{};w=H?!!C.visibleWithConnection:!!C.visibleWithoutConnection}return w};
_.oeU=function(H){return Z$V(H.entities,"SMART_DOWNLOADS_ENABLED")};
_.O$D=function(H){return siu(H.entities)};
XPV=function(H){return _.k6(H.entities).every(function(C){var S;return(C==null?void 0:(S=C.transferEntity)==null?void 0:S.transferState)&&!Fk7.includes(C.transferEntity.transferState)})};
_.QiE=function(H){var C,S,w,A=(w=(S=((C=H.entities.downloadsPageViewConfigurationEntity)!=null?C:{})[_.p8])==null?void 0:S.downloadsUpsellBannerVisibility)!=null?w:{};return _.tf(H)?!!A.visibleWithConnection:!!A.visibleWithoutConnection};
_.dbE=function(H,C){return yd6(H.entities,C)};
PoW=function(H,C){if(C){var S,w;H=(w=(S=_.Ea(H.entities,"downloadStatusEntity",_.ba(C,"downloadStatusEntity")))==null?void 0:S.downloadState)!=null?w:"DOWNLOAD_STATE_UNKNOWN"}else H="DOWNLOAD_STATE_UNKNOWN";return H};
Ru=function(H,C){return VfV(H.entities,C)};
hlV=function(H){H=$bZ(H);var C=H.hours===void 0?0:H.hours,S=H.minutes===void 0?0:H.minutes,w=H.seconds===void 0?0:H.seconds,A=C>0;H=[];A&&(C=pP7(C),H.push(C));C=A;C=C===void 0?!1:C;S=(["af","be","lt"].includes(Iu)||C)&&S<10?km7().format(S):(new Intl.NumberFormat("en-u-nu-latn")).format(S);H.push(S);S=km7().format(w);H.push(S);S=":";"da fi id si sr sr-Latn".split(" ").includes(Iu)&&(S=".");return H.join(S)};
_.r$i=function(H){H=$bZ(H);var C=H.hours===void 0?0:H.hours,S=H.minutes===void 0?0:H.minutes,w=H.seconds===void 0?0:H.seconds;H=[];if(C>0){var A=neE().format({hours:C});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(Iu)||C>9999)A=A.replace(C.toString(),pP7(C)),Iu==="km"&&(A=A.replace(".",","));H.push(A)}S>0&&H.push(neE().format({minutes:S}));w>0&&H.push(neE().format({seconds:w}));C="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");S=Iu=="am"?"{0}\u1363 ":Iu=="fa"?"{0}\u060c\u200f ":
Iu=="my"?"{0} - ":Iu=="ne"?"{0},":Iu=="th"?"{0} ":Iu=="ur"?"{0}\u060c ":Iu=="ar"||Iu=="ar-XB"?"{0} \u0648":Iu=="ja"||Iu=="zh-CN"||Iu=="zh-HK"||Iu=="zh-TW"?"{0}\u3001":"{0}, ";w=Iu=="am"?"\u1363 ":Iu=="fa"?"\u060c\u200f ":Iu=="my"?" - ":Iu=="th"?" ":Iu=="ur"?"\u060c ":Iu=="ar"||Iu=="ar-XB"?" \u0648":Iu=="ja"||Iu=="zh-CN"||Iu=="zh-HK"||Iu=="zh-TW"?"\u3001":", ";A=Iu=="am"?" \u12a5\u1293 {0}":Iu=="as"?" \u0986\u09f0\u09c1 {0}":Iu=="az"?" v\u0259 {0}":Iu=="bn"?" \u098f\u09ac\u0982 {0}":Iu=="cs"?" a\u00a0{0}":
Iu=="de"?" und {0}":Iu=="el"?" \u03ba\u03b1\u03b9 {0}":Iu=="eu"?" eta {0}":Iu=="fa"?"\u060c \u0648 {0}":Iu=="fil"?", at {0}":Iu=="gu"?" \u0a85\u0aa8\u0ac7 {0}":Iu=="hi"?", \u0914\u0930 {0}":Iu=="hu"?" \u00e9s {0}":Iu=="hy"?" \u0587 {0}":Iu=="id"?", dan {0}":Iu=="iw"?" \u05d5-{0}":Iu=="ja"?"\u3001{0}":Iu=="ka"?" \u10d3\u10d0 {0}":Iu=="km"?" \u1793\u17b7\u1784 {0}":Iu=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":Iu=="ko"?" \ubc0f {0}":Iu=="ky"?" \u0436\u0430\u043d\u0430 {0}":Iu=="lt"?" ir {0}":Iu==
"lv"?" un {0}":Iu=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":Iu=="mr"?" \u0906\u0923\u093f {0}":Iu=="ms"?" dan {0}":Iu=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":Iu=="ne"?" \u0930 {0}":Iu=="or"?", \u0b13 {0}":Iu=="pa"?" \u0a05\u0a24\u0a47 {0}":Iu=="ro"?" \u0219i {0}":Iu=="si"?", \u0dc3\u0dc4 {0}":Iu=="sk"?" a {0}":Iu=="sl"?" in {0}":Iu=="sq"?" dhe {0}":Iu=="sv"?" och {0}":Iu=="sw"?" na {0}":Iu=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":Iu=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":
Iu=="th"?" \u0e41\u0e25\u0e30{0}":Iu=="tr"?" ve {0}":Iu=="ur"?"\u060c \u0627\u0648\u0631 {0}":Iu=="uz"?" va {0}":Iu=="vi"?" v\u00e0 {0}":Iu=="zh-HK"?"\u53ca{0}":Iu=="zu"?", ne-{0}":Iu=="af"||Iu=="nl"?" en {0}":Iu=="ar"||Iu=="ar-XB"?" \u0648{0}":Iu=="be"||Iu=="uk"?" \u0456 {0}":Iu=="en-GB"||Iu=="en-IN"?" and {0}":Iu=="en"||Iu=="en-XA"?", and {0}":Iu=="et"||Iu=="fi"?" ja {0}":Iu=="fr"||Iu=="fr-CA"?" et {0}":Iu=="zh-CN"||Iu=="zh-TW"?"\u548c{0}":Iu=="da"||Iu=="is"||Iu=="no"?" og {0}":Iu=="es"||Iu=="es-419"||
Iu=="es-US"?" y {0}":Iu=="kk"||Iu=="lo"||Iu=="mn"?", {0}":Iu=="bg"||Iu=="mk"||Iu=="ru"||Iu=="sr"?" \u0438 {0}":Iu=="gl"||Iu=="it"||Iu=="pt-BR"||Iu=="pt-PT"?" e {0}":" i {0}";var J=Iu=="am"?"{0} \u12a5\u1293 {1}":Iu=="as"?"{0} \u0986\u09f0\u09c1 {1}":Iu=="az"?"{0} v\u0259 {1}":Iu=="bn"?"{0} \u098f\u09ac\u0982 {1}":Iu=="de"?"{0} und {1}":Iu=="el"?"{0} \u03ba\u03b1\u03b9 {1}":Iu=="eu"?"{0} eta {1}":Iu=="fa"?"{0} \u0648 {1}":Iu=="fil"?"{0} at {1}":Iu=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":Iu=="hi"?"{0} \u0914\u0930 {1}":
Iu=="hu"?"{0} \u00e9s {1}":Iu=="hy"?"{0} \u0587 {1}":Iu=="iw"?"{0} \u05d5-{1}":Iu=="ja"?"{0}\u3001{1}":Iu=="ka"?"{0} \u10d3\u10d0 {1}":Iu=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":Iu=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":Iu=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":Iu=="ko"?"{0} \ubc0f {1}":Iu=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":Iu=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":Iu=="lt"?"{0} ir {1}":Iu=="lv"?"{0} un {1}":Iu=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":Iu=="mn"?"{0}, {1}":Iu==
"mr"?"{0} \u0906\u0923\u093f {1}":Iu=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":Iu=="ne"?"{0} \u0930 {1}":Iu=="or"?"{0} \u0b13 {1}":Iu=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":Iu=="ro"?"{0} \u0219i {1}":Iu=="si"?"{0} \u0dc3\u0dc4 {1}":Iu=="sl"?"{0} in {1}":Iu=="sq"?"{0} dhe {1}":Iu=="sv"?"{0} och {1}":Iu=="sw"?"{0} na {1}":Iu=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":Iu=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":Iu=="th"?"{0}\u0e41\u0e25\u0e30{1}":Iu=="tr"?"{0} ve {1}":Iu=="ur"?
"{0} \u0627\u0648\u0631 {1}":Iu=="uz"?"{0} va {1}":Iu=="vi"?"{0} v\u00e0 {1}":Iu=="zh-HK"?"{0}\u53ca{1}":Iu=="zu"?"{0} ne-{1}":Iu=="af"||Iu=="nl"?"{0} en {1}":Iu=="ar"||Iu=="ar-XB"?"{0} \u0648{1}":Iu=="be"||Iu=="uk"?"{0} \u0456 {1}":Iu=="cs"||Iu=="sk"?"{0} a\u00a0{1}":Iu=="et"||Iu=="fi"?"{0} ja {1}":Iu=="fr"||Iu=="fr-CA"?"{0} et {1}":Iu=="id"||Iu=="ms"?"{0} dan {1}":Iu=="zh-CN"||Iu=="zh-TW"?"{0}\u548c{1}":Iu=="da"||Iu=="is"||Iu=="no"?"{0} og {1}":Iu=="es"||Iu=="es-419"||Iu=="es-US"?"{0} y {1}":Iu==
"bg"||Iu=="mk"||Iu=="ru"||Iu=="sr"?"{0} \u0438 {1}":Iu=="en"||Iu=="en-GB"||Iu=="en-IN"||Iu=="en-XA"?"{0} and {1}":Iu=="gl"||Iu=="it"||Iu=="pt-BR"||Iu=="pt-PT"?"{0} e {1}":"{0} i {1}";Iu==="sq"?(A=A.replace("dhe","e"),J=J.replace("dhe","e")):Iu==="th"?(w=w.replace("{0}"," {0}"),J=J.replace("{0}","{0} "),J=J.replace("{1}"," {1}")):Iu==="ne"?w=",":Iu==="zh-CN"?w="":C.includes(Iu)&&(w=" ");return H.length<2?H.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(Iu)?
H.length===2?J.replace("{0}",H[0]).replace("{1}",H[1]):S.replace("{0}",H[0])+H.slice(1,-1).join(w)+A.replace("{0}",H[H.length-1]):H.join(w)};
$bZ=function(H){var C=H.hours||0,S=H.minutes||0,w=H.seconds||0;C=w+S*60+C*3600+(H.days||0)*86400+(H.weeks||0)*604800+(H.months||0)*2629800+(H.years||0)*31557600;if(C<=0)return{hours:0,minutes:0,seconds:0};H=C;C=Math.floor(H/3600);H%=3600;S=Math.floor(H/60);w=Math.floor(H%60);return{hours:C,minutes:S,seconds:w}};
pP7=function(H){H=(new Intl.NumberFormat("en-u-nu-latn")).format(H);var C=["fr"],S="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(Iu)?H.replace(",","\u00a0"):C.includes(Iu)?H.replace(",","\u202f"):S.includes(Iu)?H.replace(",","."):H};
km7=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
neE=function(){BQ$||(au=Db7,BQ$=new KNU);return BQ$};
t8W=function(H){try{return(new _.x6(5)).format(H)}catch(C){}};
HU=function(H){return{thumbnailOverlayDownloadingRenderer:{state:H}}};
LN0=function(H){if(H=t8W(H))return{thumbnailOverlaySidePanelRenderer:{text:_.cF(H),icon:{iconType:"PLAYLISTS"}}}};
geW=function(){var H=_.fL("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.cF(H),icon:{iconType:"PLAY_ALL"}}}};
UbE=function(H){H=_.i4(H,2);return Iu!=="ru"&&Iu!=="es_419"&&Iu!=="es-419"&&Iu!=="es"&&Iu!=="es_US"&&Iu!=="es-US"&&Iu!=="fr"&&Iu!=="pl"&&Iu!=="it"&&Iu!=="nl"&&Iu!=="uk"&&Iu!=="fr_CA"&&Iu!=="fr-CA"||H===""?H:H[0].toLocaleUpperCase()+H.substring(1)};
IbU=function(H){return function(C){var S=H(),w=_.i4(C,S.dateFormat);C=_.i4(C,S.timeFormat);var A=RlV.DATETIMEFORMATS[S.joinerStyle];A=A.replace(/'(?!')/g,"");A=A.replace("{0}",C);A=A.replace("{1}",w);return S.capitalize(A)}};
abE=function(H){return H?typeof H.seconds==="string"&&(H.nanos===void 0||typeof H.nanos==="number"):!1};
xb7=function(H){return new Date(Number(H.seconds)*1E3+(H.nanos||0)*1E-6)};
_.i4=function(H,C){if(typeof H.getTime==="function")H={date:H};else if(abE(H))H={date:xb7(H)};else if(typeof abE(H.timestamp)&&typeof H.i18nInternalSecondsEastOfUtc==="number")H={date:xb7(H.timestamp),timeZone:Cf(-H.i18nInternalSecondsEastOfUtc/60)};else throw Error("If`"+JSON.stringify(H));var S=H;H=S.date;S=S.timeZone;C=Hw6(C).format(H,S);Iu==="zh-TW"&&(H=S?Number(Hw6("H").format(H,S)):H.getHours(),C=H<5?C.replace("\u4e0a\u5348","\u51cc\u6668"):H<8?C.replace("\u4e0a\u5348","\u65e9\u4e0a"):H<12?
C.replace("\u4e0a\u5348","\u4e0a\u5348"):H<13?C.replace("\u4e0b\u5348","\u4e2d\u5348"):H<19?C.replace("\u4e0b\u5348","\u4e0b\u5348"):C.replace("\u4e0b\u5348","\u665a\u4e0a"));return C};
Hw6=function(H){if(iwE.has(H))return iwE.get(H);var C=CZW(H);C=SAw(C);s_E!==!0&&(s_E=!0);j_Z=!0;j_Z=!1;C=new St(C,RlV);iwE.set(H,C);return C};
CZW=function(H){return(new St(H,RlV)).patternParts_.map(function(C){return C.type===0?"'"+C.text+"'":C.text}).join("")};
SAw=function(H){return Iu==="en"||Iu==="es_US"||Iu==="es-US"?H:H.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(C,S,w){return"H".repeat(S.length)+w})};
YAw=function(H,C){wSZ||(au=Db7,wSZ=new AZZ);var S=wSZ;a:if(H=JZu(H),C=JZu(C||new Date),H>C)S=H.getTime()-C.getTime()>6048E5?_.i4(H,1):FLZ(H);else{for(var w=0;Zw6(H,12*(w+1))<C;)++w;if(w>0)S=S.format(-w,0);else{for(w=0;Zw6(H,w+1)<C;)++w;if(w>0)S=S.format(-w,2);else{H=C.getTime()-H.getTime();C=_.Z(cZE);for(w=C.next();!w.done;w=C.next()){w=w.value;var A=w.unit,J=Math.floor(H/w.unitDuration);if(J>=(w.threshold===void 0?1:w.threshold)){S=S.format(-J,A);break a}}S=S.format(-0,7)}}}return S};
JZu=function(H){if(typeof H.getTime==="function")return H;if(abE(H))return xb7(H);throw Error("Jf`"+JSON.stringify(H));};
Zw6=function(H,C){for(var S=0,w;;++S)if(w=new Date(H.getFullYear(),H.getMonth()+C,H.getDate()-S,H.getHours(),H.getMinutes(),H.getSeconds()),w.getMonth()===(H.getMonth()+C)%12)return w};
_.sx=function(H){return{runs:[{text:H}]}};
_.jt=function(H){if(H&&H.simpleText)return H.simpleText;var C="";if(H&&H.runs)for(var S=0;S<H.runs.length;S++)H.runs[S].text&&(C+=H.runs[S].text);return C};
MxE=function(H,C,S,w){return H.videoEntity&&!H.policyEntity&&S!=="DOWNLOAD_STATE_FAILED"?[HU("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:ou(H.policyEntity)&&C!=="TRANSFER_STATE_FAILED"&&C!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?C==="TRANSFER_STATE_PAUSED_BY_USER"?[HU("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.Oa(C)?[HU("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:H.videoEntity.lengthSeconds?zcp(H.videoEntity.lengthSeconds,w):[]:
[HU("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
zcp=function(H,C){var S=[{thumbnailOverlayTimeStatusRenderer:{text:_.cF(hlV({seconds:H})),style:"DEFAULT"}}];C&&(H=C<=0||H<=0?0:C>=H?100:Math.ceil(C*100/H),H>0&&S.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:H}}));return S};
qAU=function(H,C,S,w,A){if(C==="TRANSFER_STATE_UNKNOWN"||!H)return{};if(_.Oa(C)||C==="TRANSFER_STATE_PRE_TRANSFER")var J=[HU("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var c,Y;if(C==="TRANSFER_STATE_COMPLETE"&&((c=H.mainPlaylistEntity)==null?0:(Y=c.videos)==null?0:Y.length)){if(_.E("web_modern_collections_v2")){var M;var m=(J=H.mainPlaylistEntity)==null?void 0:(M=J.videos)==null?void 0:M.length;J=(J=t8W(m))?{thumbnailOverlayBottomPanelRenderer:{text:_.cF(J),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var W;J=LN0((m=H.mainPlaylistEntity)==null?void 0:(W=m.videos)==null?void 0:W.length)}var y;J=[geW(),Object.assign({},(y=J)!=null?y:{})]}else J=[]}y=J;a:if(C==="TRANSFER_STATE_PRE_TRANSFER")S=Y6(_.fL("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(C==="TRANSFER_STATE_TRANSFER_IN_QUEUE")S=Y6(_.fL("WAITING_TO_DOWNLOAD"));else if(_.Oa(C))S=Math.floor(S*100).toString(),S=Y6(_.fL("DOWNLOADING_PERCENT",{percent:S},"Downloading... "+S+"%"));else{if(w&&(_.E("playlist_is_offline_selector_killswitch")&&
(A=_.JA().resolve(_.Hn).isNetworkAvailable()),A)){S=yoU(_.fL("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),mJ6(w));break a}S=void 0}C=C==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.fL("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},y.length?{thumbnailOverlays:y}:{},S?{viewPlaylistText:S}:{viewPlaylistText:_.sx("")},C.length?{badges:C}:{})};
TcV=function(H,C,S,w,A,J){if(C==="TRANSFER_STATE_UNKNOWN"||!H)return{};if(w==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var c=MxE(H,C,w);if(H.videoEntity&&!H.policyEntity&&w!=="DOWNLOAD_STATE_FAILED"){var Y=_.fL("WAITING_TO_DOWNLOAD");if(Y)return{shortViewCountText:_.sx(Y),publishedTimeText:void 0,thumbnailOverlays:c}}if(!ou(H.policyEntity)){J=H.policyEntity&&!YfV(H.policyEntity)?_.fL("DOWNLOAD_EXPIRED",{},"Download expired"):
_.fL("TRANSFER_FAILED",{},"Download failed");var M;if((M=H.policyEntity)==null?0:M.shortMessageForDisabledAction)J=H.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:Y6(J),publishedTimeText:void 0,thumbnailOverlays:c}}if(C==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.sx(_.fL("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:c};if(C==="TRANSFER_STATE_FAILED"||C==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.sx(_.fL("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:c};if(C==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(M=_.fL("WAITING_TO_DOWNLOAD"),w==="DOWNLOAD_STATE_PAUSED"&&(M=_.fL("DOWNLOAD_PAUSED",{},"Download paused")),M))return{shortViewCountText:_.sx(M),publishedTimeText:void 0,thumbnailOverlays:c};if(_.Oa(C))return H=Math.floor(S*100).toString(),{shortViewCountText:_.sx(_.fL("DOWNLOADING_PERCENT",{percent:H},"Downloading... "+H+"%")),publishedTimeText:void 0,thumbnailOverlays:c};C=void 0;H.videoEntity.publishedTimestampMillis&&
(C=new Date,A&&(C=new Date(A)),C=Y6(YAw(new Date(Number(H.videoEntity.publishedTimestampMillis)),C)));A=[];_.E("kevlar_woffle_badge_killswitch")||(A=[{metadataBadgeRenderer:{label:_.fL("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var m;H=Y6((m=H.videoEntity.localizedStrings)==null?void 0:m.viewCount);return Object.assign({},J?{shortViewCountText:void 0}:{shortViewCountText:H},J?{}:{publishedTimeText:C},{badges:A,thumbnailOverlays:c})};
WLu=function(H,C){H=H===void 0?_.mU$:H;switch(C.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:C.payload.playlistId,inviteLinkURL:C.payload.inviteLinkUrl};default:return H}};
Ncp=function(H,C){H=H===void 0?_.yZW:H;switch(C.type){case "SET_CURRENT_FORM_ID":return C=C.payload.formId,H.currentFormId===C?H:{currentFormId:C,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var S=C.payload;C=S.groupId;S=S.command;if(H.currentFormId){var w=Object.assign({},H.commandsMap);w[C]=S;H=Object.assign({},H,{commandsMap:w})}return H;case "RESET_COMMAND_MAP":return Object.assign({},H,{commandsMap:{}});default:return H}};
E46=function(H,C){H=H===void 0?_.bw0:H;switch(C.type){case "UPDATE_CANVAS_MODE":return Object.assign({},H,{currentMode:C.payload.currentMode});default:return H}};
uPu=function(H,C){H=H===void 0?_.ec7:H;switch(C.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},H,{guideIsExpanded:C.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},H,{scrollAtTop:C.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},H,{guideIsVisibleButNotPersistent:C.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},H,{miniplayerIsActive:C.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},H,{singleOptionSurveyIsActive:C.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},H,{slimlineSurveyRatingSelectedIndex:C.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},H,{richGridMiniMode:C.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},H,{richGridItemsPerRow:C.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},H,{richGridSlimItemsPerRow:C.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},H,{richGridContainerWidth:C.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},H,{richGridStyle:C.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},H,{currentPageType:C.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},H,{inlinePreviewIsActive:C.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},H,{inlinePreviewIsEnabled:C.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},H,{darkModeIsEnabled:C.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
H,{miniplayerPlaybackState:C.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},H,{tabGesturesIsActive:C.payload});case "SET_ONLINE_STATUS":return Object.assign({},H,{isOnline:C.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},H,{chipBarIsSticky:C.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},H,{frostedGlassMode:C.payload});default:return H}};
GHU=function(){return _.E("kevlar_disable_theater_mode_persistence")?!1:_.Bh("START_IN_THEATER_MODE")};
sn0=function(H,C){H=H===void 0?_.SY$:H;switch(C.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},H,{transcription:C.payload});case "SET_OVERLAY_STATE":return Object.assign({},H,{overlay:C.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return H}};
M3i=function(){return Gc(Object.assign({},{continuation:jnu,download:wmu,canvas:E46,reportChannelAbuse:Av7,share:JvZ,talkToRecs:FwZ,ui:uPu,voiceSearch:sn0,watch:Z4i,ypc:cvW,shorts:YYu,radioButtonGroup:Ncp,collabInviteLink:WLu},zvE))};
mh$=function(){return _.E("web_player_entities_middleware")?new wm(M3i(),[qYE,T2u]):new wm(M3i(),[qYE])};
_.AG=function(){Www||(Www=mh$());return Www};
yvE=function(H,C,S){if(H.length)return{titleText:_.cF(C!=null?C:_.fL("DOWNLOADS",void 0,"Downloads")),contents:H.map(function(w){var A=w.videoEntity;w={videoId:A.videoId,title:Y6(A.title),shortBylineText:Y6(w.channelEntity.title),thumbnail:A.thumbnail};var J=A.videoId?Ru(_.AG().getState(),A.videoId):0;A.videoId&&S?w.navigationEndpoint=_.Zy(A.videoId,S,void 0,void 0,J):A.videoId&&(w.navigationEndpoint=TZ7(A.videoId,J,A.lengthSeconds));A.lengthSeconds&&(w.thumbnailOverlays=zcp(A.lengthSeconds,J));return{playlistPanelVideoRenderer:w}}),
totalVideos:H.length}};
N2E=function(H){return(H=(0,_.hb.getValueByKeys)(H,"playlistId"))?{playlistId:H}:null};
b4U=function(){return{}};
ErV=function(H,C){return new _.Es(function(S,w){H.then(function(A){if(A){if(A=C(A))return S(A);w()}},w)})};
evU=function(H){var C,S,w,A=(C=H.contents)==null?void 0:(S=C.twoColumnWatchNextResults)==null?void 0:(w=S.autoplay)==null?void 0:w.autoplay,J,c,Y;C=(J=H.contents)==null?void 0:(c=J.twoColumnWatchNextResults)==null?void 0:(Y=c.playlist)==null?void 0:Y.playlist;return A&&C&&C.playlistId?{rawResponse:H,autoplayRenderer:A,playlistPanelRenderer:C,playlistId:C.playlistId}:null};
GhD=function(H){var C=C===void 0?"UNKNOWN_INTERFACE":C;if(H.length===1)return H[0];var S=uE$[C];if(S){S=new RegExp(S);for(var w=_.Z(H),A=w.next();!A.done;A=w.next())if(A=A.value,S.exec(A))return A}var J=[];Object.entries(uE$).forEach(function(c){var Y=_.Z(c);c=Y.next().value;Y=Y.next().value;C!==c&&J.push(Y)});
S=new RegExp(J.join("|"));H.sort(function(c,Y){return c.length-Y.length});
w=_.Z(H);for(A=w.next();!A.done;A=w.next())if(A=A.value,!S.exec(A))return A;return H[0]};
_.JG=function(H){return"/youtubei/v1/"+GhD(H)};
_.FG=function(H){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:H}}}}};
_.Zo=function(H){return _.FG(_.sx(H))};
f$u=function(H,C){var S={mode:"NORMAL"};H&&(S.autoplayVideo=H.navigationEndpoint,S.nextButtonVideo=H.navigationEndpoint);C&&(S.previousButtonVideo=C.navigationEndpoint);return S};
V37=function(H,C,S){if(!S||!S.sets)return{sets:[f$u(H,C)]};var w=S.sets.find(function(c){return c.mode==="NORMAL"}),A=(0,_.hb.unsafeClone)(S);
if(!w)return A.sets.push(f$u(H,C)),A;if(!H)return S;w=_.hb.getValueByKeys.apply(null,[w].concat(_.k$(vrE)));var J=_.hb.getValueByKeys.apply(null,[H].concat(_.k$(l$Z)));if(w===J)return S;A.sets=A.sets.filter(function(c){return c.mode!=="NORMAL"});
A.sets.push(f$u(H,C));return A};
oru=function(H){return!!H.playlistPanelVideoRenderer&&!H.playlistPanelVideoRenderer.unplayableText};
O40=function(H){return!!H.playlistPanelVideoRenderer&&!!H.playlistPanelVideoRenderer.title};
XmU=function(H,C){if(C.contents&&!(H>=C.contents.length)&&(H=C.contents.slice(H).find(oru)))return H.playlistPanelVideoRenderer};
QnW=function(H,C){if(C.contents)return(C=C.contents.find(function(S){return!!S.playlistPanelVideoRenderer&&S.playlistPanelVideoRenderer.videoId===H}))?C.playlistPanelVideoRenderer:void 0};
dhZ=function(H,C){return C.contents?C.contents.findIndex(function(S){return!!S.playlistPanelVideoRenderer&&S.playlistPanelVideoRenderer.videoId===H}):-1};
PQu=function(H,C){return C.contents?C.contents.findIndex(function(S){return!!S.playlistPanelVideoRenderer&&S.playlistPanelVideoRenderer.playlistSetVideoId===H}):-1};
$hW=function(H,C){H.contents&&C!==-1&&H.contents.splice(C,1).length===1&&H.totalVideos!==void 0&&(--H.totalVideos,delete H.videoCountText)};
_.pmW=function(H){var C=[];if(!H||!H.contents)return C;H=_.Z(H.contents);for(var S=H.next();!S.done;S=H.next())S=S.value,S.playlistPanelVideoRenderer&&S.playlistPanelVideoRenderer.videoId&&C.push(S.playlistPanelVideoRenderer.videoId);return C};
_.khE=function(H){if(H&&H.contents)return(H=H.contents.find(function(C){return!!C.playlistPanelVideoRenderer&&!!C.playlistPanelVideoRenderer.selected})||H.contents[H.currentIndex])?H.playlistPanelVideoRenderer:void 0};
hvu=function(H,C,S,w,A,J,c){A=A===void 0?!1:A;J=J===void 0?!1:J;c=c===void 0?!1:c;if(H.contents&&H.contents.length!==0){w&&(H.contents=H.contents.filter(w));w=H.contents.length;for(var Y=0;Y<w;Y++){var M=H.contents[Y].playlistPanelVideoRenderer;M&&(Y===C?(J&&delete M.menu,M.indexText=_.sx("\u25b6")):A||H.isInfinite||M.indexText===void 0?delete M.indexText:M.indexText=_.sx((Y+1+S).toString()))}H.currentIndex=C+S;c&&(delete H.videoCountText,H.totalVideos=w)}};
_.cU=function(H){H=nr0(H);if(H){var C=H.length;var S=-35%C;S<0&&(S=C+S);H=H.slice(C-S)+H.slice(0,C-S)}else H="";S="";for(C=0;C<H.length&&H[C]!==rvW;C++)S+=H[C];return S};
_.B27=function(H,C){var S=document.body;C=C===void 0?function(Y){return Y}:C;
var w,A=null;H=_.Z(H);for(w=H.next();!w.done;w=H.next()){var J=w.value;w="div";J[2]&&(w=C(J[2]));w=document.createElement(w);A||(A=w);var c=J[0];J=J[1];c&&(w.id=C(c));if(J)for(J=_.Z(J),c=J.next();!c.done;c=J.next())w.classList.add(C(c.value));S.appendChild(w);S=w}return[A,S]};
Dhi=function(H,C){for(var S="",w=0;w<C;w++)S+=H.charAt(Math.floor(Math.random()*H.length));return S};
YF=function(H){return Dhi("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",H)};
z5=function(H){return Dhi("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",H)};
M5=function(H){return Dhi("0123456789",H)};
Kw$=function(){var H=performance.now(),C=new Date;var S="2."+C.getFullYear()+String(C.getMonth()+1).padStart(2,"0")+String(C.getDate()).padStart(2,"0");for(var w,A=Math.floor(Math.random()*11)+15,J=[],c=0;c<A;c++)J.push(Math.floor(Math.random()*26476865)+24547720);w=J.join(",");var Y=YF(10),M=YF(100),m=YF(102),W=YF(106),y=YF(108),N=YF(11),b=YF(1140),u=YF(123),O=YF(14),d=YF(16),p=YF(1900),k=YF(23),R=YF(26),L=YF(34),t=YF(397),g=YF(44),ii=YF(5),FW=YF(72),cZ=YF(74),eZ=YF(75),ND=YF(88),bi=YF(91),pU="rr2---sn-5hnednss rr5---sn-q4fl6nd7 rr1---sn-q4fzenee rr2---sn-ntqe6n76 rr2---sn-aigzrne7 rr3---sn-q4fl6n66 rr2---sn-4g5ednz7 rr5---sn-q4fzen7l rr4---sn-5hne6n6l rr3---sn-5hne6nzd rr3---sn-q4fl6ndl rr3---sn-q4fl6nz7 rr5---sn-q4fzen7s rr3---sn-q4flrnez rr4---sn-q4flrnle rr4---sn-q4flrnsl rr1---sn-q4flrnl7 rr5---sn-aigl6nsd rr3---sn-q4flrn7r rr1---sn-q4fl6n6z".split(" ");
var O$=pU[Math.floor(Math.random()*pU.length)];var R0=(new Date("2010-01-01")).getTime();var m1=(new Date(R0+Math.random()*((new Date).getTime()-R0))).toISOString().split("T")[0];for(var c7,tV=[],Td=0;Td<4;Td++)tV.push(Math.floor(Math.random()*100));c7=tV.join(".");var Mi=Number(M5(5)),fP=Number(M5(6)),eo=Number(M5(7)),Cr=Number(M5(9)),wu=M5(1),xE=M5(10),En=M5(16),So=M5(19),qi=M5(2),H3=M5(20),I2=M5(21),RV=M5(3),YM=M5(4),LP=M5(5),yO=M5(6),lY=M5(7),Gd=M5(8),W3=M5(9);var sM=Dhi("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var M9=[z5(5),z5(5),z5(5)].join("%2C"),QX=[M5(3),M5(5),M5(5)].join("%2C"),P5=z5(0),nP=z5(1),Kr=z5(10),U_=z5(108),Nr=z5(11),ME=z5(12),yX=z5(13),Mz=z5(14),qE=z5(15),NH=z5(16),X6=z5(17),V7=z5(18),kE=z5(19),LU=z5(2),Ni=z5(20),TK=z5(22),XT=z5(23),GK=z5(24),uY=z5(266),e7=z5(3),di=z5(30),bB=z5(34),yb=z5(35),VX=z5(36),dS=z5(4),rP=z5(40),Ks=z5(43),I8=z5(47),xj=z5(5),bR=z5(6),jK=z5(7),Vw=z5(75),gu=z5(8),N9=z5(80),ri=z5(9),J9="https://www."+z5(12)+".com",Yl={},Rp={},Da={},Hb={},o$={},QH={},dJ={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:w}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:S},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+z5(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:S},{key:"client.name",value:"WEB"},{key:"client.fexp",value:w}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:I2+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+z5(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:rP,ypcGetOfflineUpsellEndpoint:{params:N9}},trackingParams:yb+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+O$+".googlevideo.com/videoplayback?expire="+xE+"&ei="+k+"&ip="+c7+"&id=o-AF"+Ks+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+QX+"&mn="+M9+"&ms="+M9+"&mv="+nP+"&mvi="+wu+"&pl="+qi+"&initcwndbps="+lY+"&siu="+wu+"&spc="+g+"&vprv="+wu+"&svpuc="+wu+"&mime=video%2Fmp4&ns="+GK+"&cnr="+qi+"&ratebypass=yes&dur="+Gd+"&lmt="+En+"&mt="+xE+"&fvip=3&c=WEB&txp="+lY+"&n="+d+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:fP,width:640,height:360,lastModified:En,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:lY,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+O$+".googlevideo.com/videoplayback?expire="+xE+"&ei="+k+"&ip="+c7+"&id=o-AF"+Ks+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+QX+"&mn="+
M9+"&ms="+M9+"&mv="+nP+"&mvi="+wu+"&pl="+qi+"&initcwndbps="+lY+"&siu="+wu+"&spc="+g+"&vprv="+wu+"&svpuc="+wu+"&mime=video%2Fmp4&ns="+GK+"&cnr="+qi+"&ratebypass=yes&dur="+Gd+"&lmt="+En+"&mt="+xE+"&fvip=3&c=WEB&txp="+lY+"&n="+d+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+U_+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:fP,width:1280,
height:720,lastModified:En,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:lY,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+O$+".googlevideo.com/videoplayback?expire="+xE+"&ei="+k+"&ip="+c7+"&id=o-AF"+Ks+"&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="+QX+"&mn="+M9+"&ms="+
M9+"&mv="+nP+"&mvi="+wu+"&pl="+qi+"&initcwndbps="+lY+"&siu="+wu+"&spc="+g+"&vprv="+wu+"&svpuc="+wu+"&mime=video%2Fmp4&ns="+GK+"&gir="+e7+"&clen="+W3+"&dur="+Gd+"&lmt="+En+"&mt="+xE+"&fvip=3&keepalive="+e7+"&c=WEB&txp="+lY+"&n="+NH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+M+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:eo,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:RV,end:YM},lastModified:En,contentLength:W3,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:eo,approxDurationMs:lY},{itag:248,url:"https://"+O$+".googlevideo.com/videoplayback?expire="+xE+"&ei="+k+"&ip="+c7+"&id=o-AF"+Ks+"&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="+QX+"&mn="+M9+"&ms="+M9+"&mv="+
nP+"&mvi="+wu+"&pl="+qi+"&initcwndbps="+lY+"&siu="+wu+"&spc="+g+"&vprv="+wu+"&svpuc="+wu+"&mime=video%2Fwebm&ns="+GK+"&gir="+e7+"&clen="+W3+"&dur="+Gd+"&lmt="+En+"&mt="+xE+"&fvip=3&keepalive="+e7+"&c=WEB&txp="+lY+"&n="+NH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+W+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/webm; codecs="vp9"',bitrate:eo,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:RV,end:YM},lastModified:En,contentLength:W3,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:eo,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:lY},{itag:399,url:"https://"+O$+".googlevideo.com/videoplayback?expire="+xE+"&ei="+k+"&ip="+c7+"&id=o-AF"+Ks+"&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="+
QX+"&mn="+M9+"&ms="+M9+"&mv="+nP+"&mvi="+wu+"&pl="+qi+"&initcwndbps="+lY+"&siu="+wu+"&spc="+g+"&vprv="+wu+"&svpuc="+wu+"&mime=video%2Fmp4&ns="+GK+"&gir="+e7+"&clen="+W3+"&dur="+Gd+"&lmt="+En+"&mt="+xE+"&fvip=3&keepalive="+e7+"&c=WEB&txp="+lY+"&n="+NH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+M+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:eo,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:RV,end:YM},lastModified:En,contentLength:W3,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:eo,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:lY},{itag:136,url:"https://"+O$+".googlevideo.com/videoplayback?expire="+xE+"&ei="+k+"&ip="+c7+"&id=o-AF"+Ks+"&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="+
QX+"&mn="+M9+"&ms="+M9+"&mv="+nP+"&mvi="+wu+"&pl="+qi+"&initcwndbps="+lY+"&siu="+wu+"&spc="+g+"&vprv="+wu+"&svpuc="+wu+"&mime=video%2Fmp4&ns="+GK+"&gir="+e7+"&clen="+W3+"&dur="+Gd+"&lmt="+En+"&mt="+xE+"&fvip=3&keepalive="+e7+"&c=WEB&txp="+lY+"&n="+NH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:eo,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:RV,end:YM},lastModified:En,contentLength:W3,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:fP,approxDurationMs:lY},{itag:247,url:"https://"+O$+".googlevideo.com/videoplayback?expire="+xE+"&ei="+k+"&ip="+c7+"&id=o-AF"+Ks+"&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="+QX+"&mn="+
M9+"&ms="+M9+"&mv="+nP+"&mvi="+wu+"&pl="+qi+"&initcwndbps="+lY+"&siu="+wu+"&spc="+g+"&vprv="+wu+"&svpuc="+wu+"&mime=video%2Fwebm&ns="+GK+"&gir="+e7+"&clen="+W3+"&dur="+Gd+"&lmt="+En+"&mt="+xE+"&fvip=3&keepalive="+e7+"&c=WEB&txp="+lY+"&n="+NH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/webm; codecs="vp9"',bitrate:eo,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:RV,end:YM},lastModified:En,contentLength:W3,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:fP,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:lY},{itag:398,url:"https://"+O$+".googlevideo.com/videoplayback?expire="+xE+"&ei="+k+"&ip="+c7+"&id=o-AF"+Ks+"&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="+
QX+"&mn="+M9+"&ms="+M9+"&mv="+nP+"&mvi="+wu+"&pl="+qi+"&initcwndbps="+lY+"&siu="+wu+"&spc="+g+"&vprv="+wu+"&svpuc="+wu+"&mime=video%2Fmp4&ns="+GK+"&gir="+e7+"&clen="+W3+"&dur="+Gd+"&lmt="+En+"&mt="+xE+"&fvip=3&keepalive="+e7+"&c=WEB&txp="+lY+"&n="+NH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:eo,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:RV,end:YM},lastModified:En,contentLength:W3,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:fP,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:lY},{itag:135,url:"https://"+O$+".googlevideo.com/videoplayback?expire="+xE+"&ei="+k+"&ip="+c7+"&id=o-AF"+Ks+"&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="+
QX+"&mn="+M9+"&ms="+M9+"&mv="+nP+"&mvi="+wu+"&pl="+qi+"&initcwndbps="+lY+"&siu="+wu+"&spc="+g+"&vprv="+wu+"&svpuc="+wu+"&mime=video%2Fmp4&ns="+GK+"&gir="+e7+"&clen="+Gd+"&dur="+Gd+"&lmt="+En+"&mt="+xE+"&fvip=3&keepalive="+e7+"&c=WEB&txp="+lY+"&n="+NH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:fP,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:RV,end:YM},lastModified:En,contentLength:Gd,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:fP,approxDurationMs:lY},{itag:244,url:"https://"+O$+".googlevideo.com/videoplayback?expire="+xE+"&ei="+k+"&ip="+c7+"&id=o-AF"+Ks+"&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="+QX+"&mn="+
M9+"&ms="+M9+"&mv="+nP+"&mvi="+wu+"&pl="+qi+"&initcwndbps="+lY+"&siu="+wu+"&spc="+g+"&vprv="+wu+"&svpuc="+wu+"&mime=video%2Fwebm&ns="+GK+"&gir="+e7+"&clen="+Gd+"&dur="+Gd+"&lmt="+En+"&mt="+xE+"&fvip=3&keepalive="+e7+"&c=WEB&txp="+lY+"&n="+NH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+U_+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/webm; codecs="vp9"',bitrate:fP,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:RV,end:YM},lastModified:En,contentLength:Gd,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:fP,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:lY},{itag:397,url:"https://"+O$+".googlevideo.com/videoplayback?expire="+xE+"&ei="+k+"&ip="+c7+"&id=o-AF"+Ks+"&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="+
QX+"&mn="+M9+"&ms="+M9+"&mv="+nP+"&mvi="+wu+"&pl="+qi+"&initcwndbps="+lY+"&siu="+wu+"&spc="+g+"&vprv="+wu+"&svpuc="+wu+"&mime=video%2Fmp4&ns="+GK+"&gir="+e7+"&clen="+Gd+"&dur="+Gd+"&lmt="+En+"&mt="+xE+"&fvip=3&keepalive="+e7+"&c=WEB&txp="+lY+"&n="+NH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+M+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:fP,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:RV,end:YM},lastModified:En,contentLength:Gd,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:fP,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:lY},{itag:134,url:"https://"+O$+".googlevideo.com/videoplayback?expire="+xE+"&ei="+k+"&ip="+c7+"&id=o-AF"+Ks+"&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="+
QX+"&mn="+M9+"&ms="+M9+"&mv="+nP+"&mvi="+wu+"&pl="+qi+"&initcwndbps="+lY+"&siu="+wu+"&spc="+g+"&vprv="+wu+"&svpuc="+wu+"&mime=video%2Fmp4&ns="+GK+"&gir="+e7+"&clen="+Gd+"&dur="+Gd+"&lmt="+En+"&mt="+xE+"&fvip=3&keepalive="+e7+"&c=WEB&txp="+lY+"&n="+NH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:fP,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:RV,end:YM},lastModified:En,contentLength:Gd,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:fP,highReplication:!0,approxDurationMs:lY},{itag:243,url:"https://"+O$+".googlevideo.com/videoplayback?expire="+xE+"&ei="+k+"&ip="+c7+"&id=o-AF"+Ks+"&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="+
QX+"&mn="+M9+"&ms="+M9+"&mv="+nP+"&mvi="+wu+"&pl="+qi+"&initcwndbps="+lY+"&siu="+wu+"&spc="+g+"&vprv="+wu+"&svpuc="+wu+"&mime=video%2Fwebm&ns="+GK+"&gir="+e7+"&clen="+Gd+"&dur="+Gd+"&lmt="+En+"&mt="+xE+"&fvip=3&keepalive="+e7+"&c=WEB&txp="+lY+"&n="+NH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+W+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/webm; codecs="vp9"',bitrate:fP,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:RV,end:YM},lastModified:En,contentLength:Gd,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:fP,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:lY},{itag:396,url:"https://"+O$+".googlevideo.com/videoplayback?expire="+xE+"&ei="+k+"&ip="+c7+"&id=o-AF"+Ks+"&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="+
QX+"&mn="+M9+"&ms="+M9+"&mv="+nP+"&mvi="+wu+"&pl="+qi+"&initcwndbps="+lY+"&siu="+wu+"&spc="+g+"&vprv="+wu+"&svpuc="+wu+"&mime=video%2Fmp4&ns="+GK+"&gir="+e7+"&clen="+Gd+"&dur="+Gd+"&lmt="+En+"&mt="+xE+"&fvip=3&keepalive="+e7+"&c=WEB&txp="+lY+"&n="+NH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:fP,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:RV,end:YM},lastModified:En,contentLength:Gd,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:fP,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:lY},{itag:133,url:"https://"+O$+".googlevideo.com/videoplayback?expire="+xE+"&ei="+k+"&ip="+c7+"&id=o-AF"+Ks+"&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="+
QX+"&mn="+M9+"&ms="+M9+"&mv="+nP+"&mvi="+wu+"&pl="+qi+"&initcwndbps="+lY+"&siu="+wu+"&spc="+g+"&vprv="+wu+"&svpuc="+wu+"&mime=video%2Fmp4&ns="+GK+"&gir="+e7+"&clen="+Gd+"&dur="+Gd+"&lmt="+En+"&mt="+xE+"&fvip=3&keepalive="+e7+"&c=WEB&txp="+lY+"&n="+NH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:fP,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:RV,end:YM},lastModified:En,contentLength:Gd,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:fP,approxDurationMs:lY},{itag:242,url:"https://"+O$+".googlevideo.com/videoplayback?expire="+xE+"&ei="+k+"&ip="+c7+"&id=o-AF"+Ks+"&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="+QX+"&mn="+
M9+"&ms="+M9+"&mv="+nP+"&mvi="+wu+"&pl="+qi+"&initcwndbps="+lY+"&siu="+wu+"&spc="+g+"&vprv="+wu+"&svpuc="+wu+"&mime=video%2Fwebm&ns="+GK+"&gir="+e7+"&clen="+Gd+"&dur="+Gd+"&lmt="+En+"&mt="+xE+"&fvip=3&keepalive="+e7+"&c=WEB&txp="+lY+"&n="+NH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/webm; codecs="vp9"',bitrate:fP,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:RV,end:YM},lastModified:En,contentLength:Gd,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:fP,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:lY},{itag:395,url:"https://"+O$+".googlevideo.com/videoplayback?expire="+xE+"&ei="+k+"&ip="+c7+"&id=o-AF"+Ks+"&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="+
QX+"&mn="+M9+"&ms="+M9+"&mv="+nP+"&mvi="+wu+"&pl="+qi+"&initcwndbps="+lY+"&siu="+wu+"&spc="+g+"&vprv="+wu+"&svpuc="+wu+"&mime=video%2Fmp4&ns="+GK+"&gir="+e7+"&clen="+Gd+"&dur="+Gd+"&lmt="+En+"&mt="+xE+"&fvip=3&keepalive="+e7+"&c=WEB&txp="+lY+"&n="+NH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:fP,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:RV,end:YM},lastModified:En,contentLength:Gd,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:fP,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:lY},{itag:160,url:"https://"+O$+".googlevideo.com/videoplayback?expire="+xE+"&ei="+k+"&ip="+c7+"&id=o-AF"+Ks+"&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="+
QX+"&mn="+M9+"&ms="+M9+"&mv="+nP+"&mvi="+wu+"&pl="+qi+"&initcwndbps="+lY+"&siu="+wu+"&spc="+g+"&vprv="+wu+"&svpuc="+wu+"&mime=video%2Fmp4&ns="+GK+"&gir="+e7+"&clen="+Gd+"&dur="+Gd+"&lmt="+En+"&mt="+xE+"&fvip=3&keepalive="+e7+"&c=WEB&txp="+lY+"&n="+NH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+W+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:fP,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:RV,end:YM},lastModified:En,contentLength:Gd,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Mi,approxDurationMs:lY},{itag:278,url:"https://"+O$+".googlevideo.com/videoplayback?expire="+xE+"&ei="+k+"&ip="+c7+"&id=o-AF"+Ks+"&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="+QX+"&mn="+
M9+"&ms="+M9+"&mv="+nP+"&mvi="+wu+"&pl="+qi+"&initcwndbps="+lY+"&siu="+wu+"&spc="+g+"&vprv="+wu+"&svpuc="+wu+"&mime=video%2Fwebm&ns="+GK+"&gir="+e7+"&clen="+Gd+"&dur="+Gd+"&lmt="+En+"&mt="+xE+"&fvip=3&keepalive="+e7+"&c=WEB&txp="+lY+"&n="+NH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/webm; codecs="vp9"',bitrate:fP,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:RV,end:YM},lastModified:En,contentLength:Gd,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Mi,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:lY},{itag:394,url:"https://"+O$+".googlevideo.com/videoplayback?expire="+xE+"&ei="+k+"&ip="+c7+"&id=o-AF"+Ks+"&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="+
QX+"&mn="+M9+"&ms="+M9+"&mv="+nP+"&mvi="+wu+"&pl="+qi+"&initcwndbps="+lY+"&siu="+wu+"&spc="+g+"&vprv="+wu+"&svpuc="+wu+"&mime=video%2Fmp4&ns="+GK+"&gir="+e7+"&clen="+Gd+"&dur="+Gd+"&lmt="+En+"&mt="+xE+"&fvip=3&keepalive="+e7+"&c=WEB&txp="+lY+"&n="+NH+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+M+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Mi,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:RV,end:YM},lastModified:En,contentLength:Gd,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Mi,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:lY},{itag:140,url:"https://"+O$+".googlevideo.com/videoplayback?expire="+xE+"&ei="+k+"&ip="+c7+"&id=o-AF"+Ks+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
QX+"&mn="+M9+"&ms="+M9+"&mv="+nP+"&mvi="+wu+"&pl="+qi+"&initcwndbps="+lY+"&siu="+wu+"&spc="+g+"&vprv="+wu+"&svpuc="+wu+"&mime=audio%2Fmp4&ns="+GK+"&gir="+e7+"&clen="+Gd+"&dur="+Gd+"&lmt="+En+"&mt="+xE+"&fvip=3&keepalive="+e7+"&c=WEB&txp="+lY+"&n="+NH+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+W+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:fP,
initRange:{start:"0",end:"631"},indexRange:{start:RV,end:YM},lastModified:En,contentLength:Gd,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:fP,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:lY,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+O$+".googlevideo.com/videoplayback?expire="+xE+"&ei="+k+"&ip="+c7+"&id=o-AF"+Ks+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+QX+"&mn="+M9+"&ms="+M9+"&mv="+nP+"&mvi="+wu+"&pl="+
qi+"&initcwndbps="+lY+"&siu="+wu+"&spc="+g+"&vprv="+wu+"&svpuc="+wu+"&mime=audio%2Fwebm&ns="+GK+"&gir="+e7+"&clen="+lY+"&dur="+Gd+"&lmt="+En+"&mt="+xE+"&fvip=3&keepalive="+e7+"&c=WEB&txp="+lY+"&n="+NH+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+W+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'audio/webm; codecs="opus"',bitrate:Mi,initRange:{start:"0",end:"265"},indexRange:{start:RV,
end:YM},lastModified:En,contentLength:lY,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Mi,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:lY,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+O$+".googlevideo.com/videoplayback?expire="+xE+"&ei="+k+"&ip="+c7+"&id=o-AF"+Ks+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+QX+"&mn="+M9+"&ms="+M9+"&mv="+nP+"&mvi="+wu+"&pl="+qi+"&initcwndbps="+lY+"&siu="+wu+"&spc="+g+"&vprv="+wu+"&svpuc="+wu+"&mime=audio%2Fwebm&ns="+
GK+"&gir="+e7+"&clen="+lY+"&dur="+Gd+"&lmt="+En+"&mt="+xE+"&fvip=3&keepalive="+e7+"&c=WEB&txp="+lY+"&n="+NH+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+W+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'audio/webm; codecs="opus"',bitrate:Mi,initRange:{start:"0",end:"265"},indexRange:{start:RV,end:YM},lastModified:En,contentLength:lY,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Mi,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:lY,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+O$+".googlevideo.com/videoplayback?expire="+xE+"&ei="+k+"&ip="+c7+"&id=o-AF"+Ks+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+QX+"&mn="+M9+"&ms="+M9+"&mv="+nP+"&mvi="+wu+"&pl="+qi+"&initcwndbps="+lY+"&siu="+wu+"&spc="+g+"&vprv="+wu+"&svpuc="+wu+"&mime=audio%2Fwebm&ns="+GK+"&gir="+e7+"&clen="+Gd+"&dur="+Gd+"&lmt="+En+"&mt="+xE+"&fvip=3&keepalive="+e7+"&c=WEB&txp="+
lY+"&n="+NH+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+M+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+y,mimeType:'audio/webm; codecs="opus"',bitrate:fP,initRange:{start:"0",end:"265"},indexRange:{start:RV,end:YM},lastModified:En,contentLength:Gd,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:fP,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:lY,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="+W3+"&docid="+N+"&ei="+k+"&feature="+Y+"&fexp="+P5+"&ns="+LU+"&plid="+d+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+nP+"&el="+Kr+"&len="+YM+"&of="+TK+
"&uga="+qi+"&vm="+uY},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+W3+"&docid="+N+"&ei="+k+"&feature="+Y+"&fexp="+P5+"&ns="+LU+"&plid="+d+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+nP+"&el="+Kr+"&len="+YM+"&of="+TK+"&uga="+qi+"&vm="+uY},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+W3+"&docid="+N+"&ei="+k+"&feature="+Y+"&fexp="+P5+"&ns="+LU+"&plid="+d+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
nP+"&el="+Kr+"&len="+YM+"&of="+TK+"&uga="+qi+"&vm="+uY},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+k+"&m="+ND+"&oid="+TK+"&plid="+d+"&pltype="+jK+"&ptchn="+TK+"&ptk="+O+"&video_id="+N},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+W3+"&docid="+N+"&ei="+k+"&event="+Mz+"&feature="+Y+"&fexp="+P5+"&ns="+LU+"&plid="+d+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+nP},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?ns=yt&el=detailpage&cpn="+
NH+"&ver=2&cmt="+LP+"&fmt="+RV+"&fs="+wu+"&rt="+LP+"&lact="+RV+"&cl="+W3+"&mos="+wu+"&volume=100&cbrand="+xj+"&cbr="+bR+"&cbrver="+c7+"&c=WEB&cver="+S+"&cplayer=UNIPLAYER&cos="+ri+"&cosver="+lY+"&cplatform=DESKTOP&hl=en_US&cr=US&uga="+qi+"&len="+Gd+"&fexp="+M9+"&feature=g-high-rec&afmt="+RV+"&muted=0&conn=1&docid="+N+"&ei="+k+"&plid="+d+"&vm="+z5(191),elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+
N+"&caps="+e7+"&opi="+W3+"&xoaf="+wu+"&hl="+LU+"&ip="+c7+"&ipbits="+wu+"&expire="+xE+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+c7+"&key="+e7+"&lang="+ii,name:{simpleText:xj},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+N+"&caps="+e7+"&opi="+W3+"&xoaf="+wu+"&hl="+LU+"&ip="+c7+"&ipbits="+wu+"&expire="+xE+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+c7+"&key="+e7+"&kind="+e7+"&lang="+LU,name:{simpleText:qE},
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:Nr,title:kE,lengthSeconds:"1155",keywords:[qE,bR,qE,gu],channelId:GK,isOwnerViewing:!1,shortDescription:yX,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+N+"/hqdefault.jpg?sqp=-oaymwE"+VX+"G&rs="+bB,width:168,height:94},{url:"https://i.ytimg.com/vi/"+N+"/hqdefault.jpg?sqp=-oaymwE"+VX+
"G&rs="+bB,width:196,height:110},{url:"https://i.ytimg.com/vi/"+N+"/hqdefault.jpg?sqp=-oaymwE"+VX+"G&rs="+L,width:246,height:138},{url:"https://i.ytimg.com/vi/"+N+"/hqdefault.jpg?sqp=-oaymwE"+VX+"G&rs="+L,width:336,height:188},{url:"https://i.ytimg.com/vi/"+N+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:lY,author:yX,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:lY,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+
TK+"/featured_channel.jpg?v="+gu,width:40,height:40}]},trackingParams:yb+"=",navigationEndpoint:{clickTrackingParams:rP,commandMetadata:{webCommandMetadata:{url:"/channel/"+GK,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:GK}},channelName:yX,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:gu}]},subscribed:!1,enabled:!0,type:"FREE",channelId:GK,showPreferences:!1,subscribedButtonText:{runs:[{text:Ni}]},unsubscribedButtonText:{runs:[{text:Kr}]},
trackingParams:yb+"=",unsubscribeButtonText:{runs:[{text:gu}]},serviceEndpoints:[{clickTrackingParams:rP,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[GK],params:gu}},{clickTrackingParams:rP,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:rP,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:yb+"=",dialogMessages:[{runs:[{text:gu},
{text:gu},{text:X6}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:dS}]},serviceEndpoint:{clickTrackingParams:rP,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[GK],params:gu}},accessibility:{label:kE},trackingParams:yb+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:X6}]},accessibility:{label:X6},
trackingParams:yb+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:Kr}},unsubscribeAccessibility:{accessibilityData:{label:xj}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:Gd},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,
readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:rP,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},subscribeCommand:{clickTrackingParams:rP,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[GK],
params:gu}},unsubscribeCommand:{clickTrackingParams:rP,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[GK],params:gu}},addToWatchLaterCommand:{clickTrackingParams:rP,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:Nr,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:rP,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:Nr}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+N+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+VX+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+N+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+Nr,width:1280,
height:720},title:{simpleText:Kr},description:{simpleText:X6},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+jK,externalChannelId:GK,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:lY,category:"Travel & Events",publishDate:m1,ownerChannelName:yX,uploadDate:m1}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:gu},trackingParams:yb+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:rP,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:yb+"="}}],headerText:{simpleText:ri},icon:{infoCardIconRenderer:{trackingParams:yb+"="}},closeButton:{infoCardIconRenderer:{trackingParams:yb+"="}},trackingParams:yb+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:yb+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+Nr+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:sM,interpreterSafeUrl:(Yl.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+di+".js",Yl),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:ME},{text:Kr,bold:!0}]},endpoint:{clickTrackingParams:rP,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:yb+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:yX}]},actionButton:{buttonRenderer:{text:{runs:[{text:gu}]},navigationEndpoint:{clickTrackingParams:rP,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+N,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
N,target:"TARGET_NEW_WINDOW"}},trackingParams:yb+"="}},trackingParams:yb+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+FW+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+FW+"=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:lY,endMs:lY,title:{accessibility:{accessibilityData:{label:Ni}},simpleText:bR},metadata:{simpleText:ME},callToAction:{simpleText:ME},dismiss:{simpleText:ME},endpoint:{clickTrackingParams:rP,commandMetadata:{webCommandMetadata:{url:"/channel/"+GK,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:GK}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:dS}]},subscribed:!1,enabled:!0,type:"FREE",channelId:GK,showPreferences:!1,
subscribedButtonText:{runs:[{text:Ni}]},unsubscribedButtonText:{runs:[{text:V7}]},trackingParams:yb+"=",unsubscribeButtonText:{runs:[{text:Ni}]},serviceEndpoints:[{clickTrackingParams:rP,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[GK],params:gu}},{clickTrackingParams:rP,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:rP,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:yb+
"=",dialogMessages:[{runs:[{text:NH},{text:gu},{text:dS}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:X6}]},serviceEndpoint:{clickTrackingParams:rP,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[GK],params:gu}},accessibility:{label:xj},trackingParams:yb+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:qE}]},
accessibility:{label:Mz},trackingParams:yb+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:bR}},unsubscribeAccessibility:{accessibilityData:{label:dS}}}},trackingParams:yb+"=",isSubscribe:!0,id:H3}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+N+"/hqdefault.jpg?sqp=-oaymwE"+VX+"G&rs="+L,width:168,height:94},{url:"https://i.ytimg.com/vi/"+N+"/hqdefault.jpg?sqp=-oaymwE"+VX+"G&rs="+bB,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+N+"/hqdefault.jpg?sqp=-oaymwE"+VX+"G&rs="+L,width:246,height:138},{url:"https://i.ytimg.com/vi/"+N+"/hqdefault.jpg?sqp=-oaymwE"+VX+"G&rs="+L,width:336,height:188},{url:"https://i.ytimg.com/vi/"+N+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:lY,endMs:lY,title:{accessibility:{accessibilityData:{label:ME}},simpleText:jK},metadata:{simpleText:X6},endpoint:{clickTrackingParams:rP,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
Nr,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:Nr,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+O$+".googlevideo.com/videoplayback?source=youtube&oeis="+wu+"&c=WEB&oad="+YM+"&ovd="+YM+"&oaad="+LP+"&oavd="+LP+"&ocs="+RV+"&oewis="+wu+"&oputc="+wu+"&ofpcc="+wu+"&siu="+wu+"&msp="+wu+"&odepv="+wu+
"&id=o-AF"+Ks+"&ip="+c7+"&initcwndbps="+lY+"&mt="+xE+"&oweuc="+P5}}}}},trackingParams:yb+"=",id:H3,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:X6}},simpleText:Ni},style:"DEFAULT"}}]}}],startMs:lY,trackingParams:yb+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:wu,offsetEndMilliseconds:LP},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+W3+";dc_trk_cid="+W3+";dc_dbm_token="+y+";ord="+xE+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+wu+";dc_rui="+wu+";dc_exteid="+H3+";dc_av="+RV+";dc_sk="+wu+";dc_ctype="+qi+";dc_ref=http://www.youtube.com/video/"+Nr+";dc_pubid="+wu+";dc_btype=23?gclid="+bi+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
b+"____________"+u+"AxAA&sigh="+Nr+"&cid="+R+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+wu+"&ns="+wu+"&event="+wu+"&device="+wu+"&content_v="+N+"&el="+Kr+"&ei="+k+"&devicever="+S+"&bti="+lY+"&format="+yO+"&break_type="+wu+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+wu+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+c7+"&slot_pos="+wu+"&slot_len="+wu+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+QX+"&ad_len="+LP+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
Nr+"&aqi="+k+"&ad_rmp="+wu+"&sli="+wu}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+u+"AxAA&sigh="+N+"&cid="+R+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+u+"AxAA&sigh="+N+"&cid="+R+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wu+";dc_exteid="+H3+";met="+wu+";ecn"+wu+"="+wu+
";etm1="+wu+";eid1="+qi+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+u+"AxAA&sigh="+N+"&cid="+R+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wu+";dc_exteid="+H3+";met="+wu+";ecn"+wu+"="+wu+";etm1="+wu+";eid1="+yO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
b+"____________"+u+"AxAA&sigh="+N+"&cid="+R+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wu+";dc_exteid="+H3+";met="+wu+";ecn"+wu+"="+wu+";etm1="+wu+";eid1="+qi+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+u+"AxAA&sigh="+N+"&cid="+R+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+u+"AxAA&sigh="+N+"&cid="+R+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wu+";dc_exteid="+H3+";met="+wu+";ecn"+wu+"="+wu+";etm1="+wu+";eid1="+qi+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+u+"AxAA&sigh="+N+"&cid="+R+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wu+";dc_exteid="+H3+";met="+wu+";ecn"+wu+"="+wu+";etm1="+wu+";eid1="+lY+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+u+"AxAA&sigh="+N+"&cid="+R+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
b+"____________"+u+"AxAA&sigh="+N+"&cid="+R+"&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"+b+"____________"+u+"AxAA&ase=2&num="+wu+"&cid="+R+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+J9+"&ctype="+RV+"&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"+
b+"____________"+u+"AxAA&ase=2&num="+wu+"&cid="+R+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+J9+"&label=video_engaged_view&ctype="+RV+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wu+";dc_exteid="+H3+";met="+wu+";ecn"+wu+"="+wu+";etm1="+wu+";eid1="+yO+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
W3+";dc_trk_cid="+W3+";dc_dbm_token="+y+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+wu+";ord="+W3+";dc_rui="+wu+";dc_exteid="+So+";dc_av="+wu+";dc_sk="+wu+";dc_ctype="+qi+";dc_pubid="+wu+";dc_btype=3?gclid="+bi+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+u+"AxAA&sigh="+N+"&cid="+R+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wu+";dc_exteid="+H3+";met="+wu+";ecn"+wu+"="+wu+";etm1="+wu+";eid1="+qi+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+m+"&sig="+XT+"&ad_cpn=[AD_CPN]&id="+bR+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+bR+"&dc_pubid="+wu+"&dc_exteid="+H3+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+u+"AxAA&sigh="+N+"&cid="+R+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+m+"&sig="+XT+"&ad_cpn=[AD_CPN]&id="+bR+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+wu},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+bR+"&avm="+wu+"&dc_pubid="+wu+"&dc_exteid="+
H3+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+u+"AxAA&sigh="+N+"&cid="+R+"&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="+wu+";dc_exteid="+H3+";met="+wu+";ecn"+wu+"="+wu+";etm1="+wu+";eid1="+qi+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
m+"&sig="+XT+"&ad_cpn=[AD_CPN]&id="+bR+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+wu},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+bR+"&dc_pubid="+wu+"&dc_exteid="+H3+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wu+";dc_exteid="+H3+";met="+wu+";ecn"+wu+"="+wu+";etm1="+wu+";eid1="+qi+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
wu+";dc_exteid="+H3+";met="+wu+";ecn"+wu+"="+wu+";etm1="+wu+";eid1="+yO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wu+";dc_exteid="+H3+";met="+wu+";ecn"+wu+"="+wu+";etm1="+wu+";eid1="+qi+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wu+";dc_exteid="+H3+";met="+wu+";ecn"+wu+"="+wu+";etm1="+wu+";eid1="+yO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+u+"AxAA&sigh="+N+"&cid="+R+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wu+";dc_exteid="+H3+";met="+wu+";ecn"+wu+"="+wu+";etm1="+wu+";eid1="+qi+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:rP,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+u+"AxAA&ase=2&num="+wu+"&cid="+R+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+RV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+u+"AxAA&ase=2&num="+wu+"&cid="+R+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+
RV+"&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/"+N+"/mqdefault.jpg",width:320,height:180}]},trackingParams:yb+"="},trackingParams:yb+
"=",templatedCountdown:{templatedAdText:{text:bR,isTemplated:!0,trackingParams:yb+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:X6,isTemplated:!1,trackingParams:yb+"="},trackingParams:yb+"="}},trackingParams:yb+"=",skipOffsetMilliseconds:5E3}},trackingParams:yb+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:dS},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:rP,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
b+"____________"+u+"AxAA&ase=2&num="+wu+"&cid="+R+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+RV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+u+"AxAA&ase=2&num="+wu+"&cid="+R+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+RV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:yb+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:kE,isTemplated:!1,trackingParams:yb+"="},trackingParams:yb+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:ME,isTemplated:!0,trackingParams:yb+"="}},trackingParams:yb+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:rP,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Rp.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+p+"&hl="+LU+"&origin=www.youtube.com&ata_theme="+dS,Rp),trackingParams:yb+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:yb+"="}},hoverText:{runs:[{text:Mz}]},trackingParams:yb+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+I8+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:yb+"="},headline:{text:Kr,isTemplated:!1,trackingParams:yb+"="},description:{text:yX,
trackingParams:yb+"="},actionButton:{buttonRenderer:{text:{simpleText:Mz},navigationEndpoint:{clickTrackingParams:rP,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+W3+";dc_trk_cid="+W3+";dc_dbm_token="+y+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+wu+";ord="+W3+";dc_rui="+wu+";dc_exteid="+H3+";dc_av="+wu+";dc_sk="+wu+";dc_ctype="+qi+";dc_pubid="+wu+";dc_btype=3?gclid="+bi+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
b+"____________"+u+"AxAA&ase=2&num="+wu+"&cid="+R+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+RV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+u+"AxAA&ase=2&num="+wu+"&cid="+R+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+RV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:yb+"="}},startMs:wu,trackingParams:yb+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Mz},elementId:kE}},elementId:Ni,trackingParams:yb+"=",legacyInfoCardVastExtension:gu,sodarExtensionData:{siub:X6,bgub:qE,scs:dS,bgp:xj},externalVideoId:Nr,adLayoutLoggingData:{serializedAdServingDataEntry:Mz},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+I8+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:yb+"="},
headline:{text:Ni,isTemplated:!1,trackingParams:yb+"="},description:{text:Nr,isTemplated:!1,trackingParams:yb+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:qE},navigationEndpoint:{clickTrackingParams:rP,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+W3+";dc_trk_cid="+W3+";dc_dbm_token="+y+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+wu+";ord="+W3+";dc_rui="+wu+";dc_exteid="+
H3+";dc_av="+wu+";dc_sk="+wu+";dc_ctype="+qi+";dc_pubid="+wu+";dc_btype=3?gclid="+bi+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+u+"AxAA&ase=2&num="+wu+"&cid="+R+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+RV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+u+"AxAA&ase=2&num="+
wu+"&cid="+R+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+RV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:yb+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:yb+"="}},navigationEndpoint:{clickTrackingParams:rP,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+W3+";dc_trk_cid="+
W3+";dc_dbm_token="+y+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+wu+";ord="+W3+";dc_rui="+wu+";dc_exteid="+H3+";dc_av="+wu+";dc_sk="+wu+";dc_ctype="+qi+";dc_pubid="+wu+";dc_btype=3?gclid="+bi+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+u+"AxAA&sigh="+N+"&cid="+R+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+
u+"AxAA&ase=2&num="+wu+"&cid="+R+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+RV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+u+"AxAA&ase=2&num="+wu+"&cid="+R+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+RV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:yb+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:yb+"="},abandonCommands:{commands:[{clickTrackingParams:rP,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+u+"AxAA&sigh="+N+"&cid="+R+"&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="+wu+";dc_exteid="+H3+";met="+wu+";ecn"+
wu+"="+wu+";etm1="+wu+";eid1="+qi+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:rP,commandExecutorCommand:{commands:[{clickTrackingParams:rP,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+u+"AxAA&sigh="+N+"&cid="+R+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:kE,isTemplated:!1,trackingParams:yb+
"="},trackingParams:yb+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:dS},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+u+"AxAA&sigh="+N+"&cid="+R+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wu+";dc_exteid="+H3+";met="+wu+";ecn"+wu+"="+wu+";etm1="+wu+";eid1="+lY+";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="+W3+";dc_trk_cid="+W3+";ord="+xE+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+wu+";dc_rui="+wu+";dc_exteid="+H3+";dc_av="+RV+";dc_sk="+wu+";dc_ctype="+qi+";dc_ref=http://www.youtube.com/video/"+Nr+";dc_pubid="+wu+";dc_btype=23?gclid="+bi+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+b+"____________"+u+"AxAA&sigh="+Nr+"&cid="+R+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+wu+"&ns="+wu+"&event="+wu+"&device="+wu+"&content_v="+N+"&el="+Kr+"&ei="+k+"&devicever="+S+"&bti="+lY+"&format="+yO+"&break_type="+wu+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+wu+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+c7+"&slot_pos="+wu+"&slot_len="+wu+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
QX+"&ad_len="+LP+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+Nr+"&aqi="+k+"&ad_rmp="+wu+"&sli="+wu}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+u+"AxAA&sigh="+Nr+"&cid="+R+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+u+"AxAA&sigh="+Nr+"&cid="+R+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
wu+";dc_exteid="+H3+";met="+wu+";ecn"+wu+"="+wu+";etm1="+wu+";eid1="+qi+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+u+"AxAA&sigh="+Nr+"&cid="+R+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wu+";dc_exteid="+H3+";met="+wu+";ecn"+wu+"="+wu+";etm1="+wu+";eid1="+yO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+u+"AxAA&sigh="+Nr+"&cid="+R+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wu+";dc_exteid="+H3+";met="+wu+";ecn"+wu+"="+wu+";etm1="+wu+";eid1="+qi+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+u+"AxAA&sigh="+Nr+"&cid="+
R+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+u+"AxAA&sigh="+Nr+"&cid="+R+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wu+";dc_exteid="+H3+";met="+wu+";ecn"+wu+"="+wu+";etm1="+wu+";eid1="+qi+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
b+"____________"+u+"AxAA&sigh="+Nr+"&cid="+R+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wu+";dc_exteid="+H3+";met="+wu+";ecn"+wu+"="+wu+";etm1="+wu+";eid1="+lY+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+u+"AxAA&sigh="+Nr+"&cid="+R+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+u+"AxAA&sigh="+Nr+"&cid="+R+"&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"+b+"____________"+u+"AxAA&ase=2&num="+wu+"&cid="+R+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+J9+"&ctype="+RV+"&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"+b+"____________"+u+"AxAA&ase=2&num="+wu+"&cid="+R+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+J9+"&label=video_engaged_view&ctype="+RV+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wu+";dc_exteid="+H3+";met="+wu+";ecn"+wu+"="+wu+";etm1="+wu+";eid1="+yO+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+u+"AxAA&sigh="+Nr+"&cid="+R+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wu+";dc_exteid="+H3+";met="+wu+";ecn"+wu+"="+wu+";etm1="+wu+";eid1="+qi+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+m+"&sig="+XT+"&ad_cpn=[AD_CPN]&id="+
bR+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+bR+"&dc_pubid="+wu+"&dc_exteid="+H3+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+u+"AxAA&sigh="+Nr+"&cid="+R+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+m+
"&sig="+XT+"&ad_cpn=[AD_CPN]&id="+bR+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+wu},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+bR+"&avm="+wu+"&dc_pubid="+wu+"&dc_exteid="+H3+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+u+"AxAA&sigh="+Nr+"&cid="+R+"&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="+wu+";dc_exteid="+H3+";met="+wu+";ecn"+wu+"="+wu+";etm1="+wu+";eid1="+qi+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+m+"&sig="+XT+"&ad_cpn=[AD_CPN]&id="+bR+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+wu},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+bR+"&dc_pubid="+wu+"&dc_exteid="+H3+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wu+";dc_exteid="+H3+";met="+wu+";ecn"+wu+"="+wu+";etm1="+wu+";eid1="+qi+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wu+";dc_exteid="+H3+";met="+wu+";ecn"+wu+"="+wu+";etm1="+wu+";eid1="+yO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
wu+";dc_exteid="+H3+";met="+wu+";ecn"+wu+"="+wu+";etm1="+wu+";eid1="+qi+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wu+";dc_exteid="+H3+";met="+wu+";ecn"+wu+"="+wu+";etm1="+wu+";eid1="+yO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+u+"AxAA&sigh="+Nr+"&cid="+R+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wu+";dc_exteid="+H3+";met="+wu+";ecn"+wu+"="+wu+";etm1="+wu+";eid1="+qi+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:rP,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+u+"AxAA&ase=2&num="+wu+"&cid="+R+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+
RV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+u+"AxAA&ase=2&num="+wu+"&cid="+R+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+RV+"&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/"+N+"/mqdefault.jpg",width:320,height:180}]},trackingParams:yb+"="},trackingParams:yb+"=",templatedCountdown:{templatedAdText:{text:jK,isTemplated:!0,trackingParams:yb+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:dS,isTemplated:!1,trackingParams:yb+"="},trackingParams:yb+"="}},
trackingParams:yb+"=",skipOffsetMilliseconds:5E3}},trackingParams:yb+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:NH},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:rP,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+u+"AxAA&ase=2&num="+wu+"&cid="+R+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+RV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+u+"AxAA&ase=2&num="+wu+"&cid="+R+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+RV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:yb+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:gu,isTemplated:!1,trackingParams:yb+"="},trackingParams:yb+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:dS,
isTemplated:!0,trackingParams:yb+"="}},trackingParams:yb+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:rP,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Da.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+p+"&hl="+LU+"&origin=www.youtube.com&ata_theme="+dS,Da),trackingParams:yb+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:yb+"="}},hoverText:{runs:[{text:Nr}]},trackingParams:yb+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+cZ+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:yb+"="},headline:{text:Mz,isTemplated:!1,trackingParams:yb+"="},description:{text:gu,trackingParams:yb+"="},actionButton:{buttonRenderer:{text:{simpleText:ri},navigationEndpoint:{clickTrackingParams:rP,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
b+"____________"+u+"AxAA&ase=2&num="+wu+"&cid="+R+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+RV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+u+"AxAA&ase=2&num="+wu+"&cid="+R+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+RV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:yb+"="}},startMs:wu,trackingParams:yb+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:dS},elementId:jK}},elementId:gu,trackingParams:yb+"=",legacyInfoCardVastExtension:bR,sodarExtensionData:{siub:yX,bgub:kE,scs:NH,bgp:Nr},externalVideoId:Nr,adLayoutLoggingData:{serializedAdServingDataEntry:dS},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+cZ+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:yb+"="},headline:{text:bR,
isTemplated:!1,trackingParams:yb+"="},description:{text:Nr,isTemplated:!1,trackingParams:yb+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:ME},navigationEndpoint:{clickTrackingParams:rP,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+u+"AxAA&ase=2&num="+wu+"&cid="+R+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+RV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+u+"AxAA&ase=2&num="+wu+"&cid="+R+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+RV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:yb+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:yb+"="}},navigationEndpoint:{clickTrackingParams:rP,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
b+"____________"+u+"AxAA&sigh="+Nr+"&cid="+R+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+u+"AxAA&ase=2&num="+wu+"&cid="+R+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+RV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+u+"AxAA&ase=2&num="+
wu+"&cid="+R+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+RV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:yb+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:yb+"="},abandonCommands:{commands:[{clickTrackingParams:rP,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+u+"AxAA&sigh="+Nr+"&cid="+R+"&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="+wu+";dc_exteid="+H3+";met="+wu+";ecn"+wu+"="+wu+";etm1="+wu+";eid1="+qi+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:rP,commandExecutorCommand:{commands:[{clickTrackingParams:rP,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+u+"AxAA&sigh="+Nr+"&cid="+R+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:gu,isTemplated:!1,trackingParams:yb+"="},trackingParams:yb+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:V7},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+u+"AxAA&sigh="+Nr+"&cid="+R+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wu+";dc_exteid="+H3+";met="+wu+";ecn"+wu+"="+wu+";etm1="+wu+";eid1="+
lY+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:V7}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Kr}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:LP,offsetEndMilliseconds:yO},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+k+"&m_pos="+qi+"&token=ALHj"+t+"&index="+wu+"&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="+S+"&m_pos_ms="+LP}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Ni}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:yO,offsetEndMilliseconds:yO},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+k+"&m_pos="+RV+"&token=ALHj"+t+"&index="+wu+"&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="+
S+"&m_pos_ms="+yO}},adSlotLoggingData:{serializedSlotAdServingDataEntry:xj}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:yO,offsetEndMilliseconds:yO},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+k+"&m_pos="+RV+"&token=ALHj"+t+"&index="+wu+"&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="+
S+"&m_pos_ms="+yO}},adSlotLoggingData:{serializedSlotAdServingDataEntry:gu}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:yO,offsetEndMilliseconds:yO},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+k+"&m_pos="+RV+"&token=ALHj"+t+"&index="+wu+"&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="+
S+"&m_pos_ms="+yO}},adSlotLoggingData:{serializedSlotAdServingDataEntry:V7}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:yO,offsetEndMilliseconds:qi},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+k+"&m_pos="+RV+"&token=ALHj"+t+"&index="+wu+"&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="+
S+"&m_pos_ms="+yO}},adSlotLoggingData:{serializedSlotAdServingDataEntry:gu}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:qi,offsetEndMilliseconds:qi},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+k+"&m_pos="+qi+"&token=ALHj"+t+"&index="+wu+"&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="+
S+"&m_pos_ms="+qi}},adSlotLoggingData:{serializedSlotAdServingDataEntry:yX}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Nr,isTemplated:!1,trackingParams:yb+"="},description:{text:dS,isTemplated:!1,trackingParams:yb+"="},actionButton:{buttonRenderer:{text:{simpleText:dS},navigationEndpoint:{clickTrackingParams:rP,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
W3+";dc_trk_cid="+W3+";dc_dbm_token="+y+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+wu+";ord="+W3+";dc_rui="+wu+";dc_exteid="+H3+";dc_av="+wu+";dc_sk="+wu+";dc_ctype="+qi+";dc_pubid="+wu+";dc_btype=3?gclid="+bi+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+u+"AxAA&ase=2&num="+wu+"&cid="+R+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+RV+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+u+"AxAA&ase=2&num="+wu+"&cid="+R+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+RV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:yb+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+I8+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:yb+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+eZ+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:yb+"="},navigationEndpoint:{clickTrackingParams:rP,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+W3+";dc_trk_cid="+W3+";dc_dbm_token="+y+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+wu+";ord="+W3+
";dc_rui="+wu+";dc_exteid="+H3+";dc_av="+wu+";dc_sk="+wu+";dc_ctype="+qi+";dc_pubid="+wu+";dc_btype=3?gclid="+bi+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+u+"AxAA&ase=2&num="+wu+"&cid="+R+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+RV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
b+"____________"+u+"AxAA&ase=2&num="+wu+"&cid="+R+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+RV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:yb+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:rP,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Hb.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+p+"&hl="+LU+"&origin=www.youtube.com&ata_theme="+dS,Hb),trackingParams:yb+"="}},popupType:"DIALOG"}},trackingParams:yb+"="}},hoverText:{runs:[{text:kE}]},trackingParams:yb+"="}},adVideoId:Nr,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+u+"AxAA&sigh="+N+"&cid="+R+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:gu},associatedCompositePlayerBytesLayoutId:NH}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:gu}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:X6,isTemplated:!1,trackingParams:yb+"="},description:{text:xj,isTemplated:!1,trackingParams:yb+"="},actionButton:{buttonRenderer:{text:{simpleText:gu},navigationEndpoint:{clickTrackingParams:rP,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+
u+"AxAA&ase=2&num="+wu+"&cid="+R+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+RV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+u+"AxAA&ase=2&num="+wu+"&cid="+R+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+RV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:yb+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+cZ+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:yb+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Vw+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:yb+"="},navigationEndpoint:{clickTrackingParams:rP,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+u+"AxAA&ase=2&num="+
wu+"&cid="+R+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+RV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+u+"AxAA&ase=2&num="+wu+"&cid="+R+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+RV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:yb+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:rP,openPopupAction:{popup:{aboutThisAdRenderer:{url:(o$.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+p+"&hl="+LU+"&origin=www.youtube.com&ata_theme="+dS,o$),trackingParams:yb+"="}},popupType:"DIALOG"}},trackingParams:yb+"="}},
hoverText:{runs:[{text:gu}]},trackingParams:yb+"="}},adVideoId:Nr,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+u+"AxAA&sigh="+Nr+"&cid="+R+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:xj},associatedCompositePlayerBytesLayoutId:NH}},adSlotLoggingData:{serializedSlotAdServingDataEntry:qE}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:X6,
isTemplated:!1,trackingParams:yb+"="},description:{text:V7,isTemplated:!1,trackingParams:yb+"="},actionButton:{buttonRenderer:{text:{simpleText:xj},navigationEndpoint:{clickTrackingParams:rP,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+W3+";dc_trk_cid="+W3+";dc_dbm_token="+y+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+wu+";ord="+W3+";dc_rui="+wu+";dc_exteid="+H3+";dc_av="+wu+";dc_sk="+wu+";dc_ctype="+
qi+";dc_pubid="+wu+";dc_btype=3?gclid="+bi+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+u+"AxAA&ase=2&num="+wu+"&cid="+R+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+RV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+u+"AxAA&ase=2&num="+wu+"&cid="+R+"&ad_cpn=%5BAD_CPN%5D&sig="+
L+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+RV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:yb+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+I8+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:yb+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+eZ+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:yb+
"="},navigationEndpoint:{clickTrackingParams:rP,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+W3+";dc_trk_cid="+W3+";dc_dbm_token="+y+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+wu+";ord="+W3+";dc_rui="+wu+";dc_exteid="+H3+";dc_av="+wu+";dc_sk="+wu+";dc_ctype="+qi+";dc_pubid="+wu+";dc_btype=3?gclid="+bi+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
b+"____________"+u+"AxAA&ase=2&num="+wu+"&cid="+R+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+RV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+b+"____________"+u+"AxAA&ase=2&num="+wu+"&cid="+R+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+RV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:yb+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:rP,openPopupAction:{popup:{aboutThisAdRenderer:{url:(QH.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+p+"&hl="+LU+"&origin=www.youtube.com&ata_theme="+dS,QH),trackingParams:yb+"="}},popupType:"DIALOG"}},trackingParams:yb+
"="}},hoverText:{runs:[{text:X6}]},trackingParams:yb+"="}},adVideoId:Nr,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+b+"____________"+u+"AxAA&sigh="+N+"&cid="+R+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Mz},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:NH}},adSlotLoggingData:{serializedSlotAdServingDataEntry:qE}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:di,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:di,command:{innertubeCommand:{clickTrackingParams:rP,ypcGetOfflineUpsellEndpoint:{params:N9}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:yb+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:xE,nanos:Cr}}}},qwU=JSON.stringify(dJ),Pi=performance.now()-H;return{objectRepresentation:dJ,jsonRepresentation:qwU,generationTime:Pi}};
t30=function(H,C){if(H===C)return!0;if(!H||!C||typeof H!==typeof C)return!1;if(H instanceof Array&&C instanceof Array){if(H.length!==C.length)return!1;for(var S=0;S<H.length;S++)if(!t30(H[S],C[S]))return!1;return!0}if(typeof H==="object"&&typeof C==="object"&&H&&C){for(S in H)if(!(S in C&&t30(H[S],C[S])))return!1;for(var w in C)if(!(w in H))return!1;return!0}return!1};
_.T5=function(){if(!q5){q5=new Ep(new LwZ);var H=_.YB("client_streamz_web_flush_count",-1);H!==-1&&(q5.invocationLimit=H)}return q5};
m6=function(H,C,S,w){if(H===C)return!0;if(Array.isArray(H)&&Array.isArray(C)){if(H.length!==C.length)return!1;for(var A=0;A<H.length;A++)if(!m6(H[A],C[A],S,w))return!1;return!0}if(H instanceof Set||C instanceof Set){if(H instanceof Set&&C instanceof Set){if(H.size!==C.size)return!1;w=_.Z(H.values());for(A=w.next();!A.done;A=w.next())if(!C.has(A.value))return!1;return!0}return!1}if(H instanceof Function){if(w)return!0;H.name===""&&_.nC(Error("Nf"),"ERROR");return!1}if(H instanceof Date&&C instanceof
Date)return H.getTime()===C.getTime();if(H instanceof Object&&C instanceof Object){if(gr0(H)&&gr0(C))try{return H.equals(C)}catch(c){_.nC(Error("Of`"+c),"ERROR")}A=Object.getOwnPropertyNames(H).filter(function(c){return S?H[c]!==void 0:!0});
var J=Object.getOwnPropertyNames(C).filter(function(c){return S?C[c]!==void 0:!0});
if(A.length!==J.length)return!1;A=_.Z(A);for(J=A.next();!J.done;J=A.next())if(J=J.value,!m6(H[J],C[J],S,w))return!1;return!0}return!1};
gr0=function(H){H=Object.getPrototypeOf(H).equals;return H instanceof Function&&H.length===1};
_.I$$=function(){return _.z(function(H){if(H.nextAddress==1)return Uh7!==2?H.jumpTo(2):H.yield(RvZ(),3);H.nextAddress!=2&&(Uh7=H.yieldResult);return H.return(Uh7)})};
_.HTZ=function(){return _.z(function(H){if(H.nextAddress==1)return _.E("ab_pl_man")?a$D!==2?H.jumpTo(2):H.yield(xh6(),3):H.return(1);H.nextAddress!=2&&(a$D=H.yieldResult);return H.return(a$D)})};
SIZ=function(){return _.z(function(H){if(H.nextAddress==1)return _.E("ab_fk_sk_cl")?iTi!==2?H.jumpTo(2):H.yield(CUE(),3):H.return(1);H.nextAddress!=2&&(iTi=H.yieldResult);return H.return(iTi)})};
_.w_p=function(){return _.z(function(H){if(H.nextAddress==1)return _.E("ab_det_apb_b")?sIp!==2?H.jumpTo(2):H.yield(jI7(),3):H.return(1);H.nextAddress!=2&&(sIp=H.yieldResult);return H.return(sIp)})};
F46=function(){var H;return _.z(function(C){if(C.nextAddress==1)return C.yield(Promise.all([_.I$$(),_.w_p(),_.HTZ(),SIZ()]),2);if(C.nextAddress!=3)return A1w()?C.return(!0):C.yield(_.J1Z(),3);H=C.yieldResult;return C.return(H===0)})};
A1w=function(){var H=!1,C=function(S,w){ZTZ.increment(w,S);S===0&&(H=!0)};
C(_.c10(),"j.s_");C(Uh7,"f.i_");C(sIp,"a.b_");C(a$D,"p.m_");C(iTi,"i.f_");YIw===2&&(YIw=_.zsw(MwW));C(YIw,"e.h_");_.E("ks_det_gpbl")||C(_.qI$(),"p.i_");_.E("ks_get_o_pp")||C(_.T9$(),"g.o_");_.E("ab_deg_unex_thr")||C(_.m$E(),"a.o_");C(W4Z,"s.t_");_.E("ab_det_sc_inj_enf")&&C(_.y1W(),"s.i_");C(N90,"d.p_");C(_.bT$(_.WU),"o.p_");C(_.EoD()===0?0:_.es7(),"o.a_");return _.E("debug_sk_em_precheck")?!0:H};
GxU=function(){var H=[].concat(_.k$(u$u));try{var C=Kw$();H.push({jsonRepresentation:C.jsonRepresentation,objectRepresentation:C.objectRepresentation})}catch(S){H=[].concat(_.k$(u$u))}return H};
fLp=function(){var H=["adPlacements","adSlots"];try{return H.filter(function(){return!0}).length!==H.length?0:1}catch(C){return 0}};
_.T9$=function(){if(fLp()===0)return 0;var H=Kw$(),C=H.objectRepresentation,S=(0,_.hb.unsafeClone)(C),w=[];if(C&&typeof C==="object")for(var A in C)w.push(A);else return 4;H=H.objectRepresentation.adPlacements;if(!(H&&H.length>0))return 4;try{if(!t30(w,Object.getOwnPropertyNames(C)))return 0}catch(J){return 0}return t30(S,C)?1:0};
_.bT$=function(H){if(!H||!H.length||typeof H==="string")return 0;for(var C=Object.getOwnPropertyNames(Object.prototype),S=0;S<H.length;S++)for(var w=_.cU(H[S]),A=_.Z(C),J=A.next();!J.done;J=A.next())if(w===J.value)return 0;return 1};
vo7=function(H){var C=_.cU(H[1]);if(H[0]===null)return C;H=H[0];for(var S={},w=0;w<H.length;w++){var A=_.cU(H[w]);if(w===0)S[A]=C;else{var J={};J[A]=S;S=J}}return S};
_.EoD=function(){for(var H=_.yL,C=0;C<H.length;C++){var S=vo7(H[C]),w=[];w.push(S);if(w.length===0)return 0}return 1};
_.es7=function(){for(var H=_.yL,C={},S=0;S<H.length;C={oh6:void 0},S++){var w=[vo7(H[S])];C.oh6=[];w.forEach(function(A){return function(J){A.oh6[A.oh6.length]=J}}(C));
if(C.oh6.length===0)return 0}return 1};
_.c10=function(){for(var H=_.Z(GxU()),C=H.next();!C.done;C=H.next()){var S=C.value;C=S.jsonRepresentation;S=S.objectRepresentation;try{var w=JSON.parse(C);if(!m6(w,S,!1,!1))return 0}catch(A){return 0}}return 1};
_.y1W=function(){try{var H=_.mC("ab_det_sc_inj_val");H.length===1&&H[0]===""&&(H=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var C=document.querySelectorAll("script"),S=_.Z(C),w=S.next();!w.done;w=S.next())for(var A=w.value,J=_.Z(H),c=J.next();!c.done;c=J.next()){var Y=c.value;C=void 0;if((C=A.textContent)==null?0:C.includes(Y))return 0}}catch(M){return 4}return 1};
_.J1Z=function(){var H,C,S,w,A,J,c;return _.z(function(Y){switch(Y.nextAddress){case 1:_.en(Y,2),H=_.Z(u$u),C=H.next();case 4:if(C.done)return Y.return(1);w=S=C.value;A=w.jsonRepresentation;J=w.objectRepresentation;return Y.yield((new Response(A,{status:200})).json(),7);case 7:c=Y.yieldResult;if(!m6(c,J,!1,!1))return Y.return(0);C=H.next();Y.jumpTo(4);break;case 2:return _.Vx(Y),Y.return(4)}})};
_.m$E=function(){try{btoa("abc")}catch(H){return 0}return 1};
RvZ=function(){var H,C,S,w,A,J,c,Y,M,m,W;return _.z(function(y){switch(y.nextAddress){case 1:_.en(y,2),H=_.Z(GxU()),C=H.next();case 4:if(C.done)return y.return(1);w=S=C.value;A=w.jsonRepresentation;J=w.objectRepresentation;c=btoa(A);Y="data:application/json;base64,"+c;M=new Request(Y);Object.defineProperty(M,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(M,"method",{get:function(){return"POST"}});
Object.defineProperty(M,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(M,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(M,"body",{get:function(){return new ReadableStream}});
return y.yield(fetch(M),7);case 7:return m=y.yieldResult,y.yield(m.json(),8);case 8:W=y.yieldResult;if(!m6(W,J,!1,!1))return y.return(0);C=H.next();y.jumpTo(4);break;case 2:return _.Vx(y),y.return(4)}})};
_.zsw=function(H){if(!H||!H.length||typeof H==="string")return 0;for(var C=function(A){return _.cU(A)},S=2,w=0;w<H.length&&(S=_.lLW(_.B27(H[w],C)),S!==0);w++);
return S};
_.lLW=function(H){var C=_.Z(H);H=C.next().value;C=C.next().value;try{var S=document.createElement("div");document.body.appendChild(S);var w=getComputedStyle(S).display;document.body.removeChild(S);if(w==="none")return 4;var A=getComputedStyle(C).display==="none"?0:1;document.body.removeChild(H);return A}catch(J){return 4}};
CUE=function(){var H,C,S;return _.z(function(w){H=new _.N5;C=document.createElement("button");C.classList.add("ytp-ad-skip-button");C.style.opacity="0";C.style.height="0px";C.style.width="0px";C.style.padding="0px";C.style.border="none";S=function(){C.parentElement&&C.parentElement.removeChild(C)};
C.onclick=function(){H.resolve(0);S()};
document.body.appendChild(C);setTimeout(function(){S();H.resolve(1)},50);
return w.return(H.promise)})};
xh6=function(){var H,C,S,w,A,J,c;return _.z(function(Y){H=new _.N5;C=document.createElement("ytd-player");try{document.body.prepend(C)}catch(M){return Y.return(4)}S=function(){C.parentElement&&C.parentElement.removeChild(C)};
C.getElementsByTagName("div").length>0?w=C.getElementsByTagName("div")[0]:(w=document.createElement("div"),C.appendChild(w));A=document.createElement("div");w.appendChild(A);J=document.createElement("video");c=new Blob([new Uint8Array([26,69,223,163,159,66,134,129,1,66,247,129,1,66,242,129,4,66,243,129,8,66,130,132,119,101,98,109,66,135,129,4,66,133,129,2,24,83,128,103,1,255,255,255,255,255,255,255,21,73,169,102,153,42,215,177,131,15,66,64,77,128,134,67,104,114,111,109,101,87,65,134,67,104,114,111,
109,101,22,84,174,107,169,174,167,215,129,1,115,197,135,207,96,156,234,24,157,175,131,129,1,85,238,129,1,134,133,86,95,86,80,56,224,138,176,129,1,186,129,1,83,192,129,1,31,67,182,117,1,255,255,255,255,255,255,255,231,129,0,160,204,161,162,129,0,0,0,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,229,106,0,117,161,165,166,163,238,129,1,165,158,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,232,120,0,160,187,161,152,129,3,233,0,177,
1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,129,0,160,188,161,152,129,7,208,0,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,130,3,233])],{type:"video/webm"});J.src=_.kD(_.K9(c));J.ontimeupdate=function(){S();H.resolve(0)};
A.appendChild(J);J.classList.add("html5-main-video");setTimeout(function(){A.classList.add("ad-interrupting")},200);
setTimeout(function(){S();H.resolve(1)},5E3);
return Y.return(H.promise)})};
Vwp=function(H){var C=Kw$().objectRepresentation.playbackTracking;if(C){var S=[],w;S.push(C==null?void 0:(w=C.videostatsPlaybackUrl)==null?void 0:w.baseUrl);var A;S.push(C==null?void 0:(A=C.videostatsDelayplayUrl)==null?void 0:A.baseUrl);var J;S.push(C==null?void 0:(J=C.videostatsWatchtimeUrl)==null?void 0:J.baseUrl);var c;S.push(C==null?void 0:(c=C.ptrackingUrl)==null?void 0:c.baseUrl);var Y;S.push(C==null?void 0:(Y=C.qoeUrl)==null?void 0:Y.baseUrl);var M;S.push(C==null?void 0:(M=C.atrUrl)==null?
void 0:M.baseUrl);C=_.Z(S);for(S=C.next();!S.done;S=C.next())if((S=S.value)&&H.test(S))return S.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
ooi=function(H,C){var S,w;return _.z(function(A){switch(A.nextAddress){case 1:S=[],w=0;case 2:if(!(w<3)){A.jumpTo(4);break}return A.yield(fetch(H,{cache:"no-store",method:C}).then(function(J){S.push(J.status)}).catch(function(){S.push(-1)}),3);
case 3:w++;A.jumpTo(2);break;case 4:return A.return(S)}})};
OT6=function(H){return H.domainLookupStart===0&&H.domainLookupEnd===0&&H.connectStart===0&&H.connectEnd===0};
X_E=function(H,C,S){S=S===void 0?"GET":S;var w,A,J,c,Y,M,m,W,y,N;return _.z(function(b){if(b.nextAddress==1)return b.yield(Promise.all([ooi(H,S),ooi(C,S)]),2);w=b.yieldResult;A=_.Z(w);J=A.next().value;c=A.next().value;Y=J;M=c;if(Math.min.apply(Math,_.k$(M))!==Math.max.apply(Math,_.k$(M))||Math.min.apply(Math,_.k$(Y))!==Math.max.apply(Math,_.k$(Y)))return b.return(2);if(Math.min.apply(Math,_.k$(M))===Math.min.apply(Math,_.k$(Y)))return b.return(1);W=(m=performance.getEntriesByName(H))==null?void 0:
m[0];N=(y=performance.getEntriesByName(C))==null?void 0:y[0];return W&&N?OT6(N)?b.return(1):OT6(W)?b.return(0):b.return(1):b.return(2)})};
jI7=function(){var H;return _.z(function(C){var S=[];var w;var A,J,c;(A=w=(A=Kw$().objectRepresentation.streamingData)==null?void 0:(J=A.formats)==null?void 0:(c=J[0])==null?void 0:c.url)&&A&&!w.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(A=A.replace("initcwndbps","ctier=L&initcwndbps"),A=A.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),w={testUrl:A,baseUrl:w,method:"GET"}):w=void 0;w&&S.push(w);_.E("ab_net_tp_e")&&S.push({testUrl:_.s$.location.origin+"/ad_companion",baseUrl:_.s$.location.origin+
"/generate_204",method:"OPTIONS"});_.E("ab_fix_creator_view_cnt")&&(S.length=0,(w=Vwp(/api\/stats\/atr/))&&S.push({testUrl:_.s$.location.origin+w,baseUrl:_.s$.location.origin+"/generate_204",method:"OPTIONS"}));_.E("ad_net_pb_pbp")&&(w=Vwp(/api\/stats\/qoe/))&&S.push({testUrl:_.s$.location.origin+w,baseUrl:_.s$.location.origin+"/feed/download",method:"GET"});S=S.length!==0?S[Math.floor(Math.random()*S.length)]:void 0;return(H=S)?C.return(X_E(H.testUrl,H.baseUrl,H.method)):C.return(4)})};
_.qI$=function(){if(_.s$.nRQ===void 0||_.s$.nRQ===null||typeof _.s$.nRQ!=="function")return 2;try{return _.s$.nRQ()===!0?0:1}catch(H){return 0}};
QIE=function(H){switch(H){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.KP(H,"unknown result type")}};
_.d$E=function(H,C){var S=Number(_.rh("CATSTAT",0));if(C.yZS===void 0)return S;C=C.yZS;H=QIE(H);return S&~(3<<C)|H<<C};
PUV=function(H){var C,S;if((H=(C=H.auxiliaryUi)==null?void 0:(S=C.messageRenderers)==null?void 0:S.bkaEnforcementMessageViewModel)&&H.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return H};
p_u=function(){for(var H=_.Z(Object.values(_.$$E)),C=H.next();!C.done;C=H.next())C=C.value,C.isAsync&&C.yZS&&_.np("CATSTAT",_.d$E(2,C))};
_.u4=function(H,C){H=_.b4("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",H);(C===void 0?0:C)?_.kxW(H,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.Ex(_.et(),H,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
nou=function(){if(!hs$){if(Polymer.Base){var H=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{H.apply(this,arguments)}catch(y){_.tE(y)}};
var C=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{C.apply(this,arguments)}catch(y){_.tE(y)}};
var S=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{S.apply(this,arguments)}catch(y){_.tE(y)}};
var w=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{w.apply(this,arguments)}catch(y){_.tE(y)}};
var A=Polymer.Base._listen,J=new WeakMap;Polymer.Base._listen=function(y,N,b){var u=function(){try{b.apply(this,arguments)}catch(O){_.tE(O)}};
J.set(b,u);A.call(this,y,N,u)};
var c=Polymer.Base._unlisten;Polymer.Base._unlisten=function(y,N,b){c.call(this,y,N,J.get(b))}}if(Polymer.Async){var Y=Polymer.Async,M=Y._atEndOfMicrotask;
Y._atEndOfMicrotask=function(){try{M.apply(Y,arguments)}catch(y){_.tE(y)}}}if(Polymer.RenderStatus){var m=Polymer.RenderStatus,W=m.afterNextRender;
m.afterNextRender=function(y,N,b){W.call(m,y,function(){try{N.apply(this,arguments)}catch(u){_.tE(u)}},b)}}hs$=!0}};
_.B96=function(H){var C=H?_.EE(H):"";if(C){if(C.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(C.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(C.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(C.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(C.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.E("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(C.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";C=C.toLowerCase();if(C==="/")return"home";if(C==="/channel_memberships")return"channel-memberships-shopfront";if(C.indexOf("/feed/trending")===0)return"trending";if(C.indexOf("/feed/explore")===0)return"explore";if(C.indexOf("/live")===0)return"live";if(C.indexOf("/results")===0)return"search";if(C.indexOf("/sports")===0)return"sports";if(C.indexOf("/fashion")===0||C.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(C))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(C))return _.E("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(C.indexOf("/channel/")===0||C.indexOf("/user/")===0||C.indexOf("/gaming")===0||C.indexOf("/post/")===0)return"channel";if(r1u(H))return"show";if(C==="/playlist"||C.indexOf("/playlist/")===0||C==="/view_play_list"||C.indexOf("/view_play_list/")===0||C.indexOf("/show/")===0)return"playlist";if(C==="/feed/companion_canvas")return"companion-canvas";if(C==="/feed/history"||
C.indexOf("/feed/history/")===0)return"history";if(C==="/new")return"labs";if(C==="/feed/subscriptions")return"subscriptions";if(C.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(C==="/history_controls")return"standalone";if(C.indexOf("/account")===0||C==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(C.indexOf("/paid_memberships")===0||C.indexOf("/refund")===0||C.indexOf("/purchases")===0||C.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(C.indexOf("/product")===
0)return"yts-products";if(C.indexOf("/premium")===0||C.indexOf("/musicpremium")===0)return C.indexOf("/premium/offers")===0||C.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(C==="/cart/checkout"||C==="/cart")return"ypc-checkout";if(C.indexOf("/feed/downloads")===0||C.indexOf("/redeem")===0||C.indexOf("/reporthistory")===0)return"browse";if(C.indexOf("/hashtag")===0)return"hashtag-landing-page";if(C.indexOf("/handle")===0)return"handle";if(C.indexOf("/source")===0)return"audio-pivot";if(C.search(RegExp("^/playables/(?!saved)."))===
0)return"mini_app";if(C.indexOf("/playables")===0)return"playables";if(C.indexOf("/create/live/join")===0)return"open-in-app";if(C.indexOf("/shorts")===0)return"shorts";if(C.indexOf("/feed/channels")===0)return"subscriptions-channels";(C=H?_.EE(H):"")&&C.indexOf("/watch")===0&&_.E("web_watch_enable_learning_journey")?(H=_.xT(H),H=!!H.list&&H.list.indexOf("LJPP")===0):H=!1;if(H)return"learning_journey_watch"}};
_.G5=function(H){var C,S;(H=(S=_.e(H==null?void 0:H.commandMetadata,_.u9))==null?void 0:S.url)&&(C=_.B96(H));return C};
r1u=function(H){var C=H?_.EE(H):"";if(!C)return!1;C=C.toLowerCase();return C.indexOf("/show/")===0||C.indexOf("/playlist")===0&&(H=_.xT(H),H.list&&H.list.indexOf("EL")===0)?!0:!1};
VL=function(H){var C="unknown",S;var w=((S=_.e(H==null?void 0:H.commandMetadata,_.u9))==null?void 0:S.webPageType)||"";w?(S=w.toLowerCase(),S.startsWith("web_page_type_")&&(S=S.slice(14))):S=w;S&&D$u[S.toUpperCase()]?C=D$u[S.toUpperCase()]:_.e(H,_.vU)||_.e(H,K4V)?C="browse":_.e(H,_.l4)?C="search":_.e(H,_.sX)&&(C="watch");C==="watch"&&_.G5(H||null)==="learning_journey_watch"&&(C="learning_journey_watch");C==="unknown"&&_.Bn(Error("Qf`"+JSON.stringify({clickTrackingParams:H==null?void 0:H.clickTrackingParams,
commandMetadata:H==null?void 0:H.commandMetadata,allEndpointKeys:Object.keys(H||[])})));return C};
_.ow=function(H){if(!_.twp||H)_.twp=_.lR();return _.twp};
_.L4Z=function(H){return!!_.e(H,_.sX)||!!_.e(H,_.Ox)&&_.E("kevlar_enable_shorts_prefetch")};
_.goW=function(H,C){H=_.e(H,_.sX)||_.e(H,_.Ox);return"v"+H.videoId+(H.playlistId?"-pl"+H.playlistId:"")+(C?"-an1":"")+(H.params?"-pr"+H.params:"")};
XG=function(H){return function(){return new H}};
QL=function(H){var C=_.JA();return function(){return C.resolve(H)}};
Rsi=function(H){var C=_.YB("web_pbj_log_warning_rate",0);C=C>0&&Math.random()<C;if(!_.e(H,_.Ox))return C&&_.Bn(Error("Tf")),!1;var S;return _.E("shorts_controller_retrieve_seedless_sequence_v2")&&((S=_.e(H,_.Ox))==null?void 0:S.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:U$Z(H)?!0:(C&&_.Bn(Error("Uf")),!1)};
U$Z=function(H){var C=(_.e(H,_.sX)||_.e(H,_.Ox)).videoId;if(!C||!ILD.test(C))return!1;var S;return(H=(S=_.e(H.commandMetadata,_.u9))==null?void 0:S.url)&&(H.includes(C)||H.startsWith("/clip"))?!0:!1};
_.x$Z=function(){var H=_.VN();return H.getFlag(192)?H.getFlag(190):!(_.E("web_watch_cinematics_disabled_by_default")||_.E("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&aLE())};
_.dm=function(H,C,S){var w={};w.currentUrl=C;w.vis=H.vis!==void 0?H.vis:0;w.splay=!1;C=_.VN();w.autoCaptionsDefaultOn=C.getFlag(66);C.getFlag(141)?C.getFlag(140)?w.autonavState="STATE_OFF":w.autonavState="STATE_ON":w.autonavState="STATE_NONE";w.html5Preference="HTML5_PREF_WANTS";isNaN(_.rh("STS"))||(w.signatureTimestamp=_.rh("STS"));H.autonav&&(w.autoplay=!0,w.autonav=!0);H.mutedAutoplay&&(w.autoplay=!0,w.mutedAutoplay=!0);H.inlinePlayback&&(w.autoplay=!0,w.autonav=!1,w.isInlineUnmutedPlayback=!!H.inlineUnmuted);
w.referer=S;w.lactMilliseconds=H.lact!==void 0?H.lact.toString():"-1";_.E("enable_unknown_lact_fix_on_html5")&&w.lactMilliseconds==="-1"&&_.Bn(new _.X0("Unknown LACT is set in playbackContext.",{"lact in tempData":H.lact||"undefined",autonav:H.autonav||"undefined"}));H={};C.getFlag(194)&&(H.hasShownAmbientMode=!0);C.getFlag(192)&&(H.hasToggledOffAmbientMode=!0);_.x$Z()&&(H.watchAmbientModeEnabled=!0);w.watchAmbientModeContext=H;return w};
HJZ=function(H){var C={},S=H.pbis||0;S&&(C.playbackBeginsInSeconds=S);H.prefetch_reason&&H.prefetch_reason==="hc_pbis"&&(C.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return C};
_.$F=function(H){H=H===void 0?!1:H;var C=_.VN(),S="USER_INTERFACE_THEME_LIGHT";C.getFlag(165)?S="USER_INTERFACE_THEME_DARK":C.getFlag(174)?S="USER_INTERFACE_THEME_LIGHT":_.PU()&&(S="USER_INTERFACE_THEME_DARK");return H?S:iJ0()||S};
_.CqW=function(){return!_.E("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.PU=function(){return _.CqW()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.pf=function(){var H=_.VN();return _.CqW()&&!H.getFlag(165)&&!H.getFlag(174)};
iJ0=function(){var H=H===void 0?window.location.href:H;if(_.E("kevlar_disable_theme_param"))return null;var C=_.EE(H);if(_.Sui(C))return"USER_INTERFACE_THEME_DARK";try{var S=_.xT(H).theme;return sNZ.get(S)||null}catch(w){}return null};
_.Sui=function(H){return _.E("enable_dark_theme_only_on_shorts")?!(H==null||!H.startsWith("/shorts/")):!1};
_.ATZ=function(H,C,S,w,A){C=C===void 0?!1:C;S=S===void 0?!1:S;var J=_.rh("INNERTUBE_CONTEXT");if(!J)return _.nC(Error("Xf")),{};J=(0,_.hb.unsafeClone)(J);_.E("web_no_tracking_params_in_shell_killswitch")||delete J.clickTracking;J.client||(J.client={});var c=J.client;c.clientName==="MWEB"&&c.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(c.clientFormFactor=_.rh("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");c.screenWidthPoints=window.innerWidth;c.screenHeightPoints=window.innerHeight;c.screenPixelDensity=
Math.round(window.devicePixelRatio||1);c.screenDensityFloat=window.devicePixelRatio||1;c.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());c.userInterfaceTheme=_.$F();if(!C){var Y=_.o6$();Y&&(c.connectionType=Y);_.E("web_log_effective_connection_type")&&(Y=XFU())&&(J.client.effectiveConnectionType=Y)}var M;if(_.E("web_log_memory_total_kbytes")&&((M=_.s$.navigator)==null?0:M.deviceMemory)){var m;M=(m=_.s$.navigator)==null?void 0:m.deviceMemory;J.client.memoryTotalKbytes=""+M*1E6}C&&w&&!_.E("web_it_context_set_original_url_ks")&&
(c.originalUrl=jN7(_.s$.location.href,w).toString());_.E("web_gcf_hashes_innertube")&&(Y=Bm7())&&(m=Y.coldConfigData,M=Y.coldHashData,Y=Y.hotHashData,J.client.configInfo=J.client.configInfo||{},m&&(J.client.configInfo.coldConfigData=m),M&&(J.client.configInfo.coldHashData=M),Y&&(J.client.configInfo.hotHashData=Y));m=_.xT(_.s$.location.href);!_.E("web_populate_internal_geo_killswitch")&&m.internalcountrycode&&(c.internalGeo=m.internalcountrycode);!_.E("web_populate_client_screen_killswitch")&&A&&(c.clientScreen=
A);c.clientName==="MWEB"||c.clientName==="WEB"?(c.mainAppWebInfo||(c.mainAppWebInfo={}),c.mainAppWebInfo.graftUrl=w||_.s$.location.href,_.E("kevlar_woffle")&&_.kF.instance&&(w=_.kF.instance,c.mainAppWebInfo.pwaInstallabilityStatus=!w.appInstalledEventFired&&w.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),c.mainAppWebInfo.webDisplayMode=d5$(),c.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):c.clientName==="TVHTML5"&&
(!_.E("web_lr_app_quality_killswitch")&&(w=_.rh("LIVING_ROOM_APP_QUALITY"))&&(c.tvAppInfo=Object.assign(c.tvAppInfo||{},{appQuality:w})),w=_.rh("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(c.tvAppInfo=Object.assign(c.tvAppInfo||{},{certificationScope:w}));!_.E("web_populate_time_zone_itc_killswitch")&&(w=lyE())&&(c.timeZone=w);(w=U3U())?c.experimentsToken=w:delete c.experimentsToken;c=RN6();w=_.wqi();w=(0,_.hb.getValues)(w.tokenJars);J.request=Object.assign({},J.request,{internalExperimentFlags:c,consistencyTokenJars:w});
!_.E("web_prequest_context_killswitch")&&(c=_.rh("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(J.request.externalPrequestContext=c);w=_.VN();c=w.getFlag(58);w=w.get("gsml","");J.user=Object.assign({},J.user);c&&(J.user.enableSafetyMode=c);w&&(J.user.lockedSafetyMode=!0);_.E("warm_op_csn_cleanup")?S&&(C=_.Dg())&&(J.clientScreenNonce=C):!C&&(C=_.Dg())&&(J.clientScreenNonce=C);H&&(J.clickTracking={clickTrackingParams:H});if(H=_.gh("yt.mdx.remote.remoteClient_"))J.remoteClient=H;_.hG.getInstance().setLocationOnInnerTubeContext(J);
try{var W=wFZ(),y=W.bid;delete W.bid;J.adSignalsInfo={params:[],bid:y};for(var N=_.Z(Object.entries(W)),b=N.next();!b.done;b=N.next()){var u=_.Z(b.value),O=u.next().value,d=u.next().value;W=O;y=d;H=void 0;(H=J.adSignalsInfo.params)==null||H.push({key:W,value:""+y})}var p,k;if(((p=J.client)==null?void 0:p.clientName)==="TVHTML5"||((k=J.client)==null?void 0:k.clientName)==="TVHTML5_UNPLUGGED"){var R=_.rh("INNERTUBE_CONTEXT");R.adSignalsInfo&&(J.adSignalsInfo.advertisingId=R.adSignalsInfo.advertisingId,
J.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",J.adSignalsInfo.limitAdTracking=R.adSignalsInfo.limitAdTracking)}}catch(L){_.nC(L)}return J};
_.rm=function(H,C,S){var w=S&&S>0?S:0;S=w?Date.now()+w*1E3:0;if((w=w?_.nf.getLocalStorage():_.nf.getSessionStorage())&&window.JSON){typeof C!=="string"&&(C=JSON.stringify(C,void 0));try{w.set(H,C,S)}catch(A){w.remove(H)}}};
_.BU=function(H){var C=_.nf.getSessionStorage(),S=_.nf.getLocalStorage();if(!C&&!S||!window.JSON)return null;try{var w=C.get(H)}catch(A){}if(typeof w!=="string")try{w=S.get(H)}catch(A){}if(typeof w!=="string")return null;try{w=JSON.parse(w,void 0)}catch(A){}return w};
_.Do=function(H){try{var C=_.nf.getSessionStorage(),S=_.nf.getLocalStorage();C&&C.remove(H);S&&S.remove(H)}catch(w){}};
_.JTi=function(H){var C=new Kf(_.rh("ONE_PICK_URL",""));C.urlParamMap_.set("hostId",H);(H=_.rh("GAPI_LOCALE"))&&C.urlParamMap_.set("hl",H);(H=_.rh("SESSION_INDEX"))&&C.urlParamMap_.set("authuser",H);(H=_.rh("DELEGATED_SESSION_ID"))&&C.urlParamMap_.set("groupId",H);return C};
ZJD=function(){var H=_.JA(),C=H.resolve(_.tG);H=H.resolve(_.Lf);return new F$i(C,H)};
YuW=function(H){if(window.IntersectionObserver)return new cTE(H,400);throw new TypeError("dg");};
MD7=function(){var H=Hammer.TouchAction,C=H.prototype.preventDefaults;H.prototype.preventDefaults=function(S){var w=this.actions.indexOf("pan-down")>-1;if(!w)return C.call(this,S);if(!zoZ){var A=S.srcEvent;S=S.direction;var J;if((J=this.manager)==null?0:J.session.prevented)A.preventDefault();else if(w&&S&Hammer.DIRECTION_DOWN)return this.preventSrc(A)}}};
qu7=function(H){if(!H||H.size===0)return Hammer.DIRECTION_ALL;if(H.size===2){if(H.has("up")&&H.has("down"))return Hammer.DIRECTION_VERTICAL;if(H.has("right")&&H.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(H.size===1){if(H.has("up"))return Hammer.DIRECTION_UP;if(H.has("down"))return Hammer.DIRECTION_DOWN;if(H.has("right"))return Hammer.DIRECTION_RIGHT;if(H.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.mv7=function(){return Tzu?Promise.resolve(Tzu):new Promise(function(H,C){var S=self.indexedDB.open("swpushnotificationsdb");S.onerror=C;S.onsuccess=function(){var w=S.result;if(w.objectStoreNames.contains("swpushnotificationsstore"))Tzu=w,H(Tzu);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.mv7()};
S.onupgradeneeded=W$7})};
W$7=function(H){H=H.target.result;H.objectStoreNames.contains("swpushnotificationsstore")&&H.deleteObjectStore("swpushnotificationsstore");H.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
Nzu=function(H){var C=yTE(),S;return _.z(function(w){switch(w.nextAddress){case 1:return _.en(w,2),w.yield(H.match(C,{cacheName:"yt-appshell-assets"}),4);case 4:S=w.yieldResult;_.xB(w,3);break;case 2:_.Vx(w);case 3:return w.return(S)}})};
yTE=function(){var H=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?bJ7.registration.scope:Emi;H.endsWith("/")&&(H=H.slice(0,-1));return H+"/app_shell_home"};
eow=function(H){H.map(function(C){return C.source}).join("|")};
_.uQW=function(H){return _.z(function(C){return C.return(Nzu(H))})};
GuZ=function(){var H=window.caches,C;return _.z(function(S){if(S.nextAddress==1)return S.yield(_.uQW(H),2);C=S.yieldResult;return S.return(!!C)})};
XqE=function(){_.z(function(H){if(H.nextAddress==1){if(fk$)return H.jumpTo(0);fk$=!0;if(_.E("enable_system_health_primes_monitoring"))return _.NE(vmV,3E4),lkE(),H.return();if(!(Math.random()<_.YB("web_system_health_fraction")))return H.jumpTo(0);VDp={heightPixels:screen.height,widthPixels:screen.width};gm&&!isNaN(gm.jsHeapSizeLimit)&&(VDp.memoryTotalKbytes=String(Math.round(gm.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(VDp.devicePixelRatio=window.devicePixelRatio);return H.yield(omp(),4)}_.NE(vmV,
3E4);return H.yield(OJE(),0)})};
omp=function(){return _.z(function(H){if(H.nextAddress==1)return Ux.intersectionObserverPresent="IntersectionObserver"in window,Ux.serviceWorkerPresent="serviceWorker"in navigator,Ux.webSharePresent="share"in navigator,Ux.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,Ux.cacheStoragePresent="caches"in window,Ux.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,Ux.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
Ux.webkitTemporaryStoragePresent="webkitTemporaryStorage"in Rw&&Rw.webkitTemporaryStorage&&"queryUsageAndQuota"in Rw.webkitTemporaryStorage,Ux.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",H.yield(JGi(),2);Ux.indexedDbPresent=H.yieldResult;Ux.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;Ux.broadcastChannelPresent="BroadcastChannel"in window;Ux.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(Ux.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,Ux.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.oT(H)})};
vmV=function(){var H=9E4+Math.random()*2E3;_.cn()>H||(_.E("enable_system_health_primes_monitoring")?lkE():OJE())};
OJE=function(){var H;return _.z(function(C){if(C.nextAddress==1)return C.yield(QN0(),2);H=C.yieldResult;_.kI("systemHealthCaptured",H);_.oT(C)})};
lkE=function(){var H={metric:{}},C=dvD();C.networkEvents.length&&(H.metric.networkEvents=PqW(C));_.kI("systemHealthCaptured",H)};
QN0=function(){var H,C,S,w,A,J,c,Y,M,m;return _.z(function(W){switch(W.nextAddress){case 1:H={viewportHeightPixels:Math.max(document.documentElement?document.documentElement.clientHeight||0:0,window.innerHeight||0),viewportWidthPixels:Math.max(document.documentElement?document.documentElement.clientWidth||0:0,window.innerWidth||0)};C=window.screen;_.E("enable_is_extended_monitoring")&&C&&"isExtended"in C&&(H.isExtended=!!C.isExtended);S={metric:{staticContext:VDp,dynamicContext:H,webMetric:$vw,webApiSupport:Ux}};
if(w=_.Dg())S.csn=w;gm&&(S.metric.webMetric.currentHeapKbytes=Math.round(gm.usedJSHeapSize/1E3));window.matchMedia&&(S.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,S.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,S.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in Rw&&typeof Rw.getBattery==="function")){W.jumpTo(2);break}return W.yield(Rw.getBattery(),3);case 3:if(A=
W.yieldResult)S.metric.dynamicContext.chargingStatus=A.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(S.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(Ux.storageEstimatePresent)return W.yield(navigator.storage.estimate(),8);if(!Ux.webkitTemporaryStoragePresent){W.jumpTo(5);break}return W.yield(pqU(),7);case 7:J=W.yieldResult;W.jumpTo(5);break;case 8:J=W.yieldResult;case 5:return S.metric.dynamicContext.deviceStorageQuotaMbytes=((c=J)==null?0:c.quota)?String(Math.round(J.quota/
1048576/10)*10):"-1",S.metric.dynamicContext.deviceStorageUsageMbytes=((Y=J)==null?0:Y.usage)?String(Math.round(J.usage/1048576/10)*10):"-1",M=S.metric.dynamicContext,W.yield(GuZ(),9);case 9:return M.hasAppShell=W.yieldResult,m=dvD(),m.networkEvents.length&&(S.metric.networkEvents=PqW(m)),W.return(S)}})};
pqU=function(){return new Promise(function(H){var C;Ux.webkitTemporaryStoragePresent&&(C=Rw.webkitTemporaryStorage)!=null&&C.queryUsageAndQuota?Rw.webkitTemporaryStorage.queryUsageAndQuota(function(S,w){H({usage:S,quota:w})}):H(void 0)})};
_.Iw=function(H){H&=16777215;H=[(H&16711680)>>16,(H&65280)>>8,H&255];return kui(H[0],H[1],H[2])};
_.aw=function(H){H=[(H&16711680)>>>16,(H&65280)>>>8,H&255,(H&4278190080)>>>24];var C=_.ho6(H,function(S){return S==(S&255)});
H[3]=(H[3]/255).toFixed(3);if(!C)throw Error("eg`"+H.join(","));return"rgba("+H.join(",")+")"};
_.nmW=function(H){return[(H&16711680)>>>16,(H&65280)>>>8,H&255]};
_.rT7=function(H){H=H.map(function(C){C/=255;return C<=.03928?C/12.92:Math.pow((C+.05)/1.05,2.4)});
return H[0]*.2126+H[1]*.7152+H[2]*.0722};
xF=function(H,C){H=_.nmW(H);return"rgba("+H[0]+", "+H[1]+", "+H[2]+", "+C+")"};
_.BzV=function(){try{return!!self.localStorage}catch(H){return!1}};
L$E=function(){if(DvV())_.Bn(Error("fg"));else{var H=document.createElement("iframe");H.style.display="none";var C=C===void 0?window.location.href:C;var S=_.B9(_.rh("PERSIST_IDENTITY_IFRAME_URL"));C=S?S:(new URL(C)).host.indexOf("studio")===0?_.qH(K$7,"persist_identity"):_.qH(tDp,"persist_identity");_.YMi(H,1,C);H.id="persist_identity";var w;(w=document.body)==null||w.appendChild(H)}};
DvV=function(){var H=gmE;H||(H=document.querySelector("#persist_identity"));return H};
UvE=function(){var H=!1;try{H=!!window.sessionStorage.getItem("session_logininfo")}catch(C){H=!0}return(_.rh("INNERTUBE_CLIENT_NAME")==="WEB"||_.rh("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&H};
RoE=function(H,C){if(!UvE())return!1;C||(C=_.rh("LOGIN_INFO"));return C?(H.session_logininfo=C,!0):!1};
aku=function(H,C){H=H===void 0?!1:H;if((C===void 0||!C)&&IkE!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.Bh("LOG_STICKINESS",!1)){C=_.Dg();var S=_.BM(),w={identityStickinessData:{initialState:IkE}};C&&S&&_.jp(C,S,w)}if(C=DvV())if(S=C.src?(new URL(C.src)).origin:"*",H){var A;(A=C.contentWindow)==null||A.postMessage({action:"clear"},S)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(H=window.sessionStorage.getItem("session_logininfo"))){var J;(J=C.contentWindow)==null||J.postMessage({loginInfo:H},S)}};
_.HY=function(H){H=H===void 0?!0:H;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.np("LOGIN_INFO",""),H&&window.sessionStorage.setItem("from_switch_account","1"),aku(!0,H)}catch(C){}};
xvZ=function(H){H&&(H.startsWith("https://accounts.google.com/AddSession")?_.HY():H.startsWith("https://accounts.google.com/ServiceLogin")?_.HY():H.startsWith("https://myaccount.google.com")&&_.I7(H).getPath().endsWith("/youtubeoptions")&&_.HY())};
iA=function(H,C){xvZ(H);if(_.Bh("LOGGED_IN",!0)&&UvE()){var S=$Zp(H);S==null&&(S={});RoE(S,C)&&_.JM(H,S)}};
HtZ=function(){function H(C){for(C=C.target;C&&C.nodeName!=="A";)if(C=C.parentNode,!(C&&C instanceof HTMLElement))return;if(C&&!C.hasAttribute("download")&&C.getAttribute("rel")!=="external"&&C.href)return C.href}
document.addEventListener("mousedown",function(C){C.button!==0&&(C=H(C))&&iA(C)});
document.addEventListener("click",function(C){(C=H(C))&&iA(C)})};
SrE=function(){var H=new iti;try{if(_.Bh("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(Y){H.increment(5,!1);return}if(_.rh("LOGIN_INFO")){var C=CeZ?CeZ:window.location;_.rh("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&L$E();var S=$Zp(C.href);S==null&&(S={});var w=S.session_logininfo,A=Number(window.sessionStorage.getItem("stickiness_reload")),J=w===_.rh("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
A>=2||J)A>=2?H.increment(2,J):J?H.increment(7,J):window.sessionStorage.getItem("session_logininfo")||(H.increment(3,J),IkE="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.rh("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.rh("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))H.increment(4,J),window.sessionStorage.removeItem("stickiness_reload");
else if(A<2){window.sessionStorage.setItem("stickiness_reload",String(A+1));var c=C.href;c=_.Fw(c,"sttick");iA(c,window.sessionStorage.getItem("session_logininfo"));c=_.HA(c,{sttick:A});H.increment(A,J);_.W2$(C,c)}}else H.increment(6,!1)}else _.HY(!1)}catch(Y){}};
_.Cx=function(H,C,S,w,A){C=C===void 0?{}:C;S=S===void 0?"":S;w=w===void 0?window:w;H=_.i5(H,C);iA(H);S=_.D4(H+S,A);_.W2$(w.location,S)};
sbu=function(H){if(H.urlEndpoint){if(H=_.xT(H.urlEndpoint.url),H.adurl)return w4(H.adurl)}else if(H.watchEndpoint)return"//www.youtube.com/watch?v="+H.watchEndpoint.videoId;return null};
jbE=function(H){if(!H||!H.reportingPings)return null;var C={};H.reportingPings.forEach(function(S){S.pingType in C?C[S.pingType].push(S.url):C[S.pingType]=[S.url]});
return{adpings:d37(C)}};
_.Ss=function(){return{isShellLoad:_.Bh("IS_SHELL_LOAD",!1)}};
AKu=function(){navigator.serviceWorker.getRegistrations().then(function(H){H.forEach(wGw)})};
wGw=function(H){H&&_.JK7(FSE,H.scope)};
_.JK7=function(H,C){C={scope:C||_.z9("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.Qv(H),C)};
sd=function(H,C,S,w){if(C&&C.serializedYpcCujLoggingParams){if(S){var A={};A.transactionErrorType=S;w&&(A.errorMessage=w);C.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:A}}}S={};S.ypcCujContext=C;H=_.b4("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",H,S);_.Ex(_.et(),H,"FLOW_TYPE_YPC_ACQUISITION")}};
_.ZtZ=function(H,C,S,w){var A={};A.serializedTransactionFlowLoggingParams=C;S&&(A.errorType=S);w&&(A.errorMessage=w);_.kI(H,A);_.ht()};
_.cKp=function(H){H&&_.ZtZ("transactionFlowStarted",H)};
_.Yru=function(H){H&&_.ZtZ("transactionFlowCancelled",H)};
_.js=function(H,C,S){C&&_.ZtZ("transactionFlowFailed",C,H,S)};
znU=function(H){var C=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");C&&(C.inert=H)};
_.wE=function(){this.megabloxUrl_=null};
_.Ar=function(H){try{var C=M_$==null?void 0:M_$.composedPath(H)}catch(S){C=H.composedPath?H.composedPath():[]}return C&&C.length>0?C:H.composedPath?H.composedPath():[]};
_.Jr=function(H){return _.Ar(H)[0]};
_.FJ=function(H){if(!(H instanceof Element))return null;H=H.classList?Array.from(H.classList):void 0;if(!H)return null;var C=H.indexOf("style-scope");return C>-1&&C+1<H.length?H[C+1]:null};
Z2=function(H){if(!(H instanceof HTMLElement))return null;var C=H&&(H.$$||H.polymerController)?H.tagName.toLowerCase():null;return C?C:_.FJ(H)};
qr$=function(H,C){return H.replace(/[^a-z]*[^\s]+/g,function(S){return S+".style-scope."+C})};
TnD=function(H,C){return C?H.split(",").map(function(S){return qr$(S.trim(),C)}).join(", "):H};
_.cY=function(H){var C,S,w,A;return(A=(w=(S=(C=H.root)!=null?C:H.shadowRoot)!=null?S:H.__shady_native_shadowRoot)!=null?w:H.__shady_shadowRoot)!=null?A:H};
Yz=function(H){return H instanceof ShadowRoot?ShadowRoot:H instanceof DocumentFragment?DocumentFragment:H instanceof Document?Document:HTMLElement};
mqE=function(H){var C,S,w;return(w=(S=(C=H.parentElement)!=null?C:H.__shady_native_parentElement)!=null?S:H.__shady_parentElement)!=null?w:null};
WS0=function(H){var C,S,w;return(w=(S=(C=H.parentNode)!=null?C:H.__shady_native_parentNode)!=null?S:H.__shady_parentNode)!=null?w:null};
yK0=function(H){var C,S,w;return(w=(S=(C=H.__shady_parentNode)!=null?C:H.__shady_native_parentNode)!=null?S:H.parentNode)!=null?w:null};
NnV=function(H){var C,S;return(S=(C=WS0(H))!=null?C:H.host)!=null?S:null};
btE=function(H){var C,S,w;return(w=(S=(C=H.nextSibling)!=null?C:H.__shady_native_nextSibling)!=null?S:H.__shady_nextSibling)!=null?w:null};
EnE=function(H){var C,S,w;return(w=(S=(C=H.previousSibling)!=null?C:H.__shady_native_previousSibling)!=null?S:H.__shady_previousSibling)!=null?w:null};
enV=function(H){var C,S,w;return(w=(S=(C=H.nextElementSibling)!=null?C:H.__shady_native_nextElementSibling)!=null?S:H.__shady_nextElementSibling)!=null?w:null};
ux0=function(H){var C,S,w;return(w=(S=(C=H.previousElementSibling)!=null?C:H.__shady_native_previousElementSibling)!=null?S:H.__shady_previousElementSibling)!=null?w:null};
GYw=function(H){var C,S,w;return new Set([].concat(_.k$((C=H.children)!=null?C:[]),_.k$((S=H.__shady_native_children)!=null?S:[]),_.k$((w=H.__shady_children)!=null?w:[])))};
fTU=function(H){var C,S,w;return new Set([].concat(_.k$((C=H.childNodes)!=null?C:[]),_.k$((S=H.__shady_native_childNodes)!=null?S:[]),_.k$((w=H.__shady_childNodes)!=null?w:[])))};
vnp=function(H){if(!H)return null;var C=_.FJ(H);if(!C){var S;return(S=Node.prototype.getRootNode)==null?void 0:S.call(H)}C=C.toUpperCase();for(H=mqE(H);H&&H.tagName!==C;)H=mqE(H);return H?_.cY(H):null};
lT7=function(H){for(;H&&!(H instanceof HTMLElement);)H=NnV(H);return H};
V_E=function(H){var C=lT7(H);return H===C?_.FJ(H):C?Z2(C):null};
onu=function(H){return(H=lT7(H))?Z2(H):null};
OtD=function(H){if(H instanceof Comment)return!1;if(H instanceof Text){var C,S;if(((S=(C=H.textContent)==null?void 0:C.trim())!=null?S:"")==="")return!1}return!0};
zz=function(H,C,S){var w=C(H);for(S=S===void 0?onu(H):S;w&&(V_E(w)!==S||!OtD(w));)H=w,w=C(H);return w};
XGZ=function(H,C,S){if(!C)return null;H=onu(H);return V_E(C)===H&&OtD(C)?C:zz(C,S,H)};
Qb$=function(H){return zz(H,yK0,_.FJ(H))};
dqU=function(H){return zz(H,enV)};
Pep=function(H){return zz(H,btE)};
$qZ=function(H){return zz(H,ux0)};
pGw=function(H){return zz(H,EnE)};
kY7=function(H){return XGZ(H,H.firstChild||H.__shady_native_firstChild||H.__shady_firstChild||null,btE)};
hnZ=function(H){var C,S,w;var A=(w=(S=(C=H.firstElementChild)!=null?C:H.__shady_native_firstElementChild)!=null?S:H.__shady_firstElementChild)!=null?w:null;return XGZ(H,A,enV)};
nnw=function(H){var C,S,w;var A=(w=(S=(C=H.lastChild)!=null?C:H.__shady_native_lastChild)!=null?S:H.__shady_lastChild)!=null?w:null;return XGZ(H,A,EnE)};
rKu=function(H){var C,S,w;var A=(w=(S=(C=H.lastElementChild)!=null?C:H.__shady_native_lastElementChild)!=null?S:H.__shady_lastElementChild)!=null?w:null;return XGZ(H,A,ux0)};
BnE=function(H){var C=onu(H);return Array.from(fTU(H)).filter(function(S){return V_E(S)===C})};
Dq0=function(H){var C=Z2(H);return Array.from(GYw(H)).filter(function(S){return _.FJ(S)===C})};
_.MT=function(H,C,S){if(H instanceof HTMLElement&&_.FJ(H)===S){var w=Array.from(H.classList).indexOf("style-scope");if(w===-1)H.classList.add("style-scope"),H.classList.add(C);else if(!(w+1>=H.classList.length)){w=H.classList[w+1];var A,J;H==null||(A=H.classList)==null||(J=A.replace)==null||J.call(A,w,C)}}if(H instanceof HTMLElement||H instanceof DocumentFragment)for(A=_.Z(GYw(H)),J=A.next();!J.done;J=A.next())_.MT(J.value,C,S);return H};
qT=function(H,C){if(H instanceof HTMLElement&&_.FJ(H)===C){var S=Array.from(H.classList).indexOf("style-scope");S===-1||S+1>=H.classList.length||H.classList.remove("style-scope",H.classList[S+1])}if(H instanceof HTMLElement||H instanceof DocumentFragment){S=_.Z(H.children);for(var w=S.next();!w.done;w=S.next())qT(w.value,C)}return H};
_.KSw=function(H,C){return Yz(H).prototype.appendChild.call(H,C)};
t_W=function(H,C){if(H===C)return!0;H=fTU(H);return Array.from(H).some(function(S){return t_W(S,C)})};
_.mY=function(H,C){if(H instanceof Tz)return H;(C==null?0:C.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(H,"ownerDocument")&&Object.defineProperty(H,"ownerDocument",{get:function(){return window.document}});
return new Tz(H)};
gnZ=function(){var H=Tz.prototype,C=[].concat(_.k$(LSw?[]:["getRootNode"]),["setAttribute","removeAttribute"]);C=_.Z(C);for(var S=C.next(),w={};!S.done;w={method$jscomp$51:void 0},S=C.next())w.method$jscomp$51=S.value,H[w.method$jscomp$51]=function(A){return function(){return this.host[A.method$jscomp$51].apply(this.host,arguments)}}(w)};
RnV=function(){var H=Tz.prototype,C=[].concat(_.k$(LSw?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.k$(UqV?[]:["querySelector","querySelectorAll"]));C=_.Z(C);for(var S=C.next(),w={};!S.done;w={method$jscomp$52:void 0},S=C.next())w.method$jscomp$52=S.value,H[w.method$jscomp$52]=function(A){return function(){return this.root[A.method$jscomp$52].apply(this.root,arguments)}}(w)};
xqV=function(){var H=Tz.prototype,C=[].concat(_.k$(ITU?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.k$(aTE?[]:["parentNode"]));C=_.Z(C);for(var S=C.next(),w={};!S.done;w={prop$jscomp$63:void 0},S=C.next())w.prop$jscomp$63=S.value,Object.defineProperty(H,w.prop$jscomp$63,{get:function(A){return function(){return this.host[A.prop$jscomp$63]}}(w),
configurable:!0})};
CIZ=function(){var H=Tz.prototype,C=["activeElement"].concat(_.k$(ITU?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.k$(HgZ?[]:["children"]),_.k$(igU?[]:["lastChild"]));C=_.Z(C);for(var S=C.next(),w={};!S.done;w={prop$jscomp$64:void 0},S=C.next())w.prop$jscomp$64=S.value,Object.defineProperty(H,w.prop$jscomp$64,{get:function(A){return function(){return this.root[A.prop$jscomp$64]}}(w),
configurable:!0})};
SHD=function(){for(var H=Tz.prototype,C=_.Z(["innerHTML","textContent"]),S=C.next(),w={};!S.done;w={prop$jscomp$65:void 0},S=C.next())w.prop$jscomp$65=S.value,Object.defineProperty(H,w.prop$jscomp$65,{get:function(A){return function(){return this.root[A.prop$jscomp$65]}}(w),
set:function(A){return function(J){this.root[A.prop$jscomp$65]=J}}(w),
configurable:!0})};
svE=function(H){var C=Tz.prototype;H=_.Z(Object.entries(H));for(var S=H.next(),w={};!S.done;w={fn$jscomp$402:void 0},S=H.next()){var A=_.Z(S.value);S=A.next().value;A=A.next().value;w.fn$jscomp$402=A;C[S]=function(J){return function(){return J.fn$jscomp$402.apply(null,[this.host.node||this.host].concat(_.k$(arguments)))}}(w)}};
wBi=function(){for(var H=Tz.prototype,C=_.Z(Object.entries(jvp)),S=C.next(),w={};!S.done;w={fn$jscomp$403:void 0},S=C.next()){var A=_.Z(S.value);S=A.next().value;A=A.next().value;w.fn$jscomp$403=A;Object.defineProperty(H,S,{get:function(J){return function(){return J.fn$jscomp$403.apply(null,[this.host.node||this.host].concat(_.k$(arguments)))}}(w),
configurable:!0})}};
_.WY=function(H){return H instanceof AUE||H instanceof Document?H:new AUE(H)};
JUp=function(){for(var H=AUE.prototype,C=_.Z("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),S=C.next(),w={};!S.done;w={method$jscomp$53:void 0},S=C.next())w.method$jscomp$53=S.value,H[w.method$jscomp$53]=function(A){return function(){return HTMLElement.prototype[A.method$jscomp$53].call.apply(HTMLElement.prototype[A.method$jscomp$53],[this.node].concat(_.k$(arguments)))}}(w)};
Fb6=function(){for(var H=AUE.prototype,C=_.Z("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),S=C.next(),w={};!S.done;w={prop$jscomp$66:void 0},S=C.next())w.prop$jscomp$66=S.value,Object.defineProperty(H,w.prop$jscomp$66,{get:function(A){return function(){var J;return(J=this.node["__shady_native_"+A.prop$jscomp$66])!=null?J:this.node[A.prop$jscomp$66]}}(w),
configurable:!0})};
_.yQ=function(H,C,S){S===void 0&&(S=!H.classList.contains(C));S?H.classList.add(C):H.classList.remove(C)};
_.NT=function(H,C,S){S===void 0&&(S=!H.hasAttribute(C));if(C==="class")throw Error("kg");S?_.WY(H).setAttribute(C,""):_.WY(H).removeAttribute(C)};
Zgp=function(H){return(H.localName!=="slot"?[]:(0,_.bA)(H).assignedNodes({flatten:!0})).filter(function(C){return C.nodeType===Node.ELEMENT_NODE})};
_.cU6=function(H){return(H=_.mY(H).querySelector("slot"))&&H.localName==="slot"?Zgp(H):[]};
_.Ed=function(H,C){window.ShadyCSS&&window.ShadyCSS.styleSubtree(H,C)};
es=function(H,C){var S=C.bind(H);return function(w){S(w,w.detail)}};
_.uA=function(H,C){var S=YHD.get(H);S||(S=new WeakMap,YHD.set(H,S));if(S.has(C))return S.get(C);if(_.E("web_fi_listen_disable_bound_fn_helper")){var w=C.bind(H);H=function(A){w(A,A==null?void 0:A.detail)}}else H=es(H,C);
S.set(C,H);return H};
qHw=function(H,C){zRE(H);H.created[Mu0].push(C)};
zRE=function(H){if(!H.created||!H.created[Mu0]){var C=H.created,S=C?[C]:[];H.created=function(){for(var w=_.Z(S),A=w.next();!A.done;A=w.next())A.value.apply(this)};
H.created[Mu0]=S}};
ToV=function(H){return function(){var C=_.tc.apply(0,arguments);return function(S,w,A){H.apply(null,_.k$(C))(S,w,A)}}};
mlD=function(){return function(){var H=_.tc.apply(0,arguments);return function(C,S,w){Hh$.apply(null,_.k$(H))(C,S,w)}}};
_.v=function(H){return mlD()(H)};
_.l=function(){return ToV(sYZ).apply(null,_.k$(_.tc.apply(0,arguments)))};
_.Gz=function(H){return _.E("pbcm_fi_listen_decorators")?Wbp(H):ToV(CwZ)(H)};
Wbp=function(H){return function(C,S){qHw(C,function(){var w=this[S],A=_.E("web_fi_listen_disable_bound_fn_helper")?function(J){w(J,J.detail)}.bind(this):es(this,w);
yU6.has(H)?nm(this.hostElement,H,A):this.hostElement.addEventListener(H,A)})}};
_.fx=function(){return ToV(SwW).apply(null,_.k$(_.tc.apply(0,arguments)))};
_.V=function(H){H=H===void 0?{}:H;return ToV(ih0)(H)};
_.vY=function(H){if(H.hostElement&&H!==H.hostElement){var C=_.PM(H.hostElement);C=H.renderIdom?C:C.shadowRoot}C||(H=H.root,C=H instanceof Node?_.PM(H):null);return C};
_.lA=function(H){return No0?bgD(H):function(C,S){Object.defineProperty(C,S,{get:function(){var w;return(w=_.vY(this))==null?void 0:w.querySelector(H)},
enumerable:!0,configurable:!0})}};
bgD=function(H){return function(C,S){Object.defineProperty(C,S,{get:function(){var w,A=(w=_.mY(this.hostElement))==null?void 0:w.querySelector(H);if(A)return A;var J;return(J=_.vY(this))==null?void 0:J.querySelector(H)},
enumerable:!0,configurable:!0})}};
_.VQ=function(H){return No0?EdV(H):function(C,S){Object.defineProperty(C,S,{get:function(){var w;return(w=_.vY(this))==null?void 0:w.querySelectorAll(H)},
enumerable:!0,configurable:!0})}};
EdV=function(H){return function(C,S){Object.defineProperty(C,S,{get:function(){var w,A=(w=_.mY(this.hostElement))==null?void 0:w.querySelectorAll(H);if(A==null?0:A.length)return A;var J;return(J=_.vY(this))==null?void 0:J.querySelectorAll(H)},
enumerable:!0,configurable:!0})}};
eRZ=function(H){return function(C){if(![_.Fj,_.X].includes(Object.getPrototypeOf(C.prototype).constructor))throw Error("lg");tMW(Object.assign({},typeof H!=="string"?H:{is:H,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(C)}};
_.Od=function(){var H=H===void 0?{}:H;return function(C){if(![Zg,_.oZ].includes(Object.getPrototypeOf(C.prototype).constructor))throw Error("mg");LJp(Object.assign({},H,{disableInheritanceCheck:!0}))(C)}};
GJD=function(H,C){uX6[H]!=null||(uX6[H]=new Set);uX6[H].add(C)};
_.XJ=function(){var H=_.fx.apply(null,_.k$(_.tc.apply(0,arguments)));return function(C,S){GJD(C.is,S);H(C,S)}};
PY=function(H,C,S){if(QQ(H)&&!f0p.has(C)){C=C.replace(/^JSC\$[\d]+_/,"");C=C.replace(/\.\d+(\.|$)/g,function(J,c){return".#"+c});
dE[H]!=null||(dE[H]={});var w,A;(w=dE[H])[A=C]!=null||(w[A]=new Set);dE[H][C].has(S)||(dE[H][C].add(S),_.kI("polymerPropertyAccessEvent",{componentName:H,propertyName:C,accessType:S}))}};
vd6=function(){return _.E("polymer_property_access_logging_debug")||_.E("polymer_enable_property_access_logging")};
QQ=function(H){if(_.E("polymer_property_access_logging_debug"))return!0;if(!_.E("polymer_enable_property_access_logging"))return!1;l0W||(l0W=Date.now());return(ae(H)+l0W)%100<_.YB("polymer_property_access_logging_percent")};
Vu6=function(H,C){return QQ(C)&&H.hostElement.loggingStatus?new Proxy(H,{get:function(S,w,A){if(S.hostElement.loggingStatus.bypassProxyController)return S[w];S.hostElement.loggingStatus.isExternalGet=!0;var J=S[w];S.hostElement.loggingStatus.isExternalGet=!1;if(J instanceof Function)return function(){var c=_.tc.apply(0,arguments);try{return S.hostElement.loggingStatus.currentExternalCall=w,PY(C,w,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),J.apply(this===A?S:this,c)}finally{S.hostElement.loggingStatus.currentExternalCall=
void 0}};
PY(C,w,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return J},
set:function(S,w,A){if(S.hostElement.loggingStatus.bypassProxyController)return S[w]=A,!0;S.hostElement.loggingStatus.isRendererStamper?PY(C,w,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):S.hostElement.loggingStatus.isDeclarativeExternal||PY(C,w,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{S.hostElement.loggingStatus.currentExternalSet=w,S[w]=A}finally{S.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):H};
odZ=function(H,C){H&&H.loggingStatus&&!H.loggingStatus.isDeclarativeExternal&&!H.loggingStatus.isExternalGet&&H.loggingStatus.currentExternalSet!==C&&PY(H.tagName.toLowerCase(),C,"PROPERTY_ACCESS_GET_INTERNAL")};
$z=function(H,C,S){H&&(S||H.loggingStatus&&!H.loggingStatus.isInitializing&&!H.loggingStatus.isDefiningPropertyAccessor&&H.loggingStatus.currentExternalSet!==C)&&PY(H.tagName.toLowerCase(),C,"PROPERTY_ACCESS_SET_INTERNAL")};
OgE=function(){return{_definePropertyAccessor:function(H,C){var S=this,w=S.hostElement.loggingStatus;w&&(w.isDefiningPropertyAccessor=!0);var A=S[H];A!==void 0&&(S.__data?S._setPendingProperty(H,A):(S.__dataProto!=null||(S.__dataProto={}),S.__dataProto[H]=A));w&&(w.isDefiningPropertyAccessor=!1);Object.defineProperty(this,H,{get:function(){odZ(S.hostElement,H);return this.__data[H]},
set:function(J){C||this._setPendingProperty(H,J,!0)&&this._invalidateProperties()}})},
created:function(){var H=this._setPendingProperty.bind(this);this._setPendingProperty=function(C,S,w){$z(this.hostElement,C);return H.apply(this,[C,S,w])}}}};
XB$=function(H){vd6()&&_.v(px.prototype)(H.prototype,"__templateBindingLoggingBehavior")};
QvV=function(H,C){if(C.resolvedFactories.length!==H.resolvedFactories.length)return!0;C=_.Z(C.resolvedFactories.entries());for(var S=C.next();!S.done;S=C.next()){var w=_.Z(S.value);S=w.next().value;w=w.next().value;if(w.providerClass){if(w.providerClass!==H.resolvedFactories[S].providerClass)return!0}else if(w.providerValue){if(w.providerValue!==H.resolvedFactories[S].providerValue)return!0}else if(w.factory!==H.resolvedFactories[S].factory)return!0}return!1};
dlZ=function(H,C){H=_.Z(H);for(var S=H.next();!S.done;S=H.next())if(S=S.value,S.constructor===Array)dlZ(S,C);else{var w=C;w.has(S)||(S.inject&&w.add(S),S.behaviors&&dlZ(S.behaviors,w))}};
kz=function(H,C){var S=H[C];H[C]=function(){var w=_.tc.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(S)return S.apply(this,w)}};
kJD=function(){_.hr.Class=function(S,w){S=PI0(S,w);kz(S.prototype,"created");return S};
kz(nx.prototype,"_initializeProperties");kz(_.rE.prototype,"_initializeProperties");if($l7)kz(pBi,"created");else{var H=function(){kz(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))H();else{var C=customElements.define;customElements.define=function(S,w,A){C.call(customElements,S,w,A);S==="tp-yt-iron-list"&&(H(),customElements.define=C)}}}};
ndp=function(H,C){H.prototype.behaviors=H.prototype.behaviors||[];H.prototype.behaviors.unshift(hR7.InjectBehavior);H.prototype.provide=C};
_.Lx=function(H){return function(C){if(!H.disableElementRegistration){H.noInjection||ndp(C,H.providers);var S=C.prototype;S.__templateHelpers||Hh$(Kx.prototype)(S,"__templateHelpers");S=H.is;rUi||(rUi=Date.now());(ae(S)+rUi)%100<_.YB("polymer_log_prop_change_observer_percent")&&Hh$(tr.prototype)(C.prototype,"__propertyObserverObserver");C.prototype.behaviors=C.prototype.behaviors||[];C.prototype.behaviors.unshift(_.BoU.YtHostElementBehavior);XB$(C);eRZ({is:H.is,notifyObserversOnUndefined:H.notifyObserversOnUndefined!==
!1,fastInit:H.fastInit,template:H.template,disableEnforceFastDefaultValuesCheck:!0})(C)}}};
_.h=function(H){return _.Lx({is:H.is,template:H.template,disableElementRegistration:H.disableElementRegistration,cssBuildOptOut:H.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
tuw=function(H,C){if(DlZ){H=new H;for(var S=_.Z(Object.getOwnPropertyNames(H)),w=S.next();!w.done;w=S.next())w=w.value,C[w]=H[w];for(S=C;S&&S!==Object.prototype;S=Object.getPrototypeOf(S)){w=_.Z(Object.getOwnPropertyNames(S));for(var A=w.next();!A.done;A=w.next())A=A.value,H.hasOwnProperty(A)||Object.defineProperty(H,A,Kb$(C,A))}}else H.apply(C)};
Kb$=function(H,C){return{get:function(){var S=H[C];return S instanceof Function?S.bind(H):S},
set:function(S){H[C]=S}}};
gdU=function(H,C){for(var S=H._noAccessors,w=_.Z(Object.getOwnPropertyNames(H)),A=w.next();!A.done;A=w.next())if(A=A.value,!Lb$.has(A))if(S)C[A]=H[A];else{var J=Object.getOwnPropertyDescriptor(H,A);J&&(J.configurable=!0,Object.defineProperty(C,A,J))}};
Ul0=function(H,C,S){return function(w){if(S){var A=S();w.model=A}if(H[C])H[C](w,w.detail)}};
gE=function(H){var C=[];if(typeof H==="string")H.length>0&&C.push.apply(C,_.k$(H.split(".")));else{H=_.Z(H);for(var S=H.next();!S.done;S=H.next())S=S.value,typeof S==="string"?C.push.apply(C,_.k$(S.split("."))):C.push(S)}return C};
RRu=function(H,C){if(C[C.length-1]!=="*"&&C[C.length-1]!=="splices"){for(var S=0;S<C.length;S++){if(!H)return;H=H[C[S]]}return H}};
I0Z=function(H,C){if(H.length>C.length)return!1;for(var S=0;S<H.length;S++)if(H[S]!==C[S])return!1;return!0};
xlp=function(H,C,S){if(C.type==="compute"){var w=C.getter.bind(S);var A=C.args}else w=function(){return S[C.method.methodName].apply(S,_.k$(_.tc.apply(0,arguments)))},A=C.method.args;
a0$(H,C.propertyKey,w,A,C.value)};
iE0=function(H,C){if(C.readOnly){var S=Object.getOwnPropertyDescriptor(H.model,C.propertyKey);Object.defineProperty(H.model,C.propertyKey,{get:S.get,set:function(){}});
H.model[HE7(C.propertyKey)]=S.set}};
CjE=function(H,C,S){if(S){var w=C.propertyKey,A=C.selector;C=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.k$(C.selectorArgs.map(function(J){return{type:"path",path:J}})));
a0$(H,w,function(J){var c=_.tc.apply(1,arguments);return A.apply(null,[S.getState()].concat(_.k$(c)))},C)}};
sjE=function(H,C,S){var w=_.vM(C.propertyKey)+"-changed";SZ$(H,function(A){var J={value:A.value,queueProperty:!0};A.path.split(".").length>1&&(J.path=A.path);S.dispatchEvent(new CustomEvent(w,{detail:J}))},[{type:"wildcard",
path:C.propertyKey}])};
jji=function(H,C,S){SZ$(H,function(){S[C.method.methodName].apply(S,_.k$(_.tc.apply(0,arguments)))},C.method.args)};
HE7=function(H){return"_set"+(H.charAt(0).toUpperCase()+H.slice(1))};
wou=function(){var H,C=$1(function(S){H=S},!1);
return[H,C]};
c06=function(H){H=H.trim().replace(A07,",").replace(J00,"$1");var C=H[0];C==="-"&&(C=H[1]);if(C>="0"&&C<="9")return{type:"literal",value:Number(H)};if(C==="'"||C==='"')return{type:"literal",value:H.slice(1,-1)};if(C=H.match(Fzu)){C=C[1];var S=ZEw[C];if(S)return{type:S,path:H.slice(0,-(C.length+1))}}return{type:"path",path:H}};
qZU=function(H){var C=H.match(YZw);if(C)return H={methodName:C[1],args:zHV},C[2].trim()&&(C=C[2].replace(MVW,"&comma;").split(","),H.args=C.map(c06)),H};
TtV=function(H,C,S,w){w=w===void 0?!1:w;C=_.vM(C);var A=ly;A&&(S=A(S,C,"attribute",H));Ud(H,S,C,w)};
Ud=function(H,C,S,w){C=mkW(C,w===void 0?!1:w);C===void 0?H.removeAttribute(S):H.setAttribute(S,C)};
mkW=function(H,C){switch(typeof H){case "object":case "function":if(H instanceof Date)return H.toString();if(H){if((C===void 0?0:C)&&!_.E("polymer_reflect_objects_as_boolean_killswitch"))return H?"":void 0;C=window.trustedTypes?window.trustedTypes.isHTML(H)||window.trustedTypes.isScript(H)||window.trustedTypes.isScriptURL(H):void 0;if(C)return H;try{return JSON.stringify(H)}catch(S){_.Bn(Error("Ig`"+H))}}break;case "boolean":return H?"":void 0;default:return H!==null&&H!==void 0?H.toString():void 0}};
Wz6=function(H){if(H===void 0)throw Error("Jg");return H};
eHW=function(H,C,S,w){var A=y0W(w);if(A.length){w=S;var J="property";Ntp.test(S)?J="attribute":S[S.length-1]==="$"&&(S=S.slice(0,-1),J="attribute");var c=bEw(A);c&&J==="attribute"&&(S==="class"&&H.hasAttribute("class")&&(c+=" "+H.getAttribute(S)),Ud(H,c,S));J==="attribute"&&w==="disable-upgrade$"&&H.setAttribute("disable-upgrade","");H.localName==="input"&&w==="value"&&H.setAttribute("value","");H.removeAttribute(w);J==="property"&&(S=_.ls(S));C=Wz6(C);EyE(C,J,S,A);return!0}return S.slice(0,3)===
"on-"?(H.removeAttribute(S),(J=C).events!=null||(J.events=[]),C.events.push({name:S.slice(3),value:w}),!0):S==="id"?(C.id=w,!0):!1};
y0W=function(H){for(var C=[],S=0,w;(w=uzi.exec(H))!==null;){w.index>S&&C.push({type:"literal",value:H.slice(S,w.index)});var A=w[1][0];S=!!w[2];w=w[3].trim();if(A==="{")throw Error("Kg");(A=qZU(w))?C.push({type:"method",negate:S,signature:A}):C.push({type:"path",negate:S,path:w});S=uzi.lastIndex}S&&S<H.length&&(H=H.substring(S))&&C.push({type:"literal",value:H});return C};
bEw=function(H){for(var C="",S=0;S<H.length;S++){var w=H[S];w.type==="literal"&&(C+=w.value)}return C};
EyE=function(H,C,S,w){H.bindings!=null||(H.bindings=[]);H.bindings.push({kind:C,target:S,parts:w})};
VVW=function(H,C,S){var w=!1;if(H.localName==="template"){w=S;var A=C.stripWhitespace;A=GF0(H,A===void 0?!1:A);var J=H.content.ownerDocument.createDocumentFragment();A.content=J;J.appendChild(H.content);w&&(w.templateInfo=A);w=!0}else H.localName==="slot"&&(C.hasInsertionPoint=!0);if(H.firstChild&&(A=S,H.localName!=="script"&&H.localName!=="style")){J=0;for(var c=H.firstChild;c;){var Y=c;if(Y.localName==="template"){var M=Y.getAttribute("is");if((c=M==="dom-if")||M==="dom-repeat"){Y.removeAttribute("is");
M=Y.ownerDocument.createElement("ps-"+M);Y.parentNode.replaceChild(M,Y);M.appendChild(Y);var m=Array.from(Y.attributes);m=_.Z(m);for(var W=m.next();!W.done;W=m.next())W=W.value,c?fU6.has(W.name)&&Ud(M,W.value,W.name):vyp.has(W.name)?Ud(M,W.value,W.name):lUu.has(W.name),Y.removeAttribute(W.name);c=M}else c=Y}if(c.nodeType===Node.TEXT_NODE){Y=void 0;M=H;for(m=c;((Y=m.nextSibling)==null?void 0:Y.nodeType)===Node.TEXT_NODE;)W=void 0,(W=m).textContent!=null||(W.textContent=""),m.nextSibling.textContent&&
(m.textContent+=m.nextSibling.textContent),M.removeChild(m.nextSibling);if(C.stripWhitespace&&c.textContent&&!c.textContent.trim()){H.removeChild(c);c=c.nextSibling;continue}}VVW(c,C,{parentIndex:J,parentInfo:A});c.parentNode&&J++;c=c.nextSibling}}var y;if((y=H.hasAttributes)==null?0:y.call(H)){y=S=Wz6(S);A=!1;J=Array.from(H.attributes);J=_.Z(J);for(Y=J.next();!Y.done;Y=J.next())Y=Y.value,A=eHW(H,y,Y.name,Y.value)||A;w=A||w}H.nodeType===Node.TEXT_NODE&&(y=y0W(H.textContent),y.length&&(H.textContent=
bEw(y)||" ",S=Wz6(S),EyE(S,"text","textContent",y),w=!0));S&&w&&(S.infoIndex=C.nodeInfoList.push(S)-1)};
GF0=function(H,C){C={nodeInfoList:[],stripWhitespace:(C===void 0?!1:C)||H.hasAttribute("strip-whitespace")};VVW(H.content,C);return C};
oyW=function(H){Object.assign(H,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
Xo6=function(H,C,S){C.signalCache!=null||(C.signalCache={});var w=C.signalCache[S];if(!w){var A=S.split(".");w=!OEu(H,A[0]);if(A.length>1&&w){var J=H.getPathMutationSignal(A);w=function(){var c=ha(H.owner,function(){return H.getWithPath([A[0]])}),Y,M=(Y=J())==null?void 0:Y.value;
return{rootWasDefined:c!==void 0,value:M}}}else w=function(){var c=H.getWithPath(A);
return{rootWasDefined:c!==void 0,value:c}};
C.signalCache[S]=w}return w()};
dkU=function(H,C,S,w,A){C=C.parts.map(function(c,Y){if(c.type==="literal"){S.partWasDefined!=null||(S.partWasDefined=[]);var M;(M=S.partWasDefined)[Y]||(M[Y]=c.value!==void 0);return c.value}var m;if(c.type==="method"){var W,y=(W=(m=S.partWasDefined)==null?void 0:m[Y])!=null?W:!1;y||(y=c.signature.args.every(function(u){return u.type==="literal"}));
var N=!1,b=!0;m=c.signature.args.map(function(u){if(u.type==="literal")return u.value;if(u.type!=="path")throw Error("Lg`"+u.type);var O=Xo6(H,S,u.path);u=O.value;O=O.rootWasDefined;N||(N=O);b&&(b=O);return u});
y||(y=A===1?b:N);S.partWasDefined!=null||(S.partWasDefined={});S.partWasDefined[Y]=y;if(!y)return;m=(Y=Xo6(H,S,c.signature.methodName).value)&&typeof Y==="function"?Y.apply(w,m):void 0}else W=Xo6(H,S,c.path),m=W.value,S.partWasDefined!=null||(S.partWasDefined={}),(y=S.partWasDefined)[Y]||(y[Y]=m!==void 0||W.rootWasDefined);c.negate&&(m=!m);return m});
if(C.length===1){var J;return((J=S.partWasDefined)==null?0:J[0])?C[0]:QjZ}return C.join("")};
PjZ=function(H){return typeof H==="object"&&!!H&&"notifyPath"in H&&"canNotifyPath"in H};
$k6=function(H){return typeof H==="object"&&!!H&&"notifyPath"in H};
poD=function(H){return"polymerController"in H};
kF$=function(H,C){C=""+gE(C)[0];if(PjZ(H))return H.canNotifyPath(C);if(poD(H)&&PjZ(H.polymerController))return H.polymerController.canNotifyPath(C);if($k6(H)){var S;return!((S=H.properties)==null||!S[C])}if(poD(H)&&$k6(H.polymerController)){var w;return!((w=H.polymerController.properties)==null||!w[C])}return!1};
hHE=function(H,C,S){PjZ(H)||$k6(H)?H.notifyPath(C,S):poD(H)&&(PjZ(H.polymerController)||$k6(H.polymerController))&&H.polymerController.notifyPath(C,S)};
r0E=function(H,C,S){if(S!==QjZ){H.kind==="attribute"||H.target!=="textContent"&&(H.target!=="value"||C.localName!=="input"&&C.localName!=="textarea")||(S=S===void 0?"":S);var w,A=(w=ny$.Polymer)==null?void 0:w.sanitizeDOMValue;A&&(S=A(S,H.target,H.kind,C));if(H.kind==="attribute"){H=H.target;if(H==="class"||H==="name"||H==="slot")C=(0,_.bA)(C);Ud(C,S,H)}else if(H=H.target,S!==C[H]||typeof S==="object")C.loggingStatus&&(C.loggingStatus.isDeclarativeExternal=!0,PY(C.localName,H,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
C[H]=S,C.loggingStatus&&(C.loggingStatus.isDeclarativeExternal=!1)}};
BtD=function(H,C,S,w){var A=C.parts[0];if(C.parts.length!==1||A.type!=="path"||!kF$(S,C.target))return!1;var J=_.Z(A.path.split(".")),c=J.next().value,Y=Cs(J);if(OEu(H,c))return!1;w.signalCache!=null||(w.signalCache={});J=w.signalCache[A.path];var M;J=(M=J)==null?void 0:M().value;if((J==null?void 0:J.path)!==void 0){w=gE(J.path);var m=gE(A.path);w=[C.target].concat(_.k$(w.slice(m.length-1)));hHE(S,w,A.negate?!J.value:J.value);return!0}var W=RZ(H,c);var y=W.getChangeRecordSignal(Y),N=!1;J=function(){if(!N){var u=
ha(H.owner,function(){return W.getWithPath([])});
N||(N=u!==void 0)}return{value:y(),rootWasDefined:N}};
w.signalCache[A.path]=J;w.partWasDefined!=null||(w.partWasDefined={});J=J();(m=w.partWasDefined)[0]||(m[0]=J.rootWasDefined);var b=ha(H.owner,function(){return W.getWithPath(Y)});
w.partWasDefined[0]&&ha(H.owner,function(){return void r0E(C,S,A.negate?!b:b)});
return!0};
DkZ=function(H,C,S,w,A,J){if(!BtD(H,C,S,w)){var c=dkU(H,C,w,A,J);ha(H.owner,function(){return void r0E(C,S,c)})}};
Kz0=function(H,C,S,w,A,J){S=_.Z(S);for(var c=S.next(),Y={};!c.done;Y={infoIndex:void 0},c=S.next()){c=c.value;var M=c.bindings;Y.infoIndex=c.infoIndex;c=c.parentInfo;if(M){M=_.Z(M);for(var m=M.next(),W={};!m.done;W={b$jscomp$254:void 0,bindingCtx$jscomp$4:void 0},m=M.next()){W.b$jscomp$254=m.value;if(Y.infoIndex===void 0)throw Error("Mg");W.bindingCtx$jscomp$4={};H.effect(function(y,N){return function(){A&&!A()||DkZ(H,y.b$jscomp$254,C[N.infoIndex],y.bindingCtx$jscomp$4,w,J)}}(W,Y))}}c&&Kz0(H,C,[c],
w,A,J)}};
tVp=function(H,C){H=(C.parentInfo?tVp(H,C.parentInfo):H).firstChild;for(var S=0;H;H=H.nextSibling)if(C.parentIndex===S++)return H;throw Error("Ng");};
gyw=function(H,C,S,w){H=document.importNode(H.content,!0);H.__noInsertionPoint=!(w==null?0:w.hasInsertionPoint);for(var A=Array(C.length),J={},c=0;c<C.length;c++){var Y=C[c],M=tVp(H,Y);A[c]=M;Y.id&&(J[Y.id]=M);if(Y.templateInfo){var m=M.parentElement;m&&(m.templateInfo=Y.templateInfo,m.parentSignalProxy=S,m.eventListenerHost=w.eventListenerHost,m.stampingEnabled=w.enabledSignal)}m=void 0;if((m=Y.events)==null?0:m.length)for(m=0;m<Y.events.length;m++){var W=Y.events[m];LzD(w.eventListenerHost,M,W.name,
W.value,w.getModel)}}Kz0(S,A,C,w.thisCtx,w.enabledSignal,w.methodInvocationRequirement);return{root:H,nodes:A,nodesById:J}};
RHV=function(H,C){H=H();var S;(S=Uku.ShadyCSS)==null||S.prepareTemplate(H,C);C=GF0(H);return{template:H,nodeInfoList:C.nodeInfoList,hasInsertionPoint:C.hasInsertionPoint}};
xkU=function(){IU$=!1;for(var H=IZ.length,C=0;C<H;C++){var S=IZ[C];if(S)try{S()}catch(w){Promise.resolve().then(function(){throw w;})}}IZ.splice(0,H);
aUp+=H};
SRU=function(H){IU$||(IU$=!0,H10.textContent=(i1V++).toString());IZ.push(H);return CT$++};
_.HI=function(H,C,S){aZ++;H=C?new sCW(aZ,H,C,S):new jCW(aZ,H);xz.set(aZ,H);return aZ};
wLZ=function(H){(H=xz.get(H))&&H.cancel()};
JjE=function(H,C){H=Ajp.get(H);return H?(C=H.get(C))?C:null:null};
_.iJ=function(H,C,S,w){var A=JjE(H,C);if(!A){A=new F0p;var J=Ajp.get(H);J||(J=new Map,Ajp.set(H,J));J.set(C,A)}H=S.bind(H);A.run(H,w,void 0)};
_.Z17=function(H,C){var S;(S=JjE(H,C))==null||S.cancel()};
cji=function(H){var C;(C=JjE(H,"doRender"))==null||C.flush()};
C7=function(H){var C;return(C=H.hostElement)!=null?C:H};
YR$=function(H){var C=H.indexOf(".");return C===-1?H:H.slice(0,C)};
zaV=function(H,C,S,w,A,J){J=(A=(w=J?YR$(C):C)?C:null)?H.get(A):H.__data[C];A&&J===void 0&&(J=S[C]);_.M3(H.hostElement,QF$(w)+"-changed",{value:J,queueProperty:!0,path:A!=null?A:void 0},{bubbles:!1,composed:!1})};
MOD=function(H,C){H.__isReflecting=!0;TtV(H.hostElement,C,H.__data[C]);H.__isReflecting=!1};
qRu=function(H){if(H._onIronRequestResizeNotifications){var C=H._onIronRequestResizeNotifications.bind(H);H._onIronRequestResizeNotifications=function(S){_.Jr(S)!==H.hostElement&&C(S)}}H._ariaActiveAttributeChanged&&(H._ariaActiveAttributeChanged=H._ariaActiveAttributeChanged.bind(H.hostElement));
H._activeChanged&&(H._activeChanged=function(S){H.toggles?Ud(H.hostElement,S?"true":"false",H.ariaActiveAttribute):H.hostElement.removeAttribute(H.ariaActiveAttribute);H._changedButtonState()});
H._asyncClick&&(H._asyncClick=function(){_.HI(function(){H.hostElement.click()},1)});
!H.keyEventTarget||H.keyEventTarget instanceof EventTarget||(H.keyEventTarget=C7(H.keyEventTarget));H._disabledChanged&&(H._disabledChanged=H._disabledChanged.bind(H.hostElement));H._observeItems&&(H._observeItems=function(S){var w=C7(S);return _.PM(w).observeNodes(function(A){H._updateItems();H._updateSelected();_.M3(w,"iron-items-changed",A,{bubbles:!1,cancelable:!1})})});
H._updateItems&&H._updateItems===_.SU._updateItems&&(H._updateItems=function(){var S=_.PM(H.hostElement).queryDistributedElements(H.selectable||"*");S=Array.prototype.filter.call(S,H._bindFilterItem);H._setItems(S)});
H._computeKeyboardClass&&(H._computeKeyboardClass=function(S){_.yQ(H.hostElement,"keyboard-focus",S)});
H.ensureRipple&&(H.ensureRipple=function(S){if(H.hasRipple&&!H.hasRipple()){if(!H._createRipple)return;H._ripple=H._createRipple();H._ripple.noink=H.noink;var w=H._rippleContainer||H.hostElement;w&&_.mY(w).appendChild(H._ripple)}var A;if(S&&((A=H._ripple)==null?0:A.uiDownAction)){w=_.mY(H._rippleContainer||H.hostElement);var J;A=(J=S.composedPath())==null?void 0:J[0];w.contains(A)&&H._ripple.uiDownAction(S)}});
H._updateMultiselectable&&(H._updateMultiselectable=function(S){S?H.hostElement.setAttribute("aria-multiselectable","true"):H.hostElement.removeAttribute("aria-multiselectable")})};
TGW=function(H,C,S){S=_.Z(S);for(var w=S.next();!w.done;w=S.next())tuw(w.value.constructor,H);tuw(C.constructor,H)};
W0w=function(H,C){H=_.Z(H);for(var S=H.next();!S.done;S=H.next())if(S=S.value,S.type==="signal"){var w=S.propertyKey;if(C.hasOwnProperty(w)&&C[w]!=null&&S.attributeType===Object){a:{w=C[w].constructor;for(var A=_.Z(mwu),J=A.next();!J.done;J=A.next())if(J=J.value,w===J){w=J;break a}w=Object}S.attributeType=w}}};
yj7=function(){};
NG$=function(H){var C;return(C=H.hostElement)!=null?C:H};
b16=function(){throw Error("Rg");};
EaU=function(H,C){H.constructor.prototype.useSignals=!0;var S=new H.constructor;TGW(S,H,C.behaviors);W0w(C.reactiveSchemas,S);S={};for(var w=_.Z(C.reactiveSchemas),A=w.next();!A.done;A=w.next())A=A.value,A.type==="signal"&&(S[A.propertyKey]=A.attributeType);var J={copyPropertiesToProto:b16,didRegister:!1,typesForSignals:S},c=["disable-upgrade"].concat(_.k$(C.observedAttributes)),Y=function(M){s4.call(this,H,C,J,M)};
_.G(Y,s4);_.JJ.Object.defineProperties(Y,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return c}}});
J.copyPropertiesToProto=function(){for(var M=0;M<C.behaviors.length;M++)gdU(C.behaviors[M],Y.prototype);gdU(H,Y.prototype)};
C.legacyOptimizations||J.copyPropertiesToProto();Y.prototype.is=H.is;return Y};
eaZ=function(H,C){if(Object.getPrototypeOf(C.prototype).constructor!==_.X)throw Error("Sg");C.prototype.is=H.is;return EaU(C.prototype,H)};
u3i=function(H){return H.type==="compute"||H.type==="computeWithMethod"};
GI0=function(H){for(var C=H.reactiveSchemas.filter(u3i),S=new Map,w=new Map,A=new Map,J=_.Z(C),c=J.next();!c.done;c=J.next())c=c.value,S.set(c.propertyKey,c),w.set(c.propertyKey,[]),A.set(c.propertyKey,0);J=0;C=_.Z(C);for(c=C.next();!c.done;c=C.next()){c=c.value;for(var Y=_.Z(c.type==="computeWithMethod"?c.method.args:c.args),M=Y.next();!M.done;M=Y.next())M=M.value,M.type!=="literal"&&(M=M.path.split(".")[0],w.has(M)&&(w.get(M).push(c.propertyKey),A.set(c.propertyKey,A.get(c.propertyKey)+1),J++))}c=
[].concat(_.k$(w.keys())).filter(function(m){return A.get(m)===0});
for(C=[];c.length;)for(Y=c.shift(),C.push(S.get(Y)),Y=_.Z(w.get(Y)),M=Y.next();!M.done;M=Y.next())M=M.value,A.set(M,A.get(M)-1),J--,A.get(M)===0&&c.push(M);S=H.reactiveSchemas.filter(function(m){return!u3i(m)});
H.reactiveSchemas=[].concat(_.k$(S),_.k$(C))};
fXE=function(H,C){if(C.properties)for(var S=_.Z(Object.entries(C.properties)),w=S.next();!w.done;w=S.next()){var A=_.Z(w.value);w=A.next().value;A=A.next().value;H.properties[w]=typeof A==="function"?{type:A}:A}C.observers&&H.observers.push.apply(H.observers,_.k$(C.observers));C.disabledPolySiReactions&&H.disabledPolySiReactions.push.apply(H.disabledPolySiReactions,_.k$(C.disabledPolySiReactions))};
vaE=function(H,C){for(var S=C.length-1;S>=0;S--){var w=C[S];Array.isArray(w)?vaE(H,w):H.indexOf(w)<0&&H.unshift(w)}};
lXu=function(H,C){H.reactiveSchemas=H.reactiveSchemas.filter(function(S){return S.type==="observe"&&C.includes(S.method.methodName)||u3i(S)&&C.includes(S.propertyKey)?!1:!0})};
oaU=function(H,C){var S=C.prototype,w,A,J={is:H.is,reactiveSchemas:[],observedAttributes:[],behaviors:[hR7.InjectBehavior,Kx.prototype],disableElementRegistration:H.disableElementRegistration,provide:(w=H.providers)!=null?w:[],reactivityMode:H.reactivityMode,signalProperties:(A=S.signalProperties)!=null?A:[]};"template"in C?J.templateGetter=function(){return C.template}:H.getTemplate&&(J.templateGetter=H.getTemplate);
S.behaviors&&vaE(J.behaviors,S.behaviors);VOu(J,C);return J};
VOu=function(H,C){for(var S=C.prototype,w={properties:{},observers:[],disabledPolySiReactions:[]},A=_.Z(H.behaviors),J=A.next();!J.done;J=A.next())fXE(w,J.value);fXE(w,S);if(H.signalProperties)for(S=_.Z(H.signalProperties),A=S.next();!A.done;A=S.next())delete w.properties[A.value];S=_.Z(Object.entries(w.properties));for(A=S.next();!A.done;A=S.next()){J=_.Z(A.value);A=J.next().value;J=J.next().value;var c=void 0;if((c=H.signalProperties)==null||!c.includes(A)){c=void 0;var Y=H,M=J.type;if(!M)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{M=Reflect.getMetadata("design:type",C,A);for(var m=_.Z(O1V),W=m.next();!W.done;W=m.next())if(W=W.value,M===W){M=W;break a}M=Object}else M=String;J.computed||J.selector||(Y.reactiveSchemas.push({type:"signal",propertyKey:A,value:J.value,attributeType:M,readOnly:J.readOnly}),Y.observedAttributes.push(_.vM(A)));J.reflectToAttribute&&Y.reactiveSchemas.push({type:"reflect",propertyKey:A});if(J.computed){M=qZU(J.computed);if(!M)throw Error("Tg");Y.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:A,method:M,value:J.value})}J.observer&&Y.reactiveSchemas.push({type:"observe",method:{methodName:J.observer,args:[{type:"path",path:A}]}});J.notify&&Y.reactiveSchemas.push({type:"notify",propertyKey:A});J.selector&&Y.reactiveSchemas.push({type:"redux",propertyKey:A,selector:J.selector,selectorArgs:(c=J.selectorArgs)!=null?c:[]})}}XLE&&GI0(H);C=_.Z(w.observers);for(A=C.next();!A.done;A=C.next())S=H,A=A.value,(J=qZU(A))?S.reactiveSchemas.push({type:"observe",method:J}):console.log('Warning: unable to parse observe declaration: "'+
A+'"');lXu(H,w.disabledPolySiReactions)};
QCD=function(H,C){for(var S=0;S<C.length;S++){var w=C[S],A=void 0;(A=w).showHideApi!=null||(A.showHideApi={});A=void 0;!!H!==!((A=w.showHideApi)==null||!A.hideTemplateChildren)&&(w.nodeType===Node.TEXT_NODE?H?(w.showHideApi.polymerTextContent=w.textContent,w.textContent=""):(A=void 0,w.textContent=(A=w.showHideApi.polymerTextContent)!=null?A:null):w instanceof Element&&w.localName==="slot"?H?(w.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.bA)((0,_.bA)(w).parentNode).replaceChild(w.showHideApi.polymerReplaced,
w)):(A=w.showHideApi.polymerReplaced)&&(0,_.bA)((0,_.bA)(A).parentNode).replaceChild(w,A):w instanceof HTMLElement&&w.style&&(H?(w.showHideApi.polymerDisplay=w.style.display,w.style.display="none"):w.style.display=w.showHideApi.polymerDisplay));w.showHideApi.hideTemplateChildren=H;w.showHideChildren&&w.showHideChildren(H)}};
PTi=function(){if(!dwU){var H=document.createElement("style");H.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(H);dwU=!0}};
jU=function(){return _.E("disable_hidden_dom_if_using_stamper")};
$w7=function(H,C){var S=_.wC().getState();return C?H.apply(null,[S].concat(_.k$(C))):H(S)};
ha$=function(){if(pL7)return pL7;var H=_.Z(_.mB(0,void 0,"MB1Hb")),C=H.next().value;H.next();var S=H.next().value;_.wC().subscribe(function(){kIU(S)});
return pL7=C};
kIU=function(H){na7||(na7=!0,Promise.resolve().then(function(){H(function(C){return C+1});
na7=!1}))};
_.wC=function(){return rj7.getAppStore()};
BGp=function(H,C){return rj7.getSelectFn()(H,C)};
_.Ax=function(H){rj7.getDispatchFn()(H)};
DwZ=function(H,C){var S={},w;for(w in H)S[w]=C(H[w],w);return S};
_.Jx=function(H,C){return function(){var S;return(S=_.ps(H))!=null?S:C}};
_.FH=function(H,C){var S=Object.assign({},H),w;for(w in C)C.hasOwnProperty(w)&&(S[w]=_.Jx(H[w],C[w]));return S};
K0u=function(H,C,S){H instanceof Element&&(S.debugName||(S.debugName="<"+H.tagName.toLowerCase()+(H.tagName.includes("-")?">":"."+H.className+">")),_.E("ytwiz_enable_debug_component_props")&&(H.debugProps||(H.debugProps=DwZ(C,function(w){return function(){return w()}}))))};
L0V=function(H){var C;return tOZ.value.traceAllComponents||((C=Af.stack[Af.stack.length-1])==null?void 0:C.name)!=="ytComponent"?ZoW("ytComponent",{},H):H()};
_.n=function(H,C){var S=function(w){return L0V(function(A){var J=gaE={};var c;if(((c=S)==null?0:c.idomCompat)&&w.renderedFromIdom){var Y;c=typeof S.idomCompat==="object"?(Y=S)==null?void 0:Y.idomCompat.callbacks:{};c=_.Z(Uw6(w,c,S.debugName));Y=c.next().value;c.next();c=c.next().value;var M=RaE(H,Y);J.privateValue=M;gaE=void 0;K0u(M,Y,S);J={debugName:S.debugName};A&&J&&Object.assign(A.attributes,J);A=JJw(M);A=Array.isArray(A)?A[0]:A;A[Wh]||(A[Wh]={});A[Wh].updateSignalsFromIdomProps=c;IXw(Y,M);return M}c=
DwZ(w,aX0);Y=RaE(H,c);J.privateValue=Y;gaE=void 0;K0u(Y,c,S);J={debugName:S.debugName};A&&J&&Object.assign(A.attributes,J);IXw(c,Y);return Y})};
S.debugName=C===void 0?"":C;return S};
RaE=function(H,C){H=H(C);return eI(H)};
xwE=function(H,C){H[C]||(H=new _.X0("IDOM interop setter undefined. Key:",C),_.nC(H))};
aX0=function(H,C){return C==="children"||C==="ref"||typeof H==="function"||H===void 0?H:function(){return _.ps(H)}};
Uw6=function(H,C,S){var w={},A={},J={},c={},Y;for(Y in H){c={key$jscomp$949:c.key$jscomp$949};c.key$jscomp$949=Y;var M=H[c.key$jscomp$949];if(c.key$jscomp$949==="children"||c.key$jscomp$949==="ref")w[c.key$jscomp$949]=M;else if(typeof M==="function")c.key$jscomp$949 in C||M.length>0?(J[c.key$jscomp$949]=M,w[c.key$jscomp$949]=function(W){return function(){return J[W.key$jscomp$949].apply(J,_.k$(_.tc.apply(0,arguments)))}}(c)):w[c.key$jscomp$949]=M;
else if(!(H[c.key$jscomp$949]===void 0&&c.key$jscomp$949 in C)){var m=_.Z(_.mB(H[c.key$jscomp$949],{debugName:c.key$jscomp$949+":cwis:"+S},"rvrjQe"));M=m.next().value;m=m.next().value;w[c.key$jscomp$949]=M;A[c.key$jscomp$949]=m}}return[w,A,function(W){var y={},N;for(N in W)y={key$jscomp$950:y.key$jscomp$950,val$jscomp$123:void 0},y.key$jscomp$950=N,y.val$jscomp$123=W[y.key$jscomp$950],y.key$jscomp$950!=="children"&&y.key$jscomp$950!=="ref"&&(typeof y.val$jscomp$123==="function"?y.key$jscomp$950 in
C?J[y.key$jscomp$950]=y.val$jscomp$123:y.val$jscomp$123.length>0&&(J[y.key$jscomp$950]=y.val$jscomp$123,_.Bn(new _.X0("Callback detected that was not set in the idomCompat callbacks map. Key:",y.key$jscomp$950))):y.key$jscomp$950 in C&&y.val$jscomp$123===void 0||(xwE(A,y.key$jscomp$950),eL(function(b){return function(){A[b.key$jscomp$950](b.val$jscomp$123)}}(y))))}]};
Cu$=function(H,C,S){var w=rlE(H.prototype,HS0,H.prototype.behaviors);w.prototype.is=C;w.prototype.localName=C;S&&iSV(w,S);return function(A){A&&(w.prototype.hostElement=A);var J=new w;J.root=J;J.hostElement=A;return J}};
iSV=function(H,C){var S;Object.defineProperty(H.prototype,"_template",{get:function(){S===void 0&&(S=C());return S},
set:function(w){S=w},
configurable:!0,enumerable:!0})};
A67=function(H,C,S,w){function A(){if(!b){for(var u=new Set,O=_.Z(W),d=O.next();!d.done;d=O.next()){d=d.value;for(var p=_.Z(Object.getOwnPropertyNames(d)),k=p.next();!k.done;k=p.next()){k=k.value;var R=void 0,L=(R=Object.getOwnPropertyDescriptor(d,k))==null?void 0:R.value;L&&L instanceof Function&&!Z5(k)&&(!Y[k]||_.E("polymer_forward_method_killswitch"))&&u.add(k)}}O=_.Z(Object.entries(Object.getOwnPropertyDescriptors(H.prototype)));for(d=O.next();!d.done;d=O.next())p=_.Z(d.value),d=p.next().value,
p=p.next().value,p.value instanceof Function&&!Z5(d)&&u.add(d);b=u}return b}
SDE(H,C,w==null?void 0:w.providers);B1E(H.prototype,H,!0);var J=Cu$(H,C,S),c,Y=(c=H.prototype.properties)!=null?c:{},M,m,W=(m=(M=H.prototype.behaviors)==null?void 0:M.flat(Infinity))!=null?m:[];S=_.Z(W);for(c=S.next();!c.done;c=S.next())Y=Object.assign({},c.value.properties,Y);var y=[].concat(_.k$(sX$),_.k$(Object.keys(Y).map(function(u){return _.vM(u)}))),N=!1,b;
return{ctor:function(u,O){var d=J(u),p,k;u=[].concat(_.k$((p=w==null?void 0:w.allowedProps)!=null?p:[]),_.k$((k=w==null?void 0:w.allowedPropsFromBehaviors)!=null?k:[]));d.allowedProps=u.length>0?u:void 0;p={};k=_.Z(y);for(u=k.next();!u.done;u=k.next())u=u.value,p[u]=_.ls(u);d.__dataAttributes=p;var R=d.ready.bind(d);d.ready=function(){O.beforeReady();R();if(QQ(C)&&!N){var L=d.__templateInfo;if(L==null?0:L.hostProps){L=_.Z(Object.keys(L.hostProps));for(var t=L.next();!t.done;t=L.next())PY(C,t.value,
"PROPERTY_ACCESS_GET_INTERNAL")}N=!0}};
d._overrideLegacyUndefined=!0;return d},
props:Y,observedAttributes:y,getInitialMethods:A,getPropsToForwardBeforeRegister:function(){for(var u=[],O=new Set,d=_.Z(Object.keys(Y)),p=d.next();!p.done;p=d.next())p=p.value,u.push([p,Y[p].readOnly]),O.add(p);d=A();p=_.Z(Object.keys(Object.getOwnPropertyDescriptors(H.prototype)));for(var k=p.next();!k.done;k=p.next())k=k.value,!jX0(k)||d.has(k)||O.has(k)||(u.push([k,!1]),O.add(k));O=_.Z(wvW);for(d=O.next();!d.done;d=O.next())u.push([d.value,!0]);return u},
getPropsToForwardBeforeReady:function(u){for(var O=[],d=_.Z(Object.entries(u)),p=d.next();!p.done;p=d.next()){var k=_.Z(p.value);p=k.next().value;k=k.next().value;if(jX0(p)&&!(k instanceof Function)&&(O.push([p,!1]),QQ(C))){var R=k=void 0;(R=(k=u)._createPropertyAccessor)==null||R.call(k,p)}}return O},
shouldForwardProp:jX0,shouldLog:QQ}};
SDE=function(H,C,S){ndp(H,S);H.prototype.behaviors.unshift(J6u);if(vd6()){if(QQ(C)){var w;(w=H.prototype).behaviors!=null||(w.behaviors=[]);H.prototype.behaviors.unshift(OgE())}XB$(H)}_.v(Kx.prototype)(H.prototype,"__templateHelpers")};
Z5=function(H){return FA$.has(H)||H.startsWith("__compute__")};
jX0=function(H){return!Z5(H)&&!H.startsWith("_")&&!H.endsWith("_")};
MSp=function(H,C){function S(){var N=M();N=_.Z(N);for(var b=N.next();!b.done;b=N.next()){var u=_.Z(b.value);b=u.next().value;u=u.next().value;ZS6(y.prototype,b,u)}w=!0}
var w=!1,A=H.ctor,J=H.getInitialMethods,c=H.observedAttributes,Y=H.getPropsToForwardBeforeReady,M=H.getPropsToForwardBeforeRegister,m=H.shouldForwardProp,W=H.shouldLog,y=function(){var N=HTMLElement.call(this)||this;N.didForwardDynamicProps=!1;N.loggingStatus={};w||S();N.inst=A(N,{beforeReady:function(){N.didForwardDynamicProps||(N.forwardDynamicProps(),N.didForwardDynamicProps=!0)}});
N.controllerProxy=Vu6(N.inst,C);N.forwardMethods();return N};
_.G(y,HTMLElement);y.prototype.forwardMethods=function(){for(var N=this,b=_.Z(this.inst.getExtraMethodsToForward()),u=b.next(),O={};!u.done;O={method$jscomp$63:void 0},u=b.next()){var d=_.Z(u.value);u=d.next().value;d=d.next().value;O.method$jscomp$63=d;this[u]=function(p){return function(){return p.method$jscomp$63.call.apply(p.method$jscomp$63,[N.inst].concat(_.k$(_.tc.apply(0,arguments))))}}(O)}b=_.Z(J());
for(O=b.next();!O.done;O=b.next())O=O.value,m(O)&&c6Z(this,O),W(C)&&!Z5(O)&&YDZ(this.inst,O)};
y.prototype.forwardDynamicProps=function(){var N=Y(this.inst);N=_.Z(N);for(var b=N.next();!b.done;b=N.next()){var u=_.Z(b.value);b=u.next().value;u=u.next().value;ZS6(this,b,u);W(C)&&!Z5(b)&&zAE(this.inst,b)}};
y.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
y.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
y.prototype.attributeChangedCallback=function(N,b,u){this.inst.attributeChangedCallbackWrapper(N,b,u)};
_.JJ.Object.defineProperties(y.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return C}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.JJ.Object.defineProperties(y,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return c}}});
customElements.define(C,y)};
ZS6=function(H,C,S){H.hasOwnProperty(C)||Object.defineProperty(H,C,{get:function(){var w,A=((w=H.is)!=null?w:H.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||PY(A,C,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,w=this.polymerController[C],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,w},
set:function(w){if(!S){var A,J=((A=H.is)!=null?A:H.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||PY(J,C,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=C,this.loggingStatus.bypassProxyController=!0,this.polymerController[C]!==w&&(A={},this.polymerController.setProperties((A[C]=w,A)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
c6Z=function(H,C,S){var w=H.polymerController;H[C]=function(){var A=_.tc.apply(0,arguments);H.loggingStatus.currentExternalCall=C;H.loggingStatus.bypassProxyController=!0;var J,c=((J=H.is)!=null?J:H.tagName).toLowerCase();PY(c,C,"PROPERTY_ACCESS_CALL_EXTERNAL");var Y;J=(Y=S!=null?S:w[C])==null?void 0:Y.call.apply(Y,[w].concat(_.k$(A)));H.loggingStatus.currentExternalCall=void 0;H.loggingStatus.bypassProxyController=!1;return J}};
YDZ=function(H,C){var S=H.hostElement,w=H[C];H[C]=function(){var A=_.tc.apply(0,arguments);if(S.loggingStatus.currentExternalCall!==C){var J,c=((J=S.is)!=null?J:S.tagName).toLowerCase();PY(c,C,"PROPERTY_ACCESS_CALL_INTERNAL")}return w==null?void 0:w.apply(H,A)}};
zAE=function(H,C){var S=Object.getOwnPropertyDescriptor(H,C);S&&!S.get&&Object.defineProperty(H,C,{get:function(){odZ(H.hostElement,C);return S.value},
set:function(w){$z(H.hostElement,C);S.value=w}})};
qDE=function(H){return _.E("poly_si_dom_repeat_detached_fix_killswitch")||H.tagName!=="PS-DOM-REPEAT"?H.tagName==="DOM-REPEAT":!0};
m6$=function(H,C){var S=T3W(H);H instanceof Element&&S.unshift(H);H=_.Z(S.filter(qDE));for(var w=H.next();!w.done;w=H.next()){var A=void 0;w=_.Z((A=w.value.__instances)!=null?A:[]);for(A=w.next();!A.done;A=w.next())if(A=A.value,A.root){A=Array.from(A.root.children);A=_.Z(A);for(var J=A.next();!J.done;J=A.next())S.push.apply(S,_.k$(m6$(J.value,C)))}}return S.filter(function(c){return c.usePatchedLifecycles&&c.lifecycleIsConnected===C})};
T3W=function(H){var C=null;H instanceof Element?C=Element.prototype.querySelectorAll:H instanceof DocumentFragment&&(C=DocumentFragment.prototype.querySelectorAll);return C?Array.from(C.call(H,"*")):[]};
cI=function(H){TR(function(){for(var C=_.Z(m6$(H,!1)),S=C.next();!S.done;S=C.next()){S=S.value;S.lifecycleIsConnected=!0;try{var w=void 0,A=void 0,J=void 0,c=void 0;(w=(c=S.polymerController)!=null?c:S)==null||(J=(A=w).connectedCallback)==null||J.call(A)}catch(Y){_.nC(Y)}}})};
Yj=function(H){TR(function(){for(var C=_.Z(m6$(H,!0)),S=C.next();!S.done;S=C.next()){S=S.value;S.lifecycleIsConnected=!1;try{var w=void 0,A=void 0,J=void 0,c=void 0;(w=(c=S.polymerController)!=null?c:S)==null||(J=(A=w).disconnectedCallback)==null||J.call(A)}catch(Y){_.nC(Y)}}})};
uhW=function(){if(!WA6){WA6=!0;var H=[Node];zp&&H.push(zp.Wrapper);var C=Node.prototype.insertBefore,S=Node.prototype.removeChild;H=_.Z(H);for(var w=H.next(),A={};!w.done;A={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},w=H.next())w=w.value,A.nativeInsertBefore=w.prototype.insertBefore,w.prototype.insertBefore=function(c){return function(Y,M){if(Y instanceof DocumentFragment){var m=Array.from(Y.children);Y=c.nativeInsertBefore.call(this,Y,M);
if(this.isConnected&&c.nativeInsertBefore===C)for(M=_.Z(m),m=M.next();!m.done;m=M.next())cI(m.value);return Y}m=Y instanceof Element&&Y.isConnected;M=c.nativeInsertBefore.call(this,Y,M);m&&Yj(Y);this.isConnected&&cI(Y);return M}}(A),A.nativeAppendChild=w.prototype.appendChild,w.prototype.appendChild=function(c){return function(Y){if(Y instanceof DocumentFragment){var M=Array.from(Y.children);
Y=c.nativeAppendChild.call(this,Y);if(this.isConnected){M=_.Z(M);for(var m=M.next();!m.done;m=M.next())cI(m.value)}return Y}M=Y instanceof Element&&Y.isConnected;m=c.nativeAppendChild.call(this,Y);M&&Yj(Y);this.isConnected&&cI(Y);return m}}(A),A.nativeRemoveChild=w.prototype.removeChild,w.prototype.removeChild=function(c){return function(Y){var M=Y instanceof Element&&Y.isConnected,m=c.nativeRemoveChild.call(this,Y);
M&&S===c.nativeRemoveChild&&Yj(Y);return m}}(A),A.nativeReplaceChild=w.prototype.replaceChild,w.prototype.replaceChild=function(c){return function(Y,M){if(Y instanceof DocumentFragment){var m=Array.from(Y.children);
Y=c.nativeReplaceChild.call(this,Y,M);if(this.isConnected)for(Yj(M),M=_.Z(m),m=M.next();!m.done;m=M.next())cI(m.value);return Y}m=Y instanceof Element&&Y.isConnected;var W=this.isConnected,y=c.nativeReplaceChild.call(this,Y,M);W&&Yj(M);m&&Yj(Y);W&&cI(Y);return y}}(A);
H=[Element];zp&&H.push(zp.Wrapper);H=_.Z(H);w=H.next();for(A={};!w.done;A={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},w=H.next())w=w.value,w.prototype.before=y6Z(w.prototype.before),w.prototype.after=y6Z(w.prototype.after),A.nativeReplaceWith=w.prototype.replaceWith,w.prototype.replaceWith=function(c){return function(){var Y=_.tc.apply(0,arguments),M=_.Z(N30(Y)),m=M.next().value,
W=M.next().value;M=this.isConnected;c.nativeReplaceWith.apply(this,Y);Y=_.Z(W);for(W=Y.next();!W.done;W=Y.next())Yj(W.value);if(M)for(Yj(this),m=_.Z(m),M=m.next();!M.done;M=m.next())M=M.value,M instanceof Element&&cI(M)}}(A),A.nativeRemove=w.prototype.remove,w.prototype.remove=function(c){return function(){var Y=this.isConnected;
c.nativeRemove.call(this);Y&&Yj(this)}}(A),A.nativeInsertAdjacentElement=w.prototype.insertAdjacentElement,w.prototype.insertAdjacentElement=function(c){return function(Y,M){var m=M.isConnected;
Y=c.nativeInsertAdjacentElement.call(this,Y,M);m&&Yj(M);Y.isConnected&&cI(Y);return Y}}(A),A.nativeSetAttribute=w.prototype.setAttribute,w.prototype.setAttribute=function(c){return function(Y,M){var m=bSE(this);
if(!m.usePatchedLifecycles)return c.nativeSetAttribute.call(this,Y,M);var W=this.getAttribute(Y);c.nativeSetAttribute.call(this,Y,M);M=this.getAttribute(Y);Epp(m,Y,W,M)}}(A),A.nativeRemoveAttribute=w.prototype.removeAttribute,w.prototype.removeAttribute=function(c){return function(Y){var M=bSE(this);
if(!M.usePatchedLifecycles)return c.nativeRemoveAttribute.call(this,Y);var m=this.getAttribute(Y);c.nativeRemoveAttribute.call(this,Y);m!==null&&Epp(M,Y,m,null)}}(A),A.nativeToggleAttribute=w.prototype.toggleAttribute,w.prototype.toggleAttribute=function(c){return function(Y,M){var m=bSE(this);
if(!this.usePatchedLifecycles)return c.nativeToggleAttribute.call(this,Y,M);var W=this.getAttribute(Y),y=W!==null;M=c.nativeToggleAttribute.call(this,Y,M);M!==y&&Epp(m,Y,W,M?"":null);return M}}(A);
H=[Document,DocumentFragment,Element,ShadowRoot];zp&&H.push(zp.Wrapper);H=_.Z(H);for(A=H.next();!A.done;A=H.next())A=A.value,A.prototype.prepend=y6Z(A.prototype.prepend),A.prototype.append=y6Z(A.prototype.append);(zp==null?void 0:zp.noPatch)===!0&&eAZ();document.readyState==="complete"?cI(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&cI(document.body)});
var J=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");J&&J.get&&J.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:J.enumerable,configurable:!0,get:J.get,set:function(c){c||Yj(this);J.set.call(this,c);return c}})}};
y6Z=function(H){return function(){var C=_.tc.apply(0,arguments),S=_.Z(N30(C)),w=S.next().value;S=S.next().value;H.apply(this,C);C=_.Z(S);for(S=C.next();!S.done;S=C.next())Yj(S.value);if(this.isConnected)for(w=_.Z(w),C=w.next();!C.done;C=w.next())C=C.value,C instanceof Element&&cI(C)}};
eAZ=function(){for(var H=_.Z(Ggp),C=H.next();!C.done;C=H.next()){C=C.value.prototype;for(var S=_.Z(fr0),w=S.next();!w.done;w=S.next()){w=w.value;var A=Object.getOwnPropertyDescriptor(C,w);A&&Object.defineProperty(C,"__shady_native_"+w,A)}}};
Epp=function(H,C,S,w){var A,J;if((A=H.polymerController)==null?0:(J=A.observedAttributes)==null?0:J.includes(C))if(H=H.polymerController,H.attributeChangedCallbackWrapper)H.attributeChangedCallbackWrapper.call(H,C,S,w);else{var c;(c=H.attributeChangedCallback)==null||c.call(H,C,S,w)}};
N30=function(H){var C=[],S=[];H=_.Z(H);for(var w=H.next();!w.done;w=H.next())w=w.value,w instanceof Element&&w.isConnected&&S.push(w),w instanceof DocumentFragment?C.push.apply(C,_.k$(Array.from(w.children))):C.push(w);return[C,S]};
bSE=function(H){return!(H instanceof Element)&&H.node instanceof Element?H.node:H};
vp7=function(H,C){var S=C?["children"].concat(_.k$(C)):["children"];C=[];S=_.Z(S);for(var w=S.next();!w.done;w=S.next()){var A=w.value;if(H.hasOwnProperty(A)){w=H[A];w=typeof w==="function"?w():w;w=Array.isArray(w)?w:[w];w=eI(w).flat();if(A!=="children"){A=QF$(A);for(var J=_.Z(w),c=J.next();!c.done;c=J.next())c=c.value,c instanceof Element&&c.setAttribute("slot",A)}C.push(w)}}C.length===0?H=[]:(H=eI(_.q("div",null,C)),H=Array.from(H.childNodes));return H};
VSW=function(H,C,S){var w={};_.k1(function(){var A={},J;for(J in C)if(C.hasOwnProperty(J)){var c=void 0,Y=void 0;if(!(((c=S.slotProps)==null?0:c.includes(J))||J==="children"||((Y=S.callbackProps)==null?0:Y.includes(J))||J==="ref")&&(c=_.ps(C[J]),w[J]!==c)){w[J]=c;Y=void 0;var M=(Y=H.hostElement)!=null?Y:H;lrE.has(J)&&(M[J]=c);A[J]=c}}eL(function(){if(H.setProperties)H.setProperties(A);else for(var m=_.Z(Object.entries(A)),W=m.next();!W.done;W=m.next()){var y=_.Z(W.value);W=y.next().value;y=y.next().value;
H[W]=y}})})};
OS$=function(H,C,S,w){var A=vp7(S,w.slotProps),J=(0,_.bA)(H);A=_.Z(A);for(var c=A.next();!c.done;c=A.next())J.appendChild(c.value);VSW(C,S,w);w=_.Z(w.callbackProps||[]);A=w.next();for(J={};!A.done;J={kebabEventName:void 0,eventListener:void 0},A=w.next())c=A=A.value,String(A).substring(0,2)==="on"&&S[c]?(J.kebabEventName=QF$(String(A).substring(2)),J.eventListener=S[c],H.addEventListener(J.kebabEventName,J.eventListener),_.PN(function(W){return function(){H.removeEventListener(W.kebabEventName,W.eventListener)}}(J))):
C[c]=S[c];
if(S.ref){S=_.Z(opZ(S.ref));var Y=S.next().value,M=S.next().value,m=C.attached.bind(C);C.attached=function(){Y(H);m()};
_.PN(function(){M()})}};
opZ=function(H){if(typeof H==="function"){var C;return[function(S){C=H(S)},
function(){var S;(S=C)==null||S()}]}if(!H.onRender||!H.onUnmount)throw Error("Xg");
return[H.onRender,H.onUnmount]};
Xvp=function(H,C){C=C===void 0?{}:C;var S=function(w){var A=document.createElement(H),J;var c=(J=A.polymerController)!=null?J:A;OS$(A,c,w,C);return A};
S.debugName=H+" (CoW wrapped)";return S};
$6W=function(H,C,S,w,A){w=w===void 0?{}:w;var J=QXE,c=!1;J?(c=!0,QXE=void 0):(d6u=C,J=document.createElement(C),d6u=void 0);var Y=J;Y.usePatchedLifecycles=!0;Y.lifecycleIsConnected=!1;J.loggingStatus={};var M=Pu0(H,C,J,w,A);_.PN(function(){Y.lifecycleIsConnected&&(Y.lifecycleIsConnected=!1,M.disconnectedCallback())});
c||(J.__noInsertionPoint=!0,OS$(J,M,S,w));return J};
Pu0=function(H,C,S,w,A){A=A===void 0?A67:A;pvD[C]!=null||(pvD[C]=A(H,C,w==null?void 0:w.getTemplate,w));var J=pvD[C],c=J.ctor;A=J.getInitialMethods;var Y=J.getPropsToForwardBeforeReady;H=J.getPropsToForwardBeforeRegister;w=J.shouldForwardProp;var M=J.observedAttributes,m=J.shouldLog,W=c(S,{beforeReady:function(){var y=W;y._takeAttributes?y._takeAttributes():y.setPropertiesFromInitialAttributeValues&&y.setPropertiesFromInitialAttributeValues();y=_.Z(Y(S.polymerController));for(var N=y.next();!N.done;N=
y.next()){var b=_.Z(N.value);N=b.next().value;b=b.next().value;ZS6(S,N,b);m(C)&&!Z5(N)&&zAE(S.polymerController,N)}S.polymerController=Vu6(W,C)}});
S.polymerController=W;S.polymerController.observedAttributes=M;J=_.Z(W.getExtraMethodsToForward());for(c=J.next();!c.done;c=J.next())M=_.Z(c.value),c=M.next().value,M=M.next().value,c6Z(S,c,M);A=_.Z(A());for(J=A.next();!J.done;J=A.next())J=J.value,w(J)&&c6Z(S,J),m(C)&&!Z5(J)&&YDZ(W,J);H=_.Z(H());for(w=H.next();!w.done;w=H.next())A=_.Z(w.value),w=A.next().value,A=A.next().value,ZS6(S,w,A);return W};
kg6=function(H){var C=MW;MW=H;return C};
npE=function(H){if(qW.has(H)&&MW&&hAD(MW)===H){var C;(C=MW)._numRenders!=null||(C._numRenders=0);MW._numRenders++;if(MW._numRenders>1)throw Error("Yg");return MW}};
r6$=function(H){qW.has(hAD(H))&&MW!==H&&(H._isInert=!0)};
hAD=function(H){var C;return(C=H==null?void 0:H.tagName.toLowerCase())!=null?C:""};
B3i=function(H,C){if(H.componentType===oE)throw Error("Zg");qW.add(C);var S=function(){var w=HTMLElement.call(this)||this;w.is=C;if(d6u===C)return w.isInert=!0,w;w.createElement();return w};
_.G(S,HTMLElement);S.prototype.createElement=function(){if(!this.isInert){QXE=this;var w=_.Z(_.PKE(function(){return _.q(H,null)})).next().value;
QXE=void 0;oyW(this);return w}};
customElements.define(C,S)};
KAD=function(H,C,S,w,A){H.prototype.is=C;(w==null?0:w.useSink)?D6i(H,C,S,w,A):(S=A67(H,C,S,w),MSp(S,C));return H};
D6i=function(H,C,S,w,A){uhW();var J=_.n(function(c){return $6W(H,C,c,Object.assign({},w,{getTemplate:S}),A)},"a");
J.debugName=C+" (CoW wrapped)";B3i(J,C);return J};
LAZ=function(H){return!tSE.has(H)};
RAE=function(H,C,S,w){function A(){if(!y){for(var N=new Set(gp$),b=_.Z(J.behaviors),u=b.next();!u.done;u=b.next()){u=u.value;for(var O=_.Z(Object.getOwnPropertyNames(u)),d=O.next();!d.done;d=O.next()){d=d.value;var p=void 0,k=(p=Object.getOwnPropertyDescriptor(u,d))==null?void 0:p.value;k&&k instanceof Function&&(!m[d]||_.E("polymer_forward_method_killswitch"))&&N.add(d)}}b=_.Z(Object.entries(Object.getOwnPropertyDescriptors(H.prototype)));for(u=b.next();!u.done;u=b.next())O=_.Z(u.value),u=O.next().value,
O=O.next().value,O.value instanceof Function&&N.add(u);y=N}return y}
var J=oaU({is:C,disableElementRegistration:!1,getTemplate:S,providers:w==null?void 0:w.providers,reactivityMode:w==null?void 0:w.reactivityMode},H);if((w==null?0:w.allowedProps)||(w==null?0:w.allowedPropsFromBehaviors)){var c,Y;J.allowedProps=[].concat(_.k$((c=w.allowedProps)!=null?c:[]),_.k$((Y=w.allowedPropsFromBehaviors)!=null?Y:[]))}var M=eaZ(J,H);C=M.observedAttributes;var m={};S=_.Z(J.reactiveSchemas);for(w=S.next();!w.done;w=S.next())if(w=w.value,w.type==="signal")m[w.propertyKey]={readOnly:w.readOnly},
w.readOnly&&(m[HE7(w.propertyKey)]={readOnly:!0});else if(w.type==="compute"||w.type==="computeWithMethod"||w.type==="redux")m[w.propertyKey]={readOnly:!0};var W=J.reactiveSchemas.length,y;return{ctor:function(N,b){N=new M(N);N.beforeReady=b.beforeReady;return N},
props:m,observedAttributes:C,getInitialMethods:A,getPropsToForwardBeforeRegister:function(){for(var N=[],b=new Set,u=_.Z(U60),O=u.next();!O.done;O=u.next())O=O.value,N.push([O,O!=="observers"&&O!=="properties"]),b.add(O);u=_.Z(Object.keys(m));for(O=u.next();!O.done;O=u.next())O=O.value,N.push([O,m[O].readOnly]),b.add(O);u=A();O=_.Z(Object.keys(Object.getOwnPropertyDescriptors(H.prototype)));for(var d=O.next();!d.done;d=O.next())d=d.value,!LAZ(d)||u.has(d)||b.has(d)||(N.push([d,!1]),b.add(d));N.push(["allowedProps",
!0]);return N},
getPropsToForwardBeforeReady:function(N){var b=[];N=_.Z(Object.keys(N));for(var u=N.next();!u.done;u=N.next()){u=u.value;var O=A();LAZ(u)&&!O.has(u)&&b.push([u,!1])}N=_.Z(J.reactiveSchemas.slice(W));for(u=N.next();!u.done;u=N.next())u=u.value,u.type!=="compute"&&u.type!=="computeWithMethod"&&u.type!=="redux"&&u.type!=="signal"||b.push([u.propertyKey,u.type==="signal"?u.readOnly:!0]);return b},
shouldForwardProp:LAZ,shouldLog:QQ}};
_.B=function(H,C,S,w){var A,J,c=(J=(A=w)==null?void 0:A.mode)!=null?J:0;w!=null||(w={});var Y;(Y=w).reactivityMode!=null||(Y.reactivityMode=0);c===1&&_.mC("creator_poly_si_disable_list").includes(C)&&(c=2);return c===1?KAD(H,C,S,Object.assign({},w,{useSink:!0}),RAE):KAD(H,C,S,Object.assign({},w,{useSink:c===2}))};
_.Tp=function(){return function(H,C,S,w){var A,J,c=(J=(A=w)==null?void 0:A.mode)!=null?J:2;w!=null||(w={});var Y;(Y=w).reactivityMode!=null||(Y.reactivityMode=0);if(c===0)throw Error("$g`"+c);return D6i(H,C,S,w,c===1?RAE:void 0)}};
_.mn=function(H){return _.E("creator_poly_si_killswitch")?!1:_.E("force_all_poly_si_batches")&&(H==="poly_si_all_on_test_check"||H==="creator_poly_si_batch_050"?0:H)||document.documentElement.hasAttribute("use-signals")?!0:!H||_.E(H+"_holdback_enabled")&&_.E("kevlar_polysi_holdback")?!1:_.E(H)};
WI=function(H){return H?H.icon?H.icon.iconType.toLowerCase():H.customThumbnail?"member":"":""};
Ir6=function(H){if(!H)return"";H=_.Z(H);for(var C=H.next();!C.done;C=H.next())if((C=C.value)&&C.liveChatAuthorBadgeRenderer&&(C=WI(C.liveChatAuthorBadgeRenderer))&&C!=="verified")return C;return""};
ari=function(H,C){if(!H)return null;var S;return((S=H.find(function(w){return w&&w.liveChatAuthorBadgeRenderer?WI(w.liveChatAuthorBadgeRenderer)===C:!1}))==null?void 0:S.liveChatAuthorBadgeRenderer)||null};
_.s90=function(H){var C=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;H=x6$(H);C=x6$(C);var S=H0V(H.hex);C=H0V(C.hex);var w=C[0]/255;var A=C[1]/255,J=C[2]/255,c=Math.max(w,A,J),Y=Math.min(w,A,J),M=0,m=0,W=.5*(c+Y);c!=Y&&(c==w?M=60*(A-J)/(c-Y):c==A?M=60*(J-w)/(c-Y)+120:c==J&&(M=60*(w-A)/(c-Y)+240),m=0<W&&W<=.5?(c-Y)/(2*W):(c-Y)/(2-2*W));w=[Math.round(M+360)%360,m,W];S=i06(S,C);for(H=C6Z(H.hex);S<4.5;){H=w[2]>=.5?H.darker((4.5-S)/2):H.brighter((4.5-S)/2);S=H.toString();
A=Sqp(S);if(!A.length)throw Error("Wd`"+S);S=A;S=i06(S,C)}return H.hex()};
i06=function(H,C){H=_.rT7(H);C=_.rT7(C);return(Math.max(H,C)+.05)/(Math.min(H,C)+.05)};
_.yh=function(H){return"#"+("000000"+(H&16777215).toString(16)).slice(-6)};
_.j90=function(H){for(var C=0,S=0;S<H.length;S++)C=H.charCodeAt(S)+((C<<5)-C);H="#";for(S=0;S<3;S++)H+=("00"+(C>>S*8&255).toString(16)).slice(-2);return H};
wdw=function(H){H=(H||"").split(":");H.length===1&&H.unshift("yt-icons");H[1]=H[1].toLowerCase();return H};
Yq7=function(H,C){var S=(C=C===void 0?!1:C)?AmU:Jmi,w=C?FdZ:Z0$;H.getIconNames().forEach(function(A){A=C?A:A.substring(A.indexOf(":")+1);H.name==="yt-icons"?cm6.add(A):A.includes("-filled")?S.add(A):w.add(A)})};
NW=function(H,C,S,w){S=S===void 0?!1:S;w=w===void 0?!1:w;var A,J,c;return _.z(function(Y){if(Y.nextAddress==1)return Y.yield(z2p,2);if(w)return Y.return(cm6.has(H));A=S?AmU:Jmi;J=S?FdZ:Z0$;return C?(c=H.includes("-filled")?H:H.concat("-filled"),Y.return(A.has(c))):Y.return(J.has(H))})};
_.TgV=function(H){if(Mgp(H))return H;var C=H=H.toLowerCase();(H=qqZ.get(H))&&(C=H);return C};
_.bJ=function(H){if(Mgp(H))return H.toString();var C=mAE.get(H);if(C)return C;C=H.toLowerCase();var S="yt-icons",w=C.replace(/_/g,"-");switch(H){case "MY_CHANNEL":C="account_circle";break;case "ADD_TO_LIBRARY":C="add";break;case "ALERT_WARN_RED":C="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":C="person_music";break;case "BLOCK_USER":C="block";break;case "CAPTIONS":C="closed_caption";break;case "CLOSED_CAPTION":S="av";C="closed-caption";break;case "COLLECTION":S="maps";C="layers";break;case "CONTACT":S=
"icons";C="business";break;case "CREATOR_STUDIO_ERROR_ON_LOAD":case "CREATOR_STUDIO_ERROR_ON_LOAD_V2":case "CREATOR_STUDIO_NO_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS_V2":case "CREATOR_STUDIO_NO_SEARCH_MATCH":case "CREATOR_STUDIO_NO_SEARCH_MATCH_V2":S="ytcp-icons";C=w.split("creator-studio-")[1];break;case "DISMISSAL":C="close";break;case "DO_NOT_DISTURB":C="block";break;case "DOGFOOD":S="icons";C="pets";break;case "DRAFT":C="paper_corner_folded";break;
case "EMPTY_LIKE":C="like_outline";break;case "EXIT_APP":C="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":C=w;break;case "GAMES":S="ytg";C="my-games";break;case "GO_TO_PAGE":C="arrow-forward";break;case "GROUP":S="social";break;case "HIDE":C="not_interested";break;case "INPUT_COMPONENT":S="icons";C="settings-input-component";break;case "KIDS_BLOCK":C="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":S="ytg";C="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":S=
"ytg";C="membership-post-purchase";break;case "MULTIVIEW":C="screen_multi_view";break;case "MY_LOCATION":S="maps";C=w;break;case "NOTIFICATIONS_INBOX":C="NOTIFICATIONS";break;case "NEXT":C="chevron_right";break;case "OFFLINE":C="power-settings-new";break;case "PAUSE":S="miniplayer";break;case "PAYMENT":S="icons";break;case "PHONE_DOWNLOAD":C="phone_download";break;case "PREMIUM_STANDALONE":S="yt-logos";C="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":S="yt-logos";C="premium_standalone_cairo";
break;case "QUESTION_ANSWER":C="question_answer";break;case "REDEEM":S="icons";C="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":C="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":C="library_add";break;case "SCHOOL":S="yt-sys-icons";C="creator_academy";break;case "SETTINGS_LIGHT":C="settings_applications";break;case "SETTINGS_MATERIAL":C="settings";break;case "SEARCH_HISTORY":C="watch_history";break;case "SHOPPING_BAG":C="bag";break;case "SOCIAL":case "PEOPLE":S=
"yt-icons";C="people";break;case "STAFF_PICK":S="ytg";C="spotlight";break;case "START_DVR":C="add";break;case "STOP_DVR":S="av";C="stop";break;case "TAB_LIKED":C="like";break;case "TAB_INBOX":C="mail";break;case "TERMS_OF_SERVICE":S="icons";C="description";break;case "TRENDING":C="fire";break;case "UNBLOCK_USER":C="remove";break;case "UNPLUGGED_DARK_THEME":S="image";C="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":C="live";break;case "UNPLUGGED_SPORTS":S="ytu";C="visibility-off";break;
case "VIDEOS":S="av";C="play-circle-filled";break;case "YOUTUBE":S="yt-logos";C="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":S="yt-logos-ext";C="yt-logo-red-updated";break;case "YOUTUBE_LOGO":S="yt-logos-ext";C="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":S="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":S="shorts";C=w;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":S="yt-sys-icons";C="youtube_improve_tv";break;case "OUTLINE_BAG":S=
"yt-sys-icons";C="bag";break;case "QUEUE_PLAY_LAST":S="yt-sys-icons";C="list_queue_last";break;case "SLASH_CIRCLE_LEFT":C="slash_circle_left";break;case "SPEED_1_POINT_2X":C="1_point_2x";break;case "SPEED_1_POINT_5X":C="1_point_5x";break;case "SPEED_1_POINT_8X":C="1_point_8x";break;case "SPEED_POINT_2X":C="point_2x";break;case "SPEED_POINT_5X":C="point_5x";break;case "SPEED_POINT_8X":C="point_8x";break;case "SPEED_1X":C="1x";break;case "SPEED_2X":C="2x";break;case "TAB_BOOKMARK":C="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":S="yt-sys-icons";C="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":S="yt-sys-icons";C="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":S="yt-sys-icons",C="tic_tac_toe"}C=S+":"+C;mAE.set(H,C);return C};
Mgp=function(H){var C;_.E("kevlar_use_wil_icons")?C=!!_.JA().resolve(_.E4).resolveIcon({iconName:H.toString()}):C=!1;return C};
_.uJ=function(H,C,S,w){S=S===void 0?{}:S;w=w===void 0?!1:w;S===null&&(S={});var A=_.mC("kevlar_command_handler_command_banlist");A=_.Z(A);for(var J=A.next();!J.done;J=A.next())if(J=H?H.hasOwnProperty(J.value):void 0,J)return!1;A=_.e(H.commandMetadata,_.u9);return w&&A!=null&&A.url?!1:!C.disableCommandHandlerOverride&&_.eU.instance?(w=_.eU.instance,S.form||(S.form={element:C}),S.form.element||(S.form.element=C),!S.clickedVisualElement&&C.visualElement&&(S.clickedVisualElement=C.visualElement),w.resolveCommand(H,
S),!0):!1};
WdV=function(H,C){H=Gp(H);for(var S=_.Z(H.visibilityMonitorKeys||[]),w=S.next();!w.done;w=S.next())C.unobserveByKey(w.value);H.visibilityMonitorKeys=void 0};
E70=function(H,C){if(_.Dg()){if(_.E("kevlar_vimio_use_shared_monitor"))ymD(H,C.data);else if(!ymD(H,C.data))return;var S=C.data,w=Ng$(S);if(_.E("enable_client_ve_spec_logging"))WdV(H,C.observer);else{var A=Gp(H);A.trackedParams&&A.trackedParams!==w&&WdV(H,C.observer)}A=Gp(H);!S||A.data&&A.data===S||(A.data=S);b0i(H,C);A.trackedParams=w}};
b0i=function(H,C){var S=C.observer;if(!S&&_.E("web_skip_missing_vimio_observer")){var w,A;_.Bn(new _.X0("VisibilityObserver is not defined.",H.tagName,H.trackedParams,(w=C.data)==null?void 0:w.trackingParams,(A=C.data)==null?void 0:A.loggingDirectives))}else{var J=C.layer,c=C.visibilityCallback||function(){},Y=C.prescanCallback,M=Gp(H);
w=[];C.showOption&&w.push(S.observe(H,function(){C.skipLogging&&C.skipLogging()||_.f7().reportShown(M,void 0,J);c(!0)},C.showOption));
C.hideOption&&w.push(S.observe(H,function(){_.f7().reportHidden(M,void 0,J);c(!1)},C.hideOption));
C.prescanOption&&Y&&w.push(S.observe(H,function(){Y()},C.prescanOption));
M.visibilityMonitorKeys=w}};
ymD=function(H,C){H=Gp(H);if(H.visualElement&&!C)return!0;if(!C)return!1;var S=!1;if(_.E("enable_client_ve_spec_logging")){var w,A;S=!!((w=C.loggingDirectives)==null?0:(A=w.clientVeSpec)==null?0:A.uiType)}w=Ng$(C);if(!w&&!S)return!1;_.E("mweb_component_visibility_logging")&&(H.veContainer||(H.veContainer={}),H.veContainer.trackingParams=w);if(H.trackedParams&&H.trackedParams===w)return!1;var J;if(_.E("enable_client_ve_spec_logging")&&((J=H.visualElement)==null?0:J.isClientVe())){var c;J=(c=H.visualElement)==
null?void 0:c.getAsJspb();var Y,M,m,W;if(_.YJ(J,2)===((Y=C.loggingDirectives)==null?void 0:(M=Y.clientVeSpec)==null?void 0:M.uiType)&&_.YJ(J,3,-1)===((m=C.loggingDirectives)==null?void 0:(W=m.clientVeSpec)==null?void 0:W.elementIndex))return!1}if(_.E("enable_client_ve_spec_logging")){var y,N;!H.visualElement&&((y=C.loggingDirectives)==null?0:(N=y.clientVeSpec)==null?0:N.uiType)&&(Y=C.loggingDirectives.clientVeSpec,C=Y.uiType,c=Y.elementIndex,Y=Y.clientYoutubeData,H.visualElement=_.vI(_.lJ(),{veType:C,
elementIndex:c,clientYouTubeData:Y}))}return!0};
Ng$=function(H){if(H==null?0:H.rendererContext){var C=_.e(H.rendererContext,_.Vh);if(C==null?0:C.loggingDirectives)return C.loggingDirectives.trackingParams}return(H==null?0:H.loggingDirectives)?H.loggingDirectives.trackingParams:H==null?void 0:H.trackingParams};
Gp=function(H){var C;return(C=H.polymerController)!=null?C:H};
fD$=function(H){_.f7();if(_.Lp(om().JSC$12581_elementShouldLogGesture).bind(om())(H,4)){e2i(H);var C=uYi(H);GPp.set(H,C)}};
e2i=function(H){GPp.has(H)&&(GPp.get(H).cancel("untrack hover element"),GPp.delete(H))};
uYi=function(H){var C,S=[],w=!1,A=new _.Es(function(J,c){O4(H,"mouseenter",_.Lp(function(){var Y,M,m;return _.z(function(W){if(W.nextAddress==1)return C=(0,_.Zt)(),Y=v7Z(H),S.push(Y),M=lDi(H,function(){w=!0;c(Error("ah"))}),W.yield(Y,2);
if(W.nextAddress!=3)return M&&XH(M),m=VgD(H),S.push(m),W.yield(m,3);J();_.oT(W)})}))});
A.then(function(){var J=(0,_.Zt)()-C;J=Math.round(J);if(!(500>J||6E5<=J)){var c=H.getScreenLayer?H.getScreenLayer():void 0;c=_.Dg(c)||"";var Y=o7W(_.f7(),H);_.sa(c,H.visualElement?H.visualElement:_.Qh(Y),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:J}})}fD$(H)},function(){dC&&(dC(),dC=null);
w&&(e2i(H),fD$(H))});
return A};
v7Z=function(H){var C;return(new _.Es(function(S,w){dC=function(){w(Error("bh"))};
C=_.rT.debounce(_.Lp(function(){XH(A);S()}),1,100);
var A=_.PI(H,"mousemove",C)})).thenCatch(function(){var S=_.rT.cancelDebouncedJobMap.get(C);
S&&_.rT.cancelJob(S)})};
VgD=function(H){var C;return(new _.Es(function(S,w){dC=function(){w(Error("ch"))};
C=O4(H,"mouseleave",_.Lp(function(){S()}))})).thenCatch(function(){XH(C)})};
lDi=function(H,C){return O4(H,"mouseleave",_.Lp(C))};
XdE=function(H){O0V&&_.p7.cancel(O0V);O0V=_.p7.run(function(){_.M3(H,"yt-visibility-refresh");O0V=0})};
Q96=function(H){H=Number(H);return"rgba("+[H>>16&255,H>>8&255,H&255,(H>>24&255)/255].join()+")"};
P6E=function(H){if(!H)return!1;if(_.e(H,_.dAW))return!0;var C;if(H=(C=_.e(H,_.b9))==null?void 0:C.commands)for(C=_.Z(H),H=C.next();!H.done;H=C.next())if(_.e(H.value,_.dAW))return!0;return!1};
$AU=function(H){var C=!0;C=C===void 0?!0:C;if(!H.useSignals&&!H.experimentalPropertiesChanged||_.E("experimental_templating_behavior_nopatch_killswitch")){var S=H._propertiesChanged;H._propertiesChanged=function(w,A,J){C?H.debounceRender():H.doRender();S&&S.call(H,w,A,J)}}};
pd$=function(H,C){if(H.useSignals||H.experimentalPropertiesChanged)if(_.E("experimental_templating_behavior_nopatch_killswitch"))H.experimentalPropertiesChanged=function(){};
else return;var S=new Set,w=[H].concat(_.k$(H.behaviors));w=_.Z(w);for(var A=w.next();!A.done;A=w.next()){A=A.value;for(var J in A.properties)S.has(J)||(H._addPropertyEffect(J,"function",C),S.add(J))}};
kPu=function(){var H=Polymer.Element,C=H._prepareTemplate;H._prepareTemplate=function(){C.call(this);var S=this.prototype;if(S.experimentalTemplatingInUse&&S.experimentalTemplatingInUse()&&S.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.nC(Error("dh"));else{S=this.template.content.childNodes;for(var w=S.length-1;w>=0;w--){var A=S[w];A.nodeName!=="STYLE"&&A.nodeName!=="LINK"&&A.nodeName!=="SCRIPT"&&A.nodeName!=="#comment"&&A.remove()}}}};
h2E=function(H){var C=!0;C=C===void 0?!0:C;kPu();var S=H.ready;H.ready=function(){this._template=null;S.call(this)};
pd$(H,C?H.debounceRender:H.doRender)};
rmp=function(H,C,S){if(S===null||S===void 0)return S;var w=yP7(H.tagName.toLowerCase(),C,function(){throw Error("Wb");});
if(w===null)return S;w=n7E[w];var A;if((A=w.isUnwrappable)==null?0:A.call(w,S)){if(w.unwrap)return w.unwrap(S);throw Error("gh");}return w.filterString?w.filterString(H.tagName,C,String(S)):S};
Bgu=function(H,C,S){var w=C[C.length-1]!=="$",A=rmp(H,C,S);if(w)if(typeof A==="function"&&C.startsWith("reactiveon")&&C===C.toLowerCase()){var J=sF;lV$(H,C.slice(8),function(c){ha(J,function(){A(c)})})}else H[C]=A;
else S=A==null?null:String(A),BN(H,C.slice(0,-1),S)};
hx=function(H){DAw.length===0&&requestAnimationFrame(function(){setTimeout(function(){var C=DAw.slice();DAw.length=0;C=_.Z(C);for(var S=C.next();!S.done;S=C.next()){S=S.value;try{S()}catch(w){_.kj(w)}}})});
DAw.push(H)};
KdE=function(H){if(H){var C=H.component;if(C){var S;C==null||(S=C.events)==null||S.publish("DISCONNECTED");var w;C==null||(w=C.onDisconnected)==null||w.call(C)}var A,J;(A=H.__spec)==null||(J=A.didUnmount)==null||J.call(A);for(C=0;C<H.childNodes.length;C++)KdE(H.childNodes[C])}};
tgW=function(H,C,S){var w=C&&C.key,A=iE;A[0]=H;A[1]=w;A[2]=void 0;for(var J in C)C.hasOwnProperty(J)&&(H=C[J],w=Cp,w.push(J),w.push(H));C=iE;a:{if(J=iE[2])for(H=0;H<J.length;H+=2)if(J[H]==="nonce"){J=J[H+1];break a}J=""}J=rPW(C[0],C[1],J);H=ta(J);w=C[2];if(!H.staticsApplied&&(H.staticsApplied=!0,w&&w.length))if((A=H._attrsArr)&&A.length){for(A=0;A<w.length;A+=2)n7[w[A]]=A+1;A=H._attrsArr||(H._attrsArr=vfU(0));for(var c=0,Y=0;Y<A.length;Y+=2){var M=A[Y],m=A[Y+1],W=n7[M];W?w[W]===m&&delete n7[M]:(A[c]=
M,A[c+1]=m,c+=2)}r6(A,c);for(var y in n7)Qqp(J,y,w[n7[y]],JP),delete n7[y]}else for(y=0;y<w.length;y+=2)Qqp(J,w[y],w[y+1],JP);RrV(J,H,JP);r6(C,0);S&&S(Ls);BdU()};
_.rC=function(H,C,S){S===void 0?delete H[C.name]:H[C.name]=S};
_.BI=function(H){var C={androidIncludeFontPadding:!1},S=0,w=[],A=[],J=[];if(H.simpleText)return C.content=H.simpleText,C;if(H.runs===void 0)return C.content="",C;H=_.Z(H.runs);for(var c=H.next();!c.done;c=H.next()){c=c.value;var Y=c.text,M=void 0,m=(M=Y)==null?void 0:M.length;if(Y&&m){w.push(Y);if(c.bold||c.italics||c.strikethrough||c.underline||c.textColor!=null&&c.textColor!==0||c.deemphasize){Y=A;M=Y.push;var W={startIndex:S,length:m};c.bold&&(W.weightLabel="FONT_WEIGHT_MEDIUM");c.italics&&(W.italic=
!0);c.strikethrough&&(W.strikethrough="LINE_STYLE_SINGLE");c.underline&&(W.underline="LINE_STYLE_SINGLE");c.textColor!=null&&c.textColor!==0?document.documentElement.hasAttribute("dark")?W.fontColor=c.darkModeTextColor||c.textColor:W.fontColor=c.textColor:c.deemphasize&&(document.documentElement.hasAttribute("dark")?W.fontColor=parseInt("ff"+Ldi("#aaa").substring(1),16):W.fontColor=parseInt("ff"+Ldi("#606060").substring(1),16));M.call(Y,W)}c.navigationEndpoint&&(Y=J,M=Y.push,W={startIndex:S,length:m,
onTap:{innertubeCommand:c.navigationEndpoint}},c.loggingDirectives&&_.rC(W,g7i,c.loggingDirectives),M.call(Y,W));S+=m}}C.content=w.join("");C.styleRuns=A.length?A:void 0;C.commandRuns=J.length?J:void 0;return C};
R2$=function(H){if(H==null||!H.runs)return!0;H=_.Z(H.runs);for(var C=H.next();!C.done;C=H.next())if(C=C.value,C.bracket||C.errorUnderline||C.deemphasize||_.e(C,D5)||_.e(C,UAW))return!1;return!0};
IDW=function(H,C){return function(S){var w=C.unit;if(w!==S)throw Error("jh`"+H+"`"+w+"`"+S);return C}};
K7=function(H){if(!((H==null?0:H.value)&&(H==null?0:H.unit)))return"";switch(H.unit){case "DIMENSION_UNIT_FRACTION":var C="%";break;default:C="px"}H=H.value;C==="%"&&(H*=100);return""+H+C};
aDZ=function(H){try{return H()}catch(C){_.Bn(C)}};
_.L7=function(H){var C=_.e(H,_.tx);if(C)return C;if((C=_.e(H,xAV))&&C.commands)return HyZ(C.commands);if((C=_.e(H,iyD))&&C.commands)return HyZ(C.commands);if((H=_.e(H,CcW))&&H.identifier&&H.command&&(ShZ||(ShZ=[]),!ShZ.includes(H.identifier)))return ShZ.push(H.identifier),_.e(H.command,_.tx)};
HyZ=function(H){if(H.length!==0){var C=[];H=_.Z(H);for(var S=H.next();!S.done;S=H.next())(S=_.L7(S.value))&&C.push(S);return{commandExecutorCommand:{commands:C}}}};
_.U4=function(H){var C=H.defaultTarget,S=H.elementConfig,w=H.elementsCommand,A=H.skipOnClick,J=H.forceNewState,c=H.additionalCommandArgs,Y=H.innertubeCommand||_.L7(w);if(Y){H={};var M=sDV(Y);w=M.navigatingCommand;M=M.href;w&&M?(H.href$=M,jDE(H,w,M,C),_.E("web_atagconfig_pointerdown")&&wyW(H,w),J&&(H["force-new-state$"]=!0)):(H.role$="button",H.href$="javascript:void(0);");_.e(Y,A2u)&&(H["aria-haspopup$"]=!0);A||(H.onclick=function(m){var W={};if(J2$(m)){var y=(c==null?void 0:c.clickedVisualElement)||
(c==null?void 0:c.getClickedVisualElement)&&c.getClickedVisualElement();y&&(W={clickedVisualElement:y});W=Object.assign({},{form:{element:m.target,event:m,createScreenConfig:W}},c);m.preventDefault();_.gC(Y,W)}});
return Object.assign({},S,H)}};
Foi=function(H){if(H.length){if(H.length===1)return H[0];var C={};_.rC(C,_.b9,{commands:H});return C}};
Rm=function(H){return H&&H.href$!=="javascript:void(0);"};
sDV=function(H){var C,S=((C=_.e(H,_.b9))==null?void 0:C.commands)||[H];H=_.Z(S);for(C=H.next();!C.done;C=H.next()){C=C.value;var w=void 0,A=void 0;S=(A=_.e((w=C)==null?void 0:w.commandMetadata,_.u9))==null?void 0:A.url;_.E("web_remove_web_navigation_endpoint_data")||(w=void 0,S=S||((w=_.e(C,ZyE))==null?void 0:w.url));if(S&&S!=="/service_ajax"){if(w=_.n9(S,c2Z))return H=_.kD(w),{navigatingCommand:C,href:H};_.Bn(new _.X0("AttributedString URL could not be sanitized",S))}}return{}};
J2$=function(H){return H.button!==void 0?H.button===0&&!(H.shiftKey||H.altKey||H.metaKey||H.ctrlKey):!(H.shiftKey||H.altKey||H.metaKey||H.ctrlKey)};
jDE=function(H,C,S,w){S=!j$(S);var A,J,c;if((A=_.e(C,_.vU))!=null&&A.nofollow||(J=_.e(C,_.sX))!=null&&J.nofollow||(c=_.e(C,_.R8))!=null&&c.nofollow||S)H.rel$="nofollow";var Y;C=((Y=_.e(C,_.R8))==null?void 0:Y.target)==="TARGET_NEW_WINDOW"?"_blank":w===void 0?"":w;H.target$=C};
wyW=function(H,C){C.clickTrackingParams&&(H.params={itct:C.clickTrackingParams});H.onpointerdown=function(S){YhD(S)};
H._data=C};
zGZ=function(H){(H.loggingUrls||[]).forEach(function(C){xu(C.baseUrl,C.attributionSrcMode)})};
YhD=function(H){var C=H.currentTarget;H=aDZ(function(){return C.href});
var S=C.params;H&&_.JM(H,S||{},8,!0)};
_.Im=function(H,C){(H=_.L7(H))&&_.gC(H,C)};
_.gC=function(H,C){L7V(function(S){C?S.resolveCommand(H,C):S.resolveCommand(H)})};
m4Z=function(H,C){var S=["yt-core-attributed-string__link"];C!=null&&C.noLinkColor||((C==null?0:C.isOverlay)?S.push("yt-core-attributed-string__link--overlay-call-to-action-color"):S.push("yt-core-attributed-string__link--call-to-action-color"),(C==null?0:C.linkInheritColor)&&S.push("yt-core-attributed-string--link-inherit-color"));S={className:S.join(" "),tabindex$:"0"};var w=H.onTap||H.onLongPress;if(!w)return S;var A=MzV(H);A&&(S["aria-label$"]=A);C=_.U4({elementsCommand:w,elementConfig:S,skipOnClick:!(C==
null||!C.skipOnClick),forceNewState:!0});H.onLongPress&&(w=new qhE(function(){var J=_.L7(H.onLongPress);J&&_.JA().resolve(_.ZQ).resolveCommand(J)}),C&&TYV(w,C));
return C||S};
MzV=function(H){var C,S;return(C=H.onTapOptions)==null?void 0:(S=C.accessibilityInfo)==null?void 0:S.accessibilityLabel};
WoW=function(H){var C=H;H<=16777215&&(C+=parseInt("ff000000",16));return _.aw(C)};
y26=function(H){var C=H.isDarkTheme;var S=H.extension;H=H.runColor;var w=void 0;if(S=S==null?void 0:S.colorMap){C=C?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";S=_.Z(S);for(var A=S.next();!A.done;A=S.next())if(A=A.value,C===A.key){w=A.value;break}}w==null&&H&&(w=H);if(w)return WoW(w)};
am=function(H){var C=H.config;var S=H.image;var w=H.imageConfig;var A=H.imageWrapperConfig;var J=H.run;var c=H.tag;var Y=H.textLength;var M=H.startIndex===void 0?0:H.startIndex;H=H.length;M===void 0&&(M=0);J={run:J,startIndex:M,endIndex:H!==void 0?M+H:Y,tag:c};S&&(J.image=S);w&&(J.imageConfig=w);A&&(J.imageWrapperConfig=A);C&&(J.config=C);return J};
byZ=function(H,C){var S=[];S.push("yt-core-attributed-string");(C==null?0:C.className)&&S.push(C==null?void 0:C.className);(C==null?0:C.ellipsisTruncate)?S.push("yt-core-attributed-string--ellipsis-truncate"):(C==null?0:C.noWrap)?S.push("yt-core-attributed-string--white-space-no-wrap"):(C==null?0:C.noPreWrap)||S.push("yt-core-attributed-string--white-space-pre-wrap");(C==null?0:C.linkInheritColor)&&S.push("yt-core-attributed-string--link-inherit-color");H.alignment&&S.push(NYE(H.alignment));H.lineBreakMode&&
S.push("yt-core-attributed-string--word-wrapping");return S.join(" ")};
ENi=function(H,C){if(H.weight)return H.weight;switch(H.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 C?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
eGi=function(H){switch(H){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"}};
NYE=function(H){switch(H){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"}};
SJ=function(H,C,S){var w=C;H.content&&S&&(S=H.content.indexOf("\n"),S!==-1&&(w=Math.min(C,S)));if(!H.content||H.content.length<=w)C=H;else if(H.attachmentRuns||H.commandRuns||H.decorationRuns||H.styleRuns||H.paragraphStyleRuns){C=im(H.content,w);S=w;var A=H.attachmentRuns;if(A){var J=[];A=_.Z(A);for(var c=A.next();!c.done;c=A.next())c=Object.assign({},c.value),c.startIndex===void 0||c.startIndex>=S||(c.length||(c.length=0),c.length+c.startIndex>S&&(c.length=S-c.startIndex),J.push(c));S=J}else S=void 0;
J=umU(w,H.commandRuns);A=w;var Y=H.decorationRuns;if(Y){c=[];Y=_.Z(Y);for(var M=Y.next();!M.done;M=Y.next()){M=M.value;var m=_.e(M.textDecorator,Cu);if(m&&m.startIndex!==void 0&&!(m.startIndex>=A)){M=Object.assign({},M,{textDecorator:{highlightTextDecorator:Object.assign({},m)}});m=_.e(M.textDecorator,Cu);if(!m.length||m.length+m.startIndex>A)m.length=A-m.startIndex;c.push(M)}}A=c}else A=void 0;c=umU(w,H.styleRuns);if(Y=H.paragraphStyleRuns)for(H=[],Y=_.Z(Y),M=Y.next();!M.done;M=Y.next()){var W=M.value;
M=Object.assign({},W);if(!(M.startIndex===void 0||M.startIndex>=w)){if(!M.length||M.length+M.startIndex>w)M.length=w-M.startIndex;m=[];var y=void 0,N=void 0;if((y=W)==null?0:(N=y.listGroup)==null?0:N.listItems)for(W=_.Z(W.listGroup.listItems),y=W.next();!y.done;y=W.next())if(y=Object.assign({},y.value),!(y.startIndex===void 0||y.startIndex>=w)){if(!y.length||y.length+y.startIndex>w)y.length=w-y.startIndex;m.push(y)}m.length>0&&(M.listGroup||(M.listGroup={}),M.listGroup=Object.assign({},M.listGroup,
{listItems:m}));H.push(M)}}else H=void 0;C={content:C,attachmentRuns:S,commandRuns:J,decorationRuns:A,styleRuns:c,paragraphStyleRuns:H}}else C=Object.assign({},H,{content:im(H.content,w)});return C};
umU=function(H,C){if(C){var S=[];C=_.Z(C);for(var w=C.next();!w.done;w=C.next())if(w=Object.assign({},w.value),!(w.startIndex===void 0||w.startIndex>=H)){if(!w.length||w.length+w.startIndex>H)w.length=H-w.startIndex;S.push(w)}return S}};
im=function(H,C){var S=C,w;if(w=S>0)w=H.charCodeAt(S-1),w=w>=55296&&w<=56319;w&&(S=H.charCodeAt(S),w=S>=56320&&S<=57343);w&&--C;return H.substring(0,C)};
lWU=function(H,C,S){S=S===void 0?GQ6:S;if(H){var w=_.JA().resolve(ZV);w||_.E("mweb_no_observer_killswitch")?E70(H,{data:C,observer:w,visibilityCallback:S,hideOption:fWp,showOption:vNU,layer:H.layer}):_.Bn(new _.X0("Warning: monitorVisibility called with null observer",H.tagName,C==null?void 0:C.loggingDirectives,C==null?void 0:C.trackingParams))}else _.Bn(new _.X0("Warning: monitorVisibility called with null element",C==null?void 0:C.loggingDirectives,C==null?void 0:C.trackingParams,C==null?void 0:
C.rendererContext))};
Pcu=function(H,C){var S=[],w=H.content.length,A,J=(A=_.JA().resolve(_.AA(_.sU)))==null?void 0:A();if(H.paragraphStyleRuns){A=_.Z(H.paragraphStyleRuns);for(var c=A.next();!c.done;c=A.next()){var Y=S.push,M=Y.apply;var m=void 0;c=c.value;if((m=c.listGroup)!=null&&m.listItems){m=[];b:switch(c.listGroup.listType){case "LIST_TYPE_BULLET":var W="ul";break b;default:W="span"}m.push(am({run:c,textLength:w,tag:W,config:{className:"yt-core-attributed-string__list-group"},startIndex:c.startIndex,length:c.length}));
W=_.Z(c.listGroup.listItems);for(var y=W.next();!y.done;y=W.next()){y=y.value;b:switch(c.listGroup.listType){case "LIST_TYPE_BULLET":var N="li";break b;default:N="span"}m.push(am({run:c,textLength:w,tag:N,startIndex:y.startIndex,length:y.length}))}c=m}else c=[];M.call(Y,S,_.k$(c))}}if(H.styleRuns&&(C==null||!C.noStyleRuns))for(A=_.Z(H.styleRuns),Y=A.next();!Y.done;Y=A.next()){c=Y=Y.value;m=J;M=C;m=y26({extension:_.e(c.styleRunExtensions,VzE),isDarkTheme:m===void 0?!1:m,runColor:c.fontColor});y=c;
W=[];m&&W.push("yt-core-attributed-string--link-inherit-color");y.italic&&W.push("yt-core-attributed-string--italicized");y.underline&&y.strikethrough?W.push("yt-core-attributed-string--underline-strikethrough",eGi(y.underline)):y.underline?W.push("yt-core-attributed-string--underlined",eGi(y.underline)):y.strikethrough&&W.push("yt-core-attributed-string--strikethrough",eGi(y.strikethrough));if(y.baselineOffset){a:switch(y.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":y="yt-core-attributed-string--baseline-offset-subscript";
break a;case "BASELINE_OFFSET_SUPERSCRIPT":y="yt-core-attributed-string--baseline-offset-superscript";break a;default:y="yt-core-attributed-string--baseline-offset-unknown"}W.push(y)}W=W.join(" ");y={};if(c.weight||c.weightLabel)y.fontWeight=ENi(c,M==null?void 0:M.isHeadline).toString();m&&(y.color=m);S.push(am({run:Y,textLength:w,tag:"span",config:{className:W,style:y},startIndex:Y.startIndex,length:Y.length}))}if(H.decorationRuns)for(A=_.Z(H.decorationRuns),Y=A.next();!Y.done;Y=A.next())Y=Y.value,
M={},Y.textDecorator&&(W=Y.textDecorator,c=J===void 0?!1:J,y=[],m=_.e(W,Cu),W=_.e(W,oND),m?(W=y,y=W.concat,N=[],(c=y26({extension:_.e(m.highlightTextDecoratorExtensions,OyZ),isDarkTheme:c,runColor:m.backgroundColor}))&&N.push("background-color: "+c+";"),m.backgroundCornerRadius!==void 0&&N.push("border-radius: "+m.backgroundCornerRadius+"px;"),m.leftPadding!==void 0&&N.push("padding-left: "+m.leftPadding+"px;"),m.rightPadding!==void 0&&N.push("padding-right: "+m.rightPadding+"px;"),m.topPadding!==
void 0&&N.push("padding-top: "+m.topPadding+"px;"),m.bottomPadding!==void 0&&N.push("padding-bottom: "+m.bottomPadding+"px;"),y=y.call(W,N)):W&&(m=y,y=m.concat,c=c?"#2ba640":"#107516",c=W.color?WoW(W.color):c,c=["padding: 2px;","border-top: solid "+c+" 2px;","border-bottom: solid "+c+" 2px;","background: linear-gradient(135deg, "+c+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+c+" 3px, rgba(0, 0, 0, 0) 3px);"],y=y.call(m,c)),c=y.join(" "),M.style$=c,c=Y.textDecorator,m=[],W=_.e(c,
oND),_.e(c,Cu)?m.push("yt-core-attributed-string--highlight-text-decorator"):W&&m.push("yt-core-attributed-string--bracket-text-decorator"),c=m.join(" "),M.className=c,M.dir="auto"),c=_.e(Y.textDecorator,Cu),m=_.e(Y.textDecorator,oND),W=_.e(Y.textDecorator,Cu),y=_.e(Y.textDecorator,oND),S.push(am({run:Y,textLength:w,tag:"span",config:M,startIndex:(c==null?void 0:c.startIndex)||(m==null?void 0:m.startIndex)||0,length:(W==null?void 0:W.length)||(y==null?void 0:y.length)||0}));if(H.commandRuns&&(C==
null||!C.noEndpoints))for(J=_.Z(H.commandRuns),A=J.next();!A.done;A=J.next())A=A.value,Y=m4Z(A,C),S.push(am({run:A,textLength:w,tag:"a",config:Y,startIndex:A.startIndex,length:A.length}));if(H.attachmentRuns)for(H=_.Z(H.attachmentRuns),J=H.next();!J.done;J=H.next()){J=J.value;M=Y=void 0;A={className:"yt-core-attributed-string--inline-block-mod"};if((M=J.element)==null?0:M.properties){M=(Y=J.element)==null?void 0:Y.properties;Y=[];M=_.e(M,XyZ);if(M==null?0:M.margin)M=M.margin,M.left&&Y.push("margin-left: "+
K7(M.left)+";"),M.right&&Y.push("margin-right: "+K7(M.right)+";"),M.top&&Y.push("margin-top: "+K7(M.top)+";"),M.bottom&&Y.push("margin-bottom: "+K7(M.bottom)+";");Y=Y.length!==0?Y.join(" "):void 0;A.style$=Y}c=void 0;Y={alt:"",preserveHeight:!0,preserveWidth:!0};M=["yt-core-attributed-string__image-element"];if(J.alignment){a:switch(J.alignment){case "ALIGNMENT_BASELINE":m="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":m="yt-core-attributed-string__image-element--image-alignment-vertical-center";
break a;default:m="yt-core-attributed-string__image-element--image-alignment-bottom"}M.push(m)}if((c=J.element)==null?0:c.properties)c=[],m=_.e(J.element.properties,XyZ),(m==null?0:m.height)&&c.push("height: "+K7(m.height)+";"),(m==null?0:m.width)&&c.push("width: "+K7(m.width)+";"),c=c.length!==0?c.join(" "):void 0,Y.style$=c,m=void 0,c=((m=_.e(J.element.properties,QDE))==null?void 0:m.label)||"",Y.alt=c;Y.className=M.join(" ");M=void 0;W=m=void 0;c=((W=J.element)==null?0:W.type)?(m=_.e(J.element.type,
d4W))==null?void 0:m.image:void 0;S.push(am({run:J,textLength:w,tag:"img",image:c,imageConfig:Y,imageWrapperConfig:A,startIndex:J.startIndex,length:(M=J.length)!=null?M:0}))}if(C==null?0:C.headerRuns)for(C=_.Z(C.headerRuns),H=C.next();!H.done;H=C.next())if(H=H.value,H.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(H.headerMapping)){a:{switch(H.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":J=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":J="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":J="yt-core-attributed-string--heading-3";break a}J=void 0}S.push(am({run:H,textLength:w,tag:"span",config:J?{className:J}:void 0,startIndex:H.startIndex,length:H.length}))}return S};
_.jJ=function(H){return(H==null?void 0:H.content)!==void 0};
$4D=function(H){return _.jJ(H)?H:_.BI(H)};
pyU=function(H){return H.image!==void 0&&H.imageConfig!==void 0};
kQ$=function(H,C){if(C==null?0:C.userInput)for(H=_.Z(H),C=H.next();!C.done;C=H.next())if(C=C.value,C.tag!=="a"&&C.tag!=="li"){var S=void 0;(S=C).config||(S.config={});C.config.dir=C.tag==="ul"?_.JA().resolve(_.wW):"auto"}};
hG$=function(H){return function(C){var S=H.run;(S.onTap!==void 0||S.onLongPress!==void 0)&&_.e(S,g7i)&&lWU(C,{loggingDirectives:_.e(S,g7i)})}};
nNE=function(H){return function(C){for(var S in H)(JP[S]||JP[Dp["default"]])(C,S,H[S])}};
KoZ=function(H,C){r2i(C);var S={data:null,start:0,end:H.length,parts:[]};C=_.Z(C);for(var w=C.next();!w.done;w=C.next())w=w.value,BYD(S,w.startIndex,w.endIndex,w);D4V(H,S);return S};
BYD=function(H,C,S,w){for(var A=_.Z(H.parts),J=A.next();!J.done;J=A.next()){J=J.value;if(typeof J==="string")throw Error("lh");if(J.start<=C&&S<=J.end){BYD(J,C,S,w);return}}H.parts.push({data:w,parts:[],start:C,end:S})};
D4V=function(H,C){for(var S=C.parts.length;S>=0;S--){var w=C.parts[S],A=C.parts[S-1],J=S===C.parts.length?C.end:w.start;A=S===0?C.start:A.end;J!==A&&C.parts.splice(S,0,H.slice(A,J));w&&D4V(H,w)}};
r2i=function(H){H.sort(function(C,S){if(C.startIndex<S.startIndex)return-1;if(S.startIndex<C.startIndex)return 1;C=C.endIndex-C.startIndex;S=S.endIndex-S.startIndex;return C>S?-1:S>C?1:0})};
_.tzU=function(H){var C=H.thumbnails;if(C){H={sources:[]};C=_.Z(C);for(var S=C.next();!S.done;S=C.next()){S=S.value;var w={};w.url=S.url;w.width=S.width;w.height=S.height;H.sources.push(w)}return H}};
LoE=function(H,C,S,w){if(!C)return H.length>=1?H[H.length-1]:null;if(w)for(var A=_.Z(H),J=A.next();!J.done;J=A.next()){J=J.value;var c=void 0,Y=(c=J.url)==null?void 0:c.indexOf(w);if(Y!==void 0&&Y>=0)return J}w=_.Z(H);for(A=w.next();!A.done;A=w.next())if(A=A.value,A.width&&A.height&&(S&&A.width>=C||!S&&A.height>=C))return A;for(C=H.length-1;C>=0;C--)if(S&&H[C].width||!S&&H[C].height)return H[C];return H[0]};
_.gNu=function(H){var C;return(H=(C=H.sources)==null?void 0:C[0])?H.width/H.height:0};
_.U4i=function(H){if(H.sources){H=_.Z(H.sources);for(var C=H.next();!C.done;C=H.next()){C=C.value;var S=void 0;if((S=C.clientResource)==null?0:S.imageName)return C}}};
RGZ=function(H){var C;if((C=H.clientResource)!=null&&C.imageColor)return _.aw(H.clientResource.imageColor)};
_.aWu=function(H,C,S,w,A,J,c){if(!C||C.length===0||C[0].clientResource)return null;if(S&&C[0].url)return C[0].url;w===void 0&&(w=!0);if(w){var Y;H=IWw*(A||(H==null?void 0:(Y=H.getBoundingClientRect())==null?void 0:Y.width)||0)}else{var M;H=IWw*(J||(H==null?void 0:(M=H.getBoundingClientRect())==null?void 0:M.height)||0)}C=LoE(C,H,w,c);return(C==null?0:C.url)?C.url:(C==null?0:C.imageData)?C.imageData:null};
x47=function(H,C,S){S=S?[S]:[];H.opacity&&S.push("opacity: "+H.opacity+";");C&&H.placeholderColor?(H=_.aw(H.placeholderColor),S.push("background-color: "+H+";")):S.push("background-color: transparent;");return S.join(" ")};
HB$=function(H,C,S,w,A){var J=["ytCoreImageHost"];C&&J.push(C);S||J.push("ytCoreImageFillParentHeight");w||J.push("ytCoreImageFillParentWidth");switch(H.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":J.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":J.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":J.push("ytCoreImageContentModeCenter");break;default:J.push("ytCoreImageContentModeScaleToFill")}H.flipForRtlLayout&&J.push("ytCoreImageFlipRtl");
switch(A){case "TOP_START":var c;J.push(((c=document.body)==null?void 0:c.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return J.join(" ")};
CS7=function(H){var C;if(H==null?0:(C=H.clientResource)==null?0:C.imageName){var S;H=(S=H.clientResource)==null?void 0:S.imageName;a:{switch(H){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":S="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":S="yt-logos-ext:yt-logo-updated";break a}S=void 0}return S||iBE.get(H)||H}};
j3u=function(H){return _.E("mweb_wiz_skip_render")?S0$(H):s3U(H)};
S0$=function(H){return function(C){var S=rPW("wink-root");D_$();BdU();qjW(S,_.q(H,C))}};
s3U=function(H){var C=C===void 0?!1:C;return function(S){if(!C||!_.E("mweb_skip_keto_to_c3_if_no_data")||S.data!==void 0){var w=ZY(!1);try{var A=S.children;_.E("mweb_render_outside_patch_killswitch")||Ls?A?AP(_.q(H,S,A)):AP(_.q(H,S)):_.Bn(new _.X0("ketoToC3 called outside of a patch",{tagName:H.TAG_NAME}))}finally{ZY(w)}}}};
wOZ=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
Js7=function(H,C){H.onViewportEntered=C;AsZ.observe(H)};
FsW=function(){var H={rootMargin:"10%",threshold:.01};_.E("mweb_enable_set_io_root_to_null_safari")?H.root=null:_.E("mweb_enable_set_io_root_to_body_safari")&&(H.root=document.body);return new IntersectionObserver(function(C,S){C.filter(function(w){return w.intersectionRect.height>0}).forEach(function(w){w=w.target;
if(!_.E("mweb_enable_only_update_image_when_connected")||w.isConnected!==!1){var A;(A=w.onViewportEntered)==null||A.call(w);S.unobserve(w)}})},H)};
ZB7=function(H,C,S,w,A){function J(){if(w){var Y=w.loadedClass,M=w.notifyOnUnloaded;Y&&_.Ag(H,Y);M&&H.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function c(){var Y=S(C,H);Y&&H.getAttribute("src")!==Y&&(_.E("mweb_enable_only_update_image_when_connected")&&H.isConnected===!1||Y===H.src||(H.src=Y),J())}
A=A===void 0?!0:A;H.removeAttribute("src");J();C&&(A?Js7(H,c):c())};
csu=function(H,C,S){if(!C)return!1;C=S(C,H);S=H.getAttribute("src");return C&&C===S&&H.complete};
Y0Z=function(H,C){for(var S in C)S==="className"?H.className=C[S]:(JP[S]||JP[Dp.default])(H,S,C[S])};
zPZ=function(H,C,S,w){j3u(_.Jg)({contentMode:C.contentMode,loadedClass:C.loadedClass,isPreloaded:C.isPreloaded,notifyOnLoaded:C.notifyOnLoaded,notifyOnUnloaded:C.notifyOnUnloaded,preferredThumbnail:C.preferredThumbnail,preserveHeight:C.preserveHeight,preserveWidth:C.preserveWidth,objectPosition:C.objectPosition,targetWidth:C.targetWidth,targetHeight:C.targetHeight,shouldShowPlaceholder:C.shouldShowPlaceholder,useWidth:C.useWidth,isToggled:C.isToggled,alt:C.alt,className:C.className,onerror:C.onerror,
onload:C.onload,style$:C.style$,color:C.color,width:C.width,height:C.height,"aria-hidden$":C["aria-hidden$"],draggable:C.draggable,"data-disabled$":C["data-disabled$"],data:H,callback:S,renderLazy:w===void 0?!0:w,hideOn404:!1})};
q06=function(H,C,S){S=S===void 0?!1:S;var w=H.sources!==void 0?H:_.tzU(H);if(w){var A=C.onload;C.onload=function(M){var m=M.target;S&&m.naturalWidth===120||_.FB(m,"ytCoreImageLoaded");C.notifyOnLoaded&&m.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));A==null||A(M)};
C.targetWidth&&C.preserveWidth&&(C.width=C.targetWidth);C.targetHeight&&C.preserveHeight&&(C.height=C.targetHeight);var J=_.U4i(w),c=J&&CS7(J);if(c)return(H=RGZ(J))&&(C.color=H),{type:"icon",iconName:c,config:Object.assign({},C,C.alt?{}:{"aria-hidden$":"true"},{"aria-label$":C.alt,role:"img"})};if(H.sources===void 0){C.alt=H.accessibility&&H.accessibility.accessibilityData&&H.accessibility.accessibilityData.label||C.alt;C.style$=x47(H,C.shouldShowPlaceholder,C.style$);var Y;C.isPreloaded=!((Y=_.e(H,
MYp))==null||!Y.isPreloaded)}C.contentMode&&!w.contentMode&&(w.contentMode=C.contentMode);C.className=HB$(w,C.className,C.preserveHeight,C.preserveWidth,C.objectPosition);C.loadedClass="ytCoreImageLoaded";return{type:"image",image:w,config:C}}};
_.Zl=function(){var H=_.tc.apply(0,arguments);return _.ja(T8W,function(C){var S=H.map(function(w){return w==null?void 0:w(C)});
return function(){return void S.forEach(function(w){return void(w==null?void 0:w())})}})};
cb=function(H,C){var S=C==null?void 0:C.initial;return _.EF(function(){_.ps(!0);return S=H(S)},{equals:C==null?void 0:C.isEqual},"rSlKsc")};
mGZ=function(H,C){if(H===C)return!0;if(H===void 0||C===void 0)return!1;var S,w,A,J,c,Y,M,m;return H.content===C.content&&((S=H.styleRuns)==null?void 0:S.length)===((w=C.styleRuns)==null?void 0:w.length)&&((A=H.commandRuns)==null?void 0:A.length)===((J=C.commandRuns)==null?void 0:J.length)&&((c=H.attachmentRuns)==null?void 0:c.length)===((Y=C.attachmentRuns)==null?void 0:Y.length)&&((M=H.decorationRuns)==null?void 0:M.length)===((m=C.decorationRuns)==null?void 0:m.length)};
N8Z=function(H,C){if(H){var S=$4D(H);if(S!=null&&S.content)if(_.E("attr_string_reactive"))j3u(WsE)({text:H,config:C});else{var w=!(C==null||!C.ariaLabel)||!(S.commandRuns&&S.commandRuns.length!==0||S.paragraphStyleRuns&&S.paragraphStyleRuns.length!==0);H=w?C==null?void 0:C.ariaLabel:null;w=w?"text":null;tgW("span",{className:byZ(S,C),dir$:(C==null?0:C.userInput)?"auto":void 0,"aria-label$":H,role$:w},function(){if(S.styleRuns||S.commandRuns||S.attachmentRuns||S.decorationRuns||S.paragraphStyleRuns){var A=
Pcu(S,C);kQ$(A,C);A=KoZ(S.content,A);A=_.Z(A.parts);for(var J=A.next();!J.done;J=A.next())ysi(J.value)}else IV$(S.content)})}}};
ysi=function(H){typeof H==="string"?IV$(H):pyU(H.data)?tgW("span",H.data.imageWrapperConfig,function(){zPZ(H.data.image,H.data.imageConfig)}):tgW(H.data.tag,H.data.config,function(C){hG$(H.data)(C);
C=_.Z(H.parts);for(var S=C.next();!S.done;S=C.next())ysi(S.value)})};
EZ7=function(H){return H.parts.map(bBi)};
bBi=function(H){if(typeof H==="string")return H;H=pyU(H.data)?_.q("span",{el:_.Zl(nNE(H.data.imageWrapperConfig))},_.q(_.Jg,Object.assign({},{data:H.data.image},H.data.imageConfig))):_.q(H.data.tag,{el:_.Zl(hG$(H.data),nNE(H.data.config))},H.parts.map(bBi));return eI(H)};
ePD=function(H,C){return H===C?!0:H===void 0||C===void 0?!1:H.noStyleRuns===C.noStyleRuns&&H.noLinkColor===C.noLinkColor&&H.noEndpoints===C.noEndpoints&&H.headerRuns===C.headerRuns&&H.isOverlay===C.isOverlay&&H.linkInheritColor===C.linkInheritColor&&H.userInput===C.userInput&&H.isHeadline===C.isHeadline};
uIW=function(H){return function(){var C,S,w,A,J,c,Y,M,m,W,y,N,b,u;return{ariaLabel:(C=H.ariaLabel)==null?void 0:C.call(H),className:(S=H.className)==null?void 0:S.call(H),ellipsisTruncate:(w=H.ellipsisTruncate)==null?void 0:w.call(H),isOverlay:(A=H.isOverlay)==null?void 0:A.call(H),linkInheritColor:(J=H.linkInheritColor)==null?void 0:J.call(H),noEndpoints:(c=H.noEndpoints)==null?void 0:c.call(H),noStyleRuns:(Y=H.noStyleRuns)==null?void 0:Y.call(H),noLinkColor:(M=H.noLinkColor)==null?void 0:M.call(H),
noPreWrap:(m=H.noPreWrap)==null?void 0:m.call(H),noWrap:(W=H.noWrap)==null?void 0:W.call(H),skipOnClick:(y=H.skipOnClick)==null?void 0:y.call(H),userInput:(N=H.userInput)==null?void 0:N.call(H),headerRuns:(b=H.headerRuns)==null?void 0:b.call(H),isHeadline:(u=H.isHeadline)==null?void 0:u.call(H)}}};
fH6=function(H,C){H=new GEE(H,C);_.nC(H);throw H;};
vZp=function(H,C,S){var w=kg6(H);H._numRenders=0;try{var A=_.PKE(function(){return _.q(C,Object.assign({},S))})}catch(c){var J=function(Y){Y.args||(Y.args=[]);
Y.args.push("Error in web component wrapper");Y.args.push(H.tagName.toLowerCase());return Y};
_.rv(c instanceof Error?J(c):new GEE("Wiz rendering error",H.tagName.toLowerCase()));throw c;}finally{kg6(w)}return A};
_.qs=function(H,C,S){function w(W){var y={};W=_.Z(W);for(var N=W.next();!N.done;N=W.next()){N=N.value;var b=void 0,u=void 0,O=void 0,d=_.ls((O=(u=(b=N).getAttribute)==null?void 0:u.call(b,"slot"))!=null?O:"children");if(b=y[d])b.push(N);else if(d in J||d==="children")y[d]=[N]}W=_.Z(Object.keys(y));d=W.next();for(N={};!d.done;N={content$jscomp$57:void 0},d=W.next())d=d.value,d!=="children"&&(N.content$jscomp$57=y[d],y[d]=function(p){return function(){return p.content$jscomp$57}}(N));
return y}
S=S===void 0?{}:S;H.componentType!==oE||fH6("Components must be marked reactive to be used from web component wrapper.",C);var A,J=(A=S.props)!=null?A:{};qW.add(C);var c=lHW();A=function(){var W=c.apply(this,arguments)||this;W.rawProps={};W.queuingRender=!1;W.dispose=function(){};
W.isWebComponentWrapper=!0;W.isReparenting=!1;W.hasRendered=!1;return W};
_.G(A,c);A.prototype.render=function(){this.hasRendered=!0;for(var W=_.Z([].concat(_.k$(this.attributes))),y=W.next();!y.done;y=W.next())y=y.value,y.name!=="slot"&&y.name!=="hidden"&&this.removeAttribute(y.name);W=Object.assign({},this.componentProps,this.slotProps);y=_.Z(vZp(this,H,W));W=y.next().value;y=y.next().value;!(W[0]instanceof Element)||W.length>1?fH6("Wrapped Wiz components must return a single root element.",C):(W=W[0].tagName.toLowerCase(),W!==C&&fH6("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(W+" !== '"+C),C),this.dispose=y)};
A.prototype.setUpProps=function(){for(var W=this.rawProps,y=this.attributes,N=_.Z(Object.keys(J)),b=N.next();!b.done;b=N.next()){b=b.value;var u=void 0;((u=this)==null?0:u[b])&&this[b]!==VYi&&W[b]===void 0&&(W[b]=this[b],(u=Object.getOwnPropertyDescriptor(this.constructor.prototype,b))&&Object.defineProperty(this,b,u))}N=_.Z(y);for(b=N.next();!b.done;b=N.next()){u=b.value;b=_.ls(u.name);var O=b==="class"&&!y.getNamedItem("class-name");if(b in J||O)u=u.value===""||u.value==="true"?!0:u.value==="false"?
!1:isNaN(Number(u.value))?u.value:Number(u.value),b!=="class"||W.className?W[b]=u:W.className=u}y={};for(var d in J)J[d]!==_.Yb&&J[d]!==oZW&&(W[d]instanceof Function&&fH6("Function props must be configured as STATIC, not SIGNAL.",C),b=_.Z(_.mB(W[d],void 0,"q4ZVff")),N=b.next().value,b=b.next().value,y[d]=b,W[d]=N);W=_.Z([W,y]);this.componentProps=W.next().value;this.setters=W.next().value;this.slotProps=w(this.childNodes)};
A.prototype.connectedCallback=function(){OBp===C&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in J&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
A.prototype.disconnectedCallback=function(){if(!this._isInert){var W;a:{if(_.zG)for(W=this;W;){if(_.Ms.has(W)){W=!0;break a}W=W.parentElement}W=!1}if(W)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){W=_.Z([].concat(_.k$(this.attributes)));for(var y=W.next();!y.done;y=W.next()){y=y.value;var N=void 0;y.name==="slot"||y.name==="hidden"&&((N=S.unsafeExternallySettableAttributes)==null?0:N.has("hidden"))||this.removeAttribute(y.name)}}this.innerText="";oyW(this)}}};
A.prototype._setPendingPropertyOrPath=function(){};
A.prototype.notifyPath=function(){};
_.JJ.Object.defineProperties(A.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var Y=_.Z(Object.keys(J)),M=Y.next(),m={};!M.done;m={prop$jscomp$105:void 0},M=Y.next())m.prop$jscomp$105=M.value,M=void 0,((M=S.legacyPolymer)==null?0:M.forwardHostProps)&&lrE.has(m.prop$jscomp$105)||Object.defineProperty(A.prototype,m.prop$jscomp$105,{set:function(W){return function(y){var N=this;this._isInert||(this.setters?eL(function(){var b,u;return void((u=(b=N.setters)[W.prop$jscomp$105])==null?void 0:u.call(b,y))}):(this.rawProps[W.prop$jscomp$105]=y,this.queuingRender&&W.prop$jscomp$105===
"data"&&y!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(m),
get:XO6.has(m.prop$jscomp$105)?void 0:function(){return VYi}});
customElements.define(C,A)};
_.Q3w=function(H,C){return(H=_.TG(H,C))?_.kD(_.D4(H)):null};
_.m3=function(H){if(H=_.TG(H,Number.MAX_VALUE,void 0,"width"))return _.D4(H)};
_.TG=function(H,C,S,w){w=w===void 0?"width":w;if(!H||!H.length)return null;if(_.E("kevlar_tuner_should_always_use_device_pixel_ratio")){var A=window.devicePixelRatio;_.E("kevlar_tuner_should_clamp_device_pixel_ratio")?A=Math.min(A,_.YB("kevlar_tuner_clamp_device_pixel_ratio")):_.E("kevlar_tuner_should_use_thumbnail_factor")&&(A=_.YB("kevlar_tuner_thumbnail_factor"));dGU=A}else dGU||(dGU=window.devicePixelRatio);A=dGU;_.E("kevlar_tuner_should_always_use_device_pixel_ratio")?C*=A:A>1&&(C*=A);if(_.E("kevlar_tuner_min_thumbnail_quality"))return H[0].url||
null;A=H.length;if(_.E("kevlar_tuner_max_thumbnail_quality"))return H[A-1].url||null;if(S)for(var J=0;J<A;J++)if(H[J].url.indexOf(S)>=0)return H[J].url||null;for(S=0;S<A;S++)if(H[S][w]>=C)return H[S].url||null;for(C=A-1;C>0;C--)if(H[C][w])return H[C].url||null;return H[0].url||null};
pOD=function(){Wb.size?setTimeout(function(){yi(PSE)},0):$Gw=0};
PSE=function(){var H=(0,_.Zt)(),C=null,S=!1;Wb.forEach(function(A){A.loaded=!0;A.loadTime=H;A.pendingPaint=!1;var J=kEV.get(A);J&&J.resolve(H);C=A;S||!A.ftlEligible&&A.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(S=!0)});
var w;((w=C)==null?0:w.markDirty)&&C.markDirty();Wb.clear();$Gw=0;S&&hP7(H)};
nZW=function(H){Wb.add(H);H.pendingPaint=!0;$Gw||($Gw=_.Ns(_.rT,pOD))};
rs$=function(H){H.loaded=!1;H.loadTime=Infinity;var C=kEV.get(H);C&&(C.reject(Error("rh")),kEV.delete(H));H.pendingPaint&&(Wb.delete(H),H.pendingPaint=!1)};
_.B8D=function(H){var C=H.indexOf(":");return C===-1?{originalName:H}:{originalName:H.substring(0,C),datasyncId:H.substring(C+1)}};
_.Ks6=function(){return _.z(function(H){if(DGE!==void 0)return H.return(DGE);DGE=new Promise(function(C){var S;return _.z(function(w){switch(w.nextAddress){case 1:return _.en(w,2),w.yield(_.bm.open("test-only"),4);case 4:return w.yield(_.bm.delete("test-only"),5);case 5:_.xB(w,3);break;case 2:if(S=_.Vx(w),S instanceof Error&&S.name==="SecurityError")return C(!1),w.return();case 3:C("caches"in window),_.oT(w)}})});
return H.return(DGE)})};
gZu=function(){return _.z(function(H){if(H.nextAddress==1)return H.yield(_.Ks6(),2);if(!H.yieldResult)return H.return(void 0);tYV||(tYV=new LsW);return H.return(tYV)})};
UG0=function(H){var C,S,w,A;return _.z(function(J){switch(J.nextAddress){case 1:return J.yield(gZu(),2);case 2:C=J.yieldResult;if(!C)throw Error("th");return J.yield(C.open("yt-player-local-img"),3);case 3:return S=J.yieldResult,J.yield(S.match(H),4);case 4:w=J.yieldResult;if(!w)throw Error("uh");return J.yield(w.blob(),5);case 5:return A=J.yieldResult,J.return(A)}})};
RPV=function(H,C){for(var S in H)if(H.hasOwnProperty(S)&&C[S])return S;return null};
IHV=function(H){return"stamp"+H.replace("-","_")+"_"};
aHZ=function(H){var C=H.match(/\[\[([\w\.]+)\]\]/);if(C&&C.length>1)return C[1];_.nC(Error("wh`"+H));return null};
xG7=function(H){return H===void 0?_.Bh("REUSE_COMPONENTS",!1):H||!1};
C_w=function(H,C,S){S&&(C.is?(HAU.has(C)&&(H=HAU.get(C),S=H.listener,delete C[H.property],S.type==="element"&&C.removeEventListener(S.eventName,S.handler),HAU.delete(C)),iA$(C)):C.__proto__==HTMLElement.prototype&&(C=new _.X0("Rendererstamper removed a non custom element","Stamper: "+H+" element: "+(C&&C.nodeName)),_.Bn(C)))};
SGw=function(H,C,S,w){var A=C.node?C.node:C;_.mY(S).parentNode===A&&(C.removeChild(S),C_w(H,S,w));if(H=EU.get(S))EU.delete(S),_.rT.cancelJob(H);S.hidden=!1};
sg$=function(H,C,S,w){if(C&&C.children&&(S=C.children[S]))if(_.Bh("DEFERRED_DETACH"))for(;S&&!EU.has(S);){var A=H,J=C,c=S,Y=w;c.hidden=!0;A=_.X2(_.rT,SGw.bind(null,A,J,c,Y),0);EU.set(c,A);S=S.nextElementSibling}else for(;(c=C.lastElementChild)&&(C.removeChild(c),C_w(H,c,w),c!=S););};
_.eJ=function(){for(var H=_.tc.apply(0,arguments),C=!0,S=_.Z(H),w=S.next();!w.done;w=S.next())if(typeof w.value!=="string"){C=!1;break}return C?H.join(" ").trim()||void 0:function(){for(var A="",J=_.Z(H),c=J.next();!c.done;c=J.next())if(c=c.value,typeof c==="function"&&(c=c()),c)if(typeof c==="string")A+=" "+c;else for(var Y in c)if(c.hasOwnProperty(Y)){var M=c[Y];typeof M==="function"&&(M=M());M&&(A+=" "+Y)}A=A.trim()||void 0;return _.ps(A)}};
wkU=function(H){var C;return(C=jgW[H])!=null?C:"EVENT_SPAN_TYPE_UNKNOWN"};
AzE=function(H){var C=H.nodeName;if(H.id)return C+="#"+H.id;if(H.classList)for(var S=_.Z(H.classList),w=S.next();!w.done;w=S.next())C+="."+w.value;H.parentElement&&(C=AzE(H.parentElement)+" > "+C);return C};
Jz0=function(H){return function(C){var S=wkU(C.type);return S==="EVENT_SPAN_TYPE_UNKNOWN"?H(C):ZoW("event",{type:S,nodepath:C.target instanceof Element?AzE(C.target):void 0},function(){return H(C)})}};
_.um=function(H){H&&AoU("event")&&(H=Jz0(H));return chV(function(C){var S,w=(S=H)==null?void 0:S(C);return typeof w==="boolean"?w:!0})};
GG=function(H){return function(){return H()?H():void 0}};
YGE=function(H){var C=_.sW("animated-rolling-character"),S=fRE(),w=wV(H.character)||wV(H.previousCharacter),A=_.Z(vQ0()),J=A.next().value,c=A.next().value;_.$T(function(){if(window.ResizeObserver&&_.E("web_fix_rolling_numbers_zoom_safari")){var Y=new ResizeObserver(function(){var M,m,W=Math.round(((m=(M=C.value.querySelector("div"))==null?void 0:M.getBoundingClientRect().height)!=null?m:0)*100)/100;W&&c(W)});
Y.observe(C.value);return function(){Y.disconnect()}}});
m3$(function(){var Y=_.E("web_fix_rolling_numbers_zoom_safari")?J:H.marginMultiplier;if(Y){var M;(M=S.value)==null||M.cancel();w?(M=H.previousCharacter?Number(H.previousCharacter)+10:H.rollUp?0:30,H.shouldAnimate||(M-=FXE(H,M))):(M=H.rollUp?0:2,H.shouldAnimate||(M-=H.rollUp?-1:1));C.value.style.marginTop="-"+M*Y+"px";H.shouldAnimate?S.value=ZAW(C.value,H,M,w,Y):C.value.style.display=H.character?"":"none"}});
return _.q("animated-rolling-character",{el:C,class:"animatedRollingCharacterHost"},ftZ(w,function(){for(var Y=[],M=1;M<30;M++)Y.push(_.q("div",null,M%10));return _.q(_.F9,null,_.q("div",null,"\u00a0"),Y,_.q("div",null,"\u00a0"))},function(){return czi(H.character)}))};
czi=function(H){return _.q(_.F9,null,_.q("div",null,"\u00a0"),_.q(_.F9,null,ftZ(!H||_.YE(H),function(){return _.q("div",null,"\u00a0")},function(){return _.q("div",null,H)})),_.q("div",null,"\u00a0"))};
ZAW=function(H,C,S,w,A){S=new Animation(new KeyframeEffect(H,[{transform:"translateY(0px)"},{transform:"translateY("+(w?FXE(C,S):C.rollUp?-1:1)*A+"px)"}],zdZ),document.timeline);C.character?(H.style.display="",S.onfinish=null):S.onfinish=function(){H.style.display="none"};
S.play();return S};
FXE=function(H,C){var S=Number(H.character)+10;if(H.previousCharacter)if(H.character){var w=Number(H.character),A=Number(H.previousCharacter);H=H.rollUp?A<w?S:S+10:A<w?S-10:S}else H=H.rollUp?30:0;else H=H.character==="0"?S:H.rollUp?S-10:S+10;return C-H};
M0w=function(H){return function(C){var S={},w;for(w in C){var A=void 0,J=void 0;((A=void 0)==null?0:(J=A.callbacks)==null?0:J[w])||(S[w]=C[w])}return _.q(dNW,null,function(){for(var c in S)C[c]=_.ps(S[c]);C.disableReactiveLogging=!0;return _.q(H,Object.assign({},C))})}};
mFu=function(H,C,S,w,A,J,c){S=new Animation(new KeyframeEffect(H,[{transform:"translateY(0px)"},{transform:"translateY("+(J?qGZ(C,S,w,A):w?-1:1)*c+"px)"}],Tf0),document.timeline);C?(H.style.display="",S.onfinish=null):S.onfinish=function(){H.style.display="none"};
S.play();return S};
qGZ=function(H,C,S,w){var A=Number(H)+10;C?H?(H=Number(H),C=Number(C),S=S?C<H?A:A+10:C<H?A-10:A):S=S?30:0:S=H==="0"?A:S?A-10:A+10;return w-S};
yz6=function(H){var C=fRE(),S=fRE();bLE(function(){C.value=H.numberText;S.value=H.numberValue},[H.numberText]);
var w=H.fontSizeMultiplier?H.heightPx*H.fontSizeMultiplier:H.heightPx,A=Gop(function(){if(H.numberText){var c=H.numberText;var Y=H.forceRollUp||!S.value||!H.numberValue||S.value<H.numberValue;var M=!!H.shouldAnimate,m=C.value,W=[],y=0,N=0,b=(m?m.replace(/\D/g,"").length:0)-(c?c.replace(/\D/g,"").length:0);m=m?m.split(/(\d)/).filter(Boolean):[];for(c=c.split(/(\d)/).filter(Boolean);b<0;){var u=c[N];W.push({character:u,rollUp:Y,marginMultiplier:w,shouldAnimate:M});N++;wV(u)&&b++}for(;y<b;)u=m[y],W.push({previousCharacter:u,
rollUp:Y,marginMultiplier:w,shouldAnimate:M}),y++,wV(u)||b++;for(;N<c.length;)b=c[N],u=m[y],wV(b)===wV(u)?(N++,y++):wV(b)?(y++,b=void 0):wV(u)&&(N++,u=void 0),W.push({character:b,previousCharacter:u,rollUp:Y,marginMultiplier:w,shouldAnimate:M});Y=W}else Y=[];return Y},[H.numberText]),J=H.numberText?["height: "+w+"px;",
"line-height: "+H.heightPx+"px;"].join(" "):"";return _.q("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:J,dir:"ltr","aria-hidden":"true"},A.map(function(c){return _.q(WXW,Object.assign({},c))}))};
NfV=function(H){switch(H){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}};
bA0=function(H,C){if(!H&&!C)return"medium";H=Math.max(H||0,C||0);return H>=256?"large":H>=96?"medium":"small"};
Ehp=function(H){switch(H){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
edE=function(H){return new KeyframeEffect(H,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
ukW=function(H){return new KeyframeEffect(H,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.fu=function(H){var C=cb(function(S){S=S?TR(S[0]):void 0;return _.mB(H(S),void 0,"AwTxXe")},{isEqual:function(S,w){return TR(S[0])===TR(w[0])}});
return[function(){return C()[0]()},
function(S){return void C()[1](S)}]};
_.vb=function(H){return function(){var C="",S;for(S in H){for(var w=H[S];typeof w==="function";)w=w();w!==void 0&&w!==null&&(C+="; "+S+": "+w)}return C.length>0?_.ps(C.slice(2)):_.ps()}};
G30=function(H){switch(H){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"}};
fEE=function(H,C){if(C)return"yt-spec-touch-feedback-shape--thumbnail-size-small";if(H)switch(H){case "large":return"yt-spec-touch-feedback-shape--thumbnail-size-large";case "medium":return"yt-spec-touch-feedback-shape--thumbnail-size-medium";default:return"yt-spec-touch-feedback-shape--thumbnail-size-small"}};
OA7=function(H,C,S,w,A,J,c){var Y=vh6(H),M=Y.disabled,m=Y.iconPosition,W=Y.style,y=Y.focused,N=function(){return!!O()&&m()==="icon-only"},b=function(){return!!O()&&m()==="icon-only-40"},u=function(){return!!O()&&m()==="icon-with-label"},O=function(){return!!C||!(w==null||!w())};
return{type:function(){return W()==="call-to-action-inverse"?"text":W()==="overlay-dark"&&H().type!=="filled"&&H().type!=="tonal"?"tonal":H().type},
shouldFocus:function(){return(y()||(J==null?void 0:J()))&&!M()},
hasIconLeading:function(){return!!O()&&m()==="leading"},
hasIconTrailing:function(){return!!O()&&m()==="trailing"},
hasIconLeadingTrailing:function(){return!!O()&&!!(S||A!=null&&A())&&m()==="leading-trailing"},
hasIconOnly:N,hasIconOnly40:b,hasIconWithLabel:u,iconButton:function(){return N()||b()||u()},
visiblyDisabled:function(){return(M()?"disabled":H().state)==="disabled"||M()},
overrideSmallSizeIcon:function(){return!H().ignoreIconSizeOverride&&lE6(H(),O())},
iconToRender:C?C:function(){return _.q(_.lm,{icon:w,size:function(){return V0Z(H(),!0,H().ignoreIconSizeOverride)},
active:function(){return H().toggled},
iconFilter:function(){return oh6(H())},
animateIcon:c})},
secondaryIconToRender:S?S:function(){return _.q(_.lm,{icon:A,size:function(){return V0Z(H(),!0,H().ignoreIconSizeOverride)},
active:function(){return H().toggled},
iconFilter:function(){return oh6(H())}})}}};
vh6=function(H){return{size:function(){return H().size},
style:function(){return H().style},
focused:function(){return H().focused},
disabled:function(){return H().disabled},
onTap:function(C){var S,w;return(w=(S=H()).onTap)==null?void 0:w.call(S,C)},
alignByText:function(){return H().alignByText},
aTagConfig:function(){return H().aTagConfig},
customColors:function(){return H().customColors},
segmentedPosition:function(){return H().segmentedPosition},
toggled:function(){return H().toggled},
toggleable:function(){return H().toggleable},
accessibilityLabel:function(){return H().accessibilityLabel},
onToggle:function(C){var S,w;return(w=(S=H()).onToggle)==null?void 0:w.call(S,C)},
iconPosition:function(){return H().iconPosition},
oneOffCustomTextWrap:function(){return H().oneOffCustomTextWrap},
disableTextEllipsis:function(){return H().disableTextEllipsis},
disableBackdropFilter:function(){return H().disableBackdropFilter},
tooltipText:function(){return H().tooltipText},
ariaHidden:function(){return H().ariaHidden},
tabIndex:function(){return H().tabIndex},
buttonText:function(){return H().buttonText},
formattedButtonText:function(){return H().formattedButtonText},
animatedTextProps:function(){return H().animatedTextProps},
onClickRateLimitMs:function(){return H().onClickRateLimitMs}}};
lE6=function(H,C){C=(H.iconPosition==="icon-only"||H.iconPosition==="icon-only-40"||H.iconPosition==="icon-with-label")&&C;return!H.segmentedPosition&&C&&H.size==="S"};
V0Z=function(H,C,S){switch(H.size){case "XS":return 16;case "S":return!S&&lE6(H,C)?24:16;default:return 24}};
Xk6=function(H){switch(H){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"}};
QgD=function(H){switch(H){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"}};
dF7=function(H){switch(H){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"}};
oh6=function(H){if(H.style==="overlay-dark"&&H.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
Vi=function(H){return H&&H.endsWith("px")?Number(H.slice(0,-2)):0};
pkW=function(H){var C=C===void 0?{}:C;H=_.Z(_.fu(H));var S=H.next().value;return[function(w){var A=_.EF(function(){var Y,M,m,W;return{text:(Y=S())!=null?Y:"",location:(M=C.location)!=null?M:"bottom",offset:(m=C.offset)!=null?m:16,delay:(W=C.delay)!=null?W:1}},void 0,"MgTrkc");
_.d6(function(){var Y=A();TR(function(){_.rT.addJob(function(){oW.notify(w,Y)},4)})},"WlsgZc");
var J=function(){P_V(w,A())},c=function(){$FE()};
w.addEventListener("mouseenter",J);w.addEventListener("focus",J);w.addEventListener("mouseleave",c);w.addEventListener("blur",c);w.addEventListener("tap",c);_.PN(function(){w.removeEventListener("mouseenter",J);w.removeEventListener("mouseleave",c);w.removeEventListener("focus",J);w.removeEventListener("blur",c);w.removeEventListener("tap",c);$FE()})},
H.next().value]};
hdw=function(H,C){if(!sF){var S;Td7(function(){return S=XQi(H,C)});
return S}H.parent=k3u();return XQi(H,C)};
k3u=function(){var H=_.w6(sF||void 0,VAE);return _.ouE(H)?void 0:H};
OU=function(H,C){_.gC(H,Object.assign({},C,{forceClickLogging:!0}))};
rz$=function(H,C){var S=_.L7(H==null?void 0:H.onTap),w={};S&&(w.getClickedVisualElement=function(){var A;return nhZ(H,S,C==null?void 0:(A=C.value)==null?void 0:A.visualElement)});
w=_.U4({elementsCommand:H.onTap,forceNewState:!0,additionalCommandArgs:w});return Rm(w)?w:void 0};
BfE=function(H,C,S,w){OU(H,Object.assign({},{form:{element:C,event:S}},w))};
DFi=function(H,C,S,w,A){var J=void 0;return function(c){var Y=_.L7(S?H==null?void 0:H.onDisabledTap:H==null?void 0:H.onTap);if(Y){var M;J=(M=J)!=null?M:C==null?void 0:C.value;if(Y)if(_.E("web_button_vm_click_client_ve_killswitch"))BfE(Y,J,c);else{var m;M=nhZ(H,Y,(m=J)==null?void 0:m.visualElement);if(A){BfE(Y,A,c,{clickedVisualElement:M,form:{element:A}});return}BfE(Y,J,c,{clickedVisualElement:M})}}w&&w(c)}};
nhZ=function(H,C,S){C=C==null?void 0:C.clickTrackingParams;var w,A;H=H==null?void 0:(w=H.loggingDirectives)==null?void 0:(A=w.clientVeSpec)==null?void 0:A.uiType;if(S&&H&&!C)return S};
KXZ=function(H){switch(H){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"}};
t0E=function(H){switch(H){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"}};
LXu=function(H){switch(H){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"}};
ghZ=function(H){switch(H){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"}};
UFW=function(H,C){return _.Ea(H.entities,"engagementToolbarStateEntityPayload",C)};
IEp=function(H){(H=_.Qh(H))&&_.Rd6(H)};
_.Rd6=function(H){var C=_.Dg();C&&_.HF(C,H)};
aE$=function(H,C,S){_.q3(H,"yt-open-popup-action",[C,S||H])};
xFi=function(H,C){var S=_.kT(H,"endpoint"),w=_.kT(H,"action");return(S=w?w:S)&&C&&(S=C.navigationEndpointPopupMap[S])&&(H=_.gh(S,H),(S=_.kT(H,"renderer"))&&C.supportedPopups.hasOwnProperty(S))?{openPopupAction:{popupType:C.popupTypeMap[S],popup:H}}:null};
HbE=function(H,C,S,w){if(w){var A;S=S==null?void 0:(A=S.data)==null?void 0:A.contents;(A=S instanceof Array&&S.length?S[0]:S)&&(S=_.kT(A,"renderer"))&&w.supportedPopups.hasOwnProperty(S)&&(C.stopPropagation(),aE$(H,{openPopupAction:{popupType:w.popupTypeMap[S],popup:A}}))}};
Szp=function(H,C,S,w){w=w===void 0?!1:w;var A=ibZ(C);if(A){A.href&&iA(A.href);var J=C.button;J=J!==void 0?J===0&&!XB(C):!XB(C);A.data&&J&&C86(H,A,C,S,w)}};
C86=function(H,C,S,w,A){A=A===void 0?!1:A;var J=_.YB("pbj_navigate_limit",-1)===0;s1u(C);_.JA().resolve(_.AA(Us));var c=C.data;if(Object.keys(c).length!==0)if(!_.E("unplugged_web_disable_actions_for_cec_endpoint")&&_.e(c,_.b9))_.E("endpoint_behavior_command_executor_fix_killswitch")||(S.preventDefault(),S.stopPropagation()),_.yN(H,[c],H);else if(w=xFi(c,w))c.loggingUrls&&c.loggingUrls.forEach(function(M){M.baseUrl&&_.aM(M.baseUrl)}),S.preventDefault(),S.stopPropagation(),aE$(H,w,C);
else{var Y=j1V(0,C.data,S);if(H=C.getForm)H=H(),Y.tempData=Y.tempData||{},Y.tempData=Object.assign({},Y.tempData,H);H=_.Ar(S);if(w=H.find(function(M){return!!M.visualElement}))Y.createScreenConfig=Y.createScreenConfig||{},Y.createScreenConfig.clickedVisualElement=w.visualElement;
if(!J)if(S.preventDefault(),S.stopPropagation(),_.e(c,_.wsV)&&!A&&_.eU.instance)_.eU.instance.resolveCommand(c,Y);else if(_.E("kevlar_command_handler_formatted_string")&&!A&&_.eU.instance&&AHE(c))A=H.find(function(M){return!!M.is})||S.target,S={form:Object.assign({},Y,{event:S,
element:A,originatingNode:C})},_.eU.instance.resolveCommand(c,S);else{c=_.Ar(S);S=[];for(A=0;A<c.length;A++)(J=c[A].is)&&S.push(J);giU({parents:S.join(","),text:C.innerText},function(){_.M3(C,"yt-navigate",Y)})}}};
JHu=function(H){if(H=ibZ(H))s1u(H),xvZ(H.href)};
ibZ=function(H){H=_.Ar(H);for(var C,S=0;S<H.length;S++)if(C=H[S],C.tagName==="A"&&C.classList.contains("yt-simple-endpoint")){if(!C.data)break;return C}return null};
XB=function(H){return H.shiftKey||H.altKey||H.metaKey||H.ctrlKey};
FtW=function(H,C){var S={itct:C.clickTrackingParams};_.E("kevlar_client_side_screens")&&(!_.e(C,_.Ox)||_.E("kevlar_exclude_endpoint_killswitch"))&&(S.endpoint=JSON.stringify(C));_.E("enable_unknown_lact_fix_on_html5")&&_.JA().resolve(_.AA(_.Qi))&&(S.lact=_.cn());RoE(S);_.JM(H,S)};
s1u=function(H){H.href&&Object.keys(H.data).length!==0&&FtW(H.href,H.data)};
AHE=function(H){for(var C=_.Z(ZbW),S=C.next();!S.done;S=C.next())if(H[S.value])return!1;return!0};
_.cH7=function(H,C){return _.Ea(H.entities,"markersEngagementPanelSyncEntity",C)};
YzD=function(H,C){return _.Ea(H.entities,"playerStateEntity",C)};
zfV=function(H,C){return _.Ea(H.entities,"fantasyWinProbabilityEntity",C)};
MND=function(H,C){return _.Ea(H.entities,"fantasyTeamEntity",C)};
qzW=function(H,C){return _.Ea(H.entities,"fantasyPlayerEntity",C)};
Tk$=function(H,C){return _.Ea(H.entities,"booleanEntity",C)};
mo0=function(H,C){return _.Ea(H.entities,"qrCodeEntity",C)};
Wtu=function(H){return _.Ea(H.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
yHu=function(){if(dW)return dW;if(window.lottie)return dW=Promise.resolve(window.lottie);var H=_.B9(_.rh("LOTTIE_URL"));return H?dW=new Promise(function(C,S){var w=document.createElement("script");w.addEventListener("load",function(){C(lottie)});
w.addEventListener("error",function(A){var J="Lottie library failed to load.";A?A.message&&(J+=" Original description: "+A.message,_.DZ(A,J)):A=Error(J);_.Bn(A);S(A)});
w.setAttribute("async","");_.JY(w,H);document.head.appendChild(w)}):Promise.reject(Error("xh"))};
NkE=function(){return dW?dW:yHu()};
bbZ=function(H){if(H)switch(H){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.E("kevlar_use_wil_icons"))return H=(H=Wtu(_.AG().getState()))&&H.animationLightUrl&&H.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:H.animationLightUrl,pathDarkTheme:H.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,H?H:Pb.get("LIKE");break;case "LIKE_DELHI_PLAYER":return Pb.get("LIKE_DELHI_PLAYER")}};
Ew6=function(H){var C=bbZ(H);if(C)return C;switch(H){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return Pb.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return Pb.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return Pb.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return Pb.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return Pb.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return Pb.get("NOTIFICATION_BELL")}};
efV=function(H,C){if(!H.closest)return!1;C=!!bbZ(C);return _.rh("ID_TOKEN")&&C?!!H.closest("segmented-like-dislike-button-view-model")||!!H.closest("yt-player-quick-action-buttons"):!1};
Gip=function(H,C){if(!H||uu6)C=!1;else{var S;if(!(S=efV(H,C)))if(H.closest)if(S=!_.rh("ID_TOKEN"),H=H.closest("ytd-subscription-notification-toggle-button-renderer-next"),S||!H)S=!1;else{var w;S=((w=H.data)==null?void 0:w.targetId)==="notification-bell"&&C!=="EXPAND_MORE"}else S=!1;C=S}return C};
fFD=function(H){var C,S;return _.z(function(w){switch(w.nextAddress){case 1:return _.en(w,2),w.yield(fetch(H),4);case 4:return C=w.yieldResult,w.yield(C.json(),5);case 5:return w.return(w.yieldResult);case 2:S=_.Vx(w),_.Bn(S),_.oT(w)}})};
vwp=function(H,C){var S,w,A;return _.z(function(J){if(J.nextAddress==1)return(S=C?H.pathDarkTheme:H.path)?J.yield(Promise.all([fFD(S),yHu()]),2):J.return();w=J.yieldResult;A=w[0];$b.set(S,A);_.oT(J)})};
VNZ=function(H,C,S,w){function A(c,Y){if(C.value===Y&&!C.cancelled&&H!=null&&H.value){for(;H.value.firstChild;)H.value.removeChild(H.value.firstChild);H.value.classList.add("ytSpecIconShapeHost");c(H.value,w)}}
var J=_.lF7(_.JA().resolve(_.E4),S);typeof J==="function"?(C.value=null,A(J,null)):(C.value=J,J.then(function(c){A(c,J)}))};
Obw=function(H,C){var S=document.createElement("div"),w=_.dh(S,function(){return _.q(_.T,{cond:H,then:function(A){return _.q(ow7,{data:A,options:C})}})},"D");
return[S,w]};
_.pu=function(H,C){if(C){var S={};XsD.forEach(function(w){w=Q1$(C,w,"--yt-lightsource-");Object.assign(S,w)});
do6.forEach(function(w){w=Q1$(C,w,"--yt-basic-");Object.assign(S,w)});
_.Ed(H,S)}};
Q1$=function(H,C,S){var w={};w[S+_.vM(C)]=H&&H[C]?_.aw(H[C]):"";return w};
_.hg=function(H,C,S){kb[H]||(kb[H]={});kb[H][C]=S};
_.nu=function(H){kb[H]||(kb[H]={});return kb[H]};
P8$=function(H){if(!H)return{};var C=H.foregroundTitleColor,S=H.backgroundColor;H=H.borderColor;var w="text";H?w="outline":S&&(w="filled");return{type:w,customColors:{color:C?_.aw(C):void 0,backgroundColor:S?_.aw(S):void 0,borderColor:H?_.aw(H):void 0}}};
nwu=function(H){var C=H.renderer;var S=H.element;var w=H.commandController;var A=H.onTapCallback;var J=H.skipCommandHandling;var c=H.overrides;var Y=H.forceIcon;var M=H.forceModernIconButton;var m=H.forceDisabled;var W=H.isSubscribe===void 0?!1:H.isSubscribe;var y=H.isPressed===void 0?!1:H.isPressed;var N=H.useButtonSize===void 0?!1:H.useButtonSize;H=$oU(C);W&&(H.style="mono",H.type="filled");Y=!C.icon||!Y&&C.text?C.icon?C.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:M?"icon-only":"icon-only-40";Y==="icon-only-40"&&(H.type="text");var b;M=Object;W=M.assign;N=psu(C,N);y=!!C.isSelected||!_.E("web_propagate_is_pressed_killswitch")&&!!y;var u=C.isSelected!==void 0;m=m===void 0?C.isDisabled:m;var O=C.text?_.BI(C.text):void 0;var d,p,k,R=((d=C.accessibilityData)==null?void 0:(p=d.accessibilityData)==null?void 0:p.label)||((k=C.accessibility)==null?void 0:k.label);d=R?R:_.jt(C.text);S=ki$(C,S,w,A,J);w=hf0(C);w!=null&&w.length?(w=_.U4({innertubeCommand:Foi(w),
forceNewState:!0}),w=Rm(w)?w:void 0):w=void 0;return W.call(M,{},H,N,{iconPosition:Y},c,{focused:!1,toggled:y,toggleable:u,disabled:m,formattedButtonText:O,accessibilityLabel:d,onTap:S,aTagConfig:w},P8$((b=C.colorData)==null?void 0:b.basicColorPaletteData),{oneOffCustomTextWrap:C.oneOffCustomTextWrap})};
ki$=function(H,C,S,w,A){return function(J){var c=hf0(H);w(c,J);if(!A){c=_.Z(c);for(var Y=c.next();!Y.done;Y=c.next())OU(Y.value,{form:{element:C,event:J},commandController:S})}}};
hf0=function(H){var C=[];H.command&&C.push(H.command);H.serviceEndpoint&&C.push(H.serviceEndpoint);H.navigationEndpoint&&C.push(H.navigationEndpoint);return C};
psu=function(H,C){if(C)switch(H.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(H.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
$oU=function(H){switch(H.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_CALL_TO_ACTION_TONAL":return{style:"call-to-action",type:"tonal",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",
type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",
type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",
type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
rHV=function(H,C){return typeof H!=="object"||H===null?!1:Object.keys(C).every(function(S){return S in H})};
_.rW=function(H){return Object.fromEntries(Object.keys(H).map(function(C){return[C,C]}))};
Bk$=function(H,C,S){return nU$(S,function(w,A){return function(J){var c=_.tc.apply(1,arguments);return rHV(J,H)?A.apply(null,[J[C]].concat(_.k$(c))):A.apply(null,[J].concat(_.k$(c)))}})};
_.Bb=function(H){return function(C,S){return Bk$(H,C,S)}};
_.Dl=function(H){return H!=null&&H.watch?H.watch.isTheaterMode:!1};
_.Ku=function(H){return H!=null&&H.watch?H.watch.isWatchFullscreen:!1};
_.tg=function(H){H=_.DoE(H);return _.E("web_watch_enable_single_column_grid_view")?H:!1};
_.DoE=function(H){return H.watch.isWatchNarrowWidth};
_.Kti=function(H){return H.watch.openEngagementPanels};
_.Lu=function(H){return _.EF(function(){ha$()();return BGp(H)},{debugName:"d8B62c"},"DEXkhd")};
gW=function(H,C){return _.Ea(H.entities,"likeStatusEntity",C)};
tN7=function(H,C){return _.Ea(H.entities,"likeCountEntity",C)};
_.Lt$=function(H,C){return _.Ea(H.entities,"stringEntity",C)};
gwZ=function(H,C){return _.Ea(H.entities,"dataFreshnessEntity",C)};
UoD=function(H,C){if(!H)return!1;var S,w=(S=_.e(H,_.eR))==null?void 0:S.signal;if(w&&C.signalEndpointMap)return!!C.signalEndpointMap[w];var A;if((S=(A=_.e(H,_.UU))==null?void 0:A.request)&&C.continuationEndpointMap)return!!C.continuationEndpointMap[S];for(var J in H)if(C.commandEndpointMap[J])return!0;return!1};
Rf0=function(H,C){if(C.streamingEndpointMap)for(var S in H)if(C.streamingEndpointMap[S]&&(H=C.streamingEndpointMap[S]))return H()};
IF$=function(H,C){var S,w=(S=_.e(H,_.eR))==null?void 0:S.signal;if(w&&C.signalEndpointMap&&(S=C.signalEndpointMap[w]))return S();var A;if((S=(A=_.e(H,_.UU))==null?void 0:A.request)&&C.continuationEndpointMap&&(A=C.continuationEndpointMap[S]))return A();for(var J in H)if(C.commandEndpointMap[J]&&(H=C.commandEndpointMap[J]))return H()};
aF6=function(H){var C={"Content-Type":"application/json"};_.rh("EOM_VISITOR_DATA")?C["X-Goog-EOM-Visitor-Id"]=_.rh("EOM_VISITOR_DATA"):_.rh("VISITOR_DATA")&&(C["X-Goog-Visitor-Id"]=_.rh("VISITOR_DATA"));C["X-Youtube-Bootstrap-Logged-In"]=_.rh("LOGGED_IN",!1);_.rh("DEBUG_SETTINGS_METADATA")&&(C["X-Debug-Settings-Metadata"]=_.rh("DEBUG_SETTINGS_METADATA"));if(H!=="cors"){var S=_.rh("INNERTUBE_CONTEXT_CLIENT_NAME");S&&(C["X-Youtube-Client-Name"]=S);(S=_.rh("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(C["X-Youtube-Client-Version"]=
S);(S=_.rh("CHROME_CONNECTED_HEADER"))&&(C["X-Youtube-Chrome-Connected"]=S);(S=_.rh("DOMAIN_ADMIN_STATE"))&&(C["X-Youtube-Domain-Admin-State"]=S)}_.Bh("SEND_LAVA_HEADER_UNCONDITIONALLY",!1)?(H=_.rh("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(C["X-YouTube-Lava-Device-Context"]=H):H!=="cors"&&_.Bh("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(H=_.rh("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(C["X-YouTube-Lava-Device-Context"]=H);return C};
xoE=function(H,C){C.watchNextResponse||C.reelItemWatchResponse?C.watchNextResponse?H.content=C.watchNextResponse:H.content=C.reelItemWatchResponse:C.playerResponse?H.player=C.playerResponse:C.reelWatchSequenceResponse&&(H.reelSequence=C.reelWatchSequenceResponse)};
_.RW=function(H){if(!H)return null;for(var C=[],S=0;S<H.textSegments.length;S++){var w=H.textSegments[S];w.text?C.push(w):w.emojiId&&C.push({emoji_id:w.emojiId})}return{text_segments:C}};
szE=function(H,C,S,w,A,J,c){J=J===void 0?[]:J;var Y=new _.IW;Y.endpoint=S;if(!S)return _.rv(new _.X0("handle undefined endpoint",C.tagName)),Y;var M=SjZ(S);M.length&&(_.yN(H,M,C,w),Y.actions=M);S.loggingUrls&&S.loggingUrls.forEach(function(W){W.baseUrl&&xu(W.baseUrl,W.attributionSrcMode)});
M=!_.E("web_skip_impression_click_killswitch")&&w&&w.impression;if(S.clickTrackingParams&&!HYi(S)&&!iYZ(C)&&!M&&(M=_.lJ(),!_.aW(M,C))){var m=C.getScreenLayer&&C.getScreenLayer();m?M.clickCommand(S,null,m):M.clickCommand(S,null)}M=!1;for(m=0;m<J.length;m++)if((0,J[m])(C,S,w)){M=!0;break}!M&&C$$(S)&&(Y.ajaxPromise=Smp(H,C,S,w,A,c));return Y};
iYZ=function(H){var C;return(H=(C=H.data)==null?void 0:C.navigationEndpoint)&&!!H.clickTrackingParams};
HYi=function(H){var C=_.e(H,_.eR);if(C&&(C=C.signal)&&jzZ.indexOf(C)>=0)return!0;for(var S in H)if(w06.indexOf(S)>=0)return!0;return!1};
C$$=function(H){var C;if(((C=_.e(H,_.eR))==null?void 0:C.signal)==="CLIENT_SIGNAL")return!1;for(var S in H)if(ARp.indexOf(S)>=0)return!1;H=Object.keys(H);return H.length===1&&H[0]==="loggingUrls"?!1:!0};
qm7=function(H,C,S,w,A,J,c){var Y=_.xb.instance;if(Y&&_.Ht(Y,w))var M=_.ir(Y,w,A).then(function(W){return(W==null?0:W.data)?W:{data:W}});
else M=H.requestDataForServiceEndpoint(w,A),_.e(w,JRw)||_.e(w,FZw)||_.e(w,_.ZY0)||_.e(w,cR6)||_.Bn(new _.X0("No RequestBuilder for endpoint",w));var m=_.Cn();m.promise.thenCatch(function(){var W=_.kT(w,"action")||_.kT(w,"command")||_.kT(w,"endpoint");W&&(W=w[W],W.hasOwnProperty("onFailureAction")?_.yN(C,[W.onFailureAction],S):W.hasOwnProperty("onFailureCommand")&&_.yN(C,W.onFailureCommand,S));M.cancel("Resolver promise rejected")});
M.then(function(W){if(W){var y=W.error;if(y){if(J&&J.onServerError)J.onServerError(w,W);m.reject(new _.X0("Response error",w,y))}else if(W=W.data)if(y=W.error){if(J&&J.onServerError)J.onServerError(w,W);m.reject(new _.X0("Returned error",w,y))}else{Ym0(C,S,W,w);zgE(W);if(y=CKZ(W))for(var N=_.Z(y),b=N.next();!b.done;b=N.next()){b=b.value;var u=_.JA().resolve(_.AA(MP$))||S4;if(!_.xb.instance||!u.some(function(d){return!!_.e(w,d)})||_.E("kevlar_response_processor_allowlist_killswitch")){var O=u=void 0;
((O=_.e((u=b)==null?void 0:u.commandMetadata,_.u9))==null?0:O.sendPost)?_.WH(C,[b]):_.yN(C,[b],S)}}(N=_.e(W==null?void 0:W.frameworkUpdates,s5))&&c&&c(N);if(J&&J.onSuccess)J.onSuccess(w,W);m.resolve(new _.j4(W,y))}}else m.reject(new _.X0("Invalid service endpoint provided",w))},function(W){m.reject(W)});
return m.promise};
zgE=function(H){var C;(H=(C=_.e(H==null?void 0:H.onResponseReceivedCommand,_.TqZ))==null?void 0:C.continuationItems)&&(H==null?void 0:H.length)===1&&_.e(H[0],mMV)&&_.DR("so_r",void 0,"search_overview_answer")};
Smp=function(H,C,S,w,A,J){var c;return(c=C.getNetworkManager&&C.getNetworkManager()?C.getNetworkManager():_.JA().resolve(_.AA(_.tG)))?qm7(c,H,C,S,w,A,J):_.kj("No network manager.")};
Ym0=function(H,C,S,w){if(S=S.trackingParams||S.loggingDirectives&&S.loggingDirectives.trackingParams){var A;(_.e(w,WZp)||_.e(w,yRw)||_.e(w,Nq0))&&w.clickTrackingParams?A=_.Qh(w.clickTrackingParams):_.E("web_graft_to_parent_command")&&w.clickTrackingParams&&(A=_.Qh(w.clickTrackingParams));var J;w=(J=C.getScreenLayer)==null?void 0:J.call(C);C=_.lJ().graftServerVe(S,A,w);_.m7(H,"yt-store-grafted-ve-action",[C])}};
_.bYu=function(H){var C=new Image;return new _.Es(function(S,w){C.addEventListener("load",function(){S()});
C.addEventListener("error",function(){w()});
C.src=H})};
E0W=function(H){return!!H};
egw=function(H){return!!H};
uSU=function(H,C,S){var w=H.rowIndex;w!==void 0&&_.m7(H.hostElement,"yt-section-reactive-dismissal",[w,C,S])};
_.ww=function(H,C,S){H=_.Z(H);for(var w=H.next();!w.done;w=H.next()){w=w.value;if(w===C)break;for(var A=_.Z(S),J=A.next();!J.done;J=A.next())if(J=J.value,w.tagName===J||!_.E("web_event_button_role_check_killswitch")&&w.role==="button"&&J==="BUTTON")return!0}return!1};
_.AB=function(H,C,S){H=_.Z(H);for(var w=H.next();!w.done;w=H.next()){w=w.value;if(w===C)break;for(var A=_.Z(S),J=A.next();!J.done;J=A.next())if(w.id===J.value)return!0}return!1};
_.Zz=function(){var H=_.JA().resolve(_.AA(_.JB));return H?(H=H.getCurrentPage())?_.F1(H):null:null};
_.ct=function(){var H=_.Zz();if(!H){var C=_.JA().resolve(_.AA(_.JB)),S=C?typeof C:"no page manager";C=C?C.getCurrentPage():null;S=new _.X0("Player is missing when requested.",S,C?C.tagName:"no page");_.nC(S)}return H};
_.F1=function(H){return H&&H.getPlayer?H.getPlayer():null};
GW6=function(H,C){H={args:{raw_player_response:H}};C&&(H.args=Object.assign({},H.args,C));return H};
f_i=function(H){if(H.args){if(H.args.raw_player_response)return H.args.raw_player_response;if(H.args.player_response)return JSON.parse(H.args.player_response)}};
_.v0w=function(H,C){var S={url:"/watch?v="+H.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};H.playlistId&&(S.url+="&list="+H.playlistId);H.playerParams&&(S.url+="&pp="+H.playerParams);H={watchEndpoint:H,commandMetadata:{webCommandMetadata:S}};C&&(H.clickTrackingParams=C);return H};
VPZ=function(){return l_Z||!!_.gh("yt.player.Application")};
OY7=function(){return o0V||!!document.querySelector("link#player-css")};
Qzw=function(){function H(){l_Z=!0;X0U.resolve()}
var C,S;return _.z(function(w){X0U||(X0U=new _.N5,VPZ()?H():(C=document.createElement("script"),C.addEventListener("load",H),S=_.Pl(_.rh("PLAYER_JS_URL")),_.JY(C,S),document.head.appendChild(C)));return w.return(X0U.promise)})};
P$0=function(){function H(){o0V=!0;dMU.resolve()}
if(!dMU)if(dMU=new _.N5,OY7())H();else{var C=document.createElement("link");C.id="player-css";C.addEventListener("load",H);var S=_.Pl(_.rh("PLAYER_CSS_URL"));_.ce(C,S,"stylesheet");document.head.appendChild(C)}return dMU.promise};
$M6=function(){return VPZ()&&OY7()?Promise.resolve([]):Promise.all([Qzw(),P$0()])};
p06=function(H,C,S){var w={args:{}};H&&(w.args.raw_player_response=H);C&&(w.args.raw_watch_next_response=C);S&&(w.args=Object.assign({},w.args,S));return w};
rRV=function(H,C,S){var w=!1;w=w===void 0?!0:w;H=typeof H==="string"?_.Yi(document,H):H;var A=kWw+"_"+_.I0(H),J=hgE[A];if(J&&w)return n0i(C,S)?J.api.loadVideoByPlayerVars(C.args||null):J.loadNewVideoConfig(C),J.api;J=new zb(H,A,C,S,void 0);hgE[A]=J;J.addOnDisposeCallback(function(){delete hgE[J.getId()]});
return J.api};
n0i=function(H,C){return C&&C.serializedExperimentFlags?C.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):H&&H.args&&H.args.fflags?H.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
Bqu=function(){var H=new _.N5;H.resolved=!1;var C=H.resolve;H.resolve=function(S){H.resolved=!0;C(S)};
return H};
KZ$=function(H){var C={};DMu().install((C.document_disposed={callback:H},C))};
Mp=function(H,C){if(!H&&Math.random()<=_.YB("kevlar_unified_player_logging_threshold")){H=Error("zh`"+(C?C:"Unspecified error"));if(_.E("kevlar_unified_player_throw_errors"))throw H;_.Bn(H)}};
_.tPZ=function(){var H=_.gh("ytDebugData.callbacks");H||(H={},_.AO("ytDebugData.callbacks",H));return H};
g0W=function(H,C){var S=_.tPZ();if(_.E("web_dd_iu")||LZ6.includes(H))S[H]=C};
UM$=function(){return _.z(function(H){return H.return({isLeader:_.fb$(_.AG().getState()),c:_.rh("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.rh("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
RgZ=function(){var H;_.z(function(C){if(C.nextAddress==1)return g0W("APP_STATE",UM$),C.yield(_.JA().resolve(_.qp),2);H=C.yieldResult;g0W("PI",function(){return _.z(function(S){return S.return(H.getVideoStats())})});
_.oT(C)})};
I_$=function(H){var C=_.AM(_.x_(_.s$.location.href));H=_.AM(_.x_(H));return _.E("kevlar_clear_non_displayable_url_params")?C==Tb(H):Tb(C)==Tb(H)};
Tb=function(H){var C=_.a_7(H);H=H.slice(0);var S=["frags"];_.E("kevlar_hide_pp_url_param")&&S.push("pp");_.E("kevlar_hide_time_continue_url_param")&&S.push("time_continue");S=_.Z(S);for(var w=S.next();!w.done;w=S.next())w=w.value,H=_.Fw(_.AM(H),w);return _.AM(H)+(C?"#"+C:"")};
m_=function(H,C){C=Number(C)*1E3;var S=Math.round((0,_.Zt)()),w=S.toString();H={innertubeResponse:H,serverDateTimestampMs:w,lastModifiedTimestampMs:w,expireTimestampMs:(S+C).toString()};if(C=_.rh("INNERTUBE_CONTEXT_CLIENT_NAME"))H.clientName=C;return H};
HRu=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++xMZ};
iRZ=function(H){return!isNaN(H)&&H>0};
STu=function(){_.E("web_adaptive_repeat_ase")&&CVZ&&_.kI("applicationStarted",CVZ)};
_.sc7=function(){var H=_.BM(),C=_.Dg();C&&H&&_.C8(C,[H],!0)};
wTi=function(H){return H&&jcV.some(function(C){return H.includes(C)})};
YTZ=function(H){var C=_.e(H,_.R8);if(!C)return!1;var S=C.url,w=C.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!S)return _.nC(Error("Eh")),!1;if(C.target==="TARGET_NEW_WINDOW"){C={};_.E("resolve_url_parent_tracking_params")&&(!_.S$(S)||sE(window.location.href,S))&&(C={endpoint:H,itct:H.clickTrackingParams});RoE(C);H=null;try{if(w){a:{var A=S,J=C;w=w===void 0?!1:w;J&&_.JM(A,J);var c=_.D4(A),Y=_.kD(c);A!=Y&&_.Ug(Error("gg`"+A));A=Y;try{if(w){Y=A;Y=pIE(Y);iA(Y);H=_.CM(window,Y,"_blank",
"attributionsrc");break a}}catch(N){_.tE(N)}iA(A);H=_.CM(window,c,"_blank")}Aqw(_.JA().resolve(JqZ),H,S);return!0}}catch(N){_.nC(N)}_.JM(S,C);C={target:"_blank",noopener:!1};c=window;Y=p9(S)?S:_.D4(typeof S.href!="undefined"?S.href:String(S));w=self.crossOriginIsolated!==void 0;H="strict-origin-when-cross-origin";window.Request&&(H=(new Request("/")).referrerPolicy);A=C.noreferrer;if(w&&A&&H==="unsafe-url")throw Error("ue");H=A&&!w;A=C.target||S.target;J=[];var M=[],m=!1;for(y in C){var W=C[y];switch(y){case "width":case "height":case "top":case "left":J.push(y+
"="+W);break;case "target":break;case "noopener":case "noreferrer":W?M.push(y):(m=!0,M.push(y+"=false"));break;case "attributionsrc":J.push(y+(W?"="+W:""));break;default:J.push(y+"="+(W?1:0))}}var y=A!==void 0&&!["_blank","_self","_top","_parent",""].includes(A);y=vZ()&&y;Fc6&&w&&J.length===0&&M.length>0&&!y&&!m?(M.length===2&&(M=["noreferrer"]),_.CM(c,Y,A,M[0]),H=ZRi()):(y=J.join(","),_.XW()&&c.navigator&&c.navigator.standalone&&A&&A!="_self"?(y=_.GZ("A"),gP(y,Y),y.target=A,H&&(y.rel="noreferrer"),
((C=C.attributionsrc)||C==="")&&y.setAttribute("attributionsrc",C),C=document.createEvent("MouseEvent"),C.initMouseEvent("click",!0,!0,c,1),y.dispatchEvent(C),y=ZRi()):H?(y=_.CM(c,"",A,y),c=_.kD(Y),y&&(y.opener=null,c===""&&(c="javascript:''"),c='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Wt(c)+'">',c=R2(c),(C=y.document)&&C.write&&(C.write(xD(c)),C.close()))):((y=_.CM(c,Y,A,y))&&C.noopener&&(y.opener=null),y&&C.noreferrer&&(y.opener=null)),H=y);Aqw(_.JA().resolve(JqZ),
H,S);return!0}y=_.EE(S);y=wTi(y)||S==="https://studio.youtube.com/";if(_.S$(S)&&!sE(window.location.href,S)||y)iA(S),hM(),_.Cx(S,void 0,void 0,window.top,cqi);else return _.Bn(new _.X0("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",H)),!1;return!0};
_.qTE=function(H,C){C=C===void 0?0:C;if(!(_.e(H,zT7)||_.e(H,MXE)||_.e(H,_.R8)&&_.e(H,_.R8).url))return!1;var S,w=(S=_.e(H,_.R8))==null?void 0:S.url;S=w?{externalLinkData:{url:w}}:null;return _.lJ().clickCommand(H,S,C)};
T0Z=function(H,C){return _.Ea(H.entities,"subscriptionStateEntity",C)};
mmZ=function(H,C){return _.Ea(H.entities,"subscriptionNotificationStateEntity",C)};
Wcu=function(H,C){return _.Ea(H.entities,"upcomingEventReminderStateEntity",C)};
yqw=function(H,C){return _.Ea(H.entities,"engagementToolbarSurfaceEntityPayload",C)};
N0E=function(H,C){return _.Ea(H.entities,"triStateButtonStateEntityPayload",C)};
bR$=function(H,C){return _.Ea(H.entities,"commerceCartCheckoutButtonEntity",C)};
_.EsZ=function(H,C){return _.Ea(H.entities,"playlistLoopStateEntity",C)};
eTW=function(H,C){return _.Ea(H.entities,"commandEntity",C)};
GwZ=function(H,C,S,w,A){A=A===void 0?{}:A;return function(J){var c,Y;var M=((c=H.loggingDirectives)==null?0:(Y=c.clientVeSpec)==null?0:Y.uiType)?_.y4(H.loggingDirectives.clientVeSpec.uiType):void 0;A.clickedVisualElement||(A.clickedVisualElement=M);M=ufp(H,C);S(M,J);M=_.Z(M);for(c=M.next();!c.done;c=M.next()){c=c.value;Y=w;var m=J,W=A;W.form?W.form.event=m:W.form={element:Y,event:m};OU(c,W)}}};
ufp=function(H,C){var S=[];C?(H.toggledCommand&&S.push(H.toggledCommand),H.toggledServiceEndpoint&&S.push(H.toggledServiceEndpoint)):(H.defaultCommand&&S.push(H.defaultCommand),H.defaultServiceEndpoint&&S.push(H.defaultServiceEndpoint),H.defaultNavigationEndpoint&&S.push(H.defaultNavigationEndpoint));return S};
fPp=function(H,C){var S=H.toggledStyle||H.style,w;switch((w=C?S:H.style)==null?void 0:w.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"}}};
_.Np=function(){return _.z(function(H){return H.nextAddress==1?H.yield(_.JA().resolve(_.qp),2):H.return(_.JA().resolve(vs7)())})};
_.br=function(){return _.JA().resolve(vs7)()};
_.E5=function(){return pp(function(){return{lottieEl:void 0}})};
lP0=function(H,C){return H.startsWith(C.uniqueId)};
VXE=function(H){var C,S;_.z(function(w){if(w.nextAddress==1)return w.yield(_.Np(),2);C=w.yieldResult;if((S=C)==null||!S.addEventListener)return e4(),w.return();C.addEventListener("onCueRangeEnter",H);_.oT(w)})};
osV=function(H){var C,S;_.z(function(w){if(w.nextAddress==1)return w.yield(_.Np(),2);C=w.yieldResult;if((S=C)==null||!S.removeEventListener)return e4(),w.return();C.removeEventListener("onCueRangeEnter",H);_.oT(w)})};
ORZ=function(H){var C,S,w,A,J;_.z(function(c){if(c.nextAddress==1)return c.yield(_.Np(),2);C=c.yieldResult;if((S=C)==null||!S.addCueRange)return e4(),c.return();w=_.Z(H.timings);for(A=w.next();!A.done;A=w.next())J=A.value,C.addCueRange(H.uniqueId+"-"+J,J/1E3,(J+100)/1E3);_.oT(c)})};
XTE=function(H){var C,S,w,A,J;_.z(function(c){if(c.nextAddress==1)return c.yield(_.Np(),2);C=c.yieldResult;if((S=C)==null||!S.removeCueRange)return e4(),c.return();w=_.Z(H.timings);for(A=w.next();!A.done;A=w.next())J=A.value,C.removeCueRange(H.uniqueId+"-"+J);_.oT(c)})};
Qc6=function(){var H,C,S;return _.z(function(w){if(w.nextAddress==1)return w.yield(_.Np(),2);H=w.yieldResult;if((C=H)==null||!C.getPlayerState)return e4(),w.return();S=H.getPlayerState();return w.return(S===2)})};
e4=function(){_.Bn(new _.X0("Smartimation player does not exist or is corrupted"))};
dmW=function(){try{var H;return(H=window.CSS)!=null&&H.supports?window.CSS.supports("-webkit-mask","linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)")&&(window.CSS.supports("-webkit-mask-composite","xor")||window.CSS.supports("mask-composite","exclude")):!1}catch(C){return _.Bn(new _.X0("Smartimation CSS.supports threw an error")),!1}};
rqZ=function(H,C,S,w,A){var J=H.playlistId?PV$:$mw;C=C();S=S();A=!!H.videoId&&A()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.Oa(C))return pTW({data:H,actionType:J,disabled:A},S);if(H.videoId&&w())return kw$({data:H,actionType:J,disabled:A});switch(C){case "TRANSFER_STATE_UNKNOWN":return kw$({data:H,actionType:J,disabled:A});case "TRANSFER_STATE_FAILED":return H.videoId?hTE({data:H,actionType:J,disabled:A}):ns6({data:H,actionType:J,disabled:A});case "TRANSFER_STATE_COMPLETE":return ns6({data:H,
actionType:J,disabled:A});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return pTW({data:H,actionType:J,disabled:A},S);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return H.videoId?hTE({data:H,actionType:J,disabled:A}):kw$({data:H,actionType:J,disabled:A});default:return kw$({data:H,actionType:J,disabled:A})}};
B07=function(H,C){var S=H.onTapCommand,w=_.L7(S);if(H.videoId&&_.e(w,_.ur))return _.e(w,_.ur).action=C,S;H.playlistId&&_.e(w,_.Gb)&&(_.e(w,_.Gb).action=C);return S};
kw$=function(H){var C=H.data;var S=H.actionType;H=H.disabled;return{text:Dm0,iconType:"OFFLINE_DOWNLOAD",onTap:B07(C,S.ACTION_ADD),disabled:H}};
pTW=function(H,C){var S=H.data;var w=H.actionType;H=H.disabled;var A="OFFLINE_DOWNLOAD";C>=0&&C<=.1?A="OFFLINE_DOWNLOADING_ZERO":C>.1&&C<=.3?A="OFFLINE_DOWNLOADING_TWENTY":C>.3&&C<=.5?A="OFFLINE_DOWNLOADING_FORTY":C>.5&&C<=.7?A="OFFLINE_DOWNLOADING_SIXTY":C>.7&&C<1?A="OFFLINE_DOWNLOADING_EIGHTY":C===1&&(A="OFFLINE_PIN");return{text:KcW,iconType:A,onTap:B07(S,w.ACTION_REMOVE_WITH_PROMPT),disabled:H}};
ns6=function(H){var C=H.data;var S=H.actionType;H=H.disabled;return{text:tXZ,iconType:"OFFLINE_PIN",onTap:B07(C,S.ACTION_REMOVE_WITH_PROMPT),disabled:H}};
hTE=function(H){var C=H.data;var S=H.actionType;H=H.disabled;return{text:LcU,iconType:"OFFLINE_DOWNLOAD",onTap:B07(C,S.ACTION_RETRY),disabled:H}};
_.fn=function(H,C){var S=ha$();return _.EF(function(){S();return BGp(H,[_.ps(C)||""])},{debugName:"LUZslf"},"Z105t")};
gsE=function(H){var C=_.fn(_.L8,function(){return H().videoId}),S=_.fn(_.gB,function(){return H().playlistId});
return function(){return H().videoId?C:H().playlistId?S:_.Z(_.mB("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
Umi=function(H){var C=_.fn(Ua,function(){return H().videoId}),S=_.fn(_.Gm7,function(){return H().playlistId});
return function(){return H().videoId?C:H().playlistId?S:_.Z(_.mB(0,void 0,"K4tgOc")).next().value}};
RTW=function(H){var C=_.fn(_.dbE,function(){return H().videoId});
return function(){return H().videoId?C:_.Z(_.mB(!1,void 0,"Oaxwcf")).next().value}};
IPE=function(H){var C=_.fn(lbE,function(){return H().videoId});
return function(){return H().videoId?C:_.Z(_.mB("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
aPV=function(){return{}};
_.SK0=function(H,C,S){return{submitForm:function(){var w,A,J,c;return _.z(function(Y){if(Y.nextAddress==1){w=xmE(H());if(!w)return Y.return();if(w.onSubmit)return HIE(C),w.onSubmit(),HIE(S),Y.return();if(!w.submitConfig||!w.formData)return Y.jumpTo(0);w.disableDuringSubmission&&iIU(H(),!0);HIE(C);return Y.yield(C2w(w.submitConfig,w.formData()),3)}A=Y.yieldResult;HIE(S);if(((J=A)==null?0:J.submitResult)&&((c=w)==null?0:c.onSubmitResult))w.onSubmitResult(A.submitResult);w.disableDuringSubmission&&iIU(H(),
!1);return Y.return()})},
isValid:function(){var w=xmE(H());if(w){var A;return!((A=w.isValid)==null||!A.call(w))}return!0},
isSubmitting:function(){var w,A;return!!((w=xmE(H()))==null?0:(A=w.isSubmitting)==null?0:A.call(w))}}};
_.vt=function(){if(!sUE){var H=_.Z(_.mB(new Map,void 0,"Y1XnBc"));sUE=H.next().value;jUZ=H.next().value}return sUE};
_.w$6=function(H){jUZ(new Map(H))};
xmE=function(H){if(H)return _.vt()().get(H)};
C2w=function(H,C){var S;return _.z(function(w){return w.nextAddress==1?C?(S=_.JA().resolve(_.AA(Ap7)))&&H.submitId?w.yield(S.submitForm(H.submitId,C,JpZ,H.params,H.clickTrackingParams),2):w.return(Promise.reject(Error("Gh"))):w.return(Promise.reject(Error("Fh"))):w.return(w.yieldResult)})};
iIU=function(H,C){if(H){var S=_.vt();S().set(H,Object.assign({},S().get(H),{isSubmitting:function(){return C}}));
_.w$6(S())}};
HIE=function(H){if(H){var C=_.JA().resolve(_.ZQ);C&&(H=_.L7(H()))&&C.resolveCommand(H)}};
ZIZ=function(H,C){C=C===void 0?{shouldPersist:!0}:C;return{useUpdatableData:function(S,w){var A=[],J=_.Z(_.fu(function(){var m=S();if(w!=null&&w.length&&A){var W=A.length>0;for(var y=!1,N=0;N<w.length;N++){var b=w[N]();W&&b!==A[N]&&(y=!0);A[N]=b}W=y}else W=!1;if(W)_.lr.remove(M());else if(W=_.lr.get(M()))return W;return m})),c=J.next().value,Y=J.next().value,M=_.EF(function(){return H(S())},void 0,"mX326");
_.d6(function(){if(M()!=null){Fg6.set(M(),[c,Y]);var m=M();_.PN(function(){Fg6.delete(m)})}},"MgKPjb");
return[c,function(m){Y(m);C.shouldPersist&&_.lr.set(M(),m)}]},
getData:function(S){var w;return(w=Fg6.get(H(S)))==null?void 0:w[0]()},
updateData:function(S,w){S=H(S);var A=Fg6.get(S);if(!A)return!1;var J=_.Z(A);A=J.next().value;J=J.next().value;w=w(A());J(w);C.shouldPersist&&_.lr.set(S,w);return!0}}};
cpU=function(H){var C=_.Z(_.mB(!0,void 0,"bKtO6d")),S=C.next().value;C.next();return function(){var w=eI(H.children());return _.q(_.T,{cond:S,then:function(){return w},
else:H.fallback})}()};
_.V4=function(H){var C=YK7(H),S=C.data,w=C.mapping,A=C.wrapper;C=C.pendingFallback;var J=function(){return zFV(_.ps(S))},c=function(){var Y=J(),M=[];
Y=_.Z(Y);for(var m=Y.next();!m.done;m=Y.next()){var W=void 0;m=m.value;var y=void 0;for(W in m)if(!(!m).hasOwnProperty(W)){y=W;break}(W=y)&&M.push(W)}return M};
return H.data?_.q(cpU,{fallback:C},function(){return _.q(_.Vq,{each:c},function(Y,M){var m=A?function(y){return A(function(){return w[Y](y,M)},W,M)}:function(y){return w[Y](y,M)};
m.debugName||(m.debugName=String(Y));if(!w[String(Y)])return document.createComment("");m.componentType!==oE&&M16(String(Y));var W=qK$(J,Y,M);return _.q(m,{data:W})})}):_.q(_.F9,null)};
YK7=function(H){var C=H.targetId||TlV(H.children);if(!H.data||!C||_.E("mweb_new_replaceables_killswitch"))return Object.assign({},H,{mapping:H.children,wrapper:void 0});var S="stamper-"+m70++,w=function(){var Y;return(Y=typeof H.targetId==="function"?H.targetId(S):H.targetId)!=null?Y:S};
C=_.Z(WgE(function(){var Y=zFV(H.data());Y.targetId=w;return Y})).next().value;
var A=Object.assign({},(_.JA().resolve(_.AA(yp6))||{}).replaceableMapping,H.children);if(H.replacementWrapper){var J=A.notificationTextRenderer,c=A.notificationMultiActionRenderer;J&&(A.notificationTextRenderer=function(Y,M){return H.replacementWrapper(J({data:Y.data},M))});
c&&(A.notificationMultiActionRenderer=function(Y,M){return H.replacementWrapper(c({data:Y.data},M))})}return Object.assign({},H,{data:C,
mapping:A,wrapper:function(Y,M,m){return hdw({targetId:w,stamperIndex:m},Y)}})};
qK$=function(H,C,S){var w;return _.EF(function(){var A=H()[S()];if(A)w=A[C];else return _.Bn(new _.X0("Stamper failed to find "+String(C)+" at index "+S()+" of data array of length "+(H().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),w;return A[C]},void 0,"wgRPHd")};
TlV=function(H){H=_.Z(Object.keys(H));for(var C=H.next();!C.done;C=H.next())if(C=C.value,NlW.includes(C)||bIZ.includes(C)||E96.includes(C))return!0;return!1};
zFV=function(H){return H?Array.isArray(H)?H:[H]:[]};
M16=function(H){if(_.E("web_enable_renderer_logger")){var C;(C=_.JA().resolve(_.AA(eFZ)))!=null&&C.loggingEnabled&&!C.ids.has(H)&&C.ids.add(H)}};
utE=function(){var H,C;return(C=(H=_.JA().resolve(_.AA(_.sU)))==null?void 0:H())!=null?C:!1};
fSw=function(H,C){H=H===void 0?G07:H;switch(C.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},H,{isOpen:C.payload});default:return H}};
lSV=function(H,C){H=H===void 0?v9E:H;switch(C.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},H,{isAllowed:C.payload});default:return H}};
o97=function(H,C){H=H===void 0?V1Z:H;switch(C.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},H,{errorMessage:C.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},H,{title:C.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},H,{privacy:C.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},H,{isDisabled:C.payload});default:return H}};
X$E=function(H,C){H=H===void 0?OI7:H;switch(C.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},H,{isOpen:C.payload});default:return H}};
d7i=function(H,C){H=H===void 0?QUZ:H;switch(C.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},H,{isFullscreen:C.payload});case "SET_NAVIGATION_BUTTON":var S=C.payload.targetId,w=Object.assign({},H.navigationButtons);w[S]=C.payload.button;return Object.assign({},H,{navigationButtons:w});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},H,{topPanelId:C.payload});case "SET_SECONDARY_HEADER":return S=C.payload.panelId,w=Object.assign({},H.secondaryHeader),w[S]=C.payload.secondaryHeader,
Object.assign({},H,{secondaryHeader:w});default:return H}};
k07=function(){return Gc(Object.assign({},{voiceSearch:sn0,engagementPanel:d7i,bottomSheet:fSw,cinematicSetting:lSV,shorts:YYu,drawerLayout:X$E,createPlaylist:o97,locationCollection:P2U,reportChannel:$7D,reportForm:p$Z},zvE))};
hF7=function(H,C){_.rT.addLowPriorityJob(function(){var S,w,A;return _.z(function(J){switch(J.nextAddress){case 1:return _.en(J,2),J.yield(yHu(),4);case 4:return J.yield(fetch(H),5);case 5:return S=J.yieldResult,J.yield(S.json(),6);case 6:w=J.yieldResult;$b.set(H,w);requestAnimationFrame(function(){C(w)});
_.xB(J,0);break;case 2:A=_.Vx(J),_.Bn(A),_.oT(J)}})})};
n9$=function(H){var C={animationConfig:{},listeners:{}},S=function(){H(!0)};
C.listeners.data_failed=S;C.listeners.error=S;C.listeners.data_ready=function(){H(!1)};
return C};
D7D=function(H){var C=H.model;var S=H.subscribed;var w=H.isOverlay;var A=H.element;var J=H.commandController;var c=H.notificationState;if(S){var Y,M;var m=(C==null?void 0:(Y=C.buttonStyle)==null?void 0:Y.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:C==null?void 0:(M=C.unsubscribeButtonContent)==null?void 0:M.buttonText}else{var W;m=C==null?void 0:(W=C.subscribeButtonContent)==null?void 0:W.buttonText}a:{var y;switch(C==null?void 0:(y=C.buttonStyle)==
null?void 0:y.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":Y="S";break a;default:Y="M"}}a:if(w)w="overlay";else switch(C.backgroundStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_FULLSCREEN_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY_RED":w="overlay";break a;default:w="mono"}a:if(S)var N="tonal";else switch((N=C.buttonStyle)==
null?void 0:N.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":N="tonal";break a;default:N="filled"}return{style:w,type:N,state:C.disableSubscribeButton?"disabled":"active",size:Y,focused:H.focused,toggled:S,accessibilityLabel:rpU(C,S,c),buttonText:m,iconPosition:C.disableNotificationBell?"none":"leading-trailing",onTap:Blw(C,S,A,J),disableTextEllipsis:!!H.disableTextEllipsis}};
Blw=function(H,C,S,w){return function(A){if(C){var J;var c=H.disableNotificationBell?_.L7(H==null?void 0:(J=H.unsubscribeButtonContent)==null?void 0:J.onTapCommand):_.L7(H==null?void 0:H.onShowSubscriptionOptions)}else{var Y;c=_.L7(H==null?void 0:(Y=H.subscribeButtonContent)==null?void 0:Y.onTapCommand)}c&&OU(c,{form:{element:S==null?void 0:S.value},commandController:w});A.stopPropagation()}};
rpU=function(H,C,S){if(C){if(H==null?0:H.disableNotificationBell){var w;return H==null?void 0:(w=H.unsubscribeButtonContent)==null?void 0:w.accessibilityText}switch(S){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var A;return H==null?void 0:(A=H.bellAccessibilityData)==null?void 0:A.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var J;return H==null?void 0:(J=H.bellAccessibilityData)==null?void 0:J.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var c;return H==null?void 0:(c=
H.bellAccessibilityData)==null?void 0:c.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var Y;return H==null?void 0:(Y=H.bellAccessibilityData)==null?void 0:Y.disabledLabel;default:var M;return H==null?void 0:(M=H.unsubscribeButtonContent)==null?void 0:M.accessibilityText}}else{var m;return H==null?void 0:(m=H.subscribeButtonContent)==null?void 0:m.accessibilityText}};
Kgi=function(H){if(H){switch(H){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":H="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":H="NOTIFICATIONS_OFF";break;default:H="NOTIFICATIONS_NONE"}return H}};
t1Z=function(H,C,S){S.subscribed!==C&&((S=S.key)&&_.Ax(_.O5("subscriptionStateEntity",S,{key:S,subscribed:C})),H.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:C})),C||_.q3(H,"yt-unsubscribe-action"))};
g9V=function(H){H=_.e(_.L7(H),_.X1);var C,S,w,A;return(A=_.e(H==null?void 0:(C=H.panelLoadingStrategy)==null?void 0:(S=C.inlineContent)==null?void 0:(w=S.sheetViewModel)==null?void 0:w.content,Lg$))==null?void 0:A.listItems};
U7E=function(H,C){if(H.onShowSubscriptionOptions&&C&&(H=g9V(H.onShowSubscriptionOptions),H!=null&&H.length)){var S=Kgi(C);H.forEach(function(w){w=_.e(w,_.Q4);var A,J,c,Y,M=w==null?void 0:(A=w.leadingImage)==null?void 0:(J=A.sources)==null?void 0:(c=J[0])==null?void 0:(Y=c.clientResource)==null?void 0:Y.imageName;w&&M&&(w.isSelected=M===S)})}};
RFp=function(H,C,S,w){C&&S?H.style.width=S+"px":!C&&w&&(H.style.width=w+"px")};
ISE=function(H,C,S){var w;(w=H.lottieEl)==null||w.goToAndPlay(0);var A;(A=C.lottieEl)==null||A.goToAndPlay(0);_.dw(_.rT,function(){var J;(J=S.lottieEl)==null||J.goToAndPlay(0)},300)};
aSp=function(H){return!(H==null||!H.iconName||(H==null?0:H.title))};
x7U=function(H,C,S,w){S&&_.rT.cancelJob(S);S=_.rT.addLowPriorityJob(function(){w(void 0)},5E3);
w(S);C&&H!==(C.likeStatus==="LIKE")&&C.key&&_.Ax(_.O5("likeStatusEntity",C.key,{key:C.key,likeStatus:H?"LIKE":"INDIFFERENT",hadUserInteraction:H}))};
_.Hk0=function(H,C){return _.Ea(H.entities,"accountLinkStatusEntity",C)};
ikZ=function(H,C){return _.Ea(H.entities,"hatsSurveyEntity",C)};
Clw=function(H,C){return _.Ea(H.entities,"hatsSurveyStateEntity",C)};
SCZ=function(H,C){return _.Ea(H.entities,"quantityIncrementerEntity",C)};
sGV=function(H){switch(H){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":return 2;case "BADGE_STYLE_TYPE_YPC":return 9;case "BADGE_STYLE_TYPE_FEATURED":return 5;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 19;case "BADGE_STYLE_TYPE_BLUE":return 12;default:return 0}};
jGZ=function(H){switch(H){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}};
wxZ=function(H){switch(H){case 2:return"yt-badge-shape--ad";case 1:return"yt-badge-shape--media";case 3:return"yt-badge-shape--promoted";case 4:return"yt-badge-shape--promoted-inverted";case 5:return"yt-badge-shape--timely";case 6:return"yt-badge-shape--premium";case 7:return"yt-badge-shape--sale";case 8:return"yt-badge-shape--membership";case 9:return"yt-badge-shape--commerce";case 11:return"yt-badge-shape--live";case 12:return"yt-badge-shape--status-new";case 13:return"yt-badge-shape--status-complete";
case 14:return"yt-badge-shape--status-warning";case 15:return"yt-badge-shape--status-error";case 16:return"yt-badge-shape--status-default";case 17:return"yt-badge-shape--thumbnail-default";case 18:return"yt-badge-shape--thumbnail-live";case 19:return"yt-badge-shape--thumbnail-special";default:return"yt-badge-shape--default"}};
_.JXE=function(H){var C=_.YB("web_generic_client_event_wait_period ",0);C||(C=3E5);var S=AXi.get(H);!_.E("enable_web_client_experiment_event_timeout_killswitch")&&S&&(0,_.Zt)()-S<C||(AXi.set(H,(0,_.Zt)()),_.kI("genericClientExperimentEvent",{eventType:H}))};
Fei=function(H){switch(H){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
Zk6=function(H){if(!H)return"";var C,S=(C=_.JA().resolve(_.AA(_.sU)))==null?void 0:C(),w;if(!S&&((w=H.vibrantColorPalette)==null?0:w.iconInactiveColor))return xF(H.vibrantColorPalette.iconInactiveColor,"1");var A;return S&&((A=H.darkColorPalette)==null?0:A.iconInactiveColor)?xF(H.darkColorPalette.iconInactiveColor,"1"):H.color?xF(H.color,"1"):H.sampledThumbnailColor?(H=H.sampledThumbnailColor,"rgba("+H.red+","+H.green+","+H.blue+");"):""};
_.Pt=function(H,C){if(!H.includes("DATE_PLACEHOLDER"))return H;var S=new Date(0);S.setUTCSeconds(C);return H.replace("DATE_PLACEHOLDER",cX0(S))};
YC$=function(H,C,S){return function(w){var A=H.command;A&&(OU(A,{form:{element:S}}),C([A],w))}};
Mqp=function(H,C,S,w,A){return function(J){var c=z4$(H,C);c&&OU(c,{form:{element:S},commandController:w});A&&J.stopPropagation()}};
z4$=function(H,C){if(H.signInEndpoint&&!_.E("web_subscribe_sign_in_endpoint_killswitch"))return H.signInEndpoint;if(C){if(H.serviceEndpoints)return H.serviceEndpoints[1];if(H.onUnsubscribeEndpoints)return H.onUnsubscribeEndpoints[0]}else{if(H.serviceEndpoints)return H.serviceEndpoints[0];if(H.onSubscribeEndpoints)return H.onSubscribeEndpoints[0]}};
qCu=function(H,C){var S,w,A,J;C=C&&((S=H.unsubscribeAccessibility)==null?void 0:(w=S.accessibilityData)==null?void 0:w.label)||((A=H.subscribeAccessibility)==null?void 0:(J=A.accessibilityData)==null?void 0:J.label);return H.longSubscriberCountText?[C,_.jt(H.longSubscriberCountText)].filter(function(c){return c}).join(" "):C};
$i=function(H,C){return C||(H==null?0:H.isChannelDelegate)?"disabled":"active"};
TIW=function(H,C){var S;switch((S=H.style)==null?void 0:S.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:$i(H)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:$i(H)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:$i(H,!0)};case "OVERLAY":return C?{style:"overlay",type:"tonal",state:$i(H)}:{style:"overlay",type:"filled",state:$i(H)};default:return C?{style:"mono",type:"tonal",state:$i(H)}:{style:"mono",type:"filled",state:$i(H)}}};
_.pn=function(){for(var H=[],C=_.Z(_.tc.apply(0,arguments)),S=C.next();!S.done;S=C.next())if(S=S.value)if(typeof S==="string")H.push(S);else{S=_.Z(Object.entries(S));for(var w=S.next();!w.done;w=S.next()){var A=_.Z(w.value);w=A.next().value;(A=A.next().value)&&H.push(w)}}return H.join(" ")};
m8U=function(H){switch(H){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
Wew=function(H){switch(H){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
yXp=function(H,C){var S=H.map(function(w){return w.toString()});
return _.um(function(w){if(S.includes(w.key)){C&&w.preventDefault();var A;(A=w.currentTarget)==null||A.click()}})};
_.NI7=function(){return yXp(["Enter"])};
_.bkV=function(){return yXp(["Enter"," "],!0)};
_.ki=function(H){if(H.composedPath)return H.composedPath();if(!H.__composedPath){for(var C=[],S=H.target;S;)C.push(S),S=S.parentNode;C.push(window);H.__composedPath=C}return H.__composedPath};
_.hB=function(H,C,S){H=_.Z(H);for(var w=H.next();!w.done;w=H.next()){w=w.value;if(w===C)break;for(var A=_.Z(S),J=A.next();!J.done;J=A.next())if(J=J.value,w.tagName===J||w.role==="button"&&J==="BUTTON")return!0}return!1};
e4$=function(H,C){var S,w=(S=C.observer)!=null?S:_.JA().resolve(ZV);if(H){S=ELW(H);var A=[];C.showOption&&A.push(w.observe(H,function(){C.visibilityCallback(!0,H)},C.showOption));
C.hideOption&&A.push(w.observe(H,function(){C.visibilityCallback(!1,H)},C.hideOption));
C.prescanOption&&C.prescanCallback&&A.push(w.observe(H,function(){C.prescanCallback()},C.prescanOption));
var J;S.visibilityMonitorKeys=((J=S.visibilityMonitorKeys)!=null?J:[]).concat(A)}};
ELW=function(H){var C;return(C=H.polymerController)!=null?C:H};
_.rw=function(H){return!!_.nn(H)};
_.Bt=function(H,C,S,w,A){return function(J){var c=k3u();_.d6(function(){if(J){u86(J,H(),A);var Y=GO6(J,H(),C,S,w,c);_.PN(Y)}},"nr377e")}};
u86=function(H,C,S){var w=fe6(C),A=vLE(C);C=w&&leE;var J=A&&Vqp;(w||A)&&e4$(H,{visibilityCallback:function(c){var Y=_.JA().resolve(_.ZQ);c&&w?Y.resolveCommand(w,{form:{element:S?H:void 0},disableClickTracking:!0}):!c&&A&&Y.resolveCommand(A,{form:{element:S?H:void 0},disableClickTracking:!0})},
showOption:C,hideOption:J})};
GO6=function(H,C,S,w,A,J){var c=new Map;if(C=_.nn(C)){var Y;H=(w==null?void 0:(Y=w.onTap)==null?void 0:Y.value)||H;S=oL0(C,H,S==null?void 0:S.onTap,A,J);H.addEventListener("click",S);c.set("click",S)}return function(){for(var M=_.Z(c),m=M.next();!m.done;m=M.next()){var W=_.Z(m.value);m=W.next().value;W=W.next().value;H.removeEventListener(m,W)}}};
_.nn=function(H){var C;return(H=(C=_.e(H,OkZ))==null?void 0:C.onTap)&&_.L7(H)};
fe6=function(H){var C;return(H=(C=_.e(H,OkZ))==null?void 0:C.onVisible)&&_.L7(H)};
vLE=function(H){var C;return(H=(C=_.e(H,OkZ))==null?void 0:C.onHidden)&&_.L7(H)};
oL0=function(H,C,S,w,A){var J=function(Y){_.JA().resolve(_.ZQ).resolveCommand(H,Y)},c=function(Y){w&&_.hB(_.ki(Y),C,w)||J(Y.target?{form:{element:Y.target,
sourceData:H,mutationContext:A}}:void 0)};
S&&(c=function(Y){S(Y,J)});
return c};
XxU=function(H){switch(H){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}};
QGZ=function(H){var C=H.numAvatarsInCluster;switch(H.clusterSize){case "small":return C===2?22:18;case "40":return C===2?24:22;default:return C===2?24:20}};
d8V=function(H,C){return function(S){var w=Object.keys(C);_.d6(function(){if(H!=null&&H()){for(var A=_.Z(w),J=A.next();!J.done;J=A.next())J=J.value,S.addEventListener(J,C[J]);_.PN(function(){for(var c=_.Z(w),Y=c.next();!Y.done;Y=c.next())Y=Y.value,S.removeEventListener(Y,C[Y])})}},"bXZGfe")}};
Pl6=function(H){switch(QGZ(H)){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""}};
$8i=function(H){switch(H){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""}};
pxD=function(H){switch(QGZ(H)){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""}};
kOD=function(H){switch(H){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""}};
h47=function(H){switch(H){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}};
nLV=function(H){return H==="medium"||H==="48"||H==="large"||H==="extra-large"||H==="extra-extra-large"||H==="giant"};
rX0=function(H){return!!((H==null?0:H.includes(3))||(H==null?0:H.includes(5)))};
D8E=function(H){var C=H.data;return{size:BI7(C.avatarImageSize),type:C.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:H.onTap,decorations:H.decorations||[],badgeText:H.badgeText,accessibilityText:H.accessibilityText,avatarButtonCustomClassName:H.avatarButtonCustomClassName,clusterLayoutConfig:H.clusterLayoutConfig}};
BI7=function(H){switch(H){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"}};
Ke0=function(H){switch(H){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}};
tqU=function(H){switch(H){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model__avatar--avatar-size-giant";default:return""}};
LeZ=function(H){var C=H.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",S,w=H.avatars&&H.avatars.length>0?(S=_.e(H.avatars[0],_.Dz))==null?void 0:S.avatarImageSize:"AVATAR_SIZE_UNKNOWN";S=Ke0(w)||0;if(C){var A,J=(A=H.avatarClusterSize)!=null?A:"AVATAR_SIZE_M";C=Ke0(J);var c,Y,M=Math.min((Y=(c=H.avatars)==null?void 0:c.length)!=null?Y:0,4),m;return{avatars:((m=H.avatars)==null?void 0:m.slice(0,4))||[],avatarSizeInPx:S,avatarStackStyle:{width:C+"px",height:C+"px",position:"relative"},avatarStyle:function(y){var N=
QGZ({clusterSize:BI7(J),numAvatarsInCluster:M,avatarIndex:y});var b=Ke0(J);M===3&&y===2?(b=(b-N)/2,b=(_.rh("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*b):b=void 0;return{position:"absolute",top:M===2&&y===1||M===3&&y===2||M===4&&y>=2?"0":void 0,bottom:M===2&&y===0||M>2&&y<2?"0":void 0,left:M===2&&y===1||M>2&&(y===1||y===3)?"0":void 0,right:M<=3&&y===0||M===4&&(y===0||y===2)?"0":void 0,transform:b?"translateX("+b+"px)":void 0,width:N+"px",height:N+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(y){return{clusterSize:BI7(H.avatarClusterSize),numAvatarsInCluster:M,avatarIndex:y}},
avatarButtonCustomClassName:void 0}}var W;return{avatars:((W=H.avatars)==null?void 0:W.slice())||[],avatarSizeInPx:S,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:tqU(w),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
gLZ=function(H,C,S){return function(){OU(H,{form:{element:C},commandController:S})}};
U8Z=function(H){switch(H){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
R4D=function(H){switch(H){case "small":return"yt-thumbnail-overlay-badge-view-model--small";case "medium":return"yt-thumbnail-overlay-badge-view-model--medium";case "large":return"yt-thumbnail-overlay-badge-view-model--large";default:return"yt-thumbnail-overlay-badge-view-model--medium"}};
Ie$=function(H){if("accessibilityText"in H)return H.accessibilityText||"";if("title"in H){var C,S,w;return((C=H.title)==null?void 0:(S=C.accessibility)==null?void 0:(w=S.accessibilityData)==null?void 0:w.label)||""}if("accessibility"in H){var A,J;return((A=H.accessibility)==null?void 0:(J=A.accessibilityData)==null?void 0:J.label)||""}return""};
aeW=function(H){return"inlinePlayerData"in H};
Kn=function(H){return new x87(H)};
HQ$=function(H){return function(C){H&&(H.thumbnailElRef=C.thumbnailElRef,H.thumbnail=C.thumbnail,H.thumbnailOverlays=C.thumbnailOverlays,H.thumbnailSize=C.thumbnailSize)}};
iQE=function(H){switch(H){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
SoE=function(H){var C=_.Z(_.mB(!1,void 0,"RIOonf")),S=C.next().value,w=C.next().value;_.$T(function(){var A=H==null?void 0:H();if(A){var J=_.JA().resolve(_.AA(C1Z));if(J){var c={triggeringElement:A,onDwellTriggeredFn:function(){w(!0)},
onDwellEndFn:function(){w(!1)}};
J.registerElement(c);_.PN(function(){_.tB(J,c)})}}});
return S};
sti=function(H,C,S){S?S(C):_.Im(C,H.target?{form:{element:H.target}}:void 0)};
_.Ln=function(H,C,S,w){return function(A){_.d6(function(){function J(W){W=W.composedPath();W=_.Z(W);for(var y=W.next();!y.done;y=W.next()){y=y.value;if(y===A)break;if(y.className.indexOf("HostIsClickableAdComponent")>=0||y.tagName==="A".toString()||y.tagName==="BUTTON".toString())return!0}return!1}
var c=new Map,Y,M=(Y=H())==null?void 0:Y.onTap;if(M){Y=function(W){J(W)||sti(W,M,C)};
var m=function(W){J(W)||W.key!=="Enter"||sti(W,M,C)};
(S==null?0:S())||_.E("enable_web_home_top_landscape_image_layout_level_click")?(A.addEventListener("tap",Y),c.set("tap",Y)):(A.addEventListener("click",Y),c.set("click",Y));if(w==null?0:w())A.addEventListener("keydown",m),c.set("keydown",m)}_.PN(function(){for(var W=_.Z(c),y=W.next();!y.done;y=W.next()){var N=_.Z(y.value);y=N.next().value;N=N.next().value;A.removeEventListener(y,N)}})},"D7XqOc")}};
jtD=function(H,C){var S,w=(S=H.interaction)==null?void 0:S.onTap;if(H=_.U4({elementsCommand:w,forceNewState:!0,skipOnClick:!0}))return H.onclick=function(A){J2$(A)&&(A.preventDefault(),w&&sti(A,w,C))},Rm(H)?H:void 0};
wc0=function(H){switch(H){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
A5i=function(H){switch(H){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"}};
J56=function(H){switch(H){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"}};
_.FGi=function(H){return _.E("rich_grid_enable_dynamic_offset")&&H?Math.max(Math.round((H-_.YB("rich_grid_dynamic_offset_anchor_width",1300))/100*_.YB("rich_grid_dynamic_offset_offset_per_100",10)),_.YB("rich_grid_dynamic_offset_lower_bound",-60)):0};
ZQU=function(H,C){switch(C){case 4:return 16;case 1:return H<528?16:H<1024?32:48;case 2:return(H>=528?16:8)/2;case 3:return(H<528?16:H<1024?32:48)+(H>=528?16:8)/2;default:return 0}};
c5Z=function(H){var C=H.originalContainerWidth;var S=H.sizing;var w=H.standardUnit;if(H.isCompactList&&C<528)return 1;switch(S){case "STANDARD":return w;case "COMPACT":return w+1;case "EXTRA_COMPACT":return _.E("web_responsive_extra_compact_2x")?w*2:_.E("web_responsive_current")?w===1?2:w%2===0?w/2*3:w+2:w<4?w*2:Math.ceil(w*3/2);case "MINI":return w>1?w*2:3;default:return w}};
zQE=function(H){var C=H.containerWidth;var S=H.peek;var w=H.gutter;var A=H.numItems;H=H.ignoreMaxWidthLimit;C=S?Math.max((C-S-w*A)/A,0):Math.max((C-w*(A-1))/A,0);return H?C:Math.min(C,Yo0)};
_.gw=function(H){var C=H.containerWidth;var S=H.hasPeek;var w=H.sizing;var A=H.marginSettings;var J=H.isCompactList;var c=H.enableFullBleedForSingleCol;var Y=H.standardUnitMinWidth;w=w||"STANDARD";S=!!S;H=C>=528?16:8;var M=S?C>=528?48:24:0;A=ZQU(C,A);var m=Math.max(C-A*2,0);Y=_.E("kevlar_disable_min_width_override")?void 0:Y;Y=Math.min(Math.max(Math.floor((m-M+H)/((Y!=null?Y:M5D)+_.FGi(C)+H)),1),6);var W=(c=!!c&&Y===1)||Y===1&&w!=="STANDARD";S=S||W?m:Math.min(m,(Yo0+H)*Y-H);w=c5Z({originalContainerWidth:C,
sizing:w,standardUnit:Y,isCompactList:J});return{itemWidth:zQE({containerWidth:S,peek:M,gutter:H,numItems:w,ignoreMaxWidthLimit:W}),gutter:H,maxContainerWidth:S,numItems:w,margin:c?0:A,contentMargin:ZQU(C,1),typographyBump:zQE({containerWidth:S,peek:M,gutter:H,numItems:Y,ignoreMaxWidthLimit:W})>400&&!(J&&C<528),standardUnit:Y}};
qoE=function(H){switch(H){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.TDw=function(H){if(H){var C;if((C=H.responsiveContainerConfiguration)==null?0:C.responsiveSize)return qoE(H.responsiveContainerConfiguration.responsiveSize);if(H.layoutSizing)switch(H.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"}}};
mPE=function(H){if(H.fullbleed)return 1;switch(H.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
bQD=function(H,C,S,w,A,J,c,Y){a:if(H===4&&w==="LOCKUP_CONTENT_TYPE_SOURCE")var M=1;else switch(H){case 3:M=1;break a;default:M=0}a:switch(H){case 4:J=!!(J&&J<100);break a;default:J=!1}a:switch(H){case 3:case 4:var m=w==="LOCKUP_CONTENT_TYPE_CHANNEL"||w==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:m=!1}a:switch(H){case 5:var W=!0;break a;case 4:W=!1;break a;default:W=!1}return{isOverlay:W,isCard:WGV(w,c),sizing:C!=null?C:"STANDARD",typographyBump:S!=null?S:!1,isTiny:J,isCentered:m,isCollection:y5U(w),
arrangement:M,addMarginForFullbleed:H===1&&w!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:H===1&&w==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:NDE(w,A,Y),disableRounding:H===5||WGV(w,c)||H===1&&w==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:y5U(w)?2:0,useLegacyTypography:!(Y==null||!Y.useLegacyTypography),useRichGridLegacyTypography:!(Y==null||!Y.useRichGridLegacyTypography)&&!_.E("web_enable_typography_bump"),compactMetadata:M===0&&w==="LOCKUP_CONTENT_TYPE_VIDEO"}};
y5U=function(H){switch(H){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}};
WGV=function(H,C){if(C&&H==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(H){case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_AI_CARD":return!0;default:return!1}};
NDE=function(H,C,S){if(C&&(S==null||!S.alwaysRespectPodcastShowAspectRatio||H!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(H){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}};
EqW=function(H){switch(H){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"}};
eQ7=function(H){switch(H){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 9;case "BADGE_STATUS_NEW":return 12;case "BADGE_PREMIUM":return 6;case "BADGE_PROMOTED":return 3;case "BADGE_PROMOTED_INVERTED":return 4;default:return 0}};
uqU=function(H){switch(H){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}};
_.U5=function(H){if(H){var C;return((C=_.JA().resolve(_.AA(_.sU)))==null?0:C())?H.darkThemeImage:H.image}};
vqU=function(H,C,S,w,A,J){if(A&&J&&C==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:A,height:J};if(!S)return{};A=S.size;S=S.allowFullWidth;if(C==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&S)return{fullWidth:!0};if(A===void 0)return{};switch(H){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:A,height:A};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:A,height:1/GkD*A};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:A*
fIU,height:A};default:return(w==null?0:w.height)&&(w==null?0:w.width)?w.width/w.height>1?{maxWidth:A*fIU}:{maxWidth:A}:{maxWidth:A}}};
lI6=function(H){var C;return H&&((C=_.U5(H.themedImage))!=null?C:H.image)};
V5W=function(H){var C;return H==null?void 0:(C=H.sources)==null?void 0:C[0]};
oqw=function(H){switch(H){case 0:return"yt-content-metadata-view-model__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model__metadata-text";case 2:return"yt-content-metadata-view-model__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model__metadata-text-max-lines-4"}};
_.OQ0=function(H){if(H)return"content-id-"+H};
Xcp=function(H){switch(H.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"}}};
Qt6=function(H){var C=_.R$.currentPageSubTypeSelector(_.wC().getState())||"";return H?H+C:""};
dPi=function(H){switch(H){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
$Pu=function(H){var C=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],S=_.Z(_.mB(void 0,void 0,"JrqNsb")),w=S.next().value,A=S.next().value,J=_.Z(_.mB(void 0,void 0,"rWytse"));S=J.next().value;var c=J.next().value;J=_.Z(_.mB(void 0,void 0,"DHRqxe"));var Y=J.next().value,M=J.next().value;return{touchFeedbackEvents:{pointerUpEvent:w,pointerDownEvent:S,pointerLeaveEvent:Y},touchFeedbackOnPointerUp:_.um(function(m){P1i(_.ki(m),C)||(A(m),c(void 0),M(void 0))}),
touchFeedbackOnPointerDown:_.um(function(m){H==null||H(m);P1i(_.ki(m),C)||(c(m),A(void 0),M(void 0))}),
touchFeedbackOnPointerLeave:_.um(function(m){P1i(_.ki(m),C)||(M(m),c(void 0),A(void 0))})}};
P1i=function(H,C){C=C===void 0?[]:C;C=[].concat(_.k$(C),["BUTTON".toString()]);H=_.Z(H);for(var S=H.next();!S.done;S=H.next()){S=S.value;for(var w=_.Z(C),A=w.next();!A.done;A=w.next())if(S.tagName===A.value)return!0}return!1};
pcu=function(H){switch(H){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"}};
kk$=function(H){return H.scrollHeight-H.offsetHeight>1};
hQi=function(H,C){var S;return SJ(H,((S=H.content)==null?void 0:S.length)||0,!C)};
BD7=function(H,C,S,w,A,J){if(!C||nqp){var c;return SJ(H,((c=H.content)==null?void 0:c.length)||0,!0)}C=w.value;if(!S.value||!C||!H.content)return H;S=0;w=H.content.length;c=0;r5i||(r5i=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var Y=r5i;for(A=A*J*Y;S<=w;)J=Math.floor(S+(w-S)/2),Y=SJ(H,J)||H,C.firstChild&&(C.firstChild.textContent=Y.content),C.scrollHeight>A?w=J-1:(c=J,S=J+1);return SJ(H,c)};
DPw=function(H,C){var S,w;return(((S=H.content)==null?void 0:S.length)||0)>(((w=C.content)==null?void 0:w.length)||0)};
KGU=function(H,C,S,w,A,J){var c=_.sW("truncated-text-content"),Y=_.sW("truncated-text-content"),M=_.sW("button"),m=_.sW("button"),W=_.sW("button"),y=_.JA().resolve(_.wW),N=_.Z(_.fu(function(){return hQi(H(),A())})),b=N.next().value,u=N.next().value;
N=_.Z(_.fu(function(){return DPw(H(),b())}));
var O=N.next().value,d=N.next().value,p=null;_.d6(function(){function k(){if(c.value&&M.value&&W.value){var t=J()?H():BD7(H(),A(),c,Y,C(),S());u(t);requestAnimationFrame(function(){if(c.value&&M.value&&W.value){var g=kk$(c.value)||DPw(H(),t);d(g);if(!w()){var ii=kk$(c.value),FW=S(),cZ=c.value,eZ=M.value,ND=W.value,bi=y==="rtl";if(cZ&&eZ){var pU=eZ.offsetLeft;bi&&(pU=cZ.offsetWidth-eZ.offsetWidth-eZ.offsetLeft);if(g){g=eZ.offsetWidth;eZ=cZ.offsetWidth;var O$=ii?eZ-g-70:pU-70;FW="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
FW+"rem,\n      #000 "+FW+"rem,\n      #000 100%), linear-gradient(\n      to "+((bi?"left":"right")+",\n      #000 0px,\n      #000 "+O$+"px,\n      transparent "+(ii?eZ-g:O$+70)+"px)");cZ.style.setProperty("-webkit-mask-image",FW);cZ.style.setProperty("mask-image",FW)}else cZ.style.setProperty("-webkit-mask-image",""),cZ.style.setProperty("mask-image","");ii?bi?(ND.style.setProperty("left","0"),ND.style.setProperty("right","unset")):(ND.style.setProperty("left",""),ND.style.setProperty("right",
"0")):bi?(ND.style.setProperty("left","unset"),ND.style.setProperty("right",pU+"px")):(ND.style.setProperty("left",pU+"px"),ND.style.setProperty("right","unset"))}}}})}}
var R,L;(R=p)==null||(L=R.stop)==null||L.call(R);R=new _.I$(k,17);k();p=R},"KjwIxd");
_.$T(function(){u(hQi(H(),A()));d(DPw(H(),b()));var k=function(){r5i=void 0;var L,t;(L=p)==null||(t=L.fire)==null||t.call(L)};
if(window.ResizeObserver){var R=new ResizeObserver(k);R.observe(c.value);_.PN(function(){var L,t;(L=p)==null||(t=L.stop)==null||t.call(L);R.disconnect()})}else window.addEventListener("resize",k),_.PN(function(){var L,t;
(L=p)==null||(t=L.stop)==null||t.call(L);window.removeEventListener("resize",k)})});
return{isTruncated:O,displayText:b,contentRef:c,hiddenRef:Y,placeholderTruncationTextRef:M,hiddenTruncationTextRef:m,truncationTextRef:W}};
t5D=function(H){return{content:H!=null?H:""}};
LGw=function(H){return _.L7(H.onTap)||_.nn(H.rendererContext)};
gqZ=function(H){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:H.overflowMenuA11yLabel,onTap:function(C){C.preventDefault();C.stopPropagation();if(H.overflowMenuOnTap){var S=_.U4({elementsCommand:H.overflowMenuOnTap,forceNewState:!0});if(S==null?0:S.onclick)S.onclick(C)}}}};
_.a$=function(H,C,S,w,A){w=w===void 0?{}:w;if(!A||Math.random()<5E-4){C=C||null;S=S||null;H=H instanceof Error?H:new _.X0(H);if(H.args)for(var J=_.Z(H.args),c=J.next();!c.done;c=J.next())c=c.value,c instanceof Object&&(w=Object.assign({},c,w));w.category="H5 Ads Control Flow";C&&(w.slot=C?"slot:  "+C.slotType:"");S&&(w.layout=S?"layout:  "+S.layoutType:"",w.layoutId=S.layoutId);A&&(w.known_error_aggressively_sampled=!0);H.args=[w];_.Bn(H)}};
_.UPZ=function(H,C){_.q3(H,"yt-open-popup-action",[_.FG(C),H])};
_.HQ=function(H,C){_.UPZ(H,_.sx(C))};
II6=function(H){if(!H)return"";if(RQZ[H])return RQZ[H];iK||(iK=_.GZ("A"));iK.href!==H&&gP(iK,H);var C=iK.pathname;RQZ[H]=C.startsWith("/")?C:"/"+C;return RQZ[H]};
aIZ=function(){var H=II6(window.location.href);if(H==="/")return"home";if(H.startsWith("/results"))return"search";if(H.startsWith("/watch"))return"watch";if(H.startsWith("/shorts"))return"shorts";if(H.startsWith("/hashtag"))return"hashtag";if(H.startsWith("/create_channel"))return"create_channel";if(H.startsWith("/@")||H.startsWith("/user/")||H.startsWith("/channel/"))return"channel";if(H.startsWith("/experiments"))return"experiments";if(H.startsWith("/sponsor_channel"))return"sponsorship";if(H.startsWith("/select_site"))return"settings";
if(H.startsWith("/locate"))return"locate";if(H.startsWith("/redeem"))return"redeem";if(H.startsWith("/musicpremium")||H.startsWith("/premium")||H.startsWith("/red"))return"premium";if(H.startsWith("/paid_memberships"))return"paid_memberships";if(H.startsWith("/oops"))return"oops";if(H.startsWith("/clip"))return"clip";var C;return(CN==null?void 0:(C=CN.response)==null?void 0:C.page)==="404"?"404":H.startsWith("/feed/history")?"history":H.startsWith("/feed/library")?"library":H.startsWith("/feed/subscriptions")?
"subscriptions":H.startsWith("/feed/trending")?"trending":H.startsWith("/feed/news_destination")?"news":H.startsWith("/playlist")?"playlist":H.startsWith("/minor_moment")?"minor_moment":H.startsWith("/playable/")||H.match("^/playables/(?!saved).")?"mini_app":H.startsWith("/playables")?"playables":H.startsWith("/create/live/join")?"open_in_app":H.startsWith("/feed/explore")?"explore":"browse"};
_.Cxp=function(){var H=CN==null?void 0:CN.response,C=H==null?void 0:H.endpoint;if(!C)return(H==null?void 0:H.page)==="watch"?"watch":aIZ();var S;H=(S=_.e(C==null?void 0:C.commandMetadata,_.u9))==null?void 0:S.webPageType;S=!1;if(H&&!xPE.includes(H))switch(H){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 w;return((w=_.e(C==null?void 0:C.commandMetadata,_.u9))==null?0:w.url)&&II6(_.e(C.commandMetadata,_.u9).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var A;return(C=(A=_.e(C,_.vU))==null?void 0:A.browseId)?HZW[C]||"browse":"browse";default:S=!0}if(_.e(C,_.SA)||_.e(C,iZi))return"sponsorship";A=II6(window.location.href);if(A.startsWith("/experiments"))return"experiments";if(A.startsWith("/create_channel"))return"create_channel";
if(_.e(C,_.R8)&&A.startsWith("/shorts"))return"shorts";if(_.e(C,_.R8)&&A.startsWith("/watch"))return"watch";S&&(C=new _.X0("Unsupported mWeb page type",{pathname:A,webPageType:H}),_.nC(C));return"browse"};
sj=function(H,C,S,w){return H&&C?H!==S||C!==w?(_.a$(Error("Ph"),void 0,void 0,{"stored-slot":H,"stored-layout":C,"latest-slot":S,"latest-layout":w}),!1):!0:!1};
slE=function(H,C,S){return H({targetId:C},function(w){return S.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},w,{contents:[S.continuationItems?_.e(S.continuationItems[0],S96):{}]}):S.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},w,{header:S.continuationItems?S.continuationItems[0]:void 0}):Object.assign({},w,{contents:S.continuationItems?S.continuationItems:[]})})};
jlU=function(H,C,S,w){if(C=C.trackingParams){var A,J=(A=S.getScreenLayer)==null?void 0:A.call(S);S=_.Dg(J);A=_.BM(J);if(S&&A){var c=_.Qh(C);_.E("combine_ve_grafts")?H.graftServerVe(C,A,J):_.ak(S,A,c);w==null||w(c)}}};
AwZ=function(H){var C;return((C=wrE.get(H))==null?void 0:C.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
ZZu=function(H,C){var S={type:C.slotType,controlFlowManagerLayer:JwD.get(C.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};C.slotEntryTrigger&&(S.entryTriggerType=C.slotEntryTrigger.triggerType);C.slotPhysicalPosition!==1&&(S.slotPhysicalPosition=C.slotPhysicalPosition);if(H){S.debugData={slotId:C.slotId};if(H=C.slotEntryTrigger)S.debugData.slotEntryTriggerData=FH$(H);H=C.slotFulfillmentTriggers;S.debugData.fulfillmentTriggerData=[];H=_.Z(H);for(var w=H.next();!w.done;w=H.next())S.debugData.fulfillmentTriggerData.push(FH$(w.value));
C=C.slotExpirationTriggers;S.debugData.expirationTriggerData=[];C=_.Z(C);for(H=C.next();!H.done;H=C.next())S.debugData.expirationTriggerData.push(FH$(H.value))}return S};
FH$=function(H,C){var S={type:H.triggerType};C!=null&&(S.category=C);H.triggeringSlotId!=null&&(S.triggerSourceData||(S.triggerSourceData={}),S.triggerSourceData.associatedSlotId=H.triggeringSlotId);H.triggeringLayoutId!=null&&(S.triggerSourceData||(S.triggerSourceData={}),S.triggerSourceData.associatedLayoutId=H.triggeringLayoutId);return S};
cwZ=function(H,C,S,w){C={opportunityType:C};H&&(w||S)&&(w=_.nX(w||[],function(A){return ZZu(H,A)}),C.debugData=Object.assign({},S&&S.length>0?{associatedSlotId:S}:{},w.length>0?{slots:w}:{}));
return C};
Y9E=function(H){return jA(H.opportunityAdapterMap).concat(jA(H.triggerAdapterMap)).concat(jA(H.fulfillmentAdapterFactoryMap)).concat(jA(H.slotAdapterFactoryMap)).concat(jA(H.layoutRenderingAdapterFactoryMap))};
jA=function(H){var C=[];H=_.Z(H.values());for(var S=H.next();!S.done;S=H.next())S=S.value,S.isAdsControlFlowEventListener&&C.push(S);return C};
Ah=function(H){var C=H.slotId,S=H.slotType,w=H.slotPhysicalPosition;return C===void 0?new w$("Cannot construct a slot due to the missing id.",{adSlotMetadata:H}):S===void 0?new w$("Cannot construct a slot due to the missing type.",{adSlotMetadata:H}):w===void 0?new w$("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:H}):{slotId:C,slotType:S,slotPhysicalPosition:w,managerLayer:"external",adSlotLoggingData:H.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new zID}};
MbZ=function(H){var C=H.layoutId,S=H.layoutType;return C===void 0?new Jh("Cannot construct a layout due to the missing id.",{adLayoutMetadata:H}):S===void 0?new Jh("Cannot construct a layout due to the missing type.",{adLayoutMetadata:H}):{layoutId:C,layoutType:S,managerLayer:"external",adLayoutLoggingData:H.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new zID,interactionLoggingAdsClientData:{}}};
q9w=function(H){if(H.querySelector("img")){var C=H.querySelector("img");C.addEventListener("error",function(){UG0(C.src).then(function(S){(S=_.K9(S).toString())?C.src=S:C.removeAttribute("src")}).catch(function(){C.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
ZB=function(H,C){if(C&&(Tp6(C.viewableCommand)||Tp6(C.endOfSessionCommand))){var S=mu0(C==null?void 0:C.viewableCommand);C=mu0(C==null?void 0:C.endOfSessionCommand);if(!Fe){var w=_.YB("custom_active_view_tos_timeout_ms");Fe=w>0&&w!==36E5?new WHE(ywE(),w):new WHE(ywE())}Np7(Fe,H);bZ$(Fe,H,S,C)}};
cQ=function(H){Fe&&Np7(Fe,H)};
ywE=function(){var H=_.rh("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(H==null?void 0:H.length)===2?H[1]:null};
Tp6=function(H){H=_.L7(H);return!(H==null||!H.loggingUrls)&&H.loggingUrls.length>0};
mu0=function(H){if(!H)return[];var C=[],S,w;((w=(S=_.L7(H))==null?void 0:S.loggingUrls)!=null?w:[]).forEach(function(A){A.baseUrl&&C.push(A.baseUrl)});
return C};
EWZ=function(H){if(_.E("stop_av_measurement_on_detach"))return function(){cQ(H)}};
eIU=function(H){return function(){_.E("stop_av_measurement_on_detach")&&cQ(H)}};
uVu=function(H){if(_.E("stop_av_measurement_on_detach"))return function(){cQ(H)}};
GUw=function(H){return H.shorts.isDesktopSmallWidth};
_.f80=function(H){return H.shorts.isShortsActive};
_.vWw=function(H){return H.shorts.isWatchWhileMode};
_.YQ=function(H){return H.shorts.isFullscreen};
_.z_=function(H){return H.shorts.isShortsPipActive};
VbW=function(H){var C,S;if(H=(C=_.e(H.reelsAdCardButtoned,l8U))==null?void 0:(S=C.animatedRenderingConfig)==null?void 0:S.easeOutSeconds)return H+"s"};
OZ7=function(H,C,S){return _.z(function(w){return w.return(new Promise(function(A){var J=new Image;J.onload=function(){A(new oWE(H,C,S,J.naturalWidth,J.naturalHeight))};
J.src=S.toString()}))})};
Xr0=function(H,C){return Math.round(H/1E-5)===Math.round(C/1E-5)};
Ql$=function(H,C){return Math.round(H/1E-5)===Math.round(C/1E-5)};
dui=function(H,C){return H.year===C.year&&H.month===C.month&&H.day===C.day};
PxE=function(H,C){return H.year!==C.year?H.year<C.year:H.month!==C.month?H.month<C.month:H.day<C.day};
prZ=function(H){return H.day===$uW(H.year,H.month)?H.month===11?{year:H.year+1,month:0,day:1}:{year:H.year,month:H.month+1,day:1}:{year:H.year,month:H.month,day:H.day+1}};
kUV=function(){var H=new Date,C={year:H.getFullYear(),month:H.getMonth(),day:H.getDate()};return{start:C,end:{year:H.getFullYear()+2,month:H.getMonth(),day:H.getDate()},selectedDate:prZ(C)}};
hIi=function(H){return(new St(2)).format(new Date(H.year,H.month,H.day))};
nWE=function(H){return{year:H.getFullYear(),month:H.getMonth(),day:H.getDate()}};
rw0=function(H,C){H=(H+(Number(C.utcOffsetSec)+(new Date(H*1E3)).getTimezoneOffset()*60))*1E3;C=nWE(new Date(H));return{date:C,secondsSinceMidnight:Math.floor((H-(new Date(C.year,C.month,C.day)).getTime())/1E3)}};
BpU=function(H,C){C=C.months.findIndex(function(S){return S.year===H.year&&S.month===H.month});
return C>=0?C:void 0};
DuW=function(H){if(!H)return!1;try{if(H.host&&H.host.tagName==="YT-FORMATTED-STRING"&&H.host.id==="contenteditable-textarea"||H.nodeType===Node.ELEMENT_NODE&&H.tagName==="YTD-COMMENTBOX")return!0}catch(C){return!1}return DuW(H.parentNode)};
MN=function(H){return H?!(H.tagName!=="A"||!H.href||!H.classList.contains("yt-simple-endpoint")):!1};
KHE=function(H){return H?H.tagName==="IMG"&&H.classList.contains("emoji"):!1};
tbZ=function(H,C,S){if(!H)return null;var w=MN(H);if(w&&S)return C=H.pathname.substring(H.pathname.indexOf("/channel/")+9),document.createTextNode("@"+C);if(w&&!S)return document.createTextNode("");if(KHE(H))return S=H.alt,H=H.dataset.emojiId,!H&&C&&(C=_.qN(C,S))&&C.isCustomEmoji&&(H=C.emojiId),H?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+H+">"):document.createTextNode(S);w=H.cloneNode(!1);for(var A=0;A<H.childNodes.length;++A){var J=tbZ(H.childNodes[A],C,S);J&&w.appendChild(J)}return w};
T_=function(H){return H?MN(H)?H:T_(H.lastChild):null};
LHu=function(H){return H?MN(H)?H:LHu(H.firstChild):null};
gWU=function(H){if(!H)return null;for(var C=H.previousSibling;C;)if(C.nodeType===Node.ELEMENT_NODE&&C.nodeName==="BR")C=C.previousSibling;else if(C.nodeType===Node.TEXT_NODE&&/\s+/.test(C.textContent))C=C.previousSibling;else break;(C=T_(C))?H=C:H=(H=H.parentNode)?T_(H.previousElementSibling):null;return H};
UuW=function(H){if(!H)return null;for(var C=H.nextSibling;C;)if(C.nodeType===Node.ELEMENT_NODE&&C.nodeName==="BR")C=C.nextSibling;else if(C.nodeType===Node.TEXT_NODE&&/\s+/.test(C.textContent))C=C.nextSibling;else break;return(C=LHu(C))?C:UuW(H.parentNode)};
RIp=function(H){var C=_.mR(),S=C.JSC$11360_getStartNode();if(!DuW(S.parentNode))return null;C=C.JSC$11360_getStartOffset();if(S.nodeType===Node.TEXT_NODE){var w=_.tb(S,MN);if(w){if(H&&C===0||!H&&C===S.length)return w}else{if(H&&C===S.length)return!S||S.nodeName==="BR"||S.nextElementSibling&&_.WQ(S.nextElementSibling,"display")==="block"?null:LHu(S.nextElementSibling);if(!H&&C===0)return S?T_(S.previousElementSibling):null}}if(S.nodeType===Node.ELEMENT_NODE)if(H){if(0<=C&&C<S.childNodes.length)return LHu(S.childNodes[C])}else if(0<
C&&C<=S.childNodes.length)return T_(S.childNodes[C-1]);return null};
I87=function(H,C,S){if(!H)return null;if(H.nodeType===Node.TEXT_NODE)if(S){var w=gWU(H);if(w&&!/^\s+\S/.test(H.wholeText.substr(0,C)))return w}else if((w=UuW(H))&&!/\S\s+/.test(H.wholeText.substr(C,H.wholeText.length)))return w;return H.nodeType===Node.ELEMENT_NODE?S?gWU(H.childNodes[C]):UuW(H.childNodes[C]):I87(H.parentNode,C,S)};
a8E=function(H){if(H.hasChildNodes())switch(H.tagName){case "DIV":case "A":case "SPAN":var C="";for(H=H.firstChild;H;H=H.nextSibling)C+=a8E(H);return C;default:return""}else switch(H.nodeType){case 3:return H.textContent;default:return""}};
yB=function(H,C){return H.year===C.year&&H.month===C.month&&H.day===C.day};
NN=function(H,C){return H.year!==C.year?H.year<C.year:H.month!==C.month?H.month<C.month:H.day<C.day};
xuD=function(H){return{year:H.getFullYear(),month:H.getMonth(),day:H.getDate()}};
HFZ=function(H){var C=UbE;C=C===void 0?UbE:C;C(new Date(H.year,H.month,H.day))};
bK=function(H){return xuD(new Date(Number(H.seconds)*1E3))};
iFZ=function(H){return H.year!==void 0&&H.month!==void 0&&H.day!==void 0};
CNi=function(H){return H.start!==void 0&&H.end!==void 0};
SOE=function(H){return CNi(H)?H.start:H};
sKV=function(H){return CNi(H)?H.end:void 0};
wzu=function(H,C){for(var S=[],w=new Date(H.start.year,H.start.month);w.getFullYear()<H.end.year||w.getFullYear()===H.end.year&&w.getMonth()<=H.end.month;){var A=S,J=A.push,c=w.getFullYear(),Y=w.getMonth(),M=H,m=C,W=void 0,y=[],N=Object.freeze({extraCssClass:"invisible"}),b=new Date(c,Y),u=xuD(b);b=b.getDay();for(var O=xuD(new Date);u.month===Y;){b!==jKw&&W||(W=Array.from({length:7}).fill(N),y.push(W));var d={date:{year:c,month:Y,day:u.day},extraCssClass:"",debugClass:""};d.extraCssClass=m(d.date,
u,O,M).trim();W[(b-jKw+7)%7]=d;u=u.day===$uW(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};b=(b+1)%7}J.call(A,{weeks:y,monthLabel:Ej.SHORTMONTHS[Y]+" "+c,year:c,month:Y,monthLabelExtraCssClass:y[0][2]===N?"shift-down-label":""});w.setMonth(w.getMonth()+1)}return S};
AeU=function(H,C){C=C.months.findIndex(function(S){return S.year===H.year&&S.month===H.month});
return C>=0?C:void 0};
FK0=function(H,C){a:{var S=S===void 0?[2,3]:S;S=_.Z(S);for(var w=S.next();!w.done;w=S.next()){var A=new Date;if((new Jew(w.value)).parse(C,A,{validate:!0})){A.setHours(0,0,0,0);C=A;break a}}C=null}if(!C)return{isValid:!1,value:void 0};C=xuD(C);S=H.end;return NN(C,H.start)||NN(S,C)?{isValid:!1,value:void 0}:{isValid:!0,value:C}};
MGE=function(H){var C=ZFU;C=C===void 0?ce6:C;var S=H.columnsToShow||[],w=YOi(H.columnDimensions,H.columnsToShow,H.leftFloatingColumns,C);return S.map(function(A,J){var c=H.columns[A];if(c===void 0)throw Error("Vh");var Y=w?w[J]:"";var M=H.getCustomTooltip?H.getCustomTooltip(A,c.headerTooltipParagraphs):c.headerTooltipParagraphs;var m=zyw(H,A);return{type:A,index:J,style:Y,classes:m,headerName:c.headerName||"",headerIcon:c.headerIcon,headerTooltipParagraphs:M||[],headerTooltipHelpContext:c.headerTooltipHelpContext,
sortOrders:c.sortOrders||[],selectionState:c.isSelectionCheckbox?H.selectionState:void 0}})};
zyw=function(H,C){var S=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],w=H.columns[C];if(w===void 0)return"";var A=S.includes("DEFAULTS")&&w.cssClass?[w.cssClass]:[];if(S.includes("SORTING")){w.sortOrders&&w.sortOrders.length&&A.push("sortable");if(H.sorting&&H.sorting.columnType===C)a:switch(H.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var J="column-sorted";break a;default:J=""}else J="";J&&A.push(J)}S.includes("FLOATING")&&(C=H.columnsToShow.indexOf(C),H.leftFloatingColumns&&C<H.leftFloatingColumns&&
A.push("floating-column"),H.leftFloatingColumns&&C===H.leftFloatingColumns-1&&A.push("last-floating-column"));S.includes("RIGHT_ALIGN")&&w.rightAlignHeader&&A.push("right-align");return A.filter(function(c){return c}).join(" ")};
YOi=function(H,C,S,w){S=S===void 0?0:S;w=w===void 0?ce6:w;if(H){var A=[],J=0;qOD(H,C,w).forEach(function(c,Y){var M="min-width:"+c.minWidth+"px;padding-left:"+c.paddingLeft+"px;padding-right:"+c.paddingRight+"px;flex:"+c.flexGrow+" 0 "+c.minWidth+"px;";c.maxWidth!==Infinity&&(M=[M,"max-width:"+c.maxWidth+"px;"].join(""));J>0&&Y<S&&(M=[M,"left:"+J+"px;"].join(""));A.push(M);J+=c.minWidth+c.paddingLeft+c.paddingRight});
return A}};
qOD=function(H,C,S){S=S===void 0?ce6:S;return C.map(function(w,A){w=H&&H[w]||{};var J=A===0?S.paddingLeftFirstColumn:S.padding;w.paddingLeft!==void 0&&(J=w.paddingLeft);A=A===C.length-1?S.paddingRightLastColumn:S.padding;w.paddingRight!==void 0&&(A=w.paddingRight);return{paddingLeft:J,paddingRight:A,minWidth:w.minWidth!==void 0?w.minWidth:S.minWidth,maxWidth:w.maxWidth!==void 0?w.maxWidth:S.maxWidth,flexGrow:w.flexGrow!==void 0?w.flexGrow:S.flexGrow}})};
Tr$=function(H){var C=H.reduce(function(w,A){var J=A.columnId,c={};A.headerText&&(c.headerName=_.jt(A.headerText));A.rightAlignHeader&&(c.rightAlignHeader=A.rightAlignHeader);var Y;if((Y=A.headerIcon)==null?0:Y.iconType)c.headerIcon=_.bJ(A.headerIcon.iconType);w[J]=c;return w},{}),S=H.filter(function(w){return!w.hideColumn}).map(function(w){return w.columnId});
H=H.filter(function(w){return!!w.dimensions}).reduce(function(w,A){w[A.columnId]=A.dimensions;
return w},{});
return{columns:C,columnsToShow:S,columnDimensions:H}};
_.mB6=function(H){return H?H.simpleText?H.simpleText:H.runs?H.runs.map(function(C){return C.text}).join(""):"":""};
E3U=function(H){var C=H.data;var S=H.onTap;var w=H.isSelected;var A=H.onFocusIn;if(!C)return{};H=WK$(C);w===void 0&&(w=C==null?void 0:C.isSelected);var J;return{text:yeV(C,H),startIcon:(J=C.icon)==null?void 0:J.iconType,state:w?0:2,type:0,onTap:NrW(C,S),accessibilityLabel:bF7(C,H),onFocusIn:function(){return A==null?void 0:A()}}};
yeV=function(H,C){if(!C)return H.text?_.mB6(H.text):void 0};
NrW=function(H,C){return function(S){C==null||C(S,H)}};
WK$=function(H){H=H.style&&H.style.styleType;return!nqp&&H==="STYLE_EXPLORE_LAUNCHER_CHIP"};
bF7=function(H,C){if(C){var S,w,A;return(A=(S=H.accessibilityData)==null?void 0:(w=S.accessibilityData)==null?void 0:w.label)!=null?A:yeV(H,!1)}};
eA=function(H){return{signalAction:{signal:H}}};
GLU=function(){return _.rh("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?ey7:_.uDi};
fOE=function(H,C){H=H===void 0?"SOFT_RELOAD_PAGE":H;C=C===void 0?49504:C;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.cF(_.fL("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:C}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:H}}]}}}};
v3V=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.cF(_.fL("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:GLU()}};
lOp=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.cF(_.fL("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:GLU()}};
VGW=function(H,C){var S=_.cF(_.fL("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),w=_.cF(_.fL("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),A={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.cF(_.fL("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};A.serviceEndpoint=H?H:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[eA("SOFT_RELOAD_PAGE")]}};return{title:S,bodyText:w,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:A},
style:{value:C!=null?C:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
OF0=function(H){H=H===void 0?{}:H;return{title:_.cF(H.localizedZeroStateTitleText===void 0?"":H.localizedZeroStateTitleText),bodyText:_.cF(H.localizedZeroStateMessage===void 0?"":H.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.cF(H.localizedZeroStateButtonText===void 0?"":H.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[o36]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
QKi=function(H){H=H===void 0?{}:H;return{title:_.cF(H.localizedOptInBannerTitleText===void 0?"":H.localizedOptInBannerTitleText),titleLength:19,subtitle:_.cF(H.localizedOptInMessage===void 0?"":H.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.cF(_.fL("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:_.cF(_.fL("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:[XzW]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
$BV=function(H,C){var S=C=C===void 0?{}:C;C=S.offlineTitleText===void 0?"":S.offlineTitleText;var w=S.offlineDescriptionText===void 0?"":S.offlineDescriptionText,A=S.formattedSupplementalText,J=S.actionButtonText===void 0?"":S.actionButtonText,c=S.titleText===void 0?"":S.titleText;S=S.descriptionText===void 0?"":S.descriptionText;var Y={title:J,accessibilityText:J,style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:266213}},onTap:{innertubeCommand:{browseEndpoint:{browseId:"SPunlimited"},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse",rootVe:93498,url:"/premium",webPageType:"WEB_PAGE_TYPE_BROWSE"}}}}};H||(c=C,S=w,Y={title:J,accessibilityText:J,style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_DISABLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:266213}}});
return{title:_.cF(c),titleLength:c.length,overrideTitleMaxFontSize:30,subtitle:_.cF(S),supplementalText:A,primaryButton:{buttonViewModel:Y},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[dBW]},darkTileImage:{thumbnails:[PNZ]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.hyV=function(H,C,S,w,A,J,c,Y,M,m,W){A=A===void 0?!1:A;J=J===void 0?!1:J;c=c===void 0?0:c;Y=Y===void 0?-Infinity:Y;M=M===void 0?!1:M;m=m===void 0?!1:m;W=W===void 0?!1:W;var y=[],N=_.cF(_.fL("SMART_DOWNLOADS",void 0,"Smart downloads")),b=_.cF(pzW(c,Y,H.length));Y=c=void 0;m?c={statementBannerRenderer:$BV(W,w)}:A?H.length>0?Y=kL0(H,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.E("kevlar_manual_downloads_above"),N,b):M?Y={alertBannerViewModel:{heading:{content:S.localizedOptInBannerTitleText===
void 0?"":S.localizedOptInBannerTitleText},body:{content:S.localizedPromptMessage===void 0?"":S.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.fL("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.fL("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:_.Sew}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:J&&(Y={backgroundPromoRenderer:{bodyText:_.cF(_.fL("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),thumbnail:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/useredu/grey_loading_spinner.gif"}]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_CONTENT_HEIGHT"}}}):
J&&(Y={alertBannerViewModel:{heading:{content:S.localizedOptInBannerTitleText===void 0?"":S.localizedOptInBannerTitleText},body:{content:S.localizedOptInMessage===void 0?"":S.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.fL("TURN_ON",void 0,"Turn on"),accessibilityText:_.fL("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}}}}}});S=_.cF(_.fL("YOUR_DOWNLOADS",void 0,"Your downloads"));w=void 0;C.length>0?(w=void 0,_.E("kevlar_display_downloads_numbers")&&(w=_.cF(_.vH("VIDEO_COUNT",C.length))),w=kL0(C,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,S,w)):A||H.length||
m||(w={backgroundPromoRenderer:{bodyText:_.cF(_.fL("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}}}});c?y.push({richSectionRenderer:{content:c}}):Y&&!_.E("kevlar_manual_downloads_above")&&y.push({richSectionRenderer:{content:Y,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
w&&y.push({richSectionRenderer:{content:w,loggingDirectives:{clientVeSpec:{uiType:51721}}}});Y&&_.E("kevlar_manual_downloads_above")&&y.push({richSectionRenderer:{content:Y,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(C.length>0||A&&H.length>0&&!m)&&y.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.cF(_.fL("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}},
loggingDirectives:{clientVeSpec:{uiType:133683}}}}}});return{contents:y}};
_.reE=function(H){return n3E(H,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.BrW=function(H){return n3E(H,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
n3E=function(H,C){var S=[];H=kL0(H,C,!0);S.push({richSectionRenderer:{content:H}});return{contents:S}};
kL0=function(H,C,S,w,A){S=S===void 0?!1:S;var J="RESPONSIVE_SIZE_STANDARD";_.E("kevlar_standard_rich_grid_on_offline_home")&&C==="RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE"?J="RESPONSIVE_SIZE_STANDARD":_.E("kevlar_modern_downloads_compact")?J="RESPONSIVE_SIZE_COMPACT":_.E("kevlar_modern_downloads_extra_compact")?J="RESPONSIVE_SIZE_EXTRA_COMPACT":_.E("kevlar_modern_downloads_tiny")&&(J="RESPONSIVE_SIZE_TINY");H={isExpanded:S,contents:uK(H),entitySelectorType:C,responsiveContainerConfiguration:{responsiveSize:J}};
w&&(H.title=w);A&&(H.subtitle=A);S||(_.E("kevlar_smart_downloads_show_more_button")?(H.showMoreButton={buttonRenderer:{accessibility:{label:_.fL("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.cF(_.fL("SHOW_MORE",void 0,"Show more"))}},H.showLessButton={buttonRenderer:{accessibility:{label:_.fL("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",
text:_.cF(_.fL("SHOW_LESS",void 0,"Show less"))}}):(H.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.fL("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}}}},H.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.fL("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}}}},H.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.fL("VIEW_ALL",void 0,"View all"),accessibilityText:_.fL("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:_.F_("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:H}};
uK=function(H){var C=[];H=_.Z(H);for(var S=H.next();!S.done;S=H.next())if(S=S.value,h$E(S)){var w=C,A=w.push;var J=void 0;if(S==null?0:(J=S.videoEntity)==null?0:J.videoId){J=Ru(_.AG().getState(),S.videoEntity.videoId);var c=_.AG().getState();var Y=_.ba(S.videoEntity.videoId,"mainVideoEntity");c=!!_.$6(c.entities)[Y];c={videoId:S.videoEntity.videoId,title:Y6(S.videoEntity.title),shortBylineText:Y6(S.channelEntity.title),thumbnail:S.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:c&&_.E("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:TZ7(S.videoEntity.videoId,J,S.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.fL("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};S.videoEntity.lengthSeconds&&(c.thumbnailOverlays=zcp(S.videoEntity.lengthSeconds,J));c.isWatched=J>0;_.E("kevlar_modern_downloads_page")&&(c.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:S.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.fL("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},c.badges=void 0);S=c}else S={};A.call(w,{richItemRenderer:{content:{videoRenderer:S},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(kN7(S)){w=C;A=w.push;var M=Y=J=void 0,m=void 0,W=void 0,y=void 0,N=void 0,b=void 0,u=void 0,O=void 0,d=void 0,p=void 0;c=S.mainPlaylistEntity.playlistId;var k=S==null?void 0:(p=S.mainPlaylistEntity)==null?void 0:(d=p.thumbnailStyleData)==null?void 0:(O=d[0])==null?void 0:(u=O.value)==null?void 0:(b=u.collageThumbnail)==
null?void 0:b.coverThumbnail;if(c&&k){b=mJ6(c);!_.E("enable_offline_playlist_page")&&(S==null?0:(N=S.mainPlaylistEntity)==null?0:N.videos)&&(N=S==null?void 0:(y=S.mainPlaylistEntity)==null?void 0:(W=y.videos)==null?void 0:W[0],W=_.Tn(N).entityId,W=JSON.parse(W).videoId,W!==void 0&&(y=Ru(_.AG().getState(),W),b=_.Zy(W,c,void 0,void 0,y)));W=[];if(S==null?0:(m=S.mainPlaylistEntity)==null?0:(M=m.videos)==null?0:M.length)W=[geW(),Object.assign({},(Y=LN0(S==null?void 0:S.mainPlaylistEntity.videos.length))!=
null?Y:{})];S={playlistId:c,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:k}},navigationEndpoint:b,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:W,title:Y6(S.mainPlaylistEntity.title),shortBylineText:Y6(S==null?void 0:(J=S.channelEntity)==null?void 0:J.title),badges:[{metadataBadgeRenderer:{label:_.fL("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.E("kevlar_modern_downloads_page")&&(S.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:DBD,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:c,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.fL("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},S.badges=void 0)}else S=void 0;A.call(w,{richItemRenderer:{content:{playlistRenderer:S},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return C};
pzW=function(H,C,S){H=H?KKU(H):"";C!==void 0&&isFinite(C)?C===0?C=_.fL("UPDATING",void 0,"Updating..."):(C=YAw(new Date(C),new Date),C=_.fL("UPDATED_TIME",{relative_time:C},"Updated "+C)):C="";var w="";H&&C&&(w=" \u2022 ");if(S&&_.E("kevlar_display_downloads_numbers")){S=_.vH("VIDEO_COUNT",S);if(H||C)w=" \u2022 ";return S+w+H+w+C}return H+w+C};
tGU=function(H){return oP7(H.entities).length};
_.LKZ=function(H,C){var S=qoE(H.responsiveSize),w;H=!((w=H.responsiveMap)==null||!w.some(function(A){return A.containerSize==="CONTAINER_SIZE_NARROW"&&A.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:C,sizing:S,enableFullBleedForSingleCol:!1,isCompactList:S==="COMPACT"&&H}};
g3Z=function(H,C){return _.Ea(H.entities,"votingEntity",C)};
G_=function(H){if(H){var C;return((C=_.JA().resolve(_.AA(_.sU)))==null?0:C())?H.darkTheme:H.lightTheme}};
UB6=function(H,C){if(H.simpleText)return Object.assign({},H,{simpleText:im(H.simpleText,C)});if(!H.runs)return H;for(var S=Object.assign({},H,{runs:[]}),w=0,A=_.Z(H.runs),J=A.next();!J.done;J=A.next())if(J=J.value,J.text)if(w+J.text.length<=C)S.runs.push(J),w+=J.text.length;else return S.runs.push(Object.assign({},J,{text:im(J.text,C-w)})),S;return H};
RyV=function(H,C){return _.Ea(H.entities,"chipBarStateEntity",C)};
IO$=function(H,C){return _.Ea(H.entities,"chipEntity",C)};
xBW=function(H,C,S,w){return function(){var A=aOw.has(H.displayType)&&H.selected,J=A&&H.deselectCommand?H.deselectCommand:H.tapCommand;!J||A&&w||_.Im(J,{form:{element:C==null?void 0:C.value}});S==null||S()}};
HKV=function(H){switch(H){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"dividerViewModelBaseDividerFullBleed4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"dividerViewModelBaseDividerFullBleedThick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"dividerViewModelBaseDividerFullBleed8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"dividerViewModelBaseDividerFullBleed12px";default:return""}};
iKZ=function(H,C){return{triggeringElement:H,onDwellTriggeredFn:function(){var S={triggeringElement:H,loadVideoPreviewEventData:C},w=document.querySelector(".video-preview");w&&w.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:S}))},
onDwellEndFn:function(){var S=document.querySelector(".video-preview");S&&S.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
Chw=function(H,C){var S=_.JA().resolve(_.AA(C1Z)),w=function(){var A=C();return S&&A?iKZ(H.value,A):null};
_.d6(function(){var A=w();S&&A&&Promise.resolve().then(function(){S.registerElement(A)});
_.PN(function(){S&&A&&Promise.resolve().then(function(){_.tB(S,A)})})},"csPUge")};
sQp=function(H){var C=H.dataset.resizeObserverId;if(C)return C;C=""+SVw++;return H.dataset.resizeObserverId=C};
jQ6=function(H,C){var S=sQp(H);fN.has(S)||fN.set(S,new Set);fN.get(S).add(C);vQ.has(S)&&C(Object.assign({},{target:H},vQ.get(S)))};
wiE=function(H){H=_.Z(H);for(var C=H.next();!C.done;C=H.next()){C=C.value;var S=sQp(C.target),w=Object.assign({},{target:C.target},vQ.get(S));if(w!=null&&w.contentRect?w.contentRect.width!==C.contentRect.width||w.contentRect.height!==C.contentRect.height:1)for(vQ.set(S,{borderBoxSize:C.borderBoxSize,contentBoxSize:C.contentBoxSize,contentRect:C.contentRect,devicePixelContentBoxSize:C.devicePixelContentBoxSize}),S=_.Z(fN.get(S)||[]),w=S.next();!w.done;w=S.next())w=w.value,w(C)}};
JQw=function(){return lK?lK:lK=new AQV(wiE)};
FWZ=function(H,C){var S=sQp(H);fN.has(S)&&(fN.get(S).delete(C),fN.get(S).size===0&&(fN.delete(S),vQ.delete(S),lK.unobserve(H),delete H.dataset.resizeObserverId));fN.size===0&&lK&&(lK.disconnect(),lK=void 0)};
cQW=function(H,C){var S=_.JA().resolve(ZV);return ZKZ.map(function(w){return S.observe(H,C,w)})};
YVE=function(H){var C=_.JA().resolve(ZV);H.forEach(function(S){C.unobserveByKey(S)})};
_.qVZ=function(H,C){var S=Object.assign({},zC$,C);C=_.Z($KE());var w=C.next().value,A=C.next().value,J=function(c){var Y=c.contentRect.height;if((c=c.contentRect.width)||Y||S.canHaveZeroSize)w.width()===c&&w.height()===Y||A(w,{height:Y,width:c})};
_.$T(function(){var c=H instanceof HTMLElement?H:H.value,Y=ME$(J,S.throttleMs),M=[];S.useVisibilityObserver&&(M=cQW(c,function(m,W){requestAnimationFrame(function(){W==="visible"?(jQ6(c,Y),JQw().observe(c)):FWZ(c,Y)})}));
M.length||(jQ6(c,Y),JQw().observe(c));_.PN(function(){M.length&&(YVE(M),M.length=0);FWZ(c,Y)})});
return w};
m1Z=function(H,C,S,w,A){H=C?H.switchOffCommand:H.switchOnCommand;if(w&&A)TJ6(H,S,A);else{var J,c;(J=_.U4({elementsCommand:H}))==null||(c=J.onclick)==null||c.call(J,S)}};
TJ6=function(H,C,S){H=_.U4({elementsCommand:H,additionalCommandArgs:{commandController:{onSuccess:function(){S(!1)},
onServerError:function(){S(!1)}}}});
if(H==null?0:H.onclick)H.onclick(C),S(!0)};
yQw=function(H){if(H)return _.e(H,WWu)};
NJV=function(H){if(!((H==null?0:H.entitySelectorType)&&(H==null?0:H.entityKey)))return{};switch(H.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":if(_.E("enable_web_shorts_captions_language_command")){var C;var S=(C=_.br())==null?void 0:C.getOption("captions","track");var w,A=typeof(S==null?void 0:S.translationLanguage)==="object"&&((w=S.translationLanguage)==null?void 0:w.languageName)||(S==null?void 0:S.displayName)||"";S=Object.assign({},!!A&&
{selectionText:{content:A}},!!A&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:typeof(S==null?void 0:S.displayName)==="undefined"})}else S={};return S;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.E("web_shorts_audio_track_picker")){var J;w=((J=_.br())==null?void 0:J.getAudioTrack())||void 0;C=w==null?void 0:(A=w.getLanguageInfo())==null?void 0:A.getName();w=Object.assign({},{selectionText:{content:C}},C&&!(w==null?
0:(S=w.getLanguageInfo())==null?0:S.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}else w={};return w;default:return{}}};
bKZ=function(H){var C=["A".toString(),"BUTTON".toString()];return function(S){var w=function(A){_.hB(_.ki(A),S,C)||H(A)};
S.addEventListener("click",w);return function(){S.removeEventListener("click",w)}}};
_.EYw=function(H){return function(){return _.e(H(),_.VB)}};
vY7=function(H,C,S){if(C)return[eCZ];switch(H){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[oJ];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return S?[oJ]:[uMZ,oJ];case "TRANSFER_STATE_PAUSED_BY_USER":return[GyU,oJ];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[f7i,oJ];default:return[eCZ]}};
l7u=function(H,C,S,w){return vY7(H,C,w).map(function(A){var J=A.text,c=A.iconType,Y=A.videoAction;A=A.playlistAction;J=J?{content:J}:void 0;c=c&&{sources:[{clientResource:{imageName:c}}]};var M=(0,_.hb.unsafeClone)(S);if(M){var m=_.e(M,_.ur),W=_.e(M,_.Gb);m&&Y?m.action=Y:W&&A&&(W.action=A)}return{title:J,leadingImage:c,rendererContext:M&&{commandContext:{onTap:{innertubeCommand:M}}}}})};
VEE=function(H){H=_.nn(H.rendererContext);var C;return(C=_.e(H,_.Gb))==null?void 0:C.playlistId};
oYp=function(H){var C;return(C=H.listItems)==null?void 0:C.some(function(S){var w;return _.rw((w=_.e(S,_.Q4))==null?void 0:w.rendererContext)})};
QQV=function(H){var C;return(C=H.listItems)==null?void 0:C.some(function(S){var w,A,J=(A=(w=_.e(S,OKU))==null?void 0:w.defaultListItem)!=null?A:S;S=_.e(J,_.Q4);return!!_.e(S==null?void 0:S.leadingAccessory,XiV)})};
$10=function(H){var C=H.element;var S=H.veType;var w=H.storedVisualElement===void 0?null:H.storedVisualElement;var A=H.elementIndex===void 0?0:H.elementIndex;H=H.clientYouTubeData;var J=_.Dg();J!==d1E&&(Ph7.clear(),d1E=J);if(C.visualElement&&Ph7.has(C.visualElement))return null;if(w&&Ph7.has(w))return C.visualElement=w,null;S=_.vI(_.lJ(),{veType:S,elementIndex:A,clientYouTubeData:H});if(!S)return null;C.visualElement=S;Ph7.add(S);return S};
_.Oj=function(H,C,S,w){S=S===void 0?null:S;w=w===void 0?GQ6:w;var A=A===void 0?null:A;hx(function(){if(C){S instanceof Function&&(S=S());var J=$10({element:C,veType:H,storedVisualElement:S,clientYouTubeData:void 0});J&&(lWU(C,A),w(J))}})};
Xe=function(H,C){if(H){switch(C){case 0:H=H.primaryTitleColor;break;case 1:H=H.secondaryTitleColor;break;case 2:H=H.surgeColor;break;case 3:H=H.section2Color;break;case 4:H=H.section3Color;break;default:return}if(H)return _.Iw(H)}};
QB=function(H,C){if(H){switch(C){case 0:H=H.primaryTitleColor;break;case 1:H=H.secondaryTitleColor;break;case 2:H=H.surgeColor;break;case 3:H=H.section2Color;break;case 4:H=H.section3Color;break;default:return}if(H)return _.Iw(H)}};
piZ=function(H){return H?_.aw(H):""};
kyZ=function(H){return(H==null?void 0:H.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
hCi=function(H,C){return _.Ea(H.entities,"videoOverviewAsyncDataEntity",C)};
nY0=function(H,C){var S;return"linear-gradient(to bottom, "+((S=C==null?void 0:C.map(function(w){var A=H?w.darkThemeColor:w.lightThemeColor;return A?_.aw(A)+" "+((w==null?void 0:w.startLocation)||0)*100+"%":"transparent"}))==null?void 0:S.join(", "))+")"};
rQZ=function(H,C,S,w,A){if(!((w==null?0:w.height)&&(w==null?0:w.width)))return{size:0};var J=w.width;w=w.height;if(A)return C==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||C==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&J>w?{size:312/fIU}:C==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(S!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||H!==1&&H!==2||C!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&C!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&C!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(C==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||C==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||w===J)switch(H){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(C==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||w>J)switch(H){case 1:case 3:return{size:240*GkD};default:return{size:360*GkD}}switch(H){case 1:case 2:return{size:1/fIU*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.BJU=function(H){if(!("matchMedia"in window))return _.Ug(Error("Wh")),function(){return!1};
var C=window.matchMedia(H);H=_.Z(_.mB(C.matches,void 0,"jLJc8e"));var S=H.next().value,w=H.next().value,A=function(J){w(J.matches)};
C.addEventListener?(C.addEventListener("change",A),_.PN(function(){C.removeEventListener("change",A)})):C.addListener&&(C.addListener(A),_.PN(function(){C.removeListener(A)}));
return S};
D1U=function(H){return H==="IMAGE_BANNER_STYLE_INSET"||H==="IMAGE_BANNER_STYLE_UNKNOWN"};
KWZ=function(){if(!("matchMedia"in window))return _.Ug(Error("Wh")),function(){return 0};
var H=pp(function(){return window.matchMedia("(max-width: 527.9px)")}),C=pp(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),S=pp(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),w=pp(function(){return window.matchMedia("(min-width: 1024px)")}),A=_.Z(_.mB(H.matches,void 0,"og9kEc")),J=A.next().value,c=A.next().value;
A=_.Z(_.mB(C.matches,void 0,"ybDWCb"));var Y=A.next().value,M=A.next().value;A=_.Z(_.mB(S.matches,void 0,"o0Gfh"));var m=A.next().value,W=A.next().value;A=_.Z(_.mB(w.matches,void 0,"yqUUgd"));var y=A.next().value,N=A.next().value,b=pp(function(){return function(p){c(p.matches)}}),u=pp(function(){return function(p){M(p.matches)}}),O=pp(function(){return function(p){W(p.matches)}}),d=pp(function(){return function(p){N(p.matches)}});
_.$T(function(){H.addEventListener?(H.addEventListener("change",b),C.addEventListener("change",u),S.addEventListener("change",O),w.addEventListener("change",d)):H.addListener&&(H.addListener(b),C.addListener(u),S.addListener(O),w.addListener(d));_.PN(function(){H.removeEventListener?(H.removeEventListener("change",b),C.removeEventListener("change",u),S.removeEventListener("change",O),w.removeEventListener("change",d)):H.removeListener&&(H.removeListener(b),C.removeListener(u),S.removeListener(O),
w.removeListener(d))})});
return function(){return J()?1:Y()?2:m()?3:y()?4:0}};
tEi=function(H){var C=0;H=_.Z([H.title,H.metadata,H.actions,H.description,H.attribution]);for(var S=H.next();!S.done;S=H.next())S.value&&C++;return C};
LWE=function(H){return H===1||H===2?1:0};
U1D=function(H){H=(new gYZ).parse(H);return(new ej).render(H).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(C){var S=C.split(":").map(Number),w=0,A=0;if(S.length===3)S=_.Z(S),w=S.next().value,A=S.next().value,S=S.next().value;else if(S.length===2)S=_.Z(S),A=S.next().value,S=S.next().value;else if(S.length===1)S=_.Z(S).next().value;else throw Error("Xh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(w*3600+A*60+S)+'" role="button">'+C+"</span>"})};
RCZ=function(H){H=_.Z(H.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var C=H.next(),S={};!C.done;S={clickHandler$jscomp$5:void 0},C=H.next()){C=C.value;S.clickHandler$jscomp$5=function(A){A=Number(A.target.getAttribute("data-time"));if(isNaN(A))throw Error("Yh");var J;(J=_.br())==null||J.seekTo(A,!0)};
var w=function(A){return function(J){J.key!=="Enter"&&J.key!=="Space"||(0,A.clickHandler$jscomp$5)(J)}}(S);
C.setAttribute("tabindex","0");C.removeEventListener("click",S.clickHandler$jscomp$5);C.removeEventListener("keydown",w);C.addEventListener("click",S.clickHandler$jscomp$5);C.addEventListener("keydown",w)}};
I7E=function(){return _.q("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.q(d$,{percentWidth:100}),_.q(d$,{animationDelay:200}),_.q(d$,{animationDelay:400}),_.q(d$,{animationDelay:600}),_.q(d$,{animationDelay:800,percentWidth:60}),_.q("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.q(d$,{percentWidth:100}),_.q(d$,{animationDelay:200}),_.q(d$,{animationDelay:400}),_.q(d$,{animationDelay:600,percentWidth:50}))};
d$=function(H){return _.q("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(H.percentWidth===void 0?100:H.percentWidth)+"%"},_.q("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(H.animationDelay===void 0?0:H.animationDelay)+"ms"}))};
a7U=function(){var H=_.Z(_.mB(function(){return""},void 0,"dXJHWc")),C=H.next().value;
return[function(){return C()()},
H.next().value]};
x1Z=function(H,C){H=H?KKU(H):"";C!==void 0&&isFinite(C)?C===0?C=_.fL("UPDATING",void 0,"Updating..."):(C=YAw(new Date(C),new Date),C=_.fL("UPDATED_TIME",{relative_time:C},"Updated "+C)):C="";var S="";H&&C&&(S=" \u2022 ");return _.cF(H+S+C)};
CFZ=function(H,C,S,w,A,J){C=C===void 0?0:C;var c=H_Z[C],Y=c.title,M=c.iconType,m=c.topButtonRenderer,W=c.sectionClientVE;c=c.videoClientVE;var y;if(C!==1||H.length){S=[];H=_.Z(H);for(w=H.next();!w.done;w=H.next()){var N=w.value;if(h$E(N))S.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:N.videoEntity.videoId,title:Y6(N.videoEntity.title),shortBylineText:Y6(N.channelEntity.title),thumbnail:N.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:N.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.fL("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:c}}}}}});else if(kN7(N)){w=S;var b=w.push;var u=void 0,O=void 0,d=void 0,p=void 0,k=void 0,R=void 0,L=void 0,t=void 0,g=N.mainPlaylistEntity.playlistId,ii=N==null?void 0:(t=N.mainPlaylistEntity)==null?void 0:(L=t.thumbnailStyleData)==null?void 0:(R=L[0])==null?void 0:(k=R.value)==null?void 0:(p=k.collageThumbnail)==null?void 0:p.coverThumbnail;p=mJ6(g);if(!_.E("enable_offline_playlist_page")&&
(N==null?0:(d=N.mainPlaylistEntity)==null?0:d.videos)){b:{d=N==null?void 0:(O=N.mainPlaylistEntity)==null?void 0:O.videos;O=_.AG().getState().entities;if(d!=null&&d.length&&O)for(d=_.Z(d),k=d.next();!k.done;k=d.next())if(k=_.Tn(k.value).entityId,(k=JSON.parse(k).videoId)&&l3E(O,k)==="TRANSFER_STATE_COMPLETE"){O=k;break b}O=""}O!==void 0&&(p=Ru(_.AG().getState(),O),p=_.Zy(O,g,void 0,void 0,p))}O=yoU(_.fL("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),mJ6(g));N=g&&ii&&O?{playlistId:g,navigationEndpoint:p,
viewPlaylistText:O,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:ii}},title:Y6(N.mainPlaylistEntity.title),shortBylineText:Y6(N==null?void 0:(u=N.channelEntity)==null?void 0:u.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:i_6,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:g,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.fL("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:c}}}:
void 0;b.call(w,{gridPlaylistRenderer:N})}}c={gridRenderer:{items:S}};C===1&&(y=x1Z(A,J))}else if(w){var FW=_.cF((b=S==null?void 0:S.localizedPromptMessage)!=null?b:"");c={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.cF(_.fL("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.Sew}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.cF(_.fL("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};y=x1Z(A,J)}else FW=_.cF(_.fL("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
c={};return{contents:[{shelfRenderer:{title:Y,titleAnnotation:y,icon:{iconType:M},subtitle:FW,content:c,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:m}]}}}}],loggingDirectives:{clientVeSpec:{uiType:W}}}};
SJZ=function(H,C,S,w,A,J,c,Y,M,m,W){S=S===void 0?{}:S;w=w===void 0?{}:w;A=A===void 0?!1:A;J=J===void 0?!1:J;c=c===void 0?!1:c;Y=Y===void 0?!1:Y;M=M===void 0?!1:M;m=m===void 0?0:m;W=W===void 0?-Infinity:W;if(!(C.length||H.length||A||Y))return J?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:OF0(S)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.cF(_.fL("DO_NOT_HAVE_DOWNLOADS",void 0,"You do not have any downloads")),icon:{iconType:"OFFLINE_NO_CONTENT"},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},
loggingDirectives:{clientVeSpec:{uiType:21411}}}}]}}];var y=[];H.length&&y.push(CFZ(H,0));Y?y.push({contents:[{statementBannerRenderer:$BV(M,w)}]}):A?y.push(CFZ(C,1,S,c,m,W)):J&&y.push({contents:[{statementBannerRenderer:QKi(S)}]});(A&&C.length||H.length)&&y.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.cF(_.fL("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}}}}]});
return y.map(function(N){return{itemSectionRenderer:N}})};
PQ=function(H,C){if(typeof H!=="object")return null;H=_.Z(Object.entries(H));for(var S=H.next();!S.done;S=H.next()){var w=_.Z(S.value);S=w.next().value;w=w.next().value;if(S===C)return S;if(w=PQ(w,C))return S+"."+w}return null};
$Q=function(H){var C=H.content;return(H=H.styleRuns)&&C?{runs:H.map(function(S){var w={text:C.slice(S.startIndex,S.startIndex+S.length)};S.fontColor&&(w.textColor=S.fontColor);return w})}:{simpleText:C}};
wRp=function(H,C,S,w){var A=s5Z;w&&(H.quantity=w);if(!H.quantity||!H.maxQuantity)return{};w=H.minusButton;var J=H.plusButton,c,Y,M,m;return{value:H.quantity,maxValue:H.maxQuantity,onChangeCallback:function(W){A(H,W)},
minusLabel:(c=_.e(w,j5D))==null?void 0:c.label,minimumReachedLabel:(Y=_.e(w,j5D))==null?void 0:Y.limitReachedLabel,plusLabel:(M=_.e(J,j5D))==null?void 0:M.label,maximumReachedLabel:(m=_.e(J,j5D))==null?void 0:m.limitReachedLabel,disabled:C,onRemoveCommand:S}};
s5Z=function(H,C){var S=H.quantityIncrementerEntityKey;if(S){var w={};w.quantity=C;_.Ax(_.pN("quantityIncrementerEntity",S,w));H.onChangeCommand&&_.Im(H.onChangeCommand)}};
AL0=function(H){if(H)return H===document.body?document.documentElement:/(auto|scroll)/.test(getComputedStyle(H).overflowY)?H:AL0(H.parentElement)};
Z_0=function(H,C){(H=JL$(H))&&((_.E("enable_mini_app_command_handler_mweb_fix")?0:C)?FOU.push({command:H,sourceData:{},commandContext:void 0}):_.JA().resolve(_.ZQ).resolveCommand(H))};
JL$=function(H){return _.e(H,_.tx)};
cLD=function(){var H=window.performance.timeOrigin+window.performance.now(),C=(new _.kQ).setSeconds(H/1E9);return _.iB(C,2,_.jo(H%1E9),0)};
z7Z=function(H,C){var S;H=(S=_.e(_.e(H,_.tx),YJ6))==null?void 0:S.methodName;var w,A;(S=window.youtubewebview||((w=window.webkit)==null?void 0:(A=w.messageHandlers)==null?void 0:A.youtubewebview))&&H&&(w=new hh,H=_.XA(w,1,H),H=_.QO(H.JSC$12406_serializeBinary()),C=_.QO(C),S.postMessage(H+","+C))};
nN=function(H,C){var S=_.e(_.e(H,_.tx),YJ6);S&&(C&&(S.serializedAdditionalMetadata=_.QO(C)),Z_0(H,!0))};
MeZ=function(H){switch(H){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"}};
qJE=function(){return!!_.rh("ID_TOKEN")};
WOp=function(H){return H instanceof Error&&H.cause instanceof TXp&&H.cause.rpcErrorCode!==void 0?!m2D.includes(H.cause.rpcErrorCode):!0};
NXW=function(){return _.i5(yLw,{authuser:""+(_.rh("SESSION_INDEX")||0)})};
r$=function(H,C,S,w){S=S===void 0?"MINI_APP_SDK_API_UNSPECIFIED":S;w=w===void 0?"":w;var A=new _.X0;S={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:w,sdkApi:S};H instanceof Error&&(A.message=H.message,A.name=H.name,H.cause instanceof TXp&&H.cause.rpcErrorCode!==void 0&&(S.rpcErrorCode=H.cause.rpcErrorCode));var J;(J=C.onError)==null||J.call(C,{loggingError:A,metadata:S})};
EkU=function(H,C,S,w){switch(H){case "MINI_APP_SOURCE_GAMESNACKS":return new BQ(C,S,w);default:return new b_0(C,S,w)}};
e76=function(H){switch(H){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"}};
uoZ=function(H){switch(H){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"}};
GeE=function(H){switch(H){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"}};
fcU=function(){return Math.floor(Math.random()*4)+1};
vk$=function(H,C,S,w){H=_.Z(Object.entries(H));for(var A=H.next(),J={};!A.done;J={message$jscomp$993:void 0},A=H.next()){var c=_.Z(A.value);A=c.next().value;c=c.next().value;J.message$jscomp$993=c;C.push(setTimeout(function(Y){return function(){w(!1);S(Y.message$jscomp$993.text)}}(J),J.message$jscomp$993.delayMs));
Number(A)>0&&C.push(setTimeout(function(){w(!0)},J.message$jscomp$993.delayMs-400))}};
lcu=function(H,C){var S=S===void 0?GQ6:S;_.E("mweb_fix_monitor_visibility_after_render")?H&&hx(function(){lWU(H,C,S)}):hx(function(){lWU(H,C,S)})};
Ve$=function(H,C){var S=document.createElement("ytd-engagement-panel-section-list-renderer");S.data=H;if(C==null?0:C.isPersistentPanel)S.isPersistentPanel=!0;return S};
Q5u=function(H){okE||(okE=O_u(new _.x6(1,void 0,void 0,XRE),0));var C=okE.format(Math.floor(H));C=Iu==="be"||Iu==="bg"||Iu==="es"||Iu==="et"||Iu==="hu"||Iu==="ka"||Iu==="lv"||Iu==="pl"||Iu==="pt-PT"||Iu==="sq"?C.replace(new RegExp("^(\\d)"+XRE.GROUP_SEP.replace(".","\\.")+"(\\d+("+XRE.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):C;return H>=1E3&&H<=9999&&C[1]==="."&&(Iu==="sl"||Iu==="it")?C.replace(".",""):C};
d2W=function(H,C){tgW("ytd-button-renderer",{data:H,className:C?C.className:"",overrides:C==null?void 0:C.buttonOverrides},D_$)};
pRU=function(H,C,S,w){if(H)return w=w||H.likeStatus,C?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:w==="LIKE",isDisabled:!H.likesAllowed,defaultIcon:{iconType:S},defaultText:w==="LIKE"?H.likeCountWithUnlikeText:H.likeCountText,toggledText:w==="LIKE"?H.likeCountText:H.likeCountWithLikeText,defaultNavigationEndpoint:PFW(H,"LIKE"),defaultServiceEndpoint:$2V(H,"LIKE"),toggledServiceEndpoint:$2V(H,"INDIFFERENT"),defaultTooltip:_.jt(H.likeCountTooltipText),toggledTooltip:_.jt(H.likeCountTooltipText),
targetId:H.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:w==="DISLIKE",isDisabled:!H.likesAllowed,defaultIcon:{iconType:S},defaultText:w==="DISLIKE"?H.dislikeCountWithUndislikeText:H.dislikeCountText,toggledText:w==="DISLIKE"?H.dislikeCountText:H.dislikeCountWithDislikeText,defaultNavigationEndpoint:PFW(H,"DISLIKE"),defaultServiceEndpoint:$2V(H,"DISLIKE"),toggledServiceEndpoint:$2V(H,"INDIFFERENT"),defaultTooltip:_.jt(H.dislikeCountTooltipText),
toggledTooltip:_.jt(H.dislikeCountTooltipText)}};
PFW=function(H,C){if(C==="LIKE")return H.likeCommand;if(C==="DISLIKE")return H.dislikeNavigationEndpoint};
$2V=function(H,C){var S;return(S=H.serviceEndpoints)==null?void 0:S.find(function(w){var A;return((A=_.e(w,_.DB))==null?void 0:A.status)===C})};
_.nku=function(H,C,S){return window.spf&&!_.E("web_disable_spfjs_client")?kei(H,C,S):h7E(H,C)};
kei=function(H,C,S){var w=null,A=(new _.Es(function(J,c){var Y={};if(C){Y.method=C.method;var M=C.postParams||{};FFD(H,C)&&(M[_.rh("XSRF_FIELD_NAME")]=_.rh("XSRF_TOKEN"));Y.postData=_.u5(M);C.type&&(Y.type=C.type);M=C.headers}Y.headers=Sap(H,M);_.E("debug_forward_web_query_parameters")&&(H=_.AfE(H,window.location.search));Y.experimental_headers=Y.headers;Y.onError=function(m){m.err&&m.xhr&&(m.err.params={url:m.xhr.responseURL,response:m.xhr.responseText.substr(0,64)});c(m.err)};
Y.onPartDone=function(m){S&&S.call(null,m.part)};
Y.onDone=function(m){var W=rL$(m.response,"xsrf_token");sE(window.location.href,H)&&W&&_.np("XSRF_TOKEN",W);if(W=rL$(m.response,"service_worker_killswitch"))_.np("SERVICE_WORKER_KILLSWITCH",W),AKu();J(m.response)};
w=spf.request(H,Y)})).then(BXU);
A.thenCatch(function(J){var c=J instanceof _.KN,Y=J&&J.hasOwnProperty("params")&&J.params.response?J.params.response:"";J instanceof Error&&(Y?c?L_D(J):Y===')]}\'\n{"reload":"now"}'?L_D(J):(D2Z(J,H,Y),KOZ(J,Y)?_.Bn(J):_.nC(J)):L_D(J));w&&w.abort()});
return A};
BXU=function(H){if(H.type==="multipart"){var C=H.timing;H=H.parts.reduce(function(S,w){Object.assign(S,w);return S},{});
H.timing=H.timing||{};Object.assign(H.timing,C);H.type="reduced"}return H};
h7E=function(H,C){C=C===void 0?{}:C;var S=null,w=new _.Es(function(A,J){C.onFinish=function(c){if(c.readyState===XMLHttpRequest.DONE)if(c.status===200){if(c.responseType!=="json"){var Y=c.response;Y.substring(0,5)===")]}'\n"&&(Y=Y.substring(5));try{var M=JSON.parse(Y)}catch(m){M=m}}else M=c.response;M instanceof Error?J(M):(Y=rL$(M,"xsrf_token"),sE(window.location.href,H)&&Y&&_.np("XSRF_TOKEN",Y),c=c.responseURL,window.performance&&window.performance.getEntriesByName?(Y=window.performance.getEntriesByName(c).pop())?
c={responseStart:(0,_.Zt)()-(Y.responseEnd-Y.responseStart)}:(Math.random()<.01&&(Y=Error("ji"),Y.params=c,_.Bn(Y)),c={responseStart:-1}):c={responseStart:0},M.timing=M.timing||{},Object.assign(M.timing,c),A(M))}else J(Error("ii`"+c.status))};
(S=_.e$(H,C))||J(Error("ii`"+S.status))});
w.thenCatch(function(A){A instanceof Error&&(D2Z(A,H),KOZ(A)&&(A.level="WARNING"))});
_.E("cancel_pending_navs")&&w.thenCatch(function(){S.abort()});
return w};
rL$=function(H,C){var S=H[C],w=H.parts;H.type==="multipart"&&w&&(S=(H=w.find(function(A){return C in A}))&&H[C]);
return S};
D2Z=function(H,C,S){var w=H.message||"";C={original:w,url:C};if(S)if(w=w.match(/position:?\s*(\d+)/)){w=w&&Number(w[1])?Number(w[1]):0;var A=Math.max(w-25,0);C.position=w;C.response=S.substring(A,w+25)}else C.response=S.substring(0,50);_.DZ(H,C);try{H.message="JSON parse error"}catch(J){}};
KOZ=function(H,C){H=H.message||"";H=!!(H.indexOf("<")>=0||H.indexOf("end of ")>=0||H.indexOf("Unterminated string")>=0||H.indexOf("Unexpected EOF"));if(!H&&C)for(var S=C.length,w=!1,A=0;A<S;A++)if(w&&C[A]==="\\")A++;else if(C[A]==='"')w=!w;else if(C[A]==="<"&&!w){H=!0;break}return H};
teZ=function(){return document.documentElement.hasAttribute("dark")};
_.LOZ=function(H,C){if(H!=="GFEEDBACK"&&H!=="GUIDED_HELP")_.tE(Error("ki`"+H));else{var S=_.JA().resolve(_.AA(_.JB));if(S&&(S=S.getCurrentPage())&&S.getServiceTrackingParams&&(S=S.getServiceTrackingParams()))for(var w=0,A;A=S[w++];)if(A.service===H){if(H=A.params)for(S=0;w=H[S++];)C[w.key]=w.value;break}}};
_.gkp=function(H){var C=_.Zz();C&&(C=C.getPlayer())&&(C.pauseVideo(),H.playback_id=C.getVideoData().cpn,H.eid=C.getVideoData().eventId,Object.assign(H,C.getFeedbackProductData()))};
U2D=function(){var H={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.rh("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(H.enableAnonymousFeedback=!0);_.rh("SESSION_INDEX")&&(H.authuser=String(_.rh("SESSION_INDEX")));_.E("enable_pageid_for_feedback")&&_.rh("DELEGATED_SESSION_ID")&&(H.pageId=String(_.rh("DELEGATED_SESSION_ID")));return H};
_.th=function(H){_.E("enable_ypc_spinners")&&_.q3(H,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},H])};
_.LN=function(H){_.E("enable_ypc_spinners")&&_.q3(H,"yt-close-popup-action",["yt-loading-renderer"])};
R7Z=function(H){return new Promise(function(C,S){_.gC({verifyCommand:{recaptchaToken:H.recaptchaResponse}},{commandController:{onSuccess:function(w,A){A||S("ChallengeService did not return a response.");var J;C({challengeCompleted:(J=A.verified)!=null?J:!1})},
onServerError:function(w,A){S(A)}}})})};
IcV=function(H,C,S,w){C({recaptchaResponse:w}).then(function(A){A.challengeCompleted?_.VD()?(S(3),_.JA().resolve(_.ZQ).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:H}})):S(2):S(4)},function(){S(4)})};
x2$=function(H,C,S){_.Ie(_.qH(ac0,_.rh("HL")),function(){var w;(w=window.grecaptcha)==null||w.ready(function(){var A=window.grecaptcha;A?(S(A.render(H,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:IcV.bind(null,H,R7Z,C)})),C(1)):C(4)})})};
Hai=function(H,C){return function(){switch(C()){case 0:return H().captchaLoadingMessage;case 1:return H().challengeReason;case 3:return H().captchaSuccessfulMessage;case 2:return H().captchaCookieSetFailureMessage;case 4:return H().captchaFailedMessage;default:return H().challengeReason}}()};
_.g$=function(){if(!iau){var H=document.querySelector("#player.skeleton");H&&(_.f6(H),iau=!0)}};
_.SiW=function(){return CO7=A1w()};
wXp=function(){return _.z(function(H){return sHW!==void 0?H.return():H.yield(jHV(),0)})};
jHV=function(){return _.z(function(H){if(H.nextAddress==1)return H.yield(F46(),2);CO7=H.yieldResult;sHW=_.rT.addLowPriorityJob(jHV,5E3);_.oT(H)})};
Yi7=function(H){var C=C===void 0?AuE:C;var S,w,A=(S=H.responseContext)==null?void 0:(w=S.mainAppWebResponseContext)==null?void 0:w.trackingParam;if(!A){C.increment("MISSING");var J,c,Y,M,m,W;_.Bn(new _.X0("282054944_a",{tHt:!!((J=H.responseContext)==null?0:(c=J.mainAppWebResponseContext)==null?0:c.loggedOut),ga6:((Y=H.responseContext)==null?void 0:Y.mainAppWebResponseContext)===void 0,nag:H.responseContext===void 0,cp:(M=H.playabilityStatus)==null?void 0:M.contextParams,iOU:(((m=H.streamingData)==
null?void 0:m.formats)||[]).length>0,xMX:(((W=H.streamingData)==null?void 0:W.adaptiveFormats)||[]).length>0,os:!!H.offlineState,cotn:H.cotn}));return 2}S="";try{S=Jui(A)}catch(b){return C.increment("C_ERROR"),_.nC(b),2}try{var y=_.FM$(S);var N=Zau(y)}catch(b){return C.increment("P_ERROR"),_.nC(b),2}N=_.Za(N,cui,1,_.cl());A=[];N=_.Z(N);for(y=N.next();!y.done;y=N.next())w=y.value,y=w.getPath(),S=(0,_.hb.getValueByKeys)(H,y.split(".")),S=String(S===void 0||S===null?"":S),w=w.getValue()||"",J=/[+\-\/_]/g,
S.replace(J,"")!==w.replace(J,"")&&(C.increment("MISMATCH"),_.E("ab_mis_log_err")&&(S=new _.X0("282054944_p",{mkt:y,g:String(S),e:String(w)}),_.nC(S)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(y)||(y.match(/enforcementMessageViewModel/i)?A.push(3):A.push(2)));if(A.length>0)return Math.max.apply(Math,_.k$(A));C.increment("SUCCESS");return 1};
qii=function(H){var C=new Uj;if(H.interpreterJavascript){var S=_.kzV(H.interpreterJavascript);S=z9W(S).toString();var w=new zYV;_.XA(w,6,S);_.f9(C,1,w,Xd)}else H.interpreterUrl&&(S=_.B9(H.interpreterUrl),S=_.Qv(S).toString(),w=new _.MTi,_.XA(w,4,S),_.f9(C,2,w,Xd));H.interpreterHash&&_.RJ(C,3,H.interpreterHash,Xd);H.program&&_.RJ(C,4,H.program,Xd);H.globalName&&_.RJ(C,5,H.globalName,Xd);H.clientExperimentsStateBlob&&_.RJ(C,7,H.clientExperimentsStateBlob,Xd);return C};
IJ=function(H){var C={};H=_.Z(H.split("&"));for(var S=H.next();!S.done;S=H.next())S=S.value.split("="),S.length===2&&(C[S[0]]=S[1]);return C};
TN0=function(H){return Number(H.t)||7200};
$n6=function(){if(_.E("bg_st_hr"))return"havuokmhhs-0";var H,C=((H=globalThis.performance)==null?void 0:H.timeOrigin)||0;return"havuokmhhs-"+Math.floor(C)};
m0p=function(){return new Promise(function(H){var C=window;C.ntpevasrs!==void 0?H(new aJ(C.ntpevasrs)):(C.ntpqfbel===void 0&&(C.ntpqfbel=[]),C.ntpqfbel.push(function(S){H(new aJ(S))}))})};
WMZ=function(H){var C=H.b6W.bind(H);_.AO("yt.aba.att",C);H=H.z34.bind(H);_.AO("yt.aba.att2",H)};
NN$=function(H){switch(_.EE(H.input)){case _.JG(yuV):var C={};return C.encryptedVideoId=H.innerTubeRequest.externalVideoId,C}return{}};
eYD=function(H){switch(_.EE(H.input)){case _.JG(yuV):if(_.E("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.JG(baE):if(_.E("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.JG(xQ):if(_.E("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&H.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.JG(EG0):var C,S;if(_.E("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((S=_.e((C=H.config)==null?void 0:C.command,WZp))==null?0:S.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.G1E=function(H){var C;if(H.playlistVideoRenderer&&((C=H.playlistVideoRenderer)==null?0:C.engagementBar))return uZ6(H.playlistVideoRenderer.engagementBar);if(_.e(H,Hf)){var S;if(H=(S=_.e(H,Hf))==null?void 0:S.engagementBar)return uZ6(H)}return""};
uZ6=function(H){if(!H)return"";H=_.e(H,_.fn7);if(H==null||!H.actions)return"";H=_.Z(H.actions);for(H=H.next();!H.done;H=H.next()){H=_.e(H.value,_.vGZ);var C=void 0;if((C=H)==null||!C.itemId)break;return H.itemId}return""};
_.lnU=function(H){var C;if(H.playlistVideoRenderer&&((C=H.playlistVideoRenderer)==null?0:C.videoId))return H.playlistVideoRenderer.videoId;if(_.e(H,Hf)){var S,w;if(H=(S=_.e(H,Hf))==null?void 0:(w=S.playlistItemData)==null?void 0:w.videoId)return H}return""};
_.VT0=function(H){var C;if(H.playlistVideoRenderer&&((C=H.playlistVideoRenderer)==null?0:C.voteCount))return H.playlistVideoRenderer.voteCount;if(_.e(H,Hf)){var S,w;if(H=(S=_.e(H,Hf))==null?void 0:(w=S.playlistItemData)==null?void 0:w.voteCount)return H}return 0};
_.iz=function(H,C){return _.Ea(H.entities,"flowStateEntity",C)};
OaU=function(H,C,S,w){var A=void 0;H=_.Z(H[C.iconName]||[]);for(var J=H.next();!J.done;J=H.next()){J=J.value;var c=C.iconSize;var Y=C.iconStyle;c=!c||c===J[2];var M=oG$[J[0]];w&&w!==J[1]||!c||Y&&Y!==M?Y=!1:A?(Y=oG$[J[0]],Y=!!C.iconStyle||Y==="youtube_outline",c=A.version<=J[1],Y=(!!C.iconSize||J[2]===24)&&Y&&c):Y=!0;Y&&(A={name:C.iconName,style:oG$[J[0]],size:J[2],version:J[1],allowMirroring:!!J[3],url:S(C.iconName,J)})}return A};
XXW=function(H,C,S,w){return H+(""+oG$[S[0]]+((w===void 0?0:w)?"_experimental":"")+"/"+C+"/v"+S[1]+"/")+(S[2]+"px.svg")};
QHW=function(H){return _.rh("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.rh("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":H};
d06=function(H,C){return XXW("https://fonts.gstatic.com/s/i/",H,C)};
POU=function(H,C){return XXW("https://fonts.gstatic.com/s/i/",H,C,!0)};
$06=function(H,C){return XXW("https://www.gstatic.com/youtube/img/icons/web/",H,C)};
k1V=function(H){var C=H.enabled;var S=H.itemPlaybackModel;var w=H.thumbnailElRef;var A=H.containerElRef;var J=H.options;var c;_.d6(function(){var Y=A==null?void 0:A.value;var M,m=(M=w())==null?void 0:M.value;M=S();var W=J();if(C&&M&&Y&&m&&(W==null?0:W.thumbnail)){var y={data:M,hostElement:Y},N,b,u=_.E("web_explore_hub_on_hover")||_.E("web_client_explore_hub_on_hover")?[].concat(_.k$((N=W.thumbnailOverlays)!=null?N:[]),_.k$((b=M.overlays)!=null?b:[])):W.thumbnailOverlays||[],O,d;Y={mediaRenderer:y,
lockupElement:Y,thumbnailElement:m,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.L7((O=M.inlinePlayerData)==null?void 0:O.onVisible),navigationEndpoint:_.L7((d=M.inlinePlayerData)==null?void 0:d.onSelect),thumbnail:W.thumbnail,thumbnailOverlays:u,accessibilityText:W.accessibilityText||""},thumbnailSize:W.thumbnailSize,enableRounding:W.enableRounding,mouseleaveCallback:W.mouseleaveCallback}}}else Y=void 0;if(O=Y){var p;(p=c)==null||Cd(p);c=Kn(O);var k,R;((k=S())==null?0:(R=k.inlinePlayerData)==
null?0:R.forceImpAutoplay)&&pXu(c)}},"qy9yNe");
_.PN(function(){var Y;(Y=c)==null||Cd(Y)})};
hYZ=function(H){H=atob(H);for(var C=[],S=0;S<H.length;S++)C.push(H.charCodeAt(S));return new Blob([new Uint8Array(C)],{type:"image/png"})};
ruD=function(H,C,S,w){w=w===void 0?"INSERTION_POSITION_UNSPECIFIED":w;return H({targetId:C},function(A){var J,c=(J=A.contents)!=null?J:[];J=S!=null?S:[];var Y=nGE(c);switch(w){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},A,{contents:[].concat(_.k$(c.slice(0,Y)),_.k$(J),_.k$(c.slice(Y+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},A,{contents:[].concat(_.k$(J),_.k$(c))});case "INSERTION_POSITION_LAST":return Object.assign({},A,{contents:[].concat(_.k$(c),_.k$(J))});
default:return A}})};
D0u=function(H,C,S,w,A){A=A===void 0?"RELATIVE_INSERTION_POSITION_AFTER":A;return H({targetId:C},function(J){var c,Y=(c=J.contents)!=null?c:[];c=BN6(Y,S);if(c<0)return J;c=A==="RELATIVE_INSERTION_POSITION_BEFORE"?c:c+1;return Object.assign({},J,{contents:[].concat(_.k$(Y.slice(0,c)),_.k$(w),_.k$(Y.slice(c)))})})};
nGE=function(H){var C=H.findIndex(function(S){return _.e(S,_.S9)});
return C>=0?C:H.length};
BN6=function(H,C){return H.findIndex(function(S){a:{S=_.Z(Object.values(S));for(var w=S.next();!w.done;w=S.next())if((w=w.value)&&w.targetId){S=w.targetId;break a}S=""}return S===C})};
tT$=function(H,C,S){return H({targetId:C},function(w){var A,J=(A=w.contents)!=null?A:[];return Object.assign({},w,{contents:KM$(J,S)})})};
KM$=function(H,C){return H.filter(function(S){var w=C.includes;a:{S=_.Z(Object.values(S));for(var A=S.next();!A.done;A=S.next())if((A=A.value)&&A.targetId){S=A.targetId;break a}S=""}return!w.call(C,S||"")})};
_.LM$=function(H,C){return{engagementPanelSectionListRenderer:{panelIdentifier:H,identifier:C,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
gGu=function(H,C){H=H.getAvailableAudioTracks();if(H.length)return H==null?void 0:H.find(function(S){var w;return(S==null?void 0:(w=S.getLanguageInfo())==null?void 0:w.getId())===C})};
_.RY$=function(H){var C,S=(C=H.getOption("captions","tracklist",{includeAsr:!0}))!=null?C:[];return S=U0Z(S,H)};
In0=function(H){return H.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
U0Z=function(H,C){C=In0(C);if(C==null||!C.length)return H;var S=C.filter(function(c){return c});
C=H.filter(function(c){return c.languageCode.startsWith("en")});
S=_.Z(S);for(var w=S.next();!w.done;w=S.next())if(w=w.value,C.length){var A=C[0],J=Object.assign({},A);A.languageCode!==w.languageCode&&(J.displayName=A.languageName+" >> "+w.languageName,J.translationLanguage=w,H.push(J))}return H};
anD=function(H,C,S){H=_.RY$(H);if(H.length)return S?H.find(function(w){if(typeof(w==null?void 0:w.translationLanguage)==="object"){var A;return((A=w.translationLanguage)==null?void 0:A.languageCode)===C}return!1}):H==null?void 0:H.find(function(w){return w.languageCode===C})};
x00=function(H){return H.getOption("captions","tracklist",{includeAsr:!0})};
H2u=function(H){var C=H.getAvailableAudioTracks();if(C!=null&&C.length){var S=H.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.k$(C.map(function(w){return{listItemViewModel:{title:{content:w.getLanguageInfo().getName()},isSelected:w.getLanguageInfo().getId()===(S==null?void 0:S.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:w.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
i2W=function(H){return H.getOption("captions","tracklist",{includeAsr:!0})};
CLD=function(H){var C=i2W(H);if(C==null?0:C.length)return C;H.loadModule("captions");return i2W(H)};
S77=function(H){var C=H.getOption("captions","track");if(C)return C;H.loadModule("captions");return H.getOption("captions","track")};
jdi=function(H){var C=CLD(H);if(C!=null&&C.length){var S=S77(H),w;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.fL("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(S==null?0:S.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.k$(C.map(function(A){return{listItemViewModel:{title:{content:A.displayName},
isSelected:A.displayName===(S==null?void 0:S.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:A.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.fL("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!S.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!S.translationLanguage&&{selectionText:{content:(S==null?void 0:(w=S.translationLanguage)==null?void 0:w.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[sdV(H)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
sdV=function(H){var C=In0(H);if(C==null||!C.length)throw Error("Ji");var S=S77(H);H=C.filter(function(w){return!w.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.k$(H.map(function(w){var A;return{listItemViewModel:{title:{content:w.languageName},isSelected:w.languageName===(S==null?void 0:(A=S.translationLanguage)==null?void 0:A.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:w.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
FIw=function(H){return new Promise(function(C,S){if(H===void 0)_.nC(Error("Ni"),"ERROR"),S(Error("Ni"));else{S=new _.wDD;var w=_.A37();S=S.init();var A=_.J3V(_.rh("YPC_MB_URL"),!0);Promise.all([S,A]).then(function(){var J=_.s6.payments.business.integration.ClientTokenFactory.createClientToken(H,w);C(J)})}})};
Y7D=function(H,C,S,w,A,J,c){var Y=_.Cn();S=S.replace(/-/g,"+").replace(/_/g,"/");var M=_.VN().get("hl"),m=_.j9(_.wE),W=C==null?void 0:C.element;W&&_.th(W);Z2$(C,!0);_.c3W(m,S,Y.resolve,function(){W&&_.LN(W)},function(y){W&&_.LN(W);
Y.reject(y)},M,w?function(y){w&&_.ir(H,w,{backend_analytics:y})}:void 0,Y.resolve,A,J,c);
return Y.promise};
Z2$=function(H,C){!(H=H==null?void 0:H.element)||H.tagName!=="YT-BUTTON-RENDERER"&&H.tagName!=="YTD-BUTTON-RENDERER"||(H.disabled=C)};
zhV=function(){var H=_.fL("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.cF(H),actionButton:{buttonRenderer:lOp()}}},popupType:"TOAST"}};
Myi=function(){var H=_.fL("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.cF(H),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
q76=function(H){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:H}]}}};
wR=function(H,C,S,w){var A;return _.z(function(J){if(J.nextAddress==1)return _.en(J,2),J.yield(H,4);if(J.nextAddress!=2)return(A=_.Qf(C.getState().entities).length>0)?J.return({title:_.cF(_.fL("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.cF(_.fL("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:v3V()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
J.return(VGW(S,w));_.Vx(J);return J.return(VGW(S,w))})};
Tj0=function(H,C){return C?C==="PPSV"||OOU(H,C):!1};
maZ=function(H){H.responseContext||(H.responseContext={});H.responseContext.maxAgeSeconds=0;return H};
JN=function(H){var C;return _.z(function(S){return S.nextAddress==1?S.yield(WIp(H,"service:topbar:fallback"),2):(C=S.yieldResult)&&_.AN(C)?S.return(maZ(_.AN(C))):S.return()})};
y3u=function(H){var C;return _.z(function(S){return S.nextAddress==1?S.yield(WIp(H,"service:downloads_settings:fallback"),2):(C=S.yieldResult)&&_.AN(C)?S.return(C):S.return()})};
WIp=function(H,C){var S;return _.z(function(w){if(w.nextAddress==1)return H?w.yield(H.get(C),2):w.return();S=w.yieldResult;return!S||!_.AN(S)||!isNaN(Number(S.data.expireTimestampMs))&&S.isExpired()?w.return():w.return(S)})};
NjU=function(H){var C=_.JA().resolve(Fn).getState().entities;return H.playlistId?Tj0(C,H.playlistId):!1};
b2V=function(H,C){var S;if(C==null?0:(S=C.requestTemplate)==null?0:S.panelId)H.panelId=C.requestTemplate.panelId;var w;if(C==null?0:(w=C.requestTemplate)==null?0:w.params)H.params=C.requestTemplate.params};
ehD=function(){if(E86)return E86();var H=!_.E("idb_response_store_auth_killswitch"),C={};E86=F6("yt-it-response-store",{objectStores:(C.ResponseStore={addedAtVersion:1},C),shared:!H,upgrade:function(S,w){w(1)&&(S=Uc(S,"ResponseStore",{keyPath:["key","clientName"]}),RM(S,"byExpiration","expireTimestampMs"),RM(S,"byInterface","clientName"))},
version:1});return E86()};
u46=function(H){return _.iC(ehD(),H)};
fii=function(H,C){var S;return _.z(function(w){return w.nextAddress==1?w.yield(_.JO(),2):(S=w.yieldResult)?w.return(new GS$(H,C,S)):w.return()})};
v8Z=function(H){var C=Object.keys(H)[0];if(C)return H.screenExit&&(C=C+";"+H.screenExit.screen),C};
liZ=function(H){var C=new Map;H=_.Z(H);for(var S=H.next();!S.done;S=H.next())S=S.value,S!=null&&(C.has(S.taskType)||C.set(S.taskType,[]),C.get(S.taskType).push(S));return C};
VyZ=function(H){H=[].concat(_.k$(H)).sort(function(S,w){return S-w});
var C=Math.floor(H.length/2);return H.length%2?H[C]:(H[C-1]+H[C])/2};
XDD=function(H,C){H=H===void 0?OnU:H;C=C===void 0?{}:C;_.AO("yt.logging.errors.log",_.nC);V4D();o8i($pi(),C);window.onerror=H;O2U=oii;window.addEventListener("unhandledrejection",function(S){if(S.reason instanceof Error){var w=S.reason;_.DZ(w,{source:"unhandledrejection"});w.name==="AbortError"&&(w.level="WARNING")}oii(S.reason);S.preventDefault()})};
_.QdE=function(H){var C,S,w,A,J,c,Y,M,m,W,y,N,b,u,O,d,p,k,R,L,t,g,ii,FW,cZ,eZ,ND,bi,pU,O$,R0,m1,c7,tV,Td,Mi,fP,eo,Cr,wu;return _.z(function(xE){if(xE.nextAddress==1)return xE.yield(_.la(H,{mode:"readonly",enableRetries:!0},function(En){return Vf(En,"playbackData").then(function(So){var qi=So.map(function(YM){return YM.transfer}).filter(function(YM){return!!YM}),H3=So.map(function(YM){return YM.offlineVideoPolicy}).filter(function(YM){return!!YM}),I2=So.filter(function(YM){return!!YM.key}).map(function(YM){return _.ba(_.Tn(YM.key).entityId,
"downloadStatusEntity")});
qi=Vf(En,"transfer",qi);H3=Vf(En,"offlineVideoPolicy",H3);I2=Vf(En,"downloadStatusEntity",I2);var RV=qi.then(function(YM){YM=YM.reduce(function(LP,yO){(yO==null?0:yO.offlineVideoStreams)&&LP.push.apply(LP,_.k$(yO.offlineVideoStreams));return LP},[]).filter(function(LP){return!!LP});
return Vf(En,"offlineVideoStreams",YM)});
return g4.all([qi,H3,RV,I2]).then(function(YM){var LP=_.Z(YM);YM=LP.next().value;var yO=LP.next().value;var lY=LP.next().value;LP=LP.next().value;return[So,YM,yO,lY,LP]})})}),2);
if(xE.nextAddress!=3)return C=xE.yieldResult,xE.yield(_.la(H,{mode:"readonly",enableRetries:!0},function(En){return Vf(En,"mainDownloadsListEntity").then(function(So){var qi,H3;return(H3=(qi=So[0])==null?void 0:qi.downloads)!=null?H3:[]})}),3);
S=xE.yieldResult;w=_.Z(C);A=w.next().value;J=w.next().value;c=w.next().value;Y=w.next().value;M=w.next().value;m=A;W=J;y=c;N=Y;b=M;u={};O={};d={};p={};k={};R=[];L=_.Z(W);for(t=L.next();!t.done;t=L.next())(g=t.value)&&(u[g.key]=g);ii=_.Z(y);for(FW=ii.next();!FW.done;FW=ii.next())(cZ=FW.value)&&(O[cZ.key]=cZ);eZ=_.Z(b);for(ND=eZ.next();!ND.done;ND=eZ.next())(bi=ND.value)&&(d[bi.key]=bi);pU=_.Z(N);for(O$=pU.next();!O$.done;O$=pU.next())(R0=O$.value)&&(p[R0.key]=R0);m1=_.Z(S);for(c7=m1.next();!c7.done;c7=
m1.next())tV=c7.value,Td=void 0,k[(Td=tV.videoItem)!=null?Td:""]=!0,tV.videoItem&&(fP=Mi=void 0,eo=(fP=(Mi=_.Tn(tV.videoItem))==null?void 0:Mi.entityId)!=null?fP:"",R.push({externalVideoId:eo}));Cr=m.filter(function(En){if(!En||!En.key||!En.offlineVideoPolicy)return!1;En=_.Tn(En.key).entityId;En=_.ba(En,"downloadStatusEntity");var So;return!(En&&((So=d[En])==null?void 0:So.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
wu=Cr.map(function(En){var So=u[En.transfer],qi=[];if(So==null?0:So.offlineVideoStreams)for(var H3=_.Z(So.offlineVideoStreams),I2=H3.next();!I2.done;I2=H3.next())(I2=p[I2.value])&&qi.push(I2);H3=O[En.offlineVideoPolicy];I2=k;var RV=En==null?void 0:En.playerResponseTimestamp,YM=_.Tn(H3.key).entityId;En=_.ba(YM,"mainVideoEntity");if(H3.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var LP="OFFLINE_VIDEO_STATE_DISABLED";H3.expirationTimestamp&&Number(H3.expirationTimestamp)<Date.now()/1E3&&(LP="OFFLINE_VIDEO_STATE_EXPIRED")}else if(H3.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")LP="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(So==null?void 0:So.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":LP="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":LP="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":LP="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":LP="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":LP="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":LP="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:LP="OFFLINE_VIDEO_STATE_UNKNOWN"}if(LP==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(So==null?void 0:So.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":LP="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":LP="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":LP=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}YM={id:YM,videoState:LP};if(So==null?0:So.cotn)YM.cotn=So.cotn;if(So==null?0:So.maximumDownloadQuality)YM.selectedVideoQuality=So==null?void 0:So.maximumDownloadQuality;if(So==null?0:So.lastProgressTimeMs)YM.lastProgressTimeMs=So.lastProgressTimeMs;RV&&(YM.playerResponseSavedTimeMs=String(Number(RV)*1E3));So=String;RV=0;qi=_.Z(qi);for(LP=qi.next();!LP.done;LP=qi.next())if(LP=LP.value,LP.streamsProgress){LP=_.Z(LP.streamsProgress);for(var yO=LP.next();!yO.done;yO=
LP.next()){var lY=void 0;RV+=Number((lY=yO.value.numBytesDownloaded)!=null?lY:0)}}YM.downloadedBytes=So(RV);YM.selectedOfflineMode=I2[En]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";H3.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(YM.offlinePlaybackDisabledReason=H3.offlinePlaybackDisabledReason);return YM});
return xE.return({offlineVideos:wu,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:R}}})})};
daU=function(){var H;return _.z(function(C){return C.nextAddress==1?C.yield(_.Gn(),2):(H=C.yieldResult)?C.return(_.QdE(H)):C.return({state:"PES Unavailable"})})};
pD7=function(){var H,C,S,w;return _.z(function(A){if(A.nextAddress==1)return A.yield(_.Gn(),2);if(A.nextAddress!=3)return(H=A.yieldResult)?A.yield(PLu(H),3):A.return({state:"PES Unavailable"});C=A.yieldResult;S={};w=C.reduce(function(J,c){J[c.key]=c;return J},S);
return A.return($au(w))})};
$au=function(H){for(var C={},S=[],w=_.Z(Object.keys(H)),A=w.next();!A.done;A=w.next()){var J=A.value;A=H[J];var c=void 0;if(((c=A)==null?void 0:c.entityType)==="mainVideoEntity"){delete H[J];var Y=A.data;A={};if(Y){var M=void 0;c=(M=Y.videoId)!=null?M:"vid-"+J;J=H;A.video=Y;delete A.video.formattedDescription;delete A.video.thumbnail;Y.owner&&(M=J[Y.owner],M==null?0:M.data)&&(delete J[M.key],A.video.owner=M.data,delete A.video.owner.avatar);if(Y=Y.downloadState)if(M=J[Y],M==null?0:M.data)if(delete J[Y],
Y=M.data.playbackData)if(M=J[Y],M!=null&&M.data){delete J[Y];Y=M.data;delete Y.playerResponseJson;A.playbackData=Y;if(Y.transfer&&(M=J[Y.transfer],M==null?0:M.data)){delete J[M.key];var m=M.data;A.transfer=m;M=[];m=_.Z(m.offlineVideoStreams||[]);for(var W=m.next();!W.done;W=m.next())if(W=J[W.value])delete J[W.key],M.push(W.data);M&&(A.streams=M)}(Y=Y.offlineVideoPolicy)&&(Y=J[Y])&&Y.data&&(delete J[Y.key],A.offlineVideoPolicy=Y.data)}C[c]=A}}else A&&A.entityType==="offlineOrchestrationActionWrapperEntity"&&
A.data&&(delete H[A.key],c=A.data,J=void 0,S.push({id:c.rootActionId,type:((J=c.actionProto)==null?void 0:J.actionType)||"",entity:A}))}C.wrapperEntities=S;Object.keys(H).length>0&&(C.unknownKeys=H);return C};
kS7=function(){var H,C,S,w,A,J,c,Y,M;return _.z(function(m){if(m.nextAddress==1)return H=!!(new _.LV("")).expiringStorage_,w=!!((C=_.s$.crypto)==null?0:(S=C.subtle)==null?0:S.importKey),A=!!_.s$.BroadcastChannel,J=!!_.s$.navigator.locks,m.yield(JGi(),2);c=m.yieldResult;Y=H&&w&&A&&J&&c;M={isSupported:Y};if(Y)return m.return(M);M.missingBrowserFeatures=[];c||M.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");H||M.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
w||M.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");A||M.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");J||M.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return m.return(M)})};
hh6=function(){var H;return!((H=Zf?Zf:null)==null||!H.window)};
_.r3Z=function(H){if(_.li()&&_.EEZ("Chromium")>=120){var C=_.n8E().mediaSession;try{C.setActionHandler("enterpictureinpicture",function(){H()})}catch(S){}}};
BjZ=function(H){for(var C=[],S=_.Z(document.styleSheets),w=S.next(),A={};!w.done;A={node$jscomp$729:void 0},w=S.next())A.node$jscomp$729=w.value.ownerNode,A.node$jscomp$729&&(A.node$jscomp$729 instanceof HTMLStyleElement||A.node$jscomp$729 instanceof HTMLLinkElement)&&C.push(new Promise(function(J){return function(c){var Y=J.node$jscomp$729.cloneNode(!0);Y.onload=function(){c()};
Y.onerror=function(){_.Bn(Error("pj"));c()};
H.document.head.appendChild(Y)}}(A)));
return Promise.all(C)};
xaV=function(H){var C=[_.cj(Dau),_.cj(KIw),_.cj(tyE)];LI0(window.document.documentElement,H.document.documentElement,[_.cj(g8Z),_.cj(UaW),_.cj(Rhp),_.cj(Ii6),_.cj(aip)]);LI0(window.document.body,H.document.body,C)};
LI0=function(H,C,S){H=_.Z(H.attributes);for(var w=H.next();!w.done;w=H.next())if(w=w.value)try{_.ZA(S,C,w.name,w.value)}catch(A){}};
ij0=function(H,C){H=new _.cf(H.document.documentElement);H.start(HjV,C);return H};
CHW=function(H){var C=H.document.documentElement;C.addEventListener("click",function(S){Szp(C,S)});
C.addEventListener("touchstart",function(S){JHu(S)});
C.addEventListener("mousedown",function(S){JHu(S)})};
sAw=function(H,C,S,w){w=w===void 0?!1:w;C=new S1p(C||H,S||H);return{x:H.x+((w===void 0?0:w)?C.lengthX*-1:C.lengthX)*.2,y:H.y+((w===void 0?0:w)?C.lengthY*-1:C.lengthY)*.2}};
jAE=function(H){if(!H)return!1;var C=H.status==="OK"||H.status==="LIVE_STREAM_OFFLINE",S,w,A,J=(A=(S=H.errorScreen)==null?void 0:S.playerLegacyDesktopYpcTrailerRenderer)!=null?A:(w=H.errorScreen)==null?void 0:w.ypcTrailerRenderer;return!!C||!!J};
_.w6U=function(H,C){if(!H)return!1;var S,w=(S=H.errorScreen)==null?void 0:S.playerLegacyDesktopYpcOfferRenderer,A;C=!!(C==null?0:(A=C.playerOverlayRenderer)==null?0:A.gatedActionsOverlayRenderer);return!!jAE(H)||!!w||!!C};
F5V=function(H){return AD0(H,0,"gclid",H.search(JDZ))>=0||AD0(H,0,"gad_source",H.search(JDZ))>=0};
ZjW=function(H){var C=[],S=0;return{clear:function(){S=C.length=0},
push:function(w){C[S]=w;S=(S+1)%H},
iterate:function(){return function A(){var J,c,Y,M;return _.YC(A,function(m){switch(m.nextAddress){case 1:_.fM(m,2),J=C.length,c=0;case 4:if(!(c<J)){m.jumpTo(2);break}Y=S+c;M=_.zX;return m.yield(C[Y%J],7);case 7:M(m.yieldResult);c++;m.jumpTo(4);break;case 2:_.Gv(m),_.lf(m,0)}})}()}}};
cD$=function(H){H.eventsToIgnore||(H.eventsToIgnore=[]);var C=H.eventsToIgnore.map(wkU),S=new Set(C),w=ZjW(H.bufferSize);return{flush:function(){var A=Array.from(w.iterate());w.clear();A=A.map(function(J){return{name:J.name,timestamp:J.startTime,attributes:J.attributes}});
return JSON.stringify(A)},
onSpanStart:function(A){A.name==="event"&&S.has(A.attributes.type)||w.push(A)}}};
Y1Z=function(H){H=cD$(H);var C=H.flush;Af.processors.push({onSpanStart:H.onSpanStart});rBu.subscribe("handleError",function(S){try{S.params.breadcrumbs=C()}catch(w){_.nC(w,"WARNING")}})};
zjw=function(){rV("web_tracing_action");_.BH("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
MHZ=function(){rV("web_tracing_action");_.BH("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
T76=function(H,C,S){if(C===void 0){q1Z||(MHZ(),setInterval(MHZ,6E5),q1Z=!0);var w="web_tracing_action"}else w=C;var A,J=((A=H.endTime)!=null?A:H.startTime)-H.startTime,c={};A=H.name;var Y=H.startTime;c={webTracing:(c[H.name]=H.attributes,c)};S=_.Lp(ur7)(A,J,Y,c,S,w);if(H.children)for(H=_.Z(H.children),w=H.next();!w.done;w=H.next())T76(w.value,C,S)};
mVE=function(H){var C=coZ.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(S){S.data&&typeof S.data==="object"&&(S=S.data,S.from==="extension"&&S.app==="yt.telemetry"&&(C("Received message from extension",S),H.onMessage(S)))});
return function(S,w){S={app:"yt.telemetry",from:"app",key:S,payload:w};C("Sending message to extension",S);window.postMessage(S,"*")}};
W5w=function(){var H=H===void 0?3E3:H;var C=mVE({onMessage:function(){}}),S=[];
return{onSpanEnd:function(w){w.parentId==null&&S.push(w)===1&&setTimeout(function(){var A=[].concat(_.k$(S));S.length=0;C("spansReported",{spans:A})},H)}}};
N7E=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var H=window.performance.getEntriesByType("navigation");if(H.length>0){var C=H[0];ZoW("pageLoad",{navigationType:yDU(C.type),unloadEventStart:Math.round(C.unloadEventStart),unloadEventEnd:Math.round(C.unloadEventEnd),domInteractive:Math.round(C.domInteractive),domContentLoadedEventStart:Math.round(C.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(C.domContentLoadedEventEnd),
domComplete:Math.round(C.domComplete),loadEventStart:Math.round(C.loadEventStart),loadEventEnd:Math.round(C.loadEventEnd),redirectCount:C.redirectCount},function(){})}}catch(S){}})};
yDU=function(H){switch(H){case "navigate":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_NAVIGATE";case "reload":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_RELOAD";case "back_forward":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_BACK_FORWARD";case "prerender":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_PRERENDER";default:return"PERFORMANCE_NAVIGATION_TIMING_TYPE_UNKNOWN"}};
ej$=function(){for(var H=tOZ.value,C={},S=_.Z(H.enabledSpansArray),w=S.next();!w.done;w=S.next())C[w.value]=!0;if(H.exportToCsi||H.exportBreadcrumbs)C={sessionId:Ki7(),enabledSpans:C},Af.initialized=!0,Af.sessionId=C.sessionId||"",Af.enabledSpans=C.enabledSpans,C.shouldSampleFn!=null&&(Af.shouldSampleFn=C.shouldSampleFn),AoU("pageLoad")&&N7E();H.exportBreadcrumbs&&Y1Z({eventsToIgnore:bju,bufferSize:H.bufferSize});H.exportToCsi&&Af.processors.push(EK0);H.exportToDevTools&&(H=W5w(),Af.processors.push(H))};
upE=function(H){return new Promise(function(C){window.setTimeout(C,H)})};
G2w=function(H){var C={bicf:function(J){H.lWQ=J},
blc:function(){return H.getLatestChallengeResponse()},
bcr:function(J){H.jik.push(J)}},S=window;
S.ntpevasrs=C;if(S.ntpqfbel!==void 0)for(var w=_.Z(S.ntpqfbel),A=w.next();!A.done;A=w.next())A=A.value,A(C);S.ntpqfbel=void 0};
fvV=function(H){return _.z(function(C){if(C.nextAddress==1)return _.en(C,2),C.yield(H.tXM(),4);if(C.nextAddress!=2)return _.xB(C,0);_.Vx(C);_.oT(C)})};
vK6=function(H){var C,S;(C=H.ytcsi)==null||(S=C.tick)==null||S.call(C,"pot_ist")};
lv$=function(H){if(H instanceof Error){var C=_.gh("yt.logging.errors.log");C&&C(H,"WARNING")}};
VHi=function(H){try{var C=JSON.parse(H);if(C.bgChallenge)return C}catch(S){}};
OjV=function(){var H=window,C={networkStatusManagerPromise:_.JA().resolve(new tR6(_.Hn)),initialChallengeSli:_.E("wpo_att_sli")?new _.ZH6("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};H=H===void 0?window:H;var S=H.ytAtR,w;C==null||(w=C.initialChallengeSli)==null||_.MI(w);if(S){if(S=VHi(S)){var A;C==null||(A=C.initialChallengeSli)==null||_.qI(A,"SUCCESS");oKD(S,C)}H.ytAtR=void 0}else H.ytAtRC=function(J){if(J=VHi(J)){var c;C==null||(c=C.initialChallengeSli)==null||
_.qI(c,"SUCCESS");oKD(J,C);H.ytAtRC=void 0}}};
dVE=function(){if(X6p)return X6p;try{var H=_.GZ("IFRAME");_.He(H,_.qH(QAZ));H.sandbox.add("allow-same-origin");H.style.display="none";document.body.appendChild(H);return X6p=H}catch(C){H=new _.X0("Failed to create sandbox iframe"),_.nC(H)}};
PH7=function(H){var C,S;return(S=H==null?void 0:(C=H.contentWindow)==null?void 0:C.fetch)!=null?S:window.fetch};
$Vp=function(H){var C,S;return(S=H==null?void 0:(C=H.contentWindow)==null?void 0:C.Request)!=null?S:window.Request};
p6p=function(H){var C,S;return(S=H==null?void 0:(C=H.contentWindow)==null?void 0:C.TextDecoder)!=null?S:window.TextDecoder};
k2$=function(){return function(H,C){_.rh("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[H]=C}};
hjU=function(){return function(H,C){var S={};S[H]=C;H=_.Lp(_.EA0)(S);Object.keys(H).length>0&&_.nL(H)}};
B76=function(){if(Hu6()==="hidden")var H="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else Hu6()==="visible"&&(H="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",nKD=null);H&&rDZ(H)};
rDZ=function(H){if(H==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||H==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(DVD===H)return;DVD=H}var C=9E4+Math.random()*2E3;if(H!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.cn()>C)&&Hu6()==="visible"){C=-1;nKD&&(C=Math.round((0,_.Zt)()-nKD));var S=String;var w=_.gh("_fact",window);w=w==null||w==-1?-1:Math.max(Date.now()-w,0);_.kI("foregroundHeartbeat",{firstActivityMs:S(w),clientDocumentNonce:tiE,index:String(K5Z),lastEventDeltaMs:String(C),trigger:H});
_.AO("_fact",-1,window);K5Z++;nKD=(0,_.Zt)()}};
_.tHW=function(){try{return!!self.sessionStorage}catch(H){return!1}};
L5E=function(){var H=navigator;return new Promise(function(C,S){var w;(w=H.webkitTemporaryStorage)!=null&&w.queryUsageAndQuota?H.webkitTemporaryStorage.queryUsageAndQuota(function(A,J){C({usage:A,quota:J})},function(A){S(A)}):S(Error("zj"))})};
gKU=function(H,C){var S={errorSeverity:C.errorSeverity.toString(),wizFeatureFlags:Object.entries(C.featureFlags).join("\n")};lz6(C,S);C=C.errorSeverity;C===3?_.nC(H,"ERROR",void 0,void 0,void 0,S):C===2&&_.nC(H,"WARNING",void 0,void 0,void 0,S);_.E("cow_if_errors_in_popup")&&C===3&&H.message.indexOf("<If>")!==-1&&window.alert(H.message)};
UV0=function(H,C){var S=wB.get(H)||{layerNode:C};S.layerNode=C;wJi(H,S);H.getScreenLayer=function(){return TX(S.layerNode)}};
RjZ=function(H){var C;H=H.parentNode;for(var S;H&&((C=wB.get(H))==null||!C.isRenderer)&&!((S=H.polymerController)!=null?S:H).isRenderer_;)H=H.parentNode||H.host;if(C=H)return wB.get(C)};
IvW=function(H){if(H){wB.delete(H);var C=_.JA().resolve(ZV);WdV(H,C)}};
xVV=function(H,C,S){if(S===void 0?0:S){if(S=H.getAttribute("client-ve-type"),C.data&&!C.disableReactiveLogging||S)_.k1(function(){avZ(H,_.ps(C.data))}),_.PN(function(){return void IvW(H)})}else typeof C.data!=="function"&&avZ(H,C.data)};
avZ=function(H,C){HGU++;iG7(H,C)&&_.rT.addJob(function(){_.mx(_.rT,function(){if(iG7(H,C)&&H.ownerDocument.documentElement===document.documentElement&&H){var S;if(H.getAttribute("layer")){var w=S=Number(H.getAttribute("layer")),A=wB.get(H);A?A.layerNode.layer=w:UV0(H,new CgU(w));(w=RjZ(H))&&(A=wB.get(H))!=null&&(A.layerNode.parent=w.layerNode)}else if(S=wB.get(H))S=TX(S.layerNode);else{S=TX;w=new CgU;if(A=RjZ(H))w.parent=A.layerNode;UV0(H,w);S=S(w)}S!=null||(S=0);w=H.getAttribute("client-ve-type");
A=Number(w);var J=!1;w=!1;var c=wB.get(H),Y;if((Y=c)&&!(Y=c[SL7]!==C)&&(Y=A)){var M;Y=((M=wB.get(H))==null?void 0:M.clientVeType)===void 0}Y&&(c[SL7]=C,J=w=c.isRenderer=!0);wB.has(H)&&(wB.get(H).clientVeType=A);H.visualElement&&(w=!0);if(_.E("wiz_next_ld_fix_client_ve_spec")){var m;M=((m=_.e(C==null?void 0:C.rendererContext,_.Vh))==null?void 0:m.loggingDirectives)||(C==null?void 0:C.loggingDirectives)}else M=C==null?void 0:C.loggingDirectives;M&&M.clientVeSpec&&(m=sPE(_.f7(),H),m=_.jP0(_.lJ(),M,m||
void 0,S))&&(H.visualElement=m);!H.visualElement&&A&&J&&(H.veType=A,m=void 0,_.E("wiz_next_client_ve_parent_fix")&&(m=sPE(_.f7(),H)),m=_.vI(_.lJ(),H,m,S),H.visualElement=m);w&&(m=_.JA().resolve(ZV),E70(H,{data:C,observer:m,layer:S,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
iG7=function(H,C){return(C==null?0:C.trackingParams)||(C==null?0:C.loggingDirectives)||_.e(C==null?void 0:C.rendererContext,_.Vh)||H.getAttribute("client-ve-type")?!0:!1};
w2E=function(H,C,S){H.componentType!==oE&&S instanceof HTMLElement&&C&&!_.E("cow_logging_in_component_wrapper")&&xVV(S,C,!0)};
ZGZ=function(){if(!AIp){AIp=!0;var H=Object.assign({},{flushRenderEffectsDuringRender:!0,enableWizQueueEffectAndOnInitInitialRuns:_.E("enable_wiz_queue_effect_and_on_init_initial_runs")},{handleError:gKU,enableComponentStacksInErrorMessages:!1});Object.assign(Fb,H);tjZ=JI6;F8Z();Igw=npE;g_W=r6$}};
F8Z=function(){_.E("cow_logging_in_component_wrapper")?(IXw=function(H,C){C instanceof HTMLElement&&xVV(C,H,!0)},dQZ=function(){}):(IXw=function(){},dQZ=w2E)};
cI7=function(H,C,S){C=C===void 0?{}:C;var w,A=(w=_.e(H.commandMetadata,_.u9))==null?void 0:w.url;w=C.form||{};!S||w.element||w.skipDefaultElement||(C.form=C.form||{},C.form.element=S);if(A&&A!=="/service_ajax")return{type:0,command:H,form:C.form};if(_.E("kevlar_service_command_check")){if(_.Ht(_.JA().resolve(_.Lf),H))return Object.assign({},{type:1,command:H},C)}else{var J;if((J=_.e(H.commandMetadata,_.u9))==null?0:J.apiUrl)return Object.assign({},{type:1,command:H},C)}return{type:2,command:H,form:C.form}};
YL7=function(H){if(H.form){var C=H.form,S=Object.assign({},C);C=C.element;S=(delete S.element,S);if(C)return[_.WH(C,[H.command,S,H.commandController])]}return[]};
zE6=function(H){if(H.form){var C=H.form,S=Object.assign({},C);C=C.element;S=(delete S.element,S);C&&_.yN(C,[H.command],C,S)}};
qL$=function(H,C,S){var w=new Md7(H,C),A=new Wf(H,C,S);H={"/youtubei/v1/browse":new yn(H,C,S),"/youtubei/v1/player":w,"/youtubei/v1/navigation/resolve_url":new NI,"/youtubei/v1/next":A,"/youtubei/v1/guide":new bz(S),"/youtubei/v1/search":new E6(H,C,S),"/youtubei/v1/reel/reel_item_watch":new e9(H,C,S),"/youtubei/v1/get_watch":new uz(w,A)};H["/youtubei/v1/account/account_menu"]=new GX;H["/youtubei/v1/notification/get_notification_menu"]=new fd;return H};
lz=function(){var H=_.JA().resolve(vf);return Promise.resolve(Ty$(H,_.s$.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
mti=function(H){return H&&(H=_.Vn(_.a_7(H)))?(new URLSearchParams(H)).get("service"):null};
Xn=function(H,C){_.Ns(_.oh(),function(){_.DR("adl")});
_.JA().resolve(W8u)(C);H=H.root;H.loadData&&H.loadData(C);(C==null?0:C.response)?_.qI(zJ6(),"SUCCESS"):_.Bn(new _.X0("Lifecycle: No response in data",_.Bh("IS_SHELL_LOAD"),C?C.page:"NO_PAGE",C?C.endpoint:"NO_ENDPOINT"));H.polymerController.$["page-manager"].lazyPrepareCriticalPages((C==null?void 0:C.page)||"",C.endpoint);var S,w;((w=_.e(C==null?void 0:(S=C.endpoint)==null?void 0:S.commandMetadata,_.u9))==null?0:w.webPageType)&&_.AG().dispatch(_.O6(_.e(C.endpoint.commandMetadata,_.u9).webPageType))};
yIu=function(){var H,C;return _.z(function(S){switch(S.nextAddress){case 1:H=window;if(!H.getDataPromise){S.jumpTo(2);break}_.en(S,3);return S.yield(H.getDataPromise(),5);case 5:return S.return(S.yieldResult);case 3:return _.Vx(S),S.yield(lz(),6);case 6:return S.return(S.yieldResult);case 2:if(H.getInitialData)return C=H.getInitialData(),H.getInitialData=void 0,S.return(C);throw Error("Bj`"+_.s$.location.href);}})};
bG0=function(){_.np("CSI_SERVICE_NAME","youtube");_.nL({loadType:"cold"});_.E("kevlar_log_lcp")&&Nyw(function(H){_.DR("lcp",H.value)})};
ExV=function(){var H=_.Up(document.location.href,"enable");H&&H.indexOf("scraper")>-1&&_.np("ADD_SCRAPER_ATTRIBUTES",!0)};
vxi=function(H){var C=H.root;H=[eED,uaZ,_.Qn];_.E("web_feedback_endpoint_autolog_allowlist_killswitch")&&H.push(_.dR,Grw);fmi(function(S,w){return cI7(S,w,C)},function(S){if(!S.command)return[];
var w;((w=S.form)==null?0:w.element)?S.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},S.form,{endpoint:S.command})})):C.handleNavigate(S);return[]},H);
_.JA().addProvider({provide:_.ZQ,useValue:_.eU.instance})};
VdU=function(){var H={},C={},S;for(S in lmZ){var w=_.Z(_.mB(lmZ[S],void 0,"IAtZ7"));H[S]=w.next().value;C[S]=w.next().value}return[H,function(A){for(var J in A){var c=void 0;(c=C[J])==null||c(A[J])}}]};
_.Pf=function(H,C,S){C=C===void 0?!1:C;var w=_.hb.getValueByKeys(H,"contents","twoColumnWatchNextResults","results","results","contents"),A=_.hb.getValueByKeys(H,"contents","twoColumnWatchNextResults","playlist","playlist")||null;C&&(A=null);var J=C=null;if(A)C=_.hb.getValueByKeys(A,"titleText"),J=_.hb.unsafeClone(_.hb.getValueByKeys(A,"longBylineText")),w="",J&&(w=_.jt(J)),J=_.sx(w);else if(w){w=_.Z(w);for(var c=w.next();!c.done;c=w.next())c=c.value,c.videoPrimaryInfoRenderer&&(C=_.hb.getValueByKeys.apply(_.hb,
[c].concat(_.k$(oxW)))),c.videoSecondaryInfoRenderer&&(J=_.hb.getValueByKeys.apply(_.hb,[c].concat(_.k$(OGi))))}else _.Ug(Error("Gj"));var Y;H.currentVideoEndpoint?Y=H.currentVideoEndpoint:_.Ug(Error("Hj"));var M;S&&(M=_.hb.getValueByKeys(S,"playabilityStatus","miniplayer","miniplayerRenderer"));H={miniplayerTitle:C,miniplayerSubtitle:J,watchEndpoint:Y,playlistData:A};M&&(H.miniplayerRenderer=M);return H};
X2u=function(H){if(H)return _.BI(H)};
_.QPE=function(){return{isFullscreen:function(){throw Error("Ij");},
toggleFullscreen:function(){throw Error("Jj");},
exitFullscreen:function(){throw Error("Kj");},
isAutonavEnabled:function(){throw Error("Lj");},
setAutonavEnabled:function(){throw Error("Mj");},
isAutoplaySetExplicitly:function(){throw Error("Nj");}}};
dtw=function(H){return H.videoDuration?H.numTaps>1&&H.tapDirection!==0?_.$C(H.draggedTime/H.videoDuration,0,1):_.$C((H.playedTime||0)/H.videoDuration,0,1):0};
Pgi=function(H){return H.videoDuration?H.isDragging||H.numTaps>1&&H.tapDirection!==0?_.$C(H.draggedTime/H.videoDuration,0,1):_.$C((H.playedTime||0)/H.videoDuration,0,1):0};
p27=function(H){var C,S,w;return _.e(H==null?void 0:(C=H.markersMap)==null?void 0:(S=C.find(function(A){return A.key==="HEATSEEKER"}))==null?void 0:(w=S.value)==null?void 0:w.heatmap,$tp)};
krZ=function(H){var C,S;return(S=(C=p27(H))==null?void 0:C.heatMarkersDecorations)!=null?S:[]};
hEE=function(H){if(_.E("mweb_supported_chapters_killswitch"))return!0;var C;return!!(H==null?0:(C=H.markersMap)==null?0:C.find(function(S){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(S.key)}))};
_.nxD=function(H){var C=Object,S=C.assign,w;H={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(w=H==null?void 0:H.getPlayerState())!=null?w:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return S.call(C,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},H,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
rIw=function(H){return function(C){var S=H(),w,A=(w=S.playerApi)==null?void 0:w.getPlayerState();C&&C!==S.playerState&&(C===1||C===2)&&S.setState({playerState:A})}};
Dt0=function(H){return function(C){var S=H(),w=S.playerApi;w&&(C==null?void 0:C.type)==="newdata"&&(ByV&&(clearTimeout(ByV),ByV=void 0),_.E("web_shorts_use_progress_state_for_gapless")?(C=w==null?void 0:w.getProgressState(C==null?void 0:C.playertype),C=C.seekableEnd-C.seekableStart):C=w==null?void 0:w.getDuration(C==null?void 0:C.playertype),S.setState({playedTime:0,videoDuration:C}))}};
K8$=function(H){return function(C){var S=H(),w=S.playerApi;if(w){var A=w.getPresentingPlayerType();_.E("web_shorts_use_progress_state_for_gapless")?(w=w.getProgressState(A),w=w.seekableEnd-w.seekableStart):w=w.getDuration(A);S.setState({playedTime:C,videoDuration:w})}}};
L8E=function(H){_.Oj(112394,H,function(){return td7},function(C){td7=C})};
REV=function(H,C){if(!H)return[];var S,w,A;H=((S=H.markersMap)==null?void 0:(w=S.find(function(J){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(J.key)}))==null?void 0:(A=w.value)==null?void 0:A.chapters)||[];
!gxU(H)||(C==null?0:C.ignoreStub)||(H=[Utp()].concat(_.k$(H)));return H};
Utp=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
gxU=function(H){if(H.length===0)return!1;var C;return((C=_.e(H[0],pd))==null?void 0:C.timeRangeStartMillis)!==0};
kC=function(H){return H?H.timeRangeStartMillis||0:0};
amu=function(H,C){if(H.isDragging&&C)return H=ImD(H,C),H===-1?Utp():REV(C)[H]};
ImD=function(H,C){return H.isDragging&&C?REV(C,{ignoreStub:!0}).findIndex(function(S,w,A){S=xtp(H);return HcU(S,A,w).scrubberHovering}):-1};
xtp=function(H){return Object.assign({},H,{videoDuration:H.videoDuration*1E3,playedTime:H.playedTime*1E3,draggedTime:H.draggedTime*1E3})};
HcU=function(H,C,S){var w=kC(_.e(C[S],pd));C=kC(_.e(C[S+1],pd))||H.videoDuration;S=H.isDragging;var A;if(A=H.isDragging)A=H.draggedTime,A=A!==null&&A>=w&&A<C;var J=H.playedTime;return J!==null&&J>=w&&J<C?{videoPosition:"active",isScrubbing:S,scrubberHovering:A}:H.playedTime<w?{videoPosition:"pending",isScrubbing:S,scrubberHovering:A}:{videoPosition:"seen",isScrubbing:S,scrubberHovering:A}};
icu=function(H,C){return H.videoPosition==="seen"||(C===void 0?0:C)>0};
CXW=function(H,C,S){C=H/C.storyboardInterval;var w=REV(S);if(!w.length)return-C*72;S=0;w=_.Z(w);for(var A=w.next();!A.done;A=w.next())if(kC(_.e(A.value,pd))/1E3<H)S++;else break;return-(C*72)-S*56};
SPp=function(H){return H?H.width/H.columns:0};
sRZ=function(H){return H.isHovering?H.hoveredTime:H.draggedTime};
jRZ=function(H,C){H=H.draggedTime*1E3;return H>=C.visibleTimeRangeStartMillis&&H<=C.visibleTimeRangeEndMillis};
_.wK7=function(H){if(H===void 0||Number.isNaN(H))return"--:--";var C=Math.abs(Math.floor(H)),S=Math.floor(C/86400),w=Math.floor(C%86400/3600),A=Math.floor(C%3600/60);C=Math.floor(C%60);var J="";S>0&&(J+=S+":",w<10&&(J+="0"));if(S>0||w>0)J+=w+":",A<10&&(J+="0");J+=A+":";C<10&&(J+="0");J+=C;return H>=0?J:"-"+J};
AWW=function(H,C){return function(){var S=sRZ(H());var w=C();var A=H().playerApi;if(A&&A.getNumberOfStoryboardLevels()!==0){var J=A.getStoryboardFrameIndex(S,1);J!==-1?w=A.getStoryboardFrame(J,1):(S=A.getStoryboardFrameIndex(S,0),A=A.getStoryboardFrame(S,0),w&&A&&(A.height*=3,A.width*=3),w=A)}else w=null;if(!w)return null;C()&&(w.width=90*w.columns,w.height=160*w.rows);return w}};
_.hN=function(H){if(!H||H.getVideoData)return H};
JWD=function(){var H;return{playerApi:(H=_.br())!=null?H:void 0}};
Fqp=function(H){var C;_.z(function(S){if(S.nextAddress==1)return S.yield(_.Np(),2);if(C=S.yieldResult)C.unMute(!0),C.setVolume(H,!0);_.oT(S)})};
Zcu=function(H,C){H&&(H.value=""+C,H.style.setProperty("--gradient-percent",C+"%"))};
cW7=function(H){var C;return(C=H==null?void 0:H.value)!=null?C:0};
YPp=function(){var H;_.z(function(C){if(C.nextAddress==1)return C.yield(_.Np(),2);H=C.yieldResult;if(!H)return C.return();H.isMuted()?H.unMute(!0):H.mute(!0);_.oT(C)})};
zSE=function(H){var C=_.JA().resolve(_.Df).getPlayerElement();C&&H&&(H===1?C.pause():C.play())};
M6Z=function(H){_.m7(H,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
qPD=function(H){_.m7(H,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
mCD=function(H){return _.dh(H.document.body,function(){return _.q(T_0,null)},"Lf")};
Wqi=function(){var H=window.performance.getEntriesByType("navigation");return H?H.map(function(C){return C.type}).includes("reload"):!1};
fjW=function(){Kd(Kd(Kd(Kd(Kd(Kd(Kd(_.JA().resolve(_.tN),_.yWp),_.N_W),_.bcE),_.E2Z),_.eS7),_.ul0),_.GCE)};
v20=function(H,C){C=C===void 0?!1:C;var S,w,A,J;return _.z(function(c){if(c.nextAddress==1)return C||!_.E("kevlar_shorts_seedless_retry_initial_load")||(S=window,w=!(!S.getDataPromise&&!S.getInitialData),w)?c.yield(yIu(),2):(setTimeout(v20.bind(window,H,!0),1E3),c.return());if(c.nextAddress!=3)return A=c.yieldResult,c.yield(ljW(A),3);J=c.yieldResult;Xn(H,J);_.oT(c)})};
ljW=function(H){var C;if((C=H.response)==null||!C.replacementEndpoint)return _.N3(H);C=_.JA().resolve(vf);H=H.response;_.e(H.replacementEndpoint,_.Ox)&&H.sequenceContinuation&&(_.e(H.replacementEndpoint,_.Ox).sequenceParams=H.sequenceContinuation);return Ld(C,H.replacementEndpoint,{},_.s$.location.href,"shorts",function(){},function(){return!1})};
o27=function(H){var C=_.JA().resolve(V6u);H.playerResponse&&C.handleResponse(H.playerResponse);H.response&&C.handleResponse(H.response)};
Oc6=function(H){var C=_.AG(),S,w=_.e((S=H.response)==null?void 0:S.frameworkUpdates,s5),A;S=_.e((A=H.playerResponse)==null?void 0:A.frameworkUpdates,s5);var J;H=_.e((J=H.reelWatchSequenceResponse)==null?void 0:J.frameworkUpdates,s5);w&&_.vF(w,C);S&&_.vF(S,C);H&&_.vF(H,C)};
XKE=function(H){var C;_.E("enable_redirect_linking_for_desktop_web_client")&&((C=window.location.hash)==null?0:C.includes("redirect_state"))&&H.url&&(H.url=H.url.toString()+window.location.hash)};
PX$=function(H){var C=_.JA(),S=C.resolve(vf);C=C.resolve(_.QRp);H.endpoint&&(S=dC0(S,H.endpoint),S.content&&H.response&&_.gR(C,H.response,S.content),S.player&&H.playerResponse&&_.gR(C,H.playerResponse,S.player),S.reelSequence&&H.reelWatchSequenceResponse&&_.gR(C,H.reelWatchSequenceResponse,S.reelSequence))};
U6=function(H,C){o27(C);Oc6(C);var S;(C==null?0:C.url)&&((S=window.location.hash)==null?0:S.includes("redirect_state"))&&(XKE(C),(S=mti(C.url))&&_.q3(H.root,"yt-initialize-third-party",[S,C]));PX$(C);S=_.JA();var w=S.resolve($CV);C.playerResponse&&S.resolve(pKu).handleResponse(C.playerResponse);if(C.playerResponse){S=void 0;if(_.E("ab_v_vid_sig")&&C.endpoint){var A,J=(A=_.e(C.endpoint,_.sX))!=null?A:_.e(C.endpoint,_.Ox);J&&(S=J.videoId)}kCi(w,C.playerResponse,S)}C.playerResponse&&PUV(C.playerResponse)&&
_.E("web_enable_ab_rsp_cl")?wXp().then(function(){hSw(w,C.playerResponse);Xn(H,C)}):Xn(H,C)};
rWE=function(H){if(H=H.root.data){var C=_.JA().resolve(n2$);H.endpoint&&(H.response&&C.handleResponse(H.response,void 0,document.querySelector("ytd-app")),H.playerResponse&&C.handleResponse(H.playerResponse),H.reelWatchSequenceResponse&&C.handleResponse(H.reelWatchSequenceResponse))}};
B_0=function(H){var C,S,w,A,J,c;return _.z(function(Y){switch(Y.nextAddress){case 1:C=window;if(!C.getDataPromise){Y.jumpTo(2);break}_.en(Y,3);return Y.yield(C.getDataPromise(),5);case 5:S=Y.yieldResult;U6(H,S);_.xB(Y,4);break;case 3:return _.Vx(Y),Y.yield(lz(),6);case 6:w=Y.yieldResult,Xn(H,w);case 4:return Y.return();case 2:if(!_.E("sw_nav_preload_pbj")){Y.jumpTo(7);break}C.fetchInitialData=function(){var M;return _.z(function(m){if(m.nextAddress==1)return m.yield(lz(),2);M=m.yieldResult;Xn(H,M);
_.oT(m)})};
if(C.getInitialData){C.loadInitialData=function(M){U6(H,M)};
A=C.getInitialData();C.getInitialData=void 0;U6(H,A);Y.jumpTo(8);break}C.fetchInitialData=void 0;return Y.yield(lz(),9);case 9:J=Y.yieldResult,Xn(H,J);case 8:return Y.return();case 7:C.getInitialData?(c=C.getInitialData(),C.getInitialData=void 0,U6(H,c)):C.loadInitialData=function(M){U6(H,M)},_.oT(Y)}})};
DCW=function(H){var C=0;return function(){return C<H.length?{done:!1,value:H[C++]}:{done:!0}}};
Kqu=typeof Object.defineProperties=="function"?Object.defineProperty:function(H,C,S){if(H==Array.prototype||H==Object.prototype)return H;H[C]=S.value;return H};
t60=function(H){H=["object"==typeof globalThis&&globalThis,H,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var C=0;C<H.length;++C){var S=H[C];if(S&&S.Math==Math)return S}throw Error("a");};
_.JJ=t60(this);Rh=function(H,C){if(C)a:{var S=_.JJ;H=H.split(".");for(var w=0;w<H.length-1;w++){var A=H[w];if(!(A in S))break a;S=S[A]}H=H[H.length-1];w=S[H];C=C(w);C!=w&&C!=null&&Kqu(S,H,{configurable:!0,writable:!0,value:C})}};
Rh("Symbol",function(H){if(H)return H;var C=function(J,c){this.$jscomp$symbol$id_=J;Kqu(this,"description",{configurable:!0,writable:!0,value:c})};
C.prototype.toString=function(){return this.$jscomp$symbol$id_};
var S="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",w=0,A=function(J){if(this instanceof A)throw new TypeError("b");return new C(S+(J||"")+"_"+w++,J)};
return A});
Rh("Symbol.iterator",function(H){if(H)return H;H=Symbol("c");for(var C="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),S=0;S<C.length;S++){var w=_.JJ[C[S]];typeof w==="function"&&typeof w.prototype[H]!="function"&&Kqu(w.prototype,H,{configurable:!0,writable:!0,value:function(){return Lq0(DCW(this))}})}return H});
Rh("Symbol.asyncIterator",function(H){return H?H:Symbol("d")});
var Lq0=function(H){H={next:H};H[Symbol.iterator]=function(){return this};
return H},g27=typeof Object.create=="function"?Object.create:function(H){var C=function(){};
C.prototype=H;return new C},UCU=function(){function H(){function S(){}
new S;Reflect.construct(S,[],function(){});
return new S instanceof S}
if(typeof Reflect!="undefined"&&Reflect.construct){if(H())return Reflect.construct;var C=Reflect.construct;return function(S,w,A){S=C(S,w);A&&Reflect.setPrototypeOf(S,A.prototype);return S}}return function(S,w,A){A===void 0&&(A=S);
A=g27(A.prototype||Object.prototype);return Function.prototype.apply.call(S,A,w)||A}}(),RS0;
if(typeof Object.setPrototypeOf=="function")RS0=Object.setPrototypeOf;else{var IjV;a:{var ajp={a:!0},xCi={};try{xCi.__proto__=ajp;IjV=xCi.a;break a}catch(H){}IjV=!1}RS0=IjV?function(H,C){H.__proto__=C;if(H.__proto__!==C)throw new TypeError("e`"+H);return H}:null}Ih=RS0;
_.G=function(H,C){H.prototype=g27(C.prototype);H.prototype.constructor=H;if(Ih)Ih(H,C);else for(var S in C)if(S!="prototype")if(Object.defineProperties){var w=Object.getOwnPropertyDescriptor(C,S);w&&Object.defineProperty(H,S,w)}else H[S]=C[S];H.superClass_=C.prototype};
_.Z=function(H){var C=typeof Symbol!="undefined"&&Symbol.iterator&&H[Symbol.iterator];if(C)return C.call(H);if(typeof H.length=="number")return{next:DCW(H)};throw Error("f`"+String(H));};
Cs=function(H){for(var C,S=[];!(C=H.next()).done;)S.push(C.value);return S};
_.k$=function(H){return H instanceof Array?H:Cs(_.Z(H))};
_.xC=function(H){return ah(H,H)};
ah=function(H,C){H.raw=C;Object.freeze&&(Object.freeze(H),Object.freeze(C));return H};
Hu=function(H,C){return Object.prototype.hasOwnProperty.call(H,C)};
HWU=function(H){if(H==null)throw new TypeError("g");return Object(H)};
iWE=typeof Object.assign=="function"?Object.assign:function(H,C){H=HWU(H);for(var S=1;S<arguments.length;S++){var w=arguments[S];if(w)for(var A in w)Hu(w,A)&&(H[A]=w[A])}return H};
Rh("Object.assign",function(H){return H||iWE});
var iP=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},Cvi=function(H){if(H.isRunning_)throw new TypeError("i");
H.isRunning_=!0};
iP.prototype.JSC$8733_next_=function(H){this.yieldResult=H};
var S3w=function(H,C){H.abruptCompletion_={exception:C,isException:!0};H.nextAddress=H.catchAddress_||H.finallyAddress_};
iP.prototype.return=function(H){this.abruptCompletion_={return:H};this.nextAddress=this.finallyAddress_};
iP.prototype.yield=function(H,C){this.nextAddress=C;return{value:H}};
iP.prototype.jumpTo=function(H){this.nextAddress=H};
_.oT=function(H){H.nextAddress=0};
_.en=function(H,C,S){H.catchAddress_=C;S!=void 0&&(H.finallyAddress_=S)};
_.fM=function(H,C){H.catchAddress_=0;H.finallyAddress_=C||0};
_.xB=function(H,C,S){H.nextAddress=C;H.catchAddress_=S||0};
_.Vx=function(H,C){H.catchAddress_=C||0;C=H.abruptCompletion_.exception;H.abruptCompletion_=null;return C};
_.Gv=function(H,C,S,w){w?H.finallyContexts_[w]=H.abruptCompletion_:H.finallyContexts_=[H.abruptCompletion_];H.catchAddress_=C||0;H.finallyAddress_=S||0};
_.lf=function(H,C,S){S=H.finallyContexts_.splice(S||0)[0];(S=H.abruptCompletion_=H.abruptCompletion_||S)?S.isException?H.nextAddress=H.catchAddress_||H.finallyAddress_:S.jumpTo!=void 0&&H.finallyAddress_<S.jumpTo?(H.nextAddress=S.jumpTo,H.abruptCompletion_=null):H.nextAddress=H.finallyAddress_:H.nextAddress=C};
srE=function(H){this.JSC$8738_context_=new iP;this.program_=H};
w1E=function(H,C){Cvi(H.JSC$8738_context_);var S=H.JSC$8738_context_.yieldAllIterator_;if(S)return jrE(H,"return"in S?S["return"]:function(w){return{value:w,done:!0}},C,H.JSC$8738_context_.return);
H.JSC$8738_context_.return(C);return C5(H)};
jrE=function(H,C,S,w){try{var A=C.call(H.JSC$8738_context_.yieldAllIterator_,S);if(!(A instanceof Object))throw new TypeError("h`"+A);if(!A.done)return H.JSC$8738_context_.isRunning_=!1,A;var J=A.value}catch(c){return H.JSC$8738_context_.yieldAllIterator_=null,S3w(H.JSC$8738_context_,c),C5(H)}H.JSC$8738_context_.yieldAllIterator_=null;w.call(H.JSC$8738_context_,J);return C5(H)};
C5=function(H){for(;H.JSC$8738_context_.nextAddress;)try{var C=H.program_(H.JSC$8738_context_);if(C)return H.JSC$8738_context_.isRunning_=!1,{value:C.value,done:!1}}catch(S){H.JSC$8738_context_.yieldResult=void 0,S3w(H.JSC$8738_context_,S)}H.JSC$8738_context_.isRunning_=!1;if(H.JSC$8738_context_.abruptCompletion_){C=H.JSC$8738_context_.abruptCompletion_;H.JSC$8738_context_.abruptCompletion_=null;if(C.isException)throw C.exception;return{value:C.return,done:!0}}return{value:void 0,done:!0}};
A8Z=function(H){this.next=function(C){Cvi(H.JSC$8738_context_);H.JSC$8738_context_.yieldAllIterator_?C=jrE(H,H.JSC$8738_context_.yieldAllIterator_.next,C,H.JSC$8738_context_.JSC$8733_next_):(H.JSC$8738_context_.JSC$8733_next_(C),C=C5(H));return C};
this.throw=function(C){Cvi(H.JSC$8738_context_);H.JSC$8738_context_.yieldAllIterator_?C=jrE(H,H.JSC$8738_context_.yieldAllIterator_["throw"],C,H.JSC$8738_context_.JSC$8733_next_):(S3w(H.JSC$8738_context_,C),C=C5(H));return C};
this.return=function(C){return w1E(H,C)};
this[Symbol.iterator]=function(){return this}};
_.YC=function(H,C){C=new A8Z(new srE(C));Ih&&H.prototype&&Ih(C,H.prototype);return C};
J87=function(H){function C(w){return H.next(w)}
function S(w){return H.throw(w)}
return new Promise(function(w,A){function J(c){c.done?w(c.value):Promise.resolve(c.value).then(C,S).then(J,A)}
J(H.next())})};
_.z=function(H){return J87(new A8Z(new srE(H)))};
_.uf=function(H){var C=H[Symbol.asyncIterator];return C!==void 0?C.call(H):new FpW(_.Z(H))};
FpW=function(H){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return H};
this.next=function(C){return Promise.resolve(H.next(C))};
this["throw"]=function(C){return new Promise(function(S,w){var A=H["throw"];A!==void 0?S(A.call(H,C)):(S=H["return"],S!==void 0&&S.call(H),w(new TypeError("j")))})};
H["return"]!==void 0&&(this["return"]=function(C){return Promise.resolve(H["return"](C))})};
_.tc=function(){for(var H=Number(this),C=[],S=H;S<arguments.length;S++)C[S-H]=arguments[S];return C};
_.zX=function(H){return H};
Rh("globalThis",function(H){return H||_.JJ});
Rh("Reflect",function(H){return H?H:{}});
Rh("Reflect.construct",function(){return UCU});
Rh("Reflect.setPrototypeOf",function(H){return H?H:Ih?function(C,S){try{return Ih(C,S),!0}catch(w){return!1}}:null});
Rh("Promise",function(H){function C(){this.batch_=null}
function S(c){return c instanceof A?c:new A(function(Y){Y(c)})}
if(H&&(typeof _.JJ.PromiseRejectionEvent!=="undefined"||!_.JJ.Promise||_.JJ.Promise.toString().indexOf("[native code]")===-1))return H;C.prototype.asyncExecute=function(c){if(this.batch_==null){this.batch_=[];var Y=this;this.asyncExecuteFunction(function(){Y.executeBatch_()})}this.batch_.push(c)};
var w=_.JJ.setTimeout;C.prototype.asyncExecuteFunction=function(c){w(c,0)};
C.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var c=this.batch_;this.batch_=[];for(var Y=0;Y<c.length;++Y){var M=c[Y];c[Y]=null;try{M()}catch(m){this.asyncThrow_(m)}}}this.batch_=null};
C.prototype.asyncThrow_=function(c){this.asyncExecuteFunction(function(){throw c;})};
var A=function(c){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var Y=this.createResolveAndReject_();try{c(Y.resolve,Y.reject)}catch(M){Y.reject(M)}};
A.prototype.createResolveAndReject_=function(){function c(m){return function(W){M||(M=!0,m.call(Y,W))}}
var Y=this,M=!1;return{resolve:c(this.resolveTo_),reject:c(this.JSC$8766_reject_)}};
A.prototype.resolveTo_=function(c){if(c===this)this.JSC$8766_reject_(new TypeError("n"));else if(c instanceof A)this.settleSameAsPromise_(c);else{a:switch(typeof c){case "object":var Y=c!=null;break a;case "function":Y=!0;break a;default:Y=!1}Y?this.resolveToNonPromiseObj_(c):this.fulfill_(c)}};
A.prototype.resolveToNonPromiseObj_=function(c){var Y=void 0;try{Y=c.then}catch(M){this.JSC$8766_reject_(M);return}typeof Y=="function"?this.settleSameAsThenable_(Y,c):this.fulfill_(c)};
A.prototype.JSC$8766_reject_=function(c){this.settle_(2,c)};
A.prototype.fulfill_=function(c){this.settle_(1,c)};
A.prototype.settle_=function(c,Y){if(this.state_!=0)throw Error("o`"+c+"`"+Y+"`"+this.state_);this.state_=c;this.result_=Y;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
A.prototype.scheduleUnhandledRejectionCheck_=function(){var c=this;w(function(){if(c.notifyUnhandledRejection_()){var Y=_.JJ.console;typeof Y!=="undefined"&&Y.error(c.result_)}},1)};
A.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var c=_.JJ.CustomEvent,Y=_.JJ.Event,M=_.JJ.dispatchEvent;if(typeof M==="undefined")return!0;typeof c==="function"?c=new c("unhandledrejection",{cancelable:!0}):typeof Y==="function"?c=new Y("unhandledrejection",{cancelable:!0}):(c=_.JJ.document.createEvent("CustomEvent"),c.initCustomEvent("unhandledrejection",!1,!0,c));c.promise=this;c.reason=this.result_;return M(c)};
A.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var c=0;c<this.onSettledCallbacks_.length;++c)J.asyncExecute(this.onSettledCallbacks_[c]);this.onSettledCallbacks_=null}};
var J=new C;A.prototype.settleSameAsPromise_=function(c){var Y=this.createResolveAndReject_();c.callWhenSettled_(Y.resolve,Y.reject)};
A.prototype.settleSameAsThenable_=function(c,Y){var M=this.createResolveAndReject_();try{c.call(Y,M.resolve,M.reject)}catch(m){M.reject(m)}};
A.prototype.then=function(c,Y){function M(N,b){return typeof N=="function"?function(u){try{m(N(u))}catch(O){W(O)}}:b}
var m,W,y=new A(function(N,b){m=N;W=b});
this.callWhenSettled_(M(c,m),M(Y,W));return y};
A.prototype.catch=function(c){return this.then(void 0,c)};
A.prototype.callWhenSettled_=function(c,Y){function M(){switch(m.state_){case 1:c(m.result_);break;case 2:Y(m.result_);break;default:throw Error("p`"+m.state_);}}
var m=this;this.onSettledCallbacks_==null?J.asyncExecute(M):this.onSettledCallbacks_.push(M);this.isRejectionHandled_=!0};
A.resolve=S;A.reject=function(c){return new A(function(Y,M){M(c)})};
A.race=function(c){return new A(function(Y,M){for(var m=_.Z(c),W=m.next();!W.done;W=m.next())S(W.value).callWhenSettled_(Y,M)})};
A.all=function(c){var Y=_.Z(c),M=Y.next();return M.done?S([]):new A(function(m,W){function y(u){return function(O){N[u]=O;b--;b==0&&m(N)}}
var N=[],b=0;do N.push(void 0),b++,S(M.value).callWhenSettled_(y(N.length-1),W),M=Y.next();while(!M.done)})};
return A});
var SC=function(H,C,S){if(H==null)throw new TypeError("q`"+S);if(C instanceof RegExp)throw new TypeError("r`"+S);return H+""};
Rh("String.prototype.startsWith",function(H){return H?H:function(C,S){var w=SC(this,C,"startsWith"),A=w.length,J=C.length;S=Math.max(0,Math.min(S|0,w.length));for(var c=0;c<J&&S<A;)if(w[S++]!=C[c++])return!1;return c>=J}});
Rh("Object.setPrototypeOf",function(H){return H||Ih});
Rh("Symbol.dispose",function(H){return H?H:Symbol("s")});
Rh("SuppressedError",function(H){function C(S,w,A){if(!(this instanceof C))return new C(S,w,A);A=Error(A);"stack"in A&&(this.stack=A.stack);this.message=A.message;this.error=S;this.suppressed=w}
if(H)return H;_.G(C,Error);C.prototype.name="SuppressedError";return C});
Rh("Array.from",function(H){return H?H:function(C,S,w){S=S!=null?S:function(Y){return Y};
var A=[],J=typeof Symbol!="undefined"&&Symbol.iterator&&C[Symbol.iterator];if(typeof J=="function"){C=J.call(C);for(var c=0;!(J=C.next()).done;)A.push(S.call(w,J.value,c++))}else for(J=C.length,c=0;c<J;c++)A.push(S.call(w,C[c],c));return A}});
var ZWE=function(H,C,S){H instanceof String&&(H=String(H));for(var w=H.length,A=0;A<w;A++){var J=H[A];if(C.call(S,J,A,H))return{i:A,v:J}}return{i:-1,v:void 0}};
Rh("Array.prototype.find",function(H){return H?H:function(C,S){return ZWE(this,C,S).v}});
Rh("WeakMap",function(H){function C(){}
function S(M){var m=typeof M;return m==="object"&&M!==null||m==="function"}
function w(M){if(!Hu(M,J)){var m=new C;Kqu(M,J,{value:m})}}
function A(M){var m=Object[M];m&&(Object[M]=function(W){if(W instanceof C)return W;Object.isExtensible(W)&&w(W);return m(W)})}
if(function(){if(!H||!Object.seal)return!1;try{var M=Object.seal({}),m=Object.seal({}),W=new H([[M,2],[m,3]]);if(W.get(M)!=2||W.get(m)!=3)return!1;W.delete(M);W.set(m,4);return!W.has(M)&&W.get(m)==4}catch(y){return!1}}())return H;
var J="$jscomp_hidden_"+Math.random();A("freeze");A("preventExtensions");A("seal");var c=0,Y=function(M){this.JSC$8774_id_=(c+=Math.random()+1).toString();if(M){M=_.Z(M);for(var m;!(m=M.next()).done;)m=m.value,this.set(m[0],m[1])}};
Y.prototype.set=function(M,m){if(!S(M))throw Error("t");w(M);if(!Hu(M,J))throw Error("u`"+M);M[J][this.JSC$8774_id_]=m;return this};
Y.prototype.get=function(M){return S(M)&&Hu(M,J)?M[J][this.JSC$8774_id_]:void 0};
Y.prototype.has=function(M){return S(M)&&Hu(M,J)&&Hu(M[J],this.JSC$8774_id_)};
Y.prototype.delete=function(M){return S(M)&&Hu(M,J)&&Hu(M[J],this.JSC$8774_id_)?delete M[J][this.JSC$8774_id_]:!1};
return Y});
Rh("Map",function(H){if(function(){if(!H||typeof H!="function"||!H.prototype.entries||typeof Object.seal!="function")return!1;try{var Y=Object.seal({x:4}),M=new H(_.Z([[Y,"s"]]));if(M.get(Y)!="s"||M.size!=1||M.get({x:4})||M.set({x:4},"t")!=M||M.size!=2)return!1;var m=M.entries(),W=m.next();if(W.done||W.value[0]!=Y||W.value[1]!="s")return!1;W=m.next();return W.done||W.value[0].x!=4||W.value[1]!="t"||!m.next().done?!1:!0}catch(y){return!1}}())return H;
var C=new WeakMap,S=function(Y){this[0]={};this[1]=J();this.size=0;if(Y){Y=_.Z(Y);for(var M;!(M=Y.next()).done;)M=M.value,this.set(M[0],M[1])}};
S.prototype.set=function(Y,M){Y=Y===0?0:Y;var m=w(this,Y);m.list||(m.list=this[0][m.id]=[]);m.entry?m.entry.value=M:(m.entry={next:this[1],previous:this[1].previous,head:this[1],key:Y,value:M},m.list.push(m.entry),this[1].previous.next=m.entry,this[1].previous=m.entry,this.size++);return this};
S.prototype.delete=function(Y){Y=w(this,Y);return Y.entry&&Y.list?(Y.list.splice(Y.index,1),Y.list.length||delete this[0][Y.id],Y.entry.previous.next=Y.entry.next,Y.entry.next.previous=Y.entry.previous,Y.entry.head=null,this.size--,!0):!1};
S.prototype.clear=function(){this[0]={};this[1]=this[1].previous=J();this.size=0};
S.prototype.has=function(Y){return!!w(this,Y).entry};
S.prototype.get=function(Y){return(Y=w(this,Y).entry)&&Y.value};
S.prototype.entries=function(){return A(this,function(Y){return[Y.key,Y.value]})};
S.prototype.keys=function(){return A(this,function(Y){return Y.key})};
S.prototype.values=function(){return A(this,function(Y){return Y.value})};
S.prototype.forEach=function(Y,M){for(var m=this.entries(),W;!(W=m.next()).done;)W=W.value,Y.call(M,W[1],W[0],this)};
S.prototype[Symbol.iterator]=S.prototype.entries;var w=function(Y,M){var m=M&&typeof M;m=="object"||m=="function"?C.has(M)?m=C.get(M):(m=""+ ++c,C.set(M,m)):m="p_"+M;var W=Y[0][m];if(W&&Hu(Y[0],m))for(Y=0;Y<W.length;Y++){var y=W[Y];if(M!==M&&y.key!==y.key||M===y.key)return{id:m,list:W,index:Y,entry:y}}return{id:m,list:W,index:-1,entry:void 0}},A=function(Y,M){var m=Y[1];
return Lq0(function(){if(m){for(;m.head!=Y[1];)m=m.previous;for(;m.next!=m.head;)return m=m.next,{done:!1,value:M(m)};m=null}return{done:!0,value:void 0}})},J=function(){var Y={};
return Y.previous=Y.next=Y.head=Y},c=0;
return S});
Rh("Set",function(H){if(function(){if(!H||typeof H!="function"||!H.prototype.entries||typeof Object.seal!="function")return!1;try{var S=Object.seal({x:4}),w=new H(_.Z([S]));if(!w.has(S)||w.size!=1||w.add(S)!=w||w.size!=1||w.add({x:4})!=w||w.size!=2)return!1;var A=w.entries(),J=A.next();if(J.done||J.value[0]!=S||J.value[1]!=S)return!1;J=A.next();return J.done||J.value[0]==S||J.value[0].x!=4||J.value[1]!=J.value[0]?!1:A.next().done}catch(c){return!1}}())return H;
var C=function(S){this.JSC$8788_map_=new Map;if(S){S=_.Z(S);for(var w;!(w=S.next()).done;)this.add(w.value)}this.size=this.JSC$8788_map_.size};
C.prototype.add=function(S){S=S===0?0:S;this.JSC$8788_map_.set(S,S);this.size=this.JSC$8788_map_.size;return this};
C.prototype.delete=function(S){S=this.JSC$8788_map_.delete(S);this.size=this.JSC$8788_map_.size;return S};
C.prototype.clear=function(){this.JSC$8788_map_.clear();this.size=0};
C.prototype.has=function(S){return this.JSC$8788_map_.has(S)};
C.prototype.entries=function(){return this.JSC$8788_map_.entries()};
C.prototype.values=function(){return this.JSC$8788_map_.values()};
C.prototype.keys=C.prototype.values;C.prototype[Symbol.iterator]=C.prototype.values;C.prototype.forEach=function(S,w){var A=this;this.JSC$8788_map_.forEach(function(J){return S.call(w,J,J,A)})};
return C});
Rh("Math.log2",function(H){return H?H:function(C){return Math.log(C)/Math.LN2}});
Rh("Object.values",function(H){return H?H:function(C){var S=[],w;for(w in C)Hu(C,w)&&S.push(C[w]);return S}});
Rh("Object.is",function(H){return H?H:function(C,S){return C===S?C!==0||1/C===1/S:C!==C&&S!==S}});
Rh("Array.prototype.includes",function(H){return H?H:function(C,S){var w=this;w instanceof String&&(w=String(w));var A=w.length;S=S||0;for(S<0&&(S=Math.max(S+A,0));S<A;S++){var J=w[S];if(J===C||Object.is(J,C))return!0}return!1}});
Rh("String.prototype.includes",function(H){return H?H:function(C,S){return SC(this,C,"includes").indexOf(C,S||0)!==-1}});
Rh("Object.entries",function(H){return H?H:function(C){var S=[],w;for(w in C)Hu(C,w)&&S.push([w,C[w]]);return S}});
Rh("Number.isFinite",function(H){return H?H:function(C){return typeof C!=="number"?!1:!isNaN(C)&&C!==Infinity&&C!==-Infinity}});
Rh("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
Rh("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
Rh("Number.isInteger",function(H){return H?H:function(C){return Number.isFinite(C)?C===Math.floor(C):!1}});
Rh("Number.isSafeInteger",function(H){return H?H:function(C){return Number.isInteger(C)&&Math.abs(C)<=Number.MAX_SAFE_INTEGER}});
Rh("String.prototype.endsWith",function(H){return H?H:function(C,S){var w=SC(this,C,"endsWith");S===void 0&&(S=w.length);S=Math.max(0,Math.min(S|0,w.length));for(var A=C.length;A>0&&S>0;)if(w[--S]!=C[--A])return!1;return A<=0}});
var c8E=function(H,C){H instanceof String&&(H+="");var S=0,w=!1,A={next:function(){if(!w&&S<H.length){var J=S++;return{value:C(J,H[J]),done:!1}}w=!0;return{done:!0,value:void 0}}};
A[Symbol.iterator]=function(){return A};
return A};
Rh("Array.prototype.entries",function(H){return H?H:function(){return c8E(this,function(C,S){return[C,S]})}});
Rh("Math.trunc",function(H){return H?H:function(C){C=Number(C);if(isNaN(C)||C===Infinity||C===-Infinity||C===0)return C;var S=Math.floor(Math.abs(C));return C<0?-S:S}});
Rh("Number.isNaN",function(H){return H?H:function(C){return typeof C==="number"&&isNaN(C)}});
Rh("Array.prototype.keys",function(H){return H?H:function(){return c8E(this,function(C){return C})}});
Rh("Array.prototype.values",function(H){return H?H:function(){return c8E(this,function(C,S){return S})}});
Rh("Array.prototype.fill",function(H){return H?H:function(C,S,w){var A=this.length||0;S<0&&(S=Math.max(0,A+S));if(w==null||w>A)w=A;w=Number(w);w<0&&(w=Math.max(0,A+w));for(S=Number(S||0);S<w;S++)this[S]=C;return this}});
var sb=function(H){return H?H:Array.prototype.fill};
Rh("Int8Array.prototype.fill",sb);Rh("Uint8Array.prototype.fill",sb);Rh("Uint8ClampedArray.prototype.fill",sb);Rh("Int16Array.prototype.fill",sb);Rh("Uint16Array.prototype.fill",sb);Rh("Int32Array.prototype.fill",sb);Rh("Uint32Array.prototype.fill",sb);Rh("Float32Array.prototype.fill",sb);Rh("Float64Array.prototype.fill",sb);
Rh("Object.fromEntries",function(H){return H?H:function(C){var S={};if(!(Symbol.iterator in C))throw new TypeError("v`"+C);C=C[Symbol.iterator].call(C);for(var w=C.next();!w.done;w=C.next()){w=w.value;if(Object(w)!==w)throw new TypeError("w");S[w[0]]=w[1]}return S}});
Rh("String.prototype.replaceAll",function(H){return H?H:function(C,S){if(C instanceof RegExp&&!C.global)throw new TypeError("x");return C instanceof RegExp?this.replace(C,S):this.replace(new RegExp(String(C).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),S)}});
Rh("Object.getOwnPropertySymbols",function(H){return H?H:function(){return[]}});
Rh("String.prototype.repeat",function(H){return H?H:function(C){var S=SC(this,null,"repeat");if(C<0||C>1342177279)throw new RangeError("y");C|=0;for(var w="";C;)if(C&1&&(w+=S),C>>>=1)S+=S;return w}});
Rh("Array.prototype.findIndex",function(H){return H?H:function(C,S){return ZWE(this,C,S).i}});
Rh("Array.prototype.flatMap",function(H){return H?H:function(C,S){var w=[];Array.prototype.forEach.call(this,function(A,J){A=C.call(S,A,J,this);Array.isArray(A)?w.push.apply(w,A):w.push(A)});
return w}});
Rh("String.prototype.codePointAt",function(H){return H?H:function(C){var S=SC(this,null,"codePointAt"),w=S.length;C=Number(C)||0;if(C>=0&&C<w){C|=0;var A=S.charCodeAt(C);if(A<55296||A>56319||C+1===w)return A;C=S.charCodeAt(C+1);return C<56320||C>57343?A:(A-55296)*1024+C+9216}}});
Rh("String.fromCodePoint",function(H){return H?H:function(C){for(var S="",w=0;w<arguments.length;w++){var A=Number(arguments[w]);if(A<0||A>1114111||A!==Math.floor(A))throw new RangeError("z`"+A);A<=65535?S+=String.fromCharCode(A):(A-=65536,S+=String.fromCharCode(A>>>10&1023|55296),S+=String.fromCharCode(A&1023|56320))}return S}});
Rh("String.prototype.trimLeft",function(H){function C(){return this.replace(/^[\s\xa0]+/,"")}
return H||C});
Rh("String.prototype.trimStart",function(H){return H||String.prototype.trimLeft});
Rh("String.prototype.padStart",function(H){return H?H:function(C,S){var w=SC(this,null,"padStart");C-=w.length;S=S!==void 0?String(S):" ";return(C>0&&S?S.repeat(Math.ceil(C/S.length)).substring(0,C):"")+w}});
Rh("Promise.prototype.finally",function(H){return H?H:function(C){return this.then(function(S){return Promise.resolve(C()).then(function(){return S})},function(S){return Promise.resolve(C()).then(function(){throw S;
})})}});
Rh("Math.imul",function(H){return H?H:function(C,S){C=Number(C);S=Number(S);var w=C&65535,A=S&65535;return w*A+((C>>>16&65535)*A+w*(S>>>16&65535)<<16>>>0)|0}});
Rh("Object.hasOwn",function(H){return H?H:function(C,S){return Object.prototype.hasOwnProperty.call(C,S)}});
Rh("Math.sign",function(H){return H?H:function(C){C=Number(C);return C===0||isNaN(C)?C:C>0?1:-1}});
Rh("Array.prototype.flat",function(H){return H?H:function(C){C=C===void 0?1:C;var S=[];Array.prototype.forEach.call(this,function(w){Array.isArray(w)&&C>0?(w=Array.prototype.flat.call(w,C-1),S.push.apply(S,w)):S.push(w)});
return S}});
Rh("String.raw",function(H){return H?H:function(C,S){C=HWU(C);for(var w=C.raw,A=w.length,J="",c=0;c<A;++c)J+=w[c],c+1<A&&c+1<arguments.length&&(J+=String(arguments[c+1]));return J}});
Rh("Reflect.ownKeys",function(H){return H?H:function(C){var S=[],w=Object.getOwnPropertyNames(C);C=Object.getOwnPropertySymbols(C);for(var A=0;A<w.length;A++)(w[A].substring(0,14)=="jscomp_symbol_"?C:S).push(w[A]);return S.concat(C)}});
Rh("Object.getOwnPropertyDescriptors",function(H){return H?H:function(C){for(var S={},w=Reflect.ownKeys(C),A=0;A<w.length;A++)S[w[A]]=Object.getOwnPropertyDescriptor(C,w[A]);return S}});
Rh("WeakSet",function(H){if(function(){if(!H||!Object.seal)return!1;try{var S=Object.seal({}),w=Object.seal({}),A=new H([S]);if(!A.has(S)||A.has(w))return!1;A.delete(S);A.add(w);return!A.has(S)&&A.has(w)}catch(J){return!1}}())return H;
var C=function(S){this.JSC$8800_map_=new WeakMap;if(S){S=_.Z(S);for(var w;!(w=S.next()).done;)this.add(w.value)}};
C.prototype.add=function(S){this.JSC$8800_map_.set(S,!0);return this};
C.prototype.has=function(S){return this.JSC$8800_map_.has(S)};
C.prototype.delete=function(S){return this.JSC$8800_map_.delete(S)};
return C});
Rh("Promise.allSettled",function(H){function C(w){return{status:"fulfilled",value:w}}
function S(w){return{status:"rejected",reason:w}}
return H?H:function(w){var A=this;w=Array.from(w,function(J){return A.resolve(J).then(C,S)});
return A.all(w)}});
Rh("Number.parseInt",function(H){return H||parseInt});
_._DumpException=window._DumpException||function(H){throw H;};
window._DumpException=_._DumpException;var Y30=window.ytcsi;Y30&&typeof Y30.tick==="function"&&Y30.tick("rses_dpj");var zmu,jC,wO,AC,MFi,q3Z,TFu,mY$,VO,Wpi;zmu=zmu||{};_.s$=this||self;_.AO=function(H,C,S){H=H.split(".");S=S||_.s$;for(var w;H.length&&(w=H.shift());)H.length||C===void 0?S[w]&&S[w]!==Object.prototype[w]?S=S[w]:S=S[w]={}:S[w]=C};
jC=function(H,C){var S=_.gh("WIZ_global_data.oxN3nb");H=S&&S[H];return H!=null?H:C};
wO=_.s$._F_toggles_default_kevlar_base||[];AC=function(){};
AC.get=function(){return null};
_.LRE=null;_.gh=function(H,C){H=H.split(".");C=C||_.s$;for(var S=0;S<H.length;S++)if(C=C[H[S]],C==null)return null;return C};
_.JC=function(H){H.instance_=void 0;H.getInstance=function(){return H.instance_?H.instance_:H.instance_=new H}};
_.IV=function(H){var C=typeof H;return C!="object"?C:H?Array.isArray(H)?"array":C:"null"};
_.Dw=function(H){var C=_.IV(H);return C=="array"||C=="object"&&typeof H.length=="number"};
_.U$=function(H){var C=typeof H;return C=="object"&&H!=null||C=="function"};
_.I0=function(H){return Object.prototype.hasOwnProperty.call(H,MFi)&&H[MFi]||(H[MFi]=++q3Z)};
MFi="closure_uid_"+(Math.random()*1E9>>>0);q3Z=0;TFu=function(H,C,S){return H.call.apply(H.bind,arguments)};
mY$=function(H,C,S){if(!H)throw Error();if(arguments.length>2){var w=Array.prototype.slice.call(arguments,2);return function(){var A=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(A,w);return H.apply(C,A)}}return function(){return H.apply(C,arguments)}};
_.Xv=function(H,C,S){_.Xv=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?TFu:mY$;return _.Xv.apply(null,arguments)};
_.l9=function(H,C){var S=Array.prototype.slice.call(arguments,1);return function(){var w=S.slice();w.push.apply(w,arguments);return H.apply(this,w)}};
_.FF=function(){return Date.now()};
VO=function(H){return H};
_.Zh=function(H,C){function S(){}
S.prototype=C.prototype;H.superClass_=C.prototype;H.prototype=new S;H.prototype.constructor=H;H.base=function(w,A,J){for(var c=Array(arguments.length-2),Y=2;Y<arguments.length;Y++)c[Y-2]=arguments[Y];return C.prototype[A].apply(w,c)}};
Wpi=function(H){return H};var y8$,NFZ;_.D=function(H,C,S,w){var A=arguments.length,J=A<3?C:w===null?w=Object.getOwnPropertyDescriptor(C,S):w,c;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")J=Reflect.decorate(H,C,S,w);else for(var Y=H.length-1;Y>=0;Y--)if(c=H[Y])J=(A<3?c(J):A>3?c(C,S,J):c(C,S))||J;A>3&&J&&Object.defineProperty(C,S,J)};
_.K=function(H,C){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(H,C)};
y8$=function(H,C){if(C!==null&&C!==void 0){if(typeof C!=="object"&&typeof C!=="function")throw new TypeError("A");if(S===void 0){if(!Symbol.dispose)throw new TypeError("C");var S=C[Symbol.dispose]}if(typeof S!=="function")throw new TypeError("D");H.stack.push({value:C,dispose:S,async:!1})}return C};
NFZ=function(H){function C(J){H.error=H.hasError?new SuppressedError(J,H.error,"An error was suppressed during disposal."):J;H.hasError=!0}
function S(){for(;w=H.stack.pop();)try{if(!w.async&&A===1)return A=0,H.stack.push(w),Promise.resolve().then(S);if(w.dispose){var J=w.dispose.call(w.value);if(w.async)return A|=2,Promise.resolve(J).then(S,function(c){C(c);return S()})}else A|=1}catch(c){C(c)}if(A===1)return H.hasError?Promise.reject(H.error):Promise.resolve();
if(H.hasError)throw H.error;}
var w,A=0;S()};var bWZ="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(" ");HUV()&&bWZ.push("details:not(:has(summary))");var Ci6=bWZ.join(",");_.Zh(_.CU,Error);_.CU.prototype.name="CustomError";var EXW;var emE=void 0,uCE,GD6=typeof TextDecoder!=="undefined",cVu,ZUu=typeof String.prototype.isWellFormed==="function",FEZ=typeof TextEncoder!=="undefined";var fuE;_.o7=function(H){for(var C=[],S=0,w=0;w<H.length;w++){var A=H.charCodeAt(w);A<128?C[S++]=A:(A<2048?C[S++]=A>>6|192:((A&64512)==55296&&w+1<H.length&&(H.charCodeAt(w+1)&64512)==56320?(A=65536+((A&1023)<<10)+(H.charCodeAt(++w)&1023),C[S++]=A>>18|240,C[S++]=A>>12&63|128):C[S++]=A>>12|224,C[S++]=A>>6&63|128),C[S++]=A&63|128)}return C};
fuE=function(H){for(var C=[],S=0,w=0;S<H.length;){var A=H[S++];if(A<128)C[w++]=String.fromCharCode(A);else if(A>191&&A<224){var J=H[S++];C[w++]=String.fromCharCode((A&31)<<6|J&63)}else if(A>239&&A<365){J=H[S++];var c=H[S++],Y=H[S++];A=((A&7)<<18|(J&63)<<12|(c&63)<<6|Y&63)-65536;C[w++]=String.fromCharCode(55296+(A>>10));C[w++]=String.fromCharCode(56320+(A&1023))}else J=H[S++],c=H[S++],C[w++]=String.fromCharCode((A&15)<<12|(J&63)<<6|c&63)}return C.join("")};var qD=String.prototype.trim?function(H){return H.trim()}:function(H){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(H)[1]},vX7=/&/g,luw=/</g,VFE=/>/g,oXW=/"/g,OWU=/'/g,X1D=/\x00/g,QrW=/[\x00&<>"']/;var cu=!!(wO[0]>>15&1),dYp=!!(wO[0]&1024),Pvp=!!(wO[0]>>16&1),$Y7=!!(wO[0]&8),p1D=!!(wO[0]&2),kDD=!!(wO[0]&4),hmE=!!(wO[0]&16),nX0=!!(wO[0]&128);var r8U=jC(1,!0),y7=cu?Pvp:jC(610401301,!1),BFU=cu?$Y7:jC(772657768,!1),DYu=cu?p1D:jC(513659523,!1),KpV=cu?dYp||!kDD:jC(568333945,!0),Fc6=cu?hmE:jC(1331761403,!1),NiE=cu?dYp||!nX0:jC(748402147,r8U);var E$,tFi=_.s$.navigator;E$=tFi?tFi.userAgentData||null:null;var CC;_.hV=function(H,C){return Array.prototype.indexOf.call(H,C,void 0)};
_.I6=function(H,C,S){Array.prototype.forEach.call(H,C,S)};
_.Yv=function(H,C,S){return Array.prototype.filter.call(H,C,S)};
_.nX=function(H,C,S){return Array.prototype.map.call(H,C,S)};
CC=function(H,C,S){return Array.prototype.some.call(H,C,S)};
_.ho6=function(H,C,S){return Array.prototype.every.call(H,C,S)};var zt=function(H){zt[" "](H);return H};
zt[" "]=function(){};
var OXE=function(H,C){try{return zt(H[C]),!0}catch(S){}return!1},u6E=function(H,C,S,w){w=w?w(C):C;
return Object.prototype.hasOwnProperty.call(H,w)?H[w]:H[w]=S(C)};var Lp7,jk,gXZ,UYW,Iu0,auZ,ogE,xY6,HeZ,ieD,nqp,S8D,sL6,J4u,FVZ,Ze$;_.n8E=function(){return _.s$.navigator||null};
Lp7=q$E();_.My=Tuw();jk=G6("Edge");gXZ=jk||_.My;_.qy=G6("Gecko")&&!(_.MD(_.WZ(),"WebKit")&&!G6("Edge"))&&!(G6("Trident")||G6("MSIE"))&&!G6("Edge");_.Tt=_.MD(_.WZ(),"WebKit")&&!G6("Edge");UYW=_.Tt&&G6("Mobile");_.Rm7=_.G6E();Iu0=_.fw7();auZ=(o0()?E$.platform==="Linux":G6("Linux"))||_.vEW();ogE=_.epZ();xY6=uWu();HeZ=G6("iPad");ieD=G6("iPod");_.CG6=_.XW();nqp=_.MD(_.WZ(),"KaiOS");S8D=function(){var H=_.s$.document;return H?H.documentMode:void 0};
a:{var jL7="",wEp=function(){var H=_.WZ();if(_.qy)return/rv:([^\);]+)(\)|;)/.exec(H);if(jk)return/Edge\/([\d\.]+)/.exec(H);if(_.My)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(H);if(_.Tt)return/WebKit\/(\S+)/.exec(H);if(Lp7)return/(?:Version)[ \/]?(\S+)/.exec(H)}();
wEp&&(jL7=wEp?wEp[1]:"");if(_.My){var A4i=S8D();if(A4i!=null&&A4i>parseFloat(jL7)){sL6=String(A4i);break a}}sL6=jL7}J4u=sL6;FVZ={};_.mU=function(H){return u6E(FVZ,H,function(){return _.T6(J4u,H)>=0})};
if(_.s$.document&&_.My){var c4Z=S8D();Ze$=c4Z?c4Z:parseInt(J4u,10)||void 0}else Ze$=void 0;_.Y8E=Ze$;var n6W,rfi,zO$;_.Wu=vZ();n6W=uWu()||G6("iPod");rfi=G6("iPad");zO$=_.yVU();_.yK=_.li();_.tA=_.WED()&&!_.XW();var MlW,Ny,R_p,nr0,TK$,q80;MlW={};Ny=null;R_p=_.qy||_.Tt||typeof _.s$.btoa=="function";_.QO=function(H,C){C===void 0&&(C=0);q80();C=MlW[C];for(var S=Array(Math.floor(H.length/3)),w=C[64]||"",A=0,J=0;A<H.length-2;A+=3){var c=H[A],Y=H[A+1],M=H[A+2],m=C[c>>2];c=C[(c&3)<<4|Y>>4];Y=C[(Y&15)<<2|M>>6];M=C[M&63];S[J++]=m+c+Y+M}m=0;M=w;switch(H.length-A){case 2:m=H[A+1],M=C[(m&15)<<2]||w;case 1:H=H[A],S[J]=C[H>>2]+C[(H&3)<<4|m>>4]+M+w}return S.join("")};
nr0=function(H){var C="";TK$(H,function(S){C+=String.fromCharCode(S)});
return C};
_.FM$=function(H){var C=[];TK$(H,function(S){C.push(S)});
return C};
_.iY=function(H){var C=H.length,S=C*3/4;S%3?S=Math.floor(S):_.z6("=.",H[C-1])&&(S=_.z6("=.",H[C-2])?S-2:S-1);var w=new Uint8Array(S),A=0;TK$(H,function(J){w[A++]=J});
return A!==S?w.subarray(0,A):w};
TK$=function(H,C){function S(M){for(;w<H.length;){var m=H.charAt(w++),W=Ny[m];if(W!=null)return W;if(!_.YE(m))throw Error("H`"+m);}return M}
q80();for(var w=0;;){var A=S(-1),J=S(0),c=S(64),Y=S(64);if(Y===64&&A===-1)break;C(A<<2|J>>4);c!=64&&(C(J<<4&240|c>>2),Y!=64&&C(c<<6&192|Y))}};
q80=function(){if(!Ny){Ny={};for(var H="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),C=["+/=","+/","-_=","-_.","-_"],S=0;S<5;S++){var w=H.concat(C[S].split(""));MlW[S]=w;for(var A=0;A<w.length;A++){var J=w[A];Ny[J]===void 0&&(Ny[J]=A)}}}};var xDZ=typeof Uint8Array!=="undefined",rV$=!_.My&&typeof btoa==="function",Bu7=/[-_.]/g,hpE={"-":"+",_:"/",".":"="},Vb={};var v7,WVu;v7=function(H,C){if(C!==Vb)throw Error("J");this.JSC$8834_value_=H;if(H!=null&&H.length===0)throw Error("I");};
_.oV=function(){return mSD||(mSD=new v7(null,Vb))};
WVu=function(H){return new Uint8Array(D9$(H)||0)};
v7.prototype.isEmpty=function(){return this.JSC$8834_value_==null};
v7.prototype.sizeBytes=function(){var H=D9$(this);return H?H.length:0};
var D9$=function(H){if(Vb!==Vb)throw Error("J");var C=H.JSC$8834_value_;C==null||xDZ&&C!=null&&C instanceof Uint8Array||(typeof C==="string"?C=DDZ(C):(_.IV(C),C=null));return C==null?C:H.JSC$8834_value_=C},mSD;var tZp=void 0;var wU=typeof Symbol==="function"&&typeof Symbol()==="symbol",y4E=j7("jas",void 0,!0),nM$=j7(void 0,"0di"),Sh=j7(void 0,"1oa"),oO=j7(void 0,Symbol()),S_Z=j7(void 0,"0ub"),jOV=j7(void 0,"0ubs"),f4E=j7(void 0,"0ubsb"),Et7=j7(void 0,"0actk"),up=j7("m_m","messagePrototypeMarker",!0),q_E=j7(void 0,"vps"),Hr7=j7();var UDE,gE$,gi,NKi;UDE={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};gE$=Object.defineProperties;_.A_=wU?y4E:"internalArrayState";NKi=[];J_(NKi,7);gi=Object.freeze(NKi);var fr={},zd={},beu=function(H,C,S){this.iterable=H;this.mapper=C;this.thisArg=S};
beu.prototype.next=function(){var H=this.iterable.next();H.done||(H.value=this.mapper.call(this.thisArg,H.value));return H};
beu.prototype[Symbol.iterator]=function(){return this};
var E5Z=Object.freeze({}),Xd={};_.eOu=dU(function(H){return H!==null&&H!==void 0});var jVw=dU(function(H){return typeof H==="number"}),sVZ=dU(function(H){return typeof H==="string"}),A_u=dU(function(H){return typeof H==="boolean"}),ugp=dU(function(H){return H!=null&&typeof H==="object"&&typeof H.then==="function"}),dEE=dU(function(H){return typeof H==="function"}),Zp=dU(function(H){return!!H&&(typeof H==="object"||typeof H==="function")});var w7u=typeof _.s$.BigInt==="function"&&typeof _.s$.BigInt(0)==="bigint";var diZ=dU(function(H){return w7u?H>=GsZ&&H<=fd6:H[0]==="-"?J_E(H,v5D):J_E(H,ld6)}),v5D=Number.MIN_SAFE_INTEGER.toString(),GsZ=w7u?BigInt(Number.MIN_SAFE_INTEGER):void 0,ld6=Number.MAX_SAFE_INTEGER.toString(),fd6=w7u?BigInt(Number.MAX_SAFE_INTEGER):void 0;var VlZ=typeof Uint8Array.prototype.slice==="function",$M=0,pP=0,c_Z;var FR,zK,aV,Yt,NUZ;FR=typeof BigInt==="function"?BigInt.asIntN:void 0;_.q9=typeof BigInt==="function"?BigInt.asUintN:void 0;zK=Number.isSafeInteger;aV=Number.isFinite;Yt=Math.trunc;NUZ=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var TiE={};var I1V={},o5$=function(){try{var H=function(){return UCU(Map,[],this.constructor)};
_.G(H,Map);zt(new H);return!1}catch(C){return!0}}(),bP=function(){this.JSC$8853_map_=new Map};
_.F=bP.prototype;_.F.get=function(H){return this.JSC$8853_map_.get(H)};
_.F.set=function(H,C){this.JSC$8853_map_.set(H,C);this.size=this.JSC$8853_map_.size;return this};
_.F.delete=function(H){H=this.JSC$8853_map_.delete(H);this.size=this.JSC$8853_map_.size;return H};
_.F.clear=function(){this.JSC$8853_map_.clear();this.size=this.JSC$8853_map_.size};
_.F.has=function(H){return this.JSC$8853_map_.has(H)};
_.F.entries=function(){return this.JSC$8853_map_.entries()};
_.F.keys=function(){return this.JSC$8853_map_.keys()};
_.F.values=function(){return this.JSC$8853_map_.values()};
_.F.forEach=function(H,C){return this.JSC$8853_map_.forEach(H,C)};
bP.prototype[Symbol.iterator]=function(){return this.entries()};
var P3=function(){if(o5$)return Object.setPrototypeOf(bP.prototype,Map.prototype),Object.defineProperties(bP.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),bP;var H=function(){return UCU(Map,[],this.constructor)};
_.G(H,Map);return H}(),lp=function(H,C,S,w){S=S===void 0?t7E:S;
w=w===void 0?t7E:w;var A=P3.call(this)||this;A.arrayState=H[_.A_]|0;A.valueCtor=C;A.keyToApi=S;A.valueToApi=A.valueCtor?gMi:w;for(var J=0;J<H.length;J++){var c=H[J],Y=S(c[0],!1,!0),M=c[1];C?M===void 0&&(M=null):M=w(c[1],!1,!0,void 0,void 0,A.arrayState);P3.prototype.set.call(A,Y,M)}return A};
_.G(lp,P3);var OeD=function(H){if(H.arrayState&2)throw Error("N");},GKU=function(H){return Array.from(P3.prototype.entries.call(H))};
_.F=lp.prototype;_.F.clear=function(){OeD(this);P3.prototype.clear.call(this)};
_.F.delete=function(H){OeD(this);return P3.prototype.delete.call(this,this.keyToApi(H,!0,!1))};
_.F.entries=function(){if(this.valueCtor){var H=P3.prototype.keys.call(this);H=new beu(H,Ui$,this)}else H=P3.prototype.entries.call(this);return H};
_.F.values=function(){if(this.valueCtor){var H=P3.prototype.keys.call(this);H=new beu(H,lp.prototype.get,this)}else H=P3.prototype.values.call(this);return H};
_.F.forEach=function(H,C){this.valueCtor?P3.prototype.forEach.call(this,function(S,w,A){H.call(C,A.get(w),w,A)}):P3.prototype.forEach.call(this,H,C)};
_.F.set=function(H,C){OeD(this);H=this.keyToApi(H,!0,!1);return H==null?this:C==null?(P3.prototype.delete.call(this,H),this):P3.prototype.set.call(this,H,this.valueToApi(C,!0,!0,this.valueCtor,!1,this.arrayState))};
_.F.has=function(H){return P3.prototype.has.call(this,this.keyToApi(H,!1,!1))};
_.F.get=function(H){H=this.keyToApi(H,!1,!1);var C=P3.prototype.get.call(this,H);if(C!==void 0){var S=this.valueCtor;return S?(S=this.valueToApi(C,!1,!0,S,this.callToMutableOnAccess,this.arrayState),S!==C&&P3.prototype.set.call(this,H,S),S):C}};
lp.prototype[Symbol.iterator]=function(){return this.entries()};
lp.prototype.toJSON=void 0;var RWu;var Fj7=function(){},A9E=function(H,C){for(var S in H)!isNaN(S)&&C(H,+S,H[S])},ZrE=function(H){var C=new Fj7;
A9E(H,function(S,w,A){C[w]=D1(A)});
C.reviveUnknownFields=H.reviveUnknownFields;return C},irZ={reviveIntoImmutable:!0};var J96;var m9i,WjZ;var XE6,xt,er,lb,QLV,VK,fC,dSU,PGi,dO,$S0,Pu,kv,hC;XE6=_.P7(0);_.Eb={};_.eC=function(H,C,S,w,A){C=xt(H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,C,S,A);if(C!==null||w&&H.noLegacyNull!==zd)return C};
xt=function(H,C,S,w){if(C===-1)return null;var A=C+(S?0:-1),J=H.length-1;if(!(J<1+(S?0:-1))){if(A>=J){var c=H[J];if(c!=null&&typeof c==="object"&&c.constructor===Object){S=c[C];var Y=!0}else if(A===J)S=c;else return}else S=H[A];if(w&&S!=null){w=w(S);if(w==null)return w;if(!Object.is(w,S))return Y?c[C]=w:H[A]=w,w}return S}};
_.Tf=function(H,C,S,w){B3(H);var A=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Lr(A,A[_.A_]|0,C,S,w);return H};
_.uP=function(H,C,S){H=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return kKi(H,H[_.A_]|0,C,S)!==void 0};
_.Gt=function(H,C,S,w){var A=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return kKi(A,A[_.A_]|0,C,lb(H,w,S))!==void 0};
_.cl=function(H){return H===E5Z?2:4};
_.f5=function(H,C){H=_.eC(H,C,void 0,void 0,X3E);return H==null?_.oV():H};
er=function(H,C,S,w){B3(H);var A=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=A[_.A_]|0;if(w==null){var c=Ppw(A);if($97(c,A,J,S)===C)c.set(S,0);else return H}else J=p3p(A,J,S,C);Lr(A,J,C,w);return H};
_.vu=function(H,C,S,w){var A=H[_.A_]|0,J=Qb(A);A=p3p(H,A,S,C,J);Lr(H,A,C,w,J)};
lb=function(H,C,S){return _.lP(H,C)===S?S:-1};
_.lP=function(H,C){H=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return $97(Ppw(H),H,void 0,C,void 0)};
QLV=function(H,C,S){var w=H[_.A_]|0,A=Qb(w),J=xt(H,S,A);if(J!=null&&J[up]===fr){if(!bY(J))return nr(J),J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var c=J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(J)&&(c=J);if(c){var Y=c[_.A_]|0;Y&2&&(c=h9(c,Y))}c=kt(c,C,!0);c!==J&&Lr(H,w,S,c,A);return c};
_.zf=function(H,C,S,w){var A=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=A[_.A_]|0;C=kKi(A,J,C,S,w);if(C==null)return C;J=A[_.A_]|0;if(!bY(H,J)){var c=L16(C);c!==C&&(nr(H)&&(A=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=A[_.A_]|0),C=c,J=Lr(A,J,S,C,w),Dq(A,J))}return C};
_.Za=function(H,C,S,w){var A=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return hiu(H,A,A[_.A_]|0,C,S,w,!1,!0)};
_.f9=function(H,C,S,w){S=ntE(S);_.Tf(H,C,S,w);S&&!bY(S)&&Dq(H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return H};
_.vV=function(H,C,S,w){w=ntE(w);er(H,C,S,w);w&&!bY(w)&&Dq(H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return H};
VK=function(H,C,S){B3(H);var w=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,A=w[_.A_]|0;if(S==null)return Lr(w,A,C),H;for(var J=S===gi?7:S[_.A_]|0,c=J,Y=aO(J),M=Y||Object.isFrozen(S),m=!0,W=!0,y=0;y<S.length;y++){var N=S[y];Y||(N=bY(N),m&&(m=!N),W&&(W=N))}Y||(J=m?13:5,J=W?J&-4097:J|4096);M&&J===c||(S=D1(S),c=0,J=RO(J,A));J!==c&&J_(S,J);A=Lr(w,A,C,S);2&J||!(4096&J||16&J)||Dq(w,A);return H};
fC=function(H,C,S,w){Biu(H,C,S,w);return H};
dSU=function(H,C,S){Biu(H,C,Ob,void 0,S,1,!0);return H};
_.XF=function(H,C,S){H=_.eC(H,C,void 0,S);C=typeof H;H=H==null?H:C==="bigint"?_.P7((0,_.q9)(64,H)):_.xM(H)?C==="string"?_.QVW(H):_.OPE(H):void 0;return H};
_.QK=function(H,C){var S=S===void 0?!1:S;var w;return(w=_.y_u(_.eC(H,C)))!=null?w:S};
_.YJ=function(H,C,S){S=S===void 0?0:S;var w;return(w=_.wi(_.eC(H,C)))!=null?w:S};
PGi=function(H,C){var S=S===void 0?0:S;H=_.EMp(_.eC(H,C));return H!=null?H:S};
dO=function(H,C,S){S=S===void 0?XE6:S;var w;return(w=_.p7E(_.eC(H,C)))!=null?w:S};
$S0=function(H){var C=C===void 0?XE6:C;var S;return(S=_.XF(H,23))!=null?S:C};
Pu=function(H,C){var S=S===void 0?0:S;var w;return(w=_.eC(H,C,void 0,void 0,_.gU))!=null?w:S};
_.$v=function(H,C,S,w){S=S===void 0?"":S;var A;return(A=_.E_(_.eC(H,C,w)))!=null?A:S};
_.p5=function(H,C){var S=S===void 0?0:S;var w;return(w=_.s_(_.eC(H,C)))!=null?w:S};
kv=function(H,C){var S=S===void 0?"0":S;H=$ii(_.eC(H,C),!0);return H!=null?H:S};
hC=function(H,C,S){return _.$v(H,lb(H,S,C))};
_.n5=function(H,C,S,w){return _.zf(H,C,lb(H,w,S),void 0)};
_.ud=function(H,C){return _.E_(_.eC(H,C,void 0,_.Eb))};
_.TZ=function(H,C,S){return _.Tf(H,C,W1V(S))};
_.hJ=function(H,C,S){return _.iB(H,C,W1V(S),!1)};
_.rO=function(H,C,S){return _.Tf(H,C,_.jo(S))};
_.o8=function(H,C,S){return _.Tf(H,C,c3(S))};
_.XA=function(H,C,S){return _.Tf(H,C,bp(S))};
_.RJ=function(H,C,S,w){return _.iB(H,C,bp(S),"",w)};
_.qz=function(H,C,S){return _.Tf(H,C,S==null?S:_.ip(S))};
_.Bu=function(H,C,S){return _.iB(H,C,S==null?S:_.ip(S),0)};var st=function(H,C,S){this.buffer=H;if(S&&!C)throw Error();this.JSC$8865_isImmutable=C};var pE0=function(H,C,S,w){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8868_start_=0;this.init(H,C,S,w)},Dh,hOU,n57,r4E,BK0,DSD,qt6,ksD;
_.F=pE0.prototype;_.F.init=function(H,C,S,w){var A=w===void 0?{}:w;w=A.aliasBytesFields===void 0?!1:A.aliasBytesFields;A=A.treatNewDataAsImmutable===void 0?!1:A.treatNewDataAsImmutable;this.aliasBytesFields=w;this.treatNewDataAsImmutable=A;H&&(H=KjD(H,this.treatNewDataAsImmutable),this.bytes_=H.buffer,this.bytesAreImmutable_=H.JSC$8865_isImmutable,this.JSC$8868_start_=C||0,this.end_=S!==void 0?this.JSC$8868_start_+S:this.bytes_.length,this.cursor_=this.JSC$8868_start_)};
_.F.free=function(){this.clear();ksD.length<100&&ksD.push(this)};
_.F.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8868_start_=0;this.aliasBytesFields=!1};
_.F.reset=function(){this.cursor_=this.JSC$8868_start_};
_.F.atEnd=function(){return this.cursor_==this.end_};
_.K5=function(H,C){var S=0,w=0,A=0,J=H.bytes_,c=H.cursor_;do{var Y=J[c++];S|=(Y&127)<<A;A+=7}while(A<32&&Y&128);if(A>32)for(w|=(Y&127)>>4,A=3;A<32&&Y&128;A+=7)Y=J[c++],w|=(Y&127)<<A;Dh(H,c);if(!(Y&128))return C(S>>>0,w>>>0);throw Error();};
Dh=function(H,C){H.cursor_=C;if(C>H.end_)throw Error();};
_.tC=function(H){var C=H.bytes_,S=H.cursor_,w=C[S++],A=w&127;if(w&128&&(w=C[S++],A|=(w&127)<<7,w&128&&(w=C[S++],A|=(w&127)<<14,w&128&&(w=C[S++],A|=(w&127)<<21,w&128&&(w=C[S++],A|=w<<28,w&128&&C[S++]&128&&C[S++]&128&&C[S++]&128&&C[S++]&128&&C[S++]&128)))))throw Error();Dh(H,S);return A};
_.L5=function(H){var C=H.bytes_,S=H.cursor_,w=C[S],A=C[S+1],J=C[S+2];C=C[S+3];Dh(H,H.cursor_+4);return(w<<0|A<<8|J<<16|C<<24)>>>0};
hOU=function(H){var C=_.L5(H);H=_.L5(H);return zWw(C,H)};
n57=function(H){var C=_.L5(H);H=(C>>31)*2+1;var S=C>>>23&255;C&=8388607;return S==255?C?NaN:H*Infinity:S==0?H*1.401298464324817E-45*C:H*Math.pow(2,S-150)*(C+8388608)};
r4E=function(H){var C=_.L5(H),S=_.L5(H);H=(S>>31)*2+1;var w=S>>>20&2047;C=4294967296*(S&1048575)+C;return w==2047?C?NaN:H*Infinity:w==0?H*4.9E-324*C:H*Math.pow(2,w-1075)*(C+4503599627370496)};
BK0=function(H){for(var C=0,S=H.cursor_,w=S+10,A=H.bytes_;S<w;){var J=A[S++];C|=J;if((J&128)===0)return Dh(H,S),!!(C&127)}throw Error();};
DSD=function(H,C){if(C<0)throw Error();var S=H.cursor_;C=S+C;if(C>H.end_)throw Error();H.cursor_=C;return S};
qt6=function(H,C){if(C==0)return _.oV();var S=DSD(H,C);H.aliasBytesFields&&H.bytesAreImmutable_?S=H.bytes_.subarray(S,S+C):(H=H.bytes_,C=S+C,S=S===C?new Uint8Array(0):VlZ?H.slice(S,C):new Uint8Array(H.subarray(S,C)));return S.length==0?_.oV():new v7(S,Vb)};
ksD=[];var tlw=function(H,C,S,w){if(ksD.length){var A=ksD.pop();A.init(H,C,S,w);H=A}else H=new pE0(H,C,S,w);this.decoder_=H;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;KV7(this,w)},KV7=function(H,C){C=C===void 0?{}:C;
H.discardUnknownFields=C.discardUnknownFields===void 0?!1:C.discardUnknownFields},WTW=function(H,C,S,w){if(LVW.length){var A=LVW.pop();
KV7(A,w);A.decoder_.init(H,C,S,w);return A}return new tlw(H,C,S,w)},Ytu,Mh0,gO,g5W,LVW;
tlw.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;LVW.length<100&&LVW.push(this)};
tlw.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
Ytu=function(H){if(H.decoder_.atEnd())return!1;H.fieldCursor_=H.decoder_.cursor_;var C=_.tC(H.decoder_)>>>0,S=C>>>3;C&=7;if(!(C>=0&&C<=5))throw Error();if(S<1)throw Error();H.nextField_=S;H.nextWireType_=C;return!0};
Mh0=function(H){switch(H.nextWireType_){case 0:H.nextWireType_!=0?Mh0(H):BK0(H.decoder_);break;case 1:H=H.decoder_;Dh(H,H.cursor_+8);break;case 2:if(H.nextWireType_!=2)Mh0(H);else{var C=_.tC(H.decoder_)>>>0;H=H.decoder_;Dh(H,H.cursor_+C)}break;case 5:H=H.decoder_;Dh(H,H.cursor_+4);break;case 3:C=H.nextField_;do{if(!Ytu(H))throw Error();if(H.nextWireType_==4){if(H.nextField_!=C)throw Error();break}Mh0(H)}while(1);break;default:throw Error();}};
gO=function(H,C,S){var w=H.decoder_.end_,A=_.tC(H.decoder_)>>>0;A=H.decoder_.cursor_+A;var J=A-w;J<=0&&(H.decoder_.end_=A,S(C,H,void 0,void 0,void 0),J=A-H.decoder_.cursor_);if(J)throw Error();H.decoder_.cursor_=A;H.decoder_.end_=w;return C};
g5W=function(H){var C=_.tC(H.decoder_)>>>0;H=H.decoder_;var S=DSD(H,C);H=H.bytes_;if(GD6){var w=H,A;(A=uCE)||(A=uCE=new TextDecoder("utf-8",{fatal:!0}));C=S+C;w=S===0&&C===w.length?w:w.subarray(S,C);try{var J=A.decode(w)}catch(m){if(emE===void 0){try{A.decode(new Uint8Array([128]))}catch(W){}try{A.decode(new Uint8Array([97])),emE=!0}catch(W){emE=!1}}!emE&&(uCE=void 0);throw m;}}else{J=S;C=J+C;S=[];for(var c=null,Y,M;J<C;)Y=H[J++],Y<128?S.push(Y):Y<224?J>=C?SZ():(M=H[J++],Y<194||(M&192)!==128?(J--,
SZ()):S.push((Y&31)<<6|M&63)):Y<240?J>=C-1?SZ():(M=H[J++],(M&192)!==128||Y===224&&M<160||Y===237&&M>=160||((A=H[J++])&192)!==128?(J--,SZ()):S.push((Y&15)<<12|(M&63)<<6|A&63)):Y<=244?J>=C-2?SZ():(M=H[J++],(M&192)!==128||(Y<<28)+(M-144)>>30!==0||((A=H[J++])&192)!==128||((w=H[J++])&192)!==128?(J--,SZ()):(Y=(Y&7)<<18|(M&63)<<12|(A&63)<<6|w&63,Y-=65536,S.push((Y>>10&1023)+55296,(Y&1023)+56320))):SZ(),S.length>=8192&&(c=JV$(c,S),S.length=0);J=JV$(c,S)}return J};
_.USW=function(H){var C=_.tC(H.decoder_)>>>0;return qt6(H.decoder_,C)};
_.ROw=function(H,C,S){var w=_.tC(H.decoder_)>>>0;for(w=H.decoder_.cursor_+w;H.decoder_.cursor_<w;)S.push(C(H.decoder_))};
LVW=[];var IdE=function(H,C){this.JSC$8875_lo=H>>>0;this.JSC$8875_hi=C>>>0},adw=function(H){H=BigInt.asUintN(64,H);
return new IdE(Number(H&BigInt(4294967295)),Number(H>>BigInt(32)))},gt7=function(H){if(!H)return xSZ||(xSZ=new IdE(0,0));
if(!/^\d+$/.test(H))return null;B7(H);return new IdE($M,pP)},xSZ,O97=function(H,C){this.JSC$8877_lo=H>>>0;
this.JSC$8877_hi=C>>>0},toZ=function(H){if(!H)return HzV||(HzV=new O97(0,0));
if(!/^-?\d+$/.test(H))return null;B7(H);return new O97($M,pP)},HzV;var Ub=function(){this.JSC$8879_buffer_=[]},qr,mT,izE;
Ub.prototype.length=function(){return this.JSC$8879_buffer_.length};
Ub.prototype.end=function(){var H=this.JSC$8879_buffer_;this.JSC$8879_buffer_=[];return H};
qr=function(H,C,S){for(;S>0||C>127;)H.JSC$8879_buffer_.push(C&127|128),C=(C>>>7|S<<25)>>>0,S>>>=7;H.JSC$8879_buffer_.push(C)};
mT=function(H,C){for(;C>127;)H.JSC$8879_buffer_.push(C&127|128),C>>>=7;H.JSC$8879_buffer_.push(C)};
_.XVw=function(H,C){if(C>=0)mT(H,C);else{for(var S=0;S<9;S++)H.JSC$8879_buffer_.push(C&127|128),C>>=7;H.JSC$8879_buffer_.push(1)}};
izE=function(H,C){B7(C);M7U(function(S,w){qr(H,S>>>0,w>>>0)})};
Ub.prototype.writeUint8=function(H){this.JSC$8879_buffer_.push(H>>>0&255)};
_.Mr=function(H,C){H.JSC$8879_buffer_.push(C>>>0&255);H.JSC$8879_buffer_.push(C>>>8&255);H.JSC$8879_buffer_.push(C>>>16&255);H.JSC$8879_buffer_.push(C>>>24&255)};
Ub.prototype.writeInt8=function(H){this.JSC$8879_buffer_.push(H>>>0&255)};var CnD,FT,drp,pVp,aqE;CnD=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new Ub};
FT=function(H,C){C.length!==0&&(H.blocks_.push(C),H.totalLength_+=C.length)};
_.SBE=function(H,C){_.z7(H,C,2);C=H.encoder_.end();FT(H,C);C.push(H.totalLength_);return C};
_.sfE=function(H,C){var S=C.pop();for(S=H.totalLength_+H.encoder_.length()-S;S>127;)C.push(S&127|128),S>>>=7,H.totalLength_++;C.push(S);H.totalLength_++};
_.z7=function(H,C,S){mT(H.encoder_,C*8+S)};
drp=function(H,C,S){if(S!=null)switch(U9E(S),_.z7(H,C,1),typeof S){case "number":H=H.encoder_;F1$(S);_.Mr(H,$M);_.Mr(H,pP);break;case "bigint":S=adw(S);H=H.encoder_;C=S.JSC$8875_hi;_.Mr(H,S.JSC$8875_lo);_.Mr(H,C);break;default:S=gt7(S),H=H.encoder_,C=S.JSC$8875_hi,_.Mr(H,S.JSC$8875_lo),_.Mr(H,C)}};
pVp=function(H,C,S){_.z7(H,C,2);mT(H.encoder_,S.length);FT(H,H.encoder_.end());FT(H,S)};
aqE=function(H,C,S,w){S!=null&&(C=_.SBE(H,C),w(S,H),_.sfE(H,C))};var RiZ,jf$,wpw,AFZ,JFZ,ZzD,cFZ,zVD,MW$;RiZ=jh();jf$=jh();wpw=jh();AFZ=jh();JFZ=jh();_.Ff0=jh();_.Rs=jh();ZzD=jh();cFZ=jh();_.YBD=jh();zVD=jh();MW$=jh();_.qBV=jh();_.TbD=jh();_.Jc=function(H,C,S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H,C,S)};
_.Jc.prototype.toJSON=function(){return $t(this)};
_.Jc.prototype.serialize=function(H){return JSON.stringify($t(this,H))};
var LT6=function(H,C){if(C==null||C=="")return new H;C=JSON.parse(C);if(!Array.isArray(C))throw Error("V");return new H(awE(C))};
_.Jc.prototype.getExtension=function(H){sOp(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,H.fieldIndex);Cpp(this,H.fieldIndex);return H.ctor?H.isRepeated?H.getExtensionFn(this,H.ctor,H.fieldIndex,_.cl(),H.JSC$8890_hasMessageId):H.getExtensionFn(this,H.ctor,H.fieldIndex,H.JSC$8890_hasMessageId):H.isRepeated?H.getExtensionFn(this,H.fieldIndex,_.cl(),H.JSC$8890_hasMessageId):H.getExtensionFn(this,H.fieldIndex,H.defaultValue,H.JSC$8890_hasMessageId)};
_.Jc.prototype.clone=function(){var H=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,C=H[_.A_]|0;return lqU(this,H,C)?vt0(this,H,!0):new this.constructor(h9(H,C,!1))};
_.Jc.prototype[up]=fr;_.Jc.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var wP=function(H,C,S){this.$$binaryReaderFn=H;this.$$binaryWriterFn=C;H=VO(RiZ);this.$$isMsg=!!H&&S===H||!1},s2$=Iq7(function(H,C,S,w,A){if(H.nextWireType_!==2)return!1;
gO(H,QLV(C,w,S),A);return!0},H90),j2Z=Iq7(function(H,C,S,w,A){if(H.nextWireType_!==2)return!1;
gO(H,QLV(C,w,S),A);return!0},H90),NPE=Symbol(),Jc6=Symbol(),ccZ=Symbol(),eBU=Symbol(),TPZ=Symbol(),i9i,CBE;var DrZ,mX6,Is,WfE,yFZ,Nb6,bzU,xv,EOW,H8,eVZ,u5U,GB6,fGE,vOE,lG$,VWi,OzV,XpW,Qfw,dXp;DrZ=function(H,C){var S=new CnD;uTV(H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,S,Ac(NPE,ycE,b9E,C));FT(S,S.encoder_.end());H=new Uint8Array(S.totalLength_);C=S.blocks_;for(var w=C.length,A=0,J=0;J<w;J++){var c=C[J];H.set(c,A);A+=c.length}S.blocks_=[H];return H};
mX6=Iq7(function(H,C,S,w,A){if(H.nextWireType_!==2)return!1;H=gO(H,kt([void 0,void 0],w,!0),A);H=D1(H);w=C[_.A_]|0;A=Qb(w);if(w&2)throw Error();var J=xt(C,S,A);J instanceof lp?(J.arrayState&2)!=0?(J=GKU(J),J.push(H),Lr(C,w,S,J,A)):(C=J,S=C.keyToApi(H[0],!1,!0),H=H[1],H=C.valueCtor?H===void 0?null:H:C.valueToApi(H,!1,!0,void 0,!1,C.arrayState),P3.prototype.set.call(C,S,H)):Array.isArray(J)?((J[_.A_]|0)&2&&(J=QOi(J),Lr(C,w,S,J,A)),J.push(H)):Lr(C,w,S,[H],A);return!0},function(H,C,S,w,A){if(C instanceof
lp)C.forEach(function(Y,M){aqE(H,S,kt([M,
Y],w,!1),A)});
else if(Array.isArray(C))for(var J=0;J<C.length;J++){var c=C[J];Array.isArray(c)&&aqE(H,S,kt(c,w,!1),A)}});
Is=_.cV(function(H,C,S){if(H.nextWireType_!==1)return!1;_.YD(C,S,r4E(H.decoder_));return!0},VhZ,MW$);
WfE=_.cV(function(H,C,S,w){if(H.nextWireType_!==1)return!1;_.vu(C,S,w,r4E(H.decoder_));return!0},VhZ,MW$);
yFZ=_.cV(function(H,C,S){if(H.nextWireType_!==5)return!1;_.YD(C,S,n57(H.decoder_));return!0},oD6,zVD);
Nb6=_.l47(function(H,C,S){if(H.nextWireType_!==5&&H.nextWireType_!==2)return!1;C=_.C9(C,C[_.A_]|0,S);H.nextWireType_==2?_.ROw(H,n57,C):C.push(n57(H.decoder_));return!0},function(H,C,S){C=_.vDw(_.gU,C,!0);
if(C!=null&&C.length)for(_.z7(H,S,2),mT(H.encoder_,C.length*4),S=0;S<C.length;S++){var w=H.encoder_;Ynp(C[S]);_.Mr(w,$M)}},zVD);
bzU=_.cV(function(H,C,S,w){if(H.nextWireType_!==5)return!1;_.vu(C,S,w,n57(H.decoder_));return!0},oD6,zVD);
_.as=_.cV(function(H,C,S){if(H.nextWireType_!==0)return!1;_.YD(C,S,_.K5(H.decoder_,rU));return!0},_.T7,_.Rs);
xv=_.cV(function(H,C,S){if(H.nextWireType_!==0)return!1;H=_.K5(H.decoder_,rU);_.YD(C,S,H===0?void 0:H);return!0},_.T7,_.Rs);
EOW=_.cV(function(H,C,S,w){if(H.nextWireType_!==0)return!1;_.vu(C,S,w,_.K5(H.decoder_,rU));return!0},_.T7,_.Rs);
H8=_.cV(function(H,C,S){if(H.nextWireType_!==0)return!1;_.YD(C,S,_.K5(H.decoder_,zWw));return!0},function(H,C,S){C=hW6(C);
if(C!=null&&(U9E(C),C!=null))switch(_.z7(H,S,0),typeof C){case "number":H=H.encoder_;kM(C);qr(H,$M,pP);break;case "bigint":S=adw(C);qr(H.encoder_,S.JSC$8875_lo,S.JSC$8875_hi);break;default:S=gt7(C),qr(H.encoder_,S.JSC$8875_lo,S.JSC$8875_hi)}},ZzD);
_.i7=_.cV(function(H,C,S){if(H.nextWireType_!==0)return!1;_.YD(C,S,_.tC(H.decoder_));return!0},Q2V,AFZ);
eVZ=_.cV(function(H,C,S){if(H.nextWireType_!==0)return!1;H=_.tC(H.decoder_);_.YD(C,S,H===0?void 0:H);return!0},Q2V,AFZ);
u5U=_.cV(function(H,C,S,w){if(H.nextWireType_!==0)return!1;_.vu(C,S,w,_.tC(H.decoder_));return!0},Q2V,AFZ);
GB6=_.cV(function(H,C,S){if(H.nextWireType_!==1)return!1;_.YD(C,S,hOU(H.decoder_));return!0},_.PBE,_.YBD);
fGE=_.l47(function(H,C,S){if(H.nextWireType_!==1&&H.nextWireType_!==2)return!1;C=_.C9(C,C[_.A_]|0,S);H.nextWireType_==2?_.ROw(H,hOU,C):C.push(hOU(H.decoder_));return!0},function(H,C,S){C=_.vDw(hW6,C,!1);
if(C!=null)for(var w=0;w<C.length;w++)drp(H,S,C[w])},_.YBD);
_.Ci=_.cV(function(H,C,S){if(H.nextWireType_!==0)return!1;_.YD(C,S,BK0(H.decoder_));return!0},$rp,jf$);
_.SM=_.cV(function(H,C,S){if(H.nextWireType_!==0)return!1;H=BK0(H.decoder_);_.YD(C,S,H===!1?void 0:H);return!0},$rp,jf$);
vOE=_.cV(function(H,C,S,w){if(H.nextWireType_!==0)return!1;_.vu(C,S,w,BK0(H.decoder_));return!0},$rp,jf$);
_.sv=_.cV(function(H,C,S){if(H.nextWireType_!==2)return!1;_.YD(C,S,g5W(H));return!0},k7u,wpw);
_.jM=_.cV(function(H,C,S){if(H.nextWireType_!==2)return!1;H=g5W(H);_.YD(C,S,H===""?void 0:H);return!0},k7u,wpw);
_.w1=_.cV(function(H,C,S,w){if(H.nextWireType_!==2)return!1;_.vu(C,S,w,g5W(H));return!0},k7u,wpw);
lG$=_.l47(function(H,C,S){if(H.nextWireType_!==2)return!1;H=g5W(H);_.C9(C,C[_.A_]|0,S).push(H);return!0},function(H,C,S){C=_.vDw(_.E_,C,!0);
if(C!=null)for(var w=0;w<C.length;w++){var A=H,J=S,c=C[w];c!=null&&pVp(A,J,Y$0(c))}},wpw);
VWi=void 0;VWi=VWi===void 0?RiZ:VWi;_.Al=new wP(function(H,C,S,w,A){if(H.nextWireType_!==2)return!1;w=kt(void 0,w,!0);_.C9(C,C[_.A_]|0,S).push(w);gO(H,w,A);return!0},function(H,C,S,w,A){if(Array.isArray(C))for(var J=0;J<C.length;J++)hBE(H,C[J],S,w,A)},VWi);
_.Jl=Iq7(function(H,C,S,w,A,J){if(H.nextWireType_!==2)return!1;var c=C[_.A_]|0;p3p(C,c,J,S,Qb(c));C=QLV(C,w,S);gO(H,C,A);return!0},hBE);
_.oOi=_.cV(function(H,C,S){if(H.nextWireType_!==2)return!1;_.YD(C,S,_.USW(H));return!0},_.nD7,_.qBV);
OzV=_.cV(function(H,C,S,w){if(H.nextWireType_!==2)return!1;_.vu(C,S,w,_.USW(H));return!0},_.nD7,_.qBV);
XpW=_.cV(function(H,C,S){if(H.nextWireType_!==0)return!1;_.YD(C,S,_.tC(H.decoder_)>>>0);return!0},rcE,JFZ);
Qfw=_.cV(function(H,C,S,w){if(H.nextWireType_!==0)return!1;_.vu(C,S,w,_.tC(H.decoder_)>>>0);return!0},rcE,JFZ);
_.Fi=_.cV(function(H,C,S){if(H.nextWireType_!==0)return!1;_.YD(C,S,_.tC(H.decoder_));return!0},_.BPE,_.TbD);
_.Zs=_.cV(function(H,C,S){if(H.nextWireType_!==0)return!1;H=_.tC(H.decoder_);_.YD(C,S,H===0?void 0:H);return!0},_.BPE,_.TbD);
dXp=_.cV(function(H,C,S){if(H.nextWireType_!==0)return!1;_.YD(C,S,_.K5(H.decoder_,qnV));return!0},function(H,C,S){C=kdZ(C);
if(C!=null&&(LjZ(C),C!=null))switch(_.z7(H,S,0),typeof C){case "number":H=H.encoder_;S=C;C=S<0;S=Math.abs(S)*2;F1$(S);S=$M;var w=pP;C&&(S==0?w==0?w=S=4294967295:(w--,S=4294967295):S--);$M=S;pP=w;qr(H,$M,pP);break;case "bigint":H=H.encoder_;C=C<<BigInt(1)^C>>BigInt(63);$M=Number(BigInt.asUintN(32,C));pP=Number(BigInt.asUintN(32,C>>BigInt(32)));qr(H,$M,pP);break;default:izE(H.encoder_,C)}},cFZ);var ppE=function(){var H=Pnw,C=$Xw;this.fieldIndex=175237375;this.ctor=C;this.isRepeated=0;this.getExtensionFn=_.zf;this.defaultValue=void 0;this.JSC$8890_hasMessageId=H.messageId!=null?Xd:void 0};
ppE.prototype.register=function(){zt(this)};var kBW=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(kBW,_.Jc);var hV0=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(hV0,_.Jc);var RB6=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(RB6,_.Jc);var nOp=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(nOp,_.Jc);var rFU=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(rFU,_.Jc);var BbW=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(BbW,_.Jc);var DXE=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(DXE,_.Jc);DXE.prototype.getData=function(){return _.f5(this,2)};var Kfp=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(Kfp,_.Jc);var tW$=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(tW$,_.Jc);tW$.prototype.getStyle=function(){return _.zf(this,kBW,1)};var G7=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(G7,_.Jc);G7.prototype.getPayloadCase=function(){return _.lP(this,lB)};
G7.prototype.getStyle=function(){return _.n5(this,tW$,6,lB)};
var Lfi=function(){var H=new G7,C=new rFU;return _.vV(H,7,lB,C)},gO0=function(){var H=new G7,C=new BbW;
return _.vV(H,8,lB,C)},lB=[1,
2,3,4,5,6,7,8];var UXZ=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(UXZ,_.Jc);var RVE=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(RVE,_.Jc);var IG$=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(IG$,_.Jc);var aGw=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(aGw,_.Jc);var xX0=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(xX0,_.Jc);var HU_=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(HU_,_.Jc);var iUP=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(iUP,_.Jc);var Cid=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(Cid,_.Jc);Cid.prototype.getData=function(){return _.f5(this,2)};var S$d=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(S$d,_.Jc);var Ur$=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(Ur$,_.Jc);Ur$.prototype.getPayloadCase=function(){return _.lP(this,c8)};
var c8=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var YS=function(H,C){H=Error.call(this,H);this.message=H.message;"stack"in H&&(this.stack=H.stack);this.code=C===void 0?2:C};
_.G(YS,Error);var s0U=Promise;var j0Y=function(H){this.channelPromise=H};
j0Y.prototype.send=function(H,C,S){this.channelPromise.then(function(w){w.send(H,C,S)})};var wZV=function(H,C){this.data=H;this.channel=C};
wZV.prototype.reply=function(H,C,S){this.channel.send(H,C,S)};var AVd=function(H){this.JSC$8956_port_=H};
AVd.prototype.send=function(H,C,S){S=S===void 0?[]:S;var w=new MessageChannel;JVn(w.port1,C);this.JSC$8956_port_.postMessage(H,[w.port2].concat(S))};
var FE7=function(H,C){JVn(H,C);return new AVd(H)},JVn=function(H,C){C&&(H.onmessage=function(S){C(new wZV(S.data,FE7(S.ports[0])))})};var ZUU=function(H){this.verifier_=H};
ZUU.prototype.verify=function(H){return this.verifier_(H)};
var cVU=function(H){var C=Object.create(null);(typeof H==="string"?[H]:H).forEach(function(S){if(S==="null")throw Error("X");C[S]=!0});
return function(S){return C[S]===!0}};_.Y$V=function(){if(!_.s$.addEventListener||!Object.defineProperty)return!1;var H=!1,C=Object.defineProperty({},"passive",{get:function(){H=!0}});
try{var S=function(){};
_.s$.addEventListener("test",S,C);_.s$.removeEventListener("test",S,C)}catch(w){}return H}();var zp_;_.zl=function(H){var C=H.destination;var S=H.iframe;var w=H.origin;var A=H.channelName===void 0?"ZNWN1d":H.channelName;var J=H.onMessage===void 0?void 0:H.onMessage;H=H.onEstablished===void 0?void 0:H.onEstablished;return zp_({destination:C,getSource:function(){return S.contentWindow},
originVerifier:w instanceof ZUU?w:typeof w==="function"?new ZUU(w):new ZUU(cVU(w)),channelName:A,onMessage:J,onEstablished:H})};
zp_=function(H){var C=H.destination;var S=H.getSource;var w=H.originVerifier;var A=H.token===void 0?void 0:H.token;var J=H.channelName;var c=H.onMessage===void 0?void 0:H.onMessage;var Y=H.onEstablished===void 0?void 0:H.onEstablished;return new j0Y(new s0U(function(M,m){var W=function(y){y.source&&y.source===S()&&w.verify(y.origin)&&(y.data.n||y.data)===J&&(C.removeEventListener("message",W,!1),A&&y.data.t!==A?m(Error("Y`"+J+"`"+A+"`"+y.data.t)):(M(FE7(y.ports[0],c)),Y&&Y(y)))};
C.addEventListener("message",W,!1)}))};var MZ1=function(H){try{H()}catch(C){jZ(C)}};var Tu1=function(H){var C=this;var S=H.getMessageType;var w=H.onUnregisteredMessage===void 0?function(){}:H.onUnregisteredMessage;
var A=H.onBeforeRegisteredMessage===void 0?function(){}:H.onBeforeRegisteredMessage;
H=H.onAfterRegisteredMessage===void 0?function(){}:H.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=S;this.onUnregisteredMessage_=w;this.onBeforeRegisteredMessage_=A;this.onAfterRegisteredMessage_=H;this.onMessage=function(J){return q$M(C,J)}};
Tu1.prototype.register=function(H,C){this.registry_.set(H,C);return this};
var q$M=function(H,C){var S=H.getMessageType_(C.data),w=H.registry_.get(S);w?(MZ1(function(){return H.onBeforeRegisteredMessage_(C,S)}),MZ1(function(){return w(C)}),MZ1(function(){return H.onAfterRegisteredMessage_(C,S)})):MZ1(function(){return H.onUnregisteredMessage_(C,S)})};var mDd=function(H){this.JSC$8973_channel_=H},yVP,NuV;
mDd.prototype.send=function(H,C,S){this.JSC$8973_channel_.send($t(H),C,S)};
_.WEi=function(H,C){return function(S){var w=new H(S.data);return C(new wZV(w,S.channel))}};
yVP=function(H){return function(C){return H(new wZV(C.data,new mDd(C.channel)))}};
NuV=function(H,C){return yVP(_.WEi(H,C))};var bU7=function(H,C,S,w){this.registry=H;this.delegate=C;this.receiveMessageConstructor=S;this.createInitMessage=w;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},gDi=function(H){var C=new Tu1({getMessageType:H.getPayloadCase});
return new bU7(C,new mDd(_.zl({iframe:H.child,destination:window,origin:H.origin,channelName:H.channelName,onMessage:NuV(H.receiveMessageConstructor,C.onMessage)})),H.receiveMessageConstructor,H.createInitMessage)},EE7=function(H,C){H.createInitMessage=C};
bU7.prototype.send=function(H){if(!this.initialised)throw new YS("Attempted to send a message before initialisation.");this.delegate.send(H)};
var ep7=function(H,C){return _.z(function(S){if(!H.initialised)throw new YS("Attempted to send a message before initialisation.");return S.return(new Promise(function(w){H.delegate.send(C,NuV(H.receiveMessageConstructor,w))}))})};
bU7.prototype.init=function(){var H=this;return _.z(function(C){if(H.initialised)throw new YS("Attempted to initialise twice. The SDK can only be initialised once.");if(H.createInitMessage!==void 0){var S=H.delegate,w=S.send,A=H.createInitMessage;var J=new hV0;var c=[].concat(_.k$(H.features));J=_.HV(J,1,c,_.ip);w.call(S,A.call(H,J))}H.initialised=!0;_.oT(C)})};
var Me=function(H,C){if(H.initialised)throw new YS('Attempted to set up API "'+C+'" after initialisation. All APIs must be set up before initialising the SDK.');H.features.add(C);return H.registry};
_.JJ.Object.defineProperties(bU7.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var uWU=function(H){this.channel=H;this.registered=!1};
uWU.prototype.update=function(H){if(this.channel.isInitialised){if(!this.registered)throw new YS("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var C=new G7;var S=new nOp;S=_.TZ(S,1,H);C=_.vV(C,2,lB,S);this.channel.send(C)}else this.register();this.JSC$8987_audioEnabled=H};
uWU.prototype.register=function(){Me(this.channel,1);this.registered=!0};
uWU.prototype.isAudioEnabled=function(){return this.JSC$8987_audioEnabled};var G6M=function(H){this.channel=H};
_.F=G6M.prototype;_.F.onFirstFrameReady=function(H){Me(this.channel,2).register(11,function(C){C=_.n5(C.data,UXZ,11,c8);if(!C)throw new YS("Unexpectedly nonexistent GameFirstFrameReadyEvent");H(_.$v(C,1))})};
_.F.onReady=function(H){Me(this.channel,2).register(4,function(C){C=_.n5(C.data,IG$,4,c8);if(!C)throw new YS("Unexpectedly nonexistent GameReadyEvent");H(_.$v(C,1))})};
_.F.onLevelComplete=function(H){Me(this.channel,2).register(5,function(C){C=_.n5(C.data,aGw,5,c8);if(!C)throw new YS("Unexpectedly nonexistent LevelCompleteEvent");H(_.$v(C,1),_.YJ(C,2))})};
_.F.onGameOver=function(H){Me(this.channel,2).register(6,function(C){C=_.n5(C.data,RVE,6,c8);if(!C)throw new YS("Unexpectedly nonexistent GameOverEvent");H(_.$v(C,1))})};
_.F.pause=function(){var H=this;if(!this.channel.isInitialised)return Me(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new YS("Using unregistered Game Feature: pause.");var C=Lfi();return new Promise(function(S){return _.z(function(w){if(w.nextAddress==1)return w.yield(ep7(H.channel,C),2);S();_.oT(w)})})};
_.F.resume=function(){var H=this;if(!this.channel.isInitialised)return Me(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new YS("Using unregistered Game Feature: resume.");var C=gO0();return new Promise(function(S){return _.z(function(w){if(w.nextAddress==1)return w.yield(ep7(H.channel,C),2);S();_.oT(w)})})};var fwb=function(H){this.channel=H};
fwb.prototype.onReady=function(H){Me(this.channel,5).register(8,function(C){if(!_.n5(C.data,xX0,8,c8))throw new YS("Unexpectedly nonexistent PageReadyEvent");H()})};var vEd=function(H){this.channel=H};
vEd.prototype.onChange=function(H){Me(this.channel,3).register(7,function(C){C=_.n5(C.data,HU_,7,c8);if(!C)throw new YS("Unexpectedly nonexistent ScoreEvent");H(_.$v(C,1),_.YJ(C,2))})};var lw7={load:function(){throw new YS("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new YS("Storage used, but storage.onSave() listener not set!");}},VZ_=function(H){this.channel=H;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},oE_=function(H){Me(H.channel,4).register(2,lw7.load).register(3,lw7.save);
H.initialSetupDone=!0};
VZ_.prototype.onLoad=function(H){this.initialSetupDone||oE_(this);this.loadRegistered||(this.loadRegistered=!0,Me(this.channel,4).register(2,function(C){var S,w,A;return _.z(function(J){if(J.nextAddress==1){S=_.n5(C.data,iUP,2,c8);if(!S)throw new YS("Unexpectedly nonexistent StorageLoad");w=_.$v(S,1);return J.yield(H(w),2)}A=J.yieldResult;var c=C.reply,Y=new G7;var M=new DXE;M=_.XA(M,1,w);M=_.Tf(M,2,_.On(A,!1));Y=_.vV(Y,3,lB,M);c.call(C,Y);_.oT(J)})}))};
VZ_.prototype.onSave=function(H){this.initialSetupDone||oE_(this);this.saveRegistered||(this.saveRegistered=!0,Me(this.channel,4).register(3,function(C){var S,w,A;return _.z(function(J){if(J.nextAddress==1){S=_.n5(C.data,Cid,3,c8);if(!S)throw new YS("Unexpectedly nonexistent StorageSave");w=_.$v(S,1);A=WVu(S.getData());return J.yield(H(w,A),2)}var c=C.reply,Y=new G7;var M=new Kfp;M=_.XA(M,1,w);Y=_.vV(Y,4,lB,M);c.call(C,Y);_.oT(J)})}))};var OUd=function(H){this.channel=H};
OUd.prototype.update=function(H){if(!this.channel.features.has(6))throw new YS("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var C=new G7,S=new tW$;H=_.f9(S,1,H);C=_.vV(C,6,lB,H);this.channel.send(C)};
OUd.prototype.register=function(){Me(this.channel,6)};var XZY=function(H){this.channel=H;this.userActivityLoggingIntervalMs=0};
XZY.prototype.onUserActivity=function(H,C){this.userActivityLoggingIntervalMs=C;Me(this.channel,7).register(9,function(S){if(!_.n5(S.data,S$d,9,c8))throw new YS("Unexpectedly nonexistent ClickEvent");H()})};var Q01=function(H){var C=this;this.channel=H;this.init=this.channel.init.bind(this.channel);this.page=new fwb(this.channel);this.game=new G6M(this.channel);this.audio=new uWU(this.channel);this.score=new vEd(this.channel);this.storage=new VZ_(this.channel);this.style=new OUd(this.channel);this.userActivity=new XZY(this.channel);EE7(this.channel,function(S){var w=new RB6;S=_.f9(w,1,S);S=_.rO(S,3,C.userActivity.userActivityLoggingIntervalMs);w=C.audio.isAudioEnabled();w!==void 0&&_.TZ(S,2,w);w=new G7;
return _.vV(w,5,lB,S)})};var dDd=function(){this.timedFunctionContext=0};
dDd.prototype.timeExecution=function(H,C){var S=this;return function(){var w=_.tc.apply(0,arguments);S.timedFunctionContext=H;return C.apply(null,_.k$(w))}};var Pi1=function(){var H={};this.priorityTasks=(H[3]=[],H[2]=[],H[1]=[],H);this.isFlushing=!1},uR=function(H,C,S){var w=$D1(H,S);
H.priorityTasks[S].push(C);w&&H.priorityTasks[S].length===1&&H.flush()},$D1=function(H,C){return Object.keys(H.priorityTasks).map(function(S){return Number(S)}).filter(function(S){return!isNaN(S)&&S>C}).every(function(S){return H.priorityTasks[S].length===0})};
Pi1.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(H){return H.length>0});)pZn(this,3),pZn(this,2),pZn(this,1)}catch(H){throw Object.values(this.priorityTasks).forEach(function(C){return void C.splice(0,C.length)}),H;
}finally{this.isFlushing=!1}}};
var pZn=function(H,C){for(;$D1(H,C)&&H.priorityTasks[C].length>0;)H.priorityTasks[C][0](),H.priorityTasks[C].shift()};
_.JJ.Object.defineProperties(Pi1.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(H){return H.length>0})}}});var SME={};var k6n=globalThis.trustedTypes,a47=k6n,HMU;var o2=function(H){this.privateDoNotAccessOrElseWrappedResourceUrl=H};
o2.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var hp1,nEn,rVn,Bub,DD7,KEd,tZW,LEU;hp1=_.xC([""]);nEn=ah(["\x00"],["\\0"]);rVn=ah(["\n"],["\\n"]);Bub=ah(["\x00"],["\\u0000"]);DD7=_.xC([""]);KEd=ah(["\x00"],["\\0"]);tZW=ah(["\n"],["\\n"]);LEU=ah(["\x00"],["\\u0000"]);_.gEn=Cfw(function(H){return H(hp1)})||Cfw(function(H){return H(nEn)})||Cfw(function(H){return H(rVn)})||Cfw(function(H){return H(Bub)});
_.UDM=_.dP(DD7)&&_.dP(KEd)&&_.dP(tZW)&&_.dP(LEU);var BV;_.PV=function(H,C){this.privateDoNotAccessOrElseWrappedUrl=C};
_.PV.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.Rp7=$D("about:blank");BV=$D("about:invalid#zClosurez");var sT6=function(H){this.isValid=H},IwY=new sT6(function(H){return/^[^:]*([/?#]|$)/.test(H)}),aw1=hc("data"),xD7=hc("http"),HPd=hc("https"),iP1=hc("ftp"),CY_=hc("mailto"),Snb=hc("intent"),sV7=hc("vnd.youtube"),jTE=[aw1,
xD7,HPd,CY_,iP1,IwY],AYi=Vv(function(){return typeof URL==="function"}),jV1=["data:",
"http:","https:","mailto:","ftp:"],F2Z=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var Ut=function(H){this.privateDoNotAccessOrElseWrappedHtml=H};
Ut.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var bVD=Vv(function(){return new Ut(k6n?k6n.emptyHTML:"")});var w7U={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"},cYD=function(H,C){var S=Error.call(this,H+" cannot be used with intent "+w7U[C]);this.message=S.message;"stack"in S&&(this.stack=S.stack);this.type=H;this.intent=C;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.G(cYD,Error);_.jn=function(H){this.privateDoNotAccessOrElseWrappedScript=H};
_.jn.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var qMp=function(H){this.privateDoNotAccessOrElseWrappedAttributePrefix=H};
qMp.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var TsU="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var Y$=function(H){this.privateDoNotAccessOrElseWrappedStyleSheet=H};
Y$.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var PrV=function(H){var C=_.gh("window.location.href");H==null&&(H='Unknown Error of type "null/undefined"');if(typeof H==="string")return{message:H,name:"Unknown error",lineNumber:"Not available",fileName:C,stack:"Not available"};var S=!1;try{var w=H.lineNumber||H.line||"Not available"}catch(c){w="Not available",S=!0}try{var A=H.fileName||H.filename||H.sourceURL||_.s$.$googDebugFname||C}catch(c){A="Not available",S=!0}C=A_U(H);if(!(!S&&H.lineNumber&&H.fileName&&H.stack&&H.message&&H.name)){S=H.message;
if(S==null){if(H.constructor&&H.constructor instanceof Function){if(H.constructor.name)S=H.constructor.name;else if(S=H.constructor,qe[S])S=qe[S];else{S=String(S);if(!qe[S]){var J=/function\s+([^\(]+)/m.exec(S);qe[S]=J?J[1]:"[Anonymous]"}S=qe[S]}S='Unknown Error of type "'+S+'"'}else S="Unknown Error of unknown type";typeof H.toString==="function"&&Object.prototype.toString!==H.toString&&(S+=": "+H.toString())}return{message:S,name:H.name||"UnknownError",lineNumber:w,fileName:A,stack:C||"Not available"}}return{message:H.message,
name:H.name,lineNumber:H.lineNumber,fileName:H.fileName,stack:C}},A_U=function(H,C){C||(C={});
C[J_M(H)]=!0;var S=H.stack||"",w=H.cause;w&&!C[J_M(w)]&&(S+="\nCaused by: ",w.stack&&w.stack.indexOf(w.toString())==0||(S+=typeof w==="string"?w:w.message+"\n"),S+=A_U(w,C));H=H.errors;if(Array.isArray(H)){w=1;var A;for(A=0;A<H.length&&!(w>4);A++)C[J_M(H[A])]||(S+="\nInner error "+w++ +": ",H[A].stack&&H[A].stack.indexOf(H[A].toString())==0||(S+=typeof H[A]==="string"?H[A]:H[A].message+"\n"),S+=A_U(H[A],C));A<H.length&&(S+="\n... "+(H.length-A)+" more inner errors")}return S},J_M=function(H){var C=
"";
typeof H.toString==="function"&&(C=""+H);return C+H.stack},qe={};var F1n,w4,Wt,c_7,YnW,ZPb,R7,ae,M7P;F1n=function(H,C){for(var S=H.split("%s"),w="",A=Array.prototype.slice.call(arguments,1);A.length&&S.length>1;)w+=S.shift()+A.shift();return w+S.join("%s")};
_.R6=function(H){return encodeURIComponent(String(H))};
w4=function(H){return decodeURIComponent(H.replace(/\+/g," "))};
Wt=function(H){QrW.test(H)&&(H.indexOf("&")!=-1&&(H=H.replace(vX7,"&amp;")),H.indexOf("<")!=-1&&(H=H.replace(luw,"&lt;")),H.indexOf(">")!=-1&&(H=H.replace(VFE,"&gt;")),H.indexOf('"')!=-1&&(H=H.replace(oXW,"&quot;")),H.indexOf("'")!=-1&&(H=H.replace(OWU,"&#39;")),H.indexOf("\x00")!=-1&&(H=H.replace(X1D,"&#0;")));return H};
c_7=function(H){var C={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var S=_.s$.document.createElement("div");return H.replace(ZPb,function(w,A){var J=C[w];if(J)return J;A.charAt(0)=="#"&&(A=Number("0"+A.slice(1)),isNaN(A)||(J=String.fromCharCode(A)));J||(_.FN(S,R2(w+" ")),J=S.firstChild.nodeValue.slice(0,-1));return C[w]=J})};
YnW=function(H){return H.replace(/&([^;]+);/g,function(C,S){switch(S){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return S.charAt(0)!="#"||(S=Number("0"+S.slice(1)),isNaN(S))?C:String.fromCharCode(S)}})};
ZPb=/&([^;\s<&]+);?/g;_.MK7=function(H){return String(H).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.zW1=String.prototype.repeat?function(H,C){return H.repeat(C)}:function(H,C){return Array(C+1).join(H)};
_.Tl=function(H,C){if(!Number.isFinite(H))return String(H);H=String(H);var S=H.indexOf(".");S===-1&&(S=H.length);var w=H[0]==="-"?"-":"";w&&(H=H.substring(1));return w+(0,_.zW1)("0",Math.max(0,C-S))+H};
R7=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.FF()).toString(36)};
ae=function(H){for(var C=0,S=0;S<H.length;++S)C=31*C+H.charCodeAt(S)>>>0;return C};
_.ls=function(H){return String(H).replace(/\-([a-z])/g,function(C,S){return S.toUpperCase()})};
_.vM=function(H){return String(H).replace(/([A-Z])/g,"-$1").toLowerCase()};
M7P=function(H){return H.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(C,S,w){return S+w.toUpperCase()})};var qn_=function(){this.names=new Map};
qn_.prototype.getName=function(H){var C=this.names.get(H);if(C)return C;var S;C=(S=H.description)!=null?S:R7();this.names.set(H,C);return C};var TU7=function(H){var C=Error.call(this,H?H.length+" errors occurred during unsubscription:\n"+H.map(function(S,w){return w+1+") "+S.toString()}).join("\n  "):"");
this.message=C.message;"stack"in C&&(this.stack=C.stack);this.errors=H;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.G(TU7,Error);var MO=function(H){this.initialTeardown=H;this.closed=!1;this._teardowns=this._parentage=null};
_.F=MO.prototype;
_.F.unsubscribe=function(){if(!this.closed){this.closed=!0;var H=this._parentage;if(Array.isArray(H))for(var C=_.Z(H),S=C.next();!S.done;S=C.next())S.value.remove(this);else H==null||H.remove(this);C=this.initialTeardown;if(zv(C))try{C()}catch(J){var w=J instanceof TU7?J.errors:[J]}var A=this._teardowns;if(A)for(this._teardowns=null,C=_.Z(A),S=C.next();!S.done;S=C.next()){S=S.value;try{zv(S)?S():S.unsubscribe()}catch(J){S=void 0,w=(S=w)!=null?S:[],J instanceof TU7?w=[].concat(_.k$(w),_.k$(J.errors)):
w.push(J)}}if(w)throw new TU7(w);}};
_.F.add=function(H){if(H&&H!==this)if(this.closed)zv(H)?H():H.unsubscribe();else{if(H instanceof MO){if(H.closed||H._hasParent(this))return;H._addParent(this)}var C;(this._teardowns=(C=this._teardowns)!=null?C:[]).push(H)}};
_.F._hasParent=function(H){var C=this._parentage;return C===H||Array.isArray(C)&&C.includes(H)};
_.F._addParent=function(H){var C=this._parentage;this._parentage=Array.isArray(C)?(C.push(H),C):C?[C,H]:H};
_.F._removeParent=function(H){var C=this._parentage;C===H?this._parentage=null:Array.isArray(C)&&Ns6(C,H)};
_.F.remove=function(H){var C=this._teardowns;C&&Ns6(C,H);H instanceof MO&&H._removeParent(this)};
var mi1=new MO;mi1.closed=!0;MO.JSC$9083_EMPTY=mi1;var E$p=function(){setTimeout.apply(null,_.k$(_.tc.apply(0,arguments)))};var mJ=function(H){MO.call(this);this.JSC$9088_isStopped=!1;this.destination=H instanceof mJ?H:new W8(!H||zv(H)?{next:H!=null?H:void 0}:H);bMu(H)&&H.add(this)};
_.G(mJ,MO);mJ.JSC$9083_EMPTY=MO.JSC$9083_EMPTY;mJ.create=function(H,C,S){return new y5(H,C,S)};
_.F=mJ.prototype;_.F.next=function(H){this.JSC$9088_isStopped||this._next(H)};
_.F.error=function(H){this.JSC$9088_isStopped||(this.JSC$9088_isStopped=!0,this._error(H))};
_.F.complete=function(){this.JSC$9088_isStopped||(this.JSC$9088_isStopped=!0,this._complete())};
_.F.unsubscribe=function(){this.closed||(this.JSC$9088_isStopped=!0,MO.prototype.unsubscribe.call(this))};
_.F._next=function(H){this.destination.next(H)};
_.F._error=function(H){this.destination.error(H);this.unsubscribe()};
_.F._complete=function(){this.destination.complete();this.unsubscribe()};
var W8=function(H){this.partialObserver=H};
W8.prototype.next=function(H){var C=this.partialObserver;if(C.next)try{C.next(H)}catch(S){Tv(S)}};
W8.prototype.error=function(H){var C=this.partialObserver;if(C.error)try{C.error(H)}catch(S){Tv(S)}else Tv(H)};
W8.prototype.complete=function(){var H=this.partialObserver;if(H.complete)try{H.complete()}catch(C){Tv(C)}};
var y5=function(H,C,S){mJ.call(this);var w;zv(H)||!H?w={next:H!=null?H:void 0,error:C!=null?C:void 0,complete:S!=null?S:void 0}:w=H;this.destination=new W8(w)};
_.G(y5,mJ);y5.JSC$9083_EMPTY=mJ.JSC$9083_EMPTY;y5.create=mJ.create;var NO=typeof Symbol==="function"&&Symbol.observable||"@@observable";var yx=function(H){H&&(this._subscribe=H)};
_.F=yx.prototype;_.F.lift=function(H){var C=new yx;C.source=this;C.operator=H;return C};
_.F.subscribe=function(H,C,S){H=H&&H instanceof mJ||H&&zv(H.next)&&zv(H.error)&&zv(H.complete)&&bMu(H)?H:new y5(H,C,S);C=this.operator;S=this.source;H.add(C?C.call(H,S):S?this._subscribe(H):this._trySubscribe(H));return H};
_.F._trySubscribe=function(H){try{return this._subscribe(H)}catch(C){H.error(C)}};
_.F.forEach=function(H,C){var S=this;C=uN6(C);return new C(function(w,A){var J=S.subscribe(function(c){try{H(c)}catch(Y){A(Y),J==null||J.unsubscribe()}},A,w)})};
_.F._subscribe=function(H){var C;return(C=this.source)==null?void 0:C.subscribe(H)};
yx.prototype[NO]=function(){return this};
yx.prototype.pipe=function(){var H=_.tc.apply(0,arguments);return H.length?e9U(H)(this):this};
yx.create=function(H){return new yx(H)};var W1_=function(){var H=Error.call(this,"object unsubscribed");this.message=H.message;"stack"in H&&(this.stack=H.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.G(W1_,Error);var Wj=function(){this.observers=[];this.hasError=this.JSC$9104_isStopped=this.closed=!1;this.thrownError=null};
_.G(Wj,yx);_.F=Wj.prototype;_.F.lift=function(H){var C=new Ne(this,this);C.operator=H;return C};
_.F._throwIfClosed=function(){if(this.closed)throw new W1_;};
_.F.next=function(H){this._throwIfClosed();if(!this.JSC$9104_isStopped){var C=this.observers.slice();C=_.Z(C);for(var S=C.next();!S.done;S=C.next())S.value.next(H)}};
_.F.error=function(H){this._throwIfClosed();if(!this.JSC$9104_isStopped){this.hasError=this.JSC$9104_isStopped=!0;this.thrownError=H;for(var C=this.observers;C.length;)C.shift().error(H)}};
_.F.complete=function(){this._throwIfClosed();if(!this.JSC$9104_isStopped){this.JSC$9104_isStopped=!0;for(var H=this.observers;H.length;)H.shift().complete()}};
_.F.unsubscribe=function(){this.JSC$9104_isStopped=this.closed=!0;this.observers=null};
_.F._trySubscribe=function(H){this._throwIfClosed();return yx.prototype._trySubscribe.call(this,H)};
_.F._subscribe=function(H){this._throwIfClosed();this._checkFinalizedStatuses(H);return this._innerSubscribe(H)};
_.F._innerSubscribe=function(H){var C=this,S=this.JSC$9104_isStopped,w=this.observers;return this.hasError||S?MO.JSC$9083_EMPTY:(w.push(H),new MO(function(){return Ns6(C.observers,H)}))};
_.F._checkFinalizedStatuses=function(H){var C=this.thrownError,S=this.JSC$9104_isStopped;this.hasError?H.error(C):S&&H.complete()};
Wj.create=function(H,C){return new Ne(H,C)};
var Ne=function(H,C){Wj.call(this);this.destination=H;this.source=C};
_.G(Ne,Wj);Ne.create=Wj.create;Ne.prototype.next=function(H){var C,S;(C=this.destination)==null||(S=C.next)==null||S.call(C,H)};
Ne.prototype.error=function(H){var C,S;(C=this.destination)==null||(S=C.error)==null||S.call(C,H)};
Ne.prototype.complete=function(){var H,C;(H=this.destination)==null||(C=H.complete)==null||C.call(H)};
Ne.prototype._subscribe=function(H){var C,S;return(S=(C=this.source)==null?void 0:C.subscribe(H))!=null?S:MO.JSC$9083_EMPTY};var Ip=function(H){Wj.call(this);this._value=H};
_.G(Ip,Wj);Ip.create=Wj.create;Ip.prototype._subscribe=function(H){var C=Wj.prototype._subscribe.call(this,H);!C.closed&&H.next(this._value);return C};
Ip.prototype.getValue=function(){var H=this.thrownError,C=this._value;if(this.hasError)throw H;this._throwIfClosed();return C};
Ip.prototype.next=function(H){Wj.prototype.next.call(this,this._value=H)};
_.JJ.Object.defineProperties(Ip.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var DA=new yx(function(H){return H.complete()});var lAU=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var QTW=function(H){return H&&typeof H.length==="number"&&typeof H!=="function"};var y_U={now:function(){return(y_U.delegate||Date).now()},
delegate:void 0};var j2=function(H,C,S){H=H===void 0?Infinity:H;C=C===void 0?Infinity:C;S=S===void 0?y_U:S;Wj.call(this);this.bufferSize=H;this.windowTime=C;this.timestampProvider=S;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=C===Infinity;this.bufferSize=Math.max(1,H);this.windowTime=Math.max(1,C)};
_.G(j2,Wj);j2.create=Wj.create;j2.prototype.next=function(H){var C=this.buffer,S=this.infiniteTimeWindow,w=this.timestampProvider,A=this.windowTime;this.JSC$9104_isStopped||(C.push(H),!S&&C.push(w.now()+A));NU7(this);Wj.prototype.next.call(this,H)};
j2.prototype._subscribe=function(H){this._throwIfClosed();NU7(this);for(var C=this._innerSubscribe(H),S=this.infiniteTimeWindow,w=this.buffer.slice(),A=0;A<w.length&&!H.closed;A+=S?1:2)H.next(w[A]);this._checkFinalizedStatuses(H);return C};
var NU7=function(H){var C=H.bufferSize,S=H.timestampProvider,w=H.buffer;H=H.infiniteTimeWindow;var A=(H?1:2)*C;C<Infinity&&A<w.length&&w.splice(0,w.length-A);if(!H){C=S.now();S=0;for(H=1;H<w.length&&w[H]<=C;H+=2)S=H;S&&w.splice(0,S+1)}};var EMW=function(H,C){C=C===void 0?bP1:C;this.schedulerActionCtor=H;this.now=C};
EMW.prototype.schedule=function(H,C,S){C=C===void 0?0:C;return(new this.schedulerActionCtor(this,H)).schedule(S,C)};
var bP1=y_U.now;var GVD=function(){var H=Error.call(this,"no elements in sequence");this.message=H.message;"stack"in H&&(this.stack=H.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.G(GVD,Error);var Pe=function(H,C,S,w,A){mJ.call(this,H);this.onUnsubscribe=A;C&&(this._next=function(J){try{C(J)}catch(c){this.destination.error(c)}});
S&&(this._error=function(J){try{S(J)}catch(c){this.destination.error(c)}this.unsubscribe()});
w&&(this._complete=function(){try{w()}catch(J){this.destination.error(J)}this.unsubscribe()})};
_.G(Pe,mJ);Pe.JSC$9083_EMPTY=mJ.JSC$9083_EMPTY;Pe.create=mJ.create;Pe.prototype.unsubscribe=function(){var H;this.closed||(H=this.onUnsubscribe)!=null&&H.call(this);mJ.prototype.unsubscribe.call(this)};var S2=function(H,C){this.source=H;this.subjectFactory=C;this._subject=null;this._refCount=0;this._connection=null};
_.G(S2,yx);S2.create=yx.create;S2.prototype._subscribe=function(H){return eWn(this).subscribe(H)};
var eWn=function(H){var C=H._subject;if(!C||C.JSC$9104_isStopped)H._subject=H.subjectFactory();return H._subject};
S2.prototype._teardown=function(){this._refCount=0;var H=this._connection;this._subject=this._connection=null;H==null||H.unsubscribe()};
S2.prototype.connect=function(){var H=this,C=this._connection;if(!C){C=this._connection=new MO;var S=eWn(this);C.add(this.source.subscribe(new Pe(S,void 0,function(w){H._teardown();S.error(w)},function(){H._teardown();
S.complete()},function(){return H._teardown()})));
C.closed&&(this._connection=null,C=MO.JSC$9083_EMPTY)}return C};var tnu=Array.isArray;var g$E=Array.isArray,ud7=Object,UOV=ud7.getPrototypeOf,R9U=ud7.prototype,IAW=ud7.keys;var nM=function(H,C,S){mJ.call(this,H);this._next=C;this.shouldComplete=S};
_.G(nM,mJ);nM.JSC$9083_EMPTY=mJ.JSC$9083_EMPTY;nM.create=mJ.create;nM.prototype._complete=function(){this.shouldComplete()?mJ.prototype._complete.call(this):this.unsubscribe()};var wjp=["addListener","removeListener"],jpV=["addEventListener","removeEventListener"],Jbi=["on","off"];var b7=function(){MO.call(this)};
_.G(b7,MO);b7.JSC$9083_EMPTY=MO.JSC$9083_EMPTY;b7.prototype.schedule=function(){return this};var Gd7=function(H,C){return setInterval.apply(null,[H,C].concat(_.k$(_.tc.apply(2,arguments))))};var Ev=function(H,C){MO.call(this);this.scheduler=H;this.work=C;this.pending=!1};
_.G(Ev,b7);Ev.JSC$9083_EMPTY=b7.JSC$9083_EMPTY;Ev.prototype.schedule=function(H,C){C=C===void 0?0:C;if(this.closed)return this;this.state=H;H=this.id;var S=this.scheduler;H!=null&&(this.id=f11(this,H,C));this.pending=!0;this.delay=C;this.id=this.id||this.requestAsyncId(S,this.id,C);return this};
Ev.prototype.requestAsyncId=function(H,C,S){S=S===void 0?0:S;return Gd7(H.flush.bind(H,this),S)};
var f11=function(H,C,S){S=S===void 0?0:S;if(S!=null&&H.delay===S&&H.pending===!1)return C;clearInterval(C)};
Ev.prototype.execute=function(H,C){if(this.closed)return Error("ha");this.pending=!1;if(H=this._execute(H,C))return H;this.pending===!1&&this.id!=null&&(this.id=f11(this,this.id,null))};
Ev.prototype._execute=function(H){var C=!1;try{this.work(H)}catch(w){C=!0;var S=!!w&&w||Error(w)}if(C)return this.unsubscribe(),S};
Ev.prototype.unsubscribe=function(){if(!this.closed){var H=this.id,C=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;Ns6(C,this);H!=null&&(this.id=f11(this,H,null));this.delay=null;b7.prototype.unsubscribe.call(this)}};var vM1=function(H,C){C=C===void 0?bP1:C;EMW.call(this,H,C);this.actions=[];this.active=!1;this.scheduled=void 0};
_.G(vM1,EMW);vM1.prototype.flush=function(H){var C=this.actions;if(this.active)C.push(H);else{var S;this.active=!0;do if(S=H.execute(H.state,H.delay))break;while(H=C.shift());this.active=!1;if(S){for(;H=C.shift();)H.unsubscribe();throw S;}}};var $l=new yx(qO);var FD6=Array.isArray;var eM=function(H,C){Ev.call(this,H,C);this.scheduler=H;this.work=C};
_.G(eM,Ev);eM.JSC$9083_EMPTY=Ev.JSC$9083_EMPTY;eM.prototype.schedule=function(H,C){C=C===void 0?0:C;if(C>0)return Ev.prototype.schedule.call(this,H,C);this.delay=C;this.state=H;this.scheduler.flush(this);return this};
eM.prototype.execute=function(H,C){return C>0||this.closed?Ev.prototype.execute.call(this,H,C):this._execute(H,C)};
eM.prototype.requestAsyncId=function(H,C,S){S=S===void 0?0:S;return S!=null&&S>0||S==null&&this.delay>0?Ev.prototype.requestAsyncId.call(this,H,C,S):H.flush(this)};var l1M=function(){vM1.apply(this,arguments)};
_.G(l1M,vM1);var DOD=new l1M(eM);var V71=function(){this.performanceMonitor=new dDd;this.queue=new Pi1;this.internalSymbol=Symbol();this.debugNames=new qn_};
V71.prototype.getOnBackgrounded=function(){return $l};
_.JJ.Object.defineProperties(V71.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var u7=function(H,C){C=Error.call(this,C?H+": "+C:String(H));this.message=C.message;"stack"in C&&(this.stack=C.stack);this.code=H;this.__proto__=u7.prototype;this.name=String(H)};
_.G(u7,Error);var pX=function(H){u7.call(this,1E3,'sfr:"'+H+'"');this.measurementStrategyFailureReason=H;this.__proto__=pX.prototype};
_.G(pX,u7);var kl=function(){u7.call(this,1003);this.__proto__=kl.prototype};
_.G(kl,u7);var Gl=function(){u7.call(this,1009);this.__proto__=Gl.prototype};
_.G(Gl,u7);var oMd=function(){u7.call(this,1011);this.__proto__=oMd.prototype};
_.G(oMd,u7);var OPM=function(){u7.call(this,1007);this.__proto__=kl.prototype};
_.G(OPM,u7);var dx=function(H){u7.call(this,1004,String(H));this.inputObservableIndex=H;this.__proto__=dx.prototype};
_.G(dx,u7);var nJV=function(H){u7.call(this,1010,H);this.__proto__=rk7.prototype};
_.G(nJV,u7);var rk7=function(H){u7.call(this,1005,H);this.__proto__=rk7.prototype};
_.G(rk7,u7);var X71=function(H){var C=_.tc.apply(1,arguments),S=this;this.orderedFactories=[];this.orderedFactories.push(H);C.forEach(function(w){S.orderedFactories.push(w)})};
X71.prototype.isSupported=function(H){return this.orderedFactories.some(function(C){return C.isSupported(H)})};
X71.prototype.makeBeacon=function(H,C){for(var S=0;S<this.orderedFactories.length;S++)if(this.orderedFactories[S].isSupported(C))return this.orderedFactories[S].makeBeacon(H,C);throw new Gl;};var VLp=Symbol("ia"),QVd=Symbol("ja"),UM=function(H,C){this.value=H;this.timeline=C},gs=function(H,C){if(C.timeline!==H.timeline)throw new OPM;
return H.value-C.value};
_.F=UM.prototype;_.F.equals=function(H){return gs(this,H)===0};
_.F.maximum=function(H){if(H.timeline!==this.timeline)throw new OPM;return this.value>=H.value?this:H};
_.F.round=function(){return new UM(Math.round(this.value),this.timeline)};
_.F.add=function(H){return new UM(this.value+H,this.timeline)};
_.F.toString=function(){return String(this.value)};var fi=function(H,C){this.context=H;this.JSC$9210_pinger=C};
fi.prototype.isSupported=function(H){return this.JSC$9210_pinger.isSupported(H)};
fi.prototype.makeBeacon=function(H,C){if(!this.isSupported(C))throw new Gl;return new V5(this.context,this.JSC$9210_pinger,C!=null?C:void 0,H)};
var V5=function(H,C,S,w){var A=this;this.JSC$9216_pinger=C;this.properties=S;this.url=w;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var J;this.method=(J=S==null?void 0:S.beaconMethod)!=null?J:"GET";this.backgroundedSubscription=H.getOnBackgrounded().subscribe(function(){A.sendNow()})};
V5.prototype.deactivate=function(){this.internalIsPending=!1};
V5.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9216_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var H,C;this.JSC$9216_pinger.pingWithHeadersAndBody((H=this.properties)!=null?H:{},this.customHeaders,(C=this.body)!=null?C:"",this.url)}else this.JSC$9216_pinger.ping(this.url);this.internalIsPending=!1}catch(S){}else this.internalIsPending=!1};
V5.prototype.setHeader=function(H,C){this.customHeaders.set(H,C)};
_.JJ.Object.defineProperties(V5.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var PY7=function(){for(var H=_.Z(_.tc.apply(0,arguments)),C=H.next();!C.done;C=H.next())if(C=C.value,C.available()){this.timeProvider=C;return}this.timeProvider=new di7};
_.F=PY7.prototype;_.F.available=function(){return this.timeProvider.available()};
_.F.now=function(){return this.timeProvider.now()};
_.F.setTimeout=function(H,C){return this.timeProvider.setTimeout(H,C)};
_.F.clearTimeout=function(H){this.timeProvider.clearTimeout(H)};
_.F.interval=function(H,C){var S=this.intervalObservable(H).subscribe(C);return function(){return void S.unsubscribe()}};
_.F.intervalObservable=function(H){return this.timeProvider.intervalObservable(H)};
_.JJ.Object.defineProperties(PY7.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var di7=function(){this.timeline=Symbol()};
_.F=di7.prototype;_.F.available=function(){return!1};
_.F.now=function(){return new UM(0,this.timeline)};
_.F.setTimeout=function(){return 0};
_.F.clearTimeout=function(){};
_.F.interval=function(){return function(){}};
_.F.intervalObservable=function(){return $l};var oo=function(H,C){this.intrinsicFunctionNamespace=H;this.performanceMonitor=C};
_.F=oo.prototype;_.F.setTimeout=function(H,C){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,H),C)};
_.F.clearTimeout=function(H){this.intrinsicFunctionNamespace.clearTimeout(H)};
_.F.interval=function(H,C){var S=this.intervalObservable(H).subscribe(C);return function(){return void S.unsubscribe()}};
_.F.intervalObservable=function(H){var C=this;return new yx(function(S){var w=0,A=C.intrinsicFunctionNamespace.setInterval(function(){S.next(w++)},H);
return function(){C.intrinsicFunctionNamespace.clearInterval(A)}})};
_.F.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var $iY=function(H,C){oo.call(this,H,C);this.timeline=QVd};
_.G($iY,oo);$iY.prototype.now=function(){return new UM(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
$iY.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&oo.prototype.available.call(this)};var p7M=function(H,C){oo.call(this,H,C);this.timeline=VLp};
_.G(p7M,oo);p7M.prototype.now=function(){return new UM(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
p7M.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&oo.prototype.available.call(this)};var hWd=function(H){this.context=H;if(kd7===void 0)a:{var C,S,w=(C=H.global)==null?void 0:(S=C.document)==null?void 0:S.createElement("meta");if(w)try{w.httpEquiv="origin-trial";w.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";H.global.document.head.append(w);kd7=w;break a}catch(A){}kd7=void 0}},
kd7;
hWd.prototype.isSupported=function(H){return yb$(this.context)!==void 0&&!(H==null||!H.endOfSession)&&!Ov(this.context)&&!(H==null?0:H.attributionEnabled)&&!(H==null?0:H.customHeaders)&&!(H==null?0:H.customBody)};
hWd.prototype.makeBeacon=function(H,C){if(!this.isSupported(C))throw new Gl;return new Xi(this.context,H,C)};
var Xi=function(H,C,S){this.context=H;this.properties=S;this.JSC$9243_urlWithoutToken=C;var w;this.beaconMethod=(w=S==null?void 0:S.beaconMethod)!=null?w:"GET";H=yb$(this.context);if(H===void 0)throw Error();this.fetchLater=H;nMn(this,r_b(this))},nMn=function(H,C){H.beaconResult&&H.beaconResult.activated||(H.beaconAbort=new AbortController,H.beaconResult=H.fetchLater(C,{method:H.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:H.beaconAbort.signal,activateAfter:96E4}))},r_b=function(H){H=H.JSC$9243_urlWithoutToken;
return(H.slice(-1)[0]==="&"?H:H+"&")+"flapi=1"};
Xi.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
Xi.prototype.sendNow=function(){};
Xi.prototype.setHeader=function(){};
_.JJ.Object.defineProperties(Xi.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9243_urlWithoutToken},
set:function(H){this.JSC$9243_urlWithoutToken=H;H=r_b(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);nMn(this,H)}},
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 BUU=function(H){this.context=H};
BUU.prototype.isSupported=function(){return!Ov(this.context)&&!!this.context.global.fetch};
BUU.prototype.ping=function(){var H=this;return KM.apply(null,_.k$(_.tc.apply(0,arguments).map(function(C){return EM(H.context.global.fetch(C,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(pM(function(S){return S.status===200}))}))).pipe(f9V(function(C){return C}),l9D())};
BUU.prototype.pingWithHeadersAndBody=function(H,C,S){for(var w=_.tc.apply(3,arguments),A=this,J=new Headers,c=_.Z(C.entries()),Y=c.next();!Y.done;Y=c.next()){var M=_.Z(Y.value);Y=M.next().value;M=M.next().value;J.set(Y,M)}var m,W=(m=H.keepAlive)!=null?m:!1;KM.apply(null,_.k$(w.map(function(y){return EM(A.context.global.fetch(y,Object.assign({},{method:String(H.beaconMethod),cache:"no-cache"},W?{keepalive:!0}:{},{mode:"no-cors",headers:J,body:S}))).pipe(pM(function(N){return N.status===200}))}))).pipe(f9V(function(y){return y}),
l9D())};var DiY,ME$,K17;_.Q5=function(){};
_.$E=function(H){return H};
DiY=function(H){var C=C||0;return function(){return H.apply(this,Array.prototype.slice.call(arguments,0,C))}};
_.d1=function(H){var C=!1,S;return function(){C||(S=H(),C=!0);return S}};
_.P8=function(H,C){var S=0;return function(w){_.s$.clearTimeout(S);var A=arguments;S=_.s$.setTimeout(function(){H.apply(void 0,A)},C)}};
ME$=function(H,C){var S=0,w=!1,A=[],J=function(){S=0;w&&(w=!1,c())},c=function(){S=_.s$.setTimeout(J,C);
var Y=A;A=[];H.apply(void 0,Y)};
return function(Y){A=arguments;S?w=!0:c()}};
K17=function(H,C){var S=0,w=function(){S=0};
return function(A){S||(S=_.s$.setTimeout(w,C),H.apply(void 0,arguments))}};var L1d=function(){return y7&&E$?E$.mobile:!t71()&&(G6("iPod")||G6("iPhone")||G6("Android")||G6("IEMobile"))},t71=function(){return y7&&E$?!E$.mobile&&(G6("iPad")||G6("Android")||G6("Silk")):G6("iPad")||G6("Android")&&!G6("Mobile")||G6("Silk")};var gMY;_.hb={};gMY="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.hb.add=function(H,C,S){if(H!==null&&C in H)throw Error("la`"+C);H[C]=S};
_.hb.clear=function(H){for(var C in H)delete H[C]};
_.hb.clone=function(H){var C={},S;for(S in H)C[S]=H[S];return C};
_.hb.contains=function(H,C){return dH7(H,C)};
_.hb.containsKey=function(H,C){return H!==null&&C in H};
_.hb.containsValue=dH7;_.hb.create=pjZ;_.hb.createImmutableView=function(H){var C=H;Object.isFrozen&&!Object.isFrozen(H)&&(C=Object.create(H),Object.freeze(C));return C};
_.hb.createSet=kVW;_.hb.equals=function(H,C){for(var S in H)if(!(S in C)||H[S]!==C[S])return!1;for(var w in C)if(!(w in H))return!1;return!0};
_.hb.every=function(H,C,S){for(var w in H)if(!C.call(S,H[w],w,H))return!1;return!0};
_.hb.extend=function(H,C){for(var S,w,A=1;A<arguments.length;A++){w=arguments[A];for(S in w)H[S]=w[S];for(var J=0;J<gMY.length;J++)S=gMY[J],Object.prototype.hasOwnProperty.call(w,S)&&(H[S]=w[S])}};
_.hb.filter=function(H,C,S){var w={},A;for(A in H)C.call(S,H[A],A,H)&&(w[A]=H[A]);return w};
_.hb.findKey=PR6;_.hb.findValue=function(H,C,S){return(C=PR6(H,C,S))&&H[C]};
_.hb.forEach=function(H,C,S){for(var w in H)C.call(S,H[w],w,H)};
_.hb.get=function(H,C,S){return H!==null&&C in H?H[C]:S};
_.hb.getAllPropertyNames=function(H,C,S){if(!H)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return QpZ(H);for(var w={};H&&(H!==Object.prototype||C)&&(H!==Function.prototype||S);){for(var A=Object.getOwnPropertyNames(H),J=0;J<A.length;J++)w[A[J]]=!0;H=Object.getPrototypeOf(H)}return QpZ(w)};
_.hb.getAnyKey=function(H){for(var C in H)return C};
_.hb.getAnyValue=function(H){for(var C in H)return H[C]};
_.hb.getCount=function(H){var C=0,S;for(S in H)C++;return C};
_.hb.getKeys=QpZ;_.hb.getSuperClass=function(H){return(H=Object.getPrototypeOf(H.prototype))&&H.constructor};
_.hb.getValueByKeys=function(H,C){var S=_.Dw(C),w=S?C:arguments;for(S=S?0:1;S<w.length;S++){if(H==null)return;H=H[w[S]]}return H};
_.hb.getValues=function(H){var C=[],S=0,w;for(w in H)C[S++]=H[w];return C};
_.hb.isEmpty=function(H){for(var C in H)return!1;return!0};
_.hb.isImmutableView=function(H){return!!Object.isFrozen&&Object.isFrozen(H)};
_.hb.map=function(H,C,S){var w={},A;for(A in H)w[A]=C.call(S,H[A],A,H);return w};
_.hb.remove=function(H,C){var S;(S=C in H)&&delete H[C];return S};
_.hb.set=function(H,C,S){H[C]=S};
_.hb.setIfUndefined=function(H,C,S){return C in H?H[C]:H[C]=S};
_.hb.setWithReturnValueIfNotSet=function(H,C,S){if(C in H)return H[C];S=S();return H[C]=S};
_.hb.some=function(H,C,S){for(var w in H)if(C.call(S,H[w],w,H))return!0;return!1};
_.hb.transpose=function(H){var C={},S;for(S in H)C[H[S]]=S;return C};
_.hb.unsafeClone=$HU;var $S=function(H,C,S,w,A){this.allowedElements=H;this.elementPolicies=C;this.allowedGlobalAttributes=S;this.globalAttributePolicies=w;this.globallyAllowedAttributePrefixes=A},Uin=function(H,C,S){S=H.elementPolicies.get(S);
return(S==null?0:S.has(C))?S.get(C):H.allowedGlobalAttributes.has(C)?{policyAction:1}:(S=H.globalAttributePolicies.get(C))?S:H.globallyAllowedAttributePrefixes&&[].concat(_.k$(H.globallyAllowedAttributePrefixes)).some(function(w){return C.indexOf(w)===0})?{policyAction:1}:{policyAction:0}};var RWU="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(" "),
I1_=[["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}]])]],a17="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(" "),
xiW=[["dir",{policyAction:3,conditions:Vv(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:Vv(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:Vv(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:Vv(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],Hrb=new $S(new Set(RWU),new Map(I1_),new Set(a17),new Map(xiW)),ir7=new $S(new Set(RWU.concat(["BUTTON",
"INPUT"])),new Map(I1_),new Set(Vv(function(){return a17.concat(["class","id","name"])})),new Map(Vv(function(){return xiW.concat([["style",
{policyAction:1}]])})));var CpW,S_7,jO_;CpW=function(H,C,S,w,A){this.JSC$9303_sanitizerTable=H;this.styleElementSanitizer=C;this.styleAttributeSanitizer=S;this.JSC$9303_resourceUrlPolicy=w;this.JSC$9303_navigationUrlPolicy=A;this.changes=[]};
_.sOW=function(H,C){var S=document.implementation.createHTMLDocument("");H=S_7(H,C,S);S=S.body;S.appendChild(H);S=(new XMLSerializer).serializeToString(S);S=S.slice(S.indexOf(">")+1,S.lastIndexOf("</"));return R2(S)};
S_7=function(H,C,S){C=rbD(C,S);C=document.createTreeWalker(C,5,function(Y){if(Y.nodeType===3)Y=1;else if(DHU(Y))if(Y=BxZ(Y),Y===null)Y=2;else{var M=H.JSC$9303_sanitizerTable;Y=Y!=="FORM"&&(M.allowedElements.has(Y)||M.elementPolicies.has(Y))?1:2}else Y=2;return Y});
for(var w=C.nextNode(),A=S.createDocumentFragment(),J=A;w!==null;){var c=void 0;if(w.nodeType===3)H.styleElementSanitizer&&J.nodeName==="STYLE"?(w=H.styleElementSanitizer(w.data),c=H.createTextNode(w)):c=H.createTextNode(w.data);else if(DHU(w))c=jO_(H,w,S);else throw Error("Z");J.appendChild(c);if(w=C.firstChild())J=c;else for(;!(w=C.nextSibling())&&(w=C.parentNode());)J=J.parentNode}return A};
CpW.prototype.createTextNode=function(H){return document.createTextNode(H)};
jO_=function(H,C,S){var w,A=BxZ(C);S=S.createElement(A);C=C.attributes;for(var J=_.Z(C),c=J.next();!c.done;c=J.next()){var Y=c.value;c=Y.name;Y=Y.value;var M=Uin(H.JSC$9303_sanitizerTable,c,A);a:{if(w=M.conditions){w=_.Z(w);for(var m=w.next();!m.done;m=w.next()){var W=_.Z(m.value);m=W.next().value;W=W.next().value;var y=void 0;if((m=(y=C.getNamedItem(m))==null?void 0:y.value)&&!W.has(m)){w=!1;break a}}}w=!0}if(w)switch(M.policyAction){case 1:zV(S,c,Y);break;case 2:throw Error();case 3:zV(S,c,Y.toLowerCase());
break;case 4:H.styleAttributeSanitizer?(Y=H.styleAttributeSanitizer(Y),zV(S,c,Y)):zV(S,c,Y);break;case 5:H.JSC$9303_resourceUrlPolicy?(M={type:2,attributeName:c,elementName:A},Y=nlw(Y),(Y=H.JSC$9303_resourceUrlPolicy(Y,M))&&zV(S,c,Y.toString())):zV(S,c,Y);break;case 6:if(H.JSC$9303_resourceUrlPolicy){M={type:2,attributeName:c,elementName:A};w=[];Y=_.Z(Y.split(","));for(m=Y.next();!m.done;m=Y.next())W=_.Z(m.value.trim().split(/\s+/,2)),m=W.next().value,W=W.next().value,w.push({url:m,descriptor:W});
Y={parts:[]};w=_.Z(w);for(m=w.next();!m.done;m=w.next())m=m.value,W=nlw(m.url),(W=H.JSC$9303_resourceUrlPolicy(W,M))&&Y.parts.push({url:W.toString(),descriptor:m.descriptor});zV(S,c,KDw(Y))}else zV(S,c,Y);break;case 7:M=Y;if(H.JSC$9303_navigationUrlPolicy){M={type:2,attributeName:c,elementName:A};Y=nlw(Y);Y=H.JSC$9303_navigationUrlPolicy(Y,M);if(Y===null)break;M=Y.toString()}Y=M;M=_.JY6(Y);M=M!==void 0&&jV1.indexOf(M.toLowerCase())!==-1?Y:"about:invalid#zClosurez";zV(S,c,M)}}return S};
_.w3i=Vv(function(){return new CpW(Hrb)});
_.A91=Vv(function(){return new CpW(ir7)});var J9d=function(){this.calledBuild=!1;this.JSC$9315_sanitizerTable=Hrb},Fjb=function(){J9d.apply(this,arguments)};
_.G(Fjb,J9d);Fjb.prototype.build=function(){if(this.calledBuild)throw Error("na");this.calledBuild=!0;return new CpW(this.JSC$9315_sanitizerTable,void 0,void 0,this.JSC$9315_resourceUrlPolicy,this.JSC$9315_navigationUrlPolicy)};var Zr1=/[^#]*/;var Y_U=function(H){var C=c9W;if(C)for(var S in C)Object.prototype.hasOwnProperty.call(C,S)&&H(C[S],S,C)},ziV=function(){var H=[];
Y_U(function(C){H.push(C)});
return H},c9W={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"},MoW=_.d1(function(){return ziV()}),TiM=function(){var H=q_M("IFRAME"),
C={};
_.I6(MoW(),function(S){H.sandbox&&H.sandbox.supports&&H.sandbox.supports(S)&&(C[S]=!0)});
return C},q_M=function(H,C){C=C===void 0?document:C;
return C.createElement(String(H).toLowerCase())};var pi;_.$C=function(H,C,S){return Math.min(Math.max(H,C),S)};
pi=function(H,C,S){return H+S*(C-H)};_.rx=function(H,C){this.x=H!==void 0?H:0;this.y=C!==void 0?C:0};
_.F=_.rx.prototype;_.F.clone=function(){return new _.rx(this.x,this.y)};
_.F.equals=function(H){return H instanceof _.rx&&(this==H?!0:this&&H?this.x==H.x&&this.y==H.y:!1)};
_.F.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.F.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.F.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.F.translate=function(H,C){H instanceof _.rx?(this.x+=H.x,this.y+=H.y):(this.x+=Number(H),typeof C==="number"&&(this.y+=C));return this};
_.F.scale=function(H,C){this.x*=H;this.y*=typeof C==="number"?C:H;return this};_.vj=function(H,C){this.width=H;this.height=C};
_.F=_.vj.prototype;_.F.clone=function(){return new _.vj(this.width,this.height)};
_.F.area=function(){return this.width*this.height};
_.F.aspectRatio=function(){return this.width/this.height};
_.F.isEmpty=function(){return!this.area()};
_.F.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.F.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.F.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.F.scale=function(H,C){this.width*=H;this.height*=typeof C==="number"?C:H;return this};var KC=function(H,C){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=H===kbU&&C||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=m9Y};
KC.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var Wj7=function(H){return H instanceof KC&&H.constructor===KC&&H.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===m9Y?H.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},m9Y={},kbU={};
new KC(kbU,"");var Ol,vl,hl,y9P,Etb,brW,Bj,uRU,fqn,GKP,Ds,vtV,d9P,QOY,X31,Pp1,$9b,p3W,kKY,SU0,hiU,r91,BiU,ntM,kS;Ol=function(H){return H?new kS(_.D9(H)):EXW||(EXW=new kS)};
_.Yi=function(H,C){return typeof C==="string"?H.getElementById(C):C};
vl=function(H,C){return(C||document).getElementsByTagName(String(H))};
_.Ni1=function(H){return y9P("yt-formatted-string","paper-input-input",H)};
hl=function(H,C,S,w){H=w||H;return(C=C&&C!="*"?String(C).toUpperCase():"")||S?H.querySelectorAll(C+(S?"."+S:"")):H.getElementsByTagName("*")};
y9P=function(H,C,S){var w=document,A=H&&H!="*"?String(H).toUpperCase():"";return A||C?(S||w).querySelector(A+(C?"."+C:"")):hl(w,H,C,S)[0]||null};
Etb=function(H,C){_.hb.forEach(C,function(S,w){w=="style"?H.style.cssText=S:w=="class"?H.className=S:w=="for"?H.htmlFor=S:brW.hasOwnProperty(w)?H.setAttribute(brW[w],S):_.AV(w,"aria-")||_.AV(w,"data-")?H.setAttribute(w,S):H[w]=S})};
brW={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"};_.lR=function(H){H=(H||window).document;H=H.compatMode=="CSS1Compat"?H.documentElement:H.body;return new _.vj(H.clientWidth,H.clientHeight)};
_.eiP=function(H){var C=_.ni(H);H=H.defaultView;return new _.rx((H==null?void 0:H.pageXOffset)||C.scrollLeft,(H==null?void 0:H.pageYOffset)||C.scrollTop)};
_.ni=function(H){return H.scrollingElement?H.scrollingElement:_.Tt||H.compatMode!="CSS1Compat"?H.body||H.documentElement:H.documentElement};
Bj=function(H){return H?H.defaultView:window};
_.r1=function(H,C,S){return uRU(document,arguments)};
uRU=function(H,C){var S=C[1],w=GKP(H,String(C[0]));S&&(typeof S==="string"?w.className=S:Array.isArray(S)?w.className=S.join(" "):Etb(w,S));C.length>2&&fqn(H,w,C,2);return w};
fqn=function(H,C,S,w){function A(Y){Y&&C.appendChild(typeof Y==="string"?H.createTextNode(Y):Y)}
for(;w<S.length;w++){var J=S[w];if(!_.Dw(J)||_.U$(J)&&J.nodeType>0)A(J);else{a:{if(J&&typeof J.length=="number"){if(_.U$(J)){var c=typeof J.item=="function"||typeof J.item=="string";break a}if(typeof J==="function"){c=typeof J.item=="function";break a}}c=!1}_.I6(c?_.BZ(J):J,A)}}};
_.GZ=function(H){return GKP(document,H)};
GKP=function(H,C){C=String(C);H.contentType==="application/xhtml+xml"&&(C=C.toLowerCase());return H.createElement(C)};
_.B8=function(){return document.createTextNode("\n")};
Ds=function(H){if(H.nodeType!=1)return!1;switch(H.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};
vtV=function(H,C){fqn(_.D9(H),H,arguments,1)};
_.Ki=function(H){for(var C;C=H.firstChild;)H.removeChild(C)};
_.tl=function(H,C){C.parentNode&&C.parentNode.insertBefore(H,C)};
_.Li=function(H,C){C.parentNode&&C.parentNode.insertBefore(H,C.nextSibling)};
_.f6=function(H){return H&&H.parentNode?H.parentNode.removeChild(H):null};
_.lqP=function(H,C){var S=C.parentNode;S&&S.replaceChild(H,C)};
_.Vo1=function(H){var C,S=H.parentNode;if(S&&S.nodeType!=11)if(H.removeNode)H.removeNode(!1);else{for(;C=H.firstChild;)S.insertBefore(C,H);_.f6(H)}};
_.g1=function(H){return H.children!=void 0?H.children:Array.prototype.filter.call(H.childNodes,function(C){return C.nodeType==1})};
_.OrY=function(H){return H.nextElementSibling!==void 0?H.nextElementSibling:_.otP(H.nextSibling,!0)};
_.otP=function(H,C){for(;H&&H.nodeType!=1;)H=C?H.nextSibling:H.previousSibling;return H};
_.jr=function(H){return _.U$(H)&&H.nodeType==1};
_.gS=function(H,C){if(!H||!C)return!1;if(H.contains&&C.nodeType==1)return H==C||H.contains(C);if(typeof H.compareDocumentPosition!="undefined")return H==C||!!(H.compareDocumentPosition(C)&16);for(;C&&H!=C;)C=C.parentNode;return C==H};
d9P=function(H,C){if(H==C)return 0;if(H.compareDocumentPosition)return H.compareDocumentPosition(C)&2?1:-1;if("sourceIndex"in H||H.parentNode&&"sourceIndex"in H.parentNode){var S=H.nodeType==1,w=C.nodeType==1;if(S&&w)return H.sourceIndex-C.sourceIndex;var A=H.parentNode,J=C.parentNode;return A==J?X31(H,C):!S&&_.gS(A,C)?-1*QOY(H,C):!w&&_.gS(J,H)?QOY(C,H):(S?H.sourceIndex:A.sourceIndex)-(w?C.sourceIndex:J.sourceIndex)}w=_.D9(H);S=w.createRange();S.selectNode(H);S.collapse(!0);H=w.createRange();H.selectNode(C);
H.collapse(!0);return S.compareBoundaryPoints(_.s$.Range.START_TO_END,H)};
QOY=function(H,C){var S=H.parentNode;if(S==C)return-1;for(;C.parentNode!=S;)C=C.parentNode;return X31(C,H)};
X31=function(H,C){for(;C=C.previousSibling;)if(C==H)return-1;return 1};
Pp1=function(H){var C,S=arguments.length;if(!S)return null;if(S==1)return arguments[0];var w=[],A=Infinity;for(C=0;C<S;C++){for(var J=[],c=arguments[C];c;)J.unshift(c),c=c.parentNode;w.push(J);A=Math.min(A,J.length)}J=null;for(C=0;C<A;C++){c=w[0][C];for(var Y=1;Y<S;Y++)if(c!=w[Y][C])return J;J=c}return J};
_.D9=function(H){return H.nodeType==9?H:H.ownerDocument||H.document};
$9b=function(H){return H.contentDocument||H.contentWindow.document};
_.Uv=function(H,C){if("textContent"in H)H.textContent=C;else if(H.nodeType==3)H.data=String(C);else if(H.firstChild&&H.firstChild.nodeType==3){for(;H.lastChild!=H.firstChild;)H.removeChild(H.lastChild);H.firstChild.data=String(C)}else _.Ki(H),H.appendChild(_.D9(H).createTextNode(String(C)))};
p3W={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};kKY={IMG:" ",BR:"\n"};SU0=function(H){var C;H.tagName=="A"&&H.hasAttribute("href")||H.tagName=="INPUT"||H.tagName=="TEXTAREA"||H.tagName=="SELECT"||H.tagName=="BUTTON"?C=!H.disabled&&(!H.hasAttribute("tabindex")||hiU(H)):C=H.hasAttribute("tabindex")&&hiU(H);return C};
hiU=function(H){H=H.tabIndex;return typeof H==="number"&&H>=0&&H<32768};
r91=function(H){var C=[];ntM(H,C,!0);H=C.join("");H=H.replace(/ \xAD /g," ").replace(/\xAD/g,"");H=H.replace(/\u200B/g,"");H=H.replace(/ +/g," ");H!=" "&&(H=H.replace(/^\s*/,""));return H};
BiU=function(H){var C=[];ntM(H,C,!1);return C.join("")};
ntM=function(H,C,S){if(!(H.nodeName in p3W))if(H.nodeType==3)S?C.push(String(H.nodeValue).replace(/(\r\n|\r|\n)/g,"")):C.push(H.nodeValue);else if(H.nodeName in kKY)C.push(kKY[H.nodeName]);else for(H=H.firstChild;H;)ntM(H,C,S),H=H.nextSibling};
_.D9n=function(H,C,S){if(!C&&!S)return null;var w=C?String(C).toUpperCase():null;return _.tb(H,function(A){return(!w||A.nodeName==w)&&(!S||typeof A.className==="string"&&_.nU(A.className.split(/\s+/),S))},!0)};
_.tb=function(H,C,S){H&&!S&&(H=H.parentNode);for(S=0;H;){if(C(H))return H;H=H.parentNode;S++}return null};
kS=function(H){this.JSC$9339_document_=H||_.s$.document||document};
_.F=kS.prototype;_.F.getElement=function(H){return _.Yi(this.JSC$9339_document_,H)};
_.F.$=kS.prototype.getElement;_.F.getElementsByTagName=function(H,C){return(C||this.JSC$9339_document_).getElementsByTagName(String(H))};
_.F.getElementsByTagNameAndClass=function(H,C,S){return hl(this.JSC$9339_document_,H,C,S)};
_.F.$$=kS.prototype.getElementsByTagNameAndClass;_.F.setProperties=Etb;_.F.JSC$9341_createDom=function(H,C,S){return uRU(this.JSC$9339_document_,arguments)};
_.F.createElement=function(H){return GKP(this.JSC$9339_document_,H)};
_.F.createTextNode=function(H){return this.JSC$9339_document_.createTextNode(String(H))};
_.F.getWindow=function(){return this.JSC$9339_document_.defaultView};
var op=function(H){return _.eiP(H.JSC$9339_document_)};
_.F=kS.prototype;_.F.appendChild=function(H,C){H.appendChild(C)};
_.F.append=vtV;_.F.canHaveChildren=Ds;_.F.removeNode=_.f6;_.F.getChildren=_.g1;_.F.contains=_.gS;_.F.isFocusable=SU0;_.F=mD.prototype;_.F.getWidth=function(){return this.right-this.left};
_.F.getHeight=function(){return this.bottom-this.top};
_.F.clone=function(){return new mD(this.top,this.right,this.bottom,this.left)};
_.F.contains=function(H){return this&&H?H instanceof mD?H.left>=this.left&&H.right<=this.right&&H.top>=this.top&&H.bottom<=this.bottom:H.x>=this.left&&H.x<=this.right&&H.y>=this.top&&H.y<=this.bottom:!1};
_.F.expand=function(H,C,S,w){_.U$(H)?(this.top-=H.top,this.right+=H.right,this.bottom+=H.bottom,this.left-=H.left):(this.top-=H,this.right+=Number(C),this.bottom+=Number(S),this.left-=Number(w));return this};
_.F.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};
_.F.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};
_.F.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};
_.F.translate=function(H,C){H instanceof _.rx?(this.left+=H.x,this.right+=H.x,this.top+=H.y,this.bottom+=H.y):(this.left+=H,this.right+=H,typeof C==="number"&&(this.top+=C,this.bottom+=C));return this};
_.F.scale=function(H,C){C=typeof C==="number"?C:H;this.left*=H;this.right*=H;this.top*=C;this.bottom*=C;return this};var Ro=function(H,C,S,w){this.left=H;this.top=C;this.width=S;this.height=w};
_.F=Ro.prototype;_.F.clone=function(){return new Ro(this.left,this.top,this.width,this.height)};
_.F.boundingRect=function(H){var C=Math.max(this.left+this.width,H.left+H.width),S=Math.max(this.top+this.height,H.top+H.height);this.left=Math.min(this.left,H.left);this.top=Math.min(this.top,H.top);this.width=C-this.left;this.height=S-this.top};
_.F.contains=function(H){return H instanceof _.rx?H.x>=this.left&&H.x<=this.left+this.width&&H.y>=this.top&&H.y<=this.top+this.height:this.left<=H.left&&this.left+this.width>=H.left+H.width&&this.top<=H.top&&this.top+this.height>=H.top+H.height};
_.F.distance=function(H){var C=H.x<this.left?this.left-H.x:Math.max(H.x-(this.left+this.width),0);H=H.y<this.top?this.top-H.y:Math.max(H.y-(this.top+this.height),0);return Math.sqrt(C*C+H*H)};
_.F.getSize=function(){return new _.vj(this.width,this.height)};
_.F.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};
_.F.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};
_.F.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};
_.F.translate=function(H,C){H instanceof _.rx?(this.left+=H.x,this.top+=H.y):(this.left+=H,typeof C==="number"&&(this.top+=C));return this};
_.F.scale=function(H,C){C=typeof C==="number"?C:H;this.left*=H;this.width*=H;this.top*=C;this.height*=C;return this};var to7,xS,mjU,ao,Ri7,U91,Iqb,jYw,aqM,H9V;_.Io=function(H,C,S){if(typeof C==="string")(C=_.Kji(H,C))&&(H.style[C]=S);else for(var w in C){S=H;var A=C[w],J=_.Kji(S,w);J&&(S.style[J]=A)}};
to7={};_.Kji=function(H,C){var S=to7[C];if(!S){var w=_.ls(C);S=w;H.style[w]===void 0&&(w=(_.Tt?"Webkit":_.qy?"Moz":null)+M7P(w),H.style[w]!==void 0&&(S=w));to7[C]=S}return S};
_.WQ=function(H,C){var S=_.D9(H);return S.defaultView&&S.defaultView.getComputedStyle&&(H=S.defaultView.getComputedStyle(H,null))?H[C]||H.getPropertyValue(C)||"":""};
_.L6=function(H,C){return _.WQ(H,C)||(H.currentStyle?H.currentStyle[C]:null)||H.style&&H.style[C]};
_.Lj7=function(H){return _.L6(H,"position")};
xS=function(H,C,S){if(C instanceof _.rx){var w=C.x;C=C.y}else w=C,C=S;H.style.left=ao(w,!1);H.style.top=ao(C,!1)};
mjU=function(H){try{return H.getBoundingClientRect()}catch(C){return{left:0,top:0,right:0,bottom:0}}};
_.KX=function(H){var C=_.D9(H),S=new _.rx(0,0);if(H==(C?_.D9(C):document).documentElement)return S;H=mjU(H);C=op(Ol(C));S.x=H.left+C.x;S.y=H.top+C.y;return S};
_.gtb=function(H,C,S){if(C instanceof _.vj)S=C.height,C=C.width;else if(S==void 0)throw Error("oa");H.style.width=ao(C,!0);H.style.height=ao(S,!0)};
ao=function(H,C){typeof H=="number"&&(H=(C?Math.round(H):H)+"px");return H};
Ri7=function(H){return U91(H)};
U91=function(H){var C=Iqb;if(_.L6(H,"display")!="none")return C(H);var S=H.style,w=S.display,A=S.visibility,J=S.position;S.visibility="hidden";S.position="absolute";S.display="inline";H=C(H);S.display=w;S.position=J;S.visibility=A;return H};
Iqb=function(H){var C=H.offsetWidth,S=H.offsetHeight,w=_.Tt&&!C&&!S;return(C===void 0||w)&&H.getBoundingClientRect?(H=mjU(H),new _.vj(H.right-H.left,H.bottom-H.top)):new _.vj(C,S)};
jYw=function(H){var C=_.KX(H);H=U91(H);return new Ro(C.x,C.y,H.width,H.height)};
aqM=function(H,C){H=H.style;"opacity"in H?H.opacity=C:"MozOpacity"in H?H.MozOpacity=C:"filter"in H&&(H.filter=C===""?"":"alpha(opacity="+Number(C)*100+")")};
_.HN=function(H,C){H.style.display=C?"":"none"};
_.x9b=function(H){return"rtl"==_.L6(H,"direction")};
H9V=function(H){var C=_.WQ(H,"marginLeft"),S=_.WQ(H,"marginRight"),w=_.WQ(H,"marginTop");H=_.WQ(H,"marginBottom");return new mD(parseFloat(w),parseFloat(S),parseFloat(H),parseFloat(C))};
_.i9Y=function(H){var C=_.WQ(H,"borderLeftWidth"),S=_.WQ(H,"borderRightWidth"),w=_.WQ(H,"borderTopWidth");H=_.WQ(H,"borderBottomWidth");return new mD(parseFloat(w),parseFloat(S),parseFloat(H),parseFloat(C))};var HC=function(H){this.context=H};
HC.prototype.isSupported=function(H){return(H==null?0:H.attributionEnabled)||(H==null?void 0:H.beaconMethod)==="POST"||(H==null?0:H.customHeaders)||(H==null?0:H.customBody)||(H==null?0:H.keepAlive)?!1:!Ov(this.context)};
HC.prototype.ping=function(){var H=this;return XN(_.tc.apply(0,arguments).map(function(C){try{var S=H.context.global,w=!1;w=w===void 0?!1:w;S.google_image_requests||(S.google_image_requests=[]);var A=q_M("IMG",S.document);w&&(A.attributionSrc="");A.src=C;S.google_image_requests.push(A);return!0}catch(J){return!1}}).every(function(C){return C}))};
HC.prototype.pingWithHeadersAndBody=function(H,C,S){this.ping.apply(this,_.k$(_.tc.apply(3,arguments)))};var CB1=function(H){this.context=H};
CB1.prototype.isSupported=function(H){return StW&&!Ov(this.context)&&LDZ(this.context)!==void 0&&!(H==null?0:H.attributionEnabled)&&(H==null?void 0:H.beaconMethod)!=="POST"&&!(H==null?0:H.customHeaders)&&!(H==null?0:H.customBody)};
CB1.prototype.makeBeacon=function(H,C){if(!this.isSupported(C))throw new Gl;return new iw(this.context,H)};
var StW=!1,iw=function(H,C){this.context=H;this.JSC$9360_urlWithoutToken=C;H=LDZ(this.context);if(H===void 0)throw Error();this.wrappedBeacon=new H(s2n(this),{})},s2n=function(H){H=H.JSC$9360_urlWithoutToken;
return(H.slice(-1)[0]==="&"?H:H+"&")+"pbapi=1"};
iw.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
iw.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
iw.prototype.setHeader=function(){};
_.JJ.Object.defineProperties(iw.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9360_urlWithoutToken},
set:function(H){this.JSC$9360_urlWithoutToken=H;this.wrappedBeacon.setURL(s2n(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(H){if(H!=="GET")throw new Gl;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var j27=function(H){this.context=H};
j27.prototype.isSupported=function(H){if((H==null?0:H.attributionEnabled)||(H==null?void 0:H.beaconMethod)==="GET"||(H==null?0:H.customHeaders)||(H==null?0:H.customBody)||(H==null?0:H.keepAlive))return!1;var C;return!Ov(this.context)&&((C=this.context.global.navigator)==null?void 0:C.sendBeacon)!==void 0};
j27.prototype.ping=function(){var H=this;return XN(_.tc.apply(0,arguments).map(function(C){var S;return(S=H.context.global.navigator)==null?void 0:S.sendBeacon(C)}).every(function(C){return C}))};
j27.prototype.pingWithHeadersAndBody=function(H,C,S){this.ping.apply(this,_.k$(_.tc.apply(3,arguments)))};var GV=function(H){this.value=H},Sm=function(H,C){return XN(H.value).pipe(e2(C))},jm=new GV(!1),VI7=new GV(!0);var LX=function(H){this.value=H;this.releasedSubject=new Wj};
LX.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.JJ.Object.defineProperties(LX.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9373_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var wlp=["FRAME","IMG","IFRAME"],H6U=/^[01](px)?$/,j77=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},s7u=function(){var H=new j77;
H.crossDomainLoadedDefault=!0;H.pendingImagesBlockLoad=!0;return H};var wV7=function(H,C){var S=zzV(H);if(S)if(S.onCreativeLoad)S.onCreativeLoad(C);else{var w=C?[C]:[],A=function(J){for(var c=0;c<w.length;++c)try{w[c](1,J)}catch(Y){}w={push:function(Y){Y(1,J)}}};
S.onCreativeLoad=function(J){w.push(J)};
S.setAttribute("data-creative-load-listener","");S.addEventListener("creativeLoad",function(J){A(J.detail)});
_.s$.addEventListener("message",function(J){Yp$(S,A,J)})}};var Ch=function(H,C){var S=this;this.global=H;this.parentContext=C;this.JSC$9384_onVisibilityChange=this.document?KM(XN(!0),Be(this.document,"visibilitychange")).pipe(RT(this.parentContext.performanceMonitor,748),pM(function(){return S.getVisibilityState()}),iR()):XN("visible");
this.document?Be(this.document,"DOMContentLoaded").pipe(RT(this.parentContext.performanceMonitor,739),Hj(1)):XN(a9u("DOMContentLoaded"))},lYW=function(H){return H.document!==null&&H.document.visibilityState!==void 0};
Ch.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
Ch.prototype.querySelector=function(H){return this.document?this.document.querySelector(H):null};
Ch.prototype.querySelectorAll=function(H){return this.document?_.BZ(this.document.querySelectorAll(H)):[]};
Ch.prototype.elementFromPoint=function(H,C){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;H=this.document.elementFromPoint(H,C);return H===null?null:new LX(H)};
var mnW=function(H,C,S){S=S===void 0?!1:S;if(C.ref===void 0||!H.document)return XN(C).pipe(RT(H.parentContext.performanceMonitor,749));var w=new j2(1),A=function(){w.next(C)};
S||wV7(C.ref,A);Akp(C.ref,A);return w.pipe(RT(H.parentContext.performanceMonitor,749),Hj(1))};
_.JJ.Object.defineProperties(Ch.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return OXE(this.global,"document")?this.global.document||null:null}}});var Mm0=_.xC(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),qp0=_.xC(["./reach_worklet.js"]),TS$=_.xC(["./reach_worklet.js"]),Ac7=_.xC(["./reach_worklet.html"]),Jcd=_.xC(["./reach_worklet.js"]),FTP=_.xC(["./reach_worklet.js"]);_.qH(Ac7);_.qH(Jcd);_.qH(FTP);var ap={left:0,top:0,width:0,height:0};var Z91,cc7,YtU,zBP,sE,qtd,TP7,mrb,AD0,JDZ,NPM,b9M;Z91=function(H,C,S,w,A,J,c){var Y="";H&&(Y+=H+":");S&&(Y+="//",C&&(Y+=C+"@"),Y+=S,w&&(Y+=":"+w));A&&(Y+=A);J&&(Y+="?"+J);c&&(Y+="#"+c);return Y};
cc7=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.Cv=function(H){return H.match(cc7)};
_.Vn=function(H,C){return H?C?decodeURI(H):decodeURIComponent(H):H};
YtU=function(H){H=_.Cv(H)[1]||null;!H&&_.s$.self&&_.s$.self.location&&(H=_.s$.self.location.protocol.slice(0,-1));return H?H.toLowerCase():""};
_.S$=function(H){return _.Vn(_.Cv(H)[3]||null,!0)};
_.EE=function(H){return _.Vn(_.Cv(H)[5]||null,!0)};
_.a_7=function(H){var C=H.indexOf("#");return C<0?null:H.slice(C+1)};
zBP=function(H){H=_.Cv(H);return Z91(H[1],H[2],H[3],H[4])};
_.MhV=function(H){H=_.Cv(H);return Z91(H[1],null,H[3],H[4])};
_.x_=function(H){H=_.Cv(H);return Z91(null,null,null,null,H[5],H[6],H[7])};
_.AM=function(H){var C=H.indexOf("#");return C<0?H:H.slice(0,C)};
sE=function(H,C){H=_.Cv(H);C=_.Cv(C);return H[3]==C[3]&&H[1]==C[1]&&H[4]==C[4]};
qtd=function(H,C){if(H){H=H.split("&");for(var S=0;S<H.length;S++){var w=H[S].indexOf("="),A=null;if(w>=0){var J=H[S].substring(0,w);A=H[S].substring(w+1)}else J=H[S];C(J,A?w4(A):"")}}};
TP7=function(H){var C=H.indexOf("#");C<0&&(C=H.length);var S=H.indexOf("?");if(S<0||S>C){S=C;var w=""}else w=H.substring(S+1,C);return[H.slice(0,S),w,H.slice(C)]};
mrb=function(H,C){return C?H?H+"&"+C:C:H};
_.WTd=function(H,C){if(!C)return H;H=TP7(H);H[1]=mrb(H[1],C);return H[0]+(H[1]?"?"+H[1]:"")+H[2]};
_.ycM=function(H,C,S){if(Array.isArray(C))for(var w=0;w<C.length;w++)_.ycM(H,String(C[w]),S);else C!=null&&S.push(H+(C===""?"":"="+_.R6(C)))};
_.u5=function(H){var C=[],S;for(S in H)_.ycM(S,H[S],C);return C.join("&")};
_.i5=function(H,C){C=_.u5(C);return _.WTd(H,C)};
_.SQ=function(H,C,S){S=S!=null?"="+_.R6(S):"";return _.WTd(H,C+S)};
AD0=function(H,C,S,w){for(var A=S.length;(C=H.indexOf(S,C))>=0&&C<w;){var J=H.charCodeAt(C-1);if(J==38||J==63)if(J=H.charCodeAt(C+A),!J||J==61||J==38||J==35)return C;C+=A+1}return-1};
JDZ=/#|$/;_.Up=function(H,C){var S=H.search(JDZ),w=AD0(H,0,C,S);if(w<0)return null;var A=H.indexOf("&",w);if(A<0||A>S)A=S;w+=C.length+1;return w4(H.slice(w,A!==-1?A:0))};
NPM=/[?&]($|#)/;_.Fw=function(H,C){for(var S=H.search(JDZ),w=0,A,J=[];(A=AD0(H,w,C,S))>=0;)J.push(H.substring(w,A)),w=Math.min(H.indexOf("&",A)+1||S,S);J.push(H.slice(w));return J.join("").replace(NPM,"$1")};
_.tt=function(H,C,S){return _.SQ(_.Fw(H,C),C,S)};
b9M=function(H){var C=TP7(window.location.href),S=C[1],w=[];S&&S.split("&").forEach(function(A){var J=A.indexOf("=");J=J>=0?A.slice(0,J):A;H.hasOwnProperty(J)||w.push(A)});
C[1]=mrb(w.join("&"),_.u5(H));return C[0]+(C[1]?"?"+C[1]:"")+C[2]};var $xW=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G($xW,_.Jc);$xW.prototype.getVersion=function(){return _.$v(this,2)};var PdZ=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(PdZ,_.Jc);var VmU=function(H,C){return _.XA(H,2,C)},dxD=function(H,C){return _.XA(H,3,C)};
PdZ.prototype.getModel=function(){return _.$v(this,4)};
var O6i=function(H,C){return _.XA(H,4,C)},laE=function(H,C){return _.XA(H,5,C)},Q7E=function(H,C){return _.XA(H,9,C)},vJ0=function(H,C){return VK(H,10,C)},faV=function(H,C){return _.TZ(H,11,C)},oJZ=function(H,C){return _.XA(H,1,C)},Xl$=function(H,C){return _.TZ(H,7,C)};var uvp="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var sp=function(H,C,S,w){H=H===void 0?window:H;C=C===void 0?null:C;S=S===void 0?new dDd:S;w=w===void 0?mx7():w;V71.call(this);var A=this;this.global=H;this.debugChannel=C;this.performanceMonitor=S;this.onPageHide=spZ(function(){return Be(A.global,"pagehide")}).pipe(RT(this.performanceMonitor,941));
this.onLoad=spZ(function(){return Be(A.global,"load")}).pipe(RT(this.performanceMonitor,738),Hj(1));
this.onResize=spZ(function(){return Be(A.global,"resize")}).pipe(RT(this.performanceMonitor,741));
this.onMessage=spZ(function(){return Be(A.global,"message")}).pipe(RT(this.performanceMonitor,740));
this.document=new Ch(this.global,this);this.timeProvider=new PY7(new p7M(this.intrinsicFunctionNamespace,this.performanceMonitor),new $iY(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new X71(new hWd(this),new CB1(this),new fi(this,new BUU(this)),new fi(this,new j27(this)),new fi(this,new HC(this)))};
_.G(sp,V71);var Ov=function(H){var C=H.global;return!!H.global.HTMLFencedFrameElement&&!!C.fence&&typeof C.fence.reportEvent==="function"};
_.F=sp.prototype;_.F.reportFencedFrameEvent=function(H){Ov(this)&&this.global.fence.reportEvent(H)};
_.F.getOnBackgrounded=function(){return this.onPageHide.pipe(RT(this.performanceMonitor,942),e2(this.queue),pM(function(){}))};
_.F.postMessage=function(H,C,S){S=S===void 0?[]:S;this.global.postMessage(H,C,S)};
_.F.getWidth=function(){return Xji(this.global)?this.global.width:0};
_.F.getHeight=function(){return Xji(this.global)?this.global.height:0};
_.F.isMobile=function(){return t71()||L1d()};
var gx=function(H,C){try{var S=b6Z(C,H.global,H.isMobile());return{left:S.left,top:S.top,width:S.getWidth(),height:S.getHeight()}}catch(w){return ap}};
sp.prototype.validate=function(){var H=this.beaconFactory.isSupported()||Ov(this);return this.global&&this.timeProvider.available()&&H};
var UHp=function(H){return(H=kZ7(H.global))?EM(H):null};
_.JJ.Object.defineProperties(sp.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(H){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!Xji(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}}});_.EDb=!_.My&&!_.WED();var oT7=function(H){return H};var XhE=function(H){return H.pipe(LM(function(C){var S=C.endOfSessionReason;var w;return((w=C.viewable)==null?void 0:w.extrapolateToNow().value)||S!=void 0}),Hj(1),aT())};var tmp=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},Lmp=function(H){var C=H.sequenceNumber.toString(10).padStart(2,"0");
C=""+H.startTime+C;H.sequenceNumber<99&&H.sequenceNumber++;return C};var vTZ=We(Z9(function(H){return H.endOfSessionReason===void 0}),pM(function(H){return Object.assign({},H,{timestamps:Pj(H)})}),LM(function(H){var C=H.viewable;
H=H.timestamps;var S;return(S=C==null?void 0:C.extrapolateUsingTimestampMap(H).value)!=null?S:!1}),pM(function(H){var C=H.beaconFactory;
var S=H.timestampedExposureHistory;var w=H.timeOnScreen;var A=H.binaryContext;H=H.timestamps;if(C===void 0||S===void 0||w===void 0||A===void 0)return!1;if(w.extrapolateUsingTimestampMap(H).value.every(function(J){return J>=0}))return!0;
S=S.map(function(J){return J.timestamp+":"+J.value}).join(",");
w=gJw({bin:A,tos:w},H);C.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+w+("&eh="+S)).sendNow();return!0}),Z9(function(H){return!H}),aT());var Rz$=function(H){return{id:H.pingId,mcvt:H.maxConsecutiveViewTime,p:H.creativePosition,asp:H.adSpeedPosition,tm:H.totalMeasurementTime,tu:H.totalUnviewedTime,mtos:H.maxTimeOnScreen,tos:H.timeOnScreen,v:H.binaryVersion,bin:H.binaryContext,avms:H.measurementStrategy,bs:H.browserSize,mc:H.maximumExposure,"if":H.crossDomainIframeState,vu:H.delayedImpressionJsState,app:H.inApp,mse:H.mraidError,mtop:H.mraidSituation,itpl:H.injectedTemplateId,adk:H.adKey,exk:H.awbidKey,rs:H.requestSource,la:H.isLargeAd,
cr:H.isContentRecommendationAd,uach:H.userAgentClientHints,vs:H.viewState,r:H.reasonCode,pay:H.hasCpmavUrl,co:H.clientPingOrderCounter,rst:H.adRenderStartTime,rpt:H.adRenderPeriodTime,isd:H.initialScrollDepth,lsd:H.loadedScrollDepth,context:H.errorContext,msg:H.errorMessage,stack:H.errorStack,name:H.errorName,ec:H.hasElementChanged,sfr:H.strategyFailureReasons,met:H.creativeSearchResult,wmsd:H.webMeasurementStartDiagnostic,pv:H.pageVisible,epv:H.eosPageVisible,pbe:H.inStatefulBeaconExperiment,fle:H.inFetchLaterBeaconExperiment,
vae:H.inViewableAttributionExperiment,spb:H.supportsPendingBeacon,sfl:H.supportsFetchLater,ffslot:H.isFencedFrameSlotTurtlex,reach:H.sharedStorageReachMode,io2:H.v2VisibilityBitVector,rxdbg:H.rxDebugger,omida:H.omidAppId,omidp:H.omidPartner,omidpv:H.omidPartnerVersion,omidor:H.omidOcclusionReasons,omidv:H.omidVersion,omids:H.omidSessionType,omidam:H.omidAccessMode,omidct:H.omidCreativeType,omidia:H.omidInApp,omiddc:H.omidDeviceCategory,omidlat:H.omidLastActivity,omiddit:H.omidDeviceIdleTime,qid:H.errorEscapedQueryId}};var OpD=function(H){var C=[];return H.pipe(pM(function(S){var w=S.beaconFactory,A=S.fetchBeaconFactory,J=S.timeOnScreen,c=S.timeOnScreenUrlPrefixes,Y=S.payloadMapper,M=S.timeOnScreenPingId,m=S.timeOnScreenReason,W=S.urlSerializer,y=S.viewable,N=S.hasImpressionFired,b=S.inStatefulBeaconExperiment,u=S.supportsPendingBeacon,O=S.supportsFetchLater,d=S.turtlexReportEventData;if(!S.geometryMeasurable||!N||S.maxTimeOnScreen===void 0||J===void 0||c===void 0||Y===void 0||M===void 0||W===void 0||w===void 0)return!1;
if(S.isTurtlex){if(m===void 0)return!1;c=S.reportFencedFrameEvent;if(!c)return!1;c({eventType:"active-view-time-on-screen",eventData:d!=null?d:"",destination:["buyer"]});return!0}if(!(b||O||m))return!1;d=Pj(S);var p;y=(p=y==null?void 0:y.extrapolateUsingTimestampMap(d).value)!=null?p:!1;p=W(Object.assign({},S,{pingId:M,viewState:y?4:3,reasonCode:m!=null?m:"u",payloadMapper:Y,urlPrefixes:c}),d);if(b){for(;C.length>c.length;)S=void 0,(S=C.shift())==null||S.deactivate();p.forEach(function(R,L){L>=C.length?
C.push(w.makeBeacon(R)):C[L].url=R});
return u&&A&&m!==void 0?(p.forEach(function(R){A.makeBeacon(R).sendNow()}),!0):m!==void 0}if(u&&A&&m!==void 0)return p.forEach(function(R){A.makeBeacon(R).sendNow()}),!0;
if(O&&A){for(;C.length>c.length;)u=void 0,(u=C.shift())==null||u.deactivate();var k=W(Object.assign({},S,{pingId:M,viewState:y?4:3,reasonCode:m!=null?m:"u",payloadMapper:Y,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),d)[0];p.forEach(function(R,L){L>=C.length?C.push(w.makeBeacon(k,{endOfSession:!0})):C[L].url=k});
return m!==void 0?(p.forEach(function(R){A.makeBeacon(R).sendNow()}),!0):m!==void 0}return m!==void 0?(p.forEach(function(R){w.makeBeacon(R).sendNow()}),!0):!1}),Z9(function(S){return!S}),aT())};var Q6E=We(LM(function(H){return H.immediateUrlPrefixes!==void 0&&H.payloadMapper!==void 0&&H.urlSerializer!==void 0&&H.inferredPingId!==void 0&&H.beaconFactory!==void 0}),LM(function(H){return sEZ(H)!==null}),CWV(function(H){return H.activeViewUnmeasurableEvent},function(H){return H.emit}),pM(function(H){if(H.isTurtlex){var C=H.reportFencedFrameEvent;
if(C){var S;C({eventType:"active-view-unmeasurable",eventData:(S=H.turtlexReportEventData)!=null?S:"",destination:["buyer"]})}}else{S=void 0;var w=sEZ(H);if(w==="x"){var A,J=(A=H.geometricMeasurementErrors)!=null?A:H.contextValidationErrors;J&&(C=J.stack,S=J.message)}H.urlSerializer(Object.assign({},H,{urlPrefixes:H.immediateUrlPrefixes,payloadMapper:H.payloadMapper,pingId:H.inferredPingId,viewState:2,reasonCode:w,errorMessage:S,errorStack:C}),Pj(H)).forEach(function(c){H.beaconFactory.makeBeacon(c).sendNow()})}}),
Hj(1),aT());var jEU=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var fYW=We(LM(function(H){return H.payloadMapper!==void 0&&H.immediateUrlPrefixes!==void 0&&H.urlSerializer!==void 0&&H.inferredPingId!==void 0&&H.beaconFactory!==void 0}),pM(function(H){return Object.assign({},H,{timestamps:Pj(H)})}),LM(function(H){var C=H.viewable;
var S=H.hasImpressionFired;H=H.timestamps;var w;return!!S&&((w=C==null?void 0:C.extrapolateUsingTimestampMap(H).value)!=null?w:!1)}),CWV(function(H){return H.activeViewViewableEvent},function(H){return H.emit}),pM(function(H){var C=H.beaconFactory,S=H.turtlexReportEventData;
if(H.isTurtlex){var w=H.reportFencedFrameEvent;if(!w)return!1;w({eventType:"active-view-viewable",eventData:S!=null?S:"",destination:["buyer"]});return!0}S=H.urlSerializer(Object.assign({},H,{urlPrefixes:H.immediateUrlPrefixes,payloadMapper:H.payloadMapper,pingId:H.inferredPingId,viewState:4,reasonCode:"v"}),H.timestamps);(w=H.cpmavUrls)&&w.length>0&&H.viewUrlSerializer&&H.viewUrlSerializer(w,H).forEach(function(A){C.makeBeacon(A).sendNow()});
(w=H.viewableRelayUrls)&&w.length>0&&H.viewUrlSerializer&&H.viewUrlSerializer(w,H).forEach(function(A){C.makeBeacon(A).sendNow()});
S.forEach(function(A){C.makeBeacon(A,{attributionEnabled:H.isViewableAttributionEnabled}).sendNow()});
return!0}),Z9(function(H){return!H}),aT());var RUV=pM(function(H){return[H.value.topWindowViewportExternalGeometry.width,H.value.topWindowViewportExternalGeometry.height]});var Ul=function(H,C){this.callback=H;this.options=C;this.intersectionObserverV2=this.intersectionObserverV1=null},OsV=function(H,C){C?H.intersectionObserverV2||(C=Object.assign({},H.options,{delay:100,
trackVisibility:!0}),H.intersectionObserverV2=new IntersectionObserver(H.callback,C)):H.intersectionObserverV1||(H.intersectionObserverV1=new IntersectionObserver(H.callback,H.options))},eBP=function(H,C){H=C?H.intersectionObserverV2:H.intersectionObserverV1;
if(!H)throw new oMd;return H};
Ul.prototype.observe=function(H,C){eBP(this,H).observe(C)};
Ul.prototype.unobserve=function(H,C){eBP(this,H).unobserve(C)};
Ul.prototype.disconnect=function(H){eBP(this,H).disconnect()};
Ul.prototype.takeRecords=function(H){return eBP(this,H).takeRecords()};var ya7={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:ap,topWindowViewportExternalGeometry:ap,measurementRequests:new Wj,elementGeometrySourceName:"ns",elementGeometry:ap,intersectionGeometry:ap,viewportLocalAppOffset:{x:0,y:0}};var kRE=xl(We(pM(function(H){var C;return(C=H.exposureOverride)!=null?C:QE$(H)}),pM(function(H){return isFinite(H)?H:0}))),tLi=xl(We(pM(function(H){var C;
return(C=H.exposureOverride)!=null?C:QE$(H)}),pM(function(H){return isFinite(H)?H:-1})));var sw=function(H,C){this.a=H;this.b=C;if(H.clock.timeline!==C.clock.timeline)throw Error();};
sw.prototype.equivalentTo=function(H){return H instanceof sw?this.a.equivalentTo(H.a)&&this.b.equivalentTo(H.b):!1};
sw.prototype.extrapolateToTime=function(H){var C=this.a.extrapolateToTime(H).value,S=this.b.extrapolateToTime(H).value;return{timestamp:H,value:[C,S]}};
_.JJ.Object.defineProperties(sw.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 H=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),C=this.a.lastMeasurement.timestamp.equals(H)?this.a.lastMeasurement.value:this.a.extrapolateToTime(H).value,S=this.b.lastMeasurement.timestamp.equals(H)?this.b.lastMeasurement.value:this.b.extrapolateToTime(H).value;return{timestamp:H,value:[C,S]}}}});var jQ=function(H,C){this.input=H;this.mapFunction=C;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
jQ.prototype.equivalentTo=function(H){return H instanceof jQ?this.input.equivalentTo(H.input)&&this.mapFunction===H.mapFunction:!1};
jQ.prototype.extrapolateToTime=function(H){H=this.input.extrapolateToTime(H);return{timestamp:H.timestamp,value:this.mapFunction(H.value)}};
_.JJ.Object.defineProperties(jQ.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var wL=function(){};
wL.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
wL.prototype.extrapolateUsingTimestampMap=function(H){var C=this.clock.timeline,S,w=(S=H.get(C))!=null?S:this.clock.now();H.set(C,w);return this.extrapolateToTime(w)};
wL.prototype.map=function(H){return new uT_(this,H)};
wL.prototype.joinWith=function(H){return new G77(this,H)};
var G77=function(){sw.apply(this,arguments);this.map=wL.prototype.map;this.joinWith=wL.prototype.joinWith;this.extrapolateToNow=wL.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=wL.prototype.extrapolateUsingTimestampMap};
_.G(G77,sw);var uT_=function(){jQ.apply(this,arguments);this.map=wL.prototype.map;this.joinWith=wL.prototype.joinWith;this.extrapolateToNow=wL.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=wL.prototype.extrapolateUsingTimestampMap};
_.G(uT_,jQ);var id=function(H,C){this.lastMeasurement=C;this.extrapolateToNow=wL.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=wL.prototype.extrapolateUsingTimestampMap;this.map=wL.prototype.map;this.joinWith=wL.prototype.joinWith;this.clock=H};
id.prototype.equivalentTo=function(H){return H.active};
id.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.JJ.Object.defineProperties(id.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var Uj$=pM(function(H){if(H.value.viewportGeometrySourceName==="omid"){if(H.value.elementGeometrySourceName==="nio")return"omio";if(H.value.elementGeometrySourceName==="geo")return"omgeo"}return H.value.elementGeometrySourceName==="geo"||H.value.elementGeometrySourceName==="nio"?H.value.viewportGeometrySourceName:H.value.elementGeometrySourceName});var PWw=We(LM(function(H){return!isNaN(H)}),Ab(function(H,C){return isNaN(H)?C:Math.min(H,C)},NaN),iR());var hUD=xl(We(pM(function(H){return H.intersectionGeometry.width*H.intersectionGeometry.height/(H.exposedViewportLocalGeometry.width*H.exposedViewportLocalGeometry.height)}),pM(function(H){return isFinite(H)?Math.min(1,H):0})));var g1w=We(xl(pM(function(H){H=H.exposureOverride?H.elementGeometry.width*H.elementGeometry.height*H.exposureOverride/(H.topWindowViewportExternalGeometry.width*H.topWindowViewportExternalGeometry.height):H.intersectionGeometry.width*H.intersectionGeometry.height/(H.topWindowViewportExternalGeometry.width*H.topWindowViewportExternalGeometry.height);return isFinite(H)?H:0})));var xj7=function(H,C){var S=this;this.timeProvider=H;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=C.pipe(iR()).subscribe(function(w){ipu(S);S.measurementRequestObserver=w})},CEp=function(H,C){ipu(H);
H.lastMeasurementRequest=H.timeProvider.setTimeout(function(){var S;return void((S=H.measurementRequestObserver)==null?void 0:S.next())},C)},ipu=function(H){H.lastMeasurementRequest!==null&&H.timeProvider.clearTimeout(H.lastMeasurementRequest);
H.lastMeasurementRequest=null};
xj7.prototype.dispose=function(){ipu(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var f4M=function(){};var etE=function(H,C){this.context=H;this.strategies=C};
_.G(etE,f4M);etE.prototype.buildGeometrySource=function(H,C){var S=this.strategies.map(function(J){return J.buildGeometrySource(H,C)}),w=AED(S.map(function(J){return J.geometrySource})),A=w.capturedErrors.pipe(vD1());
return{geometrySource:w.chain.pipe(e2(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:A,strategyErrors:w.capturedErrors}].concat(_.k$(S.map(function(J){return J.additionalOutputs}))))}};
var vD1=function(){return Ab(function(H,C){C instanceof pX?H.push(C.measurementStrategyFailureReason):H.push(-1);return H},[])};var GAE=function(H,C){this.context=H;this.poller=C};
_.G(GAE,f4M);GAE.prototype.buildGeometrySource=function(H,C){var S=JE6(ZpU(this.context,this.poller),N6$(this.context,C.requestSource));return{geometrySource:whZ(H.measurableCreative.pipe(S),C.inApp),additionalOutputs:{}}};var u9Z=function(H,C,S){S=S===void 0?fpV(H,C):S;this.context=H;this.intersectionObserverStrategy=S};
_.G(u9Z,f4M);u9Z.prototype.buildGeometrySource=function(H,C){var S=this.intersectionObserverStrategy(C.useV2);return{geometrySource:whZ(H.measurableCreative.pipe(S,v1E(this.context)),C.inApp),additionalOutputs:{}}};var l4b=function(H,C,S){var w=w===void 0?Symbol():w;this.element=H;this.immediateUrls=C;this.timeOnScreenUrls=S;this.symbol=w};var api=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),qg$=Object.freeze([1,.75,api.exposureThreshold,api.largeAdExposureThreshold,0]);var WHE=function(H,C){C=C===void 0?36E5:C;var S=S===void 0?!0:S;this.creatives=new Wj;this.elementsToUnregister=new Wj;this.elementMap=new Map;var w=new sp(window,null);w.beaconFactory=new fi(w,new HC(w));ET7(w,this.creatives,this.elementsToUnregister,H,C,S).subscribe()},bZ$=function(H,C,S,w){if(!H.elementMap.has(C)){var A=new LX(C);
H.elementMap.set(C,A);H.creatives.next(new l4b(A,S,w))}},Np7=function(H,C){H.elementsToUnregister.next(C);
var S=H.elementMap.get(C);S!==void 0&&(S.release(),H.elementMap.delete(C))};var XIZ=function(H){var C=H.url;H=H.uaDataValues;this.JSC$9489_url_=C;this.uaDataValues_=H;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var S=/[?&]([^&=]+)=([^&]*)/g;H=S.exec(C);)this.urlParamValues_[H[1]]=H[2]},Qmp=function(H){H=H.uaDataValues_;
if(!H)return"";var C=wS("uap",H.platform)+wS("uapv",H.platformVersion)+wS("uafv",H.uaFullVersion)+wS("uaa",H.architecture)+wS("uam",H.model)+wS("uab",H.bitness);H.fullVersionList&&(C+="&uafvl="+encodeURIComponent(H.fullVersionList.map(function(S){return encodeURIComponent(S.brand)+";"+encodeURIComponent(S.version)}).join("|")));
H.wow64!=null&&(C+="&uaw="+Number(H.wow64));return C.slice(1)};var Vh7=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(Vh7,_.Jc);Vh7.prototype.getId=function(){return _.$v(this,1)};var AS=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(AS,_.Jc);AS.prototype.getSeconds=function(){return dO(this,1)};
AS.prototype.setSeconds=function(H){return _.iB(this,1,c3(H),"0")};_.kQ=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(_.kQ,_.Jc);_.kQ.prototype.getSeconds=function(){return dO(this,1)};
_.kQ.prototype.setSeconds=function(H){return _.iB(this,1,c3(H),"0")};
_.oDd=function(H){var C=Number(kv(H,1));H=_.YJ(H,2);return new Date(C*1E3+H/1E6)};var JS=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(JS,_.Jc);JS.prototype.getUrl=function(){return _.$v(this,1)};
JS.prototype.setUrl=function(H){return _.RJ(this,1,H)};
JS.prototype.getHeight=function(){return _.YJ(this,2)};
JS.prototype.getWidth=function(){return _.YJ(this,3)};var Fc=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(Fc,_.Jc);Fc.prototype.getAspectRatio=function(){return Pu(this,1)};
Fc.prototype.getDuration=function(){return _.zf(this,AS,2)};var O9b=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(O9b,_.Jc);var XV1=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(XV1,_.Jc);var Q2_=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(Q2_,_.Jc);var drW=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(drW,_.Jc);var PB1=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(PB1,_.Jc);var $rW=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G($rW,_.Jc);var pVW=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(pVW,_.Jc);var k7U=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(k7U,_.Jc);var hB1=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(hB1,_.Jc);var ZN=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(ZN,_.Jc);var cC=[2,4,5,6,7];var nDb=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(nDb,_.Jc);var Ob=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(Ob,_.Jc);_.F=Ob.prototype;_.F.getId=function(){return _.zf(this,Vh7,1)};
_.F.getName=function(){return _.$v(this,2)};
_.F.setDescription=function(H){return _.RJ(this,3,H)};
_.F.getUrl=function(){return _.$v(this,8)};
_.F.setUrl=function(H){return _.RJ(this,8,H)};
var Yc=function(H){return _.Za(H,JS,10,_.cl())};
Ob.prototype.getOwner=function(H){var C=_.IO(this,40,_.E_,3,!0);HP6(C,H);return C[H]};
Ob.prototype.getVersion=function(){return dO(this,45)};
var z4=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(z4,_.Jc);_.MR=[0,xv,eVZ];_.qR=[0,xv,eVZ];var rcM=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(rcM,_.Jc);var T4=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(T4,_.Jc);T4.prototype.getStatus=function(){return _.p5(this,1)};
T4.prototype.removeItem=function(H){return dSU(this,2,H)};var BP1=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(BP1,_.Jc);BP1.prototype.getName=function(){return _.$v(this,8)};var ma=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(ma,_.Jc);ma.prototype.getCommand=function(){return _.p5(this,1)};
ma.prototype.getSource=function(){return _.zf(this,BP1,2)};
ma.prototype.setVisible=function(H){return _.hJ(this,5,H)};
ma.prototype.removeItem=function(H){return dSU(this,7,H)};var Dr7=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(Dr7,_.Jc);Dr7.prototype.getCommand=function(){return _.p5(this,1)};
Dr7.prototype.removeItem=function(H){return dSU(this,4,H)};
var KTi=_.Et(Dr7);var WC=function(H,C,S){S=S===void 0?Error():S;var w=Error.call(this);this.message=w.message;"stack"in w&&(this.stack=w.stack);this.code=H;C+=":";S instanceof Error?(this.message=C+S.message,this.stack=S.stack||""):(this.message=C+String(S),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.G(WC,Error);_.Op=function(){this.JSC$9547_disposed_=this.JSC$9547_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.Op.prototype.JSC$9547_disposed_=!1;_.Op.prototype.isDisposed=function(){return this.JSC$9547_disposed_};
_.Op.prototype.dispose=function(){this.JSC$9547_disposed_||(this.JSC$9547_disposed_=!0,this.disposeInternal())};
_.Op.prototype[Symbol.dispose]=function(){this.dispose()};
_.Nx=function(H,C){H.addOnDisposeCallback(_.l9(_.Ak,C))};
_.Op.prototype.addOnDisposeCallback=function(H,C){this.JSC$9547_disposed_?C!==void 0?H.call(C):H():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),C&&(H=H.bind(C)),this.onDisposeCallbacks_.push(H))};
_.Op.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var y0=function(H){_.Op.call(this);this.wpc=H};
_.G(y0,_.Op);y0.prototype.tXM=function(){return this.wpc.f()};
y0.prototype.vI9=function(H){return this.wpc.c(H)};
y0.prototype.za=function(H){return this.wpc.m(kAu(H))};
y0.prototype.n2R=function(H){return this.wpc.mws(kAu(H))};
var Fv=function(H){_.Op.call(this);var C=this;this.vm=H;this.f3w="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.oWi=void 0;this.zaT=this.vm.p;this.dV8=this.zpT.bind(this);this.addOnDisposeCallback(function(){return void thW(C)})};
_.G(Fv,_.Op);var LTd=function(H){var C;return _.z(function(S){if(S.nextAddress==1){if(!H.vm.wpc)throw new WC(30,"NWA");return H.lB8?S.return(H.lB8):S.yield(H.vm.wpc(),2)}C=S.yieldResult;H.lB8=new y0(C);return S.return(H.lB8)})};
Fv.prototype.snapshot=function(H){return this.vm.s(Object.assign({},H.v5&&{c:H.v5},H.lFK&&{s:H.lFK},H.bry!==void 0&&{p:H.bry}))};
Fv.prototype.zpT=function(H){this.vm.e(H)};
Fv.prototype.j6C=function(H,C){return this.vm.c(H,C,!1)};
var thW=function(H){H.oWi!==void 0&&(H.f3w.forEach(function(C){var S;(S=H.oWi)==null||S.removeEventListener(C,H.dV8)}),H.oWi=void 0)};
Fv.prototype.vFb=function(){return this.vm.l()};var NR=function(){_.Op.apply(this,arguments);this.pUk=1};
_.G(NR,_.Op);NR.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.pUk++;return this};
NR.prototype.dispose=function(){--this.pUk||_.Op.prototype.dispose.call(this)};var gDY=function(H){this.hvv=H;H.addNewEventMetric("/client_streamz/bg/frs",_.qx("mk"))};
gDY.prototype.record=function(H,C){this.hvv.record("/client_streamz/bg/frs",H,C)};
var Urn=function(H){this.nBU=H;H.addNewEventMetric("/client_streamz/bg/wrl",_.qx("mn"),Mx("ac"),Mx("sc"),_.qx("rk"),_.qx("mk"))};
Urn.prototype.record=function(H,C,S,w,A,J){this.nBU.record("/client_streamz/bg/wrl",H,C,S,w,A,J)};
var RBd=function(H){this.ev4=H;H.addNewCounter("/client_streamz/bg/ec",_.qx("en"),_.qx("mk"))};
RBd.prototype.increment=function(H,C){this.ev4.JSC$9800_incrementCounter("/client_streamz/bg/ec",H,C)};
var I41=function(H){this.vBf=H;H.addNewEventMetric("/client_streamz/bg/el",_.qx("en"),_.qx("mk"))};
I41.prototype.record=function(H,C,S){this.vBf.record("/client_streamz/bg/el",H,C,S)};
var a4b=function(H){this.fZe=H;H.addNewCounter("/client_streamz/bg/cec",Mx("ec"),_.qx("mk"))};
a4b.prototype.increment=function(H,C){this.fZe.JSC$9800_incrementCounter("/client_streamz/bg/cec",H,C)};
var xrP=function(H){this.u74=H;H.addNewCounter("/client_streamz/bg/po/csc",Mx("cs"),_.qx("mk"))};
xrP.prototype.increment=function(H,C){this.u74.JSC$9800_incrementCounter("/client_streamz/bg/po/csc",H,C)};
var HMP=function(H){this.jx8=H;H.addNewCounter("/client_streamz/bg/po/ctav",_.qx("av"),_.qx("mk"))};
HMP.prototype.increment=function(H,C){this.jx8.JSC$9800_incrementCounter("/client_streamz/bg/po/ctav",H,C)};
var iMY=function(H){this.qxn=H;H.addNewCounter("/client_streamz/bg/po/cwsc",_.qx("su"),_.qx("mk"))};
iMY.prototype.increment=function(H,C){this.qxn.JSC$9800_incrementCounter("/client_streamz/bg/po/cwsc",H,C)};var z3U=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(z3U,_.Jc);var YE7=function(H,C){return _.HV(H,3,C,bPE)};var Cf1=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(Cf1,_.Jc);var SM1=[1,2,3];var sTd=[0,SM1,_.w1,u5U,vOE];var jT1=[0,_.Al,[0,Is,_.as]];var we7=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(we7,_.Jc);var AYY=[1,2,3];var JYd=[0,AYY,EOW,WfE,_.Jl,jT1];var F27=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(F27,_.Jc);var ZMb=[0,_.Al,sTd,JYd];var cYi=[0,_.sv];var YMY=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(YMY,_.Jc);var z9d=[0,_.sv,-1,_.Ci];var Mnd=[0,_.sv,-1,_.i7,_.Ci];var qMW=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(qMW,_.Jc);var TsP=[1,2,3];var mOP=[0,TsP,_.Jl,z9d,_.Jl,Mnd,_.Jl,cYi];var W2n=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(W2n,_.Jc);W2n.prototype.JSC$9620_serializeBinary=KTD([0,_.sv,mOP,lG$,_.Al,ZMb,GB6,fGE]);var yY1=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(yY1,_.Jc);var E$W=function(H){var C=new W2n;C=_.XA(C,1,H.JSC$9736_metricName);var S=Nsd(H);C=_.HV(C,3,S,_.mj);S=[];for(var w=[],A=_.Z(H.cellMap.keys()),J=A.next();!J.done;J=A.next())w.push(J.value.split(","));for(A=0;A<w.length;A++){J=w[A];for(var c=H.cellType,Y=H.getCells(J)||[],M=[],m=0;m<Y.length;m++){var W=Y[m],y=W&&W.cellValue;W=new we7;switch(c){case 3:y=Number(y);Number.isFinite(y)&&er(W,1,AYY,c3(y));break;case 2:er(W,2,AYY,_.t_(Number(y)))}M.push(W)}c=M;for(Y=0;Y<c.length;Y++){M=c[Y];m=new F27;M=_.f9(m,
2,M);m=[];W=bMU(H);for(y=0;y<W.length;y++){var N=W[y],b=J[y],u=new Cf1;switch(N){case 3:er(u,1,SM1,bp(String(b)));break;case 2:N=Number(b);Number.isFinite(N)&&er(u,2,SM1,_.jo(N));break;case 1:er(u,3,SM1,W1V(b==="true"))}m.push(u)}VK(M,1,m);S.push(M)}}VK(C,4,S);return C};var e9P=function(H){if(!H)return"";if(/^about:(?:blank|srcdoc)$/.test(H))return window.origin||"";H.indexOf("blob:")===0&&(H=H.substring(5));H=H.split("#")[0].split("?")[0];H=H.toLowerCase();H.indexOf("//")==0&&(H=window.location.protocol+H);/^[\w\-]*:\/\//.test(H)||(H=window.location.href);var C=H.substring(H.indexOf("://")+3),S=C.indexOf("/");S!=-1&&(C=C.substring(0,S));S=H.substring(0,H.indexOf("://"));if(!S)throw Error("qa`"+H);if(S!=="http"&&S!=="https"&&S!=="chrome-extension"&&S!=="moz-extension"&&
S!=="file"&&S!=="android-app"&&S!=="chrome-search"&&S!=="chrome-untrusted"&&S!=="chrome"&&S!=="app"&&S!=="devtools")throw Error("ra`"+S);H="";var w=C.indexOf(":");if(w!=-1){var A=C.substring(w+1);C=C.substring(0,w);if(S==="http"&&A!=="80"||S==="https"&&A!=="443")H=":"+A}return S+"://"+C+H};var Gv7=function(H,C,S){var w=String(_.s$.location.href);return w&&H&&C?[C,uNd(e9P(w),H,S||null)].join(" "):null},uNd=function(H,C,S){var w=[],A=[];
if((Array.isArray(S)?2:1)==1)return A=[C,H],_.I6(w,function(Y){A.push(Y)}),fAP(A.join(" "));
var J=[],c=[];_.I6(S,function(Y){c.push(Y.key);J.push(Y.value)});
S=Math.floor((new Date).getTime()/1E3);A=J.length==0?[S,C,H]:[J.join(":"),S,C,H];_.I6(w,function(Y){A.push(Y)});
H=fAP(A.join(" "));H=[S,H];c.length==0||H.push(c.join(""));return H.join("_")},fAP=function(H){var C=LlE();
C.update(H);return C.digestString().toLowerCase()};var bw=function(H){this.JSC$9631_document_=H||{cookie:""}},v$d;
_.F=bw.prototype;_.F.isEnabled=function(){if(!_.s$.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};
_.F.set=function(H,C,S){var w=!1;if(typeof S==="object"){var A=S.sameSite;w=S.secure||!1;var J=S.domain||void 0;var c=S.path||void 0;var Y=S.maxAge}if(/[;=\s]/.test(H))throw Error("sa`"+H);if(/[;\r\n]/.test(C))throw Error("ta`"+C);Y===void 0&&(Y=-1);S=J?";domain="+J:"";c=c?";path="+c:"";w=w?";secure":"";Y=Y<0?"":Y==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+Y*1E3)).toUTCString();this.JSC$9631_document_.cookie=H+"="+C+S+c+Y+w+(A!=null?";samesite="+A:"")};
_.F.get=function(H,C){for(var S=H+"=",w=(this.JSC$9631_document_.cookie||"").split(";"),A=0,J;A<w.length;A++){J=qD(w[A]);if(J.lastIndexOf(S,0)==0)return J.slice(S.length);if(J==H)return""}return C};
_.F.remove=function(H,C,S){var w=this.containsKey(H);this.set(H,"",{maxAge:0,path:C,domain:S});return w};
_.F.getKeys=function(){return v$d(this).keys};
_.F.getValues=function(){return v$d(this).values};
_.F.isEmpty=function(){return!this.JSC$9631_document_.cookie};
_.F.getCount=function(){return this.JSC$9631_document_.cookie?(this.JSC$9631_document_.cookie||"").split(";").length:0};
_.F.containsKey=function(H){return this.get(H)!==void 0};
_.F.containsValue=function(H){for(var C=v$d(this).values,S=0;S<C.length;S++)if(C[S]==H)return!0;return!1};
_.F.clear=function(){for(var H=v$d(this).keys,C=H.length-1;C>=0;C--)this.remove(H[C])};
v$d=function(H){H=(H.JSC$9631_document_.cookie||"").split(";");for(var C=[],S=[],w,A,J=0;J<H.length;J++)A=qD(H[J]),w=A.indexOf("="),w==-1?(C.push(""),S.push(A)):(C.push(A.substring(0,w)),S.push(A.substring(w+1)));return{keys:C,values:S}};
_.vA=new bw(typeof document=="undefined"?null:document);var VvU,lAP;VvU=function(){var H=_.s$.__SAPISID||_.s$.__APISID||_.s$.__3PSAPISID||_.s$.__1PSAPISID||_.s$.__OVERRIDE_SID;if(H)return!0;typeof document!=="undefined"&&(H=new bw(document),H=H.get("SAPISID")||H.get("APISID")||H.get("__Secure-3PAPISID")||H.get("__Secure-1PAPISID"));return!!H};
lAP=function(H,C,S,w){(H=_.s$[H])||typeof document==="undefined"||(H=(new bw(document)).get(C));return H?Gv7(H,S,w):null};
_.Jx6=function(H){var C=e9P(_.s$==null?void 0:_.s$.location.href),S=[];if(VvU()){C=C.indexOf("https:")==0||C.indexOf("chrome-extension:")==0||C.indexOf("chrome-untrusted://new-tab-page")==0||C.indexOf("moz-extension:")==0;var w=C?_.s$.__SAPISID:_.s$.__APISID;w||typeof document==="undefined"||(w=new bw(document),w=w.get(C?"SAPISID":"APISID")||w.get("__Secure-3PAPISID"));(w=w?Gv7(w,C?"SAPISIDHASH":"APISIDHASH",H):null)&&S.push(w);C&&((C=lAP("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",H))&&S.push(C),
(H=lAP("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",H))&&S.push(H))}return S.length==0?null:S.join(" ")};var Vni=function(){this.minSize=1024};
Vni.prototype.compress=function(H){var C,S,w,A;return _.z(function(J){switch(J.nextAddress){case 1:return C=new CompressionStream("gzip"),S=(new Response(C.readable)).arrayBuffer(),w=C.writable.getWriter(),J.yield(w.write((new TextEncoder).encode(H)),2);case 2:return J.yield(w.close(),3);case 3:return A=Uint8Array,J.yield(S,4);case 4:return J.return(new A(J.yieldResult))}})};
Vni.prototype.isSupported=function(H){return H<this.minSize?!1:typeof CompressionStream!=="undefined"};var o$7=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(o$7,_.Jc);var Ew=function(H,C){this.intervalMs=H;this.callback=C;this.enabled=!1;this.nowFn=function(){return _.FF()};
this.lastTimeMs=this.nowFn()};
Ew.prototype.setInterval=function(H){this.intervalMs=H;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
Ew.prototype.start=function(){var H=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){H.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
Ew.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
Ew.prototype.tick=function(){var H=this;if(this.enabled){var C=Math.max(this.nowFn()-this.lastTimeMs,0);C<this.intervalMs*.8?this.timer=setTimeout(function(){H.tick()},this.intervalMs-C):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var OMb=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(OMb,_.Jc);var Xeb=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(Xeb,_.Jc);var QTd=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(QTd,_.Jc);QTd.prototype.getTransmissionType=function(){return _.p5(this,1)};var IYV=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(IYV,_.Jc);IYV.prototype.getVersion=function(){return _.$v(this,2)};var eQ=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(eQ,_.Jc);var RtW=function(H){VK(aYi,1,H)};
eQ.prototype.getModel=function(){return _.$v(this,6)};
var dOb=_.Et(eQ);var PfM=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(PfM,_.Jc);var gT0=["platform","platformVersion","architecture","model","uaFullVersion"],aYi=new eQ,UnW=null;var uw=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(uw,_.Jc);var $O7=function(H){return _.qz(H,1,1)};var pe7=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H,4)};
_.G(pe7,_.Jc);_.G4=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H,36)};
_.G(_.G4,_.Jc);_.G4.prototype.getExperimentIds=function(){return _.zf(this,o$7,16)};var kvW=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H,19)};
_.G(kvW,_.Jc);kvW.prototype.setLogSource=function(H){return _.qz(this,2,H)};
kvW.prototype.setScheduler=function(H){return _.qz(this,10,H)};var n$W=function(H,C){this.isServiceWorkerScope=C=C===void 0?!1:C;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new kvW;Number.isInteger(H)&&this.logRequest.setLogSource(H);C||(this.locale=document.documentElement.getAttribute("lang"));h9M(this,new uw)};
n$W.prototype.setLogSource=function(H){this.logRequest.setLogSource(H);return this};
var h9M=function(H,C){_.f9(H.logRequest,1,C);_.p5(C,1)||$O7(C);H.isServiceWorkerScope||(C=fh(H),_.$v(C,5)||_.XA(C,5,H.locale));H.uach&&(C=fh(H),_.zf(C,eQ,9)||_.f9(C,9,H.uach))},rYU=function(H,C){H.transmissionType=C},BsP=function(H){var C=C===void 0?gT0:C;
var S=H.isServiceWorkerScope?void 0:Bj();S?xn7(S,C).then(function(w){H.uach=dOb(w!=null?w:"[]");w=fh(H);_.f9(w,9,H.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},fh=function(H){var C=_.zf(H.logRequest,uw,1);
C||(C=new uw,h9M(H,C));H=C;C=_.zf(H,PfM,11);C||(C=new PfM,_.f9(H,11,C));return C};
n$W.prototype.build=function(H,C,S,w,A,J){C=C===void 0?0:C;S=S===void 0?0:S;w=w===void 0?null:w;A=A===void 0?0:A;J=J===void 0?0:J;if(!this.isServiceWorkerScope){var c=fh(this);var Y=new QTd;Y=_.qz(Y,1,this.transmissionType);Y=_.TZ(Y,2,this.isFinal);S=_.rO(Y,3,S>0?S:void 0);S=_.rO(S,4,A>0?A:void 0);S=_.rO(S,5,J>0?J:void 0);A=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;J=A[_.A_]|0;S=bY(S,J)?S:lqU(S,A,J)?vt0(S,A):new S.constructor(h9(A,J,!0));_.f9(c,10,S)}c=this.logRequest.clone();S=Date.now().toString();
c=_.Tf(c,4,c3(S));H=H.slice();H=VK(c,3,H);w&&(c=new OMb,w=_.rO(c,13,w),c=new Xeb,w=_.f9(c,2,w),c=new pe7,w=_.f9(c,1,w),w=_.qz(w,2,9),_.f9(H,18,w));C&&_.o8(H,14,C);return H};mm.prototype.currBackoffCount_=0;mm.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
mm.prototype.getValue=function(){return this.currValue_};
var DOi=function(H){H.currBaseValue_=Math.min(H.maxValue_,H.currBaseValue_*H.backoffFactor_);H.currValue_=Math.min(H.maxValue_,H.currBaseValue_+(H.randomFactor_?Math.round(H.randomFactor_*(Math.random()-.5)*2*H.currBaseValue_):0));H.currBackoffCount_++};var Pnw=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H,8)};
_.G(Pnw,_.Jc);var K27=_.Et(Pnw);var $Xw=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G($Xw,_.Jc);var vC;vC=new ppE;var lw=function(H){_.Op.call(this);var C=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9709_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$9709_sendBeaconApiEnabled=!1;this.logSource=H.logSource;this.getAuthHeaderValue=
H.getAuthHeaderValue||function(){};
this.logRequestBuilder=new n$W(H.logSource,H.isServiceWorkerScope);this.network=H.network||null;this.productID=H.productID||null;this.bufferSize=1E3;this.clearcutUrl=H.urlOverride||null;this.sessionIndex=H.sessionIndex||null;this.disableAutomaticFlush=H.disableAutomaticFlush||!1;this.withCredentials=!H.disableWithCredentials;this.isServiceWorkerScope=H.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!Bj()&&!!Bj().navigator&&Bj().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(tnU())).searchParams&&!!(new URL(tnU())).searchParams.set;var S=$O7(new uw);h9M(this.logRequestBuilder,S);this.flushBackoff=new mm(1E4,3E5,.1);H=L2W(this,H.backgroundJobDeferrer);this.JSC$9709_flushTimer=new Ew(this.flushBackoff.getValue(),H);this.backupTimer=new Ew(6E5,H);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){g$1(C);
var w;(w=C.metalogService)==null||w.flush()}}),document.addEventListener("pagehide",function(){g$1(C);
var w;(w=C.metalogService)==null||w.flush()}))};
_.G(lw,_.Op);var L2W=function(H,C){return H.isBrowserSupported?C?function(){C().then(function(){H.flush()})}:function(){H.flush()}:function(){}};
lw.prototype.disposeInternal=function(){g$1(this);this.JSC$9709_flushTimer.stop();this.backupTimer.stop();_.Op.prototype.disposeInternal.call(this)};
var UO_=function(H){H.clearcutUrl||(H.clearcutUrl=tnU());try{return(new URL(H.clearcutUrl)).toString()}catch(C){return(new URL(H.clearcutUrl,Bj().location.origin)).toString()}};
lw.prototype.dispatch=function(H){if(H instanceof _.G4)this.log(H);else try{var C=new _.G4,S=H.serialize();var w=_.XA(C,8,S);this.log(w)}catch(A){V0(this,4,1)}};
var V0=function(H,C,S){H.metalogService&&H.metalogService.increment(C,S)};
lw.prototype.log=function(H){V0(this,2,1);if(this.isBrowserSupported){H=H.clone();var C=this.sequencePosition++;H=_.o8(H,21,C);this.componentId&&_.XA(H,26,this.componentId);C=H;if($ii(_.eC(C,1))==null){var S=Date.now();S=Number.isFinite(S)?S.toString():"0";_.Tf(C,1,c3(S))}_.PYZ(_.eC(C,15))!=null||_.o8(C,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(S=this.experimentIds.clone(),_.f9(C,16,S));V0(this,1,1);C=this.pendingEvents.length-this.bufferSize+1;C>0&&(this.pendingEvents.splice(0,C),
this.numLogsDroppedSinceLastFlush+=C,V0(this,3,C));this.pendingEvents.push(H);this.disableAutomaticFlush||this.JSC$9709_flushTimer.enabled||this.JSC$9709_flushTimer.start()}};
lw.prototype.flush=function(H,C){var S=this;if(this.pendingEvents.length===0)H&&H();else if(this.JSC$9709_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,R9P(this);else{var w=Date.now();if(this.noFlushUntilMs>w&&this.startWaitingMs<w)C&&C("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?rYU(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var A=this.pendingEvents.length,
J=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),c=this.getAuthHeaderValue();if(c&&this.lastFailedAuth===c)C&&C("stale-auth-token");else{this.pendingEvents=[];this.JSC$9709_flushTimer.enabled&&this.JSC$9709_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;w=J.serialize();var Y;this.JSC$9709_compressor&&this.JSC$9709_compressor.isSupported(w.length)&&
(Y=this.JSC$9709_compressor.compress(w));var M=IAd(this,w,c),m=function(N){S.flushBackoff.reset();S.JSC$9709_flushTimer.setInterval(S.flushBackoff.getValue());if(N){var b=null;try{var u=JSON.stringify(JSON.parse(N.replace(")]}'\n","")));b=K27(u)}catch(O){}b&&(N=Number(dO(b,1,_.P7("-1"))),N>0&&(S.startWaitingMs=Date.now(),S.noFlushUntilMs=S.startWaitingMs+N),sOp(b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,vC.fieldIndex),Cpp(b,vC.fieldIndex),b=vC.ctor?vC.getExtensionFn(b,vC.ctor,vC.fieldIndex,
vC.JSC$8890_hasMessageId):vC.getExtensionFn(b,vC.fieldIndex,null,vC.JSC$8890_hasMessageId),b=b===null?void 0:b)&&(b=_.YJ(b,1,-1),b!==-1&&(S.flushBackoff=new mm(b<1?1:b,3E5,.1),S.JSC$9709_flushTimer.setInterval(S.flushBackoff.getValue())))}H&&H();S.numRetriesSinceLastSuccessfulFlush=0},W=function(N,b){var u=_.Za(J,_.G4,3,_.cl());
var O=Number(dO(J,14));DOi(S.flushBackoff);S.JSC$9709_flushTimer.setInterval(S.flushBackoff.getValue());N===401&&c&&(S.lastFailedAuth=c);O&&(S.numLogsDroppedSinceLastFlush+=O);b===void 0&&(b=S.isRetryable(N));b&&(S.pendingEvents=u.concat(S.pendingEvents),S.disableAutomaticFlush||S.JSC$9709_flushTimer.enabled||S.JSC$9709_flushTimer.start());V0(S,7,1);C&&C("net-send-failed",N);++S.numRetriesSinceLastSuccessfulFlush},y=function(){S.network&&S.network.send(M,m,W)};
Y?Y.then(function(N){V0(S,5,A);M.requestHeaders["Content-Encoding"]="gzip";M.requestHeaders["Content-Type"]="application/binary";M.body=N;M.bodyType=2;y()},function(){V0(S,6,A);
y()}):y()}}}};
var IAd=function(H,C,S){S=S===void 0?null:S;var w=w===void 0?H.withCredentials:w;var A={},J=new URL(UO_(H));S&&(A.Authorization=S);H.sessionIndex&&(A["X-Goog-AuthUser"]=H.sessionIndex,J.searchParams.set("authuser",H.sessionIndex));H.pageId&&(Object.defineProperty(A,"X-Goog-PageId",{value:H.pageId}),J.searchParams.set("pageId",H.pageId));return{url:J.toString(),body:C,bodyType:1,requestHeaders:A,requestType:"POST",withCredentials:w,timeoutMillis:H.timeoutMillis}},g$1=function(H){H.logRequestBuilder.isFinal=
!0;
H.flush();H.logRequestBuilder.isFinal=!1},R9P=function(H){aAn(H,function(C,S){C=new URL(C);
C.searchParams.set("format","json");var w=!1;try{w=Bj().navigator.sendBeacon(C.toString(),S.serialize())}catch(A){}w||(H.isSendBeaconSupported=!1);return w})},aAn=function(H,C){if(H.pendingEvents.length!==0){var S=new URL(UO_(H));
S.searchParams.delete("format");var w=H.getAuthHeaderValue();w&&S.searchParams.set("auth",w);S.searchParams.set("authuser",H.sessionIndex||"0");for(w=0;w<10&&H.pendingEvents.length;++w){var A=H.pendingEvents.slice(0,32),J=H.logRequestBuilder.build(A,H.numLogsDroppedSinceLastFlush,H.numRetriesSinceLastSuccessfulFlush,H.productID,H.persistedLogRecoveredCount,H.persistedLogExpiredCount);if(!C(S.toString(),J)){++H.numRetriesSinceLastSuccessfulFlush;break}H.numLogsDroppedSinceLastFlush=0;H.numRetriesSinceLastSuccessfulFlush=
0;H.persistedLogRecoveredCount=0;H.persistedLogExpiredCount=0;H.pendingEvents=H.pendingEvents.slice(A.length)}H.JSC$9709_flushTimer.enabled&&H.JSC$9709_flushTimer.stop()}};
lw.prototype.isRetryable=function(H){return 500<=H&&H<600||H===401||H===0};
var tnU=function(){return"https://play.google.com/log?format=json&hasfast=true"};var xO_=function(){this.abortSupported=typeof AbortController!=="undefined"};
xO_.prototype.send=function(H,C,S){var w=this,A,J,c,Y,M,m,W,y,N,b;return _.z(function(u){switch(u.nextAddress){case 1:return J=(A=w.abortSupported?new AbortController:void 0)?setTimeout(function(){A.abort()},H.timeoutMillis):void 0,_.en(u,2,3),c=Object.assign({},{method:H.requestType,
headers:Object.assign({},H.requestHeaders)},H.body&&{body:H.body},H.withCredentials&&{credentials:"include"},{signal:H.timeoutMillis&&A?A.signal:null}),u.yield(fetch(H.url,c),5);case 5:Y=u.yieldResult;if(Y.status!==200){(M=S)==null||M(Y.status);u.jumpTo(3);break}if((m=C)==null){u.jumpTo(7);break}return u.yield(Y.text(),8);case 8:m(u.yieldResult);case 7:case 3:_.Gv(u);clearTimeout(J);_.lf(u,0);break;case 2:W=_.Vx(u);switch((y=W)==null?void 0:y.name){case "AbortError":(N=S)==null||N(408);break;default:(b=
S)==null||b(400)}u.jumpTo(3)}})};
xO_.prototype.getTransmissionType=function(){return 4};_.yy=function(H,C){C=C===void 0?"0":C;_.Op.call(this);this.logSource=H;this.sessionIndex=C;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9727_clearExperimentIds=this.productID=null;this.JSC$9727_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.G(_.yy,_.Op);var FCD=function(H,C){H.buildLabel=C;return H},JA$=function(H,C){H.network=C;
return H},cAZ=function(H,C){H.JSC$9727_clearExperimentIds=C},AAE=function(H){H.JSC$9727_sendBeaconApiEnabled=!0;
return H};
_.yy.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.yy.prototype.build=function(){this.network||(this.network=new xO_);var H=new lw({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.Jx6,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.Nx(this,H);if(this.buildLabel){var C=this.buildLabel,S=
fh(H.logRequestBuilder);_.XA(S,7,C)}H.JSC$9709_compressor=new Vni;this.componentId&&(H.componentId=this.componentId);this.productID&&(H.productID=this.productID);this.pageId&&(H.pageId=this.pageId);this.JSC$9727_clearExperimentIds&&((S=this.JSC$9727_clearExperimentIds)?(H.experimentIds||(H.experimentIds=new o$7),C=H.experimentIds,S=S.serialize(),_.XA(C,4,S)):H.experimentIds&&_.Tf(H.experimentIds,4));this.JSC$9727_sendBeaconApiEnabled&&(H.JSC$9709_sendBeaconApiEnabled=H.isSendBeaconSupported);BsP(H.logRequestBuilder);
this.bufferSize&&(H.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(H);return H};var M$Z=function(H,C,S,w,A,J,c){H=H===void 0?-1:H;C=C===void 0?"":C;S=S===void 0?"":S;w=w===void 0?!1:w;A=A===void 0?"":A;_.Op.call(this);this.logSource=H;this.componentId=C;J?C=J:(H=new _.yy(H,"0"),H.componentId=C,_.Nx(this,H),S!==""&&(H.destinationUrl=S),w&&(H.serviceWorkerScopeEnabled=!0),A&&FCD(H,A),c&&JA$(H,c),C=H.build());this.JSC$9731_transport=C};
_.G(M$Z,_.Op);M$Z.prototype.flush=function(H){H=H||[];if(H.length){for(var C=new yY1,S=[],w=0;w<H.length;w++){var A=H[w],J=E$W(A);S.push(J);A.clear()}VK(C,1,S);this.JSC$9731_transport.dispatch(C);this.JSC$9731_transport.flush()}};var HXM=function(H){this.cellValue=H};var oY=function(H,C,S){this.JSC$9736_metricName=H;this.cellType=C;this.fields=S||[];this.cellMap=new Map},bMU=function(H){return H.fields.map(function(C){return C.fieldType})},Nsd=function(H){return H.fields.map(function(C){return C.fieldName})};
_.F=oY.prototype;_.F.addCell=function(H){var C=_.tc.apply(1,arguments),S=this.getCells(C);S?S.push(new HXM(H)):this.JSC$9736_setCell(H,C)};
_.F.JSC$9736_setCell=function(H){var C=this.JSC$9736_getKey(_.tc.apply(1,arguments));this.cellMap.set(C,[new HXM(H)])};
_.F.getCells=function(){var H=this.JSC$9736_getKey(_.tc.apply(0,arguments));return this.cellMap.has(H)?this.cellMap.get(H):void 0};
_.F.getCell=function(){var H=this.getCells(_.tc.apply(0,arguments));return H&&H.length?H[0]:void 0};
_.F.clear=function(){this.cellMap.clear()};
_.F.JSC$9736_getKey=function(){var H=_.tc.apply(0,arguments);return H?H.join(","):"key"};var iX1=function(H,C){oY.call(this,H,3,C)};
_.G(iX1,oY);iX1.prototype.JSC$9739_incrementCounterBy=function(H){var C=_.tc.apply(1,arguments),S=0,w=this.getCell(C);w&&(S=w.cellValue);this.JSC$9736_setCell(S+H,C)};var CR_=function(H,C){oY.call(this,H,2,C)};
_.G(CR_,oY);CR_.prototype.record=function(H){this.addCell(H,_.tc.apply(1,arguments))};_.Ow=function(H){this.id=H};
_.Ow.prototype.toString=function(){return this.id};_.Xc=function(H,C){this.type=H instanceof _.Ow?String(H):H;this.currentTarget=this.target=C;this.defaultPrevented=this.propagationStopped_=!1};
_.Xc.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.Xc.prototype.preventDefault=function(){this.defaultPrevented=!0};_.Q0=function(H,C){_.Xc.call(this,H?H.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;H&&this.init(H,C)};
_.Zh(_.Q0,_.Xc);
_.Q0.prototype.init=function(H,C){var S=this.type=H.type,w=H.changedTouches&&H.changedTouches.length?H.changedTouches[0]:null;this.target=H.target||H.srcElement;this.currentTarget=C;C=H.relatedTarget;C||(S=="mouseover"?C=H.fromElement:S=="mouseout"&&(C=H.toElement));this.relatedTarget=C;w?(this.clientX=w.clientX!==void 0?w.clientX:w.pageX,this.clientY=w.clientY!==void 0?w.clientY:w.pageY,this.screenX=w.screenX||0,this.screenY=w.screenY||0):(this.offsetX=_.Tt||H.offsetX!==void 0?H.offsetX:H.layerX,
this.offsetY=_.Tt||H.offsetY!==void 0?H.offsetY:H.layerY,this.clientX=H.clientX!==void 0?H.clientX:H.pageX,this.clientY=H.clientY!==void 0?H.clientY:H.pageY,this.screenX=H.screenX||0,this.screenY=H.screenY||0);this.button=H.button;this.keyCode=H.keyCode||0;this.key=H.key||"";this.charCode=H.charCode||(S=="keypress"?H.keyCode:0);this.ctrlKey=H.ctrlKey;this.altKey=H.altKey;this.shiftKey=H.shiftKey;this.metaKey=H.metaKey;this.pointerId=H.pointerId||0;this.pointerType=H.pointerType;this.state=H.state;
this.timeStamp=H.timeStamp;this.event_=H;H.defaultPrevented&&_.Q0.superClass_.preventDefault.call(this)};
_.Q0.prototype.isButton=function(H){return this.event_.button==H};
_.Q0.prototype.stopPropagation=function(){_.Q0.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.Q0.prototype.preventDefault=function(){_.Q0.superClass_.preventDefault.call(this);var H=this.event_;H.preventDefault?H.preventDefault():H.returnValue=!1};var SlW="closure_listenable_"+(Math.random()*1E6|0),dL=function(H){return!(!H||!H[SlW])};var sp7=0;var jp_=function(H,C,S,w,A){this.listener=H;this.proxy=null;this.src=C;this.type=S;this.capture=!!w;this.handler=A;this.key=++sp7;this.removed=this.callOnce=!1},wjW=function(H){H.removed=!0;
H.listener=null;H.proxy=null;H.src=null;H.handler=null};Wl.prototype.add=function(H,C,S,w,A){var J=H.toString();H=this.listeners[J];H||(H=this.listeners[J]=[],this.typeCount_++);var c=Ab1(H,C,w,A);c>-1?(C=H[c],S||(C.callOnce=!1)):(C=new jp_(C,this.src,J,!!w,A),C.callOnce=S,H.push(C));return C};
Wl.prototype.remove=function(H,C,S,w){H=H.toString();if(!(H in this.listeners))return!1;var A=this.listeners[H];C=Ab1(A,C,S,w);return C>-1?(wjW(A[C]),_.OUW(A,C),A.length==0&&(delete this.listeners[H],this.typeCount_--),!0):!1};
var JbY=function(H,C){var S=C.type;if(!(S in H.listeners))return!1;var w=_.ru(H.listeners[S],C);w&&(wjW(C),H.listeners[S].length==0&&(delete H.listeners[S],H.typeCount_--));return w};
Wl.prototype.removeAll=function(H){H=H&&H.toString();var C=0,S;for(S in this.listeners)if(!H||S==H){for(var w=this.listeners[S],A=0;A<w.length;A++)++C,wjW(w[A]);delete this.listeners[S];this.typeCount_--}return C};
Wl.prototype.getListener=function(H,C,S,w){H=this.listeners[H.toString()];var A=-1;H&&(A=Ab1(H,C,S,w));return A>-1?H[A]:null};
Wl.prototype.hasListener=function(H,C){var S=H!==void 0,w=S?H.toString():"",A=C!==void 0;return _.hb.some(this.listeners,function(J){for(var c=0;c<J.length;++c)if(!(S&&J[c].type!=w||A&&J[c].capture!=C))return!0;return!1})};
var Ab1=function(H,C,S,w){for(var A=0;A<H.length;++A){var J=H[A];if(!J.removed&&J.listener==C&&J.capture==!!S&&J.handler==w)return A}return-1};var FDd,ZXd,cb7,z_P,M21,O4,XH,mH1,qld,TxP,PC,WDV,Yln;FDd="closure_lm_"+(Math.random()*1E6|0);ZXd={};cb7=0;_.PI=function(H,C,S,w,A){if(w&&w.once)return O4(H,C,S,w,A);if(Array.isArray(C)){for(var J=0;J<C.length;J++)_.PI(H,C[J],S,w,A);return null}S=Yln(S);return dL(H)?H.listen(C,S,_.U$(w)?!!w.capture:!!w,A):z_P(H,C,S,!1,w,A)};
z_P=function(H,C,S,w,A,J){if(!C)throw Error("va");var c=_.U$(A)?!!A.capture:!!A,Y=PC(H);Y||(H[FDd]=Y=new Wl(H));S=Y.add(C,S,w,c,J);if(S.proxy)return S;w=M21();S.proxy=w;w.src=H;w.listener=S;if(H.addEventListener)_.Y$V||(A=c),A===void 0&&(A=!1),H.addEventListener(C.toString(),w,A);else if(H.attachEvent)H.attachEvent(qld(C.toString()),w);else if(H.addListener&&H.removeListener)H.addListener(w);else throw Error("wa");cb7++;return S};
M21=function(){var H=TxP,C=function(S){return H.call(C.src,C.listener,S)};
return C};
O4=function(H,C,S,w,A){if(Array.isArray(C)){for(var J=0;J<C.length;J++)O4(H,C[J],S,w,A);return null}S=Yln(S);return dL(H)?H.listenOnce(C,S,_.U$(w)?!!w.capture:!!w,A):z_P(H,C,S,!0,w,A)};
_.$c=function(H,C,S,w,A){if(Array.isArray(C))for(var J=0;J<C.length;J++)_.$c(H,C[J],S,w,A);else w=_.U$(w)?!!w.capture:!!w,S=Yln(S),dL(H)?H.unlisten(C,S,w,A):H&&(H=PC(H))&&(C=H.getListener(C,S,w,A))&&XH(C)};
XH=function(H){if(typeof H==="number"||!H||H.removed)return!1;var C=H.src;if(dL(C))return JbY(C.eventTargetListeners_,H);var S=H.type,w=H.proxy;C.removeEventListener?C.removeEventListener(S,w,H.capture):C.detachEvent?C.detachEvent(qld(S),w):C.addListener&&C.removeListener&&C.removeListener(w);cb7--;(S=PC(C))?(JbY(S,H),S.typeCount_==0&&(S.src=null,C[FDd]=null)):wjW(H);return!0};
mH1=function(H,C,S,w,A){S=Yln(S);w=!!w;return dL(H)?H.getListener(C,S,w,A):H?(H=PC(H))?H.getListener(C,S,w,A):null:null};
qld=function(H){return H in ZXd?ZXd[H]:ZXd[H]="on"+H};
TxP=function(H,C){if(H.removed)H=!0;else{C=new _.Q0(C,this);var S=H.listener,w=H.handler||H.src;H.callOnce&&XH(H);H=S.call(w,C)}return H};
PC=function(H){H=H[FDd];return H instanceof Wl?H:null};
WDV="__closure_events_fn_"+(Math.random()*1E9>>>0);Yln=function(H){if(typeof H==="function")return H;H[WDV]||(H[WDV]=function(C){return H.handleEvent(C)});
return H[WDV]};_.ph=function(){_.Op.call(this);this.eventTargetListeners_=new Wl(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.Zh(_.ph,_.Op);_.ph.prototype[SlW]=!0;_.F=_.ph.prototype;_.F.setParentEventTarget=function(H){this.parentEventTarget_=H};
_.F.addEventListener=function(H,C,S,w){_.PI(this,H,C,S,w)};
_.F.removeEventListener=function(H,C,S,w){_.$c(this,H,C,S,w)};
_.F.dispatchEvent=function(H){var C,S=this.parentEventTarget_;if(S)for(C=[];S;S=S.parentEventTarget_)C.push(S);S=this.actualEventTarget_;var w=H.type||H;if(typeof H==="string")H=new _.Xc(H,S);else if(H instanceof _.Xc)H.target=H.target||S;else{var A=H;H=new _.Xc(w,S);_.hb.extend(H,A)}A=!0;var J;if(C)for(J=C.length-1;!H.propagationStopped_&&J>=0;J--){var c=H.currentTarget=C[J];A=ybn(c,w,!0,H)&&A}H.propagationStopped_||(c=H.currentTarget=S,A=ybn(c,w,!0,H)&&A,H.propagationStopped_||(A=ybn(c,w,!1,H)&&
A));if(C)for(J=0;!H.propagationStopped_&&J<C.length;J++)c=H.currentTarget=C[J],A=ybn(c,w,!1,H)&&A;return A};
_.F.disposeInternal=function(){_.ph.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.F.listen=function(H,C,S,w){return this.eventTargetListeners_.add(String(H),C,!1,S,w)};
_.F.listenOnce=function(H,C,S,w){return this.eventTargetListeners_.add(String(H),C,!0,S,w)};
_.F.unlisten=function(H,C,S,w){return this.eventTargetListeners_.remove(String(H),C,S,w)};
_.F.removeAllListeners=function(H){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(H):0};
var ybn=function(H,C,S,w){C=H.eventTargetListeners_.listeners[String(C)];if(!C)return!0;C=C.concat();for(var A=!0,J=0;J<C.length;++J){var c=C[J];if(c&&!c.removed&&c.capture==S){var Y=c.listener,M=c.handler||c.src;c.callOnce&&JbY(H.eventTargetListeners_,c);A=Y.call(M,w)!==!1&&A}}return A&&!w.defaultPrevented};
_.ph.prototype.getListener=function(H,C,S,w){return this.eventTargetListeners_.getListener(String(H),C,S,w)};
_.ph.prototype.hasListener=function(H,C){return this.eventTargetListeners_.hasListener(H!==void 0?String(H):void 0,C)};var kc=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(H){return H&&AsyncContext.Snapshot.wrap(H)}:function(H){return H};var NxY=function(H,C){this.create_=H;this.reset_=C;this.occupants_=0;this.JSC$9771_head_=null};
NxY.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var H=this.JSC$9771_head_;this.JSC$9771_head_=H.next;H.next=null}else H=this.create_();return H};
NxY.prototype.put=function(H){this.reset_(H);this.occupants_<100&&(this.occupants_++,H.next=this.JSC$9771_head_,this.JSC$9771_head_=H)};var bXP=function(){this.workTail_=this.workHead_=null};
bXP.prototype.add=function(H,C){var S=ivw.get();S.set(H,C);this.workTail_?this.workTail_.next=S:this.workHead_=S;this.workTail_=S};
bXP.prototype.remove=function(){var H=null;this.workHead_&&(H=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),H.next=null);return H};
var ivw=new NxY(function(){return new El_},function(H){return H.reset()}),El_=function(){this.next=this.scope=this.fn=null};
El_.prototype.set=function(H,C){this.fn=H;this.scope=C;this.next=null};
El_.prototype.reset=function(){this.next=this.scope=this.fn=null};var e_n,C5u,Hvw,uAP;C5u=!1;Hvw=new bXP;_.hS=function(H,C){e_n||uAP();C5u||(e_n(),C5u=!0);Hvw.add(H,C)};
uAP=function(){var H=Promise.resolve(void 0);e_n=function(){H.then(SE$)}};var GVi=function(H){H.prototype.$goog_Thenable=!0},f9_=function(H){if(!H)return!1;
try{return!!H.$goog_Thenable}catch(C){return!1}};var vlU,l9i,V2Y,OXM,XjY,Qp7,pj7,nl1,KD1,Bx7,O2U;_.Es=function(H,C){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(H!=_.Q5)try{var S=this;H.call(C,function(w){S.resolve_(2,w)},function(w){S.resolve_(3,w)})}catch(w){this.resolve_(3,w)}};
vlU=function(){this.next=this.context=this.JSC$9782_onRejected=this.JSC$9782_onFulfilled=this.child=null;this.always=!1};
vlU.prototype.reset=function(){this.context=this.JSC$9782_onRejected=this.JSC$9782_onFulfilled=this.child=null;this.always=!1};
l9i=new NxY(function(){return new vlU},function(H){H.reset()});
V2Y=function(H,C,S){var w=l9i.get();w.JSC$9782_onFulfilled=H;w.JSC$9782_onRejected=C;w.context=S;return w};
_.N3=function(H){if(H instanceof _.Es)return H;var C=new _.Es(_.Q5);C.resolve_(2,H);return C};
_.kj=function(H){return new _.Es(function(C,S){S(H)})};
OXM=function(H,C,S){oln(H,C,S,null)||_.hS(_.l9(C,H))};
_.nh=function(H){return new _.Es(function(C,S){var w=H.length,A=[];if(w)for(var J=function(m,W){w--;A[m]=W;w==0&&C(A)},c=function(m){S(m)},Y,M=0;M<H.length;M++)Y=H[M],OXM(Y,_.l9(J,M),c);
else C(A)})};
XjY=function(H){return new _.Es(function(C){var S=H.length,w=[];if(S)for(var A=function(Y,M,m){S--;w[Y]=M?{fulfilled:!0,value:m}:{fulfilled:!1,reason:m};S==0&&C(w)},J,c=0;c<H.length;c++)J=H[c],OXM(J,_.l9(A,c,!0),_.l9(A,c,!1));
else C(w)})};
Qp7=function(H){return new _.Es(function(C,S){var w=H.length,A=[];if(w)for(var J=function(m){C(m)},c=function(m,W){w--;
A[m]=W;w==0&&S(A)},Y,M=0;M<H.length;M++)Y=H[M],OXM(Y,J,_.l9(c,M));
else C(void 0)})};
_.Cn=function(){var H,C,S=new _.Es(function(w,A){H=w;C=A});
return new dHb(S,H,C)};
_.Es.prototype.then=function(H,C,S){return PRd(this,kc(typeof H==="function"?H:null),kc(typeof C==="function"?C:null),S)};
GVi(_.Es);pj7=function(H,C,S,w){$HP(H,V2Y(C||_.Q5,S||null,w))};
_.rL=function(H,C){C=kc(C);C=V2Y(C,C);C.always=!0;$HP(H,C);return H};
_.Es.prototype.finally=function(H){var C=this;H=kc(H);return new _.Es(function(S,w){pj7(C,function(A){H();S(A)},function(A){H();
w(A)})})};
_.Es.prototype.thenCatch=function(H,C){return PRd(this,null,kc(H),C)};
_.Es.prototype.catch=_.Es.prototype.thenCatch;_.Es.prototype.cancel=function(H){if(this.state_==0){var C=new _.KN(H);_.hS(function(){kVd(this,C)},this)}};
var kVd=function(H,C){if(H.state_==0)if(H.parent_){var S=H.parent_;if(S.callbackEntries_){for(var w=0,A=null,J=null,c=S.callbackEntries_;c&&(c.always||(w++,c.child==H&&(A=c),!(A&&w>1)));c=c.next)A||(J=c);A&&(S.state_==0&&w==1?kVd(S,C):(J?(w=J,w.next==S.callbackEntriesTail_&&(S.callbackEntriesTail_=w),w.next=w.next.next):h_Y(S),nl1(S,A,3,C)))}H.parent_=null}else H.resolve_(3,C)},$HP=function(H,C){H.callbackEntries_||H.state_!=2&&H.state_!=3||rbi(H);
H.callbackEntriesTail_?H.callbackEntriesTail_.next=C:H.callbackEntries_=C;H.callbackEntriesTail_=C},PRd=function(H,C,S,w){var A=V2Y(null,null,null);
A.child=new _.Es(function(J,c){A.JSC$9782_onFulfilled=C?function(Y){try{var M=C.call(w,Y);J(M)}catch(m){c(m)}}:J;
A.JSC$9782_onRejected=S?function(Y){try{var M=S.call(w,Y);M===void 0&&Y instanceof _.KN?c(Y):J(M)}catch(m){c(m)}}:c});
A.child.parent_=H;$HP(H,A);return A.child};
_.Es.prototype.unblockAndFulfill_=function(H){this.state_=0;this.resolve_(2,H)};
_.Es.prototype.unblockAndReject_=function(H){this.state_=0;this.resolve_(3,H)};
_.Es.prototype.resolve_=function(H,C){this.state_==0&&(this===C&&(H=3,C=new TypeError("xa")),this.state_=1,oln(C,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=C,this.state_=H,this.parent_=null,rbi(this),H!=3||C instanceof _.KN||Bx7(this,C)))};
var oln=function(H,C,S,w){if(H instanceof _.Es)return pj7(H,C,S,w),!0;if(f9_(H))return H.then(C,S,w),!0;if(_.U$(H))try{var A=H.then;if(typeof A==="function")return DHP(H,A,C,S,w),!0}catch(J){return S.call(w,J),!0}return!1},DHP=function(H,C,S,w,A){var J=!1,c=function(M){J||(J=!0,S.call(A,M))},Y=function(M){J||(J=!0,w.call(A,M))};
try{C.call(H,c,Y)}catch(M){Y(M)}},rbi=function(H){H.executing_||(H.executing_=!0,_.hS(H.executeCallbacks_,H))},h_Y=function(H){var C=null;
H.callbackEntries_&&(C=H.callbackEntries_,H.callbackEntries_=C.next,C.next=null);H.callbackEntries_||(H.callbackEntriesTail_=null);return C};
_.Es.prototype.executeCallbacks_=function(){for(var H;H=h_Y(this);)nl1(this,H,this.state_,this.result_);this.executing_=!1};
nl1=function(H,C,S,w){if(S==3&&C.JSC$9782_onRejected&&!C.always)for(;H&&H.hadUnhandledRejection_;H=H.parent_)H.hadUnhandledRejection_=!1;if(C.child)C.child.parent_=null,KD1(C,S,w);else try{C.always?C.JSC$9782_onFulfilled.call(C.context):KD1(C,S,w)}catch(A){O2U.call(null,A)}l9i.put(C)};
KD1=function(H,C,S){C==2?H.JSC$9782_onFulfilled.call(H.context,S):H.JSC$9782_onRejected&&H.JSC$9782_onRejected.call(H.context,S)};
Bx7=function(H,C){H.hadUnhandledRejection_=!0;_.hS(function(){H.hadUnhandledRejection_&&O2U.call(null,C)})};
O2U=jZ;_.KN=function(H){_.CU.call(this,H)};
_.Zh(_.KN,_.CU);_.KN.prototype.name="cancel";var dHb=function(H,C,S){this.promise=H;this.resolve=C;this.reject=S};var BC;_.MQ=function(H,C){_.ph.call(this);this.JSC$9794_interval_=H||1;this.timerObject_=C||_.s$;this.boundTick_=(0,_.Xv)(this.tick_,this);this.last_=_.FF()};
_.Zh(_.MQ,_.ph);_.F=_.MQ.prototype;_.F.enabled=!1;_.F.JSC$9796_timer_=null;_.F.setInterval=function(H){this.JSC$9794_interval_=H;this.JSC$9796_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9796_timer_&&this.stop()};
_.F.tick_=function(){if(this.enabled){var H=_.FF()-this.last_;H>0&&H<this.JSC$9794_interval_*.8?this.JSC$9796_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9794_interval_-H):(this.JSC$9796_timer_&&(this.timerObject_.clearTimeout(this.JSC$9796_timer_),this.JSC$9796_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.F.start=function(){this.enabled=!0;this.JSC$9796_timer_||(this.JSC$9796_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9794_interval_),this.last_=_.FF())};
_.F.stop=function(){this.enabled=!1;this.JSC$9796_timer_&&(this.timerObject_.clearTimeout(this.JSC$9796_timer_),this.JSC$9796_timer_=null)};
_.F.disposeInternal=function(){_.MQ.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
BC=function(H,C,S){if(typeof H==="function")S&&(H=(0,_.Xv)(H,S));else if(H&&typeof H.handleEvent=="function")H=(0,_.Xv)(H.handleEvent,H);else throw Error("ya");return Number(C)>2147483647?-1:_.s$.setTimeout(H,C||0)};
_.t2d=function(H){var C=null;return(new _.Es(function(S,w){C=BC(function(){S(void 0)},H);
C==-1&&w(Error("za"))})).thenCatch(function(S){_.s$.clearTimeout(C);
throw S;})};var Ep=function(H){_.Op.call(this);this.streamzLogger=H;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9800_flushTimer=new _.MQ(this.flushInterval);this.JSC$9800_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.Nx(this,this.JSC$9800_flushTimer)};
_.G(Ep,_.Op);Ep.prototype.sendIsolatedPayload=function(H){this.shouldSendIsolatedPayload=H;this.invocationLimit=1};
var LD7=function(H){H.JSC$9800_flushTimer.enabled||H.JSC$9800_flushTimer.start();H.invocationCount++;H.invocationCount>=H.invocationLimit&&H.snapshotAndFlush()};
Ep.prototype.snapshotAndFlush=function(){var H=this.metricMap.values();H=[].concat(_.k$(H)).filter(function(C){return C.cellMap.size});
H.length&&this.streamzLogger.flush(H,this.shouldSendIsolatedPayload);gld(H);this.invocationCount=0;this.JSC$9800_flushTimer.enabled&&this.JSC$9800_flushTimer.stop()};
Ep.prototype.addNewCounter=function(H){var C=_.tc.apply(1,arguments);this.metricMap.has(H)||this.metricMap.set(H,new iX1(H,C))};
Ep.prototype.addNewEventMetric=function(H){var C=_.tc.apply(1,arguments);this.metricMap.has(H)||this.metricMap.set(H,new CR_(H,C))};
var UHW=function(H,C){return H.disabledMetrics.has(C)?void 0:H.metricMap.get(C)};
Ep.prototype.JSC$9800_incrementCounter=function(H){this.JSC$9800_incrementCounterBy(H,1,_.tc.apply(1,arguments))};
Ep.prototype.JSC$9800_incrementCounterBy=function(H,C){var S=_.tc.apply(2,arguments),w=UHW(this,H);w&&w instanceof iX1&&(w.JSC$9739_incrementCounterBy(C,S),LD7(this))};
Ep.prototype.record=function(H,C){var S=_.tc.apply(2,arguments),w=UHW(this,H);w&&w instanceof CR_&&(w.record(C,S),LD7(this))};
var gld=function(H){for(var C=0;C<H.length;C++)H[C].clear()};_.DN=function(H,C,S){S=S===void 0?{}:S;C=Error.call(this,C);this.message=C.message;"stack"in C&&(this.stack=C.stack);this.code=H;this.metadata=S;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.G(_.DN,Error);_.DN.prototype.toString=function(){var H="RpcError("+(jaw(this.code)||String(this.code))+")";this.message&&(H+=": "+this.message);return H};_.R_W=_.s$.JSON.parse;_.Kh=_.s$.JSON.stringify;_.k_=_.s$.JSON.parse;_.I9M=function(H){switch(H){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 a9U=function(H){switch(H){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var xHW,H6P=function(){};
_.Zh(H6P,_.wAD);H6P.prototype.createInstance=function(){return new XMLHttpRequest};
xHW=new H6P;_.tS=function(H){_.ph.call(this);this.headers=new Map;this.JSC$9809_xmlHttpFactory_=H||null;this.JSC$9809_active_=!1;this.JSC$9809_xhr_=null;this.JSC$9809_lastUri_="";this.JSC$9809_lastErrorCode_=0;this.JSC$9809_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9809_timeoutId_=null;this.responseType_="";this.JSC$9809_withCredentials_=!1};
_.Zh(_.tS,_.ph);var i6d=/^https?$/i,Cdb=["POST","PUT"],Spb=[],X4Z=function(H,C,S,w,A,J,c){var Y=new _.tS;Spb.push(Y);C&&Y.listen("complete",C);Y.listenOnce("ready",Y.cleanupSend_);J&&(Y.timeoutInterval_=Math.max(0,J));c&&(Y.JSC$9809_withCredentials_=c);Y.send(H,S,w,A)};
_.tS.prototype.cleanupSend_=function(){this.dispose();_.ru(Spb,this)};
_.tS.prototype.send=function(H,C,S,w){if(this.JSC$9809_xhr_)throw Error("Aa`"+this.JSC$9809_lastUri_+"`"+H);C=C?C.toUpperCase():"GET";this.JSC$9809_lastUri_=H;this.JSC$9809_lastError_="";this.JSC$9809_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9809_active_=!0;this.JSC$9809_xhr_=this.createXhr();this.JSC$9809_xhr_.onreadystatechange=kc((0,_.Xv)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9809_xhr_.open(C,String(H),!0),this.inOpen_=!1}catch(c){s7U(this,c);return}H=S||"";S=new Map(this.headers);
if(w)if(Object.getPrototypeOf(w)===Object.prototype)for(var A in w)S.set(A,w[A]);else if(typeof w.keys==="function"&&typeof w.get==="function"){A=_.Z(w.keys());for(var J=A.next();!J.done;J=A.next())J=J.value,S.set(J,w.get(J))}else throw Error("Ba`"+String(w));w=Array.from(S.keys()).find(function(c){return"content-type"==c.toLowerCase()});
A=_.s$.FormData&&H instanceof _.s$.FormData;!_.nU(Cdb,C)||w||A||S.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");C=_.Z(S);for(w=C.next();!w.done;w=C.next())S=_.Z(w.value),w=S.next().value,S=S.next().value,this.JSC$9809_xhr_.setRequestHeader(w,S);this.responseType_&&(this.JSC$9809_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9809_xhr_&&this.JSC$9809_xhr_.withCredentials!==this.JSC$9809_withCredentials_&&(this.JSC$9809_xhr_.withCredentials=this.JSC$9809_withCredentials_);
try{this.JSC$9809_timeoutId_&&(clearTimeout(this.JSC$9809_timeoutId_),this.JSC$9809_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9809_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9809_xhr_.send(H),this.inSend_=!1}catch(c){s7U(this,c)}};
_.tS.prototype.createXhr=function(){return this.JSC$9809_xmlHttpFactory_?this.JSC$9809_xmlHttpFactory_.createInstance():xHW.createInstance()};
_.tS.prototype.timeout_=function(){typeof zmu!="undefined"&&this.JSC$9809_xhr_&&(this.JSC$9809_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9809_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var s7U=function(H,C){H.JSC$9809_active_=!1;H.JSC$9809_xhr_&&(H.inAbort_=!0,H.JSC$9809_xhr_.abort(),H.inAbort_=!1);H.JSC$9809_lastError_=C;H.JSC$9809_lastErrorCode_=5;j7b(H);wlW(H)},j7b=function(H){H.errorDispatched_||(H.errorDispatched_=!0,H.dispatchEvent("complete"),H.dispatchEvent("error"))};
_.tS.prototype.abort=function(H){this.JSC$9809_xhr_&&this.JSC$9809_active_&&(this.JSC$9809_active_=!1,this.inAbort_=!0,this.JSC$9809_xhr_.abort(),this.inAbort_=!1,this.JSC$9809_lastErrorCode_=H||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),wlW(this))};
_.tS.prototype.disposeInternal=function(){this.JSC$9809_xhr_&&(this.JSC$9809_active_&&(this.JSC$9809_active_=!1,this.inAbort_=!0,this.JSC$9809_xhr_.abort(),this.inAbort_=!1),wlW(this,!0));_.tS.superClass_.disposeInternal.call(this)};
_.tS.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)AkW(this);else this.onReadyStateChangeEntryPoint_()};
_.tS.prototype.onReadyStateChangeEntryPoint_=function(){AkW(this)};
var AkW=function(H){if(H.JSC$9809_active_&&typeof zmu!="undefined")if(H.inSend_&&_.Lh(H)==4)setTimeout(H.onReadyStateChange_.bind(H),0);else if(H.dispatchEvent("readystatechange"),H.isComplete()){H.JSC$9809_active_=!1;try{if(H.isSuccess())H.dispatchEvent("complete"),H.dispatchEvent("success");else{H.JSC$9809_lastErrorCode_=6;try{var C=_.Lh(H)>2?H.JSC$9809_xhr_.statusText:""}catch(S){C=""}H.JSC$9809_lastError_=C+" ["+H.getStatus()+"]";j7b(H)}}finally{wlW(H)}}},wlW=function(H,C){if(H.JSC$9809_xhr_){H.JSC$9809_timeoutId_&&
(clearTimeout(H.JSC$9809_timeoutId_),H.JSC$9809_timeoutId_=null);
var S=H.JSC$9809_xhr_;H.JSC$9809_xhr_=null;C||H.dispatchEvent("ready");try{S.onreadystatechange=null}catch(w){}}};
_.tS.prototype.isActive=function(){return!!this.JSC$9809_xhr_};
_.tS.prototype.isComplete=function(){return _.Lh(this)==4};
_.tS.prototype.isSuccess=function(){var H=this.getStatus(),C;if(!(C=a9U(H))){if(H=H===0)H=YtU(String(this.JSC$9809_lastUri_)),H=!i6d.test(H);C=H}return C};
_.Lh=function(H){return H.JSC$9809_xhr_?H.JSC$9809_xhr_.readyState:0};
_.F=_.tS.prototype;_.F.getStatus=function(){try{return _.Lh(this)>2?this.JSC$9809_xhr_.status:-1}catch(H){return-1}};
_.F.getResponseText=function(){try{return this.JSC$9809_xhr_?this.JSC$9809_xhr_.responseText:""}catch(H){return""}};
_.F.getResponse=function(){try{if(!this.JSC$9809_xhr_)return null;if("response"in this.JSC$9809_xhr_)return this.JSC$9809_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9809_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9809_xhr_)return this.JSC$9809_xhr_.mozResponseArrayBuffer}return null}catch(H){return null}};
_.F.getAllResponseHeaders=function(){return this.JSC$9809_xhr_&&_.Lh(this)>=2?this.JSC$9809_xhr_.getAllResponseHeaders()||"":""};
_.F.getLastError=function(){return typeof this.JSC$9809_lastError_==="string"?this.JSC$9809_lastError_:String(this.JSC$9809_lastError_)};var ZvW=function(){};
ZvW.prototype.send=function(H,C,S){C=C===void 0?function(){}:C;
S=S===void 0?function(){}:S;
X4Z(H.url,function(w){w=w.target;w.isSuccess()?C(w.getResponseText()):S(w.getStatus())},H.requestType,H.body,H.requestHeaders,H.timeoutMillis,H.withCredentials)};
ZvW.prototype.getTransmissionType=function(){return 1};var JkV=function(H,C){this.zUn=H;this.event=C;this.startTime=em()},T4E;
JkV.prototype.done=function(){this.zUn.sO(this.event,em()-this.startTime)};
var gL=function(){NR.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.G(gL,NR);_.Uw=function(H,C,S){var w=em();C=C();H.sO(S,em()-w);return C};
T4E=function(){gL.apply(this,arguments)};
_.G(T4E,gL);_.F=T4E.prototype;_.F.lYS=function(){};
_.F.cN=function(){};
_.F.sO=function(){};
_.F.logError=function(){};
_.F.jr=function(){};
_.F.sem=function(){};
_.F.wFW=function(){};
_.F.dpK=function(){};
var Fm1=function(H){gL.call(this);var C=this;this.c5=H;this.TEST_ONLY={dkH:function(){return C.c5},
getExperimentIds:function(){return C.c5.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void C.c5.dispose()})};
_.G(Fm1,gL);_.F=Fm1.prototype;_.F.update=function(H){this.c5.dispose();this.c5=H};
_.F.cN=function(H){this.c5.cN(H)};
_.F.sO=function(H,C){this.c5.sO(H,C)};
_.F.logError=function(H){this.c5.logError(H)};
_.F.jr=function(){this.c5.jr()};
_.F.sem=function(H){this.c5.sem(H)};
_.F.wFW=function(H){this.c5.wFW(H)};
_.F.dpK=function(H){this.c5.dpK(H)};
_.F.lYS=function(H){this.c5.lYS(H)};
var Z6b=function(H,C){_.Op.call(this);var S=this;this.callback=H;this.dr9=C;this.q9k=-C;this.addOnDisposeCallback(function(){return void clearTimeout(S.timer)})};
_.G(Z6b,_.Op);var ckb=function(H){if(H.timer===void 0){var C=Math.max(0,H.q9k+H.dr9-em());H.timer=setTimeout(function(){try{H.callback()}finally{H.q9k=em(),H.timer=void 0}},C)}},Ypn=function(H,C){gL.call(this);
this.metrics=H;this.gs=C};
_.G(Ypn,gL);_.F=Ypn.prototype;_.F.lYS=function(H){this.metrics.mjH.record(H,this.gs)};
_.F.cN=function(H){this.metrics.eventCount.increment(H,this.gs)};
_.F.sO=function(H,C){this.metrics.g8k.record(C,H,this.gs)};
_.F.logError=function(H){this.metrics.errorCount.increment(H,this.gs)};
_.F.sem=function(H){this.metrics.pug.increment(H,this.gs)};
_.F.wFW=function(H){this.metrics.m84.increment(H,this.gs)};
_.F.dpK=function(H){this.metrics.q6q.increment(H,this.gs)};
var mE$=function(H,C){C=C===void 0?[]:C;var S={gs:H.gs||"_",yfm:H.yfm||[],xKk:H.xKk|0,destinationUrl:H.destinationUrl,x9K:H.x9K||function(){},
dqm:H.dqm||function(J,c){return qEi(J,c,S.x9K,S.destinationUrl)}},w=S.dqm("51",S.yfm.concat(C));
Ypn.call(this,{mjH:new gDY(w),errorCount:new a4b(w),eventCount:new RBd(w),g8k:new I41(w),uAH:new Urn(w),pug:new xrP(w),m84:new HMP(w),q6q:new iMY(w)},S.gs);var A=this;this.TEST_ONLY={getExperimentIds:function(){return A.options.yfm.concat(A.dX9).sort(function(J,c){return J-c})}};
this.options=S;this.service=w;this.t6U=!H.dqm;this.flushDebouncer=new Z6b(function(){return void A.service.snapshotAndFlush()},S.xKk);
this.addOnDisposeCallback(function(){A.flushDebouncer.dispose();A.t6U&&A.service.dispose()});
(this.dX9=C.slice()).sort(_.Piw)};
_.G(mE$,Ypn);mE$.prototype.jr=function(){ckb(this.flushDebouncer)};var zYV=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(zYV,_.Jc);_.MTi=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(_.MTi,_.Jc);var Uj=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H,0,Uj.messageId)};
_.G(Uj,_.Jc);var zz_=_.thp(Uj);Uj.messageId="bfkj";var BhW=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(BhW,_.Jc);var MmV=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(MmV,_.Jc);var qpV=_.Et(MmV);_.N5=function(){var H=this;this.promise=new Promise(function(C,S){H.resolve=C;H.reject=S})};_.RY=function(H){_.Op.call(this);var C=this;this.ffM=Math.floor(Math.random()*200);this.swF=new MmV;if("challenge"in H&&zz_(H.challenge)){var S=_.$v(H.challenge,4,void 0,Xd);var w=_.$v(H.challenge,5,void 0,Xd);_.$v(H.challenge,7,void 0,Xd)&&(this.swF=qpV(_.$v(H.challenge,7,void 0,Xd)))}else S=H.program,w=H.globalName;this.addOnDisposeCallback(function(){var u,O,d;return _.z(function(p){if(p.nextAddress==1)return p.yield(C.tIm,2);u=p.yieldResult;O=u.nv6;(d=O)==null||d();_.oT(p)})});
this.d6=WCw(H.hbK||{},this.swF);_.Nx(this,this.d6);var A=new _.N5;this.tIm=A.promise;this.d6.cN("t");var J=this.d6.share(),c=new JkV(J,"t"),Y=function(u,O,d,p){if(!C.d6.isDisposed()){var k="k";O?k="h":d&&(k="u");k!=="k"?p!==0&&(C.d6.cN(k),C.d6.sO(k,u)):C.ffM<=0?(C.d6.cN(k),C.d6.sO(k,u),C.ffM=Math.floor(Math.random()*200)):C.ffM--}},M=function(u,O,d,p){Promise.resolve().then(function(){c.done();
J.jr();J.dispose();A.resolve({jfw:u,nv6:O,mQX:d,e2E:p})})};
if(!_.s$[w])throw this.d6.logError(25),Error("Ca");if(!_.s$[w].a)throw this.d6.logError(26),Error("Da");try{var m=_.s$[w].a;w=[];for(var W=[],y=Dnp(this.swF),N=0;N<y.length;N++)w.push(y[N]),W.push(1);var b=KlV(this.swF);for(y=0;y<b.length;y++)w.push(b[y]),W.push(2);this.twa=_.Z(m(S,M,!0,H.dEf,Y,[w,W],_.$v(this.swF,5),!1)).next().value;this.zaT=A.promise.then(function(){})}catch(u){throw this.d6.logError(28),u;
}};
_.G(_.RY,_.Op);_.RY.prototype.snapshot=function(H){if(this.isDisposed())throw Error("Ea");this.d6.cN("n");var C=this.d6.share();return this.tIm.then(function(S){var w=S.jfw;return new Promise(function(A){var J=new JkV(C,"n");w(function(c){J.done();C.lYS(c.length);C.jr();C.dispose();A(c)},[H.v5,
H.lFK,H.rr6,H.bry])})})};
_.RY.prototype.zpT=function(H){this.tIm.then(function(C){var S;(S=C.mQX)==null||S(H)})};
_.RY.prototype.j6C=function(H,C){return this.tIm.then(function(S){var w;return(w=S.e2E)==null?void 0:w(H,C,!1)})};
_.RY.prototype.vFb=function(){return this.d6.share()};var TSn=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(TSn,_.Jc);var YkE=_.thp(TSn);var mxb=function(){this.promises={};this.kuD=null},Wm1=function(){mxb.instance||(mxb.instance=new mxb);
return mxb.instance},NSW=function(H,C){return ykU(H,_.zf(C,zYV,1,Xd),_.zf(C,_.MTi,2,Xd),_.$v(C,3,void 0,Xd))},ykU=function(H,C,S,w){if(!C&&!S)return Promise.resolve();
if(!w)return e3u(C,S);var A;(A=H.promises)[w]||(A[w]=new Promise(function(J,c){e3u(C,S).then(function(){H.kuD=w;J()},function(Y){delete H.promises[w];
c(Y)})}));
return H.promises[w]};var b67=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(b67,_.Jc);var EJW=function(H,C){return _.RJ(H,1,C)},ezn=function(H,C){return _.RJ(H,2,C)};var IY=function(H){_.Op.call(this);var C=this;this.options=H;this.moi=new _.N5;this.zaT=this.moi.promise;this.voK=new _.N5;this.ac0=1;this.xY6=new _.N5;this.qcy=[];this.w48=H.w48||function(){};
this.wyS=new Fm1(WCw(H.hbK||{}));uvW(this,H.bU,H.h7f,H.zQX,H.f93,Object.assign({},GZY,H.rqW||{}));this.addOnDisposeCallback(function(){return void fa_(C)})};
_.G(IY,_.Op);IY.prototype.snapshot=function(H){var C=this;return _.z(function(S){switch(S.nextAddress){case 1:if(C.isDisposed())throw Error("Ea");if(C.yf||C.c52){S.jumpTo(2);break}return S.yield(C.voK.promise,2);case 2:if(!C.yf){S.jumpTo(4);break}return S.yield(C.yf.snapshot(H),5);case 5:return S.return(S.yieldResult);case 4:throw C.c52;}})};
var vJV=function(H){var C;return _.z(function(S){if(H.isDisposed())throw Error("Ea");(C=H.mQ)!=null&&(C.endTimeMs=0,C.resolver(1));return S.yield(H.xY6.promise,0)})},fa_=function(H){H.c52=Error("Ga");
H.voK.resolve();tIU(H.moi.promise);H.moi.reject(Error("Ga"));H.wyS.dispose();Promise.all(H.qcy).then(function(){var S;return _.z(function(w){(S=H.yf)==null||S.dispose();H.yf=void 0;_.oT(w)})});
H.qcy=[];var C;(C=H.mQ)!=null&&(C.endTimeMs=0,C.resolver(1));tIU(H.xY6.promise);H.xY6.reject(Error("Ga"))};
IY.prototype.zpT=function(H){var C,S;(C=this.yf)==null||(S=C.zpT)==null||S.call(C,H)};
IY.prototype.j6C=function(H,C){var S,w,A;return(A=(S=this.yf)==null?void 0:(w=S.j6C)==null?void 0:w.call(S,H,C))!=null?A:Promise.resolve()};
var la1=function(H,C){var S=H.w48;H.w48=function(){S();C()}},VmP=function(H,C){H.isDisposed()||(H.yf=C,H.wyS.update(C.vFb()),H.voK.resolve(),H.moi.resolve(void 0),H.w48())};
IY.prototype.handleError=function(H){if(!this.isDisposed()){this.c52=H;this.voK.resolve();var C,S;(S=(C=this.options).urg)==null||S.call(C,H)}};
var oJ7=function(H,C){C&&(Promise.all(H.qcy).then(function(){return void C.dispose()}),H.qcy=[])},aY=function(H,C){H.ac0=C;
var S,w;(w=(S=H.options).jc3)==null||w.call(S,C)},O6Y=function(H){H.isDisposed()||(H.xY6.resolve(),H.xY6=new _.N5)},uvW=function(H,C,S,w,A,J){w=w===void 0?Wm1():w;
A=A===void 0?Promise.resolve(void 0):A;var c,Y,M,m,W,y,N,b,u,O,d,p;_.z(function(k){switch(k.nextAddress){case 1:return k.yield(0,3);case 3:Y=null;if(!c){k.jumpTo(6);break}aY(H,7);_.en(k,7);return k.yield(ld(c.snapshot({}),J.yxn,function(){return Promise.resolve("E:CTO")}),9);
case 9:Y=k.yieldResult;_.xB(k,6);break;case 7:_.Vx(k),Y="E:UCE";case 6:M=void 0,m=c?J.aTf:J.lTk,W=new mm(m,J.yAf,J.t5H,J.ksH),y=1;case 10:if(!(y<=J.maxAttempts)){k.jumpTo(12);break}if(y===1){k.jumpTo(13);break}aY(H,0);H.mQ=new Xln(W.getValue(),J.cWk,J.gk9);return k.yield(H.mQ.promise,14);case 14:N=k.yieldResult,H.mQ=void 0,N===1?(y=1,W.reset()):DOi(W);case 13:_.en(k,15);b=void 0;if(S){b=S;k.jumpTo(17);break}aY(H,5);u=w.kuD;return k.yield(ld(Q7M(C,u,Y),J.yo4,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:b=k.yieldResult;case 17:return aY(H,3),k.yield(ld(NSW(w,b),J.lRU,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return aY(H,8),k.yield(A,20);case 20:return O=new _.RY({challenge:b,hbK:H.options.hbK,dEf:H.options.dEf}),k.yield(ld(O.zaT,J.tjX,function(){return Promise.reject(Error("Ja"))}),21);
case 21:M=O;k.jumpTo(12);break;case 15:d=_.Vx(k),H.handleError(d),O6Y(H);case 11:y++;k.jumpTo(10);break;case 12:if(H.isDisposed()){k.jumpTo(5);break}M&&(S=void 0,oJ7(H,c),c=M,VmP(H,M),O6Y(H));aY(H,2);H.mQ=new Xln(J.mDn,J.cWk,J.gk9);return k.yield(H.mQ.promise,22);case 22:H.mQ=void 0;if(H.isDisposed()){k.jumpTo(5);break}k.jumpTo(3);break;case 5:(p=c)==null||p.dispose(),_.oT(k)}})};
IY.prototype.vFb=function(){return this.wyS.share()};
var GZY={mDn:432E5,cWk:3E5,gk9:10,yxn:1E4,yo4:3E4,lRU:3E4,tjX:6E4,lTk:1E3,aTf:6E4,yAf:6E5,t5H:.25,ksH:2,maxAttempts:10},Xln=function(H,C,S){var w=this;this.endTimeMs=Date.now()+H;this.promise=new Promise(function(J){w.resolver=J});
var A=function(){var J=w.endTimeMs-Date.now();J<=S?w.resolver(0):setTimeout(A,Math.min(J,C))};
A()};var dxi,fQW=(dxi=Math.imul)!=null?dxi:function(H,C){return H*C|0},Vy=[196,
200,224,18],xc=function(H,C,S){S=S===void 0?[]:S;this.maxItems=H;this.nS=C===void 0?0:C;this.kb=S},Pd7=function(H){var C=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!C)return new xc(H);var S=C.split(",");if(S.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new xc(H);C=S.slice(1);C.length===1&&C[0]===""&&(C=[]);S=Number(S[0]);return isNaN(S)||S<0||S>C.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new xc(H)):new xc(H,S,C)};
xc.prototype.serialize=function(){return String(this.nS)+","+this.kb.join()};
xc.prototype.insert=function(H,C){var S=void 0;if(this.kb[this.nS]!==H){var w=this.kb.indexOf(H);w!==-1?(this.kb.splice(w,1),w<this.nS&&this.nS--,this.kb.splice(this.nS,0,H)):(S=this.kb[this.nS],this.kb[this.nS]=H)}this.nS=(this.nS+1)%this.maxItems;H=u0U("iU5q-!O9@$",this.serialize());S&&H&&C(S);return H};
var $xd=function(H,C){this.gtK=C;try{var S=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(w){S=!1}S&&(this.index=Pd7(H))},pli=function(H,C,S,w,A){var J=H.index?_.Uw(H.gtK,function(){return oBu(H.index,lQW(C),S,w,A)},"W"):"u";
H.gtK.dpK(J)},kZb=function(H,C,S){var w=_.Z(H.index?_.Uw(H.gtK,function(){return Ov7(lQW(C),S)},"R"):["u"]),A=w.next().value;
w=w.next().value;H.gtK.wFW(A);return w};var hzb={toString:function(H){var C=[],S=0;H-=-2147483648;C[S++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(H%52);for(H=Math.floor(H/52);H>0;)C[S++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(H%62),H=Math.floor(H/62);return C.join("")}};var BS1=function(H){H=nJ_(H);for(var C=2654435769,S=2654435769,w=314159265,A=H.length,J=A,c=0,Y=function(){C-=S;C-=w;C^=w>>>13;S-=w;S-=C;S^=C<<8;w-=C;w-=S;w^=S>>>13;C-=S;C-=w;C^=w>>>12;S-=w;S-=C;S^=C<<16;w-=C;w-=S;w^=S>>>5;C-=S;C-=w;C^=w>>>3;S-=w;S-=C;S^=C<<10;w-=C;w-=S;w^=S>>>15};J>=12;J-=12,c+=12)C+=rkb(H,c),S+=rkb(H,c+4),w+=rkb(H,c+8),Y();
w+=A;switch(J){case 11:w+=H[c+10]<<24;case 10:w+=H[c+9]<<16;case 9:w+=H[c+8]<<8;case 8:S+=H[c+7]<<24;case 7:S+=H[c+6]<<16;case 6:S+=H[c+5]<<8;case 5:S+=H[c+4];case 4:C+=H[c+3]<<24;case 3:C+=H[c+2]<<16;case 2:C+=H[c+1]<<8;case 1:C+=H[c]}Y();return hzb.toString(w)},nJ_=function(H){for(var C=[],S=0;S<H.length;S++)C.push(H.charCodeAt(S));
return C},rkb=function(H,C){return H[C]+(H[C+1]<<8)+(H[C+2]<<16)+(H[C+3]<<24)};var Hw=function(H){_.Op.call(this);this.zJ=H;this.gmi=new _.N5};
_.G(Hw,_.Op);var Dx1=function(H,C){var S=setTimeout(function(){H.gmi.resolve()},C);
H.addOnDisposeCallback(function(){return void clearTimeout(S)})};
Hw.prototype.n2R=function(H,C){var S=this.za(H);C==null||C(S);return _.Uw(this.zJ,function(){return _.QO(S,2)},this.kBS)};
var Km1=function(H,C,S,w){return _.Uw(H.zJ,function(){return S?H.n2R(C,w):H.za(C,w)},H.eb8)},tmW=function(H,C,S,w){Hw.call(this,H);
this.hY6=C;this.eYH=S;this.eb8="m";this.kBS="x";this.n9w=0;Dx1(this,w)};
_.G(tmW,Hw);tmW.prototype.za=function(H,C){var S=this;this.zJ.cN(this.eb8);++this.n9w>=this.eYH&&this.gmi.resolve();var w=H();H=_.Uw(this.zJ,function(){return S.hY6(w)},"C");
if(H===void 0)throw new WC(17,"YNJ:Undefined");if(!(H instanceof Uint8Array))throw new WC(18,"ODM:Invalid");C==null||C(H);return H};
var LmW=function(H,C,S){Hw.call(this,H);this.kPv=C;this.eb8="f";this.kBS="z";Dx1(this,S)};
_.G(LmW,Hw);LmW.prototype.za=function(){return this.kPv};
var gJ1=function(H,C,S){Hw.call(this,H);this.kFw=C;this.eb8="w";this.kBS="z";Dx1(this,S)};
_.G(gJ1,Hw);gJ1.prototype.za=function(){var H=this;return _.Uw(this.zJ,function(){return _.iY(H.kFw)},"d")};
gJ1.prototype.n2R=function(){return this.kFw};
var Uxb=function(H,C){Hw.call(this,H);this.error=C;this.eb8="e";this.kBS="y"};
_.G(Uxb,Hw);var Rzn=function(H,C){var S=(C(H.error.message)+":"+C(H.error.stack)).substring(0,2048);C=S.length+1;S=XAp(S);var w=new Uint8Array(4+S.length);w.set([42,C&127|128,C>>7,H.error.code]);w.set(S,4);return w};
Uxb.prototype.za=function(){if(this.ksL)return this.ksL;this.ksL=Rzn(this,function(H){return"_"+BS1(H)});
return Rzn(this,function(H){return H})};
var IaM=function(H,C,S){Hw.call(this,H);this.us8=C;this.clientState=S;this.eb8="S";this.kBS="q"};
_.G(IaM,Hw);IaM.prototype.za=function(){var H=Math.floor(Date.now()/1E3),C=[Math.random()*255,Math.random()*255],S=C.concat([this.us8&255,this.clientState],[H>>24&255,H>>16&255,H>>8&255,H&255]);H=new Uint8Array(2+S.length);H[0]=34;H[1]=S.length;H.set(S,2);S=H.subarray(2);for(var w=C=C.length;w<S.length;++w)S[w]^=S[w%C];this.zJ.sem(this.clientState);return H};var aaY={wzv:3E4,oeH:2E4},i0=function(H){_.Op.call(this);var C=this;this.lf2=new _.N5;this.g2R=0;this.x4=void 0;this.state=2;this.vm=H.vm;this.bU=H.bU;this.rqW=Object.assign({},aaY,H.rqW||{});this.v0=H.vm.vFb();var S;this.onError=(S=H.onError)!=null?S:function(){};
this.sZD=H.sZD||!1;if(xxb(H)){var w=this.vm;this.iR2=function(){return vJV(w).catch(function(c){c=C.reportError(new WC(C.ct?20:32,"TRG:Disposed",c));C.x4=c;var Y;(Y=C.ct)==null||Y.dispose();C.ct=void 0;C.lf2.reject(c)})};
la1(w,function(){return void Hsd(C)});
w.ac0===2&&Hsd(this)}else this.iR2=H.hTX,Hsd(this);var A=this.v0.share();A.cN("o");var J=new JkV(A,"o");this.lf2.promise.then(function(){J.done();A.jr();A.dispose()},function(){return void A.dispose()});
this.addOnDisposeCallback(function(){C.ct?(C.ct.dispose(),C.ct=void 0):C.x4?C.v0.jr():(C.x4=C.reportError(new WC(32,"TNP:Disposed")),C.v0.jr(),C.lf2.reject(C.x4))});
_.Nx(this,this.v0)};
_.G(i0,_.Op);i0.prototype.tXM=function(){return this.lf2.promise};
var is7=function(H,C){if(!(C instanceof WC))if(C instanceof _.DN){var S=Error(C.toString());S.stack=C.stack;C=new WC(11,"EBH:Error",S)}else C=new WC(12,"BSO:Unknown",C);return H.reportError(C)},Hsd=function(H){var C,S,w,A,J,c,Y,M,m,W,y,N,b,u,O;
return _.z(function(d){switch(d.nextAddress){case 1:C=void 0;H.g2R++;S=new _.N5;H.vm instanceof IY&&H.vm.qcy.push(S.promise);if(!H.sZD){d.jumpTo(2);break}w=new _.N5;setTimeout(function(){return void w.resolve()});
return d.yield(w.promise,2);case 2:return A=H.v0.share(),_.en(d,4,5),H.state=5,J={},c=[],d.yield(ld(H.vm.snapshot({v5:J,rr6:c}),H.rqW.oeH,function(){return Promise.reject(new WC(15,"MDA:Timeout"))}),7);
case 7:Y=d.yieldResult;if(H.isDisposed())throw new WC(H.ct?20:32,"MDA:Disposed");M=c[0];H.state=6;return d.yield(ld(CW_(H.bU,Y),H.rqW.wzv,function(){return Promise.reject(new WC(10,"BWB:Timeout"))}),8);
case 8:m=d.yieldResult;if(H.isDisposed())throw new WC(H.ct?20:32,"BWB:Disposed");H.state=7;C=_.Uw(A,function(){var k=SF1(H,m,S,M);k.gmi.promise.then(function(){return void H.iR2()});
return k},"i");
case 5:_.Gv(d);A.dispose();_.lf(d,6);break;case 4:W=_.Vx(d);(y=C)==null||y.dispose();if(!H.x4){N=is7(H,W);S.resolve();var p;if(p=H.vm instanceof IY&&H.g2R<2)a:if(W instanceof WC)p=W.code!==32&&W.code!==20&&W.code!==10;else{if(W instanceof _.DN)switch(W.code){case 2:case 13:case 14:case 4:break;default:p=!1;break a}p=!0}if(p)return b=(1+Math.random()*.25)*(H.ct?6E4:1E3),u=setTimeout(function(){return void H.iR2()},b),H.addOnDisposeCallback(function(){return void clearTimeout(u)}),d.return();
H.x4=N}A.logError(H.ct?13:14);H.lf2.reject(H.x4);return d.return();case 6:H.state=8,H.g2R=0,(O=H.ct)==null||O.dispose(),H.ct=C,H.lf2.resolve(),_.oT(d)}})},SF1=function(H,C,S,w){var A=PGi(C,2)*1E3;
if(A<=0)throw new WC(31,"TTM:Invalid");if(_.$v(C,4))return new gJ1(H.v0,_.$v(C,4),A);if(!PGi(C,3))return new LmW(H.v0,WVu(_.f5(C,1)),A);if(!w)throw new WC(4,"PMD:Undefined");w=w(WVu(_.f5(C,1)));if(!(w instanceof Function))throw new WC(16,"APF:Failed");H.axk=Math.floor((Date.now()+A)/1E3);H=new tmW(H.v0,w,PGi(C,3),A);H.addOnDisposeCallback(function(){return void S.resolve()});
return H};
i0.prototype.za=function(H){return sE7(this,Object.assign({},H),!1)};
i0.prototype.n2R=function(H){return sE7(this,Object.assign({},H),!0)};
i0.prototype.vI9=function(H){if(H>150)return!1;try{return this.cache=new $xd(H,this.v0),!0}catch(C){return this.reportError(new WC(22,"GBJ:init",C)),!1}};
i0.prototype.reportError=function(H){this.v0.logError(H.code);this.onError(H);return H};
var jEP=function(H,C){C=C instanceof WC?C:new WC(5,"TVD:error",C);return H.reportError(C)},sE7=function(H,C,S){try{if(H.isDisposed())throw new WC(21,"BNT:disposed");
if(!H.ct&&H.x4)throw H.x4;var w,A;return(A=(w=wNM(H,C,S))!=null?w:AaM(H,C,S))!=null?A:Ja_(H,C,S)}catch(J){if(!C.w80)throw jEP(H,J);return FB7(H,S,J)}},wNM=function(H,C,S){var w;
return(w=H.ct)==null?void 0:Km1(w,function(){return ZsU(H,C)},S,function(A){var J;
if(H.ct instanceof tmW&&((J=C.ih)==null?0:J.pY6))try{var c;(c=H.cache)==null||pli(c,ZsU(H,C),A,C.ih.zHT,H.axk-120)}catch(Y){H.reportError(new WC(24,"ELX:write",Y))}})},AaM=function(H,C,S){var w;
if((w=C.ih)!=null&&w.x9R)try{var A,J=(A=H.cache)==null?void 0:kZb(A,ZsU(H,C),C.ih.zHT);return J?S?_.Uw(H.v0,function(){return _.QO(J,2)},"a"):J:void 0}catch(c){H.reportError(new WC(23,"RXO:read",c))}},Ja_=function(H,C,S){var w={stack:[],
error:void 0,hasError:!1};try{if(!C.tvK)throw new WC(29,"SDF:notready");return Km1(y8$(w,new IaM(H.v0,0,H.state)),function(){return ZsU(H,C)},S)}catch(A){w.error=A,w.hasError=!0}finally{NFZ(w)}},FB7=function(H,C,S){var w={stack:[],
error:void 0,hasError:!1};try{var A=jEP(H,S);return Km1(y8$(w,new Uxb(H.v0,A)),function(){return[]},C)}catch(J){w.error=J,w.hasError=!0}finally{NFZ(w)}},ZsU=function(H,C){return C.m5K?C.m5K:C.v5?_.Uw(H.v0,function(){return C.m5K=XAp(C.v5)},"c"):[]},xxb=function(H){return dU(function(C){if(!Zp(C))return!1;
for(var S=_.Z(Object.entries(H)),w=S.next();!w.done;w=S.next()){var A=_.Z(w.value);w=A.next().value;A=A.next().value;if(!(w in C)){if(A.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!A(C[w]))return!1}return!0})}({vm:function(H){return dU(function(C){return C instanceof H})}(IY)},"");var caP=function(){var H=_.T5();this.JSC$9927_streamzService=H;H.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",zZ("cookie_enabled"),zZ("cookie_3p_enabled"),_.qx("browser"))};
caP.prototype.increment=function(H,C,S){this.JSC$9927_streamzService.JSC$9800_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",H,C,S)};
var iti=function(){var H=_.T5();this.JSC$9951_streamzService=H;H.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",Mx("tick"),zZ("from_st_cookie"))};
iti.prototype.increment=function(H,C){this.JSC$9951_streamzService.JSC$9800_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",H,C)};
var YF7=function(){var H=_.T5();this.JSC$9957_streamzService=H;H.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.qx("status"))};
YF7.prototype.increment=function(H){this.JSC$9957_streamzService.JSC$9800_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",H)};
var zUd=function(){var H=_.T5();this.JSC$9960_streamzService=H;H.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.qx("stage"),zZ("is_using_ytd_player"),zZ("has_expandable_tiles"))};
zUd.prototype.increment=function(H,C,S){this.JSC$9960_streamzService.JSC$9800_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",H,C,S)};
var MLd=function(){var H=_.T5();this.JSC$9963_streamzService=H;H.addNewCounter("/client_streamz/youtube/web/response_signature",_.qx("check_status"))};
MLd.prototype.increment=function(H){this.JSC$9963_streamzService.JSC$9800_incrementCounter("/client_streamz/youtube/web/response_signature",H)};
var qFi=function(){var H=_.T5();this.JSC$9966_streamzService=H;H.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.qx("sig"),Mx("de"))};
qFi.prototype.increment=function(H,C){this.JSC$9966_streamzService.JSC$9800_incrementCounter("/client_streamz/youtube/web/e_sig_log",H,C)};
var T61=function(){var H=_.T5();this.JSC$9969_streamzService=H;H.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.qx("sig"),Mx("de"))};
T61.prototype.increment=function(H,C){this.JSC$9969_streamzService.JSC$9800_incrementCounter("/client_streamz/youtube/web/e_sig_en",H,C)};
_.mjP=function(){var H=_.T5();this.JSC$9972_streamzService=H;H.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.qx("action"))};
_.mjP.prototype.increment=function(H){this.JSC$9972_streamzService.JSC$9800_incrementCounter("/client_streamz/youtube/web/enforcement_intent",H)};var Cq=window;var WBb=(new Date).getTime();_.hb.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.hb.createSet("action","cite","data","formaction","href","manifest","poster","src");var yab=function(H){this.servicePromise_=H;H.then((0,_.Xv)(function(){},this),function(){},this)},N6n=function(H,C,S){H.servicePromise_.then(function(w){var A=w[C];
if(!A)throw Error("Ka`"+C);return A.apply(w,S)})},eU7=function(H,C,S){for(var w=Array(arguments.length-2),A=2;A<arguments.length;A++)w[A-2]=arguments[A];
A=bsP(H,C).then(function(J){return J.apply(null,w)},function(J){J=Error("La`"+C+"`"+H,{cause:J});
delete E1b[C];return _.kj(J)});
return new yab(A)},E1b={},bsP=function(H,C){var S=E1b[C];
if(S)return S;S=(S=_.gh(C))?_.N3(S):(new _.Es(function(w,A){var J=(new kS(document)).createElement("SCRIPT");J.async=!0;_.JY(J,_.Ot(Wj7(H)));J.onload=J.onreadystatechange=function(){J.readyState&&J.readyState!="loaded"&&J.readyState!="complete"||w()};
J.onerror=function(c){A(Error("Ma`"+C+"`"+H,{cause:c}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(J)})).then(function(){var w=_.gh(C);
if(!w)throw Error("Na`"+C+"`"+H);return w});
return E1b[C]=S};var ub_={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},fp_=function(){var H=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=Qai(function(){return _.z(function(C){if(C.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?C.return(Promise.resolve()):C.yield(GRV(H),2);H.rsaForList.length>
0&&document.addEventListener("click",H.requestAccessForHelpPanel);_.oT(C)})});
this.requestAccessForHelpPanel=function(){if(!(H.rsaForPromises.length>0)){for(var C=_.Z(H.rsaForList),S=C.next();!S.done;S=C.next()){S=S.value;try{H.rsaForPromises.push(document.requestStorageAccessFor(S))}catch(w){}}Promise.all(H.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){H.reset()})}}};
fp_.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var GRV=function(H){var C,S,w,A;return _.z(function(J){switch(J.nextAddress){case 1:C=_.Z(Object.values(ub_)),S=C.next();case 2:if(S.done){J.jumpTo(0);break}w=S.value;_.en(J,5);return J.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:w}),7);case 7:A=J.yieldResult;A.state!=="granted"&&H.rsaForList.push(w);_.xB(J,3);break;case 5:_.Vx(J);J.jumpTo(0);break;case 3:S=C.next(),J.jumpTo(2)}})};(new fp_).initialize();var v11=function(H){this.JSC$9986_loader_=H};
v11.prototype.startHelp=function(H){N6n(this.JSC$9986_loader_,"startHelp",arguments)};
v11.prototype.JSC$9988_loadChatSupport=function(H){N6n(this.JSC$9986_loader_,"loadChatSupport",arguments)};
var VLW=function(H,C){C=C||{};H=eU7(lpM,"help.service.Lazy.create",H,{apiKey:C.apiKey||C.apiKey,asxUiUri:C.asxUiUri||C.asxUiUri,environment:C.environment||C.environment,flow:C.flow||C.flow,frdProductData:C.frdProductData||C.frdProductData,frdProductDataSerializedJspb:C.frdProductDataSerializedJspb||C.frdProductDataSerializedJspb,helpCenterPath:C.helpCenterPath||C.helpCenterPath,locale:C.locale||C.locale||"en-US".replace(/-/g,"_"),nonce:C.nonce||C.nonce,productData:C.productData||C.productData,receiverUri:C.receiverUri||
C.receiverUri,renderApiUri:C.renderApiUri||C.renderApiUri,theme:C.theme||C.theme,window:C.window||C.window});return new v11(H)},lpM=new KC(kbU,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var o1b=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(o1b,_.Jc);var Os_=_.Et(o1b);var XN_=[0,_.jM,xv,eVZ];_.QEn=new function(H,C,S,w){this.configType=H;this.flagName=S;this.defaultValue=w;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 PW1=function(){this.retriever=_.JA().resolve(djU)};_.s6={get payments(){return window.payments}};P5i(Node);P5i(Element);var $j7=P5i(HTMLElement);P5i(SVGElement);var pNP,kR1,wa,hUi;pNP=function(H){return typeof H.className=="string"?H.className:H.getAttribute&&H.getAttribute("class")||""};
kR1=function(H){return H.classList?H.classList:pNP(H).match(/\S+/g)||[]};
_.SK=function(H,C){typeof H.className=="string"?H.className=C:H.setAttribute&&H.setAttribute("class",C)};
_.s2=function(H,C){return H.classList?H.classList.contains(C):_.nU(kR1(H),C)};
_.FB=function(H,C){if(H.classList)H.classList.add(C);else if(!_.s2(H,C)){var S=pNP(H);_.SK(H,S+(S.length>0?" "+C:C))}};
wa=function(H,C){if(H.classList)Array.prototype.forEach.call(C,function(A){_.FB(H,A)});
else{var S={};Array.prototype.forEach.call(kR1(H),function(A){S[A]=!0});
Array.prototype.forEach.call(C,function(A){S[A]=!0});
C="";for(var w in S)C+=C.length>0?" "+w:w;_.SK(H,C)}};
_.Ag=function(H,C){H.classList?H.classList.remove(C):_.s2(H,C)&&_.SK(H,Array.prototype.filter.call(kR1(H),function(S){return S!=C}).join(" "))};
hUi=function(H,C){H.classList?Array.prototype.forEach.call(C,function(S){_.Ag(H,S)}):_.SK(H,Array.prototype.filter.call(kR1(H),function(S){return!_.nU(C,S)}).join(" "))};var n17=function(H){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=H.document},DjM=function(H,C){ra7(H);
var S=document.createElement("div"),w;(w=C.parentNode)==null||w.insertBefore(S,C);S.tabIndex=0;S.id="fc-focus-trap-pre-div";S=document.createElement("div");var A;(A=C.parentNode)==null||A.insertBefore(S,C.nextSibling);S.tabIndex=0;S.id="fc-focus-trap-post-div";var J=B6d(H,C),c=B6d(H,C,!0);J&&c&&(H.focusChangeHandler=function(){var Y=H.document.activeElement;if(Y)if(_.gS(C,Y))H.previouslyFocusedElement=Y;else if(Y===H.document.activeElement)switch(H.previouslyFocusedElement){case J:c.focus();H.previouslyFocusedElement=
c;break;default:J.focus(),H.previouslyFocusedElement=J}},H.document.addEventListener("focus",H.focusChangeHandler,!0),H.document.addEventListener("focusin",H.focusChangeHandler))},ra7=function(H){H.focusChangeHandler&&(document.removeEventListener("focus",H.focusChangeHandler,!0),document.removeEventListener("focusin",H.focusChangeHandler),H.focusChangeHandler=null);
var C;(C=document.getElementById("fc-focus-trap-pre-div"))==null||C.remove();var S;(S=document.getElementById("fc-focus-trap-post-div"))==null||S.remove()},KBW=function(H,C,S,w,A){S=S===void 0?!0:S;
var J;A=(J=A===void 0?null:A)!=null?J:B6d(H,C,w===void 0?!1:w);A!==null&&(A.focus(),S&&DjM(H,C))};
n17.prototype.disableButton=function(H,C){C=C===void 0?null:C;H.disabled=!0;C&&_.FB(H,C)};
var B6d=function(H,C,S){S=S===void 0?!1:S;if(SU0(C)&&!S)return C;var w=S?[].slice.call(C.children,0).reverse():C.children;w=_.Z(w);for(var A=w.next();!A.done;A=w.next())if(A=A.value,$j7(A)&&(A=B6d(H,A,S)))return A;return SU0(C)&&S?C:null};var tLY=function(H){this.originalBodyOverflow="";this.JSC$10013_domHelper=Ol(H)};
tLY.prototype.enableScrolling=function(){this.JSC$10013_domHelper.JSC$9339_document_.body.style.overflow=this.originalBodyOverflow};_.Zh(_.Qy,_.Op);_.F=_.Qy.prototype;_.F.JSC$10016_id_=0;_.F.disposeInternal=function(){_.Qy.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$10014_listener_;delete this.handler_};
_.F.start=function(H){this.stop();this.JSC$10016_id_=BC(this.callback_,H!==void 0?H:this.JSC$10014_interval_)};
_.F.stop=function(){this.isActive()&&_.s$.clearTimeout(this.JSC$10016_id_);this.JSC$10016_id_=0};
_.F.fire=function(){this.stop();this.JSC$10016_doAction_()};
_.F.isActive=function(){return this.JSC$10016_id_!=0};
_.F.JSC$10016_doAction_=function(){this.JSC$10016_id_=0;this.JSC$10014_listener_&&this.JSC$10014_listener_.call(this.handler_)};_.qQ=function(H){_.Op.call(this);this.handler_=H;this.JSC$10017_keys_={}};
_.Zh(_.qQ,_.Op);var LB7=[];_.qQ.prototype.listen=function(H,C,S,w){Array.isArray(C)||(C&&(LB7[0]=C.toString()),C=LB7);for(var A=0;A<C.length;A++){var J=_.PI(H,C[A],S||this.handleEvent,w||!1,this.handler_||this);if(!J)break;this.JSC$10017_keys_[J.key]=J}return this};
_.qQ.prototype.listenOnce=function(H,C,S,w){return g11(this,H,C,S,w)};
var g11=function(H,C,S,w,A,J){if(Array.isArray(S))for(var c=0;c<S.length;c++)g11(H,C,S[c],w,A,J);else{C=O4(C,S,w||H.handleEvent,A,J||H.handler_||H);if(!C)return H;H.JSC$10017_keys_[C.key]=C}return H};
_.qQ.prototype.unlisten=function(H,C,S,w,A){if(Array.isArray(C))for(var J=0;J<C.length;J++)this.unlisten(H,C[J],S,w,A);else if(H=mH1(H,C,S||this.handleEvent,_.U$(w)?!!w.capture:!!w,A||this.handler_||this))XH(H),delete this.JSC$10017_keys_[H.key];return this};
_.qQ.prototype.removeAll=function(){_.hb.forEach(this.JSC$10017_keys_,function(H,C){this.JSC$10017_keys_.hasOwnProperty(C)&&XH(H)},this);
this.JSC$10017_keys_={}};
_.qQ.prototype.disposeInternal=function(){_.qQ.superClass_.disposeInternal.call(this);this.removeAll()};
_.qQ.prototype.handleEvent=function(){throw Error("Oa");};var Ay=function(){_.Op.call(this);this.services_={}};
_.Zh(Ay,_.Op);Ay.prototype.connect=function(H){H&&H()};
Ay.prototype.isConnected=function(){return!0};
Ay.prototype.registerService=function(H,C,S){this.services_[H]={callback:C,objectPayload:!!S}};
Ay.prototype.getService=function(H,C){var S=this.services_[H];return S?S:this.defaultService_?{callback:_.l9(this.defaultService_,H),objectPayload:_.U$(C)}:null};
var Ujn=function(H,C){if(C&&typeof H==="string")try{return JSON.parse(H)}catch(S){return null}else if(!C&&typeof H!=="string")return(0,_.Kh)(H);return H};
Ay.prototype.disposeInternal=function(){Ay.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 Jy=function(H,C){this.sequence_=[];this.onCancelFunction_=H;this.defaultScope_=C||null;this.hadError_=this.fired_=!1;this.result_=void 0;this.silentlyCanceled_=this.blocking_=this.blocked_=!1;this.unhandledErrorId_=0;this.parent_=null;this.branches_=0};
Jy.prototype.cancel=function(H){if(this.fired_)this.result_ instanceof Jy&&this.result_.cancel();else{if(this.parent_){var C=this.parent_;delete this.parent_;H?C.cancel(H):(C.branches_--,C.branches_<=0&&C.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new Fs(this))}};
Jy.prototype.continue_=function(H,C){this.blocked_=!1;RU_(this,H,C)};
var RU_=function(H,C,S){H.fired_=!0;H.result_=S;H.hadError_=!C;IpV(H)},xjb=function(H){if(H.fired_){if(!H.silentlyCanceled_)throw new apY(H);
H.silentlyCanceled_=!1}};
Jy.prototype.callback=function(H){xjb(this);RU_(this,!0,H)};
Jy.prototype.errback=function(H){xjb(this);RU_(this,!1,H)};
var Hp_=function(H,C,S){ZK(H,C,null,S)};
Jy.prototype.finally=function(H){var C=this;return ipU(new Promise(function(S,w){ZK(C,function(A){H();S(A)},function(A){H();
w(A)})}))};
var ZK=function(H,C,S,w){var A=H.fired_;A||(C===S?C=S=kc(C):(C=kc(C),S=kc(S)));H.sequence_.push([C,S,w]);A&&IpV(H)};
Jy.prototype.then=function(H,C,S){var w,A,J=new _.Es(function(c,Y){A=c;w=Y});
ZK(this,A,function(c){c instanceof Fs?J.cancel():w(c);return CEW},this);
return J.then(H,C,S)};
GVi(Jy);var SgM=function(H,C){C instanceof Jy?Hp_(H,(0,_.Xv)(C.branch,C)):Hp_(H,function(){return C})};
Jy.prototype.branch=function(H){var C=new Jy;ZK(this,C.callback,C.errback,C);H&&(C.parent_=this,this.branches_++);return C};
Jy.prototype.isError=function(H){return H instanceof Error};
var s6M=function(H){return CC(H.sequence_,function(C){return typeof C[1]==="function"})},CEW={},IpV=function(H){if(H.unhandledErrorId_&&H.fired_&&s6M(H)){var C=H.unhandledErrorId_,S=j6Y[C];
S&&(_.s$.clearTimeout(S.JSC$10034_id_),delete j6Y[C]);H.unhandledErrorId_=0}H.parent_&&(H.parent_.branches_--,delete H.parent_);C=H.result_;for(var w=S=!1;H.sequence_.length&&!H.blocked_;){var A=H.sequence_.shift(),J=A[0],c=A[1];A=A[2];if(J=H.hadError_?c:J)try{var Y=J.call(A||H.defaultScope_,C);Y===CEW&&(Y=void 0);Y!==void 0&&(H.hadError_=H.hadError_&&(Y==C||H.isError(Y)),H.result_=C=Y);if(f9_(C)||typeof _.s$.Promise==="function"&&C instanceof _.s$.Promise)w=!0,H.blocked_=!0}catch(M){C=M,H.hadError_=
!0,s6M(H)||(S=!0)}}H.result_=C;w&&(Y=(0,_.Xv)(H.continue_,H,!0),w=(0,_.Xv)(H.continue_,H,!1),C instanceof Jy?(ZK(C,Y,w),C.blocking_=!0):C.then(Y,w));S&&(C=new wh7(C),j6Y[C.JSC$10034_id_]=C,H.unhandledErrorId_=C.JSC$10034_id_)},ipU=function(H){var C=new Jy;
H.then(function(S){C.callback(S)},function(S){C.errback(S)});
return C},apY=function(){_.CU.call(this)};
_.Zh(apY,_.CU);apY.prototype.message="Deferred has already fired";apY.prototype.name="AlreadyCalledError";var Fs=function(){_.CU.call(this)};
_.Zh(Fs,_.CU);Fs.prototype.message="Deferred was canceled";Fs.prototype.name="CanceledError";var wh7=function(H){this.JSC$10034_id_=_.s$.setTimeout((0,_.Xv)(this.throwError,this),0);this.JSC$10034_error_=H};
wh7.prototype.throwError=function(){delete j6Y[this.JSC$10034_id_];throw this.JSC$10034_error_;};
var j6Y={};var AEi={1:"NativeMessagingTransport"},JEd=["pu","lru","pru","lpu","ppu"],ZpP=function(){for(var H=10,C=FlY,S=C.length,w="";H-- >0;)w+=C.charAt(Math.floor(Math.random()*S));return w},FlY="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var cw=function(H){_.Op.call(this);this.JSC$10037_domHelper_=H||Ol()};
_.Zh(cw,_.Op);cw.prototype.transportType=0;cw.prototype.getWindow=function(){return this.JSC$10037_domHelper_.getWindow()};
cw.prototype.getName=function(){return AEi[String(this.transportType)]||""};var YV=function(H,C,S,w,A){cw.call(this,S);this.JSC$10040_channel_=H;this.protocolVersion_=A||2;this.peerHostname_=C||"*";this.JSC$10040_eventHandler_=new _.qQ(this);this.maybeAttemptToConnectTimer_=new _.MQ(100,this.getWindow());this.oneSidedHandshake_=!!w;this.setupAckReceived_=new Jy;this.setupAckSent_=new Jy;this.JSC$10040_connected_=new Jy;this.endpointId_=ZpP();this.peerEndpointId_=null;this.oneSidedHandshake_?cEU(this.JSC$10040_channel_)==1?SgM(this.JSC$10040_connected_,this.setupAckReceived_):
SgM(this.JSC$10040_connected_,this.setupAckSent_):(SgM(this.JSC$10040_connected_,this.setupAckReceived_),this.protocolVersion_==2&&SgM(this.JSC$10040_connected_,this.setupAckSent_));Hp_(this.JSC$10040_connected_,this.notifyConnected_,this);this.JSC$10040_connected_.callback(!0);this.JSC$10040_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.Zh(YV,cw);YV.prototype.peerProtocolVersion_=null;YV.prototype.initialized_=!1;YV.prototype.transportType=1;var Ygb={};YV.prototype.sendTimerId_=0;
var qgn=function(H){var C=H.event_.data;if(typeof C!=="string")return!1;var S=C.indexOf("|"),w=C.indexOf(":");if(S==-1||w==-1)return!1;var A=C.substring(0,S);S=C.substring(S+1,w);C=C.substring(w+1);if(w=za[A])return w.xpcDeliver(S,C,H.event_.origin),!0;w=ztY(C)[0];for(var J in za){var c=za[J];if(cEU(c)==1&&!c.isConnected()&&S=="tp"&&(w=="SETUP"||w=="SETUP_NTPV2")&&MIY(c,H.event_.origin))return delete za[c.name],c.name=A,za[A]=c,c.xpcDeliver(S,C),!0}return!1},Th_=function(H){H.protocolVersion_!=2||
H.peerProtocolVersion_!=null&&H.peerProtocolVersion_!=2||H.send("tp","SETUP_NTPV2,"+H.endpointId_);
H.peerProtocolVersion_!=null&&H.peerProtocolVersion_!=1||H.send("tp","SETUP")},mnd=function(H,C){if(H.protocolVersion_!=2||H.peerProtocolVersion_!=null&&H.peerProtocolVersion_!=2||C!=2){if(H.peerProtocolVersion_!=null&&H.peerProtocolVersion_!=1||C!=1)return;
H.send("tp","SETUP_ACK")}else H.send("tp","SETUP_ACK_NTPV2");H.setupAckSent_.fired_||H.setupAckSent_.callback(!0)},WlP=function(H,C){C>H.peerProtocolVersion_&&(H.peerProtocolVersion_=C);
H.peerProtocolVersion_==1&&(H.setupAckSent_.fired_||H.oneSidedHandshake_||H.setupAckSent_.callback(!0),H.peerEndpointId_=null)};
_.F=YV.prototype;_.F.connect=function(){var H=this.getWindow(),C=_.I0(H),S=Ygb[C];typeof S!=="number"&&(S=0);S==0&&_.PI(H.postMessage?H:H.document,"message",qgn,!1,YV);Ygb[C]=S+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.F.maybeAttemptToConnect_=function(){var H=cEU(this.JSC$10040_channel_)==0;this.oneSidedHandshake_&&H||this.JSC$10040_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),Th_(this))};
_.F.send=function(H,C){var S=this.JSC$10040_channel_.peerWindowObject_;S&&(this.send=function(w,A){var J=this,c=this.JSC$10040_channel_.name;this.sendTimerId_=BC(function(){J.sendTimerId_=0;try{var Y=S.postMessage?S:S.document;Y.postMessage&&Y.postMessage(c+"|"+w+":"+A,J.peerHostname_)}catch(M){}},0)},this.send(H,C))};
_.F.notifyConnected_=function(){var H=this.JSC$10040_channel_,C=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;H.isConnected()||H.connectionDelay_&&H.connectionDelay_.isActive()||(H.state_=2,_.Ak(H.connectionDelay_),C!==void 0?(H.connectionDelay_=new _.Qy(H.connectCb_,C),H.connectionDelay_.start()):(H.connectionDelay_=null,H.connectCb_()))};
_.F.disposeInternal=function(){if(this.initialized_){var H=this.getWindow(),C=_.I0(H),S=Ygb[C];Ygb[C]=S-1;S==1&&_.$c(H.postMessage?H:H.document,"message",qgn,!1,YV)}this.sendTimerId_&&(_.s$.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.Ak(this.JSC$10040_eventHandler_);delete this.JSC$10040_eventHandler_;_.Ak(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10040_connected_.cancel();delete this.JSC$10040_connected_;delete this.send;YV.superClass_.disposeInternal.call(this)};
var ztY=function(H){H=H.split(",");H[1]=H[1]||null;return H};var Nh1;_.ML=function(H){if(H.getValues&&typeof H.getValues=="function")return H.getValues();if(typeof Map!=="undefined"&&H instanceof Map||typeof Set!=="undefined"&&H instanceof Set)return Array.from(H.values());if(typeof H==="string")return H.split("");if(_.Dw(H)){for(var C=[],S=H.length,w=0;w<S;w++)C.push(H[w]);return C}return _.hb.getValues(H)};
_.yEM=function(H){if(H.getKeys&&typeof H.getKeys=="function")return H.getKeys();if(!H.getValues||typeof H.getValues!="function"){if(typeof Map!=="undefined"&&H instanceof Map)return Array.from(H.keys());if(!(typeof Set!=="undefined"&&H instanceof Set)){if(_.Dw(H)||typeof H==="string"){var C=[];H=H.length;for(var S=0;S<H;S++)C.push(S);return C}return _.hb.getKeys(H)}}};
Nh1=function(H,C,S){if(H.forEach&&typeof H.forEach=="function")H.forEach(C,S);else if(_.Dw(H)||typeof H==="string")Array.prototype.forEach.call(H,C,S);else for(var w=_.yEM(H),A=_.ML(H),J=A.length,c=0;c<J;c++)C.call(S,A[c],w&&w[c],H)};var jN7,b0,eK,vT7,bpW,etM,ETb,fYd,u97;
_.jR=function(H,C){this.JSC$10045_domain_=this.userInfo_=this.scheme_="";this.JSC$10045_port_=null;this.fragment_=this.JSC$10045_path_="";this.JSC$10045_ignoreCase_=!1;var S;H instanceof _.jR?(this.JSC$10045_ignoreCase_=C!==void 0?C:H.JSC$10045_ignoreCase_,_.qL(this,H.scheme_),this.userInfo_=H.userInfo_,_.Ta(this,H.JSC$10045_domain_),_.mh(this,H.JSC$10045_port_),_.Ww(this,H.getPath()),_.yS(this,H.JSC$10045_queryData_.clone()),_.NL(this,H.fragment_)):H&&(S=_.Cv(String(H)))?(this.JSC$10045_ignoreCase_=
!!C,_.qL(this,S[1]||"",!0),this.userInfo_=b0(S[2]||""),_.Ta(this,S[3]||"",!0),_.mh(this,S[4]),_.Ww(this,S[5]||"",!0),_.yS(this,S[6]||"",!0),_.NL(this,S[7]||"",!0)):(this.JSC$10045_ignoreCase_=!!C,this.JSC$10045_queryData_=new _.E2(null,this.JSC$10045_ignoreCase_))};
_.jR.prototype.toString=function(){var H=[],C=this.scheme_;C&&H.push(eK(C,bpW,!0),":");var S=this.JSC$10045_domain_;if(S||C=="file")H.push("//"),(C=this.userInfo_)&&H.push(eK(C,bpW,!0),"@"),H.push(_.R6(S).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),S=this.JSC$10045_port_,S!=null&&H.push(":",String(S));if(S=this.getPath())this.JSC$10045_domain_&&S.charAt(0)!="/"&&H.push("/"),H.push(eK(S,S.charAt(0)=="/"?ETb:etM,!0));(S=this.JSC$10045_queryData_.toString())&&H.push("?",S);(S=this.fragment_)&&H.push("#",
eK(S,u97));return H.join("")};
_.jR.prototype.resolve=function(H){var C=this.clone(),S=!!H.scheme_;S?_.qL(C,H.scheme_):S=!!H.userInfo_;S?C.userInfo_=H.userInfo_:S=!!H.JSC$10045_domain_;S?_.Ta(C,H.JSC$10045_domain_):S=H.JSC$10045_port_!=null;var w=H.getPath();if(S)_.mh(C,H.JSC$10045_port_);else if(S=!!H.JSC$10045_path_){if(w.charAt(0)!="/")if(this.JSC$10045_domain_&&!this.JSC$10045_path_)w="/"+w;else{var A=C.getPath().lastIndexOf("/");A!=-1&&(w=C.getPath().slice(0,A+1)+w)}A=w;if(A==".."||A==".")w="";else if(_.z6(A,"./")||_.z6(A,
"/.")){w=_.AV(A,"/");A=A.split("/");for(var J=[],c=0;c<A.length;){var Y=A[c++];Y=="."?w&&c==A.length&&J.push(""):Y==".."?((J.length>1||J.length==1&&J[0]!="")&&J.pop(),w&&c==A.length&&J.push("")):(J.push(Y),w=!0)}w=J.join("/")}else w=A}S?_.Ww(C,w):S=H.JSC$10045_queryData_.toString()!=="";S?_.yS(C,H.JSC$10045_queryData_.clone()):S=!!H.fragment_;S&&_.NL(C,H.fragment_);return C};
_.jR.prototype.clone=function(){return new _.jR(this)};
_.qL=function(H,C,S){H.scheme_=S?b0(C,!0):C;H.scheme_&&(H.scheme_=H.scheme_.replace(/:$/,""));return H};
_.Ta=function(H,C,S){H.JSC$10045_domain_=S?b0(C,!0):C;return H};
_.mh=function(H,C){if(C){C=Number(C);if(isNaN(C)||C<0)throw Error("Pa`"+C);H.JSC$10045_port_=C}else H.JSC$10045_port_=null;return H};
_.jR.prototype.getPath=function(){return this.JSC$10045_path_};
_.Ww=function(H,C,S){H.JSC$10045_path_=S?b0(C,!0):C;return H};
_.yS=function(H,C,S){C instanceof _.E2?(H.JSC$10045_queryData_=C,GA1(H.JSC$10045_queryData_,H.JSC$10045_ignoreCase_)):(S||(C=eK(C,fYd)),H.JSC$10045_queryData_=new _.E2(C,H.JSC$10045_ignoreCase_));return H};
_.xJ=function(H,C,S){H.JSC$10045_queryData_.set(C,S);return H};
_.a7=function(H,C){return H.JSC$10045_queryData_.get(C)};
_.NL=function(H,C,S){H.fragment_=S?b0(C):C;return H};
_.u0=function(H){_.xJ(H,"zx",R7());return H};
_.I7=function(H,C){return H instanceof _.jR?H.clone():new _.jR(H,C)};
jN7=function(H,C){H instanceof _.jR||(H=_.I7(H));C instanceof _.jR||(C=_.I7(C));return H.resolve(C)};
b0=function(H,C){return H?C?decodeURI(H.replace(/%25/g,"%2525")):decodeURIComponent(H):""};
eK=function(H,C,S){return typeof H==="string"?(H=encodeURI(H).replace(C,vT7),S&&(H=H.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),H):null};
vT7=function(H){H=H.charCodeAt(0);return"%"+(H>>4&15).toString(16)+(H&15).toString(16)};
bpW=/[#\/\?@]/g;etM=/[#\?:]/g;ETb=/[#\?]/g;fYd=/[#\?@]/g;u97=/#/g;_.E2=function(H,C){this.count_=this.keyMap_=null;this.encodedQuery_=H||null;this.JSC$10046_ignoreCase_=!!C};
_.Ga=function(H){H.keyMap_||(H.keyMap_=new Map,H.count_=0,H.encodedQuery_&&qtd(H.encodedQuery_,function(C,S){H.add(w4(C),S)}))};
_.F=_.E2.prototype;_.F.getCount=function(){_.Ga(this);return this.count_};
_.F.add=function(H,C){_.Ga(this);this.encodedQuery_=null;H=fq(this,H);var S=this.keyMap_.get(H);S||this.keyMap_.set(H,S=[]);S.push(C);this.count_+=1;return this};
_.F.remove=function(H){_.Ga(this);H=fq(this,H);return this.keyMap_.has(H)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(H).length,this.keyMap_.delete(H)):!1};
_.F.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.F.isEmpty=function(){_.Ga(this);return this.count_==0};
_.F.containsKey=function(H){_.Ga(this);H=fq(this,H);return this.keyMap_.has(H)};
_.F.containsValue=function(H){var C=this.getValues();return _.nU(C,H)};
_.F.forEach=function(H,C){_.Ga(this);this.keyMap_.forEach(function(S,w){S.forEach(function(A){H.call(C,A,w,this)},this)},this)};
_.F.getKeys=function(){_.Ga(this);for(var H=Array.from(this.keyMap_.values()),C=Array.from(this.keyMap_.keys()),S=[],w=0;w<C.length;w++)for(var A=H[w],J=0;J<A.length;J++)S.push(C[w]);return S};
_.F.getValues=function(H){_.Ga(this);var C=[];if(typeof H==="string")this.containsKey(H)&&(C=C.concat(this.keyMap_.get(fq(this,H))));else{H=Array.from(this.keyMap_.values());for(var S=0;S<H.length;S++)C=C.concat(H[S])}return C};
_.F.set=function(H,C){_.Ga(this);this.encodedQuery_=null;H=fq(this,H);this.containsKey(H)&&(this.count_-=this.keyMap_.get(H).length);this.keyMap_.set(H,[C]);this.count_+=1;return this};
_.F.get=function(H,C){if(!H)return C;H=this.getValues(H);return H.length>0?String(H[0]):C};
_.lYd=function(H,C,S){H.remove(C);S.length>0&&(H.encodedQuery_=null,H.keyMap_.set(fq(H,C),_.BZ(S)),H.count_+=S.length)};
_.E2.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var H=[],C=Array.from(this.keyMap_.keys()),S=0;S<C.length;S++){var w=C[S],A=_.R6(w);w=this.getValues(w);for(var J=0;J<w.length;J++){var c=A;w[J]!==""&&(c+="="+_.R6(w[J]));H.push(c)}}return this.encodedQuery_=H.join("&")};
_.E2.prototype.clone=function(){var H=new _.E2;H.encodedQuery_=this.encodedQuery_;this.keyMap_&&(H.keyMap_=new Map(this.keyMap_),H.count_=this.count_);return H};
var fq=function(H,C){C=String(C);H.JSC$10046_ignoreCase_&&(C=C.toLowerCase());return C},GA1=function(H,C){C&&!H.JSC$10046_ignoreCase_&&(_.Ga(H),H.encodedQuery_=null,H.keyMap_.forEach(function(S,w){var A=w.toLowerCase();
w!=A&&(this.remove(w),_.lYd(this,A,S))},H));
H.JSC$10046_ignoreCase_=C};
_.E2.prototype.extend=function(H){for(var C=0;C<arguments.length;C++)Nh1(arguments[C],function(S,w){this.add(w,S)},this)};var vw=function(H,C){Ay.call(this);for(var S=0,w;w=JEd[S];S++)if(w in H&&!/^https?:\/\//.test(H[w]))throw Error("Ra`"+H[w]+"`"+w);this.cfg_=H;this.name=this.cfg_.cn||ZpP();this.JSC$10041_domHelper_=C||Ol();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.qQ(this);H.lpu=H.lpu||zBP(this.JSC$10041_domHelper_.getWindow().location.href)+"/robots.txt";H.ppu=H.ppu||zBP(H.pu||"")+"/robots.txt";za[this.name]=this;mH1(window,"unload",VIb)||O4(window,"unload",VIb)};
_.Zh(vw,Ay);var oTb=RegExp("^%*tp$"),Opi=RegExp("^%+tp$");_.F=vw.prototype;_.F.connectionDelay_=null;_.F.peerWindowDeferred_=null;_.F.transport_=null;_.F.state_=1;_.F.isConnected=function(){return this.state_==2};
_.F.peerWindowObject_=null;_.F.iframeElement_=null;_.F.getConfig=function(){return this.cfg_};
_.F.connect=function(H){this.connectCb_=H||_.Q5;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?Hp_(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.F.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10041_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var H=this.iframeElement_.contentWindow;H||(H=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=H}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$10041_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new YV(this,this.cfg_.ph,this.JSC$10041_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()()};
_.F.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.Ak(this.transport_);this.connectCb_=this.transport_=null;_.Ak(this.connectionDelay_);this.connectionDelay_=null};
_.F.send=function(H,C){if(this.isConnected()){try{var S=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(A){S=!1}if(S){_.U$(C)&&(C=(0,_.Kh)(C));S=this.transport_;var w=S.send;oTb.test(H)&&(H="%"+H);H=H.replace(/[%:|]/g,encodeURIComponent);w.call(S,H,C)}else this.close()}};
_.F.xpcDeliver=function(H,C,S){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.Xv)(this.xpcDeliver,this,H,C,S));else if(MIY(this,S)&&!this.isDisposed()&&this.state_!=3)if(H&&H!="tp")this.isConnected()&&(H=H.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),H=Opi.test(H)?H.substring(1):H,H=this.getService(H,C))&&(C=Ujn(C,H.objectPayload),C!=null&&H.callback(C));else switch(H=this.transport_,S=ztY(C),C=S[1],S[0]){case "SETUP_ACK":WlP(H,1);H.setupAckReceived_.fired_||H.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":H.protocolVersion_==2&&(WlP(H,2),H.setupAckReceived_.fired_||H.setupAckReceived_.callback(!0));break;case "SETUP":WlP(H,1);mnd(H,1);break;case "SETUP_NTPV2":H.protocolVersion_==2&&(S=H.peerProtocolVersion_,WlP(H,2),mnd(H,2),S!=1&&H.peerEndpointId_==null||H.peerEndpointId_==C||Th_(H),H.peerEndpointId_=C)}};
var cEU=function(H){var C=H.cfg_.role;return typeof C==="number"?C:window.parent==H.peerWindowObject_?1:0},MIY=function(H,C){var S=H.cfg_.ph;
return _.YE(C==null?"":String(C))||_.YE(S==null?"":String(S))||C==H.cfg_.ph};
vw.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete za[this.name];_.Ak(this.peerLoadHandler_);delete this.peerLoadHandler_;vw.superClass_.disposeInternal.call(this)};
var VIb=function(){for(var H in za)_.Ak(za[H])},za={};var Q61=function(H,C){this.JSC$10055_win=H;this.allowAdsHttpEndpoint=C;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10055_domHelper=Ol(H);this.scrollManager=new tLY(H);this.accessibilityManager=new n17(H);Xh1(this)},Xh1=function(H){var C=function(){H.allowAdsPopup&&H.allowAdsPopup.style.setProperty("display","none","important");
H.wallElement.style.setProperty("display","","important");ra7(H.accessibilityManager);KBW(H.accessibilityManager,H.wallElement.querySelector(".fc-dialog-container"),!1,!1,H.wallElement.querySelector(".fc-button-whitelist"));H.scrollManager.enableScrolling()};
H.allowAdsPopup=H.JSC$10055_domHelper.JSC$9341_createDom("DIV",{"class":"fc-whitelist-root"});H.allowAdsPopup.style.setProperty("display","none","important");H.JSC$10055_domHelper.appendChild(H.JSC$10055_domHelper.JSC$9339_document_.body,H.allowAdsPopup);var S=H.JSC$10055_domHelper.JSC$9341_createDom("DIV",{"class":"fc-dialog-overlay"});H.JSC$10055_domHelper.appendChild(H.allowAdsPopup,S);var w=H.JSC$10055_domHelper.JSC$9341_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:C});H.JSC$10055_domHelper.appendChild(H.allowAdsPopup,
w);S=H.JSC$10055_domHelper.JSC$9341_createDom("IFRAME");S.className="fc-whitelist-dialog";S.frameBorder="0";S.id="fc-whitelist-iframe";S.tabIndex="0";_.He(S,H.allowAdsHttpEndpoint);H.JSC$10055_domHelper.appendChild(w,S);w={};w.pu=_.Qv(H.allowAdsHttpEndpoint).toString();w.tp=1;w.cn="fc-whitelist-channel";w.ifrid=S.id;w.osh=!0;H.allowAdsCrossPageChannel=new vw(w);H.allowAdsCrossPageChannel.registerService("close",C);H.allowAdsCrossPageChannel.registerService("refresh",function(){H.JSC$10055_win.location.reload()});
H.allowAdsCrossPageChannel.registerService("resize",function(A){if(A){var J=H.allowAdsPopup.querySelector(".fc-whitelist-dialog");A.width&&J.style.setProperty("width",A.width,"important");A.height&&J.style.setProperty("height",A.height,"important")}},!0);
H.allowAdsCrossPageChannel.connect()};
Q61.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10055_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var l0=window,VS=document,dn1=l0.location,PEP=function(){},$nd=/\[native code\]/,oB=function(H,C,S){return H[C]=H[C]||S},phP=function(H){H=H.sort();
for(var C=[],S=void 0,w=0;w<H.length;w++){var A=H[w];A!=S&&C.push(A);S=A}return C},O2=function(){var H;
if((H=Object.create)&&$nd.test(H))H=H(null);else{H={};for(var C in H)H[C]=void 0}return H},Xs=oB(l0,"gapi",{});var da={};da=oB(l0,"___jsl",O2());oB(da,"I",0);oB(da,"hel",10);var kAU=function(){var H=dn1.href;if(da.dpo)var C=da.h;else{C=da.h;var S=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),w=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(H=H&&(S.exec(H)||w.exec(H)))try{C=decodeURIComponent(H[2])}catch(A){}}return C},ht_=function(H){var C=oB(da,"PQ",[]);
da.PQ=[];var S=C.length;if(S===0)H();else for(var w=0,A=function(){++w===S&&H()},J=0;J<S;J++)C[J](A)},nTn=function(H){return oB(oB(da,"H",O2()),H,O2())};var Pw=function(H){this.JSC$10057_obj_=H};
Pw.prototype.value=function(){return this.JSC$10057_obj_};
Pw.prototype.getWidth=function(){return this.JSC$10057_obj_.width};
Pw.prototype.getHeight=function(){return this.JSC$10057_obj_.height};
Pw.prototype.getStyle=function(){return this.JSC$10057_obj_.style};var rE1=function(H){this.JSC$10060_obj_=H||{}};
_.F=rE1.prototype;_.F.value=function(){return this.JSC$10060_obj_};
_.F.setUrl=function(H){this.JSC$10060_obj_.url=H;return this};
_.F.getUrl=function(){return this.JSC$10060_obj_.url};
_.F.getStyle=function(){return this.JSC$10060_obj_.style};
_.F.getId=function(){return this.JSC$10060_obj_.id};
_.F.getContext=function(){return this.JSC$10060_obj_.context};
var Bhd=function(H){H.JSC$10060_obj_.attributes=H.JSC$10060_obj_.attributes||{};return new Pw(H.JSC$10060_obj_.attributes)};var DnW=function(){rE1.apply(this,arguments)};
_.G(DnW,rE1);var Kl_=oB(da,"perf",O2());oB(Kl_,"g",O2());var tIP=oB(Kl_,"i",O2());oB(Kl_,"r",[]);O2();O2();var gTV=function(H,C,S){C&&C.length>0&&(C=LlM(C),S&&S.length>0&&(C+="___"+LlM(S)),C.length>28&&(C=C.substr(0,28)+(C.length-28)),S=C,C=oB(tIP,"_p",O2()),oB(C,S,O2())[H]=(new Date).getTime(),C=Kl_.r,typeof C==="function"?C(H,"_p",S):C.push([H,"_p",S]))},LlM=function(H){return H.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var Und=O2(),Rtd=[],$V=function(H){throw Error("Ua`"+H);};
Rtd.push(["jsl",function(H){for(var C in H)if(Object.prototype.hasOwnProperty.call(H,C)){var S=H[C];typeof S=="object"?da[C]=oB(da,C,[]).concat(S):oB(da,C,S)}if(C=H.u)H=oB(da,"us",[]),H.push(C),(C=/^https:(.*)$/.exec(C))&&H.push("http:"+C[1])}]);
var IY_=/^(\/[a-zA-Z0-9_\-]+)+$/,aYY=[/\/amp\//,/\/amp$/,/^\/amp$/],xnb=/^[a-zA-Z0-9\-_\.,!]+$/,Hv1=/^gapi\.loaded_[0-9]+$/,iv1=/^[a-zA-Z0-9,._-]+$/,ja1=function(H,C,S,w,A){var J=H.split(";"),c=J.shift(),Y=Und[c],M=null;Y?M=Y(J,C,S,w):$V("no hint processor for: "+c);M||$V("failed to generate load url");C=M;S=C.match(C5U);(w=C.match(SEn))&&w.length===1&&sa_.test(C)&&S&&S.length===1||$V("failed sanity: "+H);try{H="?";if(A&&A.length>0){dD6(A);var m=A.join(",");M=M+"?le="+m;H="&"}if(da.rol){var W=da.ol;
W&&W.length&&(M=""+M+H+"ol="+W.length)}}catch(y){}return M},JAn=function(H,C,S,w){H=wAi(H);
Hv1.test(S)||$V("invalid_callback");C=AA1(C);w=w&&w.length?AA1(w):null;var A=function(J){return encodeURIComponent(J).replace(/%2C/g,",")};
return[encodeURIComponent(H.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",A(H.version),"/m=",A(C),w?"/exm="+A(w):"","/rt=j/sv=1/d=1/ed=1",H.activeMods?"/am="+A(H.activeMods):"",H.resourceSig?"/rs="+A(H.resourceSig):"",H.zcms?"/t="+A(H.zcms):"","/cb=",A(S)].join("")},wAi=function(H){H.charAt(0)!=="/"&&$V("relative path");
for(var C=H.substring(1).split("/"),S=[];C.length;){H=C.shift();if(!H.length||H.indexOf(".")==0)$V("empty/relative directory");else if(H.indexOf("=")>0){C.unshift(H);break}S.push(H)}H={};for(var w=0,A=C.length;w<A;++w){var J=C[w].split("="),c=decodeURIComponent(J[0]),Y=decodeURIComponent(J[1]);J.length==2&&c&&Y&&(H[c]=H[c]||Y)}C="/"+S.join("/");IY_.test(C)||$V("invalid_prefix");S=0;for(w=aYY.length;S<w;++S)aYY[S].test(C)&&$V("invalid_prefix");S=FCi(H,"k",!0);w=FCi(H,"am");A=FCi(H,"rs");H=FCi(H,"t");
return{pathPrefix:C,version:S,activeMods:w,resourceSig:A,zcms:H}},AA1=function(H){for(var C=[],S=0,w=H.length;S<w;++S){var A=H[S].replace(/\./g,"_").replace(/-/g,"_");
iv1.test(A)&&C.push(A)}return C.join(",")},FCi=function(H,C,S){H=H[C];
!H&&S&&$V("missing: "+C);if(H){if(xnb.test(H))return H;$V("invalid: "+C)}return null},sa_=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,SEn=/\/cb=/g,C5U=/\/\//g;
Und.m=function(H,C,S,w){(H=H[0])||$V("missing_hint");return"https://apis.google.com"+JAn(H,C,S,w)};
var Zvd=decodeURI("%73cript"),cA7=/^[-+_0-9\/A-Za-z]+={0,2}$/,YEb=function(H,C){for(var S=[],w=0;w<H.length;++w){var A=H[w],J;if(J=A){a:{for(J=0;J<C.length;J++)if(C[J]===A)break a;J=-1}J=J<0}J&&S.push(A)}return S},z3P=function(){var H=da.nonce;
return H!==void 0?H&&H===String(H)&&H.match(cA7)?H:da.nonce=null:VS.querySelector?(H=VS.querySelector("script[nonce]"))?(H=H.nonce||H.getAttribute("nonce")||"",H&&H===String(H)&&H.match(cA7)?da.nonce=H:da.nonce=null):null:null},T4M=function(H){if(VS.readyState!="loading")M$7(H);
else{var C=z3P(),S="";C!==null&&(S=' nonce="'+C+'"');H="<"+Zvd+' src="'+encodeURI(H)+'"'+S+"></"+Zvd+">";VS.write(qEY?qEY.createHTML(H):H)}},M$7=function(H){var C=VS.createElement(Zvd);
C.setAttribute("src",qEY?qEY.createScriptURL(H):H);H=z3P();H!==null&&C.setAttribute("nonce",H);C.async="true";(H=VS.getElementsByTagName(Zvd)[0])?H.parentNode.insertBefore(C,H):(VS.head||VS.body||VS.documentElement).appendChild(C)},WC1=function(H,C,S){mEn(function(){var w=C===kAU()?oB(Xs,"_",O2()):O2();
w=oB(nTn(C),"_",w);H(w)},S)},DZ0=function(H,C){var S=C||{};
typeof C=="function"&&(S={},S.callback=C);var w=(C=S)&&C._c;if(w)for(var A=0;A<Rtd.length;A++){var J=Rtd[A][0],c=Rtd[A][1];c&&Object.prototype.hasOwnProperty.call(w,J)&&c(w[J],H,C)}C=[];H?C=H.split(":"):S.features&&(C=S.features);if(!(H=S.h)&&(H=kAU(),!H))throw Error("Va");yA1(C||[],S,H)},yA1=function(H,C,S){H=phP(H)||[];
var w=C.callback,A=C.config,J=C.timeout,c=C.ontimeout,Y=C.onerror,M=void 0;typeof Y=="function"&&(M=Y);var m=null,W=!1;if(J&&!c||!J&&c)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";Y=oB(nTn(S),"r",[]).sort();var y=oB(nTn(S),"L",[]).sort(),N=da.le||[],b=[].concat(Y),u=function(R,L){if(W)return 0;l0.clearTimeout(m);y.push.apply(y,O);var t=((Xs||{}).config||{}).update;t?t(A):A&&oB(da,"cu",[]).push(A);if(L){gTV("me0",R,b);try{WC1(L,S,M)}finally{gTV("me1",R,b)}}return 1};
J>0&&(m=l0.setTimeout(function(){W=!0;c()},J));
var O=YEb(H,y);if(O.length){O=YEb(H,Y);var d=oB(da,"CP",[]),p=d.length;d[p]=function(R){if(!R)return 0;gTV("ml1",O,b);var L=function(g){d[p]=null;u(O,R)&&ht_(function(){w&&w();g()})},t=function(){var g=d[p+1];
g&&g()};
p>0&&d[p-1]?d[p]=function(){L(t)}:L(t)};
if(O.length){var k="loaded_"+da.I++;Xs[k]=function(R){d[p](R);Xs[k]=null};
H=ja1(S,O,"gapi."+k,Y,N);Y.push.apply(Y,O);gTV("ml0",O,b);C.sync||l0.___gapisync?T4M(H):M$7(H)}else d[p](PEP)}else u(O)&&w&&w()},N4d;
var bvb=null,EBV=_.s$.trustedTypes;if(EBV&&EBV.createPolicy){try{bvb=EBV.createPolicy("goog#gapi",{createHTML:Wpi,createScript:Wpi,createScriptURL:Wpi})}catch(H){_.s$.console&&_.s$.console.error(H.message)}N4d=bvb}else N4d=bvb;var qEY=N4d,mEn=function(H,C){if(da.hee&&da.hel>0)try{return H()}catch(S){C&&C(S),da.hel--,DZ0("debug_error",function(){try{window.___jsl.hefn(S)}catch(w){throw S;}})}else try{return H()}catch(S){throw C&&C(S),S;
}},e3U=Xs.load;
e3U&&oB(da,"ol",[]).push(e3U);Xs.load=function(H,C){return mEn(function(){return DZ0(H,C)})};var nB0;var G9n=function(H,C){var S=S||[];this.serviceId_=H;this.moduleId_=C||null;this.dependencies_=[];u0P(this,S)};
G9n.prototype.toString=function(){return this.serviceId_};
G9n.prototype.getModuleId=function(){return this.moduleId_};
var u0P=function(H,C){var S=!1;S=S===void 0?!1:S;H.dependencies_=H.dependencies_.concat(C);if(S){if(!H.moduleId_)throw Error("Wa`"+H.serviceId_);C.map(function(w){return w.getModuleId()}).forEach(function(w){rA6(function(A){A.addExtraEdge(H.moduleId_,w)})})}};var v_w=new G9n("MpJwZc","MpJwZc");var yME=new _.Ow("a"),VjU=new _.Ow("c"),lg6=function(H,C,S){_.Xc.call(this,H,C);this.node=C;this.kind=S};
_.G(lg6,_.Xc);var fQd=function(){this.JSC$10073_keys_={};this.urlPrefix_="";this.JSC$10073_queryData_={}};
fQd.prototype.toString=function(){var H=this.urlPrefix_+vBM(this),C=_.u5(this.JSC$10073_queryData_),S="";C!=""&&(S="?"+C);return H+S};
var lQd=function(H){H=pq(H,"md");return!!H&&H!=="0"},vBM=function(H){var C=[],S=(0,_.Xv)(function(w){this.JSC$10073_keys_[w]!==void 0&&C.push(w+"="+this.JSC$10073_keys_[w])},H);
lQd(H)?(S("md"),S("k"),S("ck"),S("am"),S("rs"),S("gssmodulesetproto"),S("slk"),S("dti")):(S("sdch"),S("k"),S("ck"),S("am"),S("rt"),"d"in H.JSC$10073_keys_||kV(H,"d","0"),S("d"),S("exm"),S("excm"),(H.JSC$10073_keys_.excm||H.JSC$10073_keys_.exm)&&C.push("ed=1"),S("im"),S("dg"),S("sm"),pq(H,"br")!="1"&&pq(H,"br")!="0"||S("br"),S("br-d"),pq(H,"rb")=="1"&&S("rb"),pq(H,"zs")!=="0"&&S("zs"),V$b(H)!==""&&S("wt"),S("gssmodulesetproto"),S("ujg"),S("sp"),S("rs"),S("cb"),S("ee"),S("slk"),S("dti"),S("m"));return C.join("/")},
pq=function(H,C){return H.JSC$10073_keys_[C]?H.JSC$10073_keys_[C]:null},kV=function(H,C,S){S?H.JSC$10073_keys_[C]=S:delete H.JSC$10073_keys_[C]},oBU=function(H,C){H.urlPrefix_=C},Ovb=function(H,C){C&&C.length>0?(C.sort(),kV(H,"exm",C.join(","))):kV(H,"exm",null)},XAW=function(H,C){C&&C.length>0?(C.sort(),kV(H,"excm",C.join(","))):kV(H,"excm",null)},QaY=function(H){return(H=pq(H,"m"))?H.split(","):[]},V$b=function(H){switch(pq(H,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},dEM=function(H,C){var S=Object.keys(C).filter(function(w){return!!Object.keys(C[w]).length}).map(function(w){var A=Object.keys(C[w]);
A.length>1&&A.sort();return w+":"+A.join(",")});
S.sort();kV(H,"ee",S.join(";"))},ItD=function(H){var C=pq(H,"ee");
if(!C)return{};H={};C=_.Z(C.split(";"));for(var S=C.next();!S.done;S=C.next()){var w=_.Z(S.value.split(":"));S=w.next().value;w=w.next().value;H[S]={};w=_.Z(w.split(","));for(var A=w.next();!A.done;A=w.next())H[S][A.value]=!0}return H},P5Y=function(H){delete H.JSC$10073_keys_.m;
delete H.JSC$10073_keys_.exm;delete H.JSC$10073_keys_.ed};
fQd.prototype.clone=function(){var H=new fQd;H.JSC$10073_keys_=Object.assign({},this.JSC$10073_keys_);H.urlPrefix_=this.urlPrefix_;H.JSC$10073_queryData_=Object.assign({},this.JSC$10073_queryData_);return H};
var atU=function(H,C){C=C===void 0?!0:C;var S=$EP(H),w=new fQd,A=_.Cv(S)[5];_.hb.forEach(pAP,function(c){var Y=A.match("/"+c+"=([^/]+)");Y&&kV(w,c,Y[1])});
var J="";J=H.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";oBU(w,H.substr(0,H.indexOf(J)+J.length));if(!C)return w;(H=_.Cv(S)[6]||null)&&qtd(H,function(c,Y){w.JSC$10073_queryData_[c]=Y});
return w},gu0=function(H){H=_.EE($EP(H));
return H===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(H)?/\/k=/.test(H):!1},$EP=function(H){return H.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?H.substr(65):H},pAP={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"},k9_=RegExp("^loaded_(g|h)?[_\\d]+$");_.hy=function(H){this.JSC$10085_id_=H;this.opts={}};
_.hy.prototype.JSC$10087_setLabel=function(H){this.label_=H||void 0;return this};
_.hy.prototype.addUploadMetadata=function(H,C){var S=this.opts.data||{};S[H]=C;this.opts.data=S;return this};
var h3b=function(H){var C=_.hb.filter(H.opts,function(S){return S!==null});
C=_.hb.isEmpty(C)?null:C;H=[H.JSC$10085_id_,H.label_,C];C=VZV(H);return H=H.slice(0,C+1)};
_.hy.prototype.toString=function(){var H=h3b(this);return"("+_.nX(H,function(C){return JSON.stringify(C)}).join(",")+")"};
_.hy.prototype.getId=function(){return this.JSC$10085_id_};
_.hy.prototype.getOptions=function(){return _.hb.clone(this.opts)};var nq=function(){_.hy.call(this,"image-search")};
_.G(nq,_.hy);nq.prototype.setSize=function(H){this.opts.imgsz=H;return this};
nq.prototype.JSC$10087_setLabel=function(H){_.hy.prototype.JSC$10087_setLabel.call(this,H);return this};
nq.prototype.addUploadMetadata=function(H,C){_.hy.prototype.addUploadMetadata.call(this,H,C);return this};var ra=function(){_.hy.call(this,"maps")};
_.G(ra,_.hy);ra.prototype.setZoom=function(H){this.opts.zoom=H;return this};
ra.prototype.JSC$10087_setLabel=function(H){_.hy.prototype.JSC$10087_setLabel.call(this,H);return this};
ra.prototype.addUploadMetadata=function(H,C){_.hy.prototype.addUploadMetadata.call(this,H,C);return this};_.Bw=function(){_.hy.call(this,"photos")};
_.G(_.Bw,_.hy);_.Bw.prototype.JSC$10087_setLabel=function(H){_.hy.prototype.JSC$10087_setLabel.call(this,H);return this};
_.Bw.prototype.addUploadMetadata=function(H,C){_.hy.prototype.addUploadMetadata.call(this,H,C);return this};var DK=function(){_.hy.call(this,"url")};
_.G(DK,_.hy);var nBV=function(){var H=new DK;H.opts.type="video";H.opts.site="youtube.com";return H};
DK.prototype.JSC$10087_setLabel=function(H){_.hy.prototype.JSC$10087_setLabel.call(this,H);return this};
DK.prototype.addUploadMetadata=function(H,C){_.hy.prototype.addUploadMetadata.call(this,H,C);return this};var Kq=function(){_.hy.call(this,"video-search")};
_.G(Kq,_.hy);var rAd=function(){var H=new Kq;H.opts.site="youtube.com";return H};
Kq.prototype.JSC$10087_setLabel=function(H){_.hy.prototype.JSC$10087_setLabel.call(this,H);return this};
Kq.prototype.addUploadMetadata=function(H,C){_.hy.prototype.addUploadMetadata.call(this,H,C);return this};var B47=function(){_.hy.call(this,"web")};
_.G(B47,_.hy);B47.prototype.JSC$10087_setLabel=function(H){_.hy.prototype.JSC$10087_setLabel.call(this,H);return this};
B47.prototype.addUploadMetadata=function(H,C){_.hy.prototype.addUploadMetadata.call(this,H,C);return this};var ty=function(){this.items_=[];this.opts={}},DEY=function(H){switch(H){case "image-search":return new nq;
case "maps":return new ra;case "photos":return new _.Bw;case "url":return new DK;case "video-search":return new Kq;case "web":return new B47}return new _.hy(H)};
ty.prototype.addView=function(H){this.items_.push(typeof H==="string"?DEY(H):H);return this};
var KC1=function(H){return"("+_.nX(H.items_,function(C){return C.toString()}).join(",")+")"};
ty.prototype.toString=function(){return KC1(this)};
ty.prototype.getViews=function(H,C){C=C===void 0?[]:C;for(var S=this.items_,w=0;w<S.length;w++){var A=S[w];A instanceof ty?A.getViews(H,C):A.getId()==H&&C.push(A)}return C};
ty.prototype.getOptions=function(){return _.hb.clone(this.opts)};var K6=function(H){this.basePickerUrl_=H||"https://docs.google.com/picker";this.nav_=new ty};
K6.prototype.nav_=null;K6.prototype.addView=function(H){this.nav_.addView(H);return this};
K6.prototype.getBaseUrl=function(){return this.basePickerUrl_};
K6.prototype.getViews=function(H){return this.nav_.getViews(H)};
_.t$d=function(H,C){H.callback_=C;return H};var LCn=new Map;LCn.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");LCn.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");LCn.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var gBU=new Set;gBU.add("application/vnd.google-apps.kix");gBU.add("application/vnd.google-apps.ritz");gBU.add("application/vnd.google-apps.punch");var w9b=function(H,C,S){var w=S&&_.$v(S,1);S=UEn(S);var A=H[0].getId();switch(_.p5(A,2)){case 13:return R3d(H,C,w,S);case 3:return IQ1(H,C,w,S);case 10:return aQ1(H,C,w,S);case 27:return aQ1(H,C,w,S);case 12:return xEn(H,C);case 2:return HVY(H,C,w,S);case 5:return iVM(H,C,w,S);case 9:return CCW(H,C,w,S);case 6:return ScP(H,C,w,S);case 25:return sMM(H,C,w,S);case 1:return _.uP(H[0],O9b,26)?jMd(H,C,w,S):aQ1(H,C,w,S);default:return{}}},ScP=function(H,C,S,w){H=H.map(function(A){return{id:A.getId().getId(),
serviceId:"youtube",name:A.getName(),description:_.$v(A,3),type:Lq(A),lastEditedUtc:_.oDd(_.zf(A,_.kQ,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:A.getUrl(),embedUrl:_.$v(A,13),thumbnails:U2(Yc(A))}});
return{action:C,docs:H,viewToken:w,view:S||"youtube",v2Translated:!0}},HVY=function(H,C,S,w){var A=H.map(function(J){var c=J.getId().getId(),Y=_.$v(J,7),M=J.getName(),m=Lq(J),W=_.oDd(_.zf(J,_.kQ,12)).getTime(),y=J.getUrl(),N=Number($S0(J)),b=_.$v(J,3),u=_.$v(J,11),O=U2(Yc(J));
var d=_.zf(J,z4,21);d=_.QK(d,1);var p=_.zf(J,z4,21);p=_.$v(p,10);var k=_.$v(J,13);var R=_.zf(J,z4,21);R=_.QK(R,9);var L=_.zf(J,z4,21);L=_.$v(L,11);c={id:c,serviceId:"docs",mimeType:Y,name:M,type:m,lastEditedUtc:W,url:y,sizeBytes:N,description:b,iconUrl:u,thumbnails:O,isShared:d,downloadUrl:p,embedUrl:k,copyable:R,resourceKey:L};Y=_.zf(J,z4,21);_.QK(Y,12)&&(c.uploadState="success",c.isNew=!0);Y=_.zf(J,z4,21);_.uP(Y,Fc,3)&&(J=_.zf(J,z4,21),J=_.zf(J,Fc,3),_.uP(J,AS,2)&&(Y=rS(J.getDuration().getSeconds()),
M=J.getDuration(),M=_.YJ(M,2),c.duration=Y+M/1E9),c.aspectRatio=J.getAspectRatio());return c});
return{action:C,docs:A,viewToken:w,view:S||"all",extraUserInputs:AOW(H),v2Translated:!0}},iVM=function(H,C,S,w){H=H.map(function(A){var J=_.zf(A,nDb,15);
J=_.zf(J,JS,1);fC(A,10,JS,J);return{id:A.getId().getId(),serviceId:"web",mimeType:_.$v(A,7),name:A.getName(),type:Lq(A),url:A.getUrl(),description:_.$v(A,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:U2(Yc(A))}});
return{action:C,docs:H,viewToken:w,view:S||"image-search",v2Translated:!0}},CCW=function(H,C,S,w){H=H.map(function(A){return{serviceId:"url",
name:Yc(A)[0].getUrl().split("/").pop(),type:Lq(A),mimeType:_.$v(A,7),url:A.getUrl(),description:_.$v(A,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:U2(Yc(A))}});
return{action:C,docs:H,viewToken:w,view:S||"url",v2Translated:!0}},jMd=function(H,C,S,w){H=H.map(function(A){return{id:A.getId().getId(),
serviceId:"picasa",name:A.getName(),type:Lq(A),description:_.$v(A,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:U2(Yc(A))}});
return{action:C,docs:H,viewToken:w,view:S||"webcam",v2Translated:!0}},aQ1=function(H,C,S,w){return{action:C,
docs:H.map(JOn),viewToken:w,view:FQd(S||"upload",H),extraUserInputs:AOW(H),v2Translated:!0}},FQd=function(H,C){return C.some(function(S){var w;
return((w=_.zf(S,ZN,30))==null?void 0:_.p5(w,3))===9})?H+"/gmailphotos":H},IQ1=function(H,C,S,w){var A=H.map(function(J){var c={id:J.getId().getId(),
serviceId:"picasa",mimeType:_.$v(J,7),name:J.getName(),type:Lq(J),lastEditedUtc:_.oDd(_.zf(J,_.kQ,12)).getTime(),url:J.getUrl(),sizeBytes:Number($S0(J)),description:_.$v(J,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:U2(Yc(J)),mediaKey:J.getId().getId(),parentId:_.$v(J,4)},Y,M=(Y=_.zf(J,drW,18))==null?void 0:_.zf(Y,Q2_,3);M&&(c.latitude=Pu(M,1),c.longitude=Pu(M,2));var m;J=(m=_.zf(J,drW,18))==null?void 0:dO(m,6);m=J!=null?rS(J):void 0;m&&(c.version=
m);return c});
return{action:C,docs:A,viewToken:w,view:S||"photos",extraUserInputs:AOW(H),v2Translated:!0}},R3d=function(H,C,S,w){H=H.map(function(A){return{id:A.getId().getId(),
serviceId:"et",name:Yc(A)[0].getUrl().split("/").pop(),description:_.$v(A,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:U2(Yc(A),"etjpg")}});
return{action:C,docs:H,viewToken:w,view:S||"et",v2Translated:!0}},sMM=function(H,C,S,w){H=H.map(function(A){var J=A.getId().getId(),c=w["2"];
return{id:J,serviceId:c.type!=="gmail_themes"&&c.parent==="6226252643674576769"?"picasa":"static_themes",name:A.getName(),mimeType:_.$v(A,7),type:Lq(A),description:_.$v(A,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:A.getUrl(),embedUrl:A.getUrl(),thumbnails:U2(Yc(A))}});
return{action:C,docs:H,viewToken:w,view:S||"photos",v2Translated:!0}},xEn=function(H,C){H=H.map(function(S){var w=_.zf(S,XV1,27);
w=_.IO(w,1,_.E_,_.cl())[0];return{id:S.getId().getId(),serviceId:"contacts",mimeType:_.$v(S,7),name:S.getName(),description:_.$v(S,3),url:"mailto:"+w,thumbnail:[{url:_.$v(S,11)}],email:w}});
return{action:C,docs:H,view:"contacts",v2Translated:!0}},UEn=function(H){if(!H)return{};
var C=_.$v(H,3);C=C&&JSON.parse(C)||{};return{0:_.$v(H,1),1:_.$v(H,2),2:C}},U2=function(H,C){C=C===void 0?"":C;
if(!H.length)return null;C=="etjpg"&&(H=H.filter(function(S){return S.getUrl().includes("w1200-h300")}));
return H.map(function(S){return{url:S.getUrl(),height:S.getHeight(),width:S.getWidth(),type:C}})},AOW=function(H){return{isAttachment:H.some(function(C){return _.QK(C,31)})}},JOn=function(H){var C,S={id:(C=H.getId())==null?void 0:C.getId(),
serviceId:ZV_(H),mimeType:_.$v(H,7),name:H.getName(),type:Lq(H),sizeBytes:Number($S0(H)),description:_.$v(H,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:U2(Yc(H)),isNew:!0};if(C=_.zf(H,ZN,30)){S.dataUrl=_.$v(C,1)||null;a:{var w=_.zf(H,ZN,30);switch(_.p5(w,3)){case 9:w=_.n5(w,k7U,2,cC);w={remoteRefs:w&&_.$v(w,1)};break a;case 10:case 15:w=_.n5(w,pVW,4,cC);var A=Yc(H);w={photo_id:w&&_.$v(w,1),media_key:H.getId().getId(),media_type:_.p5(H,6)===1?1:2,image_url:A&&
A[0].getUrl(),width:A&&String(A[0].getWidth()),height:A&&String(A[0].getHeight())};break a}w=null}S.uploadMetadata=w;S.uploadId=_.$v(C,9)||null;S.uploadState=cOn(C)||null}(w=C&&_.n5(C,pVW,4,cC))&&(S.id=_.$v(w,1));(w=C&&_.n5(C,hB1,5,cC))&&(S.contentId=_.$v(w,1));(w=C&&_.n5(C,PB1,7,cC))&&(S.contentId=_.$v(w,1));(w=C&&_.n5(C,$rW,6,cC))&&(S.contentId=_.$v(w,1));(C==null?void 0:_.p5(C,3))===1&&(S.mediaKey=H.getId().getId());return S},ZV_=function(H){var C;
switch(((C=_.zf(H,ZN,30))==null?void 0:_.p5(C,3))||0){case 1:return"picasa";case 2:case 3:case 4:case 8:case 12:return"photo";case 10:case 15:return"dragonflyphotos";case 11:return"mapspro";case 13:return"books";case 14:return"cultural"}return null},Lq=function(H){switch(_.p5(H,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 _.$v(H,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},cOn=function(H){switch(H==null?void 0:_.p5(H,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 qc7,Yc1,z0i,MkW;_.TTU=function(H,C){var S=C||{};C=S.document||document;var w=_.Qv(H).toString(),A=(new kS(C)).createElement("SCRIPT"),J={script_:A,timeout_:void 0},c=new Jy(Yc1,J),Y=null,M=S.timeout!=null?S.timeout:5E3;M>0&&(Y=window.setTimeout(function(){z0i(A,!0);c.errback(new MkW(1,"Timeout reached for loading script "+w))},M),J.timeout_=Y);
A.onload=A.onreadystatechange=function(){A.readyState&&A.readyState!="loaded"&&A.readyState!="complete"||(z0i(A,S.cleanupWhenDone||!1,Y),c.callback(null))};
A.onerror=function(){z0i(A,!0,Y);c.errback(new MkW(0,"Error while loading script "+w))};
J=S.attributes||{};_.hb.extend(J,{type:"text/javascript",charset:"UTF-8"});Etb(A,J);_.JY(A,H);qc7(C).appendChild(A);return c};
qc7=function(H){var C=vl("HEAD",H);return C&&C.length!==0?C[0]:H.documentElement};
Yc1=function(){if(this&&this.script_){var H=this.script_;H&&H.tagName=="SCRIPT"&&z0i(H,!0,this.timeout_)}};
z0i=function(H,C,S){S!=null&&_.s$.clearTimeout(S);H.onload=function(){};
H.onerror=function(){};
H.onreadystatechange=function(){};
C&&window.setTimeout(function(){_.f6(H)},0)};
MkW=function(H,C){var S="Jsloader error (code #"+H+")";C&&(S+=": "+C);_.CU.call(this,S);this.code=H};
_.Zh(MkW,_.CU);var mzd=_.xC(["https://apis.google.com/js/api.js"]),WQ1=_.qH(mzd),EuP=function(H,C,S){S=S===void 0?{}:S;var w=!1,A=yO7(H,C,S).then(function(c){w=!0;return c}),J=_.t2d(5E3).then(function(){return w?yO7(H,C,S):NTP(C,S).then(function(c){return bVi(c,H)})});
return Qp7([A,J])},yO7=function(H,C,S){S=S===void 0?{}:S;
return e0V(C,S).then(function(w){return bVi(w,H)})},bVi=function(H,C){var S=_.AV(C,"gapi.")?C.slice(5):C;
return H[S]?_.N3(H[S]):new _.Es(function(w,A){var J=BC(function(){A(Error("Ya"))},3E4);
H.load(C,{callback:function(){_.s$.clearTimeout(J);w(H[S])},
onerror:function(c){_.s$.clearTimeout(J);A(c)}})})},e0V=function(H,C){C=C===void 0?{}:C;
return H.gapi&&H.gapi.load?_.N3(H.gapi):NTP(H,C)},NTP=function(H,C){C=C===void 0?{}:C;
return _.TTU(WQ1,{document:H.document,attributes:C}).then(function(){return H.gapi})},u61=function(){};
u61.prototype.load=function(H,C,S){C=C===void 0?window:C;S=S===void 0?{}:S;var w=Date.now();return EuP(H,C,S).then(function(A){var J=Date.now();return{library:A,loadStartMs:w,loadEndMs:J}},function(A){throw A instanceof Error?A:Error(String(A));
})};var mz6=function(){_.Op.call(this);this.gapiLoader_=new u61;this.origin_=null;this.gapiPickerIframeResolver_=_.Cn();this.gapiIframesResolver_=_.Cn();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.G(mz6,_.Op);var Gf7=function(H,C){var S=S===void 0?{}:S;var w=_.gh("gapi.iframes",C);return w?(H=Date.now(),_.N3({library:w,loadStartMs:H,loadEndMs:H})):H.gapiLoader_.load("gapi.iframes",C,S)},ft7=function(H,C,S,w,A,J){var c=!1;
c=c===void 0?!1:c;Gf7(H,Bj(C.ownerDocument)).then(function(Y){var M=Y.library;H.gapiIframesResolver_.resolve(M);Y=H.gapiPickerIframeResolver_;var m=Y.resolve,W=c;W=W===void 0?!1:W;var y={};y["host-message-handler"]=S;H.hostMessageHandlerInternal_=y;var N=_.I7(w);N=_.I7(N);N=_.mh(_.Ta(_.qL(new _.jR,N.scheme_),N.JSC$10045_domain_),N.JSC$10045_port_).toString();H.origin_=N;N=(new DnW).setUrl(w);N.JSC$10060_obj_.where=C;N.JSC$10060_obj_.allowPost=W;N.JSC$10060_obj_.messageHandlers=y;W=_.gh("makeWhiteListIframesFilter",
M)([H.origin_]);N.JSC$10060_obj_.messageHandlersFilter=W;A!=null&&(N.JSC$10060_obj_.id=A);J!=null&&(N.JSC$10060_obj_.rpctoken=J);W=Bhd(N);W.JSC$10057_obj_.style={display:"block","min-width":"100%",width:"1px"};W.JSC$10057_obj_.height="100%";Bhd(N).value().allow="camera 'src' "+H.origin_;M=M.getContext().openChild(N.value());m.call(Y,M)},function(Y){H.gapiIframesResolver_.reject(Y);
H.gapiPickerIframeResolver_.reject(Y)});
return H.gapiPickerIframeResolver_.promise},vuW=function(H,C){return _.nh([H.gapiIframesResolver_.promise,
H.gapiPickerIframeResolver_.promise]).then(function(S){var w=_.Z(S);S=w.next().value;return(w=w.next().value)?w.send("picker-message-handler",C,void 0,_.gh("makeWhiteListIframesFilter",S)([H.origin_])):_.kj(Error("Za"))})};
mz6.prototype.disposeInternal=function(){ltd(this);_.Op.prototype.disposeInternal.call(this)};
var ltd=function(H){H.gapiPickerIframeResolver_.promise.then(function(C){C&&(C.unregister("host-message-handler"),delete H.hostMessageHandlerInternal_["host-message-handler"])})};var Vkn=function(){this.JSC$10147_nextId=0};var OVY=function(H,C){switch(H.action){case "select-contacts":H=ouM(H.contacts);break;case "visibility":H=H.visible;var S=new ma;H=_.Bu(S,1,7).setVisible(H);S={};S["iframe-command"]=H.serialize();H=S;break;default:H=null}return H?vuW(C,H):_.N3()},ouM=function(H){if(!H||H.length==0)return null;
var C=new ma;_.Bu(C,1,11);var S=new Vkn;H.forEach(function(w){if(w.email){var A=new Ob;A=_.RJ(A,2,w.name?w.name:w.email);var J=new XV1;w=_.r9E(J,1,_.mj,w.email,_.E_);w=_.f9(A,27,w);A=new Vh7;J=":"+(S.JSC$10147_nextId++).toString(36);A=_.RJ(A,1,J);A=_.Bu(A,2,12);w=_.f9(w,1,A)}else w=null;w&&fC(C,7,Ob,w)});
H={};H["iframe-command"]=C.serialize();return H};_.X97=function(){if(Iu0){var H=/Windows NT ([0-9.]+)/;return(H=H.exec(_.WZ()))?H[1]:"0"}return _.Rm7?(H=/1[0|1][_.][0-9_.]+/,(H=H.exec(_.WZ()))?H[0].replace(/_/g,"."):"10"):ogE?(H=/Android\s+([^\);]+)(\)|;)/,(H=H.exec(_.WZ()))?H[1]:""):xY6||HeZ||ieD?(H=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(H=H.exec(_.WZ()))?H[1].replace(/_/g,"."):""):""}();var RB;RB=function(H){return(H=H.exec(_.WZ()))?H[1]:""};
_.QM7=function(){if(_.Wu)return RB(/Firefox\/([0-9.]+)/);if(_.My||jk||Lp7)return J4u;if(_.yK){if(_.XW()||_.G6E()){var H=RB(/CriOS\/([0-9.]+)/);if(H)return H}return RB(/Chrome\/([0-9.]+)/)}if(_.tA&&!_.XW())return RB(/Version\/([0-9.]+)/);if(n6W||rfi){if(H=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.WZ()))return H[1]+"."+H[2]}else if(zO$)return(H=RB(/Android\s+([0-9.]+)/))?H:RB(/Version\/([0-9.]+)/);return""}();var dz_=function(){};
_.JC(dz_);dz_.prototype.nextId_=0;_.IB=function(H){return":"+(H.nextId_++).toString(36)};var aB=function(H){_.ph.call(this);this.JSC$10155_dom_=H||Ol();this.JSC$10155_id_=null;this.inDocument_=!1;this.JSC$10155_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.Zh(aB,_.ph);aB.prototype.idGenerator_=dz_.getInstance();aB.prototype.getId=function(){return this.JSC$10155_id_||(this.JSC$10155_id_=_.IB(this.idGenerator_))};
aB.prototype.getElement=function(){return this.JSC$10155_element_};
var xV=function(H){H.googUiComponentHandler_||(H.googUiComponentHandler_=new _.qQ(H));return H.googUiComponentHandler_},PCM=function(H,C){if(H==C)throw Error("$a");
var S;if(S=C&&H.parent_&&H.JSC$10155_id_){S=H.parent_;var w=H.JSC$10155_id_;S=S.childIndex_&&w?_.hb.get(S.childIndex_,w)||null:null}if(S&&H.parent_!=C)throw Error("$a");H.parent_=C;aB.superClass_.setParentEventTarget.call(H,C)};
aB.prototype.setParentEventTarget=function(H){if(this.parent_&&this.parent_!=H)throw Error("ab");aB.superClass_.setParentEventTarget.call(this,H)};
aB.prototype.JSC$10157_createDom=function(){this.JSC$10155_element_=this.JSC$10155_dom_.createElement("DIV")};
aB.prototype.render=function(H){$zM(this,H)};
var $zM=function(H,C,S){if(H.inDocument_)throw Error("bb");H.JSC$10155_element_||H.JSC$10157_createDom();C?C.insertBefore(H.JSC$10155_element_,S||null):H.JSC$10155_dom_.JSC$9339_document_.body.appendChild(H.JSC$10155_element_);H.parent_&&!H.parent_.inDocument_||H.enterDocument()};
_.F=aB.prototype;_.F.decorate=function(H){if(this.inDocument_)throw Error("bb");if(H&&this.canDecorate(H)){this.wasDecorated_=!0;var C=_.D9(H);this.JSC$10155_dom_&&this.JSC$10155_dom_.JSC$9339_document_==C||(this.JSC$10155_dom_=Ol(H));this.decorateInternal(H);this.enterDocument()}else throw Error("cb");};
_.F.canDecorate=function(){return!0};
_.F.decorateInternal=function(H){this.JSC$10155_element_=H};
_.F.enterDocument=function(){this.inDocument_=!0;p9Y(this,function(H){!H.inDocument_&&H.getElement()&&H.enterDocument()})};
_.F.exitDocument=function(){p9Y(this,function(H){H.inDocument_&&H.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.F.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);p9Y(this,function(H){H.dispose()});
!this.wasDecorated_&&this.JSC$10155_element_&&_.f6(this.JSC$10155_element_);this.parent_=this.model_=this.JSC$10155_element_=this.childIndex_=this.children_=null;aB.superClass_.disposeInternal.call(this)};
_.F.getModel=function(){return this.model_};
_.F.addChild=function(H,C){var S=this.children_?this.children_.length:0;if(H.inDocument_&&(C||!this.inDocument_))throw Error("bb");if(S<0||S>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);H.parent_==this?(_.hb.set(this.childIndex_,H.getId(),H),_.ru(this.children_,H)):_.hb.add(this.childIndex_,H.getId(),H);PCM(H,this);_.Q0E(this.children_,S,0,H);H.inDocument_&&this.inDocument_&&H.parent_==this?(C=this.getContentElement(),
(C.childNodes[S]||null)!=H.getElement()&&(H.getElement().parentElement==C&&C.removeChild(H.getElement()),S=C.childNodes[S]||null,C.insertBefore(H.getElement(),S))):C?(this.JSC$10155_element_||this.JSC$10157_createDom(),S=this.children_?this.children_[S+1]||null:null,$zM(H,this.getContentElement(),S?S.JSC$10155_element_:null)):this.inDocument_&&!H.inDocument_&&H.JSC$10155_element_&&H.JSC$10155_element_.parentNode&&H.JSC$10155_element_.parentNode.nodeType==1&&H.enterDocument()};
_.F.getContentElement=function(){return this.JSC$10155_element_};
var p9Y=function(H,C){H.children_&&H.children_.forEach(C,void 0)};
aB.prototype.removeChild=function(H,C){if(H){var S=typeof H==="string"?H:H.getId();H=this.childIndex_&&S?_.hb.get(this.childIndex_,S)||null:null;S&&H&&(_.hb.remove(this.childIndex_,S),_.ru(this.children_,H),C&&(H.exitDocument(),H.JSC$10155_element_&&_.f6(H.JSC$10155_element_)),PCM(H,null))}if(!H)throw Error("eb");return H};_.Zh(KCw,DEi);_.Zh(t$6,DEi);var kfn;_.hb.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var h07=function(H,C){C?H.setAttribute("role",C):H.removeAttribute("role")},H4=function(H,C,S){Array.isArray(S)&&(S=S.join(" "));
var w="aria-"+C;S===""||S==void 0?(kfn||(S={},kfn=(S.atomic=!1,S.autocomplete="none",S.dropeffect="none",S.haspopup=!1,S.live="off",S.multiline=!1,S.multiselectable=!1,S.orientation="vertical",S.readonly=!1,S.relevant="additions text",S.required=!1,S.sort="none",S.busy=!1,S.disabled=!1,S.hidden=!1,S.invalid="false",S)),S=kfn,C in S?H.setAttribute(w,S[C]):H.removeAttribute(w)):H.setAttribute(w,S)};var nu1;_.iM=function(H,C,S){_.ph.call(this);this.target=H;this.handle=C||H;this.limits=S||new Ro(NaN,NaN,NaN,NaN);this.JSC$10160_document_=_.D9(H);this.JSC$10160_eventHandler_=new _.qQ(this);_.Nx(this,this.JSC$10160_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;_.PI(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=nu1};
_.Zh(_.iM,_.ph);nu1=_.s$.document&&_.s$.document.documentElement&&!!_.s$.document.documentElement.setCapture&&!!_.s$.document.releaseCapture;_.rOd=function(H,C){H.hysteresisDistanceSquared_=Math.pow(C,2)};
_.F=_.iM.prototype;_.F.setEnabled=function(H){this.enabled_=H};
_.F.disposeInternal=function(){_.iM.superClass_.disposeInternal.call(this);_.$c(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10160_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10160_document_.releaseCapture();this.handle=this.target=null};
_.F.startDrag=function(H){var C=H.type=="mousedown";if(!this.enabled_||this.dragging_||C&&(!H.isButton(0)||_.Rm7&&H.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new C3("start",this,H.clientX,H.clientY,H)))this.dragging_=!0,C&&H.preventDefault();else return;else C&&H.preventDefault();C=this.JSC$10160_document_;var S=C.documentElement,w=!this.useSetCapture_;this.JSC$10160_eventHandler_.listen(C,["touchmove","mousemove"],this.handleMove_,
{capture:w,passive:!1});this.JSC$10160_eventHandler_.listen(C,["touchend","mouseup"],this.endDrag,w);this.useSetCapture_?(S.setCapture(!1),this.JSC$10160_eventHandler_.listen(S,"losecapture",this.endDrag)):this.JSC$10160_eventHandler_.listen(Bj(C),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10160_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,w);this.clientX=this.startX=H.clientX;this.clientY=this.startY=H.clientY;this.screenX=H.screenX;this.screenY=H.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=op(Ol(this.JSC$10160_document_))}};
_.F.endDrag=function(H,C){this.JSC$10160_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10160_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new C3("end",this,H.clientX,H.clientY,H,BTP(this,this.deltaX),Dz1(this,this.deltaY),C||H.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.F.handleMove_=function(H){if(this.enabled_){var C=H.clientX-this.clientX,S=H.clientY-this.clientY;this.clientX=H.clientX;this.clientY=H.clientY;this.screenX=H.screenX;this.screenY=H.screenY;if(!this.dragging_){var w=this.startX-this.clientX,A=this.startY-this.clientY;if(w*w+A*A>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new C3("start",this,H.clientX,H.clientY,H)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(H);return}}S=KQM(this,C,S);C=S.x;S=S.y;this.dragging_&&this.dispatchEvent(new C3("beforedrag",
this,H.clientX,H.clientY,H,C,S))&&(tk1(this,H,C,S),H.preventDefault())}};
var KQM=function(H,C,S){var w=op(Ol(H.JSC$10160_document_));C+=w.x-H.pageScroll.x;S+=w.y-H.pageScroll.y;H.pageScroll=w;H.deltaX+=C;H.deltaY+=S;return new _.rx(BTP(H,H.deltaX),Dz1(H,H.deltaY))};
_.iM.prototype.onScroll_=function(H){var C=KQM(this,0,0);H.clientX=this.clientX;H.clientY=this.clientY;tk1(this,H,C.x,C.y)};
var tk1=function(H,C,S,w){H.target.style.left=S+"px";H.target.style.top=w+"px";H.dispatchEvent(new C3("drag",H,C.clientX,C.clientY,C,S,w))},BTP=function(H,C){var S=H.limits;
H=isNaN(S.left)?null:S.left;S=isNaN(S.width)?0:S.width;return Math.min(H!=null?H+S:Infinity,Math.max(H!=null?H:-Infinity,C))},Dz1=function(H,C){var S=H.limits;
H=isNaN(S.top)?null:S.top;S=isNaN(S.height)?0:S.height;return Math.min(H!=null?H+S:Infinity,Math.max(H!=null?H:-Infinity,C))};
_.iM.prototype.isDragging=function(){return this.dragging_};
var C3=function(H,C,S,w,A,J,c){_.Xc.call(this,H);this.clientX=S;this.clientY=w;this.browserEvent=A;this.left=J!==void 0?J:C.deltaX;this.top=c!==void 0?c:C.deltaY};
_.Zh(C3,_.Xc);var Si=function(H){this.JSC$10167_map_=new Map;var C=arguments.length;if(C>1){if(C%2)throw Error("ka");for(var S=0;S<C;S+=2)this.set(arguments[S],arguments[S+1])}else H&&this.addAll(H)};
_.F=Si.prototype;_.F.getCount=function(){return this.JSC$10167_map_.size};
_.F.getValues=function(){return Array.from(this.JSC$10167_map_.values())};
_.F.getKeys=function(){return Array.from(this.JSC$10167_map_.keys())};
_.F.containsKey=function(H){return this.JSC$10167_map_.has(H)};
_.F.containsValue=function(H){return this.getValues().some(function(C){return C==H})};
_.F.equals=function(H,C){var S=this;C=C===void 0?function(w,A){return w===A}:C;
return this===H?!0:this.JSC$10167_map_.size!=H.getCount()?!1:this.getKeys().every(function(w){return C(S.JSC$10167_map_.get(w),H.get(w))})};
_.F.isEmpty=function(){return this.JSC$10167_map_.size==0};
_.F.clear=function(){this.JSC$10167_map_.clear()};
_.F.remove=function(H){return this.JSC$10167_map_.delete(H)};
_.F.get=function(H,C){return this.JSC$10167_map_.has(H)?this.JSC$10167_map_.get(H):C};
_.F.set=function(H,C){this.JSC$10167_map_.set(H,C);return this};
_.F.addAll=function(H){if(H instanceof Si){H=_.Z(H.JSC$10167_map_);for(var C=H.next();!C.done;C=H.next()){var S=_.Z(C.value);C=S.next().value;S=S.next().value;this.JSC$10167_map_.set(C,S)}}else if(H)for(H=_.Z(Object.entries(H)),C=H.next();!C.done;C=H.next())S=_.Z(C.value),C=S.next().value,S=S.next().value,this.JSC$10167_map_.set(C,S)};
_.F.forEach=function(H,C){var S=this;C=C===void 0?this:C;this.JSC$10167_map_.forEach(function(w,A){return H.call(C,w,A,S)})};
_.F.clone=function(){return new Si(this)};(function(){for(var H=["ms","moz","webkit","o"],C,S=0;C=H[S]&&!_.s$.requestAnimationFrame;++S)_.s$.requestAnimationFrame=_.s$[C+"RequestAnimationFrame"],_.s$.cancelAnimationFrame=_.s$[C+"CancelAnimationFrame"]||_.s$[C+"CancelRequestAnimationFrame"];if(!_.s$.requestAnimationFrame){var w=0;_.s$.requestAnimationFrame=function(A){var J=(new Date).getTime(),c=Math.max(0,16-(J-w));w=J+c;return _.s$.setTimeout(function(){A(J+c)},c)};
_.s$.cancelAnimationFrame||(_.s$.cancelAnimationFrame=function(A){clearTimeout(A)})}})();
var LQM=[[],[]],guV=0,UzY=!1,R0i=0,atP=function(H,C){var S=R0i++,w={measureTask:{id:S,fn:H.measure,context:C},mutateTask:{id:S,fn:H.mutate,context:C},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(w.args||(w.args=[]),w.args.length=0,w.args.push.apply(w.args,arguments),w.args.push(w.state)):w.args&&w.args.length!=0?(w.args[0]=w.state,w.args.length=1):w.args=[w.state];w.isScheduled||(w.isScheduled=!0,LQM[guV].push(w));UzY||(UzY=!0,window.requestAnimationFrame(Iti))}},Iti=
function(){UzY=!1;
var H=LQM[guV],C=H.length;guV=(guV+1)%2;for(var S,w=0;w<C;++w){S=H[w];var A=S.measureTask;S.isScheduled=!1;A.fn&&A.fn.apply(A.context,S.args)}for(w=0;w<C;++w)S=H[w],A=S.mutateTask,S.isScheduled=!1,A.fn&&A.fn.apply(A.context,S.args),S.state={};H.length=0};var xzU=_.xC(["about:blank"]),HCM=_.xC(["javascript:undefined"]),iCU=_.qH(xzU);_.Qv(iCU);var CbP=_.qH(HCM);_.Qv(CbP);var sN=function(H){_.ph.call(this);this.JSC$10173_element_=H;this.listenKeyIn_=_.PI(this.JSC$10173_element_,"focus",this,!0);this.listenKeyOut_=_.PI(this.JSC$10173_element_,"blur",this,!0)};
_.Zh(sN,_.ph);sN.prototype.handleEvent=function(H){var C=new _.Q0(H.event_);C.type=H.type=="focusin"||H.type=="focus"?"focusin":"focusout";this.dispatchEvent(C)};
sN.prototype.disposeInternal=function(){sN.superClass_.disposeInternal.call(this);XH(this.listenKeyIn_);XH(this.listenKeyOut_);delete this.JSC$10173_element_};var Ss7=function(H,C){this.JSC$10176_element_=H;this.JSC$10176_dom_=C};var ji=function(H,C){aB.call(this,C);this.useIframeMask_=!!H;this.lastFocus_=null;this.resizeBackgroundTask_=atP({mutate:this.resizeBackground_},this);atP({mutate:this.updateModalAndBackground_},this)};
_.Zh(ji,aB);_.F=ji.prototype;_.F.focusHandler_=null;_.F.visible_=!1;_.F.bgEl_=null;_.F.bgIframeEl_=null;_.F.tabCatcherElement_=null;_.F.backwardTabWrapInProgress_=!1;_.F.getCssClass=function(){return"goog-modalpopup"};
_.F.getBackgroundElement=function(){return this.bgEl_};
_.F.JSC$10157_createDom=function(){ji.superClass_.JSC$10157_createDom.call(this);var H=this.getElement(),C=qD(this.getCssClass()).split(" ");wa(H,C);H.tabIndex=0;_.HN(H,!1);s8U(this);j8M(this)};
var s8U=function(H){if(H.useIframeMask_&&!H.bgIframeEl_){var C=H.JSC$10155_dom_.JSC$9341_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.He(C,iCU);H.bgIframeEl_=C;H.bgIframeEl_.className=H.getCssClass()+"-bg";_.HN(H.bgIframeEl_,!1);aqM(H.bgIframeEl_,0)}H.bgEl_||(H.bgEl_=H.JSC$10155_dom_.JSC$9341_createDom("DIV",H.getCssClass()+"-bg"),_.HN(H.bgEl_,!1))},j8M=function(H){H.tabCatcherElement_||(H.tabCatcherElement_=H.JSC$10155_dom_.createElement("SPAN"),_.HN(H.tabCatcherElement_,
!1),H.tabCatcherElement_.tabIndex=0,H.tabCatcherElement_.style.position="absolute")};
_.F=ji.prototype;_.F.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.F.canDecorate=function(H){return!!H&&H.tagName=="DIV"};
_.F.decorateInternal=function(H){ji.superClass_.decorateInternal.call(this,H);H=qD(this.getCssClass()).split(" ");wa(this.getElement(),H);s8U(this);j8M(this);this.getElement().tabIndex=0;_.HN(this.getElement(),!1)};
_.F.enterDocument=function(){this.bgIframeEl_&&_.tl(this.bgIframeEl_,this.getElement());_.tl(this.bgEl_,this.getElement());ji.superClass_.enterDocument.call(this);_.Li(this.tabCatcherElement_,this.getElement());this.focusHandler_=new sN(this.JSC$10155_dom_.JSC$9339_document_);xV(this).listen(this.focusHandler_,"focusin",this.onFocus);wnM(this,!1)};
_.F.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.Ak(this.focusHandler_);ji.superClass_.exitDocument.call(this);_.f6(this.bgIframeEl_);_.f6(this.bgEl_);_.f6(this.tabCatcherElement_)};
_.F.setVisible=function(H){if(H!=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_&&wnM(this,H),H){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10155_dom_.JSC$9339_document_.activeElement}catch(A){}this.updateModalAndBackground_();xV(this).listen(this.JSC$10155_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10155_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);AtW(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)O4(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){xV(this).unlisten(this.JSC$10155_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10155_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)O4(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var C=this.JSC$10155_dom_,S=C.JSC$9339_document_.body,w=C.JSC$9339_document_.activeElement||S;if(!this.lastFocus_||this.lastFocus_==S){this.lastFocus_=null;break a}(w==S||C.contains(this.getElement(),w))&&this.lastFocus_.focus()}catch(A){}this.lastFocus_=
null}}};
var wnM=function(H,C){H.modalAriaVisibilityHelper_||(H.modalAriaVisibilityHelper_=new Ss7(H.JSC$10155_element_,H.JSC$10155_dom_));H=H.modalAriaVisibilityHelper_;if(C){H.hiddenElements_||(H.hiddenElements_=[]);C=H.JSC$10176_dom_.getChildren(H.JSC$10176_dom_.JSC$9339_document_.body);for(var S=0;S<C.length;S++){var w=C[S],A;if(A=w!=H.JSC$10176_element_)A=w.getAttribute("aria-hidden"),A=!(A==null||A==void 0?0:String(A));A&&(H4(w,"hidden",!0),H.hiddenElements_.push(w))}}else if(H.hiddenElements_){for(C=
0;C<H.hiddenElements_.length;C++)H.hiddenElements_[C].removeAttribute("aria-hidden");H.hiddenElements_=null}};
ji.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var AtW=function(H,C){H.bgIframeEl_&&_.HN(H.bgIframeEl_,C);H.bgEl_&&_.HN(H.bgEl_,C);_.HN(H.getElement(),C);_.HN(H.tabCatcherElement_,C)};
_.F=ji.prototype;_.F.onShow=function(){this.dispatchEvent("show")};
_.F.onHide=function(){AtW(this,!1);this.dispatchEvent("hide")};
_.F.isVisible=function(){return this.visible_};
_.F.focus=function(){this.focusElement_()};
_.F.resizeBackground_=function(){this.bgIframeEl_&&_.HN(this.bgIframeEl_,!1);this.bgEl_&&_.HN(this.bgEl_,!1);var H=this.JSC$10155_dom_.JSC$9339_document_;var C=_.lR(Bj(this.JSC$10155_dom_.JSC$9339_document_)||window);var S=Math.max(C.width,Math.max(H.body.scrollWidth,H.documentElement.scrollWidth));H=Math.max(C.height,Math.max(H.body.scrollHeight,H.documentElement.scrollHeight));this.bgIframeEl_&&(_.HN(this.bgIframeEl_,!0),_.gtb(this.bgIframeEl_,S,H));this.bgEl_&&(_.HN(this.bgEl_,!0),_.gtb(this.bgEl_,
S,H))};
_.F.reposition=function(){var H;if(_.Lj7(this.getElement())=="fixed")var C=H=0;else C=op(this.JSC$10155_dom_),H=C.x,C=C.y;var S=Ri7(this.getElement());var w=_.lR(Bj(this.JSC$10155_dom_.JSC$9339_document_)||window);H=Math.max(H+w.width/2-S.width/2,0);C=Math.max(C+w.height/2-S.height/2,0);xS(this.getElement(),H,C);xS(this.tabCatcherElement_,H,C)};
_.F.onFocus=function(H){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():H.target==this.tabCatcherElement_&&BC(this.focusElement_,0,this)};
_.F.focusElement_=function(){try{this.getElement().focus()}catch(H){}};
_.F.disposeInternal=function(){_.Ak(this.popupShowTransition_);this.popupShowTransition_=null;_.Ak(this.popupHideTransition_);this.popupHideTransition_=null;_.Ak(this.bgShowTransition_);this.bgShowTransition_=null;_.Ak(this.bgHideTransition_);this.bgHideTransition_=null;ji.superClass_.disposeInternal.call(this)};var Bl=function(H,C,S){ji.call(this,C,S);this.JSC$10186_class_=H||"modal-dialog";this.buttons_=(new w5).addButton(Jtb,!0).addButton(FvY,!1,!0)};
_.Zh(Bl,ji);_.F=Bl.prototype;_.F.escapeToCancel_=!0;_.F.hasTitleCloseButton_=!0;_.F.modal_=!0;_.F.draggable_=!0;_.F.backgroundElementOpacity_=.5;_.F.title_="";_.F.JSC$10188_dragger_=null;_.F.JSC$10188_disposeOnHide_=!1;_.F.titleEl_=null;_.F.titleTextEl_=null;_.F.titleTextId_=null;_.F.titleCloseEl_=null;_.F.contentEl_=null;_.F.buttonEl_=null;_.F.getCssClass=function(){return this.JSC$10186_class_};
_.F.setTitle=function(H){this.title_=H;this.titleTextEl_&&_.Uv(this.titleTextEl_,H)};
_.F.getTitle=function(){return this.title_};
_.F.getContent=function(){return""};
_.F.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var ZCn=function(H){H.getElement()||H.render();return H.getElement()};
Bl.prototype.getBackgroundElement=function(){this.getElement()||this.render();return Bl.superClass_.getBackgroundElement.call(this)};
var ct7=function(H,C){H.backgroundElementOpacity_=C;H.getElement()&&(C=H.getBackgroundElement())&&aqM(C,H.backgroundElementOpacity_)};
Bl.prototype.setDraggable=function(H){this.draggable_=H;YsW(this,H&&this.inDocument_)};
Bl.prototype.handleDrag=function(){};
var YsW=function(H,C){var S=qD(H.JSC$10186_class_+"-title-draggable").split(" ");H.getElement()&&(C?wa(H.titleEl_,S):hUi(H.titleEl_,S));C&&!H.JSC$10188_dragger_?(C=new _.iM(H.getElement(),H.titleEl_),H.JSC$10188_dragger_=C,wa(H.titleEl_,S),_.PI(H.JSC$10188_dragger_,"start",H.setDraggerLimits_,!1,H),_.PI(H.JSC$10188_dragger_,"drag",H.handleDrag,!1,H)):!C&&H.JSC$10188_dragger_&&(H.JSC$10188_dragger_.dispose(),H.JSC$10188_dragger_=null)};
_.F=Bl.prototype;
_.F.JSC$10157_createDom=function(){Bl.superClass_.JSC$10157_createDom.call(this);var H=this.getElement(),C=this.JSC$10155_dom_;this.titleTextId_=this.getId();var S=this.getId()+".contentEl";this.titleEl_=C.JSC$9341_createDom("DIV",this.JSC$10186_class_+"-title",this.titleTextEl_=C.JSC$9341_createDom("SPAN",{className:this.JSC$10186_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=C.JSC$9341_createDom("SPAN",this.JSC$10186_class_+"-title-close"));vtV(H,this.titleEl_,this.contentEl_=
C.JSC$9341_createDom("DIV",{className:this.JSC$10186_class_+"-content",id:S}),this.buttonEl_=C.JSC$9341_createDom("DIV",this.JSC$10186_class_+"-buttons"));h07(this.titleTextEl_,"heading");h07(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;H4(this.titleCloseEl_,"label","Close");h07(H,"dialog");H4(H,"labelledby",this.titleTextId_||"");_.HN(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(H=this.buttons_,H.JSC$10189_element_=this.buttonEl_,H.render());_.HN(this.buttonEl_,!!this.buttons_);
ct7(this,this.backgroundElementOpacity_)};
_.F.decorateInternal=function(H){Bl.superClass_.decorateInternal.call(this,H);H=this.getElement();var C=this.JSC$10186_class_+"-content";this.contentEl_=hl(document,null,C,H)[0];this.contentEl_||(this.contentEl_=this.JSC$10155_dom_.JSC$9341_createDom("DIV",C),H.appendChild(this.contentEl_));C=this.JSC$10186_class_+"-title";var S=this.JSC$10186_class_+"-title-text",w=this.JSC$10186_class_+"-title-close";(this.titleEl_=hl(document,null,C,H)[0])?(this.titleTextEl_=hl(document,null,S,this.titleEl_)[0],
this.titleCloseEl_=hl(document,null,w,this.titleEl_)[0]):(this.titleEl_=this.JSC$10155_dom_.JSC$9341_createDom("DIV",C),H.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=r91(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.r1("SPAN",{className:S,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;H4(H,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10155_dom_.JSC$9341_createDom("SPAN",w),this.titleEl_.appendChild(this.titleCloseEl_));_.HN(this.titleCloseEl_,this.hasTitleCloseButton_);C=this.JSC$10186_class_+"-buttons";(this.buttonEl_=hl(document,null,C,H)[0])?(this.buttons_=new w5(this.JSC$10155_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10155_dom_.JSC$9341_createDom("DIV",C),H.appendChild(this.buttonEl_),this.buttons_&&(H=this.buttons_,H.JSC$10189_element_=this.buttonEl_,H.render()),_.HN(this.buttonEl_,
!!this.buttons_));ct7(this,this.backgroundElementOpacity_)};
_.F.enterDocument=function(){Bl.superClass_.enterDocument.call(this);xV(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);xV(this).listen(this.buttonEl_,"click",this.onButtonClick_);YsW(this,this.draggable_);xV(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var H=this.getElement();h07(H,"dialog");this.titleTextEl_.id!==""&&H4(H,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){H=this.JSC$10155_dom_;
var C=this.getBackgroundElement();H.removeNode(this.bgIframeEl_);H.removeNode(C)}this.isVisible()&&wnM(this,!1)}};
_.F.exitDocument=function(){this.isVisible()&&this.setVisible(!1);YsW(this,!1);Bl.superClass_.exitDocument.call(this)};
_.F.setVisible=function(H){H!=this.isVisible()&&(this.inDocument_||this.render(),Bl.superClass_.setVisible.call(this,H))};
_.F.onShow=function(){Bl.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.F.onHide=function(){Bl.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10188_disposeOnHide_&&this.dispose()};
_.F.setDraggerLimits_=function(){var H=this.JSC$10155_dom_.JSC$9339_document_,C=_.lR(Bj(H)||window),S=Math.max(H.body.scrollWidth,C.width);H=Math.max(H.body.scrollHeight,C.height);var w=Ri7(this.getElement());_.Lj7(this.getElement())=="fixed"?this.JSC$10188_dragger_.limits=new Ro(0,0,Math.max(0,C.width-w.width),Math.max(0,C.height-w.height)):this.JSC$10188_dragger_.limits=new Ro(0,0,S-w.width,H-w.height)};
_.F.onTitleCloseClick_=function(){zbU(this)};
var zbU=function(H){if(H.hasTitleCloseButton_){var C=H.buttons_,S=C&&C.cancelButton_;S?(C=C.get(S),H.dispatchEvent(new A7(S,C))&&H.setVisible(!1)):H.setVisible(!1)}},Mri=function(H){H.hasTitleCloseButton_=!1;
H.titleCloseEl_&&_.HN(H.titleCloseEl_,H.hasTitleCloseButton_)};
Bl.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;Bl.superClass_.disposeInternal.call(this)};
Bl.prototype.onButtonClick_=function(H){a:{for(H=H.target;H!=null&&H!=this.buttonEl_;){if(H.tagName=="BUTTON")break a;H=H.parentNode}H=null}if(H&&!H.disabled){H=H.name;var C=this.buttons_.get(H);this.dispatchEvent(new A7(H,C))&&this.setVisible(!1)}};
Bl.prototype.onKey_=function(H){var C=!1,S=!1,w=this.buttons_,A=H.target;if(H.type=="keydown")if(this.escapeToCancel_&&H.keyCode==27){var J=w&&w.cancelButton_;A=A.tagName=="SELECT"&&!A.disabled;J&&!A?(S=!0,C=w.get(J),C=this.dispatchEvent(new A7(J,C))):A||(C=!0)}else{if(H.keyCode==9&&H.shiftKey&&A==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(W){}BC(this.resetBackwardTabWrap_,0,this)}}else if(H.keyCode==13){if(A.tagName=="BUTTON"&&!A.disabled)J=A.name;
else if(A==this.titleCloseEl_)zbU(this);else if(w){var c=w.defaultButton_,Y;if(Y=c)a:{Y=vl("BUTTON",w.JSC$10189_element_);for(var M,m=0;M=Y[m];m++)if(M.name==c||M.id==c){Y=M;break a}Y=null}A=(A.tagName=="TEXTAREA"||A.tagName=="SELECT"||A.tagName=="A")&&!A.disabled;!Y||Y.disabled||A||(J=c)}J&&w&&(S=!0,C=this.dispatchEvent(new A7(J,String(w.get(J)))))}else A!=this.titleCloseEl_||H.keyCode!=32&&H.key!=" "||zbU(this);if(C||S)H.stopPropagation(),H.preventDefault();C&&this.setVisible(!1)};
var A7=function(H,C){this.type="dialogselect";this.key=H;this.caption=C};
_.Zh(A7,_.Xc);var w5=function(H){Si.call(this);H||Ol();this.cancelButton_=this.JSC$10189_element_=this.defaultButton_=null};
_.Zh(w5,Si);_.F=w5.prototype;_.F.clear=function(){Si.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.F.set=function(H,C,S,w){Si.prototype.set.call(this,H,C);S&&(this.defaultButton_=H);w&&(this.cancelButton_=H);return this};
_.F.addButton=function(H,C,S){return this.set(H.key,H.caption,C,S)};
_.F.render=function(){if(this.JSC$10189_element_){_.FN(this.JSC$10189_element_,bVD);var H=Ol(this.JSC$10189_element_);this.forEach(function(C,S){C=H.JSC$9341_createDom("BUTTON",{name:S},C);S==this.defaultButton_&&(C.className="goog-buttonset-default");this.JSC$10189_element_.appendChild(C)},this)}};
_.F.decorate=function(H){if(H&&H.nodeType==1){this.JSC$10189_element_=H;H=vl("BUTTON",this.JSC$10189_element_);for(var C,S,w,A=0;C=H[A];A++)if(S=C.name||C.id,w=r91(C)||C.value,S){var J=A==0;this.set(S,w,J,C.name=="cancel");J&&_.FB(C,"goog-buttonset-default")}}};
_.F.getElement=function(){return this.JSC$10189_element_};
var Jtb={key:"ok",caption:"OK"},FvY={key:"cancel",caption:"Cancel"},qs7={key:"yes",caption:"Yes"},TvY={key:"no",caption:"No"},mKW={key:"save",caption:"Save"},WvU={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new w5).addButton(Jtb,!0,!0),(new w5).addButton(Jtb,!0).addButton(FvY,!1,!0),(new w5).addButton(qs7,!0).addButton(TvY,!1,!0),(new w5).addButton(qs7).addButton(TvY,!0).addButton(FvY,!1,!0),(new w5).addButton(WvU).addButton(mKW).addButton(FvY,!0,!0));_.Zh(LC$,Bl);_.Zh(gBu,K6);var ytd=_.xC(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),Nv1=_.xC(["//apis.google.com/js/rpc.js"]),NTU=_.qH(ytd),yOZ=_.qH(Nv1),R36=null;var tk=function(H,C){_.ph.call(this);this.JSC$10198_element_=H;H=_.jr(this.JSC$10198_element_)?this.JSC$10198_element_:this.JSC$10198_element_?this.JSC$10198_element_.body:null;this.isRtl_=!!H&&_.x9b(H);this.listenKey_=_.PI(this.JSC$10198_element_,_.qy?"DOMMouseScroll":"mousewheel",this,C)};
_.Zh(tk,_.ph);tk.prototype.handleEvent=function(H){var C=0,S=0,w=H.event_;w.type=="mousewheel"?(H=bCi(-w.wheelDelta),w.wheelDeltaX!==void 0?(C=bCi(-w.wheelDeltaX),S=bCi(-w.wheelDeltaY)):S=H):(H=w.detail,H>100?H=3:H<-100&&(H=-3),w.axis!==void 0&&w.axis===w.HORIZONTAL_AXIS?C=H:S=H);typeof this.maxDeltaX_==="number"&&(C=_.$C(C,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(S=_.$C(S,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(C=-C);C=new EIn(H,w,C,S);this.dispatchEvent(C)};
var bCi=function(H){return _.Tt&&(_.Rm7||auZ)&&H%40!=0?H:H/40};
tk.prototype.disposeInternal=function(){tk.superClass_.disposeInternal.call(this);XH(this.listenKey_);this.listenKey_=null};
var EIn=function(H,C,S,w){_.Q0.call(this,C);this.type="mousewheel";this.detail=H;this.deltaX=S;this.deltaY=w};
_.Zh(EIn,_.Q0);_.j9=function(H){var C="instance_";if(H.instance_&&H.hasOwnProperty(C))return H.instance_;C=new H;return H.instance_=C};var WQw;var ebU=_.xC(["https://about:blank"]),u27=_.xC(['javascript:""']),G8d=_.xC(["about:blank"]);_.Zh(iW,LC$);_.F=iW.prototype;_.F.JSC$10206_url_="";_.F.JSC$10206_iframe_=null;_.F.iframeLoaded_=!1;_.F.loadedFired_=!1;_.F.callback_=function(){};
_.F.enterDocument=function(){iW.superClass_.enterDocument.call(this);xE$(this.getBackgroundElement(),xV(this))};
_.F.render=function(H){var C=this;iW.superClass_.render.call(this,H);this.useGapi_?Gf7(this.iframeManager_,window).then(function(){return fZd(C)}).then(null,function(){C.callback_({action:"error"})}):vId(this)};
var fZd=function(H){var C=H.JSC$10155_dom_.JSC$9341_createDom("div",["picker-dialog-content","picker-frame"]);_.HN(C,!1);H.getContentElement().appendChild(C);return ft7(H.iframeManager_,C,function(S){var w=KTi(S["iframe-command"]);switch(w.getCommand()){case 1:S=H.callback_;w=_.zf(w,T4,2);var A="";switch(w.getStatus()){case 2:A="cancel";break;case 1:A="picked";break;case 3:A="error"}var J=_.Za(w,Ob,2,_.cl(E5Z));w=J.length===0?{action:A}:w9b(J,A,_.zf(w,rcM,7));S.call(H,w);H.setVisible(!1);break;case 4:Mri(H);
H.callback_({action:"loaded"});break;case 7:case 8:S=H.callback_;a:{A=w.getCommand();J=_.zf(w,T4,2);switch(A){case 7:A="uploadScheduled";break;case 8:A="uploadStateChange";break;default:w={};break a}w=_.Za(J,Ob,2,_.cl(E5Z));if(w.length===0)w={action:A};else{var c=_.zf(J,rcM,7);J=c&&_.$v(c,1);c=UEn(c);w=aQ1(w,A,J,c)}}S.call(H,w)}},H.JSC$10206_url_,H.targetId_,H.rpcToken_).then(function(S){H.JSC$10206_iframe_=S.getIframeEl();
lZ_(H);_.HN(H.JSC$10206_iframe_.parentElement,!0);_.FB(H.getElement(),"picker-dialog");Vr1(H);return S})},vId=function(H){H.JSC$10206_iframe_=H.JSC$10155_dom_.JSC$9341_createDom("IFRAME",{id:H.targetId_,
name:H.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.He(H.JSC$10206_iframe_,oIY(H));_.FB(H.getElement(),"picker-dialog");H.getContentElement().appendChild(H.JSC$10206_iframe_);xV(H).listen(H.JSC$10206_iframe_,"load",function(){return void lZ_(H)});
H.JSC$10206_iframe_.src=H.JSC$10206_url_;Vr1(H)},XnV=function(H){OCW(H,(0,_.Xv)(function(C){C.setAuthToken(this.targetId_,this.rpcToken_)},H))},Vr1=function(H){var C=_.a7(_.I7(H.JSC$10206_url_),"title");
C&&H.setTitle(C)},oIY=function(H){return _.EEZ("Internet Explorer")>=7&&_.AV(H.JSC$10206_url_,"https")?_.qH(ebU):_.My?_.qH(u27):_.qH(G8d)},lZ_=function(H){XnV(H);
H.iframeLoaded_=!0;H.JSC$10206_iframe_.tabIndex=0;H.isVisible()&&H.focus()};
iW.prototype.handleKeydown_=function(H){H.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),H.stopPropagation(),H.preventDefault())};
var OCW=function(H,C){var S=H.JSC$10204_gadgetsDomHelper_;IQw(function(){C(S.getWindow().gadgets.rpc)},S)};
iW.prototype.setUrl=function(H){H=_.xJ(new _.jR(H),"rpcService",this.targetId_);_.xJ(H,"rpctoken",this.rpcToken_);_.NL(H,"rpctoken="+this.rpcToken_);_.qL(H,"https");this.JSC$10206_url_=H.toString();this.JSC$10206_iframe_&&(this.JSC$10206_iframe_.src=this.JSC$10206_url_)};
var Q8Y=function(H,C){H.callback_=C;OCW(H,(0,_.Xv)(function(S){S.register(this.targetId_,(0,_.Xv)(this.handlePickerAction_,this))},H))};
iW.prototype.handlePickerAction_=function(H){var C=H.action;C=="loaded"&&(this.loadedFired_=!0,dKd(this,new t$6(this.isVisible())),Pb7(this),Mri(this),xV(this).unlisten(this.JSC$10155_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10206_iframe_.tabIndex=0);C!="picked"&&C!="cancel"||this.setVisible(!1);this.callback_(H)};
var Pb7=function(H){H.JSC$10206_appId_&&dKd(H,new KCw(H.JSC$10206_appId_,window.location.protocol+"//"+window.location.host))};
iW.prototype.setRelayUrl=function(H){OCW(this,(0,_.Xv)(function(C){C.setRelayUrl(this.targetId_,H)},this))};
var dKd=function(H,C){H.useGapi_&&OVY(C,H.iframeManager_).then(null,function(){H.callback_({action:"error"})});
OCW(H,(0,_.Xv)(function(S){S.call(this.targetId_,"picker",null,C)},H))};
iW.prototype.resizePicker_=function(){var H=Bj(this.JSC$10155_dom_.JSC$9339_document_)||window;if(_.a7(_.I7(this.JSC$10206_url_),"ignoreLimits")=="true")H=new _.vj(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.a7(_.I7(this.JSC$10206_url_),"shadeDialog")=="true"){var C=ZCn(this);C=H9V(C);var S=_.lR(H);H=S.width-80;S=S.height-40;C&&(H-=C.left?C.left:0,H-=C.right?C.right:0,S-=C.top?C.top:0,S-=C.bottom?C.bottom:0);H=new _.vj(H>0?H:0,S>0?S:0)}else(C=this.preferredDialogWidth_)?(C=Math.max(320,
Math.min(1051,C)),(S=this.preferredDialogHeight_)||(S=_.lR(H).height*.85),S=Math.max(480,Math.min(650,S))):(C=_.lR(H),S=C.width*.618,S=S<C.height?Math.round(Math.max(480,Math.min(650,S*.85))):Math.round(Math.max(480,Math.min(650,C.height*.85))),C=Math.round(S/.618)),H=_.lR(H),C=Math.min(C,Math.max(H.width,320)),S=Math.min(S,Math.max(H.height,480)),H=new _.vj(C,S);_.gtb(this.getContentElement(),H);this.reposition()};
iW.prototype.reposition=function(){if(_.a7(_.I7(this.JSC$10206_url_),"shadeDialog")=="true"){var H=Ri7(this.getElement()),C=_.lR(this.JSC$10155_dom_.getWindow());H=Math.floor(C.width/2-H.width/2);C=ZCn(this);if(C=H9V(C)){var S=C.left?C.left:0;S+=C.right?C.right:0;H=Math.floor(H-S/2)}H=H>0?H:0;C=op(this.JSC$10155_dom_).y;xS(this.getElement(),H,C)}else iW.superClass_.reposition.call(this)};
iW.prototype.setVisible=function(H){if(H!=this.isVisible()&&this.autoSizeDialog_){var C=this.JSC$10155_dom_.getWindow();H?(this.resizePicker_(),xV(this).listen(C,"resize",this.resizePicker_),this.iframeLoaded_||xV(this).listen(C,"keydown",this.handleKeydown_)):(xV(this).unlisten(C,"resize",this.resizePicker_),this.iframeLoaded_||xV(this).unlisten(C,"keydown",this.handleKeydown_))}iW.superClass_.setVisible.call(this,H);dKd(this,new t$6(H))};
iW.prototype.focus=function(){iW.superClass_.focus.call(this);if(this.JSC$10206_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10206_iframe_.focus()}catch(H){}};var Kf=function(H,C){C=C===void 0?iW:C;K6.call(this,H);this.pickerConstructor=C;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(H=window.location.origin)||(H=window.location.protocol+"//"+window.location.host);H&&this.urlParamMap_.set("origin",H);this.postProcessors_=[]};
_.G(Kf,gBu);Kf.prototype.JSC$10211_disposeOnHide_=!1;
Kf.prototype.build=function(){this.JSC$10112_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10112_appId_);this.getRelayUrl()||this.setRelayUrl(_.Ww(_.NL(_.yS(_.I7(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var H=new this.pickerConstructor($KM(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);H.JSC$10188_disposeOnHide_=this.JSC$10211_disposeOnHide_;
H.JSC$10206_appId_=this.JSC$10112_appId_;H.loadedFired_&&Pb7(H);Q8Y(H,this.callback_);return H};
var pnY=function(H){H.urlParamMap_.set("multiselectEnabled","true");return H};
_.F=Kf.prototype;_.F.getHeight=function(){return this.dialogHeight_};
_.F.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.F.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.F.getTitle=function(){return this.urlParamMap_.get("title")};
_.F.getWidth=function(){return this.dialogWidth_};
var k8i=function(H){H.JSC$10211_disposeOnHide_=void 0;return H};
Kf.prototype.setRelayUrl=function(H){this.urlParamMap_.set("parent",H);return this};
var hbb=function(H,C){H.urlParamMap_.set("selectButtonLabel",C);return H};
Kf.prototype.setSize=function(H,C){this.dialogWidth_=H;this.dialogHeight_=C;return this};
Kf.prototype.setTitle=function(H){this.urlParamMap_.set("title",H);return this};
var $KM=function(H){H.postProcessors_.length&&H.urlParamMap_.set("pp",JSON.stringify(H.postProcessors_));H.urlParamMap_.set("nav",KC1(H.nav_));var C=new _.jR(H.getBaseUrl());H.urlParamMap_.forEach(function(S,w){_.xJ(C,w,S)});
return C};var BvP=function(H,C){H.name!==void 0?(this.name=H.name,this.code=nI7[H.name]):(this.code=H=H.code,this.name=rt7(H));_.CU.call(this,F1n("%s %s",this.name,C))};
_.Zh(BvP,_.CU);var rt7=function(H){var C=_.hb.findKey(nI7,function(S){return H==S});
if(C===void 0)throw Error("hb`"+H);return C},J7={},nI7=(J7.AbortError=3,J7.EncodingError=5,J7.InvalidModificationError=9,J7.InvalidStateError=7,J7.NotFoundError=1,J7.NotReadableError=4,J7.NoModificationAllowedError=6,J7.PathExistsError=12,J7.QuotaExceededError=10,J7.SecurityError=2,J7.SyntaxError=8,J7.TypeMismatchError=11,J7);var DKb=function(H,C){_.Xc.call(this,H.type,C);this.event_=H};
_.Zh(DKb,_.Xc);var KvY=function(H,C,S){S===void 0&&(S=H.size);return H.slice?H.slice(C,S):null};var e00=new WeakMap,EuU=function(H,C){H=[H];for(var S=C.length-1;S>=0;--S)H.push(typeof C[S],C[S]);return H.join("\v")};_.GfZ(function(){if(!_.s$.Blob)return!1;var H=new Uint8Array(100);try{var C=new Blob([H])}catch(S){return!1}return C.size!=100?!1:!0});
var trV=_.GfZ(function(){if(!_.s$.Blob)return!1;var H=new Uint8Array(100);try{var C=new Blob([H])}catch(S){return!1}return KvY(C,0,1)===null?!1:!0});_.s$.U3bHHf!=null||(_.s$.U3bHHf=0);_.s$.U3bHHf++;_.LvW=new WeakMap;_.gIM=new WeakMap;var vup={};var sF=void 0;var Vk$=Symbol("pb");var BTU=Aa("WizInjectionContext_Dispatcher");var JE=Symbol("qb");var Eg,lE;Eg=function(){this.afterRenderCallbacks=null};
_.YXp=Symbol("rb");lE=function(H){this.props=H;this.__unmounted=!1};
lE.prototype.didPatch=function(){};
lE.prototype.didMount=function(){};
lE.prototype.didUnmount=function(){};
lE.prototype.didUpdate=function(){};_.p9i=Aa("WizInjectionContext_RootElement");var h0Z=Aa("WizInjectionContext_AppContext"),kf$=Aa("WizInjectionContext_ModelRootElement"),nuw=Aa("WizInjectionContext_RendererData"),rOW=Aa("WizInjectionContext_InjectingConstructor"),$zE=Aa("WizInjectionContext_AsyncDeps"),Dzw={};var R0D=!1;var HCE={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:DYu,enableLazyTsx:KpV,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:BFU,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var Fb=Object.assign({},{attributes:{},handleError:function(H){throw H;}},HCE);var UKY=Symbol("vb"),uW=Symbol("wb"),Rbi=Symbol("xb"),gIE=Symbol("yb"),SWW=dU(function(H){return Zp(H)&&UKY in H});var Atp=Symbol("zb"),FU={},j8E=(FU[Atp]=!0,FU.debugName="[component]",FU.getComponentStack=function(){for(var H=[],C=this;C;)Jt7(C)&&H.push(C.debugName),C=C.parent;return H},FU.registerSignal=function(){},FU.registerEffect=function(){},FU);var cN=null,zR=!1,Ysp=1,bCD=Symbol("Db"),bW={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 Zx=Symbol("Eb"),c4=Symbol("Fb"),qj=Symbol("Gb"),Nvw=Object.assign({},bW,{value:Zx,dirty:!0,error:null,equal:Fvi,kind:"computed",producerMustRecompute:function(H){return H.value===Zx||H.value===c4},
producerRecomputeValue:function(H){if(H.value===c4)throw Error("Z");var C=H.value;H.value=c4;var S=mKp(H),w=!1;try{var A=H.computation();Y1(null);w=C!==Zx&&C!==qj&&A!==qj&&H.equal(C,A)}catch(J){A=qj,H.error=J}finally{ytW(H,S)}w?H.value=C:(H.value=A,H.version++)}});Object.assign({},bW,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,kind:"effect"});var G8W=function(){throw Error();};var vI6=null,ebu=Object.assign({},bW,{equal:Fvi,value:void 0,kind:"signal"});Object.assign({},bW,{value:Zx,dirty:!0,error:null,equal:Fvi,kind:"linkedSignal",producerMustRecompute:function(H){return H.value===Zx||H.value===c4},
producerRecomputeValue:function(H){if(H.value===c4)throw Error("Z");var C=H.value;H.value=c4;var S=mKp(H);try{var w=H.source();var A=H.computation(w,C===Zx||C===qj?void 0:{source:H.sourceValue,value:C});H.sourceValue=w}catch(J){A=qj,H.error=J}finally{ytW(H,S)}C!==Zx&&A!==qj&&H.equal(C,A)?H.value=C:(H.value=A,H.version++)}});Object.assign({},bW,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(H){H.schedule!==null&&H.schedule(H.ref)},
hasRun:!1,cleanupFn:function(){}});var VrE=Symbol("Hb"),WN=Symbol("Ib");var yM=Array.isArray;var k8D;var RbY={},nIZ=pni(Object.assign({},{consumerAllowSignalWrites:!0},RbY)),uE=pni(Object.assign({},{consumerAllowSignalWrites:!0},RbY));var GR=0,vN=!1,YU=function(){this.queue=new Set};
YU.prototype.schedule=function(H){this.queue.add(H)};
YU.prototype.remove=function(H){this.queue.delete(H)};
YU.prototype.clear=function(){this.queue.clear()};
var DK7=Symbol("Nb"),rtZ=Symbol("Ob"),z$=function(){YU.apply(this,arguments)};
_.G(z$,YU);z$.prototype.flush=function(){if(this.queue.size){vN=!0;for(var H=_.Z(this.queue),C=H.next();!C.done;C=H.next()){C=C.value;this.queue.delete(C);try{C.run()}catch(S){IZd(S)}}vN=!1}};
var aZY=function(){z$.apply(this,arguments)};
_.G(aZY,z$);var BvU=new aZY,xK1=function(){z$.apply(this,arguments)};
_.G(xK1,z$);xK1.prototype.schedule=function(H){var C=this;return _.z(function(S){if(S.nextAddress==1)return Fb.enableQueueEffectAndOnInitInitialRuns?S.jumpTo(2):S.yield(Promise.resolve(),3);if(S.nextAddress!=2)return H.run(),S.return();C.queue.add(H);_.oT(S)})};
var Kvi=new xK1,Mg=function(){YU.apply(this,arguments)};
_.G(Mg,YU);Mg.prototype.flush=function(){this.queue.size&&sqZ(this.queue)};
var Hm1=function(){Mg.apply(this,arguments)};
_.G(Hm1,Mg);Hm1.prototype.schedule=function(H){H.hasRun?this.queue.add(H):H.run()};
Hm1.prototype.flush=function(){if(this.queue.size)if(Fb.flushRenderEffectsDuringRender){var H=this.queue;this.queue=new Set;sqZ(H)}else sqZ(this.queue)};
var Lvp=new Hm1,imU=function(){Mg.apply(this,arguments)};
_.G(imU,Mg);imU.prototype.schedule=function(H){var C=this;return _.z(function(S){if(S.nextAddress==1)return Fb.enableQueueEffectAndOnInitInitialRuns||H.hasRun?S.jumpTo(2):S.yield(Promise.resolve(),3);if(S.nextAddress!=2)return H.run(),S.return();C.queue.add(H);_.oT(S)})};
var IZ6=new imU,Cy7=function(){Mg.apply(this,arguments)};
_.G(Cy7,Mg);var UKi=new Cy7,xKw=[Lvp,BvU,UKi],CyZ=[Kvi,IZ6],SWd=[Lvp,UKi,IZ6],jqZ=[].concat(_.k$(xKw),_.k$(CyZ)),sq7=[];vI6=function(){imu();for(var H=_.Z(sq7),C=H.next();!C.done;C=H.next())C=C.value,C()};
var IZd=jZ;var oE=Symbol("Pb");var VM=null,JPp,Frp=null,ZmW;var qg={},jq7=Object.assign({},bW,(qg[UKY]=!0,qg.effectType=uW,qg.isResettableContext=!0,qg.hasRun=!1,qg.effectFn=null,qg.consumerIsAlwaysLive=!0,qg.consumerAllowSignalWrites=!0,qg.consumerMarkedDirty=aZi,qg.kind="effect",qg.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(zR)throw Error("Qb");this.dirty=!1;if(!this.hasRun||zbu(this)){this.hasRun=!0;PCE(this);var H=_.jL(this),C=mKp(this);CbU("effectRun",this.debugName);try{QM(this.effectFn,this.componentStack,this)}catch(S){throw Fb.enableContextBasedComponentStacks&&
Xb(S),S;}finally{SsZ("effectRun",this.debugName),ytW(this,C),_.jL(H)}}}},qg.componentStack=void 0,qg.debugName="[effect]",qg[Symbol.dispose]=function(){if(Mj(this))for(var H=this.producers;H!==void 0;)H=Wvu(H);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;H=_.Z(SWd);for(var C=H.next();!C.done;C=H.next())C.value.remove(this);dzV(this)},qg));var zrW=Object.assign({},jq7,{effectType:Rbi});var Ma$=Symbol("Rb");var qWZ=Object.assign({},jq7,{effectType:uW});var aVp=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 WrW={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},m_V=
{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}]}},wwE={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},bmW=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],NdE={"*":{async:1,dir:0,loading:2,target:3}};var w51=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,T$={},erw=(T$[1]=null,T$[2]=function(H,C){return C instanceof Ut?xD(C):BV.toString()},T$[3]=function(H,C){return p9(C)?_.kD(C):w51.test(String(C))?String(C):BV.toString()},T$[4]=function(H,C){return C instanceof o2?_.Qv(C):BV.toString()},T$[5]=function(H,C){return String(C)},T$[7]=null,T$[8]=null,T$[10]=null,T$);var WRi=Symbol("Xb");var KKU=function(H){var C=APM,S=H,w="",A="",J=1;H<0&&(H=-H);if(H===Infinity)H=(Infinity*Math.sign(S)).toString();else{for(var c=0;c<JPW.length;c++){var Y=JPW[c];J=C[Y];if(H>=J||J<=1&&H>.1*J){w=Y;break}}w?(w+="B",A=" "):J=1;H=Math.round(S/J*10)/10+A+w}return H},JPW="Y Z E P T G M K  m u n".split(" "),APM={"":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};_.FrW=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 qn={};RegExp.prototype.hasOwnProperty("sticky");var HDW=function(H){H=String(H);for(var C=function(w,A,J){for(var c=Math.min(A.length-J,w.length),Y=0;Y<c;Y++){var M=A[J+Y];if(w[Y]!==("A"<=M&&M<="Z"?M.toLowerCase():M))return!1}return!0},S=0;(S=H.indexOf("<",S))!=-1;){if(C("\x3c/script",H,S)||C("\x3c!--",H,S))return"zSoyz";
S+=1}return H};var Dp={default:"__default"};var Vai=Object.prototype.hasOwnProperty;fVp.prototype=Object.create(null);var JP=X5W();var SI=null;var Kr6=function(H){this.created=[];this.deleted=[];this.node=H};var ta0=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var H=this,C=H;H;)C=H,H=H.parentNode;return C};var d_p=function(H,C){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=H;this.key=C;this.text=void 0};var IE=null,aE=null,Ls=null,Hh=null,hrE=[],kqp=$_p,iE=[],Cp=[],mNu=function(H){return Lrw(function(C,S,w){Ls=aE=C;aE=null;S(w);p5$(null);aE=Ls;Ls=Ls.parentNode;return C},H)}(),T$6=function(H){return Lrw(function(C,S,w){var A={nextSibling:C};
aE=A;S(w);Ls&&p5$(C.nextSibling);return A===aE?null:aE},H)}();var sg=[],U_i=0;var jI=new fVp;var n7=new fVp;var Zmd=X5W(),SkU=Zmd[Dp.default],Cs0=Zmd.style,x_0=["focusin","focusout"],wME="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var tjZ=function(){},dQZ=function(){},Igw=function(){},g_W=function(){};var AE=Symbol("bc");var cJZ,ZDp=FPZ;var Wh=Symbol("cc");var RkZ=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(" ")),
UQD=new Set(["a","font","script","style","title"]);_.ml={setUp:uji,tearDown:uji,log:uji,logNodeRange:uji,graft:function(H,C){C()}};var GA={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var fp=null,vh=function(H,C){lE.call(this,H);var S=this;this.functionComponent=C;this.hooks=[];this.hookCounter=0;this.disposeEffects=$1(function(w){S.effectContext=w;_.PN(function(){kcW(S,S.el)})},Fb.alwaysTrackContexts||!!sF)};
_.G(vh,lE);vh.prototype.render=function(H){var C=fp;fp=this;this.hookCounter=0;var S=Y1(uE),w=_.jL(this.effectContext);try{return CbU("render",this.componentName),this.functionComponent(H)}finally{SsZ("render",this.componentName),_.jL(w),Y1(S),fp=C}};
_.JJ.Object.defineProperties(vh.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return w5E(this.functionComponent)}}});var agE=Symbol("qc"),DQp=function(H,C,S){this.afterRenderCallbacks=null;this.kind=H;this.props=C;this.children=S};
_.G(DQp,Eg);DQp.prototype.render=function(){var H=BMZ(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var C=_.Z(this.afterRenderCallbacks),S=C.next();!S.done;S=C.next())S=S.value,H=S(H);return H};
DQp.prototype.getChildren=function(){return this.children};var HL$=[];G8W=function(H){throw Error("ob`"+H.debugName);};
(function(){var H=SI;SI=function(C){H==null||H(C);iLi(C)}})();Object.assign({},jq7,{effectType:uW,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var H=this.elementRef;var C;H.element!=null||(H.element=(C=H.document.getElementById(H.value))!=null?C:void 0);H=H.element;for(C=this.attributes;C;){var S=C.signal();S!==C.prevValue&&(C.prevValue=S,C.namespace===1?H[C.name]=S:aVp.has(C.name)?BN(H,C.name,S?"":null):BN(H,C.name,S));C=C.next}}});Object.assign({},jq7,{effectType:uW,hasRun:!0});_.T.debugName="RlDudd";var C9i={nonNullableCondIsNull:function(){return Error("uc")}};var JME=function(){this.map=new Map};
JME.prototype.push=function(H,C){var S=this.map;S.has(H)&&(this.multi||(this.multi=new Map),this.multi.set(C,S.get(H)));S.set(H,C)};
JME.prototype.pop=function(H){var C=this.map,S=C.get(H),w;S!==void 0&&((w=this.multi)==null?0:w.has(S))?(C.set(H,this.multi.get(S)),this.multi.delete(S)):C.delete(H);return S};_.Vq.debugName="nsTGHd";_.o6.debugName="tbhMcf";_.Og.debugName="zyMFzb";_.X9.debugName="vI1rtf";_.MRU={OUT_OF_ORDER_HOOK_CALL:function(H){return Error("vc`"+H)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("wc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("xc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("yc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(H,C){return Error("zc`"+((C===void 0?0:C)?"IDOM":"Reactive")+"`"+(Qq(H)?H.description:H))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(H,C){return Error("Ac`"+(Qq(H)?H.description:H)+"`"+C)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(H){return Error("Bc`"+(Qq(H)?H.description:H))},
USE_ELEMENT_NOT_ASSIGNED:function(H){return Error("Cc`"+(Qq(H)?H.description:H))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(H){return Error("Dc`"+(Qq(H)?H.description:H))}};cJZ=KP$;var NVw=Symbol("Ec");$Qi({beforeRender:function(H){var C=_.jL(H.effectContext);try{var S;((S=H.__syncEffects)==null?0:S.length)&&eNU(H.__syncEffects)}finally{_.jL(C)}},
didPatch:function(H){var C=_.jL(H.effectContext);try{var S;((S=H.__syncEffects)==null?0:S.length)&&eNU(H.__syncEffects)}finally{_.jL(C)}},
didUnmount:function(H){var C;((C=H.hooks)==null?0:C.length)&&H.hooks.forEach(ERE)}});var cPd,YWV,zrd;cPd=_.s$.window;_.hE=(cPd==null?void 0:(YWV=cPd.yt)==null?void 0:YWV.config_)||(cPd==null?void 0:(zrd=cPd.ytcfg)==null?void 0:zrd.data_)||{};_.AO("yt.config_",_.hE);var Man={},lR0=[];_.X0=function(H){var C=_.tc.apply(1,arguments);var S=Error.call(this,H);this.message=S.message;"stack"in S&&(this.stack=S.stack);this.args=[].concat(_.k$(C));Object.setPrototypeOf(this,this.constructor.prototype)};
_.G(_.X0,Error);var BeE=function(H,C,S){this.actionName=H;this.optionalAction=C===void 0?!1:C;this.args=S===void 0?null:S;this.returnValue=[]};_.mi=function(H){this.name=H};_.gv=new _.mi("signalAction");var hNU=/^[\w.]*$/,Qk6={q:!0,search_query:!0},XH$=String(OLU);var F0;F0=Symbol("Fc");_.W4=function(H){this.name=H};
_.W4.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var nRU=function(H){this.key=H},tR6=function(H){this.deferredKey=H},BVZ=function(){var H=this;
this.providers=new Map;this.JSC$10505_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(H.providers)}}};
BVZ.prototype.addProvider=function(H){this.providers.set(H.provide,H);var C=this.JSC$10505_deferred.get(H.provide);if(C)try{C.resolver(this.resolve(H.provide))}catch(S){C.rejector(S)}};
BVZ.prototype.resolve=function(H){return H instanceof tR6?qW7(this,H):H instanceof nRU?Tdb(this,H.key,[],!0):Tdb(this,H,[])};
var qW7=function(H,C){C=C.deferredKey;if(H.JSC$10505_deferred.has(C))return H.JSC$10505_deferred.get(C).promise;var S={};S.promise=new Promise(function(w,A){S.resolver=w;S.rejector=A});
H.JSC$10505_deferred.set(C,S);return S.promise},Tdb=function(H,C,S,w){w=w===void 0?!1:w;
if(S.indexOf(C)>-1)throw Error("Gc`"+C);if(H.cachedValues.has(C))return H.cachedValues.get(C);if(!H.providers.has(C)){if(w)return;throw Error("Hc`"+C);}w=H.providers.get(C);S.push(C);if(w.useValue!==void 0)var A=w.useValue;else if(w.useFactory)A=w[F0]?m__(H,w[F0],S):[],A=w.useFactory.apply(w,_.k$(A));else if(w.useClass){A=w.useClass;var J=A[F0]?m__(H,A[F0],S):[];A=new (Function.prototype.bind.apply(A,[null].concat(_.k$(J))))}else throw Error("Ic`"+C);S.pop();w.skipCache||H.cachedValues.set(C,A);return A},
m__=function(H,C,S){return C?C.map(function(w){return w instanceof nRU?Tdb(H,w.key,S,!0):Tdb(H,w,S)}):[]};var rMw;var Us=new _.W4("ENDPOINT_HANDLER_TOKEN");_.R8=new _.mi("urlEndpoint");var Wrd=function(){this.data=[];this.cachedPackedInt52=-1};
Wrd.prototype.set=function(H,C){C=C===void 0?!0:C;0<=H&&H<52&&Number.isInteger(H)&&this.data[H]!==C&&(this.data[H]=C,this.cachedPackedInt52=-1)};
Wrd.prototype.get=function(H){return!!this.data[H]};
var yPb=function(H){H.cachedPackedInt52===-1&&(H.cachedPackedInt52=H.data.reduce(function(C,S,w){return C+(S?Math.pow(2,w):0)},0));
return H.cachedPackedInt52};var wFZ=function(H){var C=Nd1;H=H===void 0?_.gh("yt.ads.biscotti.lastId_")||"":H;var S=Object,w=S.assign,A={};A.dt=WBb;A.flash="0";a:{try{var J=C.JSC$10511_win_.top.location.href}catch(ii){J=2;break a}J=J?J===C.doc_.location.href?0:1:2}A=(A.frm=J,A);try{A.u_tz=-(new Date).getTimezoneOffset();try{var c=Cq.history.length}catch(ii){c=0}A.u_his=c;var Y;A.u_h=(Y=Cq.screen)==null?void 0:Y.height;var M;A.u_w=(M=Cq.screen)==null?void 0:M.width;var m;A.u_ah=(m=Cq.screen)==null?void 0:m.availHeight;var W;A.u_aw=
(W=Cq.screen)==null?void 0:W.availWidth;var y;A.u_cd=(y=Cq.screen)==null?void 0:y.colorDepth}catch(ii){}c=C.JSC$10511_win_;try{var N=c.screenX;var b=c.screenY}catch(ii){}try{var u=c.outerWidth;var O=c.outerHeight}catch(ii){}try{var d=c.innerWidth;var p=c.innerHeight}catch(ii){}try{var k=c.screenLeft;var R=c.screenTop}catch(ii){}try{d=c.innerWidth,p=c.innerHeight}catch(ii){}try{var L=c.screen.availWidth;var t=c.screen.availTop}catch(ii){}N=[k,R,N,b,L,t,u,O,d,p];b=NSp(!1,C.JSC$10511_win_.top);u={};
var g=g===void 0?_.s$:g;O=new Wrd;"SVGElement"in g&&"createElementNS"in g.document&&O.set(0);d=TiM();d["allow-top-navigation-by-user-activation"]&&O.set(1);d["allow-popups-to-escape-sandbox"]&&O.set(2);g.crypto&&g.crypto.subtle&&O.set(3);"TextDecoder"in g&&"TextEncoder"in g&&O.set(4);g=yPb(O);C=(u.bc=g,u.bih=b.height,u.biw=b.width,u.brdim=N.join(),u.vis=cEu(C.doc_),u.wgl=!!Cq.WebGLRenderingContext,u);S=w.call(S,A,C);S.ca_type="image";H&&(S.bid=H);return S},Nd1=new function(){var H=window.document;
this.JSC$10511_win_=window;this.doc_=H};
_.AO("yt.ads_.signals_.getAdSignalsString",function(H){return d37(wFZ(H))});_.FF();navigator.userAgent.indexOf(" (CrKey ");var IRw="XMLHttpRequest"in _.s$?function(){return new XMLHttpRequest}:null;var bmd="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),Efn=[].concat(_.k$(bmd),["client_dev_set_cookie"]);var juE={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"},H8u="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(_.k$(bmd)),qaZ=!1,CaZ=_.AfE,YaZ=su0;var ptE=[{messageFn:function(H){return"Cannot read property '"+H.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(H){return"Cannot call '"+H.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(H){return H.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var er1={messageWeights:[],callbackWeights:[{callback:yfU,weight:500},{callback:NBW,weight:500}]};var uyi=function(){this.callbackWeights=[];this.messageWeights=[]},GqW,$pi=function(){if(!GqW){var H=GqW=new uyi;
H.messageWeights.length=0;H.callbackWeights.length=0;o8i(H,er1)}return GqW},o8i=function(H,C){C.messageWeights&&H.messageWeights.push.apply(H.messageWeights,C.messageWeights);
C.callbackWeights&&H.callbackWeights.push.apply(H.callbackWeights,C.callbackWeights)};_.Zh(_.G9,_.Op);_.G9.prototype.subscribe=function(H,C,S){var w=this.topics_[H];w||(w=this.topics_[H]=[]);var A=this.JSC$10535_key_;this.subscriptions_[A]=H;this.subscriptions_[A+1]=C;this.subscriptions_[A+2]=S;this.JSC$10535_key_=A+3;w.push(A);return A};
var fVW=function(H){var C=rBu,S=!1,w=C.subscribe("handleError",function(A){S||(S=!0,this.unsubscribeByKey(w),H.apply(void 0,arguments))},C)};
_.G9.prototype.unsubscribe=function(H,C,S){if(H=this.topics_[H]){var w=this.subscriptions_;if(H=H.find(function(A){return w[A+1]==C&&w[A+2]==S}))return this.unsubscribeByKey(H)}return!1};
_.G9.prototype.unsubscribeByKey=function(H){var C=this.subscriptions_[H];if(C){var S=this.topics_[C];this.publishDepth_!=0?(this.pendingKeys_.push(H),this.subscriptions_[H+1]=function(){}):(S&&_.ru(S,H),delete this.subscriptions_[H],delete this.subscriptions_[H+1],delete this.subscriptions_[H+2])}return!!C};
_.G9.prototype.publish=function(H,C){var S=this.topics_[H];if(S){var w=Array(arguments.length-1),A=arguments.length,J;for(J=1;J<A;J++)w[J-1]=arguments[J];if(this.async_)for(J=0;J<S.length;J++)A=S[J],vfP(this.subscriptions_[A+1],this.subscriptions_[A+2],w);else{this.publishDepth_++;try{for(J=0,A=S.length;J<A&&!this.isDisposed();J++){var c=S[J];this.subscriptions_[c+1].apply(this.subscriptions_[c+2],w)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;S=this.pendingKeys_.pop();)this.unsubscribeByKey(S)}}return J!=
0}return!1};
var vfP=function(H,C,S){_.hS(function(){H.apply(C,S)})};
_.G9.prototype.clear=function(H){if(H){var C=this.topics_[H];C&&(C.forEach(this.unsubscribeByKey,this),delete this.topics_[H])}else this.subscriptions_.length=0,this.topics_={}};
_.G9.prototype.getCount=function(H){if(H){var C=this.topics_[H];return C?C.length:0}H=0;for(C in this.topics_)H+=this.getCount(C);return H};
_.G9.prototype.disposeInternal=function(){_.G9.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var rBu=new _.G9;var mQ=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(mQ,_.Jc);mQ.prototype.getColdHashData=function(){return _.$v(this,3)};
mQ.prototype.getHotHashData=function(){return _.$v(this,5)};
mQ.prototype.setHotHashData=function(H){return _.XA(this,5,H)};var QwD=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(QwD,_.Jc);var JBU=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(JBU,_.Jc);_.F=JBU.prototype;_.F.getDeviceId=function(){return _.$v(this,6)};
_.F.getExperimentIds=function(H){var C=_.IO(this,9,_.wi,3,!0);HP6(C,H);return C[H]};
_.F.getPlayerType=function(){return _.p5(this,36)};
_.F.setHomeGroupInfo=function(H){return _.f9(this,81,H)};
_.F.clearLocationPlayabilityToken=function(){return _.Tf(this,89)};var G8=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(G8,_.Jc);G8.prototype.setKey=function(H){return _.XA(this,1,H)};
G8.prototype.getValue=function(){return hC(this,2,ZnD)};
var ZnD=[2,3,4,5,6];var lVn=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(lVn,_.Jc);lVn.prototype.setTrackingParams=function(H){return _.Tf(this,1,_.On(H,!1))};var F_Z=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(F_Z,_.Jc);var $5u=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G($5u,_.Jc);$5u.prototype.getExperimentIds=function(H){var C=_.IO(this,5,_.EMp,3,!0);HP6(C,H);return C[H]};var Vm=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(Vm,_.Jc);Vm.prototype.getToken=function(){return _.ud(this,2)};
Vm.prototype.setToken=function(H){return _.XA(this,2,H)};var vn=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(vn,_.Jc);vn.prototype.setSafetyMode=function(H){return _.qz(this,5,H)};var ub=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(ub,_.Jc);ub.prototype.setClient=function(H){return _.f9(this,1,H)};var P4p={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 d5$;_.kF=function(){var H=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.s$.addEventListener("beforeinstallprompt",function(C){C.preventDefault();H.deferredInstallPrompt=C});
_.s$.addEventListener("appinstalled",function(){H.appInstalledEventFired=!0},{once:!0})};
d5$=function(){if(!_.s$.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.s$.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.s$.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.s$.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.s$.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(H){return"WEB_DISPLAY_MODE_UNKNOWN"}};var hu$=function(){this.syncHeaders=!0},nFE=function(H){var C={},S=[];
"USER_SESSION_ID"in _.hE&&S.push({key:"u",value:_.rh("USER_SESSION_ID")});if(S=_.Jx6(S))C.Authorization=S,S=H=H==null?void 0:H.sessionIndex,S===void 0&&(S=Number(_.rh("SESSION_INDEX",0)),S=isNaN(S)?0:S),_.E("voice_search_auth_header_removal")||(C["X-Goog-AuthUser"]=S.toString()),"INNERTUBE_HOST_OVERRIDE"in _.hE||(C["X-Origin"]=window.location.origin),H===void 0&&"DELEGATED_SESSION_ID"in _.hE&&(C["X-Goog-PageId"]=_.rh("DELEGATED_SESSION_ID"));return C};var VaY={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var y6=_.gh("ytglobal.prefsUserPrefsPrefs_")||{},of1;_.AO("ytglobal.prefsUserPrefsPrefs_",y6);_.Ng=function(){this.cookieName=_.rh("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.rh("ALT_PREF_COOKIE_DOMAIN","youtube.com");var H=_.vA.get(this.cookieName,void 0);H&&this.parse(H)};
_.VN=function(){of1||(of1=new _.Ng);return of1};
_.Ng.prototype.get=function(H,C){OmM(H);X5d(H);H=y6[H]!==void 0?y6[H].toString():null;return H!=null?H:C?C:""};
_.Ng.prototype.set=function(H,C){OmM(H);X5d(H);if(C==null)throw Error("Lc");y6[H]=C.toString()};
_.Ng.prototype.getFlag=function(H){return!!((QqW("f"+(Math.floor(H/31)+1))||0)&1<<H%31)};
_.ok=function(H,C,S){H="f"+(Math.floor(C/31)+1);C=1<<C%31;var w=QqW(H)||0;w=S?w|C:w&~C;w===0?delete y6[H]:(S=w.toString(16),y6[H]=S.toString())};
_.Ng.prototype.remove=function(H){OmM(H);X5d(H);delete y6[H]};
_.Ng.prototype.save=function(){var H=!0;_.E("web_secure_pref_cookie_killswitch")&&(H=!1);_.l5(this.cookieName,this.dump(),63072E3,this.cookieDomain,H)};
_.Ng.prototype.clear=function(){_.hb.clear(y6)};
_.Ng.prototype.dump=function(){var H=[],C;for(C in y6)y6.hasOwnProperty(C)&&H.push(C+"="+encodeURIComponent(String(y6[C])));return H.join("&")};
var X5d=function(H){if(/^f([1-9][0-9]*)$/.test(H))throw Error("Mc`"+H);},OmM=function(H){if(!/^\w+$/.test(H))throw Error("Nc`"+H);
},QqW=function(H){H=y6[H]!==void 0?y6[H].toString():null;
return H!=null&&/^[A-Fa-f0-9]+$/.test(H)?parseInt(H,16):null};
_.Ng.prototype.parse=function(H){H=decodeURIComponent(H).split("&");for(var C=0;C<H.length;C++){var S=H[C].split("="),w=S[0];(S=S[1])&&(y6[w]=S.toString())}};var Vp0={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"},pU7={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},k5Z={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},O8p={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var yi;_.bM=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.X2=function(H,C,S){return H.addJob(C,0,S)};
_.bM.prototype.addLowPriorityJob=function(H,C){return this.addJob(H,1,C)};
_.dw=function(H,C,S){return H.addJob(C,2,S)};
_.mx=function(H,C,S){return H.addJob(C,3,S)};
_.Ns=function(H,C,S){return H.addJob(C,4,S)};
yi=function(H){var C=_.gh("yt.scheduler.instance.addImmediateJob");C?C(H):H()};
_.bM.prototype.debounce=function(H,C,S){var w=this,A=0,J=function(){A&&w.cancelJob(A);A=w.addJob(H,C,S);w.cancelDebouncedJobMap.set(J,A)};
return J};
_.bM.prototype.cancelThrottle=function(H){(H=this.cancelThrottledJobMap.get(H))&&H()};var EN=function(){_.bM.apply(this,arguments)};
_.G(EN,_.bM);_.oh=function(){EN.instance||(EN.instance=new EN);return EN.instance};
EN.prototype.addJob=function(H,C,S){S!==void 0&&Number.isNaN(Number(S))&&(S=void 0);var w=_.gh("yt.scheduler.instance.addJob");return w?w(H,C,S):S===void 0?(H(),NaN):_.yD(H,S||0)};
EN.prototype.cancelJob=function(H){if(H===void 0||!Number.isNaN(Number(H))){var C=_.gh("yt.scheduler.instance.cancelJob");C?C(H):_.b5(H)}};
EN.prototype.start=function(){var H=_.gh("yt.scheduler.instance.start");H&&H()};
EN.prototype.pause=function(){var H=_.gh("yt.scheduler.instance.pause");H&&H()};
_.rT=_.oh();_.QD.prototype.set=function(H,C){C===void 0?this.mechanism.remove(H):this.mechanism.set(H,(0,_.Kh)(C))};
_.QD.prototype.get=function(H){try{var C=this.mechanism.get(H)}catch(S){return}if(C!==null)try{return JSON.parse(C)}catch(S){throw"Storage: Invalid value was encountered";}};
_.QD.prototype.remove=function(H){this.mechanism.remove(H)};var ei=function(H){this.mechanism=H};
_.Zh(ei,_.QD);var d_W=function(H){this.data=H},PyV=function(H){return H===void 0||H instanceof d_W?H:new d_W(H)};
ei.prototype.set=function(H,C){ei.superClass_.set.call(this,H,PyV(C))};
ei.prototype.getWrapper=function(H){H=ei.superClass_.get.call(this,H);if(H===void 0||H instanceof Object)return H;throw"Storage: Invalid value was encountered";};
ei.prototype.get=function(H){if(H=this.getWrapper(H)){if(H=H.data,H===void 0)throw"Storage: Invalid value was encountered";}else H=void 0;return H};_.Zh(d4,ei);_.$_W=function(H){var C=H.creation;H=H.expiration;return!!H&&H<_.FF()||!!C&&C>_.FF()};
d4.prototype.set=function(H,C,S){if(C=PyV(C)){if(S){if(S<_.FF()){d4.prototype.remove.call(this,H);return}C.expiration=S}C.creation=_.FF()}d4.superClass_.set.call(this,H,C)};
d4.prototype.getWrapper=function(H,C){var S=d4.superClass_.getWrapper.call(this,H);if(S)if(!C&&_.$_W(S))d4.prototype.remove.call(this,H);else return S};var uM=function(){};
uM.prototype.next=function(){return G$};
var G$={done:!0,value:void 0},f3=function(H){return{value:H,done:!1}};
uM.prototype.__iterator__=function(){return this};
_.p5n=function(H){if(H instanceof uM)return H;if(typeof H.__iterator__=="function")return H.__iterator__(!1);if(_.Dw(H)){var C=0,S=new uM;S.next=function(){for(;;){if(C>=H.length)return G$;if(C in H)return f3(H[C++]);C++}};
return S}throw Error("Oc");};var kqW=function(H){if(H instanceof v4||H instanceof lM||H instanceof V6)return H;if(typeof H.next=="function")return new v4(function(){return H});
if(typeof H[Symbol.iterator]=="function")return new v4(function(){return H[Symbol.iterator]()});
if(typeof H.__iterator__=="function")return new v4(function(){return H.__iterator__()});
throw Error("Pc");},v4=function(H){this.func_=H};
v4.prototype.__iterator__=function(){return new lM(this.func_())};
v4.prototype[Symbol.iterator]=function(){return new V6(this.func_())};
v4.prototype.toEs6=function(){return new V6(this.func_())};
var lM=function(H){this.JSC$10619_iter_=H};
_.G(lM,uM);lM.prototype.next=function(){return this.JSC$10619_iter_.next()};
lM.prototype[Symbol.iterator]=function(){return new V6(this.JSC$10619_iter_)};
lM.prototype.toEs6=function(){return new V6(this.JSC$10619_iter_)};
var V6=function(H){v4.call(this,function(){return H});
this.JSC$10622_iter_=H};
_.G(V6,v4);V6.prototype.next=function(){return this.JSC$10622_iter_.next()};var hrM=function(){};var oS=function(){};
_.Zh(oS,hrM);oS.prototype.getCount=function(){for(var H=0,C=_.Z(this),S=C.next();!S.done;S=C.next())H++;return H};
oS.prototype[Symbol.iterator]=function(){return kqW(this.__iterator__(!0)).toEs6()};
oS.prototype.clear=function(){var H=Array.from(this);H=_.Z(H);for(var C=H.next();!C.done;C=H.next())this.remove(C.value)};_.Zh(PA,oS);_.F=PA.prototype;_.F.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var H=this.storage_;if(H)try{H.setItem("__sak","1");H.removeItem("__sak");var C=!0}catch(S){C=S instanceof DOMException&&(S.name==="QuotaExceededError"||S.code===22||S.code===1014||S.name==="NS_ERROR_DOM_QUOTA_REACHED")&&H&&H.length!==0}else C=!1;this.cachedIsStorageAvailable_=C}return this.cachedIsStorageAvailable_};
_.F.set=function(H,C){ON(this);try{this.storage_.setItem(H,C)}catch(S){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.F.get=function(H){ON(this);H=this.storage_.getItem(H);if(typeof H!=="string"&&H!==null)throw"Storage mechanism: Invalid value was encountered";return H};
_.F.remove=function(H){ON(this);this.storage_.removeItem(H)};
_.F.getCount=function(){ON(this);return this.storage_.length};
_.F.__iterator__=function(H){ON(this);var C=0,S=this.storage_,w=new uM;w.next=function(){if(C>=S.length)return G$;var A=S.key(C++);if(H)return f3(A);A=S.getItem(A);if(typeof A!=="string")throw"Storage mechanism: Invalid value was encountered";return f3(A)};
return w};
_.F.clear=function(){ON(this);this.storage_.clear()};
_.F.key=function(H){ON(this);return this.storage_.key(H)};
var ON=function(H){if(H.storage_==null)throw Error("Qc");H.isAvailable()||jZ(Error("Qc"))};_.Zh(Qu7,PA);_.Zh(ddE,PA);_.Zh($B,oS);$B.prototype.set=function(H,C){this.mechanism_.set(this.JSC$10637_prefix_+H,C)};
$B.prototype.get=function(H){return this.mechanism_.get(this.JSC$10637_prefix_+H)};
$B.prototype.remove=function(H){this.mechanism_.remove(this.JSC$10637_prefix_+H)};
$B.prototype.__iterator__=function(H){var C=this.mechanism_[Symbol.iterator](),S=this,w=new uM;w.next=function(){var A=C.next();if(A.done)return A;for(A=A.value;A.slice(0,S.JSC$10637_prefix_.length)!=S.JSC$10637_prefix_;){A=C.next();if(A.done)return A;A=A.value}return f3(H?A.slice(S.JSC$10637_prefix_.length):S.mechanism_.get(A))};
return w};_.LV=function(H){this.expiringStorage_=(H=_.Pai(H))?new d4(H):null;this.JSC$10641_domain_=document.domain||window.location.hostname};
_.LV.prototype.set=function(H,C,S,w){S=S||31104E3;this.remove(H);if(this.expiringStorage_)try{this.expiringStorage_.set(H,C,Date.now()+S*1E3);return}catch(J){}var A="";if(w)try{A=escape((0,_.Kh)(C))}catch(J){return}else A=escape(C);_.l5(H,A,S,this.JSC$10641_domain_)};
_.LV.prototype.get=function(H,C){var S=void 0,w=!this.expiringStorage_;if(!w)try{S=this.expiringStorage_.get(H)}catch(A){w=!0}if(w&&(S=_.vA.get(H,void 0))&&(S=unescape(S),C))try{S=JSON.parse(S)}catch(A){this.remove(H),S=void 0}return S};
_.LV.prototype.remove=function(H){this.expiringStorage_&&this.expiringStorage_.remove(H);_.fyZ(H,"/",this.JSC$10641_domain_)};
_.LV.prototype.getCreationTime=function(H){return this.expiringStorage_&&(H=(this.expiringStorage_.getWrapper(H)||{}).creation,typeof H==="number")?H:null};var pFV=function(){var H;return function(){H||(H=new _.LV("ytidb"));return H}}();var hDw;_.kB=[];hDw=!1;var swD=n6W||rfi;var XU={},nfY=(XU.AUTH_INVALID="No user identifier specified.",XU.EXPLICIT_ABORT="Transaction was explicitly aborted.",XU.IDB_NOT_SUPPORTED="IndexedDB is not supported.",XU.MISSING_INDEX="Index not created.",XU.MISSING_OBJECT_STORES="Object stores not created.",XU.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",XU.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",XU.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",XU.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",XU.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",XU.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",XU.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",XU),Q6={},rPd=(Q6.AUTH_INVALID="ERROR",Q6.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",Q6.EXPLICIT_ABORT="IGNORED",
Q6.IDB_NOT_SUPPORTED="ERROR",Q6.MISSING_INDEX="WARNING",Q6.MISSING_OBJECT_STORES="ERROR",Q6.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",Q6.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",Q6.QUOTA_EXCEEDED="WARNING",Q6.QUOTA_MAYBE_EXCEEDED="WARNING",Q6.UNKNOWN_ABORT="WARNING",Q6.INCOMPATIBLE_DB_VERSION="WARNING",Q6),d5={},BdP=(d5.AUTH_INVALID=!1,d5.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,d5.EXPLICIT_ABORT=!1,d5.IDB_NOT_SUPPORTED=!1,d5.MISSING_INDEX=!1,d5.MISSING_OBJECT_STORES=!1,d5.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,d5.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,d5.QUOTA_EXCEEDED=!1,d5.QUOTA_MAYBE_EXCEEDED=!0,d5.UNKNOWN_ABORT=!0,d5.INCOMPATIBLE_DB_VERSION=!1,d5),Kv=function(H,C,S,w,A){C=C===void 0?{}:C;S=S===void 0?nfY[H]:S;w=w===void 0?rPd[H]:w;A=A===void 0?BdP[H]:A;_.X0.call(this,S,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:H},C));this.type=H;this.message=S;this.level=w;this.retryable=A;Object.setPrototypeOf(this,Kv.prototype)};
_.G(Kv,_.X0);var D_n=function(H,C){Kv.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:C,foundObjectStores:H},nfY.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,D_n.prototype)};
_.G(D_n,Kv);var DdE=function(H,C){var S=Error.call(this);this.message=S.message;"stack"in S&&(this.stack=S.stack);this.index=H;this.objectStore=C;Object.setPrototypeOf(this,DdE.prototype)};
_.G(DdE,Error);var KFu=["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 UE=function(H){this.executor=H},g4=function(H){var C=this;
this.state={status:"PENDING"};this.JSC$10669_onFulfilled=[];this.JSC$10669_onRejected=[];H=H.executor;var S=function(A){if(C.state.status==="PENDING"){C.state={status:"FULFILLED",value:A};A=_.Z(C.JSC$10669_onFulfilled);for(var J=A.next();!J.done;J=A.next())J=J.value,J()}},w=function(A){if(C.state.status==="PENDING"){C.state={status:"REJECTED",
reason:A};A=_.Z(C.JSC$10669_onRejected);for(var J=A.next();!J.done;J=A.next())J=J.value,J()}};
try{H(S,w)}catch(A){w(A)}};
g4.all=function(H){return new g4(new UE(function(C,S){var w=[],A=H.length;A===0&&C(w);for(var J={i$jscomp$468:0};J.i$jscomp$468<H.length;J={i$jscomp$468:J.i$jscomp$468},++J.i$jscomp$468)g4.resolve(H[J.i$jscomp$468]).then(function(c){return function(Y){w[c.i$jscomp$468]=Y;A--;A===0&&C(w)}}(J)).catch(function(c){S(c)})}))};
g4.resolve=function(H){return new g4(new UE(function(C,S){H instanceof g4?H.then(C,S):C(H)}))};
g4.reject=function(H){return new g4(new UE(function(C,S){S(H)}))};
g4.prototype.then=function(H,C){var S=this,w=H!=null?H:g6Z,A=C!=null?C:LFD;return new g4(new UE(function(J,c){S.state.status==="PENDING"?(S.JSC$10669_onFulfilled.push(function(){Krd(S,S,w,J,c)}),S.JSC$10669_onRejected.push(function(){taV(S,S,A,J,c)})):S.state.status==="FULFILLED"?Krd(S,S,w,J,c):S.state.status==="REJECTED"&&taV(S,S,A,J,c)}))};
g4.prototype.catch=function(H){return this.then(void 0,H)};
var Krd=function(H,C,S,w,A){try{if(H.state.status!=="FULFILLED")throw Error("Tc");var J=S(H.state.value);J instanceof g4?Lr1(H,C,J,w,A):w(J)}catch(c){A(c)}},taV=function(H,C,S,w,A){try{if(H.state.status!=="REJECTED")throw Error("Uc");
var J=S(H.state.reason);J instanceof g4?Lr1(H,C,J,w,A):w(J)}catch(c){A(c)}},Lr1=function(H,C,S,w,A){C===S?A(new TypeError("Vc")):S.then(function(J){J instanceof g4?Lr1(H,C,J,w,A):w(J)},function(J){A(J)})};var P4;P4=window;_.Zt=P4.ytcsi&&P4.ytcsi.now?P4.ytcsi.now:P4.performance&&P4.performance.timing&&P4.performance.now&&P4.performance.timing.navigationStart?function(){return P4.performance.timing.navigationStart+P4.performance.now()}:function(){return(new Date).getTime()};var Ia=function(H,C){this.JSC$10681_wrapped=H;this.options=C;this.transactionCount=0;this.startedMs=Math.round((0,_.Zt)());this.hasUnknownAbortedTransaction=!1},$U=function(){return _.E("idb_immediate_commit")},Rr_,IVn,h7,HDd;
Ia.prototype.add=function(H,C,S){return _.CV(this,[H],{mode:"readwrite",enableRetries:!0,commit:$U()},function(w){return w.objectStore(H).add(C,S)})};
Ia.prototype.clear=function(H){return _.CV(this,[H],{mode:"readwrite",enableRetries:!0},function(C){return C.objectStore(H).clear()})};
Ia.prototype.close=function(){this.JSC$10681_wrapped.close();var H;((H=this.options)==null?0:H.closed)&&this.options.closed()};
Ia.prototype.count=function(H,C){return _.CV(this,[H],{mode:"readonly",enableRetries:!0,commit:$U()},function(S){return S.objectStore(H).count(C)})};
var Uc=function(H,C,S){H=H.JSC$10681_wrapped.createObjectStore(C,S);return new p3(H)};
Ia.prototype.delete=function(H,C){return _.CV(this,[H],{mode:"readwrite",enableRetries:!0,commit:$U()&&!(C instanceof IDBKeyRange)},function(S){return S.objectStore(H).delete(C)})};
var gf7=function(H,C){return _.CV(H,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(S){return S.objectStore("ResponseStore").index("byInterface").delete(C)})};
Ia.prototype.get=function(H,C){return _.CV(this,[H],{mode:"readonly",enableRetries:!0,commit:$U()},function(S){return S.objectStore(H).get(C)})};
Ia.prototype.getAll=function(H,C,S){return _.CV(this,[H],{mode:"readonly",enableRetries:!0},function(w){return w.objectStore(H).getAll(C,S)})};
Ia.prototype.put=function(H,C,S){return _.CV(this,[H],{mode:"readwrite",enableRetries:!0,commit:$U()},function(w){return w.objectStore(H).put(C,S)})};
Ia.prototype.objectStoreNames=function(){return Array.from(this.JSC$10681_wrapped.objectStoreNames)};
_.CV=function(H,C,S,w){var A,J,c,Y,M,m,W,y,N,b,u,O;return _.z(function(d){switch(d.nextAddress){case 1:var p={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof S==="string"?p.mode=S:Object.assign(p,S);A=p;H.transactionCount++;J=A.enableRetries?3:1;c=0;case 2:if(Y){d.jumpTo(4);break}c++;M=Math.round((0,_.Zt)());_.en(d,5);m=H.JSC$10681_wrapped.transaction(C,A.mode);p=d.yield;var k=!!A.commit;var R=new aa(m);k=U_Y(R,w,k);return p.call(d,k,7);case 7:return W=d.yieldResult,y=Math.round((0,_.Zt)()),
Rr_(H,M,y,c,void 0,C.join(),A),d.return(W);case 5:N=_.Vx(d);b=Math.round((0,_.Zt)());u=tp6(N,H.JSC$10681_wrapped.name,C.join(),H.JSC$10681_wrapped.version);if((O=u instanceof Kv&&!u.retryable)||c>=J)Rr_(H,M,b,c,u,C.join(),A),Y=u;d.jumpTo(2);break;case 4:return d.return(Promise.reject(Y))}})};
Rr_=function(H,C,S,w,A,J,c){C=S-C;A?(A instanceof Kv&&(A.type==="QUOTA_EXCEEDED"||A.type==="QUOTA_MAYBE_EXCEEDED")&&nv("QUOTA_EXCEEDED",{dbName:BA(H.JSC$10681_wrapped.name),objectStoreNames:J,transactionCount:H.transactionCount,transactionMode:c.mode}),A instanceof Kv&&A.type==="UNKNOWN_ABORT"&&(S-=H.startedMs,S<0&&S>=2147483648&&(S=0),nv("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:J,transactionDuration:C,transactionCount:H.transactionCount,dbDuration:S}),H.hasUnknownAbortedTransaction=!0),
IVn(H,!1,w,J,C,c.tag),_.hA(A)):IVn(H,!0,w,J,C,c.tag)};
IVn=function(H,C,S,w,A,J){nv("TRANSACTION_ENDED",{objectStoreNames:w,connectionHasUnknownAbortedTransaction:H.hasUnknownAbortedTransaction,duration:A,isSuccessful:C,tryCount:S,tag:J===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":J})};
Ia.prototype.getVersion=function(){return this.JSC$10681_wrapped.version};
Ia.prototype.getName=function(){return this.JSC$10681_wrapped.name};
var p3=function(H){this.JSC$10696_wrapped=H};
p3.prototype.add=function(H,C){return Ra(this.JSC$10696_wrapped.add(H,C))};
p3.prototype.autoIncrement=function(){return this.JSC$10696_wrapped.autoIncrement};
p3.prototype.clear=function(){return Ra(this.JSC$10696_wrapped.clear()).then(function(){})};
var RM=function(H,C,S){H.JSC$10696_wrapped.createIndex(C,S,{unique:!1})};
p3.prototype.count=function(H){return Ra(this.JSC$10696_wrapped.count(H))};
var aVW=function(H,C){return sc(H,{query:C},function(S){return S.delete().then(function(){return S.continue()})}).then(function(){})};
p3.prototype.delete=function(H){return H instanceof IDBKeyRange?aVW(this,H):Ra(this.JSC$10696_wrapped.delete(H))};
p3.prototype.get=function(H){return Ra(this.JSC$10696_wrapped.get(H))};
p3.prototype.getAll=function(H,C){return"getAll"in IDBObjectStore.prototype?Ra(this.JSC$10696_wrapped.getAll(H,C)):x_V(this,H,C)};
var x_V=function(H,C,S){var w=[];return sc(H,{query:C},function(A){if(!(S!==void 0&&w.length>=S))return w.push(A.getValue()),A.continue()}).then(function(){return w})};
p3.prototype.index=function(H){try{return new kU(this.JSC$10696_wrapped.index(H))}catch(C){if(C instanceof Error&&C.name==="NotFoundError")throw new DdE(H,this.JSC$10696_wrapped.name);throw C;}};
p3.prototype.getName=function(){return this.JSC$10696_wrapped.name};
p3.prototype.keyPath=function(){return this.JSC$10696_wrapped.keyPath};
p3.prototype.put=function(H,C){return Ra(this.JSC$10696_wrapped.put(H,C))};
var sc=function(H,C,S){H=H.JSC$10696_wrapped.openCursor(C.query,C.direction);return HDd(H).then(function(w){return Iy$(w,S)})},aa=function(H){var C=this;
this.JSC$10704_wrapped=H;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(S,w){C.JSC$10704_wrapped.addEventListener("complete",function(){S()});
C.JSC$10704_wrapped.addEventListener("error",function(A){A.currentTarget===A.target&&w(C.JSC$10704_wrapped.error)});
C.JSC$10704_wrapped.addEventListener("abort",function(){var A=C.JSC$10704_wrapped.error;if(A)w(A);else if(!C.aborted){A=Kv;for(var J=C.JSC$10704_wrapped.objectStoreNames,c=[],Y=0;Y<J.length;Y++){var M=J.item(Y);if(M===null)throw Error("Wc");c.push(M)}A=new A("UNKNOWN_ABORT",{objectStoreNames:c.join(),dbName:C.JSC$10704_wrapped.db.name,mode:C.JSC$10704_wrapped.mode});w(A)}})})},U_Y=function(H,C,S){var w=new Promise(function(A,J){try{var c=C(H);
S&&H.commit();c.then(function(Y){A(Y)}).catch(J)}catch(Y){J(Y),H.abort()}});
return Promise.all([w,H.done]).then(function(A){return _.Z(A).next().value})};
aa.prototype.abort=function(){this.JSC$10704_wrapped.abort();this.aborted=!0;throw new Kv("EXPLICIT_ABORT");};
aa.prototype.commit=function(){if(!this.aborted){var H,C;(C=(H=this.JSC$10704_wrapped).commit)==null||C.call(H)}};
aa.prototype.objectStore=function(H){H=this.JSC$10704_wrapped.objectStore(H);var C=this.objectStoreCache.get(H);C||(C=new p3(H),this.objectStoreCache.set(H,C));return C};
var kU=function(H){this.JSC$10706_wrapped=H};
kU.prototype.count=function(H){return Ra(this.JSC$10706_wrapped.count(H))};
kU.prototype.delete=function(H){return _.c9(this,{query:H},function(C){return C.delete().then(function(){return C.continue()})})};
kU.prototype.get=function(H){return Ra(this.JSC$10706_wrapped.get(H))};
kU.prototype.getAll=function(H,C){return"getAll"in IDBIndex.prototype?Ra(this.JSC$10706_wrapped.getAll(H,C)):iD1(this,H,C)};
var iD1=function(H,C,S){var w=[];return _.c9(H,{query:C},function(A){if(!(S!==void 0&&w.length>=S))return w.push(A.getValue()),A.continue()}).then(function(){return w})};
kU.prototype.keyPath=function(){return this.JSC$10706_wrapped.keyPath};
kU.prototype.unique=function(){return this.JSC$10706_wrapped.unique};
_.c9=function(H,C,S){H=H.JSC$10706_wrapped.openCursor(C.query===void 0?null:C.query,C.direction===void 0?"next":C.direction);return HDd(H).then(function(w){return Iy$(w,S)})};
h7=function(H,C){this.request=H;this.cursor=C};
HDd=function(H){return Ra(H).then(function(C){return C?new h7(H,C):null})};
h7.prototype.continue=function(H){this.cursor.continue(H);return HDd(this.request)};
h7.prototype.delete=function(){return Ra(this.cursor.delete()).then(function(){})};
h7.prototype.getValue=function(){return this.cursor.value};
h7.prototype.update=function(H){return Ra(this.cursor.update(H))};var n3=function(H,C){this.name=H;this.options=C;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},CsV;
n3.prototype.openDb=function(H,C,S){S=S===void 0?{}:S;return xdW(H,C,S)};
n3.prototype.delete=function(H){H=H===void 0?{}:H;return _.H9(this.name,H)};
CsV=function(H,C){return new Kv("INCOMPATIBLE_DB_VERSION",{dbName:H.name,oldVersion:H.options.version,newVersion:C})};
_.iC=function(H,C){if(!C)throw Lv("openWithToken",BA(H.name));return H.open()};
n3.prototype.open=function(){var H=this;if(!this.isCompatible)throw CsV(this);if(this.connectionPromise)return this.connectionPromise;var C,S=function(){H.connectionPromise===C&&(H.connectionPromise=void 0)},w={blocking:function(J){J.close()},
closed:S,terminated:S,upgrade:this.options.upgrade},A=function(){var J,c,Y,M,m,W,y,N,b,u;return _.z(function(O){switch(O.nextAddress){case 1:return c=(J=Error().stack)!=null?J:"",_.en(O,2),O.yield(H.openDb(H.name,H.options.version,w),4);case 4:for(var d=Y=O.yieldResult,p=H.options,k=[],R=_.Z(Object.keys(p.objectStores)),L=R.next();!L.done;L=R.next()){L=L.value;var t=p.objectStores[L],g=t.removedAtVersion===void 0?Number.MAX_VALUE:t.removedAtVersion;!(d.JSC$10681_wrapped.version>=t.addedAtVersion)||
d.JSC$10681_wrapped.version>=g||d.JSC$10681_wrapped.objectStoreNames.contains(L)||k.push(L)}M=k;if(M.length===0){O.jumpTo(5);break}m=Object.keys(H.options.objectStores);W=Y.objectStoreNames();if(H.timesReopenedToFixMissingObjectStore<_.YB("ytidb_reopen_db_retries",0))return H.timesReopenedToFixMissingObjectStore++,Y.close(),_.hA(new Kv("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:H.name,expectedObjectStores:m,foundObjectStores:W})),O.return(A());if(!(H.timesDeletedToFixMissingObjectStore<_.YB("ytidb_remake_db_retries",
1))){O.jumpTo(6);break}H.timesDeletedToFixMissingObjectStore++;return O.yield(H.delete(),7);case 7:return _.hA(new Kv("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:H.name,expectedObjectStores:m,foundObjectStores:W})),O.return(A());case 6:throw new D_n(W,m);case 5:return O.return(Y);case 2:y=_.Vx(O);if(y instanceof DOMException?y.name!=="VersionError":"DOMError"in self&&y instanceof DOMError?y.name!=="VersionError":!(y instanceof Object&&"message"in y)||y.message!=="An attempt was made to open a database using a lower version than the existing version."){O.jumpTo(8);
break}return O.yield(H.openDb(H.name,void 0,Object.assign({},w,{upgrade:void 0})),9);case 9:N=O.yieldResult;b=N.getVersion();if(H.options.version!==void 0&&b>H.options.version+1)throw N.close(),H.isCompatible=!1,CsV(H,b);return O.return(N);case 8:throw S(),y instanceof Error&&!_.E("ytidb_async_stack_killswitch")&&(y.stack=y.stack+"\n"+c.substring(c.indexOf("\n")+1)),tp6(y,H.name,"",(u=H.options.version)!=null?u:-1);}})};
return this.connectionPromise=C=A()};var Hfi=new n3("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(H,C){C(1)&&Uc(H,"databases",{keyPath:"actualName"})}});var AGW,jw7=new function(){}(new function(){});new _.N5;var SkP=function(H,C){n3.call(this,H,C);this.options=C;r4(H)};
_.G(SkP,n3);var m57=function(H,C){var S;return function(){S||(S=new SkP(H,C));return S}};
SkP.prototype.openDb=function(H,C,S){S=S===void 0?{}:S;return(this.options.shared?Yxu:cGp)(H,C,Object.assign({},S))};
SkP.prototype.delete=function(H){H=H===void 0?{}:H;return(this.options.shared?Tmu:zui)(this.name,H)};var se1={},W6U=F6("ytGcfConfig",{objectStores:(se1.coldConfigStore={addedAtVersion:1},se1.hotConfigStore={addedAtVersion:1},se1),shared:!1,upgrade:function(H,C){C(1)&&(RM(Uc(H,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),RM(Uc(H,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var jeY=function(){_.Op.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var H=_.gh("yt.gcf.config.hotUpdateCallbacks");H?(this.localHotConfigJobQueue=[].concat(_.k$(H)),this.sharedHotConfigJobQueue=H):(this.sharedHotConfigJobQueue=[],_.AO("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.G(jeY,_.Op);jeY.prototype.disposeInternal=function(){for(var H=_.Z(this.localHotConfigJobQueue),C=H.next();!C.done;C=H.next()){var S=this.sharedHotConfigJobQueue;C=S.indexOf(C.value);C>=0&&S.splice(C,1)}this.localHotConfigJobQueue.length=0;_.Op.prototype.disposeInternal.call(this)};var Qm=function(){var H=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new jeY;this.TEST_ONLY={initializeConfigDb:function(){H.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return H.coldGlobalConfigGroup},
setHotConfigGroup:function(C){wM1(H,C)},
setHotHashData:function(C){H.setHotHashData(C)},
setColdConfigGroup:function(C){AJ_(H,C)},
getColdHashData:function(){return H.coldHashData},
getHotHashData:function(){return H.hotHashData},
getHotConfigGroup:function(){return H.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return JJ1()},
getExportedHotConfigGroup:function(){return r5()},
getExportedColdHashData:function(){return _.gh("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.gh("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){FP7(H)},
resetInstance:function(){H.setHotHashData(void 0);ZDW(H);delete Qm.instance},
setDebounceTimer:function(C){H.debounceTimer=C},
getDebounceTimer:function(){return H.debounceTimer}}},cJ7=function(){if(!Qm.instance){var H=new Qm;
Qm.instance=H}return Qm.instance},Mj7=function(H){var C;
_.z(function(S){if(S.nextAddress==1)return _.E("start_client_gcf")||_.E("delete_gcf_config_db")?_.E("start_client_gcf")?S.yield(_.JO(),3):S.jumpTo(2):S.return();S.nextAddress!=2&&((C=S.yieldResult)&&_.OE()&&!_.E("delete_gcf_config_db")?(H.isConfigDbInitialized=!0,FP7(H)):(Yk1(H),zk7(H)));return _.E("delete_gcf_config_db")?S.yield(uG6(),0):S.jumpTo(0)})},dv=function(){var H;
return(H=r5())!=null?H:_.rh("RAW_HOT_CONFIG_GROUP")},qkU=function(H){var C,S,w,A,J,c;
return _.z(function(Y){switch(Y.nextAddress){case 1:if(H.hotGlobalConfigGroup)return Y.return(r5());if(!H.isConfigDbInitialized)return C=Lv("getHotConfig IDB not initialized"),_.Ug(C),Y.return(Promise.reject(C));S=wT();w=_.rh("TIME_CREATED_MS");if(!S){A=Lv("getHotConfig token error");_.Ug(A);Y.jumpTo(2);break}return Y.yield(euE(S),3);case 3:if((J=Y.yieldResult)&&J.timestamp>w)return wM1(H,J.config),H.setHotHashData(J.hashData),Y.return(r5());case 2:zk7(H);if(!(S&&H.hotGlobalConfigGroup&&H.hotHashData)){Y.jumpTo(4);
break}return Y.yield(NmU(H.hotGlobalConfigGroup,H.hotHashData,S,w),4);case 4:return H.hotGlobalConfigGroup?Y.return(r5()):(c=new _.X0("Config not available in ytConfig"),_.Ug(c),Y.return(Promise.reject(c)))}})},mQ1=function(H){var C,S,w,A,J,c;
return _.z(function(Y){switch(Y.nextAddress){case 1:if(H.coldGlobalConfigGroup)return Y.return(JJ1());if(!H.isConfigDbInitialized)return C=Lv("getColdConfig IDB not initialized"),_.Ug(C),Y.return(Promise.reject(C));S=wT();w=_.rh("TIME_CREATED_MS");if(!S){A=Lv("getColdConfig");_.Ug(A);Y.jumpTo(2);break}return Y.yield(EF6(S),3);case 3:if((J=Y.yieldResult)&&J.timestamp>w)return AJ_(H,J.config),TMV(H,J.configData),ZDW(H,J.hashData),Y.return(JJ1());case 2:Yk1(H);if(!(S&&H.coldGlobalConfigGroup&&H.coldHashData&&
H.configData)){Y.jumpTo(4);break}return Y.yield(bfi(H.coldGlobalConfigGroup,H.coldHashData,H.configData,S,w),4);case 4:return H.coldGlobalConfigGroup?Y.return(JJ1()):(c=new _.X0("Config not available in ytConfig"),_.Ug(c),Y.return(Promise.reject(c)))}})},FP7=function(H){if(!H.hotGlobalConfigGroup||!H.coldGlobalConfigGroup){if(!wT()){var C=Lv("scheduleGetConfigs");
_.Ug(C)}H.initJob||(H.initJob=_.rT.addLowPriorityJob(function(){return _.z(function(S){switch(S.nextAddress){case 1:return _.en(S,2),S.yield(qkU(H),4);case 4:_.xB(S,3);break;case 2:_.Vx(S);case 3:return _.en(S,5),S.yield(mQ1(H),7);case 7:_.xB(S,6);break;case 5:_.Vx(S);case 6:H.initJob&&(H.initJob=0),_.oT(S)}})},100))}},bnE=function(H,C,S){var w,A,J;
return _.z(function(c){switch(c.nextAddress){case 1:if(!_.E("start_client_gcf")){c.jumpTo(0);break}S&&wM1(H,S);H.setHotHashData(C);w=wT();if(!w){c.jumpTo(3);break}if(S){c.jumpTo(4);break}return c.yield(euE(w),5);case 5:A=c.yieldResult,S=(J=A)==null?void 0:J.config;case 4:return c.yield(NmU(S,C,w),3);case 3:if(S)for(var Y=S,M=_.Z(H.configUpdateService.sharedHotConfigJobQueue),m=M.next();!m.done;m=M.next())m=m.value,m(Y);_.oT(c)}})},EiZ=function(H,C,S){var w,A,J,c;
return _.z(function(Y){if(Y.nextAddress==1){if(!_.E("start_client_gcf"))return Y.jumpTo(0);ZDW(H,C);return(w=wT())?S?Y.jumpTo(4):Y.yield(EF6(w),5):Y.jumpTo(0)}Y.nextAddress!=4&&(A=Y.yieldResult,S=(J=A)==null?void 0:J.config);if(!S)return Y.jumpTo(0);c=S.configData;return Y.yield(bfi(S,C,c,w),0)})},Bm7=function(){var H=cJ7(),C=(0,_.Zt)()-H.debounceTimer;
if(!(H.debounceTimer!==0&&C<_.YB("send_config_hash_timer"))){C=_.gh("yt.gcf.config.coldConfigData");var S=_.gh("yt.gcf.config.hotHashData"),w=_.gh("yt.gcf.config.coldHashData");C&&S&&w&&(H.debounceTimer=(0,_.Zt)());return{coldConfigData:C,hotHashData:S,coldHashData:w}}},Yk1=function(H){AJ_(H,_.rh("RAW_COLD_CONFIG_GROUP"));
ZDW(H,_.rh("SERIALIZED_COLD_HASH_DATA"));var C;TMV(H,(C=H.coldGlobalConfigGroup)==null?void 0:C.configData)},zk7=function(H){wM1(H,_.rh("RAW_HOT_CONFIG_GROUP"));
H.setHotHashData(_.rh("SERIALIZED_HOT_HASH_DATA"))},wM1=function(H,C){H.hotGlobalConfigGroup=C;
_.AO("yt.gcf.config.hotConfigGroup",H.hotGlobalConfigGroup||null)},AJ_=function(H,C){H.coldGlobalConfigGroup=C;
_.AO("yt.gcf.config.coldConfigGroup",H.coldGlobalConfigGroup||null)};
Qm.prototype.setHotHashData=function(H){this.hotHashData=H;_.AO("yt.gcf.config.hotHashData",this.hotHashData||null)};
var ZDW=function(H,C){H.coldHashData=C;_.AO("yt.gcf.config.coldHashData",H.coldHashData||null)},TMV=function(H,C){H.configData=C;
_.AO("yt.gcf.config.coldConfigData",H.configData||null)},r5=function(){return _.gh("yt.gcf.config.hotConfigGroup")},JJ1=function(){return _.gh("yt.gcf.config.coldConfigGroup")};var Ec={},WPV=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";Ec.assign=function(H){for(var C=Array.prototype.slice.call(arguments,1);C.length;){var S=C.shift();if(S){if(typeof S!=="object")throw new TypeError("Zc`"+S);for(var w in S)Object.prototype.hasOwnProperty.call(S,w)&&(H[w]=S[w])}}return H};
Ec.shrinkBuf=function(H,C){if(H.length===C)return H;if(H.subarray)return H.subarray(0,C);H.length=C;return H};
var yJ1={arraySet:function(H,C,S,w,A){if(C.subarray&&H.subarray)H.set(C.subarray(S,S+w),A);else for(var J=0;J<w;J++)H[A+J]=C[S+J]},
flattenChunks:function(H){var C,S;var w=S=0;for(C=H.length;w<C;w++)S+=H[w].length;var A=new Uint8Array(S);w=S=0;for(C=H.length;w<C;w++){var J=H[w];A.set(J,S);S+=J.length}return A}},NM7={arraySet:function(H,C,S,w,A){for(var J=0;J<w;J++)H[A+J]=C[S+J]},
flattenChunks:function(H){return[].concat.apply([],H)}};
Ec.setTyped=function(){WPV?(Ec.Buf8=Uint8Array,Ec.Buf16=Uint16Array,Ec.Buf32=Int32Array,Ec.assign(Ec,yJ1)):(Ec.Buf8=Array,Ec.Buf16=Array,Ec.Buf32=Array,Ec.assign(Ec,NM7))};
Ec.setTyped();var bDV=!0;try{new Uint8Array(1)}catch(H){bDV=!1}
var eKp=function(H){var C,S,w=H.length,A=0;for(C=0;C<w;C++){var J=H.charCodeAt(C);if((J&64512)===55296&&C+1<w){var c=H.charCodeAt(C+1);(c&64512)===56320&&(J=65536+(J-55296<<10)+(c-56320),C++)}A+=J<128?1:J<2048?2:J<65536?3:4}var Y=new Ec.Buf8(A);for(C=S=0;S<A;C++)J=H.charCodeAt(C),(J&64512)===55296&&C+1<w&&(c=H.charCodeAt(C+1),(c&64512)===56320&&(J=65536+(J-55296<<10)+(c-56320),C++)),J<128?Y[S++]=J:(J<2048?Y[S++]=192|J>>>6:(J<65536?Y[S++]=224|J>>>12:(Y[S++]=240|J>>>18,Y[S++]=128|J>>>12&63),Y[S++]=
128|J>>>6&63),Y[S++]=128|J&63);return Y};var Zx7={};Zx7=function(H,C,S,w){var A=H&65535|0;H=H>>>16&65535|0;for(var J;S!==0;){J=S>2E3?2E3:S;S-=J;do A=A+C[w++]|0,H=H+A|0;while(--J);A%=65521;H%=65521}return A|H<<16|0};for(var $u={},B4,E_7=[],ekP=0;ekP<256;ekP++){B4=ekP;for(var ujY=0;ujY<8;ujY++)B4=B4&1?3988292384^B4>>>1:B4>>>1;E_7[ekP]=B4}$u=function(H,C,S,w){S=w+S;for(H^=-1;w<S;w++)H=H>>>8^E_7[(H^C[w])&255];return H^-1};var fV={};fV={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 x5u=[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],ixu=[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],EzV=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Jr$=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],oM=Array(576);W9(oM);var Oc=Array(60);W9(Oc);var uC=Array(512);W9(uC);var ek=Array(256);W9(ek);var Hxu=Array(29);W9(Hxu);var CA6=Array(30);W9(CA6);var yrW,NEu,bxE,WYW=!1;var nV;
nV=[new hO(0,0,0,0,function(H,C){var S=65535;for(S>H.pending_buf_size-5&&(S=H.pending_buf_size-5);;){if(H.lookahead<=1){pV(H);if(H.lookahead===0&&C===0)return 1;if(H.lookahead===0)break}H.strstart+=H.lookahead;H.lookahead=0;var w=H.block_start+S;if(H.strstart===0||H.strstart>=w)if(H.lookahead=H.strstart-w,H.strstart=w,QE(H,!1),H.strm.avail_out===0)return 1;if(H.strstart-H.block_start>=H.w_size-262&&(QE(H,!1),H.strm.avail_out===0))return 1}H.insert=0;if(C===4)return QE(H,!0),H.strm.avail_out===0?3:
4;H.strstart>H.block_start&&QE(H,!1);return 1}),
new hO(4,4,8,4,crW),new hO(4,5,16,8,crW),new hO(4,6,32,32,crW),new hO(4,4,16,16,ku),new hO(8,16,32,32,ku),new hO(8,16,128,128,ku),new hO(8,32,128,256,ku),new hO(32,128,258,1024,ku),new hO(32,258,258,4096,ku)];var mT0={};mT0=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 uJu=Object.prototype.toString;
TEE.prototype.push=function(H,C){var S=this.strm,w=this.options.chunkSize;if(this.ended)return!1;var A=C===~~C?C:C===!0?4:0;typeof H==="string"?S.input=eKp(H):uJu.call(H)==="[object ArrayBuffer]"?S.input=new Uint8Array(H):S.input=H;S.next_in=0;S.avail_in=S.input.length;do{S.avail_out===0&&(S.output=new Ec.Buf8(w),S.next_out=0,S.avail_out=w);H=qd0(S,A);if(H!==1&&H!==0)return GcV(this,H),this.ended=!0,!1;if(S.avail_out===0||S.avail_in===0&&(A===4||A===2))if(this.options.to==="string"){var J=Ec.shrinkBuf(S.output,
S.next_out);C=J;J=J.length;if(J<65537&&(C.subarray&&bDV||!C.subarray))C=String.fromCharCode.apply(null,Ec.shrinkBuf(C,J));else{for(var c="",Y=0;Y<J;Y++)c+=String.fromCharCode(C[Y]);C=c}this.chunks.push(C)}else C=Ec.shrinkBuf(S.output,S.next_out),this.chunks.push(C)}while((S.avail_in>0||S.avail_out===0)&&H!==1);if(A===4)return(S=this.strm)&&S.state?(w=S.state.status,w!==42&&w!==69&&w!==73&&w!==91&&w!==103&&w!==113&&w!==666?H=v9(S,-2):(S.state=null,H=w===113?v9(S,-3):0)):H=-2,GcV(this,H),this.ended=
!0,H===0;A===2&&(GcV(this,0),S.avail_out=0);return!0};
var GcV=function(H,C){C===0&&(H.result=H.options.to==="string"?H.chunks.join(""):Ec.flattenChunks(H.chunks));H.chunks=[];H.err=C;H.msg=H.strm.msg};var fg7=typeof TextEncoder!=="undefined"?new TextEncoder:null,H77=fg7?function(H){return fg7.encode(H)}:function(H){H=_.o7(H);
for(var C=new Uint8Array(H.length),S=0;S<C.length;S++)C[S]=H[S];return C};var $fV={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},kMp={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var Dx=function(H,C){this.version=H;this.args=C};
Dx.prototype.serialize=function(){return{version:this.version,args:this.args}};var Vs0=function(H,C){this.topic=H;this.dataClass=C};
Vs0.prototype.toString=function(){return this.topic};var v_1=_.gh("ytPubsub2Pubsub2Instance")||new _.G9;_.G9.prototype.subscribe=_.G9.prototype.subscribe;_.G9.prototype.unsubscribeByKey=_.G9.prototype.unsubscribeByKey;_.G9.prototype.publish=_.G9.prototype.publish;_.G9.prototype.clear=_.G9.prototype.clear;_.AO("ytPubsub2Pubsub2Instance",v_1);var l27=_.gh("ytPubsub2Pubsub2SubscribedKeys")||{};_.AO("ytPubsub2Pubsub2SubscribedKeys",l27);var Ox6=_.gh("ytPubsub2Pubsub2TopicToKeys")||{};_.AO("ytPubsub2Pubsub2TopicToKeys",Ox6);
var ozp=_.gh("ytPubsub2Pubsub2IsAsync")||{};_.AO("ytPubsub2Pubsub2IsAsync",ozp);_.AO("ytPubsub2Pubsub2SkipSubKey",null);var rrZ=void 0,hKu=void 0;var RK$=_.YB("max_body_size_to_compress",5E5),I2Z=_.YB("min_body_size_to_compress",500),Dt=!0,S40=0,KV=0,CJV=_.YB("compression_performance_threshold_lr",250),smi=_.YB("slow_compressions_before_abandon_count",4),KYi=!1,tsp=new Map,xTu=1,a2E=!0;_.Zh(tO,AxZ);tO.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 lgd=function(H,C,S){S||(S=0);var w=H.W_;if(typeof C==="string")for(var A=0;A<16;A++)w[A]=C.charCodeAt(S)<<24|C.charCodeAt(S+1)<<16|C.charCodeAt(S+2)<<8|C.charCodeAt(S+3),S+=4;else for(A=0;A<16;A++)w[A]=C[S]<<24|C[S+1]<<16|C[S+2]<<8|C[S+3],S+=4;for(C=16;C<80;C++)S=w[C-3]^w[C-8]^w[C-14]^w[C-16],w[C]=(S<<1|S>>>31)&4294967295;C=H.chain_[0];S=H.chain_[1];A=H.chain_[2];for(var J=H.chain_[3],c=H.chain_[4],Y,M,m=0;m<80;m++)m<40?m<20?(Y=J^S&(A^J),M=1518500249):(Y=S^A^J,M=1859775393):m<60?(Y=S&A|J&(S|A),
M=2400959708):(Y=S^A^J,M=3395469782),Y=(C<<5|C>>>27)+Y+c+M+w[m]&4294967295,c=J,J=A,A=(S<<30|S>>>2)&4294967295,S=C,C=Y;H.chain_[0]=H.chain_[0]+C&4294967295;H.chain_[1]=H.chain_[1]+S&4294967295;H.chain_[2]=H.chain_[2]+A&4294967295;H.chain_[3]=H.chain_[3]+J&4294967295;H.chain_[4]=H.chain_[4]+c&4294967295};
tO.prototype.update=function(H,C){if(H!=null){C===void 0&&(C=H.length);for(var S=C-this.blockSize,w=0,A=this.buf_,J=this.inbuf_;w<C;){if(J==0)for(;w<=S;)lgd(this,H,w),w+=this.blockSize;if(typeof H==="string")for(;w<C;){if(A[J]=H.charCodeAt(w),++J,++w,J==this.blockSize){lgd(this,A);J=0;break}}else for(;w<C;)if(A[J]=H[w],++J,++w,J==this.blockSize){lgd(this,A);J=0;break}}this.inbuf_=J;this.total_+=C}};
tO.prototype.digest=function(){var H=[],C=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var S=this.blockSize-1;S>=56;S--)this.buf_[S]=C&255,C/=256;lgd(this,this.buf_);for(S=C=0;S<5;S++)for(var w=24;w>=0;w-=8)H[C]=this.chain_[S]>>w&255,++C;return H};var Z7Z;var t7=function(H){var C=this;this.bypassDbTokenDependency=this.initialized=!1;this.potentialEsfErrorCounter=this.intervalJob=0;this.handleError=function(){};
this.handleWarning=function(){};
this.now=Date.now;this.disableYtIdbTransactions=!1;this.TEST_ONLY={setDbToken:function(W){C.databaseToken=W},
triggerThrottle:function(){C.throttledSend()},
cancelThrottle:function(){C.cancelThrottledSend()},
immediateSend:function(W){return _.z(function(y){return y.yield(C.immediateSend(W),0)})},
requestWithinAgeLimit:function(W,y){return C.requestWithinAgeLimit(W,y)},
retryQueuedRequests:function(){C.retryQueuedRequests()}};
var S;this.throttleTimeout=(S=H.throttleTimeout)!=null?S:100;var w;this.retryMaxAttempts=(w=H.retryMaxAttempts)!=null?w:1;var A;this.requestAgeLimitMs=(A=H.requestAgeLimitMs)!=null?A:2592E6;var J;this.queuedRequestAgeLimitMs=(J=H.queuedRequestAgeLimitMs)!=null?J:12E4;var c;this.retryDelayMs=(c=H.retryDelayMs)!=null?c:5E3;var Y;this.databaseToken=(Y=H.databaseToken)!=null?Y:void 0;this.enableCleaning=!!H.enableCleaning;var M;this.cleaningRate=(M=H.cleaningRate)!=null?M:.1;var m;this.potentialEsfErrorLimit=
(m=H.potentialEsfErrorLimit)!=null?m:10;H.handleError&&(this.handleError=H.handleError);H.handleWarning&&(this.handleWarning=H.handleWarning);H.disableYtIdbTransactions&&(this.disableYtIdbTransactions=H.disableYtIdbTransactions);H.bypassDbTokenDependency&&(this.bypassDbTokenDependency=H.bypassDbTokenDependency);this.getBooleanFlag=H.getBooleanFlag;this.jobManager=H.jobManager;this.logsStore=H.logsStore;this.networkManager=H.networkManager;this.sendFn=H.sendFn;this.onlineEvent=H.onlineEvent;this.offlineEvent=
H.offlineEvent;K3(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&VjP(this)},VjP=function(H){K3(H)&&!H.disableYtIdbTransactions&&(H.initialized=!0,H.enableCleaning&&Math.random()<=H.cleaningRate&&H.logsStore.cleanLogsStore(H.databaseToken),H.retryQueuedRequests(),H.networkManager.isNetworkAvailable()&&H.throttledSend(),H.networkManager.listen(H.onlineEvent,H.throttledSend.bind(H)),H.networkManager.listen(H.offlineEvent,H.cancelThrottledSend.bind(H)))};
_.F=t7.prototype;_.F.writeThenSend=function(H,C){var S=this;C=C===void 0?{}:C;if(K3(this)&&this.initialized){var w={url:H,options:C,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(w,this.databaseToken).then(function(A){w.id=A;S.networkManager.isNetworkAvailable()&&S.immediateSend(w)}).catch(function(A){S.immediateSend(w);
o_d(S,A)})}else this.sendFn(H,C)};
_.F.sendThenWrite=function(H,C,S){var w=this;C=C===void 0?{}:C;if(K3(this)&&this.initialized){var A={url:H,options:C,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(A.skipRetry=S);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!A.skipRetry){if(!A.skipRetry){var J=C.onError?C.onError:function(){};
C.onError=function(c,Y){return _.z(function(M){if(M.nextAddress==1)return M.yield(w.logsStore.set(A,w.databaseToken).catch(function(m){o_d(w,m)}),2);
J(c,Y);_.oT(M)})}}this.sendFn(H,C,A.skipRetry)}else this.logsStore.set(A,this.databaseToken).catch(function(c){w.sendFn(H,C,A.skipRetry);
o_d(w,c)})}else this.sendFn(H,C,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&S)};
_.F.sendAndWrite=function(H,C){var S=this;C=C===void 0?{}:C;if(K3(this)&&this.initialized){var w={url:H,options:C,timestamp:this.now(),status:"NEW",sendCount:0},A=!1,J=C.onSuccess?C.onSuccess:function(){};
w.options.onSuccess=function(c,Y){w.id!==void 0?S.logsStore.deleteRequest(w.id,S.databaseToken):A=!0;S.networkManager.networkStatusHint&&S.getBooleanFlag&&S.getBooleanFlag("vss_network_hint")&&S.networkManager.networkStatusHint(!0);J(c,Y)};
this.sendFn(w.url,w.options,void 0,!0);this.logsStore.set(w,this.databaseToken).then(function(c){w.id=c;A&&S.logsStore.deleteRequest(w.id,S.databaseToken)}).catch(function(c){o_d(S,c)})}else this.sendFn(H,C,void 0,!0)};
_.F.throttledSend=function(){var H=this;if(!K3(this))throw Error("bd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var C;return _.z(function(S){if(S.nextAddress==1)return S.yield(H.logsStore.getMostRecentByStatus("NEW",H.databaseToken),2);if(S.nextAddress!=3)return C=S.yieldResult,C?S.yield(H.immediateSend(C),3):(H.cancelThrottledSend(),S.return());H.intervalJob&&(H.intervalJob=0,H.throttledSend());_.oT(S)})},this.throttleTimeout))};
_.F.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.F.immediateSend=function(H){var C=this,S;return _.z(function(w){switch(w.nextAddress){case 1:if(!K3(C))throw Error("cd");if(H.id===void 0){w.jumpTo(2);break}return w.yield(C.logsStore.markAsQueued(H.id,C.databaseToken),3);case 3:(S=w.yieldResult)||C.handleWarning(Error("dd"));case 2:if(C.requestWithinAgeLimit(H,C.requestAgeLimitMs)){w.jumpTo(4);break}C.handleWarning(Error("ed"));if(H.id===void 0){w.jumpTo(5);break}return w.yield(C.logsStore.deleteRequest(H.id,C.databaseToken),5);case 5:return w.return();
case 4:H.skipRetry||(H=ODY(C,H));if(!H){w.jumpTo(0);break}if(!H.skipRetry||H.id===void 0){w.jumpTo(8);break}return w.yield(C.logsStore.deleteRequest(H.id,C.databaseToken),8);case 8:C.sendFn(H.url,H.options,!!H.skipRetry),_.oT(w)}})};
var ODY=function(H,C){if(!K3(H))throw Error("fd");var S=C.options.onError?C.options.onError:function(){};
C.options.onError=function(A,J){var c,Y,M,m;return _.z(function(W){switch(W.nextAddress){case 1:c=q4u(J);(Y=TCu(J))&&H.getBooleanFlag&&H.getBooleanFlag("web_enable_error_204")&&H.handleError(Error("gd"),C.url,J);if(!(H.getBooleanFlag&&H.getBooleanFlag("nwl_consider_error_code")&&c||H.getBooleanFlag&&!H.getBooleanFlag("nwl_consider_error_code")&&H.potentialEsfErrorCounter<=H.potentialEsfErrorLimit)){W.jumpTo(2);break}if(!H.networkManager.sendNetworkCheckRequest){W.jumpTo(3);break}return W.yield(H.networkManager.sendNetworkCheckRequest(),
3);case 3:if(H.networkManager.isNetworkAvailable()){W.jumpTo(2);break}S(A,J);if(!H.getBooleanFlag||!H.getBooleanFlag("nwl_consider_error_code")||((M=C)==null?void 0:M.id)===void 0){W.jumpTo(6);break}return W.yield(H.logsStore.resetRequest(C.id,H.databaseToken,!1),6);case 6:return W.return();case 2:if(H.getBooleanFlag&&H.getBooleanFlag("nwl_consider_error_code")&&!c&&H.potentialEsfErrorCounter>H.potentialEsfErrorLimit)return W.return();H.potentialEsfErrorCounter++;if(((m=C)==null?void 0:m.id)===void 0){W.jumpTo(8);
break}return C.sendCount<H.retryMaxAttempts?W.yield(H.logsStore.resetRequest(C.id,H.databaseToken,!0,Y?!1:void 0),12):W.yield(H.logsStore.deleteRequest(C.id,H.databaseToken),8);case 12:H.jobManager.addLowPriorityJob(function(){H.networkManager.isNetworkAvailable()&&H.throttledSend()},H.retryDelayMs);
case 8:S(A,J),_.oT(W)}})};
var w=C.options.onSuccess?C.options.onSuccess:function(){};
C.options.onSuccess=function(A,J){var c;return _.z(function(Y){if(Y.nextAddress==1)return((c=C)==null?void 0:c.id)===void 0?Y.jumpTo(2):Y.yield(H.logsStore.deleteRequest(C.id,H.databaseToken),2);H.networkManager.networkStatusHint&&H.getBooleanFlag&&H.getBooleanFlag("vss_network_hint")&&H.networkManager.networkStatusHint(!0);w(A,J);_.oT(Y)})};
return C};
t7.prototype.requestWithinAgeLimit=function(H,C){H=H.timestamp;return this.now()-H>=C?!1:!0};
t7.prototype.retryQueuedRequests=function(){var H=this;if(!K3(this))throw Error("hd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(C){C&&!H.requestWithinAgeLimit(C,H.queuedRequestAgeLimitMs)?H.jobManager.addLowPriorityJob(function(){return _.z(function(S){if(S.nextAddress==1)return C.id===void 0?S.jumpTo(2):S.yield(H.logsStore.resetRequest(C.id,H.databaseToken),2);H.retryQueuedRequests();_.oT(S)})}):H.networkManager.isNetworkAvailable()&&H.throttledSend()})};
var o_d=function(H,C){H.writeError&&!H.networkManager.isNetworkAvailable()?H.writeError(C):H.handleError(C)},K3=function(H){return!!H.databaseToken||H.bypassDbTokenDependency};var mW7;var GbV={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,
visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,
spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,
vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,
buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,
buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,
transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,
outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,
ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,
watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,
deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,
ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,
watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,
tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,
tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,
activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,
browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,
gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,
sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,
musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,
embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,
getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,
unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,
connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529};var XM_={},vj$=F6("ServiceWorkerLogsDatabase",{objectStores:(XM_.SWHealthLog={addedAtVersion:1},XM_),shared:!0,upgrade:function(H,C){C(1)&&RM(Uc(H,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var PJp={},dWp=0;var hx$;var L3=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},ib=function(){if(!L3.instance){var H=_.gh("yt.networkRequestMonitor.instance")||new L3;
_.AO("yt.networkRequestMonitor.instance",H);L3.instance=H}return L3.instance};
L3.prototype.requestComplete=function(H,C){C&&(this.anyRequestHasSucceeded=!0);H=this.removeParams(H);this.requestMap.get(H)||this.requestMap.set(H,C)};
L3.prototype.isEndpointCFR=function(H){H=this.removeParams(H);return(H=this.requestMap.get(H))?!1:H===!1&&this.anyRequestHasSucceeded?!0:null};
L3.prototype.removeParams=function(H){return H.split("?")[0]};
L3.prototype.removeParams=L3.prototype.removeParams;L3.prototype.isEndpointCFR=L3.prototype.isEndpointCFR;L3.prototype.requestComplete=L3.prototype.requestComplete;L3.getInstance=ib;var g5=function(H){_.ph.call(this);var C=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=H!=null?H:{addLowPriorityJob:function(A,J){return setTimeout(A,J)},
cancelJob:function(A){clearTimeout(A)}};
var S,w;this.isOnline=(w=(S=window.navigator)==null?void 0:S.onLine)!=null?w:!0;this.onNavigatorChange=function(){return _.z(function(A){return A.yield(Qei(C),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||dQ7(this)};
_.G(g5,_.ph);g5.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete g5.instance};
g5.prototype.isNetworkAvailable=function(){return this.isOnline};
var dQ7=function(H){H.pollingJob=H.jobManager.addLowPriorityJob(function(){var C;return _.z(function(S){if(S.nextAddress==1)return H.isOnline?((C=window.navigator)==null?0:C.onLine)?S.jumpTo(3):S.yield(Qei(H),3):S.yield(Qei(H),3);dQ7(H);_.oT(S)})},3E4)},Qei=function(H,C){return H.networkRequestPromise?H.networkRequestPromise:H.networkRequestPromise=new Promise(function(S){var w,A,J,c;
return _.z(function(Y){switch(Y.nextAddress){case 1:return w=window.AbortController?new window.AbortController:void 0,J=(A=w)==null?void 0:A.signal,c=!1,_.en(Y,2,3),w&&(H.abortTimeoutKey=H.jobManager.addLowPriorityJob(function(){w.abort()},C||2E4)),Y.yield(fetch("/generate_204",{method:"HEAD",
signal:J}),5);case 5:c=!0;case 3:_.Gv(Y);H.networkRequestPromise=void 0;H.abortTimeoutKey&&(H.jobManager.cancelJob(H.abortTimeoutKey),H.abortTimeoutKey=0);c!==H.isOnline&&(H.isOnline=c,H.isOnline?H.dispatchEvent("networkstatus-online"):H.dispatchEvent("networkstatus-offline"));S(c);_.lf(Y,0);break;case 2:_.Vx(Y),c=!1,Y.jumpTo(3)}})})};var UN=function(){_.ph.call(this);var H=this;this.shouldFlushErrors=!1;g5.instance||(g5.instance=new g5(_.rT));this.sharedNetworkStatusManager=g5.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(H.shouldFlushErrors&&_.E("offline_error_handling")){var C=njw().get("errors",!0);if(C){for(var S in C)if(C[S]){var w=new _.X0(S,"sent via offline_errors");w.name=C[S].name;w.stack=C[S].stack;w.level=C[S].level;_.tE(w)}njw().set("errors",{},2592E3,!0)}}})};
_.G(UN,_.ph);var PsW=function(){if(!UN.instance){var H=_.gh("yt.networkStatusManager.instance")||new UN;_.AO("yt.networkStatusManager.instance",H);UN.instance=H}return UN.instance};
_.F=UN.prototype;_.F.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.F.networkStatusHint=function(H){this.sharedNetworkStatusManager.isOnline=H};
_.F.getWindowStatus=function(){var H=window.navigator.onLine;return H===void 0?!0:H};
_.F.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.F.listen=function(H,C){return this.sharedNetworkStatusManager.listen(H,C)};
_.F.sendNetworkCheckRequest=function(H){H=Qei(this.sharedNetworkStatusManager,H);H.then(function(C){_.E("use_cfr_monitor")&&ib().requestComplete("generate_204",C)});
return H};
UN.prototype.sendNetworkCheckRequest=UN.prototype.sendNetworkCheckRequest;UN.prototype.listen=UN.prototype.listen;UN.prototype.enableErrorFlushing=UN.prototype.enableErrorFlushing;UN.prototype.getWindowStatus=UN.prototype.getWindowStatus;UN.prototype.networkStatusHint=UN.prototype.networkStatusHint;UN.prototype.isNetworkAvailable=UN.prototype.isNetworkAvailable;UN.getInstance=PsW;_.Hn=function(H){H=H===void 0?{}:H;_.ph.call(this);var C=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=PsW();var S=_.gh("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);S&&(H.rateLimit?(this.rateLimit=H.rateLimit,S("networkstatus-online",function(){$QY(C,"publicytnetworkstatus-online")}),S("networkstatus-offline",function(){$QY(C,"publicytnetworkstatus-offline")})):(S("networkstatus-online",function(){C.dispatchEvent("publicytnetworkstatus-online")}),S("networkstatus-offline",
function(){C.dispatchEvent("publicytnetworkstatus-offline")})))};
_.G(_.Hn,_.ph);_.Hn.prototype.isNetworkAvailable=function(){var H=_.gh("yt.networkStatusManager.instance.isNetworkAvailable");return H?H.bind(this.nsmInstance)():!0};
_.Hn.prototype.networkStatusHint=function(H){var C=_.gh("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);C&&C(H)};
_.Hn.prototype.sendNetworkCheckRequest=function(H){var C=this,S;return _.z(function(w){S=_.gh("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(C.nsmInstance);return _.E("skip_network_check_if_cfr")&&ib().isEndpointCFR("generate_204")?w.return(new Promise(function(A){var J;C.networkStatusHint(((J=window.navigator)==null?void 0:J.onLine)||!0);A(C.isNetworkAvailable())})):S?w.return(S(H)):w.return(!0)})};
var $QY=function(H,C){H.rateLimit?H.lastJobTime?(_.rT.cancelJob(H.schedulerJob),H.schedulerJob=_.rT.addLowPriorityJob(function(){H.lastPublicSignalSent!==C&&(H.dispatchEvent(C),H.lastPublicSignalSent=C,H.lastJobTime=(0,_.Zt)())},H.rateLimit-((0,_.Zt)()-H.lastJobTime))):(H.dispatchEvent(C),H.lastPublicSignalSent=C,H.lastJobTime=(0,_.Zt)()):H.dispatchEvent(C)};var tUW,RS=function(){t7.call(this,{logsStore:{cleanLogsStore:Gp6,deleteRequest:uHp,getMostRecentByStatus:b7D,markAsQueued:EjZ,resetRequest:exi,set:NCU},networkManager:_.LnD(),handleError:function(H,C,S){var w,A=S==null?void 0:(w=S.error)==null?void 0:w.code;if(A===400||A===415){var J;H=new _.X0(H.message,C,S==null?void 0:(J=S.error)==null?void 0:J.code);_.Ug(H,void 0,void 0,void 0,!0)}else _.tE(H)},
handleWarning:_.Ug,sendFn:DW6,now:_.Zt,writeError:rxE,jobManager:_.oh(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.YB("potential_esf_error_limit",10),getBooleanFlag:_.E,disableYtIdbTransactions:!(_.OE()&&_.gjw())});this.initializationPromise=new _.N5;_.E("networkless_immediately_drop_all_requests")&&f5i();Tmu("LogsDatabaseV2")};
_.G(RS,t7);_.kcd=function(){var H=_.gh("yt.networklessRequestController.instance");H||(H=new RS,_.AO("yt.networklessRequestController.instance",H),_.E("networkless_logging")&&_.JO().then(function(C){H.databaseToken=C;VjP(H);H.initializationPromise.resolve();H.enableCleaning&&Math.random()<=H.cleaningRate&&H.databaseToken&&VUE(H.databaseToken);_.E("networkless_immediately_drop_sw_health_store")&&pMY(H)}));
return H};
RS.prototype.writeThenSend=function(H,C){C||(C={});C=KnU(H,C);_.OE()||(this.initialized=!1);t7.prototype.writeThenSend.call(this,H,C)};
RS.prototype.sendThenWrite=function(H,C,S){C||(C={});C=KnU(H,C);_.OE()||(this.initialized=!1);t7.prototype.sendThenWrite.call(this,H,C,S)};
RS.prototype.sendAndWrite=function(H,C){C||(C={});C=KnU(H,C);_.OE()||(this.initialized=!1);t7.prototype.sendAndWrite.call(this,H,C)};
RS.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var pMY=function(H){var C;_.z(function(S){if(!H.databaseToken)throw C=Lv("clearSWHealthLogsDb"),C;return S.return(oj$(H.databaseToken).catch(function(w){H.handleError(w)}))})};_.Rx7=!1;_.UWW=_.s$.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.Rx7};_.AO("ytNetworklessLoggingInitializationOptions",_.UWW);var pC=function(H){var C=this;this.config_=null;H?this.config_=H:G5W()&&(this.config_=_.Yu());_.X2(_.rT,function(){MUD(C)},5E3)};
pC.prototype.isReady=function(){!this.config_&&G5W()&&(this.config_=_.Yu());return!!this.config_};
var zxE=function(H,C,S,w){!_.rh("VISITOR_DATA")&&C!=="visitor_id"&&Math.random()<.01&&_.Ug(new _.X0("Missing VISITOR_DATA when sending innertube request.",C,S,w));if(!H.isReady()){var A=new _.X0("innertube xhrclient not ready",C,S,w);_.tE(A);throw A;}var J={headers:w.headers||{},method:"POST",postParams:S,postBody:w.postBody,postBodyFormat:w.postBodyFormat||"JSON",onTimeout:function(){w.onTimeout()},
onFetchTimeout:w.onTimeout,onSuccess:function(y,N){if(w.onSuccess)w.onSuccess(N)},
onFetchSuccess:function(y){if(w.onSuccess)w.onSuccess(y)},
onProgress:function(y){if(w.onProgress)w.onProgress(y)},
onError:function(y,N){if(w.onError)w.onError(N)},
onFetchError:function(y){if(w.onError)w.onError(y)},
timeout:w.timeout,withCredentials:!0,compress:w.compress};J.headers["Content-Type"]||(J.headers["Content-Type"]="application/json");var c="";(A=H.config_.innertubeHostOverride)&&(c=A);var Y=H.config_.innertubeUseThirdPartyAuth||!1,M=_.rGE(Y,c,w);Object.assign(J.headers,M);J.headers.Authorization&&!c&&Y&&(J.headers["x-origin"]=window.location.origin);var m=_.HA(c+("/youtubei/"+H.config_.innertubeApiVersion+"/"+C),{alt:"json"}),W=function(y){y=y===void 0?!1:y;var N;if(w.retry&&c!="www.youtube-nocookie.com"&&
(y||_.E("skip_ls_gel_retry")||J.headers["Content-Type"]!=="application/json"||(N=cxp(C,S,M,Y)),N)){var b=J.onSuccess,u=J.onFetchSuccess;J.onSuccess=function(p,k){Y40(N);b(p,k)};
S.onFetchSuccess=function(p,k){Y40(N);u(p,k)}}try{if(y&&w.retry&&!w.networklessOptions.bypassNetworkless)J.method="POST",w.networklessOptions.writeThenSend?_.kcd().writeThenSend(m,J):_.kcd().sendAndWrite(m,J);
else if(w.compress){var O=!w.networklessOptions.writeThenSend;if(J.postBody){var d=J.postBody;typeof d!=="string"&&(d=JSON.stringify(J.postBody));i70(m,d,J,_.e$,O)}else i70(m,JSON.stringify(J.postParams),J,Jf6,O)}else _.E("web_all_payloads_via_jspb")?_.e$(m,J):Jf6(m,J)}catch(p){if(p.name==="InvalidAccessError")N&&(Y40(N),N=0),_.Ug(Error("id"));else throw p;}N&&_.X2(_.rT,function(){MUD(H)},5E3)};
_.I5E()?JGi().then(function(y){W(y)}):W(!1)};var cnE=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(cnE,_.Jc);var hkM=0,xWD=_.Tt?"webkit":_.qy?"moz":_.My?"ms":Lp7?"o":"";_.AO("ytDomDomGetNextId",_.gh("ytDomDomGetNextId")||function(){return++hkM});var n_b={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},At=function(H){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(H=
H||window.event){this.event=H;for(var C in H)C in n_b||(this[C]=H[C]);this.scale=H.scale;this.rotation=H.rotation;var S=H.target||H.srcElement;S&&S.nodeType==3&&(S=S.parentNode);this.target=S;var w=H.relatedTarget;if(w)try{w=w.nodeName?w:null}catch(A){w=null}else this.type=="mouseover"?w=H.fromElement:this.type=="mouseout"&&(w=H.toElement);this.relatedTarget=w;this.clientX=H.clientX!=void 0?H.clientX:H.pageX;this.clientY=H.clientY!=void 0?H.clientY:H.pageY;this.keyCode=H.keyCode?H.keyCode:H.which;
this.charCode=H.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=H.altKey;this.ctrlKey=H.ctrlKey;this.shiftKey=H.shiftKey;this.metaKey=H.metaKey;this.pageX_=H.pageX;this.pageY_=H.pageY}}catch(A){}},rJd=function(H){if(document.body&&document.documentElement){var C=document.body.scrollTop+document.documentElement.scrollTop;
H.pageX_=H.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);H.pageY_=H.clientY+C}};
At.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
At.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
At.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var wv=_.s$.ytEventsEventsListeners||{};_.AO("ytEventsEventsListeners",wv);var jWE=_.s$.ytEventsEventsCounter||{count:0};_.AO("ytEventsEventsCounter",jWE);var wbE=_.d1(function(){var H=!1;try{var C=Object.defineProperty({},"capture",{get:function(){H=!0}});
window.addEventListener("test",null,C)}catch(S){}return H});_.Zh(F2,_.Op);F2.prototype.onMouseMove_=function(H){H.pageX_===void 0&&rJd(H);var C=H.pageX_;H.pageY_===void 0&&rJd(H);this.position_=new _.rx(C,H.pageY_)};
F2.prototype.checkPosition_=function(){if(this.position_){var H=(0,_.Zt)();if(this.previousTime_!=0){var C=this.previousPosition_,S=this.position_,w=C.x-S.x;C=C.y-S.y;w=Math.sqrt(w*w+C*C)/(H-this.previousTime_);this.cycles_[this.index_]=Math.abs((w-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(S=C=0;S<4;S++)C+=this.cycles_[S]||0;C>=3&&this.callback_();this.previousVelocity_=w}this.previousTime_=H;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
F2.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.Ag0(this.mouseListenerKey_)};var YU7={};var Nw7=new _.mi("rawColdConfigGroup");var yB7=new _.mi("rawHotConfigGroup");var BM7=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(BM7,_.Jc);var ZlV=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(ZlV,_.Jc);var Os=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H,500)};
_.G(Os,_.Jc);Os.prototype.getPayloadCase=function(){return _.lP(this,DQW)};
Os.prototype.getContext=function(){return _.zf(this,ZlV,33)};
var DQW=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,526,527,528,529];var zXW=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(zXW,_.Jc);var BW7=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(BW7,_.Jc);BW7.prototype.setVideoId=function(H){return er(this,1,Ds7,bp(H))};
BW7.prototype.getPlaylistId=function(){return _.ud(this,lb(this,Ds7,2))};
var Ds7=[1,2];var AB6=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(AB6,_.Jc);AB6.prototype.getContext=function(){return _.zf(this,ub,1)};
AB6.prototype.getTier=function(){return _.p5(this,7)};var KPn,z8,qK;KPn=_.s$.ytPubsubPubsubInstance||new _.G9;z8=_.s$.ytPubsubPubsubSubscribedKeys||{};qK=_.s$.ytPubsubPubsubTopicToKeys||{};_.zei=_.s$.ytPubsubPubsubIsSynchronous||{};_.G9.prototype.subscribe=_.G9.prototype.subscribe;_.G9.prototype.unsubscribeByKey=_.G9.prototype.unsubscribeByKey;_.G9.prototype.publish=_.G9.prototype.publish;_.G9.prototype.clear=_.G9.prototype.clear;_.AO("ytPubsubPubsubInstance",KPn);_.AO("ytPubsubPubsubTopicToKeys",qK);_.AO("ytPubsubPubsubIsSynchronous",_.zei);
_.AO("ytPubsubPubsubSubscribedKeys",z8);var mv=window;var IS=_.E("web_enable_lifecycle_monitoring")&&W3Z()!==0,tj7=_.E("web_enable_lifecycle_monitoring");var LP7=function(H){var C=this;var S=S===void 0?0:S;var w=w===void 0?_.oh():w;this.JSC$10903_defaultPriority=S;this.scheduler=w;this.completedResolver=new _.N5;this.scheduledPayloads=H;for(H={i$jscomp$492:0};H.i$jscomp$492<this.scheduledPayloads.length;H={payload$jscomp$20:void 0,i$jscomp$492:H.i$jscomp$492},H.i$jscomp$492++)H.payload$jscomp$20=this.scheduledPayloads[H.i$jscomp$492],S=function(A){return function(){A.payload$jscomp$20.job();C.scheduledPayloads[A.i$jscomp$492].processed=!0;C.scheduledPayloads.every(function(J){return J.processed===
!0})&&C.completedResolver.resolve()}}(H),w=this.getPriority(H.payload$jscomp$20),w=this.scheduler.addJob(S,w),this.scheduledPayloads[H.i$jscomp$492]=Object.assign({},H.payload$jscomp$20,{job:S,
jobId:w})};
LP7.prototype.flushJobs=function(){var H=this,C=Array.from(this.scheduledPayloads.keys()).sort(function(w,A){return H.getPriority(H.scheduledPayloads[A])-H.getPriority(H.scheduledPayloads[w])});
C=_.Z(C);for(var S=C.next();!S.done;S=C.next())S=this.scheduledPayloads[S.value],S.jobId===void 0||S.processed||(this.scheduler.cancelJob(S.jobId),this.scheduler.addJob(S.job,10))};
LP7.prototype.cancel=function(){for(var H=_.Z(this.scheduledPayloads),C=H.next();!C.done;C=H.next())C=C.value,C.jobId===void 0||C.processed||this.scheduler.cancelJob(C.jobId),C.processed=!0;this.completedResolver.resolve()};
LP7.prototype.getPriority=function(H){var C;return(C=H.priority)!=null?C:this.JSC$10903_defaultPriority};var aS=function(H){this.state=H;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};IS&&yg$(this.state)};
aS.prototype.install=function(H){this.plugins.push(H);return this};
aS.prototype.uninstall=function(){var H=this;_.tc.apply(0,arguments).forEach(function(C){C=H.plugins.indexOf(C);C>-1&&H.plugins.splice(C,1)})};
aS.prototype.transition=function(H,C){var S=this;IS&&NWW(this.state);var w=this.transitions.find(function(J){return Array.isArray(J.from)?J.from.find(function(c){return c===S.state&&J.to===H}):J.from===S.state&&J.to===H});
if(w){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);g_d(this,H,C);this.state=H;IS&&yg$(this.state);w=w.action.bind(this);var A=this.plugins.filter(function(J){return J[H]}).map(function(J){return J[H]});
w(UQi(this,A),C)}else throw Error("jd`"+this.state+"`"+H);};
var UQi=function(H,C){var S=C.filter(function(A){return Rk7(H,A)===10}),w=C.filter(function(A){return Rk7(H,A)!==10});
return H.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var A=_.tc.apply(0,arguments);return _.z(function(J){if(J.nextAddress==1)return J.yield(H.runImmediateJobsAsync.apply(H,[S].concat(_.k$(A))),2);H.setJobSetWithScheduledJobs.apply(H,[w].concat(_.k$(A)));_.oT(J)})}:function(){var A=_.tc.apply(0,arguments);
H.runImmediateJobsSync.apply(H,[S].concat(_.k$(A)));H.setJobSetWithScheduledJobs.apply(H,[w].concat(_.k$(A)))}};
aS.prototype.runImmediateJobsSync=function(H){var C=_.tc.apply(1,arguments);_.oh();for(var S=_.Z(H),w=S.next(),A={};!w.done;A={lifecycle$jscomp$2:void 0},w=S.next())A.lifecycle$jscomp$2=w.value,yi(function(J){return function(){Ig1(J.lifecycle$jscomp$2.name);EbE(function(){return J.lifecycle$jscomp$2.callback.apply(J.lifecycle$jscomp$2,_.k$(C))});
xU(J.lifecycle$jscomp$2.name)}}(A))};
aS.prototype.runImmediateJobsAsync=function(H){var C=_.tc.apply(1,arguments),S,w,A,J;return _.z(function(c){c.nextAddress==1&&(_.oh(),S=_.Z(H),w=S.next(),A={});if(c.nextAddress!=3){if(w.done)return c.jumpTo(0);A.lifecycle$jscomp$3=w.value;A.asyncJobCompletion=void 0;J=function(Y){return function(){Ig1(Y.lifecycle$jscomp$3.name);var M=EbE(function(){return Y.lifecycle$jscomp$3.callback.apply(Y.lifecycle$jscomp$3,_.k$(C))});
ugp(M)?Y.asyncJobCompletion=_.E("web_lifecycle_error_handling_killswitch")?M.then(function(){xU(Y.lifecycle$jscomp$3.name)}):M.then(function(){xU(Y.lifecycle$jscomp$3.name)},function(m){bu7(m);
xU(Y.lifecycle$jscomp$3.name)}):xU(Y.lifecycle$jscomp$3.name)}}(A);
yi(J);return A.asyncJobCompletion?c.yield(A.asyncJobCompletion,3):c.jumpTo(3)}A={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};w=S.next();return c.jumpTo(2)})};
aS.prototype.setJobSetWithScheduledJobs=function(H){var C=_.tc.apply(1,arguments),S=this,w=H.map(function(A){return{job:function(){Ig1(A.name);EbE(function(){return A.callback.apply(A,_.k$(C))});
xU(A.name)},
priority:Rk7(S,A)}});
w.length&&(this.jobSet=new LP7(w))};
var Rk7=function(H,C){var S,w;return(w=(S=H.overridePriority)!=null?S:C.priority)!=null?w:0},Ig1=function(H){IS&&H&&yg$(H)},xU=function(H){IS&&H&&NWW(H)},g_d=function(H,C,S){tj7&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+H.constructor.name+"] '"+H.state+"' to '"+C+"'"),console.log("with message: ",S),console.groupEnd())};
_.JJ.Object.defineProperties(aS.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var agM=function(H){aS.call(this,H===void 0?"none":H);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(){}}]},xQn;
_.G(agM,aS);agM.prototype.runApplicationNavigationBegin=function(H,C){var S=this;this.navigationTimer=_.X2(_.rT,function(){S.currentState==="application_navigating"&&S.transition("none")},5E3);
H(C==null?void 0:C.event)};
agM.prototype.runApplicationNavigationEnd=function(H,C){this.navigationTimer&&(_.rT.cancelJob(this.navigationTimer),this.navigationTimer=null);H(C==null?void 0:C.event)};
_.W_0=function(){xQn||(xQn=new agM);return xQn};var mp7=[];_.AO("yt.logging.transport.getScrapedGelPayloads",function(){return mp7});var Wn=function(){var H=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return H.totalEntries}}};
Wn.prototype.storePayload=function(H,C){H=ee0(H);this.store[H]?this.store[H].push(C):(this.memoizedKeySequences={},this.store[H]=[C]);this.totalEntries++;_.E("more_accurate_gel_parser")&&(C=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(C));return H};
Wn.prototype.smartExtractMatchingEntries=function(H){if(!H.keys.length)return[];for(var C=HLn(this,H.keys.splice(0,1)[0]),S=[],w=0;w<C.length;w++)this.store[C[w]]&&H.sizeLimit&&(this.store[C[w]].length<=H.sizeLimit?(S.push.apply(S,_.k$(this.store[C[w]])),delete this.store[C[w]]):S.push.apply(S,_.k$(this.store[C[w]].splice(0,H.sizeLimit))));this.totalEntries-=S.length;(H==null?0:H.sizeLimit)&&S.length<(H==null?void 0:H.sizeLimit)&&(H.sizeLimit-=S.length,S.push.apply(S,_.k$(this.smartExtractMatchingEntries(H))));
return S};
Wn.prototype.extractMatchingEntries=function(H){H=HLn(this,H);for(var C=[],S=0;S<H.length;S++)this.store[H[S]]&&(C.push.apply(C,_.k$(this.store[H[S]])),delete this.store[H[S]]);this.totalEntries-=C.length;return C};
Wn.prototype.getSequenceCount=function(H){H=HLn(this,H);for(var C=0,S=0;S<H.length;S++){var w=void 0;C+=((w=this.store[H[S]])==null?void 0:w.length)||0}return C};
var HLn=function(H,C){var S=ee0(C);if(H.memoizedKeySequences[S])return H.memoizedKeySequences[S];var w=Object.keys(H.store)||[];if(w.length<=1&&ee0(C)===w[0])return w;for(var A=[],J=0;J<w.length;J++){var c=w[J].split("/");if(iLY(C.auth,c[0])){var Y=C.isJspb;iLY(Y===void 0?"undefined":Y?"true":"false",c[1])&&iLY(C.cttAuthInfo,c[2])&&(Y=C.tier,Y=Y===void 0?"undefined":JSON.stringify(Y),iLY(Y,c[3])&&A.push(w[J]))}}return H.memoizedKeySequences[S]=A},iLY=function(H,C){return H===void 0||H==="undefined"?
!0:H===C};
Wn.prototype.getSequenceCount=Wn.prototype.getSequenceCount;Wn.prototype.extractMatchingEntries=Wn.prototype.extractMatchingEntries;Wn.prototype.smartExtractMatchingEntries=Wn.prototype.smartExtractMatchingEntries;Wn.prototype.storePayload=Wn.prototype.storePayload;var xsW,Il7,Hnu,bb,C9Y,u1u,eXZ,ReW,UsE,pbp,ali,q5w,tJE;xsW=_.YB("initial_gel_batch_timeout",2E3);Il7=_.YB("gel_queue_timeout_max_ms",6E4);Hnu=_.YB("gel_min_batch_size",5);bb=void 0;C9Y=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
u1u=new C9Y;eXZ=new C9Y;ReW=new C9Y;UsE=new C9Y;ali=!0;q5w=1;_.M4E=new Map;tJE=_.s$.ytLoggingTransportTokensToCttTargetIds_||{};_.AO("ytLoggingTransportTokensToCttTargetIds_",tJE);var K3Z=_.s$.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.AO("ytLoggingTransportTokensToJspbCttTargetIds_",K3Z);var NK={};var Pn=_.s$.ytLoggingGelSequenceIdObj_||{};_.AO("ytLoggingGelSequenceIdObj_",Pn);var viu=[];var hX$=new Set,XtZ=0,Dp6=0,Bw0=0,dp7=[],Q$E=[],K_E=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var sJW=function(){};
sJW.prototype.getUrl=function(H,C){C=C===void 0?!1:C;return H.hasOwnProperty("shareEndpoint")?null:_.UpZ(H,null,C)};
var j1V=function(H,C,S){H={endpoint:C,actions:[]};S=(S.path?S.path[0]:S.target).icon||"";C=S.indexOf(":");C>0&&(S=S.substr(C+1));S&&H.actions.push(S);return H};var iNi=/Command$/,HNZ=/Endpoint$/,Iz6=new Map;var SXn,skn;SXn=1;_.a8=function(){this.actionRoutingMap=new Map};
_.a8.prototype.triggerAction=function(H){var C=new BeE(H,!1,_.tc.apply(1,arguments));this.handleAction(C);return C.returnValue};
_.a8.prototype.triggerOptionalAction=function(H){var C=new BeE(H,!0,_.tc.apply(1,arguments));this.handleAction(C);return C.returnValue};
_.HW=function(H,C,S){C.forEach(function(w){var A=xp$(w);A&&H.triggerOptionalAction(A,w,S,void 0)})};
_.a8.prototype.handleAction=function(H){var C=this.actionRoutingMap.get(H.actionName);C&&skn(H,C);H.optionalAction||H.returnValue.length!==0||(H=new _.X0("Unhandled action",H.actionName),_.Ug(H))};
skn=function(H,C){C.forEach(function(S){var w=null;S?w=S.apply(null,H.args):(S=Error("kd"),S.params=H.actionName,_.tE(S));H.returnValue.push(w)})};
_.xI=function(H,C,S){S||(S=SXn++);for(var w=_.Z(Object.keys(C)),A=w.next();!A.done;A=w.next()){A=A.value;var J=H.actionRoutingMap.get(A);J||(J=new Map,H.actionRoutingMap.set(A,J));H.registerActionHandler(S,A,C[A],J)}return S};
_.a8.prototype.registerActionHandler=function(H,C,S,w){w.set(H,_.Lp(S))};
_.H5=function(H,C,S){C=_.Z(Object.keys(C));for(var w=C.next();!w.done;w=C.next())(w=H.actionRoutingMap.get(w.value))&&w.delete(S)};
_.JC(_.a8);var Ah7=function(H,C){var S=_.a8.getInstance();_.$T(function(){var w={},A=_.xI(S,(w[H]=C,w));_.PN(function(){var J={};_.H5(S,(J[H]="",J),A)})})};var T8W=Symbol("md");cJZ=KP$;var eMu=new Set(["For","If","Match","Watch"]),jkd={},wHV=(jkd[Dp.default]=function(){return sew},jkd.style=function(){return sew},jkd),AMY;
for(AMY in wHV)Fb.attributes[AMY]=wHV[AMY](Fb.attributes[AMY]);var ZV=new _.W4("VISIBILITY_OBSERVER");var QJ$={retrieve:function(H){return this.id.\u0275prov.token===H.\u0275prov.token?this.contextValue:this?_.w6(this,this.id):Vk$}};var JI6=function(H,C,S){if(H!==wd)return!1;H=mNu(document.createElement("div"),function(){var w=ZY(!1);try{S[0]()}finally{ZY(w)}});
H=Array.from(H.childNodes);H.length===1&&(H=H[0]);return H};var JMM=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(H){}var F7i=typeof WeakRef==="function";var ZLU=function(H){this.value=H};
ZLU.prototype.deref=function(){return this.value};
var cM1=F7i?WeakRef:ZLU,YXW=function(H){this.newKeyHandler=H;this.map=new WeakMap};
YXW.prototype.add=function(H,C){this.map.has(H)||(this.newKeyHandler(H),this.map.set(H,[]));this.map.get(H).push(new cM1(C))};
YXW.prototype.get=function(H){var C=this;return function w(){var A,J,c,Y,M,m,W,y,N,b,u;return _.YC(w,function(O){switch(O.nextAddress){case 1:_.fM(O,2);A=C.map.get(H);if(!A)return O.return();J=0;c=_.Z(A);Y=c.next();case 4:if(Y.done){O.jumpTo(6);break}M=Y.value;m=M.deref();if(!m){O.jumpTo(5);break}J++;W=_.zX;return O.yield(m,8);case 8:W(O.yieldResult);case 5:Y=c.next();O.jumpTo(4);break;case 6:if(2*J<A.length){y=0;N=_.Z(A);for(b=N.next();!b.done;b=N.next())u=b.value,u.deref()&&(A[y++]=u);A.length=
y}case 2:_.Gv(O),_.lf(O,0)}})}()};var zNd=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},nQ$=new YXW(function(H){H.addEventListener("abort",B$i,{once:!0})}),hMD=new WeakMap,MRP=function(H){H=H===void 0?ik:H;
this.signal=new H};
MRP.prototype.abort=function(H){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=H,H=new Event("abort"),this.signal.dispatchEvent(H))};
var ik=function(){this.target=zNd();this.aborted=!1;this.onabort=null};
ik.prototype.throwIfAborted=function(){k_V.call(this)};
ik.prototype.addEventListener=function(H,C,S){this.target.addEventListener(H,C,S)};
ik.prototype.removeEventListener=function(H,C,S){this.target.removeEventListener(H,C,S)};
ik.prototype.dispatchEvent=function(H){if(this.onabort&&H.type==="abort")this.onabort(H);return this.target.dispatchEvent(H)};
ik.abort=pQ7;ik.timeout=DNw;ik.any=rhp;var $N7=JMM?AbortController:MRP,CH=JMM?AbortSignal:ik;typeof CH.abort!=="function"&&(CH.abort=pQ7);typeof CH.prototype.throwIfAborted!=="function"&&(CH.prototype.throwIfAborted=k_V);typeof CH.any!=="function"&&(CH.any=rhp);typeof CH.timeout!=="function"&&(CH.timeout=DNw);var qX1=function(H){H=H.clone();P5Y(H);kV(H,"dg",null);kV(H,"d","0");Ovb(H,null);XAW(H,null);return H},TVd=!0,m3n=function(H,C,S){var w=S===void 0?{}:S;
S=w.cssRowKey===void 0?void 0:w.cssRowKey;var A=w.combinedSignature===void 0?void 0:w.combinedSignature;var J=w.extraEdges===void 0?void 0:w.extraEdges;w=w.callback===void 0?void 0:w.callback;kV(H,"m",C.join(","));J&&dEM(H,J);S&&(kV(H,"ck",S),A?kV(H,"rs",A):TVd&&(TVd=!1));if(w){if(w!=null&&!k9_.test(w))throw Error("Xa`"+w);kV(H,"cb",w)}H=H.toString();_.AV(H,"/")&&(H=zBP(document.location.href)+H);return _.Ot(H)};var yM1=function(H){return W77(H).then(function(C){return JSON.parse(C.responseText)})},W77=function(H){var C={},S=C.xmlHttpFactory?C.xmlHttpFactory.createInstance():xHW.createInstance();
return(new _.Es(function(w,A){var J;try{S.open("GET",H,!0)}catch(M){A(new Sv("Error opening XHR: "+M.message,H,S))}S.onreadystatechange=function(){if(S.readyState==4){_.s$.clearTimeout(J);var M;!(M=a9U(S.status))&&(M=S.status===0)&&(M=YtU(H),M=!(M=="http"||M=="https"||M==""));M?w(S):A(new NV1(S.status,H,S))}};
S.onerror=function(){A(new Sv("Network error",H,S))};
if(C.headers)for(var c in C.headers){var Y=C.headers[c];Y!=null&&S.setRequestHeader(c,Y)}C.withCredentials&&(S.withCredentials=C.withCredentials);C.responseType&&(S.responseType=C.responseType);C.mimeType&&S.overrideMimeType(C.mimeType);C.timeoutMs>0&&(J=_.s$.setTimeout(function(){S.onreadystatechange=function(){};
S.abort();A(new bL1(H,S))},C.timeoutMs));
try{S.send(null)}catch(M){S.onreadystatechange=function(){},_.s$.clearTimeout(J),A(new Sv("Error sending XHR: "+M.message,H,S))}})).thenCatch(function(w){w instanceof _.KN&&S.abort();
throw w;})},Sv=function(H,C,S){_.CU.call(this,H+", url="+C);
this.url=C;this.xhr=S};
_.Zh(Sv,_.CU);Sv.prototype.name="XhrError";var NV1=function(H,C,S){Sv.call(this,"Request Failed, status="+H,C,S);this.status=H};
_.Zh(NV1,Sv);NV1.prototype.name="XhrHttpError";var bL1=function(H,C){Sv.call(this,"Request timed out",H,C)};
_.Zh(bL1,Sv);bL1.prototype.name="XhrTimeoutError";AC=AC||{};var sS=function(){_.Op.call(this)};
_.Zh(sS,_.Op);sS.prototype.initialize=function(){};var ER1=function(H,C){this.fn_=H;this.handler_=C};
ER1.prototype.execute=function(H){this.fn_&&(this.fn_.call(this.handler_||null,H),this.fn_=this.handler_=null)};
ER1.prototype.abort=function(){this.handler_=this.fn_=null};var jv=function(H,C){_.Op.call(this);this.deps_=H;this.JSC$11057_id_=C;this.onloadCallbacks_=[];this.JSC$11057_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.Zh(jv,_.Op);jv.prototype.moduleConstructor_=sS;jv.prototype.module_=null;jv.prototype.getId=function(){return this.JSC$11057_id_};
jv.prototype.registerCallback=function(H,C){return eNP(this.onloadCallbacks_,H,C)};
var uwW=function(H,C){eNP(H.JSC$11057_onErrorCallbacks_,C)},eNP=function(H,C,S){C=new ER1(C,S);
H.push(C);return C};
jv.prototype.isLoaded=function(){return!!this.module_};
jv.prototype.onLoad=function(H){var C=new this.moduleConstructor_;C.initialize(H());this.module_=C;C=(C=GoW(this.earlyOnloadCallbacks_,H()))||GoW(this.onloadCallbacks_,H());C||(this.JSC$11057_onErrorCallbacks_.length=0);return C};
jv.prototype.onError=function(H){(H=GoW(this.JSC$11057_onErrorCallbacks_,H))&&jZ(Error("qd`"+H));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var GoW=function(H,C){for(var S=[],w=0;w<H.length;w++)try{H[w].execute(C)}catch(A){jZ(A),S.push(A)}H.length=0;return S.length?S:null};
jv.prototype.disposeInternal=function(){jv.superClass_.disposeInternal.call(this);_.Ak(this.module_)};var fRM,XHn,oRP,OLP,lRV,VRb,pHU,P97,$3Y;
_.zq=function(H,C,S,w,A){w=w===void 0?!1:w;A=A===void 0?!1:A;var J=J===void 0?!0:J;this.scsReferenceUrl_=atU(_.Qv(H).toString(),J);this.cssRowKey_=C;this.combinedSignature_=S;this.useNegativeLoading_=w;this.requestedModuleMap_={};this.JSC$11060_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(H=pq(this.scsReferenceUrl_,"excm"))?H.split(","):[];this.shouldScanForCss_=A;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;xzu();_.we(this,QaY(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
fRM=function(H,C){if(C.href||C.getAttribute("data-href"))if(C=C.href||C.getAttribute("data-href"),gu0(C)&&!atU(C).urlPrefix_.endsWith("_/js/")){C=QaY(atU(C));C=_.Z(C);for(var S=C.next();!S.done;S=C.next())S=S.value,H.loadedCssModuleList_.includes(S)||H.loadedCssModuleList_.push(S)}};
_.zq.prototype.JSC$11062_loadModules=function(H,C,S){var w=S===void 0?{}:S;S=w.extraEdges;var A=w.onError;var J=w.onSuccess;w=w.forceReload;this.JSC$11060_moduleInfoMap_=C;if(!H)throw Error("rd");if(this.shouldScanForCss_){C=_.Z(document.getElementsByTagName("style"));for(var c=C.next();!c.done;c=C.next())fRM(this,c.value);C=_.Z(document.getElementsByTagName("link"));for(c=C.next();!c.done;c=C.next())fRM(this,c.value)}vRn(this,lRV(this,H),S,A,J,w)};
var vRn=function(H,C,S,w,A,J){w=w===void 0?function(){}:w;
A=A===void 0?function(){}:A;
J=J===void 0?!1:J;VRb(H,C,function(c,Y,M){M=M===void 0?Y:M;H.enableFallbackFetch&&J?H.loadWithFetch(c,Y,w,A,M):H.load(c,Y,w,A,M,S)},S)||w(-1)};
_.zq.prototype.loadWithFetch=function(){_.z(function(){throw Error("sd");})};
_.zq.prototype.maybeSetAdditionalFields=function(){};
XHn=function(H,C,S){if(H.useNegativeLoading_){var w=H.scsReferenceUrl_;H={cssRowKey:H.cssRowKey_,combinedSignature:H.combinedSignature_,extraEdges:S,requestedModuleIds:oRP(H),requestedCssModuleIds:OLP(H)};var A=H===void 0?{}:H;H=A.requestedModuleIds===void 0?[]:A.requestedModuleIds;S=A.requestedCssModuleIds===void 0?[]:A.requestedCssModuleIds;var J=A.cssRowKey===void 0?void 0:A.cssRowKey;var c=A.combinedSignature===void 0?void 0:A.combinedSignature;var Y=A.extraEdges===void 0?void 0:A.extraEdges;
A=A.callback===void 0?void 0:A.callback;w=qX1(w);kV(w,"d","1");Ovb(w,H);XAW(w,S);C=m3n(w,C,{cssRowKey:J,combinedSignature:c,extraEdges:Y,callback:A})}else w=H.scsReferenceUrl_,H={cssRowKey:H.cssRowKey_,combinedSignature:H.combinedSignature_,requestedModuleIds:oRP(H),requestedCssModuleIds:OLP(H)},Y=H===void 0?{}:H,H=Y.requestedCssModuleIds===void 0?[]:Y.requestedCssModuleIds,S=Y.cssRowKey===void 0?void 0:Y.cssRowKey,J=Y.combinedSignature===void 0?void 0:Y.combinedSignature,c=Y.extraEdges===void 0?
void 0:Y.extraEdges,Y=Y.callback===void 0?void 0:Y.callback,w=qX1(w),XAW(w,H),C=m3n(w,C,{cssRowKey:S,combinedSignature:J,extraEdges:c,callback:Y});return C};
_.we=function(H,C){for(var S=!1,w=[],A=0;A<C.length;++A){var J=C[A];H.requestedModuleMap_[J]||(H.requestedModuleMap_[J]=!0,H.requestedModuleList_.push(J),S=!0,w.push(J))}S&&(H.requestedModuleListSorted_=!1)};
_.Ai=function(H,C){for(var S=[],w=0;w<C.length;++w){var A=C[w];H.requestedModuleMap_[A]&&(delete H.requestedModuleMap_[A],_.ru(H.requestedModuleList_,A),S.push(A))}};
_.zq.prototype.load=function(H,C,S,w,A){A=A===void 0?C:A;_.Qv(H);var J=this.useCors_,c=this.corsMode_,Y=this.fetchPriority,M=_.GZ("SCRIPT");_.JY(M,H);J&&(M.crossOrigin=c);M.async=!1;Y&&M.setAttribute("fetchpriority",Y);_.we(this,C);_.Qkd(this,H,M,C,S,w,A)};
_.Qkd=function(H,C,S,w,A,J,c){c=c===void 0?w:c;H.lastScript_=S;H.insertPos.insertBefore(S,H.insertPos.firstChild);_.d3b(S,w,function(){S.parentElement.removeChild(S);H.lastScript_==S&&(H.lastScript_=null);var Y=new Set;w.map(function(m){return Y.add(m)});
for(var M in H.JSC$11060_moduleInfoMap_)H.JSC$11060_moduleInfoMap_[M].isLoaded()&&Y.add(M);Array.from(Y);J()},function(Y){S.parentElement.removeChild(S);
H.lastScript_==S&&(H.lastScript_=null);_.Ai(H,Y);H.pendingModuleGraphUpdate_?H.pendingModuleGraphUpdate_.then(function(){A(-1,C)}):A(-1,C)},c)};
_.d3b=function(H,C,S,w,A){A=A===void 0?C:A;var J=C.length,c=function(){J=0;H.onload=null;H.onerror=null;Y=function(){}},Y=function(){c();
var m=A.filter(function(W){return!kJ().getModuleInfo(W).isLoaded()});
m.length!==0?w(m,"Response was successful but was missing module(s) "+m+"."):S()},M=function(){J--;
J==0&&Y()};
C.forEach(function(m){m=kJ().getModuleInfo(m);m.isLoaded()?M():(eNP(m.earlyOnloadCallbacks_,M),uwW(m,M))});
H.onload=function(){return Y()};
H.onerror=function(){c();w(C)}};
oRP=function(H){H.requestedModuleListSorted_||(H.requestedModuleListSorted_=!0,H.requestedModuleList_.sort());return H.requestedModuleList_};
OLP=function(H){H=H.loadedCssModuleList_;H.sort();return H};
lRV=function(H,C){return C.filter(function(S){return!H.requestedModuleMap_[S]})};
VRb=function(H,C,S,w){if(H.pendingModuleGraphUpdate_)return H.pendingModuleGraphUpdate_.then(function(){VRb(H,C,S,w)}),!0;
if(!H.useNegativeLoading_){var A=[],J=Object.assign({},H.requestedModuleMap_);P97(H,C,function(W){A.push(W.getId())},w,function(W){return!W.isLoaded()},J);
C=A}for(J=0;J<C.length;){for(var c=C.length-J,Y=J==0?C:C.slice(J,C.length),M=XHn(H,Y,w),m=_.Qv(M).toString();m.length>H.urlMaxLength;)if(c>1)c-=Math.ceil((m.length-H.urlMaxLength)/6),c=Math.max(c,1),Y=C.slice(J,J+c),M=XHn(H,Y,w),m=_.Qv(M).toString();else return H.useNegativeLoading_?(H.useNegativeLoading_=!1,H.pendingModuleGraphUpdate_=$3Y(H).then(function(W){pHU(H,W,w)}),VRb(H,C.slice(J),S,w)):!1;
J+=c;H.useNegativeLoading_?S(M,Y):S(M,Y,J===C.length?C:[])}return!0};
pHU=function(H,C,S){kJ().setAllModuleInfoString((C||{}).moduleGraph);P97(H,oRP(H),function(w){_.we(H,[w.getId()])},S);
H.pendingModuleGraphUpdate_=null};
P97=function(H,C,S,w,A,J){J=J===void 0?{}:J;var c=kJ();C=_.Z(C);for(var Y=C.next();!Y.done;Y=C.next()){Y=Y.value;var M=c.getModuleInfo(Y);if(!(J[Y]||A&&!A(M))){J[Y]=!0;var m=M.deps_||[];if(w){var W=[];w[Y]&&(W=Object.keys(w[Y]));m=m.concat(W)}P97(H,m,S,w,A,J);S(M)}}};
$3Y=function(H){H=H.scsReferenceUrl_.clone();P5Y(H);kV(H,"dg",null);kV(H,"md","1");return yM1(H.toString())};var KR0=new Uint8Array(123);var koU=[];var hNP=function(){this.JSC$10067_loader_=null};
_.F=hNP.prototype;_.F.setBatchModeEnabled=function(){};
_.F.setAllModuleInfoString=function(){};
_.F.addExtraEdge=function(){throw Error("td");};
_.F.removeExtraEdge=function(){throw Error("ud");};
_.F.getModuleContext=function(){return null};
_.F.isActive=function(){return!1};
_.F.isUserActive=function(){return!1};
_.F.registerCallback=function(){};var Ji=function(H,C,S,w,A){var J=Error.call(this);this.message=J.message;"stack"in J&&(this.stack=J.stack);this.name="ModuleLoadFailure";this.type=H;this.status=C;this.requestedModuleIds=S;this.url=w;this.cause=A;this.message=this.toString()};
_.G(Ji,Error);Ji.prototype.toString=function(){return nRP(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var nRP=function(H){switch(H.type){case Ji.Type.UNAUTHORIZED:return"Unauthorized";case Ji.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case Ji.Type.TIMEOUT:return"Timed out";case Ji.Type.OLD_CODE_GONE:return"Out of date module id";case Ji.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+H.type}};
AC.ModuleLoadFailure=Ji;AC.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var FL=function(){this.moduleIds_=this.JSC$10067_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11075_extraEdges_={};this.JSC$11075_callbackMap_={};this.JSC$11075_currentlyLoadingModule_=this.baseModuleInfo_=new jv([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new Jy;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.Zh(FL,hNP);var rM1=function(H,C){_.CU.call(this,"Error loading "+H+": "+C)};
_.Zh(rM1,_.CU);FL.prototype.setBatchModeEnabled=function(H){this.batchModeEnabled_=H};
FL.prototype.setAllModuleInfoString=function(H,C){if(!(this instanceof FL))this.setAllModuleInfoString(H,C);else if(typeof H==="string"){if(H.startsWith("d$")){H=H.substring(2);for(var S=[],w=0,A=H.indexOf("/"),J=0,c=!1,Y=0;;){var M=c?H.substring(J):H.substring(J,A);if(M.length===0)w++,J="sy"+w.toString(36),M=[];else{var m=M.indexOf(":");if(m<0)J=M,M=[];else if(m===M.length-1)J=M.substring(0,m),M=Array(S[Y-1]);else{J=M.substring(0,m);M=M.substring(m+1).split(",");m=Y;for(var W=0;W<M.length;W++)m-=
M[W].length===0?1:Number(M[W]),M[W]=S[m]}m=0;if(J.length===0)m=1;else if(J.charAt(0)==="+"||J.charAt(0)==="-")m=Number(J);m!==0&&(w+=m,J="sy"+w.toString(36))}S.push(J);BV7(this,J,M);if(c)break;J=A+1;A=H.indexOf("/",J);A===-1&&(c=!0);Y++}this.moduleIds_=S}else if(H.startsWith("p$"))D31(this,H);else{H=H.split("/");S=[];for(w=0;w<H.length;w++){Y=H[w].split(":");A=Y[0];c=[];if(Y[1])for(c=Y[1].split(","),Y=0;Y<c.length;Y++)c[Y]=S[parseInt(c[Y],36)];S.push(A);BV7(this,A,c)}this.moduleIds_=S}C&&C.length?
(_.KU(this.loadingModuleIds_,C),this.lastInitialModuleId_=_.du(C)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11075_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11075_currentlyLoadingModule_=null,(C=this.baseModuleInfo_.onLoad((0,_.Xv)(this.getModuleContext,this)))&&C.length&&K7i(this,new AC.ModuleLoadFailure(AC.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,C[0])),ZJ(this))}};
var D31=function(H,C){var S=C.substring(2);for(C=0;C<64;C++)KR0["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(C)]=C;var w={buf:S,pos:0};Yf(w);var A=Yf(w),J=Yf(w)+1;C=Array(A);var c=Array(A),Y=Array(A);J=Array(J);var M=0,m=0,W=w.pos,y=w.buf.indexOf("|",w.pos);w.pos=y+1;for(y=0;y<A;y++){var N=Yf(w),b=N&2,u=N&1;N>>>=2;u?(M+=N>>>1^-(N&1),N="sy"+M.toString(36)):(u=W,W+=N,N=S.substring(u,W));C[y]=N;b&&(J[m++]=N)}J[m]="";w.pos++;m=A&-2;S=A&1;for(M=0;M<m;M+=2)W=tA0(w),Y[M]=
W&7,Y[M+1]=W>>>3&7;S&&(S=tA0(w),Y[m]=S&7);w.pos++;for(m=0;m<A;m++)Y[m]===7&&(Y[m]=Yf(w));w.pos++;for(S=m=0;S<A;S++){M=Y[S];W=M===0?koU:Array(M);c[S]=W;y=m;for(b=0;b<M;b++)y-=Yf(w),W[b]=J[y];J[m]===C[S]&&m++}for(w=0;w<C.length;w++)BV7(H,C[w],c[w]);H.moduleIds_=C};
_.F=FL.prototype;_.F.getModuleInfo=function(H){return this.moduleInfoMap[H]};
_.F.addExtraEdge=function(H,C){var S=this.getModuleInfo(H);S&&S.isLoaded()?this.load(C):(this.JSC$11075_extraEdges_[H]||(this.JSC$11075_extraEdges_[H]={}),this.JSC$11075_extraEdges_[H][C]=!0)};
_.F.removeExtraEdge=function(H,C){if(this.JSC$11075_extraEdges_[H]){delete this.JSC$11075_extraEdges_[H][C];for(var S in this.JSC$11075_extraEdges_[H])return;delete this.JSC$11075_extraEdges_[H]}};
_.F.isActive=function(){return this.loadingModuleIds_.length>0};
_.F.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var ZJ=function(H){var C=H.lastActive_,S=H.isActive();S!=C&&(H.executeCallbacks_(S?"active":"idle"),H.lastActive_=S);C=H.isUserActive();C!=H.userLastActive_&&(H.executeCallbacks_(C?"userActive":"userIdle"),H.userLastActive_=C)},BV7=function(H,C,S){H.moduleInfoMap[C]?(H=H.moduleInfoMap[C].deps_,H!=S&&H.splice.apply(H,[0,
H.length].concat(_.k$(S)))):H.moduleInfoMap[C]=new jv(S,C)},L7_=function(H,C,S){var w=[];
dD6(C,w);C=[];for(var A={},J=0;J<w.length;J++){var c=w[J],Y=H.getModuleInfo(c);if(!Y)throw Error("vd`"+c);var M=new Jy;A[c]=M;Y.isLoaded()?M.callback(null):(tRd(H,c,Y,!!S,M),H.isModuleLoading(c)||C.push(c))}C.length>0&&(H.loadingModuleIds_.length===0?H.loadModules_(C):(H.requestedModuleIdsQueue_.push(C),ZJ(H)));return A},tRd=function(H,C,S,w,A){S.registerCallback(A.callback,A);
uwW(S,function(J){A.errback(new rM1(C,J))});
H.isModuleLoading(C)?w&&(gRd(H,C),ZJ(H)):w&&gRd(H,C)};
FL.prototype.loadModules_=function(H,C,S){var w=this;C||(this.consecutiveFailures_=0);var A=U3P(this,H);this.loadingModuleIds_=A;this.requestedLoadingModuleIds_=this.batchModeEnabled_?H:_.BZ(A);ZJ(this);if(A.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,A);H=this.JSC$10067_loader_;if(!H)throw Error("wd");if(Object.keys(this.JSC$11075_extraEdges_).length>0&&!H.supportsExtraEdges)throw Error("xd");S=(0,_.Xv)(H.JSC$11062_loadModules,H,_.BZ(A),this.moduleInfoMap,{extraEdges:this.JSC$11075_extraEdges_,
forceReload:!!S,onError:function(J,c){var Y=w.requestedLoadingModuleIds_;J=J!=null?J:void 0;w.consecutiveFailures_++;var M=_.BZ(A);w.requestedLoadingModuleIds_=Y;A.forEach(_.l9(_.ru,w.requestedModuleIds_),w);J==401?(K7i(w,new AC.ModuleLoadFailure(AC.ModuleLoadFailure.Type.UNAUTHORIZED,J)),w.requestedModuleIdsQueue_.length=0):J==410?(RNd(w,new AC.ModuleLoadFailure(AC.ModuleLoadFailure.Type.OLD_CODE_GONE,J)),IR1(w)):w.consecutiveFailures_>=3?(RNd(w,new AC.ModuleLoadFailure(AC.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
J,M,c)),IR1(w)):w.loadModules_(w.requestedLoadingModuleIds_,!0,J==8001||!1)},
onTimeout:(0,_.Xv)(this.handleLoadTimeout_,this)});(H=Math.pow(this.consecutiveFailures_,2)*5E3)?_.s$.setTimeout(S,H):S()}};
var U3P=function(H,C){C=C.filter(function(A){return H.moduleInfoMap[A].isLoaded()?(_.s$.setTimeout(function(){return Error("yd`"+A)},0),!1):!0});
for(var S=[],w=0;w<C.length;w++)S=S.concat(aR1(H,C[w]));dD6(S);return!H.batchModeEnabled_&&S.length>1?(C=S.shift(),H.requestedModuleIdsQueue_=S.map(function(A){return[A]}).concat(H.requestedModuleIdsQueue_),[C]):S},aR1=function(H,C){var S=_.hb.createSet(H.requestedModuleIds_),w=[];
S[C]||w.push(C);C=[C];for(var A=0;A<C.length;A++)for(var J=H.getModuleInfo(C[A]).deps_,c=J.length-1;c>=0;c--){var Y=J[c];H.getModuleInfo(Y).isLoaded()||S[Y]||(w.push(Y),C.push(Y))}w.reverse();dD6(w);return w};
FL.prototype.JSC$11070_setLoaded=function(){if(this.JSC$11075_currentlyLoadingModule_){var H=this.JSC$11075_currentlyLoadingModule_.getId(),C=[];if(this.JSC$11075_extraEdges_[H]){for(var S=_.Z(Object.keys(this.JSC$11075_extraEdges_[H])),w=S.next();!w.done;w=S.next()){w=w.value;var A=this.getModuleInfo(w);A&&!A.isLoaded()&&(this.removeExtraEdge(H,w),C.push(w))}this.loadMultiple(C)}this.isDisposed()||((C=this.moduleInfoMap[H].onLoad((0,_.Xv)(this.getModuleContext,this)))&&C.length&&K7i(this,new AC.ModuleLoadFailure(AC.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,C[0])),_.ru(this.userInitiatedLoadingModuleIds_,H),_.ru(this.loadingModuleIds_,H),this.loadingModuleIds_.length===0&&IR1(this),this.lastInitialModuleId_&&H==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),ZJ(this),this.JSC$11075_currentlyLoadingModule_=null)}};
FL.prototype.isModuleLoading=function(H){if(_.nU(this.loadingModuleIds_,H))return!0;for(var C=0;C<this.requestedModuleIdsQueue_.length;C++)if(_.nU(this.requestedModuleIdsQueue_[C],H))return!0;return!1};
FL.prototype.load=function(H,C){return L7_(this,[H],C)[H]};
FL.prototype.loadMultiple=function(H){return L7_(this,H)};
var gRd=function(H,C){_.nU(H.userInitiatedLoadingModuleIds_,C)||H.userInitiatedLoadingModuleIds_.push(C)};
FL.prototype.beforeLoadModuleCode=function(H){var C=this;this.JSC$11075_currentlyLoadingModule_&&this.JSC$11075_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11070_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[H]&&x3d(this,this.moduleInfoMap[H].deps_||[],function(S){S.module_=new sS;_.ru(C.loadingModuleIds_,S.getId())},function(S){return!S.isLoaded()});
this.JSC$11075_currentlyLoadingModule_=this.getModuleInfo(H)};
FL.prototype.handleLoadTimeout_=function(){RNd(this,new AC.ModuleLoadFailure(AC.ModuleLoadFailure.Type.TIMEOUT));IR1(this)};
var RNd=function(H,C){H.requestedLoadingModuleIds_.length>1?H.requestedModuleIdsQueue_=H.requestedLoadingModuleIds_.map(function(S){return[S]}).concat(H.requestedModuleIdsQueue_):K7i(H,C)},K7i=function(H,C){var S=H.requestedLoadingModuleIds_;
H.loadingModuleIds_.length=0;for(var w=[],A=0;A<H.requestedModuleIdsQueue_.length;A++){var J=H.requestedModuleIdsQueue_[A].filter(function(M){var m=aR1(this,M);return CC(S,function(W){return _.nU(m,W)})},H);
_.KU(w,J)}for(A=0;A<S.length;A++)_.oEV(w,S[A]);for(A=0;A<w.length;A++){for(J=0;J<H.requestedModuleIdsQueue_.length;J++)_.ru(H.requestedModuleIdsQueue_[J],w[A]);_.ru(H.userInitiatedLoadingModuleIds_,w[A])}if(A=H.JSC$11075_callbackMap_.error)for(J=0;J<A.length;J++)for(var c=A[J],Y=0;Y<w.length;Y++)c("error",w[Y],C);for(w=0;w<S.length;w++)if(H.moduleInfoMap[S[w]])H.moduleInfoMap[S[w]].onError(C);H.requestedLoadingModuleIds_.length=0;ZJ(H)},IR1=function(H){for(;H.requestedModuleIdsQueue_.length;){var C=
H.requestedModuleIdsQueue_.shift().filter(function(S){return!this.getModuleInfo(S).isLoaded()},H);
if(C.length>0){H.loadModules_(C);return}}ZJ(H)};
FL.prototype.registerCallback=function(H,C){Array.isArray(H)||(H=[H]);for(var S=0;S<H.length;S++){var w=H[S],A=C,J=this.JSC$11075_callbackMap_;J[w]||(J[w]=[]);J[w].push(A)}};
FL.prototype.executeCallbacks_=function(H){for(var C=this.JSC$11075_callbackMap_[H],S=0;C&&S<C.length;S++)C[S](H)};
var x3d=function(H,C,S,w,A){w=w===void 0?function(){return!0}:w;
A=A===void 0?{}:A;C=_.Z(C);for(var J=C.next();!J.done;J=C.next()){J=J.value;var c=H.getModuleInfo(J);!A[J]&&w(c)&&(A[J]=!0,x3d(H,c.deps_||[],S,w,A),S(c))}};
FL.prototype.dispose=function(){_.Jk(_.hb.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11075_callbackMap_={};this.isDisposed_=!0};
FL.prototype.isDisposed=function(){return this.isDisposed_};
_.p6=function(){return new FL};var H8U=[5E3,2E4],i87=function(){this.JSC$10067_loader_=null;this.JSC$11083_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11083_queue_=[];this.JSC$11083_extraEdges_=Object.create(null);this.JSC$11083_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.G(i87,hNP);_.F=i87.prototype;_.F.setAllModuleInfoString=function(){this.JSC$11083_currentlyLoadingModule_&&this.JSC$11083_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11070_setLoaded()};
_.F.getModuleInfo=function(H){var C=this.JSC$11083_moduleInfoMap_[H];C||(C=new jv([],H),this.JSC$11083_moduleInfoMap_[H]=C);return C};
_.F.addExtraEdge=function(H,C){this.getModuleInfo(H).isLoaded()?this.load(C):(this.JSC$11083_extraEdges_[H]||(this.JSC$11083_extraEdges_[H]={}),this.JSC$11083_extraEdges_[H][C]=!0)};
_.F.removeExtraEdge=function(H,C){if(this.JSC$11083_extraEdges_[H]){delete this.JSC$11083_extraEdges_[H][C];for(var S in this.JSC$11083_extraEdges_[H])return;delete this.JSC$11083_extraEdges_[H]}};
_.F.isModuleLoading=function(H){return!!this.loadingModules_[H]};
_.F.load=function(H){Ca7(this,[H]);return SaW(this,H)};
_.F.loadMultiple=function(H){var C=this,S=Object.create(null),w=[];H.forEach(function(A){S[A]||(S[A]=SaW(C,A),w.push(A))});
Ca7(this,w);return S};
_.F.beforeLoadModuleCode=function(H){var C;((C=this.JSC$11083_currentlyLoadingModule_)==null?void 0:C.getId())==="synthetic_module_overhead"&&this.JSC$11070_setLoaded();var S,w;suV(this,(w=(S=this.JSC$11083_moduleInfoMap_[H])==null?void 0:S.deps_)!=null?w:[],function(A){A.module_=new sS},function(A){return!A.isLoaded()});
this.JSC$11083_currentlyLoadingModule_=this.getModuleInfo(H)};
_.F.JSC$11070_setLoaded=function(){if(this.JSC$11083_currentlyLoadingModule_){var H=this.JSC$11083_currentlyLoadingModule_.getId(),C=[];if(this.JSC$11083_extraEdges_[H]){for(var S=_.Z(Object.keys(this.JSC$11083_extraEdges_[H])),w=S.next();!w.done;w=S.next())w=w.value,this.getModuleInfo(w).isLoaded()||(this.removeExtraEdge(H,w),C.push(w));this.loadMultiple(C)}this.JSC$11083_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11083_currentlyLoadingModule_=null;(!this.isModuleLoading(H)&&/^sy[0-9a-z]{0,4}$/.test(H)||H==="synthetic_module_overhead")&&delete this.JSC$11083_moduleInfoMap_[H];this.unsetModulesAsLoading(H)}};
_.F.setModulesAsLoading=function(){var H=this;_.tc.apply(0,arguments).forEach(function(C){H.loadingModules_[C]=!0})};
_.F.unsetModulesAsLoading=function(){var H=this;_.tc.apply(0,arguments).forEach(function(C){delete H.loadingModules_[C]})};
var SaW=function(H,C){return new _.Es(function(S,w){var A=H.getModuleInfo(C);A.isLoaded()?S(null):(A.registerCallback(function(){S(null)}),uwW(A,function(J){var c="Error loading "+C+": "+J;
J instanceof AC.ModuleLoadFailure&&J.url&&(c=c+", requested url: "+J.url.toString());w(Error(c))}))})},Ca7=function(H,C){C=C.filter(function(S){return!H.isModuleLoading(S)&&!H.getModuleInfo(S).isLoaded()});
C.length>0&&(H.setModulesAsLoading.apply(H,_.k$(C)),H.JSC$11083_queue_.push(C),ju1(H))},ju1=function(H){for(var C={};H.activeLoads_<Infinity&&H.JSC$11083_queue_.length>0;C={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})C.ids$jscomp$36=H.JSC$11083_queue_.shift().filter(function(S){return!H.getModuleInfo(S).isLoaded()}),C.ids$jscomp$36.length>0&&(H.activeLoads_++,C.finishLoad=function(S){return function(){H.activeLoads_--;
ju1(H);S.finishLoad=function(){}}}(C),_.nh(C.ids$jscomp$36.map(function(S){return SaW(H,S)})).then(function(S){return function(){(0,S.finishLoad)()}}(C)),C.attempt$jscomp$6=0,C.load$jscomp$1=function(S){return function(){if(Object.keys(H.JSC$11083_extraEdges_).length>0&&!H.JSC$10067_loader_.supportsExtraEdges)throw Error("xd");
H.JSC$10067_loader_.JSC$11062_loadModules(S.ids$jscomp$36,H.JSC$11083_moduleInfoMap_,{extraEdges:H.JSC$11083_extraEdges_,onError:function(w,A){var J=H8U[S.attempt$jscomp$6++];J!==void 0?setTimeout(function(){(0,S.load$jscomp$1)()},J):(H.unsetModulesAsLoading.apply(H,_.k$(S.ids$jscomp$36)),(0,S.finishLoad)(),S.ids$jscomp$36.forEach(function(c){c=H.getModuleInfo(c);
if(!c.isLoaded())c.onError(new AC.ModuleLoadFailure(AC.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,w,S.ids$jscomp$36,A))}))}})}}(C),(0,C.load$jscomp$1)())},suV=function(H,C,S,w,A){w=w===void 0?function(){return!0}:w;
A=A===void 0?{}:A;C=_.Z(C);for(var J=C.next();!J.done;J=C.next()){J=J.value;var c=H.getModuleInfo(J);!A[J]&&w(c)&&(A[J]=!0,suV(H,c.deps_||[],S,w,A),S(c))}};var wF7=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var RM6=Symbol("Ad");window.JSCompiler_renameProperty=function(H){return H};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var Af1=!wF7||HTMLElement.es5Shimmed||_.s$.Reflect===void 0||_.s$.customElements===void 0||_.s$.customElements.polyfillWrapFlushCallback||!1,Jfd,lHW=function(){var H=HTMLElement;if(Af1)return H;if(Jfd!==void 0)return Jfd;var C=_.s$.Reflect,S=function(){return C.construct(H,[],this.constructor)};
S.prototype=H.prototype;S.prototype.constructor=S;S.es5Shimmed=!0;Object.setPrototypeOf(S,H);return Jfd=S},FFi=!1;Af1||FFi||(FFi=!0,_.s$.HTMLElement=lHW());/*

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 idU=/(url\()([^)]*)(\))/g,xNU=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Hdi,M_;var UW=!window.ShadyDOM||!window.ShadyDOM.inUse,Z81=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),cfV=!window.customElements.polyfillWrapFlushCallback,Ya7;if(Ya7=UW&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var zD7=new CSSStyleSheet;zD7.replaceSync("");var MpV=document.createElement("div");MpV.attachShadow({mode:"open"});MpV.shadowRoot.adoptedStyleSheets=[zD7];Ya7=MpV.shadowRoot.adoptedStyleSheets[0]===zD7}catch(H){Ya7=!1}
var qa7=Ya7,TBY=window.Polymer&&window.Polymer.rootPath||S6Z(document.baseURI||window.location.href),ly=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,cCE=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,xf=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,mdn=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,gd=window.Polymer&&window.Polymer.legacyOptimizations||!1,aq=window.Polymer&&window.Polymer.legacyWarnings||!1,WF1=window.Polymer&&window.Polymer.syncInitialRender||
!1,oq=window.Polymer&&window.Polymer.legacyUndefined||!1,yfP=window.Polymer&&window.Polymer.orderedComputed||!1,cW=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Yg=window.Polymer&&window.Polymer.fastDomIf||!1,zT=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,NBd=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,b8d=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var MZ={},E6_={},Xy=function(){return HTMLElement.apply(this,arguments)||this};
_.G(Xy,HTMLElement);Xy.import=function(H,C){return H?(H=MZ[H]||E6_[H.toLowerCase()])&&C?H.querySelector(C):H:null};
Xy.prototype.attributeChangedCallback=function(H,C,S){C!==S&&this.register()};
Xy.prototype.register=function(H){if(H=H||this.id){if(xf&&(MZ[H]||E6_[H.toLowerCase()])!==void 0)throw MZ[H]=E6_[H.toLowerCase()]=null,Error("Bd`"+H);this.id=H;MZ[H]=E6_[H.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.JJ.Object.defineProperties(Xy.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var H=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;H=_.q_(this.getAttribute("assetpath")||"",H.baseURI);this.__assetpath=S6Z(H)}return this.__assetpath}}});
_.JJ.Object.defineProperties(Xy,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
Xy["import"]=Xy.import;Xy.prototype.modules=MZ;customElements.define("dom-module",Xy);var eDd=0,jhp=0,Tq=[],u_P=0,shZ=!1,Gnn=document.createTextNode(""),fy7,tP;(new window.MutationObserver(wfE)).observe(Gnn,{characterData:!0});_.qZ={after:function(H){return{run:function(C){return window.setTimeout(C,H)},
cancel:function(C){window.clearTimeout(C)}}},
run:function(H,C){return window.setTimeout(H,C)},
cancel:function(H){window.clearTimeout(H)}};
_.p7={run:function(H){return window.requestAnimationFrame(H)},
cancel:function(H){window.cancelAnimationFrame(H)}};
fy7={run:function(H){return window.requestIdleCallback?window.requestIdleCallback(H):window.setTimeout(H,16)},
cancel:function(H){window.cancelIdleCallback?window.cancelIdleCallback(H):window.clearTimeout(H)}};
tP={run:function(H){shZ||(shZ=!0,Gnn.textContent=u_P++);Tq.push(H);return eDd++},
cancel:function(H){var C=H-jhp;if(C>=0){if(!Tq[C])throw Error("Cd`"+H);Tq[C]=null}}};var v61=0,TT=function(H){var C=H.__mixinApplications;C||(C=new WeakMap,H.__mixinApplications=C);var S=v61++;return function(w){var A=w.__mixinSet;if(A&&A[S])return w;var J=C,c=J.get(w);c||(c=H(w),J.set(w,c),w=Object.create(c.__mixinSet||A||null),w[S]=!0,c.__mixinSet=w);return c}};_.v5=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(H){return ShadyDOM.patch(H)}:function(H){return H};var lyM=TT(function(H){var C=function(){var S=H.call(this)||this;S.__dataEnabled=!1;S.__dataReady=!1;S.__dataInvalid=!1;S.__data={};S.__dataPending=null;S.__dataOld=null;S.__dataInstanceProps=null;S.__dataCounter=0;S.__serializing=!1;S._initializeProperties();return S};
_.G(C,H);C.createProperties=function(S){var w=this.prototype,A;for(A in S)A in w||w._createPropertyAccessor(A)};
C.attributeNameForProperty=function(S){return S.toLowerCase()};
C.typeForProperty=function(){};
C.prototype._createPropertyAccessor=function(S,w){this._addPropertyToAttributeMap(S);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[S]||(this.__dataHasAccessor[S]=!0,this._definePropertyAccessor(S,w))};
C.prototype._addPropertyToAttributeMap=function(S){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var w=this.__dataAttributes[S];w||(w=this.constructor.attributeNameForProperty(S),this.__dataAttributes[w]=S);return w};
C.prototype._definePropertyAccessor=function(S,w){Object.defineProperty(this,S,{get:function(){return this.__data[S]},
set:w?function(){}:function(A){this._setPendingProperty(S,A,!0)&&this._invalidateProperties()}})};
C.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
C.prototype._initializeProperties=function(){for(var S in this.__dataHasAccessor)this.hasOwnProperty(S)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[S]=this[S],delete this[S])};
C.prototype._initializeInstanceProperties=function(S){Object.assign(this,S)};
C.prototype._setProperty=function(S,w){this._setPendingProperty(S,w)&&this._invalidateProperties()};
C.prototype._getProperty=function(S){return this.__data[S]};
C.prototype._setPendingProperty=function(S,w){var A=this.__data[S],J=this._shouldPropertyChange(S,w,A);J&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||S in this.__dataOld||(this.__dataOld[S]=A),this.__data[S]=w,this.__dataPending[S]=w);return J};
C.prototype._isPropertyPending=function(S){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(S))};
C.prototype._invalidateProperties=function(){var S=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,tP.run(function(){S.__dataInvalid&&(S.__dataInvalid=!1,S._flushProperties())}))};
C.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
C.prototype._flushProperties=function(){this.__dataCounter++;var S=this.__data,w=this.__dataPending,A=this.__dataOld;this._shouldPropertiesChange(S,w,A)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(S,w,A));this.__dataCounter--};
C.prototype._shouldPropertiesChange=function(S,w){return!!w};
C.prototype._propertiesChanged=function(){};
C.prototype._shouldPropertyChange=function(S,w,A){return A!==w&&(A===A||w===w)};
C.prototype.attributeChangedCallback=function(S,w,A,J){w!==A&&this._attributeToProperty(S,A);H.prototype.attributeChangedCallback&&H.prototype.attributeChangedCallback.call(this,S,w,A,J)};
C.prototype._attributeToProperty=function(S,w,A){if(!this.__serializing){var J=this.__dataAttributes;S=J&&J[S]||S;this[S]=this._deserializeValue(w,A||this.constructor.typeForProperty(S))}};
C.prototype._propertyToAttribute=function(S,w,A){this.__serializing=!0;A=arguments.length<3?this[S]:A;this._valueToNodeAttribute(this,A,w||this.constructor.attributeNameForProperty(S));this.__serializing=!1};
C.prototype._valueToNodeAttribute=function(S,w,A){w=this._serializeValue(w);if(A==="class"||A==="name"||A==="slot")S=(0,_.v5)(S);w===void 0?S.removeAttribute(A):S.setAttribute(A,w===""&&window.trustedTypes?window.trustedTypes.emptyScript:w)};
C.prototype._serializeValue=function(S){switch(typeof S){case "boolean":return S?"":void 0;default:return S!=null?S.toString():void 0}};
C.prototype._deserializeValue=function(S,w){switch(w){case Boolean:return S!==null;case Number:return Number(S);default:return S}};
return C});var VpV=0,AN0=[];var o6n=TT(function(H){function C(J){J=Object.getPrototypeOf(J);return J.prototype instanceof A?J:null}
function S(J){if(!J.hasOwnProperty("__ownProperties")){var c=null;if(J.hasOwnProperty("properties")){var Y=J.properties;if(Y){c={};for(var M in Y){var m=Y[M];c[M]=typeof m==="function"?{type:m}:m}}}J.__ownProperties=c}return J.__ownProperties}
var w=lyM(H),A=function(){return w.apply(this,arguments)||this};
_.G(A,w);A.finalize=function(){if(!this.hasOwnProperty("__finalized")){var J=C(this);J&&J.finalize();this.__finalized=!0;this._finalizeClass()}};
A._finalizeClass=function(){var J=S(this);J&&this.createProperties(J)};
A.typeForProperty=function(J){return(J=this._properties[J])&&J.type};
A.prototype._initializeProperties=function(){VpV++;this.constructor.finalize();w.prototype._initializeProperties.call(this)};
A.prototype.connectedCallback=function(){w.prototype.connectedCallback&&w.prototype.connectedCallback.call(this);this._enableProperties()};
A.prototype.disconnectedCallback=function(){w.prototype.disconnectedCallback&&w.prototype.disconnectedCallback.call(this)};
_.JJ.Object.defineProperties(A,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var J=this;if(!this.hasOwnProperty("__observedAttributes")){JNi(this.prototype);var c=this._properties;this.__observedAttributes=c?Object.keys(c).map(function(Y){return J.prototype._addPropertyToAttributeMap(Y)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var J=C(this);this.__properties=Object.assign({},J&&J._properties,S(this))}return this.__properties}}});
return A});var Fxw={},Zdu=/-[a-z]/g,cN6=/([A-Z])/g;for(var O8W={},XFP=HTMLElement.prototype;XFP;){for(var Qub=Object.getOwnPropertyNames(XFP),dd1=0;dd1<Qub.length;dd1++)O8W[Qub[dd1]]=!0;XFP=Object.getPrototypeOf(XFP)}var PaY=window.trustedTypes?function(H){return trustedTypes.isHTML(H)||trustedTypes.isScript(H)||trustedTypes.isScriptURL(H)}:function(){return!1},$dM=TT(function(H){var C=lyM(H);
H=function(){return C.apply(this,arguments)||this};
_.G(H,C);H.createPropertiesForAttributes=function(){for(var S=this.observedAttributes,w=0;w<S.length;w++)this.prototype._createPropertyAccessor(mr(S[w]))};
H.attributeNameForProperty=function(S){return W5(S)};
H.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);C.prototype._initializeProperties.call(this)};
H.prototype._initializeProtoProperties=function(S){for(var w in S)this._setProperty(w,S[w])};
H.prototype._ensureAttribute=function(S,w){this.hasAttribute(S)||this._valueToNodeAttribute(this,w,S)};
H.prototype._serializeValue=function(S){switch(typeof S){case "object":if(S instanceof Date)return S.toString();if(S){if(PaY(S))return S;try{return JSON.stringify(S)}catch(w){return""}}default:return C.prototype._serializeValue.call(this,S)}};
H.prototype._deserializeValue=function(S,w){switch(w){case Object:try{var A=JSON.parse(S)}catch(J){A=S}break;case Array:try{A=JSON.parse(S)}catch(J){A=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+S)}break;case Date:A=isNaN(S)?String(S):Number(S);A=new Date(A);break;default:A=C.prototype._deserializeValue.call(this,S,w)}return A};
H.prototype._definePropertyAccessor=function(S,w){if(!O8W[S]){var A=this[S];A!==void 0&&(this.__data?this._setPendingProperty(S,A):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[S]=A))}C.prototype._definePropertyAccessor.call(this,S,w)};
H.prototype._hasAccessor=function(S){return this.__dataHasAccessor&&this.__dataHasAccessor[S]};
H.prototype._isPropertyPending=function(S){return!!(this.__dataPending&&S in this.__dataPending)};
return H});var pF_={"dom-if":!0,"dom-repeat":!0},knU=!1,hD1=!1,n6d=function(){var H=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(C){return C}});
return function(C,S,w){S=S.getAttribute(w);H&&w.startsWith("on-")?C.setAttribute(w,H.createScript(S,w)):C.setAttribute(w,S)}}(),rfY=TT(function(H){var C=function(){return H.apply(this,arguments)||this};
_.G(C,H);C._parseTemplate=function(S,w){if(!S._templateInfo){var A=S._templateInfo={};A.nodeInfoList=[];A.nestedTemplate=!!w;A.stripWhiteSpace=w&&w.stripWhiteSpace||S.hasAttribute&&S.hasAttribute("strip-whitespace");this._parseTemplateContent(S,A,{parent:null})}return S._templateInfo};
C._parseTemplateContent=function(S,w,A){return this._parseTemplateNode(S.content,w,A)};
C._parseTemplateNode=function(S,w,A){var J=!1;S.localName!="template"||S.hasAttribute("preserve-content")?S.localName==="slot"&&(w.hasInsertionPoint=!0):J=this._parseTemplateNestedTemplate(S,w,A)||J;if(!knU){knU=!0;var c=document.createElement("textarea");c.placeholder="a";hD1=c.placeholder===c.textContent}hD1&&S.localName==="textarea"&&S.placeholder&&S.placeholder===S.textContent&&(S.textContent=null);S.firstChild&&this._parseTemplateChildNodes(S,w,A);S.hasAttributes&&S.hasAttributes()&&(J=this._parseTemplateNodeAttributes(S,
w,A)||J);return J||A.noted};
C._parseTemplateChildNodes=function(S,w,A){if(S.localName!=="script"&&S.localName!=="style")for(var J=S.firstChild,c=0,Y;J;J=Y){if(J.localName=="template"){var M=J.getAttribute("is");if(M&&pF_[M])for(Y=J,Y.removeAttribute("is"),J=Y.ownerDocument.createElement(M),Y.parentNode.replaceChild(J,Y),J.appendChild(Y);Y.attributes.length;)M=Y.attributes[0].name,n6d(J,Y,M),Y.removeAttribute(M)}Y=J.nextSibling;if(J.nodeType===Node.TEXT_NODE){for(M=Y;M&&M.nodeType===Node.TEXT_NODE;)J.textContent+=M.textContent,
Y=M.nextSibling,S.removeChild(M),M=Y;if(w.stripWhiteSpace&&!J.textContent.trim()){S.removeChild(J);continue}}M={parentIndex:c,parentInfo:A};this._parseTemplateNode(J,w,M)&&(M.infoIndex=w.nodeInfoList.push(M)-1);J.parentNode&&c++}};
C._parseTemplateNestedTemplate=function(S,w,A){w=this._parseTemplate(S,w);(w.content=S.content.ownerDocument.createDocumentFragment()).appendChild(S.content);A.templateInfo=w;return!0};
C._parseTemplateNodeAttributes=function(S,w,A){for(var J=!1,c=Array.from(S.attributes),Y=c.length-1,M;M=c[Y];Y--)J=this._parseTemplateNodeAttribute(S,w,A,M.name,M.value)||J;return J};
C._parseTemplateNodeAttribute=function(S,w,A,J,c){return J.slice(0,3)==="on-"?(S.removeAttribute(J),A.events=A.events||[],A.events.push({name:J.slice(3),value:c}),!0):J==="id"?(A.id=c,!0):!1};
C._contentForTemplate=function(S){var w=S._templateInfo;return w&&w.content||S.content};
C.prototype._stampTemplate=function(S,w){S&&!S.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(S);w=w||this.constructor._parseTemplate(S);var A=w.nodeInfoList;S=document.importNode(w.content||S.content,!0);S.__noInsertionPoint=!w.hasInsertionPoint;var J=S.nodeList=Array(A.length);S.$={};for(var c=0,Y=A.length,M=void 0;c<Y&&(M=A[c]);c++){var m=J[c]=Y6E(S,M);M.id&&(S.$[M.id]=m);var W=m,y=M,N=w;y.templateInfo&&(W._templateInfo=y.templateInfo,W._parentTemplateInfo=
N);if(M.events&&M.events.length)for(W=0,y=M.events,N=void 0;W<y.length&&(N=y[W]);W++)this._addMethodEventListenerToNode(m,N.name,N.value,this)}return S};
C.prototype._addMethodEventListenerToNode=function(S,w,A,J){A=z8E(J||S,A);this._addEventListenerToNode(S,w,A);return A};
C.prototype._addEventListenerToNode=function(S,w,A){S.addEventListener(w,A)};
C.prototype._removeEventListenerFromNode=function(S,w,A){S.removeEventListener(w,A)};
return C});var Gq=0,VF=[],BBP={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Dd1=/[A-Z]/,KFU=function(H,C,S,w,A){var J=A?N_(H):H;if(C=C[J])for(J=0;J<C.length;J++){var c=C[J];if(c.info.lastRun!==Gq&&(!A||yNZ(H,c.trigger))){c.info.lastRun=Gq;c=c.info;for(var Y=S,M=w,m=0,W=Y.length-1,y=-1;m<=W;){var N=m+W>>1,b=M.get(Y[N].methodInfo)-M.get(c.methodInfo);if(b<0)m=N+1;else if(b>0)W=N-1;else{y=N;break}}y<
0&&(y=W+1);Y.splice(y,0,c)}}},dIi=[],tpd=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"),WW=TT(function(H){var C=rfY($dM(H));
H=function(){var S=C.call(this)||this;S.__isPropertyEffectsClient=!0;return S};
_.G(H,C);H.prototype._initializeProperties=function(){C.prototype._initializeProperties.call(this);this._registerHost();this.__dataClientsReady=!1;this.__dataLinkedPaths=this.__dataToNotify=this.__dataPendingClients=null;this.__dataHasPaths=!1;this.__dataCompoundStorage=this.__dataCompoundStorage||null;this.__dataHost=this.__dataHost||null;this.__dataTemp={};this.__dataClientsInitialized=!1};
H.prototype._registerHost=function(){if(m9.length){var S=m9[m9.length-1];S._enqueueClient(this);this.__dataHost=S}};
H.prototype._initializeProtoProperties=function(S){this.__data=Object.create(S);this.__dataPending=Object.create(S);this.__dataOld={}};
H.prototype._initializeInstanceProperties=function(S){var w=this.__readOnly,A;for(A in S)w&&w[A]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[A]=this.__dataPending[A]=S[A])};
H.prototype._addPropertyEffect=function(S,w,A){this._createPropertyAccessor(S,w=="__readOnly");var J=WxW(this,w,!0)[S];J||(J=this[w][S]=[]);J.push(A)};
H.prototype._removePropertyEffect=function(S,w,A){S=WxW(this,w,!0)[S];A=S.indexOf(A);A>=0&&S.splice(A,1)};
H.prototype._hasPropertyEffect=function(S,w){w=this[w];return!(!w||!w[S])};
H.prototype._hasReadOnlyEffect=function(S){return this._hasPropertyEffect(S,"__readOnly")};
H.prototype._hasNotifyEffect=function(S){return this._hasPropertyEffect(S,"__notifyEffects")};
H.prototype._hasReflectEffect=function(S){return this._hasPropertyEffect(S,"__reflectEffects")};
H.prototype._hasComputedEffect=function(S){return this._hasPropertyEffect(S,"__computeEffects")};
H.prototype._setPendingPropertyOrPath=function(S,w,A,J){if(J||N_(Array.isArray(S)?S[0]:S)!==S){if(!J&&(J=uy(this,S),S=mI6(this,S,w),!S||!C.prototype._shouldPropertyChange.call(this,S,w,J)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(S,w,A)){if(A=this.__dataLinkedPaths)for(var c in A)J=A[c],by(c,S)?(J=EW(c,J,S),this._setPendingPropertyOrPath(J,w,!0,!0)):by(J,S)&&(J=EW(J,c,S),this._setPendingPropertyOrPath(J,w,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[S])return this._setPendingProperty(S,
w,A);this[S]=w}return!1};
H.prototype._setUnmanagedPropertyToNode=function(S,w,A){if(A!==S[w]||typeof A=="object")w==="className"&&(S=(0,_.v5)(S)),S[w]=A};
H.prototype._setPendingProperty=function(S,w,A){var J=this.__dataHasPaths&&yF(S);if(this._shouldPropertyChange(S,w,(J?this.__dataTemp:this.__data)[S])){this.__dataPending||(this.__dataPending={},this.__dataOld={});S in this.__dataOld||(this.__dataOld[S]=this.__data[S]);J?this.__dataTemp[S]=w:this.__data[S]=w;this.__dataPending[S]=w;if(J||this.__notifyEffects&&this.__notifyEffects[S])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[S]=A;return!0}return!1};
H.prototype._setProperty=function(S,w){this._setPendingProperty(S,w,!0)&&this._invalidateProperties()};
H.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
H.prototype._enqueueClient=function(S){this.__dataPendingClients=this.__dataPendingClients||[];S!==this&&this.__dataPendingClients.push(S)};
H.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
H.prototype.__enableOrFlushClients=function(){var S=this.__dataPendingClients;if(S){this.__dataPendingClients=null;for(var w=0;w<S.length;w++){var A=S[w];A.__dataEnabled?A.__dataPending&&A._flushProperties():A._enableProperties()}}};
H.prototype._readyClients=function(){this.__enableOrFlushClients()};
H.prototype.setProperties=function(S,w){for(var A in S)!w&&this.__readOnly&&this.__readOnly[A]||this._setPendingPropertyOrPath(A,S[A],!0);this._invalidateProperties()};
H.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
H.prototype._propertiesChanged=function(S,w,A){S=this.__dataHasPaths;this.__dataHasPaths=!1;var J;if(J=this.__computeEffects)if(yfP){Gq++;var c=GXZ(this),Y=[],M;for(M in w)KFU(M,J,Y,c,S);for(;M=Y.shift();)vCE(this,"",w,A,M)&&KFU(M.methodInfo,J,Y,c,S);Object.assign(A,this.__dataOld);Object.assign(w,this.__dataPending);this.__dataPending=null}else for(c=w;fm(this,J,c,A,S);)Object.assign(A,this.__dataOld),Object.assign(w,this.__dataPending),c=this.__dataPending,this.__dataPending=null;J=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(w,A,S);this._flushClients();fm(this,this.__reflectEffects,w,A,S);fm(this,this.__observeEffects,w,A,S);if(J){c=this.__notifyEffects;Y=Gq++;for(var m in J)if(J[m]){if(M=c){var W=c;M=Y;var y=m,N=w,b=A,u=S,O=!1,d=u?N_(y):y;if(W=W[d]){d=0;for(var p=W.length,k=void 0;d<p&&(k=W[d]);d++)k.info&&k.info.lastRun===M||u&&!yNZ(y,k.trigger)||(k.info&&(k.info.lastRun=M),k.fn(this,y,N,b,k.info,u,void 0),O=!0)}M=O}if(M)var R=!0;else{if(M=S)M=m,y=w,N=N_(M),N!==
M?(N=W5(N)+"-changed",bd7(this,N,y[M],M),M=!0):M=!1;M&&(R=!0)}}var L;R&&(L=this.__dataHost)&&L._invalidateProperties&&L._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
H.prototype._propagatePropertyChanges=function(S,w,A){this.__propagateEffects&&fm(this,this.__propagateEffects,S,w,A);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,S,w,A)};
H.prototype._runEffectsForTemplate=function(S,w,A,J){var c=this,Y=function(M,m){fm(c,S.propertyEffects,M,A,m,S.nodeList);for(var W=S.firstChild;W;W=W.nextSibling)c._runEffectsForTemplate(W,M,A,m)};
S.runEffects?S.runEffects(Y,w,J):Y(w,J)};
H.prototype.linkPaths=function(S,w){S=ea(S);w=ea(w);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[S]=w};
H.prototype.unlinkPaths=function(S){S=ea(S);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[S]};
H.prototype.notifySplices=function(S,w){var A={path:""};S=uy(this,S,A);kXZ(this,S,A.path,w)};
H.prototype.get=function(S,w){return uy(w||this,S)};
H.prototype.set=function(S,w,A){A?mI6(A,S,w):this.__readOnly&&this.__readOnly[S]||this._setPendingPropertyOrPath(S,w,!0)&&this._invalidateProperties()};
H.prototype.push=function(S){var w=_.tc.apply(1,arguments),A={path:""},J=uy(this,S,A),c=J.length,Y=J.push.apply(J,_.k$(w));w.length&&OW(this,J,A.path,c,w.length,[]);return Y};
H.prototype.pop=function(S){var w={path:""};S=uy(this,S,w);var A=!!S.length,J=S.pop();A&&OW(this,S,w.path,S.length,0,[J]);return J};
H.prototype.splice=function(S,w,A){var J=_.tc.apply(3,arguments),c={path:""},Y=uy(this,S,c);w<0?w=Y.length-Math.floor(-w):w&&(w=Math.floor(w));var M=arguments.length===2?Y.splice(w):Y.splice.apply(Y,[w,A].concat(_.k$(J)));(J.length||M.length)&&OW(this,Y,c.path,w,J.length,M);return M};
H.prototype.shift=function(S){var w={path:""};S=uy(this,S,w);var A=!!S.length,J=S.shift();A&&OW(this,S,w.path,0,0,[J]);return J};
H.prototype.unshift=function(S){var w=_.tc.apply(1,arguments),A={path:""},J=uy(this,S,A),c=J.unshift.apply(J,_.k$(w));w.length&&OW(this,J,A.path,0,w.length,[]);return c};
H.prototype.notifyPath=function(S,w){if(arguments.length==1){var A={path:""};w=uy(this,S,A);A=A.path}else A=Array.isArray(S)?ea(S):S;this._setPendingPropertyOrPath(A,w,!0,!0)&&this._invalidateProperties()};
H.prototype._createReadOnlyProperty=function(S,w){this._addPropertyEffect(S,"__readOnly");w&&(this["_set"+(S[0].toUpperCase()+S.substring(1))]=function(A){this._setProperty(S,A)})};
H.prototype._createPropertyObserver=function(S,w,A){var J={property:S,method:w,dynamicFn:!!A};this._addPropertyEffect(S,"__observeEffects",{fn:NRw,info:J,trigger:{name:S}});A&&this._addPropertyEffect(w,"__observeEffects",{fn:NRw,info:J,trigger:{name:w}})};
H.prototype._createMethodObserver=function(S,w){var A=$Ip(S);if(!A)throw Error("Dd`"+S);XfE(this,A,"__observeEffects",ffZ,null,w)};
H.prototype._createNotifyingProperty=function(S){this._addPropertyEffect(S,"__notifyEffects",{fn:ECi,info:{eventName:W5(S)+"-changed",property:S}})};
H.prototype._createReflectedProperty=function(S){var w=this.constructor.attributeNameForProperty(S);w[0]==="-"?console.warn("Property "+S+" cannot be reflected to attribute "+w+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(S,"__reflectEffects",{fn:e8$,info:{attrName:w}})};
H.prototype._createComputedProperty=function(S,w,A){var J=$Ip(w);if(!J)throw Error("Ed`"+w);w=XfE(this,J,"__computeEffects",vCE,S,A);WxW(this,"__computeInfo")[S]=w};
H.prototype._marshalArgs=function(S,w,A){for(var J=this.__data,c=[],Y=0,M=S.length;Y<M;Y++){var m=S[Y],W=m.name,y=m.structured,N=m.wildcard,b=m.value;m.literal||(N?(m=by(W,w),y=pf0(J,A,m?w:W),b={path:m?w:W,value:y,base:m?uy(J,W):y}):b=y?pf0(J,A,W):J[W]);if(oq&&!this._overrideLegacyUndefined&&b===void 0&&S.length>1)return VF;c[Y]=b}return c};
H.addPropertyEffect=function(S,w,A){this.prototype._addPropertyEffect(S,w,A)};
H.createPropertyObserver=function(S,w,A){this.prototype._createPropertyObserver(S,w,A)};
H.createMethodObserver=function(S,w){this.prototype._createMethodObserver(S,w)};
H.createNotifyingProperty=function(S){this.prototype._createNotifyingProperty(S)};
H.createReadOnlyProperty=function(S,w){this.prototype._createReadOnlyProperty(S,w)};
H.createReflectedProperty=function(S){this.prototype._createReflectedProperty(S)};
H.createComputedProperty=function(S,w,A){this.prototype._createComputedProperty(S,w,A)};
H.bindTemplate=function(S){return this.prototype._bindTemplate(S)};
H.prototype._bindTemplate=function(S,w){var A=this.constructor._parseTemplate(S),J=this.__preBoundTemplateInfo==A;if(!J)for(var c in A.propertyEffects)this._createPropertyAccessor(c);w?(A=Object.create(A),A.wasPreBound=J,this.__templateInfo?(S=S._parentTemplateInfo||this.__templateInfo,w=S.lastChild,A.parent=S,S.lastChild=A,(A.previousSibling=w)?w.nextSibling=A:S.firstChild=A):this.__templateInfo=A):this.__preBoundTemplateInfo=A;return A};
H._addTemplatePropertyEffect=function(S,w,A){(S.hostProps=S.hostProps||{})[w]=!0;S=S.propertyEffects=S.propertyEffects||{};(S[w]=S[w]||[]).push(A)};
H.prototype._stampTemplate=function(S,w){w=w||this._bindTemplate(S,!0);m9.push(this);S=C.prototype._stampTemplate.call(this,S,w);m9.pop();w.nodeList=S.nodeList;if(!w.wasPreBound)for(var A=w.childNodes=[],J=S.firstChild;J;J=J.nextSibling)A.push(J);S.templateInfo=w;A=w.nodeList;J=w.nodeInfoList;if(J.length)for(var c=0;c<J.length;c++){var Y=A[c],M=J[c].bindings;if(M)for(var m=0;m<M.length;m++){var W=M[m],y=Y,N=W;if(N.isCompound){for(var b=y.__dataCompoundStorage||(y.__dataCompoundStorage={}),u=N.parts,
O=Array(u.length),d=0;d<u.length;d++)O[d]=u[d].literal;u=N.target;b[u]=O;N.literal&&N.kind=="property"&&(u==="className"&&(y=(0,_.v5)(y)),y[u]=N.literal)}Odw(Y,this,W)}Y.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(w,this.__data,null,!1),this._flushClients());return S};
H.prototype._removeBoundDom=function(S){S=S.templateInfo;var w=S.previousSibling,A=S.nextSibling,J=S.parent;w?w.nextSibling=A:J&&(J.firstChild=A);A?A.previousSibling=w:J&&(J.lastChild=w);S.nextSibling=S.previousSibling=null;S=S.childNodes;for(w=0;w<S.length;w++)A=S[w],(0,_.v5)((0,_.v5)(A).parentNode).removeChild(A)};
H._parseTemplateNode=function(S,w,A){var J=C._parseTemplateNode.call(this,S,w,A);if(S.nodeType===Node.TEXT_NODE){var c=this._parseBindings(S.textContent,w);c&&(S.textContent=Qh$(c)||" ",oCE(this,w,A,"text","textContent",c),J=!0)}return J};
H._parseTemplateNodeAttribute=function(S,w,A,J,c){var Y=this._parseBindings(c,w);if(Y){c=J;var M="property";Dd1.test(J)?M="attribute":J[J.length-1]=="$"&&(J=J.slice(0,-1),M="attribute");var m=Qh$(Y);m&&M=="attribute"&&(J=="class"&&S.hasAttribute("class")&&(m+=" "+S.getAttribute(J)),S.setAttribute(J,m));M=="attribute"&&c=="disable-upgrade$"&&S.setAttribute(J,"");S.localName==="input"&&c==="value"&&S.setAttribute(c,"");S.removeAttribute(c);M==="property"&&(J=mr(J));oCE(this,w,A,M,J,Y,m);return!0}return C._parseTemplateNodeAttribute.call(this,
S,w,A,J,c)};
H._parseTemplateNestedTemplate=function(S,w,A){var J=C._parseTemplateNestedTemplate.call(this,S,w,A),c=S.parentNode,Y=A.templateInfo,M=c.localName==="dom-if",m=c.localName==="dom-repeat";cW&&(M||m)&&(c.removeChild(S),A=A.parentInfo,A.templateInfo=Y,A.noted=!0,J=!1);S=Y.hostProps;if(Yg&&M)S&&(w.hostProps=Object.assign(w.hostProps||{},S),cW||(A.parentInfo.noted=!0));else for(var W in S)oCE(this,w,A,"property","_host_"+W,[{mode:"{",source:W,dependencies:[W],hostProp:!0}]);return J};
H._parseBindings=function(S,w){for(var A=[],J=0,c;(c=tpd.exec(S))!==null;){c.index>J&&A.push({literal:S.slice(J,c.index)});J=c[1][0];var Y=!!c[2];c=c[3].trim();var M=!1,m="",W=-1;J=="{"&&(W=c.indexOf("::"))>0&&(m=c.substring(W+2),c=c.substring(0,W),M=!0);W=$Ip(c);var y=[];if(W){var N=W,b=N.args;N=N.methodName;for(var u=0;u<b.length;u++){var O=b[u];O.literal||y.push(O)}if((b=w.dynamicFns)&&b[N]||W.static)y.push(N),W.dynamicFn=!0}else y.push(c);A.push({source:c,mode:J,negate:Y,customEvent:M,signature:W,
dependencies:y,event:m});J=tpd.lastIndex}J&&J<S.length&&(S=S.substring(J))&&A.push({literal:S});return A.length?A:null};
H._evaluateBinding=function(S,w,A,J,c,Y){S=w.signature?ffZ(S,A,J,c,w.signature):A!=w.source?uy(S,w.source):Y&&yF(A)?uy(S,A):S.__data[A];w.negate&&(S=!S);return S};
_.JJ.Object.defineProperties(H.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return BBP}}});
return H}),m9=[];var LFi=window.ShadyCSS&&window.ShadyCSS.cssBuild,y_=TT(function(H){function C(w,A,J,c){if(!LFi){for(var Y=A.content.querySelectorAll("style"),M=BRD(A),m=DIw(J),W=A.content.firstElementChild,y=0;y<m.length;y++){var N=m[y];N.textContent=w._processStyleText(N.textContent,c);A.content.insertBefore(N,W)}for(W=m=0;W<M.length;W++)y=M[W],N=Y[m],N!==y?(y=y.cloneNode(!0),N.parentNode.insertBefore(y,N)):m++,y.textContent=w._processStyleText(y.textContent,c)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(A,
J);if(b8d&&LFi&&qa7&&(A=A.content.querySelectorAll("style"))){var b="";Array.from(A).forEach(function(u){b+=u.textContent;u.parentNode.removeChild(u)});
w._styleSheet=new CSSStyleSheet;w._styleSheet.replaceSync(b)}}
var S=o6n(WW(H));H=function(){return S.call(this)||this};
_.G(H,S);H._finalizeClass=function(){S._finalizeClass.call(this);var w;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(w=this.__ownObservers)&&this.createObservers(w,this._properties);this._prepareTemplate()};
H._prepareTemplate=function(){var w=this.template;w&&(typeof w==="string"?(console.error("template getter must return HTMLTemplateElement"),w=null):gd||(w=w.cloneNode(!0)));this.prototype._template=w};
H.createProperties=function(w){for(var A in w){var J=this.prototype,c=A,Y=w[A],M=w;Y.computed&&(Y.readOnly=!0);Y.computed&&(J._hasReadOnlyEffect(c)?console.warn("Cannot redefine computed property '"+c+"'."):J._createComputedProperty(c,Y.computed,M));Y.readOnly&&!J._hasReadOnlyEffect(c)?J._createReadOnlyProperty(c,!Y.computed):Y.readOnly===!1&&J._hasReadOnlyEffect(c)&&console.warn("Cannot make readOnly property '"+c+"' non-readOnly.");Y.reflectToAttribute&&!J._hasReflectEffect(c)?J._createReflectedProperty(c):
Y.reflectToAttribute===!1&&J._hasReflectEffect(c)&&console.warn("Cannot make reflected property '"+c+"' non-reflected.");Y.notify&&!J._hasNotifyEffect(c)?J._createNotifyingProperty(c):Y.notify===!1&&J._hasNotifyEffect(c)&&console.warn("Cannot make notify property '"+c+"' non-notify.");Y.observer&&J._createPropertyObserver(c,Y.observer,M[Y.observer]);J._addPropertyToAttributeMap(c)}};
H.createObservers=function(w,A){for(var J=this.prototype,c=0;c<w.length;c++)J._createMethodObserver(w[c],A)};
H.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);S.prototype._initializeProperties.call(this);this.rootPath=TBY;this.importPath=this.constructor.importPath;var w=this.constructor;if(!w.hasOwnProperty("__propertyDefaults")){w.__propertyDefaults=null;var A=w._properties,J;for(J in A){var c=A[J];"value"in c&&(w.__propertyDefaults=w.__propertyDefaults||{},w.__propertyDefaults[J]=c)}}if(w=w.__propertyDefaults)for(var Y in w)A=w[Y],
this._canApplyPropertyDefault(Y)&&(A=typeof A.value=="function"?A.value.call(this):A.value,this._hasAccessor(Y)?this._setPendingProperty(Y,A,!0):this[Y]=A)};
H.prototype._canApplyPropertyDefault=function(w){return!this.hasOwnProperty(w)};
H._processStyleText=function(w,A){return CzZ(w,A)};
H._finalizeTemplate=function(w){var A=this.prototype._template;if(A&&!A.__polymerFinalized){A.__polymerFinalized=!0;var J=this.importPath;J=J?_.q_(J):"";C(this,A,w,J);this.prototype._bindTemplate(A)}};
H.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);S.prototype.connectedCallback.call(this)};
H.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);S.prototype.ready.call(this)};
H.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));S.prototype._readyClients.call(this)};
H.prototype._attachDom=function(w){var A=(0,_.v5)(this);if(A.attachShadow)return w?(A.shadowRoot||(A.attachShadow({mode:"open",shadyUpgradeFragment:w}),A.shadowRoot.appendChild(w),this.constructor._styleSheet&&(A.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),WF1&&window.ShadyDOM&&window.ShadyDOM.flushInitial(A.shadowRoot),A.shadowRoot):null;throw Error("Gd");};
H.prototype.updateStyles=function(w){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,w)};
H.prototype.resolveUrl=function(w,A){!A&&this.importPath&&(A=_.q_(this.importPath));return _.q_(w,A)};
H._parseTemplateContent=function(w,A,J){A.dynamicFns=A.dynamicFns||this._properties;return S._parseTemplateContent.call(this,w,A,J)};
H._addTemplatePropertyEffect=function(w,A,J){!aq||A in this._properties||J.info.part.signature&&J.info.part.signature.static||J.info.part.hostProp||w.nestedTemplate||console.warn("Property '"+A+"' used in template but not declared in 'properties'; attribute will not be observed.");return S._addTemplatePropertyEffect.call(this,w,A,J)};
_.JJ.Object.defineProperties(H,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var w=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof w==="function"&&(w=w());if(w===void 0){if(w=this.hasOwnProperty("is")){w=this.is;var A=null;if(w&&(!xf||mdn)&&(A=Xy.import(w,"template"),xf&&!A))throw Error("Fd`"+w);w=A}w=w||Object.getPrototypeOf(this.prototype).constructor.template}this._template=w}return this._template},
set:function(w){this._template=w}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var w=this.importMeta;w?this._importPath=S6Z(w.url):this._importPath=(w=Xy.import(this.is))&&w.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return H});var g67=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(H){return H}}),IfZ=function(H,C){UdV(H,C);
this.value=C.reduce(function(S,w,A){return S+afU(w)+H[A+1]},H[0]).toString()},UdV;
IfZ.prototype.toString=function(){return this.value};
_.RDb=function(H){var C=_.tc.apply(1,arguments);UdV(H,C);var S=document.createElement("template");C=C.reduce(function(w,A,J){if(A instanceof HTMLTemplateElement)A=A.innerHTML;else if(A instanceof IfZ)A=afU(A);else throw Error("Id`"+A);return w+A+H[J+1]},H[0]);
g67&&(C=g67.createHTML(C));S.innerHTML=C;return S};
UdV=function(H,C){if(!Array.isArray(H)||!Array.isArray(H.raw)||C.length!==H.length-1)throw new TypeError("Jd");};var NZ=y_(HTMLElement);var Iyn=TT(function(H){var C=y_(H);H=function(){var S=C.call(this)||this;S.__lastItems=null;S.__lastMulti=null;S.__selectedMap=null;return S};
_.G(H,C);H.prototype.__updateSelection=function(S,w){var A=w.path;A=="items"?(w=w.base||[],A=this.__lastItems,S!==this.__lastMulti&&this.clearSelection(),A&&(A=R80(w,A),this.__applySplices(A)),this.__lastItems=w,this.__lastMulti=S):w.path=="items.splices"?this.__applySplices(w.value.indexSplices):(S=A.slice(6),w=parseInt(S,10),S.indexOf(".")<0&&S==w&&this.__deselectChangedIdx(w))};
H.prototype.__applySplices=function(S){for(var w=this,A=this.__selectedMap,J={},c=0;c<S.length;J={s$jscomp$109:void 0},c++){J.s$jscomp$109=S[c];A.forEach(function(W){return function(y,N){y<W.s$jscomp$109.index||(y>=W.s$jscomp$109.index+W.s$jscomp$109.removed.length?A.set(N,y+W.s$jscomp$109.addedCount-W.s$jscomp$109.removed.length):A.set(N,-1))}}(J));
for(var Y=0;Y<J.s$jscomp$109.addedCount;Y++){var M=J.s$jscomp$109.index+Y;A.has(this.items[M])&&A.set(this.items[M],M)}}this.__updateLinks();var m=0;A.forEach(function(W,y){W<0?(w.multi?w.splice("selected",m,1):w.selected=w.selectedItem=null,A.delete(y)):m++})};
H.prototype.__updateLinks=function(){var S=this;this.__dataLinkedPaths={};if(this.multi){var w=0;this.__selectedMap.forEach(function(A){A>=0&&S.linkPaths("items."+A,"selected."+w++)})}else this.__selectedMap.forEach(function(A){S.linkPaths("selected","items."+A);
S.linkPaths("selectedItem","items."+A)})};
H.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
H.prototype.isSelected=function(S){return this.__selectedMap.has(S)};
H.prototype.isIndexSelected=function(S){return this.isSelected(this.items[S])};
H.prototype.__deselectChangedIdx=function(S){var w=this,A=this.__selectedIndexForItemIndex(S);if(A>=0){var J=0;this.__selectedMap.forEach(function(c,Y){A==J++&&w.deselect(Y)})}};
H.prototype.__selectedIndexForItemIndex=function(S){if(S=this.__dataLinkedPaths["items."+S])return parseInt(S.slice(9),10)};
H.prototype.deselect=function(S){var w=this.__selectedMap.get(S);if(w>=0){this.__selectedMap.delete(S);var A;this.multi&&(A=this.__selectedIndexForItemIndex(w));this.__updateLinks();this.multi?this.splice("selected",A,1):this.selected=this.selectedItem=null}};
H.prototype.deselectIndex=function(S){this.deselect(this.items[S])};
H.prototype.select=function(S){this.selectIndex(this.items.indexOf(S))};
H.prototype.selectIndex=function(S){var w=this.items[S];this.isSelected(w)?this.toggle&&this.deselectIndex(S):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(w,S),this.__updateLinks(),this.multi?this.push("selected",w):this.selected=this.selectedItem=w)};
_.JJ.Object.defineProperties(H,{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 H}),ay7=Iyn(NZ),bk=function(){return ay7.apply(this,arguments)||this};
_.G(bk,ay7);_.JJ.Object.defineProperties(bk,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(bk.is,bk);var xdd=window.Polymer;window.Polymer=function(H){return window.Polymer._polymerFn(H)};
xdd&&Object.assign(Polymer,xdd);Polymer._polymerFn=function(){throw Error("Kd");};/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
Polymer.ResolveUrl={resolveCss:CzZ,resolveUrl:_.q_,pathFromUrl:S6Z};Polymer.DomModule=Xy;Polymer.Async={timeOut:_.qZ,animationFrame:_.p7,idlePeriod:fy7,microTask:tP};Polymer.dedupingMixin=TT;Polymer.wrap=_.v5;Polymer.PropertiesChanged=lyM;Polymer.telemetry={instanceCount:VpV,incrementInstanceCount:function(){VpV++},
registrations:AN0,register:JNi,dumpRegistrations:function(){AN0.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=o6n;Polymer.CaseMap={dashToCamelCase:mr,camelToDashCase:W5};Polymer.PropertyAccessors=$dM;Polymer.TemplateStamp=rfY;Polymer.Path={isPath:yF,root:N_,isAncestor:M96,isDescendant:by,translate:EW,matches:q6i,normalize:ea,split:TRU,get:uy,set:mI6,isDeep:yF};Polymer.Settings={useShadow:UW,useNativeCSSProperties:Z81,useNativeCustomElements:cfV,get rootPath(){return TBY},setRootPath:function(H){TBY=H},
get sanitizeDOMValue(){return ly},setSanitizeDOMValue:function(H){ly=H},
get passiveTouchGestures(){return cCE},setPassiveTouchGestures:function(H){cCE=H},
get strictTemplatePolicy(){return xf},setStrictTemplatePolicy:function(H){xf=H},
get allowTemplateFromDomModule(){return mdn},setAllowTemplateFromDomModule:function(H){mdn=H},
get legacyOptimizations(){return gd},setLegacyOptimizations:function(H){gd=H},
get syncInitialRender(){return WF1},setSyncInitialRender:function(H){WF1=H},
get legacyUndefined(){return oq},setLegacyUndefined:function(H){oq=H},
get legacyWarnings(){return aq},setLegacyWarnings:function(H){aq=H},
get orderedComputed(){return yfP},setOrderedComputed:function(H){yfP=H},
get fastDomIf(){return Yg},setFastDomIf:function(H){Yg=H},
get removeNestedTemplates(){return cW},setRemoveNestedTemplates:function(H){cW=H},
get suppressTemplateNotifications(){return zT},setSuppressTemplateNotifications:zT};Polymer.rootPath!==void 0&&(TBY=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(ly=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(cCE=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(xf=Polymer.strictTemplatePolicy);mdn=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(gd=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(WF1=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(oq=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(aq=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(yfP=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(Yg=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(cW=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(zT=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return ly},
set:function(H){ly=H}});Polymer.PropertyEffects=WW;Polymer.StyleGather={stylesFromModules:rNi,stylesFromModule:nC$,stylesFromTemplate:BRD,stylesFromModuleImports:DIw,cssFromModules:t9W,cssFromModule:KxZ,cssFromTemplate:LxD,cssFromModuleImports:function(H){return(H=Xy.import(H))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(H):""}};Polymer.ElementMixin=y_;Polymer.updateStyles=function(H){window.ShadyCSS&&window.ShadyCSS.styleDocument(H)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:R80};Polymer.html=_.RDb;Polymer.htmlLiteral=function(H){return new IfZ(H,_.tc.apply(1,arguments))};Polymer.Element=NZ;Polymer.ArraySelectorMixin=Iyn;Polymer.ArraySelector=bk;var HfY=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,ifV=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Oii=/@media\s(.*)/;var CP$=null,i5W=window.HTMLImports&&window.HTMLImports.whenReady||null,Sbw;var C4n=null,ES=null,ev=function(){this.customStyles=[];this.enqueued=!1;ss0(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},Sxi=function(H){!H.enqueued&&ES&&(H.enqueued=!0,ss0(ES))};
ev.prototype.addCustomStyle=function(H){H.__seenByShadyCSS||(H.__seenByShadyCSS=!0,this.customStyles.push(H),Sxi(this))};
ev.prototype.getStyleForCustomStyle=function(H){if(H.__shadyCSSCachedStyle)return H.__shadyCSSCachedStyle;var C;H.getStyle?C=H.getStyle():C=H;return C};
ev.prototype.processStyles=function(){for(var H=this.customStyles,C=0;C<H.length;C++){var S=H[C];if(!S.__shadyCSSCachedStyle){var w=this.getStyleForCustomStyle(S);w&&(w=w.__appliedElement||w,C4n&&C4n(w),S.__shadyCSSCachedStyle=w)}}return H};
ev.prototype.addCustomStyle=ev.prototype.addCustomStyle;ev.prototype.getStyleForCustomStyle=ev.prototype.getStyleForCustomStyle;ev.prototype.processStyles=ev.prototype.processStyles;Object.defineProperties(ev.prototype,{transformCallback:{get:function(){return C4n},
set:function(H){C4n=H}},
validateCallback:{get:function(){return ES},
set:function(H){var C=!1;ES||(C=!0);ES=H;C&&Sxi(this)}}});var wui=!(window.ShadyDOM&&window.ShadyDOM.inUse),jsZ,AJ;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(AJ=window.ShadyCSS.cssBuild);var swi=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?jsZ=window.ShadyCSS.nativeCss:window.ShadyCSS?(ACZ(window.ShadyCSS),window.ShadyCSS=void 0):ACZ(window.WebComponents&&window.WebComponents.flags);var lsU=jsZ;var jwb=new ev;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(H,C){jwb.processStyles();xIZ(H,C)},
styleElement:function(){jwb.processStyles()},
styleDocument:function(H){jwb.processStyles();xIZ(document.body,H)},
getComputedStyleValue:function(H,C){return H5i(H,C)},
flushCustomStyles:function(){},
nativeCss:lsU,nativeShadow:wui,cssBuild:AJ,disableRuntime:swi});window.ShadyCSS.CustomStyleInterface=jwb;var wUW=window.ShadyCSS.CustomStyleInterface,uk=function(){var H=HTMLElement.call(this)||this;H._style=null;wUW.addCustomStyle(H);return H};
_.G(uk,HTMLElement);uk.prototype.getStyle=function(){if(this._style)return this._style;var H=this.querySelector("style");if(!H)return null;this._style=H;var C=H.getAttribute("include");C&&(H.removeAttribute("include"),H.textContent=t9W(C)+H.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
uk.prototype.getStyle=uk.prototype.getStyle;window.customElements.define("custom-style",uk);Polymer.CustomStyle=uk;var GT=function(){this._timer=this._callback=this._asyncModule=null},fH,JGY;
GT.prototype.setConfig=function(H,C){var S=this;this._asyncModule=H;this._callback=C;this._timer=this._asyncModule.run(function(){S._timer=null;fH.delete(S);S._callback()})};
GT.prototype.cancel=function(){this.isActive()&&(AGd(this),fH.delete(this))};
var AGd=function(H){H.isActive()&&(H._asyncModule.cancel(H._timer),H._timer=null)};
GT.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
GT.prototype.isActive=function(){return this._timer!=null};
_.vW=function(H,C,S){H instanceof GT?AGd(H):H=new GT;H.setConfig(C,S);return H};
fH=new Set;_.lk=function(H){fH.add(H)};
JGY=function(){var H=!!fH.size;fH.forEach(function(C){try{C.flush()}catch(S){setTimeout(function(){throw S;})}});
return H};var FU7=typeof document.head.style.touchAction==="string",JCW=["mousedown","mousemove","mouseup","click"],WUZ=[0,1,4,2],F6d;try{F6d=(new MouseEvent("test",{buttons:1})).buttons===1}catch(H){F6d=!1}var myp=F6d,Z50=!1;(function(){try{var H=Object.defineProperty({},"passive",{get:function(){Z50=!0}});
window.addEventListener("test",null,H);window.removeEventListener("test",null,H)}catch(C){}})();
var z6$=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),MC6=[],Zfn={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},ovU={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},qb0=function(H){var C=H.sourceCapabilities;if(!C||C.firesTouchEvents)if(H.__polymerGesturesHandled={skip:!0},H.type==="click"){C=!1;for(var S=Ev0(H),w=0;w<S.length;w++){if(S[w].nodeType===Node.ELEMENT_NODE)if(S[w].localName==="label")MC6.push(S[w]);
else if(Zfn[S[w].localName]){var A=S[w];var J=Array.prototype.slice.call(A.labels||[]);if(!J.length){J=[];try{var c=A.getRootNode();if(A.id){var Y=c.querySelectorAll("label[for = '"+A.id+"']");for(A=0;A<Y.length;A++)J.push(Y[A])}}catch(M){}}for(A=0;A<J.length;A++)C=C||MC6.indexOf(J[A])>-1}if(S[w]===cGW)return}C||(H.preventDefault(),H.stopPropagation())}},cGW=null,V_=null,uFE=0,GtD=0,e6D=-1,fhZ=!1;
document.addEventListener("touchend",function(H){V_||TO$(!0);cGW=Ev0(H)[0];V_=_.vW(V_,_.qZ.after(2500),function(){TO$();V_=cGW=null})},Z50?{passive:!0}:!1);
var Ev0=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(H){return H.composedPath&&H.composedPath()||[]},hP={},pm=[];
vvV({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){$f(this.info)},
mousedown:function(H){if(dd(H)){var C=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H),S=this;NOE(this.info,function(w){dd(w)||(Lm("up",C,w),$f(S.info))},function(w){dd(w)&&Lm("up",C,w);
$f(S.info)});
Lm("down",C,H)}},
touchstart:function(H){Lm("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H),H.changedTouches[0],H)},
touchend:function(H){Lm("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H),H.changedTouches[0],H)}});
vvV({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(H){this.moves.length>2&&this.moves.shift();this.moves.push(H)},
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;$f(this.info)},
mousedown:function(H){if(dd(H)){var C=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H),S=this,w=function(A){var J=A.clientX,c=A.clientY;lhu(S.info,J,c)&&(S.info.state=S.info.started?A.type==="mouseup"?"end":"track":"start",S.info.state==="start"&&kf("tap"),S.info.addMove({x:J,y:c}),dd(A)||(S.info.state="end",$f(S.info)),C&&VCE(S.info,C,A),S.info.started=!0)};
NOE(this.info,w,function(A){S.info.started&&w(A);$f(S.info)});
this.info.x=H.clientX;this.info.y=H.clientY}},
touchstart:function(H){H=H.changedTouches[0];this.info.x=H.clientX;this.info.y=H.clientY},
touchmove:function(H){var C=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H);H=H.changedTouches[0];var S=H.clientX,w=H.clientY;lhu(this.info,S,w)&&(this.info.state==="start"&&kf("tap"),this.info.addMove({x:S,y:w}),VCE(this.info,C,H),this.info.state="track",this.info.started=!0)},
touchend:function(H){var C=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H);H=H.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:H.clientX,y:H.clientY}),VCE(this.info,C,H))}});
vvV({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(H){dd(H)&&(this.info.x=H.clientX,this.info.y=H.clientY)},
click:function(H){dd(H)&&O5U(this.info,H)},
touchstart:function(H){H=H.changedTouches[0];this.info.x=H.clientX;this.info.y=H.clientY},
touchend:function(H){O5U(this.info,H.changedTouches[0],H)}});var YxU=TT(function(H){var C=function(){return H.apply(this,arguments)||this};
_.G(C,H);C.prototype._addEventListenerToNode=function(S,w,A){nm(S,w,A)||H.prototype._addEventListenerToNode.call(this,S,w,A)};
C.prototype._removeEventListenerFromNode=function(S,w,A){rd(S,w,A)||H.prototype._removeEventListenerFromNode.call(this,S,w,A)};
return C});var oF=TT(function(H){var C=function(){return H.apply(this,arguments)||this};
_.G(C,H);C.prototype._shouldPropertyChange=function(S,w,A){return Xu7(this,S,w,A,!0)};
return C}),zuY=TT(function(H){var C=function(){return H.apply(this,arguments)||this};
_.G(C,H);C.prototype._shouldPropertyChange=function(S,w,A){return Xu7(this,S,w,A,this.mutableData)};
_.JJ.Object.defineProperties(C,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return C});
oF._mutablePropertyChange=Xu7;var QsE=!1;var Mt1=YxU(zuY(WW(HTMLElement))),OS=function(){var H=Mt1.call(this)||this;if(xf)throw Error("Ld");H.root=null;H.$=null;H.__children=null;return H};
_.G(OS,Mt1);_.F=OS.prototype;_.F.attributeChangedCallback=function(){this.mutableData=!0};
_.F.connectedCallback=function(){dyD()||(this.style.display="none");this.render()};
_.F.disconnectedCallback=function(){this.__removeChildren()};
_.F.__insertChildren=function(){(0,_.v5)((0,_.v5)(this).parentNode).insertBefore(this.root,this)};
_.F.__removeChildren=function(){if(this.__children)for(var H=0;H<this.__children.length;H++)this.root.appendChild(this.__children[H])};
_.F.render=function(){var H=this;if(!this.__children){var C=C||this.querySelector("template");if(!C){var S=new MutationObserver(function(){if(C=H.querySelector("template"))S.disconnect(),H.render();else throw Error("Md");});
S.observe(this,{childList:!0});return}this.root=this._stampTemplate(C);this.$=this.root.$;this.__children=[];for(var w=this.root.firstChild;w;w=w.nextSibling)this.__children[this.__children.length]=w;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.JJ.Object.defineProperties(OS,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",OS);Polymer.Debouncer=GT;Polymer.Gestures={gestures:hP,recognizers:pm,deepTargetFind:b5U,addListener:nm,removeListener:rd,register:vvV,setTouchAction:_.B5,prevent:kf,resetMouseCanceller:function(){V_&&V_.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:nm,remove:rd};Polymer.GestureEventListeners=YxU;Polymer.MutableData=oF;Polymer.OptionalMutableData=zuY;Polymer.DomBind=OS;_.XL=function(){do{var H=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var C=JGY()}while(H||C)};var PPw=null;$yE.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:$yE,writable:!0}});var KU0=WW($yE),DyV=oF(KU0),qxd=WW(function(){}),Rq=function(H){var C=qxd.call(this)||this;
C._configureProperties(H);C.root=C._stampTemplate(C.__dataHost);var S=[];C.children=S;for(var w=C.root.firstChild;w;w=w.nextSibling)S.push(w),w.__templatizeInstance=C;C.__templatizeOwner&&C.__templatizeOwner.__hideTemplateChildren__&&C._showHideChildren(!0);S=C.__templatizeOptions;(H&&S.instanceProps||!S.instanceProps)&&C._enableProperties();return C};
_.G(Rq,qxd);_.F=Rq.prototype;_.F._configureProperties=function(H){if(this.__templatizeOptions.forwardHostProp)for(var C in this.__hostProps)this._setPendingProperty(C,this.__dataHost["_host_"+C]);for(var S in H)this._setPendingProperty(S,H[S])};
_.F.forwardHostProp=function(H,C){this._setPendingPropertyOrPath(H,C,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.F._addEventListenerToNode=function(H,C,S){var w=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(H,C,function(J){J.model=w;S(J)});
else{var A=this.__dataHost.__dataHost;A&&A._addEventListenerToNode(H,C,S)}};
_.F._showHideChildren=function(H){ktZ(H,this.children)};
_.F._setUnmanagedPropertyToNode=function(H,C,S){H.__hideTemplateChildren__&&H.nodeType==Node.TEXT_NODE&&C=="textContent"?H.__polymerTextContent__=S:qxd.prototype._setUnmanagedPropertyToNode.call(this,H,C,S)};
_.F.dispatchEvent=function(){return!0};
_.JJ.Object.defineProperties(Rq.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var H=this.__parentModel;if(!H){var C;H=this;do H=H.__dataHost.__dataHost;while((C=H.__templatizeOptions)&&!C.parentModel);this.__parentModel=H}return H}}});
var nvE=oF(Rq);var Q_=function(){var H=NZ.call(this)||this;H.__renderDebouncer=null;H._lastIf=!1;H.__hideTemplateChildren__=!1;return H};
_.G(Q_,NZ);_.F=Q_.prototype;_.F.__debounceRender=function(){var H=this;this.__renderDebouncer=_.vW(this.__renderDebouncer,tP,function(){return H.__render()});
_.lk(this.__renderDebouncer)};
_.F.disconnectedCallback=function(){NZ.prototype.disconnectedCallback.call(this);var H=(0,_.v5)(this).parentNode;H&&(H.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.v5)(H).host)||this.__teardownInstance()};
_.F.connectedCallback=function(){NZ.prototype.connectedCallback.call(this);dyD()||(this.style.display="none");this.if&&this.__debounceRender()};
_.F.__ensureTemplate=function(){var H=this;if(!this.__template){var C=this._templateInfo?this:(0,_.v5)(this).querySelector("template");if(!C){var S=new MutationObserver(function(){if((0,_.v5)(H).querySelector("template"))S.disconnect(),H.__render();else throw Error("Pd");});
S.observe(this,{childList:!0});return!1}this.__template=C}return!0};
_.F.__ensureInstance=function(){var H=(0,_.v5)(this).parentNode;if(this.__hasInstance()){var C=this.__getInstanceNodes();if(C&&C.length&&(0,_.v5)(this).previousSibling!==C[C.length-1])for(var S=0,w=void 0;S<C.length&&(w=C[S]);S++)(0,_.v5)(H).insertBefore(w,this)}else{if(!H||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(H)}return!0};
_.F.render=function(){_.XL()};
_.F.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();zT&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.F.__hasInstance=function(){};
_.F.__getInstanceNodes=function(){};
_.F.__createAndInsertInstance=function(){};
_.F.__teardownInstance=function(){};
_.F._showHideChildren=function(){};
_.JJ.Object.defineProperties(Q_,{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:Q_.prototype.__debounceRender},restamp:{type:Boolean,observer:Q_.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var TmU=function(){var H=Q_.call(this)||this;H.__instance=null;H.__syncInfo=null;return H};
_.G(TmU,Q_);_.F=TmU.prototype;_.F.__hasInstance=function(){return!!this.__instance};
_.F.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.F.__createAndInsertInstance=function(H){var C=this,S=this.__dataHost||this;if(xf&&!this.__dataHost)throw Error("Nd");var w=S._bindTemplate(this.__template,!0);w.runEffects=function(A,J,c){var Y=C.__syncInfo;if(C.if)Y&&(C.__syncInfo=null,C._showHideChildren(),J=Object.assign(Y.changedProps,J)),A(J,c);else if(C.__instance)if(Y||(Y=C.__syncInfo={runEffects:A,changedProps:{}}),c)for(var M in J)A=N_(M),Y.changedProps[A]=C.__dataHost[A];else Object.assign(Y.changedProps,J)};
this.__instance=S._stampTemplate(this.__template,w);(0,_.v5)(H).insertBefore(this.__instance,this)};
_.F.__syncHostProperties=function(){var H=this.__syncInfo;H&&(this.__syncInfo=null,H.runEffects(H.changedProps,!1))};
_.F.__teardownInstance=function(){var H=this.__dataHost||this;this.__instance&&(H._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.F._showHideChildren=function(){var H=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==H&&(this.__instance.__hidden=H,ktZ(H,this.__instance.templateInfo.childNodes));H||this.__syncHostProperties()};
var m5b=function(){var H=Q_.call(this)||this;H.__ctor=null;H.__instance=null;H.__invalidProps=null;return H};
_.G(m5b,Q_);_.F=m5b.prototype;_.F.__hasInstance=function(){return!!this.__instance};
_.F.__getInstanceNodes=function(){return this.__instance.children};
_.F.__createAndInsertInstance=function(H){this.__ctor||(this.__ctor=Iq(this.__template,this,{mutableData:!0,forwardHostProp:function(C,S){this.__instance&&(this.if?this.__instance.forwardHostProp(C,S):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[N_(C)]=!0))}}));
this.__instance=new this.__ctor;(0,_.v5)(H).insertBefore(this.__instance.root,this)};
_.F.__teardownInstance=function(){if(this.__instance){var H=this.__instance.children;if(H&&H.length){var C=(0,_.v5)(H[0]).parentNode;if(C){C=(0,_.v5)(C);for(var S=0,w=void 0;S<H.length&&(w=H[S]);S++)C.removeChild(w)}}this.__instance=this.__invalidProps=null}};
_.F.__syncHostProperties=function(){var H=this.__invalidProps;if(H){this.__invalidProps=null;for(var C in H)this.__instance._setPendingProperty(C,this.__dataHost[C]);this.__instance._flushProperties()}};
_.F._showHideChildren=function(){var H=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==H&&(this.__instance.__hidden=H,this.__instance._showHideChildren(H));H||this.__syncHostProperties()};
_.rE=Yg?TmU:m5b;customElements.define(_.rE.is,_.rE);Polymer.enqueueDebouncer=_.lk;Polymer.flush=_.XL;Polymer.Templatize={templatize:Iq,modelForElement:IhE};Polymer.TemplateInstanceBase=Rq;Polymer.DomIf=_.rE;var W6P=zuY(NZ),nx=function(){var H=W6P.call(this)||this;H.__instances=[];H.__renderDebouncer=null;H.__itemsIdxToInstIdx={};H.__chunkCount=null;H.__renderStartTime=null;H.__itemsArrayChanged=!1;H.__shouldMeasureChunk=!1;H.__shouldContinueChunking=!1;H.__chunkingId=0;H.__sortFn=null;H.__filterFn=null;H.__observePaths=null;H.__ctor=null;H.__isDetached=!0;H.template=null;return H};
_.G(nx,W6P);_.F=nx.prototype;_.F.disconnectedCallback=function(){W6P.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var H=0;H<this.__instances.length;H++)this.__detachInstance(H);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.F.connectedCallback=function(){W6P.prototype.connectedCallback.call(this);dyD()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var H=(0,_.v5)((0,_.v5)(this).parentNode),C=0;C<this.__instances.length;C++)this.__attachInstance(C,H);this.__chunkingId&&this.__render()}};
_.F.__ensureTemplatized=function(){var H=this;if(!this.__ctor){var C=this.template=this._templateInfo?this:this.querySelector("template");if(!C){var S=new MutationObserver(function(){if(H.querySelector("template"))S.disconnect(),H.__render();else throw Error("Qd");});
S.observe(this,{childList:!0});return!1}var w={};w[this.as]=!0;w[this.indexAs]=!0;w[this.itemsIndexAs]=!0;this.__ctor=Iq(C,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:w,forwardHostProp:function(A,J){for(var c=this.__instances,Y=0,M=void 0;Y<c.length&&(M=c[Y]);Y++)M.forwardHostProp(A,J)},
notifyInstanceProp:function(A,J,c){q6i(this.as,J)&&(A=A[this.itemsIndexAs],J==this.as&&(this.items[A]=c),J=EW(this.as,"items."+A,J),this.notifyPath(J,c))}})}return!0};
_.F.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.F.__functionFromPropertyValue=function(H){if(typeof H==="string"){var C=this.__getMethodHost();return function(){return C[H].apply(C,arguments)}}return H};
_.F.__sortChanged=function(H){this.__sortFn=this.__functionFromPropertyValue(H);this.items&&this.__debounceRender(this.__render)};
_.F.__filterChanged=function(H){this.__filterFn=this.__functionFromPropertyValue(H);this.items&&this.__debounceRender(this.__render)};
_.F.__computeFrameTime=function(H){return Math.ceil(1E3/H)};
_.F.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.F.__handleObservedPaths=function(H){if(this.__sortFn||this.__filterFn)if(!H)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var C=this.__observePaths,S=0;S<C.length;S++)H.indexOf(C[S])===0&&this.__debounceRender(this.__render,this.delay)};
_.F.__itemsChanged=function(H){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(H.path,H.value)||(H.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.F.__debounceRender=function(H,C){C=C===void 0?0:C;this.__renderDebouncer=_.vW(this.__renderDebouncer,C>0?_.qZ.after(C):tP,H.bind(this));_.lk(this.__renderDebouncer)};
_.F.render=function(){this.__debounceRender(this.__render);_.XL()};
_.F.__render=function(){var H=this;if(this.__ensureTemplatized()){var C=this.items||[],S=this.__sortAndFilterItems(C),w=this.__calculateLimit(S.length);this.__updateInstances(C,w,S);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){H.__chunkingId=null;H.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);zT&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.F.__sortAndFilterItems=function(H){for(var C=this,S=Array(H.length),w=0;w<H.length;w++)S[w]=w;this.__filterFn&&(S=S.filter(function(A,J,c){return C.__filterFn(H[A],J,c)}));
this.__sortFn&&S.sort(function(A,J){return C.__sortFn(H[A],H[J])});
return S};
_.F.__calculateLimit=function(H){var C=H,S=this.__instances.length;if(this.initialCount){var w;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(C=Math.min(H,this.initialCount),this.__chunkCount=(w=Math.max(C-S,0))||1):(w=Math.min(Math.max(H-S,0),this.__chunkCount),C=Math.min(S+w,H));this.__shouldMeasureChunk=w===this.__chunkCount;this.__shouldContinueChunking=C<H;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return C};
_.F.__continueChunking=function(){if(this.__shouldMeasureChunk){var H=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/H*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.F.__updateInstances=function(H,C,S){var w=this.__itemsIdxToInstIdx={},A;for(A=0;A<C;A++){var J=this.__instances[A],c=S[A],Y=H[c];w[c]=A;J?(J._setPendingProperty(this.as,Y),J._setPendingProperty(this.indexAs,A),J._setPendingProperty(this.itemsIndexAs,c),J._flushProperties()):this.__insertInstance(Y,A,c)}for(H=this.__instances.length-1;H>=A;H--)this.__detachAndRemoveInstance(H)};
_.F.__detachInstance=function(H){H=this.__instances[H];for(var C=(0,_.v5)(H.root),S=0;S<H.children.length;S++)C.appendChild(H.children[S]);return H};
_.F.__attachInstance=function(H,C){C.insertBefore(this.__instances[H].root,this)};
_.F.__detachAndRemoveInstance=function(H){this.__detachInstance(H);this.__instances.splice(H,1)};
_.F.__stampInstance=function(H,C,S){var w={};w[this.as]=H;w[this.indexAs]=C;w[this.itemsIndexAs]=S;return new this.__ctor(w)};
_.F.__insertInstance=function(H,C,S){H=this.__stampInstance(H,C,S);S=(S=this.__instances[C+1])?S.children[0]:this;(0,_.v5)((0,_.v5)(this).parentNode).insertBefore(H.root,S);return this.__instances[C]=H};
_.F._showHideChildren=function(H){for(var C=0;C<this.__instances.length;C++)this.__instances[C]._showHideChildren(H)};
_.F.__handleItemPath=function(H,C){var S=H.slice(6),w=S.indexOf(".");H=w<0?S:S.substring(0,w);if(H==parseInt(H,10)){S=w<0?"":S.substring(w+1);this.__handleObservedPaths(S);if(H=this.__instances[this.__itemsIdxToInstIdx[H]])H._setPendingPropertyOrPath(this.as+(S?"."+S:""),C,!1,!0),H._flushProperties();return!0}};
_.F.itemForElement=function(H){return(H=this.modelForElement(H))&&H[this.as]};
_.F.indexForElement=function(H){return(H=this.modelForElement(H))&&H[this.indexAs]};
_.F.modelForElement=function(H){return IhE(this.template,H)};
_.JJ.Object.defineProperties(nx,{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:nx.prototype.__sortChanged},filter:{type:Function,observer:nx.prototype.__filterChanged},observe:{type:String,observer:nx.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!zT,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.*)"]}}});
nx.prototype._setRenderedItemCount=function(){};
customElements.define(nx.is,nx);Polymer.DomRepeat=nx;var yGV=function(H,C){var S=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=H;this.callback=C;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){S._schedule()};
this.connect();this._schedule()},NmP=function(H){var C=(0,_.v5)(H);
if(HM(H))return C.assignedNodes({flatten:!0});H=[];for(var S=0;S<C.childNodes.length;S++){var w=C.childNodes[S];HM(w)?H.push.apply(H,_.k$((0,_.v5)(w).assignedNodes({flatten:!0}))):H.push(w)}return H};
_.F=yGV.prototype;_.F.connect=function(){var H=this;HM(this._target)?this._listenSlots([this._target]):(0,_.v5)(this._target).children&&(this._listenSlots((0,_.v5)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(C){H._processMutations(C)}):(this._nativeChildrenObserver=new MutationObserver(function(C){H._processMutations(C)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.F.disconnect=function(){HM(this._target)?this._unlistenSlots([this._target]):(0,_.v5)(this._target).children&&(this._unlistenSlots((0,_.v5)(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};
_.F._schedule=function(){var H=this;this._scheduled||(this._scheduled=!0,tP.run(function(){return H.flush()}))};
_.F._processMutations=function(H){this._processSlotMutations(H);this.flush()};
_.F._processSlotMutations=function(H){if(H)for(var C=0;C<H.length;C++){var S=H[C];S.addedNodes&&this._listenSlots(S.addedNodes);S.removedNodes&&this._unlistenSlots(S.removedNodes)}};
_.F.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 H={target:this._target,addedNodes:[],removedNodes:[]},C=NmP(this._target),S=R80(C,this._effectiveNodes),w=0,A=void 0;w<S.length&&(A=S[w]);w++)for(var J=0,c=void 0;J<A.removed.length&&(c=A.removed[J]);J++)H.removedNodes.push(c);
w=0;for(A=void 0;w<S.length&&(A=S[w]);w++)for(J=A.index;J<A.index+A.addedCount;J++)H.addedNodes.push(C[J]);this._effectiveNodes=C;C=!1;if(H.addedNodes.length||H.removedNodes.length)C=!0,this.callback.call(this._target,H);return C};
_.F._listenSlots=function(H){for(var C=0;C<H.length;C++){var S=H[C];HM(S)&&S.addEventListener("slotchange",this._boundSchedule)}};
_.F._unlistenSlots=function(H){for(var C=0;C<H.length;C++){var S=H[C];HM(S)&&S.removeEventListener("slotchange",this._boundSchedule)}};var de=Element.prototype,bfY=de.matches||de.matchesSelector||de.mozMatchesSelector||de.msMatchesSelector||de.oMatchesSelector||de.webkitMatchesSelector,EFd=function(H,C){return bfY.call(H,C)},is=function(H){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(H);
this.node=H},fo_;
_.F=is.prototype;_.F.observeNodes=function(H){return new yGV(this.node,H)};
_.F.unobserveNodes=function(H){H.disconnect()};
_.F.notifyObserver=function(){};
_.F.deepContains=function(H){if((0,_.v5)(this.node).contains(H))return!0;var C=H;for(H=H.ownerDocument;C&&C!==H&&C!==this.node;)C=(0,_.v5)(C).parentNode||(0,_.v5)(C).host;return C===this.node};
_.F.getOwnerRoot=function(){return(0,_.v5)(this.node).getRootNode()};
_.F.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.v5)(this.node).assignedNodes({flatten:!0}):[]};
_.F.getDestinationInsertionPoints=function(){for(var H=[],C=(0,_.v5)(this.node).assignedSlot;C;)H.push(C),C=(0,_.v5)(C).assignedSlot;return H};
_.F.importNode=function(H,C){return(0,_.v5)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(H,C)};
_.F.getEffectiveChildNodes=function(){return NmP(this.node)};
_.F.queryDistributedElements=function(H){for(var C=this.getEffectiveChildNodes(),S=[],w=0,A=C.length,J=void 0;w<A&&(J=C[w]);w++)J.nodeType===Node.ELEMENT_NODE&&EFd(J,H)&&S.push(J);return S};
_.JJ.Object.defineProperties(is.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var H=this.node;return H._activeElement!==void 0?H._activeElement:H.activeElement}}});
var PW=function(H){this.event=H};
_.JJ.Object.defineProperties(PW.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 euM=is;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var uGd=window.ShadyDOM.Wrapper,G5d=function(){return uGd.apply(this,arguments)||this};
_.G(G5d,uGd);Object.getOwnPropertyNames(is.prototype).forEach(function(H){H!="activeElement"&&H!="constructor"&&(G5d.prototype[H]=is.prototype[H])});
xy0(G5d.prototype,["classList"]);euM=G5d;Object.defineProperties(PW.prototype,{localTarget:{get:function(){var H=this.event.currentTarget;H=H&&_.PM(H).getOwnerRoot();for(var C=this.path,S=0;S<C.length;S++){var w=C[S];if(_.PM(w).getOwnerRoot()===H)return w}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else ahE(),xy0(is.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),Hi$();fo_=euM;_.PM=function(H){H=H||document;if(H instanceof euM)return H;if(H instanceof PW)return H;var C=H.__domApi;C||(H instanceof Event?C=new PW(H):C=new euM(H),H.__domApi=C);return C};var vFW=/:host\(:dir\((ltr|rtl)\)\)/g,lob=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,Vti=/:dir\((?:ltr|rtl)\)/,oF7=!(!window.ShadyDOM||!window.ShadyDOM.inUse),Sj=[],$g=null,CD="",OfP=TT(function(H){oF7||$g||(CD=document.documentElement.getAttribute("dir"),$g=new MutationObserver(iii),$g.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var C=$dM(H);H=function(){var S=C.call(this)||this;S.__autoDirOptOut=!1;return S};
_.G(H,C);H._processStyleText=function(S,w){S=C._processStyleText.call(this,S,w);!oF7&&Vti.test(S)&&(S=this._replaceDirInCssText(S),this.__activateDir=!0);return S};
H._replaceDirInCssText=function(S){S=S.replace(vFW,':host([dir="$1"])');return S=S.replace(lob,':host([dir="$2"]) $1')};
H.prototype.ready=function(){C.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
H.prototype.connectedCallback=function(){C.prototype.connectedCallback&&C.prototype.connectedCallback.call(this);this.constructor.__activateDir&&($g&&$g.takeRecords().length&&iii(),Sj.push(this),this.__autoDirOptOut||this.setAttribute("dir",CD))};
H.prototype.disconnectedCallback=function(){C.prototype.disconnectedCallback&&C.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var S=Sj.indexOf(this);S>-1&&Sj.splice(S,1)}};
H.__activateDir=!1;return H});var XU1=function(H){for(;H;){var C=Object.getOwnPropertyDescriptor(H,"observedAttributes");if(C)return C.get;H=Object.getPrototypeOf(H.prototype).constructor}return function(){return[]}};
TT(function(H){var C=y_(H),S=XU1(C);H=function(){return C.call(this)||this};
_.G(H,C);H.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:C.prototype._initializeProperties.call(this)};
H.prototype._enableProperties=function(){this.__isUpgradeDisabled||C.prototype._enableProperties.call(this)};
H.prototype._canApplyPropertyDefault=function(w){return C.prototype._canApplyPropertyDefault.call(this,w)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(w))};
H.prototype.attributeChangedCallback=function(w,A,J,c){w=="disable-upgrade"?this.__isUpgradeDisabled&&J==null&&(C.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.v5)(this).isConnected&&C.prototype.connectedCallback.call(this)):C.prototype.attributeChangedCallback.call(this,w,A,J,c)};
H.prototype.connectedCallback=function(){this.__isUpgradeDisabled||C.prototype.connectedCallback.call(this)};
H.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||C.prototype.disconnectedCallback.call(this)};
_.JJ.Object.defineProperties(H,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return S.call(this).concat("disable-upgrade")}}});
return H});var sk=!1,SvZ=[],jj=[];var AlZ=window.ShadyDOM,Jl0=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",Zii):document.readyState==="interactive"||document.readyState==="complete"?Zii():window.addEventListener("DOMContentLoaded",Zii);var z5E=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=""},cl7=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,YvU=/@import[^;]*;/gim,ylV=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,N16=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,biZ=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,ES7=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,meZ=/^@[^\s]*keyframes/,
T1Z=/\s+/g;var e50={};var fs$=Promise.resolve();var Qwi=new Set;var d5n=/;\s*/m,P4W=/^\s*(initial)|(inherit)\s*$/,$5U=/\s*!important/,pUb=function(){this._map={}};
pUb.prototype.set=function(H,C){H=H.trim();this._map[H]={properties:C,dependants:{}}};
pUb.prototype.get=function(H){H=H.trim();return this._map[H]||null};
var k57=null,pH=function(){this._measureElement=this._currentElement=null;this._map=new pUb};
_.F=pH.prototype;_.F.detectMixin=function(H){H=ifV.test(H)||HfY.test(H);ifV.lastIndex=0;HfY.lastIndex=0;return H};
_.F.transformTemplate=function(H,C){if(H._gatheredStyle===void 0){var S=[];for(var w=H.content.querySelectorAll("style"),A=0;A<w.length;A++){var J=w[A];if(J.hasAttribute("shady-unscoped")){if(!wui){var c=J.textContent;if(!Qwi.has(c)){Qwi.add(c);var Y=document.createElement("style");Y.setAttribute("shady-unscoped","");Y.textContent=c;document.head.appendChild(Y)}J.parentNode.removeChild(J)}}else S.push(J.textContent),J.parentNode.removeChild(J)}(S=S.join("").trim())?(w=document.createElement("style"),
w.textContent=S,H.content.insertBefore(w,H.content.firstChild),S=w):S=null;H._gatheredStyle=S}return(H=H._gatheredStyle)?this.JSC$11284_transformStyle(H,C):null};
_.F.JSC$11284_transformStyle=function(H,C){C=C===void 0?"":C;var S=oSW(H);this.transformRules(S,C);H.textContent=VMi(S);return S};
_.F.transformCustomStyle=function(H){var C=this,S=oSW(H);X8E(S,function(w){w.selector===":root"&&(w.selector="html");C.transformRule(w)});
H.textContent=VMi(S);return S};
_.F.transformRules=function(H,C){var S=this;this._currentElement=C;X8E(H,function(w){S.transformRule(w)});
this._currentElement=null};
_.F.transformRule=function(H){H.cssText=hun(this,H.parsedCssText,H);H.selector===":root"&&(H.selector=":host > *")};
var hun=function(H,C,S){C=C.replace(HfY,function(w,A,J,c){return H._produceCssProperties(w,A,J,c,S)});
return H._consumeCssProperties(C,S)};
_.F=pH.prototype;_.F._getInitialValueForProperty=function(H){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(H)};
_.F._fallbacksFromPreviousRules=function(H){for(var C=this,S=H;S.parent;)S=S.parent;var w={},A=!1;X8E(S,function(J){(A=A||J===H)||J.selector===H.selector&&Object.assign(w,C._cssTextToMap(J.parsedCssText))});
return w};
_.F._consumeCssProperties=function(H,C){for(var S;S=ifV.exec(H);){var w=S[0],A=S[1];S=S.index;var J=S+w.indexOf("@apply"),c=S+w.length;w=H.slice(0,J);H=H.slice(c);J=C?this._fallbacksFromPreviousRules(C):{};Object.assign(J,this._cssTextToMap(w));A=this._atApplyToCssProperties(A,J);H=w+A+H;ifV.lastIndex=S+A.length}return H};
_.F._atApplyToCssProperties=function(H,C){H=H.replace(d5n,"");var S=[],w=this._map.get(H);w||(this._map.set(H,{}),w=this._map.get(H));if(w){this._currentElement&&(w.dependants[this._currentElement]=!0);var A,J=w.properties;for(A in J){var c=C&&C[A];w=[A,": var(",H,"_-_",A];c&&w.push(",",c.replace($5U,""));w.push(")");$5U.test(J[A])&&w.push(" !important");S.push(w.join(""))}}return S.join("; ")};
_.F._replaceInitialOrInherit=function(H,C){var S=P4W.exec(C);S&&(C=S[1]?this._getInitialValueForProperty(H):"apply-shim-inherit");return C};
_.F._cssTextToMap=function(H,C){C=C===void 0?!1:C;H=H.split(";");for(var S,w,A={},J=0;J<H.length;J++)if(S=H[J])w=S.split(":"),w.length>1&&(S=w[0].trim(),w=w.slice(1).join(":"),C&&(w=this._replaceInitialOrInherit(S,w)),A[S]=w);return A};
_.F._invalidateMixinEntry=function(H){if(k57)for(var C in H.dependants)C!==this._currentElement&&k57(C)};
_.F._produceCssProperties=function(H,C,S,w,A){var J=this;S&&Qop(S,function(u,O){O&&J._map.get(O)&&(w="@apply "+O+";")});
if(!w)return H;var c=this._consumeCssProperties(""+w,A);A=H.slice(0,H.indexOf("--"));var Y=c=this._cssTextToMap(c,!0),M=this._map.get(C),m=M&&M.properties;m?Y=Object.assign(Object.create(m),c):this._map.set(C,Y);var W=[],y,N=!1;for(y in Y){var b=c[y];b===void 0&&(b="initial");!m||y in m||(N=!0);W.push(C+"_-_"+y+": "+b)}N&&this._invalidateMixinEntry(M);M&&(M.properties=Y);S&&(A=H+";"+A);return A+W.join("; ")+";"};
pH.prototype.detectMixin=pH.prototype.detectMixin;pH.prototype.transformStyle=pH.prototype.JSC$11284_transformStyle;pH.prototype.transformCustomStyle=pH.prototype.transformCustomStyle;pH.prototype.transformRules=pH.prototype.transformRules;pH.prototype.transformRule=pH.prototype.transformRule;pH.prototype.transformTemplate=pH.prototype.transformTemplate;pH.prototype._separator="_-_";Object.defineProperty(pH.prototype,"invalidCallback",{get:function(){return k57},
set:function(H){k57=H}});var kg=new pH,nF1=function(){this.customStyleInterface=null;kg.invalidCallback=ui7},hi=function(H){!H.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(H.customStyleInterface=window.ShadyCSS.CustomStyleInterface,H.customStyleInterface.transformCallback=function(C){kg.transformCustomStyle(C)},H.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){H.customStyleInterface.enqueued&&H.flushCustomStyles()})})};
_.F=nF1.prototype;_.F.prepareTemplate=function(H,C){hi(this);dei(H)===""&&(e50[C]=H,C=kg.transformTemplate(H,C),H._styleAst=C)};
_.F.flushCustomStyles=function(){hi(this);if(this.customStyleInterface){var H=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var C=0;C<H.length;C++){var S=this.customStyleInterface.getStyleForCustomStyle(H[C]);S&&kg.transformCustomStyle(S)}this.customStyleInterface.enqueued=!1}}};
_.F.styleSubtree=function(H,C){hi(this);C&&xIZ(H,C);if(H.shadowRoot)for(this.styleElement(H),H=H.shadowRoot.children||H.shadowRoot.childNodes,C=0;C<H.length;C++)this.styleSubtree(H[C]);else for(H=H.children||H.childNodes,C=0;C<H.length;C++)this.styleSubtree(H[C])};
_.F.styleElement=function(H){hi(this);var C=H.localName,S;C?C.indexOf("-")>-1?S=C:S=H.getAttribute&&H.getAttribute("is")||"":S=H.is;C=e50[S];if(!(C&&dei(C)!==""||!C||GlU(C))){if(GlU(C)||C._applyShimValidatingVersion!==C._applyShimNextVersion)this.prepareTemplate(C,S),vSU(C);if(H=H.shadowRoot)if(H=H.querySelector("style"))H.__cssRules=C._styleAst,H.textContent=VMi(C._styleAst)}};
_.F.styleDocument=function(H){hi(this);this.styleSubtree(document.body,H)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var nH=new nF1,rGM=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(H,C){nH.flushCustomStyles();nH.prepareTemplate(H,C)},
prepareTemplateStyles:function(H,C,S){window.ShadyCSS.prepareTemplate(H,C,S)},
prepareTemplateDom:function(){},
styleSubtree:function(H,C){nH.flushCustomStyles();nH.styleSubtree(H,C)},
styleElement:function(H){nH.flushCustomStyles();nH.styleElement(H)},
styleDocument:function(H){nH.flushCustomStyles();nH.styleDocument(H)},
getComputedStyleValue:function(H,C){return H5i(H,C)},
flushCustomStyles:function(){nH.flushCustomStyles()},
nativeCss:lsU,nativeShadow:wui,cssBuild:AJ,disableRuntime:swi};rGM&&(window.ShadyCSS.CustomStyleInterface=rGM)}window.ShadyCSS.ApplyShim=kg;var Bmb;Bmb=window.ShadyCSS;_.re=TT(function(H){H=YxU(y_(H));var C=LFi?H:OfP(H),S=XU1(C),w={x:"pan-x",y:"pan-y",none:"none",all:"auto"};H=function(){return C.call(this)||this};
_.G(H,C);H.prototype.created=function(){};
H.prototype.__attributeReaction=function(A,J,c){(this.__dataAttributes&&this.__dataAttributes[A]||A==="disable-upgrade")&&this.attributeChangedCallback(A,J,c,null)};
H.prototype.setAttribute=function(A,J){if(NBd&&!this._legacyForceObservedAttributes){var c=this.getAttribute(A);C.prototype.setAttribute.call(this,A,J);this.__attributeReaction(A,c,String(J))}else C.prototype.setAttribute.call(this,A,J)};
H.prototype.removeAttribute=function(A){if(NBd&&!this._legacyForceObservedAttributes){var J=this.getAttribute(A);C.prototype.removeAttribute.call(this,A);this.__attributeReaction(A,J,null)}else C.prototype.removeAttribute.call(this,A)};
H.prototype._enableProperties=function(){this.__isUpgradeDisabled||C.prototype._enableProperties.call(this)};
H.prototype._canApplyPropertyDefault=function(A){return C.prototype._canApplyPropertyDefault.call(this,A)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(A))};
H.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(C.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
H.prototype.attached=function(){};
H.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(C.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
H.prototype.detached=function(){};
H.prototype.attributeChangedCallback=function(A,J,c,Y){J!==c&&(A=="disable-upgrade"?this.__isUpgradeDisabled&&c==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.v5)(this).isConnected&&this.connectedCallback()):(C.prototype.attributeChangedCallback.call(this,A,J,c,Y),this.attributeChanged(A,J,c)))};
H.prototype.attributeChanged=function(){};
H.prototype._initializeProperties=function(){if(gd&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var A=Object.getPrototypeOf(this);A.hasOwnProperty("__hasRegisterFinished")||(this._registered(),A.__hasRegisterFinished=!0);C.prototype._initializeProperties.call(this);this.root=this;this.created();NBd&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
H.prototype._takeAttributes=function(){for(var A=this.attributes,J=0,c=A.length;J<c;J++){var Y=A[J];this.__attributeReaction(Y.name,null,Y.value)}};
H.prototype._registered=function(){};
H.prototype.ready=function(){this._ensureAttributes();C.prototype.ready.call(this)};
H.prototype._ensureAttributes=function(){};
H.prototype._applyListeners=function(){};
H.prototype.serialize=function(A){return this._serializeValue(A)};
H.prototype.deserialize=function(A,J){return this._deserializeValue(A,J)};
H.prototype.reflectPropertyToAttribute=function(A,J,c){this._propertyToAttribute(A,J,c)};
H.prototype.serializeValueToAttribute=function(A,J,c){this._valueToNodeAttribute(c||this,A,J)};
H.prototype.extend=function(A,J){if(!A||!J)return A||J;for(var c=Object.getOwnPropertyNames(J),Y=0,M=void 0;Y<c.length&&(M=c[Y]);Y++){var m=Object.getOwnPropertyDescriptor(J,M);m&&Object.defineProperty(A,M,m)}return A};
H.prototype.mixin=function(A,J){for(var c in J)A[c]=J[c];return A};
H.prototype.chainObject=function(A,J){A&&J&&A!==J&&(A.__proto__=J);return A};
H.prototype.instanceTemplate=function(A){A=this.constructor._contentForTemplate(A);return document.importNode(A,!0)};
H.prototype.fire=function(A,J,c){c=c||{};J=J===null||J===void 0?{}:J;A=new Event(A,{bubbles:c.bubbles===void 0?!0:c.bubbles,cancelable:!!c.cancelable,composed:c.composed===void 0?!0:c.composed});A.detail=J;(0,_.v5)(c.node||this).dispatchEvent(A);return A};
H.prototype.listen=function(A,J,c){A=A||this;var Y=this.__boundListeners||(this.__boundListeners=new WeakMap),M=Y.get(A);M||(M={},Y.set(A,M));Y=J+c;M[Y]||(M[Y]=this._addMethodEventListenerToNode(A,J,c,this))};
H.prototype.unlisten=function(A,J,c){A=A||this;var Y=this.__boundListeners&&this.__boundListeners.get(A);c=J+c;var M=Y&&Y[c];M&&(this._removeEventListenerFromNode(A,J,M),Y[c]=null)};
H.prototype.setScrollDirection=function(A,J){_.B5(J||this,w[A]||"auto")};
H.prototype.$$=function(A){return this.root.querySelector(A)};
H.prototype.distributeContent=function(){var A=_.PM(this);window.ShadyDOM&&A.shadowRoot&&ShadyDOM.flush()};
H.prototype.getEffectiveChildNodes=function(){return _.PM(this).getEffectiveChildNodes()};
H.prototype.queryDistributedElements=function(A){return _.PM(this).queryDistributedElements(A)};
H.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(A){return A.nodeType===Node.ELEMENT_NODE})};
H.prototype.getEffectiveTextContent=function(){for(var A=this.getEffectiveChildNodes(),J=[],c=0,Y;Y=A[c];c++)Y.nodeType!==Node.COMMENT_NODE&&J.push(Y.textContent);return J.join("")};
H.prototype.queryEffectiveChildren=function(A){return(A=this.queryDistributedElements(A))&&A[0]};
H.prototype.queryAllEffectiveChildren=function(A){return this.queryDistributedElements(A)};
H.prototype.getContentChildNodes=function(A){return(A=this.root.querySelector(A||"slot"))?_.PM(A).getDistributedNodes():[]};
H.prototype.getContentChildren=function(A){return this.getContentChildNodes(A).filter(function(J){return J.nodeType===Node.ELEMENT_NODE})};
H.prototype.isLightDescendant=function(A){return this!==A&&(0,_.v5)(this).contains(A)&&(0,_.v5)(this).getRootNode()===(0,_.v5)(A).getRootNode()};
H.prototype.isLocalDescendant=function(A){return this.root===(0,_.v5)(A).getRootNode()};
H.prototype.scopeSubtree=function(A,J){return FJ$(A,J===void 0?!1:J)};
H.prototype.getComputedStyleValue=function(A){return Bmb.getComputedStyleValue(this,A)};
H.prototype.debounce=function(A,J,c){this._debouncers=this._debouncers||{};return this._debouncers[A]=_.vW(this._debouncers[A],c>0?_.qZ.after(c):tP,J.bind(this))};
H.prototype.isDebouncerActive=function(A){this._debouncers=this._debouncers||{};A=this._debouncers[A];return!(!A||!A.isActive())};
H.prototype.flushDebouncer=function(A){this._debouncers=this._debouncers||{};(A=this._debouncers[A])&&A.flush()};
H.prototype.cancelDebouncer=function(A){this._debouncers=this._debouncers||{};(A=this._debouncers[A])&&A.cancel()};
H.prototype.async=function(A,J){return J>0?_.qZ.run(A.bind(this),J):~tP.run(A.bind(this))};
H.prototype.cancelAsync=function(A){A<0?tP.cancel(~A):_.qZ.cancel(A)};
H.prototype.create=function(A,J){A=document.createElement(A);if(J)if(A.setProperties)A.setProperties(J);else for(var c in J)A[c]=J[c];return A};
H.prototype.elementMatches=function(A,J){return EFd(J||this,A)};
H.prototype.toggleAttribute=function(A,J){var c=this;arguments.length===3&&(c=arguments[2]);arguments.length==1&&(J=!c.hasAttribute(A));if(J)return(0,_.v5)(c).setAttribute(A,""),!0;(0,_.v5)(c).removeAttribute(A);return!1};
H.prototype.toggleClass=function(A,J,c){c=c||this;arguments.length==1&&(J=!c.classList.contains(A));J?c.classList.add(A):c.classList.remove(A)};
H.prototype.transform=function(A,J){J=J||this;J.style.webkitTransform=A;J.style.transform=A};
H.prototype.translate3d=function(A,J,c,Y){this.transform("translate3d("+A+","+J+","+c+")",Y||this)};
H.prototype.arrayDelete=function(A,J){if(Array.isArray(A)){if(J=A.indexOf(J),J>=0)return A.splice(J,1)}else if(J=uy(this,A).indexOf(J),J>=0)return this.splice(A,J,1);return null};
H.prototype._logger=function(A,J){Array.isArray(J)&&J.length===1&&Array.isArray(J[0])&&(J=J[0]);switch(A){case "log":case "warn":case "error":console[A].apply(console,_.k$(J))}};
H.prototype._log=function(){this._logger("log",_.tc.apply(0,arguments))};
H.prototype._warn=function(){this._logger("warn",_.tc.apply(0,arguments))};
H.prototype._error=function(){this._logger("error",_.tc.apply(0,arguments))};
H.prototype._logf=function(A){return["[%s::%s]",this.is,A].concat(_.k$(_.tc.apply(1,arguments)))};
_.JJ.Object.defineProperties(H.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var A=(0,_.v5)(this).getRootNode();return A instanceof DocumentFragment?A.host:A}}});
_.JJ.Object.defineProperties(H,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return NBd&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],JNi(this.prototype)),this.__observedAttributes):S.call(this).concat("disable-upgrade")}}});
H.prototype.is="";return H});Polymer.FlattenedNodesObserver=yGV;Polymer.DomApi=fo_;Polymer.EventApi=PW;Polymer.dom=_.PM;Polymer.dom.matchesSelector=EFd;Polymer.dom.flush=_.XL;Polymer.dom.addDebouncer=_.lk;Polymer.DirMixin=OfP;Polymer.RenderStatus={beforeNextRender:_.w80,afterNextRender:_.wM,flush:function(){for(;SvZ.length||jj.length;)C7p(SvZ),C7p(jj);sk=!1}};Polymer.LegacyElementMixin=_.re;var D57;D57=oF._mutablePropertyChange;var K6d={properties:{mutableData:Boolean},_shouldPropertyChange:function(H,C,S){return D57(this,H,C,S,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(H,C,S){return D57(this,H,C,S,!0)}};
Polymer.OptionalMutableDataBehavior=K6d;var P7$={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},nSu={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},h57=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},nSu),ttn=(0,_.re)(HTMLElement),PI0=function(H,C){H||console.warn("Polymer.Class requires `info` argument");C=C?C(ttn):ttn;C=rlE(H,C,H.behaviors);C.is=C.prototype.is=
H.is;return C};Polymer.Class=PI0;Polymer.mixinBehaviors=function(H,C){return rlE({},(0,_.re)(C),H)};
Polymer.GenerateClassFromInfo=rlE;_.hr=function(H){var C=typeof H==="function"?H:_.hr.Class(H);H._legacyForceObservedAttributes&&(C.prototype._legacyForceObservedAttributes=H._legacyForceObservedAttributes);customElements.define(C.is,C);return C};
_.hr.Class=PI0;Polymer._polymerFn=_.hr;var L6W=window.onLegacyPolymerFunctionDefinedCallback;L6W&&L6W();var pBi={templatize:function(H,C){this._templatizerTemplate=H;this.ctor=Iq(H,this,{mutableData:!!C,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(H){return new this.ctor(H)},
modelForElement:function(H){return IhE(this._templatizerTemplate,H)}};Polymer.Templatizer=pBi;_.BW=(0,_.re)(HTMLElement).prototype;Polymer.Base=_.BW;var De6=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.Fj=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.G(_.Fj,PolymerFakeBaseClass);var Zg=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.G(Zg,PolymerFakeBaseClass);var KJi=Symbol("Rd"),xeu=[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 gF1=gF1||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},U57;(function(H){function C(L,t,g){var ii=R.get(L);if(!ii){if(!g)return;ii=new p;R.set(L,ii)}L=ii.get(t);if(!L){if(!g)return;L=new p;ii.set(t,L)}return L}
function S(L,t,g){if(w(L,t,g))return!0;t=N(t);return t!==null?S(L,t,g):!1}
function w(L,t,g){t=C(t,g,!1);return t===void 0?!1:!!t.has(L)}
function A(L,t,g){if(w(L,t,g))return J(L,t,g);t=N(t);if(t!==null)return A(L,t,g)}
function J(L,t,g){t=C(t,g,!1);if(t!==void 0)return t.get(L)}
function c(L,t){var g=Y(L,t);L=N(L);if(L===null)return g;var ii=c(L,t);if(ii.length<=0)return g;if(g.length<=0)return ii;t=new k;L=[];g=_.Z(g);for(var FW=g.next();!FW.done;FW=g.next())FW=FW.value,t.has(FW)||(t.add(FW),L.push(FW));g=_.Z(ii);for(ii=g.next();!ii.done;ii=g.next())ii=ii.value,t.has(ii)||(t.add(ii),L.push(ii));return L}
function Y(L,t){L=C(L,t,!1);var g=[];L&&L.forEach(function(ii,FW){return g.push(FW)});
return g}
function M(L){return L===void 0}
function m(L){return typeof L==="object"?L!==null:typeof L==="function"}
function W(L){return typeof L==="function"}
function y(L){return typeof L==="symbol"?L:String(L)}
function N(L){var t=Object.getPrototypeOf(L);if(typeof L!=="function"||L===d||t!==d)return t;var g=Object.getPrototypeOf(L.prototype);if(g==null||g===Object.prototype)return t;g=g.constructor;return typeof g!=="function"||g===L?t:g}
function b(){function L(){this._keys=[];this._values=[];this._cache=t}
var t={};L.prototype={get size(){return this._keys.length},has:function(g){return g===this._cache?!0:this._find(g)>=0?(this._cache=g,!0):!1},
get:function(g){var ii=this._find(g);if(ii>=0)return this._cache=g,this._values[ii]},
set:function(g,ii){this.delete(g);this._keys.push(g);this._values.push(ii);this._cache=g;return this},
delete:function(g){g=this._find(g);return g>=0?(this._keys.splice(g,1),this._values.splice(g,1),this._cache=t,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=t},
forEach:function(g){for(var ii=this.size,FW=0;FW<ii;++FW){var cZ=this._keys[FW],eZ=this._values[FW];this._cache=cZ;g.call(this,eZ,cZ,this)}},
_find:function(g){for(var ii=this._keys,FW=ii.length,cZ=0;cZ<FW;++cZ)if(ii[cZ]===g)return cZ;return-1}};
return L}
function u(){function L(){this._map=new p}
L.prototype={get size(){return this._map.length},has:function(t){return this._map.has(t)},
add:function(t){this._map.set(t,t);return this},
delete:function(t){return this._map.delete(t)},
clear:function(){this._map.clear()},
forEach:function(t,g){this._map.forEach(t,g)}};
return L}
function O(){function L(){this._key=g()}
function t(bi,pU){for(var O$=0;O$<pU;++O$)bi[O$]=Math.random()*255|0}
function g(){do{if(FW)var bi=FW.randomBytes(16);else typeof Uint8Array==="function"?(bi=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(bi):t(bi,16)):(bi=Array(16),t(bi,16));bi[6]=bi[6]&79|64;bi[8]=bi[8]&191|128;for(var pU="",O$=0;O$<16;++O$){var R0=bi[O$];if(O$===4||O$===6||O$===8)pU+="-";R0<16&&(pU+="0");pU+=R0.toString(16).toLowerCase()}bi="@@WeakMap@@"+pU}while(cZ.call(eZ,bi));eZ[bi]=!0;return bi}
function ii(bi,pU){if(!cZ.call(bi,ND)){if(!pU)return;Object.defineProperty(bi,ND,{value:Object.create(null)})}return bi[ND]}
var FW=typeof global!=="undefined"&&typeof gF1==="object"&&typeof require==="function"&&require("crypto"),cZ=Object.prototype.hasOwnProperty,eZ={},ND=g();L.prototype={has:function(bi){return(bi=ii(bi,!1))?this._key in bi:!1},
get:function(bi){if(bi=ii(bi,!1))return bi[this._key]},
set:function(bi,pU){ii(bi,!0)[this._key]=pU;return this},
delete:function(bi){return(bi=ii(bi,!1))&&this._key in bi?delete bi[this._key]:!1},
clear:function(){this._key=g()}};
return L}
var d=Object.getPrototypeOf(Function),p=typeof Map==="function"?Map:b(),k=typeof Set==="function"?Set:u(),R=new (typeof WeakMap==="function"?WeakMap:O());H.decorate=function(L,t,g,ii){if(M(ii)){if(M(g)){if(!Array.isArray(L))throw new TypeError;if(!W(t))throw new TypeError;for(g=L.length-1;g>=0;--g)if(ii=(0,L[g])(t),!M(ii)){if(!W(ii))throw new TypeError;t=ii}return t}if(!Array.isArray(L))throw new TypeError;if(!m(t))throw new TypeError;g=y(g);for(ii=L.length-1;ii>=0;--ii)(0,L[ii])(t,g)}else{if(Array.isArray(L))if(m(t)){if(M(g))throw new TypeError;
if(!m(ii))throw new TypeError;}else throw new TypeError;else throw new TypeError;g=y(g);for(var FW=L.length-1;FW>=0;--FW){var cZ=(0,L[FW])(t,g,ii);if(!M(cZ)){if(!m(cZ))throw new TypeError;ii=cZ}}return ii}};
H.metadata=function(L,t){return function(g,ii){if(M(ii)){if(!W(g))throw new TypeError;C(g,void 0,!0).set(L,t)}else{if(!m(g))throw new TypeError;ii=y(ii);C(g,ii,!0).set(L,t)}}};
H.defineMetadata=function(L,t){var g;if(m(t))M(g)||(g=y(g));else throw new TypeError;C(t,g,!0).set("parameters",L)};
H.hasMetadata=function(L,t,g){if(m(t))M(g)||(g=y(g));else throw new TypeError;return S(L,t,g)};
H.hasOwnMetadata=function(L,t,g){if(m(t))M(g)||(g=y(g));else throw new TypeError;return w(L,t,g)};
H.getMetadata=function(L,t,g){if(m(t))M(g)||(g=y(g));else throw new TypeError;return A(L,t,g)};
H.getOwnMetadata=function(L,t,g){if(m(t))M(g)||(g=y(g));else throw new TypeError;return J(L,t,g)};
H.getMetadataKeys=function(L,t){if(m(L))M(t)||(t=y(t));else throw new TypeError;return c(L,t)};
H.getOwnMetadataKeys=function(L,t){if(m(L))M(t)||(t=y(t));else throw new TypeError;return Y(L,t)};
H.deleteMetadata=function(L,t,g){if(m(t))M(g)||(g=y(g));else throw new TypeError;var ii=C(t,g,!1);if(!M(ii)){if(!ii.delete(L))return!1;if(ii.size>0)return!0;L=R.get(t);L.delete(g);if(L.size>0)return!0;R.delete(t);return!0}};
(function(L){if(typeof L.Reflect!=="undefined"){if(L.Reflect!==H)for(var t in H)L.Reflect[t]=H[t]}else L.Reflect=H})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(U57||(U57={}));var bJ7=self;var RuP=[0,_.i7,_.sv,_.i7];var Iod=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(Iod,_.Jc);var ao7=_.WV(Iod,[0,_.oOi,_.Al,RuP,_.sv,_.Fi]);_.Zh(_.cM,_.Op);_.F=_.cM.prototype;_.F.start=function(){this.stop();this.usingListeners_=!1;var H=x5U(this),C=HxU(this);H&&!C&&this.JSC$11327_win_.mozRequestAnimationFrame?(this.JSC$11327_id_=_.PI(this.JSC$11327_win_,"MozBeforePaint",this.callback_),this.JSC$11327_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11327_id_=H&&C?H.call(this.JSC$11327_win_,this.callback_):this.JSC$11327_win_.setTimeout(DiY(this.callback_),20)};
_.F.stop=function(){if(this.isActive()){var H=x5U(this),C=HxU(this);H&&!C&&this.JSC$11327_win_.mozRequestAnimationFrame?XH(this.JSC$11327_id_):H&&C?C.call(this.JSC$11327_win_,this.JSC$11327_id_):this.JSC$11327_win_.clearTimeout(this.JSC$11327_id_)}this.JSC$11327_id_=null};
_.F.fire=function(){this.stop();this.JSC$11329_doAction_()};
_.F.isActive=function(){return this.JSC$11327_id_!=null};
_.F.JSC$11329_doAction_=function(){this.usingListeners_&&this.JSC$11327_id_&&XH(this.JSC$11327_id_);this.JSC$11327_id_=null;this.JSC$11327_listener_.call(this.handler_,_.FF())};
_.F.disposeInternal=function(){this.stop();_.cM.superClass_.disposeInternal.call(this)};
var x5U=function(H){H=H.JSC$11327_win_;return H.requestAnimationFrame||H.webkitRequestAnimationFrame||H.mozRequestAnimationFrame||H.oRequestAnimationFrame||H.msRequestAnimationFrame||null},HxU=function(H){H=H.JSC$11327_win_;
return H.cancelAnimationFrame||H.cancelRequestAnimationFrame||H.webkitCancelRequestAnimationFrame||H.mozCancelRequestAnimationFrame||H.oCancelRequestAnimationFrame||H.msCancelRequestAnimationFrame||null};_.I$=function(H,C,S){_.Op.call(this);this.JSC$11330_listener_=S!=null?H.bind(S):H;this.JSC$11330_interval_=C;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11330_timer_=null};
_.G(_.I$,_.Op);_.F=_.I$.prototype;_.F.fire=function(H){this.args_=arguments;this.JSC$11330_timer_||this.pauseCount_?this.shouldFire_=!0:ixU(this)};
_.F.stop=function(){this.JSC$11330_timer_&&(_.s$.clearTimeout(this.JSC$11330_timer_),this.JSC$11330_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.F.pause=function(){this.pauseCount_++};
_.F.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11330_timer_||(this.shouldFire_=!1,ixU(this))};
_.F.disposeInternal=function(){_.Op.prototype.disposeInternal.call(this);this.stop()};
var ixU=function(H){H.JSC$11330_timer_=BC(function(){H.JSC$11330_timer_=null;H.shouldFire_&&!H.pauseCount_&&(H.shouldFire_=!1,ixU(H))},H.JSC$11330_interval_);
var C=H.args_;H.args_=null;H.JSC$11330_listener_.apply(null,C)};var CAd=function(H,C){this.childIterator_=H[_.s$.Symbol.iterator]();this.mapFn_=C};
CAd.prototype[Symbol.iterator]=function(){return this};
CAd.prototype.next=function(){var H=this.childIterator_.next();return{value:H.done?void 0:this.mapFn_.call(void 0,H.value),done:H.done}};
var SdU=function(H,C){return new CAd(H,C)};var sZY={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 x6$=function(H){var C=jZb(H);if(!C)throw Error("Vd`"+H);return C},jZb=function(H){var C={};
H=String(H);var S=H.charAt(0)=="#"?H:"#"+H;if(wY7.test(S))return C.hex=Ldi(S),C.type="hex",C;S=Sqp(H);return S.length?(C.hex=kui(S[0],S[1],S[2]),C.type="rgb",C):sZY&&(H=sZY[H.toLowerCase()])?(C.hex=H,C.type="named",C):null},Ard=/#(.)(.)(.)/,Ldi=function(H){if(!wY7.test(H))throw Error("Xd`"+H);
H.length==4&&(H=H.replace(Ard,"#$1$1$2$2$3$3"));return H.toLowerCase()},H0V=function(H){H=Ldi(H);
H=parseInt(H.slice(1),16);return[H>>16,H>>8&255,H&255]},kui=function(H,C,S){H=Number(H);
C=Number(C);S=Number(S);if(H!=(H&255)||C!=(C&255)||S!=(S&255))throw Error("Yd`"+H+"`"+C+"`"+S);C=H<<16|C<<8|S;return H<16?"#"+(16777216|C).toString(16).slice(1):"#"+C.toString(16)},wY7=/^#(?:[0-9a-f]{3}){1,2}$/i,Jrn=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,Sqp=function(H){var C=H.match(Jrn);
if(C){H=Number(C[1]);var S=Number(C[2]);C=Number(C[3]);if(H>=0&&H<=255&&S>=0&&S<=255&&C>=0&&C<=255)return[H,S,C]}return[]};var FYV={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},Ej=FYV;Ej=FYV;var $uW,Zxb,crd;$uW=function(H,C){switch(C){case 1:return H%4!=0||H%100==0&&H%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
Zxb=function(H,C,S,w,A){H=new Date(H,C,S);A=A||0;return H.valueOf()+(((w!==void 0?w:3)-A+7)%7-((H.getDay()+6)%7-A+7)%7)*864E5};
_.DJ=function(H,C,S){typeof H==="number"?(this.date=crd(H,C||0,S||1),Ydn(this,S||1)):_.U$(H)?(this.date=crd(H.getFullYear(),H.getMonth(),H.getDate()),Ydn(this,H.getDate())):(this.date=new Date(_.FF()),H=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),Ydn(this,H))};
crd=function(H,C,S){C=new Date(H,C,S);H>=0&&H<100&&C.setFullYear(C.getFullYear()-1900);return C};
_.F=_.DJ.prototype;_.F.firstDayOfWeek_=Ej.FIRSTDAYOFWEEK;_.F.firstWeekCutOffDay_=Ej.FIRSTWEEKCUTOFFDAY;_.F.clone=function(){var H=new _.DJ(this.date);H.firstDayOfWeek_=this.firstDayOfWeek_;H.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return H};
_.F.getFullYear=function(){return this.date.getFullYear()};
_.F.getYear=function(){return this.getFullYear()};
_.F.getMonth=function(){return this.date.getMonth()};
_.F.getDate=function(){return this.date.getDate()};
_.F.getTime=function(){return this.date.getTime()};
_.F.getDay=function(){return this.date.getDay()};
_.F.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.F.getUTCMonth=function(){return this.date.getUTCMonth()};
_.F.getUTCDate=function(){return this.date.getUTCDate()};
_.F.getUTCDay=function(){return this.date.getDay()};
_.F.getUTCHours=function(){return this.date.getUTCHours()};
_.F.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.F.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.F.set=function(H){this.date=new Date(H.getFullYear(),H.getMonth(),H.getDate())};
_.F.setFullYear=function(H){this.date.setFullYear(H)};
_.F.setYear=function(H){this.setFullYear(H)};
_.F.setMonth=function(H){this.date.setMonth(H)};
_.F.setDate=function(H){this.date.setDate(H)};
_.F.setTime=function(H){this.date.setTime(H)};
_.F.setUTCFullYear=function(H){this.date.setUTCFullYear(H)};
_.F.setUTCMonth=function(H){this.date.setUTCMonth(H)};
_.F.setUTCDate=function(H){this.date.setUTCDate(H)};
_.F.add=function(H){if(H.years||H.months){var C=this.getMonth()+H.months+H.years*12,S=this.getYear()+Math.floor(C/12);C%=12;C<0&&(C+=12);var w=Math.min($uW(S,C),this.getDate());this.setDate(1);this.setFullYear(S);this.setMonth(C);this.setDate(w)}H.days&&(S=this.getYear(),C=S>=0&&S<=99?-1900:0,H=new Date((new Date(S,this.getMonth(),this.getDate(),12)).getTime()+H.days*864E5),this.setDate(1),this.setFullYear(H.getFullYear()+C),this.setMonth(H.getMonth()),this.setDate(H.getDate()),Ydn(this,H.getDate()))};
_.F.JSC$11343_toIsoString=function(H){var C=this.getFullYear(),S=C<0?"-":C>=1E4?"+":"";return[S+_.Tl(Math.abs(C),S?6:4),_.Tl(this.getMonth()+1,2),_.Tl(this.getDate(),2)].join(H?"-":"")};
_.F.equals=function(H){return!(!H||this.getYear()!=H.getYear()||this.getMonth()!=H.getMonth()||this.getDate()!=H.getDate())};
_.F.toString=function(){return this.JSC$11343_toIsoString()};
var Ydn=function(H,C){H.getDate()!=C&&H.date.setUTCHours(H.date.getUTCHours()+(H.getDate()<C?1:-1))};
_.DJ.prototype.valueOf=function(){return this.date.valueOf()};var ti=function(H,C,S,w,A){this.reversed=!!C;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!S;H&&KH(this,H,w);this.depth=A!=void 0?A:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.Zh(ti,uM);var KH=function(H,C,S,w){if(H.node=C)H.tagType=typeof S==="number"?S:H.node.nodeType!=1?0:H.reversed?-1:1;typeof w==="number"&&(H.depth=w)};
_.F=ti.prototype;_.F.JSC$11358_copyFrom=function(H){this.node=H.node;this.tagType=H.tagType;this.depth=H.depth;this.reversed=H.reversed;this.constrained=H.constrained};
_.F.clone=function(){return new ti(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.F.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return G$;var H=this.node;var C=this.reversed?-1:1;if(this.tagType==C){var S=this.reversed?H.lastChild:H.firstChild;S?KH(this,S):KH(this,H,C*-1)}else(S=this.reversed?H.previousSibling:H.nextSibling)?KH(this,S):KH(this,H.parentNode,C*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(H=this.node)?f3(H):G$};
_.F.equals=function(H){return H.node==this.node&&(!this.node||H.tagType==this.tagType)};
_.F.splice=function(H){var C=this.node,S=this.reversed?1:-1;this.tagType==S&&(this.tagType=S*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;ti.prototype.next.call(this);this.reversed=!this.reversed;S=_.Dw(arguments[0])?arguments[0]:arguments;for(var w=S.length-1;w>=0;w--)_.Li(S[w],C);_.f6(C)};var zKd=function(){},LH=function(H){for(var C=[],S=H.getTextRangeCount(),w=0;w<S;w++)C.push(H.getTextRange(w));
return C};
zKd.prototype.isReversed=function(){return!1};
zKd.prototype.getWindow=function(){return Bj(_.D9(this.JSC$11360_getStartNode()))};
var MsV=function(H,C){ti.call(this,H,C,!0)};
_.Zh(MsV,ti);var ge=function(H,C,S,w,A){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!A;if(H){this.startNode_=H;this.startOffset_=C;this.endNode_=S;this.endOffset_=w;if(H.nodeType==1&&H.tagName!="BR")if(H=H.childNodes,C=H[C])this.startNode_=C,this.startOffset_=0;else{H.length&&(this.startNode_=_.du(H));var J=!0}S.nodeType==1&&((this.endNode_=S.childNodes[w])?this.endOffset_=0:this.endNode_=S)}ti.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);J&&this.next()};
_.Zh(ge,MsV);_.F=ge.prototype;_.F.JSC$11366_getStartNode=function(){return this.startNode_};
_.F.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)};
_.F.next=function(){return this.isLast()?G$:ge.superClass_.next.call(this)};
_.F.JSC$11358_copyFrom=function(H){this.startNode_=H.startNode_;this.endNode_=H.endNode_;this.startOffset_=H.startOffset_;this.endOffset_=H.endOffset_;this.isReversed_=H.isReversed_;ge.superClass_.JSC$11358_copyFrom.call(this,H)};
_.F.clone=function(){var H=new ge(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);H.JSC$11358_copyFrom(this);return H};var qdV=function(){};
qdV.prototype.__iterator__=function(){return new ge(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var US=function(H){this.range_=H};
_.Zh(US,qdV);var TEM=function(H){var C=_.D9(H).createRange();if(H.nodeType==3)C.setStart(H,0),C.setEnd(H,H.length);else if(Ds(H)||H.nodeType==3){for(var S,w=H;(S=w.firstChild)&&(Ds(S)||S.nodeType==3);)w=S;C.setStart(w,0);for(w=H;(S=w.lastChild)&&(Ds(S)||S.nodeType==3);)w=S;C.setEnd(w,w.nodeType==1?w.childNodes.length:w.length)}else S=H.parentNode,H=Array.prototype.indexOf.call(S.childNodes,H),C.setStart(S,H),C.setEnd(S,H+1);return C},mTV=function(H,C,S,w){var A=_.D9(H).createRange();
A.setStart(H,C);A.setEnd(S,w);return A};
_.F=US.prototype;_.F.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.F.getContainer=function(){return this.range_.commonAncestorContainer};
_.F.compareBrowserRangeEndpoints=function(H,C,S){return this.range_.compareBoundaryPoints(S==1?C==1?_.s$.Range.START_TO_START:_.s$.Range.START_TO_END:C==1?_.s$.Range.END_TO_START:_.s$.Range.END_TO_END,H)};
_.F.isCollapsed=function(){return this.range_.collapsed};
_.F.select=function(H){this.selectInternal(Bj(_.D9(this.range_.startContainer)).getSelection(),H)};
_.F.selectInternal=function(H){H.removeAllRanges();H.addRange(this.range_)};
_.F.insertNode=function(H,C){var S=this.range_.cloneRange();S.collapse(C);S.insertNode(H);S.detach();return H};
_.F.collapse=function(H){this.range_.collapse(H)};_.Zh(Y_,US);Y_.prototype.selectInternal=function(H,C){!C||this.isCollapsed()?Y_.superClass_.selectInternal.call(this,H,C):(H.collapse(this.range_.endContainer,this.range_.endOffset),H.extend(this.range_.startContainer,this.range_.startOffset))};_.Zh(zc,US);zc.prototype.compareBrowserRangeEndpoints=function(H,C,S){return zc.superClass_.compareBrowserRangeEndpoints.call(this,H,C,S)};
zc.prototype.selectInternal=function(H,C){C?H.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):H.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var WYd=function(H){return _.Tt?new zc(H):_.qy?new Y_(H):new US(H)};var RF=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},yrd;
_.Zh(RF,zKd);yrd=function(H,C){var S=new RF;S.browserRangeWrapper_=H;S.isReversed_=!!C;return S};
_.NEU=function(H){H=_.Tt?new zc(TEM(H)):_.qy?new Y_(TEM(H)):new US(TEM(H));return yrd(H)};
_.IF=function(H,C,S,w){var A=new RF;A.isReversed_=bx1(H,C,S,w);if(_.jr(H)&&!Ds(H)){var J=H.parentNode;C=Array.prototype.indexOf.call(J.childNodes,H);H=J}_.jr(S)&&!Ds(S)&&(J=S.parentNode,w=Array.prototype.indexOf.call(J.childNodes,S),S=J);A.isReversed_?(A.startNode_=S,A.startOffset_=w,A.endNode_=H,A.endOffset_=C):(A.startNode_=H,A.startOffset_=C,A.endNode_=S,A.endOffset_=w);return A};
_.F=RF.prototype;_.F.clone=function(){var H=new RF;H.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();H.startNode_=this.startNode_;H.startOffset_=this.startOffset_;H.endNode_=this.endNode_;H.endOffset_=this.endOffset_;H.isReversed_=this.isReversed_;return H};
_.F.JSC$11360_getType=function(){return"text"};
_.F.getBrowserRangeObject=function(){return aF(this).range_};
_.F.getTextRangeCount=function(){return 1};
_.F.getTextRange=function(){return this};
var aF=function(H){var C;if(!(C=H.browserRangeWrapper_)){C=H.JSC$11360_getStartNode();var S=H.JSC$11360_getStartOffset(),w=H.JSC$11360_getEndNode(),A=H.JSC$11360_getEndOffset();C=_.Tt?new zc(mTV(C,S,w,A)):_.qy?new Y_(mTV(C,S,w,A)):new US(mTV(C,S,w,A));C=H.browserRangeWrapper_=C}return C};
_.F=RF.prototype;_.F.getContainer=function(){return aF(this).getContainer()};
_.F.JSC$11360_getStartNode=function(){return this.startNode_||(this.startNode_=aF(this).range_.startContainer)};
_.F.JSC$11360_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=aF(this).range_.startOffset};
_.F.JSC$11360_getEndNode=function(){return this.endNode_||(this.endNode_=aF(this).range_.endContainer)};
_.F.JSC$11360_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=aF(this).range_.endOffset};
_.F.isReversed=function(){return this.isReversed_};
_.F.JSC$11360_containsRange=function(H,C){if(H.JSC$11360_getType()=="text"){var S=aF(this);H=aF(H);C=C&&!H.isCollapsed();H=H.range_;S=C?S.compareBrowserRangeEndpoints(H,0,1)>=0&&S.compareBrowserRangeEndpoints(H,1,0)<=0:S.compareBrowserRangeEndpoints(H,0,0)>=0&&S.compareBrowserRangeEndpoints(H,1,1)<=0}else S=!1;return S};
_.F.isCollapsed=function(){return aF(this).isCollapsed()};
_.F.JSC$11360_getText=function(){return aF(this).range_.toString()};
_.F.__iterator__=function(){return new ge(this.JSC$11360_getStartNode(),this.JSC$11360_getStartOffset(),this.JSC$11360_getEndNode(),this.JSC$11360_getEndOffset())};
_.F.select=function(){aF(this).select(this.isReversed_)};
_.F.JSC$11360_removeContents=function(){var H=aF(this).range_;H.extractContents();if(H.startContainer.hasChildNodes()&&(H=H.startContainer.childNodes[H.startOffset])){var C=H.previousSibling;BiU(H)==""&&_.f6(H);C&&BiU(C)==""&&_.f6(C)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.F.insertNode=function(H,C){H=aF(this).insertNode(H,C);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return H};
_.F.collapse=function(H){H=this.isReversed()?!H:H;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(H);H?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var Ez_=function(){};
_.Zh(Ez_,zKd);Ez_.prototype.JSC$11360_containsRange=function(H,C){var S=LH(this);H=LH(H);return(C?CC:_.ho6)(H,function(w){return CC(S,function(A){return A.JSC$11360_containsRange(w,C)})})};
Ez_.prototype.insertNode=function(H,C){C?_.tl(H,this.JSC$11360_getStartNode()):_.Li(H,this.JSC$11360_getEndNode());return H};var eKW,uJU=Ol().JSC$9339_document_.documentElement;eKW=uJU.requestFullscreen?"fullscreenchange":uJU.webkitRequestFullscreen?"webkitfullscreenchange":uJU.mozRequestFullScreen?"mozfullscreenchange":uJU.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var Gzd=function(){var H=Ol().JSC$9339_document_;return!!(H.webkitIsFullScreen||H.mozFullScreen||H.msFullscreenElement||H.fullscreenElement)};var xg=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.Zh(xg,Ez_);_.F=xg.prototype;_.F.clone=function(){var H=new xg;H.browserRanges_=_.BZ(this.browserRanges_);return H};
_.F.JSC$11360_getType=function(){return"mutli"};
_.F.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.F.getTextRangeCount=function(){return this.browserRanges_.length};
_.F.getTextRange=function(H){this.ranges_[H]||(this.ranges_[H]=yrd(WYd(this.browserRanges_[H])));return this.ranges_[H]};
_.F.getContainer=function(){if(!this.container_){for(var H=[],C=this.getTextRangeCount(),S=0;S<C;S++)H.push(this.getTextRange(S).getContainer());this.container_=Pp1.apply(null,H)}return this.container_};
var Ha=function(H){H.sortedRanges_||(H.sortedRanges_=LH(H),H.sortedRanges_.sort(function(C,S){var w=C.JSC$11360_getStartNode();C=C.JSC$11360_getStartOffset();var A=S.JSC$11360_getStartNode();S=S.JSC$11360_getStartOffset();return w==A&&C==S?0:bx1(w,C,A,S)?1:-1}));
return H.sortedRanges_};
_.F=xg.prototype;_.F.JSC$11360_getStartNode=function(){return Ha(this)[0].JSC$11360_getStartNode()};
_.F.JSC$11360_getStartOffset=function(){return Ha(this)[0].JSC$11360_getStartOffset()};
_.F.JSC$11360_getEndNode=function(){return _.du(Ha(this)).JSC$11360_getEndNode()};
_.F.JSC$11360_getEndOffset=function(){return _.du(Ha(this)).JSC$11360_getEndOffset()};
_.F.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.F.JSC$11360_getText=function(){return LH(this).map(function(H){return H.JSC$11360_getText()}).join("")};
_.F.__iterator__=function(){return new iD(this)};
_.F.select=function(){var H=this.getWindow().getSelection();H.removeAllRanges();for(var C=this.getTextRangeCount(),S=0;S<C;S++)H.addRange(this.getTextRange(S).getBrowserRangeObject())};
_.F.JSC$11360_removeContents=function(){LH(this).forEach(function(H){H.JSC$11360_removeContents()})};
_.F.collapse=function(H){if(!this.isCollapsed()){var C=H?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;C.collapse(H);this.ranges_=[C];this.sortedRanges_=[C];this.browserRanges_=[C.getBrowserRangeObject()]}};
var iD=function(H){this.iterators_=null;this.currentIdx_=0;H&&(this.iterators_=Ha(H).map(function(C){return _.p5n(C)}));
ti.call(this,H?this.JSC$11366_getStartNode():null,!1,!0)};
_.Zh(iD,MsV);_.F=iD.prototype;_.F.JSC$11366_getStartNode=function(){return this.iterators_[0].JSC$11366_getStartNode()};
_.F.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.F.next=function(){for(;this.currentIdx_<this.iterators_.length;){var H=this.iterators_[this.currentIdx_],C=H.next();if(C.done)this.currentIdx_++;else return KH(this,H.node,H.tagType,H.depth),C}return G$};
_.F.JSC$11358_copyFrom=function(H){this.iterators_=_.BZ(H.iterators_);iD.superClass_.JSC$11358_copyFrom.call(this,H)};
_.F.clone=function(){var H=new iD(null);H.JSC$11358_copyFrom(this);return H};var f2b,bx1;_.mR=function(){var H=window.getSelection();return H&&f2b(H)};
f2b=function(H){var C=!1;if(H.createRange)try{var S=H.createRange()}catch(A){return null}else if(H.rangeCount){if(H.rangeCount>1){S=new xg;C=H.rangeCount;for(var w=0;w<C;w++)S.browserRanges_.push(H.getRangeAt(w));return S}S=H.getRangeAt(0);C=bx1(H.anchorNode,H.anchorOffset,H.focusNode,H.focusOffset)}else return null;return yrd(WYd(S),C)};
_.Cl=function(H,C){return _.IF(H,C,H,C)};
_.Sc=function(H,C,S,w){return _.IF(H,C,S,w)};
bx1=function(H,C,S,w){if(H==S)return w<C;var A;if(H.nodeType==1&&C)if(A=H.childNodes[C])H=A,C=0;else if(_.gS(H,S))return!0;if(S.nodeType==1&&w)if(A=S.childNodes[w])S=A,w=0;else if(_.gS(S,H))return!1;return(d9P(H,S)||C-w)>0};var sQ=function(){_.ph.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.Xv)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.Xv)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.Xv)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.Xv)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.Xv)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.Xv)(this.dispatchProgressEvent_,this)};
_.Zh(sQ,_.ph);sQ.prototype.abort=function(){try{this.reader_.abort()}catch(H){throw new BvP(H,"aborting read");}};
sQ.prototype.getError=function(){return this.reader_.error&&new BvP(this.reader_.error,"reading file")};
sQ.prototype.dispatchProgressEvent_=function(H){this.dispatchEvent(new DKb(H,this))};
sQ.prototype.disposeInternal=function(){sQ.superClass_.disposeInternal.call(this);delete this.reader_};
var l2b=function(H){var C=new sQ,S=vzY(C);C.reader_.readAsArrayBuffer(H);return S},VsV=function(H){var C=new sQ,S=vzY(C);
C.reader_.readAsDataURL(H);return S},vzY=function(H){var C=new Jy;
H.listen("loadend",_.l9(function(S,w){var A=w.reader_.result,J=w.getError();A==null||J?S.errback(J):S.callback(A);w.dispose()},C,H));
return C};var jc=function(){_.ph.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11400_eventHandler_=new _.qQ(this);this.JSC$11400_isInitialized_=!1};
_.Zh(jc,_.ph);var ozW=new _.Ow("d"),Oxd=new _.Ow("beforedragstart"),XYd=new _.Ow("dragstart"),QZd=new _.Ow("beforedragmove"),dTY=new _.Ow("dragmove"),PAW=new _.Ow("beforedragend"),$Td=new _.Ow("dragend"),pY7=new _.Ow("e");jc.prototype.isDragging=function(){return!!this.JSC$11400_dragger_};
var kz_=function(H,C){C.dlgGrowthDirection_=0;C.dlgDragHoverClass_=void 0;C.dlgDragPermission=0;H.dragLists_.push(C)},hKU=function(H,C){H.getHandleForDragItem_=C};
jc.prototype.init=function(){if(!this.JSC$11400_isInitialized_){for(var H=this.dragLists_.length,C=0;C<H;C++)for(var S=_.g1(this.dragLists_[C]),w=S.length,A=0;A<w;++A){var J=S[A],c=this.getHandleForDragItem_(J),Y=_.I0(c);this.dragItemForHandle_[Y]=J;this.dragItemHoverClasses_&&(this.JSC$11400_eventHandler_.listen(J,"mouseover",this.handleDragItemMouseover_),this.JSC$11400_eventHandler_.listen(J,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11400_eventHandler_.listen(c,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11400_eventHandler_.listen(c,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(J);this.JSC$11400_eventHandler_.listen(c,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11400_isInitialized_=!0}};
jc.prototype.disposeInternal=function(){this.JSC$11400_eventHandler_.dispose();for(var H=this.dragLists_.length,C=0;C<H;C++){var S=this.dragLists_[C];S.dlgGrowthDirection_=void 0;S.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;nzd(this);jc.superClass_.disposeInternal.call(this)};
var rr7=function(H,C){for(var S=H.dragLists_.length,w=0;w<S;w++){var A=H.dragLists_[w];A.dlgBounds_=jYw(A)}S=H.dragItems_.length;for(w=0;w<S;w++)A=H.dragItems_[w],A!=C&&(A.dlgBounds_=jYw(A))};
_.F=jc.prototype;
_.F.handlePotentialDragStart_=function(H){var C=_.I0(H.currentTarget);C=this.dragItemForHandle_[C];if(C.parentElement.dlgDragPermission!=2){this.currDragItem_=C;a:{C=this.currDragItem_;for(var S=C.cloneNode(!0),w=vl("TEXTAREA",C),A=vl("TEXTAREA",S),J=0;J<w.length;J++)A[J].value=w[J].value;switch(C.tagName){case "TR":C=_.r1("TABLE",null,_.r1("TBODY",null,S));break a;case "TD":case "TH":C=_.r1("TABLE",null,_.r1("TBODY",null,_.r1("TR",null,S)));break a;case "TEXTAREA":S.value=C.value;default:C=S;break a}C=
void 0}this.draggerEl_=C;this.draggerElClasses_&&wa(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.D9(this.currDragItem_).body.appendChild(this.draggerEl_);S=_.KX(this.currDragItem_);C=this.draggerEl_;w=_.KX(C);if(S instanceof _.rx){var c=S.y;S=S.x}xS(C,C.offsetLeft+(S-w.x),C.offsetTop+(Number(c)-w.y));this.JSC$11400_dragger_=new _.iM(this.draggerEl_);_.rOd(this.JSC$11400_dragger_,this.hysteresisDistance_);
_.PI(this.JSC$11400_dragger_,"start",this.handleDragStart_,!1,this);_.PI(this.JSC$11400_dragger_,"end",this.handleDragEnd_,!1,this);_.PI(this.JSC$11400_dragger_,"earlycancel",this.JSC$11402_cleanup_,!1,this);this.dispatchEvent(new wA(ozW,this,H,this.currDragItem_,this.draggerEl_,this.JSC$11400_dragger_));this.JSC$11400_dragger_.startDrag(H)}};
_.F.handleDragStart_=function(H){if(this.dispatchEvent(new wA(Oxd,this,H.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.OrY(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?wa(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var C=U91(this.draggerEl_);this.draggerEl_.halfWidth=C.width/2;this.draggerEl_.halfHeight=C.height/2;C=this.draggerEl_.getBoundingClientRect();
var S=H.clientY,w=BTP(this.JSC$11400_dragger_,H.clientX);if(w>C.right){var A=this.currDragItem_.getBoundingClientRect();this.JSC$11400_dragger_.deltaX=w-(w-A.left)/A.width*C.width}S=Dz1(this.JSC$11400_dragger_,S);S>C.bottom&&(this.JSC$11400_dragger_.deltaY+=S-C.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";rr7(this,this.currDragItem_);this.currDragItem_.style.display="";_.PI(this.JSC$11400_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new wA(XYd,
this,H.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11400_dragger_))}else H.preventDefault(),this.JSC$11402_cleanup_()};
_.F.handleDragMove_=function(H){var C=_.KX(this.draggerEl_);C=new _.rx(C.x+this.draggerEl_.halfWidth,C.y+this.draggerEl_.halfHeight);a:{var S=null;if(this.currDragItem_.style.display!="none"){S=this.currDragItem_.parentNode;var w=jYw(S);if(BEd(C,w))break a}w=this.dragLists_.length;for(var A=0;A<w;A++){var J=this.dragLists_[A];if(J!=S&&BEd(C,J.dlgBounds_)){S=J;break a}}S=null}if(S){if(S==null)throw Error("Zd");w=0;A=!1;J=void 0;switch(S.dlgGrowthDirection_){case 0:w=C.y;var c=DTM;var Y=KYY;break;case 4:A=
!0;case 2:w=C.x;c=tsW;Y=KYY;break;case 5:A=!0;case 3:w=C.x,c=LYM,Y=gzW}for(var M=null,m,W=_.g1(S),y=W.length,N=0;N<y;N++){var b=W[N];if(b!=this.currDragItem_){var u=c(b.dlgBounds_);if(A){var O=UTn(b,C);J===void 0&&(J=O);Y(w,u)&&(m==void 0||O<J||O==J&&(Y(u,m)||u==m))&&(M=b,m=u);O<J&&(J=O)}else Y(w,u)&&(m==void 0||Y(u,m))&&(M=b,m=u)}}c=M!==null&&UTn(M,C)>J?null:M}else c=null;if(!this.dispatchEvent(new wA(QZd,this,H,this.currDragItem_,this.draggerEl_,this.JSC$11400_dragger_,C,S,c)))return!1;if(S&&S.dlgDragPermission!=
1)this.currDragItem_.parentNode==S&&_.OrY(this.currDragItem_)==c||S.insertBefore(this.currDragItem_,c),this.currDragItem_.style.display="",S.dlgDragHoverClass_&&_.FB(S,S.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",Y=this.dragLists_.length,m=0;m<Y;m++)w=this.dragLists_[m],w.dlgDragHoverClass_&&_.Ag(w,w.dlgDragHoverClass_);S!=this.currHoverList_&&(this.currHoverList_=S,rr7(this,this.currDragItem_));this.dispatchEvent(new wA(dTY,this,H,this.currDragItem_,this.draggerEl_,this.JSC$11400_dragger_,
C,S,c));return!1};
_.F.JSC$11402_cleanup_=function(){nzd(this);this.JSC$11400_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var H=this.dragLists_.length,C=0;C<H;C++)this.dragLists_[C].dlgBounds_=null;H=this.dragItems_.length;for(C=0;C<H;C++)this.dragItems_[C].dlgBounds_=null};
_.F.handleDragEnd_=function(H){if(!this.dispatchEvent(new wA(PAW,this,H,this.currDragItem_,this.draggerEl_,this.JSC$11400_dragger_)))return!1;nzd(this);this.dispatchEvent(new wA($Td,this,H,this.currDragItem_,this.draggerEl_,this.JSC$11400_dragger_));this.JSC$11402_cleanup_();return!0};
var nzd=function(H){_.Ak(H.JSC$11400_dragger_);var C=H.draggerEl_&&H.draggerEl_.parentElement;H.draggerEl_&&_.f6(H.draggerEl_);H.currDragItem_&&H.currDragItem_.style.display=="none"&&(H.origList_.insertBefore(H.currDragItem_,H.origNextItem_),H.currDragItem_.style.display="");H.currDragItemClasses_&&H.currDragItem_?hUi(H.currDragItem_,H.currDragItemClasses_||[]):H.currDragItem_&&(H.currDragItem_.style.visibility="");for(var S=H.dragLists_.length,w=0;w<S;w++){var A=H.dragLists_[w];A.dlgDragHoverClass_&&
_.Ag(A,A.dlgDragHoverClass_)}C&&H.dispatchEvent(new wA(pY7,H,null,H.currDragItem_,H.draggerEl_,H.JSC$11400_dragger_))};
_.F=jc.prototype;_.F.getHandleForDragItem_=function(H){return H};
_.F.handleDragItemMouseover_=function(H){wa(H.currentTarget,this.dragItemHoverClasses_||[])};
_.F.handleDragItemMouseout_=function(H){hUi(H.currentTarget,this.dragItemHoverClasses_||[])};
_.F.handleDragItemHandleMouseover_=function(H){wa(H.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.F.handleDragItemHandleMouseout_=function(H){hUi(H.currentTarget,this.dragItemHandleHoverClasses_||[])};
var BEd=function(H,C){return H.x>C.left&&H.x<C.left+C.width&&H.y>C.top&&H.y<C.top+C.height},UTn=function(H,C){H=H.dlgBounds_;
return Math.abs(C.y-(H.top+(H.height-1)/2))},DTM=function(H){return H.top+H.height-1},tsW=function(H){return H.left+H.width-1},LYM=function(H){return H.left||0},KYY=function(H,C){return H<C},gzW=function(H,C){return H>C},wA=function(H,C,S,w,A,J){_.Xc.call(this,H);
this.event=S;this.currDragItem=w;this.draggerEl=A;this.JSC$11404_dragger=J};
_.Zh(wA,_.Xc);_.Zh(Tc,_.Op);var RKn=new _.rx(0,0);Tc.prototype.JSC$11408_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
Tc.prototype.JSC$11408_onMouseMove=function(H){var C=this.containerIsActuallyContent_?RKn:op(Ol(this.containerNode_)),S=this.horizontalScrolling_?this.calculateScrollDelta(H.clientX+C.x,this.scrollBounds_.left,this.scrollBounds_.width):0,w=this.calculateScrollDelta(H.clientY+C.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=S;this.scrollDelta_.y=w;!(S=!S&&!w)&&(S=this.constrainScroll_)&&(S=H.clientX+C.x,H=H.clientY+C.y,C=this.containerBounds_,S=!(C.left<=S&&C.left+C.width>=
S&&C.top<=H&&C.top+C.height>=H));S?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
Tc.prototype.calculateScrollDelta=function(H,C,S){var w=0;H<C?w=-8:H>C+S&&(w=8);return w};
Tc.prototype.disposeInternal=function(){Tc.superClass_.disposeInternal.call(this);this.JSC$11406_eventHandler_.dispose();this.scrollTimer_.dispose()};var I27={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"}}},An=I27;An=I27;var Jn={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 a2M=function(){},Cf=function(H){if(typeof H=="number"){var C=new a2M;
C.standardOffset_=H;var S=H;if(S==0)S="Etc/GMT";else{var w=["Etc/GMT",S<0?"-":"+"];S=Math.abs(S);w.push(Math.floor(S/60)%100);S%=60;S!=0&&w.push(":",_.Tl(S,2));S=w.join("")}C.timeZoneId_=S;S=H;S==0?S="UTC":(w=["UTC",S<0?"+":"-"],S=Math.abs(S),w.push(Math.floor(S/60)%100),S%=60,S!=0&&w.push(":",S),S=w.join(""));H=xTU(H);C.tzNames_=[S,S];C.tzNamesExt_={STD_LONG_NAME_GMT:H,STD_GENERIC_LOCATION:H};C.transitions_=[];return C}C=new a2M;C.timeZoneId_=H.id;C.standardOffset_=-H.std_offset;C.tzNames_=H.names;
C.tzNamesExt_=H.names_ext;C.transitions_=H.transitions;return C},xTU=function(H){var C=["GMT"];
C.push(H<=0?"+":"-");H=Math.abs(H);C.push(_.Tl(Math.floor(H/60)%100,2),":",_.Tl(H%60,2));return C.join("")},H7b=function(H,C){C=Date.UTC(C.getUTCFullYear(),C.getUTCMonth(),C.getUTCDate(),C.getUTCHours(),C.getUTCMinutes())/36E5;
for(var S=0;S<H.transitions_.length&&C>=H.transitions_[S];)S+=2;return S==0?0:H.transitions_[S-1]},i7V=function(H,C){H=H.standardOffset_-H7b(H,C);
return H===-1440?0:H};var St=function(H,C){this.patternParts_=[];this.JSC$11419_dateTimeSymbols_=C||Ej;typeof H=="number"?CJ_(this,H):S4V(this,H)},smY=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],Fr=function(H){return H.getHours?H.getHours():0},S4V=function(H,C){for(j_Z&&(C=C.replace(/\u200f/g,""));C;){for(var S=C,w=0;w<smY.length;++w){var A=C.match(smY[w]);
if(A){var J=A[0];C=C.substring(J.length);w==0&&(J=="''"?J="'":(J=J.substring(1,A[1]=="'"?J.length-1:J.length),J=J.replace(/''/g,"'")));H.patternParts_.push({text:J,type:w});break}}if(S===C)throw Error("$d`"+C);}};
St.prototype.format=function(H,C){if(!H)throw Error("ae");var S=C?(H.getTimezoneOffset()-i7V(C,H))*6E4:0,w=S?new Date(H.getTime()+S):H,A=w;C&&w.getTimezoneOffset()!=H.getTimezoneOffset()&&(w=new Date(w.getTime()+(w.getTimezoneOffset()-H.getTimezoneOffset())*6E4),A=new Date(H.getTime()+(S+(S>0?-864E5:864E5))));S=[];for(var J=0;J<this.patternParts_.length;++J){var c=this.patternParts_[J].text;1==this.patternParts_[J].type?S.push(jmd(this,c,H,w,A,C)):S.push(c)}return S.join("")};
var CJ_=function(H,C){if(C<4)var S=H.JSC$11419_dateTimeSymbols_.DATEFORMATS[C];else if(C<8)S=H.JSC$11419_dateTimeSymbols_.TIMEFORMATS[C-4];else if(C<12)S=H.JSC$11419_dateTimeSymbols_.DATETIMEFORMATS[C-8],S=S.replace("{1}",H.JSC$11419_dateTimeSymbols_.DATEFORMATS[C-8]),S=S.replace("{0}",H.JSC$11419_dateTimeSymbols_.TIMEFORMATS[C-8]);else if(C===12)S=H.JSC$11419_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(C===13)S=H.JSC$11419_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{CJ_(H,10);return}S4V(H,S)},ZC=function(H,C){C=String(C);
H=H.JSC$11419_dateTimeSymbols_||Ej;if(H.ZERODIGIT!==void 0&&!s_E){for(var S=[],w=0;w<C.length;w++){var A=C.charCodeAt(w);S.push(48<=A&&A<=57?String.fromCharCode(H.ZERODIGIT+A-48):C.charAt(w))}C=S.join("")}return C},s_E=!1,j_Z=!1,Ax7=function(H,C,S,w){S=S.getFullYear();
S<=0&&w&&(S=1-S);return ZC(H,wI1(S,C))},wI1=function(H,C){C==2&&(H%=100);
H<0&&C++;return _.Tl(H,C)},ca=function(H){if(!(H.getHours&&H.getSeconds&&H.getMinutes))throw Error("be");
},Jxd=function(H,C){ca(C);
C=Fr(C);return H.JSC$11419_dateTimeSymbols_.AMPMS[C>=12&&C<24?1:0]},jmd=function(H,C,S,w,A,J){var c=C.length;
switch(C.charAt(0)){case "G":return S=w.getFullYear()>0?1:0,c>=4?H.JSC$11419_dateTimeSymbols_.ERANAMES[S]:H.JSC$11419_dateTimeSymbols_.ERAS[S];case "y":return Ax7(H,c,w,!0);case "Y":return S=(new Date(Zxb(w.getFullYear(),w.getMonth(),w.getDate(),H.JSC$11419_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,H.JSC$11419_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),c==2&&(S%=100),ZC(H,wI1(S,c));case "u":return Ax7(H,c,w,!1);case "M":a:switch(S=w.getMonth(),c){case 5:c=H.JSC$11419_dateTimeSymbols_.NARROWMONTHS[S];
break a;case 4:c=H.JSC$11419_dateTimeSymbols_.MONTHS[S];break a;case 3:c=H.JSC$11419_dateTimeSymbols_.SHORTMONTHS[S];break a;default:c=ZC(H,_.Tl(S+1,c))}return c;case "k":return ca(A),ZC(H,_.Tl(Fr(A)||24,c));case "S":return ZC(H,(A.getMilliseconds()/1E3).toFixed(Math.min(3,c)).slice(2)+(c>3?_.Tl(0,c-3):""));case "E":return S=w.getDay(),c>=4?H.JSC$11419_dateTimeSymbols_.WEEKDAYS[S]:H.JSC$11419_dateTimeSymbols_.SHORTWEEKDAYS[S];case "a":return Jxd(H,A);case "b":return Jxd(H,A);case "B":return Jxd(H,
A);case "h":return ca(A),ZC(H,_.Tl(Fr(A)%12||12,c));case "K":return ca(A),ZC(H,_.Tl(Fr(A)%12,c));case "H":return ca(A),ZC(H,_.Tl(Fr(A),c));case "c":a:switch(S=w.getDay(),c){case 5:c=H.JSC$11419_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[S];break a;case 4:c=H.JSC$11419_dateTimeSymbols_.STANDALONEWEEKDAYS[S];break a;case 3:c=H.JSC$11419_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[S];break a;default:c=ZC(H,_.Tl(S,1))}return c;case "L":a:switch(S=w.getMonth(),c){case 5:c=H.JSC$11419_dateTimeSymbols_.STANDALONENARROWMONTHS[S];
break a;case 4:c=H.JSC$11419_dateTimeSymbols_.STANDALONEMONTHS[S];break a;case 3:c=H.JSC$11419_dateTimeSymbols_.STANDALONESHORTMONTHS[S];break a;default:c=ZC(H,_.Tl(S+1,c))}return c;case "Q":return S=Math.floor(w.getMonth()/3),c<4?H.JSC$11419_dateTimeSymbols_.SHORTQUARTERS[S]:H.JSC$11419_dateTimeSymbols_.QUARTERS[S];case "d":return ZC(H,_.Tl(w.getDate(),c));case "m":return ca(A),ZC(H,_.Tl(A.getMinutes?A.getMinutes():0,c));case "s":return ca(A),ZC(H,_.Tl(A.getSeconds(),c));case "v":return(J||Cf(S.getTimezoneOffset())).timeZoneId_;
case "V":return H=J||Cf(S.getTimezoneOffset()),c<=2?H.timeZoneId_:H7b(H,S)>0?H.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?H.tzNamesExt_.DST_GENERIC_LOCATION:H.tzNamesExt_.DST_GENERIC_LOCATION:H.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?H.tzNamesExt_.STD_GENERIC_LOCATION:H.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return S=Zxb(A.getFullYear(),A.getMonth(),A.getDate(),H.JSC$11419_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,H.JSC$11419_dateTimeSymbols_.FIRSTDAYOFWEEK),ZC(H,_.Tl(Math.floor(Math.round((S-(new Date((new Date(S)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,c));case "z":return H=J||Cf(S.getTimezoneOffset()),c<4?H.tzNames_[H7b(H,S)>0?2:0]:H.tzNames_[H7b(H,S)>0?3:1];case "Z":return C=J||Cf(S.getTimezoneOffset()),c<4?(c=-i7V(C,S),H=[c<0?"-":"+"],c=Math.abs(c),H.push(_.Tl(Math.floor(c/60)%100,2),_.Tl(c%60,2)),c=H.join("")):c=ZC(H,xTU(i7V(C,S))),c;default:return""}};var Fn7=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,Z77=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,Jew=function(H){this.patternParts_=[];this.JSC$11428_dateTimeSymbols_=Ej;if(typeof H=="number"){H>11&&(H=10);if(H<4)var C=this.JSC$11428_dateTimeSymbols_.DATEFORMATS[H];else H<8?C=this.JSC$11428_dateTimeSymbols_.TIMEFORMATS[H-4]:(C=this.JSC$11428_dateTimeSymbols_.DATETIMEFORMATS[H-8],C=C.replace("{1}",this.JSC$11428_dateTimeSymbols_.DATEFORMATS[H-8]),C=C.replace("{0}",this.JSC$11428_dateTimeSymbols_.TIMEFORMATS[H-
8]));cxW(this,C)}else cxW(this,H)},cxW=function(H,C){for(var S=!1,w="",A=0;A<C.length;A++){var J=C.charAt(A);
if(Fn7.test(J))for(w.length>0&&(H.patternParts_.push({text:w,count:0,abutStart:!1,numeric:!1}),w=""),H.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});A<C.length-1&&C.charAt(A+1)==" ";)A++;else if(S)J=="'"?A+1<C.length&&C.charAt(A+1)=="'"?(w+="'",A++):S=!1:w+=J;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(J)>=0){w.length>0&&(H.patternParts_.push({text:w,count:0,abutStart:!1,numeric:!1}),w="");for(var c=C.charAt(A),Y=A+1;Y<C.length&&C.charAt(Y)==c;)Y++;c=Y-A;c<=0?Y=!1:(Y="MydhHmsSDkK".indexOf(J),
Y=Y>0||Y==0&&c<3);H.patternParts_.push({text:J,count:c,abutStart:!1,numeric:Y});A+=c-1}else J=="'"?A+1<C.length&&C.charAt(A+1)=="'"?(w+="'",A++):S=!0:w+=J}w.length>0&&H.patternParts_.push({text:w,count:0,abutStart:!1,numeric:!1});C=!1;for(S=0;S<H.patternParts_.length;S++)H.patternParts_[S].numeric?!C&&S+1<H.patternParts_.length&&H.patternParts_[S+1].numeric&&(C=!0,H.patternParts_[S].abutStart=!0):C=!1};
Jew.prototype.parse=function(H,C,S){var w=!1,A=!1;S&&(w=S.predictive||!1,A=S.validate||!1);if(w)for(S=0;S<this.patternParts_.length;S++){var J=this.patternParts_[S];if(J.count>0&&("abBhHkKm".indexOf(J.text.charAt(0))<0||J.count>2||J.abutStart))throw Error("ce`"+J.text.charAt(0));}J=new Y4V;S=[0];J.dayPeriodIndex=-1;for(var c=0;c<this.patternParts_.length&&!(w&&S[0]>=H.length);c++){if(this.patternParts_[c].count==0){a:{var Y=H;var M=S,m=this.patternParts_[c],W=w;if(m.text.match(Fn7)!=null){if(m=M[0],
zx1(Y,M),M[0]>m){Y=!0;break a}}else{if(Y.indexOf(m.text,M[0])==M[0]){M[0]+=m.text.length;Y=!0;break a}if(W&&m.text.indexOf(Y.substring(M[0]))==0){M[0]+=Y.length-M[0];Y=!0;break a}}Y=!1}if(Y)continue;return 0}if(this.patternParts_[c].abutStart){a:{M=H;m=S;W=c;var y=m[0],N=0;for(Y=W;Y<this.patternParts_.length;Y++){var b=this.patternParts_[Y],u=b.count;if(u===0)break;if(Y==W&&(u-=N,N++,u==0)){Y=0;break a}var O=Y>W&&b.numeric,d=m[0];if(!MUi(this,M,m,b,u,J,!1)||O&&m[0]-d<u)Y=W-1,m[0]=y}Y-=W}if(Y<=0)return 0;
c+=Y-1}else if(!MUi(this,H,S,this.patternParts_[c],0,J,w))return 0}a:{H=A;if(C==null)throw Error("de");J.era!=void 0&&J.year!=void 0&&J.era==0&&J.year>0&&(J.year=-(J.year-1));J.year!=void 0&&C.setFullYear(J.year);w=C.getDate();C.setDate(1);J.month!=void 0&&C.setMonth(J.month);J.day!=void 0?C.setDate(J.day):(A=$uW(C.getFullYear(),C.getMonth()),C.setDate(w>A?A:w));typeof C.setHours==="function"&&(J.hours==void 0&&(J.hours=C.getHours()),J.hours<12&&(J.ampm!=void 0&&J.ampm>0?J.hours+=12:J.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(J.dayPeriodName)||["night1","night2"].includes(J.dayPeriodName)&&J.hours>=6)&&(J.hours+=12)),C.setHours(J.hours));typeof C.setMinutes==="function"&&J.minutes!=void 0&&C.setMinutes(J.minutes);typeof C.setSeconds==="function"&&J.seconds!=void 0&&C.setSeconds(J.seconds);typeof C.setMilliseconds==="function"&&J.milliseconds!=void 0&&C.setMilliseconds(J.milliseconds);if(H&&(J.year&&J.year!=C.getFullYear()||J.month&&J.month!=
C.getMonth()||J.day&&J.day!=C.getDate()||J.hours&&J.hours>=24||J.minutes&&J.minutes>=60||J.seconds&&J.seconds>=60||J.milliseconds&&J.milliseconds>=1E3))C=!1;else{J.tzOffset!=void 0&&C.setTime(C.getTime()+(J.tzOffset-C.getTimezoneOffset())*60*1E3);J.ambiguousYear&&(H=new Date,H.setFullYear(H.getFullYear()-80),C.getTime()<H.getTime()&&C.setFullYear(H.getFullYear()+100));if(J.dayOfWeek!=void 0)if(J.day==void 0)J=(7+J.dayOfWeek-C.getDay())%7,J>3&&(J-=7),H=C.getMonth(),C.setDate(C.getDate()+J),C.getMonth()!=
H&&C.setDate(C.getDate()+(J>0?-7:7));else if(J.dayOfWeek!=C.getDay()){C=!1;break a}C=!0}}return C?S[0]:0};
var MUi=function(H,C,S,w,A,J,c){zx1(C,S);if(w.numeric&&A>0&&S[0]+A>C.length)return!1;switch(w.text.charAt(0)){case "G":return YA(C,S,[H.JSC$11428_dateTimeSymbols_.ERAS],function(Y){return J.era=Y}),!0;
case "M":case "L":return q4U(H,C,S,A,w,J);case "E":return YA(C,S,[H.JSC$11428_dateTimeSymbols_.WEEKDAYS,H.JSC$11428_dateTimeSymbols_.SHORTWEEKDAYS],function(Y){return J.dayOfWeek=Y});
case "B":case "b":return A=[],H=[[].concat(H.JSC$11428_dateTimeSymbols_.AMPMS)],A.push("isAm"),A.push("isPm"),C=YA(C,S,H,function(Y){return J.dayPeriodIndex=Y},c),J.dayPeriodName=A[J.dayPeriodIndex],c?C:!0;
case "a":return C=YA(C,S,[H.JSC$11428_dateTimeSymbols_.AMPMS],function(Y){return J.ampm=Y},c),c?C:!0;
case "y":return TCU(H,C,S,w,A,J);case "Q":return YA(C,S,[H.JSC$11428_dateTimeSymbols_.QUARTERS,H.JSC$11428_dateTimeSymbols_.SHORTQUARTERS],function(Y){J.month=Y*3;J.day=1});
case "d":return zM(H,C,S,w,A,function(Y){J.day=Y}),!0;
case "S":return mWb(H,C,S,A,J);case "h":case "K":case "H":case "k":return C=zM(H,C,S,w,A,function(Y){J.hours=w.text.charAt(0)==="h"&&Y===12?0:Y},c),c?C:!0;
case "m":return C=zM(H,C,S,w,A,function(Y){J.minutes=Y},c),c?C:!0;
case "s":return zM(H,C,S,w,A,function(Y){J.seconds=Y}),!0;
case "z":case "Z":case "v":return Wnn(H,C,S,J);default:return!1}},TCU=function(H,C,S,w,A,J){var c=S[0];
A=Mf(H,C,S,A);A===null&&(A=Mf(H,C,S,0,!0));if(A===null)return!1;A>=0&&S[0]-c==2&&w.count==2?(H=A,C=(new Date).getFullYear()-80,S=C%100,J.ambiguousYear=H==S,H+=Math.floor(C/100)*100+(H<S?100:0),J.year=H):J.year=A;return!0},q4U=function(H,C,S,w,A,J){return A.numeric&&zM(H,C,S,A,w,function(c){J.month=c-1})?!0:YA(C,S,[H.JSC$11428_dateTimeSymbols_.MONTHS,
H.JSC$11428_dateTimeSymbols_.STANDALONEMONTHS,H.JSC$11428_dateTimeSymbols_.SHORTMONTHS,H.JSC$11428_dateTimeSymbols_.STANDALONESHORTMONTHS],function(c){J.month=c})},mWb=function(H,C,S,w,A){var J=S[0];
H=Mf(H,C,S,w);if(H===null)return!1;S=S[0]-J;A.milliseconds=S<3?H*Math.pow(10,3-S):Math.round(H/Math.pow(10,S-3));return!0},Wnn=function(H,C,S,w){C.indexOf("GMT",S[0])==S[0]&&(S[0]+=3);
if(S[0]>=C.length)return w.tzOffset=0,!0;var A=S[0],J=Mf(H,C,S,0,!0);if(J===null)return!1;if(S[0]<C.length&&C.charAt(S[0])==":"){var c=J*60;S[0]++;J=Mf(H,C,S,0);if(J===null)return!1;c+=J}else c=J,c=c<24&&S[0]-A<=3?c*60:c%100+c/100*60;w.tzOffset=-c;return!0},zM=function(H,C,S,w,A,J,c){c=c||!1;
var Y=S[0];H=Mf(H,C,S,A);if(H===null)return!1;if(c&&S[0]-Y<w.count){if(S[0]<C.length)return!1;H*=Math.pow(10,w.count-(S[0]-Y))}J(H);return!0},YA=function(H,C,S,w,A){A=A||!1;
for(var J,c=0;c<S.length;c++){J=C;for(var Y=S[c],M=A,m=0,W=null,y=H.substring(J[0]).toLowerCase(),N=0;N<Y.length;N++){var b=Y[N].toLowerCase();if(M&&b.indexOf(y)==0){m=y.length;W=N;break}Y[N].length>m&&y.indexOf(b)==0&&(m=Y[N].length,W=N)}W!==null&&(J[0]+=m);J=W;if(J!==null)return w(J),!0}return!1},zx1=function(H,C){(H=H.substring(C[0]).match(Z77))&&(C[0]+=H[0].length)},Mf=function(H,C,S,w,A){C=w>0?C.substring(0,S[0]+w):C;
A=A||!1;if(H.JSC$11428_dateTimeSymbols_.ZERODIGIT){w=[];for(var J=S[0];J<C.length;J++){var c=C.charCodeAt(J)-H.JSC$11428_dateTimeSymbols_.ZERODIGIT;w.push(0<=c&&c<=9?String.fromCharCode(c+48):C.charAt(J))}C=w.join("")}else C=C.substring(S[0]);H=C.match(new RegExp("^"+(A?"[+-]?":"")+"\\d+"));if(!H)return null;S[0]+=H[0].length;return parseInt(H[0],10)},Y4V=function(){};
Y4V.prototype.ambiguousYear=!1;var yxd;
yxd={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 NCP={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}"]};
NCP={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 b7i=function(){var H={type:"unit",style:"narrow"};this.listType_=H&&H.type?H.type:"conjunction";this.listStyle_=H&&H.style?H.style:"long";this.listSymbols_=NCP;H=0;switch(this.listStyle_){case "short":H=1;break;case "narrow":H=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[H];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[H];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[H];this.listEndPattern_=
this.listSymbols_.AND_END[H];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[H];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[H];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[H];this.listEndPattern_=this.listSymbols_.OR_END[H];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[H],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[H],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[H],this.listEndPattern_=this.listSymbols_.UNIT_END[H]}};
b7i.prototype.format=function(H){return Ej7(this,H)};
var Ej7=function(H,C){var S=C.length;switch(S){case 0:return"";case 1:return String(C[0]);case 2:return H.listTwoPattern_.replace("{0}",String(C[0])).replace("{1}",String(C[1]))}for(var w=H.listStartPattern_.replace("{0}",String(C[0])).replace("{1}",String(C[1])),A=2;A<S-1;++A)w=H.listMiddlePattern_.replace("{0}",w).replace("{1}",String(C[A]));return H.listEndPattern_.replace("{0}",w).replace("{1}",String(C[S-1]))};var exY={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"},uHW=exY,Gpd=exY;Gpd=uHW=exY;var vjn,qf,mu,O_u,TM,f5Y;
_.x6=function(H,C,S,w){var A;if(A=C){a:if(C&&C.length===3){for(A=0;A<3;A++){var J=C[A];if(J<"A"||J>"Z"&&J<"a"||J>"z"){A=!1;break a}}A=!0}else A=!1;A=!A}if(A)throw new TypeError("ee");this.intlCurrencyCode_=C?C.toUpperCase():null;this.currencyStyle_=S||0;this.overrideNumberFormatSymbols_=w||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_=qf(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof H==="number")switch(H){case 1:TM(this,qf(this).DECIMAL_PATTERN);break;case 2:TM(this,qf(this).SCIENTIFIC_PATTERN);break;case 3:TM(this,qf(this).PERCENT_PATTERN);break;case 4:H=qf(this).CURRENCY_PATTERN;C=["0"];if(S=
Jn[mu(this)]){S=S[0]&7;if(S>0)for(C.push("."),w=0;w<S;w++)C.push("0");H=H.replace(/0.00/g,C.join(""))}TM(this,H);break;case 5:f5Y(this,1);break;case 6:f5Y(this,2);break;default:throw Error("he");}else TM(this,H)};
vjn=!1;qf=function(H){return H.overrideNumberFormatSymbols_||(vjn?Gpd:uHW)};
mu=function(H){return H.intlCurrencyCode_||qf(H).DEF_CURRENCY_CODE};
O_u=function(H,C){if(C>308)throw Error("ge`"+C);H.maximumFractionDigits_=C;return H};
TM=function(H,C){var S=[0];H.positivePrefix_=l57(H,C,S);for(var w=S[0],A=-1,J=0,c=0,Y=0,M=-1,m=C.length,W=!0;S[0]<m&&W;S[0]++)switch(C.charAt(S[0])){case "#":c>0?Y++:J++;M>=0&&A<0&&M++;break;case "0":if(Y>0)throw Error("ne`"+C);c++;M>=0&&A<0&&M++;break;case ",":M>0&&H.groupingArray_.push(M);M=0;break;case ".":if(A>=0)throw Error("oe`"+C);A=J+c+Y;break;case "E":if(H.useExponentialNotation_)throw Error("pe`"+C);H.useExponentialNotation_=!0;H.minExponentDigits_=0;S[0]+1<m&&C.charAt(S[0]+1)=="+"&&(S[0]++,
H.useSignForPositiveExponent_=!0);for(;S[0]+1<m&&C.charAt(S[0]+1)=="0";)S[0]++,H.minExponentDigits_++;if(J+c<1||H.minExponentDigits_<1)throw Error("qe`"+C);W=!1;break;default:S[0]--,W=!1}c==0&&J>0&&A>=0&&(c=A,c==0&&c++,Y=J-c,J=c-1,c=1);if(A<0&&Y>0||A>=0&&(A<J||A>J+c)||M==0)throw Error("re`"+C);Y=J+c+Y;H.maximumFractionDigits_=A>=0?Y-A:0;A>=0&&(H.minimumFractionDigits_=J+c-A,H.minimumFractionDigits_<0&&(H.minimumFractionDigits_=0));H.minimumIntegerDigits_=(A>=0?A:Y)-J;H.useExponentialNotation_&&(H.maximumIntegerDigits_=
J+H.minimumIntegerDigits_,H.maximumFractionDigits_==0&&H.minimumIntegerDigits_==0&&(H.minimumIntegerDigits_=1));H.groupingArray_.push(Math.max(0,M));H.decimalSeparatorAlwaysShown_=A==0||A==Y;w=S[0]-w;H.positiveSuffix_=l57(H,C,S);S[0]<C.length&&C.charAt(S[0])==";"?(S[0]++,H.multiplier_!=1&&(H.negativePercentSignExpected_=!0),H.negativePrefix_=l57(H,C,S),S[0]+=w,H.negativeSuffix_=l57(H,C,S)):(H.negativePrefix_+=H.positivePrefix_,H.negativeSuffix_+=H.positiveSuffix_)};
f5Y=function(H,C){H.compactStyle_=C;TM(H,qf(H).DECIMAL_PATTERN);H.minimumFractionDigits_=0;O_u(H,2);if(H.minimumFractionDigits_>0)throw Error("fe");H.significantDigits_=2};
_.x6.prototype.parse=function(H,C){C=C||[0];if(this.compactStyle_!==0)throw Error("ie");H=H.replace(/ |\u202f/g,"\u00a0");var S=H.indexOf(this.positivePrefix_,C[0])==C[0],w=H.indexOf(this.negativePrefix_,C[0])==C[0];S&&w&&(this.positivePrefix_.length>this.negativePrefix_.length?w=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(S=!1));S?C[0]+=this.positivePrefix_.length:w&&(C[0]+=this.negativePrefix_.length);if(H.indexOf(qf(this).INFINITY,C[0])==C[0]){C[0]+=qf(this).INFINITY.length;var A=
Infinity}else{A=H;var J=!1,c=!1,Y=!1,M=-1,m=1,W=qf(this).DECIMAL_SEP,y=qf(this).GROUP_SEP,N=qf(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("je");y=y.replace(/\u202f/g,"\u00a0");for(var b="";C[0]<A.length;C[0]++){var u=A.charAt(C[0]),O=VU1(this,u);if(O>=0&&O<=9)b+=O,Y=!0;else if(u==W.charAt(0)){if(J||c)break;b+=".";J=!0}else if(u==y.charAt(0)&&("\u00a0"!=y.charAt(0)||C[0]+1<A.length&&VU1(this,A.charAt(C[0]+1))>=0)){if(J||c)break}else if(u==N.charAt(0)){if(c)break;b+="E";c=!0;M=C[0]}else if(u==
"+"||u=="-"){if(Y&&M!=C[0]-1)break;b+=u}else if(this.multiplier_==1&&u==qf(this).PERCENT.charAt(0)){if(m!=1)break;m=100;if(Y){C[0]++;break}}else if(this.multiplier_==1&&u==qf(this).PERMILL.charAt(0)){if(m!=1)break;m=1E3;if(Y){C[0]++;break}}else break}this.multiplier_!=1&&(m=this.multiplier_);A=parseFloat(b)/m}if(S){if(H.indexOf(this.positiveSuffix_,C[0])!=C[0])return NaN;C[0]+=this.positiveSuffix_.length}else if(w){if(H.indexOf(this.negativeSuffix_,C[0])!=C[0])return NaN;C[0]+=this.negativeSuffix_.length}return w?
-A:A};
_.x6.prototype.format=function(H){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ke");if(isNaN(H))return qf(this).NAN;var C=[];var S=H;if(this.compactStyle_==0)S=Wa;else{S=Math.abs(S);var w=ojn(this,S<=1?0:O71(S)).divisorBase;S=ojn(this,w+O71(XI7(this,yV(S,-w)).intValue))}H=yV(H,-S.divisorBase);(w=H<0||H==0&&1/H<0)?S.negative_prefix?C.push(S.negative_prefix):(C.push(S.prefix),C.push(this.negativePrefix_)):(C.push(S.prefix),C.push(this.positivePrefix_));if(isFinite(H))if(H*=
w?-1:1,H*=this.multiplier_,this.useExponentialNotation_){var A=H;if(A==0)QmW(this,A,this.minimumIntegerDigits_,C),dWW(this,0,C);else{var J=Math.floor(Math.log(A)/Math.log(10)+2E-15);A=yV(A,-J);var c=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(c=J%this.maximumIntegerDigits_,c<0&&(c=this.maximumIntegerDigits_+c),A=yV(A,c),J-=c,c=1):this.minimumIntegerDigits_<1?(J++,A=yV(A,-1)):(J-=this.minimumIntegerDigits_-1,A=yV(A,this.minimumIntegerDigits_-
1));QmW(this,A,c,C);dWW(this,J,C)}}else QmW(this,H,this.minimumIntegerDigits_,C);else C.push(qf(this).INFINITY);w?S.negative_suffix?C.push(S.negative_suffix):(isFinite(H)&&C.push(S.suffix),C.push(this.negativeSuffix_)):(isFinite(H)&&C.push(S.suffix),C.push(this.positiveSuffix_));return C.join("")};
var XI7=function(H,C){var S=yV(C,H.maximumFractionDigits_);H.significantDigits_>0&&(S=PJW(S,H.significantDigits_,H.maximumFractionDigits_));S=Math.round(S);if(isFinite(S)){var w=Math.floor(yV(S,-H.maximumFractionDigits_));S=Math.floor(S-yV(w,H.maximumFractionDigits_));if(S<0||S>=yV(1,H.maximumFractionDigits_))w=Math.round(C),S=0}else w=C,S=0;return{intValue:w,fracValue:S}},QmW=function(H,C,S,w){if(H.minimumFractionDigits_>H.maximumFractionDigits_)throw Error("ke");
w||(w=[]);C=XI7(H,C);var A=C.intValue,J=C.fracValue,c=H.minimumFractionDigits_>0||J>0||!1;C=H.minimumFractionDigits_;c&&(C=H.minimumFractionDigits_);for(var Y="",M=A;M>1E20;)Y="0"+Y,M=Math.round(yV(M,-1));Y=M+Y;var m=qf(H).DECIMAL_SEP;M=qf(H).ZERO_DIGIT.codePointAt(0);var W=Y.length,y=0;if(A>0||S>0){for(A=W;A<S;A++)w.push(String.fromCodePoint(M));if(H.groupingArray_.length>=2)for(S=1;S<H.groupingArray_.length;S++)y+=H.groupingArray_[S];S=W-y;if(S>0){A=H.groupingArray_;y=W=0;for(var N,b=qf(H).GROUP_SEP,
u=Y.length,O=0;O<u;O++)if(w.push(String.fromCodePoint(M+Number(Y.charAt(O)))),u-O>1)if(N=A[y],O<S){var d=S-O;(N===1||N>0&&d%N===1)&&w.push(b)}else y<A.length&&(O===S?y+=1:N===O-S-W+1&&(w.push(b),W+=N,y+=1))}else{S=Y;Y=H.groupingArray_;A=qf(H).GROUP_SEP;N=S.length;b=[];for(W=Y.length-1;W>=0&&N>0;W--){y=Y[W];for(u=0;u<y&&N-u-1>=0;u++)b.push(String.fromCodePoint(M+Number(S.charAt(N-u-1))));N-=y;N>0&&b.push(A)}w.push.apply(w,b.reverse())}}else c||w.push(String.fromCodePoint(M));(H.decimalSeparatorAlwaysShown_||
c)&&w.push(m);J=String(J);c=J.split("e+");c.length==2&&(J=String(PJW(parseFloat(c[0]),H.significantDigits_,1)),J=J.replace(".",""),J+=(0,_.zW1)("0",parseInt(c[1],10)-J.length+1));H.maximumFractionDigits_+1>J.length&&(J="1"+(0,_.zW1)("0",H.maximumFractionDigits_-J.length)+J);for(H=J.length;J.charAt(H-1)=="0"&&H>C+1;)H--;for(C=1;C<H;C++)w.push(String.fromCodePoint(M+Number(J.charAt(C))))},dWW=function(H,C,S){S.push(qf(H).EXP_SYMBOL);
C<0?(C=-C,S.push(qf(H).MINUS_SIGN)):H.useSignForPositiveExponent_&&S.push(qf(H).PLUS_SIGN);C=""+C;for(var w=qf(H).ZERO_DIGIT,A=C.length;A<H.minExponentDigits_;A++)S.push(w);H=w.codePointAt(0)-$W1;for(w=0;w<C.length;w++)S.push(String.fromCodePoint(H+C.codePointAt(w)))},VU1=function(H,C){C=C.codePointAt(0);
if(48<=C&&C<58)return C-48;H=qf(H).ZERO_DIGIT.codePointAt(0);return H<=C&&C<H+10?C-H:-1},$W1="0".codePointAt(0),l57=function(H,C,S){for(var w="",A=!1,J=C.length;S[0]<J;S[0]++){var c=C.charAt(S[0]);
if(c=="'")S[0]+1<J&&C.charAt(S[0]+1)=="'"?(S[0]++,w+="'"):A=!A;else if(A)w+=c;else switch(c){case "#":case "0":case ",":case ".":case ";":return w;case "\u00a4":if(S[0]+1<J&&C.charAt(S[0]+1)=="\u00a4")S[0]++,w+=mu(H);else switch(H.currencyStyle_){case 0:c=mu(H);w+=c in Jn?Jn[c][1]:c;break;case 2:c=mu(H);var Y=Jn[c];w+=Y?c==Y[1]?c:c+" "+Y[1]:c;break;case 1:c=mu(H),w+=c in Jn?Jn[c][2]:c}break;case "%":if(!H.negativePercentSignExpected_&&H.multiplier_!=1)throw Error("le");if(H.negativePercentSignExpected_&&
H.multiplier_!=100)throw Error("me");H.multiplier_=100;H.negativePercentSignExpected_=!1;w+=qf(H).PERCENT;break;case "\u2030":if(!H.negativePercentSignExpected_&&H.multiplier_!=1)throw Error("le");if(H.negativePercentSignExpected_&&H.multiplier_!=1E3)throw Error("me");H.multiplier_=1E3;H.negativePercentSignExpected_=!1;w+=qf(H).PERMILL;break;default:w+=c}}return w},Wa={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},ojn=function(H,C){H=H.compactStyle_==1?An.COMPACT_DECIMAL_SHORT_PATTERN:An.COMPACT_DECIMAL_LONG_PATTERN;H==null&&(H=An.COMPACT_DECIMAL_SHORT_PATTERN);if(C<3)return Wa;C=Math.min(14,C);var S=H[yV(1,C)];for(--C;!S&&C>=3;)S=H[yV(1,C)],C--;if(!S)return Wa;S=S.other;var w=H="",A=S.indexOf(";");A>=0&&(S=S.substring(0,A),A=S.substring(A+1))&&(w=/([^0]*)(0+)(.*)/.exec(A),H=w[1],w=w[3]);return S&&S!="0"?(S=/([^0]*)(0+)(.*)/.exec(S))?{divisorBase:C+
1-(S[2].length-1),negative_prefix:H,negative_suffix:w,prefix:S[1],suffix:S[3]}:Wa:Wa},O71=function(H){if(!isFinite(H))return H>0?H:0;
for(var C=0;(H/=10)>=1;)C++;return C},yV=function(H,C){if(!H||!isFinite(H)||C==0)return H;
H=String(H).split("e");return parseFloat(H[0]+"e"+(parseInt(H[1]||0,10)+C))},pIM=function(H,C){return H&&isFinite(H)?yV(Math.round(yV(H,C)),-C):H},PJW=function(H,C,S){if(!H)return H;
C=C-O71(H)-1;return C<-S?pIM(H,-S):pIM(H,C)};var kpi=function(H){return H%10==1&&H%100!=11?"one":H%10==2&&H%100!=12?"two":H%10==3&&H%100!=13?"few":"other"},hxn=kpi;
hxn=kpi;var nj1=function(H,C){var S=H|0;if(void 0===C){C=Math;var w=C.min,A=H+"",J=A.indexOf(".");C=w.call(C,J===-1?0:A.length-J-1,3)}w=Math.pow(10,C);H={v:C,f:(H*w|0)%w};return S==1&&H.v==0?"one":"other"},au=nj1;
au=nj1;var KnP=function(H){this.JSC$11471_pattern_=H;this.parsedPattern_=this.literals_=this.initialLiterals_=null;H=uHW;var C=An;if(rxM!==H||BC1!==C)rxM=H,BC1=C,DWd=new _.x6(1);this.numberFormatter_=DWd},rxM=null,BC1=null,DWd=null,tUd=RegExp("'([{}#].*?)'","g"),Lni=RegExp("''","g");
KnP.prototype.format=function(H){if(this.JSC$11471_pattern_){this.initialLiterals_=[];var C=gj1(this,this.JSC$11471_pattern_);this.parsedPattern_=UWd(this,C);this.JSC$11471_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.BZ(this.initialLiterals_),C=[],Rxb(this,this.parsedPattern_,H,!1,C),H=C.join("");this.literals_.length>0;)H=H.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else H="";return H};
var Rxb=function(H,C,S,w,A){for(var J=0;J<C.length;J++)switch(C[J].type){case 4:A.push(C[J].value);break;case 3:var c=C[J].value;var Y=H,M=A,m=S[c];m===void 0?M.push("Undefined parameter - "+c):(Y.literals_.push(m),M.push(Y.buildPlaceholder_(Y.literals_)));break;case 2:c=C[J].value;Y=H;M=S;m=w;var W=A,y=c.argumentIndex;M[y]===void 0?W.push("Undefined parameter - "+y):(y=c[M[y]],y===void 0&&(y=c.other),Rxb(Y,y,M,m,W));break;case 0:c=C[J].value;I5M(H,c,S,au,w,A);break;case 1:c=C[J].value,I5M(H,c,S,
hxn,w,A)}},I5M=function(H,C,S,w,A,J){var c=C.argumentIndex,Y=C.argumentOffset,M=+S[c];
isNaN(M)?J.push("Undefined or invalid parameter - "+c):(Y=M-Y,c=C[S[c]],c===void 0&&(w=w(Math.abs(Y)),c=C[w],c===void 0&&(c=C.other)),C=[],Rxb(H,c,S,A,C),S=C.join(""),A?J.push(S):(H=H.numberFormatter_.format(Y),J.push(S.replace(/#/g,H))))},gj1=function(H,C){var S=H.initialLiterals_,w=H.buildPlaceholder_.bind(H);
C=C.replace(Lni,function(){S.push("'");return w(S)});
return C=C.replace(tUd,function(A,J){S.push(J);return w(S)})},a5U=function(H){var C=0,S=[],w=[],A=/[{}]/g;
A.lastIndex=0;for(var J;J=A.exec(H);){var c=J.index;J[0]=="}"?(S.pop(),S.length==0&&(J={type:1},J.value=H.substring(C,c),w.push(J),C=c+1)):(S.length==0&&(C=H.substring(C,c),C!=""&&w.push({type:0,value:C}),C=c+1),S.push("{"))}H=H.substring(C);H!=""&&w.push({type:0,value:H});return w},xWi=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,Hud=/^\s*(\w+)\s*,\s*selectordinal\s*,/,iud=/^\s*(\w+)\s*,\s*select\s*,/,UWd=function(H,C){var S=[];
C=a5U(C);for(var w=0;w<C.length;w++){var A={};if(0==C[w].type)A.type=4,A.value=C[w].value;else if(1==C[w].type){var J=C[w].value;switch(xWi.test(J)?0:Hud.test(J)?1:iud.test(J)?2:/^\s*\w+\s*/.test(J)?3:5){case 2:A.type=2;A.value=Cmi(H,C[w].value);break;case 0:A.type=0;A.value=SUV(H,C[w].value);break;case 1:A.type=1;A.value=sWd(H,C[w].value);break;case 3:A.type=3,A.value=C[w].value}}S.push(A)}return S},Cmi=function(H,C){var S="";
C=C.replace(iud,function(Y,M){S=M;return""});
var w={};w.argumentIndex=S;C=a5U(C);for(var A=0;A<C.length;){var J=C[A].value;A++;var c=void 0;1==C[A].type&&(c=UWd(H,C[A].value));w[J.replace(/\s/g,"")]=c;A++}return w},SUV=function(H,C){var S="",w=0;
C=C.replace(xWi,function(M,m,W){S=m;W&&(w=parseInt(W,10));return""});
var A={};A.argumentIndex=S;A.argumentOffset=w;C=a5U(C);for(var J=0;J<C.length;){var c=C[J].value;J++;var Y=void 0;1==C[J].type&&(Y=UWd(H,C[J].value));A[c.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=Y;J++}return A},sWd=function(H,C){var S="";
C=C.replace(Hud,function(Y,M){S=M;return""});
var w={};w.argumentIndex=S;w.argumentOffset=0;C=a5U(C);for(var A=0;A<C.length;){var J=C[A].value;A++;var c=void 0;1==C[A].type&&(c=UWd(H,C[A].value));w[J.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=c;A++}return w};
KnP.prototype.buildPlaceholder_=function(H){return"\ufddf_"+(H.length-1).toString(10)+"_"};var KNU=function(){var H={style:1},C=jW1;this.style_=(H==null?void 0:H.style)||0;this.durationSymbols_=C||yxd},wb1=function(H,C){switch(C){default:case "years":return H.durationSymbols_.YEAR;
case "months":return H.durationSymbols_.MONTH;case "weeks":return H.durationSymbols_.WEEK;case "days":return H.durationSymbols_.DAY;case "hours":return H.durationSymbols_.HOUR;case "minutes":return H.durationSymbols_.MINUTE;case "seconds":return H.durationSymbols_.SECOND}},Nf=function(H,C,S){a:{S=wb1(H,S);
switch(H.style_){case 1:if(S.LONG!=void 0){H=S.LONG;break a}case 2:if(S.NARROW!=void 0){H=S.NARROW;break a}default:H=S.SHORT;break a}H=void 0}return H?(new KnP("{DURATION_VALUE,plural,"+H+"}")).format({DURATION_VALUE:C}):""};
KNU.prototype.format=function(H){var C=[],S=H.years,w=H.months,A=H.weeks,J=H.days,c=H.hours,Y=H.minutes;H=H.seconds;S!=null&&C.push(Nf(this,S,"years"));w!=null&&C.push(Nf(this,w,"months"));A!=null&&C.push(Nf(this,A,"weeks"));J!=null&&C.push(Nf(this,J,"days"));c!=null&&C.push(Nf(this,c,"hours"));Y!=null&&C.push(Nf(this,Y,"minutes"));H!=null&&C.push(Nf(this,H,"seconds"));return(new b7i).format(C)};var AgV;
AgV={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 AZZ=function(){this.rdtfSymbols_=Jgn||AgV;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
AZZ.prototype.format=function(H,C){a:{C=F3d(this,C);switch(this.style_){case 2:if(C.NARROW!=void 0){C=C.NARROW;break a}case 1:if(C.SHORT!=void 0){C=C.SHORT;break a}default:C=C.LONG;break a}C=void 0}if(!this.alwaysNumeric_&&C&&C.R&&C.R[""+H])H=C.R[""+H];else if(C){var S=Math.abs(H);H=(new KnP("{N,plural,"+(H>0||H==0&&1/H==Infinity?C.F:C.P)+"}")).format({N:S})}else H="";return H};
var F3d=function(H,C){switch(C){default:case 0:return H.rdtfSymbols_.YEAR;case 1:return H.rdtfSymbols_.QUARTER;case 2:return H.rdtfSymbols_.MONTH;case 3:return H.rdtfSymbols_.WEEK;case 4:return H.rdtfSymbols_.DAY;case 5:return H.rdtfSymbols_.HOUR;case 6:return H.rdtfSymbols_.MINUTE;case 7:return H.rdtfSymbols_.SECOND}};var ZuP=function(H,C,S,w,A,J,c,Y){this.x0=H;this.y0=C;this.x1=S;this.y1=w;this.x2=A;this.y2=J;this.x3=c;this.y3=Y};
ZuP.prototype.clone=function(){return new ZuP(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
ZuP.prototype.equals=function(H){return this.x0==H.x0&&this.y0==H.y0&&this.x1==H.x1&&this.y1==H.y1&&this.x2==H.x2&&this.y2==H.y2&&this.x3==H.x3&&this.y3==H.y3};
var cgd=function(H,C){if(C==0)return H.x0;if(C==1)return H.x3;var S=pi(H.x0,H.x1,C),w=pi(H.x1,H.x2,C);H=pi(H.x2,H.x3,C);S=pi(S,w,C);w=pi(w,H,C);return pi(S,w,C)},YUb=function(H,C){var S=(C-H.x0)/(H.x3-H.x0);
if(S<=0)return 0;if(S>=1)return 1;for(var w=0,A=1,J=0,c=0;c<8;c++){J=cgd(H,S);var Y=(cgd(H,S+1E-6)-J)/1E-6;if(Math.abs(J-C)<1E-6)return S;if(Math.abs(Y)<1E-6)break;else J<C?w=S:A=S,S-=(J-C)/Y}for(c=0;Math.abs(J-C)>1E-6&&c<8;c++)J<C?(w=S,S=(S+A)/2):(A=S,S=(S+w)/2),J=cgd(H,S);return S};var bD=function(){_.ph.call(this);this.JSC$11492_name_="closure_frame"+zeY++;this.iframesForDisposal_=[];MJi[this.JSC$11492_name_]=this},EQ;
_.Zh(bD,_.ph);var MJi={},zeY=0,qUY=function(H,C){var S=Ol(H);Nh1(C,function(w,A){Array.isArray(w)||(w=[w]);_.I6(w,function(J){J=S.JSC$9341_createDom("INPUT",{type:"hidden",name:A,value:J});H.appendChild(J)})})};
_.F=bD.prototype;_.F.JSC$11494_form_=null;_.F.JSC$11494_iframe_=null;_.F.iframeName_=null;_.F.nextIframeId_=0;_.F.JSC$11494_active_=!1;_.F.complete_=!1;_.F.success_=!1;_.F.lastContent_=null;_.F.JSC$11494_lastErrorCode_=0;_.F.iframeDisposalTimer_=null;
_.F.send=function(H,C,S,w){if(this.JSC$11494_active_)throw Error("se");H=new _.jR(H);C=C?C.toUpperCase():"GET";S&&_.u0(H);EQ||(EQ=_.r1("FORM"),EQ.acceptCharset="utf-8",S=EQ.style,S.position="absolute",S.visibility="hidden",S.top=S.left="-10px",S.width=S.height="10px",S.overflow="hidden",document.body.appendChild(EQ));this.JSC$11494_form_=EQ;C=="GET"&&qUY(this.JSC$11494_form_,H.JSC$10045_queryData_);w&&qUY(this.JSC$11494_form_,w);S=H.toString();S=$EU(S);w=this.JSC$11494_form_;S=_.L9($D(S));S!==void 0&&
(w.action=S);this.JSC$11494_form_.method=C;TWM(this);ms7(this)};
_.F.abort=function(H){if(this.JSC$11494_active_){var C=ec(this);if(C)if(dL(C))C.removeAllListeners(void 0);else if(C=PC(C)){var S=0,w;for(w in C.listeners)for(var A=C.listeners[w].concat(),J=0;J<A.length;++J)XH(A[J])&&++S}this.success_=this.JSC$11494_active_=this.complete_=!1;this.JSC$11494_lastErrorCode_=H||7;this.dispatchEvent("abort");W37(this)}};
_.F.disposeInternal=function(){this.JSC$11494_active_&&this.abort();bD.superClass_.disposeInternal.call(this);this.JSC$11494_iframe_&&ygn(this);ms7(this);this.JSC$11494_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11494_form_=null;this.JSC$11494_lastErrorCode_=0;delete MJi[this.JSC$11492_name_]};
_.F.isComplete=function(){return this.complete_};
_.F.isSuccess=function(){return this.success_};
_.F.isActive=function(){return this.JSC$11494_active_};
_.F.getResponseText=function(){return this.lastContent_};
_.F.getLastError=function(){return _.I9M(this.JSC$11494_lastErrorCode_)};
var TWM=function(H){H.JSC$11494_active_=!0;H.complete_=!1;H.JSC$11494_lastErrorCode_=0;H.iframeName_=H.JSC$11492_name_+"_"+(H.nextIframeId_++).toString(36);H.JSC$11494_iframe_=Ol(H.JSC$11494_form_).JSC$9341_createDom("IFRAME",{name:H.iframeName_,id:H.iframeName_});var C=H.JSC$11494_iframe_.style;C.visibility="hidden";C.width=C.height="10px";C.display="none";_.Tt?C.marginTop=C.marginLeft="-10px":(C.position="absolute",C.top=C.left="-10px");Ol(H.JSC$11494_form_).JSC$9339_document_.body.appendChild(H.JSC$11494_iframe_);
C=H.iframeName_+"_inner";var S=$9b(H.JSC$11494_iframe_);if(document.baseURI){var w=Wt(C);w='<head><base href="'+Wt(document.baseURI)+'"></head><body><iframe id="'+w+'" name="'+w+'"></iframe>';w=R2(w)}else w=Wt(C),w=R2('<body><iframe id="'+w+'" name="'+w+'"></iframe>');S.write(xD(w));_.PI(S.getElementById(C),"load",H.onIframeLoaded_,!1,H);w=vl("TEXTAREA",H.JSC$11494_form_);for(var A=0,J=w.length;A<J;A++){var c=w[A].value;BiU(w[A])!=c&&(_.Uv(w[A],c),w[A].value=c)}w=S.importNode(H.JSC$11494_form_,!0);
w.target=C;w.action=H.JSC$11494_form_.action;S.body.appendChild(w);A=vl("SELECT",H.JSC$11494_form_);J=vl("SELECT",w);c=0;for(var Y=A.length;c<Y;c++)for(var M=vl("OPTION",A[c]),m=vl("OPTION",J[c]),W=0,y=M.length;W<y;W++)m[W].selected=M[W].selected;A=vl("INPUT",H.JSC$11494_form_);J=vl("INPUT",w);c=0;for(Y=A.length;c<Y;c++)if(A[c].type=="file"&&A[c].value!=J[c].value){H.JSC$11494_form_.target=C;w=H.JSC$11494_form_;break}try{H.errorHandled_=!1,w.submit(),S.close(),_.qy&&setTimeout(H.testForFirefoxSilentError_.bind(H),
250)}catch(N){_.$c(S.getElementById(C),"load",H.onIframeLoaded_,!1,H),S.close(),uD(H,2)}};
bD.prototype.onIframeLoaded_=function(){_.$c(ec(this),"load",this.onIframeLoaded_,!1,this);try{var H=this.JSC$11494_iframe_?$9b(ec(this)):null;this.complete_=!0;this.JSC$11494_active_=!1;try{var C=H.body;this.lastContent_=C.textContent||C.innerText}catch(A){var S=1}var w;S||typeof this.errorChecker_!="function"||(w=this.errorChecker_(H))&&(S=4);S?uD(this,S):(this.success_=!0,this.JSC$11494_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),W37(this))}catch(A){uD(this,1)}};
var uD=function(H,C){H.errorHandled_||(H.success_=!1,H.JSC$11494_active_=!1,H.complete_=!0,H.JSC$11494_lastErrorCode_=C,H.dispatchEvent("complete"),H.dispatchEvent("error"),W37(H),H.errorHandled_=!0)},W37=function(H){ygn(H);
ms7(H);H.JSC$11494_form_=null;H.dispatchEvent("ready")},ygn=function(H){var C=H.JSC$11494_iframe_;
C&&(C.onreadystatechange=null,C.onload=null,C.onerror=null,H.iframesForDisposal_.push(C));H.iframeDisposalTimer_&&(clearTimeout(H.iframeDisposalTimer_),H.iframeDisposalTimer_=null);_.qy?H.iframeDisposalTimer_=setTimeout(H.disposeIframes_.bind(H),2E3):H.disposeIframes_();H.JSC$11494_iframe_=null;H.iframeName_=null};
bD.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var H=this.iframesForDisposal_.pop();_.f6(H)}};
var ms7=function(H){H.JSC$11494_form_&&H.JSC$11494_form_==EQ&&_.Ki(H.JSC$11494_form_)},ec=function(H){return H.JSC$11494_iframe_?$9b(H.JSC$11494_iframe_).getElementById(H.iframeName_+"_inner"):null};
bD.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11494_active_){var H=this.JSC$11494_iframe_?$9b(ec(this)):null;H&&!OXE(H,"documentUri")?(_.$c(ec(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?uD(this,3):uD(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.GM=function(H){return H=="\r"||H=="\n"||H==" "||H=="\t"};var NWd;_.fl=function(H){this.errorMessage_=null;this.result_=[];this.JSC$11496_buffer_="";this.stack_=[];this.JSC$11496_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!H||!H.deliverMessageAsRawString)};
NWd={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};_.fl.prototype.isInputValid=function(){return this.streamState_!=3};
_.fl.prototype.done=function(){return this.streamState_===2};
var va=function(H,C,S){H.streamState_=3;H.errorMessage_="The stream is broken @"+H.JSC$11496_pos_+"/"+S+". With input:\n"+C;throw Error(H.errorMessage_);};
_.fl.prototype.acceptsBinaryInput=function(){return!1};
_.fl.prototype.parse=function(H){function C(){for(;N<H.length;)if(_.GM(H[N]))N++,J.JSC$11496_pos_++;else break;return N<m}
function S(){for(var u;;){u=H[N++];if(!u)break;J.JSC$11496_pos_++;switch(J.state_){case M.INIT:u==="{"?J.state_=M.OBJECT_OPEN:u==="["?J.state_=M.ARRAY_OPEN:_.GM(u)||va(J,H,N);continue;case M.KEY_START:case M.OBJECT_OPEN:if(_.GM(u))continue;if(J.state_===M.KEY_START)c.push(M.KEY_END);else if(u==="}"){A("{}");J.state_=w();continue}else c.push(M.OBJECT_END);u==='"'?J.state_=M.STRING:va(J,H,N);continue;case M.KEY_END:case M.OBJECT_END:if(_.GM(u))continue;u===":"?(J.state_===M.OBJECT_END&&(c.push(M.OBJECT_END),
J.depth_++),J.state_=M.VALUE):u==="}"?(J.depth_--,A(),J.state_=w()):u===","?(J.state_===M.OBJECT_END&&c.push(M.OBJECT_END),J.state_=M.KEY_START):va(J,H,N);continue;case M.ARRAY_OPEN:case M.VALUE:if(_.GM(u))continue;if(J.state_===M.ARRAY_OPEN)if(J.depth_++,J.state_=M.VALUE,u==="]"){J.depth_--;if(J.depth_===0){J.state_=M.ARRAY_END;return}A("[]");J.state_=w();continue}else c.push(M.ARRAY_END);u==='"'?J.state_=M.STRING:u==="{"?J.state_=M.OBJECT_OPEN:u==="["?J.state_=M.ARRAY_OPEN:u==="t"?J.state_=M.TRUE1:
u==="f"?J.state_=M.FALSE1:u==="n"?J.state_=M.NULL1:u!=="-"&&("0123456789".indexOf(u)!==-1?J.state_=M.NUM_DIGIT:va(J,H,N));continue;case M.ARRAY_END:if(u===",")c.push(M.ARRAY_END),J.state_=M.VALUE,J.depth_===1&&(y=N);else if(u==="]"){J.depth_--;if(J.depth_===0)return;A();J.state_=w()}else if(_.GM(u))continue;else va(J,H,N);continue;case M.STRING:var O=N;a:for(;;){for(;J.unicodeCount_>0;)if(u=H[N++],J.unicodeCount_===4?J.unicodeCount_=0:J.unicodeCount_++,!u)break a;if(u==='"'&&!J.slashed_){J.state_=
w();break}if(u==="\\"&&!J.slashed_&&(J.slashed_=!0,u=H[N++],!u))break;if(J.slashed_)if(J.slashed_=!1,u==="u"&&(J.unicodeCount_=1),u=H[N++])continue;else break;Y.lastIndex=N;u=Y.exec(H);if(!u){N=H.length+1;break}N=u.index+1;u=H[u.index];if(!u)break}J.JSC$11496_pos_+=N-O;continue;case M.TRUE1:if(!u)continue;u==="r"?J.state_=M.TRUE2:va(J,H,N);continue;case M.TRUE2:if(!u)continue;u==="u"?J.state_=M.TRUE3:va(J,H,N);continue;case M.TRUE3:if(!u)continue;u==="e"?J.state_=w():va(J,H,N);continue;case M.FALSE1:if(!u)continue;
u==="a"?J.state_=M.FALSE2:va(J,H,N);continue;case M.FALSE2:if(!u)continue;u==="l"?J.state_=M.FALSE3:va(J,H,N);continue;case M.FALSE3:if(!u)continue;u==="s"?J.state_=M.FALSE4:va(J,H,N);continue;case M.FALSE4:if(!u)continue;u==="e"?J.state_=w():va(J,H,N);continue;case M.NULL1:if(!u)continue;u==="u"?J.state_=M.NULL2:va(J,H,N);continue;case M.NULL2:if(!u)continue;u==="l"?J.state_=M.NULL3:va(J,H,N);continue;case M.NULL3:if(!u)continue;u==="l"?J.state_=w():va(J,H,N);continue;case M.NUM_DECIMAL_POINT:u===
"."?J.state_=M.NUM_DIGIT:va(J,H,N);continue;case M.NUM_DIGIT:if("0123456789.eE+-".indexOf(u)!==-1)continue;else N--,J.JSC$11496_pos_--,J.state_=w();continue;default:va(J,H,N)}}}
function w(){var u=c.pop();return u!=null?u:M.VALUE}
function A(u){J.depth_>1||(u||(u=y===-1?J.JSC$11496_buffer_+H.substring(W,N):H.substring(y,N)),J.deliverMessageAsRawString_?J.result_.push(u):J.result_.push(JSON.parse(u)),y=N)}
for(var J=this,c=J.stack_,Y=J.stringInputPattern_,M=NWd,m=H.length,W=0,y=-1,N=0;N<m;)switch(J.streamState_){case 3:return va(J,H,N),null;case 2:return C()&&va(J,H,N),null;case 0:if(C()){var b=H[N++];J.JSC$11496_pos_++;if(b==="["){J.streamState_=1;W=N;J.state_=M.ARRAY_OPEN;continue}else va(J,H,N)}return null;case 1:return S(),J.depth_===0&&J.state_==M.ARRAY_END?(J.streamState_=2,J.JSC$11496_buffer_=H.substring(N)):J.JSC$11496_buffer_=y===-1?J.JSC$11496_buffer_+H.substring(W):H.substring(y),J.result_.length>
0?(b=J.result_,J.result_=[],b):null}return null};_.Zh(_.mP,d4);WM.prototype.getValue=function(){return this.JSC$11504_value_};
WM.prototype.clone=function(){return new WM(this.JSC$11504_key_,this.JSC$11504_value_)};var lD=function(H){this.nodes_=[];if(H)a:{if(H instanceof lD){var C=H.getKeys();H=H.getValues();if(this.getCount()<=0){for(var S=this.nodes_,w=0;w<C.length;w++)S.push(new WM(C[w],H[w]));break a}}else C=_.hb.getKeys(H),H=_.hb.getValues(H);for(S=0;S<C.length;S++)this.insert(C[S],H[S])}};
_.F=lD.prototype;_.F.insert=function(H,C){var S=this.nodes_;S.push(new WM(H,C));H=S.length-1;C=this.nodes_;for(S=C[H];H>0;){var w=H-1>>1;if(C[w].JSC$11504_key_>S.JSC$11504_key_)C[H]=C[w],H=w;else break}C[H]=S};
_.F.remove=function(){var H=this.nodes_,C=H.length,S=H[0];if(!(C<=0)){if(C==1)H.length=0;else{H[0]=H.pop();H=0;C=this.nodes_;for(var w=C.length,A=C[H];H<w>>1;){var J=H*2+1,c=H*2+2;J=c<w&&C[c].JSC$11504_key_<C[J].JSC$11504_key_?c:J;if(C[J].JSC$11504_key_>A.JSC$11504_key_)break;C[H]=C[J];H=J}C[H]=A}return S.getValue()}};
_.F.peek=function(){var H=this.nodes_;if(H.length!=0)return H[0].getValue()};
_.F.getValues=function(){for(var H=this.nodes_,C=[],S=H.length,w=0;w<S;w++)C.push(H[w].getValue());return C};
_.F.getKeys=function(){for(var H=this.nodes_,C=[],S=H.length,w=0;w<S;w++)C.push(H[w].JSC$11504_key_);return C};
_.F.containsValue=function(H){return this.nodes_.some(function(C){return C.getValue()==H})};
_.F.containsKey=function(H){return this.nodes_.some(function(C){return C.JSC$11504_key_==H})};
_.F.clone=function(){return new lD(this)};
_.F.getCount=function(){return this.nodes_.length};
_.F.isEmpty=function(){return this.nodes_.length===0};
_.F.clear=function(){this.nodes_.length=0};_.VV=function(H,C){this.JSC$11510_map_={};this.JSC$11510_keys_=[];this.version_=this.size=0;var S=arguments.length;if(S>1){if(S%2)throw Error("ka");for(var w=0;w<S;w+=2)this.set(arguments[w],arguments[w+1])}else H&&this.addAll(H)};
_.F=_.VV.prototype;_.F.getCount=function(){return this.size};
_.F.getValues=function(){ox(this);for(var H=[],C=0;C<this.JSC$11510_keys_.length;C++)H.push(this.JSC$11510_map_[this.JSC$11510_keys_[C]]);return H};
_.F.getKeys=function(){ox(this);return this.JSC$11510_keys_.concat()};
_.F.containsKey=function(H){return this.has(H)};
_.F.has=function(H){return OQ(this.JSC$11510_map_,H)};
_.F.containsValue=function(H){for(var C=0;C<this.JSC$11510_keys_.length;C++){var S=this.JSC$11510_keys_[C];if(OQ(this.JSC$11510_map_,S)&&this.JSC$11510_map_[S]==H)return!0}return!1};
_.F.equals=function(H,C){if(this===H)return!0;if(this.size!=H.getCount())return!1;C=C||bub;ox(this);for(var S,w=0;S=this.JSC$11510_keys_[w];w++)if(!C(this.get(S),H.get(S)))return!1;return!0};
var bub=function(H,C){return H===C};
_.VV.prototype.isEmpty=function(){return this.size==0};
_.VV.prototype.clear=function(){this.JSC$11510_map_={};this.version_=this.size=this.JSC$11510_keys_.length=0};
_.VV.prototype.remove=function(H){return this.delete(H)};
_.VV.prototype.delete=function(H){return OQ(this.JSC$11510_map_,H)?(delete this.JSC$11510_map_[H],--this.size,this.version_++,this.JSC$11510_keys_.length>2*this.size&&ox(this),!0):!1};
var ox=function(H){if(H.size!=H.JSC$11510_keys_.length){for(var C=0,S=0;C<H.JSC$11510_keys_.length;){var w=H.JSC$11510_keys_[C];OQ(H.JSC$11510_map_,w)&&(H.JSC$11510_keys_[S++]=w);C++}H.JSC$11510_keys_.length=S}if(H.size!=H.JSC$11510_keys_.length){C={};for(w=S=0;S<H.JSC$11510_keys_.length;){var A=H.JSC$11510_keys_[S];OQ(C,A)||(H.JSC$11510_keys_[w++]=A,C[A]=1);S++}H.JSC$11510_keys_.length=w}};
_.F=_.VV.prototype;_.F.get=function(H,C){return OQ(this.JSC$11510_map_,H)?this.JSC$11510_map_[H]:C};
_.F.set=function(H,C){OQ(this.JSC$11510_map_,H)||(this.size+=1,this.JSC$11510_keys_.push(H),this.version_++);this.JSC$11510_map_[H]=C};
_.F.addAll=function(H){if(H instanceof _.VV)for(var C=H.getKeys(),S=0;S<C.length;S++)this.set(C[S],H.get(C[S]));else for(C in H)this.set(C,H[C])};
_.F.forEach=function(H,C){for(var S=this.getKeys(),w=0;w<S.length;w++){var A=S[w],J=this.get(A);H.call(C,J,A,this)}};
_.F.clone=function(){return new _.VV(this)};
_.F.transpose=function(){for(var H=new _.VV,C=0;C<this.JSC$11510_keys_.length;C++){var S=this.JSC$11510_keys_[C];H.set(this.JSC$11510_map_[S],S)}return H};
_.F.keys=function(){return kqW(this.__iterator__(!0)).toEs6()};
_.F.values=function(){return kqW(this.__iterator__(!1)).toEs6()};
_.F.entries=function(){var H=this;return SdU(this.keys(),function(C){return[C,H.get(C)]})};
_.F.__iterator__=function(H){ox(this);var C=0,S=this.version_,w=this,A=new uM;A.next=function(){if(S!=w.version_)throw Error("te");if(C>=w.JSC$11510_keys_.length)return G$;var J=w.JSC$11510_keys_[C++];return f3(H?J:w.JSC$11510_map_[J])};
return A};
var OQ=function(H,C){return Object.prototype.hasOwnProperty.call(H,C)};var eeV=function(){this.JSC$11513_map_=new _.VV;this.JSC$11513_head_=new EbM("");this.JSC$11513_head_.next=this.JSC$11513_head_.prev=this.JSC$11513_head_},uB_=function(H,C){if(C=H.JSC$11513_map_.get(C))C.remove(),H.insert_(C);
return C};
_.F=eeV.prototype;_.F.get=function(H,C){return(H=uB_(this,H))?H.value:C};
_.F.set=function(H,C){var S=uB_(this,H);S?S.value=C:(S=new EbM(H,C),this.JSC$11513_map_.set(H,S),this.insert_(S))};
_.F.peek=function(){return this.JSC$11513_head_.next.value};
_.F.shift=function(){return GGY(this,this.JSC$11513_head_.next)};
_.F.pop=function(){return GGY(this,this.JSC$11513_head_.prev)};
_.F.remove=function(H){return(H=this.JSC$11513_map_.get(H))?(this.removeNode(H),!0):!1};
_.F.removeNode=function(H){H.remove();this.JSC$11513_map_.remove(H.key)};
_.F.getCount=function(){return this.JSC$11513_map_.getCount()};
_.F.isEmpty=function(){return this.JSC$11513_map_.isEmpty()};
_.F.getKeys=function(){return this.map(function(H,C){return C})};
_.F.getValues=function(){return this.map(function(H){return H})};
_.F.contains=function(H){return this.some(function(C){return C==H})};
_.F.containsKey=function(H){return this.JSC$11513_map_.containsKey(H)};
_.F.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11513_head_.prev)};
_.F.forEach=function(H,C){for(var S=this.JSC$11513_head_.next;S!=this.JSC$11513_head_;S=S.next)H.call(C,S.value,S.key,this)};
_.F.map=function(H,C){for(var S=[],w=this.JSC$11513_head_.next;w!=this.JSC$11513_head_;w=w.next)S.push(H.call(C,w.value,w.key,this));return S};
_.F.some=function(H,C){for(var S=this.JSC$11513_head_.next;S!=this.JSC$11513_head_;S=S.next)if(H.call(C,S.value,S.key,this))return!0;return!1};
_.F.every=function(H,C){for(var S=this.JSC$11513_head_.next;S!=this.JSC$11513_head_;S=S.next)if(!H.call(C,S.value,S.key,this))return!1;return!0};
_.F.insert_=function(H){H.next=this.JSC$11513_head_.next;H.prev=this.JSC$11513_head_;this.JSC$11513_head_.next=H;for(H.next.prev=H;this.getCount()>100;)this.removeNode(this.JSC$11513_head_.prev)};
var GGY=function(H,C){H.JSC$11513_head_!=C&&H.removeNode(C);return C.value},EbM=function(H,C){this.key=H;
this.value=C};
EbM.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var flb=function(){lD.apply(this,arguments)};
_.G(flb,lD);flb.prototype.enqueue=function(H,C){this.insert(H,C)};var vb_=function(){var H=Error();H.name="SecurityError";throw H;},ZRi=function(){return{get opener(){return null},
get closed(){return!0},get location(){vb_()},get document(){vb_()},postMessage:function(){},
close:function(){},
focus:function(){}}};var wCV={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 Fap={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 llU={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(Fap).join("|");var VJi=function(){function H(Y){Y.substr(-1)!==";"&&(Y+=";");return c(Y)}
for(var C=Object.keys(llU).sort(JSu),S=Object.keys(Fap).sort(JSu),w=0,A=0;w<S.length;w++)C[A]===S[w]?(S[w]+=";?",A++):S[w]+=";";var J=new RegExp("&(?:"+S.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),c=ZhU();return function(Y){return String(Y).replace(J,H)}}();/*

 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 obY={};var OuU=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"),Xbd=/[\\&]/,QWW=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),dsb=RegExp('[&<>"]',"g"),Pm7=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),$sV=function(H){return H.charCodeAt(0)===92?H.charAt(1):VJi(H)},pbW=function(H){return Xbd.test(H)?H.replace(QWW,$sV):H},kGd=function(H){try{var C,S="";
if(typeof A!=="string"){var w=A;var A=";/?:@&=+$,-_.!~*'()#"}typeof w==="undefined"&&(w=!0);var J,c=obY[A];if(c)var Y=c;else{c=obY[A]=[];for(J=0;J<128;J++){var M=String.fromCharCode(J);/^[0-9a-z]$/i.test(M)?c.push(M):c.push("%"+("0"+J.toString(16).toUpperCase()).slice(-2))}for(J=0;J<A.length;J++)c[A.charCodeAt(J)]=A[J];Y=c}var m=0;for(C=H.length;m<C;m++){var W=H.charCodeAt(m);if(w&&W===37&&m+2<C&&/^[0-9a-f]{2}$/i.test(H.slice(m+1,m+3)))S+=H.slice(m,m+3),m+=2;else if(W<128)S+=Y[W];else if(W>=55296&&
W<=57343){if(W>=55296&&W<=56319&&m+1<C){var y=H.charCodeAt(m+1);if(y>=56320&&y<=57343){S+=encodeURIComponent(H[m]+H[m+1]);m++;continue}}S+="%EF%BF%BD"}else S+=encodeURIComponent(H[m])}return S}catch(N){return H}},heV=function(H){switch(H){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return H}},Xr=function(H,C){return dsb.test(H)?C?H.replace(Pm7,heV):H.replace(dsb,heV):H};/*

 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 QV;if(String.fromCodePoint)QV=function(H){try{return String.fromCodePoint(H)}catch(C){if(C instanceof RangeError)return String.fromCharCode(65533);throw C;}};
else{var nbY=String.fromCharCode,rg7=Math.floor;QV=function(){var H=[],C=-1,S=arguments.length;if(!S)return"";for(var w="";++C<S;){var A=Number(arguments[C]);if(!isFinite(A)||A<0||A>1114111||rg7(A)!==A)return String.fromCharCode(65533);if(A<=65535)H.push(A);else{A-=65536;var J=(A>>10)+55296;A=A%1024+56320;H.push(J,A)}if(C+1===S||H.length>16384)w+=nbY.apply(null,H),H.length=0}return w}};var BWb=function(H){this.root=this.current=H;this.entering=!0};
BWb.prototype.next=function(){var H=this.current,C=this.entering;if(H===null)return null;a:switch(H._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 S=!0;break a;default:S=!1}C&&S?H._firstChild?(this.current=H._firstChild,this.entering=!0):this.entering=!1:H===this.root?this.current=null:H._next===null?(this.current=
H._parent,this.entering=!1):(this.current=H._next,this.entering=!0);return{entering:C,node:H}};
var Ek=function(H,C){this._type=H;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=C;this._lastLineBlank=!1;this._open=!0;this._literal=this._string_content=null;this._listData={};this._title=this._destination=this._info=null;this._isFenced=!1;this._fenceChar=null;this._fenceLength=0;this._onExit=this._onEnter=this._level=this._fenceOffset=null};
Ek.prototype.appendChild=function(H){H.unlink();H._parent=this;this._lastChild?(this._lastChild._next=H,H._prev=this._lastChild):this._firstChild=H;this._lastChild=H};
Ek.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 Dsb=function(H,C){C.unlink();C._next=H._next;C._next&&(C._next._prev=C);C._prev=H;H._next=C;C._parent=H._parent;C._next||(C._parent._lastChild=C)};
Ek.prototype.insertBefore=function(H){H.unlink();H._prev=this._prev;H._prev&&(H._prev._next=H);H._next=this;this._prev=H;H._parent=this._parent;H._prev||(H._parent._firstChild=H)};
_.JJ.Object.defineProperties(Ek.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(H){this._literal=H}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(H){this._destination=H}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(H){this._title=H}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(H){this._info=H}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(H){this._level=H}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(H){this._listData.type=H}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(H){this._listData.tight=H}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(H){this._listData.start=H}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(H){this._onEnter=H}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(H){this._onExit=H}}});var cSE=/[ \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,
YwD={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 K37=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]/),
tJ1=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),L3Y=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),gb7=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),Us1=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),Red=/`+/,Ilb=/^`+/,alY=/\.\.\./g,xsd=/--+/g,HnU=/^<([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])?)*)>/,
inn=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,Crd=/^ *(?:\n *)?/,S5M=/^[ \t\n\x0b\x0c\x0d]/,s$M=/[ \t\n\x0b\x0c\x0d]+/g,j$Y=/^\s/,wtd=/ *$/,ABd=/^ */,JBP=/^ *(?:\n|$)/,F_7=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),Zni=/^[^\n`\[\]\\!<&*_'"]+/m,dA=function(H){var C=new Ek("text");C._literal=H;return C},Pa=function(H){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=H||{}};
Pa.prototype.match=function(H){H=H.exec(this.subject.slice(this.pos));if(H===null)return null;this.pos+=H.index+H[0].length;return H[0]};
Pa.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var $A=function(H){H.match(Crd);return!0},cBi=function(H,C,S){var w=0;
var A=H.pos;if(C===39||C===34)w++,H.pos++;else for(;H.peek()===C;)w++,H.pos++;if(w===0)w=null;else{var J=A===0?"\n":H.subject.charAt(A-1);var c=H.peek();c=c===-1?"\n":QV(c);var Y=j$Y.test(c);c=K37.test(c);var M=j$Y.test(J);var m=K37.test(J);J=!Y&&!(c&&!M&&!m);Y=!M&&!(m&&!Y&&!c);C===95?(M=J&&(!Y||m),c=Y&&(!J||c)):(M=C===39||C===34?J&&!Y:J,c=Y);H.pos=A;w={numdelims:w,can_open:M,can_close:c}}if(!w)return!1;A=w.numdelims;c=H.pos;H.pos+=A;c=C===39?"\u2019":C===34?"\u201c":H.subject.slice(c,H.pos);c=dA(c);
S.appendChild(c);H.delimiters={cc:C,numdelims:A,origdelims:A,node:c,previous:H.delimiters,next:null,can_open:w.can_open,can_close:w.can_close};H.delimiters.previous!==null&&(H.delimiters.previous.next=H.delimiters);return!0},Y57=function(H,C){C.previous!==null&&(C.previous.next=C.next);
C.next===null?H.delimiters=C.previous:C.next.previous=C.previous},zXd=function(H,C){var S,w,A=[],J=!1;
A[95]=C;A[42]=C;A[39]=C;A[34]=C;for(S=H.delimiters;S!==null&&S.previous!==C;)S=S.previous;for(;S!==null;){var c=S.cc;if(S.can_close){var Y=S.previous;for(w=!1;Y!==null&&Y!==C&&Y!==A[c];){J=(S.can_open||Y.can_close)&&(Y.origdelims+S.origdelims)%3===0;if(Y.cc===S.cc&&Y.can_open&&!J){w=!0;break}Y=Y.previous}var M=S;if(c===42||c===95)if(w){var m=S.numdelims>=2&&Y.numdelims>=2?2:1;var W=Y.node;var y=S.node;Y.numdelims-=m;S.numdelims-=m;W._literal=W._literal.slice(0,W._literal.length-m);y._literal=y._literal.slice(0,
y._literal.length-m);var N=new Ek(m===1?"emph":"strong");for(m=W._next;m&&m!==y;){var b=m._next;m.unlink();N.appendChild(m);m=b}Dsb(W,N);m=Y;b=S;m.next!==b&&(m.next=b,b.previous=m);Y.numdelims===0&&(W.unlink(),Y57(H,Y));S.numdelims===0&&(y.unlink(),Y=S.next,Y57(H,S),S=Y)}else S=S.next;else c===39?(S.node._literal="\u2019",w&&(Y.node._literal="\u2018"),S=S.next):c===34&&(S.node._literal="\u201d",w&&(Y.node.literal="\u201c"),S=S.next);w||J||(A[c]=M.previous,M.can_open||Y57(H,M))}else S=S.next}for(;H.delimiters!==
null&&H.delimiters!==C;)Y57(H,H.delimiters)},M41=function(H){H=H.match(tJ1);
return H===null?null:pbW(H.substr(1,H.length-2))},q51=function(H){var C=H.match(L3Y);
if(C===null){C=H.pos;for(var S=0,w;(w=H.peek())!==-1;)if(w===92)H.pos+=1,H.peek()!==-1&&(H.pos+=1);else if(w===40)H.pos+=1,S+=1;else if(w===41)if(S<1)break;else H.pos+=1,--S;else if(S5M.exec(QV(w))!==null)break;else H.pos+=1;C=H.subject.substr(C,H.pos-C);return kGd(pbW(C))}return kGd(pbW(C.substr(1,C.length-2)))},Twi=function(H){H=H.match(F_7);
return H===null||H.length>1001?0:H.length},mpb=function(H,C,S,w){H.brackets!==null&&(H.brackets.bracketAfter=!0);
H.brackets={node:C,previous:H.brackets,previousDelimiter:H.delimiters,index:S,image:w,active:!0}},W_V=function(H,C){var S;
return(S=H.match(Zni))?(H.options.smart?C.appendChild(dA(S.replace(alY,"\u2026").replace(xsd,function(w){var A=0,J=0;w.length%3===0?J=w.length/3:w.length%2===0?A=w.length/2:w.length%3===2?(A=1,J=(w.length-2)/3):(A=2,J=(w.length-4)/3);w="";var c;for(c=0;c<J;c++)w+="\u2014";for(c=0;c<A;c++)w+="\u2013";return w}))):C.appendChild(dA(S)),!0):!1},yBb=function(H,C,S){H.subject=C;
H.pos=0;C=H.pos;var w=Twi(H);if(w===0)return 0;var A=H.subject.substr(0,w);if(H.peek()===58)H.pos++;else return H.pos=C,0;$A(H);w=q51(H);if(w===null||w.length===0)return H.pos=C,0;var J=H.pos;$A(H);var c=M41(H);c===null&&(c="",H.pos=J);var Y=!0;H.match(JBP)===null&&(c===""?Y=!1:(c="",H.pos=J,Y=H.match(JBP)!==null));if(!Y)return H.pos=C,0;A=zwp(A);if(A==="")return H.pos=C,0;S[A]||(S[A]={destination:w,title:c});return H.pos-C},Nwb=function(H,C){var S,w=H.peek();
if(w===-1)return!1;switch(w){case 10:H.pos+=1;if((S=C._lastChild)&&S.type==="text"&&S._literal[S._literal.length-1]===" "){var A=S._literal[S._literal.length-2]===" ";S._literal=S._literal.replace(wtd,"");C.appendChild(new Ek(A?"linebreak":"softbreak"))}else C.appendChild(new Ek("softbreak"));H.match(ABd);S=!0;break;case 92:S=H.subject;H.pos+=1;H.peek()===10?(H.pos+=1,S=new Ek("linebreak"),C.appendChild(S)):gb7.test(S.charAt(H.pos))?(C.appendChild(dA(S.charAt(H.pos))),H.pos+=1):C.appendChild(dA("\\"));
S=!0;break;case 96:a:if(S=H.match(Ilb),S===null)S=!1;else{A=H.pos;for(var J;(J=H.match(Red))!==null;)if(J===S){J=new Ek("code");J._literal=H.subject.slice(A,H.pos-S.length).trim().replace(s$M," ");C.appendChild(J);S=!0;break a}H.pos=A;C.appendChild(dA(S));S=!0}break;case 42:case 95:S=cBi(H,w,C);break;case 39:case 34:S=H.options.smart&&cBi(H,w,C);break;case 91:S=H.pos;H.pos+=1;A=dA("[");C.appendChild(A);mpb(H,A,S,!1);S=!0;break;case 33:S=H.pos;H.pos+=1;H.peek()===91?(H.pos+=1,A=dA("!["),C.appendChild(A),
mpb(H,A,S+1,!0)):C.appendChild(dA("!"));S=!0;break;case 93:var c,Y=!1,M;H.pos+=1;var m=H.pos;A=H.brackets;if(A===null)C.appendChild(dA("]"));else if(A.active){S=A.image;var W=H.pos;H.peek()===40&&(H.pos++,$A(H)&&(J=q51(H))!==null&&$A(H)&&(S5M.test(H.subject.charAt(H.pos-1))&&(c=M41(H)),1)&&$A(H)&&H.peek()===41?(H.pos+=1,Y=!0):H.pos=W);if(!Y){var y=H.pos,N=Twi(H);N>2?M=H.subject.slice(y,y+N):A.bracketAfter||(M=H.subject.slice(A.index,m));N===0&&(H.pos=W);M&&(M=H.refmap[zwp(M)])&&(J=M.destination,c=
M.title,Y=!0)}if(Y){m=new Ek(S?"image":"link");m._destination=J;m._title=c||"";for(J=A.node._next;J;)c=J._next,J.unlink(),m.appendChild(J),J=c;C.appendChild(m);zXd(H,A.previousDelimiter);H.brackets=H.brackets.previous;A.node.unlink();if(!S)for(A=H.brackets;A!==null;)A.image||(A.active=!1),A=A.previous}else H.brackets=H.brackets.previous,H.pos=m,C.appendChild(dA("]"))}else C.appendChild(dA("]")),H.brackets=H.brackets.previous;S=!0;break;case 60:(S=H.match(HnU))?(S=S.slice(1,S.length-1),A=new Ek("link"),
A._destination=kGd("mailto:"+S),A._title="",A.appendChild(dA(S)),C.appendChild(A),S=!0):(S=H.match(inn))?(S=S.slice(1,S.length-1),A=new Ek("link"),A._destination=kGd(S),A._title="",A.appendChild(dA(S)),C.appendChild(A),S=!0):S=!1;S||(S=H.match(OuU),S===null?S=!1:(A=new Ek("html_inline"),A._literal=S,C.appendChild(A),S=!0));break;case 38:(S=H.match(Us1))?(C.appendChild(dA(VJi(S))),S=!0):S=!1;break;default:S=W_V(H,C)}S||(H.pos+=1,C.appendChild(dA(QV(w))));return!0};
Pa.prototype.parseInlines=function(H){this.subject=H._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;Nwb(this,H););H._string_content=null;zXd(this,null)};
Pa.prototype.parse=Pa.prototype.parseInlines;var bnM=[/./,/^<(?: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")],Ei7=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],eX7=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,u1U=/^[#`~*+_=<>0-9-\|]|\|/,Gb_=/[^ \t\f\v\r\n]/,fzV=/^[*+-]/,viU=/^(\d{1,9})([.)])/,lzd=/^#{1,6}(?:[ \t]+|$)/,V4i=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,oiY=/^(?:`{3,}|~{3,})(?= *$)/,OnP=/^(?:=+|-+)[ \t]*$/,Xt7=/\r\n|\n|\r/,TL$=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,mRu=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,Q$M={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(H){return H!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(H,C){for(H=C._firstChild;H;){if(MQ$(H)&&H._next){C._listData.tight=!1;break}for(var S=H._firstChild;S;){if(MQ$(S)&&(H._next||S._next)){C._listData.tight=!1;break}S=S._next}H=H._next}},
canContain:function(H){return H==="item"},
acceptsLines:!1},block_quote:{continue:function(H){var C=H.currentLine;if(H.indented||NQ(C,H.nextNonspace)!==62)return 1;pl(H);kA(H,1,!1);y8(NQ(C,H.offset))&&kA(H,1,!0);return 0},
finalize:function(){},
canContain:function(H){return H!=="item"},
acceptsLines:!1},item:{continue:function(H,C){if(H.blank){if(C._firstChild==null)return 1;pl(H)}else if(H.indent>=C._listData.markerOffset+C._listData.padding)kA(H,C._listData.markerOffset+C._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(H){return H!=="item"&&!Wa$(H)},
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(H,C){var S=H.currentLine,w=H.indent;if(C._isFenced){if((w=w<=3&&S.charAt(H.nextNonspace)===C._fenceChar&&S.slice(H.nextNonspace).match(oiY))&&w[0].length>=C._fenceLength)return H.finalize(C,H.lineNumber),2;for(C=C._fenceOffset;C>0&&y8(NQ(S,H.offset));)kA(H,1,!0),C--}else if(w>=4)kA(H,4,!0);else if(H.blank)pl(H);else return 1;return 0},
finalize:function(H,C){if(C._isFenced){var S=C._string_content,w=S.indexOf("\n");H=S.slice(0,w);S=S.slice(w+1);C.info=pbW(H.trim());C._literal=S}else C._literal=C._string_content.replace(/(\n *)+$/,"\n");C._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(H,C){return!H.blank||C._htmlBlockType!==6&&C._htmlBlockType!==7?0:1},
finalize:function(H,C){C._literal=C._string_content.replace(/(\n *)+$/,"");C._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(H){return H.blank?1:0},
finalize:function(H,C){for(var S,w=!1;NQ(C._string_content,0)===91&&(S=yBb(H.inlineParser,C._string_content,H.refmap));)C._string_content=C._string_content.slice(S),w=!0;w&&!Gb_.test(C._string_content)&&C.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(H){return bs(H.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(H){return H=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(H,C){if(!C._rowIsDelimiter){H=C._isHeader?"th":"td";for(var S=C._parent._tableColumns,w=C._string_content,A=0,J="",c,Y=C._sourcepos[0][0];A<w.length;){switch(w[A]){case "|":c&&(c._string_content=J.trim(),J="",c=null,S--,S<=0&&(A=w.length));break;default:if(!c){c=new Ek(H,[[Y,A],[Y,A]]);var M=C._parent._columnAlignment,m=C._parent._tableColumns-S;M&&m<=M.length&&m>=0&&(c._alignment=M[m]);C.appendChild(c)}J+=w[A];c._sourcepos[1][1]=A}A++}c&&(c._string_content=J.trim());C._string_content=
""}},
canContain:function(H){return H!=="row"},
acceptsLines:!1}},dpb=[function(H){if(H.indented||NQ(H.currentLine,H.nextNonspace)!==62)return 0;pl(H);kA(H,1,!1);y8(NQ(H.currentLine,H.offset))&&kA(H,1,!0);hn(H);H.addChild("block_quote",H.nextNonspace);return 1},
function(H){var C;if(!H.indented&&(C=H.currentLine.slice(H.nextNonspace).match(lzd))){pl(H);kA(H,C[0].length,!1);hn(H);var S=H.addChild("heading",H.nextNonspace);S.level=C[0].trim().length;S._string_content=H.currentLine.slice(H.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");kA(H,H.currentLine.length-H.offset);return 2}return 0},
function(H){var C;if(!H.indented&&(C=H.currentLine.slice(H.nextNonspace).match(V4i))){var S=C[0].length;hn(H);var w=H.addChild("code_block",H.nextNonspace);w._isFenced=!0;w._fenceLength=S;w._fenceChar=C[0][0];w._fenceOffset=H.indent;pl(H);kA(H,S,!1);return 2}return 0},
function(H,C){if(!H.indented&&NQ(H.currentLine,H.nextNonspace)===60){var S=H.currentLine.slice(H.nextNonspace),w;for(w=1;w<=7;w++)if(bnM[w].test(S)&&(w<7||C.type!=="paragraph"))return hn(H),H.addChild("html_block",H.offset)._htmlBlockType=w,2}return 0},
function(H,C){var S;if(!H.indented&&C.type==="paragraph"&&(S=H.currentLine.slice(H.nextNonspace).match(OnP))){hn(H);var w=new Ek("heading",C.sourcepos);w.level=S[0][0]==="="?1:2;w._string_content=C._string_content;Dsb(C,w);C.unlink();H.tip=w;kA(H,H.currentLine.length-H.offset,!1);return 2}return 0},
function(H){return!H.indented&&eX7.test(H.currentLine.slice(H.nextNonspace))?(hn(H),H.addChild("thematic_break",H.nextNonspace),kA(H,H.currentLine.length-H.offset,!1),2):0},
function(H,C){var S,w;if(!(w=H.indented&&C.type!=="list")){a:{var A=C,J=H.currentLine.slice(H.nextNonspace);w={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:H.indent};if(S=J.match(fzV))w.type="bullet",w.bulletChar=S[0][0];else{if(!(S=J.match(viU))||A.type==="paragraph"&&S[1]!=="1"){S=null;break a}w.type="ordered";w.start=parseInt(S[1],10);w.delimiter=S[2]}var c=NQ(H.currentLine,H.nextNonspace+S[0].length);if(c!==-1&&c!==9&&c!==32||A.type==="paragraph"&&!H.currentLine.slice(H.nextNonspace+
S[0].length).match(Gb_))S=null;else{pl(H);kA(H,S[0].length,!0);A=H.column;J=H.offset;do kA(H,1,!0),c=NQ(H.currentLine,H.offset);while(H.column-A<5&&y8(c));c=NQ(H.currentLine,H.offset)===-1;var Y=H.column-A;Y>=5||Y<1||c?(w.padding=S[0].length+1,H.column=A,H.offset=J,y8(NQ(H.currentLine,H.offset))&&kA(H,1,!0)):w.padding=S[0].length+Y;S=w}}w=!S}if(w)return 0;hn(H);(w=H.tip.type!=="list")||(C=C._listData,w=!(C.type===S.type&&C.delimiter===S.delimiter&&C.bulletChar===S.bulletChar));w&&(C=H.addChild("list",
H.nextNonspace),C._listData=S);C=H.addChild("item",H.nextNonspace);C._listData=S;return 1},
function(H){var C;return((C=H.options.shouldParseIndentAsCodeBlock)!=null?C:1)&&H.indented&&H.tip.type!=="paragraph"&&!H.blank?(kA(H,4,!0),hn(H),H.addChild("code_block",H.offset),2):0},
function(H,C){var S=bs(H.currentLine),w=bs(H.lookahead);if(S!==0&&w<0&&Math.abs(S)==Math.abs(w)&&!Wa$(C.type)){hn(H);C=H.addChild("table",H.nextNonspace);C._tableRows=1;C._tableColumns=Math.abs(S);S=H.lookahead;if(mRu.test(S)){w=[];for(var A=0,J=!1,c=0,Y=void 0;A<S.length;){var M=c>=3;switch(S[A]){case "-":c++;break;case "|":J&&(w.push(Y),Y=void 0,c=0);J=!0;break;case ":":Y||M||(Y="left"),!Y&&M&&(Y="right"),Y==="left"&&M&&(Y="center")}A++}S=w}else S=void 0;C._columnAlignment=S;C=H.addChild("row",
H.nextNonspace);C._isHeader=!0;kA(H,H.currentLine.length-H.offset,!1);C._string_content=H.currentLine;return 1}return 0},
function(H,C){if(C.type=="table"&&bs(H.currentLine)!==0){hn(H);var S=C;C=H.addChild("row",H.nextNonspace);bs(H.currentLine)<0?C._rowIsDelimiter=!0:S._tableRows+=1;kA(H,H.currentLine.length-H.offset,!1);C._string_content=H.currentLine;return 2}return 0}],gYZ=function(){var H={shouldParseIndentAsCodeBlock:!1};
H=H===void 0?{}:H;this.lastMatchedContainer=this.doc=ySW();this.refmap={};this.lastLineLength=0;this.inlineParser=new Pa(H);this.options=H;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=Q$M;this.blockStarts=dpb},Pr_=function(H){H.partiallyConsumedTab&&(H.offset+=1,H.tip._string_content+=" ".repeat(4-H.column%
4));
H.tip._string_content+=H.currentLine.slice(H.offset)+"\n"};
gYZ.prototype.addChild=function(H,C){for(;!this.blocks[this.tip.type].canContain(H);)this.finalize(this.tip,this.lineNumber-1);H=new Ek(H,[[this.lineNumber,C+1],[0,0]]);H._string_content="";this.tip.appendChild(H);return this.tip=H};
var hn=function(H){if(!H.allClosed){for(;H.oldtip!==H.lastMatchedContainer;){var C=H.oldtip._parent;H.finalize(H.oldtip,H.lineNumber-1);H.oldtip=C}H.allClosed=!0}},kA=function(H,C,S){for(var w=H.currentLine,A,J;C>0&&(J=w[H.offset]);)J==="\t"?(A=4-H.column%4,S?(H.partiallyConsumedTab=A>C,A=A>C?C:A,H.column+=A,H.offset+=H.partiallyConsumedTab?0:1,C-=A):(H.partiallyConsumedTab=!1,H.column+=A,H.offset+=1,--C)):(H.partiallyConsumedTab=!1,H.offset+=1,H.column+=1,--C)},pl=function(H){H.offset=H.nextNonspace;
H.column=H.nextNonspaceColumn;H.partiallyConsumedTab=!1},$pY=function(H){for(var C=H.currentLine,S=H.offset,w=H.column,A;(A=C.charAt(S))!=="";)if(A===" ")S++,w++;
else if(A==="\t")S++,w+=4-w%4;else break;H.blank=A==="\n"||A==="\r"||A==="";H.nextNonspace=S;H.nextNonspaceColumn=w;H.indent=H.nextNonspaceColumn-H.column;H.indented=H.indent>=4};
gYZ.prototype.finalize=function(H,C){var S=H._parent;H._open=!1;H.sourcepos[1]=[C,this.lastLineLength];this.blocks[H.type].finalize(this,H);this.tip=S};
gYZ.prototype.parse=function(H){this.tip=this.doc=ySW();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!H)return this.doc;this.options.time&&console.time("preparing input");var C=H.split(Xt7),S=C.length;H.charCodeAt(H.length-1)===10&&--S;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(H=0;H<S;H++)a:{var w=void 0,A=C[H],J=C[H+1],c=!0,Y=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;A.indexOf("\x00")!==-1&&(A=A.replace(/\0/g,"\ufffd"));this.currentLine=A;for(this.lookahead=J;(w=Y._lastChild)&&w._open;){Y=w;$pY(this);switch(this.blocks[Y.type].continue(this,Y)){case 0:break;case 1:c=!1;break;case 2:this.lastLineLength=A.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!c){Y=Y._parent;break}}this.allClosed=Y===this.oldtip;this.lastMatchedContainer=
Y;w=Y.type!=="paragraph"&&Q$M[Y.type].acceptsLines;J=this.blockStarts;for(c=J.length;!w;){$pY(this);if(!this.indented&&!u1U.test(A.slice(this.nextNonspace))){pl(this);break}for(var M=0;M<c;){var m=J[M](this,Y);if(m===1){Y=this.tip;break}else if(m===2){Y=this.tip;w=!0;break}else M++}if(M===c){pl(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){hn(this);this.blank&&Y.lastChild&&(Y.lastChild._lastLineBlank=!0);w=Y.type;J=this.blank&&!(w==="block_quote"||w==="code_block"&&Y._isFenced||
w==="item"&&!Y._firstChild&&Y.sourcepos[0][0]===this.lineNumber);for(c=Y;c;)c._lastLineBlank=J,c=c._parent;this.blocks[w].acceptsLines?(Pr_(this),w==="html_block"&&Y._htmlBlockType>=1&&Y._htmlBlockType<=5&&Ei7[Y._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(Y,this.lineNumber)):this.offset<A.length&&!this.blank&&(this.addChild("paragraph",this.offset),pl(this),Pr_(this))}else Pr_(this);this.lastLineLength=A.length}for(;this.tip;)this.finalize(this.tip,S);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");A=new BWb(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;S=A.next();)C=S.node,H=C.type,S.entering||H!=="paragraph"&&H!=="heading"&&H!=="th"&&H!="td"||this.inlineParser.parse(C);this.options.time&&console.timeEnd("inline parsing");return this.doc};NLU.prototype.render=function(H){H=new BWb(H);var C;this.buffer="";for(this.lastOut="\n";C=H.next();){var S=C.node.type;if(this[S])this[S](C.node,C.entering)}return this.buffer};
NLU.prototype.out=function(H){nl(this,H)};
var nl=function(H,C){H.buffer+=C;H.lastOut=C};
NLU.prototype.cr=function(){this.lastOut!=="\n"&&nl(this,"\n")};var ptM=/^javascript:|vbscript:|file:|data:/i,kbP=/^data:image\/(?:png|gif|jpeg|webp)/i,hXn=function(H){return ptM.test(H)&&!kbP.test(H)};
ej.prototype=Object.create(NLU.prototype);_.F=ej.prototype;_.F.text=function(H){this.out(H.literal)};
_.F.html_inline=function(H){this.options.safe?nl(this,"\x3c!-- raw HTML omitted --\x3e"):nl(this,H.literal)};
_.F.html_block=function(H){this.cr();this.options.safe?nl(this,"\x3c!-- raw HTML omitted --\x3e"):nl(this,H.literal);this.cr()};
_.F.softbreak=function(){nl(this,this.options.softbreak)};
_.F.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.F.link=function(H,C){var S=this.attrs(H);C?(this.options.safe&&hXn(H.destination)||S.push(["href",Xr(H.destination,!0)]),H.title&&S.push(["title",Xr(H.title,!0)]),this.tag("a",S)):this.tag("/a")};
_.F.image=function(H,C){C?(this.disableTags===0&&(this.options.safe&&hXn(H.destination)?nl(this,'<img src="" alt="'):nl(this,'<img src="'+Xr(H.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(H.title&&nl(this,'" title="'+Xr(H.title,!0)),nl(this,'" />')))};
_.F.emph=function(H,C){this.tag(C?"em":"/em")};
_.F.strong=function(H,C){this.tag(C?"strong":"/strong")};
_.F.paragraph=function(H,C){var S=H.parent.parent;H=this.attrs(H);S!==null&&S.type==="list"&&S.listTight||(C?(this.cr(),this.tag("p",H)):(this.tag("/p"),this.cr()))};
_.F.heading=function(H,C){var S="h"+H.level;H=this.attrs(H);C?(this.cr(),this.tag(S,H)):(this.tag("/"+S),this.cr())};
_.F.code=function(H){this.tag("code");this.out(H.literal);this.tag("/code")};
_.F.code_block=function(H){var C=H.info?H.info.split(/\s+/):[],S=this.attrs(H);C.length>0&&C[0].length>0&&S.push(["class","language-"+Xr(C[0],!0)]);this.cr();this.tag("pre");this.tag("code",S);this.out(H.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.F.thematic_break=function(H){H=this.attrs(H);this.cr();this.tag("hr",H,!0);this.cr()};
_.F.block_quote=function(H,C){H=this.attrs(H);C?(this.cr(),this.tag("blockquote",H)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.F.list=function(H,C){var S=H.listType==="bullet"?"ul":"ol",w=this.attrs(H);C?(H=H.listStart,H!==null&&H!==1&&w.push(["start",H.toString()]),this.cr(),this.tag(S,w)):(this.cr(),this.tag("/"+S));this.cr()};
_.F.item=function(H,C){H=this.attrs(H);C?this.tag("li",H):(this.tag("/li"),this.cr())};
_.F.custom_inline=function(H,C){C&&H.onEnter?nl(this,H.onEnter):!C&&H.onExit&&nl(this,H.onExit)};
_.F.custom_block=function(H,C){this.cr();C&&H.onEnter?nl(this,H.onEnter):!C&&H.onExit&&nl(this,H.onExit);this.cr()};
_.F.table=function(H,C){H=this.attrs(H);C?(this.cr(),this.tag("table",H)):(this.tag("/table"),this.cr())};
_.F.row=function(H,C){H._rowIsDelimiter||(H=this.attrs(H),C?this.tag("tr",H):this.tag("/tr"))};
_.F.td=function(H,C){var S=this.attrs(H);H._alignment&&S.push(["align",H._alignment]);C?this.tag("td",S):this.tag("/td")};
_.F.th=function(H,C){var S=this.attrs(H);H._alignment&&S.push(["align",H._alignment]);C?this.tag("th",S):this.tag("/th")};
_.F.out=function(H){nl(this,Xr(H,!1))};
_.F.tag=function(H,C,S){if(!(this.disableTags>0)){this.buffer+="<"+H;if(C&&C.length>0){H=0;for(var w;(w=C[H])!==void 0;)this.buffer+=" "+w[0]+'="'+w[1]+'"',H++}S&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.F.attrs=function(H){var C=[];this.options.sourcepos&&(H=H.sourcepos)&&C.push(["data-sourcepos",String(H[0][0])+":"+String(H[0][1])+"-"+String(H[1][0])+":"+String(H[1][1])]);return C};
ej.prototype.text=ej.prototype.text;ej.prototype.html_inline=ej.prototype.html_inline;ej.prototype.html_block=ej.prototype.html_block;ej.prototype.softbreak=ej.prototype.softbreak;ej.prototype.linebreak=ej.prototype.linebreak;ej.prototype.link=ej.prototype.link;ej.prototype.image=ej.prototype.image;ej.prototype.emph=ej.prototype.emph;ej.prototype.strong=ej.prototype.strong;ej.prototype.paragraph=ej.prototype.paragraph;ej.prototype.heading=ej.prototype.heading;ej.prototype.code=ej.prototype.code;
ej.prototype.code_block=ej.prototype.code_block;ej.prototype.thematic_break=ej.prototype.thematic_break;ej.prototype.block_quote=ej.prototype.block_quote;ej.prototype.list=ej.prototype.list;ej.prototype.item=ej.prototype.item;ej.prototype.custom_inline=ej.prototype.custom_inline;ej.prototype.custom_block=ej.prototype.custom_block;ej.prototype.table=ej.prototype.table;ej.prototype.row=ej.prototype.row;ej.prototype.td=ej.prototype.td;ej.prototype.th=ej.prototype.th;ej.prototype.out=ej.prototype.out;
ej.prototype.tag=ej.prototype.tag;ej.prototype.attrs=ej.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 niP,rBU,C6Z;(function(){function H(P,Q){return P<Q?-1:P>Q?1:P>=Q?0:NaN}
function C(P){return function(Q,r){return H(P(Q),r)}}
function S(){for(var P=0,Q=arguments.length,r={},HZ;P<Q;++P){if(!(HZ=arguments[P]+"")||HZ in r)throw Error("ve`"+HZ);r[HZ]=[]}return new w(r)}
function w(P){this._=P}
function A(P,Q){return P.trim().split(/^|\s+/).map(function(r){var HZ="",Zw=r.indexOf(".");Zw>=0&&(HZ=r.slice(Zw+1),r=r.slice(0,Zw));if(r&&!Q.hasOwnProperty(r))throw Error("we`"+r);return{type:r,name:HZ}})}
function J(P,Q,r){for(var HZ=0,Zw=P.length;HZ<Zw;++HZ)if(P[HZ].name===Q){P[HZ]=z$j;P=P.slice(0,HZ).concat(P.slice(HZ+1));break}r!=null&&P.push({name:Q,value:r});return P}
function c(P){var Q=P,r=Q.indexOf(":");r>=0&&(Q=P.slice(0,r))!=="xmlns"&&(P=P.slice(r+1));return nd.hasOwnProperty(Q)?{space:nd[Q],local:P}:P}
function Y(P){return function(){var Q=this.ownerDocument,r=this.namespaceURI;return r==="http://www.w3.org/1999/xhtml"&&Q.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?Q.createElement(P):Q.createElementNS(r,P)}}
function M(P){return function(){return this.ownerDocument.createElementNS(P.space,P.local)}}
function m(P){P=c(P);return(P.local?M:Y)(P)}
function W(){}
function y(P){return P==null?W:function(){return this.querySelector(P)}}
function N(P){return Array(P.length)}
function b(P,Q){this.ownerDocument=P.ownerDocument;this.namespaceURI=P.namespaceURI;this._next=null;this._parent=P;this.__data__=Q}
function u(P){return function(){return P}}
function O(P,Q,r,HZ,Zw,mE){for(var ui=0,Q7,S7=Q.length,H7=mE.length;ui<H7;++ui)(Q7=Q[ui])?(Q7.__data__=mE[ui],HZ[ui]=Q7):r[ui]=new b(P,mE[ui]);for(;ui<S7;++ui)if(Q7=Q[ui])Zw[ui]=Q7}
function d(P,Q,r,HZ,Zw,mE,ui){var Q7,S7,H7={},sn=Q.length,W7=mE.length,Un=Array(sn),v3;for(Q7=0;Q7<sn;++Q7)if(S7=Q[Q7])Un[Q7]=v3="$"+ui.call(S7,S7.__data__,Q7,Q),v3 in H7?Zw[Q7]=S7:H7[v3]=S7;for(Q7=0;Q7<W7;++Q7)v3="$"+ui.call(P,mE[Q7],Q7,mE),(S7=H7[v3])?(HZ[Q7]=S7,S7.__data__=mE[Q7],H7[v3]=null):r[Q7]=new b(P,mE[Q7]);for(Q7=0;Q7<sn;++Q7)(S7=Q[Q7])&&H7[Un[Q7]]===S7&&(Zw[Q7]=S7)}
function p(P,Q){return P<Q?-1:P>Q?1:P>=Q?0:NaN}
function k(P){return function(){this.removeAttribute(P)}}
function R(P){return function(){this.removeAttributeNS(P.space,P.local)}}
function L(P,Q){return function(){this.setAttribute(P,Q)}}
function t(P,Q){return function(){this.setAttributeNS(P.space,P.local,Q)}}
function g(P,Q){return function(){var r=Q.apply(this,arguments);r==null?this.removeAttribute(P):this.setAttribute(P,r)}}
function ii(P,Q){return function(){var r=Q.apply(this,arguments);r==null?this.removeAttributeNS(P.space,P.local):this.setAttributeNS(P.space,P.local,r)}}
function FW(P){return function(){this.style.removeProperty(P)}}
function cZ(P,Q,r){return function(){this.style.setProperty(P,Q,r)}}
function eZ(P,Q,r){return function(){var HZ=Q.apply(this,arguments);HZ==null?this.style.removeProperty(P):this.style.setProperty(P,HZ,r)}}
function ND(P,Q){return P.style.getPropertyValue(Q)||(P.ownerDocument&&P.ownerDocument.defaultView||P.document&&P||P.defaultView).getComputedStyle(P,null).getPropertyValue(Q)}
function bi(P){return function(){delete this[P]}}
function pU(P,Q){return function(){this[P]=Q}}
function O$(P,Q){return function(){var r=Q.apply(this,arguments);r==null?delete this[P]:this[P]=r}}
function R0(){this.textContent=""}
function m1(P){return function(){this.textContent=P}}
function c7(P){return function(){var Q=P.apply(this,arguments);this.textContent=Q==null?"":Q}}
function tV(){this.innerHTML=""}
function Td(P){return function(){this.innerHTML=P}}
function Mi(P){return function(){var Q=P.apply(this,arguments);this.innerHTML=Q==null?"":Q}}
function fP(){return null}
function eo(){var P=this.parentNode;P&&P.removeChild(this)}
function Cr(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function wu(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function xE(P,Q,r){P=En(P,Q,r);return function(HZ){var Zw=HZ.relatedTarget;Zw&&(Zw===this||Zw.compareDocumentPosition(this)&8)||P.call(this,HZ)}}
function En(P,Q,r){return function(){P.call(this,this.__data__,Q,r)}}
function So(P){return P.trim().split(/^|\s+/).map(function(Q){var r="",HZ=Q.indexOf(".");HZ>=0&&(r=Q.slice(HZ+1),Q=Q.slice(0,HZ));return{type:Q,name:r}})}
function qi(P){return function(){var Q=this.__on;if(Q){for(var r=0,HZ=-1,Zw=Q.length,mE;r<Zw;++r)(mE=Q[r],P.type&&mE.type!==P.type||mE.name!==P.name)?Q[++HZ]=mE:this.removeEventListener(mE.type,mE.listener,mE.capture);++HZ?Q.length=HZ:delete this.__on}}}
function H3(P,Q,r){var HZ=hl_.hasOwnProperty(P.type)?xE:En;return function(Zw,mE,ui){Zw=this.__on;var Q7;mE=HZ(Q,mE,ui);if(Zw){ui=0;for(var S7=Zw.length;ui<S7;++ui)if((Q7=Zw[ui]).type===P.type&&Q7.name===P.name){this.removeEventListener(Q7.type,Q7.listener,Q7.capture);this.addEventListener(Q7.type,Q7.listener=mE,Q7.capture=r);Q7.value=Q;return}}this.addEventListener(P.type,mE,r);Q7={type:P.type,name:P.name,value:Q,listener:mE,capture:r};Zw?Zw.push(Q7):this.__on=[Q7]}}
function I2(P,Q,r){var HZ=P.ownerDocument&&P.ownerDocument.defaultView||P.document&&P||P.defaultView,Zw=HZ.CustomEvent;typeof Zw==="function"?Zw=new Zw(Q,r):(Zw=HZ.document.createEvent("Event"),r?(Zw.initEvent(Q,r.bubbles,r.cancelable),Zw.detail=r.detail):Zw.initEvent(Q,!1,!1));P.dispatchEvent(Zw)}
function RV(P,Q){return function(){return I2(this,P,Q)}}
function YM(P,Q){return function(){return I2(this,P,Q.apply(this,arguments))}}
function LP(P,Q){this._groups=P;this._parents=Q}
function yO(){return new LP([[document.documentElement]],Mf9)}
function lY(){this._="@"+(++qfj).toString(36)}
function Gd(P,Q,r){P.prototype=Q.prototype=r;r.constructor=P}
function W3(P,Q){P=Object.create(P.prototype);for(var r in Q)P[r]=Q[r];return P}
function sM(){}
function M9(P){var Q;P=(P+"").trim().toLowerCase();return(Q=THq.exec(P))?(Q=parseInt(Q[1],16),new U_(Q>>8&15|Q>>4&240,Q>>4&15|Q&240,(Q&15)<<4|Q&15,1)):(Q=mci.exec(P))?QX(parseInt(Q[1],16)):(Q=Wkr.exec(P))?new U_(Q[1],Q[2],Q[3],1):(Q=ydK.exec(P))?new U_(Q[1]*255/100,Q[2]*255/100,Q[3]*255/100,1):(Q=NHO.exec(P))?P5(Q[1],Q[2],Q[3],Q[4]):(Q=bOO.exec(P))?P5(Q[1]*255/100,Q[2]*255/100,Q[3]*255/100,Q[4]):(Q=EPO.exec(P))?ME(Q[1],Q[2]/100,Q[3]/100,1):(Q=e$p.exec(P))?ME(Q[1],Q[2]/100,Q[3]/100,Q[4]):ne1.hasOwnProperty(P)?
QX(ne1[P]):P==="transparent"?new U_(NaN,NaN,NaN,0):null}
function QX(P){return new U_(P>>16&255,P>>8&255,P&255,1)}
function P5(P,Q,r,HZ){HZ<=0&&(P=Q=r=NaN);return new U_(P,Q,r,HZ)}
function nP(P){P instanceof sM||(P=M9(P));if(!P)return new U_;P=P.rgb();return new U_(P.r,P.g,P.b,P.opacity)}
function Kr(P,Q,r,HZ){return arguments.length===1?nP(P):new U_(P,Q,r,HZ==null?1:HZ)}
function U_(P,Q,r,HZ){this.r=+P;this.g=+Q;this.b=+r;this.opacity=+HZ}
function Nr(P){P=Math.max(0,Math.min(255,Math.round(P)||0));return(P<16?"0":"")+P.toString(16)}
function ME(P,Q,r,HZ){HZ<=0?P=Q=r=NaN:r<=0||r>=1?P=Q=NaN:Q<=0&&(P=NaN);return new qE(P,Q,r,HZ)}
function yX(P){if(P instanceof qE)return new qE(P.h,P.s,P.l,P.opacity);P instanceof sM||(P=M9(P));if(!P)return new qE;if(P instanceof qE)return P;P=P.rgb();var Q=P.r/255,r=P.g/255,HZ=P.b/255,Zw=Math.min(Q,r,HZ),mE=Math.max(Q,r,HZ),ui=NaN,Q7=mE-Zw,S7=(mE+Zw)/2;Q7?(ui=Q===mE?(r-HZ)/Q7+(r<HZ)*6:r===mE?(HZ-Q)/Q7+2:(Q-r)/Q7+4,Q7/=S7<.5?mE+Zw:2-mE-Zw,ui*=60):Q7=S7>0&&S7<1?0:ui;return new qE(ui,Q7,S7,P.opacity)}
function Mz(P,Q,r,HZ){return arguments.length===1?yX(P):new qE(P,Q,r,HZ==null?1:HZ)}
function qE(P,Q,r,HZ){this.h=+P;this.s=+Q;this.l=+r;this.opacity=+HZ}
function NH(P,Q,r){return(P<60?Q+(r-Q)*P/60:P<180?r:P<240?Q+(r-Q)*(240-P)/60:Q)*255}
function X6(P){if(P instanceof V7)return new V7(P.l,P.a,P.b,P.opacity);if(P instanceof uY){if(isNaN(P.h))return new V7(P.l,0,0,P.opacity);var Q=P.h*r$Y;return new V7(P.l,Math.cos(Q)*P.c,Math.sin(Q)*P.c,P.opacity)}P instanceof U_||(P=nP(P));var r=TK(P.r),HZ=TK(P.g),Zw=TK(P.b);Q=kE(.2225045*r+.7168786*HZ+.0606169*Zw);if(r===HZ&&HZ===Zw)var mE=r=Q;else mE=kE((.4360747*r+.3850649*HZ+.1430804*Zw)/.96422),r=kE((.0139322*r+.0971045*HZ+.7141733*Zw)/.82521);return new V7(116*Q-16,500*(mE-Q),200*(Q-r),P.opacity)}
function V7(P,Q,r,HZ){this.l=+P;this.a=+Q;this.b=+r;this.opacity=+HZ}
function kE(P){return P>u7r?Math.pow(P,1/3):P/BQn+Dbb}
function LU(P){return P>u8?P*P*P:BQn*(P-Dbb)}
function Ni(P){return 255*(P<=.0031308?12.92*P:1.055*Math.pow(P,1/2.4)-.055)}
function TK(P){return(P/=255)<=.04045?P/12.92:Math.pow((P+.055)/1.055,2.4)}
function XT(P){if(P instanceof uY)return new uY(P.h,P.c,P.l,P.opacity);P instanceof V7||(P=X6(P));if(P.a===0&&P.b===0)return new uY(NaN,0,P.l,P.opacity);var Q=Math.atan2(P.b,P.a)*KNP;return new uY(Q<0?Q+360:Q,Math.sqrt(P.a*P.a+P.b*P.b),P.l,P.opacity)}
function GK(P,Q,r,HZ){return arguments.length===1?XT(P):new uY(P,Q,r,HZ==null?1:HZ)}
function uY(P,Q,r,HZ){this.h=+P;this.c=+Q;this.l=+r;this.opacity=+HZ}
function e7(P,Q,r,HZ){if(arguments.length===1){var Zw=P;if(Zw instanceof di)Zw=new di(Zw.h,Zw.s,Zw.l,Zw.opacity);else{Zw instanceof U_||(Zw=nP(Zw));var mE=Zw.g/255,ui=Zw.b/255,Q7=(t8d*ui+Zw.r/255*-1.7884503806-3.5172982438*mE)/(t8d+-1.7884503806-3.5172982438);ui-=Q7;var S7=(1.97294*(mE-Q7)- -.29227*ui)/-.90649;ui=(mE=Math.sqrt(S7*S7+ui*ui)/(1.97294*Q7*(1-Q7)))?Math.atan2(S7,ui)*KNP-120:NaN;Zw=new di(ui<0?ui+360:ui,mE,Q7,Zw.opacity)}}else Zw=new di(P,Q,r,HZ==null?1:HZ);return Zw}
function di(P,Q,r,HZ){this.h=+P;this.s=+Q;this.l=+r;this.opacity=+HZ}
function bB(P,Q,r,HZ,Zw){var mE=P*P,ui=mE*P;return((1-3*P+3*mE-ui)*Q+(4-6*mE+3*ui)*r+(1+3*P+3*mE-3*ui)*HZ+ui*Zw)/6}
function yb(P){return function(){return P}}
function VX(P,Q){return function(r){return P+r*Q}}
function dS(P,Q,r){return P=Math.pow(P,r),Q=Math.pow(Q,r)-P,r=1/r,function(HZ){return Math.pow(P+HZ*Q,r)}}
function rP(P,Q){var r=Q-P;return r?VX(P,r>180||r<-180?r-360*Math.round(r/360):r):yb(isNaN(P)?Q:P)}
function Ks(P){return(P=+P)===1?I8:function(Q,r){return r-Q?dS(Q,r,P):yb(isNaN(Q)?r:Q)}}
function I8(P,Q){var r=Q-P;return r?VX(P,r):yb(isNaN(P)?Q:P)}
function xj(P){return function(Q){var r=Q.length,HZ=Array(r),Zw=Array(r),mE=Array(r),ui;for(ui=0;ui<r;++ui){var Q7=Kr(Q[ui]);HZ[ui]=Q7.r||0;Zw[ui]=Q7.g||0;mE[ui]=Q7.b||0}HZ=P(HZ);Zw=P(Zw);mE=P(mE);Q7.opacity=1;return function(S7){Q7.r=HZ(S7);Q7.g=Zw(S7);Q7.b=mE(S7);return Q7+""}}}
function bR(P,Q){return P=+P,Q-=P,function(r){return P+Q*r}}
function jK(P){return function(){return P}}
function Vw(P){return function(Q){return P(Q)+""}}
function gu(P,Q){var r=fMw.lastIndex=v4i.lastIndex=0,HZ,Zw,mE,ui=-1,Q7=[],S7=[];P+="";for(Q+="";(HZ=fMw.exec(P))&&(Zw=v4i.exec(Q));)(mE=Zw.index)>r&&(mE=Q.slice(r,mE),Q7[ui]?Q7[ui]+=mE:Q7[++ui]=mE),(HZ=HZ[0])===(Zw=Zw[0])?Q7[ui]?Q7[ui]+=Zw:Q7[++ui]=Zw:(Q7[++ui]=null,S7.push({i:ui,x:bR(HZ,Zw)})),r=v4i.lastIndex;r<Q.length&&(mE=Q.slice(r),Q7[ui]?Q7[ui]+=mE:Q7[++ui]=mE);return Q7.length<2?S7[0]?Vw(S7[0].x):jK(Q):(Q=S7.length,function(H7){for(var sn=0,W7;sn<Q;++sn)Q7[(W7=S7[sn]).i]=W7.x(H7);return Q7.join("")})}
function N9(P,Q,r,HZ,Zw,mE){var ui,Q7,S7;if(ui=Math.sqrt(P*P+Q*Q))P/=ui,Q/=ui;if(S7=P*r+Q*HZ)r-=P*S7,HZ-=Q*S7;if(Q7=Math.sqrt(r*r+HZ*HZ))r/=Q7,HZ/=Q7,S7/=Q7;P*HZ<Q*r&&(P=-P,Q=-Q,S7=-S7,ui=-ui);return{translateX:Zw,translateY:mE,rotate:Math.atan2(Q,P)*LNV,skewX:Math.atan(S7)*LNV,scaleX:ui,scaleY:Q7}}
function ri(P,Q,r,HZ){function Zw(H7){return H7.length?H7.pop()+" ":""}
function mE(H7,sn,W7,Un,v3,uB){H7!==W7||sn!==Un?(v3=v3.push("translate(",null,Q,null,r),uB.push({i:v3-4,x:bR(H7,W7)},{i:v3-2,x:bR(sn,Un)})):(W7||Un)&&v3.push("translate("+W7+Q+Un+r)}
function ui(H7,sn,W7,Un){H7!==sn?(H7-sn>180?sn+=360:sn-H7>180&&(H7+=360),Un.push({i:W7.push(Zw(W7)+"rotate(",null,HZ)-2,x:bR(H7,sn)})):sn&&W7.push(Zw(W7)+"rotate("+sn+HZ)}
function Q7(H7,sn,W7,Un){H7!==sn?Un.push({i:W7.push(Zw(W7)+"skewX(",null,HZ)-2,x:bR(H7,sn)}):sn&&W7.push(Zw(W7)+"skewX("+sn+HZ)}
function S7(H7,sn,W7,Un,v3,uB){H7!==W7||sn!==Un?(v3=v3.push(Zw(v3)+"scale(",null,",",null,")"),uB.push({i:v3-4,x:bR(H7,W7)},{i:v3-2,x:bR(sn,Un)})):W7===1&&Un===1||v3.push(Zw(v3)+"scale("+W7+","+Un+")")}
return function(H7,sn){var W7=[],Un=[];H7=P(H7);sn=P(sn);mE(H7.translateX,H7.translateY,sn.translateX,sn.translateY,W7,Un);ui(H7.rotate,sn.rotate,W7,Un);Q7(H7.skewX,sn.skewX,W7,Un);S7(H7.scaleX,H7.scaleY,sn.scaleX,sn.scaleY,W7,Un);H7=sn=null;return function(v3){for(var uB=-1,tY=Un.length,ve;++uB<tY;)W7[(ve=Un[uB]).i]=ve.x(v3);return W7.join("")}}}
function J9(P){return function(Q,r){var HZ=P((Q=Mz(Q)).h,(r=Mz(r)).h),Zw=I8(Q.s,r.s),mE=I8(Q.l,r.l),ui=I8(Q.opacity,r.opacity);return function(Q7){Q.h=HZ(Q7);Q.s=Zw(Q7);Q.l=mE(Q7);Q.opacity=ui(Q7);return Q+""}}}
function Yl(P){return function(Q,r){var HZ=P((Q=GK(Q)).h,(r=GK(r)).h),Zw=I8(Q.c,r.c),mE=I8(Q.l,r.l),ui=I8(Q.opacity,r.opacity);return function(Q7){Q.h=HZ(Q7);Q.c=Zw(Q7);Q.l=mE(Q7);Q.opacity=ui(Q7);return Q+""}}}
function Rp(P){return function HZ(r){function Zw(mE,ui){var Q7=P((mE=e7(mE)).h,(ui=e7(ui)).h),S7=I8(mE.s,ui.s),H7=I8(mE.l,ui.l),sn=I8(mE.opacity,ui.opacity);return function(W7){mE.h=Q7(W7);mE.s=S7(W7);mE.l=H7(Math.pow(W7,r));mE.opacity=sn(W7);return mE+""}}
r=+r;Zw.gamma=HZ;return Zw}(1)}
function Da(){return A0||(ged(Hb),A0=rj.now()+HVi)}
function Hb(){A0=0}
function o$(){this._call=this._time=this._next=null}
function QH(P,Q,r){var HZ=new o$;HZ.restart(P,Q,r);return HZ}
function dJ(){A0=(iVE=rj.now())+HVi;Gi=BD=0;try{Da();++Gi;for(var P=CCp,Q;P;)(Q=A0-P._time)>=0&&P._call.call(null,Q),P=P._next;--Gi}finally{Gi=0;P=CCp;for(var r=Infinity;P;)if(P._call){r>P._time&&(r=P._time);var HZ=P;P=P._next}else Q=P._next,P._next=null,P=HZ?HZ._next=Q:CCp=Q;Di=HZ;Pi(r);A0=0}}
function qwU(){var P=rj.now(),Q=P-iVE;Q>1E3&&(HVi-=Q,iVE=P)}
function Pi(P){Gi||(BD&&(BD=clearTimeout(BD)),P-A0>24?(P<Infinity&&(BD=setTimeout(dJ,P-rj.now()-HVi)),K2&&(K2=clearInterval(K2))):(K2||(iVE=rj.now(),K2=setInterval(qwU,1E3)),Gi=1,ged(dJ)))}
function Ub1(P,Q,r){var HZ=new o$;Q=Q==null?0:+Q;HZ.restart(function(Zw){HZ.stop();P(Zw+Q)},Q,r);
return HZ}
function lMZ(P,Q,r,HZ,Zw,mE){var ui=P.__transition;if(!ui)P.__transition={};else if(r in ui)return;GNR(P,r,{name:Q,index:HZ,group:Zw,on:f3_,tween:vPO,time:mE.time,delay:mE.delay,duration:mE.duration,ease:mE.ease,timer:null,state:0})}
function Vx6(P,Q){P=QS(P,Q);if(P.state>0)throw Error("xe");return P}
function J0(P,Q){P=QS(P,Q);if(P.state>2)throw Error("ye");return P}
function QS(P,Q){P=P.__transition;if(!P||!(P=P[Q]))throw Error("ze");return P}
function GNR(P,Q,r){function HZ(S7){var H7,sn;if(r.state!==1)return mE();for(Un in ui){var W7=ui[Un];if(W7.name===r.name){if(W7.state===3)return Ub1(HZ);W7.state===4?(W7.state=6,W7.timer.stop(),W7.on.call("interrupt",P,P.__data__,W7.index,W7.group),delete ui[Un]):+Un<Q&&(W7.state=6,W7.timer.stop(),delete ui[Un])}}Ub1(function(){r.state===3&&(r.state=4,r.timer.restart(Zw,r.delay,r.time),Zw(S7))});
r.state=2;r.on.call("start",P,P.__data__,r.index,r.group);if(r.state===2){r.state=3;Q7=Array(sn=r.tween.length);var Un=0;for(H7=-1;Un<sn;++Un)if(W7=r.tween[Un].value.call(P,P.__data__,r.index,r.group))Q7[++H7]=W7;Q7.length=H7+1}}
function Zw(S7){S7=S7<r.duration?r.ease.call(null,S7/r.duration):(r.timer.restart(mE),r.state=5,1);for(var H7=-1,sn=Q7.length;++H7<sn;)Q7[H7].call(null,S7);r.state===5&&(r.on.call("end",P,P.__data__,r.index,r.group),mE())}
function mE(){r.state=6;r.timer.stop();delete ui[Q];for(var S7 in ui)return;delete P.__transition}
var ui=P.__transition,Q7;ui[Q]=r;r.timer=QH(function(S7){r.state=1;r.timer.restart(HZ,r.delay,r.time);r.delay<=S7&&HZ(S7-r.delay)},0,r.time)}
function l3t(P,Q){var r,HZ;return function(){var Zw=J0(this,P),mE=Zw.tween;if(mE!==r){HZ=r=mE;mE=0;for(var ui=HZ.length;mE<ui;++mE)if(HZ[mE].name===Q){HZ=HZ.slice();HZ.splice(mE,1);break}}Zw.tween=HZ}}
function Vf9(P,Q,r){var HZ,Zw;if(typeof r!=="function")throw Error();return function(){var mE=J0(this,P),ui=mE.tween;if(ui!==HZ){Zw=(HZ=ui).slice();ui={name:Q,value:r};for(var Q7=0,S7=Zw.length;Q7<S7;++Q7)if(Zw[Q7].name===Q){Zw[Q7]=ui;break}Q7===S7&&Zw.push(ui)}mE.tween=Zw}}
function o4E(P,Q,r){var HZ=P._id;P.each(function(){var Zw=J0(this,HZ);(Zw.value||(Zw.value={}))[Q]=r.apply(this,arguments)});
return function(Zw){return QS(Zw,HZ).value[Q]}}
function Rl_(P,Q){var r;return(typeof Q==="number"?bR:Q instanceof M9?IbP:(r=M9(Q))?(Q=r,IbP):gu)(P,Q)}
function oPO(P){return function(){this.removeAttribute(P)}}
function OOr(P){return function(){this.removeAttributeNS(P.space,P.local)}}
function XgR(P,Q,r){var HZ,Zw;return function(){var mE=this.getAttribute(P);return mE===r?null:mE===HZ?Zw:Zw=Q(HZ=mE,r)}}
function Qyo(P,Q,r){var HZ,Zw;return function(){var mE=this.getAttributeNS(P.space,P.local);return mE===r?null:mE===HZ?Zw:Zw=Q(HZ=mE,r)}}
function dcr(P,Q,r){var HZ,Zw,mE;return function(){var ui=r(this);if(ui==null)return void this.removeAttribute(P);var Q7=this.getAttribute(P);return Q7===ui?null:Q7===HZ&&ui===Zw?mE:mE=Q(HZ=Q7,Zw=ui)}}
function P3q(P,Q,r){var HZ,Zw,mE;return function(){var ui=r(this);if(ui==null)return void this.removeAttributeNS(P.space,P.local);var Q7=this.getAttributeNS(P.space,P.local);return Q7===ui?null:Q7===HZ&&ui===Zw?mE:mE=Q(HZ=Q7,Zw=ui)}}
function $cp(P,Q){function r(){var HZ=this,Zw=Q.apply(HZ,arguments);return Zw&&function(mE){HZ.setAttributeNS(P.space,P.local,Zw(mE))}}
r._value=Q;return r}
function pgO(P,Q){function r(){var HZ=this,Zw=Q.apply(HZ,arguments);return Zw&&function(mE){HZ.setAttribute(P,Zw(mE))}}
r._value=Q;return r}
function kNO(P,Q){return function(){Vx6(this,P).delay=+Q.apply(this,arguments)}}
function h$j(P,Q){return Q=+Q,function(){Vx6(this,P).delay=Q}}
function nPo(P,Q){return function(){J0(this,P).duration=+Q.apply(this,arguments)}}
function rdi(P,Q){return Q=+Q,function(){J0(this,P).duration=Q}}
function BHR(P,Q){if(typeof Q!=="function")throw Error();return function(){J0(this,P).ease=Q}}
function Dcq(P){return(P+"").trim().split(/^|\s+/).every(function(Q){var r=Q.indexOf(".");r>=0&&(Q=Q.slice(0,r));return!Q||Q==="start"})}
function Kk9(P,Q,r){var HZ,Zw,mE=Dcq(Q)?Vx6:J0;return function(){var ui=mE(this,P),Q7=ui.on;if(Q7!==HZ)(Zw=(HZ=Q7).copy()).on(Q,r);ui.on=Zw}}
function tf9(P){return function(){var Q=this.parentNode,r;for(r in this.__transition)if(+r!==P)return;Q&&Q.removeChild(this)}}
function LkO(P,Q){var r,HZ,Zw;return function(){var mE=ND(this,P),ui=(this.style.removeProperty(P),ND(this,P));return mE===ui?null:mE===r&&ui===HZ?Zw:Zw=Q(r=mE,HZ=ui)}}
function gPp(P){return function(){this.style.removeProperty(P)}}
function Uc9(P,Q,r){var HZ,Zw;return function(){var mE=ND(this,P);return mE===r?null:mE===HZ?Zw:Zw=Q(HZ=mE,r)}}
function R$O(P,Q,r){var HZ,Zw,mE;return function(){var ui=ND(this,P),Q7=r(this);Q7==null&&(Q7=(this.style.removeProperty(P),ND(this,P)));return ui===Q7?null:ui===HZ&&Q7===Zw?mE:mE=Q(HZ=ui,Zw=Q7)}}
function I3i(P,Q,r){function HZ(){var Zw=this,mE=Q.apply(Zw,arguments);return mE&&function(ui){Zw.style.setProperty(P,mE(ui),r)}}
HZ._value=Q;return HZ}
function a3_(P){return function(){this.textContent=P}}
function xcK(P){return function(){var Q=P(this);this.textContent=Q==null?"":Q}}
function iQ(P,Q,r,HZ){this._groups=P;this._parents=Q;this._name=r;this._id=HZ}
function Owu(P){return{type:P}}
function XSW(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function ScU(){}
function ab1(P,Q){var r=new ScU;if(P instanceof ScU)P.each(function(ui,Q7){r.set(Q7,ui)});
else if(Array.isArray(P)){var HZ=-1,Zw=P.length,mE;if(Q==null)for(;++HZ<Zw;)r.set(HZ,P[HZ]);else for(;++HZ<Zw;)r.set(Q(mE=P[HZ],HZ,P),mE)}else if(P)for(HZ in P)r.set(HZ,P[HZ]);return r}
function sME(){}
function xbb(P){return function(Q){for(var r={},HZ=0;HZ<P.length;HZ++)r[P[HZ]]=Q[HZ]||"";return r}}
function H$R(P,Q){var r=xbb(P);return function(HZ,Zw){return Q(r(HZ),Zw,P)}}
function i$j(P){var Q=Object.create(null),r=[];P.forEach(function(HZ){for(var Zw in HZ)Zw in Q||r.push(Q[Zw]=Zw)});
return r}
function Hwd(P){function Q(ui,Q7){function S7(){if(uB)return Q_w;if(tY)return tY=!1,iw1;var Cm,g6=W7,WF;if(ui.charCodeAt(g6)===34){for(;W7++<sn&&ui.charCodeAt(W7)!==34||ui.charCodeAt(++W7)===34;);(Cm=W7)>=sn?uB=!0:(WF=ui.charCodeAt(W7++))===10?tY=!0:WF===13&&(tY=!0,ui.charCodeAt(W7)===10&&++W7);return ui.slice(g6+1,Cm-1).replace(/""/g,'"')}for(;W7<sn;){if((WF=ui.charCodeAt(Cm=W7++))===10)tY=!0;else if(WF===13)tY=!0,ui.charCodeAt(W7)===10&&++W7;else if(WF!==mE)continue;return ui.slice(g6,Cm)}return uB=
!0,ui.slice(g6,sn)}
var H7=[],sn=ui.length,W7=0,Un=0,v3,uB=sn<=0,tY=!1;ui.charCodeAt(sn-1)===10&&--sn;for(ui.charCodeAt(sn-1)===13&&--sn;(v3=S7())!==Q_w;){for(var ve=[];v3!==iw1&&v3!==Q_w;)ve.push(v3),v3=S7();Q7&&(ve=Q7(ve,Un++))==null||H7.push(ve)}return H7}
function r(ui){return ui.map(HZ).join(P)}
function HZ(ui){return ui==null?"":Zw.test(ui)?'"'+ui.replace(/"/g,'""')+'"':ui}
var Zw=new RegExp('["'+P+"\n\r]"),mE=P.charCodeAt(0);return{parse:function(ui,Q7){var S7,H7;ui=Q(ui,function(sn,W7){if(S7)return S7(sn,W7-1);H7=sn;S7=Q7?H$R(sn,Q7):xbb(sn)});
ui.columns=H7||[];return ui},
parseRows:Q,format:function(ui,Q7){Q7==null&&(Q7=i$j(ui));return[Q7.map(HZ).join(P)].concat(ui.map(function(S7){return Q7.map(function(H7){return HZ(S7[H7])}).join(P)})).join("\n")},
formatRows:function(ui){return ui.map(r).join("\n")}}}
function Co9(P){if(!P.ok)throw Error("Ae`"+P.status+"`"+P.statusText);return P.text()}
function CZd(P){return function(Q,r,HZ){arguments.length===2&&typeof r==="function"&&(HZ=r,r=void 0);return fetch(Q,r).then(Co9).then(function(Zw){return P(Zw,HZ)})}}
function SA1(P,Q,r,HZ){if(isNaN(Q)||isNaN(r))return P;var Zw,mE=P._root;HZ={data:HZ};var ui=P._x0,Q7=P._y0,S7=P._x1,H7=P._y1,sn,W7,Un,v3,uB;if(!mE)return P._root=HZ,P;for(;mE.length;)if((Un=Q>=(sn=(ui+S7)/2))?ui=sn:S7=sn,(v3=r>=(W7=(Q7+H7)/2))?Q7=W7:H7=W7,Zw=mE,!(mE=mE[uB=v3<<1|Un]))return Zw[uB]=HZ,P;var tY=+P._x.call(null,mE.data);var ve=+P._y.call(null,mE.data);if(Q===tY&&r===ve)return HZ.next=mE,Zw?Zw[uB]=HZ:P._root=HZ,P;do Zw=Zw?Zw[uB]=Array(4):P._root=Array(4),(Un=Q>=(sn=(ui+S7)/2))?ui=sn:S7=
sn,(v3=r>=(W7=(Q7+H7)/2))?Q7=W7:H7=W7;while((uB=v3<<1|Un)===(Un=(ve>=W7)<<1|tY>=sn));return Zw[Un]=mE,Zw[uB]=HZ,P}
function BY(P,Q,r,HZ,Zw){this.node=P;this.x0=Q;this.y0=r;this.x1=HZ;this.y1=Zw}
function Seq(P){return P[0]}
function sii(P){return P[1]}
function dUu(P,Q,r,HZ,Zw,mE){this._x=P;this._y=Q;this._x0=r;this._y0=HZ;this._x1=Zw;this._y1=mE;this._root=void 0}
function s_M(P){for(var Q={data:P.data},r=Q;P=P.next;)r=r.next={data:P.data};return Q}
function jMW(P,Q){if((Q=(P=Q?P.toExponential(Q-1):P.toExponential()).indexOf("e"))<0)return null;var r=P.slice(0,Q);return[r.length>1?r[0]+r.slice(2):r,+P.slice(Q+1)]}
function jio(P){return P=jMW(Math.abs(P)),P?P[1]:NaN}
function wPq(P,Q){return function(r,HZ){for(var Zw=r.length,mE=[],ui=0,Q7=P[0],S7=0;Zw>0&&Q7>0;){S7+Q7+1>HZ&&(Q7=Math.max(1,HZ-S7));mE.push(r.substring(Zw-=Q7,Zw+Q7));if((S7+=Q7+1)>HZ)break;Q7=P[ui=(ui+1)%P.length]}return mE.reverse().join(Q)}}
function A$9(P){return function(Q){return Q.replace(/[0-9]/g,function(r){return P[+r]})}}
function PZW(P){return new $Up(P)}
function $Up(P){if(!(Q=J$o.exec(P)))throw Error("Be`"+P);var Q;this.fill=Q[1]||" ";this.align=Q[2]||">";this.sign=Q[3]||"-";this.symbol=Q[4]||"";this.zero=!!Q[5];this.width=Q[6]&&+Q[6];this.comma=!!Q[7];this.precision=Q[8]&&+Q[8].slice(1);this.trim=!!Q[9];this.type=Q[10]||""}
function j_7(P,Q){Q=jMW(P,Q);if(!Q)return P+"";P=Q[0];Q=Q[1];return Q<0?"0."+Array(-Q).join("0")+P:P.length>Q+1?P.slice(0,Q+1)+"."+P.slice(Q+1):P+Array(Q-P.length+2).join("0")}
function wS7(P){return P}
function FNp(P){function Q(Q7){function S7(a2){var MK=WF,t9=xi,eh,Z4;if(g6==="c")t9=UF(a2)+t9,a2="";else{a2=+a2;var O_=a2<0;a2=UF(Math.abs(a2),ve);if(Cm){var DY=a2.length,DV=1,Sa=-1;a:for(;DV<DY;++DV)switch(a2[DV]){case ".":Sa=eh=DV;break;case "0":Sa===0&&(Sa=DV);eh=DV;break;default:if(!+a2[DV])break a;Sa>0&&(Sa=0)}a2=Sa>0?a2.slice(0,Sa)+a2.slice(eh+1):a2}O_&&+a2===0&&(O_=!1);MK=(O_?W7==="("?W7:"-":W7==="-"||W7==="("?"":W7)+MK;t9=(g6==="s"?AZ7[8+JZU/3]:"")+t9+(O_&&W7==="("?")":"");if(bd)for(O_=-1,
eh=a2.length;++O_<eh;)if(Z4=a2.charCodeAt(O_),48>Z4||Z4>57){t9=(Z4===46?Zw+a2.slice(O_+1):a2.slice(O_))+t9;a2=a2.slice(0,O_);break}}tY&&!v3&&(a2=r(a2,Infinity));Z4=MK.length+a2.length+t9.length;O_=Z4<uB?Array(uB-Z4+1).join(H7):"";tY&&v3&&(a2=r(O_+a2,O_.length?uB-t9.length:Infinity),O_="");switch(sn){case "<":a2=MK+a2+t9+O_;break;case "=":a2=MK+O_+a2+t9;break;case "^":a2=O_.slice(0,Z4=O_.length>>1)+MK+a2+t9+O_.slice(Z4);break;default:a2=O_+MK+a2+t9}return mE(a2)}
Q7=PZW(Q7);var H7=Q7.fill,sn=Q7.align,W7=Q7.sign,Un=Q7.symbol,v3=Q7.zero,uB=Q7.width,tY=Q7.comma,ve=Q7.precision,Cm=Q7.trim,g6=Q7.type;g6==="n"?(tY=!0,g6="g"):FL7[g6]||(ve==null&&(ve=12),Cm=!0,g6="g");if(v3||H7==="0"&&sn==="=")v3=!0,H7="0",sn="=";var WF=Un==="$"?HZ[0]:Un==="#"&&/[boxX]/.test(g6)?"0"+g6.toLowerCase():"",xi=Un==="$"?HZ[1]:/[%p]/.test(g6)?ui:"",UF=FL7[g6],bd=/[defgprs%]/.test(g6);ve=ve==null?6:/[gprs]/.test(g6)?Math.max(1,Math.min(21,ve)):Math.max(0,Math.min(20,ve));S7.toString=function(){return Q7+
""};
return S7}
var r=P.grouping&&P.thousands?wPq(P.grouping,P.thousands):wS7,HZ=P.currency,Zw=P.decimal,mE=P.numerals?A$9(P.numerals):wS7,ui=P.percent||"%";return{format:Q,formatPrefix:function(Q7,S7){var H7=Q((Q7=PZW(Q7),Q7.type="f",Q7));Q7=Math.max(-8,Math.min(8,Math.floor(jio(S7)/3)))*3;var sn=Math.pow(10,-Q7),W7=AZ7[8+Q7/3];return function(Un){return H7(sn*Un)+W7}}}}
function l7(){this.reset()}
function Zwd(P,Q,r){var HZ=P.s=Q+r,Zw=HZ-Q;P.t=Q-(HZ-Zw)+(r-Zw)}
function w97(P){return P>1?rR:P<-1?-rR:Math.asin(P)}
function Z$9(){}
function cZ1(P){var Q=P[0];P=P[1];var r=Bf(P);return[r*Bf(Q),r*ff(Q),ff(P)]}
function YA1(P,Q){return[P[1]*Q[2]-P[2]*Q[1],P[2]*Q[0]-P[0]*Q[2],P[0]*Q[1]-P[1]*Q[0]]}
function zcW(P){var Q=AOp(P[0]*P[0]+P[1]*P[1]+P[2]*P[2]);P[0]/=Q;P[1]/=Q;P[2]/=Q}
function c$r(){var P=[],Q;return{point:function(r,HZ){Q.push([r,HZ])},
lineStart:function(){P.push(Q=[])},
lineEnd:Z$9,rejoin:function(){P.length>1&&P.push(P.pop().concat(P.shift()))},
result:function(){var r=P;P=[];Q=null;return r}}}
function JO$(P,Q,r,HZ){this.x=P;this.z=Q;this.o=r;this.e=HZ;this.v=!1;this.n=this.p=null}
function Ye9(P,Q,r,HZ,Zw){var mE=[],ui=[];P.forEach(function(W7){if(!((Un=W7.length-1)<=0)){var Un,v3=W7[0],uB=W7[Un],tY=v3;if(C4(tY[0]-uB[0])<1E-6&&C4(tY[1]-uB[1])<1E-6){Zw.lineStart();for(Q7=0;Q7<Un;++Q7)Zw.point((v3=W7[Q7])[0],v3[1]);Zw.lineEnd()}else mE.push(Un=new JO$(v3,W7,null,!0)),ui.push(Un.o=new JO$(v3,null,Un,!1)),mE.push(Un=new JO$(uB,W7,null,!1)),ui.push(Un.o=new JO$(uB,null,Un,!0))}});
if(mE.length){ui.sort(Q);Mx1(mE);Mx1(ui);var Q7=0;for(P=ui.length;Q7<P;++Q7)ui[Q7].e=r=!r;r=mE[0];for(var S7;;){for(var H7=r,sn=!0;H7.v;)if((H7=H7.n)===r)return;Q=H7.z;Zw.lineStart();do{H7.v=H7.o.v=!0;if(H7.e){if(sn)for(Q7=0,P=Q.length;Q7<P;++Q7)Zw.point((S7=Q[Q7])[0],S7[1]);else HZ(H7.x,H7.n.x,1,Zw);H7=H7.n}else{if(sn)for(Q=H7.p.z,Q7=Q.length-1;Q7>=0;--Q7)Zw.point((S7=Q[Q7])[0],S7[1]);else HZ(H7.x,H7.p.x,-1,Zw);H7=H7.p}H7=H7.o;Q=H7.z;sn=!sn}while(!H7.v);Zw.lineEnd()}}}
function Mx1(P){if(Q=P.length){for(var Q,r=0,HZ=P[0],Zw;++r<Q;)HZ.n=Zw=P[r],Zw.p=HZ,HZ=Zw;HZ.n=Zw=P[0];Zw.p=HZ}}
function zli(P){return P.length>1}
function M8_(P,Q){return((P=P.x)[0]<0?P[1]-rR-1E-6:rR-P[1])-((Q=Q.x)[0]<0?Q[1]-rR-1E-6:rR-Q[1])}
function pSE(){}
function qAP(P){return function(Q,r){var HZ=Bf(Q),Zw=Bf(r);HZ=P(HZ*Zw);return[HZ*Zw*ff(Q),HZ*ff(r)]}}
function t3(P){return function(Q,r){var HZ=AOp(Q*Q+r*r),Zw=P(HZ),mE=ff(Zw);Zw=Bf(Zw);return[Tc_(Q*mE,HZ*Zw),w97(HZ&&r*mE/HZ)]}}
function qe9(P){var Q=0,r=P.children,HZ=r&&r.length;if(HZ)for(;--HZ>=0;)Q+=r[HZ].value;else Q=1;P.value=Q}
function mUn(P,Q){var r=new L2(P);P=+P.value&&(r.value=P.value);var HZ,Zw=[r],mE,ui,Q7,S7;for(Q==null&&(Q=TQi);HZ=Zw.pop();)if(P&&(HZ.value=+HZ.data.value),(ui=Q(HZ.data))&&(S7=ui.length))for(HZ.children=Array(S7),Q7=S7-1;Q7>=0;--Q7)Zw.push(mE=HZ.children[Q7]=new L2(ui[Q7])),mE.parent=HZ,mE.depth=HZ.depth+1;return r.eachBefore(mbi)}
function TQi(P){return P.children}
function WNo(P){P.data=P.data.data}
function mbi(P){var Q=0;do P.height=Q;while((P=P.parent)&&P.height<++Q)}
function L2(P){this.data=P;this.depth=this.height=0;this.parent=null}
function To(P,Q,r,HZ){function Zw(mE){return P(mE=new Date(+mE)),mE}
Zw.floor=Zw;Zw.ceil=function(mE){return P(mE=new Date(mE-1)),Q(mE,1),P(mE),mE};
Zw.round=function(mE){var ui=Zw(mE),Q7=Zw.ceil(mE);return mE-ui<Q7-mE?ui:Q7};
Zw.offset=function(mE,ui){return Q(mE=new Date(+mE),ui==null?1:Math.floor(ui)),mE};
Zw.range=function(mE,ui,Q7){var S7=[],H7;mE=Zw.ceil(mE);Q7=Q7==null?1:Math.floor(Q7);if(!(mE<ui&&Q7>0))return S7;do S7.push(H7=new Date(+mE)),Q(mE,Q7),P(mE);while(H7<mE&&mE<ui);return S7};
Zw.filter=function(mE){return To(function(ui){if(ui>=ui)for(;P(ui),!mE(ui);)ui.setTime(ui-1)},function(ui,Q7){if(ui>=ui)if(Q7<0)for(;++Q7<=0;)for(;Q(ui,-1),!mE(ui););
else for(;--Q7>=0;)for(;Q(ui,1),!mE(ui););})};
r&&(Zw.count=function(mE,ui){kHu.setTime(+mE);hc6.setTime(+ui);P(kHu);P(hc6);return Math.floor(r(kHu,hc6))},Zw.every=function(mE){mE=Math.floor(mE);
return isFinite(mE)&&mE>0?mE>1?Zw.filter(HZ?function(ui){return HZ(ui)%mE===0}:function(ui){return Zw.count(0,ui)%mE===0}):Zw:null});
return Zw}
function Fz(P){return To(function(Q){Q.setDate(Q.getDate()-(Q.getDay()+7-P)%7);Q.setHours(0,0,0,0)},function(Q,r){Q.setDate(Q.getDate()+r*7)},function(Q,r){return(r-Q-(r.getTimezoneOffset()-Q.getTimezoneOffset())*6E4)/6048E5})}
function ZU(P){return To(function(Q){Q.setUTCDate(Q.getUTCDate()-(Q.getUTCDay()+7-P)%7);Q.setUTCHours(0,0,0,0)},function(Q,r){Q.setUTCDate(Q.getUTCDate()+r*7)},function(Q,r){return(r-Q)/6048E5})}
function y$O(P){if(0<=P.y&&P.y<100){var Q=new Date(-1,P.m,P.d,P.H,P.M,P.S,P.L);Q.setFullYear(P.y);return Q}return new Date(P.y,P.m,P.d,P.H,P.M,P.S,P.L)}
function FQ6(P){if(0<=P.y&&P.y<100){var Q=new Date(Date.UTC(-1,P.m,P.d,P.H,P.M,P.S,P.L));Q.setUTCFullYear(P.y);return Q}return new Date(Date.UTC(P.y,P.m,P.d,P.H,P.M,P.S,P.L))}
function gj(P){return{y:P,m:0,d:1,H:0,M:0,S:0,L:0}}
function NQ9(P){function Q(t9,eh){return function(Z4){var O_=[],DY=-1,DV=0,Sa=t9.length,T9,FO;for(Z4 instanceof Date||(Z4=new Date(+Z4));++DY<Sa;)if(t9.charCodeAt(DY)===37){O_.push(t9.slice(DV,DY));(DV=WLU[T9=t9.charAt(++DY)])!=null?T9=t9.charAt(++DY):DV=T9==="e"?" ":"0";if(FO=eh[T9])T9=FO(Z4,DV);O_.push(T9);DV=DY+1}O_.push(t9.slice(DV,DY));return O_.join("")}}
function r(t9,eh){return function(Z4){var O_=gj(1900);if(HZ(O_,t9,Z4,0)!=Z4.length)return null;if("Q"in O_)return new Date(O_.Q);"p"in O_&&(O_.H=O_.H%12+O_.p*12);if("V"in O_){if(O_.V<1||O_.V>53)return null;"w"in O_||(O_.w=1);if("Z"in O_){Z4=FQ6(gj(O_.y));var DY=Z4.getUTCDay();Z4=DY>4||DY===0?n4U.ceil(Z4):n4U(Z4);Z4=yZd.offset(Z4,(O_.V-1)*7);O_.y=Z4.getUTCFullYear();O_.m=Z4.getUTCMonth();O_.d=Z4.getUTCDate()+(O_.w+6)%7}else Z4=eh(gj(O_.y)),DY=Z4.getDay(),Z4=DY>4||DY===0?rZW.ceil(Z4):rZW(Z4),Z4=NcW.offset(Z4,
(O_.V-1)*7),O_.y=Z4.getFullYear(),O_.m=Z4.getMonth(),O_.d=Z4.getDate()+(O_.w+6)%7}else if("W"in O_||"U"in O_)"w"in O_||(O_.w="u"in O_?O_.u%7:"W"in O_?1:0),DY="Z"in O_?FQ6(gj(O_.y)).getUTCDay():eh(gj(O_.y)).getDay(),O_.m=0,O_.d="W"in O_?(O_.w+6)%7+O_.W*7-(DY+5)%7:O_.w+O_.U*7-(DY+6)%7;return"Z"in O_?(O_.H+=O_.Z/100|0,O_.M+=O_.Z%100,FQ6(O_)):eh(O_)}}
function HZ(t9,eh,Z4,O_){for(var DY=0,DV=eh.length,Sa=Z4.length,T9;DY<DV;){if(O_>=Sa)return-1;T9=eh.charCodeAt(DY++);if(T9===37){if(T9=eh.charAt(DY++),T9=MK[T9 in WLU?eh.charAt(DY++):T9],!T9||(O_=T9(t9,Z4,O_))<0)return-1}else if(T9!=Z4.charCodeAt(O_++))return-1}return O_}
var Zw=P.dateTime,mE=P.date,ui=P.time,Q7=P.periods,S7=P.days,H7=P.shortDays,sn=P.months,W7=P.shortMonths,Un=U7(Q7),v3=Rd(Q7),uB=U7(S7),tY=Rd(S7),ve=U7(H7),Cm=Rd(H7),g6=U7(sn),WF=Rd(sn),xi=U7(W7),UF=Rd(W7),bd={a:function(t9){return H7[t9.getDay()]},
A:function(t9){return S7[t9.getDay()]},
b:function(t9){return W7[t9.getMonth()]},
B:function(t9){return sn[t9.getMonth()]},
c:null,d:bwV,e:bwV,f:b$O,H:Ee9,I:elO,j:uK9,L:E4d,m:GmO,M:fb_,p:function(t9){return Q7[+(t9.getHours()>=12)]},
Q:ecb,s:uPU,S:ve9,u:lbj,U:V8j,V:oer,w:O$9,W:XP9,x:null,X:null,y:Qit,Y:dbj,Z:PoR,"%":GHP},a2={a:function(t9){return H7[t9.getUTCDay()]},
A:function(t9){return S7[t9.getUTCDay()]},
b:function(t9){return W7[t9.getUTCMonth()]},
B:function(t9){return sn[t9.getUTCMonth()]},
c:null,d:fM1,e:fM1,f:$b3,H:pPO,I:kmO,j:hl9,L:v4Y,m:nej,M:r$p,p:function(t9){return Q7[+(t9.getUTCHours()>=12)]},
Q:ecb,s:uPU,S:BQ_,u:DbO,U:KNr,V:t8R,w:LNO,W:geR,x:null,X:null,y:Ubj,Y:Rl9,Z:Ibr,"%":GHP},MK={a:function(t9,eh,Z4){return(eh=ve.exec(eh.slice(Z4)))?(t9.w=Cm[eh[0].toLowerCase()],Z4+eh[0].length):-1},
A:function(t9,eh,Z4){return(eh=uB.exec(eh.slice(Z4)))?(t9.w=tY[eh[0].toLowerCase()],Z4+eh[0].length):-1},
b:function(t9,eh,Z4){return(eh=xi.exec(eh.slice(Z4)))?(t9.m=UF[eh[0].toLowerCase()],Z4+eh[0].length):-1},
B:function(t9,eh,Z4){return(eh=g6.exec(eh.slice(Z4)))?(t9.m=WF[eh[0].toLowerCase()],Z4+eh[0].length):-1},
c:function(t9,eh,Z4){return HZ(t9,Zw,eh,Z4)},
d:lM7,e:lM7,f:abj,H:Vxd,I:Vxd,j:xbO,L:HwK,m:iwj,M:CZR,p:function(t9,eh,Z4){return(eh=Un.exec(eh.slice(Z4)))?(t9.p=v3[eh[0].toLowerCase()],Z4+eh[0].length):-1},
Q:SAq,s:s_t,S:j_o,u:wSo,U:AZ3,V:JZi,w:FLo,W:ZwK,x:function(t9,eh,Z4){return HZ(t9,mE,eh,Z4)},
X:function(t9,eh,Z4){return HZ(t9,ui,eh,Z4)},
y:cZj,Y:YAq,Z:zci,"%":Mxj};bd.x=Q(mE,bd);bd.X=Q(ui,bd);bd.c=Q(Zw,bd);a2.x=Q(mE,a2);a2.X=Q(ui,a2);a2.c=Q(Zw,a2);return{format:function(t9){var eh=Q(t9,bd);eh.toString=function(){return t9};
return eh},
parse:function(t9){var eh=r(t9,y$O);eh.toString=function(){return t9};
return eh},
utcFormat:function(t9){var eh=Q(t9,a2);eh.toString=function(){return t9};
return eh},
utcParse:function(t9){var eh=r(t9,FQ6);eh.toString=function(){return t9};
return eh}}}
function Nn(P,Q,r){var HZ=P<0?"-":"";P=(HZ?-P:P)+"";var Zw=P.length;return HZ+(Zw<r?Array(r-Zw+1).join(Q)+P:P)}
function qAr(P){return P.replace(Tc9,"\\$&")}
function U7(P){return new RegExp("^(?:"+P.map(qAr).join("|")+")","i")}
function Rd(P){for(var Q={},r=-1,HZ=P.length;++r<HZ;)Q[P[r].toLowerCase()]=r;return Q}
function FLo(P,Q,r){return(Q=yf.exec(Q.slice(r,r+1)))?(P.w=+Q[0],r+Q[0].length):-1}
function wSo(P,Q,r){return(Q=yf.exec(Q.slice(r,r+1)))?(P.u=+Q[0],r+Q[0].length):-1}
function AZ3(P,Q,r){return(Q=yf.exec(Q.slice(r,r+2)))?(P.U=+Q[0],r+Q[0].length):-1}
function JZi(P,Q,r){return(Q=yf.exec(Q.slice(r,r+2)))?(P.V=+Q[0],r+Q[0].length):-1}
function ZwK(P,Q,r){return(Q=yf.exec(Q.slice(r,r+2)))?(P.W=+Q[0],r+Q[0].length):-1}
function YAq(P,Q,r){return(Q=yf.exec(Q.slice(r,r+4)))?(P.y=+Q[0],r+Q[0].length):-1}
function cZj(P,Q,r){return(Q=yf.exec(Q.slice(r,r+2)))?(P.y=+Q[0]+(+Q[0]>68?1900:2E3),r+Q[0].length):-1}
function zci(P,Q,r){return(Q=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Q.slice(r,r+6)))?(P.Z=Q[1]?0:-(Q[2]+(Q[3]||"00")),r+Q[0].length):-1}
function iwj(P,Q,r){return(Q=yf.exec(Q.slice(r,r+2)))?(P.m=Q[0]-1,r+Q[0].length):-1}
function lM7(P,Q,r){return(Q=yf.exec(Q.slice(r,r+2)))?(P.d=+Q[0],r+Q[0].length):-1}
function xbO(P,Q,r){return(Q=yf.exec(Q.slice(r,r+3)))?(P.m=0,P.d=+Q[0],r+Q[0].length):-1}
function Vxd(P,Q,r){return(Q=yf.exec(Q.slice(r,r+2)))?(P.H=+Q[0],r+Q[0].length):-1}
function CZR(P,Q,r){return(Q=yf.exec(Q.slice(r,r+2)))?(P.M=+Q[0],r+Q[0].length):-1}
function j_o(P,Q,r){return(Q=yf.exec(Q.slice(r,r+2)))?(P.S=+Q[0],r+Q[0].length):-1}
function HwK(P,Q,r){return(Q=yf.exec(Q.slice(r,r+3)))?(P.L=+Q[0],r+Q[0].length):-1}
function abj(P,Q,r){return(Q=yf.exec(Q.slice(r,r+6)))?(P.L=Math.floor(Q[0]/1E3),r+Q[0].length):-1}
function Mxj(P,Q,r){return(P=mU_.exec(Q.slice(r,r+1)))?r+P[0].length:-1}
function SAq(P,Q,r){return(Q=yf.exec(Q.slice(r)))?(P.Q=+Q[0],r+Q[0].length):-1}
function s_t(P,Q,r){return(Q=yf.exec(Q.slice(r)))?(P.Q=+Q[0]*1E3,r+Q[0].length):-1}
function bwV(P,Q){return Nn(P.getDate(),Q,2)}
function Ee9(P,Q){return Nn(P.getHours(),Q,2)}
function elO(P,Q){return Nn(P.getHours()%12||12,Q,2)}
function uK9(P,Q){return Nn(1+NcW.count(fb(P),P),Q,3)}
function E4d(P,Q){return Nn(P.getMilliseconds(),Q,3)}
function b$O(P,Q){return E4d(P,Q)+"000"}
function GmO(P,Q){return Nn(P.getMonth()+1,Q,2)}
function fb_(P,Q){return Nn(P.getMinutes(),Q,2)}
function ve9(P,Q){return Nn(P.getSeconds(),Q,2)}
function lbj(P){P=P.getDay();return P===0?7:P}
function V8j(P,Q){return Nn(WLi.count(fb(P),P),Q,2)}
function oer(P,Q){var r=P.getDay();P=r>=4||r===0?Bcw(P):Bcw.ceil(P);return Nn(Bcw.count(fb(P),P)+(fb(P).getDay()===4),Q,2)}
function O$9(P){return P.getDay()}
function XP9(P,Q){return Nn(rZW.count(fb(P),P),Q,2)}
function Qit(P,Q){return Nn(P.getFullYear()%100,Q,2)}
function dbj(P,Q){return Nn(P.getFullYear()%1E4,Q,4)}
function PoR(P){P=P.getTimezoneOffset();return(P>0?"-":(P*=-1,"+"))+Nn(P/60|0,"0",2)+Nn(P%60,"0",2)}
function fM1(P,Q){return Nn(P.getUTCDate(),Q,2)}
function pPO(P,Q){return Nn(P.getUTCHours(),Q,2)}
function kmO(P,Q){return Nn(P.getUTCHours()%12||12,Q,2)}
function hl9(P,Q){return Nn(1+yZd.count(vs(P),P),Q,3)}
function v4Y(P,Q){return Nn(P.getUTCMilliseconds(),Q,3)}
function $b3(P,Q){return v4Y(P,Q)+"000"}
function nej(P,Q){return Nn(P.getUTCMonth()+1,Q,2)}
function r$p(P,Q){return Nn(P.getUTCMinutes(),Q,2)}
function BQ_(P,Q){return Nn(P.getUTCSeconds(),Q,2)}
function DbO(P){P=P.getUTCDay();return P===0?7:P}
function KNr(P,Q){return Nn(yZR.count(vs(P),P),Q,2)}
function t8R(P,Q){var r=P.getUTCDay();P=r>=4||r===0?DUV(P):DUV.ceil(P);return Nn(DUV.count(vs(P),P)+(vs(P).getUTCDay()===4),Q,2)}
function LNO(P){return P.getUTCDay()}
function geR(P,Q){return Nn(n4U.count(vs(P),P),Q,2)}
function Ubj(P,Q){return Nn(P.getUTCFullYear()%100,Q,2)}
function Rl9(P,Q){return Nn(P.getUTCFullYear()%1E4,Q,4)}
function Ibr(){return"+0000"}
function GHP(){return"%"}
function ecb(P){return+P}
function uPU(P){return Math.floor(+P/1E3)}
function MH(P){for(var Q=P.length/6|0,r=Array(Q),HZ=0;HZ<Q;)r[HZ]="#"+P.slice(HZ*6,++HZ*6);return r}
function Kp(P){return Nci(P[P.length-1])}
function ZVV(P){var Q=P.length;return function(r){return P[Math.max(0,Math.min(Q-1,Math.floor(r*Q)))]}}
function o41(P){this._context=P}
function OwU(P){this._curve=P}
function XSd(P,Q,r){var HZ=P._x1-P._x0;Q-=P._x1;var Zw=(P._y1-P._y0)/(HZ||Q<0&&-0);P=(r-P._y1)/(Q||HZ<0&&-0);return((Zw<0?-1:1)+(P<0?-1:1))*Math.min(Math.abs(Zw),Math.abs(P),.5*Math.abs((Zw*Q+P*HZ)/(HZ+Q)))||0}
function Q_1(P,Q){var r=P._x1-P._x0;return r?(3*(P._y1-P._y0)/r-Q)/2:Q}
function KLZ(P,Q,r){var HZ=P._x0,Zw=P._x1,mE=P._y1,ui=(Zw-HZ)/3;P._context.bezierCurveTo(HZ+ui,P._y0+ui*Q,Zw-ui,mE-ui*r,Zw,mE)}
function tx7(P){this._context=P}
function dUU(P){this._context=P}
function Id(P,Q,r){this.k=P;this.x=Q;this.y=r}
(function(P){P.length===1&&(P=C(P));return{left:function(Q,r,HZ,Zw){HZ==null&&(HZ=0);Zw==null&&(Zw=Q.length);for(;HZ<Zw;){var mE=HZ+Zw>>>1;P(Q[mE],r)<0?HZ=mE+1:Zw=mE}return HZ},
right:function(Q,r,HZ,Zw){HZ==null&&(HZ=0);Zw==null&&(Zw=Q.length);for(;HZ<Zw;){var mE=HZ+Zw>>>1;P(Q[mE],r)>0?Zw=mE:HZ=mE+1}return HZ}}})(H);
var z$j={value:function(){}};
w.prototype=S.prototype={constructor:w,on:function(P,Q){var r=this._,HZ=A(P+"",r),Zw,mE=-1,ui=HZ.length;if(arguments.length<2)for(;++mE<ui;){var Q7;if(Q7=Zw=(P=HZ[mE]).type){a:{Q7=r[Zw];for(var S7=0,H7=Q7.length;S7<H7;++S7)if((Zw=Q7[S7]).name===P.name){Zw=Zw.value;break a}Zw=void 0}Q7=Zw}if(Q7)return Zw}else{if(Q!=null&&typeof Q!=="function")throw Error("Ce`"+Q);for(;++mE<ui;)if(Zw=(P=HZ[mE]).type)r[Zw]=J(r[Zw],P.name,Q);else if(Q==null)for(Zw in r)r[Zw]=J(r[Zw],P.name,null);return this}},
copy:function(){var P={},Q=this._,r;for(r in Q)P[r]=Q[r].slice();return new w(P)},
call:function(P,Q){if((Zw=arguments.length-2)>0)for(var r=Array(Zw),HZ=0,Zw,mE;HZ<Zw;++HZ)r[HZ]=arguments[HZ+2];if(!this._.hasOwnProperty(P))throw Error("we`"+P);mE=this._[P];HZ=0;for(Zw=mE.length;HZ<Zw;++HZ)mE[HZ].value.apply(Q,r)},
apply:function(P,Q,r){if(!this._.hasOwnProperty(P))throw Error("we`"+P);P=this._[P];for(var HZ=0,Zw=P.length;HZ<Zw;++HZ)P[HZ].value.apply(Q,r)}};
var nd={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/"},PZd=function(P){return function(){return this.matches(P)}};
if(typeof document!=="undefined"){var ad=document.documentElement;if(!ad.matches){var bwO=ad.webkitMatchesSelector||ad.msMatchesSelector||ad.mozMatchesSelector||ad.oMatchesSelector;PZd=function(P){return function(){return bwO.call(this,P)}}}}var $UW=PZd;
b.prototype={constructor:b,appendChild:function(P){return this._parent.insertBefore(P,this._next)},
insertBefore:function(P,Q){return this._parent.insertBefore(P,Q)},
querySelector:function(P){return this._parent.querySelector(P)},
querySelectorAll:function(P){return this._parent.querySelectorAll(P)}};
var hl_={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(hl_={mouseenter:"mouseover",mouseleave:"mouseout"}));var Mf9=[null];LP.prototype=yO.prototype={constructor:LP,select:function(P){typeof P!=="function"&&(P=y(P));for(var Q=this._groups,r=Q.length,HZ=Array(r),Zw=0;Zw<r;++Zw)for(var mE=Q[Zw],ui=mE.length,Q7=HZ[Zw]=Array(ui),S7,H7,sn=0;sn<ui;++sn)(S7=mE[sn])&&(H7=P.call(S7,S7.__data__,sn,mE))&&("__data__"in S7&&(H7.__data__=S7.__data__),Q7[sn]=H7);return new LP(HZ,
this._parents)},
filter:function(P){typeof P!=="function"&&(P=$UW(P));for(var Q=this._groups,r=Q.length,HZ=Array(r),Zw=0;Zw<r;++Zw)for(var mE=Q[Zw],ui=mE.length,Q7=HZ[Zw]=[],S7,H7=0;H7<ui;++H7)(S7=mE[H7])&&P.call(S7,S7.__data__,H7,mE)&&Q7.push(S7);return new LP(HZ,this._parents)},
data:function(P,Q){if(!P)return v3=Array(this.size()),H7=-1,this.each(function(g6){v3[++H7]=g6}),v3;
var r=Q?d:O,HZ=this._parents,Zw=this._groups;typeof P!=="function"&&(P=u(P));for(var mE=Zw.length,ui=Array(mE),Q7=Array(mE),S7=Array(mE),H7=0;H7<mE;++H7){var sn=HZ[H7],W7=Zw[H7],Un=W7.length,v3=P.call(sn,sn&&sn.__data__,H7,HZ),uB=v3.length,tY=Q7[H7]=Array(uB),ve=ui[H7]=Array(uB);Un=S7[H7]=Array(Un);r(sn,W7,tY,ve,Un,v3,Q);W7=sn=0;for(var Cm;sn<uB;++sn)if(Un=tY[sn]){for(sn>=W7&&(W7=sn+1);!(Cm=ve[W7])&&++W7<uB;);Un._next=Cm||null}}ui=new LP(ui,HZ);ui._enter=Q7;ui._exit=S7;return ui},
enter:function(){return new LP(this._enter||this._groups.map(N),this._parents)},
exit:function(){return new LP(this._exit||this._groups.map(N),this._parents)},
merge:function(P){var Q=this._groups;P=P._groups;for(var r=Q.length,HZ=Math.min(r,P.length),Zw=Array(r),mE=0;mE<HZ;++mE)for(var ui=Q[mE],Q7=P[mE],S7=ui.length,H7=Zw[mE]=Array(S7),sn,W7=0;W7<S7;++W7)if(sn=ui[W7]||Q7[W7])H7[W7]=sn;for(;mE<r;++mE)Zw[mE]=Q[mE];return new LP(Zw,this._parents)},
order:function(){for(var P=this._groups,Q=-1,r=P.length;++Q<r;)for(var HZ=P[Q],Zw=HZ.length-1,mE=HZ[Zw],ui;--Zw>=0;)if(ui=HZ[Zw])mE&&mE!==ui.nextSibling&&mE.parentNode.insertBefore(ui,mE),mE=ui;return this},
sort:function(P){function Q(W7,Un){return W7&&Un?P(W7.__data__,Un.__data__):!W7-!Un}
P||(P=p);for(var r=this._groups,HZ=r.length,Zw=Array(HZ),mE=0;mE<HZ;++mE){for(var ui=r[mE],Q7=ui.length,S7=Zw[mE]=Array(Q7),H7,sn=0;sn<Q7;++sn)if(H7=ui[sn])S7[sn]=H7;S7.sort(Q)}return(new LP(Zw,this._parents)).order()},
call:function(){var P=arguments[0];arguments[0]=this;P.apply(null,arguments);return this},
nodes:function(){var P=Array(this.size()),Q=-1;this.each(function(){P[++Q]=this});
return P},
node:function(){for(var P=this._groups,Q=0,r=P.length;Q<r;++Q)for(var HZ=P[Q],Zw=0,mE=HZ.length;Zw<mE;++Zw){var ui=HZ[Zw];if(ui)return ui}return null},
size:function(){var P=0;this.each(function(){++P});
return P},
empty:function(){return!this.node()},
each:function(P){for(var Q=this._groups,r=0,HZ=Q.length;r<HZ;++r)for(var Zw=Q[r],mE=0,ui=Zw.length,Q7;mE<ui;++mE)(Q7=Zw[mE])&&P.call(Q7,Q7.__data__,mE,Zw);return this},
attr:function(P,Q){var r=c(P);if(arguments.length<2){var HZ=this.node();return r.local?HZ.getAttributeNS(r.space,r.local):HZ.getAttribute(r)}return this.each((Q==null?r.local?R:k:typeof Q==="function"?r.local?ii:g:r.local?t:L)(r,Q))},
style:function(P,Q,r){return arguments.length>1?this.each((Q==null?FW:typeof Q==="function"?eZ:cZ)(P,Q,r==null?"":r)):ND(this.node(),P)},
property:function(P,Q){return arguments.length>1?this.each((Q==null?bi:typeof Q==="function"?O$:pU)(P,Q)):this.node()[P]},
text:function(P){return arguments.length?this.each(P==null?R0:(typeof P==="function"?c7:m1)(P)):this.node().textContent},
html:function(P){return arguments.length?this.each(P==null?tV:(typeof P==="function"?Mi:Td)(P)):this.node().innerHTML},
append:function(P){var Q=typeof P==="function"?P:m(P);return this.select(function(){return this.appendChild(Q.apply(this,arguments))})},
insert:function(P,Q){var r=typeof P==="function"?P:m(P),HZ=Q==null?fP:typeof Q==="function"?Q:y(Q);return this.select(function(){return this.insertBefore(r.apply(this,arguments),HZ.apply(this,arguments)||null)})},
remove:function(){return this.each(eo)},
clone:function(P){return this.select(P?wu:Cr)},
datum:function(P){return arguments.length?this.property("__data__",P):this.node().__data__},
on:function(P,Q,r){var HZ=So(P+""),Zw=HZ.length,mE;if(arguments.length<2){var ui=this.node().__on;if(ui)for(var Q7=0,S7=ui.length,H7;Q7<S7;++Q7){var sn=0;for(H7=ui[Q7];sn<Zw;++sn)if((mE=HZ[sn]).type===H7.type&&mE.name===H7.name)return H7.value}}else{ui=Q?H3:qi;r==null&&(r=!1);for(sn=0;sn<Zw;++sn)this.each(ui(HZ[sn],Q,r));return this}},
dispatch:function(P,Q){return this.each((typeof Q==="function"?YM:RV)(P,Q))}};
var qfj=0;lY.prototype=function(){return new lY}.prototype={constructor:lY,
get:function(P){for(var Q=this._;!(Q in P);)if(!(P=P.parentNode))return;return P[Q]},
set:function(P,Q){return P[this._]=Q},
remove:function(P){return this._ in P&&delete P[this._]},
toString:function(){return this._}};
var l8=1/.7,THq=/^#([0-9a-f]{3})$/,mci=/^#([0-9a-f]{6})$/,Wkr=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),ydK=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),NHO=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),bOO=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*\\)$"),
EPO=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),e$p=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*\\)$"),ne1={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};
Gd(sM,M9,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
Gd(U_,Kr,W3(sM,{brighter:function(P){P=P==null?l8:Math.pow(l8,P);return new U_(this.r*P,this.g*P,this.b*P,this.opacity)},
darker:function(P){P=P==null?.7:Math.pow(.7,P);return new U_(this.r*P,this.g*P,this.b*P,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"#"+Nr(this.r)+Nr(this.g)+Nr(this.b)},
toString:function(){var P=this.opacity;P=isNaN(P)?1:Math.max(0,Math.min(1,P));return(P===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))+(P===1?")":", "+P+")")}}));
Gd(qE,Mz,W3(sM,{brighter:function(P){P=P==null?l8:Math.pow(l8,P);return new qE(this.h,this.s,this.l*P,this.opacity)},
darker:function(P){P=P==null?.7:Math.pow(.7,P);return new qE(this.h,this.s,this.l*P,this.opacity)},
rgb:function(){var P=this.h%360+(this.h<0)*360,Q=this.l,r=Q+(Q<.5?Q:1-Q)*(isNaN(P)||isNaN(this.s)?0:this.s);Q=2*Q-r;return new U_(NH(P>=240?P-240:P+120,Q,r),NH(P,Q,r),NH(P<120?P+240:P-120,Q,r),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 r$Y=Math.PI/180,KNP=180/Math.PI,Dbb=4/29,u8=6/29,BQn=3*u8*u8,u7r=u8*u8*u8;Gd(V7,function(P,Q,r,HZ){return arguments.length===1?X6(P):new V7(P,Q,r,HZ==null?1:HZ)},W3(sM,{brighter:function(P){return new V7(this.l+18*(P==null?1:P),this.a,this.b,this.opacity)},
darker:function(P){return new V7(this.l-18*(P==null?1:P),this.a,this.b,this.opacity)},
rgb:function(){var P=(this.l+16)/116,Q=isNaN(this.a)?P:P+this.a/500,r=isNaN(this.b)?P:P-this.b/200;Q=.96422*LU(Q);P=1*LU(P);r=.82521*LU(r);return new U_(Ni(3.1338561*Q-1.6168667*P-.4906146*r),Ni(-.9787684*Q+1.9161415*P+.033454*r),Ni(.0719453*Q-.2289914*P+1.4052427*r),this.opacity)}}));
Gd(uY,GK,W3(sM,{brighter:function(P){return new uY(this.h,this.c,this.l+18*(P==null?1:P),this.opacity)},
darker:function(P){return new uY(this.h,this.c,this.l-18*(P==null?1:P),this.opacity)},
rgb:function(){return X6(this).rgb()}}));
var t8d=1.78277*-.29227-.1347134789;Gd(di,e7,W3(sM,{brighter:function(P){P=P==null?l8:Math.pow(l8,P);return new di(this.h,this.s,this.l*P,this.opacity)},
darker:function(P){P=P==null?.7:Math.pow(.7,P);return new di(this.h,this.s,this.l*P,this.opacity)},
rgb:function(){var P=isNaN(this.h)?0:(this.h+120)*r$Y,Q=+this.l,r=isNaN(this.s)?0:this.s*Q*(1-Q),HZ=Math.cos(P);P=Math.sin(P);return new U_(255*(Q+r*(-.14861*HZ+1.78277*P)),255*(Q+r*(-.29227*HZ+-.90649*P)),255*(Q+1.97294*HZ*r),this.opacity)}}));
var IbP=function r(Q){function HZ(mE,ui){var Q7=Zw((mE=Kr(mE)).r,(ui=Kr(ui)).r),S7=Zw(mE.g,ui.g),H7=Zw(mE.b,ui.b),sn=I8(mE.opacity,ui.opacity);return function(W7){mE.r=Q7(W7);mE.g=S7(W7);mE.b=H7(W7);mE.opacity=sn(W7);return mE+""}}
var Zw=Ks(Q);HZ.gamma=r;return HZ}(1),Nci=xj(function(Q){var r=Q.length-1;
return function(HZ){var Zw=HZ<=0?HZ=0:HZ>=1?(HZ=1,r-1):Math.floor(HZ*r),mE=Q[Zw],ui=Q[Zw+1];return bB((HZ-Zw/r)*r,Zw>0?Q[Zw-1]:2*mE-ui,mE,ui,Zw<r-1?Q[Zw+2]:2*ui-mE)}});
xj(function(Q){var r=Q.length;return function(HZ){var Zw=Math.floor(((HZ%=1)<0?++HZ:HZ)*r);return bB((HZ-Zw/r)*r,Q[(Zw+r-1)%r],Q[Zw%r],Q[(Zw+1)%r],Q[(Zw+2)%r])}});
var fMw=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,v4i=new RegExp(fMw.source,"g"),LNV=180/Math.PI,LLE={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},x8,g47,pS1,cO$,E4K=ri(function(Q){if(Q==="none")return LLE;x8||(x8=document.createElement("DIV"),g47=document.documentElement,pS1=document.defaultView);x8.style.transform=Q;Q=pS1.getComputedStyle(g47.appendChild(x8),null).getPropertyValue("transform");g47.removeChild(x8);Q=Q.slice(7,-1).split(",");return N9(+Q[0],+Q[1],+Q[2],+Q[3],
+Q[4],+Q[5])},"px, ","px)","deg)"),ecO=ri(function(Q){if(Q==null)return LLE;
cO$||(cO$=document.createElementNS("http://www.w3.org/2000/svg","g"));cO$.setAttribute("transform",Q);if(!(Q=cO$.transform.baseVal.consolidate()))return LLE;Q=Q.matrix;return N9(Q.a,Q.b,Q.c,Q.d,Q.e,Q.f)},", ",")",")");
J9(rP);J9(I8);Yl(rP);Yl(I8);Rp(rP);var UU6=Rp(I8),Gi=0,BD=0,K2=0,CCp,Di,iVE=0,A0=0,HVi=0,rj=typeof performance==="object"&&performance.now?performance:Date,ged=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(Q){setTimeout(Q,17)};
o$.prototype=QH.prototype={constructor:o$,restart:function(Q,r,HZ){if(typeof Q!=="function")throw new TypeError("De");HZ=(HZ==null?Da():+HZ)+(r==null?0:+r);this._next||Di===this||(Di?Di._next=this:CCp=this,Di=this);this._call=Q;this._time=HZ;Pi()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,Pi())}};
var f3_=S("start","end","interrupt"),vPO=[],uPi=yO.prototype.constructor,kHU=0,VR=yO.prototype;iQ.prototype=function(Q){return yO().transition(Q)}.prototype={constructor:iQ,
select:function(Q){var r=this._name,HZ=this._id;typeof Q!=="function"&&(Q=y(Q));for(var Zw=this._groups,mE=Zw.length,ui=Array(mE),Q7=0;Q7<mE;++Q7)for(var S7=Zw[Q7],H7=S7.length,sn=ui[Q7]=Array(H7),W7,Un,v3=0;v3<H7;++v3)(W7=S7[v3])&&(Un=Q.call(W7,W7.__data__,v3,S7))&&("__data__"in W7&&(Un.__data__=W7.__data__),sn[v3]=Un,lMZ(sn[v3],r,HZ,v3,sn,QS(W7,HZ)));return new iQ(ui,this._parents,r,HZ)},
filter:function(Q){typeof Q!=="function"&&(Q=$UW(Q));for(var r=this._groups,HZ=r.length,Zw=Array(HZ),mE=0;mE<HZ;++mE)for(var ui=r[mE],Q7=ui.length,S7=Zw[mE]=[],H7,sn=0;sn<Q7;++sn)(H7=ui[sn])&&Q.call(H7,H7.__data__,sn,ui)&&S7.push(H7);return new iQ(Zw,this._parents,this._name,this._id)},
merge:function(Q){if(Q._id!==this._id)throw Error();var r=this._groups;Q=Q._groups;for(var HZ=r.length,Zw=Math.min(HZ,Q.length),mE=Array(HZ),ui=0;ui<Zw;++ui)for(var Q7=r[ui],S7=Q[ui],H7=Q7.length,sn=mE[ui]=Array(H7),W7,Un=0;Un<H7;++Un)if(W7=Q7[Un]||S7[Un])sn[Un]=W7;for(;ui<HZ;++ui)mE[ui]=r[ui];return new iQ(mE,this._parents,this._name,this._id)},
selection:function(){return new uPi(this._groups,this._parents)},
transition:function(){for(var Q=this._name,r=this._id,HZ=++kHU,Zw=this._groups,mE=Zw.length,ui=0;ui<mE;++ui)for(var Q7=Zw[ui],S7=Q7.length,H7,sn=0;sn<S7;++sn)if(H7=Q7[sn]){var W7=QS(H7,r);lMZ(H7,Q,HZ,sn,Q7,{time:W7.time+W7.delay+W7.duration,delay:0,duration:W7.duration,ease:W7.ease})}return new iQ(Zw,this._parents,Q,HZ)},
call:VR.call,nodes:VR.nodes,node:VR.node,size:VR.size,empty:VR.empty,each:VR.each,on:function(Q,r){var HZ=this._id;return arguments.length<2?QS(this.node(),HZ).on.on(Q):this.each(Kk9(HZ,Q,r))},
attr:function(Q,r){var HZ=c(Q),Zw=HZ==="transform"?ecO:Rl_;return this.attrTween(Q,typeof r==="function"?(HZ.local?P3q:dcr)(HZ,Zw,o4E(this,"attr."+Q,r)):r==null?(HZ.local?OOr:oPO)(HZ):(HZ.local?Qyo:XgR)(HZ,Zw,r+""))},
attrTween:function(Q,r){var HZ="attr."+Q;if(arguments.length<2)return(HZ=this.tween(HZ))&&HZ._value;if(r==null)return this.tween(HZ,null);if(typeof r!=="function")throw Error();var Zw=c(Q);return this.tween(HZ,(Zw.local?$cp:pgO)(Zw,r))},
style:function(Q,r,HZ){var Zw=Q==="transform"?E4K:Rl_;return r==null?this.styleTween(Q,LkO(Q,Zw)).on("end.style."+Q,gPp(Q)):this.styleTween(Q,typeof r==="function"?R$O(Q,Zw,o4E(this,"style."+Q,r)):Uc9(Q,Zw,r+""),HZ)},
styleTween:function(Q,r,HZ){var Zw="style."+Q;if(arguments.length<2)return(Zw=this.tween(Zw))&&Zw._value;if(r==null)return this.tween(Zw,null);if(typeof r!=="function")throw Error();return this.tween(Zw,I3i(Q,r,HZ==null?"":HZ))},
text:function(Q){return this.tween("text",typeof Q==="function"?xcK(o4E(this,"text",Q)):a3_(Q==null?"":Q+""))},
remove:function(){return this.on("end.remove",tf9(this._id))},
tween:function(Q,r){var HZ=this._id;if(arguments.length<2){HZ=QS(this.node(),HZ).tween;for(var Zw=0,mE=HZ.length,ui;Zw<mE;++Zw)if((ui=HZ[Zw]).name===Q)return ui.value;return null}return this.each((r==null?l3t:Vf9)(HZ,Q,r))},
delay:function(Q){var r=this._id;return arguments.length?this.each((typeof Q==="function"?kNO:h$j)(r,Q)):QS(this.node(),r).delay},
duration:function(Q){var r=this._id;return arguments.length?this.each((typeof Q==="function"?nPo:rdi)(r,Q)):QS(this.node(),r).duration},
ease:function(Q){var r=this._id;return arguments.length?this.each(BHR(r,Q)):QS(this.node(),r).ease}};
var RcV={time:null,delay:0,duration:250,ease:function(Q){return((Q*=2)<=1?Q*Q*Q:(Q-=2)*Q*Q+2)/2}};
yO.prototype.transition=function(Q){var r;if(Q instanceof iQ){var HZ=Q._id;Q=Q._name}else HZ=++kHU,(r=RcV).time=Da(),Q=Q==null?null:Q+"";for(var Zw=this._groups,mE=Zw.length,ui=0;ui<mE;++ui)for(var Q7=Zw[ui],S7=Q7.length,H7,sn=0;sn<S7;++sn)if(H7=Q7[sn]){var W7=H7,Un=Q,v3=HZ,uB=sn,tY=Q7,ve;if(!(ve=r))a:{ve=void 0;for(var Cm=HZ;!(ve=H7.__transition)||!(ve=ve[Cm]);)if(!(H7=H7.parentNode)){ve=(RcV.time=Da(),RcV);break a}}lMZ(W7,Un,v3,uB,tY,ve)}return new iQ(Zw,this._parents,Q,HZ)};
["e","w"].map(Owu);["n","s"].map(Owu);"n e s w nw ne se sw".split(" ").map(Owu);XSW.prototype=function(){return new XSW}.prototype={constructor:XSW,
moveTo:function(Q,r){this._+="M"+(this._x0=this._x1=+Q)+","+(this._y0=this._y1=+r)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(Q,r){this._+="L"+(this._x1=+Q)+","+(this._y1=+r)},
bezierCurveTo:function(Q,r,HZ,Zw,mE,ui){this._+="C"+ +Q+","+ +r+","+ +HZ+","+ +Zw+","+(this._x1=+mE)+","+(this._y1=+ui)},
rect:function(Q,r,HZ,Zw){this._+="M"+(this._x0=this._x1=+Q)+","+(this._y0=this._y1=+r)+"h"+ +HZ+"v"+ +Zw+"h"+-HZ+"Z"},
toString:function(){return this._}};
ScU.prototype=ab1.prototype={constructor:ScU,has:function(Q){return" "+Q in this},
get:function(Q){return this[" "+Q]},
set:function(Q,r){this[" "+Q]=r;return this},
remove:function(Q){Q=" "+Q;return Q in this&&delete this[Q]},
clear:function(){for(var Q in this)Q[0]===" "&&delete this[Q]},
keys:function(){var Q=[],r;for(r in this)r[0]===" "&&Q.push(r.slice(1));return Q},
values:function(){var Q=[],r;for(r in this)r[0]===" "&&Q.push(this[r]);return Q},
entries:function(){var Q=[],r;for(r in this)r[0]===" "&&Q.push({key:r.slice(1),value:this[r]});return Q},
size:function(){var Q=0,r;for(r in this)r[0]===" "&&++Q;return Q},
empty:function(){for(var Q in this)if(Q[0]===" ")return!1;return!0},
each:function(Q){for(var r in this)r[0]===" "&&Q(this[r],r.slice(1),this)}};
var co=ab1.prototype;sME.prototype=function(Q,r){var HZ=new sME;if(Q instanceof sME)Q.each(function(ui){HZ.add(ui)});
else if(Q){var Zw=-1,mE=Q.length;if(r==null)for(;++Zw<mE;)HZ.add(Q[Zw]);else for(;++Zw<mE;)HZ.add(r(Q[Zw],Zw,Q))}return HZ}.prototype={constructor:sME,
has:co.has,add:function(Q){this[" "+Q]=Q;return this},
remove:co.remove,clear:co.clear,values:co.keys,size:co.size,empty:co.empty,each:co.each};var iw1={},Q_w={},GHr=Hwd(",").parse,fMq=Hwd("\t").parse;CZd(GHr);CZd(fMq);var D2=function(Q,r,HZ){r=new dUu(r==null?Seq:r,HZ==null?sii:HZ,NaN,NaN,NaN,NaN);return Q==null?r:r.addAll(Q)}.prototype=dUu.prototype;
D2.copy=function(){var Q=new dUu(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root,HZ,Zw;if(!r)return Q;if(!r.length)return Q._root=s_M(r),Q;for(HZ=[{source:r,target:Q._root=Array(4)}];r=HZ.pop();)for(var mE=0;mE<4;++mE)if(Zw=r.source[mE])Zw.length?HZ.push({source:Zw,target:r.target[mE]=Array(4)}):r.target[mE]=s_M(Zw);return Q};
D2.add=function(Q){var r=+this._x.call(null,Q),HZ=+this._y.call(null,Q);return SA1(this.cover(r,HZ),r,HZ,Q)};
D2.addAll=function(Q){var r,HZ,Zw=Q.length,mE,ui,Q7=Array(Zw),S7=Array(Zw),H7=Infinity,sn=Infinity,W7=-Infinity,Un=-Infinity;for(HZ=0;HZ<Zw;++HZ)isNaN(mE=+this._x.call(null,r=Q[HZ]))||isNaN(ui=+this._y.call(null,r))||(Q7[HZ]=mE,S7[HZ]=ui,mE<H7&&(H7=mE),mE>W7&&(W7=mE),ui<sn&&(sn=ui),ui>Un&&(Un=ui));W7<H7&&(H7=this._x0,W7=this._x1);Un<sn&&(sn=this._y0,Un=this._y1);this.cover(H7,sn).cover(W7,Un);for(HZ=0;HZ<Zw;++HZ)SA1(this,Q7[HZ],S7[HZ],Q[HZ]);return this};
D2.cover=function(Q,r){if(isNaN(Q=+Q)||isNaN(r=+r))return this;var HZ=this._x0,Zw=this._y0,mE=this._x1,ui=this._y1;if(isNaN(HZ))mE=(HZ=Math.floor(Q))+1,ui=(Zw=Math.floor(r))+1;else if(HZ>Q||Q>mE||Zw>r||r>ui){var Q7=mE-HZ,S7=this._root,H7;switch(H7=(r<(Zw+ui)/2)<<1|Q<(HZ+mE)/2){case 0:do{var sn=Array(4);sn[H7]=S7;S7=sn}while(Q7*=2,mE=HZ+Q7,ui=Zw+Q7,Q>mE||r>ui);break;case 1:do sn=Array(4),sn[H7]=S7,S7=sn;while(Q7*=2,HZ=mE-Q7,ui=Zw+Q7,HZ>Q||r>ui);break;case 2:do sn=Array(4),sn[H7]=S7,S7=sn;while(Q7*=
2,mE=HZ+Q7,Zw=ui-Q7,Q>mE||Zw>r);break;case 3:do sn=Array(4),sn[H7]=S7,S7=sn;while(Q7*=2,HZ=mE-Q7,Zw=ui-Q7,HZ>Q||Zw>r)}this._root&&this._root.length&&(this._root=S7)}else return this;this._x0=HZ;this._y0=Zw;this._x1=mE;this._y1=ui;return this};
D2.data=function(){var Q=[];this.visit(function(r){if(!r.length){do Q.push(r.data);while(r=r.next)}});
return Q};
D2.extent=function(Q){return arguments.length?this.cover(+Q[0][0],+Q[0][1]).cover(+Q[1][0],+Q[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
D2.find=function(Q,r,HZ){var Zw=this._x0,mE=this._y0,ui,Q7,S7,H7,sn=this._x1,W7=this._y1,Un=[],v3=this._root,uB;v3&&Un.push(new BY(v3,Zw,mE,sn,W7));HZ==null?HZ=Infinity:(Zw=Q-HZ,mE=r-HZ,sn=Q+HZ,W7=r+HZ,HZ*=HZ);for(;uB=Un.pop();)if(!(!(v3=uB.node)||(ui=uB.x0)>sn||(Q7=uB.y0)>W7||(S7=uB.x1)<Zw||(H7=uB.y1)<mE))if(v3.length){uB=(ui+S7)/2;var tY=(Q7+H7)/2;Un.push(new BY(v3[3],uB,tY,S7,H7),new BY(v3[2],ui,tY,uB,H7),new BY(v3[1],uB,Q7,S7,tY),new BY(v3[0],ui,Q7,uB,tY));if(v3=(r>=tY)<<1|Q>=uB)uB=Un[Un.length-
1],Un[Un.length-1]=Un[Un.length-1-v3],Un[Un.length-1-v3]=uB}else if(uB=Q-+this._x.call(null,v3.data),tY=r-+this._y.call(null,v3.data),uB=uB*uB+tY*tY,uB<HZ){var ve=Math.sqrt(HZ=uB);Zw=Q-ve;mE=r-ve;sn=Q+ve;W7=r+ve;ve=v3.data}return ve};
D2.remove=function(Q){if(isNaN(H7=+this._x.call(null,Q))||isNaN(sn=+this._y.call(null,Q)))return this;var r,HZ=this._root,Zw,mE=this._x0,ui=this._y0,Q7=this._x1,S7=this._y1,H7,sn,W7,Un,v3,uB,tY;if(!HZ)return this;if(HZ.length)for(;;){(v3=H7>=(W7=(mE+Q7)/2))?mE=W7:Q7=W7;(uB=sn>=(Un=(ui+S7)/2))?ui=Un:S7=Un;if(!(r=HZ,HZ=HZ[tY=uB<<1|v3]))return this;if(!HZ.length)break;if(r[tY+1&3]||r[tY+2&3]||r[tY+3&3]){var ve=r;var Cm=tY}}for(;HZ.data!==Q;)if(!(Zw=HZ,HZ=HZ.next))return this;(Q=HZ.next)&&delete HZ.next;
if(Zw)return Q?Zw.next=Q:delete Zw.next,this;if(!r)return this._root=Q,this;Q?r[tY]=Q:delete r[tY];(HZ=r[0]||r[1]||r[2]||r[3])&&HZ===(r[3]||r[2]||r[1]||r[0])&&!HZ.length&&(ve?ve[Cm]=HZ:this._root=HZ);return this};
D2.removeAll=function(Q){for(var r=0,HZ=Q.length;r<HZ;++r)this.remove(Q[r]);return this};
D2.root=function(){return this._root};
D2.size=function(){var Q=0;this.visit(function(r){if(!r.length){do++Q;while(r=r.next)}});
return Q};
D2.visit=function(Q){var r=[],HZ,Zw=this._root,mE,ui,Q7,S7,H7;for(Zw&&r.push(new BY(Zw,this._x0,this._y0,this._x1,this._y1));HZ=r.pop();)if(!Q(Zw=HZ.node,ui=HZ.x0,Q7=HZ.y0,S7=HZ.x1,H7=HZ.y1)&&Zw.length){HZ=(ui+S7)/2;var sn=(Q7+H7)/2;(mE=Zw[3])&&r.push(new BY(mE,HZ,sn,S7,H7));(mE=Zw[2])&&r.push(new BY(mE,ui,sn,HZ,H7));(mE=Zw[1])&&r.push(new BY(mE,HZ,Q7,S7,sn));(mE=Zw[0])&&r.push(new BY(mE,ui,Q7,HZ,sn))}};
D2.visitAfter=function(Q){var r=[],HZ=[],Zw;for(this._root&&r.push(new BY(this._root,this._x0,this._y0,this._x1,this._y1));Zw=r.pop();){var mE=Zw.node;if(mE.length){var ui,Q7=Zw.x0,S7=Zw.y0,H7=Zw.x1,sn=Zw.y1,W7=(Q7+H7)/2,Un=(S7+sn)/2;(ui=mE[0])&&r.push(new BY(ui,Q7,S7,W7,Un));(ui=mE[1])&&r.push(new BY(ui,W7,S7,H7,Un));(ui=mE[2])&&r.push(new BY(ui,Q7,Un,W7,sn));(ui=mE[3])&&r.push(new BY(ui,W7,Un,H7,sn))}HZ.push(Zw)}for(;Zw=HZ.pop();)Q(Zw.node,Zw.x0,Zw.y0,Zw.x1,Zw.y1);return this};
D2.x=function(Q){return arguments.length?(this._x=Q,this):this._x};
D2.y=function(Q){return arguments.length?(this._y=Q,this):this._y};
var J$o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;PZW.prototype=$Up.prototype;$Up.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 JZU,FL7={"%":function(Q,r){return(Q*100).toFixed(r)},
b:function(Q){return Math.round(Q).toString(2)},
c:function(Q){return Q+""},
d:function(Q){return Math.round(Q).toString(10)},
e:function(Q,r){return Q.toExponential(r)},
f:function(Q,r){return Q.toFixed(r)},
g:function(Q,r){return Q.toPrecision(r)},
o:function(Q){return Math.round(Q).toString(8)},
p:function(Q,r){return j_7(Q*100,r)},
r:j_7,s:function(Q,r){var HZ=jMW(Q,r);if(!HZ)return Q+"";var Zw=HZ[0];HZ=HZ[1];HZ=HZ-(JZU=Math.max(-8,Math.min(8,Math.floor(HZ/3)))*3)+1;var mE=Zw.length;return HZ===mE?Zw:HZ>mE?Zw+Array(HZ-mE+1).join("0"):HZ>0?Zw.slice(0,HZ)+"."+Zw.slice(HZ):"0."+Array(1-HZ).join("0")+jMW(Q,Math.max(0,r+HZ-1))[0]},
X:function(Q){return Math.round(Q).toString(16).toUpperCase()},
x:function(Q){return Math.round(Q).toString(16)}},AZ7="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),v4p;
(function(Q){return v4p=FNp(Q)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});l7.prototype={constructor:l7,reset:function(){this.s=this.t=0},
add:function(Q){Zwd(Ycw,Q,this.t);Zwd(this,Ycw.s,this.s);this.s?this.t+=Ycw.t:this.s=Ycw.t},
valueOf:function(){return this.s}};
var Ycw=new l7,Km=Math.PI,rR=Km/2,hcd=Km/4,lMo=Km*2,IME=Km/180,C4=Math.abs,aMZ=Math.atan,Tc_=Math.atan2,Bf=Math.cos,ff=Math.sin,AOp=Math.sqrt;new l7;new l7;new l7;var xU7=new l7;(function(Q,r,HZ,Zw){return function(mE){function ui(UF,bd){Q(UF,bd)&&mE.point(UF,bd)}
function Q7(UF,bd){v3.point(UF,bd)}
function S7(){xi.point=Q7;v3.lineStart()}
function H7(){xi.point=ui;v3.lineEnd()}
function sn(UF,bd){WF.push([UF,bd]);tY.point(UF,bd)}
function W7(){tY.lineStart();WF=[]}
function Un(){sn(WF[0][0],WF[0][1]);tY.lineEnd();var UF=tY.clean(),bd=uB.result(),a2=bd.length,MK;WF.pop();Cm.push(WF);WF=null;if(a2)if(UF&1){if(a2=bd[0],(bd=a2.length-1)>0){ve||(mE.polygonStart(),ve=!0);mE.lineStart();for(UF=0;UF<bd;++UF)mE.point((MK=a2[UF])[0],MK[1]);mE.lineEnd()}}else a2>1&&UF&2&&bd.push(bd.pop().concat(bd.shift())),g6.push(bd.filter(zli))}
var v3=r(mE),uB=c$r(),tY=r(uB),ve=!1,Cm,g6,WF,xi={point:ui,lineStart:S7,lineEnd:H7,polygonStart:function(){xi.point=sn;xi.lineStart=W7;xi.lineEnd=Un;g6=[];Cm=[]},
polygonEnd:function(){xi.point=ui;xi.lineStart=S7;xi.lineEnd=H7;var UF=g6,bd=UF.length;var a2=-1;for(var MK=0,t9,eh;++a2<bd;)MK+=UF[a2].length;for(t9=Array(MK);--bd>=0;)for(eh=UF[bd],a2=eh.length;--a2>=0;)t9[--MK]=eh[a2];g6=t9;UF=Cm;bd=Zw[0];MK=Zw[1];var Z4=ff(MK);a2=[ff(bd),-Bf(bd),0];eh=t9=0;xU7.reset();Z4===1?MK=rR+1E-6:Z4===-1&&(MK=-rR-1E-6);Z4=0;for(var O_=UF.length;Z4<O_;++Z4)if(DV=(DY=UF[Z4]).length){var DY,DV,Sa=DY[DV-1],T9=Sa[0],FO=Sa[1]/2+hcd,z0D=ff(FO),n4P=Bf(FO);for(FO=0;FO<DV;++FO,T9=
H4U,z0D=rZd,n4P=H6,Sa=Mkp){var Mkp=DY[FO],H4U=Mkp[0];H6=Mkp[1]/2+hcd;var rZd=ff(H6),H6=Bf(H6),o1=H4U-T9,i4Z=o1>=0?1:-1,CQ0=i4Z*o1,qcZ=CQ0>Km;z0D*=rZd;xU7.add(Tc_(z0D*i4Z*ff(CQ0),n4P*H6+z0D*Bf(CQ0)));t9+=qcZ?o1+i4Z*lMo:o1;qcZ^T9>=bd^H4U>=bd&&(Sa=YA1(cZ1(Sa),cZ1(Mkp)),zcW(Sa),T9=YA1(a2,Sa),zcW(T9),T9=(qcZ^o1>=0?-1:1)*w97(T9[2]),MK>T9||MK===T9&&(Sa[0]||Sa[1]))&&(eh+=qcZ^o1>=0?1:-1)}}UF=(t9<-1E-6||t9<1E-6&&xU7<-1E-6)^eh&1;g6.length?(ve||(mE.polygonStart(),ve=!0),Ye9(g6,M8_,UF,HZ,mE)):UF&&(ve||(mE.polygonStart(),
ve=!0),mE.lineStart(),HZ(null,null,1,mE),mE.lineEnd());ve&&(mE.polygonEnd(),ve=!1);g6=Cm=null},
sphere:function(){mE.polygonStart();mE.lineStart();HZ(null,null,1,mE);mE.lineEnd();mE.polygonEnd()}};
return xi}})(function(){return!0},function(Q){var r=NaN,HZ=NaN,Zw=NaN,mE;
return{lineStart:function(){Q.lineStart();mE=1},
point:function(ui,Q7){var S7=ui>0?Km:-Km,H7=C4(ui-r);if(C4(H7-Km)<1E-6)Q.point(r,HZ=(HZ+Q7)/2>0?rR:-rR),Q.point(Zw,HZ),Q.lineEnd(),Q.lineStart(),Q.point(S7,HZ),Q.point(ui,HZ),mE=0;else if(Zw!==S7&&H7>=Km){C4(r-Zw)<1E-6&&(r-=Zw*1E-6);C4(ui-S7)<1E-6&&(ui-=S7*1E-6);H7=r;var sn=HZ,W7=ui,Un,v3,uB=ff(H7-W7);HZ=C4(uB)>1E-6?aMZ((ff(sn)*(v3=Bf(Q7))*ff(W7)-ff(Q7)*(Un=Bf(sn))*ff(H7))/(Un*v3*uB)):(sn+Q7)/2;Q.point(Zw,HZ);Q.lineEnd();Q.lineStart();Q.point(S7,HZ);mE=0}Q.point(r=ui,HZ=Q7);Zw=S7},
lineEnd:function(){Q.lineEnd();r=HZ=NaN},
clean:function(){return 2-mE}}},function(Q,r,HZ,Zw){Q==null?(HZ*=rR,Zw.point(-Km,HZ),Zw.point(0,HZ),Zw.point(Km,HZ),Zw.point(Km,0),Zw.point(Km,-HZ),Zw.point(0,-HZ),Zw.point(-Km,-HZ),Zw.point(-Km,0),Zw.point(-Km,HZ)):C4(Q[0]-r[0])>1E-6?(Q=Q[0]<r[0]?Km:-Km,HZ=HZ*Q/2,Zw.point(-Q,HZ),Zw.point(0,HZ),Zw.point(Q,HZ)):Zw.point(r[0],r[1])},[-Km,
-rR]);new l7;new l7;new l7;new l7;pSE.prototype={constructor:pSE,point:function(Q,r){this.stream.point(Q,r)},
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()}};
Bf(30*IME);(function(Q){return function(r){var HZ=new pSE,Zw;for(Zw in Q)HZ[Zw]=Q[Zw];HZ.stream=r;return HZ}})({point:function(Q,r){this.stream.point(Q*IME,r*IME)}});
qAP(function(Q){return AOp(2/(1+Q))}).invert=t3(function(Q){return 2*w97(Q/2)});
qAP(function(Q){return(Q=Q>1?0:Q<-1?Km:Math.acos(Q))&&Q/ff(Q)}).invert=t3(function(Q){return Q});
AOp(3);t3(aMZ);t3(w97);t3(function(Q){return 2*aMZ(Q)});
L2.prototype=mUn.prototype={constructor:L2,count:function(){return this.eachAfter(qe9)},
each:function(Q){var r,HZ=[this],Zw;do{var mE=HZ.reverse();for(HZ=[];r=mE.pop();)if(Q(r),r=r.children){var ui=0;for(Zw=r.length;ui<Zw;++ui)HZ.push(r[ui])}}while(HZ.length);return this},
eachAfter:function(Q){for(var r,HZ=[this],Zw=[],mE,ui;r=HZ.pop();)if(Zw.push(r),r=r.children)for(mE=0,ui=r.length;mE<ui;++mE)HZ.push(r[mE]);for(;r=Zw.pop();)Q(r);return this},
eachBefore:function(Q){for(var r,HZ=[this],Zw;r=HZ.pop();)if(Q(r),r=r.children)for(Zw=r.length-1;Zw>=0;--Zw)HZ.push(r[Zw]);return this},
sum:function(Q){return this.eachAfter(function(r){for(var HZ=+Q(r.data)||0,Zw=r.children,mE=Zw&&Zw.length;--mE>=0;)HZ+=Zw[mE].value;r.value=HZ})},
sort:function(Q){return this.eachBefore(function(r){r.children&&r.children.sort(Q)})},
path:function(Q){var r=this;var HZ=r;var Zw=Q;if(HZ!==Zw){var mE=HZ.ancestors(),ui=Zw.ancestors(),Q7=null;HZ=mE.pop();for(Zw=ui.pop();HZ===Zw;)Q7=HZ,HZ=mE.pop(),Zw=ui.pop();HZ=Q7}for(Zw=[r];r!==HZ;)r=r.parent,Zw.push(r);for(r=Zw.length;Q!==HZ;)Zw.splice(r,0,Q),Q=Q.parent;return Zw},
ancestors:function(){for(var Q=this,r=[Q];Q=Q.parent;)r.push(Q);return r},
links:function(){var Q=this,r=[];Q.each(function(HZ){HZ!==Q&&r.push({source:HZ.parent,target:HZ})});
return r},
copy:function(){return mUn(this).eachBefore(WNo)}};
(function(Q,r){this._=Q;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=r}).prototype=Object.create(L2.prototype);
var kHu=new Date,hc6=new Date,Bc1=To(function(){},function(Q,r){Q.setTime(+Q+r)},function(Q,r){return r-Q});
Bc1.every=function(Q){Q=Math.floor(Q);return isFinite(Q)&&Q>0?Q>1?To(function(r){r.setTime(Math.floor(r/Q)*Q)},function(r,HZ){r.setTime(+r+HZ*Q)},function(r,HZ){return(HZ-r)/Q}):Bc1:null};
To(function(Q){Q.setTime(Math.floor(Q/1E3)*1E3)},function(Q,r){Q.setTime(+Q+r*1E3)},function(Q,r){return(r-Q)/1E3},function(Q){return Q.getUTCSeconds()});
To(function(Q){Q.setTime(Math.floor(Q/6E4)*6E4)},function(Q,r){Q.setTime(+Q+r*6E4)},function(Q,r){return(r-Q)/6E4},function(Q){return Q.getMinutes()});
To(function(Q){var r=Q.getTimezoneOffset()*6E4%36E5;r<0&&(r+=36E5);Q.setTime(Math.floor((+Q-r)/36E5)*36E5+r)},function(Q,r){Q.setTime(+Q+r*36E5)},function(Q,r){return(r-Q)/36E5},function(Q){return Q.getHours()});
var NcW=To(function(Q){Q.setHours(0,0,0,0)},function(Q,r){Q.setDate(Q.getDate()+r)},function(Q,r){return(r-Q-(r.getTimezoneOffset()-Q.getTimezoneOffset())*6E4)/864E5},function(Q){return Q.getDate()-1}),WLi=Fz(0),rZW=Fz(1);
Fz(2);Fz(3);var Bcw=Fz(4);Fz(5);Fz(6);To(function(Q){Q.setDate(1);Q.setHours(0,0,0,0)},function(Q,r){Q.setMonth(Q.getMonth()+r)},function(Q,r){return r.getMonth()-Q.getMonth()+(r.getFullYear()-Q.getFullYear())*12},function(Q){return Q.getMonth()});
var fb=To(function(Q){Q.setMonth(0,1);Q.setHours(0,0,0,0)},function(Q,r){Q.setFullYear(Q.getFullYear()+r)},function(Q,r){return r.getFullYear()-Q.getFullYear()},function(Q){return Q.getFullYear()});
fb.every=function(Q){return isFinite(Q=Math.floor(Q))&&Q>0?To(function(r){r.setFullYear(Math.floor(r.getFullYear()/Q)*Q);r.setMonth(0,1);r.setHours(0,0,0,0)},function(r,HZ){r.setFullYear(r.getFullYear()+HZ*Q)}):null};
To(function(Q){Q.setUTCSeconds(0,0)},function(Q,r){Q.setTime(+Q+r*6E4)},function(Q,r){return(r-Q)/6E4},function(Q){return Q.getUTCMinutes()});
To(function(Q){Q.setUTCMinutes(0,0,0)},function(Q,r){Q.setTime(+Q+r*36E5)},function(Q,r){return(r-Q)/36E5},function(Q){return Q.getUTCHours()});
var yZd=To(function(Q){Q.setUTCHours(0,0,0,0)},function(Q,r){Q.setUTCDate(Q.getUTCDate()+r)},function(Q,r){return(r-Q)/864E5},function(Q){return Q.getUTCDate()-1}),yZR=ZU(0),n4U=ZU(1);
ZU(2);ZU(3);var DUV=ZU(4);ZU(5);ZU(6);To(function(Q){Q.setUTCDate(1);Q.setUTCHours(0,0,0,0)},function(Q,r){Q.setUTCMonth(Q.getUTCMonth()+r)},function(Q,r){return r.getUTCMonth()-Q.getUTCMonth()+(r.getUTCFullYear()-Q.getUTCFullYear())*12},function(Q){return Q.getUTCMonth()});
var vs=To(function(Q){Q.setUTCMonth(0,1);Q.setUTCHours(0,0,0,0)},function(Q,r){Q.setUTCFullYear(Q.getUTCFullYear()+r)},function(Q,r){return r.getUTCFullYear()-Q.getUTCFullYear()},function(Q){return Q.getUTCFullYear()});
vs.every=function(Q){return isFinite(Q=Math.floor(Q))&&Q>0?To(function(r){r.setUTCFullYear(Math.floor(r.getUTCFullYear()/Q)*Q);r.setUTCMonth(0,1);r.setUTCHours(0,0,0,0)},function(r,HZ){r.setUTCFullYear(r.getUTCFullYear()+HZ*Q)}):null};
var WLU={"-":"",_:" ",0:"0"},yf=/^\s*\d+/,mU_=/^%/,Tc9=/[\\^$*+?|[\]().{}]/g,TTu;(function(Q){TTu=NQ9(Q);niP=TTu.utcFormat;rBU=TTu.utcParse;return TTu})({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||niP("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||rBU("%Y-%m-%dT%H:%M:%S.%LZ");MH("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
MH("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");MH("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");MH("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");MH("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");MH("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");MH("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
MH("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");MH("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");MH("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");MH("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");MH("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var VxK=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(MH);Kp(VxK);var o4j=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(MH);Kp(o4j);var Owi=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(MH);Kp(Owi);var XSR=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(MH);
Kp(XSR);var Q_q=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(MH);Kp(Q_q);var dUi=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(MH);Kp(dUi);var PZR=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(MH);Kp(PZR);var $Ui=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(MH);Kp($Ui);var pSj=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(MH);Kp(pSj);var kHi=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(MH);Kp(kHi);var hcK=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(MH);Kp(hcK);var n4r=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(MH);Kp(n4r);var rZR=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(MH);Kp(rZR);var Bcq=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(MH);Kp(Bcq);var DU9=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(MH);Kp(DU9);var KL3=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(MH);Kp(KL3);var txO=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(MH);Kp(txO);var LLt=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(MH);Kp(LLt);var g4O=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(MH);Kp(g4O);var UUK=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(MH);Kp(UUK);var Rc9=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(MH);Kp(Rc9);var IMt=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(MH);Kp(IMt);var aMo=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(MH);Kp(aMo);var xUO=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(MH);Kp(xUO);var H4r=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(MH);Kp(H4r);var i4o=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(MH);Kp(i4o);var CQO=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(MH);Kp(CQO);UU6(e7(300,.5,0),e7(-240,.5,1));UU6(e7(-100,.75,.35),e7(80,1.5,.8));UU6(e7(260,.75,.35),e7(80,1.5,.8));e7();Kr();ZVV(MH("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
ZVV(MH("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
ZVV(MH("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
ZVV(MH("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
o41.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(Q,r){Q=+Q;r=+r;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(Q,r):this._context.moveTo(Q,r);break;case 1:this._point=2;default:this._context.lineTo(Q,r)}}};
(function(Q){function r(HZ){return new OwU(Q(HZ))}
r._curve=Q;return r})(function(Q){return new o41(Q)});
OwU.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(Q,r){this._curve.point(r*Math.sin(Q),r*-Math.cos(Q))}};
tx7.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:KLZ(this,this._t0,Q_1(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(Q,r){var HZ=NaN;Q=+Q;r=+r;if(Q!==this._x1||r!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(Q,r):this._context.moveTo(Q,r);break;case 1:this._point=2;break;case 2:this._point=3;KLZ(this,Q_1(this,HZ=XSd(this,Q,r)),HZ);break;default:KLZ(this,this._t0,HZ=XSd(this,Q,r))}this._x0=this._x1;this._x1=Q;this._y0=this._y1;this._y1=r;this._t0=HZ}}};
(function(Q){this._context=new dUU(Q)}.prototype=Object.create(tx7.prototype)).point=function(Q,r){tx7.prototype.point.call(this,r,Q)};
dUU.prototype={moveTo:function(Q,r){this._context.moveTo(r,Q)},
closePath:function(){this._context.closePath()},
lineTo:function(Q,r){this._context.lineTo(r,Q)},
bezierCurveTo:function(Q,r,HZ,Zw,mE,ui){this._context.bezierCurveTo(r,Q,Zw,HZ,ui,mE)}};
Id.prototype={constructor:Id,scale:function(Q){return Q===1?this:new Id(this.k*Q,this.x,this.y)},
translate:function(Q,r){return Q===0&r===0?this:new Id(this.k,this.x+this.k*Q,this.y+this.k*r)},
apply:function(Q){return[Q[0]*this.k+this.x,Q[1]*this.k+this.y]},
invert:function(Q){return[(Q[0]-this.x)/this.k,(Q[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new Id(1,0,0);C6Z=M9;nd.svg=nd.svg;nd.xhtml=nd.xhtml;nd.xlink=nd.xlink;nd.xml=nd.xml;nd.xmlns=nd.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 BwV="hammer_"+(Math.random()*1E6|0),Dpd=function(){var H=document||document;if(!H[BwV]){var C=function(){(function(S,w,A,J){function c(V7,kE,LU){return setTimeout(N(V7,LU),kE)}
function Y(V7,kE,LU){return Array.isArray(V7)?(M(V7,LU[kE],LU),!0):!1}
function M(V7,kE,LU){var Ni;if(V7)if(V7.forEach)V7.forEach(kE,LU);else if(V7.length!==J){var TK=0;for(Ni=V7.length;TK<Ni;TK++)kE.call(LU,V7[TK],TK,V7)}else for(TK in V7)V7.hasOwnProperty(TK)&&kE.call(LU,V7[TK],TK,V7)}
function m(V7,kE,LU){for(var Ni=Object.keys(kE),TK=0,XT=Ni.length;TK<XT;TK++)if(!LU||LU&&V7[Ni[TK]]===J)V7[Ni[TK]]=kE[Ni[TK]];return V7}
function W(V7,kE){return m(V7,kE,!0)}
function y(V7,kE,LU){kE=kE.prototype;var Ni=V7.prototype=Object.create(kE);Ni.constructor=V7;Ni._super=kE;LU&&m(Ni,LU)}
function N(V7,kE){return function(){return V7.apply(kE,arguments)}}
function b(V7,kE){return typeof V7=="function"?V7.apply(kE?kE[0]||J:J,kE):V7}
function u(V7,kE,LU){M(d(kE),function(Ni){V7.addEventListener(Ni,LU,!1)})}
function O(V7,kE,LU){M(d(kE),function(Ni){V7.removeEventListener(Ni,LU,!1)})}
function d(V7){return V7.trim().split(/\s+/g)}
function p(V7,kE,LU){if(V7.indexOf&&!LU)return V7.indexOf(kE);for(var Ni=0,TK=V7.length;Ni<TK;Ni++)if(LU&&V7[Ni][LU]==kE||!LU&&V7[Ni]===kE)return Ni;return-1}
function k(V7,kE,LU){for(var Ni=[],TK=[],XT=0,GK=V7.length;XT<GK;XT++){var uY=kE?V7[XT][kE]:V7[XT];p(TK,uY)<0&&Ni.push(V7[XT]);TK[XT]=uY}LU&&(Ni=kE?Ni.sort(function(e7,di){return e7[kE]>di[kE]}):Ni.sort());
return Ni}
function R(V7,kE){for(var LU,Ni=kE[0].toUpperCase()+kE.slice(1),TK=0,XT=YM.length;TK<XT;TK++)if(LU=(LU=YM[TK])?LU+Ni:kE,LU in V7)return LU;return J}
function L(V7,kE){var LU=this;this.manager=V7;this.callback=kE;this.element=V7.element;this.target=V7.options.inputTarget;this.domHandler=function(Ni){b(V7.options.enable,[V7])&&LU.handler(Ni)};
this.evEl&&u(this.element,this.evEl,this.domHandler);this.evTarget&&u(this.target,this.evTarget,this.domHandler);this.evWin&&u(S,this.evWin,this.domHandler)}
function t(V7){var kE;QX?kE=pU:P5?kE=O$:M9?kE=R0:kE=bi;return new kE(V7,g)}
function g(V7,kE,LU){var Ni=LU.pointers.length,TK=LU.changedPointers.length,XT=kE&1&&Ni-TK===0;LU.isFirst=!!XT;LU.isFinal=!!(kE&12&&Ni-TK===0);XT&&(V7.session={});LU.eventType=kE;kE=V7.session;Ni=LU.pointers;TK=Ni.length;kE.firstInput||(kE.firstInput=ii(LU));TK>1&&!kE.firstMultiple?kE.firstMultiple=ii(LU):TK===1&&(kE.firstMultiple=!1);XT=kE.firstInput;var GK=(TK=kE.firstMultiple)?TK.center:XT.center,uY=LU.center=FW(Ni);LU.timeStamp=Gd();LU.deltaTime=LU.timeStamp-XT.timeStamp;LU.angle=ND(GK,uY);LU.distance=
eZ(GK,uY);XT=LU.center;GK=kE.offsetDelta||{};uY=kE.prevDelta||{};var e7=kE.prevInput||{};if(LU.eventType===1||e7.eventType===4)uY=kE.prevDelta={x:e7.deltaX||0,y:e7.deltaY||0},GK=kE.offsetDelta={x:XT.x,y:XT.y};LU.deltaX=uY.x+(XT.x-GK.x);LU.deltaY=uY.y+(XT.y-GK.y);LU.offsetDirection=cZ(LU.deltaX,LU.deltaY);TK?(XT=TK.pointers,XT=eZ(Ni[0],Ni[1],Kr)/eZ(XT[0],XT[1],Kr)):XT=1;LU.scale=XT;TK?(TK=TK.pointers,Ni=ND(Ni[1],Ni[0],Kr)-ND(TK[1],TK[0],Kr)):Ni=0;LU.rotation=Ni;GK=kE.lastInterval||LU;Ni=LU.timeStamp-
GK.timeStamp;LU.eventType!=8&&(Ni>25||GK.velocity===J)?(XT=GK.deltaX-LU.deltaX,GK=GK.deltaY-LU.deltaY,uY=XT/Ni||0,e7=GK/Ni||0,Ni=uY,TK=e7,uY=lY(uY)>lY(e7)?uY:e7,XT=cZ(XT,GK),kE.lastInterval=LU):(uY=GK.velocity,Ni=GK.velocityX,TK=GK.velocityY,XT=GK.direction);LU.velocity=uY;LU.velocityX=Ni;LU.velocityY=TK;LU.direction=XT;kE=V7.element;a:{for(Ni=LU.srcEvent.target;Ni;){if(Ni==kE){Ni=!0;break a}Ni=Ni.parentNode}Ni=!1}Ni&&(kE=LU.srcEvent.target);LU.target=kE;V7.emit("hammer.input",LU);V7.recognize(LU);
V7.session.prevInput=LU}
function ii(V7){for(var kE=[],LU=0;LU<V7.pointers.length;LU++)kE[LU]={clientX:yO(V7.pointers[LU].clientX),clientY:yO(V7.pointers[LU].clientY)};return{timeStamp:Gd(),pointers:kE,center:FW(kE),deltaX:V7.deltaX,deltaY:V7.deltaY}}
function FW(V7){var kE=V7.length;if(kE===1)return{x:yO(V7[0].clientX),y:yO(V7[0].clientY)};for(var LU=0,Ni=0,TK=0;TK<kE;TK++)LU+=V7[TK].clientX,Ni+=V7[TK].clientY;return{x:yO(LU/kE),y:yO(Ni/kE)}}
function cZ(V7,kE){return V7===kE?1:lY(V7)>=lY(kE)?V7>0?2:4:kE>0?8:16}
function eZ(V7,kE,LU){LU||(LU=nP);var Ni=kE[LU[0]]-V7[LU[0]];V7=kE[LU[1]]-V7[LU[1]];return Math.sqrt(Ni*Ni+V7*V7)}
function ND(V7,kE,LU){LU||(LU=nP);return Math.atan2(kE[LU[1]]-V7[LU[1]],kE[LU[0]]-V7[LU[0]])*180/Math.PI}
function bi(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;L.apply(this,arguments)}
function pU(){this.evEl=yX;this.evWin=Mz;L.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function O$(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};L.apply(this,arguments)}
function R0(){L.apply(this,arguments);var V7=N(this.handler,this);this.touch=new O$(this.manager,V7);this.mouse=new bi(this.manager,V7)}
function m1(V7,kE){this.manager=V7;this.set(kE)}
function c7(V7){if(V7.indexOf("none")>-1)return"none";var kE=V7.indexOf("pan-x")>-1,LU=V7.indexOf("pan-y")>-1;return kE&&LU?"pan-x pan-y":kE||LU?kE?"pan-x":"pan-y":V7.indexOf("manipulation")>-1?"manipulation":"auto"}
function tV(V7){this.id=W3++;this.manager=null;this.options=W(V7||{},this.defaults);V7=this.options.enable;this.options.enable=V7===J?!0:V7;this.state=1;this.simultaneous={};this.requireFail=[]}
function Td(V7){return V7==16?"down":V7==8?"up":V7==2?"left":V7==4?"right":""}
function Mi(V7,kE){return(kE=kE.manager)?kE.get(V7):V7}
function fP(){tV.apply(this,arguments)}
function eo(){fP.apply(this,arguments);this.pY=this.pX=null}
function Cr(){fP.apply(this,arguments)}
function wu(){tV.apply(this,arguments);this._input=this._timer=null}
function xE(){fP.apply(this,arguments)}
function En(){fP.apply(this,arguments)}
function So(){tV.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function qi(V7,kE){kE=kE||{};var LU=kE.recognizers;kE.recognizers=LU===J?qi.defaults.preset:LU;return new H3(V7,kE)}
function H3(V7,kE){kE=kE||{};this.options=W(kE,qi.defaults);this.options.inputTarget=this.options.inputTarget||V7;this.handlers={};this.session={};this.recognizers=[];this.element=V7;this.input=t(this);this.touchAction=new m1(this,this.options.touchAction);I2(this,!0);M(kE.recognizers,function(LU){var Ni=this.add(new LU[0](LU[1]));LU[2]&&Ni.recognizeWith(LU[2]);LU[3]&&Ni.requireFailure(LU[2])},this)}
function I2(V7,kE){var LU=V7.element;M(V7.options.cssProps,function(Ni,TK){LU.style[R(LU.style,TK)]=kE?Ni:""})}
function RV(V7,kE){var LU=w.createEvent("Event");LU.initEvent(V7,!0,!0);LU.gesture=kE;kE.target.dispatchEvent(LU)}
var YM=" webkit moz MS ms o".split(" "),LP=w.createElement("div"),yO=Math.round,lY=Math.abs,Gd=Date.now,W3=1,sM=/mobile|tablet|ip(ad|hone|od)|android/i,M9="ontouchstart"in S,QX=R(S,"PointerEvent")!==J,P5=M9&&sM.test(navigator.userAgent),nP=["x","y"],Kr=["clientX","clientY"];L.prototype={handler:function(){},
destroy:function(){this.evEl&&O(this.element,this.evEl,this.domHandler);this.evTarget&&O(this.target,this.evTarget,this.domHandler);this.evWin&&O(S,this.evWin,this.domHandler)}};
var U_={mousedown:1,mousemove:2,mouseup:4};y(bi,L,{handler:function(V7){var kE=U_[V7.type];kE&1&&V7.button===0&&(this.pressed=!0);kE&2&&V7.which!==1&&(kE=4);this.pressed&&this.allow&&(kE&4&&(this.pressed=!1),this.callback(this.manager,kE,{pointers:[V7],changedPointers:[V7],pointerType:"mouse",srcEvent:V7}))}});
var Nr={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},ME={2:"touch",3:"pen",4:"mouse",5:"kinect"},yX="pointerdown",Mz="pointermove pointerup pointercancel";S.MSPointerEvent&&(yX="MSPointerDown",Mz="MSPointerMove MSPointerUp MSPointerCancel");y(pU,L,{handler:function(V7){var kE=this.store,LU=!1,Ni=V7.type.toLowerCase().replace("ms","");Ni=Nr[Ni];var TK=ME[V7.pointerType]||V7.pointerType;Ni&1&&(V7.button===0||TK=="touch")?kE.push(V7):Ni&12&&(LU=!0);var XT=p(kE,V7.pointerId,"pointerId");
XT<0||(kE[XT]=V7,this.callback(this.manager,Ni,{pointers:kE,changedPointers:[V7],pointerType:TK,srcEvent:V7}),LU&&kE.splice(XT,1))}});
var qE={touchstart:1,touchmove:2,touchend:4,touchcancel:8};y(O$,L,{handler:function(V7){var kE=qE[V7.type];var LU=Array.prototype.slice.call(V7.touches,0);var Ni=this.targetIds;if(kE&3&&LU.length===1)Ni[LU[0].identifier]=!0,Ni=[LU,LU];else{var TK,XT=Array.prototype.slice.call(V7.targetTouches,0),GK=Array.prototype.slice.call(V7.changedTouches,0),uY=[];if(kE===1)for(LU=0,TK=XT.length;LU<TK;LU++)Ni[XT[LU].identifier]=!0;LU=0;for(TK=GK.length;LU<TK;LU++)Ni[GK[LU].identifier]&&uY.push(GK[LU]),kE&12&&
delete Ni[GK[LU].identifier];Ni=uY.length?[k(XT.concat(uY),"identifier",!0),uY]:void 0}Ni&&this.callback(this.manager,kE,{pointers:Ni[0],changedPointers:Ni[1],pointerType:"touch",srcEvent:V7})}});
y(R0,L,{handler:function(V7,kE,LU){var Ni=LU.pointerType=="mouse";if(LU.pointerType=="touch")this.mouse.allow=!1;else if(Ni&&!this.mouse.allow)return;kE&12&&(this.mouse.allow=!0);this.callback(V7,kE,LU)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var NH=R(LP.style,"touchAction"),X6=NH!==J;m1.prototype={set:function(V7){V7=="compute"&&(V7=this.compute());X6&&(this.manager.element.style[NH]=V7);this.actions=V7.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var V7=[];M(this.manager.recognizers,function(kE){b(kE.options.enable,[kE])&&(V7=V7.concat(kE.getTouchAction()))});
return c7(V7.join(" "))},
preventDefaults:function(V7){if(!X6){var kE=V7.srcEvent;V7=V7.offsetDirection;if(this.manager.session.prevented)kE.preventDefault();else{var LU=this.actions,Ni=LU.indexOf("none")>-1,TK=LU.indexOf("pan-y")>-1;LU=LU.indexOf("pan-x")>-1;if(Ni||TK&&LU||TK&&V7&6||LU&&V7&24)return this.preventSrc(kE)}}},
preventSrc:function(V7){this.manager.session.prevented=!0;V7.preventDefault()}};
tV.prototype={defaults:{},set:function(V7){m(this.options,V7);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(V7){if(Y(V7,"recognizeWith",this))return this;var kE=this.simultaneous;V7=Mi(V7,this);kE[V7.id]||(kE[V7.id]=V7,V7.recognizeWith(this));return this},
dropRecognizeWith:function(V7){if(Y(V7,"dropRecognizeWith",this))return this;V7=Mi(V7,this);delete this.simultaneous[V7.id];return this},
requireFailure:function(V7){if(Y(V7,"requireFailure",this))return this;var kE=this.requireFail;V7=Mi(V7,this);p(kE,V7)===-1&&(kE.push(V7),V7.requireFailure(this));return this},
dropRequireFailure:function(V7){if(Y(V7,"dropRequireFailure",this))return this;V7=Mi(V7,this);V7=p(this.requireFail,V7);V7>-1&&this.requireFail.splice(V7,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(V7){return!!this.simultaneous[V7.id]},
emit:function(V7){function kE(TK){LU.manager.emit(LU.options.event+(TK?Ni&16?"cancel":Ni&8?"end":Ni&4?"move":Ni&2?"start":"":""),V7)}
var LU=this,Ni=this.state;Ni<8&&kE(!0);kE();Ni>=8&&kE(!0)},
tryEmit:function(V7){if(this.canEmit())return this.emit(V7);this.state=32},
canEmit:function(){for(var V7=0;V7<this.requireFail.length;V7++)if(!(this.requireFail[V7].state&33))return!1;return!0},
recognize:function(V7){V7=m({},V7);b(this.options.enable,[this,V7])?(this.state&56&&(this.state=1),this.state=this.process(V7),this.state&30&&this.tryEmit(V7)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
y(fP,tV,{defaults:{pointers:1},attrTest:function(V7){var kE=this.options.pointers;return kE===0||V7.pointers.length===kE},
process:function(V7){var kE=this.state,LU=V7.eventType,Ni=kE&6;V7=this.attrTest(V7);return Ni&&(LU&8||!V7)?kE|16:Ni||V7?LU&4?kE|8:kE&2?kE|4:2:32}});
y(eo,fP,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var V7=this.options.direction;if(V7===30)return["none"];var kE=[];V7&6&&kE.push("pan-y");V7&24&&kE.push("pan-x");return kE},
directionTest:function(V7){var kE=this.options,LU=!0,Ni=V7.distance,TK=V7.direction,XT=V7.deltaX,GK=V7.deltaY;TK&kE.direction||(kE.direction&6?(TK=XT===0?1:XT<0?2:4,LU=XT!=this.pX,Ni=Math.abs(V7.deltaX)):(TK=GK===0?1:GK<0?8:16,LU=GK!=this.pY,Ni=Math.abs(V7.deltaY)));V7.direction=TK;return LU&&Ni>kE.threshold&&TK&kE.direction},
attrTest:function(V7){return fP.prototype.attrTest.call(this,V7)&&(this.state&2||!(this.state&2)&&this.directionTest(V7))},
emit:function(V7){this.pX=V7.deltaX;this.pY=V7.deltaY;var kE=Td(V7.direction);kE&&this.manager.emit(this.options.event+kE,V7);this._super.emit.call(this,V7)}});
y(Cr,fP,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(V7){return this._super.attrTest.call(this,V7)&&(Math.abs(V7.scale-1)>this.options.threshold||this.state&2)},
emit:function(V7){this._super.emit.call(this,V7);V7.scale!==1&&this.manager.emit(this.options.event+(V7.scale<1?"in":"out"),V7)}});
y(wu,tV,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(V7){var kE=this.options,LU=V7.pointers.length===kE.pointers,Ni=V7.distance<kE.threshold,TK=V7.deltaTime>kE.time;this._input=V7;if(!Ni||!LU||V7.eventType&12&&!TK)this.reset();else if(V7.eventType&1)this.reset(),this._timer=c(function(){this.state=8;this.tryEmit()},kE.time,this);
else if(V7.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(V7){this.state===8&&(V7&&V7.eventType&4?this.manager.emit(this.options.event+"up",V7):(this._input.timeStamp=Gd(),this.manager.emit(this.options.event,this._input)))}});
y(xE,fP,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(V7){return this._super.attrTest.call(this,V7)&&(Math.abs(V7.rotation)>this.options.threshold||this.state&2)}});
y(En,fP,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return eo.prototype.getTouchAction.call(this)},
attrTest:function(V7){var kE=this.options.direction;if(kE&30)var LU=V7.velocity;else kE&6?LU=V7.velocityX:kE&24&&(LU=V7.velocityY);return this._super.attrTest.call(this,V7)&&kE&V7.direction&&lY(LU)>this.options.velocity&&V7.eventType&4},
emit:function(V7){var kE=Td(V7.direction);kE&&this.manager.emit(this.options.event+kE,V7);this.manager.emit(this.options.event,V7)}});
y(So,tV,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(V7){var kE=this.options,LU=V7.pointers.length===kE.pointers,Ni=V7.distance<kE.threshold,TK=V7.deltaTime<kE.time;this.reset();if(V7.eventType&1&&this.count===0)return this.failTimeout();if(Ni&&TK&&LU){if(V7.eventType!=4)return this.failTimeout();LU=this.pTime?V7.timeStamp-this.pTime<kE.interval:!0;Ni=!this.pCenter||eZ(this.pCenter,V7.center)<kE.posThreshold;this.pTime=V7.timeStamp;this.pCenter=V7.center;Ni&&LU?this.count+=1:this.count=1;this._input=V7;if(this.count%kE.taps===0)return this.hasRequireFailures()?
(this._timer=c(function(){this.state=8;this.tryEmit()},kE.interval,this),2):8}return 32},
failTimeout:function(){this._timer=c(function(){this.state=32},this.options.interval,this);
return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(){this.state==8&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});
qi.VERSION="2.0.2";qi.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[xE,{enable:!1}],[Cr,{enable:!1},["rotate"]],[En,{direction:6}],[eo,{direction:6},["swipe"]],[So],[So,{event:"doubletap",taps:2},["tap"]],[wu]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};H3.prototype={set:function(V7){m(this.options,V7);return this},
stop:function(V7){this.session.stopped=V7?2:1},
recognize:function(V7){var kE=this.session;if(!kE.stopped){this.touchAction.preventDefaults(V7);var LU=this.recognizers,Ni=kE.curRecognizer;if(!Ni||Ni&&Ni.state&8)Ni=kE.curRecognizer=null;for(var TK=0,XT=LU.length;TK<XT;TK++){var GK=LU[TK];kE.stopped===2||Ni&&GK!=Ni&&!GK.canRecognizeWith(Ni)?GK.reset():GK.recognize(V7);!Ni&&GK.state&14&&(Ni=kE.curRecognizer=GK)}}},
get:function(V7){if(V7 instanceof tV)return V7;for(var kE=this.recognizers,LU=0;LU<kE.length;LU++)if(kE[LU].options.event==V7)return kE[LU];return null},
add:function(V7){if(Y(V7,"add",this))return this;var kE=this.get(V7.options.event);kE&&this.remove(kE);this.recognizers.push(V7);V7.manager=this;this.touchAction.update();return V7},
remove:function(V7){if(Y(V7,"remove",this))return this;var kE=this.recognizers;V7=this.get(V7);kE.splice(p(kE,V7),1);this.touchAction.update();return this},
on:function(V7,kE){var LU=this.handlers;M(d(V7),function(Ni){LU[Ni]=LU[Ni]||[];LU[Ni].push(kE)});
return this},
off:function(V7,kE){var LU=this.handlers;M(d(V7),function(Ni){kE?LU[Ni].splice(p(LU[Ni],kE),1):delete LU[Ni]});
return this},
emit:function(V7,kE){this.options.domEvents&&RV(V7,kE);var LU=this.handlers[V7]&&this.handlers[V7].slice();if(LU&&LU.length){kE.type=V7;kE.preventDefault=function(){kE.srcEvent.preventDefault()};
V7=0;for(var Ni=LU.length;V7<Ni;V7++)LU[V7](kE)}},
destroy:function(){this.element&&I2(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
m(qi,{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:H3,Input:L,TouchAction:m1,Recognizer:tV,AttrRecognizer:fP,Tap:So,Pan:eo,Swipe:En,Pinch:Cr,Rotate:xE,Press:wu,on:u,off:O,each:M,merge:W,extend:m,inherit:y,bindFn:N,prefixed:R});
S[A]=qi})(window,document,"Hammer");
return window.Hammer}.call({});
C.DOCUMENT=H;H[BwV]=C}return H[BwV]};/*

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

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 MAW;_.zMM="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");MAW=function(){var H=[],C;var S=S||_.zMM.length;for(C=0;C<8;C++)H[C]=_.zMM[0|Math.random()*S];return H.join("")};var pC6=function(){return Math.random().toString(36).substring(7).split("").join(".")},$RV="@@redux/INIT"+pC6(),nc7="@@redux/REPLACE"+pC6();var rSW=typeof Symbol==="function"&&Symbol.observable||"@@observable";var qjd=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var T$d="top right bottom left width height size weight".split(" "),mNU=typeof MutationObserver!=="undefined",WRY=qjd&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,yh_=function(){this.mutationEventsAdded_=this.JSC$11769_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=BLZ(this.refresh.bind(this))},N$n=function(H,
C){var S=H.observers_;
C=S.indexOf(C);~C&&S.splice(C,1);!S.length&&H.JSC$11769_connected_&&qjd&&H.JSC$11769_connected_&&(document.removeEventListener("transitionend",H.onTransitionEnd_),window.removeEventListener("resize",H.refresh),H.mutationsObserver_&&(H.mutationsObserver_.disconnect(),WRY&&(HTMLElement.prototype.attachShadow=WRY)),H.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",H.refresh),H.mutationsObserver_=null,H.mutationEventsAdded_=!1,H.JSC$11769_connected_=!1)};
yh_.prototype.refresh=function(){bN7(this)&&this.refresh()};
var bN7=function(H){H=H.observers_.filter(function(C){return EQW(C),C.activeObservations_.length>0});
H.forEach(function(C){return eMU(C)});
return H.length>0},ueV=function(H){if(qjd&&!H.JSC$11769_connected_){document.addEventListener("transitionend",H.onTransitionEnd_);
window.addEventListener("resize",H.refresh);if(mNU){H.mutationsObserver_=new MutationObserver(H.refresh);var C={attributes:!0,childList:!0,characterData:!0,subtree:!0};H.mutationsObserver_.observe(document,C);WRY&&(function A(w){var J=w.shadowRoot;J&&(H.mutationsObserver_.observe(J,C),A(J));for(w=w.firstElementChild;w;)A(w),w=w.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var w=WRY.apply(this,_.tc.apply(0,arguments));
H.mutationsObserver_.observe(w,C);return w})}else document.addEventListener("DOMSubtreeModified",H.refresh),H.mutationEventsAdded_=!0;
H.JSC$11769_connected_=!0}};
yh_.prototype.onTransitionEnd_=function(H){var C=H.propertyName===void 0?"":H.propertyName;T$d.some(function(S){return!!~C.indexOf(S)})&&this.refresh()};
var G_U=null;var fB7=function(H,C){for(var S=_.Z(Object.keys(C)),w=S.next();!w.done;w=S.next())w=w.value,Object.defineProperty(H,w,{value:C[w],enumerable:!1,writable:!1,configurable:!0})};var HJ=function(H){var C;return(H==null?void 0:(C=H.ownerDocument)==null?void 0:C.defaultView)||globalThis};var vQV={x:0,y:0,width:0,height:0},lBU=typeof SVGGraphicsElement!=="undefined"?function(H){return H instanceof HJ(H).SVGGraphicsElement}:function(H){return H instanceof HJ(H).SVGElement&&typeof H.getBBox==="function"};var VA1=function(H){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=H};
VA1.prototype.isActive=function(){var H=this.target;if(qjd)if(lBU(H)){var C=H.getBBox();C={x:0,y:0,width:C.width,height:C.height}}else{var S=H.clientWidth,w=H.clientHeight;if(S||w){var A=HJ(H).getComputedStyle(H);C=fD(A["padding-top"]);var J=fD(A["padding-left"]),c=J+fD(A["padding-right"]),Y=C+fD(A["padding-bottom"]),M=fD(A.width),m=fD(A.height);A.boxSizing==="border-box"&&(Math.round(M+c)!==S&&(M-=DRZ(A,"left","right")+c),Math.round(m+Y)!==w&&(m-=DRZ(A,"top","bottom")+Y));H!==HJ(H).document.documentElement&&
(H=Math.round(M+c)-S,w=Math.round(m+Y)-w,Math.abs(H)!==1&&(M-=H),Math.abs(w)!==1&&(m-=w));C={x:J,y:C,width:M,height:m}}else C=vQV}else C=vQV;this.contentRect_=C;return C.width!==this.broadcastWidth||C.height!==this.broadcastHeight};var oQM=function(H,C){var S=C.x;var w=C.y;var A=C.width;C=C.height;var J=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);fB7(J,{x:S,y:w,width:A,height:C,top:w,right:S+A,bottom:C+w,left:S});fB7(this,{target:H,contentRect:J})};var ON7=function(H,C){var S=G_U;this.activeObservations_=[];this.observations_=new Map;if(typeof H!=="function")throw new TypeError("Ue");this.callback_=H;this.controller_=S;this.callbackCtx_=C};
ON7.prototype.observe=function(H){if(H===void 0)throw new TypeError("Ve");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(H instanceof HJ(H).Element))throw new TypeError("We");var C=this.observations_;C.has(H)||(C.set(H,new VA1(H)),H=this.controller_,~H.observers_.indexOf(this)||H.observers_.push(this),H.JSC$11769_connected_||ueV(H),this.controller_.refresh())}};
ON7.prototype.unobserve=function(H){if(H===void 0)throw new TypeError("Ve");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(H instanceof HJ(H).Element))throw new TypeError("We");var C=this.observations_;C.has(H)&&(C.delete(H),C.size||N$n(this.controller_,this))}};
ON7.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();N$n(this.controller_,this)};
var EQW=function(H){H.activeObservations_.splice(0);H.observations_.forEach(function(C){C.isActive()&&H.activeObservations_.push(C)})},eMU=function(H){if(H.activeObservations_.length>0){var C=H.callbackCtx_,S=H.activeObservations_.map(function(w){var A=w.target,J=w.contentRect_;
w.broadcastWidth=J.width;w.broadcastHeight=J.height;return new oQM(A,J)});
H.callback_.call(C,S,C);H.activeObservations_.splice(0)}};var Co=function(H){if(!(this instanceof Co))throw new TypeError("Xe");if(!arguments.length)throw new TypeError("Ve");G_U||(G_U=new yh_);this.observer_=new ON7(H,this)};
Co.prototype.observe=function(H){this.observer_.observe(H)};
Co.prototype.unobserve=function(H){this.observer_.unobserve(H)};
Co.prototype.disconnect=function(){this.observer_.disconnect()};var AQV=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:Co;var aNZ="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(" "),INE={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},RwD=null,KaE=null;var xRE={},HqW=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 AyZ={text:1},S26={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var XQY=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,QJn={CONSTANT:{isUnwrappable:function(H){return H instanceof KC},
unwrap:Wj7},JAVASCRIPT:{isUnwrappable:function(H){return H instanceof _.jn},
unwrap:z9W},HTML:{isUnwrappable:function(H){return H instanceof Ut},
unwrap:function(H){return xD(H)}},
RESOURCE_URL:{isUnwrappable:function(H){return H instanceof o2},
unwrap:_.Qv},STRING:{isUnwrappable:function(H){return H instanceof Object},
unwrap:function(H){return String(H)}},
STYLE:{isUnwrappable:function(H){return typeof H==="string"},
unwrap:function(H){return H}},
URL:{isUnwrappable:function(H){return p9(H)},
unwrap:_.kD}},dNd={CONSTANT:JyD,JAVASCRIPT:JyD,HTML:function(H){H=H instanceof Ut?H:R2(String(H).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return xD(H)},
RESOURCE_URL:JyD,STRING:String,STYLE:JyD,URL:function(H,C){H=XQY.test(H)?H:void 0;return H===void 0?C:H}};var yyi=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,FhD=/[\t\n\f\r ]+/,cyZ=/[\t\n\f\r ,]+/g,zLZ=function(H,C,S){return S},oe={},PKM=function(){var H=function(){var w={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",w):w}(),C=H.createHTML(""),S=H.createScript("");
H=H.createScriptURL("");return{INNOCUOUS_STRING:C,INNOCUOUS_SCRIPT:S,INNOCUOUS_URL:H}}(),V8=PKM.INNOCUOUS_STRING,WhZ=PKM.INNOCUOUS_SCRIPT,mLE=PKM.INNOCUOUS_URL;var $Nb=function(H){var C=Na6(H);return function(S,w,A,J){return J?C(J,w,A,S):V8}}({reportHandler:function(H,C){if(H)try{throw Error(C);
}catch(S){_.nC(S)}},
safeTypesBridge:function(H,C,S){var w=QJn[C];return w.isUnwrappable(H)&&(w=w.unwrap(H,S),w!==S)?w:(0,dNd[C])(String(H),S)},
allowedIdentifierPrefixes:[""]});if(ly!==void 0)throw Error("Ye");ly=$Nb;if(ly!==$Nb)throw Error("Ze");Ok("Injectable",[]);var LhU=Ok("Inject",[["token",void 0]]),ULE=Ok("Optional",[]);Ok("Injectable",[]);var RLU=Ok("Self",[]),IKE=Ok("SkipSelf",[]);Ok("Host",[]);var pQb={},k__=function(){};
k__.prototype.resolve=function(){throw Error("af");};
k__.prototype.addProvider=function(){throw Error("af");};var KhE=Function;var hMi=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,nQn=function(){this._reflect=window.Reflect};
_.F=nQn.prototype;_.F.factory=function(H){return function(){return new (Function.prototype.bind.apply(H,[null].concat(_.k$(_.tc.apply(0,arguments)))))}};
_.F._zipTypesAndAnnotations=function(H,C){var S=typeof H==="undefined"?Array(C.length):Array(H.length);for(var w=0;w<S.length;w++)S[w]=typeof H==="undefined"?[]:H[w]!=Object?[H[w]]:[],C&&EV6(C[w])&&(S[w]=S[w].concat(C[w]));return S};
_.F._ownParameters=function(H,C){if(hMi.exec(H.toString()))return null;if(H.parameters&&H.parameters!==C.parameters)return H.parameters;var S=H.ctorParameters;return S&&S!==C.ctorParameters?(C=typeof S==="function"?S():S,H=C.map(function(w){return w&&w.type}),C=C.map(function(w){return w&&usE(w.decorators)}),this._zipTypesAndAnnotations(H,C)):EV6(this._reflect)&&EV6(this._reflect.getOwnMetadata)&&(C=this._reflect.getOwnMetadata("parameters",H),(S=this._reflect.getOwnMetadata("design:paramtypes",H))||
C)?this._zipTypesAndAnnotations(S,C):Array(H.length).fill(void 0)};
_.F.parameters=function(H){if(!H.prototype)return[];var C=Object.getPrototypeOf(H.prototype).constructor;(H=this._ownParameters(H,C))||C===Object||(H=this.parameters(C));return H||[]};
_.F._ownAnnotations=function(H,C){if(H.annotations&&H.annotations!==C.annotations)return H=H.annotations,typeof H==="function"&&H.annotations&&(H=H.annotations),H;if(H.decorators&&H.decorators!==C.decorators)return usE(H.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",H)};
_.F.annotations=function(H){var C=Object.getPrototypeOf(H.prototype).constructor;H=this._ownAnnotations(H,C)||[];return(C!==Object?this.annotations(C):[]).concat(H)};
_.F._ownPropMetadata=function(H,C){if(H.propMetadata&&H.propMetadata!==C.propMetadata)return H=H.propMetadata,typeof H==="function"&&H.propMetadata&&(H=H.propMetadata),H;if(H.propDecorators&&H.propDecorators!==C.propDecorators){var S=H.propDecorators,w={};Object.keys(S).forEach(function(A){w[A]=usE(S[A])});
return w}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",H)};
_.F.propMetadata=function(H){var C=Object.getPrototypeOf(H.prototype).constructor,S={};if(C!==Object){var w=this.propMetadata(C);Object.keys(w).forEach(function(J){S[J]=w[J]})}var A=this._ownPropMetadata(H,C);
A&&Object.keys(A).forEach(function(J){var c=[];S.hasOwnProperty(J)&&c.push.apply(c,_.k$(S[J]));c.push.apply(c,_.k$(A[J]));S[J]=c});
return S};
_.F.getter=function(H){return function(C){return C[H]}};
_.F.setter=function(H){return function(C,S){return C[H]=S}};
_.F.method=function(H){return function(C,S){if(!C[H])throw Error("bf`"+H);return C[H].apply(C,S)}};var rhW=function(){};var B$Y=function(H){this.reflectionCapabilities=H};
_.G(B$Y,rhW);_.F=B$Y.prototype;_.F.factory=function(H){return this.reflectionCapabilities.factory(H)};
_.F.parameters=function(H){return this.reflectionCapabilities.parameters(H)};
_.F.annotations=function(H){return this.reflectionCapabilities.annotations(H)};
_.F.propMetadata=function(H){return this.reflectionCapabilities.propMetadata(H)};
_.F.getter=function(H){return this.reflectionCapabilities.getter(H)};
_.F.setter=function(H){return this.reflectionCapabilities.setter(H)};
_.F.method=function(H){return this.reflectionCapabilities.method(H)};var QBu=new B$Y(new nQn);var SB=function(H,C){this.token=H;this.id=C;if(H===void 0||H===null)throw Error("gf");};
_.JJ.Object.defineProperties(SB.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return Xj(this.token)}}});
_.JJ.Object.defineProperties(SB,{JSC$11811_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return dM.JSC$11815_numberOfKeys}}});
var DN1=function(){this._allKeys=new Map};
DN1.prototype.get=function(H){if(H instanceof SB)return H;if(this._allKeys.has(H))return this._allKeys.get(H);var C=new SB(H,SB.JSC$11811_numberOfKeys);this._allKeys.set(H,C);return C};
_.JJ.Object.defineProperties(DN1.prototype,{JSC$11815_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var dM=new DN1;var aKZ=function(H,C,S){this.key=H;this.optional=C;this.visibility=S},P0U=function(H){return new aKZ(H,!1,null)},pw0=[],nVu=function(H,C,S){this.key=H;
this.resolvedFactories=C;this.multiProvider=S},kaV=function(H,C,S,w){this.factory=H;
this.dependencies=C;this.providerClass=S;this.providerValue=w};var sy={},jB=function(H,C){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=C===void 0?null:C;H=_.Z(H);for(C=H.next();!C.done;C=H.next())this.addProvider(C.value)};
_.F=jB.prototype;_.F.addProvider=function(H){this.keyIdToIndex.set(H.key.id,this.keyIds.length);this.providers.push(H);this.keyIds.push(H.key.id);this.objs.push(sy)};
_.F.resolve=function(H,C){C=C===void 0?pQb:C;return this._getByKey(dM.get(Q8(H)),null,C)};
_.F._new=function(H){if(this.constructedKeyIds[H.key.id])throw oVE(this,H.key);this.constructedKeyIds[H.key.id]=!0;return this._instantiateProvider(H)};
_.F._instantiateProvider=function(H){if(H.multiProvider){for(var C=Array(H.resolvedFactories.length),S=0;S<H.resolvedFactories.length;++S)C[S]=this._instantiate(H,H.resolvedFactories[S]);return C}return this._instantiate(H,H.resolvedFactories[0])};
_.F._instantiate=function(H,C){var S=this,w=C.factory;try{var A=C.dependencies.map(function(c){return S._getByReflectiveDependency(c)})}catch(c){throw c.addKey&&c.addKey(this,H.key),c;
}try{var J=w.apply(null,_.k$(A))}catch(c){throw Oqi(this,c,H.key);}return J};
_.F._getByReflectiveDependency=function(H){return this._getByKey(H.key,H.visibility,H.optional?null:pQb)};
_.F._getByKey=function(H,C,S){return H===KRV?this:C instanceof RLU?this._getByKeySelf(H,S):this._getByKeyDefault(H,S,C)};
_.F._getObjByKeyId=function(H){for(var C=0;C<this.keyIds.length;C++)if(this.keyIds[C]===H)return this.objs[C]===sy&&(this.objs[C]=this._new(this.providers[C])),this.objs[C];return sy};
_.F._throwOrNull=function(H,C){if(C!==pQb)return C;throw VKu(this,H);};
_.F._getByKeySelf=function(H,C){var S=this._getObjByKeyId(H.id);return S!==sy?S:this._throwOrNull(H,C)};
_.F._getByKeyDefault=function(H,C,S){for(var w=S=S instanceof IKE?this.parent:this;S instanceof jB;){var A=S._getObjByKeyId(H.id);if(A!==sy)return A;S=S.parent}A=void 0;if(S!==null)try{var J=S.resolve(H.token,C);if(J!==sy)return J}catch(c){A=c}if(!(w instanceof jB&&H30(H.token))){if(A)throw A;return this._throwOrNull(H,C)}for(J=w;J.parent instanceof jB;)J=J.parent;J.addProvider(ry0({provide:H.token,useClass:H.token}));return J.resolve(H.token,C)};
_.F.toString=function(){return this.displayName};
_.JJ.Object.defineProperties(jB.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+xLU(this,function(H){return' "'+H.key.displayName+'" '}).join(", ")+"])"}}});
var KRV=dM.get(Q8(k__));(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 tAV=window.XRegExp;var LRM=-1,gQn=function(H){addEventListener("pageshow",function(C){C.persisted&&(LRM=C.timeStamp,H(C))},!0)};var RMd=function(H,C,S){var w=UNd,A,J;return function(c){if(C.value>=0&&(c||S)){var Y;if((J=C.value-((Y=A)!=null?Y:0))||A===void 0)A=C.value,C.delta=J,c=C.value,C.rating=c>w[1]?"poor":c>w[0]?"needs-improvement":"good",H(C)}}};var IBi=function(H){requestAnimationFrame(function(){return requestAnimationFrame(function(){return H()})})};var aB1=function(){var H=performance.getEntriesByType("navigation")[0];if(H&&H.responseStart>0&&H.responseStart<performance.now())return H};var xNP=function(){var H,C;return(C=(H=aB1())==null?void 0:H.activationStart)!=null?C:0};var wZ=-1,HdY=new Set,idP=function(H){if(document.visibilityState==="hidden"){if(H.type==="visibilitychange")for(var C=_.Z(HdY),S=C.next();!S.done;S=C.next())S=S.value,S();isFinite(wZ)||(wZ=H.type==="visibilitychange"?H.timeStamp:0,removeEventListener("prerenderingchange",idP,!0))}},Cz7=function(){if(wZ<0){var H=xNP(),C,S;
wZ=(S=document.prerendering?void 0:(C=globalThis.performance.getEntriesByType("visibility-state").filter(function(w){return w.name==="hidden"&&w.startTime>H})[0])==null?void 0:C.startTime)!=null?S:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
addEventListener("visibilitychange",idP,!0);addEventListener("prerenderingchange",idP,!0);gQn(function(){setTimeout(function(){wZ=document.visibilityState!=="hidden"||document.prerendering?Infinity:0})})}return{get firstHiddenTime(){return wZ},
onHidden:function(w){HdY.add(w)}}};var S67=function(){var H=H===void 0?-1:H;var C=aB1(),S="navigate";LRM>=0?S="back-forward-cache":C&&(document.prerendering||xNP()>0?S="prerender":document.wasDiscarded?S="restore":C.type&&(S=C.type.replace(/_/g,"-")));return{name:"LCP",value:H,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:S}};var CMi=new WeakMap;var sh7=function(H){var C=C===void 0?{}:C;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var S=new PerformanceObserver(function(w){Promise.resolve().then(function(){H(w.getEntries())})});
S.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},C));return S}}catch(w){}};var jhW=function(H){var C=!1;return function(){C||(H(),C=!0)}};var wfM=function(H){document.prerendering?addEventListener("prerenderingchange",function(){return H()},!0):H()};var ANV=function(H){var C=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?H():(H=jhW(H),addEventListener("visibilitychange",H,{once:!0,capture:!0}),C(function(){H();removeEventListener("visibilitychange",H,{capture:!0})}))};var i3Z=function(){};
i3Z.prototype._processEntry=function(H){var C;(C=this._onBeforeProcessingEntry)==null||C.call(this,H)};var UNd=[2500,4E3],Nyw=function(H){var C=C===void 0?{}:C;wfM(function(){var S=Cz7(),w=S67(),A=SNi(C),J=function(N){C.reportAllChanges||(N=N.slice(-1));N=_.Z(N);for(var b=N.next();!b.done;b=N.next())b=b.value,A._processEntry(b),b.startTime<S.firstHiddenTime&&(w.value=Math.max(b.startTime-xNP(),0),w.entries=[b],Y())},c=sh7(J);
if(c){var Y=RMd(H,w,C.reportAllChanges);for(var M=jhW(function(){J(c.takeRecords());c.disconnect();Y(!0)}),m=function(N){N.isTrusted&&(ANV(M),removeEventListener(N.type,m,{capture:!0}))},W=_.Z(["keydown",
"click","visibilitychange"]),y=W.next();!y.done;y=W.next())addEventListener(y.value,m,{capture:!0});gQn(function(N){w=S67();Y=RMd(H,w,C.reportAllChanges);IBi(function(){w.value=performance.now()-N.timeStamp;Y(!0)})})}})};var JNY;var Fx1;_.U=function(){return Fx1!==void 0?Fx1:Fx1=document.createElement("template")};
document.head.appendChild(_.U().content);var ZdU;_.hr({_template:function(){if(ZdU!==void 0)return ZdU;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);
var C=H.content,S=C.insertBefore;JNY===void 0&&(JNY=document.createElement("template"));var w=JNY;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return ZdU=H},
is:"tp-yt-app-toolbar"});var cNd;var Y6M;_.Ao=function(){};
_.Ao=_.hr({_template:function(){if(Y6M!==void 0)return Y6M;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;cNd===void 0&&(cNd=document.createElement("template"));var w=cNd;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return Y6M=H},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.Ao.instance||(_.Ao.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(H){this._text===H&&(H+="\u00a0");this._text="";this.async(function(){this._text=H},this.timeout)},
_onIronAnnounce:function(H){H.detail&&H.detail.text&&this.announce(H.detail.text)}});
_.Ao.instance=null;_.Ao.requestAvailability=function(){_.Ao.instance||(_.Ao.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.Ao.instance):document.addEventListener("load",function(){document.body.appendChild(_.Ao.instance)})};var z8M;var M9d;/*

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

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

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 oCM=new _.Ll({type:"iconset"});
_.hr({_template:function(){if(V9_!==void 0)return V9_;var H=document.createElement("template");_.f(H,"\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");H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;lfM===void 0&&(lfM=document.createElement("template"));
var w=lfM;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return V9_=H},
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(H){H=(H||"").split(":");this._iconName=H.pop();this._iconsetName=H.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&&_.PM(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=oCM.byKey(this._iconsetName)){var H=this._iconset.applyIcon(this,this._iconName,this.theme);H&&H.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,_.PM(this.root).appendChild(this._img)}});var Od1;var Xf1;_.hr({_template:function(){if(Xf1!==void 0)return Xf1;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);
var C=H.content,S=C.insertBefore;Od1===void 0&&(Od1=document.createElement("template"));var w=Od1;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return Xf1=H},
is:"tp-yt-iron-input",behaviors:[_.UQ],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(){_.Ao.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.PM(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.PM(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 H=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":H=/[0-9.,e-]/}return H},_bindValueChanged:function(H,C){C&&(H===void 0?C.value=null:H!==C.value&&(this.inputElement.value=H),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:H}))},
_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(H){var C=H.keyCode==19||H.keyCode==20||H.keyCode==45||H.keyCode==46||H.keyCode==144||H.keyCode==145||H.keyCode>32&&H.keyCode<41||H.keyCode>111&&H.keyCode<124;return!(H.keyCode==8||H.keyCode==9||H.keyCode==13||H.keyCode==27)&&!(H.charCode==0&&C)},
_onKeypress:function(H){if(this.allowedPattern||this.inputElement.type==="number"){var C=this._patternRegExp;if(C&&!(H.metaKey||H.ctrlKey||H.altKey)){this._patternAlreadyChecked=!0;var S=String.fromCharCode(H.charCode);this._isPrintable(H)&&!C.test(S)&&(H.preventDefault(),this._announceInvalidCharacter("Invalid character "+S+" not entered."))}}},
_checkPatternValidity:function(){var H=this._patternRegExp;if(!H)return!0;for(var C=0;C<this.inputElement.value.length;C++)if(!H.test(this.inputElement.value[C]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var H=this.inputElement.checkValidity();H&&(this.required&&this.bindValue===""?H=!1:this.hasValidator()&&(H=_.UQ.validate.call(this,this.bindValue)));this.invalid=!H;this.fire("iron-input-validate");return H},
_announceInvalidCharacter:function(H){this.fire("iron-announce",{text:H})},
_computeValue:function(H){return H}});var Qhn;var dIY;var Pz1=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),$IW=Pz1&&Pz1[1]>=8;
_.hr({_template:function(){if(dIY!==void 0)return dIY;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;Qhn===void 0&&(Qhn=document.createElement("template"));var w=Qhn;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return dIY=H},
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:[pBi,_.Ix,_.Ahb,K6d],_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 _.PM(_.PM(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var H=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,H-this._physicalCount)},set _virtualStart(H){H=this._clamp(H,0,this._maxVirtualStart);this.grid&&(H-=H%this._itemsPerRow);this._virtualStartVal=H},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(H){H%=this._physicalCount;H<0&&(H=this._physicalCount+H);this.grid&&(H-=H%this._itemsPerRow);this._physicalStartVal=H},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(H){this._physicalCountVal=H},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 H=this._firstVisibleIndexVal;if(H==null){var C=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
H=this._iterateItems(function(S,w){C+=this._getPhysicalSizeIncrement(S);if(C>this._scrollPosition)return this.grid?w-w%this._itemsPerRow:w;if(this.grid&&this._virtualCount-1===w)return w-w%this._itemsPerRow})||0}return H},
get lastVisibleIndex(){var H=this._lastVisibleIndexVal;if(H==null){if(this.grid)H=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var C=this._physicalTop+this._scrollOffset;this._iterateItems(function(S,w){C<this._scrollBottom&&(H=w);C+=this._getPhysicalSizeIncrement(S)})}this._lastVisibleIndexVal=H}return H},
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,_.p7);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(H){this.style.webkitOverflowScrolling=H===this?"touch":"";this.style.overflowY=H===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.p7)},
updateViewportBoundaries:function(){var H=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(H["padding-top"],10);this._isRTL=H.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var H=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),C=H-this._scrollPosition,S=C>=0;this._scrollPosition=H;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(C)>this._physicalSize&&this._physicalSize>0?(C-=this._scrollOffset,S=Math.round(C/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=S,this._physicalStart+=S,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(H=this._getReusables(S),S?(this._physicalTop=H.physicalTop,this._virtualStart+=H.indexes.length,this._physicalStart+=H.indexes.length):(this._virtualStart=this._virtualStart-H.indexes.length,this._physicalStart=this._physicalStart-H.indexes.length),this._update(H.indexes,S?null:H.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),tP))},
_getReusables:function(H){var C=[],S=this._hiddenContentSize*this._ratio,w=this._virtualStart,A=this._virtualEnd,J=this._physicalCount,c=this._physicalTop+this._scrollOffset;var Y=this._physicalBottom+this._scrollOffset;var M=this._scrollPosition,m=this._scrollBottom;if(H){var W=this._physicalStart;Y=M-c}else W=this._physicalEnd,Y-=m;for(;;){var y=this._getPhysicalSizeIncrement(W);Y-=y;if(C.length>=J||Y<=S)break;if(H){if(A+C.length+1>=this._virtualCount)break;if(c+y>=M-this._scrollOffset)break;C.push(W);
c+=y;W=(W+1)%J}else{if(w-C.length<=0)break;if(c+this._physicalSize-y<=m)break;C.push(W);c-=y;W=W===0?J-1:W-1}}return{indexes:C,physicalTop:c-this._scrollOffset}},
_update:function(H,C){if(!(H&&H.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(H);this._updateMetrics(H);if(C)for(;C.length;)H=C.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(H);this._positionItems();this._updateScrollerSize()}},
_createPool:function(H){this._ensureTemplatized();var C,S=Array(H);for(C=0;C<H;C++){var w=this.stamp(null);S[C]=w.root.querySelector("*");this._itemsParent.appendChild(w.root)}return S},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(H){H=this._clamp(this._physicalCount+H,3,this._virtualCount-this._virtualStart);H=this._convertIndexToCompleteRow(H);if(this.grid){var C=H%this._itemsPerRow;C&&H-C<=this._physicalCount&&(H+=this._itemsPerRow);H-=C}H-=this._physicalCount;C=Math.round(this._physicalCount*.5);if(!(H<0)){if(H>0){C=window.performance.now();[].push.apply(this._physicalItems,this._createPool(H));for(var S=0;S<H;S++)this._physicalSizes.push(0);this._physicalCount+=H;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=H);this._update();this._templateCost=(window.performance.now()-C)/H;C=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||C===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,C)),fy7):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,C),tP))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var H=this._getReusables(!0);this._physicalTop=H.physicalTop;this._virtualStart+=H.indexes.length;this._physicalStart+=H.indexes.length;this._update(H.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 H={__key__:!0};H[this.as]=!0;H[this.indexAs]=!0;H[this.selectedAs]=!0;H.tabIndex=!0;this._instanceProps=H;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(H,C){typeof C!=="undefined"&&(this.notifyResize(),_.XL(),H&&this._updateGridMetrics())},
_itemsChanged:function(H){if(H.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,
_.p7);else if(H.path==="items.splices"){this._adjustVirtualIndex(H.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(H.value.indexSplices.some(function(S){return S.addedCount>0||S.removed.length>0})){var C=this._getActiveElement();
this.contains(C)&&C.blur()}H=H.value.indexSplices.some(function(S){return S.index+S.addedCount>=this._virtualStart&&S.index<=this._virtualEnd},this);
this._isClientFull()&&!H||this._debounce("_render",this._render,_.p7)}else H.path!=="items.length"&&this._forwardItemPath(H.path,H.value)},
_forwardItemPath:function(H,C){H=H.slice(6);var S=H.indexOf(".");S===-1&&(S=H.length);var w,A=this.modelForElement(this._offscreenFocusedItem),J=parseInt(H.substring(0,S),10);if(w=this._isIndexRendered(J)){var c=this._getPhysicalIndex(J);var Y=this.modelForElement(this._physicalItems[c])}else A&&(Y=A);Y&&Y[this.indexAs]===J&&(H=H.substring(S+1),H=this.as+(H?"."+H:""),Y._setPendingPropertyOrPath(H,C,!1,!0),Y._flushProperties&&Y._flushProperties(),w&&(this._updateMetrics([c]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(H){H.forEach(function(C){C.removed.forEach(this._removeItem,this);C.index<this._virtualStart&&(C=Math.max(C.addedCount-C.removed.length,C.index-this._virtualStart),this._virtualStart+=C,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=C))},this)},
_removeItem:function(H){this.$.selector.deselect(H);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===H&&this._removeFocusedItem()},
_iterateItems:function(H,C){var S,w;if(arguments.length===2&&C)for(w=0;w<C.length;w++){var A=C[w];var J=this._computeVidx(A);if((S=H.call(this,A,J))!=null)return S}else{A=this._physicalStart;for(J=this._virtualStart;A<this._physicalCount;A++,J++)if((S=H.call(this,A,J))!=null)return S;for(A=0;A<this._physicalStart;A++,J++)if((S=H.call(this,A,J))!=null)return S}},
_computeVidx:function(H){return H>=this._physicalStart?this._virtualStart+(H-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+H},
_assignModels:function(H){this._iterateItems(function(C,S){var w=this._physicalItems[C],A=this.items&&this.items[S];if(A!=null){var J=this.modelForElement(w);J.__key__=null;this._forwardProperty(J,this.as,A);this._forwardProperty(J,this.selectedAs,this.$.selector.isSelected(A));this._forwardProperty(J,this.indexAs,S);this._forwardProperty(J,"tabIndex",this._focusedVirtualIndex===S?0:-1);this._physicalIndexForKey[J.__key__]=C;J._flushProperties&&J._flushProperties(!0);w.removeAttribute("hidden")}else w.setAttribute("hidden",
"")},H)},
_updateMetrics:function(H){_.XL();var C=0,S=0,w=this._physicalAverageCount,A=this._physicalAverage;this._iterateItems(function(J){S+=this._physicalSizes[J];this._physicalSizes[J]=this._physicalItems[J].offsetHeight;C+=this._physicalSizes[J];this._physicalAverageCount+=this._physicalSizes[J]?1:0},H);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(S=this._itemsPerRow===1?S:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+C-S,this._itemsPerRow=1);this._physicalAverageCount!==w&&(this._physicalAverage=Math.round((A*w+C)/this._physicalAverageCount))},
_updateGridMetrics:function(){this._itemWidth=this._physicalCount>0?this._physicalItems[0].getBoundingClientRect().width:200;this._rowHeight=this._physicalCount>0?this._physicalItems[0].offsetHeight:200;this._itemsPerRow=this._itemWidth?Math.floor(this._viewportWidth/this._itemWidth):this._itemsPerRow},
_positionItems:function(){this._adjustScrollPosition();var H=this._physicalTop;if(this.grid){var C=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(S,w){var A=Math.floor(w%this._itemsPerRow*this._itemWidth+C);this._isRTL&&(A*=-1);this.translate3d(A+"px",H+"px",0,this._physicalItems[S]);this._shouldRenderNextRow(w)&&(H+=this._rowHeight)})}else this._iterateItems(function(S){this.translate3d(0,H+"px",0,this._physicalItems[S]);
H+=this._physicalSizes[S]})},
_getPhysicalSizeIncrement:function(H){return this.grid?this._computeVidx(H)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[H]},
_shouldRenderNextRow:function(H){return H%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var H=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(H!==0){this._physicalTop=this._physicalTop-H;var C=this._scrollPosition;!$IW&&C>0&&this._resetScrollPosition(C-H)}},
_resetScrollPosition:function(H){this.scrollTarget&&H>=0&&(this._scrollPosition=this._scrollTop=H)},
_updateScrollerSize:function(H){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((H=(H=(H=H||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(H){return this.scrollToIndex(this.items.indexOf(H))},
scrollToIndex:function(H){if(!(typeof H!=="number"||H<0||H>this.items.length-1)&&(_.XL(),this._physicalCount!==0)){H=this._clamp(H,0,this._virtualCount-1);if(!this._isIndexRendered(H)||H>=this._maxVirtualStart)this._virtualStart=this.grid?H-this._itemsPerRow*2:H-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var C=this._physicalStart,S=this._virtualStart,w=0,A=this._hiddenContentSize;S<H&&
w<=A;)w+=this._getPhysicalSizeIncrement(C),C=(C+1)%this._physicalCount,S++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+w);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)},_.p7)},
selectItem:function(H){return this.selectIndex(this.items.indexOf(H))},
selectIndex:function(H){if(!(H<0||H>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(H)){var C=this.modelForElement(this._physicalItems[this._getPhysicalIndex(H)]);C&&(C[this.selectedAs]=!0);this.updateSizeForIndex(H)}this.$.selector.selectIndex(H)}},
deselectItem:function(H){return this.deselectIndex(this.items.indexOf(H))},
deselectIndex:function(H){H<0||H>=this._virtualCount||(this._isIndexRendered(H)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(H)])[this.selectedAs]=!1,this.updateSizeForIndex(H)),this.$.selector.deselectIndex(H))},
toggleSelectionForItem:function(H){return this.toggleSelectionForIndex(this.items.indexOf(H))},
toggleSelectionForIndex:function(H){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(H):this.$.selector.isSelected(this.items[H]))?this.deselectIndex(H):this.selectIndex(H)},
clearSelection:function(){this._iterateItems(function(H){this.modelForElement(this._physicalItems[H])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(H){(H?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(H){var C=this.modelForElement(H.target);if(C){var S=_.PM(H).path[0];H=this._getActiveElement();var w=this._physicalItems[this._getPhysicalIndex(C[this.indexAs])];if(S.localName!=="input"&&S.localName!=="button"&&S.localName!=="select"){S=C.tabIndex;C.tabIndex=-100;var A=H?H.tabIndex:-1;C.tabIndex=S;H&&w!==H&&w.contains(H)&&A!==-100||this.toggleSelectionForItem(C[this.as])}}},
_multiSelectionChanged:function(H){this.clearSelection();this.$.selector.multi=H},
updateSizeForItem:function(H){return this.updateSizeForIndex(this.items.indexOf(H))},
updateSizeForIndex:function(H){if(!this._isIndexRendered(H))return null;this._updateMetrics([this._getPhysicalIndex(H)]);this._positionItems();return null},
_manageFocus:function(){var H=this._focusedVirtualIndex;H>=0&&H<this._virtualCount?this._isIndexRendered(H)?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(H){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(H/this._itemsPerRow)*this._itemsPerRow:H},
_isIndexRendered:function(H){return H>=this._virtualStart&&H<=this._virtualEnd},
_isIndexVisible:function(H){return H>=this.firstVisibleIndex&&H<=this.lastVisibleIndex},
_getPhysicalIndex:function(H){return(this._physicalStart+(H-this._virtualStart))%this._physicalCount},
focusItem:function(H){this._focusPhysicalItem(H)},
_focusPhysicalItem:function(H){if(!(H<0||H>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(H)||this.scrollToIndex(H);var C=this._physicalItems[this._getPhysicalIndex(H)],S=this.modelForElement(C),w;S.tabIndex=-100;C.tabIndex===-100&&(w=C);w||(w=_.PM(C).querySelector('[tabindex="-100"]'));S.tabIndex=0;this._focusedVirtualIndex=H;w&&w.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 H=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var C=this.stamp(null);this._focusBackfillItem=C.root.querySelector("*");this._itemsParent.appendChild(C.root)}this._offscreenFocusedItem=this._physicalItems[H];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[H]=this._focusBackfillItem;this._focusedPhysicalIndex=H;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var H=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),C=this._physicalItems[H];if(C){var S=this.modelForElement(C),w=this.modelForElement(this._offscreenFocusedItem);S[this.as]===w[this.as]?(this._focusBackfillItem=C,S.tabIndex=-1,this._physicalItems[H]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(H){H=this.modelForElement(H.target);var C=this.modelForElement(this._focusedItem),S=this._offscreenFocusedItem!==null,w=this._focusedVirtualIndex;H&&(C===H?this._isIndexVisible(w)||this.scrollToIndex(w):(this._restoreFocusedItem(),C&&(C.tabIndex=-1),H.tabIndex=0,this._focusedVirtualIndex=w=H[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(w),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],S&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(H){switch(H.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&H.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&&H.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(H)}},
_clamp:function(H,C,S){return Math.min(S,Math.max(C,H))},
_debounce:function(H,C,S){this._debouncers=this._debouncers||{};this._debouncers[H]=_.vW(this._debouncers[H],S,C.bind(this));_.lk(this._debouncers[H])},
_forwardProperty:function(H,C,S){H._setPendingProperty(C,S)},
_forwardHostPropV2:function(H,C){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(S){S&&this.modelForElement(S).forwardHostProp(H,C)},this)},
_notifyInstancePropV2:function(H,C,S){q6i(this.as,C)&&(H=H[this.indexAs],C==this.as&&(this.items[H]=S),this.notifyPath(EW(this.as,"items."+H,C),S))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(H,C,S){C.indexOf(this.as+".")===0&&this.notifyPath("items."+H.__key__+"."+C.slice(this.as.length+1),S)},
_forwardParentPath:function(H,C){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(S){S&&this.modelForElement(S).notifyPath(H,C)},this)},
_forwardParentProp:function(H,C){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(S){S&&(this.modelForElement(S)[H]=C)},this)},
_getActiveElement:function(){var H=this._itemsParent.node.domHost;return _.PM(H?H.root:document).activeElement},
_scrollTargetChanged:function(H,C){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(C)if(H==="document")this.scrollTarget=this._doc;else if(typeof H==="string"){var S,w;this.scrollTarget=(C=(w=(S=this.domHost)==null?void 0:S.polymerController)!=null?w:this.domHost)&&C.$?C.$[H]:_.PM(this.ownerDocument).querySelector("#"+H)}else this._isValidScrollTarget()&&(this._oldScrollTarget=H,this._toggleScrollListener(this._shouldHaveListener,H))}});var pfV;var kX7;var h8W=function(H,C,S,w){H-=S;C-=w;return Math.sqrt(H*H+C*C)},nCn=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
Fi7.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var Z3V=function(H){H.maxRadius=0;H.mouseDownStart=0;H.mouseUpStart=0;H.xStart=0;H.yStart=0;H.xEnd=0;H.yEnd=0;H.containerMetrics=new Fi7(H.element)};
c7u.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var H=nCn()-this.mouseDownStart;this.mouseUpStart&&(H-=this.mouseUpElapsed);return H},get mouseUpElapsed(){return this.mouseUpStart?nCn()-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 H=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(H*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-H/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity===0&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var H=this.radius/(this.containerMetrics.size/2);var C=this.xNow-this.containerMetrics.width/2;var S=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+C+"px, "+S+"px)";this.waveContainer.style.transform="translate3d("+C+"px, "+S+"px, 0)";this.wave.style.webkitTransform="scale("+H+","+H+")";this.wave.style.transform="scale3d("+H+","+H+",1)"},
downAction:function(H){var C=this.containerMetrics.width/2,S=this.containerMetrics.height/2;Z3V(this);this.mouseDownStart=nCn();this.center?(this.xStart=C,this.yStart=S):(this.xStart=H?H.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=H?H.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=C,this.yEnd=S);H=this.containerMetrics;C=this.xStart;S=this.yStart;this.maxRadius=Math.max(h8W(C,S,0,0),h8W(C,S,
H.width,0),h8W(C,S,0,H.height),h8W(C,S,H.width,H.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=nCn())},
remove:function(){_.PM(_.PM(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.hr({_template:function(){if(kX7!==void 0)return kX7;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;pfV===void 0&&(pfV=document.createElement("template"));var w=pfV;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return kX7=H},
is:"tp-yt-paper-ripple",behaviors:[_.rA],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(){_.PM(this).parentNode.nodeType==11?this.keyEventTarget=_.PM(this).getOwnerRoot().host:this.keyEventTarget=_.PM(this).parentNode;var H=this.keyEventTarget;this.listen(H,"up","uiUpAction");this.listen(H,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(H){H.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var H=0;H<this.ripples.length;++H)if(!this.ripples[H].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(H){this.noink||this.downAction(H)},
downAction:function(H){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(H),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(H){this.noink||this.upAction(H)},
upAction:function(H){this.holdDown||(this.ripples.forEach(function(C){C.upAction(H)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var H=0;H<this.ripples.length;++H){var C=this.ripples[H];C.isOpacityFullyDecayed&&!C.isRestingAtMaxRadius&&this.removeRipple(C)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var H=new c7u(this);_.PM(this.$.waves).appendChild(H.waveContainer);this.$.background.style.backgroundColor=H.color;this.ripples.push(H);this._setAnimating(!0);return H},
removeRipple:function(H){var C=this.ripples.indexOf(H);C<0||(this.ripples.splice(C,1),H.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var H;for(H=0;H<this.ripples.length;++H){var C=this.ripples[H];C.draw();this.$.background.style.opacity=C.outerOpacity;C.isOpacityFullyDecayed&&!C.isRestingAtMaxRadius&&this.removeRipple(C)}if(this.shouldKeepAnimating)window.requestAnimationFrame(this._boundAnimate);else this.onAnimationComplete()}},
animateRipple:function(){return this.animate()},
_onEnterKeydown:function(){this.uiDownAction();this.async(this.uiUpAction,1)},
_onSpaceKeydown:function(){this.uiDownAction()},
_onSpaceKeyup:function(){this.uiUpAction()},
_holdDownChanged:function(H,C){C!==void 0&&(H?this.downAction():this.upAction())}});var MJ={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(H){DC._downHandler.call(this,H);this.pressed&&this.ensureRipple(H)},
ensureRipple:function(H){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var C=this._rippleContainer||this.root;C&&_.PM(C).appendChild(this._ripple);if(H){C=_.PM(this._rippleContainer||this);var S=_.PM(H).rootTarget;C.deepContains(S)&&this._ripple.uiDownAction(H)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(H){this.hasRipple()&&(this._ripple.noink=H)}};var rNY={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 H=1;this.disabled?H=0:this.active||this.pressed?H=4:this.receivedFocusFromKeyboard&&(H=3);this._setElevation(H)},
_computeKeyboardClass:function(H){this.toggleClass("keyboard-focus",H)},
_spaceKeyDownHandler:function(H){DC._spaceKeyDownHandler.call(this,H);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(H){DC._spaceKeyUpHandler.call(this,H);this.hasRipple()&&this._ripple.uiUpAction()}},BRi=[RXU,
_.Ba,MJ,rNY];_.DI1={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(H){H&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=H)},
_createRipple:function(){var H=MJ._createRipple();H.id="ink";H.setAttribute("center","");H.classList.add("circle");return H}};
_.Kx7=[RXU,_.Ba,MJ,_.DI1];_.t9d=[_.Kx7,xpn,{_checkedChanged:function(){azV._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){MJ._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var Lxi;var gC_;var UI7=function(){};
_.F=UI7.prototype;_.F.registered=function(){};
_.F.addOwnKeyBinding=function(){};
_.F.removeOwnKeyBindings=function(){};
_.F.keyboardEventMatchesKeys=function(){};
_.F._collectKeyBindings=function(){};
_.F._prepKeyBindings=function(){};
_.F._addKeyBinding=function(){};
_.F._resetKeyEventListeners=function(){};
_.F._listenKeyEventListeners=function(){};
_.F._unlistenKeyEventListeners=function(){};
_.F._onKeyBindingEvent=function(){};
_.F._triggerKeyHandler=function(){};
_.F._tapHandler=function(){};
_.F._focusChanged=function(){};
_.F._detectKeyboardFocus=function(){};
_.F._userActivate=function(){};
_.F._upHandler=function(){};
_.F._asyncClick=function(){};
_.F._pressedChanged=function(){};
_.F._ariaActiveAttributeChanged=function(){};
_.F._activeChanged=function(){};
_.F._controlStateChanged=function(){};
_.F._changedButtonState=function(){};
_.F._focusBlurHandler=function(){};
_.F._disabledChanged=function(){};
_.F._changedControlState=function(){};
_.F._buttonStateChanged=function(){};
_.F._downHandler=function(){};
_.F.ensureRipple=function(){};
_.F.getRipple=function(){};
_.F.hasRipple=function(){};
_.F._createRipple=function(){};
_.F._noinkChanged=function(){};
_.F._computeKeyboardClass=function(){};
_.F._spaceKeyDownHandler=function(){};
_.F._spaceKeyUpHandler=function(){};
_.F._setPressed=function(){};
_.F._setPointerDown=function(){};
_.F._setReceivedFocusFromKeyboard=function(){};
_.F._setFocused=function(){};
_.F._setElevation=function(){};
UI7=_.hr({_template:function(){if(gC_!==void 0)return gC_;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);
var C=H.content,S=C.insertBefore;Lxi===void 0&&(Lxi=document.createElement("template"));var w=Lxi;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return gC_=H},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[BRi],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?rNY._calculateElevation.apply(this):this._setElevation(0)}});var R8V;var If7;var afP={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(H){_.E("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(H)},
_onDialogClickWrapped:function(H){_.E("dialog_behavior_no_tap_killswitch")||this._onDialogClick(H)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(H,C){C&&(H?(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(H){if(H){var C;((C=this.hostElement)!=null?C:this).setAttribute("aria-modal","true")}else{var S;((S=this.hostElement)!=null?S:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(H){this.closingReason=this.closingReason||{};this.closingReason.confirmed=H},
_onDialogClick:function(H){for(var C=_.PM(H).path,S=0,w,A=C.indexOf((w=this.hostElement)!=null?w:this);S<A;S++)if(w=C[S],w.hasAttribute&&(w.hasAttribute("dialog-dismiss")||w.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(w.hasAttribute("dialog-confirm"));this.close();H.stopPropagation();break}}},xI7=[_.zj,
afP];var H5Y=document.createElement("template");_.f(H5Y,'<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(H5Y.content);var i5d=document.createElement("template");_.f(i5d,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(i5d.content);_.hr({_template:function(){if(If7!==void 0)return If7;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);
var C=H.content,S=C.insertBefore;R8V===void 0&&(R8V=document.createElement("template"));var w=R8V;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return If7=H},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[xI7,JhU],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 CPn;var Sb1;_.hr({_template:function(){if(Sb1!==void 0)return Sb1;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;CPn===void 0&&(CPn=document.createElement("template"));var w=CPn;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return Sb1=H},
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 H,C,S;if(((H=window.ShadyDOM)==null?void 0:H.noPatch)!==!0&&((C=window.ShadyDOM)==null?void 0:C.noPatch)!=="on-demand"||((S=this.__shady_parentNode)==null?void 0:S.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(afP)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var ssV=_.xC(['<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>']),js7=_.RDb(ssV);js7.setAttribute("style","display: none;");document.head.appendChild(js7.content);var wuY;var AC7;var JCd;var FUb;_.hr({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[ax],configure:function(H){var C=H.node,S=C.getBoundingClientRect().height;return this._effect=new KeyframeEffect(C,[{height:S/2+"px"},{height:S+"px"}],this.timingFromConfig(H))}});
_.hr({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[ax],configure:function(H){var C=H.node,S=C.getBoundingClientRect().width;return this._effect=new KeyframeEffect(C,[{width:S/2+"px"},{width:S+"px"}],this.timingFromConfig(H))}});
_.hr({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[ax],configure:function(H){var C=H.node,S=C.getBoundingClientRect().width;return this._effect=new KeyframeEffect(C,[{width:S+"px"},{width:S-S/20+"px"}],this.timingFromConfig(H))}});
_.hr({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[ax],configure:function(H){var C=H.node,S=C.getBoundingClientRect().height;this.setPrefixedProperty(C,"transformOrigin","0 0");return this._effect=new KeyframeEffect(C,[{height:S+"px",transform:"translateY(0)"},{height:S/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(H))}});var qJ={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},Z5V=function(){};
_.F=Z5V.prototype;_.F.registered=function(){};
_.F.addOwnKeyBinding=function(){};
_.F.removeOwnKeyBindings=function(){};
_.F.keyboardEventMatchesKeys=function(){};
_.F._collectKeyBindings=function(){};
_.F._prepKeyBindings=function(){};
_.F._addKeyBinding=function(){};
_.F._resetKeyEventListeners=function(){};
_.F._listenKeyEventListeners=function(){};
_.F._unlistenKeyEventListeners=function(){};
_.F._onKeyBindingEvent=function(){};
_.F._triggerKeyHandler=function(){};
_.F._focusBlurHandler=function(){};
_.F._changedControlState=function(){};
_.F._setFocused=function(){};
Z5V=_.hr({_template:function(){if(FUb!==void 0)return FUb;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;JCd===void 0&&(JCd=document.createElement("template"));var w=JCd;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return FUb=H},
is:"tp-yt-paper-menu-button",behaviors:[_.rA,_.Ba],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:qJ.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:qJ.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:qJ.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 H=_.PM(this.$.content).getDistributedNodes(),C=0,S=H.length;C<S;C++)if(H[C].nodeType===Node.ELEMENT_NODE)return H[C]},toggle:function(){this.opened?
this.close():this.open()},
open:function(){this.disabled||this.$.dropdown.open()},
close:function(){this.$.dropdown.close()},
_onIronSelect:function(){this.ignoreSelect||this.close()},
_onIronActivate:function(){this.closeOnActivate&&this.close()},
_openedChanged:function(H,C){H?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):C!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(H){_.Ba._disabledChanged.apply(this,arguments);H&&this.opened&&this.close()},
__onIronOverlayCanceled:function(H){var C=this.$.trigger;_.PM(H.detail).path.indexOf(C)>-1&&H.preventDefault()}});
Object.keys(qJ).forEach(function(H){Z5V[H]=qJ[H]});var cC1=_.Kl.IronButtonState,YbM=(0,_.re)(HTMLElement);
_.hr({_template:function(){if(AC7!==void 0)return AC7;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;wuY===void 0&&(wuY=document.createElement("template"));var w=wuY;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return AC7=H},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[cC1,_.Ba,MJ,_.tn,_.UQ],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(H){var C=(0,_.v5)(this);C.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:H});C.shadowRoot.appendChild(H);return YbM.prototype._attachDom.call(this,H)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var H=this.contentElement;H&&H.selectedItem&&this._setSelectedItem(H.selectedItem)},
get contentElement(){for(var H=_.PM(this.$.content).getDistributedNodes(),C=0,S=H.length;C<S;C++)if(H[C].nodeType===Node.ELEMENT_NODE)return H[C]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(H){this._setSelectedItem(H.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(H){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H)===this&&this.open()},
_selectedItemChanged:function(H){var C="";H?C=H.label||H.getAttribute("label")||H.textContent.trim():C="";this.value=C;this._setSelectedItemLabel(C)},
_computeMenuVerticalOffset:function(H,C){return C?C:H?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var H=this.opened?"true":"false",C=this.contentElement;C&&C.setAttribute("aria-expanded",H)},
_computeLabelClass:function(H,C,S){var w="label";if(H)S&&(w+=" label-is-hidden");else if(S||C)w+=" label-is-floating";return w},
_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 z6n;var MCd;_.hr({is:"tp-yt-paper-icon-button",_template:function(){if(MCd!==void 0)return MCd;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;z6n===void 0&&(z6n=document.createElement("template"));var w=z6n;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return MCd=H},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.Kx7],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(H,C){var S=this.getAttribute("aria-label");S&&C!=S||this.setAttribute("aria-label",H)}});var qbV;var TOn;_.Tj=[RXU,_.Ba,{hostAttributes:{role:"option",tabindex:"0"}}];_.hr({_template:function(){if(TOn!==void 0)return TOn;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;qbV===void 0&&(qbV=document.createElement("template"));var w=qbV;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return TOn=H},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.Tj]});var myW;var WU7;var yCd={attached:function(){this.fire("addon-attached")},
update:function(){}};var NOM=1,b5P=1,EvV=1,e6i=[_.Ba,_.rA,{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();!NZ&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(H,C){H?H=H+" "+C:H=C;return H},
_onAddonAttached:function(H){H=_.PM(H).rootTarget;if(H.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,H.id);else{var C="paper-input-add-on-"+b5P++;H.id=C;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,C)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(H){_.Ba._focusBlurHandler.call(this,H);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var H=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",H);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(H){try{var C=this.inputElement.selectionStart;this.value=H;this.inputElement.selectionStart=C;this.inputElement.selectionEnd=C}catch(S){this.value=H}},
_computeAlwaysFloatLabel:function(H,C){return C||H},
_updateAriaLabelledBy:function(){var H=_.PM(this.root).querySelector("label");if(H){if(H.id)var C=H.id;else C="paper-input-label-"+NOM++,H.id=C;this._ariaLabelledBy=C}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+EvV++)},
_onChange:function(H){this.shadowRoot&&this.fire(H.type,{sourceEvent:H},{node:this,bubbles:H.bubbles,cancelable:H.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var H=document.activeElement;H instanceof HTMLElement&&H!==document.body&&H!==document.documentElement||this._focusableElement.focus()}}}];var uFM;var Gti;_.hr({_template:function(){if(Gti!==void 0)return Gti;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;uFM===void 0&&(uFM=document.createElement("template"));var w=uFM;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return Gti=H},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[yCd],properties:{_charCounterStr:{type:String,value:"0"}},update:function(H){if(H.inputElement){H.value=H.value||"";var C=H.value.toString().length.toString();H.inputElement.hasAttribute("maxlength")&&(C+="/"+H.inputElement.getAttribute("maxlength"));this._charCounterStr=C}}});var fh7;var vv_;_.hr({_template:function(){if(vv_!==void 0)return vv_;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;fh7===void 0&&(fh7=document.createElement("template"));var w=fh7;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return vv_=H},
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 mr(this.attrForValue)},get _inputElement(){return _.PM(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(H){this._addons||(this._addons=[]);H=H.target;this._addons.indexOf(H)===-1&&(this._addons.push(H),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(H){this._handleValueAndAutoValidate(H.target)},
_onValueChanged:function(H){var C=H.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,C.value===void 0||C.value===""))return;this._handleValueAndAutoValidate(H.target)},
_handleValue:function(H){var C=this._inputElementValue;C||C===0||H.type==="number"&&!H.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:H,value:C,invalid:this.invalid})},
_handleValueAndAutoValidate:function(H){this.autoValidate&&H&&(this.invalid=!(H.validate?H.validate(this._inputElementValue):H.checkValidity()));this._handleValue(H)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(H){if(this._addons)for(var C,S=0;C=this._addons[S];S++)C.update(H)},
_computeInputContentClass:function(H,C,S,w,A){var J="input-content";H?(A&&(J+=" label-is-hidden"),w&&!this.noUnfloatedLabelError&&(J+=" is-invalid")):(H=this.querySelector("label"),C||A?(J+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",w?J+=" is-invalid":S&&(J+=" label-is-highlighted")):(H&&(this.$.labelAndInputContainer.style.position="relative"),w&&!this.noUnfloatedLabelError&&(J+=" is-invalid")));S&&(J+=" focused");return J},
_computeUnderlineClass:function(H,C){var S="underline";C?S+=" is-invalid":H&&(S+=" is-highlighted");return S},
_computeAddOnContentClass:function(H,C){var S="add-on-content";C?S+=" is-invalid":H&&(S+=" is-highlighted");return S}});var lhU;var VCM;_.hr({_template:function(){if(VCM!==void 0)return VCM;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;lhU===void 0&&(lhU=document.createElement("template"));var w=lhU;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return VCM=H},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[yCd],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(H){this._setInvalid(H.invalid)}});_.hr({is:"tp-yt-paper-input",_template:function(){if(WU7!==void 0)return WU7;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;myW===void 0&&(myW=document.createElement("template"));var w=myW;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return WU7=H},
behaviors:[e6i,_.tn],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 ovP;var O5P;_.hr({_template:function(){if(O5P!==void 0)return O5P;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=
H.content,S=C.insertBefore;ovP===void 0&&(ovP=document.createElement("template"));var w=ovP;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return O5P=H},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.Tj]});var Xub;var Qs1;_.hr({_template:function(){if(Qs1!==void 0)return Qs1;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);
var C=H.content,S=C.insertBefore;Xub===void 0&&(Xub=document.createElement("template"));var w=Xub;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return Qs1=H},
is:"tp-yt-paper-item-body"});var dyi;var PP1;var $y1=function(){};
_.F=$y1.prototype;_.F.indexOf=function(){};
_.F.selectPrevious=function(){};
_.F.selectNext=function(){};
_.F.selectIndex=function(){};
_.F.forceSynchronousItemUpdate=function(){};
_.F._checkFallback=function(){};
_.F._addListener=function(){};
_.F._removeListener=function(){};
_.F._activateEventChanged=function(){};
_.F._updateItems=function(){};
_.F._selectSelected=function(){};
_.F._filterItem=function(){};
_.F._valueToItem=function(){};
_.F._valueToIndex=function(){};
_.F._indexToValue=function(){};
_.F._valueForItem=function(){};
_.F._observeItems=function(){};
_.F._itemActivate=function(){};
_.F.multiChanged=function(){};
_.F._updateAttrForSelected=function(){};
_.F._updateSelected=function(){};
_.F._selectMulti=function(){};
_.F._selectionChange=function(){};
_.F._toggleSelected=function(){};
_.F._valuesToItems=function(){};
_.F.registered=function(){};
_.F.addOwnKeyBinding=function(){};
_.F.removeOwnKeyBindings=function(){};
_.F.keyboardEventMatchesKeys=function(){};
_.F._collectKeyBindings=function(){};
_.F._prepKeyBindings=function(){};
_.F._addKeyBinding=function(){};
_.F._resetKeyEventListeners=function(){};
_.F._listenKeyEventListeners=function(){};
_.F._unlistenKeyEventListeners=function(){};
_.F._onKeyBindingEvent=function(){};
_.F._triggerKeyHandler=function(){};
_.F.select=function(){};
_.F._resetTabindices=function(){};
_.F._updateMultiselectable=function(){};
_.F._focusWithKeyboardEvent=function(){};
_.F._clearSearchText=function(){};
_.F._focusPrevious=function(){};
_.F._focusNext=function(){};
_.F._applySelection=function(){};
_.F._focusedItemChanged=function(){};
_.F._onIronItemsChanged=function(){};
_.F._onShiftTabDown=function(){};
_.F._onFocus=function(){};
_.F._onUpKey=function(){};
_.F._onDownKey=function(){};
_.F._onEscKey=function(){};
_.F._onKeydown=function(){};
_.F._activateHandler=function(){};
_.F._disabledChanged=function(){};
_.F._setSelectedItem=function(){};
_.F._setItems=function(){};
_.F._setSelectedItems=function(){};
_.F._setFocusedItem=function(){};
$y1=_.hr({_template:function(){if(PP1!==void 0)return PP1;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);
var C=H.content,S=C.insertBefore;dyi===void 0&&(dyi=document.createElement("template"));var w=dyi;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return PP1=H},
is:"tp-yt-paper-listbox",behaviors:[Sj7],hostAttributes:{role:"listbox"}});var pub;var kt7;var h6Y={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(H,C){return[H||C?"active":"",C?"cooldown":""].join(" ")},
__activeChanged:function(H,C){this.__setAriaHidden(!H);this.__coolingDown=!H&&C},
__altChanged:function(H){this.setAttribute("aria-label",H||"loading")},
__setAriaHidden:function(H){H?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.hr({_template:function(){if(kt7!==void 0)return kt7;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;pub===void 0&&(pub=document.createElement("template"));var w=pub;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return kt7=H},
is:"tp-yt-paper-spinner",behaviors:[h6Y]});var nvM;var rC1;_.hr({_template:function(){if(rC1!==void 0)return rC1;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;nvM===void 0&&(nvM=document.createElement("template"));var w=nvM;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return rC1=H},
is:"tp-yt-paper-spinner-lite",behaviors:[h6Y]});var BOU;var Dy_;_.hr({_template:function(){if(Dy_!==void 0)return Dy_;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;BOU===void 0&&(BOU=document.createElement("template"));var w=BOU;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return Dy_=H},
is:"tp-yt-paper-tab",behaviors:[_.Ba,_.Kl.IronButtonState,MJ],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 H=_.PM(this).parentNode;return!!H&&!!H.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(H){if(this.link){var C=this.queryEffectiveChildren("a");C&&H.target!==C&&C.click()}}});var KUV;var tCd;var LUU=_.xC(['<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>']),gvn=_.RDb(LUU);document.head.appendChild(gvn.content);_.hr({_template:function(){if(tCd!==void 0)return tCd;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;KUV===void 0&&(KUV=document.createElement("template"));var w=KUV;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return tCd=H},
is:"tp-yt-paper-tabs",behaviors:[_.Ix,_.jJ7],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(H){_.PM(this).querySelectorAll("tp-yt-paper-tab").forEach(H?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(H){H.setAttribute("noink","")},
_removeNoinkAttribute:function(H){H.removeAttribute("noink")},
_computeScrollButtonClass:function(H,C,S,w){return!C||S?"hidden":H?w?"hidden":"not-visible":""},
_computeTabsContentClass:function(H,C){var S="tabs-content";H&&(S+=" scrollable");if(!H||C)S+=" fit-container";return S},
_computeSelectionBarClass:function(H,C){var S="selection-bar";H?S+=" hidden":C&&(S+=" align-bottom");return S},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(H){return""+H},
_onIronSelect:function(H){this._tabChanged(H.detail.item,this._previousTab);this._previousTab=H.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();_.Rx._activateHandler.apply(this,arguments)},
_scheduleActivation:function(H,C){this._pendingActivationItem=H;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,C)},
_delayedActivationHandler:function(){var H=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;H.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(H){H.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(H,C){this.scrollable&&this._affectScroll(C&&-C.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(H){this.$.tabsContainer.scrollLeft+=H;H=this.$.tabsContainer.scrollLeft;this._leftHidden=H===0||this.hideScrollButtons;this._rightHidden=H===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(H,C){if(H){var S=this.$.tabsContent.getBoundingClientRect(),w=S.width,A=H.getBoundingClientRect();S=A.left-S.left;this._pos={width:this._calcPercent(A.width,w),left:this._calcPercent(S,w)};if(this.noSlide||C==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var J=C.getBoundingClientRect();C=this.items.indexOf(C);H=this.items.indexOf(H);this.$.selectionBar.classList.add("expand");
H=C<H;this._isRTL&&(H=!H);H?this._positionBar(this._calcPercent(A.left+A.width-J.left,w)-5,this._left):this._positionBar(this._calcPercent(J.left+J.width-A.left,w)-5,this._calcPercent(S,w)+5);this.scrollable&&this._scrollToSelectedIfNeeded(A.width,S)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(H,C){C-=this.$.tabsContainer.scrollLeft;C<0?this.$.tabsContainer.scrollLeft+=C:(C+=H-this.$.tabsContainer.offsetWidth,C>0&&(this.$.tabsContainer.scrollLeft+=C))},
_calcPercent:function(H,C){return 100*H/C},
_positionBar:function(H,C){H=H||0;C=C||0;this._width=H;this._left=C;this.transform("translateX("+C+"%) scaleX("+H/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var H=this.$.selectionBar.classList;H.contains("expand")?(H.remove("expand"),H.add("contract"),this._positionBar(this._pos.width,this._pos.left)):H.contains("contract")&&H.remove("contract")}});var Uyd;var R6Y;_.hr({_template:function(){if(R6Y!==void 0)return R6Y;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;Uyd===void 0&&(Uyd=document.createElement("template"));var w=Uyd;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return R6Y=H},
is:"tp-yt-paper-textarea",behaviors:[e6i,_.tn],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(H){this.$.input.textarea.selectionStart=H},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(H){this.$.input.textarea.selectionEnd=H},_ariaLabelledByChanged:function(H){this._focusableElement.setAttribute("aria-labelledby",H)},
_ariaDescribedByChanged:function(H){this._focusableElement.setAttribute("aria-describedby",H)},
get _focusableElement(){return this.inputElement.textarea}});var Ih1;var ahM;/*

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 xyV=function(){};
_.F=xyV.prototype;_.F.addOwnKeyBinding=function(){};
_.F.removeOwnKeyBindings=function(){};
_.F.keyboardEventMatchesKeys=function(){};
_.F._collectKeyBindings=function(){};
_.F._prepKeyBindings=function(){};
_.F._addKeyBinding=function(){};
_.F._resetKeyEventListeners=function(){};
_.F._listenKeyEventListeners=function(){};
_.F._unlistenKeyEventListeners=function(){};
_.F._onKeyBindingEvent=function(){};
_.F._triggerKeyHandler=function(){};
_.F._tapHandler=function(){};
_.F._focusChanged=function(){};
_.F._detectKeyboardFocus=function(){};
_.F._userActivate=function(){};
_.F._upHandler=function(){};
_.F._spaceKeyDownHandler=function(){};
_.F._spaceKeyUpHandler=function(){};
_.F._asyncClick=function(){};
_.F._pressedChanged=function(){};
_.F._ariaActiveAttributeChanged=function(){};
_.F._activeChanged=function(){};
_.F._controlStateChanged=function(){};
_.F._changedButtonState=function(){};
_.F._focusBlurHandler=function(){};
_.F._disabledChanged=function(){};
_.F._changedControlState=function(){};
_.F._downHandler=function(){};
_.F.ensureRipple=function(){};
_.F.getRipple=function(){};
_.F.hasRipple=function(){};
_.F._noinkChanged=function(){};
_.F._focusedChanged=function(){};
_.F.registered=function(){};
_.F._invalidChanged=function(){};
_.F.hasValidator=function(){};
_.F.validate=function(){};
_.F._getValidity=function(){};
_.F._requiredChanged=function(){};
_.F._valueChanged=function(){};
_.F._checkedChanged=function(){};
_.F._buttonStateChanged=function(){};
_.F._setPressed=function(){};
_.F._setPointerDown=function(){};
_.F._setReceivedFocusFromKeyboard=function(){};
_.F._setFocused=function(){};
xyV=_.hr({is:"tp-yt-paper-toggle-button",_template:function(){if(ahM!==void 0)return ahM;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;Ih1===void 0&&(Ih1=document.createElement("template"));var w=Ih1;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return ahM=H},
behaviors:[_.t9d],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");_.wM(this,function(){_.B5(this,"pan-y")})},
_ontrack:function(H){H=H.detail;H.state==="start"?this._trackStart(H):H.state==="track"?this._trackMove(H):H.state==="end"&&this._trackEnd(H)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(H){H=H.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+H:H)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+H:H));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 H=MJ._createRipple();H.id="ink";H.setAttribute("recenters","");H.classList.add("circle","toggle-ink");return H}});var Hin;var iiY;_.hr({_template:function(){if(iiY!==void 0)return iiY;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;Hin===void 0&&(Hin=document.createElement("template"));var w=Hin;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return iiY=H},
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 H=_.PM(this).parentNode,C=_.PM(this).getOwnerRoot(),S;this.for?S=_.PM(C).querySelector("#"+this.for):S=H.nodeType==Node.DOCUMENT_FRAGMENT_NODE?C.host:H;return S},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(H){H==="entry"?this.show():H==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.PM(this).textContent.trim()===""){for(var H=!0,C=_.PM(this).getEffectiveChildNodes(),S=0;S<C.length;S++)if(C[S].textContent.trim()!==""){H=!1;break}if(H)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 H=this.offset;this.marginTop!=14&&this.offset==14&&(H=this.marginTop);var C=this.offsetParent.getBoundingClientRect(),S=this._target.getBoundingClientRect(),w=this.getBoundingClientRect(),A=(S.width-w.width)/2,J=(S.height-w.height)/2,c=S.left-C.left,Y=S.top-C.top;switch(this.position){case "top":var M=c+A;var m=Y-w.height-H;break;case "bottom":M=c+A;m=Y+S.height+H;break;case "left":M=c-w.width-H;m=Y+J;break;case "right":M=c+S.width+
H,m=Y+J}this.fitToVisibleBounds?(C.left+M+w.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,M)+"px",this.style.right="auto"),C.top+m+w.height>window.innerHeight?(this.style.bottom=C.height+"px",this.style.top="auto"):(this.style.top=Math.max(-C.top,m)+"px",this.style.bottom="auto")):(this.style.left=M+"px",this.style.top=m+"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(H){H!==500&&this.updateStyles({"--paper-tooltip-delay-in":H+"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(H){if(H==="entry"&&this.animationEntry!=="")return this.animationEntry;if(H==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[H]&&typeof this.animationConfig[H][0].name==="string"){if(this.animationConfig[H][0].timing&&this.animationConfig[H][0].timing.delay&&this.animationConfig[H][0].timing.delay!==0){var C=this.animationConfig[H][0].timing.delay;H==="entry"?this.updateStyles({"--paper-tooltip-delay-in":C+"ms"}):H==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":C+
"ms"})}return this.animationConfig[H][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 C7W=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(C7W,_.Jc);var Sv7=_.WV(C7W,[0,_.Fi]);var my=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(my,_.Jc);var sod=[3,4],jo_=[5,6];var w8V=[0,sod,jo_,_.MR,-1,_.Jl,_.qR,-1,OzV,Qfw];var Al7=_.WV(my,w8V),JlV=_.yv(w8V);var FJn=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(FJn,_.Jc);var ZiY=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(ZiY,_.Jc);var clb=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(clb,_.Jc);var YvP=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(YvP,_.Jc);var z5M=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(z5M,_.Jc);var WJ=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(WJ,_.Jc);WJ.prototype.getSource=function(){return _.p5(this,1)};
WJ.prototype.getMessage=function(){return _.$v(this,4)};
WJ.prototype.getData=function(){return _.zf(this,z5M,8)};var MMU=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(MMU,_.Jc);var NJ=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(NJ,_.Jc);var bt=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(bt,_.Jc);var Ey=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(Ey,_.Jc);Ey.prototype.getUrl=function(){return _.$v(this,1)};
Ey.prototype.setUrl=function(H){return _.XA(this,1,H)};
Ey.prototype.hasUrl=function(){return _.E_(_.eC(this,1))!=null};var qvV=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(qvV,_.Jc);var T17=[3];var me7=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(me7,_.Jc);var eB=function(H){var C=new me7;return _.qz(C,2,H)};
me7.prototype.getLanguage=function(){return hC(this,4,ut)};
var WJ1=function(H){var C=eB(1);return _.vV(C,6,ut,H)},ut=[3,
4,5,6];var yl_=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(yl_,_.Jc);var Gj=function(H){var C=new yl_;return _.qz(C,1,H)},fo=function(H,C){return _.vV(H,2,N1d,C)},N1d=[2,
3,4,5];var bi7=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(bi7,_.Jc);var vJ=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(vJ,_.Jc);var ESb=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(ESb,_.Jc);var e5V=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(e5V,_.Jc);var uib=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(uib,_.Jc);var GlP=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(GlP,_.Jc);var fsn=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(fsn,_.Jc);var lt=function(H){return _.zf(H,bt,5)};var vSP=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(vSP,_.Jc);vSP.prototype.getValue=function(){return dO(this,1)};var lsP=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(lsP,_.Jc);var Vt=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(Vt,_.Jc);Vt.prototype.getMetadata=function(){return _.n5(this,uib,7,o4)};
Vt.prototype.hasMetadata=function(){return _.Gt(this,uib,7,o4)};
var VMY=_.thp(Vt),o4=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var Oy=function(H){this.JSC$12036_name_=H;this.files_=[];this.directories_=[];this.directoryMap_={}};
Oy.prototype.getName=function(){return this.JSC$12036_name_};var Qt=function(H,C){this.callback_=C;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new Oy("");oSd(this,H,this.rootDirectory_);XO(this)},oSd=function(H,C,S){for(var w=0;w<C.length;w++){var A=C[w];
A.isFile?(H.fileOps_++,A.file((0,_.Xv)(H.handleFileSuccess_,H,S),(0,_.Xv)(H.handleFileError_,H))):H.unscannedDirectories_.push(new OiY(A,S))}},XO=function(H){if(H.unscannedDirectories_.length>0&&H.directoryOps_<5&&!H.hasError_){H.directoryOps_++;
var C=H.unscannedDirectories_.shift(),S=C.entry,w=new Oy(S.name);C=C.parent;C.directoryMap_[w.getName()]=w;C.directories_.push(w);S=S.createReader();S.readEntries((0,_.Xv)(H.handleDirectorySuccess_,H,S,w),(0,_.Xv)(H.handleDirectoryError_,H))}H.directoryOps_!=0||H.fileOps_!=0||H.unscannedDirectories_.length!=0&&!H.hasError_||H.callback_(H.rootDirectory_.files_,H.rootDirectory_.directories_,H.hasError_)};
Qt.prototype.handleDirectorySuccess_=function(H,C,S){oSd(this,S,C);S.length==0?(this.directoryOps_--,XO(this)):H.readEntries((0,_.Xv)(this.handleDirectorySuccess_,this,H,C),(0,_.Xv)(this.handleDirectoryError_,this))};
Qt.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;XO(this)};
Qt.prototype.handleFileSuccess_=function(H,C){H.files_.push(C);this.fileOps_--;XO(this)};
Qt.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;XO(this)};
var OiY=function(H,C){this.entry=H;this.parent=C};var dZ=function(H){_.ph.call(this);_.PI(H,"drop",this.onObjectsDropped_,!1,this);_.PI(H,"dragenter",this.onFilesDragged_,!1,this);_.PI(H,"dragover",this.onFilesDragged_,!1,this);_.PI(H,"dragleave",this.onDragLeave_,!1,this);_.PI(H,"dragend",this.onDragLeave_,!1,this)};
_.Zh(dZ,_.ph);var X8M=function(H,C){_.Xc.call(this,"f");this.files=H;this.directories=C};
_.Zh(X8M,_.Xc);var QoW=function(){_.Xc.call(this,"h")};
_.Zh(QoW,_.Xc);var deY=function(){_.Xc.call(this,"i")};
_.Zh(deY,_.Xc);var P7n=function(){_.Xc.call(this,"g")};
_.Zh(P7n,_.Xc);dZ.prototype.onObjectsDropped_=function(H){var C=this;H.preventDefault();var S=H.event_.dataTransfer;if((H=S&&S.items)&&H.length>0&&H[0].webkitGetAsEntry){S=[];for(var w=[],A=0;A<H.length;A++){var J=H[A].webkitGetAsEntry();J?S.push(J):w.push(H[A])}new Qt(S,function(c,Y,M){M?C.dispatchEvent(new P7n("Error occurred while reading from the file system.")):C.dispatchEvent(new X8M(c,Y,w))})}else(H=S&&S.files)&&this.dispatchEvent(new X8M(Array.from(H),[]))};
dZ.prototype.onFilesDragged_=function(H){H.type==="dragenter"&&this.dispatchEvent(new QoW);H.preventDefault()};
dZ.prototype.onDragLeave_=function(){this.dispatchEvent(new deY)};var $e7=function(H,C){this.JSC$12059_name_=H;this.inputElement_=C};
$e7.prototype.getName=function(){return this.JSC$12059_name_};
$e7.prototype.getInputElement=function(){return this.inputElement_};var PJ=function(H,C,S){C=C===void 0?"single_file":C;S=S===void 0?[]:S;_.ph.call(this);this.overlayTarget_=H;this.parentOverlay_=H!=null?H.parentNode:_.GZ("scotty-overlay-parent");this.selectorType_=C;this.acceptTypes_=S;this.overlay_=p8n(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.G(PJ,_.ph);
var p8n=function(H,C,S,w){var A=document.createElement("input");A.setAttribute("type","file");A.setAttribute("name","Filedata");_.PI(A,"change",H.onFilesSelected_,!1,H);S==="multiple_file"&&(A.multiple="true");S==="single_directory"&&(A.webkitdirectory="true");w.length>0&&A.setAttribute("accept",w.join(","));A.style.position="absolute";A.style.overflow="hidden";A.style.height="0px";A.style.width="0px";A.style.opacity="0";A.setAttribute("aria-hidden","true");A.setAttribute("tabIndex",-1);if(H.overlayTarget_!=
null)return A.style.height=C.offsetHeight+"px",A.style.width=C.offsetWidth+"px",H.parentOverlay_&&(H.parentOverlay_.style.position="relative"),_.Li(A,C),xS(A,new _.rx(C.offsetLeft,C.offsetTop)),A;H.parentOverlay_.appendChild(A);return A};
PJ.prototype.click=function(){this.overlay_.click()};
PJ.prototype.onFilesSelected_=function(H){a:{try{var C=(new XMLHttpRequest).upload!==void 0;break a}catch(m){}C=!1}if(C){var S;H=Array.from((S=H.target.files)!=null?S:[]);S=[];if(this.selectorType_==="single_directory"&&(_.Tt||jk||_.qy)){S=new Oy("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(C=0;C<H.length;C++)for(var w=H[C],A=w.webkitRelativePath.split("/"),J=S,c=0;c<A.length;c++){var Y=A[c];if(c==A.length-1){Y!="."&&J.files_.push(w);break}var M=J.directoryMap_[Y];M==void 0&&(Y=
M=new Oy(Y),J.directoryMap_[Y.getName()]=Y,J.directories_.push(Y));J=M}S=S.directories_}this.dispatchEvent(new kld(H,S,null))}else H=H.target.value,H.match(/^c:\\fakepath\\/i)&&(H=H.substring(12)),this.dispatchEvent(new kld([],[],new $e7(H,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=p8n(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var kld=function(H,C){_.Xc.call(this,"j");this.files=H;this.directories=C};
_.G(kld,_.Xc);var h5b=function(H){this.uploadUrl_=H};var nSU=function(){_.ph.call(this)};
_.Zh(nSU,_.ph);var $H=function(H){_.Xc.call(this,H)};
_.Zh($H,_.Xc);var po=function(H){_.Xc.call(this,H)};
_.Zh(po,_.Xc);var rlM=function(H,C,S,w,A){_.ph.call(this);S=document.createElement("form");S.setAttribute("method",C);S.setAttribute("enctype","multipart/form-data");S.setAttribute("encoding","multipart/form-data");C=document.createElement("input");C.setAttribute("type","hidden");C.setAttribute("name","metadata");C.setAttribute("value",A);S.appendChild(C);S.appendChild(w);this.JSC$12076_form_=S;H=new _.jR(H);_.xJ(H,"upload_protocol","multipart");this.JSC$12076_url_=H.toString();this.JSC$12076_request_=new bD;this.state_=
"Ready";this.JSC$12076_errorDescription_=null;this.JSC$12076_eventHandler_=new _.qQ(this);_.Nx(this,this.JSC$12076_eventHandler_);this.JSC$12076_eventHandler_.listen(this.JSC$12076_request_,"success",this.onTransferSuccess_);this.JSC$12076_eventHandler_.listen(this.JSC$12076_request_,"error",this.onTransferError_)};
_.G(rlM,nSU);_.F=rlM.prototype;_.F.run=function(){this.state_="Transferring";var H=this.JSC$12076_request_,C=this.JSC$12076_form_;if(H.JSC$11494_active_)throw Error("se");var S=new _.jR(this.JSC$12076_url_||C.action);H.JSC$11494_form_=C;C=H.JSC$11494_form_;S=_.L9(S.toString());S!==void 0&&(C.action=S);TWM(H)};
_.F.getResponseCode=function(){return null};
_.F.getResponseText=function(){return this.JSC$12076_request_&&this.JSC$12076_request_.getResponseText()||null};
_.F.JSC$29526_getErrorDescription=function(){return this.JSC$12076_errorDescription_};
_.F.cancel=function(){this.JSC$12076_request_&&this.JSC$12076_request_.abort();this.state_="Cancelled";this.dispatchEvent(new $H("o"))};
_.F.pause=function(){};
_.F.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new $H("l"))};
_.F.onTransferError_=function(){this.JSC$12076_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new $H("n"))};var kH=function(){_.tS.call(this)};
_.G(kH,_.tS);kH.prototype.createXhr=function(){var H=_.tS.prototype.createXhr.call(this);H.upload&&(H.upload.onprogress=(0,_.Xv)(this.onProgress_,this));return H};
kH.prototype.onProgress_=function(H){this.dispatchEvent(H)};var B1M=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},KJY=function(H,C){var S=H.attempt_+1;
if(H.maxAttempts_>0&&S>H.maxAttempts_)return!1;S==0?C():H.delayCallId_=BC(function(){H.delayCallId_=null;C()},Ded(H),H);
H.attempt_=S;return!0};
B1M.prototype.reset=function(){this.delayCallId_&&_.s$.clearTimeout(this.delayCallId_);this.attempt_=-1};
var Ded=function(H){var C=250*Math.pow(2,H.attempt_);H.maxDelayMs_>=0&&(C=Math.min(C,H.maxDelayMs_));return C};var zq$=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var ho=function(){_.ph.call(this);this.JSC$12086_request_=this.state_=null;this.JSC$12086_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12086_bytesTransferred_=0;this.retryIterator_=new B1M;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12086_errorDescription_=null;this.JSC$12086_eventHandler_=new _.qQ(this);_.Nx(this,this.JSC$12086_eventHandler_);this.JSC$12086_url_=this.blob_=null;this.JSC$12086_method_=void 0;this.chunkSize_=this.JSC$12086_metadata_=
this.JSC$12086_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12086_responseText_=this.JSC$12086_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.Zh(ho,nSU);_.F=ho.prototype;_.F.run=function(){no(this)};
_.F.getResponseCode=function(){return this.JSC$12086_responseCode_};
_.F.getResponseText=function(){return this.JSC$12086_responseText_};
_.F.JSC$29526_getErrorDescription=function(){return this.JSC$12086_errorDescription_};
_.F.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12086_eventHandler_.removeAll();this.JSC$12086_request_&&this.JSC$12086_request_.abort();this.retryIterator_.reset();var H=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(H==="Upload"||H==="Query")H=new kH,H.JSC$9809_withCredentials_=this.JSC$12086_withCredentials_,H.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12086_bytesTransferred_=
0;this.dispatchEvent(new $H("o"))}};
_.F.pause=function(){this.pauseRequested_=!0};
var no=function(H){var C=H.state_;H.pauseRequested_?(H.pauseRequested_=!1,H.stateAfterUnpausing_=C,H.state_="Paused"):KJY(H.retryIterator_,function(){switch(H.state_){case "Start":H.JSC$12086_request_=new kH;var S=_.hb.clone(H.JSC$12086_headers_);H.blob_.size!=null&&(S["Content-Length"]=H.blob_.size);S=MiD(S);S["X-Goog-Upload-Protocol"]="resumable";S["X-Goog-Upload-Command"]="start";H.JSC$12086_eventHandler_.removeAll();H.JSC$12086_eventHandler_.listen(H.JSC$12086_request_,"complete",H.onStartComplete_);
H.JSC$12086_request_.JSC$9809_withCredentials_=H.JSC$12086_withCredentials_;H.JSC$12086_request_.send(H.JSC$12086_url_,H.JSC$12086_method_,H.JSC$12086_metadata_,S);H.lastCommandResponseCode_=null;H.dispatchEvent(new po("q"));break;case "Upload":S=H.transferHandle_.uploadUrl_;var w=H.blob_.size;if(trV()){var A=H.chunkSize_;var J=H.offset_+A>=w;w=KvY(H.blob_,H.offset_,J?w:H.offset_+A)}else H.offset_=0,w=H.blob_,J=!0;H.JSC$12086_request_=new kH;H.JSC$12086_request_.JSC$9809_withCredentials_=H.JSC$12086_withCredentials_;
H.JSC$12086_eventHandler_.removeAll();H.JSC$12086_eventHandler_.listen(H.JSC$12086_request_,"progress",H.onUploadProgress_);A=(0,_.Xv)(H.JSC$12088_onUploadComplete_,H,H.offset_+w.size,J);H.JSC$12086_eventHandler_.listen(H.JSC$12086_request_,"complete",A);H.lastCommandResponseCode_=null;H.dispatchEvent(new po("q"));J=Object.assign({},H.JSC$12086_headers_||{},{"X-Goog-Upload-Command":"upload"+(J?", finalize":""),"X-Goog-Upload-Offset":H.offset_});H.JSC$12086_request_.send(S,"POST",w,J);break;case "Query":H.JSC$12086_request_=
new kH;H.JSC$12086_eventHandler_.removeAll();H.JSC$12086_eventHandler_.listen(H.JSC$12086_request_,"complete",H.onQueryComplete_);S=Object.assign({},H.JSC$12086_headers_||{},{"X-Goog-Upload-Command":"query"});H.JSC$12086_request_.send(H.transferHandle_.uploadUrl_,"POST","",S);H.lastCommandResponseCode_=null;H.dispatchEvent(new po("q"));break;default:throw Error("hf");}})||rZ(H,"Transfer encountered too many consecutive failures.")},rZ=function(H,C){H.state_="Error";
H.JSC$12086_errorDescription_=C;H.dispatchEvent(new $H("n"))};
ho.prototype.onStartComplete_=function(H){var C=H.target;this.lastCommandResponseCode_=C.getStatus();this.dispatchEvent(new po("r"));if(tMd(C))LJW(this,C);else if(gSn(C)){H=SL(H.target.getAllResponseHeaders());for(var S in H)_.AV(S.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new $H("m"));S=pD(H,"X-Goog-Upload-URL");H=(H=pD(H,"X-Goog-Upload-Chunk-Granularity"))?parseInt(H,10):1;S===void 0||isNaN(H)||H<=0?rZ(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
H)*H,this.transferHandle_=new h5b(S),this.dispatchEvent(new $H("p")),this.state_="Upload",this.retryIterator_.reset(),no(this))}else no(this)};
ho.prototype.onUploadProgress_=function(H){this.JSC$12086_bytesTransferred_=this.offset_+H.loaded;this.dispatchEvent(new $H("k"))};
ho.prototype.JSC$12088_onUploadComplete_=function(H,C,S){var w=this,A,J;return _.z(function(c){switch(c.nextAddress){case 1:A=S.target;w.lastCommandResponseCode_=A.getStatus();w.dispatchEvent(new po("r"));if(Ueb(A)||A.getStatus()==404)return w.JSC$12086_bytesTransferred_=H,LJW(w,A),c.return();if(gSn(A)){c.jumpTo(2);break}if(!(J=w.detectCorruptedBlobEnabled_)){c.jumpTo(3);break}return c.yield(R5b(w),4);case 4:J=c.yieldResult;case 3:if(J)return rZ(w,"Blob has been modified or corrupted."),c.return();
w.requireUploadRequestModification_=A.getStatus()==400;w.state_="Query";no(w);return c.return();case 2:if(C)return rZ(w,"Got a non-final success response after issuing a finalize command."),c.return();w.JSC$12086_bytesTransferred_=H;w.offset_=H;w.retryIterator_.reset();no(w);return c.return()}})};
ho.prototype.onQueryComplete_=function(H){var C=H.target;this.lastCommandResponseCode_=C.getStatus();this.dispatchEvent(new po("r"));tMd(C)?(C.getStatus()===200&&(this.JSC$12086_bytesTransferred_=this.blob_.size),LJW(this,C)):gSn(C)?(H=SL(H.target.getAllResponseHeaders()),H=parseInt(pD(H,"X-Goog-Upload-Size-Received"),10),isNaN(H)?rZ(this,"Server did not respond with current offset."):H<this.offset_?rZ(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
H+"."):this.requireUploadRequestModification_&&this.offset_===H?rZ(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<H&&this.retryIterator_.reset(),this.offset_=this.JSC$12086_bytesTransferred_=H,this.state_="Upload",no(this))):no(this)};
var LJW=function(H,C){H.JSC$12086_responseCode_=C.getStatus();var S=SL(C.getAllResponseHeaders());qNZ(S);H.JSC$12086_responseText_=C.getResponseText();H.state_="Response received";H.dispatchEvent(new $H("l"))},gSn=function(H){var C=H.getStatus();
H=SL(H.getAllResponseHeaders());H=pD(H,"X-Goog-Upload-Status");return C===200&&H==="active"},Ueb=function(H){H=SL(H.getAllResponseHeaders());
return pD(H,"X-Goog-Upload-Status")==="final"},tMd=function(H){if(Ueb(H))return!0;
H=H.getStatus();return H>=400&&H<500},R5b=function(H){var C;
return _.z(function(S){if(S.nextAddress==1){if(!H.blob_||H.originalBlobSize_<=0)return S.return(!1);if(H.blob_.size!==H.originalBlobSize_)return S.return(!0);_.en(S,2);if(C=KvY(H.blob_,0,1)){var w=S.yield,A=new sQ,J=vzY(A);A.reader_.readAsBinaryString(C);S=w.call(S,J,4)}else S=S.return(!0);return S}if(S.nextAddress!=2)return S.return(H.blob_.size!==H.originalBlobSize_);_.Vx(S);return S.return(!0)})};var IsU=function(H,C,S,w,A,J){_.ph.call(this);this.payload_=w;this.JSC$12089_url_=H;this.JSC$12089_method_=C;this.JSC$12089_headers_=S;this.JSC$12089_metadata_=A;this.encoding_=J||"binary";H=new _.DJ;this.boundary_="uploader-"+R7()+"-"+H.JSC$11343_toIsoString();this.JSC$12089_responseText_=this.JSC$12089_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12089_errorDescription_=null;this.JSC$12089_eventHandler_=new _.qQ(this);_.Nx(this,this.JSC$12089_eventHandler_)};
_.G(IsU,nSU);_.F=IsU.prototype;
_.F.run=function(){var H=_.hb.clone(this.JSC$12089_headers_);this.payload_.length!=null&&(H["Content-Length"]=this.payload_.length);H=MiD(H);H["X-Goog-Upload-Protocol"]="multipart";H["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new kH;this.JSC$12089_eventHandler_.removeAll();this.JSC$12089_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12089_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12089_url_,this.JSC$12089_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12089_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",H)};
_.F.getResponseCode=function(){return this.JSC$12089_responseCode_};
_.F.getResponseText=function(){return this.JSC$12089_responseText_};
_.F.JSC$29526_getErrorDescription=function(){return this.JSC$12089_errorDescription_};
_.F.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12089_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new $H("o")))};
_.F.pause=function(){};
_.F.onTransferProgress_=function(){this.dispatchEvent(new $H("k"))};
_.F.onTransferComplete_=function(H){var C=H.target.getStatus();C===void 0||C===-1?(this.JSC$12089_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new $H("n"))):(this.JSC$12089_responseCode_=C,H=H.target,C=SL(H.getAllResponseHeaders()),qNZ(C),this.JSC$12089_responseText_=H.getResponseText(),this.state_="Complete",this.dispatchEvent(new $H("l")))};_.as7=function(H,C,S,w){w=w===void 0?!1:w;if(S instanceof $e7)return new rlM(H,"POST",C,S.getInputElement(),"");if(typeof S==="string"||S instanceof String)return new IsU(H,"POST",C,S,"");var A=new ho(void 0);A.JSC$12086_url_=H;A.JSC$12086_method_="POST";A.JSC$12086_headers_=C;A.blob_=S;A.originalBlobSize_=S.size;A.JSC$12086_metadata_="";w&&(A.JSC$12086_withCredentials_=w);A.state_="Start";return A};var BJ=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(BJ,_.Jc);_.F=BJ.prototype;_.F.getEnableSsEngine=function(){return _.QK(this,2)};
_.F.getEnableAwr=function(){return _.QK(this,3)};
_.F.getAlohaAutoGaRollout=function(){return _.QK(this,5)};
_.F.getEnableConfigurator=function(){return _.QK(this,6)};
_.F.getEnableMweb=function(){return _.QK(this,7)};
var Hhn=function(){var H=xeU();return _.hJ(H,7,!0)};
BJ.prototype.getEnableCtlConsentCheckbox=function(){return _.QK(this,8)};
BJ.prototype.getEnableIframe=function(){return _.QK(this,9)};
var xeU=function(){var H=new BJ;H=_.hJ(H,5,!0);H=_.hJ(H,2,!0);H=_.hJ(H,4,!1);H=_.hJ(H,8,!0);return _.hJ(H,9,!0)};
BJ.prototype.getEnableScreenshotNudge=function(){return _.QK(this,10)};
var ihV=function(){var H=Hhn();return _.hJ(H,10,!0)};
BJ.prototype.getEnableWebStartupConfigEndpoint=function(){return _.QK(this,11)};
BJ.prototype.getEnableJunkNudge=function(){return _.QK(this,12)};
var dg$=function(){var H=ihV();return _.hJ(H,12,!0)};
_.F=BJ.prototype;_.F.getEnableConfiguratorLocale=function(){return _.QK(this,13)};
_.F.getEnableTinyNoPointer=function(){return _.QK(this,14)};
_.F.getEnableSupportSessionLogging=function(){return _.QK(this,15)};
_.F.getEnableFileUploadForScreenshot=function(){return _.QK(this,16)};
_.F.getEnableDirectDeflectionForSingleCategory=function(){return _.QK(this,17)};
_.F.getEnableImageSanitization=function(){return _.QK(this,18)};
_.F.getEnableAlohaBinarySplit=function(){return _.QK(this,19)};
_.F.getEnableDbFeedbackIntents=function(){return _.QK(this,20)};
_.F.getEnableMarkMandatoryFieldsWithRequired=function(){return _.QK(this,21)};
_.F.getEnableFeedbackCategoryCustomUi=function(){return _.QK(this,22)};
_.F.getEnableRealtimeCtl=function(){return _.QK(this,23)};var QSi=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(QSi,_.Jc);var T57=[/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 WiZ="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 y7V=_.xC(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),N50=_.xC(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var EUE,G$7,eqw,fxW;var Cw7,Swd;
Cw7=function(H,C,S){H.timeOfStartCall=(new Date).getTime();var w=S||_.s$,A=w.document,J=H.nonce||_.Sn(w.document);J&&!H.nonce&&(H.nonce=J);if(H.flow=="help"){var c=_.gh("document.location.href",w);!H.helpCenterContext&&c&&(H.helpCenterContext=c.substring(0,1200));c=!0;if(C&&JSON&&JSON.stringify){var Y=JSON.stringify(C);(c=Y.length<=1200)&&(H.psdJson=Y)}c||(C={invalidPsd:!0})}C=[H,C,S];w.GOOGLE_FEEDBACK_START_ARGUMENTS=C;S=H.feedbackServerUri||"//www.google.com/tools/feedback";if(c=w.GOOGLE_FEEDBACK_START)c.apply(w,C);
else{w=S+"/load.js?";for(var M in H)C=H[M],C==null||_.U$(C)||(w+=encodeURIComponent(M)+"="+encodeURIComponent(C)+"&");H=Ol(A).createElement("SCRIPT");J&&H.setAttribute("nonce",J);_.JY(H,_.Ot(w));A.body.appendChild(H)}};
Swd=function(H,C,S,w){var A,J;_.z(function(c){A=S||_.s$;var Y=H.serverEnvironment==="DEV",M=S||_.s$;M=H.nonce||_.Sn(M.document);Y={integrationKeys:{productId:H.productId,feedbackBucket:H.bucket,triggerId:H.triggerId},callbacks:{onClose:H.callback,onLoad:H.onLoadCallback},formContent:{locale:H.locale,disableScreenshot:H.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:H.abuseLink,additionalDataConsent:H.additionalDataConsent},initializationData:{isLocalServer:Y,nonce:M,useNightlyRelease:Y,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:H.feedbackServerUri,colorScheme:H.colorScheme},extraData:{productVersion:H.productVersion,authUser:H.authuser,configuratorId:H.configuratorId,customZIndex:H.customZIndex,tinyNoPointer:H.tinyNoPointer,
allowNonLoggedInFeedback:H.allowNonLoggedInFeedback,enableAnonymousFeedback:H.enableAnonymousFeedback}};C&&(M=new Map(Object.entries(C)),Y.extraData.productSpecificData=M);J=Y;return c.yield(oU7(J,w,A),0)})};
_.sY7=function(H,C,S){try{if(H.flow==="help"){var w=H.helpCenterPath.replace(/^\//,"");_.CM(S||window,"https://support.google.com/"+w)}else H.flow==="submit"?Cw7(H,C,S):PM7(H.productId,H.feedbackServerUri).then(function(A){A=_.zf(A,BJ,1);var J=!UYW||(A==null?void 0:A.getEnableMweb()),c=!H.tinyNoPointer||(A==null?void 0:A.getEnableTinyNoPointer());!A||A.getAlohaAutoGaRollout()&&J&&c?Swd(H,C,S,A):Cw7(H,C,S)},function(A){A&&A.name!=="DuplicateFormError"&&Cw7(H,C,S)})}catch(A){Swd(H,C,S,null)}};
_.AO("userfeedback.api.startFeedback",_.sY7);var $g0=/https?:\/\/\S+\.\S+/,p4V=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],k$6=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var Jui=function(H){var C=H.split(""),S=[-263237435,15,C,function(w,A,J){var c=A.length;J.forEach(function(Y,M,m){this.push(m[M]=A[(A.indexOf(Y)-A.indexOf(this[M])+M+c--)%A.length])},w.split(""))},
function(w,A){w=(w%A.length+A.length)%A.length;A.splice(-w).reverse().forEach(function(J){A.unshift(J)})},
"response",function(){for(var w=64,A=[];++w-A.length-32;){switch(w){case 58:w-=14;case 91:case 92:case 93:continue;case 123:w=47;case 94:case 95:case 96:continue;case 46:w=95}A.push(String.fromCharCode(w))}return A},
null,12,1540023973,65941107,null,C,function(w,A){for(w=(w%A.length+A.length)%A.length;w--;)A.unshift(A.pop())},
695603893,function(w){for(var A=w.length;A;)w.push(w.splice(--A,1)[0])},
"'[;'[(",function(w,A){w.push(A)},
null,function(w,A,J,c,Y){return A(J,c,Y)},
"continuation",C,function(w,A){if(w.length!=0){A=(A%w.length+w.length)%w.length;var J=w[0];w[0]=w[A];w[A]=J}},
function(){for(var w=64,A=[];++w-A.length-32;){switch(w){case 91:w=44;continue;case 123:w=65;break;case 65:w-=18;continue;case 58:w=96;continue;case 46:w=95}A.push(String.fromCharCode(w))}return A},
'"),/]];'];S[7]=S;S[11]=S;S[18]=S;try{(((0,S[15])(S[21]),S[22])(S[11],S[9]),S[22])(S[new Date("1970-01-01T04:30:12.000+04:30")/1E3],S[1]),((0,S[22])(S[11],S[23]),S[4])(S[10],S[18]),(0,S[20])(S[21],S[14])<<(0,S[17])(S[18],S[1]),(0,S[4])(S[8],S[21]),(0,S[19])((0,S[19])((0,S[17])(S[7],S[9]),S[3],S[20],(0,S[6])(),S[2]),S[3],S[5],(0,S[15])(),S[2])}catch(w){return"aTlOUOubTO4AP____8P_"+H}return C.join("")};_.jY1=new _.mi("runAttestationCommand");var wC_=new _.mi("verifyCommand");_.VB=new _.mi("accessibilityContext");var ASY=new _.mi("accessibilityData");var JSU=new _.mi("profileCardCommand");var MXE=new _.mi("signInEndpoint");var zT7=new _.mi("signOutEndpoint");var ZhP;_.FaW=new _.mi("accountItemSectionRenderer");ZhP=new _.mi("accountItemRenderer");_.cSM=new _.mi("saveCommandToSessionStorageAction");var Ywi=new _.mi("crossAccountChannelTransferEndpoint");var FZw=new _.mi("getAccountMenuEndpoint");_.ZY0=new _.mi("getAccountSwitcherEndpoint");var JRw=new _.mi("getAccountsListEndpoint");var zwW=new _.mi("getAccountsListInnertubeEndpoint");_.D6=new _.mi("addToToastAction");var MQn=new _.mi("hideEnclosingAction");_.Ko=new _.mi("replaceEnclosingAction");var qwP=new _.mi("buttonRefreshAction");var TLn=new _.mi("adsControlFlowOpportunityReceivedCommand");var mRU=new _.mi("openAdAllowlistInstructionCommand");var Wan=new _.mi("videoMastheadAdPrimaryVideoRenderer");var ySd=new _.mi("displayAdRenderer");_.NLP=new _.mi("inFeedAdLayoutRenderer");var bh1=new _.mi("sequenceItemInPlayerAdLayoutRenderer");_.EcW=new _.mi("adSlotRenderer");var ewP=new _.mi("adAvatarViewModel");var ucV=new _.mi("adBadgeViewModel");var G41=new _.mi("adButtonViewModel");var fNM=new _.mi("adImageViewModel");var l8U=new _.mi("reelsAdCardButtonedViewModel");var vc1=new _.mi("reelsPlayerOverlayLayoutViewModel");var lNY=new _.mi("showSchedulingPanelCommand");var VQ7=new _.mi("backstageCommentsRenderer");var oc7=new _.mi("backstageImageRenderer");var OhU=new _.mi("backstagePostRenderer");var XC1=new _.mi("backstageZeroStateRenderer");var QYW=new _.mi("postRenderer");var dRb=new _.mi("sharedPostRenderer");var PwY=new _.mi("createBackstagePostEndpoint");var $R_=new _.mi("getPostVideoPreviewEndpoint");var pCd=new _.mi("updateBackstagePostEndpoint");var k4M=new _.mi("filterChipTransformCommand");var hwn=new _.mi("insertRichSectionCommand");var uaZ=new _.mi("talkToRecsDeselectCommand");var ncb=new _.mi("talkToRecsNextCommand");var eED=new _.mi("talkToRecsSelectCommand");var rSd=new _.mi("talkToRecsUpdateTextCommand");_.vU=new _.mi("browseEndpoint");_.BL7=new _.mi("confirmDialogEndpoint");var DR7=new _.mi("expandOnHoverCardRenderer");var KaM=new _.mi("lumiereShelfDetailsRenderer");var tQ_=new _.mi("revealBusinessEmailCommand");var LaY=new _.mi("validateChannelHandleCommand");var gcP=new _.mi("channelCreationFormEndpoint");var UR7=new _.mi("aboutChannelViewModel");var Rwi=new _.mi("channelThumbnailWithLinkRenderer");var IN1=new _.mi("channelCreationServiceEndpoint");var aN7=new _.mi("updateChannelPageSettingsEndpoint");var to=function(H){this.delegate=H},Lo=function(){to.apply(this,arguments)};
_.G(Lo,to);_.JJ.Object.defineProperties(Lo.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(H){this.delegate.entityMetadata=H}}});var xR1=function(){Lo.apply(this,arguments)};
_.G(xR1,Lo);xR1.prototype.getAssociations=function(){return[]};
xR1.prototype.getTypeName=function(){return"channelHandle"};var MYp=new _.mi("webThumbnailDetailsExtensionData");var OkZ=new _.mi("commandContext");var Hqd=new _.mi("addVideoLinkAction");var iqP=new _.mi("banAuthorAction");var C0Y=new _.mi("createCommentAction");var S2d=new _.mi("createCommentReplyAction");var sBY=new _.mi("createPollAction");var jB_=new _.mi("hideIdentityChipAction");var ww1=new _.mi("openUpdateCommentDialogAction");var Ay7=new _.mi("pinCommentAction");var Jyi=new _.mi("removeCommentAction");var Fhi=new _.mi("unpinCommentAction");var gZ=new _.mi("updateBackstagePollAction");var Zq1=new _.mi("updateCommentVoteAction");var cy7=new _.mi("commentThreadRenderer");var Y21=function(){Lo.apply(this,arguments)};
_.G(Y21,Lo);Y21.prototype.getAssociations=function(){return[]};
Y21.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var zL7=function(){Lo.apply(this,arguments)};
_.G(zL7,Lo);zL7.prototype.getAssociations=function(){return[]};
zL7.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.MKb=new _.mi("commentDialogRenderer");var q2V=new _.mi("reloadCommentsCommand");var TaY=new _.mi("updateCommentsSettingsEndpoint");var mLM=new _.mi("commentViewModel");var Wh7=new _.mi("triStateButtonViewModel");var yyY=new _.mi("voiceReplyContainerViewModel");_.b9=new _.mi("commandExecutorCommand");var D5=new _.mi("emoji");var Nad=new _.mi("updateCreatorChannelInnertubeCommand");_.bq7=new _.mi("appendContinuationItemsAction");_.EVd=new _.mi("changeEngagementPanelVisibilityAction");_.UU=new _.mi("continuationCommand");var eLd=new _.mi("hideReportedCommentAction");var us1=new _.mi("listMutationCommand");_.Uy=new _.mi("openPopupAction");var Ga7=new _.mi("persistSubscriptionsDisplayPreferencesCommand");var QBU;_.fKi=new _.mi("playlistRemoveVideosAction");_.vVM=new _.mi("updatePlaylistAction");_.lKU=new _.mi("addToPlaylistCommand");_.VKU=new _.mi("endPlaylistCommand");_.oVM=new _.mi("recoverPlaylistCommand");_.OqY=new _.mi("refreshPlaylistCommand");_.Xw7=new _.mi("refreshFormCommand");QBU=new _.mi("openOnePickAddVideoModalCommand");_.TqZ=new _.mi("reloadContinuationItemsCommand");_.dL_=new _.mi("scrollToEngagementPanelCommand");var P0P=new _.mi("selectCountryCommand");var $LV=new _.mi("showReloadUiCommand");var pwV=new _.mi("undoFeedbackAction");var ka_=new _.mi("updateButtonAction");var hL7=new _.mi("updateSubscribeButtonAction");var nVU=new _.mi("updateToggleAction");var ryV=new _.mi("webNativeShareCommand");_.u9=new _.mi("webCommandMetadata");_.R4=new _.mi("webHandleServiceEndpointExtension");var ZyE=new _.mi("webNavigationEndpointData");var Bai=new _.mi("backgroundAudioPlaybackCommand");var DLd=new _.mi("copyLinkCommand");var KhM=new _.mi("playlistVotingRefreshPopupCommand");var tKW=new _.mi("selectChipCommand");var LhP=new _.mi("setCookieCommand");var gVd=new _.mi("setLocalStorageCommand");var ULM=new _.mi("setPrefStorageEntryCommand");var xLP;_.RLP=new _.mi("settingsUpdateCheckboxCommand");_.IKM=new _.mi("settingsUpdateTextCommand");_.aK7=new _.mi("settingsUpdateOptionsCommand");xLP=new _.mi("settingsUpdateSwitchCommand");_.H3V=new _.mi("settingsUpdateConnectedAppRendererCommand");var i37=new _.mi("showCreatorChatbotEngagementPanelCommand");var CMY=new _.mi("updateTextInputFormFieldRendererCommand");var SNY=new _.mi("updateToggleButtonStateCommand");var sSn=new _.mi("updateUrlParamCommand");var jS7=new _.mi("webSubmitFormCommand");var w4U=new _.mi("channelSwitcherPageRenderer"),A7Y=new _.mi("updateChannelSwitcherPageAction");_.S9=new _.mi("continuationItemRenderer");_.I4=new _.mi("richItemRenderer");var J7i=new _.mi("richSectionRenderer");_.Fib=new _.mi("richShelfRenderer");_.Z3_=new _.mi("metadataBadgeRenderer");_.c7U=new _.mi("multiPageMenuNotificationSectionRenderer");_.YN7=new _.mi("playlistLoopButtonStateRenderer");var zqn=new _.mi("claimLegacyYoutubeChannelEndpoint");var Mii=new _.mi("getNotificationMenuEndpoint");var qN7=new _.mi("getSearchInVideoCommand");_.T5b=new _.mi("getTranscriptEndpoint");_.eR=new _.mi("signalServiceEndpoint");var mgd=new _.mi("verifyAgeEndpoint");var cui=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(cui,_.Jc);cui.prototype.getPath=function(){return _.$v(this,1)};
cui.prototype.getValue=function(){return _.$v(this,2)};var Wi7=[0,_.sv,-1];var y7_=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(y7_,_.Jc);var Zau=_.WV(y7_,[0,_.Al,Wi7]);var N5V=new _.mi("dismissalEndpoint");var b3W=new _.mi("elementsCommand");_.tx=new _.mi("innertubeCommand");var EU1=new _.mi("multipleInlinePlaybackCommand");var g7i=new _.mi("loggingDirectives");var eq1=new _.mi("acknowledgeChannelTouStrikeCommand");var uUi=function(){Lo.apply(this,arguments)};
_.G(uUi,Lo);uUi.prototype.getAssociations=function(){return[]};
uUi.prototype.getTypeName=function(){return"booleanEntity"};var G$b=function(){Lo.apply(this,arguments)};
_.G(G$b,Lo);G$b.prototype.getAssociations=function(){return[]};
G$b.prototype.getTypeName=function(){return"stringEntity"};var s5=new _.mi("entityBatchUpdate");_.fxd=new _.mi("entityUpdateCommand");var vU1=function(){Lo.apply(this,arguments)};
_.G(vU1,Lo);vU1.prototype.getAssociations=function(){var H=[];this.delegate.alternateChannel&&H.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&H.push.apply(H,_.k$(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&H.push(this.delegate.oneofChannelEntity);return[].concat(_.k$(new Set(H)))};
vU1.prototype.getTypeName=function(){return"fakeChannel"};var lxb=function(){Lo.apply(this,arguments)};
_.G(lxb,Lo);lxb.prototype.getAssociations=function(){var H=[];this.delegate.entryCollection&&H.push(this.delegate.entryCollection);return[].concat(_.k$(new Set(H)))};
lxb.prototype.getTypeName=function(){return"fakePlaylist"};
var Vid=function(){Lo.apply(this,arguments)};
_.G(Vid,Lo);Vid.prototype.getAssociations=function(){var H=[];this.delegate.parentPlaylist&&H.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var C=_.Z(this.delegate.entries),S=C.next();!S.done;S=C.next())H.push.apply(H,_.k$((new oUb(S.value)).getAssociations()));return[].concat(_.k$(new Set(H)))};
Vid.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var oUb=function(){to.apply(this,arguments)};
_.G(oUb,to);oUb.prototype.getAssociations=function(){var H=[];this.delegate.video&&H.push(this.delegate.video);return[].concat(_.k$(new Set(H)))};var O3W=function(){Lo.apply(this,arguments)};
_.G(O3W,Lo);O3W.prototype.getAssociations=function(){var H=[];this.delegate.descriptionEntity&&H.push(this.delegate.descriptionEntity);this.delegate.creators&&H.push.apply(H,_.k$(this.delegate.creators));this.delegate.theBiggestFan&&H.push(this.delegate.theBiggestFan);return[].concat(_.k$(new Set(H)))};
O3W.prototype.getTypeName=function(){return"fakeVideo"};
var X47=function(){Lo.apply(this,arguments)};
_.G(X47,Lo);X47.prototype.getAssociations=function(){return[]};
X47.prototype.getTypeName=function(){return"fakeVideoDescription"};var QSY=new _.mi("fantasyRosterViewModel");var dgn=new _.mi("addFollowUpSurveyCommand");var PMb=new _.mi("getSurveyCommand");var $gV=new _.mi("ratingSurveyOptionRenderer");_.dR=new _.mi("feedbackEndpoint");var p4_=new _.mi("reportHistoryTableCellRenderer"),k$d=new _.mi("reportHistoryTableTextCellRenderer"),hqd=new _.mi("reportHistoryTableReasonCellRenderer");_.nUn=new _.mi("flagEndpoint");var r7d=new _.mi("getFlowCommand");var B51=new _.mi("submitFormWithValidationFlowCommand");var DgV=function(){Lo.apply(this,arguments)};
_.G(DgV,Lo);DgV.prototype.getAssociations=function(){return[]};
DgV.prototype.getTypeName=function(){return"flowStateEntity"};var Kib=new _.mi("flowFormState");var ti1=new _.mi("gameCardRenderer");var Li7=new _.mi("accountLinkingStateChangedCommand");var gUU=function(){Lo.apply(this,arguments)};
_.G(gUU,Lo);gUU.prototype.getAssociations=function(){return[]};
gUU.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var UgM=new _.mi("changeMiniAppPlayStateCommand");var RqM=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(RqM,_.Jc);var a4=[1,2,3];var IxM=[0,a4,vOE,_.w1,bzU];var axb=_.WV(RqM,IxM),xg7=_.yv(IxM);var HHd=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(HHd,_.Jc);var iH_=[0,_.as,_.sv];var CkY=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(CkY,_.Jc);var SSd=[0,_.sv,_.as,-1];var xH=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(xH,_.Jc);var sFW=_.yv([0,1,iH_,_.Fi,SSd]);var jFW=new _.mi("miniAppScoreChallengeViewModel");var wWb=new _.mi("miniGameCardViewModel");var AiU=new _.mi("teaserCardViewModel");var Ji7=function(){Lo.apply(this,arguments)};
_.G(Ji7,Lo);Ji7.prototype.getAssociations=function(){return[]};
Ji7.prototype.getTypeName=function(){return"logoEntity"};var F97=new _.mi("feedbackItemRenderer");var ZHd=function(){Lo.apply(this,arguments)};
_.G(ZHd,Lo);ZHd.prototype.getAssociations=function(){return[]};
ZHd.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.ci7=new _.mi("playerInterstitialRenderer");var YSd=new _.mi("getKidsBlocklistPickerCommand");_.zJd=new _.mi("updateKidsBlacklistEndpoint");_.DB=new _.mi("likeEndpoint");var Mv1,qSn,Ted;Mv1=new _.mi("addChatItemAction");qSn=new _.mi("removeChatItemAction");Ted=new _.mi("markChatItemAsDeletedAction");_.mZd=new _.mi("setLiveChatCollapsedStateAction");var W97=function(){Lo.apply(this,arguments)};
_.G(W97,Lo);W97.prototype.getAssociations=function(){return[]};
W97.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var yiP=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(yiP,_.Jc);var NeM=[0,_.Al,[0,[1,2],_.w1,_.Jl,[0,_.jM,1,_.jM]]];var bH_=[0,_.sv,-1];var Egd=[0,[1],_.w1];var Hg=[0,[1,2],_.w1,_.Jl,[0,_.Fi]];var i3=[0,_.sv];var eJd=[0,[0,_.Ci,_.i7,[0,_.jM,_.Zs,_.jM]],1,[0,_.Ci]];var uLM=[0,xv];var GT1=[0,xv];var fJ7=[0,GT1,uLM];var vgn=[0,_.Al,[0,[1,2],_.w1,-1],_.Ci];var lJM=[0,[2],1,_.Jl,[0,_.jM,-1,vgn]];var VvP=[0,[1],_.Jl,[0,_.jM,_.sv,_.Zs,1,vgn]];var ogM=[0,_.i7,-1,Nb6,_.Fi];var OHn=[0,[0,Is,-3],-4];var CO=[0,_.Ci,-3,_.sv,_.Ci,_.MR,_.Ci,NeM,_.Ci,-2];var Sf=[0,_.Al,[0,[1,2],_.w1,-1],_.Ci,_.sv];var XWb=[0,[3],Hg,[0,[2,3,4],dXp,_.w1,-2],_.Jl,[0,_.sv],_.as];var QFn=[0,[3,5],_.sv,H8,_.Jl,[0,1,_.as,_.Fi],_.Fi,_.Jl,[0,_.Fi,_.as]];var dZ1=[0,2,H8,_.sv,-1];var PkV=[0,GB6];var $ZW=[0,[3,4],2,EOW,_.w1,_.sv];var pWW=[0,_.Fi,-2,1,_.sv];var kTd=[0,_.sv,-1,_.Fi];var hJP=[0,i3,function(){return sf},
i3,_.sv],ngd=[0,_.Fi,i3,Hg,function(){return sf},
_.sv],sf=[-160,{},[101,103,104,105,106,107,108,109,114,115,116,117,118,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,141,142,144,146,147,148,149,150,151,152,153,154,155,156,157,158,159],i3,H8,[0,_.Ci,1,_.Ci,1,_.Ci,1,_.Fi,-1,i3],[0,1,_.Ci,2,_.Ci,_.Fi,_.Ci],1,H8,-1,_.sv,H8,2,Is,[0,Is,H8],_.sv,1,eJd,1,Hg,_.MR,1,[0,[0,_.Al,[0,_.sv,_.Ci,_.Fi]]],[0,_.Ci,[0,_.as,[0,_.Zs]],_.as,1,[0,eVZ,-1]],_.sv,[0,1,_.sv],76,_.Jl,[0,Hg,Sf,eJd,1,[0,_.Al,Sf]],1,_.Jl,[0,Hg,_.sv,_.Ci],_.Jl,
[0,Hg,Egd],_.Jl,[0,Hg,Egd,H8],_.Jl,[0,Hg,Egd],_.Jl,[0,Hg,_.Al,i3,Hg,lG$],_.Jl,[0,Hg,i3,_.sv],_.Jl,[0,Hg,_.Ci,CO,-1,_.Ci],4,_.Jl,[0,Hg,_.Ci,H8,CO,_.Ci],_.Jl,[0,[4,9],Hg,_.Fi,H8,_.w1,Sf,1,eJd,_.sv,_.w1,pWW],_.Jl,[0,Hg,i3,Hg,_.Fi,_.sv],_.Jl,[0,_.Ci,Hg,CO,_.Ci,_.sv],_.Jl,[0,Hg,i3,Hg,_.Fi,_.sv],1,_.Jl,[0,Hg,_.Fi,_.sv,CO],_.Jl,[0,Hg,_.Fi,[0,_.sv,H8],_.sv,H8,_.sv,XpW,-2,3,kTd,_.Al,kTd,kTd,pWW],_.Jl,[0,Hg,_.Fi,VvP,_.Al,[0,GT1,lJM],i3,_.Al,fJ7,_.sv,1,_.Fi,ogM,OHn,yFZ,-1],_.Jl,[0,Hg,[0,_.Zs,-1,VvP,_.Al,[0,
GT1,lJM,uLM],[0,_.qR],1,_.jM],i3,_.sv],_.Jl,[0,Hg,Sf,_.sv,[0,_.i7]],_.Jl,function(){return ngd},
_.Jl,[0,Hg,H8,_.sv,-1,_.Ci],_.Jl,[0,[6,7],Hg,_.Al,dZ1,_.Fi,Sf,1,_.Jl,$ZW,_.Jl,PkV],_.Jl,[0,_.Al,dZ1,_.Fi,_.Ci],_.Jl,[0,_.sv,XN_,-1],_.Jl,[0,i3,_.Al,fJ7,_.sv],_.Jl,[0,Hg,i3,_.sv],_.Jl,[0,XpW,_.sv],_.Jl,[0,bH_],_.Jl,[0,bH_],_.Jl,[0,Sf],_.Jl,[0,i3,Sf],_.Jl,function(){return hJP},
_.Jl,[0,i3,_.sv],_.Jl,[0,i3,_.sv],1,_.Jl,[0,_.Ci,Hg,CO,_.Ci,CO],_.Jl,[0,_.qR],1,_.Jl,[0],1,_.Jl,[0,i3,_.Fi,Hg,_.Fi],_.Jl,[0,[1,2],_.Jl,$ZW,_.Jl,PkV,H8],_.Jl,[0,_.qR,Sf,QFn,_.sv,H8],_.Jl,[0,QFn,_.sv,H8],_.Jl,[0,ogM,Sf,_.Ci,OHn],_.Jl,XWb,_.Jl,[0],_.Jl,[0,_.sv,-1,_.as],_.Jl,[0,i3,_.sv],_.Jl,[0,XWb,_.as,_.sv],_.Jl,[0,Hg,CO,_.Ci],_.Jl,[0,Hg,CO,_.Ci],_.Jl,[0,ogM,OHn,Sf,_.MR,_.Ci,yFZ,-1],_.Jl,[0,Hg,CO,_.Ci]];var rid=[0,_.Al,sf];var Be1=_.WV(yiP,[0,1,_.as,[0,[18,22,24],rid,3,[0,rid],1,_.as,[0,_.Al,[0,H8,Is],H8],1,sf,-1,[0,_.SM,-2,_.MR,_.SM,-1,_.MR,_.SM,NeM,_.SM,-2],mX6,[!0,_.sv,[0,Egd,2,_.sv,H8,_.Ci,2,_.sv,XpW]],[0,[1,2,3],[5,6],_.Jl,[0,_.jM],_.Jl,[0,_.jM,-1],_.Jl,[0,_.jM],1,_.Jl,bH_,_.Jl,[0,_.sv]],[0,sf,-1],_.qR,sf,_.Jl,sf,[0,rid],_.as,sf,_.Jl,sf,_.sv,_.Jl,sf]]);var DZV=new _.mi("liveChatEndpoint");var K9U=new _.mi("liveChatItemContextMenuEndpoint");var tv_=new _.mi("liveChatReplayEndpoint");_.L9Y=new _.mi("emojiPickerRenderer");var gg1=new _.mi("liveChatAuthorBadgeViewModel");var UZV=new _.mi("deleteLiveChatMessageCommand");var RJV=new _.mi("liveChatActionEndpoint");var IJ7=new _.mi("createLiveChatPollEndpoint");var aJn=new _.mi("manageLiveChatUserEndpoint");var xZb=new _.mi("moderateLiveChatEndpoint");_.HlV=new _.mi("sendLiveChatMessageEndpoint");var il_=new _.mi("sendLiveChatVoteEndpoint");var CDU=new _.mi("clearLocationCommand");var SQW=new _.mi("resolveLocationCommand");var sxU=new _.mi("interactionLoggingCommandMetadata");var jx1=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(jx1,_.Jc);var wa1=function(H,C){return _.TZ(H,1,C)};var Anb=[0,_.Ci];var Jn1=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(Jn1,_.Jc);var FuW=function(H,C){return fC(H,1,jx1,C)};Jn1.prototype.JSC$12183_serializeBinary=KTD([0,_.Al,Anb]);var Aiu={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 Zl_={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"},
cnM={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 CYV={GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM"};_.dAW=new _.mi("logFlowLoggingEventCommand");_.Vh=new _.mi("loggingContext");var YQb=new _.mi("audioTrackSelectActionCommand");var zZb=new _.mi("captionLanguageSelectActionCommand");var McV=new _.mi("showAudioTrackPickerActionCommand");var qQb=new _.mi("showCaptionLanguageSelectActionCommand");var TA1=new _.mi("dismissDialogEndpoint");var mf1=new _.mi("dismissPlayerOverlayCommand");var Wu7=new _.mi("hideItemSectionVideosByIdCommand");var ynU=new _.mi("showMiniplayerCommand");var NAM=function(){Lo.apply(this,arguments)};
_.G(NAM,Lo);NAM.prototype.getAssociations=function(){return[]};
NAM.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var bl7=function(){Lo.apply(this,arguments)};
_.G(bl7,Lo);bl7.prototype.getAssociations=function(){return[]};
bl7.prototype.getTypeName=function(){return"downloadStatusEntity"};var EAV=function(){Lo.apply(this,arguments)};
_.G(EAV,Lo);EAV.prototype.getAssociations=function(){return[]};
EAV.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var eZP=function(){Lo.apply(this,arguments)};
_.G(eZP,Lo);eZP.prototype.getAssociations=function(){var H=[];this.delegate.downloadsList&&H.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&H.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&H.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&H.push(this.delegate.refresh);return[].concat(_.k$(new Set(H)))};
eZP.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var urb=function(){Lo.apply(this,arguments)};
_.G(urb,Lo);urb.prototype.getAssociations=function(){var H=[];this.delegate.refresh&&H.push(this.delegate.refresh);if(this.delegate.downloads)for(var C=_.Z(this.delegate.downloads),S=C.next();!S.done;S=C.next())H.push.apply(H,_.k$((new GMP(S.value)).getAssociations()));return[].concat(_.k$(new Set(H)))};
urb.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var GMP=function(){to.apply(this,arguments)};
_.G(GMP,to);GMP.prototype.getAssociations=function(){var H=[];this.delegate.video&&H.push(this.delegate.video);this.delegate.playlist&&H.push(this.delegate.playlist);this.delegate.videoItem&&H.push(this.delegate.videoItem);this.delegate.playlistItem&&H.push(this.delegate.playlistItem);return[].concat(_.k$(new Set(H)))};var fCn=function(){Lo.apply(this,arguments)};
_.G(fCn,Lo);fCn.prototype.getAssociations=function(){var H=[];this.delegate.localImageEntities&&H.push.apply(H,_.k$(this.delegate.localImageEntities));return[].concat(_.k$(new Set(H)))};
fCn.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var vAb=function(){Lo.apply(this,arguments)};
_.G(vAb,Lo);vAb.prototype.getAssociations=function(){var H=[];this.delegate.playbackData&&H.push(this.delegate.playbackData);this.delegate.localImageEntities&&H.push.apply(H,_.k$(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&H.push(this.delegate.videoDownloadContextEntity);return[].concat(_.k$(new Set(H)))};
vAb.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var lC7=function(){Lo.apply(this,arguments)};
_.G(lC7,Lo);lC7.prototype.getAssociations=function(){return[]};
lC7.prototype.getTypeName=function(){return"offlineabilityEntity"};var Vc1=function(){Lo.apply(this,arguments)};
_.G(Vc1,Lo);Vc1.prototype.getAssociations=function(){var H=[];this.delegate.fakeChildren&&H.push.apply(H,_.k$(this.delegate.fakeChildren));return[].concat(_.k$(new Set(H)))};
Vc1.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var oAP=function(){Lo.apply(this,arguments)};
_.G(oAP,Lo);oAP.prototype.getAssociations=function(){var H=[];this.delegate.video&&H.push(this.delegate.video);this.delegate.playbackData&&H.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&H.push(this.delegate.offlineVideoPolicy);return[].concat(_.k$(new Set(H)))};
oAP.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var OlW=function(){Lo.apply(this,arguments)};
_.G(OlW,Lo);OlW.prototype.getAssociations=function(){return[]};
OlW.prototype.getTypeName=function(){return"continuationTokenEntity"};var Xa1=function(){Lo.apply(this,arguments)};
_.G(Xa1,Lo);Xa1.prototype.getAssociations=function(){var H=[];this.delegate.channelOwner&&H.push(this.delegate.channelOwner);this.delegate.videos&&H.push.apply(H,_.k$(this.delegate.videos));this.delegate.collaboratorChannels&&H.push.apply(H,_.k$(this.delegate.collaboratorChannels));this.delegate.downloadState&&H.push(this.delegate.downloadState);this.delegate.refresh&&H.push(this.delegate.refresh);return[].concat(_.k$(new Set(H)))};
Xa1.prototype.getTypeName=function(){return"mainPlaylistEntity"};var QxW=function(){Lo.apply(this,arguments)};
_.G(QxW,Lo);QxW.prototype.getAssociations=function(){var H=[];this.delegate.video&&H.push(this.delegate.video);this.delegate.channelContributor&&H.push(this.delegate.channelContributor);return[].concat(_.k$(new Set(H)))};
QxW.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var dfM=function(){to.apply(this,arguments)};
_.G(dfM,to);dfM.prototype.getAssociations=function(){var H=[];this.delegate.recommendedVideoMetadata&&H.push.apply(H,_.k$((new PDi(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.k$(new Set(H)))};
var PDi=function(){to.apply(this,arguments)};
_.G(PDi,to);PDi.prototype.getAssociations=function(){var H=[];this.delegate.localImageEntities&&H.push.apply(H,_.k$(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&H.push(this.delegate.videoDownloadContextEntity);return[].concat(_.k$(new Set(H)))};var $f_=function(){to.apply(this,arguments)};
_.G($f_,to);$f_.prototype.getAssociations=function(){var H=[];this.delegate.playbackPosition&&H.push(this.delegate.playbackPosition);return[].concat(_.k$(new Set(H)))};var paW=function(){Lo.apply(this,arguments)};
_.G(paW,Lo);paW.prototype.getAssociations=function(){var H=[];this.delegate.owner&&H.push(this.delegate.owner);this.delegate.downloadState&&H.push(this.delegate.downloadState);this.delegate.userState&&H.push.apply(H,_.k$((new $f_(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&H.push.apply(H,_.k$((new dfM(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.k$(new Set(H)))};
paW.prototype.getTypeName=function(){return"mainVideoEntity"};var kMW=function(){Lo.apply(this,arguments)};
_.G(kMW,Lo);kMW.prototype.getAssociations=function(){var H=[];this.delegate.userChannelDetails&&H.push(this.delegate.userChannelDetails);return[].concat(_.k$(new Set(H)))};
kMW.prototype.getTypeName=function(){return"ytMainChannelEntity"};var hZU=function(){Lo.apply(this,arguments)};
_.G(hZU,Lo);hZU.prototype.getAssociations=function(){var H=[];this.delegate.channelOwner&&H.push(this.delegate.channelOwner);this.delegate.playbackPosition&&H.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&H.push.apply(H,_.k$(this.delegate.localImageEntities));this.delegate.downloadStatus&&H.push(this.delegate.downloadStatus);return[].concat(_.k$(new Set(H)))};
hZU.prototype.getTypeName=function(){return"ytMainVideoEntity"};var i$E=new _.mi("downloadsPageSmartDownloadsOptInBannerParams");var jiZ=new _.mi("downloadsPageUpsellBannerParams");var nAY=function(){Lo.apply(this,arguments)};
_.G(nAY,Lo);nAY.prototype.getAssociations=function(){return[]};
nAY.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var rnn=function(){Lo.apply(this,arguments)};
_.G(rnn,Lo);rnn.prototype.getAssociations=function(){return[]};
rnn.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var BA7=function(){Lo.apply(this,arguments)};
_.G(BA7,Lo);BA7.prototype.getAssociations=function(){return[]};
BA7.prototype.getTypeName=function(){return"macroMarkerEntity"};var Df1=function(){Lo.apply(this,arguments)};
_.G(Df1,Lo);Df1.prototype.getAssociations=function(){return[]};
Df1.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var Kub=function(){Lo.apply(this,arguments)};
_.G(Kub,Lo);Kub.prototype.getAssociations=function(){return[]};
Kub.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var tc_=function(){Lo.apply(this,arguments)};
_.G(tc_,Lo);tc_.prototype.getAssociations=function(){return[]};
tc_.prototype.getTypeName=function(){return"playerStateEntity"};var Lu1=function(){Lo.apply(this,arguments)};
_.G(Lu1,Lo);Lu1.prototype.getAssociations=function(){return[]};
Lu1.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var gAi=function(){Lo.apply(this,arguments)};
_.G(gAi,Lo);gAi.prototype.getAssociations=function(){return[]};
gAi.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var Uf7=function(){Lo.apply(this,arguments)};
_.G(Uf7,Lo);Uf7.prototype.getAssociations=function(){return[]};
Uf7.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.jf=new _.mi("dislikeButtonViewModel");_.wH=new _.mi("likeButtonViewModel");var RZd=new _.mi("videoSummaryContentViewModel");var ICd=new _.mi("videoSummaryParagraphViewModel");var aCb=new _.mi("changeTimelyActionVisibilityCommand");var xf1=new _.mi("hideEngagementPanelEndpoint");var Ho1=new _.mi("refreshPanelEndpoint");var ioW=new _.mi("scrollToSectionEndpoint");var Ctb=new _.mi("seekToVideoTimestampCommand");_.Qn=new _.mi("showEngagementPanelEndpoint");var SyU=new _.mi("showTransientPlayerScrimOverlayCommand");var s4P=new _.mi("toggleEngagementPanelCommand");_.j47=new _.mi("createBroadcastCommand");var wJY=new _.mi("metadataUpdateCommand");var AoP=function(){Lo.apply(this,arguments)};
_.G(AoP,Lo);AoP.prototype.getAssociations=function(){return[]};
AoP.prototype.getTypeName=function(){return"featuredProductsEntity"};var Jo1=function(){Lo.apply(this,arguments)};
_.G(Jo1,Lo);Jo1.prototype.getAssociations=function(){return[]};
Jo1.prototype.getTypeName=function(){return"pinnedProductEntity"};var Fyd=function(){Lo.apply(this,arguments)};
_.G(Fyd,Lo);Fyd.prototype.getAssociations=function(){return[]};
Fyd.prototype.getTypeName=function(){return"trendingOfferEntity"};_.Zod=new _.mi("merchandiseShelfRenderer");var co7=new _.mi("shoppingContentLineItemViewModel");var Yyi=new _.mi("gridMovieRenderer");_.z1P=new _.mi("movieRenderer");var MBn=function(){Lo.apply(this,arguments)};
_.G(MBn,Lo);MBn.prototype.getAssociations=function(){var H=[];this.delegate.trackDownloadMetadatas&&H.push.apply(H,_.k$(this.delegate.trackDownloadMetadatas));return[].concat(_.k$(new Set(H)))};
MBn.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var qyb=function(){Lo.apply(this,arguments)};
_.G(qyb,Lo);
qyb.prototype.getAssociations=function(){var H=[];this.delegate.downloadedTracks&&H.push.apply(H,_.k$(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&H.push.apply(H,_.k$(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&H.push.apply(H,_.k$(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&H.push.apply(H,_.k$(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&H.push.apply(H,_.k$(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
H.push.apply(H,_.k$(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&H.push.apply(H,_.k$(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&H.push.apply(H,_.k$(this.delegate.metadataOnlyTracks));return[].concat(_.k$(new Set(H)))};
qyb.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var TZb=function(){Lo.apply(this,arguments)};
_.G(TZb,Lo);TZb.prototype.getAssociations=function(){var H=[];this.delegate.trackDownloadMetadatas&&H.push.apply(H,_.k$(this.delegate.trackDownloadMetadatas));return[].concat(_.k$(new Set(H)))};
TZb.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var mJd=function(){Lo.apply(this,arguments)};
_.G(mJd,Lo);mJd.prototype.getAssociations=function(){var H=[];this.delegate.playbackData&&H.push(this.delegate.playbackData);this.delegate.localImageEntities&&H.push.apply(H,_.k$(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&H.push(this.delegate.videoDownloadContextEntity);return[].concat(_.k$(new Set(H)))};
mJd.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var Wyb=function(){Lo.apply(this,arguments)};
_.G(Wyb,Lo);
Wyb.prototype.getAssociations=function(){var H=[];this.delegate.musicLibraryStatusEntity&&H.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&H.push.apply(H,_.k$(this.delegate.primaryArtists));this.delegate.details&&H.push(this.delegate.details);this.delegate.userDetails&&H.push(this.delegate.userDetails);this.delegate.tracks&&H.push.apply(H,_.k$(this.delegate.tracks));this.delegate.share&&H.push(this.delegate.share);this.delegate.downloadMetadata&&H.push(this.delegate.downloadMetadata);this.delegate.refresh&&
H.push(this.delegate.refresh);return[].concat(_.k$(new Set(H)))};
Wyb.prototype.getTypeName=function(){return"musicAlbumRelease"};
var yoP=function(){Lo.apply(this,arguments)};
_.G(yoP,Lo);yoP.prototype.getAssociations=function(){var H=[];this.delegate.albumRelease&&H.push(this.delegate.albumRelease);this.delegate.tracks&&H.push.apply(H,_.k$(this.delegate.tracks));return[].concat(_.k$(new Set(H)))};
yoP.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var NZ_=function(){Lo.apply(this,arguments)};
_.G(NZ_,Lo);NZ_.prototype.getAssociations=function(){var H=[];this.delegate.albumRelease&&H.push(this.delegate.albumRelease);return[].concat(_.k$(new Set(H)))};
NZ_.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var bod=function(){Lo.apply(this,arguments)};
_.G(bod,Lo);bod.prototype.getAssociations=function(){var H=[];this.delegate.details&&H.push(this.delegate.details);this.delegate.userDetails&&H.push(this.delegate.userDetails);return[].concat(_.k$(new Set(H)))};
bod.prototype.getTypeName=function(){return"musicArtist"};
var EHd=function(){Lo.apply(this,arguments)};
_.G(EHd,Lo);EHd.prototype.getAssociations=function(){var H=[];this.delegate.parentArtist&&H.push(this.delegate.parentArtist);return[].concat(_.k$(new Set(H)))};
EHd.prototype.getTypeName=function(){return"musicArtistDetail"};
var e1V=function(){Lo.apply(this,arguments)};
_.G(e1V,Lo);e1V.prototype.getAssociations=function(){var H=[];this.delegate.parentArtist&&H.push(this.delegate.parentArtist);return[].concat(_.k$(new Set(H)))};
e1V.prototype.getTypeName=function(){return"musicArtistUserDetail"};var uOM=function(){Lo.apply(this,arguments)};
_.G(uOM,Lo);uOM.prototype.getAssociations=function(){return[]};
uOM.prototype.getTypeName=function(){return"musicLibraryEdit"};var Gj1=function(){Lo.apply(this,arguments)};
_.G(Gj1,Lo);Gj1.prototype.getAssociations=function(){return[]};
Gj1.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var f6d=function(){Lo.apply(this,arguments)};
_.G(f6d,Lo);
f6d.prototype.getAssociations=function(){var H=[];this.delegate.tracks&&H.push.apply(H,_.k$(this.delegate.tracks));this.delegate.refresh&&H.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&H.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&H.push(this.delegate.details);this.delegate.downloadMetadata&&H.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&H.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&H.push(this.delegate.userDetails);this.delegate.entryCollection&&
H.push(this.delegate.entryCollection);this.delegate.share&&H.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&H.push.apply(H,_.k$((new vHd(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.k$(new Set(H)))};
f6d.prototype.getTypeName=function(){return"musicPlaylist"};
var vHd=function(){to.apply(this,arguments)};
_.G(vHd,to);vHd.prototype.getAssociations=function(){var H=[];this.delegate.creatorEntity&&H.push(this.delegate.creatorEntity);return[].concat(_.k$(new Set(H)))};var l6V=function(){Lo.apply(this,arguments)};
_.G(l6V,Lo);l6V.prototype.getAssociations=function(){return[]};
l6V.prototype.getTypeName=function(){return"musicShare"};var VBb=function(){Lo.apply(this,arguments)};
_.G(VBb,Lo);
VBb.prototype.getAssociations=function(){var H=[];this.delegate.musicLibraryStatusEntity&&H.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&H.push.apply(H,_.k$(this.delegate.artists));this.delegate.audioModeVersion&&H.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&H.push(this.delegate.videoModeVersion);this.delegate.userDetails&&H.push(this.delegate.userDetails);this.delegate.details&&H.push(this.delegate.details);this.delegate.albumRelease&&H.push(this.delegate.albumRelease);this.delegate.share&&
H.push(this.delegate.share);this.delegate.libraryEdit&&H.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&H.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&H.push(this.delegate.playbackPosition);this.delegate.lyrics&&H.push(this.delegate.lyrics);return[].concat(_.k$(new Set(H)))};
VBb.prototype.getTypeName=function(){return"musicTrack"};
var oH7=function(){Lo.apply(this,arguments)};
_.G(oH7,Lo);oH7.prototype.getAssociations=function(){var H=[];this.delegate.parentTrack&&H.push(this.delegate.parentTrack);return[].concat(_.k$(new Set(H)))};
oH7.prototype.getTypeName=function(){return"musicTrackDetail"};
var OoV=function(){Lo.apply(this,arguments)};
_.G(OoV,Lo);OoV.prototype.getAssociations=function(){var H=[];this.delegate.parentTrack&&H.push(this.delegate.parentTrack);return[].concat(_.k$(new Set(H)))};
OoV.prototype.getTypeName=function(){return"musicTrackUserDetail"};var Hf=new _.mi("musicResponsiveListItemRenderer");var Nq0=new _.mi("addToPlaylistEndpoint");var XJ_=new _.mi("captionPickerEndpoint");var Q4U=new _.mi("suggestStats");var dJ7=new _.mi("backstageImageUploadEndpoint");var Pt1=new _.mi("createBackstagePostDialogEndpoint");_.$J_=new _.mi("createCommentReplyDialogEndpoint");_.pJd=new _.mi("updateCommentDialogEndpoint");_.kjW=new _.mi("updateCommentReplyDialogEndpoint");var h1Y=new _.mi("menuEndpoint");var A2u=new _.mi("modalEndpoint");var nHY=new _.mi("playlistEditorEndpoint");var roU=new _.mi("copyTextEndpoint");var BZd,DJn;BZd=new _.mi("shareEndpoint");DJn=new _.mi("shareEntityEndpoint");_.KyU=new _.mi("shareEntityServiceEndpoint");_.wsV=new _.mi("userFeedbackEndpoint");_.sX=new _.mi("watchEndpoint");var K4V=new _.mi("watchPlaylistEndpoint");var tBU=new _.mi("addUpcomingEventReminderEndpoint");_.Ad=new _.mi("getCommentsFromInboxCommand");var Ly_=new _.mi("notificationOptOutEndpoint");var gHP=new _.mi("recordNotificationInteractionsEndpoint");var UJi=new _.mi("removeUpcomingEventReminderEndpoint");var WZp=new _.mi("getDownloadActionCommand");_.R17=new _.mi("offlineOrchestrationActionCommand");var I67=function(){Lo.apply(this,arguments)};
_.G(I67,Lo);I67.prototype.getAssociations=function(){return[]};
I67.prototype.getTypeName=function(){return"captionTrack"};var a6n=function(){Lo.apply(this,arguments)};
_.G(a6n,Lo);a6n.prototype.getAssociations=function(){return[]};
a6n.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var xJd=function(){Lo.apply(this,arguments)};
_.G(xJd,Lo);xJd.prototype.getAssociations=function(){return[]};
xJd.prototype.getTypeName=function(){return"offlineVideoPolicy"};var HOU=function(){Lo.apply(this,arguments)};
_.G(HOU,Lo);HOU.prototype.getAssociations=function(){return[]};
HOU.prototype.getTypeName=function(){return"offlineVideoStreams"};var iO1=function(){Lo.apply(this,arguments)};
_.G(iO1,Lo);iO1.prototype.getAssociations=function(){var H=[];this.delegate.transfer&&H.push(this.delegate.transfer);this.delegate.adsPlaybackData&&H.push.apply(H,_.k$(this.delegate.adsPlaybackData));this.delegate.drmLicense&&H.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&H.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&H.push(this.delegate.videoDownloadContextEntity);return[].concat(_.k$(new Set(H)))};
iO1.prototype.getTypeName=function(){return"playbackData"};var C3U=function(){Lo.apply(this,arguments)};
_.G(C3U,Lo);C3U.prototype.getAssociations=function(){return[]};
C3U.prototype.getTypeName=function(){return"refresh"};var Sfb=function(){Lo.apply(this,arguments)};
_.G(Sfb,Lo);Sfb.prototype.getAssociations=function(){var H=[];this.delegate.offlineVideoStreams&&H.push.apply(H,_.k$(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&H.push.apply(H,_.k$(this.delegate.captionTrack));return[].concat(_.k$(new Set(H)))};
Sfb.prototype.getTypeName=function(){return"transfer"};var syU=function(){Lo.apply(this,arguments)};
_.G(syU,Lo);syU.prototype.getAssociations=function(){return[]};
syU.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var jyd=new _.mi("showMoreDrawerCommand");var wgW=new _.mi("updateEngagementPanelContentCommand");var Ad7=new _.mi("getPdgBuyFlowCommand");var Jdd=new _.mi("liveChatPurchaseMessageEndpoint");var Fkb=new _.mi("openSuperStickerBuyFlowCommand");var ZO1=new _.mi("updatePdgFeatureEnablementCommand");var cdY=function(){Lo.apply(this,arguments)};
_.G(cdY,Lo);cdY.prototype.getAssociations=function(){return[]};
cdY.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var Yf_=function(){Lo.apply(this,arguments)};
_.G(Yf_,Lo);Yf_.prototype.getAssociations=function(){return[]};
Yf_.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.z$1=new _.mi("pdgCommentChipRenderer");_.Mfi=new _.mi("permissionRoleBottomBarRenderer");_.qf1=new _.mi("updatePermissionRoleCommand");var TH1=new _.mi("prefetchWatchCommand");var mcU=new _.mi("updatePlayerErrorMessageCommand");var cR6=new _.mi("toggleCaptionsVisibilityCommand");_.WkP=new _.mi("quickActionsViewModel");var ydd=new _.mi("playerResponse");var NHV=new _.mi("playlistRenderer");_.bOV=new _.mi("playlistVideoListRenderer");_.Jd=new _.mi("playlistEditEndpoint");var EPV=new _.mi("createImagePollCommand");var e$Y=new _.mi("createQuizCommand");var u7P=new _.mi("quizRenderer");var GNd=new _.mi("uploadedVideoRenderer");var f3n=new _.mi("decorateMessageEndpoint");var vPb=new _.mi("lpOfferCardOptionViewModel");var l3M=new _.mi("sfvAudioItemPlaybackCommand");var Vf_=function(){Lo.apply(this,arguments)};
_.G(Vf_,Lo);Vf_.prototype.getAssociations=function(){return[]};
Vf_.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.F7=new _.mi("reelNonVideoContentEndpoint");_.Ox=new _.mi("reelWatchEndpoint");_.Z3=new _.mi("reelItemRenderer");_.oPb=new _.mi("reelMetapanelViewModel");_.OOP=new _.mi("reelNonVideoContentRenderer");_.Xgd=new _.mi("reelPlayerOverlayRenderer");var Qy7=new _.mi("shortsLockupViewModel");var dcP=new _.mi("sponsorButtonViewModel");var P31=new _.mi("reelItemWatchResponse");var $cY=new _.mi("textBadgeRenderer");_.cg=new _.mi("buttonRenderer");_.YP=new _.mi("toggleButtonRenderer");var WWu=new _.mi("switchButtonViewModel");_.pgV=new _.mi("confirmDialogRenderer");var kNb;kNb=new _.mi("menuRenderer");_.h$1=new _.mi("menuFlexibleItemRenderer");var nP7=new _.mi("pollRenderer");_.rdU=new _.mi("backgroundPromoRenderer");var Dc1;_.BHd=new _.mi("chipCloudRenderer");Dc1=new _.mi("chipCloudChipRenderer");var Kk_=new _.mi("dropdownRenderer");var tfi=new _.mi("gridVideoRenderer");_.LkV=new _.mi("itemSectionRenderer");_.gPY=new _.mi("messageRenderer");var Uc_=new _.mi("sortFilterHeaderRenderer");_.zN=new _.mi("videoRenderer");var R$V=new _.mi("resolveUrlCommandMetadata");var I3U=function(){Lo.apply(this,arguments)};
_.G(I3U,Lo);I3U.prototype.getAssociations=function(){return[]};
I3U.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.a3n=new _.mi("getAnswerCommand");_.l4=new _.mi("searchEndpoint");var xcd=new _.mi("genAiRichTextViewModel");var mMV=new _.mi("overviewAnswerViewModel");var H$d=new _.mi("videoOverviewViewModel");var i$1=new _.mi("addToPlaylistServiceEndpoint");var Co_=new _.mi("clearSearchHistoryEndpoint");var Se1=new _.mi("clearWatchHistoryEndpoint");var siU=new _.mi("webSerializedServiceEndpointExtension");_.ji7=new _.mi("createCommentEndpoint");var wP1=new _.mi("createCommentReplyEndpoint");var A$i=new _.mi("performCommentActionEndpoint");var J$7=new _.mi("updateCommentEndpoint");var FNY=new _.mi("updateCommentReplyEndpoint");_.Mc=new _.mi("createPlaylistServiceEndpoint");var Z$_=new _.mi("deletePlaylistEndpoint");var c$P=new _.mi("deleteVideoEndpoint");var yRw=new _.mi("getReportFormEndpoint");var Ye_=new _.mi("modifyChannelNotificationPreferenceEndpoint");var PV$;_.Gb=new _.mi("offlinePlaylistEndpoint");PV$={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 $mw;_.ur=new _.mi("offlineVideoEndpoint");$mw={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 zlU=new _.mi("pingingEndpoint");_.M8n=new _.mi("selectActiveIdentityEndpoint");var qei=new _.mi("setSettingEndpoint");var Grw=new _.mi("undoFeedbackEndpoint");var TQW=new _.mi("unsubscribeEndpoint");_.mbW=new _.mi("updatedMetadataEndpoint");var WN7=function(){Lo.apply(this,arguments)};
_.G(WN7,Lo);WN7.prototype.getAssociations=function(){return[]};
WN7.prototype.getTypeName=function(){return"settingEntity"};_.y$b=new _.mi("updateLocalAppSettingCommand");var NQ_=new _.mi("saveImageToDeviceEndpoint");var b$V=new _.mi("shareImageCommand");var Ee_=new _.mi("sharingProviderDataCommand");var elb=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(elb,_.Jc);var uK_=[0,_.sv,-1];elb.prototype.JSC$12384_serializeBinary=KTD(uK_);var Gmb=_.yv(uK_);var fbn=new _.mi("userMentionSuggestionRenderer");var vei=new _.mi("liveChatTunnelCommand");var lb1=new _.mi("showSponsorshipsGiftOfferDialogCommand");var V81=new _.mi("sponsorshipsScrollableShelfViewModel");var oeP=new _.mi("updateUpcomingEventReminderButtonStateCommand");var O$i=new _.mi("upcomingEventReminderButtonStateRenderer");var XP_=new _.mi("subscribeEndpoint");var QiM=new _.mi("registerTasksCommand");var db1=new _.mi("hideSheetCommand");var Pod=new _.mi("hideSnackbarCommand");var $b7=new _.mi("showDialogCommand");_.X1=new _.mi("showSheetCommand");var pPb=new _.mi("showSnackbarCommand");var kmb=function(){Lo.apply(this,arguments)};
_.G(kmb,Lo);kmb.prototype.getAssociations=function(){return[]};
kmb.prototype.getTypeName=function(){return"chipEntity"};var DU_=function(){Lo.apply(this,arguments)};
_.G(DU_,Lo);DU_.prototype.getAssociations=function(){return[]};
DU_.prototype.getTypeName=function(){return"dismissState"};_.Dz=new _.mi("avatarViewModel");var KL7=new _.mi("badgeViewModel");_.qc=new _.mi("buttonViewModel");_.TN=new _.mi("chipViewModel");var XiV=new _.mi("collectionThumbnailViewModel");var txb=new _.mi("contentPreviewImageViewModel");var LLM=new _.mi("decoratedAvatarViewModel");_.fn7=new _.mi("engagementBarViewModel");_.g4b=new _.mi("imageBannerViewModel");var UUd=new _.mi("lockupContentMetadataRowExtension");_.Rc_=new _.mi("lockupMetadataViewModel");_.IMM=new _.mi("lockupViewModel");var aM7=new _.mi("avatarStackViewModel");_.xUb=new _.mi("contentMetadataViewModel");var H4P=function(){Lo.apply(this,arguments)};
_.G(H4P,Lo);H4P.prototype.getAssociations=function(){return[]};
H4P.prototype.getTypeName=function(){return"pageHeaderEntity"};_.i47=new _.mi("pageHeaderViewModel");var CQV=new _.mi("snackbarViewModel");var SYn=new _.mi("thumbnailHoverOverlayToggleActionsViewModel");_.mk=new _.mi("toggleButtonViewModel");var snV=function(){Lo.apply(this,arguments)};
_.G(snV,Lo);snV.prototype.getAssociations=function(){return[]};
snV.prototype.getTypeName=function(){return"votingEntity"};_.vGZ=new _.mi("votingViewModel");var jnU=new _.mi("sectionHeaderViewModel");var wmU=new _.mi("notifyDropdownOptionSelectedCommand");var Lg$=new _.mi("listViewModel");_.Q4=new _.mi("listItemViewModel");var OKU=new _.mi("toggleableListItemViewModel");var Avb=new _.mi("dialogHeaderViewModel");var Jv7=function(){Lo.apply(this,arguments)};
_.G(Jv7,Lo);Jv7.prototype.getAssociations=function(){return[]};
Jv7.prototype.getTypeName=function(){return"dataFreshnessEntity"};var S96=new _.mi("suspenseViewModel");var Fw7=function(){Lo.apply(this,arguments)};
_.G(Fw7,Lo);Fw7.prototype.getAssociations=function(){return[]};
Fw7.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var Z4Y=function(){Lo.apply(this,arguments)};
_.G(Z4Y,Lo);Z4Y.prototype.getAssociations=function(){return[]};
Z4Y.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var cvd=function(){Lo.apply(this,arguments)};
_.G(cvd,Lo);cvd.prototype.getAssociations=function(){return[]};
cvd.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.YYU=new _.mi("transcriptSubmitCaptionCorrectionCommand");var zvM=function(){Lo.apply(this,arguments)};
_.G(zvM,Lo);zvM.prototype.getAssociations=function(){return[]};
zvM.prototype.getTypeName=function(){return"buttonEntity"};var UAW=new _.mi("unpluggedStringRunImage");var M3Y=new _.mi("tabViewModel");var qY1=new _.mi("tabbedViewModel");var T2U=function(){Lo.apply(this,arguments)};
_.G(T2U,Lo);T2U.prototype.getAssociations=function(){return[]};
T2U.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.mhn=new _.mi("updateDescriptionAction");var Ww1=new _.mi("updateToggleButtonTextAction");_.yv1=new _.mi("autoplaySwitchButtonRenderer");var pd;_.N21=new _.mi("multiMarkersPlayerBarRenderer");pd=new _.mi("chapterRenderer");var b4P=new _.mi("heatMarkerRenderer");var $tp=new _.mi("heatmapRenderer");var Er_=new _.mi("smartSkipPlayerScrimOverlayRenderer");var evP=new _.mi("timedMarkerDecorationRenderer");var YJ6=new _.mi("postWebToNativeMessageCommand");var hh=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(hh,_.Jc);hh.prototype.getMethodName=function(){return _.$v(this,1)};var uEn=[0,_.sv,-2];hh.prototype.JSC$12406_serializeBinary=KTD(uEn);var Ghi=_.WV(hh,uEn);var f$U=new _.mi("whitelistEditEndpoint");var vr1=new _.mi("clearUrlParamCommand");var l$7=new _.mi("commerceActionCommand");_.V3b=new _.mi("getPaymentInstrumentsParamsCommand");var orU=new _.mi("getPaymentsClientTokenCommand");var O4V=new _.mi("googlePaymentBillingCommand");var XmP=new _.mi("googlePaymentPurchaseManagerCommand");_.Qnd=new _.mi("logGtmCommand");var dh7=new _.mi("updateCardItemOnClickCommand");_.PQU=new _.mi("ypcPauseSubscriptionCommand");_.$hd=new _.mi("ypcResumeSubscriptionCommand");var pmd=function(){Lo.apply(this,arguments)};
_.G(pmd,Lo);pmd.prototype.getAssociations=function(){return[]};
pmd.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var kh1=function(){Lo.apply(this,arguments)};
_.G(kh1,Lo);kh1.prototype.getAssociations=function(){return[]};
kh1.prototype.getTypeName=function(){return"commerceCartListEntity"};var hvU=function(){Lo.apply(this,arguments)};
_.G(hvU,Lo);hvU.prototype.getAssociations=function(){return[]};
hvU.prototype.getTypeName=function(){return"iconBadgeEntity"};var nrV=function(){Lo.apply(this,arguments)};
_.G(nrV,Lo);nrV.prototype.getAssociations=function(){return[]};
nrV.prototype.getTypeName=function(){return"pdpStateEntity"};var rvd=function(){Lo.apply(this,arguments)};
_.G(rvd,Lo);rvd.prototype.getAssociations=function(){return[]};
rvd.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var iZi=new _.mi("ypcOffersEndpoint");var B2b=new _.mi("cardItemRenderer"),DhY=new _.mi("cardItemTextRenderer");var Kwn=new _.mi("commerceCartItemQuantityPickerRenderer");var t3V=new _.mi("linkCardRenderer");var j5D=new _.mi("quantityIncrementerButtonViewModel");var Lw7=new _.mi("quantityIncrementerViewModel");var grV=new _.mi("themedImageViewModel");_.Uhb=new _.mi("ypcCancelRecurrenceEndpoint");var Rv7=new _.mi("ypcCompleteTransactionEndpoint");_.I$n=new _.mi("ypcGetCartEndpoint");_.SA=new _.mi("ypcGetOffersEndpoint");_.Wg=new _.mi("ypcHandleTransactionEndpoint");var a$i=new _.mi("ypcLogWalletAnalyticDataEndpoint");_.xhd=new _.mi("ypcRedeemCodeEndpoint");var HT7=new _.mi("ypcUpdateFopEndpoint");fo(Gj(1),eB(4));FE7((new MessageChannel).port2);var iTY=function(){this.register=new Map},F9Z=function(H,C,S){H=H+"_"+C;
ye.register.has(H)?S=ye.register.get(H):(S=S(),ye.register.set(H,S));return S},CUM=function(H){H=_.Z(H.register.values());
for(var C=H.next();!C.done;C=H.next())_.qI(C.value,"ABORTED")};
iTY.prototype.clear=function(){CUM(this);this.register.clear()};
var ye=new iTY;var B5E=Date.now().toString();var tiE=Ki7();var HH6={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 SI7,rM;SI7=1;rM=function(H){this.veData=H};
_.Qh=function(H){return new rM({trackingParams:H})};
_.y4=function(H,C,S,w,A,J){var c=SI7++;return new rM({veType:H,veCounter:c,elementIndex:S,dataElement:C,youtubeData:w,jspbYoutubeData:A,loggingDirectives:J})};
_.F=rM.prototype;
_.F.getAsJson=function(){var H={};this.veData.trackingParams!==void 0?H.trackingParams=this.veData.trackingParams:(H.veType=this.veData.veType,this.veData.veCounter!==void 0&&(H.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(H.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(H.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(H.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(H.isCounterfactual=!0);
return H};
_.F.getAsJspb=function(){var H=new lVn;this.veData.trackingParams!==void 0?H.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.rO(H,2,this.veData.veType),this.veData.veCounter!==void 0&&_.rO(H,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.rO(H,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.TZ(H,5,!0));if(this.veData.dataElement!==void 0){var C=this.veData.dataElement.getAsJspb();_.f9(H,7,C)}this.veData.youtubeData!==void 0&&_.f9(H,8,this.veData.jspbYoutubeData);
return H};
_.F.toString=function(){return JSON.stringify(this.getAsJson())};
_.F.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.F.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.AO("yt_logging_screen.getRootVeType",IxE);_.AO("yt_logging_screen.getCurrentCsn",_.Dg);_.AO("yt_logging_screen.getCttAuthInfo",KD);_.AO("yt_logging_screen.setCurrentScreen",_.tJ);var sIW=function(){this.events=new Map},jIb=function(H){var C=[];
H=_.Z(H.events.values());for(var S=H.next();!S.done;S=H.next())C.push(S.value);return C};
sIW.prototype.clear=function(){this.events.clear()};var A11=function(){this.logTransport=new w_W;this.loggedEventRegister=new sIW;this.unloggedEventRegister=new sIW;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12443_flushTimer=new _.MQ(this.flushInterval);this.JSC$12443_flushTimer.listen("tick",this.flush,!1,this)};
A11.prototype.flush=function(){if(this.eventsCount){var H={loggedEvents:jIb(this.loggedEventRegister),unloggedEvents:jIb(this.unloggedEventRegister)};if(_.E("export_player_version_to_ytconfig")){var C;(C=_.rh("PLAYER_CLIENT_VERSION"))?(C=C.split("-")[0].replace(/\./g,""),C=isNaN(Number(C))?"0":C):C="";var S=_.rh("PLAYER_CLIENT_VERSION");if(S){S=S.split("-");var w="";S.length>1&&(w=S[S.length-1]);S=r7W(w.startsWith("canary_experiment")?"canary":w.startsWith("canary_control")?"control":"none")}else S=
"CLIENT_CANARY_STATE_UNKNOWN";H.dimensions={playerClientVersion:C,playerCanaryState:S}}this.logTransport.flush(H);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12443_flushTimer.enabled&&this.JSC$12443_flushTimer.stop()}};
var J17=function(H){Nc==null&&(Nc=new A11);var C=Nc;var S=C.loggedEventRegister;H.dimensions=H.dimensions||{};H.dimensions.csn=_.Dg()||"";var w=SSW(H.dimensions).join(";");if(H.records!=null)if(S.events.has(w)){var A;(A=S.events.get(w).records)==null||A.push.apply(A,_.k$(H.records))}else S.events.set(w,H);C.JSC$12443_flushTimer.enabled||C.JSC$12443_flushTimer.start();C.eventsCount++;C.eventsCount>=100&&C.flush()};var w_W=function(){};
w_W.prototype.flush=function(H,C){_.E("enable_client_sli_logging")&&_.kI("sliEventBatch",H,{sendIsolatedPayload:!!C})};var Nc;var ZT7;ZT7=function(H){var C=F4d;H=H===void 0?{}:H;C=C.name;var S=JiZ("SUCCESS");J17({dimensions:H,records:[{name:C,state:"SLI_STATE_END",status:S}]})};
_.ZH6=function(H,C,S,w){this.name=H;this.sliId=C;this.timeoutMs=S;this.statusOnTimeout=w;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.ZH6.prototype.getId=function(){return this.sliId};
_.MI=function(H,C){C=C===void 0?{}:C;H.ongoing||(H.ongoing=!0,H.dimensions=C,H.logSliId=MAW(),J17({dimensions:H.dimensions,records:[{name:H.name,state:"SLI_STATE_START",sliId:H.logSliId}]}),H.timeoutMs>0&&(H.timeoutHandle=setTimeout(function(){_.qI(H,H.statusOnTimeout)},H.timeoutMs)))};
_.qI=function(H,C){H.ongoing&&(H.timeoutMs>0&&clearTimeout(H.timeoutHandle),H.ongoing=!1,C={dimensions:H.dimensions,records:[{name:H.name,status:JiZ(C),state:"SLI_STATE_END",sliId:H.logSliId}]},ye.register.delete(H.name+"_"+H.sliId),J17(C))};var F4d=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var c1V=function(){Lo.apply(this,arguments)};
_.G(c1V,Lo);c1V.prototype.getAssociations=function(){return[]};
c1V.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var OyZ=new _.mi("highlightTextDecoratorColorMapExtension");var VzE=new _.mi("styleRunColorMapExtension");var mZ6=_.xC(["data-"]),NeE={};var Eg6={};var b3=function(H){this.wrappedPromise_=H===void 0?null:H;this.state_=0;this.JSC$12475_value_=null};
b3.prototype.then=function(H,C,S){return this.wrappedPromise_?this.wrappedPromise_.then(H,C,S):this.state_===1&&H?(H=H.call(S,this.JSC$12475_value_))&&typeof H.then==="function"?H:_.Ef(H):this.state_===2&&C?(H=C.call(S,this.JSC$12475_value_))&&typeof H.then==="function"?H:_.YI1(H):this};
b3.prototype.getValue=function(){return this.JSC$12475_value_};
b3.prototype.isRejected=function(){return this.state_==2};
GVi(b3);_.YI1=function(H){var C=new b3;H=H===void 0?null:H;C.state_=2;C.JSC$12475_value_=H===void 0?null:H;return C};
_.Ef=function(H){var C=new b3;H=H===void 0?null:H;C.state_=1;C.JSC$12475_value_=H===void 0?null:H;return C};var pWp="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var zs1=["load","abort","error"],ef=function(H,C,S){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12495_maxAspectRatio_=H;this.disableAnimation_=C===void 0?!1:C;this.disableExifRotation_=S===void 0?!1:S;this.JSC$12495_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12495_reject_=this.resolve_=null};
ef.prototype.transform=function(H){var C=this;this.mime_=H.type;ZK(VsV(H),this.dataUrlRead_,this.readError_,this);ZK(l2b(H.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(S,w){C.resolve_=S;C.JSC$12495_reject_=w})};
ef.prototype.dataUrlRead_=function(H){this.dataUrl_=H;this.angle_!=null&&Mwd(this)};
ef.prototype.exifRead_=function(H){if(this.disableExifRotation_)this.angle_=0;else{a:if(H=new DataView(H),H.byteLength<2||H.getUint16(0)!==65496)H=-2;else{for(var C=2,S=H.byteLength;C<S;){var w=H.getUint16(C),A=H.getUint16(C+2);if(w===65505){C+=4;w=H.getUint32(C);A=H.getUint16(C+4);if(w!==1165519206||A!==0)break;C+=6;w=H.getUint16(C)===18761;C+=H.getUint32(C+4,w);A=H.getUint16(C,w);C+=2;for(var J=0;J<A;J++){if(H.getUint16(C,w)===274){C+=8;H=H.getUint16(C,w);break a}C+=12}}else if(w>>8!==255)break;
else C+=A+2}H=-1}switch(H){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&&Mwd(this)};
ef.prototype.readError_=function(){this.JSC$12495_reject_()};
var Mwd=function(H){O4(H.JSC$12495_image_,zs1,H.completeTransform_,!1,H);H.JSC$12495_image_.src=_.D4(H.dataUrl_).toString();H.JSC$12495_image_.src!=BV.toString()&&H.JSC$12495_image_.src.substr(0,11)==="data:image/"||H.JSC$12495_reject_()};
ef.prototype.completeTransform_=function(){if(this.JSC$12495_image_.src!=BV.toString()){var H=_.D4(this.dataUrl_),C=this.JSC$12495_image_.naturalHeight?this.JSC$12495_image_.naturalWidth/this.JSC$12495_image_.naturalHeight:null;this.invalidAspectRatio=C>this.JSC$12495_maxAspectRatio_||C<1/this.JSC$12495_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var S=this.JSC$12495_image_.naturalWidth,w=this.JSC$12495_image_.naturalHeight,A=C=0,J=this.JSC$12495_image_.naturalHeight?this.JSC$12495_image_.naturalWidth/
this.JSC$12495_image_.naturalHeight:null;J>this.JSC$12495_maxAspectRatio_?(S=this.JSC$12495_maxAspectRatio_*w,C=(S-this.JSC$12495_image_.naturalWidth)/2,this.cropped=!0):J<1/this.JSC$12495_maxAspectRatio_?(w=this.JSC$12495_maxAspectRatio_*S,A=(w-this.JSC$12495_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)J=S,S=w,w=J,J=C,C=A,A=J;switch(this.angle_){case 90:A-=S;break;case 180:C-=S;A-=w;break;case 270:C-=
w}this.cropped||this.angle_%360!==0?(H=document.createElement("canvas"),H.width=S||1,H.height=w||1,this.JSC$12495_image_.naturalWidth&&this.JSC$12495_image_.naturalHeight&&(S=H.getContext("2d"),S.rotate(Math.PI/180*this.angle_),S.drawImage(this.JSC$12495_image_,C,A,this.JSC$12495_image_.naturalWidth,this.JSC$12495_image_.naturalHeight)),this.transformedData=_.D4(H.toDataURL(this.mime_))):this.transformedData=H}else this.transformedData=H;this.resolve_(this)}};var u3=function(H,C){_.Xc.call(this,H);this.value=C};
_.G(u3,_.Xc);
var GN=function(H,C,S,w,A,J,c){c=c===void 0?!1:c;_.ph.call(this);var Y=this;this.JSC$12500_url_=H;this.channelId_=C;this.maxFileSizeMb_=S;this.JSC$12500_maxAspectRatio_=w;this.dropZoneEl_=A;this.rejectInvalidAspectRatio_=c;this.selectButtonEl_=J;this.JSC$12500_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new dZ(this.dropZoneEl_);this.selectOverlay_=new PJ(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12500_image_=this.transfer_=null;this.handler_=new _.qQ(this);_.Nx(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(J,"click",function(){Y.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.G(GN,_.ph);GN.prototype.disposeInternal=function(){for(var H=this.selectButtonEl_.nextSibling;H&&H.parentNode&&H.tagName=="INPUT";)H.parentNode.removeChild(H),H=this.selectButtonEl_.nextSibling;this.cancel();_.ph.prototype.disposeInternal.call(this)};
GN.prototype.uploadPromise=function(){if(this.JSC$12500_image_==null)return null;this.uploadPromise_||qIn(this);return this.uploadPromise_};
GN.prototype.cancel=function(){T9n(this);this.JSC$12500_image_=null};
var T9n=function(H){H.transfer_&&H.transfer_.cancel();H.transfer_=null;H.uploadPromise_=null;H.resolve_=null;H.JSC$12500_reject_=null},qIn=function(H){T9n(H);
H.transfer_=_.as7(H.JSC$12500_url_,{"X-YouTube-ChannelId":H.channelId_},H.JSC$12500_image_);H.handler_.listenOnce(H.transfer_,"l",H.JSC$12502_onUploadComplete_);H.handler_.listenOnce(H.transfer_,"n",H.onUploadError_);H.transfer_.run();H.uploadPromise_=new Promise(function(C,S){H.resolve_=C;H.JSC$12500_reject_=S})};
_.F=GN.prototype;_.F.onChange_=function(H){H.files.length&&(this.JSC$12500_image_=H.files[0],this.JSC$12500_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12500_image_=null,this.dispatchEvent(new u3("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(qIn(this),(new ef(this.JSC$12500_maxAspectRatio_)).transform(this.JSC$12500_image_).then((0,_.Xv)(this.onPreview_,this),(0,_.Xv)(this.onPreviewError_,this))))};
_.F.onPreview_=function(H){if(H.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12500_image_=null),this.dispatchEvent(new u3("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;H.cropped&&this.dispatchEvent(new u3("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new u3("yt.comments.ImageUploadOverlay.CHANGE_EVENT",H.transformedData))};
_.F.onPreviewError_=function(){this.JSC$12500_image_=null;this.dispatchEvent(new u3("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.F.onHover_=function(H){H.stopPropagation();H.preventDefault();if(H.type==="dragover")H=!0;else if(H.type==="dragleave")H=!1;else return;this.dispatchEvent(new u3("yt.comments.ImageUploadOverlay.HOVER_EVENT",H))};
_.F.JSC$12502_onUploadComplete_=function(){var H=(0,_.R_W)(this.transfer_.getResponseText());this.resolve_(H.encryptedBlobId)};
_.F.onUploadError_=function(){this.JSC$12500_reject_();T9n(this)};var m$1=function(H){H=H||{};var C={},S={};this.url=H.url||"";this.args=H.args||_.hb.clone(C);this.assets=H.assets||{};this.attrs=H.attrs||_.hb.clone(S);this.fallback=H.fallback||null;this.fallbackMessage=H.fallbackMessage||null;this.html5=!!H.html5;this.disable=H.disable||{};this.loaded=!!H.loaded;this.messages=H.messages||{}};
m$1.prototype.clone=function(){var H=new m$1,C;for(C in this)if(this.hasOwnProperty(C)){var S=this[C];_.IV(S)=="object"?H[C]=_.hb.clone(S):H[C]=S}return H};var W47,y1d,N9V,xQ,Eoi,esb,u$U,GxP,fLW,vob,lLd,VwW,ooY,OTd,X_1,QI1,d$1,PU_,$$M,p_U,kxd,hsn,noU,r1U,B9d,D$U,K4_,twW,L47,EG0,god,U$7,RsY,ILi,aL1,x$7,HJ7,iJV,Cqd,SuY,baE,sN7,jNb,wqY,AT7,JTY,F$Y,ZJi,cTM,Yud,zo7,MDb,qub,TzU,mvb,W$b,fO,yTM,NzU,bJb,EmY,eo1,uQd,Gu7,fkn,vm_,lkM,VDW,omW,OJM,XqM,QNV,dvi,Pqd,$v1,pqP,yuV,kuY,hod,nmd,rTb,Bz_,Dv_,K$b,tDW,L$M,gmM,UvM,Ro1,IkM,akU,xv7,Ht7,itY,Ce7,Sr1,sbU,jbM,wG1,AKU,JKb,FSM;W47=["account/accounts_list"];y1d=["acknowledge_channel_tou_strike"];N9V=["notification/add_upcoming_event_reminder"];
_.bTn=["att/get"];xQ=["browse","music/browse","unplugged/browse"];Eoi=["channel/claim_legacy_youtube_channel"];esb=["history/clear_search_history"];u$U=["history/clear_watch_history"];GxP=["comment/perform_comment_action"];fLW=["comment/get_comment_replies"];vob=["ypc/commerce_action"];lLd=["backstage/create_post"];VwW=["live/create_broadcast"];ooY=["channel/create_channel"];OTd=["comment/create_comment_reply"];X_1=["comment/create_comment"];QI1=["live_chat/create_poll"];d$1=["playlist/create"];
PU_=["decorate_message"];$$M=["live_chat/delete_message"];p_U=["playlist/delete"];kxd=["video/delete"];hsn=["like/dislike"];noU=["dismissal/dismiss"];r1U=["flag/flag"];B9d=["flow"];D$U=["account/account_menu"];K4_=["playlist/get_add_to_playlist"];twW=["get_answer"];L47=["channel/get_channel_creation_form"];EG0=["offline/get_download_action"];god=["kids/get_kids_blocklist_picker"];U$7=["live_chat/get_item_context_menu"];RsY=["live_chat/get_live_chat_message_buy_flow"];ILi=["live_chat/get_live_chat_replay"];
aL1=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];x$7=["live_chat/get_live_chat_super_sticker_buy_flow"];HJ7=["notification/get_notification_menu"];iJV=["playlist/get_settings_editor"];Cqd=["backstage/get_post_video_preview"];SuY=["account/get_profile_card"];baE=["share/get_share_panel"];sN7=["share/get_sharing_provider_data"];jNb=["get_survey"];wqY=["notification/get_unseen_count"];AT7=["get_user_mention_suggestions"];JTY=["get_watch"];F$Y=["guide"];
ZJi=["feedback"];cTM=["kids/update_blacklist"];Yud=["like/like"];zo7=["live_chat/live_chat_action"];MDb=["live_chat/manage_user"];qub=["video_manager/metadata_update"];TzU=["live_chat/moderate"];mvb=["notification/modify_channel_preference"];W$b=["notification/opt_out"];fO=["get_panel","get_posts_by_host_panel"];yTM=["player"];NzU=["browse/edit_playlist"];bJb=["notification/record_interactions"];EmY=["reel/reel_item_watch"];eo1=["reel/reel_watch_sequence"];uQd=["like/removelike"];Gu7=["notification/remove_upcoming_event_reminder"];
fkn=["flag/get_form"];vm_=["miniapp/report_value"];lkM=["navigation/resolve_url"];VDW=["channel/reveal_business_email"];omW=["in_video/search"];OJM=["search","sfv/search","unplugged/search"];XqM=["live_chat/send_message"];QNV=["live_chat/send_live_chat_vote"];dvi=["account/set_setting"];Pqd=["submit_caption_correction"];$v1=["submit_form"];pqP=["subscription/subscribe"];yuV=["get_transcript"];kuY=["resolve_location","unplugged/resolve_location"];hod=["subscription/unsubscribe"];nmd=["backstage/update_post"];
rTb=["channel_edit/update_channel_page_settings"];Bz_=["comment/update_comment_reply"];Dv_=["comment/update_comment"];K$b=["comment/update_comments_settings"];tDW=["creator/update_creator_channel"];L$M=["pdg/update_enablement"];gmM=["updated_metadata"];UvM=["channel_edit/validate_channel_handle"];Ro1=["verify_age"];IkM=["next","unplugged/watch_next"];akU=["whitelist/edit"];xv7=["ypc/cancel_recurrence"];Ht7=["ypc/complete_transaction"];itY=["ypc/get_cart"];Ce7=["ypc/get_fix_instrument_params"];
Sr1=["ypc/get_offers"];sbU=["ypc/get_payment_instruments_params"];jbM=["ypc/handle_transaction"];wG1=["ypc/log_payment_server_analytics"];AKU=["ypc/pause_subscription"];JKb=["ypc/redeem_code"];FSM=["ypc/resume_subscription"];var Zt7=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,276243,93911,274188,276651,106531,257234,252598,252597,252600,252599,252596,225031,
177843,27259,27262,27263,21759,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,273766,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,
74610,45707,83962,83970,46713,166591,89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,
162712,80357,243315,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,273905,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,
156654,121692,211414,211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,
100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,271884,222932,271886,213915,225216,251244,258251,218674,251266,258250,251265,251245,271885,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,
57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,
43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,196075,194768,
252201,194769,191885,233634,265810,194770,195350,195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,26108,275810,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,
64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,
20445,233471,151308,151152,228067,130975,130976,247244,271622,271813,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,273960,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,
12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,275869,271673,274637,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,273646,273647,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,
262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,275782,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,
137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,273232,82039];var Go=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.AO("yt.msgs_",Go);var vg=new _.W4("ACTION_ROUTER_TOKEN");_.l3=function(){this.autonavState_=_.E("kevlar_is_pupi_enabled")?2:RJ0()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.l3.prototype.getState=function(){return this.autonavState_};
_.l3.prototype.pause=function(H){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=H):this.autonavState_==1&&(this.disabledAutonavPauseReason_=H)};
_.l3.prototype.setState=function(H,C,S){C&&(this.autoplayChangedByUser=!0);C=this.autonavState_===3||H===3;this.autonavState_!=H&&(this.autonavState_=H,H!=3&&_.IJZ(H==2),H=_.E("kevlar_is_pupi_enabled")?S||C:!0,_.a8.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,H,S))};
_.l3.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.JC(_.l3);var Ve=function(){this.hasRun=!1};var oy={},JnE=(oy.auto_search="LATENCY_ACTION_AUTO_SEARCH",oy.ad_to_ad="LATENCY_ACTION_AD_TO_AD",oy.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",oy.app_startup="LATENCY_ACTION_APP_STARTUP",oy.browse="LATENCY_ACTION_BROWSE",oy.cast_splash="LATENCY_ACTION_CAST_SPLASH",oy.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",oy.channels="LATENCY_ACTION_CHANNELS",oy.chips="LATENCY_ACTION_CHIPS",oy.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",oy.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
oy.editor="LATENCY_ACTION_EDITOR",oy.embed="LATENCY_ACTION_EMBED",oy.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",oy.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",oy.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",oy.explore="LATENCY_ACTION_EXPLORE",oy.favorites="LATENCY_ACTION_FAVORITES",oy.home="LATENCY_ACTION_HOME",oy.inboarding="LATENCY_ACTION_INBOARDING",oy.landing="LATENCY_ACTION_LANDING",oy.learning="LATENCY_ACTION_LEARNING",
oy.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",oy.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",oy.library="LATENCY_ACTION_LIBRARY",oy.live="LATENCY_ACTION_LIVE",oy.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",oy.management="LATENCY_ACTION_MANAGEMENT",oy.mini_app="LATENCY_ACTION_MINI_APP_PLAY",oy.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",oy.onboarding="LATENCY_ACTION_ONBOARDING",oy.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
oy.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",oy.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",oy.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",oy.prebuffer="LATENCY_ACTION_PREBUFFER",oy.prefetch="LATENCY_ACTION_PREFETCH",oy.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",oy.profile_switcher="LATENCY_ACTION_LOGIN",oy.projects="LATENCY_ACTION_PROJECTS",oy.reel_watch="LATENCY_ACTION_REEL_WATCH",oy.results="LATENCY_ACTION_RESULTS",oy.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
oy.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",oy.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",oy.review="LATENCY_ACTION_REVIEW",oy.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",oy.search_ui="LATENCY_ACTION_SEARCH_UI",oy.search_suggest="LATENCY_ACTION_SUGGEST",oy.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",oy.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",oy.seek="LATENCY_ACTION_PLAYER_SEEK",oy.settings="LATENCY_ACTION_SETTINGS",oy.store="LATENCY_ACTION_STORE",
oy.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",oy.tenx="LATENCY_ACTION_TENX",oy.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",oy.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",oy.watch="LATENCY_ACTION_WATCH",oy.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",oy["watch,watch7"]="LATENCY_ACTION_WATCH",oy["watch,watch7_html5"]="LATENCY_ACTION_WATCH",oy["watch,watch7ad"]="LATENCY_ACTION_WATCH",oy["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",oy.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
oy.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",oy.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",oy.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",oy.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",oy.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",oy.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",oy.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",oy),eZU=0;var Vcw=function(H,C){Dx.call(this,1,arguments);this.timer=C};
_.G(Vcw,Dx);var lCZ=new Vs0("aft-recorded",Vcw);var YQ7=_.s$.ytLoggingGelSequenceIdObj_||{};_.AO("ytLoggingGelSequenceIdObj_",YQ7);var Of=_.s$.ytLoggingLatencyUsageStats_||{};_.AO("ytLoggingLatencyUsageStats_",Of);var X7=function(){this.cleanupJob=0},qQ7=function(){X7.instance||(X7.instance=new X7);
return X7.instance};
_.F=X7.prototype;_.F.baseline=function(H,C,S){Qe(this,"baseline_"+H)||_.kI("latencyActionBaselined",{clientActionNonce:H},{timestamp:C,cttAuthInfo:S})};
_.F.tick=function(H,C,S,w){Qe(this,"tick_"+H+"_"+C)||_.kI("latencyActionTicked",{tickName:H,clientActionNonce:C},{timestamp:S,cttAuthInfo:w})};
_.F.info=function(H,C,S){var w=Object.keys(H).join("");Qe(this,"info_"+w+"_"+C)||(H=Object.assign({},H),H.clientActionNonce=C,_.kI("latencyActionInfo",H,{cttAuthInfo:S}))};
_.F.jspbInfo=function(H,C,S){for(var w="",A=0;A<$t(H).length;A++)$t(H)[A]!==void 0&&(w=A===0?w.concat(""+A):w.concat("_"+A));Qe(this,"info_"+w+"_"+C)||(_.XA(H,2,C),C={cttAuthInfo:S},S=_.E("jspb_sparse_encoded_pivot")?new Os([{}]):new Os,_.vV(S,7,DQW,H),zZ7("latencyActionInfo",S,C))};
_.F.span=function(H,C,S){var w=Object.keys(H).join("");Qe(this,"span_"+w+"_"+C)||(H.clientActionNonce=C,_.kI("latencyActionSpan",H,{cttAuthInfo:S}))};
var Qe=function(H,C){Of[C]=Of[C]||{count:0};var S=Of[C];S.count++;S.time=(0,_.Zt)();H.cleanupJob||(H.cleanupJob=_.X2(_.rT,function(){var w=(0,_.Zt)(),A;for(A in Of)Of[A]&&w-Of[A].time>6E4&&delete Of[A];H&&(H.cleanupJob=0)},5E3));
return S.count>5?(S.count===6&&Math.random()*1E5<1&&(S=new _.X0("CSI data exceeded logging limit with key",C.split("_")),C.indexOf("plev")>=0||_.Bn(S)),!0):!1};var cKW,YrU;cKW=window;YrU=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.dV=cKW.performance||cKW.mozPerformance||cKW.msPerformance||cKW.webkitPerformance||new YrU;var vA7=!1,mfE=!1,oAU=(0,_.Xv)(_.dV.clearResourceTimings||_.dV.webkitClearResourceTimings||_.dV.mozClearResourceTimings||_.dV.msClearResourceTimings||_.dV.oClearResourceTimings||_.Q5,_.dV);var znP=window;znP.ytcsi&&(znP.ytcsi.infoGel=_.nL,znP.ytcsi.tick=_.DR);var rn$=function(H){Dx.call(this,1,arguments);this.csn=H};
_.G(rn$,Dx);var dTi=new Vs0("screen-created",rn$),s4U=[],nAi=Syu,j4Z=0,UX=new Map,BAZ=new Map,DfE=new Map;var SL7=Symbol("Af"),wB=new WeakMap;var dH=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},om=function(){dH.instance||(dH.instance=new dH);
return dH.instance};
_.F=dH.prototype;_.F.setClient=function(H){this.client=H};
_.F.JSC$12581_newScreen=function(){this.clear();this.csn=_.Dg()};
_.F.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.F.reportShown=function(H,C,S){var w=this.JSC$12581_getTrackingParams(H),A=H.visualElement?H.visualElement:w;C=this.shownElements.has(A);var J=this.visibleState.get(A);this.shownElements.add(A);this.visibleState.set(A,!0);H.impressionLog&&!C&&H.impressionLog();if(w||H.visualElement)if(S=M_n(this,H,S))if(A=qrn(this,H),Pg(this,H)||A){w=H.visualElement?H.visualElement:_.Qh(w);var c=H.interactionLoggingClientData;A||C?Pg(this,H)&4?J||aC7(this.client,S,w,c):Pg(this,H)&1&&!C&&UfZ(this.client,S,w,c):UfZ(this.client,
S,w,c)}};
_.F.reportHidden=function(H,C,S){var w=this.JSC$12581_getTrackingParams(H),A=H.visualElement?H.visualElement:w;C=this.hiddenElements.has(A);var J=this.visibleState.get(A);this.hiddenElements.add(A);this.visibleState.set(A,!1);if(J===!1)return!0;if(!w&&!H.visualElement)return!1;S=M_n(this,H,S);if(!S||!Pg(this,H)&&qrn(this,H))return!1;w=H.visualElement?H.visualElement:_.Qh(w);Pg(this,H)&8?xfE(this.client,S,w):Pg(this,H)&2&&!C&&(H=this.client,C=gV({cttAuthInfo:KD(S)||void 0},S),w={csn:S,ve:w.getAsJson(),
eventType:2},S==="UNDEFINED_CSN"?Ik("visualElementHidden",C,w):H?$I("visualElementHidden",w,H,C):_.kI("visualElementHidden",w,C));return!0};
_.F.JSC$12581_getTrackingParams=function(H){var C=this.getData(H),S,w;if(_.E("il_use_view_model_logging_context")&&(C==null?0:(S=C.context)==null?0:(w=S.loggingContext)==null?0:w.loggingDirectives))return C.context.loggingContext.loggingDirectives.trackingParams||"";var A,J;if(C==null?0:(A=C.rendererContext)==null?0:(J=A.loggingContext)==null?0:J.loggingDirectives)return C.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(C==null?0:C.loggingDirectives)return C.loggingDirectives.trackingParams||
"";var c;return((c=H.veContainer)==null?0:c.trackingParams)?H.veContainer.trackingParams:(C==null?void 0:C.trackingParams)||""};
_.F.JSC$12581_elementShouldLogGesture=function(H,C){H=this.getData(H);return!!((Math.floor(Number(H&&H.loggingDirectives&&H.loggingDirectives.gestures&&H.loggingDirectives.gestures.types||""))||0)&C)};
_.F.JSC$12581_getNearestParentVe=function(H){var C=this.JSC$12581_getTrackingParams(H);return H.visualElement?H.visualElement:C?_.Qh(C):H.parentElement?this.JSC$12581_getNearestParentVe(H.parentElement):null};
var M_n=function(H,C,S){var w=_.Dg(S);return H.csn===null||w===H.csn||S?w:(H=new _.X0("VisibilityLogger called before newScreen",{caller:C.tagName,previous_csn:H.csn,current_csn:w}),_.Bn(H),null)};
dH.prototype.getData=function(H){var C,S=H.data||((C=H.props)==null?void 0:C.data);if(!S||H.isWebComponentWrapper){var w;S=(w=wB.get(H))==null?void 0:w[SL7]}return S};
var qrn=function(H,C){var S;return!((S=H.getData(C))==null||!S.loggingDirectives)},Pg=function(H,C){H=H.getData(C);
return Math.floor(Number(H&&H.loggingDirectives&&H.loggingDirectives.visibility&&H.loggingDirectives.visibility.types||""))||1};var $P;$P=function(){};
_.f7=function(){$P.instance||($P.instance=new $P);return $P.instance};
$P.prototype.setClient=function(H){_.Lp(om().setClient).bind(om())(H)};
_.Tni=function(){_.f7();_.Lp(om().JSC$12581_newScreen).bind(om())()};
$P.prototype.clear=function(){_.Lp(om().clear).bind(om())()};
$P.prototype.reportShown=function(H,C,S){_.Lp(om().reportShown).bind(om())(H,C,S)};
$P.prototype.reportHidden=function(H,C,S){return _.Lp(om().reportHidden).bind(om())(H,C,S)};
var o7W=function(H,C){return _.Lp(om().JSC$12581_getTrackingParams).bind(om())(C)},sPE=function(H,C){return _.Lp(om().JSC$12581_getNearestParentVe).bind(om())(C)};var pO,mqM;pO=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};
_.lJ=function(){pO.instance||(pO.instance=new pO);return pO.instance};
pO.prototype.setClient=function(H){this.client=H};
mqM=function(H,C,S){S=S===void 0?{}:S;_.Lp(function(){var w,A,J,c=((w=_.e(C==null?void 0:C.commandMetadata,_.u9))==null?void 0:w.rootVe)||((A=_.e(C==null?void 0:C.commandMetadata,sxU))==null?void 0:(J=A.screenVisualElement)==null?void 0:J.uiType);if(c){w=_.e(C==null?void 0:C.commandMetadata,R$V);if(w==null?0:w.parentTrackingParams){var Y=_.Qh(w.parentTrackingParams);if(w.parentCsn)var M=w.parentCsn}else S.clickedVisualElement?Y=S.clickedVisualElement:C.clickTrackingParams&&(Y=_.Qh(C.clickTrackingParams));
a:{w=_.e(C,_.sX);A=_.e(C,K4V);if(w){if(A=aJ$(w,"VIDEO")){w={token:A,videoId:w.videoId};break a}}else if(A&&(w=aJ$(A,"PLAYLIST"))){w={token:w,playlistId:A.playlistId};break a}w=void 0}S=Object.assign({},{cttAuthInfo:w,parentCsn:M},S);if(_.E("expectation_logging")){var m;S.loggingExpectations=((m=_.e(C==null?void 0:C.commandMetadata,sxU))==null?void 0:m.loggingExpectations)||void 0}_.kP(H,c,Y,S)}else _.Bn(new _.X0("Error: Trying to create a new screen without a rootVeType",C))})()};
_.kP=function(H,C,S,w){w=w===void 0?{}:w;_.Lp(function(){Zt7.includes(C)||(_.Bn(new _.X0("createClientScreen() called with a non-page VE",C)),C=83769);w.isHistoryNavigation||(H.forwardHistoryStack=[],H.backHistoryStack.push({rootVe:C,key:w.key||""}));H.graftQueue=[];H.stateChangedQueue=[];w.dataPromises?WSV(H,C,S,w):yKV(H,C,S,w)})()};
_.Nn_=function(H,C,S){S=S===void 0?0:S;_.Lp(function(){C.then(function(w){H.pendingScreenCreation.has(S)&&H.pendingScreenFn&&H.pendingScreenFn();var A=_.Dg(S),J=_.BM(S);if(A&&J){var c={automatedLogEventSource:3},Y;(w==null?0:(Y=w.response)==null?0:Y.trackingParams)&&Rk(H.client,A,J,_.Qh(w.response.trackingParams),!1,c);var M;(w==null?0:(M=w.playerResponse)==null?0:M.trackingParams)&&Rk(H.client,A,J,_.Qh(w.playerResponse.trackingParams),!1,c)}})})()};
pO.prototype.graftServerVe=function(H,C,S){var w=this;return _.Lp(function(){var A=_.Qh(H);_.hd(w,A,C,S);return A})()};
_.jP0=function(H,C,S,w){return _.E("enable_client_ve_spec")&&C.clientVeSpec?(C=_.y4(C.clientVeSpec.uiType,void 0,C.clientVeSpec.elementIndex,C.clientVeSpec.clientYoutubeData,void 0,C),_.hd(H,C,S,w)?C:null):C.trackingParams?H.graftServerVe(C.trackingParams,S,w):null};
_.vI=function(H,C,S,w){return _.Lp(function(){if(!C.veType)return _.rv(new _.X0("Error: Trying to graft a client VE without a veType.")),null;if(C.visibilityTypes){var A=C.visibilityTypes.reduce(function(J,c){return J|c});
A={visibility:{types:String(A)}}}A=_.y4(C.veType,C.visualElement,C.elementIndex,C.clientYouTubeData,void 0,A);return _.hd(H,A,S,w)?A:null})()};
_.hd=function(H,C,S,w){w=w===void 0?0:w;return _.Lp(function(){if(H.pendingScreenCreation.has(w))return H.graftQueue.push([C,S]),!0;var A=_.Dg(w),J=S||_.BM(w);if(A&&J){if(_.E("combine_ve_grafts")){var c=H.cachedVisualElements.get(J.toString());c?c.push(C):(H.cachedRootVisualElements.set(J.toString(),J),H.cachedVisualElements.set(J.toString(),[C]));H.attachTimeout||(H.attachTimeout=_.X2(_.rT,function(){bt1(H,A)},1200))}else Rk(H.client,A,J,C);
return!0}return!1})()};
_.nO=function(H,C,S){S=S===void 0?0:S;var w=H.recurringGrafts.get(S)||new Map;if(_.E("smarter_ve_dedupping"))for(var A=Array.from(w.keys()),J=0;J<A.length;J++){var c=void 0,Y=void 0;var M=C;var m=A[J];m.isClientVe()&&M.isClientVe()?(c=M.getAsJson(),Y=m.getAsJson(),M=c.veType!==Y.veType||c.elementIndex!==Y.elementIndex||c.dataElement!==Y.dataElement||M.getLoggingDirectives()!==m.getLoggingDirectives()?!1:!0):M=m.veData.trackingParams!==void 0&&M.veData.trackingParams!==void 0?((Y=M.veData)==null?void 0:
Y.trackingParams)===((c=m.veData)==null?void 0:c.trackingParams):!1;if(M)return}else if(w.has(C))return;w.set(C,void 0);H.recurringGrafts.set(S,w);_.Dg(S)==="UNDEFINED_CSN"||H.pendingScreenCreation.has(S)||_.hd(H,C,void 0,S)};
_.rH=function(H,C,S,w){w=_.Dg(w===void 0?0:w);if(!w)return!1;iop(H.client,w,C,S);return!0};
_.Bg=function(H,C,S,w){if(!C)return!1;w=_.Dg(w===void 0?0:w);if(!w)return!1;iop(H.client,w,_.Qh(C),S);return!0};
_.aW=function(H,C){var S=C.getScreenLayer&&C.getScreenLayer();if(C.visualElement)return _.rH(H,C.visualElement,void 0,S);C=o7W(_.f7(),C);return _.Bg(H,C,void 0,S)};
pO.prototype.clickCommand=function(H,C,S){return _.Bg(this,H.clickTrackingParams,C,S===void 0?0:S)};
pO.prototype.stateChanged=function(H,C,S){this.visualElementStateChanged(_.Qh(H),C,S===void 0?0:S)};
pO.prototype.visualElementStateChanged=function(H,C,S){S=S===void 0?0:S;S===0&&this.pendingScreenCreation.has(S)?this.stateChangedQueue.push([H,C]):this.logStateChanged(H,C,S)};
pO.prototype.logStateChanged=function(H,C,S){S=S===void 0?0:S;var w=_.Dg(S);H=H||_.BM(S);return w&&H?(Ct7(this.client,w,H,C),!0):!1};
var WSV=function(H,C,S,w){w=w===void 0?{}:w;H.pendingScreenCreation.add(w.layer||0);H.pendingScreenFn=function(){yKV(H,C,S,w);var c=_.BM(w.layer);if(c){for(var Y=_.Z(H.graftQueue),M=Y.next();!M.done;M=Y.next())M=M.value,_.hd(H,M[0],M[1]||c,w.layer);c=_.Z(H.stateChangedQueue);for(Y=c.next();!Y.done;Y=c.next())Y=Y.value,H.logStateChanged(Y[0],Y[1])}};
S||_.Dg(w.layer)||H.pendingScreenFn();if(w.dataPromises)for(var A=_.Z(w.dataPromises),J=A.next();!J.done;J=A.next())_.Nn_(H,J.value,w.layer);else _.nC(Error("Bf"))},yKV=function(H,C,S,w){w=w===void 0?{}:w;
var A=void 0;w.layer||(w.layer=0);A=w.parentLayer!==void 0?w.parentLayer:w.layer;var J=_.Dg(A);A=_.BM(A);var c=S||A,Y;c&&(w.parentCsn!==void 0?Y={clientScreenNonce:w.parentCsn,visualElement:c}:J&&J!=="UNDEFINED_CSN"&&(Y={clientScreenNonce:J,visualElement:c}));var M,m=_.rh("EVENT_ID");J==="UNDEFINED_CSN"&&m&&(M={servletData:{serializedServletEventId:m}});_.E("combine_ve_grafts")&&J&&bt1(H,J);_.E("no_client_ve_attach_unless_shown")&&c&&J&&gAD(c,J);try{var W=_.Ku7(H.client,C,Y,w.csnToClone,w.cttAuthInfo,
M,w.implicitGestureType,void 0,w.loggingExpectations)}catch(b){_.DZ(b,{rootVeType:C,rootVe:A,parentVisualElement:S,currentCsn:J,parentEl:Y,csnToClone:w.csnToClone});_.nC(b);return}_.tJ(W,C,w.layer,w.cttAuthInfo);J&&J!=="UNDEFINED_CSN"&&A&&!iHV(J)&&xfE(H.client,J,A,!0);H.backHistoryStack[H.backHistoryStack.length-1]&&!H.backHistoryStack[H.backHistoryStack.length-1].csn&&(H.backHistoryStack[H.backHistoryStack.length-1].csn=W||"");_.nL({clientScreenNonce:W});_.Tni();var y=_.BM(w.layer);J&&J!=="UNDEFINED_CSN"&&
y&&(_.E("web_mark_root_visible")||_.E("music_web_mark_root_visible"))&&_.HF(W,y);H.pendingScreenCreation.delete(w.layer||0);H.pendingScreenFn=void 0;var N;(N=H.recurringGrafts.get(w.layer))==null||N.forEach(function(b,u){b?_.hd(H,u,b,w.layer):y&&_.hd(H,u,y,w.layer)});
EnM(H)},EnM=function(H){for(var C=0;C<H.afterNewScreenOneOffJobs.length;C++){var S=H.afterNewScreenOneOffJobs[C];
try{S()}catch(w){_.nC(w)}}for(C=H.afterNewScreenOneOffJobs.length=0;C<H.afterNewScreenRecurringJobs.length;C++){S=H.afterNewScreenRecurringJobs[C];try{S()}catch(w){_.nC(w)}}},bt1=function(H,C){if(C===void 0)for(var S=xgZ(),w=0;w<S.length;w++)S[w]!==void 0&&bt1(H,S[w]);
else H.cachedVisualElements.forEach(function(A,J){(J=H.cachedRootVisualElements.get(J))&&tcV(H.client,C,J,A)}),H.cachedVisualElements.clear(),H.cachedRootVisualElements.clear(),H.attachTimeout=void 0};var D3=function(H){H=H===void 0?{layer:0}:H;this.hasRun=!1;this.createScreenConfig=H;H={};this.ubT=(H.response=!1,H.playerResponse=!1,H)};
_.G(D3,Ve);D3.prototype.validate=function(H){return!(!H.data||!H.data.response&&!H.data.playerResponse)};
D3.prototype.handle=function(H){var C=_.lJ(),S=this.createScreenConfig.layer;H.data.response&&H.data.response.trackingParams&&!this.ubT.response&&(C.graftServerVe(H.data.response.trackingParams,void 0,S),this.ubT.response=!0);H.data.playerResponse&&H.data.playerResponse.trackingParams&&!this.ubT.playerResponse&&(C.graftServerVe(H.data.playerResponse.trackingParams,void 0,S),this.ubT.playerResponse=!0)};var KO=function(){this.oR=_.Cn();this.uw=[];this.jHT=0};
KO.prototype.processChunk=function(H){if(H){for(var C=_.Z(this.uw),S=C.next();!S.done;S=C.next())S=S.value,S.validate(H)&&(S.handle(H),S.hasRun=!0);_.DR("np"+this.jHT);this.jHT++}};var Af={initialized:!1,nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[],shouldSampleFn:function(){return!0}},FyW={rootSpan:function(){return Af.stack[0]}};var uxV=function(){var H=en_;this.observers=[];this.value=H};
_.F=uxV.prototype;_.F.subscribe=function(H){var C=this;if(H.idx!=null)throw Error("Df");H.idx=this.observers.length;this.observers.push(H);return function(){var S=C.observers[C.observers.length-1];C.observers[H.idx]=S;S.idx=H.idx;C.observers.pop()}};
_.F.update=function(H){this.value=H(this.value);this.notify()};
_.F.mutate=function(H){H(this.value);this.notify()};
_.F.set=function(H){this.value=H;this.notify()};
_.F.notify=function(){for(var H=_.Z(this.observers),C=H.next();!C.done;C=H.next()){C=C.value;try{C(this.value)}catch(S){}}};var fmi,GY1,lTb;_.eU=function(H,C,S,w,A,J,c){c=c===void 0?[]:c;this.buildCommandPayload=H;this.navigate=C;this.handleServiceRequest=S;this.sendAction=w;this.JSC$12628_screenManager=A;this.commandResolverMap=J;this.autoLogResolverAllowlist=c;this.pendingCommands=new Set;this.isTracingEnabled=!1;GY1(this)};
fmi=function(H,C,S){var w=YL7,A=zE6,J=_.lJ(),c=fTP;S=S===void 0?[]:S;_.eU.instance=new _.eU(H,C,w,A,J,c,S)};
GY1=function(H){if(!H.isTracingEnabled&&AoU("command")){var C=H.resolveCommand;H.resolveCommand=function(S,w){a:{for(A in S)if(Object.prototype.hasOwnProperty.call(S,A)){var A={commandType:A};break a}A={}}return ZoW("command",A,C.bind(this,S,w))};
H.isTracingEnabled=!0}};
lTb=function(H,C,S){if(!H.commandResolverMap)return!1;var w=qy7(C,H.commandResolverMap);return w?((H.autoLogResolverAllowlist.some(function(A){return!!_.e(C,A)})||(S==null?0:S.forceClickLogging))&&vnW(H,C,S),w instanceof Promise?w.then(function(A){A.resolve(C,S)}):w.resolve(C,S),!0):!1};
_.eU.prototype.resolveCommand=function(H,C){var S=this,w=V_M(H);if(lTb(this,H,C))return!0;if(w)return onU(this,H,C);if(!this.buildCommandPayload)return YyD(H,"Unhandled command by buildCommandPayload"),!1;var A=this.buildCommandPayload(H,C);if(C==null?0:C.commandController)A.commandController=C.commandController;if(A.type===0){if(!this.navigate)return z1U(H,"navigate"),!1;if(!Oti(A.command))return YyD(H,"Page requests need to specify a url"),!1;_.E("logging_avoid_blocking_during_navigation")&&_.W_0().transition("application_navigating");
H=this.navigate(A)||[];XjY(H).then(function(){S.pendingCommands.delete(A.command)});
return!0}if(A.type===1){if(!this.handleServiceRequest)return z1U(H,"handleServiceRequest"),!1;(C==null?0:C.forceClickLogging)&&vnW(this,A.command,C);H=this.handleServiceRequest(A);XjY(H).then(function(){S.pendingCommands.delete(A.command)});
return!0}if(A.type===2){if(!this.sendAction)return z1U(H,"sendAction"),!1;vnW(this,A.command,C);this.sendAction(A);return!0}return!1};
var vnW=function(H,C,S){if((S==null||!S.disableClickTracking)&&H.JSC$12628_screenManager)if(C.clickTrackingParams&&_.E("log_click_with_layer_from_element_in_command_handler")){var w;S=S==null?void 0:(w=S.form)==null?void 0:w.element;H.JSC$12628_screenManager.clickCommand(C,null,S&&S.getScreenLayer&&S.getScreenLayer())}else C.clickTrackingParams?H.JSC$12628_screenManager.clickCommand(C):!_.E("disable_clicked_visual_element_in_command_handler")&&(S==null?0:S.clickedVisualElement)&&_.rH(H.JSC$12628_screenManager,
S.clickedVisualElement)},V_M=function(H){var C=!!_.e(H,_.b9),S;
H=((S=_.e(H,_.eR))==null?void 0:S.signal)==="CLIENT_SIGNAL";return C||H},onU=function(H,C,S){var w=_.e(C,_.b9);
if(w)var A=(w==null?void 0:w.commands)||[];else{var J;if(((J=_.e(C,_.eR))==null?void 0:J.signal)==="CLIENT_SIGNAL"){var c;A=((c=_.e(C,_.eR))==null?void 0:c.actions)||[]}}if(A){C=_.Z(A);for(A=C.next();!A.done;A=C.next()){A=A.value;try{H.resolveCommand(A,S)}catch(Y){Y instanceof Error&&_.nC(Y)}}return!0}YyD(C,"Could not handle the meta command");return!1},Oti=function(H){var C;
return!((C=_.e(H==null?void 0:H.commandMetadata,_.u9))==null||!C.url)};var td=function(){Ve.apply(this,arguments)};
_.G(td,Ve);td.prototype.validate=function(H){var C,S;return!this.hasRun&&!!((C=H.data.response)==null?0:(S=C.onResponseReceivedEndpoints)==null?0:S.length)};
td.prototype.handle=function(H){var C=_.eU.instance;H=_.Z(H.data.response.onResponseReceivedEndpoints);for(var S=H.next();!S.done;S=H.next())C.resolveCommand(S.value)};var XG7,Qbn,dqP;
XG7=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=_.N3();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.LO=function(){Qbn||(Qbn=new XG7);return Qbn};
dqP=function(){var H=_.LO();H.miniplayerButtonActivation=!1;H.userActivation=!1;H.playlistWatchPageActivation=!1;H.productDetailsPageActivation=!1;H.miniAppPageActivation=!1;H.playablesDestPageActivation=!1;H.lockupActivation=!1;H.showMiniplayerCommandActivation=!1;H.playlistSuggestionsShelfActivation=!1;H.mediaSessionPipActivation=!1;H.watchPipActivation=!1;H.watchWhileActivation=!1;H.shortsPipActivation=!1};
_.PeW=function(){var H=_.LO(),C=H.mediaSessionPipActivation,S=H.watchPipActivation,w=H.watchWhileActivation,A=H.playlistWatchPageActivation,J=H.lockupActivation,c=H.showMiniplayerCommandActivation,Y=H.navigatingAwayFromWatchDeletedVideo,M=H.shortsPipActivation,m=H.playlistSuggestionsShelfActivation,W=H.productDetailsPageActivation,y=H.miniAppPageActivation,N=H.playablesDestPageActivation;return!H.miniplayerButtonActivation&&!A&&!m&&!W&&!y&&!N&&!J&&!c&&!C&&!S&&!w&&!M||Y};var ey7;_.gH=_.F_("FEwhat_to_watch","/",3854);_.uDi=_.F_("FEdownloads","/feed/downloads",42352);ey7=_.F_("FEmusic_offline","browse/FEmusic_offline",42352);var wm=function(H,C){C=C===void 0?[]:C;var S=S===void 0?[]:S;C=dR7.apply(null,[Pwi.apply(null,_.k$(C))].concat(_.k$(S)));this.store=hw$(H,void 0,C)};
wm.prototype.getState=function(){return this.store.getState()};
wm.prototype.dispatch=function(H){return this.store.dispatch(H)};
wm.prototype.subscribe=function(H){return this.store.subscribe(H)};
wm.prototype.replaceReducer=function(H){return this.store.replaceReducer(H)};
wm.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.Uf=function(H,C,S){var w=C(H.getState());return H.subscribe(function(){var A=C(H.getState());if(A!==w){var J=w;w=A;S(A,J)}})};var wgp;_.O5=function(H,C,S){return _.Md({type:"REPLACE_ENTITY",payload:{entityPayload:S,entityType:H,key:C}})};
wgp=function(H){return _.Md({type:"REPLACE_ENTITIES",payload:H})};
_.pN=function(H,C,S,w){return _.Md({type:"UPDATE_ENTITY",payload:{entityPayload:S,entityType:H,key:C,mergeOption:w}})};var l60=function(H){var C=this;H=H===void 0?[]:H;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;H.forEach(function(S){C.append(S)})};
_.F=l60.prototype;_.F.getLength=function(){return this.totalLength};
_.F.append=function(H){var C=this.arrays.length===0?!1:(C=this.arrays[this.arrays.length-1])&&C.buffer===H.buffer&&C.byteOffset+C.length===H.byteOffset;C?(C=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(C.buffer,C.byteOffset,C.length+H.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(H);this.totalLength+=H.length};
_.F.split=function(H){for(var C=new l60,S=new l60,w=_.Z(this.arrays),A=w.next();!A.done;A=w.next())A=A.value,H>=A.length?(C.append(A),H-=A.length):H?(C.append(new Uint8Array(A.buffer,A.byteOffset,H)),S.append(new Uint8Array(A.buffer,A.byteOffset+H,A.length-H)),H=0):S.append(A);return{headView:C,tailView:S}};
_.F.extract=function(H,C){return this.split(H).tailView.split(C).headView};
_.F.isFocused=function(H){return H>=this.arrayPos&&H<this.arrayPos+this.arrays[this.arrayIdx].length};
_.F.focus=function(H){if(!this.isFocused(H))for(H<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=H&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var $q7=function(H,C){H.focus(C);return H.arrays[H.arrayIdx][C-H.arrayPos]};(function(){var H=function(w){return new Uint8Array(w)},C=function(w){for(var A=new Uint8Array(w.length),J=0;J<w.length;J++)A[J]=w[J];
return A},S=new Uint8Array([1]);
return S.length===1&&S[0]===1?H:C})();
var EHW=Array(1024),boW=window.TextDecoder?new TextDecoder:void 0,uOE=window.TextEncoder?new TextEncoder:void 0;var vH6=function(H){this.arrayView=H;this.pos=0;this.pendingTagAndType=-1},qd=function(H){var C=$q7(H.arrayView,H.pos);
++H.pos;if(C<128)return C;for(var S=C&127,w=1;C>=128;)C=$q7(H.arrayView,H.pos),++H.pos,w*=128,S+=(C&127)*w;return S},VB7=function(H,C){var S=H.pendingTagAndType;
for(H.pendingTagAndType=-1;H.pos+1<=H.arrayView.totalLength;){S<0&&(S=qd(H));var w=S>>3,A=S&7;if(w===C)return!0;if(w>C){H.pendingTagAndType=S;break}S=-1;switch(A){case 0:qd(H);break;case 1:H.pos+=8;break;case 2:w=qd(H);H.pos+=w;break;case 5:H.pos+=4}}return!1};var Oo0=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=f6W(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},Nd=function(H,C){C=H.pos+C;
if(!(H.buf.length>=C)){for(var S=H.buf.length*2;S<C;)S*=2;H.buf=f6W(S,H.wasm,H.buf.subarray(0,H.pos));H.view=new DataView(H.buf.buffer,H.buf.byteOffset,H.buf.byteLength)}},mF=function(H,C){if(C>268435455){Nd(H,4);
for(var S=C&1073741823,w=0;w<4;w++)H.view.setUint8(H.pos,S&127|128),S>>=7,H.pos+=1;C=Math.floor(C/268435456)}for(Nd(H,4);C>127;)H.view.setUint8(H.pos,C&127|128),C>>=7,H.pos+=1;H.view.setUint8(H.pos,C);H.pos+=1};for(var XJV={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},oHZ={},pG1=_.Z(Object.entries(XJV)),kYb=pG1.next();!kYb.done;kYb=pG1.next()){var hn7=_.Z(kYb.value),nn1=hn7.next().value,rKU=hn7.next().value,BnM=nn1,DqV=rKU;DqV&&(oHZ[DqV]=BnM)};var dJZ=function(H,C){H=H===void 0?{}:H;switch(C.type){case "ENTITY_LOADED":return C.payload.reduce(function(w,A){var J,c=(J=A.options)==null?void 0:J.persistenceOption;if(c&&c!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&c!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return w;if(!A.entityKey)return _.nC(Error("Ff")),w;if(A.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!A.payload)return A=new _.X0("REPLACE entity mutation is missing a payload",{entityKey:A.entityKey}),_.nC(A),w;var Y=(0,_.hb.getAnyKey)(A.payload);
return $JV(w,Y,A.entityKey,A.payload[Y])}if(A.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{A=A.entityKey;try{var M=_.Tn(A).entityType;Y=$JV(w,M,A);break a}catch(y){if(y instanceof Error){A=new _.X0("Failed to deserialize entity key",{entityKey:A,originalMessage:y.message});_.nC(A);Y=w;break a}throw y;}Y=void 0}return Y}if(A.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!A.payload)return A=new _.X0("UPDATE entity mutation is missing a payload",{entityKey:A.entityKey}),_.nC(A),w;Y=(0,_.hb.getAnyKey)(A.payload);
var m,W;return pJ6(w,Y,A.entityKey,A.payload[Y],(m=A.fieldMask)==null?void 0:(W=m.mergeOptions)==null?void 0:W.repeatedFieldsMergeOption)}return w},H);
case "REPLACE_ENTITY":var S=C.payload;return $JV(H,S.entityType,S.key,S.entityPayload);case "REPLACE_ENTITIES":return Object.keys(C.payload).reduce(function(w,A){var J=C.payload[A];return Object.keys(J).reduce(function(c,Y){return $JV(c,A,Y,J[Y])},w)},H);
case "UPDATE_ENTITY":return S=C.payload,pJ6(H,S.entityType,S.key,S.entityPayload,S.mergeOption);default:return H}};var kjp;var KS1=!1,Ry,Iy,ay,xP,HP,t_d=function(H){_.Op.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!KS1){var C,S=new Uint8Array(256),w=new Uint8Array(256);var A=1;for(C=0;C<256;C++)S[A]=C,w[C]=A,A^=A<<1^(A>>7&&283);Ry=new Uint8Array(256);Iy=ep(256);ay=ep(256);xP=ep(256);HP=ep(256);for(var J=0;J<256;J++){A=J?w[255^S[J]]:0;A^=A<<1^A<<2^A<<3^A<<4;A=A&255^A>>>8^99;Ry[J]=A;C=A<<1^(A>>7&&283);var c=C^A;Iy[J]=C<<24|A<<16|A<<8|c;ay[J]=c<<24|Iy[J]>>>8;xP[J]=A<<24|ay[J]>>>
8;HP[J]=A<<24|xP[J]>>>8}KS1=!0}A=ep(44);for(S=0;S<4;S++)A[S]=H[4*S]<<24|H[4*S+1]<<16|H[4*S+2]<<8|H[4*S+3];for(w=1;S<44;S++)H=A[S-1],S%4||(H=(Ry[H>>16&255]^w)<<24|Ry[H>>8&255]<<16|Ry[H&255]<<8|Ry[H>>>24],w=w<<1^(w>>7&&283)),A[S]=A[S-4]^H;this.key=A};
_.G(t_d,_.Op);
t_d.prototype.encrypt=function(H){var C=H.length;H=new Uint8Array(H.buffer.slice(H.byteOffset,H.byteOffset+C));for(var S=this.cipherBlock,w=0;w<C&&this.blockOffset<16;)H[w++]^=S[this.blockOffset++];for(var A=C-(C-w)%16;w<A;)LS1(this),H[w++]^=S[0],H[w++]^=S[1],H[w++]^=S[2],H[w++]^=S[3],H[w++]^=S[4],H[w++]^=S[5],H[w++]^=S[6],H[w++]^=S[7],H[w++]^=S[8],H[w++]^=S[9],H[w++]^=S[10],H[w++]^=S[11],H[w++]^=S[12],H[w++]^=S[13],H[w++]^=S[14],H[w++]^=S[15];if(w<C)for(LS1(this),this.blockOffset=0;w<C;)H[w++]^=
S[this.blockOffset++];return H};
var LS1=function(H){for(var C=H.key,S=H.counter[0]^C[0],w=H.counter[1]^C[1],A=H.counter[2]^C[2],J=H.counter[3]^C[3],c=3;c>=0&&!(H.counter[c]=-~H.counter[c]);c--);for(var Y,M,m=4;m<40;)c=Iy[S>>>24]^ay[w>>16&255]^xP[A>>8&255]^HP[J&255]^C[m++],Y=Iy[w>>>24]^ay[A>>16&255]^xP[J>>8&255]^HP[S&255]^C[m++],M=Iy[A>>>24]^ay[J>>16&255]^xP[S>>8&255]^HP[w&255]^C[m++],J=Iy[J>>>24]^ay[S>>16&255]^xP[w>>8&255]^HP[A&255]^C[m++],S=c,w=Y,A=M;H=H.cipherBlock;c=C[40];H[0]=Ry[S>>>24]^c>>>24;H[1]=Ry[w>>16&255]^c>>16&255;H[2]=
Ry[A>>8&255]^c>>8&255;H[3]=Ry[J&255]^c&255;c=C[41];H[4]=Ry[w>>>24]^c>>>24;H[5]=Ry[A>>16&255]^c>>16&255;H[6]=Ry[J>>8&255]^c>>8&255;H[7]=Ry[S&255]^c&255;c=C[42];H[8]=Ry[A>>>24]^c>>>24;H[9]=Ry[J>>16&255]^c>>16&255;H[10]=Ry[S>>8&255]^c>>8&255;H[11]=Ry[w&255]^c&255;c=C[43];H[12]=Ry[J>>>24]^c>>>24;H[13]=Ry[S>>16&255]^c>>16&255;H[14]=Ry[w>>8&255]^c>>8&255;H[15]=Ry[A&255]^c&255};var gn7=!1;(function(){var H=function(w){return new Uint8Array(w)},C=function(w){for(var A=new Uint8Array(w.length),J=0;J<w.length;J++)A[J]=w[J];
return A},S=new Uint8Array([1]);
return S.length===1&&S[0]===1?H:C})();
var io;var ITP=function(H){a:{if(!gn7&&!jk){if(io){var C=io;break a}io=(C=window.crypto)==null?void 0:C.subtle;var S,w,A;if(((S=io)==null?0:S.importKey)&&((w=io)==null?0:w.sign)&&((A=io)==null?0:A.encrypt)){C=io;break a}io=void 0}C=void 0}C&&(this.nativeEncryptor=new Uq_(H,C));this.encryptorPolyfill=new Rn_(H)};
ITP.prototype.encrypt=function(H,C){var S=this,w;return _.z(function(A){switch(A.nextAddress){case 1:if(!S.nativeEncryptor){A.jumpTo(2);break}_.en(A,3);return A.yield(S.nativeEncryptor.encrypt(H,C),5);case 5:return A.return(A.yieldResult);case 3:w=_.Vx(A),_.Bn(w),gn7=!0,S.nativeEncryptor=void 0;case 2:return A.return(S.encryptorPolyfill.encrypt(H,C))}})};
ITP.prototype.decrypt=function(H,C){return this.encrypt(H,C)};
var Uq_=function(H,C){this.JSC$12701_aesKey=H;this.subtleCrypto=C};
Uq_.prototype.encrypt=function(H,C){var S=this,w;return _.z(function(A){if(A.nextAddress==1)return _.en(A,2),A.yield(aTM(S,H,C),4);if(A.nextAddress!=2)return A.return(A.yieldResult);w=_.Vx(A);_.Bn(w);gn7=!0;throw w;})};
var aTM=function(H,C,S){var w,A;return _.z(function(J){switch(J.nextAddress){case 1:if(H.cryptoKey){J.jumpTo(2);break}return J.yield(H.subtleCrypto.importKey("raw",H.JSC$12701_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:H.cryptoKey=J.yieldResult;case 2:return w={name:"AES-CTR",counter:S,length:128},J.yield(H.subtleCrypto.encrypt(w,H.cryptoKey,C),4);case 4:return A=J.yieldResult,J.return(new Uint8Array(A))}})},Rn_=function(H){this.JSC$12704_aesKey=H};
Rn_.prototype.encrypt=function(H,C){this.encryptor||(this.encryptor=new t_d(this.JSC$12704_aesKey));for(var S=this.encryptor,w=0;w<4;w++)S.counter[w]=C[w*4]<<24|C[w*4+1]<<16|C[w*4+2]<<8|C[w*4+3];S.blockOffset=16;return this.encryptor.encrypt(H)};
Rn_.prototype.decrypt=function(H,C){return this.encrypt(H,C)};var xq_={},rou=F6("yt-idb-pref-storage",{objectStores:(xq_.prefs={addedAtVersion:1},xq_),shared:!1,upgrade:function(H,C){C(1)&&RM(Uc(H,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.C$=function(H){this.token=H};
_.C$.getInstance=function(){return _.z(function(H){return H.return(new Promise(function(C){_.JO().then(function(S){S?(_.C$.instance||(_.C$.instance=new _.C$(S)),C(_.C$.instance)):C(void 0)})}))})};
_.C$.prototype.get=function(H){var C=this,S,w,A;return _.z(function(J){if(J.nextAddress==1)return J.yield(BZW(C.token),2);if(J.nextAddress!=3)return S=J.yieldResult,J.yield(S.get("prefs",H),3);w=J.yieldResult;if(!w)return J.return();A=(0,_.Zt)();return w.expirationTimestampMs<=A?J.return():J.return(w.value)})};
_.C$.prototype.set=function(H,C,S){S=S===void 0?31536E3:S;var w=this,A,J,c;return _.z(function(Y){if(Y.nextAddress==1)return A=(0,_.Zt)(),J={key:H,value:C,expirationTimestampMs:A+S*1E3},Y.yield(BZW(w.token),2);c=Y.yieldResult;return Y.yield(c.put("prefs",J),0)})};
_.C$.prototype.remove=function(H){var C=this,S;return _.z(function(w){if(w.nextAddress==1)return w.yield(BZW(C.token),2);S=w.yieldResult;return w.yield(S.delete("prefs",H),0)})};var S8={},Hg7=(S8.INVALID_ENCODER_VERSION="Invalid encoder version",S8.KEY_CREATION_FAILED="Failed to create encoder key",S8.UNKNOWN_DECODE_ERROR="Failed to decode PES data",S8.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",S8.WRONG_DATA_TYPE="Encoder cannot process the data type",S8),ua=function(H,C){C=C===void 0?{}:C;_.X0.call(this,Hg7[H],Object.assign({},{name:"PESEncoderError",type:H},C));this.type=H;this.level="WARNING";Object.setPrototypeOf(this,ua.prototype)};
_.G(ua,_.X0);var se=function(){};
se.prototype.encode=function(H,C){try{return this.encodeImpl(H,C)}catch(S){LyV(S,Kyu)}};
se.prototype.decode=function(H,C){try{return this.decodeImpl(H,C)}catch(S){LyV(S,tBu)}};
var igP=function(H,C,S){var w;return _.z(function(A){if(A.nextAddress==1)return _.en(A,2),A.yield(H.decodeAsyncImpl(C,S),4);if(A.nextAddress!=2)return A.return(A.yieldResult);w=_.Vx(A);LyV(w,tBu);_.oT(A)})};
se.prototype.decodeAsyncImpl=function(H,C){return Promise.resolve(this.decodeImpl(H,C))};var j8=function(H,C){this.aesEncryptor=H;this.aesEncryptorAsync=C};
_.G(j8,se);j8.prototype.encodeImpl=function(H,C){C=gHU(C);H=(new TextEncoder).encode(JSON.stringify(H));return this.aesEncryptor.encrypt(H,C)};
j8.prototype.decodeImpl=function(H,C){if(!(H instanceof Uint8Array))throw DJ$(1);var S=new TextDecoder;C=gHU(C);H=this.aesEncryptor.decrypt(H,C);return JSON.parse(S.decode(H))};
j8.prototype.decodeAsyncImpl=function(H,C){var S=this,w,A,J;return _.z(function(c){if(c.nextAddress==1){if(!(H instanceof Uint8Array))throw DJ$(1);w=new TextDecoder;A=gHU(C);return c.yield(S.aesEncryptorAsync.decrypt(H,A),2)}J=c.yieldResult;return c.return(JSON.parse(w.decode(J)))})};var UJD={accountLinkStatusEntity:gUU,booleanEntity:uUi,buttonEntity:zvM,captionTrack:I67,channelHandle:xR1,chipEntity:kmb,commerceAcquisitionClientPayloadEntity:pmd,commerceCartListEntity:kh1,contextNoteFeedEntityPayload:Y21,contextNoteUserRatingEntityPayload:zL7,continuationTokenEntity:OlW,downloadQualityPickerEntity:NAM,downloadsPageRefreshTokenEntity:EAV,downloadsPageViewConfigurationEntity:nAY,downloadStatusEntity:bl7,dismissState:DU_,sfvAudioItemCurrentlyPlayingEntity:Vf_,emojiFountainDataEntity:Z4Y,
emojiCustomizationSetEntity:Fw7,fakeChannel:vU1,fakePlaylist:lxb,fakePlaylistEntryCollection:Vid,fakeVideo:O3W,fakeVideoDescription:X47,featuredProductsEntity:AoP,flowStateEntity:DgV,iconBadgeEntity:hvU,interstitialInteractionStateEntity:ZHd,likeButtonAnimationEntity:rnn,liveChatPollStateEntity:W97,dataFreshnessEntity:Jv7,liveViewerLeaderboardChatEntryPointStateEntity:cdY,liveViewerLeaderboardPointsEntity:Yf_,liveReactionsDataEntity:cvd,logoEntity:Ji7,macroMarkerEntity:BA7,mainDownloadsLibraryEntity:eZP,
mainDownloadsListEntity:urb,mainPlaylistDownloadStateEntity:fCn,mainPlaylistEntity:Xa1,mainPlaylistVideoEntity:QxW,mainVideoDownloadStateEntity:vAb,mainVideoEntity:paW,markersEngagementPanelSyncEntity:Df1,markersVisibilityOverrideEntity:Kub,musicAlbumReleaseDetail:yoP,musicAlbumReleaseDownloadMetadataEntity:MBn,musicAlbumRelease:Wyb,musicAlbumReleaseUserDetail:NZ_,musicArtistDetail:EHd,musicArtist:bod,musicArtistUserDetail:e1V,musicDownloadsLibraryEntity:qyb,musicLibraryEdit:uOM,musicLibraryStatusEntity:Gj1,
musicPlaylist:f6d,musicPlaylistDownloadMetadataEntity:TZb,musicShare:l6V,musicTrackDetail:oH7,musicTrackDownloadMetadataEntity:mJd,musicTrack:VBb,musicTrackUserDetail:OoV,offlineOrchestrationActionWrapperEntity:a6n,offlineVideoPolicy:xJd,offlineVideoStreams:HOU,offlineabilityEntity:lC7,orchestrationWebSamplingEntity:Vc1,pageHeaderEntity:H4P,pdpStateEntity:nrV,pinnedProductEntity:Jo1,playbackData:iO1,playerStateEntity:tc_,quantityIncrementerEntity:rvd,refresh:C3U,saveToPlaylistListEntity:I3U,selectedChipIndexEntityPayload:Lu1,
settingEntity:WN7,stringEntity:G$b,suggestedFeedbackChipStateEntity:gAi,transfer:Sfb,trendingOfferEntity:Fyd,videoDownloadContextEntity:syU,videoOverviewAsyncDataEntity:c1V,videoPlaybackPositionEntity:T2U,votingEntity:snV,ytMainChannelEntity:kMW,youchatPendingResponseEntity:Uf7,ytMainDownloadedVideoEntity:oAP,ytMainVideoEntity:hZU};var CI7,svM,Vf,Sf7,syu,AUM,Fbd,JUW,wBY;CI7=function(H,C){this.JSC$12723_wrapped=H;this.JSC$12723_encoderRegistry=C;this.changedKeys={}};
svM=function(H,C){return SHi(H.JSC$12723_encoderRegistry,C.version).decode(C.data,C.key)};
_.jvW=function(H,C,S){return H.JSC$12723_wrapped.objectStore("EntityStore").get(C).then(function(w){if(w){if(S&&w.entityType!==S)throw Error("Gf");return svM(H,w)}})};
Vf=function(H,C,S){return S?(S=S.map(function(w){return _.jvW(H,w,C)}),g4.all(S)):H.JSC$12723_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(C)).then(function(w){return w.map(function(A){return svM(H,A)})})};
_.C3u=function(H,C,S){var w=Q4u(C),A=SHi(H.JSC$12723_encoderRegistry,1),J=Object.assign({},C);return H.JSC$12723_wrapped.objectStore("EntityStore").get(w).then(function(c){if(c){if(c.entityType!==S)throw Error("Gf");J.entityMetadata||(c=svM(H,c),J.entityMetadata=c.entityMetadata)}}).then(function(){var c={key:w,
entityType:S,data:A.encode(J,w),version:1};return g4.all([H.JSC$12723_wrapped.objectStore("EntityStore").put(c),wBY(H,J,S)])}).then(function(){AUM(H,w,S);
return w})};
Sf7=function(H,C){var S=_.Tn(C).entityType;return g4.all([H.JSC$12723_wrapped.objectStore("EntityStore").delete(C),JUW(H,C)]).then(function(){AUM(H,C,S)})};
syu=function(H,C,S,w){var A=SHi(H.JSC$12723_encoderRegistry,1);return _.jvW(H,C,w).then(function(J){if(J){J=NZV(J,S);var c={key:C,entityType:w,data:A.encode(J,C),version:1};return g4.all([H.JSC$12723_wrapped.objectStore("EntityStore").put(c),wBY(H,J,w)])}}).then(function(){AUM(H,C,w);
return C})};
AUM=function(H,C,S){var w=H.changedKeys[S];w||(w=new Set,H.changedKeys[S]=w);w.add(C)};
Fbd=function(H,C,S){var w=Q4u(C);S=R1Z(S);if(!S)return g4.resolve([]);S=new S(C);H=H.JSC$12723_wrapped.objectStore("EntityAssociationStore");C=[];S=_.Z(S.getAssociations());for(var A=S.next();!A.done;A=S.next())C.push(H.put({parentEntityKey:w,childEntityKey:A.value}));return g4.all(C).then(function(J){return J.map(function(c){return c[1]})})};
JUW=function(H,C){return H.JSC$12723_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(C))};
wBY=function(H,C,S){var w=Q4u(C);return JUW(H,w).then(function(){return Fbd(H,C,S)})};var ZgW=function(){};
_.G(ZgW,se);ZgW.prototype.encodeImpl=function(H){return H};
ZgW.prototype.decodeImpl=function(H){if(H instanceof Uint8Array)throw DJ$(0);return H};var xJ6=function(){this.cacheMap={};this.cacheMap[0]=new ZgW;if(!_.E("aes_pes_encoder_killswitch")){var H=this.cacheMap;try{var C=_.oa();var S=gHU(C);var w=new j8(new Rn_(S),new ITP(S))}catch(A){throw H=A instanceof Error?new ua("KEY_CREATION_FAILED",{originalMessage:A.message}):new ua("KEY_CREATION_FAILED"),_.nC(H),H;}H[1]=w}},SHi=function(H,C){C=C===void 0?0:C;
H=H.cacheMap[C];if(!H)throw C=new ua("INVALID_ENCODER_VERSION",{encoderVersion:C}),_.nC(C),C;return H};var f8=function(H,C){_.Op.call(this);this.token=H;this.JSC$12737_encoderRegistry=C;this.observers=[];H=new _.s$.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.oa());H.onmessage=this.handleMessage.bind(this);this.channel=H};
_.G(f8,_.Op);_.la=function(H,C,S){var w,A,J,c;return _.z(function(Y){if(Y.nextAddress==1)return Y.yield(nHi(H.token),2);if(Y.nextAddress!=3)return w=Y.yieldResult,Y.yield(_.CV(w,["EntityStore","EntityAssociationStore"],C,function(M){A=new CI7(M,H.JSC$12737_encoderRegistry);return S(A)}),3);
J=Y.yieldResult;A&&(c=A.changedKeys,Object.keys(c).length>0&&(H.channel.postMessage(c),cUd(H,c)));return Y.return(J)})};
f8.prototype.observe=function(H){var C=this;this.observers.push(H);return function(){var S=C.observers.indexOf(H);S>=0&&C.observers.splice(S,1)}};
var PLu=function(H){var C;return _.z(function(S){if(S.nextAddress==1)return S.yield(_.la(H,{mode:"readonly",enableRetries:!0},function(w){return w.JSC$12723_wrapped.objectStore("EntityStore").getAll()}),2);
C=S.yieldResult;return S.return(Promise.all(C.filter(function(w){return!!w}).map(function(w){var A,J;
return _.z(function(c){if(c.nextAddress==1){A=w.key;J=w.entityType;var Y=c.yield;var M=igP(SHi(H.JSC$12737_encoderRegistry,w.version),w.data,w.key);return Y.call(c,M,2)}return c.return({key:A,entityType:J,data:c.yieldResult})})})))})};
f8.prototype.handleMessage=function(H){cUd(this,H.data)};
var cUd=function(H,C){H=_.Z(H.observers);for(var S=H.next();!S.done;S=H.next())S=S.value,S(C)};
f8.prototype.disposeInternal=function(){this.channel.close()};
var I6Z;var wQ,zRM,e$i;wQ={};_.YHi=(wQ.mainVideoEntity="mainVideoEntityActionMetadata",wQ.mainPlaylistEntity="mainPlaylistEntityActionMetadata",wQ.musicTrack="musicTrackEntityActionMetadata",wQ.musicPlaylist="musicPlaylistEntityActionMetadata",wQ);zRM=new _.W4("DOWNLOADS_ENTITY_TYPE_MAP");_.p8=_.ba("","downloadsPageViewConfigurationEntity");e$i=_.ba("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.Sew=_.ba("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.ba("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.ba("SMART_DOWNLOADS_ENABLED","settingEntity");_.ba("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var Fk7=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var THw=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];_.MuV={isLeaderTab:!0};var KkV={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var A$=window,Iu=A$.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",Db7=A$.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||au,RlV=A$.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||Ej,Jgn=A$.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||AgV,jW1=A$.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||yxd,XRE=A$.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||Gpd;var BQ$;Cf({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 FLZ=IbU(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(H){return H}}}),cX0=IbU(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(H){return H}}}),iwE=new Map;var cZE=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],wSZ;var qH1=function(H){return _.Md({type:"SET_EPHEMERAL_ACTION",payload:H})};_.To_={ephemeralAction:null};var mli=function(H){return _.Md({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:H})};_.WbW={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var zvE={sharedUi:function(H,C){H=H===void 0?_.WbW:H;switch(C.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},H,{animatedThumbnailEnabled:C.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},H,{inlinePreviewEnabled:C.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},H,{currentPageType:C.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},H,{currentPageSubType:C.payload});case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},
H,{persistentPanelVisible:C.payload});default:return H}},
a11y:Gc({ephemeralAction:function(H,C){H=H===void 0?_.To_.ephemeralAction:H;switch(C.type){case "SET_EPHEMERAL_ACTION":return C.payload;default:return H}}}),
entities:PtE};_.mU$={playlistId:"",inviteLinkURL:""};_.yUd={continuationCommand:{}};var jnu=Gc({continuationCommand:function(H,C){H=H===void 0?_.yUd.continuationCommand:H;switch(C.type){case "SET_CONTINUATION_COMMAND":return C.payload.continuationCommand;default:return H}}});_.yZW={currentFormId:"",commandsMap:{}};var wmu=Gc({isLeaderTab:function(H,C){H=H===void 0?_.MuV.isLeaderTab:H;switch(C.type){case "SET_IS_LEADER_TAB":var S,w;return(w=C==null?void 0:(S=C.payload)==null?void 0:S.isLeaderTab)!=null?w:H;default:return H}}});var bgi;_.NoV=function(H){return _.Md({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:H}})};
bgi=function(H){return _.Md({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:H}})};_.J$={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var YYu=Gc({isDesktopSmallWidth:function(H,C){H=H===void 0?_.J$.isDesktopSmallWidth:H;switch(C.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return C.payload.isDesktopSmallWidth;default:return H}},
isShortsActive:function(H,C){H=H===void 0?_.J$.isShortsActive:H;switch(C.type){case "SET_IS_SHORTS_ACTIVE":return C.payload.isShortsActive;default:return H}},
isWatchWhileMode:function(H,C){H=H===void 0?_.J$.isWatchWhileMode:H;switch(C.type){case "SET_IS_WATCH_WHILE_MODE":return C.payload.isWatchWhileMode;default:return H}},
playerState:function(H,C){H=H===void 0?_.J$.playerState:H;switch(C.type){case "SET_PLAYER_STATE":return C.payload.playerState;default:return H}},
isFullscreen:function(H,C){H=H===void 0?_.J$.isFullscreen:H;switch(C.type){case "SET_IS_FULLSCREEN":return C.payload.isFullscreen;default:return H}},
isSmallScreenSqueezeback:function(H,C){H=H===void 0?_.J$.isSmallScreenSqueezeback:H;switch(C.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return C.payload.isSmallScreenSqueezeback;default:return H}},
isShortsPipActive:function(H,C){H=H===void 0?_.J$.isShortsPipActive:H;switch(C.type){case "SET_IS_SHORTS_PIP_ACTIVE":return C.payload.isShortsPipActive;default:return H}},
isPlaybackStarted:function(H,C){H=H===void 0?_.J$.isPlaybackStarted:H;switch(C.type){case "SET_IS_PLAYBACK_STARTED":return C.payload.isPlaybackStarted;default:return H}}});_.bw0={currentMode:"canvas-hidden"};var qYE=function(){return function(H){return function(C){var S=H(C);_.q3(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[C],!0);return S}}};var Ed_,vs7;Ed_=new _.N5;_.qp=new _.W4("WATCH_PLAYER_PROMISE_TOKEN");_.eR7=new _.N5;_.uXd=new _.W4("SHORTS_PLAYER_PROMISE_TOKEN");vs7=new _.W4("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var T2u=function(){return function(H){return function(C){C.type==="ENTITY_LOADED"&&_.JA().resolve(_.qp).then(function(S){var w;(w=S.dispatchReduxAction)==null||w.call(S,C)});
return H(C)}}};_.GJi={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var Av7=Gc({additionalContext:function(H,C){H=H===void 0?_.GJi.additionalContext:H;switch(C.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var S;return(S=C.payload)!=null?S:"";default:return H}},
impersonatedChannelUrl:function(H,C){H=H===void 0?_.GJi.impersonatedChannelUrl:H;switch(C.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var S;return(S=C.payload)!=null?S:"";default:return H}},
selectedVideoIds:function(H,C){H=H===void 0?_.GJi.selectedVideoIds:H;switch(C.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var S={};return Object.assign({},H,(S[C.payload]=!0,S));case "VIDEO_UNSELECTED":return C=C.payload,H=Object.assign({},H),delete H[C],H;default:return H}}});_.f0W={parentClickTrackingParams:""};var JvZ=Gc({parentClickTrackingParams:function(H,C){H=H===void 0?_.f0W.parentClickTrackingParams:H;switch(C.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return C.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return H}}});var vdd=function(H){return _.Md({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:H})};_.l0d={stepStates:{}};var FwZ=Gc({stepStates:function(H,C){H=H===void 0?_.l0d.stepStates:H;switch(C.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var S=H,w=C.payload,A,J,c;H={};C={selectionStates:Object.assign({},(c=(A=S[w.stepId])==null?void 0:A.selectionStates)!=null?c:{},(H[w.token]={isSelected:w.isSelected},H)),userQuery:(J=S[w.stepId])==null?void 0:J.userQuery};A={};return Object.assign({},S,(A[w.stepId]=C,A));case "TALK_TO_RECS_UPDATE_USER_QUERY":return A=H,J=C.payload,
c={selectionStates:Object.assign({},(w=(S=A[J.stepId])==null?void 0:S.selectionStates)!=null?w:{}),userQuery:{userQuery:J.userQuery,token:J.userQueryToken}},S={},Object.assign({},A,(S[J.stepId]=c,S));default:return H}}});var Vud,od7,XBn;Vud=function(H){return _.Md({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:H})};
od7=function(H){return _.Md({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:H})};
_.O6=function(H){return _.Md({type:"SET_CURRENT_PAGE_TYPE",payload:H})};
_.OgM=function(H){return _.Md({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:H})};
XBn=function(H){return _.Md({type:"SET_CHIP_BAR_IS_STICKY",payload:H})};_.ec7={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"};_.Qv_=function(H){return _.Md({type:"SET_PLAYER_STATE",payload:{playerState:H}})};_.FK={isWatchActive:!1,isLearningJourneyActive:!1,isTheaterMode:GHU(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var Z4i=Gc({isTheaterMode:function(H,C){H=H===void 0?GHU():H;switch(C.type){case "SET_IS_THEATER_MODE":return C.payload.isTheaterMode;default:return H}},
isWatchActive:function(H,C){H=H===void 0?_.FK.isWatchActive:H;switch(C.type){case "SET_IS_WATCH_ACTIVE":return C.payload.isWatchActive;default:return H}},
isLearningJourneyActive:function(H,C){H=H===void 0?_.FK.isLearningJourneyActive:H;switch(C.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return C.payload.isLearningJourneyActive;default:return H}},
isWatchFullscreen:function(H,C){H=H===void 0?_.FK.isWatchFullscreen:H;switch(C.type){case "SET_IS_WATCH_FULLSCREEN":return C.payload.isWatchFullscreen;default:return H}},
isWatchNarrowWidth:function(H,C){H=H===void 0?_.FK.isWatchNarrowWidth:H;switch(C.type){case "SET_IS_WATCH_NARROW_WIDTH":return C.payload.isWatchNarrowWidth;default:return H}},
isWatchRetroMode:function(H,C){H=H===void 0?_.FK.isWatchRetroMode:H;switch(C.type){case "SET_IS_WATCH_RETRO_MODE":return C.payload.isWatchRetroMode;default:return H}},
isLiveChatCollapsed:function(H,C){H=H===void 0?_.FK.isLiveChatCollapsed:H;switch(C.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return C.payload.isLiveChatCollapsed;default:return H}},
openEngagementPanels:function(H,C){H=H===void 0?_.FK.openEngagementPanels:H;var S=[].concat(_.k$(H));switch(C.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return S.push(C.payload.panelToAdd),S;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return S.splice(S.indexOf(C.payload.panelToRemove),1),S;default:return H}},
playerState:function(H,C){H=H===void 0?_.FK.playerState:H;switch(C.type){case "SET_PLAYER_STATE":return C.payload.playerState;default:return H}},
watchScrollTop:function(H,C){H=H===void 0?_.FK.watchScrollTop:H;switch(C.type){case "SET_WATCH_SCROLL_TOP":return C.payload.watchScrollTop;default:return H}},
watchWindowSize:function(H,C){H=H===void 0?_.FK.watchWindowSize:H;switch(C.type){case "SET_WATCH_WINDOW_SIZE":return C.payload.watchWindowSize;default:return H}}});_.dl7={surveyFeedbackData:{feedbackTokens:[]}};var cvW=Gc({surveyFeedbackData:function(H,C){H=H===void 0?_.dl7.surveyFeedbackData:H;switch(C.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return C.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},H,C.payload);default:return H}}});_.SY$={};var Www=void 0;_.E("web_enable_redux_store_on_demand")||(Www=mh$());var PIV=function(H,C,S){var w=this;this.listId=H;this.JSC$12880_updateCallback=C;this.isOfflineVideoCallback=S;_.AG().subscribe(function(){w.handleUpdate()})};
PIV.prototype.getPlaylistData=function(){var H=_.AG().getState().entities;if(this.listId&&this.listId!=="PPSV"){var C=QyZ(H,this.listId,!0),S=_.ba(this.listId,"mainPlaylistEntity"),w,A;H=H==null?void 0:(w=H.mainPlaylistEntity)==null?void 0:(A=w[S])==null?void 0:A.title;return yvE(C,H,this.listId)}C=_.mcu(FNi(H));H=_.mcu(_.k6(H));H=C.concat(H);return yvE(H)};
PIV.prototype.getPlaylistId=function(){return this.listId};
PIV.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$12880_updateCallback(this.listId,this.getPlaylistData(),{})};var Zb=function(H,C,S,w){w=w===void 0?[]:w;this.JSC$12883_playlistNetworkManager=H;this.listId=C;this.JSC$12883_updateCallback=S;this.videoIds=w;this.pendingUpdates=[];this.currentIndex=0};
Zb.prototype.JSC$12883_setCurrentIndex=function(H){this.currentIndex=H};
Zb.prototype.setListId=function(H){this.listId=H};
var $lb=function(H,C){H.currentCreateRequest&&H.currentCreateRequest.cancel(C);H.currentUpdateRequest&&H.currentUpdateRequest.cancel(C);H.currentRefreshRequest&&H.currentRefreshRequest.cancel(C)};
Zb.prototype.delete=function(){$lb(this,"PROXY DELETED")};
Zb.prototype.addVideos=function(H,C,S){var w=this;S!==void 0?this.videoIds.splice.apply(this.videoIds,[S,0].concat(_.k$(H))):this.videoIds.push.apply(this.videoIds,_.k$(H));this.listId||this.currentCreateRequest?(H.forEach(function(A,J){A={addedVideoId:A,action:"ACTION_ADD_VIDEO"};S&&(A.addedVideoPosition=S+J);w.pendingUpdates.push(A)}),cP(this)):pBY(this,C.onCreateListCommand)};
var kJi=function(H,C,S,w,A){k6$(H.videoIds,C,S);C>H.currentIndex&&S<=H.currentIndex?H.JSC$12883_setCurrentIndex(H.currentIndex+1):C===H.currentIndex?H.JSC$12883_setCurrentIndex(S):C<H.currentIndex&&S>=H.currentIndex&&H.JSC$12883_setCurrentIndex(H.currentIndex-1);H.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:w,movedSetVideoIdPredecessor:A});cP(H)},pBY=function(H,C){$lb(H,"OBSOLETE");
H.currentCreateRequest=hRb(H.JSC$12883_playlistNetworkManager,C,H.videoIds);_.rL(H.currentCreateRequest,function(){H.currentCreateRequest=void 0}).then(function(S){H.setListId(S.playlistId);
H.pendingUpdates.length>0?cP(H):ndW(H)})},cP=function(H){if(H.pendingUpdates.length!==0&&(H.currentRefreshRequest&&H.currentRefreshRequest.cancel("OBSOLETE"),!H.currentUpdateRequest&&!H.currentCreateRequest)){var C=H.pendingUpdates.splice(0,H.pendingUpdates.length);
H.currentUpdateRequest=H.JSC$12883_playlistNetworkManager.updatePlaylist(H.listId,C);_.rL(H.currentUpdateRequest,function(){H.currentUpdateRequest=void 0}).then(function(){H.pendingUpdates.length>0?cP(H):ndW(H)}).thenCatch(function(){H.pendingUpdates.unshift.apply(H.pendingUpdates,_.k$(C))})}},ndW=function(H){H.currentRefreshRequest=_.rUY(H.JSC$12883_playlistNetworkManager,H.listId,H.currentIndex,H.videoIds[H.currentIndex]);
_.rL(H.currentRefreshRequest,function(){H.currentRefreshRequest=void 0}).then(function(C){H.JSC$12883_updateCallback(C.playlistId,C.playlistPanelRenderer,C.autoplayRenderer)})};
Zb.prototype.size=function(){return this.videoIds.length};var BoP=function(H,C,S,w){w=w===void 0?[]:w;Zb.call(this,H,C,S,w);this.JSC$12883_playlistNetworkManager=H;this.listId=C;this.JSC$12883_updateCallback=S;this.videoIds=w};
_.G(BoP,Zb);_.Ye=function(H,C,S,w,A,J,c){A=A===void 0?[]:A;c=c===void 0?bw:c;Zb.call(this,H,C,S,A);this.JSC$12883_playlistNetworkManager=H;this.listId=C;this.JSC$12883_updateCallback=S;this.onAuthChange=w;this.videoIds=A;this.storage=J;this.cookieReader=c;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.Ns(_.rT,this.checkLoggedInStatusChange.bind(this),1E3)};
_.G(_.Ye,Zb);_.F=_.Ye.prototype;_.F.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.Ns(_.rT,this.checkLoggedInStatusChange.bind(this),1E3)};
_.F.JSC$12883_setCurrentIndex=function(H){Zb.prototype.JSC$12883_setCurrentIndex.call(this,H);this.store()};
_.F.delete=function(){_.rT.cancelJob(this.queueSapisIdJob);Zb.prototype.delete.call(this)};
_.F.setListId=function(H){Zb.prototype.setListId.call(this,H);this.store()};
_.F.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var Dl7=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],Kbn=["playerResponse","videoDetails"],tu1=["response","currentVideoEndpoint","watchEndpoint","videoId"],Lbn=["response","currentVideoEndpoint","watchEndpoint","playlistId"],gdP=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],UlV=["response","contents","twoColumnWatchNextResults","playlist","playlist"],RRU=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
I07=["response","contents","twoColumnWatchNextResults"];var zm={},uE$=(zm.WEB_UNPLUGGED="^unplugged/",zm.WEB_UNPLUGGED_ONBOARDING="^unplugged/",zm.WEB_UNPLUGGED_OPS="^unplugged/",zm.WEB_UNPLUGGED_PUBLIC="^unplugged/",zm.WEB_CREATOR="^creator/",zm.WEB_KIDS="^kids/",zm.WEB_EXPERIMENTS="^experiments/",zm.WEB_MUSIC="^music/",zm.WEB_REMIX="^music/",zm.WEB_MUSIC_EMBEDDED_PLAYER="^music/",zm.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",zm);var F$i,hRb;F$i=function(H,C){this.networkManager=H;this.innertubeTransportService=C};
hRb=function(H,C,S){if(!_.e(C,_.Mc))return _.kj(Error("Kf"));_.e(C,_.Mc).videoIds=S;S={create_playlist_title:_.fL("QUEUE",void 0,"Queue")};return ErV(_.ir(H.innertubeTransportService,C,S),N2E)};
_.rUY=function(H,C,S,w){C={videoId:w,playlistId:C,playlistIndex:S};S=_.JG(IkM);return ErV(_.Mb(H.innertubeTransportService,C,S),evU)};
F$i.prototype.updatePlaylist=function(H,C){return ErV(_.ir(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:H,actions:C}}),b4U)};var a0n=function(H){this.storage=H},xlW;
a0n.prototype.store=function(H,C){C=C===void 0?0:C;if(this.storage&&H.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",H),this.storage.set("TLPQindex",String(C)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(S){}};
a0n.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
a0n.prototype.getPlaylistId=function(){if(!this.storage)return null;var H=null;try{H=this.storage.get("TLPQplaylist")}catch(C){}return H};var l$Z=["navigationEndpoint","watchEndpoint","videoId"],vrE=["nextButtonVideo","watchEndpoint","videoId"];_.tG=new _.W4("NETWORK_TOKEN");_.JB=new _.W4("PAGE_TOKEN");_.qb=new _.W4("PLAYLIST_TOKEN");var HEb;HEb=new _.W4("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.Lf=new _.W4("INNERTUBE_TRANSPORT_TOKEN");var iEV,Tm,SZn,sj1,woU,A0b;iEV=new Set(["ci","cr","carml"]);Tm=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$12930_parkedJobs=new Map;this.parkedProcessors=new Map};
_.mN=function(){Tm.instance||(Tm.instance=new Tm);return Tm.instance};
Tm.prototype.onAny=function(H){return _.CjM(this,H,2)};
Tm.prototype.parkOrScheduleJob=function(H,C,S,w,A){_.WP(this,S)?_.oh().addJob(H,C,w):(A&&(H=SZn(H),sj1(this,H,C,S,A)),A=this.JSC$12930_parkedJobs.get(S),A||(this.JSC$12930_parkedJobs.set(S,[]),A=this.JSC$12930_parkedJobs.get(S)),A.push({job:H,priority:C,delay:w}))};
Tm.prototype.addListener=function(H,C,S){S&&(C=SZn(C),sj1(this,C,0,H,S));S=this.parkedProcessors.get(H);S||(this.parkedProcessors.set(H,[]),S=this.parkedProcessors.get(H));S.push(C)};
Tm.prototype.processSignal=function(H){if(!_.WP(this,H)){this.inProgressSignals.add(H);var C=this.JSC$12930_parkedJobs.get(H);if(C){C=_.Z(C);for(var S=C.next();!S.done;S=C.next())S=S.value,_.oh().addJob(S.job,S.priority,S.delay);this.JSC$12930_parkedJobs.delete(H)}if(C=this.parkedProcessors.get(H)){C=_.Z(C);for(S=C.next();!S.done;S=C.next())S=S.value,S();this.parkedProcessors.delete(H)}this.signals.push(H);this.inProgressSignals.delete(H)}};
_.WP=function(H,C){return iEV.has(C)||_.Bh("IS_HOMEPAGE_COLD")||_.Bh("IS_RESULTS_PAGE_COLD")||_.Bh("IS_WATCH_PAGE_COLD")?H.signals.indexOf(C)>=0:!0};
SZn=function(H){var C=!1;return function(){C||(C=!0,H())}};
sj1=function(H,C,S,w,A){if(jjY.has(w))_.oh().addJob(C,S,A);else{var J=H.compoundSignals.get(w);J&&_.oh().addJob(function(){_.WP(H,w)||(J.isTimeoutConditionSatisfied?_.oh().addJob(C,S):J.timeoutConditionObservers.push(function(){_.oh().addJob(C,S)}))},S,A)}};
_.CjM=function(H,C,S){if(C.length>1){var w=[],A=Object.create(null);C=_.Z(C);for(var J=C.next();!J.done;J=C.next())J=J.value,A[J]||(w.push(J),A[J]=!0);C=w}if(C.length===1)return C[0];J=C;w="";A=S===2?"|":"&";J.sort();J=_.Z(J);for(var c=J.next();!c.done;c=J.next())w+=c.value+A;if(!H.compoundSignals.get(w)){A=0;J=[];c=_.Z(C);for(var Y=c.next();!Y.done;Y=c.next())Y=Y.value,A++,_.WP(H,Y)||J.push(Y);(S=S===2)&&A>J.length||!S&&!J.length?H.signals.push(w):woU(H,w,S,C,J)}return w};
woU=function(H,C,S,w,A){var J=A.length,c=function(){S||--J===0?H.processSignal(C):A0b(H,C)};
A=_.Z(A);for(var Y=A.next();!Y.done;Y=A.next())H.addListener(Y.value,c);H.compoundSignals.set(C,{signals:w,isOnAny:S,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});A0b(H,C)};
A0b=function(H,C){if(!_.WP(H,C)){var S=H.compoundSignals.get(C);if(S&&!S.isTimeoutConditionSatisfied){for(var w=!1,A=0,J=0,c=_.Z(S.signals),Y=c.next();!Y.done;Y=c.next()){var M=Y.value;Y=!_.WP(H,M);jjY.has(M)?w=!0:(M=H.compoundSignals.get(M))?Y&&!M.isTimeoutConditionSatisfied&&(J++,S.isInitialized||M.timeoutConditionObservers.push(function(){A0b(H,C)})):Y&&A++}S.isInitialized=!0;
S.isOnAny?w&&(S.isTimeoutConditionSatisfied=!0):A===0&&J===0&&(S.isTimeoutConditionSatisfied=!0);if(S.isTimeoutConditionSatisfied)for(S=_.Z(S.timeoutConditionObservers),w=S.next();!w.done;w=S.next())w=w.value,w()}}};
Tm.prototype.processSignal=Tm.prototype.processSignal;Tm.prototype.parkOrScheduleJob=Tm.prototype.parkOrScheduleJob;Tm.prototype.onAny=Tm.prototype.onAny;_.AO("ytsignals.getInstance",_.mN);Tm.prototype.onAny=Tm.prototype.onAny;Tm.prototype.parkOrScheduleJob=Tm.prototype.parkOrScheduleJob;Tm.prototype.processSignal=Tm.prototype.processSignal;var jjY=new Set(["eop","eocs","dl","pcl"]);_.Df=new _.W4("MINIPLAYER_SERVICE");var yC,J0V,FzU;yC=function(H,C,S){var w=_.a8.getInstance();if(!xlW){var A=new ddE;var J=void 0,c=_.rh("ID_TOKEN");c&&A.isAvailable()&&(J=new $B(A,"yt-queue"+c));xlW=new a0n(J)}A=xlW;J=_.mN();this.JSC$12937_actionRouter=w;this.pageManager=H;this.playlistManager=C;this.JSC$12937_playlistNetworkManager=S;this.storage=A;this.signals=J;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.Nb=function(){if(!J0V){var H=_.JA(),C=H.resolve(_.AA(_.JB)),S=H.resolve(_.AA(_.tG)),w=H.resolve(_.AA(_.qb));H=H.resolve(_.Lf);J0V=new yC(C,w,new F$i(S,H))}return J0V};
FzU=function(H,C,S){if(S){var w;if(((w=H.responsePlaylistData)==null?void 0:w.playlistId)!==S)return}H.responsePlaylistData&&(S=dhZ(C,H.responsePlaylistData),H.responsePlaylistData=(0,_.hb.unsafeClone)(H.responsePlaylistData),$hW(H.responsePlaylistData,S));S=H.temporaryItems.findIndex(function(A){return A.videoId===C});
S>-1&&H.temporaryItems.splice(S,1);_.bo(H,_.Ee(H,H.response?H.response.autoplayRenderer:void 0))};
_.ZE1=function(H,C){if(H.responsePlaylistData){var S=PQu(C,H.responsePlaylistData);$hW(H.responsePlaylistData,S);if(H.queueProxy){var w=H.queueProxy;S<0||(w.videoIds.splice(S,1),S<w.currentIndex&&w.JSC$12883_setCurrentIndex(w.currentIndex-1),w.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:C}),cP(w))}}_.bo(H,_.Ee(H,H.response?H.response.autoplayRenderer:void 0))};
yC.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.bo(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
yC.prototype.setPlaylistData=function(H,C,S){this.temporaryItems=[];this.listId=H;this.responsePlaylistData=C;_.bo(this,_.Ee(this,S))};
var c0d=function(H){return(H==null?0:H.playlistId)?H.playlistId:"PPSV"},YZ1=function(H){return H&&H.playlistId?H.playlistId==="PPSV"?!0:OOU(_.AG().getState().entities,H.playlistId):!1};
yC.prototype.isPlayingOfflineVideo=function(){return this.response?YZ1(this.response):!1};
yC.prototype.closeMiniplayer=function(H){var C=this.queueProxy&&this.queueProxy.size()<=1,S=_.JA().resolve(_.Df);if(!this.queueProxy||C)this.queueProxy&&this.clearQueue(),S.close(!0);else{S.pipController.getWindow()&&window.focus();C=this.responsePlaylistData;var w=this.temporaryItems.length+(C&&C.contents?C.contents.length:0);C=_.fL("QUEUE_CLEARED_UNPLURALIZED")||_.vH("QUEUE_CLEARED",w);C=_.Zo(C);S=_.fL("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");w=_.fL("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.vH("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",w);var A=_.fL("MINIPLAYER_CLOSE",void 0,"Close"),J=_.fL("CANCEL",void 0,"Cancel");_.HW(this.JSC$12937_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.sx(S),dialogMessages:[_.sx(w)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.sx(A),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
C]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.sx(J)}}}}}}],H)}};
_.Ee=function(H,C){var S={},w=H.response;S.autoplayRenderer=C;if(!H.responsePlaylistData&&!H.temporaryItems.length)return!w||!w.hasRelatedVideoData&&_.E("kevlar_prefetch_data_augments_network_data")||(S.playerData={rvs:w.relatedVideoArgs,endScreenRenderer:w.endScreenRenderer}),S;S.playerData={};if(H.index===void 0)return _.nC(Error("Mf")),S;S.panel=H.responsePlaylistData?(0,_.hb.unsafeClone)(H.responsePlaylistData):{titleText:_.sx(_.fL("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
C=S.panel;if(C.contents)for(var A=_.Z(H.temporaryItems),J=A.next();!J.done;J=A.next())C.contents.push({playlistPanelVideoRenderer:J.value});H.queueProxy&&w&&w.playingVideo&&w.playingVideoId&&!QnW(w.playingVideoId,S.panel)&&(C=w.playingVideo,A=S.panel,J=H.index,A.contents&&A.contents.splice(J===void 0?0:J,0,{playlistPanelVideoRenderer:C}));w&&w.playingVideoId&&(C=H.index,A=S.panel,C=!A.contents||C>=A.contents.length?void 0:A.contents[C].playlistPanelVideoRenderer,C&&C.videoId===w.playingVideoId||(C=
dhZ(w.playingVideoId,S.panel),H.index=C!==-1?C:H.index?H.index-1:0));C=XmU(H.index+1,S.panel);A=void 0;H.index>0&&(A=XmU(H.index-1,S.panel));if(A||C)S.autoplayRenderer=V37(C,A,S.autoplayRenderer);!C&&(w==null?0:w.relatedVideoArgs)&&(S.playerData.rvs=w.relatedVideoArgs);w=w?w.playlistIndexOffset:0;H.queueProxy?hvu(S.panel,H.index,w,O40,!0,!0,!0):hvu(S.panel,H.index,w);S.playerData.playlistPanelRenderer=S.panel;return S};
yC.prototype.openToast=function(H){_.JA().resolve(_.Df).openToast(H,_.fL("ADDED_TO_QUEUE",void 0,"Added to queue"))};
yC.prototype.isMiniplayerActive=function(){return _.JA().resolve(_.Df).isMiniplayerActive()};
_.bo=function(H,C){H.playlistManager.setAutoplayRenderer(C.autoplayRenderer||null);H.playlistManager.setPlaylistData(C.panel||null);C.playerData&&H.playlistManager.setPlayerPlaybackControlData(C.playerData)};var rvW="#";var zH_={},MVd={},qZP={},Tt_={},mkd={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:(zH_.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",zH_),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:(MVd.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",MVd),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:(qZP.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",qZP),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:(Tt_.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",Tt_),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 u$u=[{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:mkd},{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:mkd}}];var MwW;_.yL=[[["amtpbmQjNTEyOTVnN3ZvYzQ=","YWx1ZSNoaTFrcDV2MjloNmp2"],"RF9QTEFDRU1FTlRfS0lORF9TVEFSVCNiYXV4ZWo0YjlyZzNB"]];
MwW=[[["bWFyeSNiMGk0eW8xc3ByMXByaQ==",null,null],[null,["cm93c2UtcmVzdWx0cy1yZW5kZXJlciM0aTFoYzQ2djhnNG15dGQtdHdvLWNvbHVtbi1i","MWNhbHN2OWZtd2RzdHlsZS1zY29wZSNz"],null],["czRzM3dmc2o4cnZtYXN0aGVhZC1hZCMx",["eXRkLXJpY2gtZ3JpZC1yZW5kZXJlciN2a2htMmRwbWk2amg="],null],[null,["eXRkLXJpY2gtZ3JpZC1yZW5kZXJlciNlMTUxbGhhcHgxazc=","ZmZ1MmMxNnpmd2xzdHlsZS1zY29wZSNw"],null],[null,["LWJhbm5lci1wcm9tby1yZW5kZXJlciNjajg4bHF0ODh1OWp5dGQ=","ODJ5c3F5dHA4ZXZzdHlsZS1zY29wZSNh"],null],[null,["MDF5dGQtYWQtc2xvdC1yZW5kZXJlciN2aHE5OGFmZGZn"],
null]],[["MThqaXFrMXJjbzE2cGxheWVyLWFkcyM=",null,null]]];_.WU=["enFmcmdsN2dsb2JhbENhbGxiYWNrcyMxdGd1bw==","aG9uQWJub3JtYWxpdHlEZXRlY3RlZCNoNndudHZweGxzcg==","cCNyMW80MTRjMzVtNmtvbkFkU2tp","OTd1cmF3X3BsYXllcl9yZXNwb25zZSNrcnA1NjNhaXk=","bG90cyNyaWQyaDJxbmF4aWFkUw=="];_.e8="enFmcmdsN2dsb2JhbENhbGxiYWNrcyMxdGd1bw== aG9uQWJub3JtYWxpdHlEZXRlY3RlZCNoNndudHZweGxzcg== cCNyMW80MTRjMzVtNmtvbkFkU2tp OTd1cmF3X3BsYXllcl9yZXNwb25zZSNrcnA1NjNhaXk= dWV1ZV9tdWx0aXBsZV9za2lwc19rcyMzOG91Y2l2aWc1Y3N3ZWJfcGxheWxpc3RfcQ== ZiNkeXJ1MmptbzRvc25hYl9zYV9l bG90cyNyaWQyaDJxbmF4aWFkUw==".split(" ");var uo;uo=function(H,C,S){this.rW1=H;this.isAsync=C;this.yZS=S};
_.$$E=[new uo("b.f_",!1,0),new uo("j.s_",!1,2),new uo("r.s_",!1,4),new uo("e.h_",!1,6),new uo("i.s_",!0,8),new uo("s.t_",!1,10),new uo("p.h_",!1,12),new uo("s.i_",!1,14),new uo("f.i_",!1,16),new uo("a.b_",!1,18),new uo("a.o_",!1),new uo("g.o_",!1,22),new uo("p.i_",!1,24),new uo("p.m_",!1),new uo("n.k_",!0,20),new uo("i.f_",!1),new uo("a.s_",!0),new uo("m.c_",!1),new uo("n.h_",!1,26),new uo("o.p_",!1),new uo("m.p_",!0,28),new uo("o.a_",!1),new uo("d.p_",!1),new uo("e.i_",!1)].reduce(function(H,C){H[C.rW1]=
C;return H},{});var Wzd=function(){};
Wzd.prototype.flush=function(H,C){H=H===void 0?[]:H;C=C===void 0?!1:C;if(_.E("enable_client_streamz_web")){H=_.Z(H);for(var S=H.next();!S.done;S=H.next())S=E$W(S.value),this.rootSpec&&_.f9(S,2,this.rootSpec),S={serializedIncrementBatch:_.QO(S.JSC$9620_serializeBinary())},_.kI("streamzIncremented",S,{sendIsolatedPayload:C})}};
var LwZ=function(){};
_.G(LwZ,Wzd);var y0d=function(H){var C=new qMW;var S=new YMY;S=_.XA(S,1,"botguard");H=_.XA(S,2,H);this.rootSpec=_.vV(C,1,TsP,H)};
_.G(y0d,Wzd);var q5,NtW=new Map;var W4Z,Uh7,sIp,a$D,iTi,YIw,N90,ZTZ;W4Z=2;Uh7=2;sIp=2;a$D=2;iTi=2;YIw=2;N90=2;ZTZ=new T61;var EyM,eHd,uzY;EyM=function(){this.ongoingFlowNonces=new Map};
_.et=function(){eHd||(eHd=new EyM);return eHd};
_.b4=function(H,C,S){return{eventType:{flowEventNamespace:H,flowEventType:C},metadata:S,statusCode:void 0,csn:void 0,can:void 0}};
_.kxW=function(H,C){var S=_.et(),w=uzY(S,C,!0);_.Ex(S,H,C,w)};
_.Ex=function(H,C,S,w){H={flowNonce:w||uzY(H,S),flowType:S,flowEventType:C.eventType};C.metadata&&(H.flowMetadata=C.metadata);C.statusCode!==void 0&&(H.flowEventStatus=C.statusCode);C.csn&&(H.csn=C.csn);C.can&&(H.can=C.can);_.kI("flowEvent",H,void 0)};
uzY=function(H,C,S){S=S===void 0?!1:S;var w=H.ongoingFlowNonces.get(C);if(!w||S)w=nD(16),H.ongoingFlowNonces.set(C,w);return w};_.GFV=new qFi;var D$u={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch",COMPANION_SURFACE:"companion_surface"};var Gm=function(H,C,S,w,A,J,c){S=S===void 0?!1:S;w=w===void 0?!1:w;J=J===void 0?_.Nb():J;this.hasRun=!1;this.r7S=H;this.pHy=C;this.lDE=S;this.fromHistory=w;this.previousVideoId=A;this.yi4=J;this.tempData=c;this.aDk=new _.mjP};
_.G(Gm,Ve);Gm.prototype.validate=function(H){return!(!H.data.playerResponse||H.data.page!=="watch"&&H.data.page!=="learning_journey_watch"&&H.data.page!=="shorts"||this.hasRun)};
Gm.prototype.handle=function(H){var C=this,S=_.e(H.endpoint,_.sX),w=_.e(H.endpoint,_.Ox);if(_.E("kevlar_continue_playback_without_player_response")&&(S==null?0:S.videoId)&&this.previousVideoId&&(S==null?void 0:S.videoId)===this.previousVideoId&&(S==null?0:S.continuePlayback)&&!this.fromHistory)this.r7S.resolve();else{var A={};S?A.watch_endpoint=S:w&&(A.watch_endpoint=w,w.endTimeSeconds&&(A.end=w.endTimeSeconds));H.data.page==="watch"?(H.data.filler||this.lDE||(_.KL("cfg"),_.a8.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(A,fUd(this,H.endpoint)),_.E("enable_masthead_quartile_ping_fix")&&Object.assign(A,vyW(this)),Object.assign(A,void 0),H.data.forceExternalPlaylist&&(A.external_list=!0)):H.data.page==="shorts"?_.a8.getInstance().triggerAction("yt-start-loading-shorts"):H.data.page==="learning_journey_watch"&&_.a8.getInstance().triggerAction("yt-start-loading-learning-journey");if(S=this.pHy()){try{S.loadVideoWithPlayerResponse(H.data.playerResponse,A),S.getPlayerPromise().then(this.r7S.resolve)}catch(J){_.nC(J),
this.r7S.resolve()}this.hasRun=!0;S.getPlayerPromise().then(function(J){J.addEventListener("onAbnormalityDetected",function(){var c=H.data.playerResponse,Y=J.getVideoData().cpn;N90=0;_.bE1=Y;if(Y=PUV(c))C.aDk.increment("IN_PLAYER"),_.u4(5),_.E("ab_st_vid_ks")?J.pauseVideo(!0):J.stopVideo(),c.playabilityStatus=Object.assign({},c.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:Y}}),c.videoDetails=void 0,_.a8.getInstance().triggerOptionalAction("yt-updated-playability-status",
c.playabilityStatus)})})}else _.Bn(Error("Pf"))}};
var fUd=function(H,C){var S=_.e(C,_.sX);if(C&&S&&S.playlistId&&S.videoId&&(H=H.yi4,H.queueProxy?(H=H.queueProxy,S=H.listId===S.playlistId?H.attributionData.get(S.videoId):void 0):S=void 0,S))return{queue_info:S}},vyW=function(H){var C;
if((C=H.tempData)==null?0:C.adpings)return{adpings:H.tempData.adpings}};var f$=function(H,C,S){this.hasRun=!1;this.tNk=H;this.alq=C;this.w0e=S};
_.G(f$,Ve);f$.prototype.validate=function(H){return!!_.hb.getValueByKeys.apply(null,[H.data].concat(_.k$(I07)))};
f$.prototype.handle=function(H){var C=this;this.tNk.promise.then(function(){var S=H.data;var w=_.hb.getValueByKeys.apply(null,[S].concat(_.k$(Dl7))),A=_.hb.getValueByKeys.apply(null,[S].concat(_.k$(UlV))),J=_.hb.getValueByKeys.apply(null,[S].concat(_.k$(tu1)));var c=(c=_.hb.getValueByKeys.apply(null,[S].concat(_.k$(Kbn))))?{videoId:c.videoId,thumbnail:c.thumbnail,title:c.title?_.sx(c.title):void 0,shortBylineText:c.author?_.sx(c.author):void 0}:void 0;var Y=void 0;_.E("web_get_playlist_id_from_current_endpoint_ks")||
(Y=_.hb.getValueByKeys.apply(null,[S].concat(_.k$(Lbn))));var M=_.hb.getValueByKeys.apply(null,[S].concat(_.k$(RRU))),m=_.hb.getValueByKeys.apply(null,[S].concat(_.k$(gdP))),W=!!M||!!m&&!!m.results&&m.results.length>0,y=0;A&&A.currentIndex&&A.localCurrentIndex&&(y=A.currentIndex-A.localCurrentIndex);A&&A.playlistId&&(Y=A.playlistId);S={rawResponse:S,autoplayRenderer:w,hasRelatedVideoData:W,playingVideo:c,playingVideoId:J,playlistPanelRenderer:A,playlistId:Y,playlistIndex:A&&A.currentIndex,relatedVideoArgs:M,
endScreenRenderer:m,playlistIndexOffset:y};a:{w=C.w0e;A=C.alq;w.response=S;if(YZ1(S))w.downloadPlaylistProxy&&w.downloadPlaylistProxy.getPlaylistId()===c0d(S)||(w.downloadPlaylistProxy=new PIV(c0d(S),w.setPlaylistData.bind(w),w.isPlayingOfflineVideo.bind(w))),w.responsePlaylistData=w.downloadPlaylistProxy.getPlaylistData(),w.listId=c0d(S),w.index=0;else if(S.playlistPanelRenderer&&S.playlistId&&S.autoplayRenderer)S.playlistId.startsWith("TLPQ")?w.queueProxy?w.listId===S.playlistId?(w.index=S.playlistIndex,
w.responsePlaylistData=S.playlistPanelRenderer,w.queueProxy.JSC$12883_setCurrentIndex(w.index)):S.playingVideoId&&w.index!==void 0&&A.clientParams.autoSaveToQueue&&(w.index+=1,w.queueProxy.JSC$12883_setCurrentIndex(w.index),w.queueProxy.addVideos([S.playingVideoId],{},w.index)):(w.queueProxy=new _.Ye(w.JSC$12937_playlistNetworkManager,S.playlistId,w.setPlaylistData.bind(w),w.clearQueue.bind(w),_.pmW(S.playlistPanelRenderer),w.storage),w.responsePlaylistData=S.playlistPanelRenderer,w.listId=S.playlistId,
w.index=S.playlistIndex):(w.index=S.playlistIndex,w.listId!==S.playlistId&&w.clearQueue(),w.responsePlaylistData=S.playlistPanelRenderer,w.listId=S.playlistId,w.playlistProxy=new BoP(w.JSC$12937_playlistNetworkManager,S.playlistId,w.setPlaylistData.bind(w),_.pmW(S.playlistPanelRenderer)));else if(!w.queueProxy)w.responsePlaylistData=void 0;else if(S.playingVideoId&&A.clientParams.autoSaveToQueue){if(w.index===void 0){_.nC(Error("Lf"));w.clearQueue();break a}w.queueProxy.videoIds.includes(S.playingVideoId)||
(w.index+=1,w.queueProxy.JSC$12883_setCurrentIndex(w.index),w.queueProxy.addVideos([S.playingVideoId],{},w.index))}_.bo(w,_.Ee(w,w.response.autoplayRenderer))}})};var lUU=function(H,C){C=C===void 0?_.Nb():C;KO.call(this);this.uw.push(new f$(this.oR,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},C));this.uw.push(new Gm(this.oR,H,!1,!1));_.E("web_response_commands_chunk_processor")&&this.uw.push(new td)};
_.G(lUU,KO);lUU.prototype.processChunk=function(H){H&&H.data.player===void 0&&this.oR.resolve();KO.prototype.processChunk.call(this,H)};var vP=function(H,C){H=H===void 0?{layer:0}:H;this.hasRun=!1;this.createScreenConfig=H;this.dHk=C};
_.G(vP,Ve);vP.prototype.validate=function(H){return!(this.hasRun||!H.endpoint)};
vP.prototype.handle=function(H){var C=_.lJ(),S,w,A=(w=_.e((S=H.endpoint)==null?void 0:S.commandMetadata,_.u9))==null?void 0:w.rootVe;this.dHk&&A?_.kP(C,A,this.dHk,this.createScreenConfig):mqM(C,H.endpoint,this.createScreenConfig);this.hasRun=!0};var lo=function(H,C){this.hasRun=!1;this.dY9=H;this.previousVideoId=C};
_.G(lo,Ve);lo.prototype.validate=function(H){return _.E("kevlar_continue_playback_without_player_response")&&(H=_.e(H.endpoint,_.sX),(H==null?0:H.videoId)&&this.previousVideoId&&(H==null?void 0:H.videoId)===this.previousVideoId&&(H==null?0:H.continuePlayback))?!1:this.dY9.jHT===0};
lo.prototype.handle=function(H){_.a8.getInstance().triggerAction("yt-stop-old-player",H.data,!0)};var VVd=function(H){H=H===void 0?{layer:0}:H;KO.call(this);this.uw.push(new lo(this));this.uw.push(new vP(H));this.uw.push(new D3(H))};
_.G(VVd,KO);var VC=function(){Ve.apply(this,arguments)};
_.G(VC,Ve);VC.prototype.validate=function(H){return!!H.data.preconnect};
VC.prototype.handle=function(H){_.DR("bc");H=_.Z(H.data.preconnect);for(var C=H.next();!C.done;C=H.next())C=C.value,(new Image).src=C};var oyd=function(H,C,S,w,A,J,c){S=S===void 0?{layer:0}:S;J=J===void 0?_.Nb():J;KO.call(this);if(w)if(A){A=J;this.uw.push(new f$(this.oR,C,A));this.uw.push(new VC);var Y,M;this.uw.push(new Gm(this.oR,H,!1,!((Y=C.clientParams)==null||!Y.fromHistory),(M=C.clientParams)==null?void 0:M.previousVideoId,A,C.tempData));var m;this.uw.push(new lo(this,(m=C.clientParams)==null?void 0:m.previousVideoId));var W;(W=C.clientParams)!=null&&W.fromHistory||(S.layer||(S=Object.assign({},S,{layer:0})),this.uw.push(new vP(S,
c)),this.uw.push(new D3(S)))}else this.uw.push(new f$(this.oR,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},J)),this.uw.push(new Gm(this.oR,H,!1,!1));else this.uw.push(new lo(this)),this.uw.push(new vP(S)),this.uw.push(new D3(S));_.E("web_response_commands_chunk_processor")&&w&&this.uw.push(new td)};
_.G(oyd,KO);oyd.prototype.processChunk=function(H){H&&H.data.player===void 0&&this.oR.resolve();KO.prototype.processChunk.call(this,H)};var OEU=function(){this.hasRun=this.hasRun=!1};
_.G(OEU,Ve);OEU.prototype.validate=function(H){return!this.hasRun&&!(!H.data.csn||!H.data.rootVe)};
OEU.prototype.handle=function(H){this.hasRun=!0;_.tJ(H.data.csn,H.data.rootVe,3)};var Xod=function(H,C,S){S=S===void 0?{layer:0}:S;KO.call(this);this.uw.push(new Gm(this.oR,H));this.uw.push(new vP(S));this.uw.push(new D3(S))};
_.G(Xod,KO);var Qj7=function(H,C,S,w,A){S=S===void 0?{layer:0}:S;w=w===void 0?_.Nb():w;KO.call(this);var J=!!C&&!!C.clientParams&&!!C.clientParams.miniplayer;J&&this.uw.push(new OEU);this.uw.push(new f$(this.oR,C,w));this.uw.push(new VC);var c,Y;this.uw.push(new Gm(this.oR,H,J,!((c=C.clientParams)==null||!c.fromHistory),(Y=C.clientParams)==null?void 0:Y.previousVideoId,w,C.tempData));var M;this.uw.push(new lo(this,(M=C.clientParams)==null?void 0:M.previousVideoId));var m;(m=C.clientParams)!=null&&m.fromHistory||
(S.layer||(S=Object.assign({},S,{layer:J?3:0})),this.uw.push(new vP(S,A)),this.uw.push(new D3(S)));_.E("web_response_commands_chunk_processor")&&this.uw.push(new td)};
_.G(Qj7,KO);var oi,$kd;oi={};
_.dkP=(oi["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},oi["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},oi["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},oi["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},oi["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},oi["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},oi["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},oi);_.Oe=new _.LV("yt-edu");_.Pj7=function(){this.JSC$13035_eduDisplayedThisLoad_={}};
$kd=function(H){var C=_.Pj7.getInstance();var S=_.YB("kevlar_tooltip_impression_cap");C=S&&parseInt(_.Oe.get(H+"-impression")||0,10)>=S||_.Oe.get(H+"-dismissed")?!1:(S=_.dkP[H])&&!C.JSC$13035_eduDisplayedThisLoad_[S.setKey||H]&&(S.titleText&&_.fL(S.titleText)||S.bodyText&&_.fL(S.bodyText))?!0:!1;if(!C)return null;C=_.dkP[H];if(!C)return null;S=C.bodyText?_.fL(C.bodyText):void 0;var w=C.titleText?_.fL(C.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:C.position,popup:{bubbleHintRenderer:{text:w?
_.sx(w):void 0,detailsText:S?_.sx(S):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.sx(_.fL("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:H}}]}}}}}}}},{eduImpressionAction:{key:H}}]};
_.JC(_.Pj7);var hs$=!1;for(var poi="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),kFn=[],XK=6;XK>=1;XK--)kFn.push({columnCount:XK,query:XK==1?0:XK*2*107-4+32,className:"grid-"+XK+"-columns",width:XK*2*107+"px"});_.QC=function(H){this.actionRouter_=H=H===void 0?_.a8.getInstance():H;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.hH1(this);this.persistentPanelVisible_=this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.hH1=function(H){var C=H.documentWidth_-(H.miniGuideVisible_?72:0)-(H.guidePersistentAndVisible_?240:0)-(H.persistentPanelVisible_?400:0);return kFn.find(function(S){return C>S.query})};
_.JC(_.QC);var nyn=function(){var H=this;this.JSC$13047_keyboardInUse=!1;document.addEventListener("keydown",function(){H.onKeydown()});
document.addEventListener("mousedown",function(){H.JSC$13047_keyboardInUse=!1})},r0M;
nyn.prototype.isKeyBoardInUse=function(){return this.JSC$13047_keyboardInUse};
nyn.prototype.onKeydown=function(){this.JSC$13047_keyboardInUse=!0};var Bti,$e;_.dQ=new _.LV("yt-mentions");_.PP=function(){};
Bti=function(H,C){return $e(C,"drag-to-reorder-edu-displayed")};
$e=function(H,C,S,w,A,J){S=S===void 0?"OPEN_POPUP_POSITION_TOP":S;if(C){if(_.dQ.get(C))return;_.dQ.set(C,!0,w)}if(A&&J!==void 0){C=Number(_.dQ.get(A)||0);if(C>=J)return;_.dQ.set(A,C+1)}return[{openPopupAction:{popupType:"HINT",position:S,popup:{bubbleHintRenderer:{detailsText:H,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.JC(_.PP);var Dk7,KzV,tVW;Dk7=function(H,C,S,w){this.JSC$13057_taskManager_=H;this.onFulfilled_=typeof C==="function"?C:null;this.onRejected_=typeof S==="function"?S:null;this.JSC$13057_context_=w};
KzV=function(H,C){H.onFulfilled_&&_.dw(H.JSC$13057_taskManager_,function(){H.onFulfilled_.call(H.JSC$13057_context_,C)})};
tVW=function(H,C){H.onRejected_&&_.dw(H.JSC$13057_taskManager_,function(){H.onRejected_.call(H.JSC$13057_context_,C)})};
_.p$=function(H){this.JSC$13060_taskManager_=H;this.callbacks_=[]};
_.p$.prototype.then=function(H,C,S){this.callbacks_.push(new Dk7(this.JSC$13060_taskManager_,H,C,S));return this};
_.p$.prototype.onSuccess=function(H){this.callbacks_.forEach(function(C){KzV(C,H)})};
_.p$.prototype.onFailure=function(H){this.callbacks_.forEach(function(C){tVW(C,H)})};
_.p$.prototype.cancel=function(){this.callbacks_.length=0};
GVi(_.p$);_.twp=null;_.Qi=new _.W4("ACTIVITY_TOKEN");var ke=function(H,C){this.serviceId=new G9n(H,C)};
ke.prototype.toString=function(){return this.serviceId.toString()};var Lzi=function(){this.internalMap={}};
_.F=Lzi.prototype;_.F.contains=function(H){return Object.prototype.hasOwnProperty.call(this.internalMap,H)};
_.F.get=function(H){if(this.contains(H))return this.internalMap[H]};
_.F.set=function(H,C){this.internalMap[H]=C};
_.F.getKeys=function(){return Object.keys(this.internalMap)};
_.F.remove=function(H){delete this.internalMap[H]};var h$=function(){this.mappings=new Lzi;this.errorCallbacks=new Set};
h$.prototype.getModuleId=function(H){return H.serviceId.getModuleId()};
h$.prototype.get=function(H){var C=this.mappings.get(H.toString());return gy1(this,C,H)};
h$.prototype.getMultipleAsync=function(){var H=_.tc.apply(0,arguments),C=this,S=H.map(function(M){return C.getModuleId(M)}),w=H.map(function(M){return C.mappings.get(M.toString())}).filter(function(M){return M});
if(w.length===H.length)return _.N3(w.map(function(M,m){return gy1(C,M,H[m])}));
var A=kJ().loadMultiple(S);w=_.nh(S.map(function(M){return A[M]}));
var J=document.hidden,c=-1,Y=_.YB("get_async_timeout_ms",-1);Y>-1&&(c=setTimeout(function(){_.Bn(new _.X0("Module timeout.",S,J,document.hidden))},Y));
return _.rL(w.then(function(){return H.map(function(M){return gy1(C,C.mappings.get(M.toString()),M)})}).thenCatch(function(M){for(var m=_.Z(C.errorCallbacks),W=m.next();!W.done;W=m.next())W=W.value,W(M);
throw M;}),function(){clearTimeout(c)})};
h$.prototype.registerService=function(H,C){this.mappings.set(H.toString(),{type:"mapping",value:C});return H};
var gy1=function(H,C,S){switch(C.type){case "mapping":return C.value;case "factory":return C=C.value(),H.mappings.set(S.toString(),{type:"mapping",value:C}),C;default:return _.KP(C)}};
h$.prototype.onLoadError=function(H){var C=this;this.errorCallbacks.add(H);return function(){C.errorCallbacks.delete(H)}};
_.n$=new h$;var ILD=/^[a-zA-Z0-9_\-]{11}$/;var aLE=_.d1(function(){var H,C;return(C=(H=window).matchMedia)==null?void 0:C.call(H,"(prefers-reduced-motion: reduce)").matches});var UkU=_.d1(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 H=_.gh("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");H||(H=_.GZ("VIDEO"),_.AO("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
H));return!!(H&&H.canPlayType&&H.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var sNZ=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var rQ;rQ=function(){this.tokenJars={};if(this.cookiesEnabled=_.VD()){var H=_.vA.get("CONSISTENCY",void 0);H&&RH_(this,{encryptedTokenJarContents:H})}};
_.wqi=function(){rQ.instance||(rQ.instance=new rQ);return rQ.instance};
rQ.prototype.handleResponse=function(H,C){if(!C)throw Error("Vf");var S,w;C=((S=C.innerTubeRequest.context)==null?void 0:(w=S.request)==null?void 0:w.consistencyTokenJars)||[];var A;(H=(A=H.responseContext)==null?void 0:A.consistencyTokenJar)&&this.replace(C,H)};
rQ.prototype.replace=function(H,C){H=_.Z(H);for(var S=H.next();!S.done;S=H.next())delete this.tokenJars[S.value.encryptedTokenJarContents];RH_(this,C)};
var RH_=function(H,C){if(C.encryptedTokenJarContents&&(H.tokenJars[C.encryptedTokenJarContents]=C,typeof C.expirationSeconds==="string")){var S=Number(C.expirationSeconds);setTimeout(function(){delete H.tokenJars[C.encryptedTokenJarContents]},S*1E3);
H.cookiesEnabled&&_.l5("CONSISTENCY",C.encryptedTokenJarContents,S,void 0,!0)}};var IUn,BP;IUn=window.location.hostname.split(".").slice(-2).join(".");_.hG=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var H=_.rh("LOCATION_PLAYABILITY_TOKEN");_.rh("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=aUW(this))&&(H=this.localStorage.get("yt-location-playability-token"));H&&(this.locationPlayabilityToken=H,this.mostRecentPosition=void 0)};
_.hG.getInstance=function(){BP=_.gh("yt.clientLocationService.instance");BP||(BP=new _.hG,_.AO("yt.clientLocationService.instance",BP));return BP};
_.hG.prototype.setLocationOnInnerTubeContext=function(H){H.client||(H.client={});if(this.mostRecentPosition)H.client.locationInfo||(H.client.locationInfo={}),H.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),H.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),H.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),H.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)H.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.hG.prototype.handleResponse=function(H){var C;H=(C=H.responseContext)==null?void 0:C.locationPlayabilityToken;H!==void 0&&(this.locationPlayabilityToken=H,this.mostRecentPosition=void 0,_.rh("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=aUW(this))&&this.localStorage.set("yt-location-playability-token",H,15552E3):_.l5("YT_CL",JSON.stringify({loctok:H}),15552E3,IUn,!0))};
var aUW=function(H){return H.localStorage===void 0?new _.LV("yt-client-location"):H.localStorage};
_.hG.prototype.clearLocationPlayabilityToken=function(H){H==="TVHTML5"?(this.localStorage=aUW(this))&&this.localStorage.remove("yt-location-playability-token"):_.fyZ("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.hG.prototype.getCurrentPositionFromGeolocation=function(){var H=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Wf"));var C=!1,S=1E4;_.rh("INNERTUBE_CLIENT_NAME")==="MWEB"&&(C=!0,S=15E3);return new Promise(function(w,A){navigator.geolocation.getCurrentPosition(function(J){H.mostRecentPosition=J;w(J)},function(J){A(J)},{enableHighAccuracy:C,
maximumAge:0,timeout:S})})};
_.hG.prototype.createUnpluggedLocationInfo=function(H){var C={};H=H.coords;if(H==null?0:H.latitude)C.latitudeE7=Math.floor(H.latitude*1E7);if(H==null?0:H.longitude)C.longitudeE7=Math.floor(H.longitude*1E7);if(H==null?0:H.accuracy)C.locationRadiusMeters=Math.round(H.accuracy);return C};
_.hG.prototype.createLocationInfo=function(H){var C={};H=H.coords;if(H==null?0:H.latitude)C.latitudeE7=Math.floor(H.latitude*1E7);if(H==null?0:H.longitude)C.longitudeE7=Math.floor(H.longitude*1E7);return C};var xkP=function(){};
_.F=xkP.prototype;
_.F.JSC$13127_getRequest=function(H,C,S){C=C===void 0?{}:C;S=S===void 0?VaY:S;var w=C;if(this.isNavigationCommand()){var A,J=(A=_.e(H==null?void 0:H.commandMetadata,_.u9))==null?void 0:A.url;w=_.ATZ(H.clickTrackingParams,!0,!1,J,this.JSC$13127_getClientScreen(w))}else w=_.ATZ(H.clickTrackingParams,!1,this.includeCsn);w={context:w};if(A=this.getExtension(H))return this.JSC$13127_buildRequest(w,A,C),A=this.getApiUrl(H),J=Object.assign({},{command:H},this.getRequestConfig(H,C)),w={input:A,requestShell:CL(A),
innerTubeRequest:w,config:J},w.config.authStrategy?w.config.authStrategy.identity=S:w.config.authStrategy={identity:S},(H=this.JSC$13127_getRequestKey(H,C))&&!w.config.requestKey&&(w.config.requestKey=H),w;H=new _.X0("Error: Failed to create Request from Command.",H);_.nC(H)};
_.F.getApiUrl=function(H){var C=_.JG(this.getApiPaths(H)),S;(H=(S=_.e(H.commandMetadata,_.u9))==null?void 0:S.apiUrl)&&(C=H);return vg$(fJZ(C))};
_.F.isNavigationCommand=function(){return!1};
_.F.JSC$13127_getClientScreen=function(){};
_.F.JSC$13127_getRequestKey=function(){};
_.F.getRequestConfig=function(){};
_.JJ.Object.defineProperties(xkP.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var Db=function(){};
_.G(Db,xkP);Db.prototype.JSC$13134_getStoreKey=function(){};
Db.prototype.JSC$13127_getRequestKey=function(H,C){C=C===void 0?{}:C;return this.JSC$13134_getStoreKey(H,C)};_.nf={getLocalStorage:_.d1(function(){try{var H=new Qu7;var C=H.isAvailable()?H:null}catch(S){return null}return C?new _.mP(C):null}),
getSessionStorage:_.d1(function(){var H=new ddE;return H.isAvailable()?new _.mP(H):null})};var Fn=new _.W4("ENTITY_STATE_TOKEN"),K$=new _.W4("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var H1V=XMLHttpRequest.prototype.fetch,i1_=H1V&&H1V.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!jk?!0:!1;var t$=function(H){this.JSC$13140_storeWithEntities=H};
_.G(t$,Db);_.F=t$.prototype;_.F.getApiPaths=function(){return yTM};
_.F.getExtension=function(H){return _.e(H,_.sX)||_.e(H,_.Ox)||_.e(H,TH1)};
_.F.isNavigationCommand=function(){return!0};
_.F.JSC$13134_getStoreKey=function(H){if((_.E("kevlar_cache_on_ttl_player")||_.E("mweb_enable_shorts_innertube_player_prefetch")||_.E("mweb_use_new_history_manager")||_.E("web_shorts_prefetch_service_enabled"))&&(H=this.getExtension(H))&&H.videoId){var C={videoId:H.videoId};H.playlistId&&(C.playlistId=H.playlistId);H.playerParams&&(C.params=H.playerParams);return _.SR("player",C)}};
_.F.JSC$13127_getClientScreen=function(H){var C;return((C=H.contentPlaybackContext)==null?void 0:C.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.F.JSC$13127_buildRequest=function(H,C,S){if(_.E("enable_interstitial_entity_check")){var w=this.JSC$13140_storeWithEntities;if(C.videoId)for(var A=_.Z(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),J=A.next();!J.done;J=A.next()){J=J.value;var c;var Y=void 0,M=void 0,m=C.videoId,W=J;(c=w)?(m=_.ba(m+W,"interstitialInteractionStateEntity"),c=(Y=(M=_.Ea(c.getState().entities,"interstitialInteractionStateEntity",m))==null?void 0:M.primaryButtonClicked)!=null?Y:!1):c=!1;if(c)switch(J){case "CONTENT_CHECK_REQUIRED":C.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":C.racyCheckOk=!0}}}C.videoId&&(H.videoId=C.videoId);C.playlistId&&(H.playlistId=C.playlistId);C.index!==void 0&&(H.playlistIndex=C.index+1);C.playerParams&&(H.params=C.playerParams);"startTimeSeconds"in C&&C.startTimeSeconds&&(_.E("enable_player_request_builder_start_time_floor")?H.startTimeSecs=Math.floor(C.startTimeSeconds):H.startTimeSecs=C.startTimeSeconds);S.contentPlaybackContext&&(H.playbackContext={contentPlaybackContext:S.contentPlaybackContext});S.prefetchPlaybackContext&&
(H.playbackContext=Object.assign({},H.playbackContext,{prefetchPlaybackContext:S.prefetchPlaybackContext}),H.context.request||(H.context.request={}),H.context.request.isPrefetch=!0);H.playbackContext||(H.playbackContext={});w=UkU();H.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!w,supportXhr:i1_};S.overrideMutedAtStart&&(H.overrideMutedAtStart=S.overrideMutedAtStart);H.racyCheckOk=!!C.racyCheckOk;H.contentCheckOk=!!C.contentCheckOk;!_.E("captions_prefs_killswitch")&&(S=(S=_.BU("yt-player-caption-language-preferences"))?
S:[],S==null?0:S.length)&&(H.captionParams={viewerSelectedCaptionLangs:S})};
_.F.getRequestConfig=function(H){H=this.JSC$13134_getStoreKey(H);var C;H&&(C={storeStrategy:{storeKey:H}});_.E("web_log_player_watch_next_ticks")&&(C=C||{},C.requestTick="ps_s",C.responseTick="ps_r");return C};
t$[F0]=[Fn];var L$=function(){};
_.G(L$,Db);_.F=L$.prototype;_.F.getApiPaths=function(){return IkM};
_.F.getExtension=function(H){return _.e(H,_.sX)};
_.F.isNavigationCommand=function(){return!0};
_.F.JSC$13134_getStoreKey=function(H){if((H=this.getExtension(H))&&H.videoId){var C={videoId:H.videoId};H.playlistId&&(C.playlistId=H.playlistId);H.index&&(C.index=H.index);H.params&&(C.params=H.params);return _.SR("next",C)}};
_.F.JSC$13127_getClientScreen=function(H){var C;return((C=H.contentPlaybackContext)==null?void 0:C.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.F.JSC$13127_buildRequest=function(H,C,S){C.videoId&&(H.videoId=C.videoId);C.playlistId&&(H.playlistId=C.playlistId);C.params&&(H.params=C.params);C.index!==void 0&&(H.playlistIndex=C.index);H.racyCheckOk=!(!S.racyCheckOk&&!C.racyCheckOk);H.contentCheckOk=!!C.contentCheckOk;S.contentPlaybackContext&&(H.autonavState=S.contentPlaybackContext.autonavState,H.playbackContext={vis:S.contentPlaybackContext.vis,lactMilliseconds:S.contentPlaybackContext.lactMilliseconds});S.prefetchPlaybackContext&&(H.context.request||
(H.context.request={}),H.context.request.isPrefetch=!0);_.E("captions_hats_killswitch")||(C=_.VN().getFlag(65),C=C!=null?!C:!1,S=!!_.BU("yt-player-sticky-caption"),H.captionsRequested=C&&S)};
_.F.getRequestConfig=function(H){H=this.JSC$13134_getStoreKey(H);var C;H&&(C={storeStrategy:{storeKey:H}});_.E("web_log_player_watch_next_ticks")&&(C=C||{},C.requestTick="wn_s",C.responseTick="wn_r");return C};
var gQ=function(){};
_.G(gQ,Db);gQ.prototype.getApiPaths=function(){return IkM};
gQ.prototype.getExtension=function(H){return _.e(H,_.UU)};
gQ.prototype.JSC$13127_buildRequest=function(H,C){C.token&&(H.continuation=C.token)};var Ue=function(H,C){this.playerRequestBuilder=H;this.watchNextRequestBuilder=C};
_.G(Ue,Db);Ue.prototype.getApiPaths=function(){return JTY};
Ue.prototype.getExtension=function(H){return _.e(H,_.sX)};
Ue.prototype.isNavigationCommand=function(){return!0};
Ue.prototype.JSC$13127_buildRequest=function(H,C,S){H.playerRequest={};this.playerRequestBuilder.JSC$13127_buildRequest(H.playerRequest,C,S);_.E("web_streaming_watch")&&(H.watchNextRequest={},this.watchNextRequestBuilder.JSC$13127_buildRequest(H.watchNextRequest,C,S))};
Ue[F0]=[t$,L$];var CTn;_.Ri=new _.W4("SHORTS_CONTROLLER_TOKEN");CTn=new _.W4("SHORTS_STATE_STORE_TOKEN");var Ii=function(H,C){var S=_.tc.apply(2,arguments);H=H===void 0?0:H;_.X0.call(this,C,S);this.errorType=H;Object.setPrototypeOf(this,this.constructor.prototype)};
_.G(Ii,_.X0);var SRP,sCd,wL7,Ty$,Ld,dC0,Z1b,F0W,TGd,za_,YRn;SRP=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(H){return H+"="}).join("|"));
sCd=RegExp(".*\\?.*playnext=1.*");_.ai=function(H,C,S,w){this.watchEndpointMap=H;this.reelWatchEndpointMap=C;this.innerTubeTransportService=S;this.fetchPbj=w};
wL7=function(H,C,S){var w=_.JA().resolve(_.AA(jCd));_.ai.instance=new _.ai(H,C,S,w)};
_.AjW=function(H,C){var S=_.YB("web_pbj_log_warning_rate",0);S=S>0&&Math.random()<S;var w;if((w=_.e(C.commandMetadata,_.u9))==null||!w.rootVe)return S&&_.Bn(Error("Yf")),!1;var A;w=(A=_.e(C.commandMetadata,_.u9))==null?void 0:A.url;if(!w)return S&&_.Bn(Error("Zf")),!1;if(sCd.test(w))return!0;if(SRP.test(w))return S&&_.Bn(Error("$f`"+w)),!1;if(_.e(C,_.sX)){if(!(H.watchEndpointMap.watchNext&&H.watchEndpointMap.player||_.E("kevlar_fetch_initial_data_op_watch_client")))return S&&_.Bn(Error("Rf")),!1;
H=_.YB("web_pbj_log_warning_rate",0);H=H>0&&Math.random()<H;_.e(C,_.sX)?U$Z(C)?C=!0:(H&&_.Bn(Error("Sf")),C=!1):(H&&_.Bn(Error("Rf")),C=!1);return C}if(_.e(C,_.Ox))return Rsi(C);if(_.e(C,_.F7))return!0;H=_.Ht(H.innerTubeTransportService,C);!H&&S&&_.nC(Error("ag"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(C)});return H};
Ty$=function(H,C,S,w,A,J){C={url:C};if(S==null?0:S.itct)C.parentTrackingParams=S.itct;var c=_.JG(lkM);return _.Mb(H.innerTubeTransportService,C,c).then(function(Y){(Y=Y.endpoint)||(Y=_.gH);(S==null?0:S.itct)&&Y&&!Y.trackingParams&&(Y.trackingParams=S.itct);var M=VL(Y);return Ld(H,Y,S,w,M,A,J)})};
Ld=function(H,C,S,w,A,J,c,Y){Y=Y===void 0?{}:Y;if(H.fetchPbj&&!_.AjW(H,C)&&!_.E("force_one_platform")){Y=H.fetchPbj(C);var M=_.N3(Y.then(function(L){if(!L)throw Error("bg");c(M)||J(C,L);return L}));
return M}var m,W,y={rootVe:(m=_.e(C.commandMetadata,_.u9))==null?void 0:m.rootVe,url:(W=_.e(C.commandMetadata,_.u9))==null?void 0:W.url,endpoint:C,page:A};if(_.e(C,_.sX)){var N,b={contentPlaybackContext:_.dm(S,(N=_.e(C.commandMetadata,_.u9))==null?void 0:N.url,w)},u=_.Cn();_.E("web_streaming_watch")&&window.TextDecoderStream?(Y=JjM(H.innerTubeTransportService,C,b,function(L){!y.response&&L.content&&(y.response=L.content);!y.playerResponse&&L.player&&(y.playerResponse=L.player);J(C,y)}),m=lJE(C),m.length&&
(y.preconnect=m,J(C,y)),F0W(Y,u,y).catch(function(L){L instanceof Ii&&L.errorType===2&&_.E("web_streaming_watch_fallback")&&Z1b(H,C,b,y,J,c,u)})):Z1b(H,C,b,y,J,c,u);
return u.promise}if(_.e(C,_.Ox)){var O;if(((O=_.e(C,_.Ox))==null?void 0:O.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var d=_.Cn();_.cjY(_.JA().resolve(_.Ri),C).then(function(L){YRn(H,S,w,A,J,d,L)});
return d.promise}Y=_.N3();var p;m={contentPlaybackContext:_.dm(S,(p=_.e(C.commandMetadata,_.u9))==null?void 0:p.url,w)};(p=H.reelWatchEndpointMap.player)&&(p=p().JSC$13127_getRequest(C,m))&&(Y=_.Mb(H.innerTubeTransportService,p.innerTubeRequest,p.input,C.clickTrackingParams,p.config));p=_.N3();(W=H.reelWatchEndpointMap.reelItemWatch)&&(W=W().JSC$13127_getRequest(C))&&(p=_.Mb(H.innerTubeTransportService,W.innerTubeRequest,W.input,C.clickTrackingParams,W.config));W=_.N3();_.E("web_enable_delay_shorts_sequence_call_new")||
(N=H.reelWatchEndpointMap.reelWatchSequence)&&_.e(C,_.Ox).sequenceParams&&(m=N().JSC$13127_getRequest(C,m))&&(W=_.Mb(H.innerTubeTransportService,m.innerTubeRequest,m.input,C.clickTrackingParams,m.config));m=_.N3(y);N=_.Cn();za_(C,m,Y,p,W,J,c,N);return N.promise}var k;if(_.e(C,K4V)&&((k=_.e(C.commandMetadata,_.u9))==null?0:k.url))return Y=jN7(_.I7(Bj().location.href),_.I7(_.e(C.commandMetadata,_.u9).url)).toString(),Ty$(H,Y,S,w,J,function(){return!1});
if(_.e(C,_.F7))return J(C,y),_.N3(y);if(_.Ht(H.innerTubeTransportService,C)){Y=Object.assign({},{tempData:S,disableCache:S.disableCache},Y);var R=_.ir(H.innerTubeTransportService,C,Y).then(function(L){y.response=L;c(R)||J(C,y);return y});
return R}return _.N3(y)};
_.qRU=function(H,C,S,w){if(_.e(C,_.sX)||_.e(C,_.Ox)&&(_.E("mweb_enable_shorts_innertube_player_prefetch")||_.E("kevlar_enable_shorts_prefetch_in_sequence"))||_.e(C,TH1)&&_.E("web_enable_prefetching_videos_on_home")){var A,J={contentPlaybackContext:_.dm(S,(A=_.e(C.commandMetadata,_.u9))==null?void 0:A.url,w),prefetchPlaybackContext:HJZ(S)},c,Y,M;if(((c=_.e(C,_.sX))==null?void 0:(Y=c.watchEndpointSupportedPrefetchConfig)==null?void 0:(M=Y.prefetchHintConfig)==null?void 0:M.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(S=
H.watchEndpointMap.watchNext)if(J=S().JSC$13127_getRequest(C,J))return Promise.resolve(_.Mb(H.innerTubeTransportService,J.innerTubeRequest,J.input,void 0,J.config).then(function(y){return y}))}else if(S=H.watchEndpointMap.player)if(J=S().JSC$13127_getRequest(C,J))return Promise.resolve(_.Mb(H.innerTubeTransportService,J.innerTubeRequest,J.input,void 0,J.config).then(function(y){return y}))}else if(_.Ht(H.innerTubeTransportService,C)){var m={tempData:S},W=MOi(H.innerTubeTransportService,C);
return W?new Promise(function(y,N){var b,u;return _.z(function(O){if(O.nextAddress==1)return O.yield(W,2);if(O.nextAddress!=4)return b=O.yieldResult,b.JSC$13134_getStoreKey(C,m)?O.yield(_.ir(H.innerTubeTransportService,C,m),4):(N(new _.X0("Prefetching request builder with no store key.",C)),O.jumpTo(0));u=O.yieldResult;y(u);_.oT(O)})}):Promise.reject(new _.X0("Prefetching unregistered request builder.",C))}return Promise.reject(new _.X0("No request builder available to prefetch endpoint.",C))};
dC0=function(H,C){var S,w,A;if(_.e(C,_.sX)){var J=H.watchEndpointMap.watchNext;J&&(S=J());(H=H.watchEndpointMap.player)&&(w=H())}else if(_.e(C,_.Ox))(J=H.reelWatchEndpointMap.reelItemWatch)&&(S=J()),(J=H.reelWatchEndpointMap.player)&&(w=J()),(H=H.reelWatchEndpointMap.reelWatchSequence)&&(A=H());else{a:{H=IF$(C,H.innerTubeTransportService.endpointMap);if(H!==void 0)if(typeof H.then==="function")_.nC(new _.X0("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",C));else break a;
H=void 0}H&&(S=H)}var c,Y,M;return{content:(c=S)==null?void 0:c.JSC$13134_getStoreKey(C),player:(Y=w)==null?void 0:Y.JSC$13134_getStoreKey(C),reelSequence:(M=A)==null?void 0:M.JSC$13134_getStoreKey(C)}};
Z1b=function(H,C,S,w,A,J,c){var Y=_.N3(),M=H.watchEndpointMap.player;_.E("web_streaming_player")&&(M=QL(Ue));M&&(M=M().JSC$13127_getRequest(C,S))&&(Y=_.Mb(H.innerTubeTransportService,M.innerTubeRequest,M.input,C.clickTrackingParams,M.config));M=_.N3();var m=H.watchEndpointMap.watchNext;m&&(S=m().JSC$13127_getRequest(C,S))&&(M=_.Mb(H.innerTubeTransportService,S.innerTubeRequest,S.input,C.clickTrackingParams,S.config));H=_.N3(w);TGd(C,H,Y,M,A,J,c)};
F0W=function(H,C,S){return _.z(function(w){if(w.nextAddress==1)return w.yield(H,2);C.resolve(S);_.oT(w)})};
TGd=function(H,C,S,w,A,J,c){var Y,M,m,W,y;_.z(function(N){switch(N.nextAddress){case 1:return N.yield(C,2);case 2:Y=N.yieldResult;if(J(c.promise))return c.resolve(Y),N.return();A(H,Y);M=lJE(H);if(!M.length){N.jumpTo(3);break}return N.yield(C,4);case 4:Y.preconnect=M,A(H,Y);case 3:return _.en(N,5),N.yield(S,7);case 7:m=N.yieldResult;_.xB(N,6);break;case 5:return W=_.Vx(N),c.reject(W),N.return();case 6:if(m===void 0)return Y.reload=!0,A(H,Y),c.resolve(Y),N.return();if(J(c.promise))return c.resolve(Y),
N.return();Y.playerResponse=m;A(H,Y);_.en(N,8);return N.yield(w,10);case 10:y=N.yieldResult;_.xB(N,9);break;case 8:_.Vx(N);case 9:if(y===void 0)return Y.response={responseContext:{}},c.resolve(Y),N.return();if(J(c.promise))return c.resolve(Y),N.return();Y.response=y;A(H,Y);c.resolve(Y);_.oT(N)}})};
za_=function(H,C,S,w,A,J,c,Y){var M,m,W,y,N,b;_.z(function(u){switch(u.nextAddress){case 1:return u.yield(C,2);case 2:M=u.yieldResult;if(c(Y.promise))return Y.resolve(M),u.return();J(H,M);m=lJE(H);if(!m.length){u.jumpTo(3);break}return u.yield(C,4);case 4:M.preconnect=m,J(H,M);case 3:return _.en(u,5),u.yield(S,7);case 7:W=u.yieldResult;_.xB(u,6);break;case 5:return y=_.Vx(u),Y.reject(y),u.return();case 6:if(W===void 0)return M.reload=!0,J(H,M),Y.resolve(M),u.return();if(c(Y.promise))return Y.resolve(M),
u.return();M.playerResponse=W;J(H,M);_.en(u,8);return u.yield(w,10);case 10:N=u.yieldResult;_.xB(u,9);break;case 8:_.Vx(u);case 9:if(N===void 0)return M.response={responseContext:{}},Y.resolve(M),u.return();if(c(Y.promise))return Y.resolve(M),u.return();M.response=N;J(H,M);_.en(u,11);return u.yield(A,13);case 13:b=u.yieldResult;_.xB(u,12);break;case 11:_.Vx(u);case 12:if(c(Y.promise))return Y.resolve(M),u.return();b&&(M.reelWatchSequenceResponse=b);J(H,M);Y.resolve(M);_.oT(u)}})};
YRn=function(H,C,S,w,A,J,c){var Y,M,m,W,y,N;_.z(function(b){if((Y=c)==null||!Y.replacementEndpoint)return J.reject(),b.return();M=c.replacementEndpoint;(m=_.e(M,_.Ox))?(c.sequenceContinuation&&(m.sequenceParams=c.sequenceContinuation),W=_.JA().resolve(_.Ri),y=m.sequenceParams,mwU(W,M)&&delete m.sequenceParams,N=Ld(H,M,C,S,w,A,function(){return!1}),N.then(function(u){return _.z(function(O){if(O.nextAddress==1)return W01(W,{reelWatchEndpoint:{sequenceParams:y}},u),O.yield(0,2);
J.resolve(u);_.oT(O)})})):J.reject();
_.oT(b)})};_.yjb=function(H){if(H.validatedFragments_.length==0)return null;if(!H.mergedPrefetchedData_){for(var C=[],S=_.Z(H.validatedFragments_),w=S.next();!w.done;w=S.next()){w=_.Z(H.fragmentConfiguration_[w.value].graftedKeys);for(var A=w.next();!A.done;A=w.next())(A=H.prefetchedData_[A.value].trackingParams)&&C.push(A)}H.mergedPrefetchedData_={};Object.assign(H.mergedPrefetchedData_,H.prefetchedData_,{clientSideGrafts:C})}return H.mergedPrefetchedData_};var NGn;_.xe=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
NGn=function(H,C,S){if(_.L4Z(C))return H.prefetchCache_.get(_.goW(C,S))};_.HS=new _.W4("NAVIGATION_TOKEN");var b1d=function(H){var C=this;var S=S===void 0?ZJD():S;var w=w===void 0?_.JA().resolve(_.HS):w;this.onePickCommand=H;this.JSC$13238_playlistNetworkManager=S;this.navigationManager=w;this.videoPickerBuilder=_.JTi("yt-addtoplaylist");_.t$d(k8i(hbb(pnY(this.videoPickerBuilder.setTitle(H.modalTitle).setSize(1E3).addView(rAd()).addView(nBV())).addView("youtube"),H.selectButtonLabel)),function(A){C.handleAction(A)})};
b1d.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
b1d.prototype.handleAction=function(H){var C=this;if(H&&this.onePickCommand.listId&&H.action==="picked"&&H.docs){var S=[];H.docs.forEach(function(w){S.push({addedVideoId:w.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13238_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,S).then(function(){_.E("playlist_add_video_hard_reload_killswitch")?C.navigationManager.reload():EaP(C.navigationManager)})}};var ea7=function(){if(this.constructor===ea7)throw new TypeError("cg");};
_.F=ea7.prototype;_.F.dispose=function(){};
_.F.disconnect=function(){};
_.F.reconnect=function(){};
_.F.observe=function(H,C,S){return{element:H,option:S}};
_.F.unobserveByKey=function(){};var cTE=function(H,C){C=C===void 0?0:C;ea7.call(this);this.viewroot=H;this.defaultPrescanHeight=C;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),H?{root:H,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.G(cTE,ea7);_.F=cTE.prototype;_.F.dispose=function(){this.disconnect();this.handlers.clear()};
_.F.disconnect=function(H){this.isConnected=!1;this.pauseObservingUntilReconnect=H===void 0?!1:H;this.observer.disconnect();H=_.Z(this.prescanObservers.values());for(var C=H.next();!C.done;C=H.next())C.value.disconnect()};
_.F.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var H=_.Z(this.handlers),C=H.next();!C.done;C=H.next()){var S=_.Z(C.value);C=S.next().value;var w=S.next().value;S=!1;w=_.Z(w.keys());for(var A=w.next();!A.done;A=w.next())if((A=A.value)&&A.state==="prescan"){S=!0;break}S&&u3Y(this,C).observe(C);this.observer.observe(C)}}};
_.F.handleObserveEvent=function(H){H=_.Z(H);for(var C=H.next();!C.done;C=H.next()){C=C.value;var S=this.handlers.get(C.target);if(S){var w=C.isIntersecting;S=_.Z(S);for(var A=S.next();!A.done;A=S.next()){var J=_.Z(A.value);A=J.next().value;J=J.next().value;A&&(A.state==="visible"&&w||A.state==="hidden"&&!w)&&(J(C.target,A.state),A.calledOnce&&this.unobserveByKey({element:C.target,option:A}))}}}};
_.F.handlePrescanEvent=function(H){H=_.Z(H);for(var C=H.next();!C.done;C=H.next()){C=C.value;var S=this.handlers.get(C.target);if(S&&C.isIntersecting){S=_.Z(S);for(var w=S.next();!w.done;w=S.next()){var A=_.Z(w.value);w=A.next().value;A=A.next().value;w&&w.state==="prescan"&&(A(C.target,w.state),w.calledOnce&&this.unobserveByKey({element:C.target,option:w}))}}}};
_.F.observe=function(H,C,S){var w=(w=this.handlers.get(H))&&w.has(S)?{element:H,option:S}:void 0;if(w)return w;w={element:H,option:S};this.handlers.has(H)||this.handlers.set(H,new Map);var A=this.handlers.get(H);A&&!A.has(S)&&A.set(S,C);this.pauseObservingUntilReconnect||(S.state==="prescan"&&u3Y(this,H).observe(H),this.observer.observe(H));return w};
_.F.unobserveByKey=function(H){var C=this.handlers.get(H.element);if(C&&C.has(H.option)){C.delete(H.option);if(H&&H.option.state==="prescan")for(var S=_.Z(this.prescanObservers.values()),w=S.next();!w.done;w=S.next())w.value.unobserve(H.element);C.size===0&&(this.handlers.delete(H.element),this.observer.unobserve(H.element))}};
var u3Y=function(H,C){var S=H.defaultPrescanHeight;C.hasAttribute("prescan-height")&&(C=Number(C.getAttribute("prescan-height")),isNaN(C)||(S=C));if(H.prescanObservers.has(S))return H.prescanObservers.get(S);C="-0.1px -0.1px "+S+"px -0.1px";C=new IntersectionObserver(H.handlePrescanEvent.bind(H),H.viewroot?{root:H.viewroot,rootMargin:C}:{rootMargin:C});H.prescanObservers.set(S,C);return C};var GIV=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],fXM=function(){var H,C=this;this.JSC$13255_actionRouter=H=H===void 0?_.a8.getInstance():H;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return C.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return C.visibilityObservedElementHandlerKeys}}},vaM,VOU,XL1;
fXM.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.E("kevlar_use_vimio_behavior")&&_.rh("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=YuW())};
fXM.prototype.dispose=function(){this.visibilityMonitor&&_.$c(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
fXM.prototype.handleVisibilityRefreshed=function(){for(var H=_.Z(this.targetMap.entries()),C=H.next();!C.done;C=H.next()){var S=_.Z(C.value);C=S.next().value;S=S.next().value;_.lXU(this,C,S)}};
_.O1_=function(H,C,S){VOU(H,S);var w=_.oaP(H,C);w.element=S;H.targetedElements.set(S,C);_.lXU(H,C,w)};
VOU=function(H,C){var S=H.targetedElements.get(C);if(S){var w=H.targetMap.get(S);w&&(delete w.element,H.targetMap.set(S,w));H.targetedElements.delete(C);H.visibilityObserver&&H.visibilityObservedElementHandlerKeys&&(S=H.visibilityObservedElementHandlerKeys.get(C))&&(H.visibilityObserver.unobserveByKey(S),H.visibilityObservedElementHandlerKeys.delete(C))}};
_.lXU=function(H,C,S){var w=S.action,A=S.element;A&&w&&(GIV.includes(C)||_.rh("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||H.visibilityMonitor&&H.visibilityMonitor.isNodeVisible(A)?XL1(H,C,S):H.visibilityObserver&&(H.visibilityObservedElementHandlerKeys||(H.visibilityObservedElementHandlerKeys=new WeakMap),w=H.visibilityObserver.observe(A,function(){XL1(H,C,S);H.visibilityObservedElementHandlerKeys.delete(A)},{calledOnce:!0,
state:"visible"}),H.visibilityObservedElementHandlerKeys.set(A,w)))};
XL1=function(H,C,S){var w=S.action;(S=S.element)&&w&&(_.HW(H.JSC$13255_actionRouter,[w],S),H.targetMap.delete(C),H.targetedElements.delete(S),H.triggeredTargets.add(C))};
_.oaP=function(H,C){var S=H.targetMap.get(C);S||(S={},H.targetMap.set(C,S));return S};
_.iZ=function(){vaM||(vaM=new fXM);return vaM};var QCi=document.createElement("div");QCi.style.touchAction="pan-down";var zoZ=QCi.style.touchAction==="pan-down";var dwP,PTY;dwP=function(){this.hammerFn=Dpd();this.JSC$13263_screenManager=_.lJ();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.y4(83615);_.nO(this.JSC$13263_screenManager,this.ve);MD7()};
_.Cw=function(){PTY||(PTY=new dwP);return PTY};
dwP.prototype.registerTouchEvents=function(H,C,S){var w=_.tc.apply(3,arguments),A=this.hammerFn(H,{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}]]});S&&A.set({touchAction:S});this.nodeManagerMapping.set(H,A);var J=
qu7(C);w=_.Z(w);for(var c=w.next();!c.done;c=w.next()){c=c.value;if(c.includes("swipe")||c.includes("pinch")||c.includes("pan"))c.includes("swipe")?A.get("swipe").set({enable:!0,direction:J,velocity:.2}):c.includes("pinch")?A.get("pinch").set({enable:!0}):c.includes("pan")&&(A.get("pan").set({enable:!0,direction:J}),A.get("swipe").set({enable:!0,direction:J,velocity:.2}),A.get("swipe").recognizeWith("pan"));$wb(this,H,A,c)}};
var $wb=function(H,C,S,w){S.on(w,function(A){if(w.includes("pinch"))H.lastPinchTime=Date.now();else if(w.includes("swipe")&&Date.now()-H.lastPinchTime<400)return;A.pointerType!=="mouse"&&(A=w==="doubletap"?{coordinates:A.center}:w.includes("pan")?A:w.includes("swipe")?{target:A.target}:{},C.dispatchEvent(new CustomEvent(w,{bubbles:!0,composed:!0,detail:A})))})};
dwP.prototype.unregisterTouchEvents=function(H){var C=_.tc.apply(1,arguments),S=this.nodeManagerMapping.get(H);if(S){C=_.Z(C);for(var w=C.next();!w.done;w=C.next())S.off(w.value);this.nodeManagerMapping.delete(H);H.style.touchAction="unset"}};var pLb=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var Tzu=null;var kIP=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},dvD=function(){kIP.instance||(kIP.instance=new kIP);
return kIP.instance},PqW=function(H){var C=H.networkEvents;
H.networkEvents=[];return _.E("enable_network_monitoring")?C:[]};var han;han={};_.nab=F6("yt-serviceworker-metadata",{objectStores:(han.auth={addedAtVersion:1},han["resource-manifest-assets"]={addedAtVersion:2},han),shared:!0,upgrade:function(H,C){C(1)&&Uc(H,"resource-manifest-assets");C(2)&&Uc(H,"auth")},
version:2});var Emi=self.location.origin+"/";eow([/\.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\//]);eow([/purge_shell=1/]);var rjb=void 0;rjb=rjb===void 0?[]:rjb;for(var BGW=[],Dw7=_.Z(Efn),K0U=Dw7.next();!K0U.done;K0U=Dw7.next())BGW.push({key:K0U.value});for(var tO7=_.Z(rjb),L0_=tO7.next();!L0_.done;L0_=tO7.next())BGW.push(L0_.value);var gaM,gm=_.s$==null?void 0:(gaM=_.s$.performance)==null?void 0:gaM.memory,fk$=!1,$vw={},VDp={},Ux={},Rw=navigator;var Sx=function(H){this.JSC$13307_expiringStorage=new d4(H)};
Sx.prototype.set=function(H,C,S){S=S!==void 0?Date.now()+S:void 0;this.JSC$13307_expiringStorage.set(H,C,S)};
Sx.prototype.get=function(H){return this.JSC$13307_expiringStorage.get(H)};
Sx.prototype.remove=function(H){this.JSC$13307_expiringStorage.remove(H)};var K$7=_.xC(["https://www.youtube.com/",""]),tDp=_.xC(["https://studio.youtube.com/",""]),IkE="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",gmE=null,CeZ;var Uwd=_.xC(["https://www.youtube.com/iframe_api"]),sA=function(){this.playerResolver_=_.Cn();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.Q5;this.playbackDurationSeconds_=0},Ra1=function(H){var C=function(){return window.YT&&typeof window.YT.ready==="function"};
if(C())return _.N3(window.YT);var S=_.Cn(),w=_.GZ("SCRIPT");w.onload=w.onreadystatechange=function(){w.readyState&&w.readyState!="loaded"&&w.readyState!="complete"||(w.onload=_.Q5,w.onreadystatechange=_.Q5,w.onerror=_.Q5,C()?S.resolve(window.YT):S.reject(new _.X0("Failed to load the iframe player library","script.onload",w.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
w.onerror=function(A){w.onload=_.Q5;w.onreadystatechange=_.Q5;w.onerror=_.Q5;S.reject(new _.X0("Failed to load the iframe player library","script.onerror",A&&A.target&&A.target.src))};
_.JY(w,_.qH(Uwd));H.insertBefore(w,H.firstChild);return S.promise},IX1=function(H,C,S){var w,A;
_.z(function(J){switch(J.nextAddress){case 1:return H.playbackEndedCallback_=S,_.en(J,2),J.yield(Ra1(C.parentElement||null),4);case 4:w=J.yieldResult;_.xB(J,3);break;case 2:return A=_.Vx(J),A instanceof _.X0&&A.args&&A.args[0]=="script.onerror"?_.Bn(A):_.nC(A),J.return();case 3:w.ready(function(){return new w.Player(C,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:H.onPlayerReady_.bind(H),onStateChange:H.onPlayerStateChange_.bind(H),
onCueRangeExit:H.onCueRangeExit_.bind(H)}})}),_.oT(J)}})};
_.F=sA.prototype;_.F.getPlayerPromise=function(){return this.playerPromise_};
_.F.onPlayerReady_=function(H){this.playerResolver_.resolve(H.target)};
_.F.onPlayerStateChange_=function(H){if(H.data==YT.PlayerState.PLAYING){H=H.target;var C=H.getCurrentTime();H.addCueRange("playback",C,C+this.playbackDurationSeconds_)}};
_.F.onCueRangeExit_=function(H){H.data=="playback"&&(H.target.stopVideo(),this.playbackEndedCallback_())};
_.F.stopVideo=function(){this.playerPromise_.then(function(H){H.stopVideo()})};
var aXV=function(H){H.playerVars_&&H.playerPromise_.then(function(C){typeof C.cueVideoByPlayerVars!="function"?_.Bn(new _.X0("vmh: player API not ready","cueVideoByPlayerVars",typeof C.cueVideoByPlayerVars)):C.cueVideoByPlayerVars(H.playerVars_)})};
sA.prototype.playVideo=function(){var H=this;this.playerVars_&&this.playerPromise_.then(function(C){typeof C.loadVideoByPlayerVars!="function"?(C=new _.X0("vmh: player API not ready","loadVideoByPlayerVars",typeof C.loadVideoByPlayerVars),_.nC(C)):C.loadVideoByPlayerVars(H.playerVars_)})};
var xwM=function(H,C,S,w,A){C&&(S===void 0&&(S=0),w===void 0&&(w=0),H.playbackDurationSeconds_=w/1E3,H.playerVars_={adformat:"17_8",videoId:C,suggestedQuality:"hd720",startSeconds:S/1E3,player_params:A})};
sA.prototype.mute=function(){this.playerPromise_.then(function(H){H.mute()})};
sA.prototype.unMute=function(){this.playerPromise_.then(function(H){H.unMute()})};var HSV=function(H,C){var S=Re();H||(H="unknown");C||(C="unknown");H="MAIN_APP_WEB_PAGE_TYPE_"+H.toUpperCase();H in Zl_||(H="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");C="MAIN_APP_WEB_REQUEST_TYPE_"+C.toUpperCase();C in cnM||(C="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.MI(S,{mainAppWeb:{pageType:H,requestType:C,isShellLoad:_.Bh("IS_SHELL_LOAD",!1)}})},iS_={start:function(){_.MI(YS6(),{mainAppWeb:_.Ss()})},
success:function(){_.qI(YS6(),"SUCCESS")},
failure:function(){_.qI(YS6(),"FAILURE")},
cancelled:function(){_.qI(YS6(),"CANCELLED")}};var Cun,SD1,FSE;Cun=_.xC(["/sw.js"]);SD1=_.xC(["/sw.js?0"]);_.sXn=_.qH(Cun);FSE=_.qH(SD1);var jXV=function(){var H=Error.apply(this,arguments);this.message=H.message;"stack"in H&&(this.stack=H.stack)};
_.G(jXV,Error);_.wE.prototype.load=function(H){this.megabloxUrl_=_.rh("YPC_MB_URL");_.Ie(this.megabloxUrl_,(0,_.Xv)(function(){H&&H()},this))};
_.c3W=function(H,C,S,w,A,J,c,Y,M,m,W){_.cKp(M);H.load((0,_.Xv)(function(){try{var y=J?J:_.rh("HL"),N=_.rh("SESSION_INDEX");_.K9u("client",function(){VLW("59",{helpCenterPath:"/youtube",locale:y,window:window}).JSC$9988_loadChatSupport({authuser:String(N)})})}catch(b){throw sd(10,W,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),A&&A(b),_.nC(b),b;
}wvd(this,C,S,w,A,J,c,Y,M,m,W)},H))};
_.wE.prototype.openFixFlowDialog=function(H,C,S,w){this.load((0,_.Xv)(function(){try{A6b(this,_.gh("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(H).withIntegratorCallback(C).load(S,w)}catch(A){throw _.nC(A),A;}},this))};
var A6b=function(H,C,S,w){var A=C.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.E("enable_window_constrained_buy_flow_dialog")&&(A=A.usingPopupStyle(_.gh("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));w&&(A=A.usingCloseCallback(w));C.bootstrap.fromPaymentsUrl(H.megabloxUrl_);H=C.bootstrap.asMashupMode(A);S=S?S:_.rh("HL");H.usingGaiaIndex(_.rh("SESSION_INDEX")).usingLocale(S).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.E("enable_google_payments_buyflow_material2_style_web")?
H.usingStyle(":m2;pc=#444;ac=#065fd4"):H.usingStyle(":md;pc=#444;ac=#065fd4");return H},wvd=function(H,C,S,w,A,J,c,Y,M,m,W){try{var y=_.gh("payments.business.integration");
if(!y)throw new jXV("payments.business.integration is undefined");var N=y.standaloneContextAuthId.forUserId(),b=A6b(H,y,J,function(){znU(!1);Y&&Y()});
c&&b.usingServerAnalyticsEventHandler(c);var u=b.inStandaloneContext(N).buyFlow(function(O){if(O&&(!O.integratorData||O.integratorData===""||O.error))if(O.error!=null)if(String(O.error)==="-1")_.Yru(M);else{var d=String(O.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";sd(10,W,d,O.debugCode);_.js(d,M,O.debugCode);d=new _.X0("PAYMENT_ERROR_MESSAGE::"+O.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+O.internalErrorDetails);
_.nC(d)}else sd(10,W,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.js("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",M,"EMPTY_INTEGRATOR_DATA"),_.nC(Error("hg"));S&&(znU(!1),S(O))}).withEncryptedParameters(C);
m&&u.withClientParameters(fuE(_.FM$(m)));u.load(function(){sd(24,W);_.tM("ttc",void 0,"commerce_transaction");rV("commerce_transaction");w&&(w(),znU(!0))},function(O){if(O==null?0:O.debugCode)var d=O==null?void 0:O.debugCode;
else if(!O||(O==null?0:O.debugCode))d="EMPTY_LOAD_FAILURE_ERROR",_.nC(Error(d));else{d="EMPTY_LOAD_FAILURE_DEBUG_CODE";var p=new _.X0("LOAD_FAILURE:"+O.message," DEBUG_CODE:"+d);_.nC(p)}sd(10,W,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",d);_.js("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",M,d);_.nC(O);A&&A(O)})}catch(O){throw O instanceof jXV&&(sd(10,W,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),A&&A(O)),_.nC(O),O;
}};var J6U;J6U=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.J3V=function(H,C){C=C===void 0?!1:C;H=J6U.test(H)?_.Ot(H):null;!C&&window.payments||!H?(H=_.Cn(),C=H.promise,H.resolve()):C=_.TTU(H,{attributes:{"data-payments-main":"",id:"payment-lib"}});return C};var FAn;FAn=_.xC(["//www.googletagmanager.com/gtm.js?id=",""]);_.jx=function(H,C){_.Yi(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:C}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.rh("GL")}),C=_.GZ("SCRIPT"),C.async=!0,_.JY(C,_.qH(FAn,H)),C.id="gtm",H=document.getElementsByTagName("script"),H.length==0?document.head.appendChild(C):(H=H[0],H.parentNode.insertBefore(C,H)))};
_.wc=function(H){if(H=JSON.parse(H))window.dataLayer=window.dataLayer||[],window.dataLayer.push(H)};var ZSd,c67;ZSd=_.xC(["https://clients2.google.com/gr/gr_sync.js"]);_.wDD=function(){};
_.wDD.prototype.init=function(){if(c67()){var H=_.Cn();H.resolve();return H.promise}return _.TTU(_.qH(ZSd)).then(function(){if(!c67())throw Error("ig");},function(){throw Error("jg");
})};
_.A37=function(){if(!c67())return"";var H=window.google.gr;H.init({async:{schedule:"sync"},merchantId:"youtube"});H.start();H=H.finish();return H==null?"":H};
c67=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.X=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.G(_.X,PolymerFakeBaseClassWithoutHtml);_.oZ=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.G(_.oZ,PolymerFakeBaseClassWithoutHtml);var M_$=window.ShadyDOM;var UqV,LSw,ITU,aTE,HgZ,igU,AZ,Tz;UqV=_.E("enable_shadydom_free_scoped_query_methods");LSw=_.E("enable_shadydom_free_scoped_node_methods");ITU=_.E("enable_shadydom_free_scoped_readonly_properties_batch_one");aTE=_.E("enable_shadydom_free_parent_node");HgZ=_.E("enable_shadydom_free_children");igU=_.E("enable_shadydom_free_last_child");AZ=window.ShadyDOM;_.bA=AZ&&AZ.noPatch&&AZ.wrap?AZ.wrap:AZ?function(H){return AZ.patch(H)}:function(H){return H};
Tz=function(H){if(H instanceof ShadowRoot)this.host=(0,_.bA)(H.host),this.root=H;else if(H.$$){this.host=(0,_.bA)(H);var C;this.root=(C=H.root)!=null?C:this.host}else if(H.polymerController){this.host=(0,_.bA)(H);var S;this.root=(S=this.host.shadowRoot)!=null?S:this.host}else this.root=this.host=(0,_.bA)(H)};
gnZ();RnV();CIZ();SHD();xqV();var YD7={querySelector:function(H,C){C=TnD(C,Z2(H));H=_.cY(H);return Yz(H).prototype.querySelector.call(H,C)},
querySelectorAll:function(H,C){C=TnD(C,Z2(H));H=_.cY(H);return Yz(H).prototype.querySelectorAll.call(H,C)}},zAM={appendChild:function(H,C){var S=Z2(H),w=_.FJ(C);
return _.KSw(_.cY(H),S?_.MT(C,S,w):C)},
cloneNode:function(H,C){var S=_.FJ(H);H=_.cY(H);C=Yz(H).prototype.cloneNode.call(H,C);return S?qT(C,S):C},
contains:function(H,C){var S=Z2(H),w=_.FJ(C);return S!==w?!1:t_W(H,C)},
insertBefore:function(H,C,S){var w=Z2(H),A=_.FJ(C);H=_.cY(H);C=w?_.MT(C,w,A):C;return Yz(H).prototype.insertBefore.call(H,C,S)},
removeChild:function(H,C){var S=Z2(H);H=_.cY(H);C=S?qT(C,S):C;return Yz(H).prototype.removeChild.call(H,C)},
replaceChild:function(H,C,S){var w=Z2(H),A=_.FJ(C);C=w?_.MT(C,w,A):A?qT(C,A):C;S=w?qT(S,w):S;H=_.cY(H);return Yz(H).prototype.replaceChild.call(H,C,S)},
getRootNode:function(H,C){C=C===void 0?{composed:!0}:C;var S;if(((S=C)!=null?S:{}).composed)H=vnp(H);else{C=H;for(H=WS0(H);H;)C=H,H=NnV(H);H=C}return H}},jvp=ITU?{firstChild:kY7,
nextSibling:Pep,previousSibling:pGw,firstElementChild:hnZ,lastElementChild:rKu,nextElementSibling:dqU,previousElementSibling:$qZ,childNodes:BnE}:{};aTE&&(jvp.parentNode=Qb$);HgZ&&(jvp.children=Dq0);igU&&(jvp.lastChild=nnw);UqV&&svE(YD7);LSw&&svE(zAM);wBi();var AUE=function(H){this.node=H instanceof ShadowRoot?H.host:H};
JUp();Fb6();var YHD=new WeakMap;var Mu0=Symbol("Ad");var yU6=new Set(["tap","track","down","up"]),No0=_.E("pbcm_fi_query_decorators");var JZ=function(){return _.oZ.apply(this,arguments)||this};
_.G(JZ,_.oZ);_.F=JZ.prototype;_.F.getState=function(){return this.store.getState()};
_.F.dispatch=function(H){this.store.dispatch(H)};
_.F.beforeRegister=function(){if(this&&typeof this==="object"){var H;var C=!!this.useSignals||!((H=this.polymerController)==null||!H.useSignals)}else C=!1;if(!C&&this.properties)for(C=_.Z(Object.keys(this.properties)),H=C.next();!H.done;H=C.next()){var S=H.value;H=this.properties[S];if(H.selector){if(H.computed)throw Error("pg");S=["reduxPropertiesRecomputeTrigger",'"'+S+'"'].concat(_.k$(H.selectorArgs||[])).join(",");H.computed="recomputeReduxSelector("+S+")"}}};
_.F.attached=function(){var H=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){H.reduxPropertiesRecomputeTrigger++}));
_.E("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.F.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.F.recomputeReduxSelector=function(H,C){var S=_.tc.apply(2,arguments),w=this.properties[C].selector;if(!w)throw Error("ng`"+C);return w.apply(null,[this.store.getState()].concat(_.k$(S)))};
_.F.select=function(H){var C=_.tc.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return H.apply(null,[this.store.getState()].concat(_.k$(C)))};
_.JJ.Object.defineProperties(JZ.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("og");}}});
JZ.prototype.recomputeReduxSelector=JZ.prototype.recomputeReduxSelector;_.D([_.V(),_.K("design:type",Number)],JZ.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.D([_.Od()],JZ);var FP=[],uX6={},tr=function(){return Zg.apply(this,arguments)||this};
_.G(tr,Zg);tr.prototype._addPropertyEffect=function(H,C,S){if(C==="__observeEffects"&&S){var w,A=(w=S.info.method)!=null?w:S.info.methodName;if(A){var J=this[A];this[A]=function(){FP.push(A);try{J==null||J.apply(this,arguments)}finally{FP.pop()}}}}_.BW._addPropertyEffect.apply(this,[H,
C,S])};
tr.prototype._setPendingProperty=function(H,C,S){if(FP.length){var w=FP[FP.length-1],A;(A=uX6[this.is])!=null&&A.has(w)||(GJD(this.is,w),_.kI("polymerPropertyChangedInObserver",{componentName:this.is,observerName:w}))}return _.BW._setPendingProperty.apply(this,[H,C,S])};
_.D([LJp()],tr);var f0p=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),l0W,dE={};_.E("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=dE);var px=function(){return _.oZ.apply(this,arguments)||this};
_.G(px,_.oZ);px.prototype._setUnmanagedPropertyToNode=function(H,C,S){H.loggingStatus&&(H.loggingStatus.isDeclarativeExternal=!0);if(S!==H[C]||typeof S==="object")H[C]=S;H.is&&H.polymerController&&H.polymerController!==H&&PY(H.is,C,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");H.loggingStatus&&(H.loggingStatus.isDeclarativeExternal=!1)};
_.D([_.Od()],px);vd6()&&(Rq.prototype._setUnmanagedPropertyToNode=(new px)._setUnmanagedPropertyToNode);_.BoU={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(H){},set polymerController(H){}}]};var Kx=function(){var H=Zg.apply(this,arguments)||this;H.json=function(){};
return H};
_.G(Kx,Zg);Kx.prototype.equals=function(H,C){return H===C};
Kx.prototype.isEmpty=function(H){var C;(C=!H)||(C=_.Dw(H)&&H.length===0);return C};
_.D([LJp()],Kx);var MSW=function(H){H=DL6(H);jB.call(this,H)};
_.G(MSW,jB);MSW.prototype.addProvider=function(H){H=H.key?H:DL6([H])[0];var C=this.keyIdToIndex.get(H.key.id);if(C){if(QvV(H,this.providers[C]))throw Error("qg`"+H.key.displayName);}else jB.prototype.addProvider.call(this,H)};
var qD1=new MSW([]);var T3d=!1;var hR7={};T3d||(kJD(),T3d=!0);
hR7.InjectBehavior={initializeInjection:function(){var H=this.provide;try{if((H=H!=null?H:[])&&H.length>0)for(var C=DL6(H),S=_.Z(C),w=S.next();!w.done;w=S.next())qD1.addProvider(w.value);var A=new Set;dlZ(this.behaviors||[],A);C={};for(var J=_.Z(A),c=J.next();!c.done;c=J.next()){var Y=c.value;Y.inject&&Object.assign(C,Y.inject)}this.inject&&Object.assign(C,this.inject);for(var M=_.Z(Object.keys(C)),m=M.next();!m.done;m=M.next()){var W=m.value,y=C[W];try{this[W]=qD1.resolve(y)}catch(N){throw N;}}}catch(N){throw Error(N.message);
}}};var rUi;var DlZ=/\bclass\b/.test(function(){}.toString()),Lb$=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var m6n=function(H){this.wasDefined=!0;Array.isArray(H)||H instanceof Array?(this.JSC$13436_getImpl=H[0],this.JSC$13436_setImpl=H[1]):this.JSC$13436_getImpl=H};
_.F=m6n.prototype;_.F.getWithPath=function(H){return RRu(this.JSC$13436_getImpl(),H)};
_.F.setWithPath=function(H,C){var S=this;if(H.length)throw Error("rg");if(!this.JSC$13436_setImpl)throw Error("sg");eL(function(){S.JSC$13436_setImpl(C)})};
_.F.notifyPath=function(){throw Error("tg");};
_.F.notifySplices=function(){throw Error("ug");};
_.F.getChangeRecordSignal=function(H,C){var S=this;if(H.length)throw Error("vg");return function(){var w=S.getWithPath(H);return{path:C!=null?C:"",base:w,value:w}}};
_.F.getSplicesSignal=function(){throw Error("wg");};
_.F.getPathMutationSignal=function(){throw Error("xg");};
_.F.pop=function(){throw Error("yg");};
_.F.push=function(){throw Error("zg");};
_.F.splice=function(){throw Error("Ag");};
_.F.unshift=function(){throw Error("Bg");};var ZM=function(H){var C=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(H)||H instanceof Array?(this.JSC$13441_getImpl=H[0],this.JSC$13441_setImpl=H[1]):this.JSC$13441_getImpl=H;this.wasDefined=!1;TR(function(){C.wasDefined=C.JSC$13441_getImpl()!==void 0})};
ZM.prototype.getWithPath=function(H){return RRu(this.JSC$13441_getImpl(),H)};
ZM.prototype.setWithPath=function(H,C){var S=this;if(H[H.length-1]!=="*"&&H[H.length-1]!=="splices"){var w=TR(function(){return S.getWithPath([])});
if(H.length===0){if(!this.JSC$13441_setImpl)throw Error("Cg");if(w===C)return;this.wasDefined||(this.wasDefined=C!==void 0);eL(function(){S.JSC$13441_setImpl(C)})}else{for(var A=0;A<H.length-1;A++){if(!w)return;
w=w[H[A]]}A=H[H.length-1];w&&(w[A]=C);this.wasDefined||(this.wasDefined=H.length>1||C!==void 0)}WAd(this,H,{pathComponents:H,value:C})}};
ZM.prototype.notifyPath=function(H,C){H.length===0?C&&this.setWithPath(H,C.value):WAd(this,H,{pathComponents:H,value:C==null?void 0:C.value,fallbackWhenUndefined:C==null?void 0:C.value})};
var WAd=function(H,C,S,w){if(H.setMutationSignal){var A=++H.mutationIndex,J=[H.observedPath],c=H.observedPath,Y;C.length===0&&(Y=c);for(var M=0;M<C.length;M++){var m=c.subPaths[C[M]];if(!m)break;J.push(m);c=m;M===C.length-1&&(Y=m)}for(C=!1;J.length;)c=J.shift(),c.data={index:A,mutation:S,spliceMutationIndex:w},C||(C=c===Y),C&&J.push.apply(J,_.k$(Object.values(c.subPaths)));eL(function(){H.setMutationSignal(A)})}};
ZM.prototype.notifySplices=function(H,C){var S=this,w=TR(function(){return S.getWithPath(H)}),A=[].concat(_.k$(H),["splices"]);
WAd(this,A,{pathComponents:A,value:{indexSplices:C}});if(w==null?0:w.length)C=this.mutationIndex,A=[].concat(_.k$(H),["length"]),WAd(this,A,{pathComponents:A,value:w.length},C)};
var y67=function(H,C,S,w,A,J){H.notifySplices(S,[{index:w,addedCount:A,removed:J,object:C,type:"splice"}])},N3V=function(H,C){H=H.observedPath;
for(var S=0;S<C.length;S++){var w=C[S],A=H.subPaths[w];A||(A={pathComponents:C.slice(0,S+1),subPaths:{}},H.subPaths[w]=A);H=A}},EpW=function(H,C,S){N3V(H,C);
if(!H.getMutationSignal){var w=_.Z(_.mB(H.mutationIndex,void 0,"sNBMCd"));H.getMutationSignal=w.next().value;H.setMutationSignal=w.next().value}var A=H.getMutationSignal;return _.EF(function(){A();return S(bS1(H,C))},void 0,"zvsXEd")};
ZM.prototype.getChangeRecordSignal=function(H,C){var S=this,w=this.mutationIndex,A;return EpW(this,H,function(J){if(J&&J.index>w){var c=J.mutation;w=J.index;A=void 0}J=TR(function(){return S.getWithPath(H)});
if(c){var Y=c.pathComponents[c.pathComponents.length-1],M=[].concat(_.k$(c.pathComponents));if(Y==="splices"||Y==="length")return{base:J,path:(C?[C].concat(_.k$(M)):M).join("."),value:c.value};var m=H.length>M.length?H:M,W;return{base:J!=null?J:c.fallbackWhenUndefined,path:(C?[C].concat(_.k$(m)):m).join("."),value:(W=TR(function(){return S.getWithPath(m)}))!=null?W:c.fallbackWhenUndefined}}A||(A={base:J,
path:(C?[C].concat(_.k$(H)):H).join("."),value:J});return A})};
ZM.prototype.getSplicesSignal=function(H){var C=this.mutationIndex,S;return EpW(this,H,function(w){if(w&&w.index>C&&w.spliceMutationIndex!==C){var A=w.mutation;C=w.index;S=void 0}return A&&A.pathComponents[A.pathComponents.length-1]==="splices"?S=w=A.value:S})};
ZM.prototype.getPathMutationSignal=function(H){var C=this;N3V(this,H);if(!this.getMutationSignal){var S=_.Z(_.mB(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=S.next().value;this.setMutationSignal=S.next().value}var w=this.getMutationSignal,A=this.mutationIndex,J;return _.EF(function(){w();var c=bS1(C,H);if(c&&c.index>A&&c.mutation&&I0Z(c.mutation.pathComponents,H)){var Y=c.mutation;A=c.index}if(!J||A!==J.index){var M,m;c=(m=TR(function(){return C.getWithPath(H)}))!=null?m:(M=Y)==null?
void 0:M.fallbackWhenUndefined;
J={index:A,value:c}}return J},void 0,"RXYC9b")};
var bS1=function(H,C){H=H.observedPath;C=_.Z(C);for(var S=C.next();!S.done;S=C.next())H=H.subPaths[S.value];return H.data};
ZM.prototype.pop=function(H){var C=this,S=TR(function(){return C.getWithPath(H)});
if(!(S instanceof Array))throw Error("Dg");var w=S.length>0,A=S.pop();w&&y67(this,S,H,S.length,0,[A]);return A};
ZM.prototype.push=function(H){var C=_.tc.apply(1,arguments),S=this,w=TR(function(){return S.getWithPath(H)});
if(!(w instanceof Array))throw Error("Eg");var A=w.length,J=w.push.apply(w,_.k$(C));C.length&&y67(this,w,H,A,C.length,[]);return J};
ZM.prototype.splice=function(H,C,S){var w=_.tc.apply(3,arguments),A=this,J=TR(function(){return A.getWithPath(H)});
if(!(J instanceof Array))throw Error("Fg");C<0?C=J.length-Math.floor(-C):C&&(C=Math.floor(C));var c=J.splice.apply(J,[C,S].concat(_.k$(w)));(w.length||c.length)&&y67(this,J,H,C,w.length,c);return c};
ZM.prototype.unshift=function(H){var C=_.tc.apply(1,arguments),S=this,w=TR(function(){return S.getWithPath(H)});
if(!(w instanceof Array))throw Error("Gg");var A=w.unshift.apply(w,_.k$(C));C.length&&y67(this,w,H,0,C.length,[]);return A};var cS=function(H,C,S){this.model=H;this.unknownSignalResolver=C;this.options=S;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];C=_.Z(wou());H=C.next().value;C=C.next().value;this.owner=H;this.disposeImpl=C};
cS.prototype.dispose=function(){if(!this.isDisposed){for(var H=_.Z(this.childSignalProxies),C=H.next();!C.done;C=H.next())C.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var eA7=function(H,C){H=_.jL(H.owner);try{C()}finally{_.jL(H)}};
cS.prototype.effect=function(H){eA7(this,function(){_.k1(H)})};
var uhd=function(H,C){H.options!=null||(H.options={});var S;(S=H.options).immutableProps!=null||(S.immutableProps=new Set);H.options.immutableProps.add(C)},OEu=function(H,C){C=""+C;
GgW(H,C);var S,w;if((S=H.options)==null?0:(w=S.immutableProps)==null?0:w.has(C))return!0;var A;if((A=H.model.__signalCache)==null?0:A.has(C))S=H.model.__signalCache.get(C),Array.isArray(S)&&uhd(H,C);var J,c,Y;return(Y=(J=H.options)==null?void 0:(c=J.immutableProps)==null?void 0:c.has(C))!=null?Y:!1},frV=function(H,C){var S;
H.unknownSignalResolver&&(S=H.unknownSignalResolver(C));var w,A;((w=H.options)==null?0:(A=w.immutableProps)==null?0:A.has(C))?S!=null||(S=new m6n(_.mB(H.model[C],void 0,"By5iP"))):S!=null||(S=new ZM(_.mB(H.model[C],void 0,"CXghNc")));var J=H.model.hostElement;Object.defineProperty(H.model,C,{get:function(){odZ(J,C);return S.getWithPath([])},
set:function(c){$z(J,C);H.setWithPath([C],c)},
configurable:!0});return S},GgW=function(H,C){var S,w,A;
((S=H.model.__signalCache)==null||!S.has(C))&&((w=H.options)==null?0:(A=w.externalSignalProps)==null?0:A.has(C))&&H.model[C]},RZ=function(H,C){C=""+C;
var S=H.signalCache[C];if(S!==void 0)return S;S=!1;GgW(H,C);var w;if((w=H.model.__signalCache)==null?0:w.has(C))if(S=H.model.__signalCache.get(C),Array.isArray(S))S=!0,uhd(H,C);else return H.signalCache[C]=H.model.__signalCache.get(C).signal,H.signalCache[C];var A,J;w=(J=(A=H.options)==null?void 0:A.reactivityMode)!=null?J:0;var c,Y;if(!((c=H.options)==null?0:(Y=c.reactiveProps)==null?0:Y.has(C))&&!S&&w===1)throw Error("Hg`"+C);A=S?vpb(H,C):frV(H,C);return H.signalCache[C]=A},vpb=function(H,C){var S=
Object.getOwnPropertyDescriptor(H.model.constructor.prototype,C),w=function(){return H.model[C]};
return new m6n(S&&S.get&&!S.set?w:[w,function(A){H.model[C]=A}])};
cS.prototype.getWithPath=function(H){var C=_.Z(H);H=C.next().value;C=Cs(C);odZ(this.model.hostElement,""+H);return RZ(this,H).getWithPath(C)};
cS.prototype.setWithPath=function(H,C){if(H.length){$z(this.model.hostElement,H.join("."));var S=_.Z(H);H=S.next().value;S=Cs(S);RZ(this,H).setWithPath(S,C)}};
cS.prototype.getPathMutationSignal=function(H){var C=_.Z(H);H=C.next().value;C=Cs(C);return RZ(this,H).getPathMutationSignal(C)};
cS.prototype.notifyPath=function(H,C){var S=_.Z(H);H=S.next().value;S=Cs(S);RZ(this,H).notifyPath(S,C)};
var lrM=function(H,C){if(C.type==="literal")return function(){return{rootWasDefined:!0,value:C.value}};
var S=gE(C.path),w=_.Z(S),A=w.next().value;w=Cs(w);var J,c;if(C.type==="path"&&(S.length===1||((J=H.options)==null?0:(c=J.immutableProps)==null?0:c.has(A))))return function(){var y=H.getWithPath(S.slice(0,1));y=RRu(y,S.slice(1));return{rootWasDefined:RZ(H,S[0]).wasDefined,value:y}};
var Y=RZ(H,A);if(C.type==="path"){var M=Y.getPathMutationSignal(w);return function(){var y,N=(y=M())==null?void 0:y.value;return{rootWasDefined:Y.wasDefined,value:N}}}if(C.type==="splices"){var m=Y.getSplicesSignal(w);
return function(){var y=m();return{rootWasDefined:Y.wasDefined,value:y}}}var W=Y.getChangeRecordSignal(w,""+A);
return function(){var y=W();return{rootWasDefined:Y.wasDefined,value:y}}},SZ$=function(H,C,S){var w=S.map(function(Y){return lrM(H,Y)}),A=S.length===0,J=[],c=S.length!==1||S[0].type!=="path"?!1:!0;
H.effect(function(){for(var Y=w.length,M=[],m=!!J.length,W=0;W<Y;W++){var y=w[W](),N=y.rootWasDefined;y=y.value;A||(A=N);M[W]=y;c&&(M[W+Y]=m?J[W]:M[W],J[W]=y)}A&&ha(H.owner,function(){return void C.apply(null,_.k$(M))})})},a0$=function(H,C,S,w,A){var J=RZ(H,C);
A!==void 0&&J.setWithPath([],A);SZ$(H,function(){var c=_.tc.apply(0,arguments);$z(H.model.hostElement,C,!0);J.setWithPath([],S.apply(null,_.k$(c)))},w)};
cS.prototype.arrayPush=function(H){var C=_.tc.apply(1,arguments),S=_.Z(H),w=S.next().value;S=Cs(S);w=RZ(this,w);return w.push.apply(w,[S].concat(_.k$(C)))};
cS.prototype.arraySplice=function(H,C,S){var w=_.tc.apply(3,arguments),A=_.Z(H),J=A.next().value;A=Cs(A);J=RZ(this,J);return J.splice.apply(J,[A,C,S].concat(_.k$(w)))};
cS.prototype.arrayUnshift=function(H){var C=_.tc.apply(1,arguments),S=_.Z(H),w=S.next().value;S=Cs(S);w=RZ(this,w);return w.unshift.apply(w,[S].concat(_.k$(C)))};
cS.prototype.notifySplices=function(H,C){var S=_.Z(H);H=S.next().value;S=Cs(S);RZ(this,H).notifySplices(S,C)};var VSd=!0,op7=!1,XLE=!1,OSn=!1,XvW=0;OSn=!1;XvW=0;VSd=!0;op7=XLE=!1;var YZw=/([^\s]+?)\(([\s\S]*)\)/,Fzu=/\.([^.]+)$/,MVW=/\\,/g,A07=/&comma;/g,J00=/\\(.)/g,zHV=[],ZEw={"*":"wildcard",splices:"splices"};var uzi=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"),Ntp=/[A-Z]/,QX1=["class","hidden","id","on-dom-change"],fU6=new Set([].concat(_.k$(QX1),
["if","notify-dom-change","restamp"])),vyp=new Set([].concat(_.k$(QX1),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),lUu=new Set(["restamp"]);var lrE=new Set(["className","id"]);var QjZ=Symbol(),ny$=window;var Uku=window;var CT$=0,aUp=0,IZ=[],i1V=0,IU$=!1,H10=document.createTextNode("");(new window.MutationObserver(xkU)).observe(H10,{characterData:!0});var xz=new Map,aZ=0,d6U=function(H){this.mappedHandleId=H},sCW=function(H,C,S,w){this.mappedHandleId=H;
var A=this;this.mappedHandleId=H;this.callback=C;this.waitTime=S;this.schedulerPriority=w;this.handleId=_.rT.addJob(function(){A.callback();xz.delete(A.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.G(sCW,d6U);sCW.prototype.cancel=function(){_.rT.cancelJob(this.handleId);xz.delete(this.mappedHandleId)};
var jCW=function(H,C){this.mappedHandleId=H;var S=this;this.mappedHandleId=H;this.callback=C;this.handleId=SRU(function(){S.callback();xz.delete(S.mappedHandleId)})};
_.G(jCW,d6U);jCW.prototype.cancel=function(){var H=this.handleId-aUp;H<0||IZ.length<=H||(IZ[H]=null);xz.delete(this.mappedHandleId)};var F0p=function(){};
F0p.prototype.cancel=function(){this.jobHandle!==void 0&&(wLZ(this.jobHandle),this.jobHandle=void 0)};
F0p.prototype.run=function(H,C,S){var w=this;this.cancel();this.callback=H;this.jobHandle=_.HI(function(){H();w.callback=void 0},C,S)};
F0p.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var Ajp=new WeakMap;var PuV=TT(function(H){for(var C=H,S=0;S<3;S++)C=Object.getPrototypeOf(C);delete C.prototype.connectedCallback;var w=function(){return H.apply(this,arguments)||this};
_.G(w,H);w.prototype._attachDom=function(A){if(!A)return null;var J=(0,_.bA)(this.hostElement);J.attachShadow({mode:"open",shadyUpgradeFragment:A});J.shadowRoot.appendChild(A);return J.shadowRoot};
w.prototype._takeAttributes=function(){for(var A=this.hostElement.attributes,J=0;J<A.length;J++){var c=A[J],Y=void 0,M=void 0;(M=(Y=this).__attributeReaction)==null||M.call(Y,c.name,null,c.value)}};
w.prototype._readyClients=function(){H.prototype._readyClients.call(this);this.root=this};
w.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);H.prototype.connectedCallback.call(this)};
_.JJ.Object.defineProperties(w,{template:{configurable:!0,enumerable:!0,get:function(){return w.prototype._template}}});
return w}),$6d=TT(function(H){var C=function(){return H.apply(this,arguments)||this};
_.G(C,H);C.prototype.created=function(){if(this.__notifyEffects)for(var S=_.Z(Object.values(this.__notifyEffects)),w=S.next();!w.done;w=S.next()){w=_.Z(w.value);for(var A=w.next();!A.done;A=w.next())A.value.fn=zaV}if(this.__reflectEffects)for(S=_.Z(Object.values(this.__reflectEffects)),w=S.next();!w.done;w=S.next())for(w=_.Z(w.value),A=w.next();!A.done;A=w.next())A.value.fn=MOD};
C.prototype._addEventListenerToNode=function(S,w,A){S=C7(S);nm(S,w,A)||H.prototype._addEventListenerToNode.call(this,S,w,A)};
C.prototype._removeEventListenerFromNode=function(S,w,A){S=C7(S);rd(S,w,A)||H.prototype._removeEventListenerFromNode.call(this,S,w,A)};
C.prototype._propertiesChanged=function(S,w,A){if(this.__dataToNotify&&this.__notifyEffects)for(var J=_.Z(Object.keys(this.__dataToNotify)),c=J.next();!c.done;c=J.next()){c=c.value;var Y=YR$(c);this.__notifyEffects[Y]||delete this.__dataToNotify[c]}else this.__dataToNotify=null;H.prototype._propertiesChanged.call(this,S,w,A)};
C.prototype.fire=function(S,w,A){w=w===void 0?{}:w;var J;return _.M3(C7((J=A==null?void 0:A.node)!=null?J:this),S,w,A)};
C.prototype._ensureAttribute=function(S,w){var A=C7(this);A.hasAttribute(S)||Ud(A,w,S)};
C.prototype.isLightDescendant=function(S){var w=C7(this);return C7(w)!==S&&_.mY(w).contains(S)&&_.mY(w).getRootNode()===_.mY(S).getRootNode()};
return C});
_.Ba.ready=function(){var H;((H=this.hostElement)!=null?H:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var C;((C=this.hostElement)!=null?C:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.Ix._subscribeIronResize=function(H){var C;((C=H.hostElement)!=null?C:H).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.Ix._unsubscribeIronResize=function(H){var C;((C=H.hostElement)!=null?C:H).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var mwu=[Array,Boolean,Date,Number,Object,String],s4=function(H,C,S,w){this.polySiInfo=H;this.polySiParams=C;this.polySiContext=S;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;w||this instanceof HTMLElement&&(w=this);if(!w)throw Error("Og");this.allowedProps=C.allowedProps;this.hostElement=w;this.is=H.is;this.upgradeDisabled=!!C.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");H=new Set(C.reactiveSchemas.filter(function(A){return A.type!==
"observe"}).map(function(A){return A.propertyKey}));
this.signalProxy=new cS(this,void 0,{reactiveProps:H,reactivityMode:C.reactivityMode});this.__dataHasAccessor={};C=_.Z(C.reactiveSchemas);for(H=C.next();!H.done;H=C.next())H=H.value,H.type==="signal"&&(this.__dataHasAccessor[H.propertyKey]=!0);this.upgradeDisabled||pvi(this)};
s4.prototype.getExtraMethodsToForward=function(){return[]};
var pvi=function(H){H.polySiContext.didRegister||(H.registered(),H.polySiContext.didRegister=!0);H.polySiContext.finalizedTemplate||(H.polySiContext.finalizedTemplate={},H.polySiParams.templateGetter&&(H.polySiContext.finalizedTemplate.processedTemplate=RHV(H.polySiParams.templateGetter,H.polySiParams.is)));kgd(H);var C=H.hostElement;C.loggingStatus!=null||(C.loggingStatus={});C.loggingStatus.isInitializing=!0;TR(function(){return void H.created()});
C.loggingStatus.isInitializing=!1;H.isPolySiElementConnected&&hAi(H)},hAi=function(H){H.didCallReady||(TR(function(){return void H.ready()}),H.didCallReady=!0);
H.isAttached=!0;H.attached()};
_.F=s4.prototype;_.F.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||hAi(this)};
_.F.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.F.attributeChangedCallback=function(H,C,S){if(this.upgradeDisabled)H==="disable-upgrade"&&S===null&&(this.upgradeDisabled=!1,pvi(this));else if(C!==S){var w=_.ls(H),A=this.polySiContext.typesForSignals[w];if(A&&(!this.reflecting||_.E("polysi_attribute_changed_serializing_killswitch"))){switch(A){case Object:try{var J=JSON.parse(S)}catch(Y){J=S}break;case Array:try{J=JSON.parse(S)}catch(Y){J=null}break;case Date:J=isNaN(S)?String(S):Number(S);J=new Date(J);break;case Boolean:J=S!==null;break;case Number:J=
Number(S);break;default:J=S}this[w]=J}w=_.Z(this.polySiParams.behaviors);for(A=w.next();!A.done;A=w.next())J=void 0,(J=A.value.attributeChanged)==null||J.call(this,H,C,S);var c;(c=this.attributeChanged)==null||c.call(this,H,C,S)}};
_.F.attributeChangedCallbackWrapper=function(H,C,S){this.attributeChangedCallback(H,C,S)};
_.F.setPropertiesFromInitialAttributeValues=function(){for(var H=0;H<this.hostElement.attributes.length;H++){var C=this.hostElement.attributes[H];(C.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(C.name))&&this.attributeChangedCallback(C.name,null,C.value)}};
_.F.created=function(){this.provide=this.polySiParams.provide;var H;(H=this.initializeInjection)==null||H.call(this);H=_.Z(this.polySiParams.reactiveSchemas);for(var C=H.next();!C.done;C=H.next())C=C.value,C.type==="signal"&&(this.mutablePropNames.add(C.propertyKey),RZ(this.signalProxy,C.propertyKey));TGW(this,this.polySiInfo,this.polySiParams.behaviors);H=_.Z(this.polySiParams.reactiveSchemas);for(C=H.next();!C.done;C=H.next())C=C.value,C.type==="signal"&&C.value!==void 0&&(this.signalProxy.model[C.propertyKey]=
typeof C.value==="function"?C.value.call(this):C.value);if(this.polySiParams.signalProperties)for(H=_.Z(this.polySiParams.signalProperties),C=H.next();!C.done;C=H.next()){C=C.value;var S=void 0;((S=this.__signalCache)==null?0:S.has(C))||(this.signalProxy.model[C]=void 0)}OSn||npM(this);qRu(this);H=_.Z(this.polySiParams.behaviors);for(C=H.next();!C.done;C=H.next())S=void 0,(S=C.value.created)==null||S.call(this);var w;(w=this.polySiInfo.created)==null||w.call(this)};
_.F.registered=function(){var H=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var C=Object.getPrototypeOf(this);C.addReactiveSchema=function(Y){H.polySiParams.reactiveSchemas.push(Y)};
for(var S=_.Z(this.polySiParams.behaviors),w=S.next();!w.done;w=S.next()){var A=void 0;(A=w.value.beforeRegister)==null||A.call(C)}var J;(J=this.polySiInfo.beforeRegister)==null||J.call(C);C.addReactiveSchema=yj7;S=_.Z(this.polySiParams.behaviors);for(w=S.next();!w.done;w=S.next())A=void 0,(A=w.value.registered)==null||A.call(C);var c;(c=this.polySiInfo.registered)==null||c.call(C)};
_.F.ready=function(){var H;(H=this.beforeReady)==null||H.call(this);OSn&&npM(this);var C;if(H=(C=this.polySiContext.finalizedTemplate)==null?void 0:C.processedTemplate){H=gyw(H.template,H.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:H.hasInsertionPoint,thisCtx:this});C=H.nodesById;H=H.root;var S=this.hostElement;var w=w===void 0?!1:w;S=(0,_.bA)(S);if(!S.attachShadow)throw Error("Gd");if(!S.shadowRoot||w)S.attachShadow({mode:"open",shadyUpgradeFragment:H}),S.shadowRoot.appendChild(H);
this.root=S.shadowRoot;this.$=C}r6n(this);w=_.Z(this.polySiParams.behaviors);for(C=w.next();!C.done;C=w.next())H=void 0,(H=C.value.ready)==null||H.call(this);var A;(A=this.polySiInfo.ready)==null||A.call(this)};
_.F.attached=function(){for(var H=_.Z(this.polySiParams.behaviors),C=H.next();!C.done;C=H.next()){var S=void 0;(S=C.value.attached)==null||S.call(this)}var w;(w=this.polySiInfo.attached)==null||w.call(this)};
_.F.detached=function(){for(var H=_.Z(this.polySiParams.behaviors),C=H.next();!C.done;C=H.next()){var S=void 0;(S=C.value.detached)==null||S.call(this)}var w;(w=this.polySiInfo.detached)==null||w.call(this)};
var kgd=function(H){for(var C=_.Z(H.polySiParams.behaviors),S=C.next();!S.done;S=C.next())if(S=S.value,S.listeners)for(var w in S.listeners)LzD(H,H.hostElement,w,S.listeners[w]);if(H.polySiInfo.listeners)for(var A in H.polySiInfo.listeners)LzD(H,H.hostElement,A,H.polySiInfo.listeners[A])},LzD=function(H,C,S,w,A){H=Ul0(H,w,A);
nm(C,S,H)||C.addEventListener(S,H);return H},npM=function(H){for(var C=_.Z(H.polySiParams.reactiveSchemas),S=C.next();!S.done;S=C.next())S=S.value,S.type==="compute"||S.type==="computeWithMethod"?xlp(H.signalProxy,S,H):S.type==="redux"?CjE(H.signalProxy,S,H.store):S.type==="signal"&&S.readOnly&&iE0(H.signalProxy,S)},r6n=function(H){for(var C=_.Z(H.polySiParams.reactiveSchemas),S=C.next(),w={};!S.done;w={schema$jscomp$12:void 0},S=C.next())w.schema$jscomp$12=S.value,w.schema$jscomp$12.type==="notify"?
sjE(H.signalProxy,w.schema$jscomp$12,H.hostElement):w.schema$jscomp$12.type==="observe"?jji(H.signalProxy,w.schema$jscomp$12,H):w.schema$jscomp$12.type==="reflect"&&H.signalProxy.effect(function(J){return function(){var c=H.signalProxy.getWithPath([J.schema$jscomp$12.propertyKey]);
H.reflecting=!0;TtV(H.hostElement,J.schema$jscomp$12.propertyKey,c,!0);H.reflecting=!1}}(w));
if(H.reflectedAttributes)for(C=_.Z(Object.entries(H.reflectedAttributes)),w=C.next(),S={};!w.done;S={key$jscomp$936:void 0,value$jscomp$9832:void 0},w=C.next()){var A=_.Z(w.value);w=A.next().value;A=A.next().value;S.key$jscomp$936=w;S.value$jscomp$9832=A;H.signalProxy.effect(function(J){return function(){H.reflecting=!0;TtV(H.hostElement,J.key$jscomp$936,(0,J.value$jscomp$9832)(),!0);H.reflecting=!1}}(S))}};
_.F=s4.prototype;_.F._setPendingProperty=function(H,C){this.set(H,C);return!1};
_.F._enableProperties=function(){};
_.F._setPendingPropertyOrPath=function(H,C){this.notifyPath(H,C);return!1};
_.F._addPropertyEffect=function(){};
_.F._stampTemplate=function(){throw Error("Pg");};
_.F.fire=function(H,C,S){C=C===void 0?{}:C;S=S===void 0?{}:S;var w,A,J={bubbles:(w=S.bubbles)!=null?w:!0,cancelable:!!S.cancelable,composed:(A=S.composed)!=null?A:!0},c;return _.M3(NG$((c=S.node)!=null?c:this.hostElement),H,C,J)};
_.F.get=function(H,C){var S=gE(H);return C?RRu(C,S):H==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(S)};
_.F.linkPaths=function(){};
_.F.listen=function(H,C,S){H=NG$(H);this.boundListeners!=null||(this.boundListeners=new WeakMap);var w=this.boundListeners.get(H);w||(w={},this.boundListeners.set(H,w));var A=C+S;w[A]||(w[A]=LzD(this,H,C,S))};
_.F.notifyPath=function(H,C){this.signalProxy.notifyPath(gE(H),arguments.length===2?{value:C}:void 0)};
_.F.canNotifyPath=function(H){return this.mutablePropNames.has(H)&&!OEu(this.signalProxy,H)};
_.F.notifySplices=function(H,C){this.signalProxy.notifySplices(gE(H),C)};
_.F.pop=function(H){var C=this.signalProxy;H=gE(H);var S=_.Z(H);H=S.next().value;S=Cs(S);return RZ(C,H).pop(S)};
_.F.push=function(H){var C=_.tc.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[gE(H)].concat(_.k$(C)))};
_.F.set=function(H,C,S){if(S)throw Error("Qg");H==="hidden"?this.hostElement.hidden=!!C:this.signalProxy.setWithPath(gE(H),C)};
_.F.setProperties=function(H){H=_.Z(Object.entries(H));for(var C=H.next();!C.done;C=H.next()){var S=_.Z(C.value);C=S.next().value;S=S.next().value;this[C]=S}};
_.F.splice=function(H,C,S){var w=_.tc.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[gE(H),C,S].concat(_.k$(w)))};
_.F.unlinkPaths=function(){};
_.F.unlisten=function(H,C,S){H=NG$(H);if(this.boundListeners){var w=this.boundListeners.get(H);if(w){S=C+S;var A=w[S];A&&(rd(H,C,A)||H.removeEventListener(C,A),delete w[S])}}};
_.F.unshift=function(H){var C=_.tc.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[gE(H)].concat(_.k$(C)))};
_.JJ.Object.defineProperties(s4.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 O1V=[Array,Boolean,Date,Number,Object,String];var dwU=!1;var Y4=function(){var H=HTMLElement.apply(this,arguments)||this;H.restamp=!1;H.notifyDomChange=!1;H.JSC$13549_didCallConnected=!1;H.JSC$13549_renderDebouncer=null;H.disableTemplateUpdateSignalImpl=jU()?void 0:_.mB(!1,void 0,"Ofhkwb");var C;H.getDisableTemplateUpdate=(C=H.disableTemplateUpdateSignalImpl)==null?void 0:C[0];var S;H.setDisableTemplateUpdate=(S=H.disableTemplateUpdateSignalImpl)==null?void 0:S[1];return H};
_.G(Y4,HTMLElement);var B3Y=function(H){H.conditionSignalImpl!=null||(H.conditionSignalImpl=new ZM(_.mB(!1,void 0,"gE52Fb")));return H.conditionSignalImpl};
_.F=Y4.prototype;_.F.showHideChildren=function(H){D6Y(this,H,this.if)};
_.F.attributeChangedCallback=function(H,C,S){if(this.JSC$13549_didCallConnected)throw Error("Ug`"+H);H==="notify-dom-change"?this.notifyDomChange=S!==null:H==="restamp"&&(this.restamp=S!==null)};
_.F.debounceRender=function(){this.JSC$13549_renderDebouncer=_.vW(this.JSC$13549_renderDebouncer,tP,this.JSC$13549_renderImpl.bind(this));_.lk(this.JSC$13549_renderDebouncer)};
_.F.disconnectedCallback=function(){var H=(0,_.bA)(this).parentNode;(!H||H.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in H&&!H.host)&&KAi(this)};
_.F.connectedCallback=function(){var H=this;this.JSC$13549_didCallConnected=!0;VSd?PTi():this.style.display="none";this.parentSignalProxy.isDisposed&&!_.E("ps_dom_if_check_disposed_in_connected_killswitch")||this.parentSignalProxy.effect(function(){B3Y(H).getWithPath([]);H.debounceRender()})};
_.F.render=function(){_.XL()};
_.F.JSC$13549_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var H=this.if,C=!1;if(H){this.hasInstance()||(tSM(this),C=!0);a:{var S=(0,_.bA)(this).parentNode;if(this.hasInstance()){var w=this.instance.children;if((w==null?0:w.length)&&(0,_.bA)(this).previousSibling!==w[w.length-1])for(var A=0;A<w.length;A++)(0,_.bA)(S).insertBefore(w[A],this)}else{if(!S){S=!1;break a}LA7(this,S)}S=!0}if(!S)return}else this.restamp&&KAi(this);D6Y(this,!1,H);H&&!C&&tSM(this);op7&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.F.hasInstance=function(){return!!this.instance};
var LA7=function(H,C){var S=H.parentSignalProxy;if(jU()){var w=_.Z(_.mB(!0,void 0,"dkzufd"));var A=w.next().value;w=w.next().value;S=H.parentSignalProxy}else{var J;var c=new cS((J=gpn(H))!=null?J:{},function(M){var m=RZ(H.parentSignalProxy,M).getChangeRecordSignal([]);M=_.mB(void 0,void 0,"iG8Uwe");var W=new ZM(M);c.effect(function(){if(H.getDisableTemplateUpdate&&!H.getDisableTemplateUpdate()){var y=m();W.notifyPath(gE(y.path),{value:y.value})}});
return W});
H.parentSignalProxy.childSignalProxies.push(c);var Y=S=c}S=gyw(H.templateInfo,H.templateInfo.nodeInfoList,S,{eventListenerHost:H.eventListenerHost,hasInsertionPoint:H.templateInfo.hasInsertionPoint,thisCtx:H.eventListenerHost,enabledSignal:jU()?A:void 0,getModel:function(){return gpn(H)}}).root;
H.instance={root:S,children:[],hidden:!1,signalProxy:Y,getTemplateUpdatesEnabled:A,setTemplateUpdatesEnabled:w};Y=_.Z(S.childNodes);for(A=Y.next();!A.done;A=Y.next())H.instance.children.push(A.value);(0,_.bA)(C).insertBefore(H.instance.root,H)},gpn=function(H){if((H=H.parentSignalProxy.model)&&!H.hostElement){var C={},S;
for(S in H)H.hasOwnProperty(S)&&(C[S]=H[S]);return C}},KAi=function(H){if(H.instance){var C=H.instance.children;
if(C.length){var S=(0,_.bA)(C[0]).parentNode;if(S){S=(0,_.bA)(S);for(var w=0;w<C.length;w++)S.removeChild(C[w])}}jU()?H.instance.setTemplateUpdatesEnabled(!1):H.instance.signalProxy.dispose();H.instance=void 0}},D6Y=function(H,C,S){C=C||!S;
H.instance&&H.instance.hidden!==C&&(H.instance.hidden=C,QCD(C,H.instance.children))},tSM=function(H){if(jU()){var C=H.instance;
C&&ha(H.parentSignalProxy.owner,function(){return!C.getTemplateUpdatesEnabled()})&&C.setTemplateUpdatesEnabled(!0)}else H.setDisableTemplateUpdate(!1)};
_.JJ.Object.defineProperties(Y4.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var H=this;return ha(this.parentSignalProxy.owner,function(){return B3Y(H).getWithPath([])})},
set:function(H){H||(jU()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));B3Y(this).setWithPath([],!!H)}}});
_.JJ.Object.defineProperties(Y4,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",Y4);var U6V=[],zH=function(){var H=HTMLElement.apply(this,arguments)||this;H.as="item";H.indexAs="index";H.itemsIndexAs="itemsIndex";H.targetFramerate=20;H.notifyDomChange=!1;H.isDetached=!1;H.JSC$13556_renderDebouncer=null;H.instances=[];H.chunkingId=null;H.chunkCount=null;H.shouldMeasureChunk=!1;H.shouldContinueChunking=!1;H.renderStartTime=null;H.JSC$13556_didCallConnected=!1;return H};
_.G(zH,HTMLElement);var RA1=function(H){H.itemSignalImpl!=null||(H.itemSignalImpl=new ZM(_.mB(U6V,void 0,"YBrqgf")));return H.itemSignalImpl},Ird=function(H,C){Array.isArray(C)||(C=U6V);
RA1(H).setWithPath([],C)};
_.F=zH.prototype;_.F.showHideChildren=function(H){for(var C=_.Z(this.instances),S=C.next();!S.done;S=C.next())QCD(H,S.value.children)};
_.F.notifyPath=function(H,C){H=gE(H);H[0]==="items"&&(H.length===1?Ird(this,C):RA1(this).setWithPath(H.slice(1),C))};
_.F.canNotifyPath=function(H){return H==="items"};
_.F.attributeChangedCallback=function(H,C,S){if(this.JSC$13556_didCallConnected)throw Error("Vg`"+H);H==="as"?this.as=S:H==="index-as"?this.indexAs=S:H==="items-index-as"?this.itemsIndexAs=S:H==="initial-count"?this.initialCount=Number(S):H==="notify-dom-change"?this.notifyDomChange=S!==null:H==="target-framerate"&&(this.targetFramerate=Number(S))};
_.F.disconnectedCallback=function(){this.isDetached=!0;for(var H=0;H<this.instances.length;H++)arY(this,H);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.F.connectedCallback=function(){var H=this,C=RA1(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var A=C(),J=gE(A.path);if(J[0]===void 0||J[0]==="splices"||J[0]==="length")H.debounceRender();else{var c=J[0];if(c=H.instances[typeof c==="string"?Math.floor(Number(c)):c])J=[H.as].concat(_.k$(J.slice(1))),c.signalProxy.notifyPath(J,A)}});
this.JSC$13556_didCallConnected=!0;VSd?PTi():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var S=(0,_.bA)((0,_.bA)(this).parentNode),w=0;w<this.instances.length;w++)S.insertBefore(this.instances[w].root,this);this.chunkingId&&this.render()}};
_.F.debounceRender=function(){this.JSC$13556_renderDebouncer=_.vW(this.JSC$13556_renderDebouncer,tP,this.JSC$13556_renderImpl.bind(this));_.lk(this.JSC$13556_renderDebouncer)};
_.F.render=function(){this.debounceRender();_.XL()};
_.F.JSC$13556_renderImpl=function(){var H=this;if(!this.parentSignalProxy.isDisposed){var C=this.items,S=x6n(this,C.length);H0_(this,C,S);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){H.chunkingId=null;if(H.shouldMeasureChunk){var w=performance.now()-H.renderStartTime;H.chunkCount=Math.round(Math.ceil(1E3/H.targetFramerate)/w*H.chunkCount)||1}H.shouldContinueChunking&&H.debounceRender()}));
op7&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var x6n=function(H,C){var S=C,w=H.instances.length;if(H.initialCount){if(H.chunkCount){var A=Math.min(Math.max(C-w,0),H.chunkCount);S=Math.min(w+A,C)}else S=Math.min(C,H.initialCount),A=Math.max(S-w,0),H.chunkCount=A||1;H.shouldMeasureChunk=A===H.chunkCount;H.shouldContinueChunking=S<C;H.renderStartTime=performance.now()}return S},H0_=function(H,C,S){for(var w=0;w<S;w++){var A=H.instances[w],J=C[w];
A?(A.signalProxy.setWithPath([H.as],J),A.signalProxy.setWithPath([H.indexAs],w)):i0d(H,J,w)}for(C=H.instances.length-1;C>=w;C--)S=H,A=C,arY(S,A),_.Z(S.instances.splice(A,1)).next().value.signalProxy.dispose()},arY=function(H,C){H=H.instances[C];
C=(0,_.bA)(H.root);for(var S=0;S<H.children.length;S++)C.appendChild(H.children[S])},i0d=function(H,C,S){var w={};
C=Object.assign({},C67(H),(w[H.as]=C,w[H.indexAs]=S,w[H.itemsIndexAs]=S,w));var A=new cS(C,function(c){if(c!==H.as&&c!==H.indexAs){if(c===H.itemsIndexAs)return RZ(A,H.indexAs);var Y=RZ(H.parentSignalProxy,c).getChangeRecordSignal([]);c=_.mB(void 0,void 0,"T21Pqc");var M=new ZM(c);A.effect(function(){var m=Y();M.notifyPath(gE(m.path),{value:m.value})});
return M}});
H.parentSignalProxy.childSignalProxies.push(A);w=gyw(H.templateInfo,H.templateInfo.nodeInfoList,A,{eventListenerHost:H.eventListenerHost,getModel:function(){var c={};return Object.assign({},C67(H),(c[H.as]=A.model[H.as],c[H.indexAs]=A.model[H.indexAs],c[H.itemsIndexAs]=A.model[H.indexAs],c))},
hasInsertionPoint:H.templateInfo.hasInsertionPoint,thisCtx:H.eventListenerHost,methodInvocationRequirement:XvW,enabledSignal:H.stampingEnabled}).root;C={root:w,children:[],signalProxy:A};w=_.Z(w.childNodes);for(var J=w.next();!J.done;J=w.next())C.children.push(J.value);w=(w=H.instances[S+1])?w.children[0]:H;(0,_.bA)((0,_.bA)(H).parentNode).insertBefore(C.root,w);H.instances[S]=C},C67=function(H){if((H=H.parentSignalProxy.model)&&!H.hostElement){var C={},S;
for(S in H)H.hasOwnProperty(S)&&(C[S]=H[S]);return C}};
zH.prototype.itemForElement=function(H){var C=this,S=this.instances.find(function(w){return w.children.includes(H)});
if(S)return ha(this.parentSignalProxy.owner,function(){return S.signalProxy.getWithPath([C.as])})};
zH.prototype.indexForElement=function(H){var C=this.instances.findIndex(function(S){return S.children.includes(H)});
return C>=0?C:void 0};
_.JJ.Object.defineProperties(zH.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var H=this;return ha(this.parentSignalProxy.owner,function(){return RA1(H).getWithPath([])})},
set:function(H){Ird(this,H)}},
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}}});
_.JJ.Object.defineProperties(zH,{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",zH);var SqW,s9V;_.MU=new _.W4("STATE_STORE_TOKEN");SqW=new _.W4("SELECT_TOKEN");s9V=new _.W4("DISPATCH_TOKEN");var rj7={getSelectFn:function(){var H;return(H=_.JA().resolve(_.AA(SqW)))!=null?H:$w7},
getDispatchFn:function(){var H;return(H=_.JA().resolve(_.AA(s9V)))!=null?H:_.wC().dispatch.bind(_.wC())},
getAppStore:function(){return _.JA().resolve(_.MU)}},pL7,na7=!1;var tOZ,en_={traceAllComponents:_.E("web_tracing_all_components"),exportToCsi:_.E("web_tracing_export_to_csi"),exportBreadcrumbs:_.E("web_enable_tracing"),bufferSize:_.YB("web_max_tracing_events"),enabledSpansArray:_.mC("web_tracing_enabled_spans"),exportToDevTools:_.E("web_tracing_export_to_devtools")};tOZ=new uxV;var IXw=function(){};var gaE=void 0;var j9V=function(){};
j9V.prototype.hasAttribute=function(H){if(H==="dir")return!1;if(H==="disable-upgrade"){var C,S;return(S=(C=this.hostElement)==null?void 0:C.hasAttribute("disable-upgrade"))!=null?S:!1}throw Error("Wg`"+H);};
j9V.prototype.attributeChangedCallbackWrapper=function(H,C,S){if(H==="disable-upgrade"&&this.__isUpgradeDisabled&&S===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var w;((w=this.hostElement)!=null?w:this).isConnected&&this.connectedCallback()}else C===S||this.__isReflecting||this.attributeChangedCallback(H,C,S)};
j9V.prototype.getExtraMethodsToForward=function(){for(var H=this,C=[],S=_.Z(wd1),w=S.next(),A={};!w.done;A={tagName$jscomp$54:void 0,name$jscomp$598:void 0},w=S.next())A.name$jscomp$598=w.value,w=void 0,A.name$jscomp$598==="_setPendingProperty"?(A.tagName$jscomp$54=this.hostElement.tagName.toLowerCase(),w=function(J){return function(c,Y,M){PY(J.tagName$jscomp$54,c,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return H._setPendingProperty(c,Y,M)}}(A)):w=function(J){return function(){return H[J.name$jscomp$598].apply(H,
_.k$(_.tc.apply(0,arguments)))}}(A),C.push([A.name$jscomp$598,
w]);return C};
for(var HS0=$6d(PuV((0,_.re)(j9V))),sX$=["disabled","disable-upgrade"],AmP=(0,_.re)(function(){}),JmY=new Set(Object.getOwnPropertyNames(AmP.prototype)),FA$=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.k$(JmY))),wvW=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),wd1=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),Fd7=new Set([].concat(_.k$(wvW),_.k$(wd1),_.k$(JmY))),Z0n=_.Z(Fd7),cmd=Z0n.next();!cmd.done;cmd=Z0n.next())f0p.add(cmd.value);var J6u={created:function(){qRu(this);this.initializeInjection()}};var WA6=!1,zp=window.ShadyDOM,fr0=["appendChild","insertBefore","removeChild","replaceChild"],Ggp=[Node];zp&&Ggp.push(zp.Wrapper);var QXE,d6u,pvD={};var MW,qW=new Set;var tSE=new Set("context didCallReady is info params signalProxy".split(" ")),gp$="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),U60="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var Yqb=Gc({entities:PtE}),z2W=new wm(Yqb);var MgW=function(){return _.oZ.apply(this,arguments)||this};
_.G(MgW,_.oZ);_.JJ.Object.defineProperties(MgW.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return z2W}}});
_.D([_.Od()],MgW);_.qU=[JZ.prototype,MgW.prototype];_.TH={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var H=this,C={};setTimeout(function(){var S;return _.M3((S=H.hostElement)!=null?S:H,"yt-live-chat-add-tooltip-target",C)},0);
this.handler_=C.handler},
detached:function(){if(this.handler_){var H;this.handler_.removeElementFromSupportingTooltips((H=this.hostElement)!=null?H:this)}this.handler_=null}}};_.E4=new _.W4("ICON_MANAGER_TOKEN");var qq7=[48,20,18,16,15,13,12],mAE=new Map,cm6=new Set,Jmi=new Set,Z0$=new Set,AmU=new Set,FdZ=new Set,z2p=new Promise(function(H){var C=!1,S=!1,w=!1,A=[],J=function(c){if("detail"in c)if(c=c.detail,c.name==="yt-icons")Yq7(c),C=!0;else if(c.name==="yt-sys-icons")Yq7(c),S=!0;else{var Y;((Y=c.name)==null?0:Y.includes("yt-sys-icons"))&&c.size!==24&&(Yq7(c,!0),A.push(c.size),A.length===qq7.length&&(w=!0))}C&&S&&w&&(window.removeEventListener("iron-iconset-added",J),H())};
window.addEventListener("iron-iconset-added",J)}),qqZ=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"]]);_.mL={};_.mL.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.jt,computeHref_:function(H,C){C=C===void 0?!1:C;if(!H||H.commandExecutorCommand)return null;var S=jJZ(H,C);return C||S!==null?S?_.E("enable_polymer_resin")?_.D4(S).toString():S:null:(_.Bn(new _.X0("computeHref was null",this.is,H)),null)},
computeOptionalHref_:function(H){return this.computeHref_(H,!0)},
computeNofollow_:function(H){return H?RXu(H)?"nofollow":null:null},
computeIcon_:function(H){return H&&H.iconType?_.bJ(H.iconType):""},
resolveCommand:function(H,C,S){C=C===void 0?{}:C;return _.uJ(H,this.hostElement,C,S===void 0?!1:S)}};var mA1,WS;_.Tg_={};mA1=null;
WS={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_=YuW(this.viewroot));_.HI(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var H=this;this.unobserve_();if(_.E("kevlar_vimio_use_shared_monitor"))E70(this.hostElement,{data:this.data||null,observer:this.visibilityObserver,visibilityCallback:this.visibilityCallback.bind(this),prescanCallback:this.onPrescanVisible.bind(this),layer:this.getScreenLayer&&this.getScreenLayer(),showOption:this.visibilityOptionVisible_,hideOption:this.visibilityOptionHidden_,prescanOption:this.visibilityOptionPrescan_,skipLogging:this.shouldSkipLogging.bind(this)});
else{var C=[];this.visibilityOptionVisible_&&C.push(this.visibilityObserver.observe(this.hostElement,function(){return H.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&C.push(this.visibilityObserver.observe(this.hostElement,function(){return H.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&C.push(this.visibilityObserver.observe(this.hostElement,function(){return H.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=C}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){WdV(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 H=_.tb(this.parentNode,function(S){var w,A=(w=S.polymerController)!=null?w:S;return!!A.getVisibilityObserverForChild&&A.getVisibilityObserverForChild()},!0);
if(H){var C;this.localVisibilityObserver_=((C=H.polymerController)!=null?C:H).getVisibilityObserverForChild()}else mA1||(mA1=YuW()),this.localVisibilityObserver_=mA1;return this.localVisibilityObserver_},visibilityCallback:function(H){H?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.E("kevlar_use_vimio_behavior")||(WS={});WS&&!_.E("kevlar_use_vimio_behavior")&&(delete WS.attached,delete WS.detached);_.Tg_.YtVisibilityObserverBehavior=[WS];var Wd_={};Wd_.YtVisualElementBehavior=[_.Tg_.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.E("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.E("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var H=this.getScreenLayer&&this.getScreenLayer(),C=this.getVisibilityLogger();C&&C.reportShown(this,void 0,H)}},
onHidden:function(){if(_.E("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.E("kevlar_vimio_use_shared_monitor")){var H=this.getScreenLayer&&this.getScreenLayer(),C=this.getVisibilityLogger();C&&C.reportHidden(this,void 0,H)}},
getVisibilityLogger:function(){return _.E("kevlar_use_vimio_behavior")?_.f7():null},
shouldSkipLogging:function(){if(_.rh("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var H=this.getParentRenderer&&this.getParentRenderer();if(!H)return!1;var C,S=(C=H.polymerController)!=null?C:H;if(!S.data)return!1;H=this.data.trackingParams;H=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:H;var w;C=(w=S.data)==null?void 0:w.trackingParams;var A,J;C=((A=S.data)==null?0:A.loggingDirectives)?(J=S.data)==null?void 0:J.loggingDirectives.trackingParams:C;return H&&C&&H===
C}}];var GPp=new Map,dC;var CgU=function(H){this.layer=H},TX=function(H){return H.layer!==void 0?H.layer:H.parent?TX(H.parent):H.layer=0};var O0V;_.I={};O0V=0;_.I.YtRendererBehavior=[_.mL.YtComponentBehavior,Wd_.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_:_.E("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var H,C;(C=(H=this.monitorScrollElement)!=null?H:this.hostElement)==null||C.removeEventListener("scroll",_.uA(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();e2i(this.hostElement);VOU(_.iZ(),this.hostElement);wB.delete(this.hostElement)},
registerRenderer:function(H){var C;((C=H.polymerController)!=null?C:H).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(H),this.markDirty())},
unregisterRenderer_:function(H){this.useVimio_||(this.childCache_.delete(H),this.markDirty())},
attached:function(){var H=this,C=this.getParentRenderer();if(C){var S,w,A;(w=(S=(A=C.polymerController)!=null?A:C).registerRenderer)==null||w.call(S,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var J,c;(c=(J=this.monitorScrollElement)!=null?J:this.hostElement)==null||c.addEventListener("scroll",_.uA(this,this.onScroll))}_.rT.addJob(function(){fD$(H.hostElement)},8);
S=new CgU(this.screenLayer||void 0);(C=wB.get(C))&&C.layerNode&&(S.parent=C.layerNode);C={};wJi(this.hostElement,(C.isRenderer=!0,C.layerNode=S,C[SL7]=this.data,C))},
getParentRenderer:function(){for(var H=this.hostElement.parentNode,C,S;H&&((C=wB.get(H))==null||!C.isRenderer)&&!((S=H.polymerController)!=null?S:H).isRenderer_;)H=H.parentNode||H.host;return H},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.E("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.Bh("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.E("debug_web_ve_data")&&this.data.trackingParams){var H="";try{H=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(S){_.nC(S)}if(H){var C=E6V(H,1);C!==void 0&&(this.hostElement.dataset.veIndex=String(C));H=E6V(H,2);
H!==void 0&&(this.hostElement.dataset.ve=String(H))}}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,_.E("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.Qh(this.data.loggingDirectives.trackingParams)),this.visualElement=_.vI(_.lJ(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var H=this.data.targetId;_.O1_(_.iZ(),H,this.hostElement)}else VOU(_.iZ(),this.hostElement)},
onScroll:function(){var H=Date.now();H-this.lastHandledScroll_<50||(this.lastHandledScroll_=H,this.markDirty())},
markDirty:function(){_.E("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():XdE(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var H=this.getParentRenderer();if(H&&(H=wB.get(H))&&H.layerNode)return TX(H.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.k$(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var H=0;H<this.data.impressionEndpoints.length;H++)this.sendImpression(this.data.impressionEndpoints[H]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(H){H.clickTrackingParams&&delete H.clickTrackingParams;var C,S;(H==null?0:(C=H.commandMetadata)==null?0:(S=C.webCommandMetadata)==null?0:S.sendPost)?_.WH(this.hostElement,[H,{impression:!0}]):_.yN(this.hostElement,[H],this.hostElement)},
logExplicitClick:function(H){var C=_.Dg(this.getScreenLayer());if(C){var S,w=(S=H.polymerController)!=null?S:H;H=w.visualElement;w=w.trackingParams||w.clickTrackingParams;!H&&w&&(H=_.Qh(w));H&&_.Sp(C,H)}}}];var ymi={},yl=function(){return _.oZ.apply(this,arguments)||this};
_.G(yl,_.oZ);yl.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
yl.prototype.onPdgItemBehaviorClick=yl.prototype.onPdgItemBehaviorClick;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],yl.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],yl.prototype,"data",void 0);_.D([_.Gz("click"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],yl.prototype,"onPdgItemBehaviorClick",null);_.D([_.Od()],yl);ymi.YtPdgLiveChatItemBehavior=[yl.prototype,_.I.YtRendererBehavior];var Ngn;var b0Y;_.NU={};_.NU.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var bZ=function(){var H=Zg.apply(this,arguments)||this;H.switchTemplateAtRegistration=!1;return H};
_.G(bZ,Zg);bZ.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||$AU(this),_.Z17(this,"doRender"),this.doRender())};
bZ.prototype.debounceRender=function(){this.templatingFn&&_.iJ(this,"doRender",this.doRender)};
bZ.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.nC(Error("fh"))};
bZ.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.D([LJp()],bZ);var E7V=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,EA={},n7E=(EA[1]={filterString:null,isUnwrappable:null,unwrap:null},EA[2]={filterString:function(H,C,S){return Wt(S)},
isUnwrappable:function(H){return H instanceof Ut},
unwrap:function(H){return xD(H)}},EA[3]={filterString:function(H,C,S){return E7V.test(S)?S:BV.toString()},
isUnwrappable:function(H){return p9(H)},
unwrap:function(H){return _.kD(H)}},EA[4]={filterString:function(){return BV.toString()},
isUnwrappable:function(H){return H instanceof o2},
unwrap:function(H){return _.Qv(H).toString()}},EA[5]={filterString:function(H,C,S){return S},
isUnwrappable:function(H){return typeof H==="string"},
unwrap:function(H){return H.toString()}},EA[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(H){return H instanceof _.jn},
unwrap:function(H){return z9W(H)}},EA[8]={filterString:function(H,C,S){S=String(S).toLowerCase();
return Ef$(H,C,S)?S:"zClosurez"},
isUnwrappable:null,unwrap:null},EA[10]={filterString:null,isUnwrappable:null,unwrap:null},EA);JP[Dp["default"]]=Bgu;var DAw=[];(function(){var H=SI;SI=function(C){H==null||H(C);hx(function(){for(var S=0;S<C.length;S++)KdE(C[S])})}})();var e2Y=function(){var H=_.oZ.apply(this,arguments)||this;H.hasUnmounted=!1;return H};
_.G(e2Y,_.oZ);_.F=e2Y.prototype;_.F.beforeRegister=function(){var H=this.doIdomRender;this.templatingFn?_.nC(Error("eh")):(this.templatingFn=H,this.switchTemplateAtRegistration=!0,h2E(this))};
_.F.attached=function(){};
_.F.detached=function(){KdE(this.hostElement)};
_.F.renderIdom=function(){throw Error("hh");};
_.F.doIdomRender=function(){var H=this;mNu(this.hostElement,function(){H.renderIdom()})};
_.D([_.Od()],e2Y);var uYY=[bZ.prototype,e2Y.prototype];var GPW,fDn=function(){return GPW!==void 0?GPW:GPW=document.createElement("template")};
document.head.appendChild(fDn().content);var v77;var lDY,Vgi=function(){return lDY!==void 0?lDY:lDY=document.createElement("template")};
document.head.appendChild(Vgi().content);var o7d;var O0_=document.head,XdM=O0_.appendChild,Q9d;if(o7d===void 0){var dAd=document.createElement("template");_.f(dAd,"\x3c!--css-build:shady--\x3e");dAd.content.insertBefore(Vgi().content.cloneNode(!0),dAd.content.firstChild);o7d=dAd}Q9d=o7d;XdM.call(O0_,Q9d.content);var P61,$AP=function(){return P61!==void 0?P61:P61=document.createElement("template")};
document.head.appendChild($AP().content);var pdn;var kPU=document.head,h21=kPU.appendChild,n71;if(pdn===void 0){var rmW=document.createElement("template");_.f(rmW,"\x3c!--css-build:shady--\x3e");rmW.content.insertBefore($AP().content.cloneNode(!0),rmW.content.firstChild);pdn=rmW}n71=pdn;h21.call(kPU,n71.content);var BgU=document.head,DA1=BgU.appendChild,KdM;if(v77===void 0){var tgd=document.createElement("template");_.f(tgd,"\x3c!--css-build:shady--\x3e");tgd.content.insertBefore(fDn().content.cloneNode(!0),tgd.content.firstChild);v77=tgd}KdM=v77;DA1.call(BgU,KdM.content);var LdY,g7Y=function(){return LdY!==void 0?LdY:LdY=document.createElement("template")};
document.head.appendChild(g7Y().content);var UAd;_.sU=new _.W4("DARK_THEME_TOKEN");var QDE=new _.mi("accessibilityProperties");var XyZ=new _.mi("layoutProperties");var d4W=new _.mi("imageType");var R2n={};if("ytAttributedStringLinkHoverColor"in R2n)throw Error("kh`ytAttributedStringLinkHoverColor");(function(H,C){R2n[H]="value"in C&&"unit"in C?IDW(H,C):function(S){try{return C(S)}catch(w){throw Error("ih`"+H+"`"+w.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var IDd=function(H){var C=this;this.holdTime=H===void 0?500:H;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(S){var w=new CustomEvent("LONG_PRESS"),A;(A=S.changedTouches[0].target)==null||A.dispatchEvent(w)};
this.ontouchstart=function(S){C.longPressTimeout=_.mx(_.rT,function(){C.onlongpress(S);C.longPressOccurred=!0},C.holdTime)};
this.ontouchmove=function(){_.rT.cancelJob(C.longPressTimeout);C.longPressTimeout=NaN;C.longPressOccurred=!1;C.moveOccurred=!0};
this.ontouchend=function(S){if(C.longPressTimeout&&!C.longPressOccurred&&!C.moveOccurred){var w;(w=S.changedTouches[0].target)==null||w.dispatchEvent(new Event("click"))}_.rT.cancelJob(C.longPressTimeout);C.longPressTimeout=NaN;C.longPressOccurred=!1;C.moveOccurred=!1}};var qhE=function(H,C){IDd.call(this,C);var S=this;this.callback=H;this.onlongpress=function(w){var A;(A=S.callback)==null||A.call(S,w)}};
_.G(qhE,IDd);var TYV=function(H,C){var S=Object.assign({},C);H=_.Z(new Map([["ontouchstart",H.ontouchstart],["ontouchend",H.ontouchend],["ontouchmove",H.ontouchmove]]));for(var w=H.next(),A={};!w.done;A={eventName$jscomp$101:void 0,eventHandler$jscomp$1:void 0},w=H.next()){var J=_.Z(w.value);w=J.next().value;J=J.next().value;A.eventName$jscomp$101=w;A.eventHandler$jscomp$1=J;C[A.eventName$jscomp$101]=function(c){return function(Y){var M;(M=S[c.eventName$jscomp$101])==null||M.call(S,Y);(0,c.eventHandler$jscomp$1)(Y)}}(A)}};_.ZQ=new _.W4("COMMAND_HANDLER_TOKEN");var xAV=new _.mi("parallelCommand");var CcW=new _.mi("performOnceCommand");var iyD=new _.mi("serialCommand");var ShZ=void 0;var aD7=function(){this.data=[];this.consumer=null};
aD7.prototype.push=function(H){this.consumer?this.consumer(H):this.data.push(H)};var CN={};_.mB(CN,void 0,"sgPmTd");_.mB(null,void 0,"jypsq");_.mB(null,void 0,"mWiOof");var FOU=new aD7;var c2Z=[aw1,xD7,HPd,CY_,iP1,IwY,Snb,sV7];var oND=new _.mi("bracketTextDecorator");var Cu=new _.mi("highlightTextDecorator");_.wW=new _.W4("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var GQ6=function(){},xA_;
(xA_=window.requestIdleCallback)==null||xA_.bind(window);var vNU={calledOnce:!1,state:"visible"},fWp={calledOnce:!1,state:"hidden"};var Hy7=new _.W4("ICON_WIZ_COMPONENT_TOKEN");_.lm=_.n(function(H){var C=H.icon;var S=H.active;var w=H.className;var A=H.style;var J=H.dataSelected;var c=H.dataDisabled;var Y=H.role;var M=H.animateIcon;var m=H.themeOverride;var W=H.ariaHidden;var y=H.ariaExpanded;var N=H.ariaLabel;var b=H.tabindex;var u=H.id;var O=H.size;var d=H.iconFilter;var p=H.onKeydown;return _.q(_.T,{cond:C,then:function(){var k=_.JA().resolve(Hy7);return _.q(k,{icon:C,dataSelected:J,dataDisabled:c,animateIcon:M,themeOverride:m,ariaExpanded:y,tabindex:b,id:u,active:S,size:O,
role:Y,className:w,ariaHidden:W,ariaLabel:N,style:function(){return A!=null&&A()||O==null||!O()?A==null?void 0:A():"width: "+(O==null?void 0:O())+"px;height: "+((O==null?void 0:O())+"px;")},
iconFilter:d,onKeydown:p})}})},"b");
_.lm.idomCompat={callbacks:{onKeydown:!0}};var IWw=window.devicePixelRatio||1;var iBE=new Map([["yt_outline_bag_black_24","bag"]]);var ex=function(H){var C=this;this.margin=.1;this.whenInViewportWithMargin=H;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){C.requestScan()});
window.addEventListener("touchend",function(){C.requestScan()});
window.addEventListener("updateui",function(){C.requestScan()});
var S=new _.I$((0,_.Xv)(this.requestScan,this),100);window.addEventListener("scroll",function(){S.fire()},!0);
window.addEventListener("resize",(0,_.Xv)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){C.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.Xv)(this.requestScan,this))};
ex.prototype.observe=function(H){this.observationTargets.includes(H)||this.observationTargets.push(H)};
ex.prototype.unobserve=function(H){this.observationTargets=this.observationTargets.filter(function(C){return C!==H})};
ex.prototype.requestScan=function(){var H=this;this.scanRequested||(hx(function(){iyi(H)}),this.scanRequested=!0)};
var iyi=function(H){var C=(1+H.margin)*(document.documentElement.clientHeight||window.innerHeight);H.observationTargets=H.observationTargets.filter(function(S){var w=S.getBoundingClientRect();(w=C>w.top&&!!w.height)&&H.whenInViewportWithMargin(S);return!w&&S.parentNode});
H.scanRequested=!1};
ex.prototype.disconnect=function(){this.observationTargets=[]};var Ccd,sD_;Ccd=_.Z(_.mB(wOZ(),void 0,"O3X2wd"));_.Sh7=Ccd.next().value;sD_=Ccd.next().value;window.addEventListener("resize",function(){sD_(wOZ())});var jDM={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},wyd=void 0,A2U=window.innerWidth,J2n=window.innerHeight;window.addEventListener("resize",function(){wyd=void 0});var FoY;if("IntersectionObserver"in window)FoY=FsW();else{if(wyd===void 0){var Zy1;Zy1="matchMedia"in window?window.matchMedia(jDM.landscape+","+jDM.portrait).matches:void 0;wyd=Zy1!==void 0?Zy1:A2U>=930&&J2n>=550||A2U>=550&&J2n>=930}FoY=wyd?{observe:function(H){hx(function(){var C;(C=H.onViewportEntered)==null||C.call(H)})},
unobserve:function(){}}:new ex(function(H){hx(function(){var C;
(C=H.onViewportEntered)==null||C.call(H)})})}var AsZ=FoY;var c27=_.n(function(H){var C=!1,S=_.sW("img",function(w){_.PN(function(){C=!0;w.onload=null})});
_.d6(function(){var w,A=(w=H.data)==null?void 0:w.call(H),J,c=(J=H.getSrc)==null?void 0:J.call(H).cb,Y;w=(Y=H.config)==null?void 0:Y.call(H);if(Y=S.value)if(J=function(m,W){if(!C)return c?c(m,W):m},Y0Z(Y,w),_.E("web_image_dont_reload_same_src")&&csu(Y,A,J))_.E("web_image_dont_reload_same_src_simulate_load")&&Y.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var M;ZB7(Y,A||null,J,w,(M=H.lazy)==null?void 0:M.call(H))}},"zS0jKb");
return _.q("img",{el:S})},"c");
c27.idomCompat=!0;_.Jg=_.n(function(H){var C=function(){var S,w=H.data(),A,J,c,Y,M,m,W,y,N,b,u,O,d,p,k,R,L,t,g,ii,FW,cZ,eZ,ND,bi,pU,O$,R0,m1;var c7={contentMode:(A=H.contentMode)==null?void 0:A.call(H),loadedClass:(J=H.loadedClass)==null?void 0:J.call(H),isPreloaded:(c=H.isPreloaded)==null?void 0:c.call(H),notifyOnLoaded:(Y=H.notifyOnLoaded)==null?void 0:Y.call(H),notifyOnUnloaded:(M=H.notifyOnUnloaded)==null?void 0:M.call(H),preferredThumbnail:(m=H.preferredThumbnail)==null?void 0:m.call(H),preserveHeight:(W=H.preserveHeight)==
null?void 0:W.call(H),preserveWidth:(y=H.preserveWidth)==null?void 0:y.call(H),objectPosition:(N=H.objectPosition)==null?void 0:N.call(H),targetWidth:(b=H.targetWidth)==null?void 0:b.call(H),targetHeight:(u=H.targetHeight)==null?void 0:u.call(H),shouldShowPlaceholder:(O=H.shouldShowPlaceholder)==null?void 0:O.call(H),useWidth:(d=H.useWidth)==null?void 0:d.call(H),isToggled:(p=H.isToggled)==null?void 0:p.call(H),alt:(k=H.alt)==null?void 0:k.call(H),className:(R=H.className)==null?void 0:R.call(H),
onerror:H.onerror,onload:H.onload,style$:((L=H.style$)==null?void 0:L.call(H))||((t=H.style)==null?void 0:t.call(H)),color:(g=H.color)==null?void 0:g.call(H),width:(ii=H.width)==null?void 0:ii.call(H),height:(FW=H.height)==null?void 0:FW.call(H),"aria-hidden$":(R0=(cZ=H["aria-hidden$"])==null?void 0:cZ.call(H))!=null?R0:(eZ=H.ariaHidden)==null?void 0:eZ.call(H),draggable:(ND=H.draggable)==null?void 0:ND.call(H),"data-disabled$":(m1=(bi=H["data-disabled$"])==null?void 0:bi.call(H))!=null?m1:(pU=H.dataDisabled)==
null?void 0:pU.call(H),size:(O$=H.size)==null?void 0:O$.call(H)};return q06(w,c7,(S=H.hideOn404)==null?void 0:S.call(H))};
return _.q(_.X9,null,_.q(_.o6,{when:function(){var S;return((S=C())==null?void 0:S.type)==="image"}},function(){return _.q(c27,{data:function(){return C().image},
getSrc:{cb:function(S,w){var A=C().image.sources,J=C().config.isPreloaded,c=C().config.useWidth,Y=C().config.targetWidth,M=C().config.targetHeight,m=C().config.preferredThumbnail;return _.aWu(w,A,J,c,Y,M,m)||""}},
config:function(){var S=C().config,w;for(w in S)S[w]===void 0&&delete S[w];return S},
lazy:H.renderLazy})}),_.q(_.o6,{when:function(){var S;
return((S=C())==null?void 0:S.type)==="icon"}},function(){return _.q(_.lm,{icon:function(){return C().iconName},
role:function(){return C().config.role},
className:function(){return C().config.className},
style:function(){return C().config.style$+";width: "+(C().config.width+"px;height: ")+(C().config.height+"px;color: ")+(C().config.color+";")},
ariaLabel:function(){return C().config["aria-label$"]},
ariaHidden:function(){return C().config["aria-hidden$"]},
dataDisabled:function(){return C().config["data-disabled$"]},
active:function(){return C().config.isToggled},
size:function(){return C().config.size}})}))},"d");
_.Jg.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var Yhi=function(H){return function(C){return _.q(dNW,null,function(){var S=C.data(),w=_.ps(C.config);return _.q(wd,null,function(){return void H(S,w)})})}}(N8Z),WsE=_.n(function(H){var C=function(w){var A,J=_.Zl(function(N){A=$1(function(){for(var b=_.Z(W()),u=b.next();!u.done;u=b.next()){u=bBi(u.value);
u=typeof u==="string"?document.createTextNode(u):u;if(!(u instanceof Node)){b=new _.X0("Part is not a node",u,typeof u);_.nC(b);break}N.appendChild(u)}})}),c=cb(function(){return $4D(w())},{isEqual:mGZ}),Y=_.Jx(H.config),M=function(){var N,b=c();
return!((N=Y())==null||!N.ariaLabel)||!(b.commandRuns&&b.commandRuns.length!==0||b.paragraphStyleRuns&&b.paragraphStyleRuns.length!==0)},m=cb(Y,{isEqual:ePD}),W=function(){var N=Pcu(c(),m());
kQ$(N,m());return c().content?KoZ(c().content,N).parts:[]},y=!0;
_.d6(function(){c();m();if(y)y=!1;else{var N=W();Promise.resolve().then(function(){var b=J.value;if(b){b.innerText="";var u;(u=A)==null||u();A=_.dh(b,function(){return _.q(EZ7,{parts:N})},"e")}})}},"YlhjWd");
return _.q("span",{el:J,class:function(){return c()&&byZ(c(),Y())},
dir:function(){var N;return((N=Y())==null?0:N.userInput)?"auto":void 0},
"aria-label":function(){var N;return M()?(N=Y())==null?void 0:N.ariaLabel:void 0},
role:function(){return M()?"text":void 0}})},S;
return((S=H.config)==null?0:S.renderedFromFormattedString)?C(H.text):_.q(_.T,{cond:H.text,then:C})},"f");
WsE.idomCompat=!0;_.uZ=_.n(function(H){var C=_.Jx(H.text),S=uIW(H);H.renderedFromFormattedString!==void 0&&(S.renderedFromFormattedString=!0);return _.E("attr_string_reactive")?_.q(WsE,{text:C,config:S}):_.q(_.T,{cond:function(){var w;return C()&&((w=$4D(C()))==null?void 0:w.content)},
then:function(){return _.q(Yhi,{data:H.text,config:S})},
debugInstance:"Apcuac"})},"g");
_.uZ.idomCompat=!0;var OBp="";$Qi({beforeVisit:function(H){H.type.TAG_NAME&&(OBp=H.type.TAG_NAME)},
afterRender:function(H,C){var S;OBp=(S=C==null?void 0:C.type)!=null?S:""},
didPatch:function(){OBp=""}});var GEE=function(H,C,S){C=C===void 0?"unknown":C;S=S===void 0?{}:S;_.X0.call(this,H+" ("+C+")",Object.assign({},{name:"YtWcwError",tagName:C},S));Object.setPrototypeOf(this,this.constructor.prototype)};
_.G(GEE,_.X0);_.Ms=new WeakMap;_.zG=!1;var oZW,XO6,VYi;_.GH=Symbol("mh");_.Yb=Symbol("nh");oZW=Symbol("oh");XO6=new Set(Object.getOwnPropertyNames(Element.prototype));VYi=Symbol("ph");var zG7=_.n(function(H){return _.q("yt-attributed-string",{"aria-label":H.ariaLabel,hidden:H.hidden,id:H.id,class:H.className,"force-default-style":H.forceDefaultStyle},_.q(_.uZ,{text:H.data,ariaLabel:H.ariaLabel,ellipsisTruncate:H.ellipsisTruncate,isOverlay:H.isOverlay,linkInheritColor:H.linkInheritColor,noPreWrap:H.noPreWrap,noWrap:H.noWrap,userInput:H.userInput,noEndpoints:H.noEndpoints,headerRuns:H.headerRuns,isHeadline:H.isHeadline}))},"h");
_.E("web_wiz_attributed_string")&&_.qs(zG7,"yt-attributed-string",{props:{ariaHidden:_.GH,ariaLabel:_.GH,className:_.GH,ellipsisTruncate:_.GH,isOverlay:_.GH,linkInheritColor:_.GH,noEndpoints:_.GH,noStyleRuns:_.GH,noLinkColor:_.GH,noPreWrap:_.GH,noWrap:_.GH,skipOnClick:_.GH,userInput:_.GH,headerRuns:_.GH,isHeadline:_.GH,id:_.GH,data:_.GH,hidden:_.GH,forceDefaultStyle:_.GH,text:_.Yb,disableUpgrade:_.Yb,disable:_.Yb,slot:_.Yb}});var fw=function(){return _.X.apply(this,arguments)||this};
_.G(fw,_.X);fw.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},N8Z(this.data,this.config))};
_.D([_.v(uYY),_.K("design:type",Object)],fw.prototype,"ytIdomTemplatingBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],fw.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],fw.prototype,"ariaLabel",void 0);_.D([_.V(),_.K("design:type",Boolean)],fw.prototype,"disable",void 0);_.D([_.V(),_.K("design:type",Boolean)],fw.prototype,"ellipsisTruncate",void 0);_.D([_.V(),_.K("design:type",Boolean)],fw.prototype,"isOverlay",void 0);
_.D([_.V(),_.K("design:type",Boolean)],fw.prototype,"linkInheritColor",void 0);_.D([_.V(),_.K("design:type",Boolean)],fw.prototype,"noPreWrap",void 0);_.D([_.V(),_.K("design:type",Boolean)],fw.prototype,"noWrap",void 0);_.D([_.V(),_.K("design:type",Boolean)],fw.prototype,"userInput",void 0);_.D([_.V(),_.K("design:type",Boolean)],fw.prototype,"noEndpoints",void 0);_.D([_.V(),_.K("design:type",Array)],fw.prototype,"headerRuns",void 0);
_.D([_.Lx({is:"yt-attributed-string",disableElementRegistration:!0})],fw);
_.E("web_wiz_attributed_string")||_.B(fw,"yt-attributed-string",function(){if(UAd===void 0){var H=document.createElement("template");_.f(H,"\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");H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);
H.content.insertBefore(g7Y().content.cloneNode(!0),H.content.firstChild);UAd=H}H=UAd;return H},{mode:2});var Mz_,qh1,hP7;Mz_=function(){this.firstThumbnailLoaded=!1};
_.TY_=function(){qh1||(qh1=new Mz_);return qh1};
hP7=function(H){var C=_.TY_();C.firstThumbnailLoaded||(C.firstThumbnailLoaded=!0,_.DR("ftl",H))};
Mz_.prototype.reset=function(){this.firstThumbnailLoaded=!1};var dGU=0,kEV=new WeakMap,$Gw=0,Wb=new Set;var m47,Wod=function(){return m47!==void 0?m47:m47=document.createElement("template")};
document.head.appendChild(Wod().content);var y2d;var DGE,tYV,vS;_.bm=_.s$.caches;vS=function(){};
vS.prototype.open=function(H){return _.bm.open(NYM(H))};
vS.prototype.has=function(H){return _.bm.has(NYM(H))};
vS.prototype.delete=function(H){return _.bm.delete(NYM(H))};
vS.prototype.match=function(H,C){var S=this,w,A,J,c,Y,M;return _.z(function(m){switch(m.nextAddress){case 1:return m.yield(S.keys(),2);case 2:w=m.yieldResult,A=_.Z(w),J=A.next();case 3:if(J.done){m.jumpTo(5);break}c=J.value;return m.yield(S.open(c),6);case 6:return Y=m.yieldResult,m.yield(Y.match(H,C),7);case 7:if(M=m.yieldResult)return m.return(M);J=A.next();m.jumpTo(3);break;case 5:return m.return()}})};
var LsW=function(){};
_.G(LsW,vS);var NYM=function(H){if(H.includes(":"))throw Error("sh`"+H);return H+":"+_.oa("CacheStorage get")};
LsW.prototype.keys=function(){var H,C,S,w,A,J,c,Y,M;return _.z(function(m){if(m.nextAddress==1)return H=[],C=_.oa("CacheStorage keys"),m.yield(_.bm.keys(),2);S=m.yieldResult;w=_.Z(S);for(A=w.next();!A.done;A=w.next())J=A.value,c=_.B8D(J),Y=c.originalName,M=c.datasyncId,M===C&&H.push(Y);return m.return(H)})};var lZ=function(){var H=_.X.apply(this,arguments)||this;H.objectURL=null;H.loadTime=Infinity;return H};
_.G(lZ,_.X);_.F=lZ.prototype;_.F.renderIdom=function(){rs$(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("vh");this.setConfig();this.config&&zPZ(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.F.objectFitToContentMode=function(H){switch(H){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.F.logThumbnailFailureVe=function(){var H=_.y4(197497);_.hd(_.lJ(),H);var C=_.Dg();C&&H&&C&&_.ia(C,[H])};
_.F.loadImageFromCacheIfExists=function(H){var C=this,S=H.target;(S==null?0:S.src)&&UG0(S.src).then(function(w){C.objectURL=_.K9(w).toString();C.setSrc(S,C.objectURL)}).catch(function(){})};
_.F.onError=function(H){var C=this;if(_.E("web_use_cache_for_image_fallback")){var S=H.target;S&&UG0(S.src).then(function(w){C.objectURL=_.K9(w).toString();C.setSrc(S,C.objectURL)}).catch(function(){_.E("kevlar_woffle_log_thumbnail_failure_ve")&&C.logThumbnailFailureVe();
_.E("kevlar_woffle_fallback_image")&&C.setSrc(S,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.F.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.F.setConfig=function(){var H=this;this.config={alt:this.alt||"",contentMode:this.objectFitToContentMode(this.objectFit),notifyOnLoaded:this.notifyOnLoaded,notifyOnUnloaded:this.notifyOnUnloaded,preferredThumbnail:this.preferredThumbnail,preserveHeight:this.preserveHeight,preserveWidth:this.preserveWidth,objectPosition:this.objectPosition,onload:function(C){H.loadImageFromCacheIfExists(C);H.revokeObjectURL();nZW(H.hostElement)},
onerror:function(C){H.onError(C)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.E("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.F.setSrc=function(H,C){C&&(H.src=C)};
_.D([_.v(uYY),_.K("design:type",Object)],lZ.prototype,"ytIdomTemplatingBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],lZ.prototype,"data",void 0);_.D([_.V(),_.K("design:type",String)],lZ.prototype,"alt",void 0);_.D([_.V(),_.K("design:type",Boolean)],lZ.prototype,"ftlEligible",void 0);_.D([_.V(),_.K("design:type",Number)],lZ.prototype,"height",void 0);_.D([_.V(),_.K("design:type",Boolean)],lZ.prototype,"notifyOnLoaded",void 0);
_.D([_.V(),_.K("design:type",Boolean)],lZ.prototype,"notifyOnUnloaded",void 0);_.D([_.V(),_.K("design:type",String)],lZ.prototype,"objectFit",void 0);_.D([_.V(),_.K("design:type",String)],lZ.prototype,"objectPosition",void 0);_.D([_.V(),_.K("design:type",String)],lZ.prototype,"preferredThumbnail",void 0);_.D([_.V(),_.K("design:type",Boolean)],lZ.prototype,"preserveHeight",void 0);_.D([_.V(),_.K("design:type",Boolean)],lZ.prototype,"preserveWidth",void 0);
_.D([_.V({value:!0}),_.K("design:type",Boolean)],lZ.prototype,"useWidth",void 0);_.D([_.V({value:function(){return!_.Bh("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.K("design:type",Boolean)],lZ.prototype,"shouldRenderLazy",void 0);_.D([_.V(),_.K("design:type",Number)],lZ.prototype,"width",void 0);_.D([_.Lx({is:"yt-image",disableElementRegistration:!0})],lZ);
_.B(lZ,"yt-image",function(){if(y2d===void 0){var H=document.createElement("template");_.f(H,"\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");H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);H.content.insertBefore(Wod().content.cloneNode(!0),H.content.firstChild);
y2d=H}H=y2d;return H},{mode:2});var Vl=function(){return _.X.apply(this,arguments)||this};
_.G(Vl,_.X);Vl.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var H=_.L7(this.data.onVisibleCommand);H&&this.ytComponentBehavior.resolveCommand(H)}};
_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Vl.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Vl.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.NU.YtVisibilityBehavior),_.K("design:type",Object)],Vl.prototype,"ytVisibilityBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Vl.prototype,"data",void 0);_.D([_.Lx({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],Vl);
_.B(Vl,"yt-bumper-user-edu-content-view-model",function(){if(b0Y===void 0){var H=document.createElement("template");_.f(H,'\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>');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;Ngn===void 0&&(Ngn=document.createElement("template"));var w=Ngn;S.call(C,w.content.cloneNode(!0),H.content.firstChild);b0Y=H}H=b0Y;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var by7;var ENY,eGY=function(){if(ENY!==void 0)return ENY;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;by7===void 0&&(by7=document.createElement("template"));var w=by7;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return ENY=H};var umP;_.o_={};umP=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"]);_.o_.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var H=this.getContext_();return H?H.getTaskManager():_.rT},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var H=_.M3(this.hostElement,"yt-get-context-provider",{});H.detail&&H.detail.contextProvider?this.cachedProviderNode_=H.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return umP.has(this.hostElement.localName)},
getNetworkManager:function(){var H=this.getContext_();if(H)return H.getNetworkManager()}};var iA$,GQd,vNP,fWW;_.OA=function(H){var C=GQd.get(H);if(C&&(C=C.pop()))return fWW++,C;vNP++;try{var S=document.createElement(H)}catch(w){throw new _.X0("ElementPool failed to create element",H,w.message);}return S};
iA$=function(H){var C=H.is;if(C){var S=GQd.get(C);S||(S=[],GQd.set(C,S));var w=_.rh("ELEMENT_POOL_CONFIG")||{};S.length>=(w[C]!==void 0?w[C]:_.rh("ELEMENT_POOL_DEFAULT_CAP",0))||S.push(H)}else _.Bn(new _.X0("Element pool should only handle custom elements:",H.nodeName))};
GQd=new Map;vNP=0;fWW=0;var EU=new WeakMap,HAU=new WeakMap;var Vz1;_.XP=function(H,C,S){S=S===void 0?_.oh():S;this.JSC$13822_defaultPriority=H;this.signal=C;this.scheduler=S;this.nextJobDescriptor=0;this.JSC$13822_parkedJobs=[];this.scheduledJobs=new Map};
_.Ql=function(H,C){if(C){var S=_.mN();H.signal&&!_.WP(S,H.signal)?(S.addListener(H.signal,function(){H.processSignal()}),H.JSC$13822_parkedJobs.push({job:C,
priority:void 0})):lWP(H,C)}};
Vz1=function(H,C){if(C!==H.JSC$13822_defaultPriority){H.JSC$13822_defaultPriority=C;for(var S=_.Z(H.scheduledJobs.values()),w=S.next();!w.done;w=S.next())w=w.value,H.scheduler.cancelJob(w.jobId),w.jobId=H.scheduler.addJob(w.jobWrapper,C)}};
_.XP.prototype.flushJobs=function(){Vz1(this,10);this.processSignal()};
_.XP.prototype.cancel=function(){for(var H=_.Z(this.scheduledJobs),C=H.next();!C.done;C=H.next()){var S=_.Z(C.value);C=S.next().value;S=S.next().value;this.scheduler.cancelJob(S.jobId);this.scheduledJobs.delete(C)}this.JSC$13822_parkedJobs=[]};
_.XP.prototype.processSignal=function(){for(var H=_.Z(this.JSC$13822_parkedJobs),C=H.next();!C.done;C=H.next())C=C.value,lWP(this,C.job,C.priority);this.JSC$13822_parkedJobs=[]};
var lWP=function(H,C,S){S=S||H.JSC$13822_defaultPriority;if(S===10)yi(C);else{var w=H.nextJobDescriptor++,A=function(){C();H.scheduledJobs.delete(w)},J=H.scheduler.addJob(A,S);
H.scheduledJobs.set(w,{jobWrapper:A,jobId:J,priority:S})}};var oNi;_.dc={};oNi={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.dc.YtRendererstamperBehavior=[_.o_.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 H in this.stampDom){var C=this.stampDom[H];C&&C.id&&this.addReactiveSchema({type:"observe",method:{methodName:IHV(C.id),args:[{type:"wildcard",path:H}]}})}else{(H=(this.constructor.generatedFrom||this).observers)||(H=[]);for(C in this.stampDom){var S=this.stampDom[C];S&&S.id&&H.push(IHV(S.id)+"("+C+".*)")}this.constructor.generatedFrom.observers=H}},
addStampDomObserverFns_:function(){for(var H in this.stampDom){var C=this.stampDom[H];C.id?(this[IHV(C.id)]=this.rendererStamperObserver_.bind(this,H,C.id),this.hasDataPath_[H]=!1):(C=new _.X0("Bad rendererstamper config",this.is+":"+H),_.nC(C))}},
rendererStamperObserver_:function(H,C,S){if(S.path==H){if(S.value===void 0&&!this.hasDataPath_[H])return;this.hasDataPath_[H]=S.value!==void 0}this.rendererStamperApplyChangeRecord_(H,C,S)},
rendererStamperApplyChangeRecord_:function(H,C,S){var w=this.renderJobsMap_[C],A=null;H==S.path?(S=S.value,_.Dw(S)||(S=S===void 0||S===null?[]:[S]),H=this.stampDom[H],H.mapping&&(A=this.stampDomArray_.bind(this,S,C,H.mapping,H.reuseComponents,H.events,H.stamperStableList)),w&&w.cancel(),S=H.usePageScheduler?this.getTaskManager():void 0,w||H.initialRenderPriority==void 0)?H.renderPriority==void 0||w||(w=new _.XP(H.renderPriority,H.waitForSignal,S),this.renderJobsMap_[C]=w):(w=new _.XP(H.initialRenderPriority,
H.waitForSignal,S),this.renderJobsMap_[C]=w,A=function(J,c){J();Vz1(c,10)}.bind(this,A,w)):A=H+".splices"==S.path?this.stampDomArraySplices_.bind(this,H,C,S.value):this.forwardRendererStamperChanges_.bind(this,H,C,S);
w?_.Ql(w,A):A()},
forwardRendererStamperChanges_:function(H,C,S){var w=S.path.slice(H.length+1),A=this.getStampContainer_(C),J=w.indexOf("."),c=w.substring(0,J),Y=!1,M=0,m=parseInt(c,0);if(c[0]=="#"){Y=parseInt(c.substring(1),0);m=this.get(H);var W=this.get([H,c]);m[Y]==W?M=Y:M=m.indexOf(W);Y=!0}else isNaN(m)||(M=m,Y=!0);Y&&(w=w.substring(c.length+1),J=w.indexOf("."));c=_.PM(A).children[M];var y;if(A=(y=c==null?void 0:c.polymerController)!=null?y:c)w="data"+w.slice(J),typeof A.notifyPath!=="function"?_.Bn(new _.X0("notifyPath missing",
this.is+": "+H+", "+C)):S.value?A.notifyPath(w,S.value):A.notifyPath(w)},
stampDomArraySplices_:function(H,C,S){if(S&&S.indexSplices){var w=this.getStampContainer_(C);if(w){for(var A=_.PM(w),J=xG7(this.stampDom[H].reuseComponents),c=S.indexSplices.length,Y=0;Y<c;Y++){for(var M=S.indexSplices[Y],m=A.children[M.index],W=M.removed.length;W>0;W--)m&&m.parentElement&&(_.PM(m.parentElement).removeChild(m),J&&iA$(m),m=A.children[M.index]);W=this.stampDom[H].mapping;for(var y=M.index+M.addedCount,N=document.createDocumentFragment(),b=J,u=M.index;u<y;u++){var O=M.object[u],d=RPV(W,
O);if(d){var p=W[d];O=O[d];d=this.getComponentName_(p,O);var k=m?EU.has(m):!1;b&&m&&m.is==d&&k?(d=m,this.telemetry_.reuse++,m=m.nextElementSibling):b&&m&&k?(d=this.createComponent_(p,O,J),k=_.PM(m).nextElementSibling,A.insertBefore(d,k),SGw(this.is,A,m,J),m=k):(b=!1,d=this.createComponent_(p,O,J),N.appendChild(d));this.deferRenderStamperBinding_(d,p,O)}else p=new _.X0("Unimplemented type",H,C,w.tagName,Object.keys(O)[0]),_.nC(p)}A.insertBefore(N,m)}this.flushRenderStamperComponentBindings_();this.stampDom[H].events&&
_.M3(this.hostElement,"yt-rendererstamper-finished",{container:w})}else H=new _.X0("Container object not found",C,this.hostElement?this.hostElement.is:""),_.nC(H)}},
stampDomArray_:function(H,C,S,w,A,J){var c=this.getStampContainer_(C);if(c)if(C=_.PM(c),w=xG7(w),H){var Y=0,M=0,m;if(J=J===void 0?_.Bh("STAMPER_STABLE_LIST",!1):J||!1)for(m=C.firstElementChild;m&&!EU.has(m)&&H.length>M;){J=H[M];var W=RPV(S,J);if(W){if(this.getComponentName_(S[W],J[W])!=m.is){var y=this.createComponent_(S[W],J[W],w),N=_.PM(m).nextElementSibling;N?C.insertBefore(y,N):C.appendChild(y);SGw(this.is,C,m,w);m=y}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(m,S[W],J[W]);Y++;
M++;m=_.PM(m).nextElementSibling}else M++}sg$(this.is,C,Y,w);Y=m;if(H.length>M){J=document.createDocumentFragment();for(W=H.length;M<W;M++)if(y=H[M],N=RPV(S,y))m=this.createComponent_(S[N],y[N],w),this.deferRenderStamperBinding_(m,S[N],y[N]),J.appendChild(m);Y&&_.PM(Y).parentNode&&m&&!EU.has(m)?C.insertBefore(J,Y):C.appendChild(J)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();A&&_.M3(this.hostElement,"yt-rendererstamper-finished",{container:c})}else sg$(this.is,C,0,
w);else H=new _.X0("Container object not found",C,this.hostElement?this.hostElement.is:""),_.nC(H)},
getStampContainer_:function(H){return this.$&&this.$[H]||_.mY(this.hostElement).querySelector("#"+H)},
getComponentName_:function(H,C){return typeof H==="string"?H:H.matcher?H.matcher.call(this,C):H.component},
createComponent_:function(H,C,S){H=this.getComponentName_(H,C);try{var w=qW.has(H);if(S&&!w){var A=_.OA(H);try{_.Ed(A)}catch(J){S="Failed to clear styles for "+H+".",J.message&&(S+=" Original error: "+J.message),_.Bn(new _.X0(S))}}else A=document.createElement(H)}catch(J){return A="YtRendererStamperBehavior failed to create "+H+".",J.message&&(A+=" Original description: "+J.message),J.message="YtRendererStamperBehavior failed to create element",_.DZ(J,A),oNi.hasOwnProperty(H)?_.Bn(J):_.nC(J),document.createElement("SPAN")}this.telemetry_.create++;
return A},
deferRenderStamperBinding_:function(H,C,S){this.deferredBindingTasks_.push({component:H,typeOrConfig:C,data:S})},
flushRenderStamperComponentBindings_:function(){for(var H=0,C=this.deferredBindingTasks_.length;H<C;H++){var S=this.deferredBindingTasks_[H];if(!S)break;var w=void 0,A=void 0,J=void 0,c=void 0,Y=S.component,M=S.typeOrConfig;S=S.data;var m=(c=Y.polymerController)!=null?c:Y;c=Y.loggingStatus;try{c&&(c.isRendererStamper=!0);if(typeof M!=="string"){for(J in M.attributes)M.attributes[J]===!0?Y.setAttribute(J,""):M.attributes[J]===!1?Y.removeAttribute(J):Y.setAttribute(J,M.attributes[J]);for(A in M.params)m[A]=
M.params[A],Y!==m&&PY(Y.localName,A,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(w in M.properties){var W=M.properties[w];if(W){var y=aHZ(W);m[w]=this.get(y);Y!==m&&PY(Y.localName,w,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(w==="on-tap"||w==="on-click"){var N=this.get(y);Y.addEventListener("click",N);HAU.set(Y,{property:w,listener:{type:"element",eventName:"click",handler:N}})}}else{var b=new _.X0("Undefined property binding",w);_.nC(b)}}}if(M.classListBinding){var u=aHZ(M.classListBinding),
O=u?this[u]:null;if(O)for(w=0;w<O.length;w++)_.yQ(Y,O[w],!0)}m.data=S}finally{c&&(c.isRendererStamper=!1)}if(w=EU.get(Y))Y.hidden=!1,EU.delete(Y),_.rT.cancelJob(w)}this.deferredBindingTasks_.length=0}}];_.qs(_.n(function(H){function C(){S().seconds&&J(hlV({seconds:Number(S().seconds)-Date.now()/1E3}))}
var S=H.targetTimestamp;H=H.className;var w=_.Z(_.mB("",void 0,"TM9kjd")),A=w.next().value,J=w.next().value;_.Ph(function(){C();var c=setInterval(function(){C()},1E3);
_.PN(function(){clearInterval(c)})});
return _.q("yt-countdown",{class:_.eJ("ytCountDownHost",H)},_.q("div",null,A))},"i"),"yt-countdown",{props:{targetTimestamp:_.GH,
className:_.Yb}});_.PS=new _.W4("KEY_MANAGER_TOKEN");var jgW={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"};_.$4=_.n(function(H){var C=_.sW("a",H.ref),S=H.aTagConfig?H.aTagConfig:_.EF(function(){var w,A,J,c,Y;var M=(Y=_.L7((J=H.command)==null?void 0:J.call(H)))!=null?Y:(c=H.command)==null?void 0:c.call(H);return _.U4({innertubeCommand:M,skipOnClick:(w=H.skipOnClick)==null?void 0:w.call(H),defaultTarget:(A=H.target)==null?void 0:A.call(H)})||{}},void 0,"TAvz0");
_.d6(function(){_.E("mweb_enable_keto_batch_pages")||(C.value._data=S()._data,C.value.params=S().params)},"dcjvAe");
return _.q("a",{el:C,href:function(){return S().href$},
rel:function(){return S().rel$},
class:function(){var w,A;return(A=S().className)!=null?A:(w=H.className)==null?void 0:w.call(H)},
style:function(){var w;if((w=H.style)==null?0:w.call(H))return H.style();var A;return((A=H.disabled)==null?0:A.call(H))?"pointer-events:none":""},
"aria-haspopup":function(){return!!S()["aria-haspopup$"]},
"force-new-state":GG(function(){return S()["force-new-state$"]}),
title:GG(function(){var w,A;return(A=S().title$)!=null?A:(w=H.title)==null?void 0:w.call(H)}),
role:GG(function(){var w;return((w=H.role)==null?void 0:w.call(H))||S().role$}),
target:GG(function(){return S().target$}),
dir:GG(function(){var w;return((w=H.dir)==null?void 0:w.call(H))||S().dir}),
tabindex:function(){var w;return S().tabindex$?Number(S().tabindex$):(w=H.tabIndex)==null?void 0:w.call(H)},
"aria-hidden":function(){var w,A;return(A=S()["aria-hidden$"])!=null?A:(w=H.ariaHidden)==null?void 0:w.call(H)},
"aria-label":function(){var w,A;return(A=S()["aria-label$"])!=null?A:(w=H.ariaLabel)==null?void 0:w.call(H)},
"aria-current":H.ariaCurrent,"aria-disabled":H.disabled,"aria-labelledby":H.ariaLabelledby,"aria-describedby":H.ariaDescribedby,"aria-selected":H.ariaSelected,"tab-identifier":H.tabIdentifier,"on:pointerdown":_.um(function(w){var A,J;return void((J=(A=S()).onpointerdown)==null?void 0:J.call(A,w))}),
"on:click":_.um(function(w){var A,J;(J=(A=S()).onclick)==null||J.call(A,w);var c;(c=H.onClick)==null||c.call(H,w)}),
"on:focusin":_.um(function(w){var A;(A=H.onFocusin)==null||A.call(H,w)}),
"on:focusout":_.um(function(w){var A;(A=H.onFocusout)==null||A.call(H,w)})},H.children)},"j");var zdZ={duration:1E3,easing:"ease",fill:"forwards"};YGE.componentType=oE;var Tf0={duration:1E3,easing:"ease",fill:"forwards"},QD1=_.n(function(H){var C=_.sW("animated-rolling-character"),S=void 0,w=function(){var Y,M;return wV((Y=H.character)==null?void 0:Y.call(H))||wV((M=H.previousCharacter)==null?void 0:M.call(H))},A=_.Z(_.mB(0,void 0,"Dgrnr")),J=A.next().value,c=A.next().value;
_.Ph(function(){if(window.ResizeObserver&&_.E("web_fix_rolling_numbers_zoom_safari")){var Y=new ResizeObserver(function(){var M,m,W=Math.round(((m=(M=C.value.querySelector("div"))==null?void 0:M.getBoundingClientRect().height)!=null?m:0)*100)/100;W&&c(W)});
Y.observe(C.value);_.PN(function(){Y.disconnect()})}});
_.d6(function(){var Y=_.E("web_fix_rolling_numbers_zoom_safari")?J:H.marginMultiplier;if(Y()){var M;(M=S)==null||M.cancel();if(w()){var m;M=((m=H.previousCharacter)==null?0:m.call(H))?Number(H.previousCharacter())+10:H.rollUp()?0:30;var W;if((W=H.shouldAnimate)==null||!W.call(H)){var y,N;M-=qGZ((y=H.character)==null?void 0:y.call(H),(N=H.previousCharacter)==null?void 0:N.call(H),H.rollUp(),M)}}else{M=H.rollUp()?0:2;var b;(b=H.shouldAnimate)!=null&&b.call(H)||(m=M,W=H.rollUp()?-1:1,M=m-W)}C.value.style.marginTop=
"-"+M*Y()+"px";var u;if((u=H.shouldAnimate)==null?0:u.call(H)){var O,d;S=mFu(C.value,(O=H.character)==null?void 0:O.call(H),(d=H.previousCharacter)==null?void 0:d.call(H),H.rollUp(),M,w(),Y())}else{var p;C.value.style.display=((p=H.character)==null?0:p.call(H))?"":"none"}}},"jKjMhe");
return _.q("animated-rolling-character",{el:C,class:"animatedRollingCharacterHost"},_.q(_.T,{cond:w,then:function(){return _.q(Oy7,null)},
else:function(){return _.q(Xy7,{character:H.character})}}))},"k");
QD1.idomCompat=!0;var WXW=_.E("web_enable_sink_animated_rolling_character_and_number")?QD1:YGE,d4d=_.E("web_enable_sink_animated_rolling_character_and_number")?QD1:M0w(YGE),Oy7=_.n(function(){for(var H=[],C=1;C<30;C++)H.push(_.q("div",null,C%10));return _.q(_.F9,null,_.q("div",null,"\u00a0"),H,_.q("div",null,"\u00a0"))},"l"),Xy7=_.n(function(H){var C=H.character;
return _.q(_.F9,null,_.q("div",null,"\u00a0"),_.q(_.T,{cond:function(){return!(C==null?0:C())||_.YE(C==null?void 0:C())},
then:function(){return _.q("div",null,"\u00a0")},
else:function(){return _.q("div",null,C)}}),_.q("div",null,"\u00a0"))},"m");yz6.componentType=oE;var PcU=_.n(function(H){var C=void 0,S=void 0,w=function(){var J;return((J=H.fontSizeMultiplier)==null?0:J.call(H))?H.heightPx()*H.fontSizeMultiplier():H.heightPx()},A=_.EF(function(){if(!H.numberText())return[];
var J,c,Y=((J=H.forceRollUp)==null?void 0:J.call(H))||!S||!((c=H.numberValue)==null?0:c.call(H))||S<H.numberValue(),M,m=H.numberText();J=w();c=!((M=H.shouldAnimate)==null||!M.call(H));M=[];var W=0,y=0,N=(C?C.replace(/\D/g,"").length:0)-(m?m.replace(/\D/g,"").length:0),b=C?C.split(/(\d)/).filter(Boolean):[];for(m=m.split(/(\d)/).filter(Boolean);N<0;){var u=m[y];M.push({character:u,rollUp:Y,marginMultiplier:J,shouldAnimate:c});y++;wV(u)&&N++}for(;W<N;)u=b[W],M.push({previousCharacter:u,rollUp:Y,marginMultiplier:J,
shouldAnimate:c}),W++,wV(u)||N++;for(;y<m.length;)N=m[y],u=b[W],wV(N)===wV(u)?(y++,W++):wV(N)?(W++,N=void 0):wV(u)&&(y++,u=void 0),M.push({character:N,previousCharacter:u,rollUp:Y,marginMultiplier:J,shouldAnimate:c});C=H.numberText();var O;S=(O=H.numberValue)==null?void 0:O.call(H);return M},void 0,"kWiBv");
return _.q("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return H.numberText()?["height: "+w()+"px;","line-height: "+H.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.q(_.Vq,{each:A,keyBy:"INDEX"},function(J){return _.q(d4d,{character:function(){return J().character},
previousCharacter:function(){return J().previousCharacter},
marginMultiplier:function(){return J().marginMultiplier},
rollUp:function(){return J().rollUp},
shouldAnimate:function(){return J().shouldAnimate}})}))},"n");
PcU.idomCompat=!0;_.$4i=_.E("web_enable_sink_animated_rolling_character_and_number")?PcU:M0w(yz6);var pyP=function(H,C){this.fillAnimation=new Animation(edE(H),document.timeline);this.strokeAnimation=new Animation(ukW(C),document.timeline)};
pyP.prototype.play=function(){var H,C;(C=(H=this.fillAnimation).play)==null||C.call(H);var S,w;(w=(S=this.strokeAnimation).play)==null||w.call(S)};
pyP.prototype.cancel=function(){var H,C;(C=(H=this.fillAnimation).cancel)==null||C.call(H);var S,w;(w=(S=this.strokeAnimation).cancel)==null||w.call(S)};_.pw=_.n(function(H){var C=H.model;var S=H.pointerDownEvent;var w=H.pointerUpEvent;var A=H.pointerLeaveEvent;var J=H.hovered;H=_.sW("yt-touch-feedback-shape");var c=_.sW("div"),Y=_.sW("div"),M=_.Z(_.fu(function(){return(w==null?0:w())||(A==null?0:A())?!1:!(S==null||!S())||!1})),m=M.next().value,W=M.next().value,y=void 0,N=function(){!y&&Y.value&&c.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(y=new pyP(Y.value,c.value));
var k;(k=y)==null||k.play()},b=function(){var k;
(k=y)==null||k.cancel()},u=function(){var k;
(k=y)==null||k.cancel()};
_.d6(function(){(w==null?0:w())&&N()},"bg756c");
_.d6(function(){(S==null?0:S())&&b()},"QAes8c");
_.d6(function(){(A==null?0:A())&&u()},"YaFbrc");
M=_.um(function(){N();W(!1)});
var O=_.um(function(){b();W(!0)}),d=_.um(function(){u();
W(!1)});
_.PN(function(){if(y){var k;(k=y)==null||k.cancel();y=void 0}});
var p={};m=_.eJ("yt-spec-touch-feedback-shape",function(){return G30(C().color)},function(){return fEE(C().thumbnailSize,!!C().isExtended)},(p["yt-spec-touch-feedback-shape--focused"]=function(){return!!C().focused&&!C().disabled},p["yt-spec-touch-feedback-shape--circular"]=function(){return!!C().circular},p["yt-spec-touch-feedback-shape--down"]=m,p["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!C().triggerEvents},p["yt-spec-touch-feedback-shape--hovered"]=function(){return J==
null?void 0:J()},p));
return _.q("yt-touch-feedback-shape",{el:H,class:m,style:_.vb({"margin-top":function(){return C().customTopExtend?"-"+C().customTopExtend+"px":void 0}}),
"on:mousedown":O,"on:mouseup":M,"on:pointerleave":d,"on:touchstart":O,"on:touchend":M,"aria-hidden":!0},_.q(_.T,{cond:function(){return!!C().hoverEffect},
then:function(){return _.q("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.vb({"border-radius":function(){return C().borderRadius},
background:function(){var k;if(k=C().hoverEffect){for(var R=[],L=_.Z((k==null?void 0:k.lightingTechniques)||[]),t=L.next();!t.done;t=L.next())switch(t.value){case 2:var g=t=void 0;R.push("linear-gradient(135deg, "+((t=k)==null?void 0:(g=t.palette)==null?void 0:g.keyLight)+",transparent)")}var ii,FW;R.push((ii=C().hoverEffect)==null?void 0:(FW=ii.palette)==null?void 0:FW.background);k=R.join(", ")}else k=void 0;return k}})})}}),_.q("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.vb({"border-radius":function(){return C().borderRadius},
"border-color":function(){var k,R;return(k=C().touchEffect)==null?void 0:(R=k.palette)==null?void 0:R.background}}),
el:c}),_.q("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.vb({"border-radius":function(){return C().borderRadius},
"background-color":function(){var k,R;return(k=C().touchEffect)==null?void 0:(R=k.palette)==null?void 0:R.background}}),
el:Y}))},"o");
_.pw.idomCompat=!0;var kQn={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 k4=_.WZ();k4=k4.toLowerCase();if(_.z6(k4,"android")){var hGn=k4.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);hGn&&parseFloat(hGn[1])<100||k4.match("("+Object.keys(kQn).join("|")+")")};var nNM=_.n(function(H){return _.q(_.T,{cond:H.aTagConfig,then:function(C){return _.q(_.$4,{aTagConfig:C,disabled:H.disabled,className:H.className,style:H.style,title:H.title,ariaLabel:H.ariaLabel,ariaCurrent:function(){var S,w;return((S=H.toggleable)==null?void 0:S.call(H))&&((w=H.toggled)==null?void 0:w.call(H))},
ref:H.ref},H.children)},
else:function(){return _.q("button",{el:_.Zl(H.ref),"on:click":_.um(function(C){var S;return(S=H.onClick)==null?void 0:S.call(H,C)}),
class:H.className,title:H.title,style:H.style,disabled:H.disabled,"aria-pressed":function(){var C,S;return((C=H.toggleable)==null?0:C.call(H))?!((S=H.toggled)==null||!S.call(H)):void 0},
"aria-label":H.ariaLabel,"aria-disabled":H.visiblyDisabled,"aria-hidden":H.ariaHidden,tabindex:H.tabIndex},H.children)}})},"p"),BYi=_.n(function(H){var C=H.data;
var S=H.hasIconLeading;var w=H.hasIconLeadingTrailing;var A=H.hasIconTrailing;var J=H.iconButton;var c=H.iconClassName;var Y=H.secondaryIconClassName;var M=H.icon;var m=H.secondaryIcon;var W=H.textContentClassName;return _.q(hZ,{className:"",style:"display: inherit; justify-content: center"},_.q(_.T,{debugInstance:"V4z1Uc",cond:function(){return M&&(S()||w()||(J==null?void 0:J()))},
then:function(){return _.q(hZ,null,_.q("div",{class:c,"aria-hidden":"true"},M==null?void 0:M()))}}),_.q(_.T,{debugInstance:"ok3btb",
cond:function(){return(C().buttonText||C().animatedTextProps||C().formattedButtonText)&&!(J==null?0:J())},
then:function(){return _.q(hZ,null,_.q(r2Y,{className:W,iconPosition:function(){return C().iconPosition},
text:function(){return C().buttonText},
oneOffCustomTextWrap:function(){return C().oneOffCustomTextWrap},
formattedButtonText:function(){return C().formattedButtonText},
animatedTextProps:function(){return C().animatedTextProps}}))}}),_.q(_.T,{debugInstance:"DO5Rz",
cond:A,then:function(){return _.q(hZ,null,_.q("div",{class:c},M==null?void 0:M()))}}),_.q(_.T,{debugInstance:"bnojSc",
cond:w,then:function(){return _.q(hZ,null,_.q("div",{class:Y},m==null?void 0:m()))}}),_.q(_.T,{debugInstance:"HN3kad",
cond:function(){return!C().disabled&&!0},
then:function(){return _.q(_.pw,{model:function(){var y=C();return{color:y.style==="overlay-dark"?4:y.style==="overlay"?y.type==="filled"?4:3:y.type==="filled"||y.style==="call-to-action-inverse"||y.style==="mono-inverse"?2:1}}})}}))},"q"),r2Y=_.n(function(H){var C=function(){var S,w;
return((S=H.iconPosition)==null?void 0:S.call(H))==="icon-with-label"||((w=H.oneOffCustomTextWrap)==null?void 0:w.call(H))};
return _.q("div",{class:H.className,"aria-hidden":function(){var S,w,A;return((S=H.ariaHidden)==null?void 0:S.call(H))&&(!((w=H.animatedTextProps)==null||!w.call(H))||!((A=H.formattedButtonText)==null||!A.call(H)))}},_.q(_.X9,null,_.q(_.o6,{when:function(){var S;
return(S=H.animatedTextProps)==null?void 0:S.call(H)}},function(){return _.q(_.$4i,{numberText:function(){return H.animatedTextProps().numberText},
numberValue:function(){return H.animatedTextProps().numberValue},
heightPx:function(){return H.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return H.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return H.animatedTextProps().shouldAnimate},
forceRollUp:function(){return H.animatedTextProps().forceRollUp}})}),_.q(_.o6,{when:function(){var S;
return(S=H.formattedButtonText)==null?void 0:S.call(H)}},function(){return _.q(_.uZ,{text:function(){return Object.assign({},H.formattedButtonText(),{lineBreakMode:C()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":H.formattedButtonText().lineBreakMode,
alignment:C()?"TEXT_ALIGNMENT_CENTER":H.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!C()}})}),_.q(_.o6,{when:function(){var S,w;
return((S=H.iconPosition)==null?void 0:S.call(H))==="icon-with-label"&&((w=H.text)==null?void 0:w.call(H))}},function(){return _.q(_.uZ,{text:function(){return{content:H.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.q(_.Og,null,function(){return H.text})))},"r"),D4_=_.n(function(H){return _.q(_.T,{debugInstance:"kM7Sgc",
cond:H.hasLabel,then:function(){var C;return _.q("label",{class:H.className},H.children,(C=H.textContent)==null?void 0:C.call(H))},
else:function(){return H.children}})},"s"),hZ=_.n(function(H){return H.children},"t");var Ko7=_.n(function(H){var C=_.Zl(),S=_.Z(_.mB(void 0,void 0,"Ug77pc")),w=S.next().value,A=S.next().value;S=_.Z(_.mB(void 0,void 0,"XGf7Zb"));var J=S.next().value,c=S.next().value;S=_.Z(_.mB(0,void 0,"Ygnx7b"));var Y=S.next().value,M=S.next().value;S=_.um(function(){switch(Y()){case 1:M(2);break;case 3:var W,y;(y=(W=C.value).hidePopover)==null||y.call(W);M(0);A(void 0);c(void 0)}});
_.d6(function(){if(H.show()){var W;A((W=H.children)==null?void 0:W.call(H));var y;c((y=H.location)==null?void 0:y.call(H));switch(Y()){case 0:var N,b;(b=(N=C.value).showPopover)==null||b.call(N);M(1);break;case 3:M(1);var u,O;(O=(u=C.value).hidePopover)==null||O.call(u);var d,p;(p=(d=C.value).showPopover)==null||p.call(d)}}else switch(Y()){case 2:M(3);break;case 1:var k,R;(R=(k=C.value).hidePopover)==null||R.call(k);A(void 0);c(void 0);M(0)}},"lOyibf");
_.$T(function(){});
var m={};return _.q("yt-popover",{popover:"manual",el:C,style:_.vb({left:function(){var W;return(W=J())==null?void 0:W.left},
top:function(){var W;return(W=J())==null?void 0:W.top},
bottom:function(){var W;return(W=J())==null?void 0:W.bottom},
right:function(){var W;return(W=J())==null?void 0:W.right}}),
class:_.eJ("ytPopoverComponentHost",H.classNames,(m.ytPopoverComponentHostClosing=function(){return Y()===3},m.ytPopoverComponentHostSeeThrough=function(){var W;
return((W=H.seeThrough)==null?void 0:W.call(H))===!0},m)),
"on:animationend":S},w)},"u");var tzP={left:"0px",right:"auto",top:"0px",bottom:"auto"},Lo1=function(){var H=this;this.registerTooltipElement=function(S){var w;H.tooltipElement=(w=S.querySelector("yt-popover"))!=null?w:void 0};
var C=_.Z(_.mB(void 0,void 0,"z4iHWd"));this.state=C.next().value;this.setState=C.next().value;C=_.Z(_.mB(void 0,void 0,"uKDcaf"));this.schedulerJobID=C.next().value;this.setSchedulerJobID=C.next().value},P_V=function(H,C){var S=oW,w=_.rT.addJob(function(){var A=gNU(S,H,C);
S.setState({text:C.text,location:A,anchor:H,offset:C.offset})},4,C.delay);
S.setSchedulerJobID(w)},$FE=function(){var H=oW,C=H.schedulerJobID();
C&&(_.rT.cancelJob(C),H.setSchedulerJobID(void 0));H.setState(void 0)};
Lo1.prototype.notify=function(H,C){var S;((S=this.state())==null?void 0:S.anchor)===H&&(S=gNU(this,H,C),this.setState({text:C.text,location:S,anchor:H,offset:C.offset}))};
var gNU=function(H,C,S){var w=C.getBoundingClientRect();C=window.innerWidth;var A=window.innerHeight,J=S.location,c=S.offset;S=S.text;if(H=H.tooltipElement){var Y=getComputedStyle(H);H=Y.font;var M=Vi(Y.lineHeight),m=Vi(Y.paddingLeft),W=Vi(Y.paddingRight),y=Vi(Y.paddingTop);Y=Vi(Y.paddingBottom);var N=document.createElement("canvas").getContext("2d");N.font=H;S={width:N.measureText(S).width+m+W,height:M+y+Y}}else S=void 0;H=S;if(!H)return tzP;S=H.width;H=H.height;m=c+H;y=c+S;M=w.top>=m;m=A-w.bottom>=
m;W=w.left>=y;y=C-w.right>=y;Y=J;switch(J){case "top":!M&&m&&(Y="bottom");break;case "bottom":!m&&M&&(Y="top");break;case "left":!W&&y&&(Y="right");break;case "right":!y&&W&&(Y="left")}switch(Y){case "top":J=w.left+w.width/2-S/2;w=w.top-H-c;break;case "bottom":J=w.left+w.width/2-S/2;w=w.bottom+c;break;case "left":J=w.left-S-c;w=w.top+w.height/2-H/2;break;case "right":J=w.right+c;w=w.top+w.height/2-H/2;break;default:J=w.left+w.width/2-S/2,w=w.bottom+c}c=Object.assign({},tzP);J+S>C?(c.right="0px",c.left=
"auto"):(c.left=Math.round(Math.max(0,J)+window.scrollX)+"px",c.right="auto");w+H>A?(c.bottom="0px",c.top="auto"):(c.top=Math.round(Math.max(0,w)+window.scrollY)+"px",c.bottom="auto");return c};var oW;oW=new Lo1;_.U4Y=_.n(function(){var H=_.EF(function(){var S;return(S=oW.state())==null?void 0:S.text},void 0,"jgLmfd"),C=_.EF(function(){var S;
return(S=oW.state())==null?void 0:S.location},void 0,"zV1Udb");
return _.q("yt-tooltip",{class:"ytTooltipContainerHost",el:_.Zl(oW.registerTooltipElement),"aria-hidden":"true"},_.q(Ko7,{classNames:"ytTooltipContainerContent",location:C,show:function(){return!!H()},
seeThrough:!0},H))},"v");var VAE=Aa("stamper-context");_.nw=_.n(function(H){var C=H.data;var S=H.icon;var w=H.iconName;var A=H.animateIcon;var J=H.secondaryIcon;var c=H.secondaryIconName;var Y=H.focusedOverride;var M=H.clientOnlyWizTooltipsEnabled;k3u();var m=vh6(C),W=m.size,y=m.style;H=m.disabled;var N=m.onTap,b=m.alignByText,u=m.aTagConfig,O=m.customColors,d=m.segmentedPosition,p=m.toggled,k=m.toggleable,R=m.accessibilityLabel,L=m.onToggle,t=m.iconPosition,g=m.oneOffCustomTextWrap,ii=m.disableTextEllipsis,FW=m.disableBackdropFilter,cZ=m.tooltipText,
eZ=m.ariaHidden,ND=m.tabIndex,bi=m.buttonText,pU=m.formattedButtonText,O$=m.animatedTextProps,R0=m.onClickRateLimitMs,m1=OA7(C,S,J,w,c,Y,A),c7=m1.type;S=m1.shouldFocus;w=m1.hasIconLeading;A=m1.hasIconTrailing;var tV=m1.hasIconLeadingTrailing,Td=m1.hasIconOnly;J=m1.hasIconOnly40;var Mi=m1.hasIconWithLabel;c=m1.iconButton;var fP=m1.visiblyDisabled;Y=m1.overrideSmallSizeIcon;m=m1.iconToRender;m1=m1.secondaryIconToRender;var eo=_.Z(pkW(cZ)).next().value,Cr=function(qi){N==null||N(qi);k()&&(L==null||L(qi))},
wu=_.EF(function(){return R0==null?void 0:R0()},void 0,"wrF7V"),xE=_.EF(function(){return wu()?K17(Cr,wu()):Cr},void 0,"fG5dyf"),En={},So={};
return _.q(D4_,{className:_.eJ("yt-spec-button-shape-with-label",(En["yt-spec-button-shape-with-label--is-overlay"]=function(){return y()==="overlay"||y()==="overlay-dark"},En)),
hasLabel:Mi,textContent:function(){return _.q(r2Y,{text:bi,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:g,iconPosition:t,formattedButtonText:pU,animatedTextProps:O$})}},_.q(nNM,{aTagConfig:u,
className:_.eJ("yt-spec-button-shape-next",function(){return Xk6(c7())},function(){return fP()?void 0:QgD(y())},function(){return dF7(W())},(So["yt-spec-button-shape-next--disabled"]=fP,So["yt-spec-button-shape-next--focused"]=S,So["yt-spec-button-shape-next--icon-trailing"]=A,So["yt-spec-button-shape-next--icon-leading"]=w,So["yt-spec-button-shape-next--icon-leading-trailing"]=tV,So["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return tV()&&!(bi()||pU())},So["yt-spec-button-shape-next--icon-button"]=
function(){return Td()||Mi()},So["yt-spec-button-shape-next--icon-only-default"]=J,So["yt-spec-button-shape-next--align-by-text"]=b,So["yt-spec-button-shape-next--segmented-start"]=function(){return d()==="start"},So["yt-spec-button-shape-next--segmented-end"]=function(){return d()==="end"},So["yt-spec-button-shape-next--override-small-size-icon"]=Y,So["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=g,So["yt-spec-button-shape-next--disable-text-ellipsis"]=ii,So["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!FW()&&!_.E("web_disable_backdrop_filter")},So)),
style:function(){var qi=O();if(qi){var H3=qi.color;var I2=qi.backgroundColor;qi=qi.borderColor;var RV="";H3&&(RV+="color: "+H3+";");I2&&(RV+="background-color: "+I2+";");qi&&(RV+="border-color: "+qi+";");H3={style:RV}}else H3={};return H3.style},
onClick:function(qi){xE()(qi)},
disabled:H,ariaLabel:R,toggleable:k,toggled:p,title:function(){return(M==null?0:M())||!cZ()?"":cZ()},
visiblyDisabled:fP,ariaHidden:eZ,tabIndex:ND,ref:function(qi){(M==null?0:M())&&eo(qi)}},_.q(BYi,{data:C,
hasIconLeading:w,hasIconLeadingTrailing:tV,hasIconTrailing:A,iconButton:c,icon:m,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:m1})))},"w");
_.nw.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.rc=_.n(function(H){var C=H.data;var S=H.className;var w=H.style;var A=H.useOutlinedIcon;var J=H.buttonOverrides;var c=H.animatedTextProps;var Y=H.onClick;var M=H.target;var m=_.sW("button-view-model",function(k){k.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var R=C().targetId;R&&_.O1_(_.iZ(),R,k);return function(){VOU(_.iZ(),k)}}),W=function(){return C().iconName},y,N=(y=_.JA().resolve(_.AA(_.sU)))==null?void 0:y(),b=function(){var k=C();
var R=J==null?void 0:J(),L=c==null?void 0:c(),t=M==null?void 0:M();if(k){var g=t0E(k.type);var ii=!!k.title||!!k.titleFormatted;var FW=!(!k.iconName&&!k.iconImage);ii=FW&&!ii?"icon-only":FW?k.iconTrailing||k.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;ii==="icon-only-40"&&(g="text");var cZ;FW=(cZ=R==null?void 0:R.state)!=null?cZ:LXu(k.state);var eZ,ND=(eZ=R==null?void 0:R.disabled)!=null?eZ:k.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||k.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.E("web_button_vm_refactor_disabled")){var bi;ND=(bi=R==null?void 0:R.disabled)!=null?bi:FW==="disabled"}L=L&&L.numberText&&!isNaN(Number(L.numberValue))?L:void 0;eZ=Object;bi=eZ.assign;cZ=k.title;var pU=k.titleFormatted,O$=k.accessibilityText,R0=KXZ(k.style),m1=ghZ(k.buttonSize);t=DFi(k,m,ND,Y,t);ND=ND&&!k.onDisabledTap;var c7=rz$(k,m),tV=k.customFontColor,Td=k.customBackgroundColor;var Mi=k.customBorderColor;var fP=k.customDarkThemeFontColor,eo=k.customDarkThemeBackgroundColor,Cr=k.customDarkThemeBorderColor;
tV=N&&fP?fP:tV;Td=N&&eo?eo:Td;Mi=N&&Cr?Cr:Mi;Mi={color:tV?_.aw(tV):void 0,backgroundColor:Td?_.aw(Td):void 0,borderColor:Mi?_.aw(Mi):void 0};k=bi.call(eZ,{},{buttonText:cZ,formattedButtonText:pU,animatedTextProps:L,accessibilityLabel:O$,style:R0,type:g,state:FW,size:m1,iconPosition:ii,onTap:t,disabled:ND,aTagConfig:c7,customColors:Mi,tooltipText:k.tooltip},R)}else k={style:"mono",type:"text",state:"active",size:"M"};k.focused=d();return k},u=function(){return V0Z(b(),!!C().iconName)};
H=_.Z(_.mB(!1,void 0,"WVXhrd"));y=H.next().value;var O=H.next().value,d=y;H=_.um(function(){var k=_.JA().resolve(_.AA(_.PS));k&&O(k.isKeyBoardInUse());return!1});
y=_.um(function(){O(!1);return!1});
_.d6(function(){var k,R=_.e(C==null?void 0:(k=C())==null?void 0:k.onVisible,_.tx);R&&_.gC(R,{disableClickTracking:!0})},"w0lGYc");
var p=_.E("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");return _.q("button-view-model",{el:m,class:_.eJ("ytSpecButtonViewModelHost",S),"on:focusin":H,"on:focusout":y},_.q(_.T,{cond:function(){var k;return(C==null?0:(k=C())==null?0:k.iconImage)?{sources:[C().iconImage]}:void 0},
then:function(k){return _.q(_.nw,{data:b,icon:function(){return _.q(_.Jg,{data:k,alt:"",targetWidth:u,targetHeight:u,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:p})},
else:function(){return _.q(_.nw,{data:b,icon:function(){return _.q(_.lm,{icon:W,active:function(){return(A==null?0:A())?!1:b().toggled},
animateIcon:function(){var k;return!!(w==null?0:(k=w())==null?0:k.animateIcon)},
size:u})},
clientOnlyWizTooltipsEnabled:p})}}))},"x");
_.rc.idomCompat={callbacks:{onClick:!0}};_.qs(_.n(function(H){return _.q("yt-button-view-model",{id:H.id,class:_.eJ(H.scopingClassName,H.classes),icon:function(){var C;return(C=H.icon)==null?void 0:C.call(H)},
"dialog-dismiss":function(){var C;return((C=H.dialogDismiss)==null?0:C.call(H))?"":void 0}},_.q(_.rc,{data:function(){var C;
return(C=H.data)==null?void 0:C.call(H)},
className:function(){var C;return(C=H.className)==null?void 0:C.call(H)},
style:function(){var C;return(C=H.style)==null?void 0:C.call(H)},
useOutlinedIcon:function(){var C;return(C=H.useOutlinedIcon)==null?void 0:C.call(H)},
buttonOverrides:function(){var C;return(C=H.buttonOverrides)==null?void 0:C.call(H)},
animatedTextProps:function(){var C;return(C=H.animatedTextProps)==null?void 0:C.call(H)},
onClick:function(C){var S;return(S=H.onClick)==null?void 0:S.call(H,C)}}))},"y"),"yt-button-view-model",{props:{data:_.GH,
className:_.GH,style:_.GH,useOutlinedIcon:_.GH,buttonOverrides:_.GH,animatedTextProps:_.GH,onClick:_.Yb,scopingClassName:_.GH,id:_.GH,icon:_.GH,dialogDismiss:_.GH,classes:_.GH,target:_.Yb}});_.qs(_.n(function(H){var C=H.data;var S=H.id;var w=H.className;var A=H.iconName;var J=H.animateIcon;var c=H.secondaryIconName;H=_.Z(_.mB(!1,void 0,"TtJl8"));var Y=H.next().value,M=H.next().value,m=function(){var y=_.JA().resolve(_.AA(_.PS));y&&M(y.isKeyBoardInUse())},W=function(){M(!1)};
H=_.sW("yt-button-shape",function(y){if(_.JA().resolve(_.AA(_.PS)))return y.addEventListener("focusin",m),y.addEventListener("focusout",W),function(){y.removeEventListener("focusin",m);y.removeEventListener("focusout",W)}});
return _.q("yt-button-shape",{el:H,id:S,class:w},_.q(_.T,{cond:C,then:function(){return _.q(_.nw,{data:C,iconName:A,secondaryIconName:c,focusedOverride:Y,animateIcon:J})}}))},"z"),"yt-button-shape",{props:{data:_.GH,
id:_.GH,className:_.GH,iconName:_.GH,animateIcon:_.GH,secondaryIconName:_.GH,clientOnlyWizTooltipsEnabled:_.GH,disableUpgrade:_.GH},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var BS=function(){var H=_.X.apply(this,arguments)||this;H.isGoalActive=!0;return H};
_.G(BS,_.X);BS.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
BS.prototype.progressBarChanged=function(){var H=_.mY(this.hostElement).querySelector("#progress-bar-progress"),C,S,w,A=(w=Number((C=this.creatorGoalState)==null?void 0:C.currentGoalCount)/Number((S=this.creatorGoalState)==null?void 0:S.totalGoalCount)*100)!=null?w:0,J;H.style.width=((J=Math.min(A,100))!=null?J:0)+"%"};
BS.prototype.goalStateChanged=function(){var H;this.isGoalActive=((H=this.creatorGoalState)==null?void 0:H.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var C;H={"--yt-progress-bar-color":Q96((C=this.creatorGoalState)==null?void 0:C.progressBarColor)};_.Ed(this.hostElement,H)};
BS.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.JJ.Object.defineProperties(BS.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var H;return this.isGoalActive&&!((H=this.creatorGoalState)==null||!H.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.creatorGoalState)==null?0:H.endTimestampMs){var C;H=Number((C=this.creatorGoalState)==null?void 0:C.endTimestampMs)/1E3;return{seconds:String(H)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.creatorGoalState)==null?0:H.themedTargetImage){var C;H=_.e((C=this.creatorGoalState)==null?void 0:C.themedTargetImage,grV);return this.isAppDarkTheme()?H==null?void 0:H.imageDark:H==null?void 0:H.imageLight}}}});
_.JJ.Object.defineProperties(BS,{template:{configurable:!0,enumerable:!0,get:function(){return eGY()}}});
BS.prototype.goalStateChanged=BS.prototype.goalStateChanged;BS.prototype.progressBarChanged=BS.prototype.progressBarChanged;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],BS.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.qU),_.K("design:type",Object)],BS.prototype,"ytLiveChatReduxBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],BS.prototype,"ytRendererBehavior",void 0);
_.D([_.V({selectorArgs:["data.creatorGoalEntityKey"],selector:function(H,C){return _.Ea(H.entities,"creatorGoalEntity",C)}}),
_.K("design:type",Object)],BS.prototype,"creatorGoalState",void 0);_.D([_.V(),_.K("design:type",Object)],BS.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],BS.prototype,"isGoalActive",void 0);_.D([_.l("creatorGoalState","isGoalActive"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],BS.prototype,"shouldShowCountdown",null);_.D([_.l("creatorGoalState"),_.K("design:type",Object),_.K("design:paramtypes",[])],BS.prototype,"endTimestamp",null);
_.D([_.l("creatorGoalState"),_.K("design:type",Object),_.K("design:paramtypes",[])],BS.prototype,"targetIconThemedImage",null);_.D([_.fx("creatorGoalState.currentGoalCount"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],BS.prototype,"progressBarChanged",null);_.D([_.fx("creatorGoalState.creatorGoalState"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],BS.prototype,"goalStateChanged",null);
_.D([_.Lx({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],BS);_.B(BS,"yt-creator-goal-progress-flow-view-model",function(){return eGY()},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var RG7;var IW1;var DM=function(){return _.X.apply(this,arguments)||this};
_.G(DM,_.X);DM.prototype.attached=function(){var H,C,S;if(this==null?0:(H=this.data)==null?0:(C=H.pdgPurchasedBumperLoggingDirectives)==null?0:(S=C.loggingDirectives)==null?0:S.trackingParams){var w,A,J;IEp(this==null?void 0:(w=this.data)==null?void 0:(A=w.pdgPurchasedBumperLoggingDirectives)==null?void 0:(J=A.loggingDirectives)==null?void 0:J.trackingParams)}};
DM.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],DM.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],DM.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],DM.prototype,"data",void 0);_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],DM);
_.B(DM,"yt-live-chat-item-bumper-view-model",function(){if(IW1===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;RG7===void 0&&(RG7=document.createElement("template"));var w=RG7;S.call(C,w.content.cloneNode(!0),H.content.firstChild);IW1=H}H=IW1;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var aWU;var x4b;_.j4=function(H,C){this.data=H;this.actions=C;this.data=H;this.actions=C};
_.IW=function(){};_.Kw={};_.Kw.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(H,C){aE$(this.hostElement,H,C)},
getNavigationEndpointPopupAction:function(H){return xFi(H,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(H,C){HbE(this.hostElement,H,C,this.openPopupConfig)}};var ZbW=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.tZ={};
_.tZ.YtEndpointBehavior=[_.Kw.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.rh("openPopupConfig");(this.useClickHandler=_.Bh("useClickHandler",!1))?this.hostElement.addEventListener("click",es(this,this.onEndpointClick_)):(nm(this.hostElement,"tap",es(this,this.onEndpointTap_)),nm(this.hostElement,"touchend",es(this,this.onEndpointTouchEnd_)));nm(this.hostElement,"touchstart",es(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
es(this,this.onEndpointTapStart_))},
onEndpointClick_:function(H){Szp(this.hostElement,H,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(H){var C=this.hostElement,S=this.openPopupConfig,w=this.disableCommandHandlerOverride;w=w===void 0?!1:w;var A=ibZ(H);if(A){A.href&&iA(A.href);var J=H.detail;var c=J.sourceEvent;J=J.preventer;c=c.button!==void 0?c.button===0&&!XB(c):J?!XB(J):!0;A.data&&c&&C86(C,A,H,S,w)}},
onEndpointTouchEnd_:function(H){XB(H)||ibZ(H)&&H.preventDefault()},
onEndpointTapStart_:function(H){JHu(H)}}];_.Lw={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(H){for(var C=_.a8.getInstance(),S=_.Z(Object.keys(H)),w=S.next();!w.done;w=S.next()){var A=w.value;w=H[A];if(this&&this[w]){var J=C.actionRoutingMap.get(A);J||(J=new Map,C.actionRoutingMap.set(A,J));C.registerActionHandler(this,A,this[w].bind(this),J)}else A=Error("ld"),A.params=w,_.tE(A)}},
unregisterActionMap:function(H){_.H5(_.a8.getInstance(),H,this)}}]};var Pb=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_"+(_.E("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.E("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.E("enable_web_delhi_icons")?120:60,lazyLoad:!0}],["LIKE_DELHI_PLAYER",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v5.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_DELHI_PLAYER",totalFrames:120,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:_.E("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:_.E("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:_.E("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var dW;var $b=new Map;var uu6=window.matchMedia("(forced-colors: active)").matches;var HBn;var iB1;var CSb=new _.W4("LOTTIE_LOADER_TOKEN");_.UA=_.n(function(H){var C=H.data;var S=H.className;var w=H.animationName;var A=H.animationRef;var J=H.elRefForInterop;var c=_.ja("lottie-component"),Y;_.PN(function(){var m;return void((m=Y)==null?void 0:m.destroy())});
var M;_.d6(function(){var m=_.ps(w);if(m!==M){M=m;var W=Object.assign({},{animationName:m,animationRef:_.ps(A)},_.ps(C));try{_.JA().resolve(CSb)().then(function(b){var u;(u=Y)==null||u.destroy();var O,d;u=(d=J==null?void 0:(O=J())==null?void 0:O.value)!=null?d:c.value;O=W.animationRef;d=W.listeners;b=b.loadAnimation(Object.assign({},{container:u},W.animationConfig));O&&(O.lottieEl=b);if(d)for(u=_.Z(Object.entries(d)),O=u.next();!O.done;O=u.next())d=_.Z(O.value),O=d.next().value,(d=d.next().value)&&
b.addEventListener(O,d);Y=b})}catch(b){m=b;
var y="LottieComponent error.";m.message&&(y+=" Original description: "+m.message);_.DZ(m,y);_.Bn(m);var N;((N=W.listeners)==null?0:N.error)&&W.listeners.error(m)}}},"nrJISd");
return _.q(SX$,{cond:function(){return!(J==null?0:J())},
then:function(){return _.q("lottie-component",{class:_.eJ("ytLottieComponentHost",S),el:c})}})},"A");_.qs(_.n(function(H){return _.q("ytd-lottie-player",{id:H.id,hidden:H.hidden,class:H.className,"aria-label":H.ariaLabel,style:"display: block;"},_.q(_.UA,{data:H.data,animationName:function(){var C;return((C=H.data().animationConfig)==null?void 0:C.name)||""},
animationRef:function(){return H.data().animationRef}}))},"B"),"ytd-lottie-player",{props:{data:_.GH,
id:_.GH,hidden:_.GH,className:_.GH,ariaLabel:_.GH}});var R_=function(){var H=_.X.apply(this,arguments)||this;H.animationRef={};H.delhiIconsEnabled=_.E("enable_web_delhi_icons");return H};
_.G(R_,_.X);_.F=R_.prototype;
_.F.handlePropertyChange=function(){var H=this.animatedIcon,C=this.active,S=this.isDarkTheme;if(H){var w=this.previousActive!==C;this.previousActive=C;this.animationRef.lottieEl?w&&this.toggleAnimation(C,H.totalFrames):C?this.initializeAnimationAsToggled(H.lottiePlayerProps,H.totalFrames):this.initializeAnimationAsUntoggled(H.lottiePlayerProps);H.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=H.type;this.lottiePlayerProps=this.computeLottiePlayerProps(H,S)}};
_.F.computeLottiePlayerProps=function(H,C){var S=this.deepCloneLottiePlayerProps(H);C?(C=H.nameDarkTheme,H=H.pathDarkTheme):(C=H.name,H=H.path);S.animationConfig.name=C;(C=$b.get(H))?S.animationConfig.animationData=C:S.animationConfig.path=H;return S};
_.F.initializeAnimationAsToggled=function(H,C){H.animationConfig.initialSegment=[C-1,C]};
_.F.initializeAnimationAsUntoggled=function(H){H.animationConfig.initialSegment=void 0};
_.F.toggleAnimation=function(H,C){if(H){var S;(S=this.animationRef.lottieEl)==null||S.playSegments([0,C],!0)}else{var w;(w=this.animationRef.lottieEl)==null||w.playSegments([0,1],!0)}};
_.F.deepCloneLottiePlayerProps=function(H){var C=Object.assign({},H.lottiePlayerProps.animationConfig);H=Object.assign({},H.lottiePlayerProps);H.animationConfig=C;return H};
R_.prototype.handlePropertyChange=R_.prototype.handlePropertyChange;_.D([_.V(),_.K("design:type",Object)],R_.prototype,"animatedIcon",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],R_.prototype,"active",void 0);_.D([_.V(),_.K("design:type",Boolean)],R_.prototype,"isDarkTheme",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",String)],R_.prototype,"animatedIconType",void 0);_.D([_.V(),_.K("design:type",Boolean)],R_.prototype,"previousActive",void 0);
_.D([_.V(),_.K("design:type",Object)],R_.prototype,"lottiePlayerProps",void 0);_.D([_.V(),_.K("design:type",Object)],R_.prototype,"animationRef",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],R_.prototype,"delhiIconsEnabled",void 0);_.D([_.fx("animatedIcon","active","isDarkTheme"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],R_.prototype,"handlePropertyChange",null);_.D([_.Lx({is:"yt-animated-icon",disableElementRegistration:!0})],R_);
_.B(R_,"yt-animated-icon",function(){if(iB1===void 0){var H=document.createElement("template");_.f(H,'\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>');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;HBn===void 0&&(HBn=document.createElement("template"));var w=HBn;S.call(C,w.content.cloneNode(!0),H.content.firstChild);iB1=H}H=iB1;return H},{mode:2});var S0n;var s3P;var ow7=_.n(function(H){var C=_.ja("span"),S=pp(function(){return{value:null,cancelled:!1}});
_.PN(function(){S.cancelled=!0});
var w=_.EF(H.data,{equals:function(A,J){return A.iconName===J.iconName&&A.iconStyle===J.iconStyle&&A.iconSize===J.iconSize&&A.iconSetName===J.iconSetName&&A.iconSelected===J.iconSelected}},"AoOoyf");
_.d6(function(){var A,J=(A=H.options)==null?void 0:A.call(H);VNZ(C,S,w(),J)},"Tie9e");
return _.q("span",{class:"yt-icon-shape",el:C})},"C");
ow7.idomCompat=!0;var oG$=["youtube_fill","youtube_outline"];var j3U=new _.Ll({type:"iconset",value:void 0}),I_=function(){var H=_.X.apply(this,arguments)||this;H.isDarkTheme=document.documentElement.hasAttribute("dark");H.iconName="";H.iconsetName="yt-icons";H.iconset=null;H.missingIconSet=!1;H.iconType=null;H.iconShapeDataSignal=_.mB(void 0,void 0,"b0v7Ac");H.renderingOptionsSignal=_.mB({iconWidth:"100%",iconHeight:"100%",iconFilter:H.iconFilter},void 0,"Ls6l3e");H.wizHasRendered=!1;H.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return H};
_.G(I_,_.X);I_.prototype.onDarkModeToggledAction=function(H){H!==this.isDarkTheme&&(this.isDarkTheme=H)};
I_.prototype.handlePropertyChange=function(){var H=this,C,S,w,A,J,c,Y,M,m,W,y,N,b,u,O,d,p;return _.z(function(k){switch(k.nextAddress){case 1:if(C=!H.icon&&!H.iconName||!H.isAttached)return k.return();S=H;w=S.icon;A=S.size;J=S.defaultToFilled;c=S.active;Y=S.targetContainer;H.toggleContainerClass(Y);_.E("kevlar_use_wil_icons")&&w&&(M=wdw(w),H.iconType=M.length?M[1]:null);if(w){k.jumpTo(2);break}H.iconsetName="";H.iconName="";return k.yield(H.renderIcon(Y,w),3);case 3:return k.return();case 2:m=wO7(w);
W=wdw(m);W.length&&(H.iconsetName=W[0],H.iconName=W[1]);if(!_.E("kevlar_use_wil_icons")){k.jumpTo(4);break}y=I_;N=As7;b=H.iconType;u=H.active;O=H.defaultToFilled;d=H.size;p=H.iconsetName;return k.yield(Jsb(),6);case 6:return k.yield(N.call(y,b,u,O,d,p,k.yieldResult),5);case 5:H.iconShapeData=k.yieldResult;case 4:if(H.shouldRenderIconShape(Y)){k.jumpTo(7);break}return k.yield(H.determineIconSet(m,c,J,A,Y),7);case 7:return k.yield(H.renderIcon(Y,w),0)}})};
I_.prototype.toggleContainerClass=function(H){H?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var wO7=function(H){return!_.E("default_to_innertube_icon")||H.indexOf(":")>0?H:_.bJ(H)};
_.F=I_.prototype;_.F.determineIconSet=function(H,C,S,w){var A=this;return _.z(function(J){return J.nextAddress==1?_.E("kevlar_system_icons")||_.rh("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.rh("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?J.yield(A.switchToYtSysIconset(H,C,S,w),3):J.jumpTo(2):J.nextAddress!=2?J.return():J.yield(A.useYtSysIconsetForMissingIcons(H,C,S,w),0)})};
_.F.switchToYtSysIconset=function(H,C,S,w){var A=this,J,c,Y,M,m,W,y;return _.z(function(N){switch(N.nextAddress){case 1:if(!H||A.iconsetName!=="yt-icons"&&A.iconsetName!=="yt-sys-icons"){N.jumpTo(0);break}J=wdw(H);c=J[1];c=_.TgV(c);_.E("enable_polymer_icons_replace_underscores_dash")&&c.includes("_filled")&&(c=c.replace(/_filled/g,"-filled"));return N.yield(NW(c,!0),3);case 3:return Y=N.yieldResult,N.yield(NW(c,!1),4);case 4:if((M=N.yieldResult)||C&&Y)A.iconsetName="yt-sys-icons";A.iconName=A.getIconName(c,
C,S,M,Y);if(w===24){N.jumpTo(0);break}m="yt-sys-icons"+w+":"+A.iconName;return N.yield(NW(m,!1,!0),6);case 6:return W=N.yieldResult,N.yield(NW(m,!0,!0),7);case 7:y=N.yieldResult;A.iconName=A.getIconName(c,C,S,W,y);if(!C&&W||C&&y)A.iconsetName="yt-sys-icons"+w;_.oT(N)}})};
_.F.getIconName=function(H,C,S,w,A){H.includes("-filled")&&(H=H.replace("-filled",""));return A&&(C||S)?H+"-filled":H};
_.F.useYtSysIconsetForMissingIcons=function(H,C,S,w){var A=this,J,c;return _.z(function(Y){if(Y.nextAddress==1)return A.iconsetName!=="yt-icons"?Y.jumpTo(0):Y.yield(NW(A.iconName,!1,!1,!0),3);if(Y.nextAddress!=4)return J=Y.yieldResult,Y.yield(NW(A.iconName,!1),4);c=Y.yieldResult;if(J||!c)return Y.jumpTo(0);A.iconsetName="yt-sys-icons";return Y.yield(A.switchToYtSysIconset(H,C,S,w),0)})};
_.F.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var Jsb=function(){return _.z(function(H){try{return H.return(_.JA().resolve(_.E4))}catch(C){return H.return(new Promise(function(S){_.mN().parkOrScheduleJob(function(){S(_.JA().resolve(_.E4))},2,"ci")}))}})},As7=function(H,C,S,w,A,J){w=w===void 0?24:w;
if(H){H=H.toLowerCase();var c=H.endsWith("_filled")||H.endsWith("-filled");C={iconName:H,iconStyle:(C===void 0?0:C)||(S===void 0?0:S)||c?"youtube_fill":"youtube_outline",iconSize:w,iconSetName:A===void 0?"yt-icons":A};S=!!J.resolveIcon(C);S||(C.iconSize=void 0,S=!!J.resolveIcon(C));!S&&c&&(C.iconName=H.substring(0,H.length-7),C.iconSize=w,S=!!J.resolveIcon(C),S||(C.iconSize=void 0,S=!!J.resolveIcon(C)));S||(C.iconStyle=void 0,S=!!J.resolveIcon(C));S||_.Bn(new _.X0("Icon not supported",{iconName:C.iconName,
iconStyle:C.iconStyle,iconSize:C.iconSize,iconType:H}));return S?C:void 0}};
_.F=I_.prototype;_.F.shouldRenderIconShape=function(H){if(!_.E("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;H=this.getContainer(H);return!Gip(H,this.icon)};
_.F.renderIcon=function(H,C){var S=this,w,A,J,c,Y,M,m,W;return _.z(function(y){switch(y.nextAddress){case 1:if(C&&S.icon!==C)return y.return();w=S.getContainer(H);A=Gip(w,S.icon);if(S.shouldRenderIconShape(H)&&S.iconType)return S.applyIconShape(A,w),y.return();S.removeIconShape();if(!w)return y.return();S.iconName===""&&S.iconset&&w&&(S.removeStaticIcon(S.iconset,w),A&&S.removeAnimatedIcon(w));if(S.iconName===""&&S.iconset||!S.iconsetName||!j3U)return y.return();S.iconset=j3U.byKey(S.iconsetName);
if(!S.iconset)return S.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.uA(S,S.onIconsetAdded)),y.return();S.missingIconSet&&(S.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.uA(S,S.onIconsetAdded)));c=(J=A||S.isAnimatedIcon?Ew6(S.icon):void 0)&&!J.lazyLoad;M=J&&((Y=J)==null?void 0:Y.lazyLoad)&&(J.lottiePlayerProps.animationConfig.animationData?!0:$b.get(S.isDarkTheme?J.pathDarkTheme:J.path)?!0:!1);if(c||M)return S.applyAnimatedIcon(w,J,S.iconset),y.return();if(M||
(m=J)==null||!m.lazyLoad){y.jumpTo(2);break}W=vwp(J,S.isDarkTheme);S.applyStaticIcon(S.iconset,w,S.iconName,H,A);return y.yield(W,3);case 3:return y.yield(S.renderIcon(S.targetContainer,S.icon),4);case 4:return y.return();case 2:S.applyStaticIcon(S.iconset,w,S.iconName,H,A),_.oT(y)}})};
_.F.getContainer=function(H){var C,S=(C=vnp(this.hostElement))==null?void 0:C.host;C=!!S&&!!S.polymerController;if(!H||C)return H?this.getTargetContainer(H,S):this.hostElement};
_.F.getTargetContainer=function(H,C){var S=_.mY(C).querySelector("#"+H);S||(H=new _.X0("yt-icon container missing",C.is,H),_.nC(H));return S};
_.F.applyStaticIcon=function(H,C,S,w,A){A&&this.removeAnimatedIcon(C);this.removeIconShape();A=A&&!!this.iconType&&!!this.iconShapeData&&_.E("kevlar_use_wil_icons");try{A?this.applyIconShape(!1,C):H.applyIcon(C,S)}catch(J){this.handleError(J,w,C)}};
_.F.applyIconShape=function(H,C){this.iconset&&C&&(this.removeStaticIcon(this.iconset,C),H&&this.removeAnimatedIcon(C));H={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var S=_.Z(this.iconShapeDataSignal);C=S.next().value;S=S.next().value;var w=_.Z(this.renderingOptionsSignal),A=w.next().value;w=w.next().value;S(this.iconShapeData);w(H);if(!this.wizHasRendered)for(this.wizHasRendered=!0,H=_.Z(Obw(C,A)).next().value;H.firstChild;)_.mY(this.hostElement).appendChild(H.firstChild)};
_.F.removeIconShape=function(){if(_.E("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.F.removeStaticIcon=function(H,C){H.removeIcon(C)};
_.F.applyAnimatedIcon=function(H,C,S){this.removeStaticIcon(S,H);this.removeIconShape();var w;S=this.animatedIconElement&&((w=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:w.type)===C.type;if(this.animatedIconElement&&S){this.animatedIconElement.polymerController.animatedIcon=C;var A;((A=this.animatedIconElement)==null?void 0:A.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(H),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=C,this.animatedIconElement.polymerController.active=this.active,_.E("delhi_modern_web_player_icons")?(C=efV(H,this.icon)&&H.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=C?C.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.E("kevlar_use_wil_icons")?
H.insertBefore(this.animatedIconElement,H.childNodes[0]):(H=_.mY(H),H.insertBefore(this.animatedIconElement,H.childNodes[0]))};
_.F.removeAnimatedIcon=function(H){_.E("kevlar_use_wil_icons")?this.animatedIconElement&&H.contains(this.animatedIconElement)&&H.removeChild(this.animatedIconElement):(H=_.mY(H),this.animatedIconElement&&H.contains(this.animatedIconElement)&&H.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.F.handleError=function(H,C,S){_.DZ(H,this.iconName,C,S);C=Gip(S,this.icon);var w=!1;window.location.href.includes("JpymaW6Lh2w")?w=!0:S._svgIcon&&(S=(S=S._svgIcon.parentNode)?S.tagName:"unknown",_.DZ(H,S),S==="YT-ICON"&&H.name==="NotFoundError"?w=!0:H.name==="NotFoundError"&&C&&(w=!0));w?_.Bn(H):_.nC(H)};
_.JJ.Object.defineProperties(I_,{template:{configurable:!0,enumerable:!0,get:function(){if(s3P===void 0){var H=document.createElement("template");_.f(H,"\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");H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;
S0n===void 0&&(S0n=document.createElement("template"));var w=S0n;S.call(C,w.content.cloneNode(!0),H.content.firstChild);s3P=H}H=s3P;return H}}});
I_.prototype.handlePropertyChange=I_.prototype.handlePropertyChange;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],I_.prototype,"actionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",String)],I_.prototype,"icon",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],I_.prototype,"active",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],I_.prototype,"defaultToFilled",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],I_.prototype,"isAnimatedIcon",void 0);
_.D([_.V({value:24}),_.K("design:type",Number)],I_.prototype,"size",void 0);_.D([_.V({value:""}),_.K("design:type",String)],I_.prototype,"targetContainer",void 0);_.D([_.V(),_.K("design:type",Object)],I_.prototype,"animatedIconElement",void 0);_.D([_.V(),_.K("design:type",Object)],I_.prototype,"isDarkTheme",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],I_.prototype,"ariaHidden",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",String)],I_.prototype,"ariaLabel",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",String)],I_.prototype,"role",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",String)],I_.prototype,"tabindex",void 0);_.D([_.V(),_.K("design:type",String)],I_.prototype,"style",void 0);_.D([_.V(),_.K("design:type",String)],I_.prototype,"iconFilter",void 0);
_.D([_.fx("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype",Promise)],I_.prototype,"handlePropertyChange",null);_.D([_.Lx({is:"yt-icon",noInjection:!0})],I_);var XsD="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),do6=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var Fsd={};Fsd.YtPlaintextBehavior=[_.rA,{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(H){H.preventDefault();H=H.clipboardData.getData("text/plain");document.execCommand("insertText",!1,H)},
preventRichTextFormatting_:function(H){_.yK&&(H=H.detail.keyboardEvent,H.stopImmediatePropagation(),H.preventDefault())}}];var ZBb;var csU;var a_=function(){var H=_.X.apply(this,arguments)||this;H.ignoreShadyDom=!1;H.hasChange_=!1;H.hasSetTitle_=!1;H.useIOObserverForVisibilityLogging_=_.E("kevlar_use_vimio_behavior")&&_.rh("INNERTUBE_CLIENT_NAME")==="WEB";H.ytFormattedStringObserverHandlerKeys_=void 0;return H};
_.G(a_,_.X);_.F=a_.prototype;_.F.created=function(){this.useIOObserverForVisibilityLogging_=_.E("kevlar_use_vimio_behavior")&&_.rh("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.F.ready=function(){_.rh("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_()};
_.F.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.F.detached=function(){this.unobserveIOObservers_()};
_.F.clearContents_=function(){for(var H=this.getRoot(),C=H.lastChild;C&&C.tagName!=="STYLE";){try{H.removeChild(C)}catch(S){break}C=H.lastChild}};
_.F.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var H=_.Z(this.ytFormattedStringObserverHandlerKeys_),C=H.next();!C.done;C=H.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(C.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.F.resetForAttributedString=function(){var H=this.getRoot();!H.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),H.appendChild(this.ytAttributedStringElementRef))};
_.F.resetForFormattedString=function(){var H=this.getRoot(),C=H.querySelector("yt-attributed-string");C&&(this.ytAttributedStringElementRef=H.removeChild(C))};
_.F.textChanged=function(){this.textChanged_(this.text)};
_.F.textChanged_=function(H){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!H||!H.runs&&!H.simpleText;if(_.E("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var C=this.hostElement.firstChild;C&&C.nodeName==="FONT";){var S=C;C=C.nextSibling;this.hostElement.removeChild(S)}C=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
S=H.simpleText;var w;!S&&((w=H.runs)==null?void 0:w.length)===1&&this.isSimpleString_(H.runs[0])&&(S=H.runs[0].text);S!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.rh("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(S!==void 0){try{C.textContent=S}catch(A){}C.textContent||(this.isEmpty=!0)}else H=H.runs,S!==void 0&&(H=[{text:S}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),H&&this.updateText_(H),
C.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.F.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)};
_.F.computeAriaLabel_=function(H){return H};
_.F.computeEllipsisTruncateStyling=function(H,C){return H&&!C};
_.F.computeUseAttributedString=function(H){return _.E("web_replace_formatted_with_attributed_string")&&R2$(H)&&!this.disableAttributedString&&!this.enableContentEditable};
_.F.setNodeStyle_=function(H,C){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.E("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?C.removeAttribute("dir"):C.setAttribute("dir","auto");C.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");C.style.color="";var S=null;this.noStyles||(H.bold&&(C.classList.add("bold"),S="bold"),H.deemphasize&&(C.classList.add("deemphasize"),S="deemphasize"),H.italics&&C.classList.add("italic"),
H.strikethrough&&C.classList.add("strikethrough"),H.errorUnderline&&(C.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),H.bracket&&C.classList.add("bracket"),H.textColor&&(C.style.color=_.Iw(H.textColor)));S!==C.getAttribute("style-target")&&(S?C.setAttribute("style-target",S):C.removeAttribute("style-target"))};
_.F.setUpVisibilityLogging_=function(H,C){var S=this;this.setNodeTrackingParams_(H,C);var w;((w=C.data)==null?0:w.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(H=this.ytRendererBehavior.visibilityObserver.observe(C,function(A){var J=S.ytRendererBehavior.getVisibilityLogger();J&&J.reportShown(A)},this.ytRendererBehavior.visibilityOptionVisible_),C=this.ytRendererBehavior.visibilityObserver.observe(C,function(A){var J=S.ytRendererBehavior.getVisibilityLogger();
J&&J.reportHidden(A)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(H),this.ytFormattedStringObserverHandlerKeys_.push(C))};
_.F.setNodeTrackingParams_=function(H,C){C.data||(C.data={});if((H=H.loggingDirectives?H.loggingDirectives.trackingParams:null)||C.data.trackingParams)C.data.trackingParams=H};
_.F.computeHasLinkOnly_=function(H){return!(!H||H.length!==1||this.noEndpoints||!H[0].navigationEndpoint)};
_.F.getRoot=function(){var H=this.buildScopeDomOptions();return this.enableContentEditable?_.mY(_.mY(this.hostElement,H).querySelector("[contenteditable]")):_.mY(this.hostElement,H)};
_.F.fixContenteditableScope=function(){var H=function(C){C&&(C.nodeType===1&&C.classList&&(C.classList.add("style-scope"),C.classList.add("yt-formatted-string")),C.childNodes&&C.childNodes.forEach(function(S){H(S)}))};
H(this.getRoot())};
_.F.updateText_=function(H){for(var C=H.length,S=this.getRoot(),w=S.firstChild;w&&w.nodeName==="STYLE";)w=w.nextSibling;for(var A=0;A<C&&w;){var J=H[A],c=_.E("remove_cr_char")&&J.text?J.text.replace("\r",""):J.text;if(this.isSimpleString_(J)&&!this.useMixedDirectionFormattedStrings)if(w.nodeName==="#text"){w.textContent!=c&&(w.textContent=c);A++;w=w.nextSibling;continue}else break;if(_.e(J,D5))break;else if(!this.noEndpoints&&J.navigationEndpoint){if(w.nodeName!=="A")break;this.setDataOnAnchor_(w,
J.navigationEndpoint)}else if(w.nodeName!=="SPAN")break;this.setNodeStyle_(J,w);this.setUpVisibilityLogging_(J,w);w.textContent!=c&&(w.textContent=c);A++;w=w.nextSibling}if(w)for(J=S.lastChild,w=A?w.previousSibling:null;J&&J!=w;){try{S.removeChild(J)}catch(Y){break}J=S.lastChild}A!==C&&this.addTextNodes_(H,A)};
_.F.addTextNodes_=function(H,C){for(var S=document.createDocumentFragment(),w=H.length;C<w;C++){var A=H[C],J=_.E("remove_cr_char")&&A.text?A.text.replace("\r",""):A.text;if(this.isSimpleString_(A)&&!this.useMixedDirectionFormattedStrings)S.appendChild(document.createTextNode(J));else{var c=_.e(A,D5);if(c){if(c.image){var Y=document.createElement("img");c.isCustomEmoji||Y.classList.add("small-emoji");Y.classList.add("emoji");c.isCustomEmoji&&(Y.dataset.emojiId=c.emojiId);Y.src=_.TG(c.image.thumbnails,
this.emojiSize);(A=this.get("image.accessibility.accessibilityData.label",c))?Y.alt=A:c.shortcuts&&c.shortcuts.length>0?Y.alt=c.shortcuts[0]:c.emojiId&&(Y.alt=c.emojiId);S.appendChild(Y);this.hasEmoji=!0}}else!this.noEndpoints&&A.navigationEndpoint?(Y=document.createElement("a"),Y.classList.add("yt-simple-endpoint"),Y.setAttribute("spellcheck","false"),this.setDataOnAnchor_(Y,A.navigationEndpoint)):Y=document.createElement("span"),this.setNodeStyle_(A,Y),this.setUpVisibilityLogging_(A,Y),Y.appendChild(document.createTextNode(J)),
S.appendChild(Y)}}this.getRoot().appendChild(S)};
_.F.isSimpleString_=function(H){return(this.noEndpoints||!H.navigationEndpoint)&&!_.e(H,D5)&&(this.noStyles||!(H.bold||H.deemphasize||H.italics||H.strikethrough||H.errorUnderline||H.bracket||H.textColor))&&!H.loggingDirectives};
_.F.getRawText=function(){return _.jt(this.text)};
_.F.getFirstRunText=function(){var H;if(((H=this.text)==null?0:H.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.F.setFirstRunText=function(H){var C;((C=this.text)==null?0:C.runs)&&this.text.runs[0]&&(this.text.runs[0].text=H,this.textChanged_(this.text))};
_.F.setDataOnAnchor_=function(H,C){var S=this;!_.E("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(C)||this.isSignalServiceEndpoint_(C)?(H.onclick=this.serviceEndpointHandler_(C),gP(H,"#")):giU({text:this.text,command:C},function(){wQu(H,C,S.target)})};
_.F.isServiceEndpoint_=function(H){var C;return!((C=_.e(H==null?void 0:H.commandMetadata,_.u9))==null||!C.sendPost)};
_.F.isSignalServiceEndpoint_=function(H){return!!_.e(H,_.eR)};
_.F.serviceEndpointHandler_=function(H){var C=this;return function(S){_.WH(C.hostElement,[H]);S.preventDefault()}};
_.F.overrideAriaLabelChanged_=function(){var H=this.getRoot();this.enableContentEditable&&H&&H.setAttribute("aria-label",this.overrideAriaLabel)};
_.F.enableContentEditableChanged_=function(){var H=this,C=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),C=_.mY(this.hostElement,C),!C.lastChild||C.lastChild instanceof HTMLElement&&C.lastChild.id!=="contenteditable-root"){var S=document.createElement("div");S.id="contenteditable-root";S.setAttribute("contenteditable","true");S.setAttribute("dir","auto");S.onfocus=function(){H.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
C.appendChild(S);this.overrideAriaLabel&&S.setAttribute("aria-label",this.overrideAriaLabel)}}else S=_.WY(this.hostElement).firstChild,S instanceof HTMLElement&&S.id==="contenteditable-root"&&_.mY(this.hostElement,C).removeChild(S)};
_.F.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.F.getNodesForVisibilityLogging_=function(){return _.Yv(this.getRoot().childNodes,function(H){var C;return!((C=H.data)==null||!C.trackingParams)})};
_.F.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.F.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var H=this.ytRendererBehavior.getVisibilityLogger();H&&this.getNodesForVisibilityLogging_().forEach(function(C){H.reportShown(C)})}};
_.F.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var H=this.ytRendererBehavior.getVisibilityLogger();H&&this.getNodesForVisibilityLogging_().forEach(function(C){H.reportHidden(C)})}};
_.JJ.Object.defineProperties(a_.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.E("enable_mixed_direction_formatted_strings")}}});
a_.prototype.enableContentEditableChanged_=a_.prototype.enableContentEditableChanged_;a_.prototype.overrideAriaLabelChanged_=a_.prototype.overrideAriaLabelChanged_;a_.prototype.ellipsisTruncateChanged_=a_.prototype.ellipsisTruncateChanged_;a_.prototype.textChanged=a_.prototype.textChanged;_.D([_.v(Fsd.YtPlaintextBehavior),_.K("design:type",Object)],a_.prototype,"ytPlaintextBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],a_.prototype,"ytComponentBehavior",void 0);
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],a_.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],a_.prototype,"text",void 0);_.D([_.V(),_.K("design:type",Boolean)],a_.prototype,"noEndpoints",void 0);_.D([_.V(),_.K("design:type",Boolean)],a_.prototype,"noStyles",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],a_.prototype,"isDarkTheme",void 0);
_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],a_.prototype,"splitLines",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],a_.prototype,"forceDefaultStyle",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],a_.prototype,"ellipsisTruncate",void 0);_.D([_.V(),_.K("design:type",Object)],a_.prototype,"ignoreShadyDom",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.K("design:type",Boolean)],a_.prototype,"ellipsisTruncateStyling",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.K("design:type",String)],a_.prototype,"ariaLabel",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],a_.prototype,"isEmpty",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.K("design:type",Boolean)],a_.prototype,"hasLinkOnly_",void 0);_.D([_.V(),_.K("design:type",Boolean)],a_.prototype,"hasEmoji",void 0);_.D([_.V(),_.K("design:type",Boolean)],a_.prototype,"disableAttributedString",void 0);_.D([_.V(),_.K("design:type",Boolean)],a_.prototype,"isOverlay",void 0);_.D([_.V(),_.K("design:type",Boolean)],a_.prototype,"linkInheritColor",void 0);
_.D([_.V(),_.K("design:type",Boolean)],a_.prototype,"noPreWrap",void 0);_.D([_.V(),_.K("design:type",Boolean)],a_.prototype,"userInput",void 0);_.D([_.V({value:16}),_.K("design:type",Number)],a_.prototype,"emojiSize",void 0);_.D([_.V(),_.K("design:type",String)],a_.prototype,"target",void 0);_.D([_.V(),_.K("design:type",Boolean)],a_.prototype,"enableContentEditable",void 0);_.D([_.V(),_.K("design:type",String)],a_.prototype,"overrideAriaLabel",void 0);
_.D([_.V(),_.K("design:type",Boolean)],a_.prototype,"respectHtmlDir",void 0);_.D([_.V(),_.K("design:type",Boolean)],a_.prototype,"respectLangDir",void 0);_.D([_.l("plaintextOnly"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],a_.prototype,"useMixedDirectionFormattedStrings",null);_.D([_.V({computed:"computeUseAttributedString(text)"}),_.K("design:type",Boolean)],a_.prototype,"useYtAttributedString",void 0);
_.D([_.fx("text"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],a_.prototype,"textChanged",null);_.D([_.fx("ellipsisTruncate"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],a_.prototype,"ellipsisTruncateChanged_",null);_.D([_.fx("overrideAriaLabel"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],a_.prototype,"overrideAriaLabelChanged_",null);
_.D([_.fx("enableContentEditable"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],a_.prototype,"enableContentEditableChanged_",null);_.D([_.Lx({is:"yt-formatted-string",disableElementRegistration:!0})],a_);
_.B(a_,"yt-formatted-string",function(){if(csU===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;ZBb===void 0&&(ZBb=document.createElement("template"));var w=ZBb;S.call(C,w.content.cloneNode(!0),H.content.firstChild);csU=H}H=csU;return H});var Y07;var zP7;var MYW;var q0d;var x4=function(){var H=_.X.apply(this,arguments)||this;H.focused=!1;H.disabled=!1;H.isOverlay=!1;return H};
_.G(x4,_.X);x4.prototype.triggerDown=function(){if(!this.disabled){_.yQ(this.hostElement,"down",!0);var H;(H=this.currentAnimation)==null||H.cancel()}};
x4.prototype.triggerUp=function(){if(!this.disabled){_.yQ(this.hostElement,"down",!1);var H=this.fillElement;var C=this.strokeElement;typeof GroupEffect==="function"?(H=new GroupEffect([edE(H),ukW(C)]),H=new Animation(H,document.timeline)):H=new pyP(H,C);this.currentAnimation=H;var S;(S=this.currentAnimation)==null||S.play()}};
_.D([_.lA(".stroke"),_.K("design:type",HTMLElement)],x4.prototype,"strokeElement",void 0);_.D([_.lA(".fill"),_.K("design:type",HTMLElement)],x4.prototype,"fillElement",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],x4.prototype,"focused",void 0);_.D([_.V(),_.K("design:type",Object)],x4.prototype,"disabled",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],x4.prototype,"isOverlay",void 0);_.D([_.Lx({is:"yt-interaction",disableElementRegistration:!0})],x4);
_.B(x4,"yt-interaction",function(){if(q0d===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;MYW===void 0&&(MYW=document.createElement("template"));var w=MYW;S.call(C,w.content.cloneNode(!0),H.content.firstChild);q0d=H}H=q0d;return H},{mode:2});var Hm=function(){return _.X.apply(this,arguments)||this};
_.G(Hm,_.X);_.F=Hm.prototype;_.F.ready=function(){var H=this,C=_.mY(this.hostElement).querySelector("#button");C.addEventListener("focus",function(){r0M||(r0M=new nyn);H.keyboardFocused=r0M.isKeyBoardInUse()});
C.addEventListener("blur",function(){H.keyboardFocused=!1;H.rippleUp_()})};
_.F.computeTabIndex_=function(H){return H?-1:0};
_.F.computeButtonAriaPressed_=function(H){if(this.toggleable)return H?"true":"false"};
_.F.rippleDown_=function(){_.mY(this.hostElement).querySelector("#interaction").triggerDown()};
_.F.rippleUp_=function(){_.mY(this.hostElement).querySelector("#interaction").triggerUp()};
_.F.onPressedChanged_=function(){var H=_.WY(_.mY(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.WY(_.mY(this.hostElement).querySelector("#button")).children[0];H&&(H.active=this.pressed)};
Hm.prototype.onPressedChanged_=Hm.prototype.onPressedChanged_;Hm.prototype.rippleUp_=Hm.prototype.rippleUp_;Hm.prototype.rippleDown_=Hm.prototype.rippleDown_;_.D([_.V(),_.K("design:type",String)],Hm.prototype,"label",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],Hm.prototype,"disabled",void 0);_.D([_.V(),_.K("design:type",Boolean)],Hm.prototype,"pressed",void 0);_.D([_.V(),_.K("design:type",Object)],Hm.prototype,"toggleable",void 0);
_.D([_.V(),_.K("design:type",Boolean)],Hm.prototype,"untabbable",void 0);_.D([_.V(),_.K("design:type",Boolean)],Hm.prototype,"keyboardFocused",void 0);_.D([_.Gz("down"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Hm.prototype,"rippleDown_",null);_.D([_.Gz("up"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Hm.prototype,"rippleUp_",null);
_.D([_.fx("pressed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Hm.prototype,"onPressedChanged_",null);_.D([_.Lx({is:"yt-icon-button",disableElementRegistration:!0})],Hm);
_.B(Hm,"yt-icon-button",function(){if(zP7===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;Y07===void 0&&(Y07=document.createElement("template"));var w=Y07;S.call(C,w.content.cloneNode(!0),H.content.firstChild);zP7=H}H=zP7;return H},{mode:2});var T8d;var mG7=function(){var H=document.body,C=H.appendChild;if(T8d===void 0){var S=document.createElement("template");_.f(S,'\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>');
T8d=S}S=T8d;C.call(H,S.content)};
document.body?mG7():window.addEventListener("DOMContentLoaded",mG7);var Ws1=_.xC(["aria-"]),S3={};S3.YtRenderButtonBehavior=[_.I.YtRendererBehavior,_.tZ.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!!_.JA().resolve(_.AA(_.PS))&&_.E("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 H=this.computeHref_(this.endpoint,!0);H?gP(this.elements_.endpoint,H):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){H=this.buttonClass.split(" ");H=_.Z(H);for(var C=H.next();!C.done;C=H.next())C=C.value,_.yQ(this.hostElement,C,!0),this.elements_.button&&_.yQ(this.elements_.button,C,!0),this.elements_.text&&_.yQ(this.elements_.text,C,!0)}this.elements_.icon&&(this.elements_.icon.icon=
this.buttonIcon,this.setIconActive_(this.elements_.icon),this.iconSize&&(this.elements_.icon.size=this.iconSize));this.elements_.text&&(this.elements_.text.text=this.buttonText);this.elements_.button&&(H=null,this.buttonAccessibility&&(H=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=H:H?_.ZA([_.cj(Ws1)],this.elements_.button,"aria-label",H):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var H=_.JA().resolve(_.AA(_.PS));H&&(this.keyboardFocused=H.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.OA("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,_.PM(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.PM(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(H,C){if(C)for(H=C.split(" "),H=_.Z(H),C=H.next();!C.done;C=H.next())C=C.value,_.yQ(this.hostElement,C,!1),this.elements_.button&&_.yQ(this.elements_.button,C,!1),this.elements_.text&&_.yQ(this.elements_.text,C,!1)},
buttonIconChanged_:function(H){this.elements_.icon?H?(this.elements_.icon.icon=H,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.PM(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.NT(this.hostElement,"is-paper-button-with-icon",!1)):H&&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"&&_.PM(this.elements_.button).appendChild(this.elements_.icon):_.PM(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.NT(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(H){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,H){var C=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(H){case "yt_icon_button_with_label":C=!0;_.yQ(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();H=_.PM(this.elements_.button).firstElementChild;
this.elements_.icon=H;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.PM(this.elements_.endpoint).appendChild(this.elements_.button);_.PM(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.OA("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;_.PM(this.elements_.button).appendChild(this.elements_.text);_.PM(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":C=!0,this.elements_.button=this.getYtIconButton_(),H=_.PM(this.elements_.button).firstElementChild,this.elements_.icon=H,this.setIconActive_(this.elements_.icon),
_.PM(this.elements_.endpoint).appendChild(this.elements_.button)}_.NT(this.hostElement,"is-icon-button",C);_.NT(this.hostElement,"is-paper-button",!C);_.NT(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 S;_.mY((S=this.container.hostElement)!=null?S:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.PM(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(H){if(H!=void 0||this.disabled)this.disabled=H,this.elements_.button&&(this.elements_.button.disabled=H)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(H){_.E("kevlar_system_icons")&&H&&this.data&&(this.data.isSelected!==void 0?H.active=this.data.isSelected:this.data.isToggled!==void 0&&(H.active=this.data.isToggled))},
observeBasicPalette_:function(H){_.pu(this.hostElement,H)},
disabledChanged_:function(H){this.data&&this.set("data.isDisabled",H)},
onYtButtonTap_:function(H){if(this.disabled)H.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.WH(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(H=this.disableCommandHandlerOverride,!this.data||!this.data.command||H||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.E("handle_service_request_actions")||_.WH(this.hostElement,[this.serviceEndpoint]),
_.M3(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.E("handle_service_request_actions")?(H=[],this.serviceEndpoint&&H.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&H.push(this.data.command),H.length&&_.yN(this.hostElement,H,this.hostElement)):this.data&&this.data.command&&(H=this.data.command,H.accountUnlinkCommand||H.accountLinkCommand||H.insertAdCommand||H.insertHighlightMarkerCommand||
H.createLivestreamHighlightClipCommand||H.getVideoUploadFeedbackCommand||H.musicDeletePrivatelyOwnedEntityCommand||H.ypcCancelRecurrenceEndpoint||H.getMultiSelectCommandEndpoint?_.WH(this.hostElement,[H]):_.yN(this.hostElement,[H],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 H,C=_.mY((H=this.container.hostElement)!=null?H:this.container);C.lastChild&&C.lastChild.tagName!="STYLE";)try{C.removeChild(C.lastChild)}catch(S){break}},
getYtIconButton_:function(){var H=this.reuseEnabled_()?_.OA("yt-icon-button"):document.createElement("yt-icon-button"),C=_.PM(H).firstElementChild;if(C&&C.is!="yt-icon"){for(C=_.PM(H);C.lastChild;)C.removeChild(C.lastChild);C=null}C||(C=this.getIcon_(),this.setIconActive_(C),_.PM(H).appendChild(C));return H},
reuseEnabled_:function(){return _.E("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.OA("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.OA("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.ysY={};
_.ysY.YtButtonBehavior=[S3.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var H=this.data;H&&(this._setEndpoint(this.computeEndpoint_(H)),this._setServiceEndpoint(this.computeServiceEndpoint_(H)),this._setCommand(this.computeCommand_(H)),this._setButtonIcon(this.computeButtonIcon_(H)),this._setButtonText(this.computeButtonText_(H,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(H)),this._setButtonTooltip(this.computeTooltip_(H)),this._setButtonClass(this.computeButtonClass_(H)),this._setIconPositionType(this.computeIconPositionType_(H)),this.updateRenderedElements())},
setPressedState:function(H){var C;if((C=this.elements_)==null?0:C.button)this.elements_.button.pressed=!!H},
computeIconPositionType_:function(H){return H&&H.iconPosition||null},
computeEndpoint_:function(H){var C=H&&H.navigationEndpoint,S=this.get("data.command.commandMetadata.webCommandMetadata.url"),w=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return C?C:H&&H.command&&H.command.modalEndpoint?H.command:S&&!w&&H.command?H.command:null},
computeServiceEndpoint_:function(H){var C=H&&H.serviceEndpoint,S=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return C?C:S&&H.command?H.command:null},
computeCommand_:function(H){return H&&H.command||null},
computeButtonIcon_:function(H){return H&&H.icon&&H.icon.iconType?_.bJ(H.icon.iconType):null},
computeButtonText_:function(H,C){return!C&&H&&H.text||null},
computeAccessibility_:function(H){return this.get("accessibilityData.accessibilityData",H)||H&&H.accessibility||(H&&H.text?{label:this.getSimpleString(H.text)}:null)},
computeTooltip_:function(H){return H?H.isDisabled&&H.disabledTooltip||H.tooltip||null:null},
computeButtonClass_:function(H){var C=H&&H.style?H.style.toLowerCase().replace(/_/g,"-")+" ":"";C+=H&&H.size?H.size.toLowerCase().replace(/_/g,"-")+" ":"";H.colorData&&H.colorData.basicColorPaletteData&&H.colorData.basicColorPaletteData.borderColor&&(C+="palette-with-border");return C.trim()}}];var kb={};var N87;var bBY;var EZb,ePi=function(){return EZb!==void 0?EZb:EZb=document.createElement("template")};
document.head.appendChild(ePi().content);var uId;var GEM,fHd=function(){return GEM!==void 0?GEM:GEM=document.createElement("template")};
document.head.appendChild(fHd().content);var vZW;var lHd,VYY=function(){return lHd!==void 0?lHd:lHd=document.createElement("template")};
document.head.appendChild(VYY().content);var oZd;var OBW=document.head,XOd=OBW.appendChild,Q31;if(oZd===void 0){var dGP=document.createElement("template");_.f(dGP,"\x3c!--css-build:shady--\x3e");dGP.content.insertBefore(VYY().content.cloneNode(!0),dGP.content.firstChild);oZd=dGP}Q31=oZd;XOd.call(OBW,Q31.content);var PSM=document.head,$G1=PSM.appendChild,pOi;if(vZW===void 0){var kE_=document.createElement("template");_.f(kE_,"\x3c!--css-build:shady--\x3e");kE_.content.insertBefore(fHd().content.cloneNode(!0),kE_.content.firstChild);vZW=kE_}pOi=vZW;$G1.call(PSM,pOi.content);var hPb=document.head,nZd=hPb.appendChild,rsn;if(uId===void 0){var B8i=document.createElement("template");_.f(B8i,"\x3c!--css-build:shady--\x3e");B8i.content.insertBefore(ePi().content.cloneNode(!0),B8i.content.firstChild);uId=B8i}rsn=uId;nZd.call(hPb,rsn.content);var DG1;_.hg("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");DG1=_.E("web_button_rework")&&_.Bh("BUTTON_REWORK")||_.E("web_button_rework_with_live");_.sY=function(){return _.X.apply(this,arguments)||this};
_.G(_.sY,_.X);_.sY.prototype.created=function(){this.openPopupConfig=_.rh("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.sY.prototype.onYtNavigate_=function(H){var C=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(H.detail.endpoint);C&&(this.ytOpenPopupBehavior.openPopup(C),H.stopPropagation(),H.preventDefault())};
_.JJ.Object.defineProperties(_.sY,{template:{configurable:!0,enumerable:!0,get:function(){if(bBY===void 0){var H=document.createElement("template");_.f(H,"\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");H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);
var C=H.content,S=C.insertBefore;N87===void 0&&(N87=document.createElement("template"));var w=N87;S.call(C,w.content.cloneNode(!0),H.content.firstChild);bBY=H}H=bBY;return H}}});
_.sY.prototype.onYtNavigate_=_.sY.prototype.onYtNavigate_;_.D([_.v(_.Kw.YtOpenPopupBehavior),_.K("design:type",Object)],_.sY.prototype,"ytOpenPopupBehavior",void 0);_.D([_.v(_.ysY.YtButtonBehavior),_.K("design:type",Object)],_.sY.prototype,"ytButtonBehavior",void 0);_.D([_.Gz("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],_.sY.prototype,"onYtNavigate_",null);
_.D([_.Lx({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:DG1})],_.sY);var Ksd;var tY_=_.E("web_button_rework")&&_.Bh("BUTTON_REWORK")||_.E("web_button_rework_with_live"),j3=function(){var H=_.X.apply(this,arguments)||this;H.isPressed=!1;H.forceIconButton=!1;H.forceIconOnly=!1;H.forceModernIconButton=!1;H.skipCommandHandling=!1;H.alignByText=!1;H.fitToVisibleBounds=!0;H.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};H.onTap=function(C){_.M3(H.hostElement,"yt-service-request-sent-button-renderer",C)};
return H};
_.G(j3,_.X);_.F=j3.prototype;_.F.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.F.onClick=function(H){var C,S=this.disabled||((C=this.data)==null?void 0:C.isDisabled);C=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");S&&C&&H.stopPropagation()};
_.F.computeIcon=function(){var H,C,S=(H=this.data)==null?void 0:(C=H.icon)==null?void 0:C.iconType;if(S)return _.bJ(S)};
_.F.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.F.handleUpdateButtonAction=function(H){H=_.e(H,ka_);var C=_.e(H==null?void 0:H.updatedButton,_.cg);if(this.data&&H&&C){var S=this.data;S.targetId&&H.targetId&&S.targetId===H.targetId&&(this.data=C)}};
_.JJ.Object.defineProperties(j3.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var H=this;if(this.data){var C=nwu({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.M3(H.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.M3(H.hostElement,"yt-service-request-completed-button-renderer")}},
onTapCallback:this.onTap,skipCommandHandling:this.skipCommandHandling,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceDisabled:this.disabled,forceModernIconButton:this.forceModernIconButton,nextVersion:!0,isPressed:this.isPressed});C.alignByText=this.alignByText;return C}}}});
_.JJ.Object.defineProperties(j3,{template:{configurable:!0,enumerable:!0,get:function(){if(Ksd===void 0){var H=document.createElement("template");_.f(H,'\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>');Ksd=H}H=Ksd;return H}}});
j3.prototype.onClick=j3.prototype.onClick;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],j3.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],j3.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],j3.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],j3.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],j3.prototype,"isPressed",void 0);
_.D([_.V(),_.K("design:type",Object)],j3.prototype,"forceIconButton",void 0);_.D([_.V(),_.K("design:type",Object)],j3.prototype,"forceIconOnly",void 0);_.D([_.V(),_.K("design:type",Object)],j3.prototype,"forceModernIconButton",void 0);_.D([_.V(),_.K("design:type",Object)],j3.prototype,"skipCommandHandling",void 0);_.D([_.V(),_.K("design:type",Object)],j3.prototype,"alignByText",void 0);_.D([_.V(),_.K("design:type",Object)],j3.prototype,"buttonTooltipPosition",void 0);
_.D([_.V(),_.K("design:type",Object)],j3.prototype,"fitToVisibleBounds",void 0);_.D([_.V({computed:"computeTooltip(data)"}),_.K("design:type",Object)],j3.prototype,"tooltip",void 0);_.D([_.V(),_.K("design:type",Object)],j3.prototype,"overrides",void 0);_.D([_.V(),_.K("design:type",Boolean)],j3.prototype,"disabled",void 0);_.D([_.Gz("click"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],j3.prototype,"onClick",null);
_.D([_.l("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.K("design:type",Object),_.K("design:paramtypes",[])],j3.prototype,"computedButtonShape",null);_.D([_.Lx({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!tY_,cssBuildOptOut:!0}),_.Lx({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!tY_,cssBuildOptOut:!0})],j3);var Lsd;var gZU;var w2=function(){var H=_.X.apply(this,arguments)||this;H.empty_=!0;H.loadTime=Infinity;H.pendingPaint=!1;H.hasChange_=!1;H.oldThumbnail_=null;H.oldDelayedSrc_="";H.objectURL_=null;return H};
_.G(w2,_.X);_.F=w2.prototype;_.F.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.F.ready=function(){var H=this.shouldShowPlaceholder_();_.yQ(this.hostElement,"no-transition",!0);H&&this.hostElement.classList.add("with-placeholder")};
_.F.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.F.isThumbPreloaded_=function(H){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",H)};
_.F.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||UGV};
_.F.computeThumbnailSrc_=function(H){return H&&H.thumbnails?_.TG(H.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.F.computeAlt_=function(){var H=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&H||""};
_.F.thumbnailChanged_=function(){var H=_.Z([this.thumbnail,this.oldThumbnail_]),C=H.next().value;H=H.next().value;this.oldThumbnail_=C;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(H=this.computeThumbnailSrc_(H),this.computeThumbnailSrc_(C)===H))return;_.E("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(C)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):C&&_.Bh("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.wM(this,this.onReload_):_.wM(this,this.onShow_):this.resetImage_();C&&(this.hostElement.style.opacity=""+C.opacity)}};
_.F.delayedSrcChanged_=function(){var H=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===H||this.resetImage_()};
_.F.setSrc_=function(H){H?(_.mY(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.mY(this.hostElement).querySelector("#img").src=H):(_.mY(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.F.resetImage_=function(){rs$(this.hostElement);this.empty_=!0;this.setSrc_(UGV);this.ytRendererBehavior.invalidate(!1)};
_.F.observePlaceholderColor_=function(){var H=this.thumbnail&&this.thumbnail.placeholderColor;H?this.hostElement.style.backgroundColor=_.Iw(H):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.F.onLoad_=function(){_.mY(this.hostElement).querySelector("#img").src&&_.mY(this.hostElement).querySelector("#img").src!==UGV&&(nZW(this.hostElement),this.notifyOnLoaded&&_.M3(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.F.onError_=function(){var H=this;if(_.E("web_use_cache_for_image_fallback"))UG0(_.mY(this.hostElement).querySelector("#img").src).then(function(C){H.objectURL_=_.K9(C).toString();H.setSrc_(H.objectURL_)}).catch(function(){_.E("kevlar_woffle_fallback_image")&&H.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.F.onPrescanVisible=function(){this.onShow_()};
_.F.onVisible=function(){if(_.E("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.F.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var H=this.computeSrc_();H!==_.mY(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(H))}};
_.F.onReload_=function(){this.empty_=!1;var H=this.computeSrc_();H!==_.mY(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(H))};
_.F.shouldShowPlaceholder_=function(){return _.E("kevlar_thumbnail_bg")};
w2.prototype.observePlaceholderColor_=w2.prototype.observePlaceholderColor_;w2.prototype.delayedSrcChanged_=w2.prototype.delayedSrcChanged_;w2.prototype.thumbnailChanged_=w2.prototype.thumbnailChanged_;_.D([_.V({reflectToAttribute:!0}),_.K("design:type",String)],w2.prototype,"alt",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],w2.prototype,"ariaHidden",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",String)],w2.prototype,"ariaLabel",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],w2.prototype,"hidden",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",String)],w2.prototype,"id",void 0);_.D([_.v(_.NU.YtVisibilityBehavior),_.K("design:type",Object)],w2.prototype,"ytVisibilityBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],w2.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",String)],w2.prototype,"delayedSrc",void 0);
_.D([_.V(),_.K("design:type",Object)],w2.prototype,"thumbnail",void 0);_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],w2.prototype,"loaded",void 0);_.D([_.V(),_.K("design:type",Boolean)],w2.prototype,"notifyOnLoaded",void 0);_.D([_.V(),_.K("design:type",Number)],w2.prototype,"height",void 0);_.D([_.V(),_.K("design:type",Number)],w2.prototype,"width",void 0);_.D([_.V({value:function(){return"width"}}),
_.K("design:type",String)],w2.prototype,"dimension",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],w2.prototype,"fit",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],w2.prototype,"fitHeight",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],w2.prototype,"fitWidth",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",String)],w2.prototype,"objectFit",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",String)],w2.prototype,"objectPosition",void 0);_.D([_.V(),_.K("design:type",String)],w2.prototype,"preferredThumbnail",void 0);_.D([_.V({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.K("design:type",String)],w2.prototype,"alt_",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",String)],w2.prototype,"sharedTooltipText",void 0);
_.D([_.V(),_.K("design:type",Boolean)],w2.prototype,"ftlEligible",void 0);_.D([_.V({value:void 0}),_.K("design:type",String)],w2.prototype,"observeHiddenOption",void 0);_.D([_.V({value:"observe_once"}),_.K("design:type",String)],w2.prototype,"observePrescanOption",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],w2.prototype,"roundedContainer",void 0);
_.D([_.XJ("thumbnail"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],w2.prototype,"thumbnailChanged_",null);_.D([_.XJ("delayedSrc"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],w2.prototype,"delayedSrcChanged_",null);_.D([_.fx("thumbnail.placeholderColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],w2.prototype,"observePlaceholderColor_",null);
_.D([_.Lx({is:"yt-img-shadow",disableElementRegistration:!0})],w2);var UGV=_.Bh("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.Tp()(w2,"yt-img-shadow",function(){if(gZU===void 0){var H=document.createElement("template");_.f(H,'\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">');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;Lsd===void 0&&(Lsd=document.createElement("template"));var w=Lsd;S.call(C,w.content.cloneNode(!0),H.content.firstChild);gZU=H}H=gZU;return H},{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 W8u;_.Av=new _.W4("SCREEN_MANAGER_TOKEN");W8u=new _.W4("LOG_INITIAL_SCREEN_TOKEN");var RP_=_.rW({entities:{}});var IH_=_.Bb(RP_)(RP_.entities,{selectSfvAudioItemPlaybackState:function(H,C){var S,w;H=(w=_.Ea(H,"sfvAudioItemCurrentlyPlayingEntity",C))!=null?w:void 0;return(S=H==null?void 0:H.sfvAudioItemPlaybackState)!=null?S:void 0},
playlistLoopStateEntitySelector:function(H,C){var S;return(S=_.Ea(H,"playlistLoopStateEntity",C))!=null?S:void 0}});_.Jv=_.n(function(H){function C(ii){return _.e(ii,_.qc)}
function S(){var ii=w().isTogglingDisabled||O()&&w().toggledIsTogglingDisabled,FW=ii||N()?O():!O();d(FW);k(!1);if(!ii){var cZ;(cZ=c)==null||cZ(!!FW)}var eZ;((eZ=J)==null?0:eZ())||_.Bg(_.JA().resolve(_.Av),w().trackingParams);var ND;if(!FW||!C(w().defaultButtonViewModel)||(ND=J)!=null&&ND()){var bi;!C(w().toggledButtonViewModel)||((bi=J)==null?0:bi())||_.Bg(_.JA().resolve(_.Av),C(w().toggledButtonViewModel).trackingParams)}else _.Bg(_.JA().resolve(_.Av),C(w().defaultButtonViewModel).trackingParams)}
var w=H.data,A=H.buttonShapeOverrides,J=H.disableExplicitClickLogging,c=H.onToggle,Y=H.style,M=H.useOutlinedIcon,m=H.className,W=function(){var ii,FW;return O()?(ii=H.animatedTextPropsToggled)==null?void 0:ii.call(H):(FW=H.animatedTextPropsDefault)==null?void 0:FW.call(H)},y=_.EF(function(){return W()?Object.assign({},W(),{shouldAnimate:p()}):void 0},void 0,"Zp4uoe"),N=function(){var ii;
return((ii=t())==null?void 0:ii.isToggled)!==void 0},b=_.Z(_.fu(function(){var ii,FW,cZ;
return N()?(ii=t())==null?void 0:ii.isToggled:(cZ=A==null?void 0:(FW=A())==null?void 0:FW.toggled)!=null?cZ:w().isToggled})),u=b.next().value;
b=b.next().value;var O=u,d=b;b=_.Z(_.fu(function(){var ii,FW;return(ii=H.animatedTextPropsToggled)==null?void 0:(FW=ii.call(H))==null?void 0:FW.shouldAnimate}));
u=b.next().value;b=b.next().value;var p=u,k=b;u=_.Z(_.mB(!1,void 0,"mq3Zfe"));var R=u.next().value,L=u.next().value,t=_.Lu(function(ii){a:{var FW=w().entityKey,cZ=w().toggledStateEntitySelectorType;if(cZ)switch(cZ){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!FW)break;ii=IH_.selectSfvAudioItemPlaybackState(ii,FW);if(ii==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){ii={isToggled:!0};break a}if(ii){ii={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":ii=
{isToggled:_.Kti(ii).includes("engagement-panel-comments-section")};break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":ii={isToggled:_.Kti(ii).includes("engagement-panel-live-chat-item-section")};break a;default:_.Bn(new _.X0("Error: entitySelectorType defined but not matched in selector.",ii,cZ))}ii=void 0}return ii}),g=function(){return Object.assign({},A==null?void 0:A(),{onToggle:S,
toggleable:!0,toggled:O(),focused:R()})};
return _.q("toggle-button-view-model",{"on:focusin":_.um(function(){var ii=_.JA().resolve(_.AA(_.PS));ii&&L(ii.isKeyBoardInUse());return!1}),
"on:focusout":_.um(function(){L(!1);return!1})},_.q(_.T,{cond:function(){return O()?C(w().toggledButtonViewModel):C(w().defaultButtonViewModel)},
then:function(ii){return _.q(_.rc,{data:ii,className:m,style:Y,useOutlinedIcon:M,buttonOverrides:g,animatedTextProps:y})}}))},"E");
_.Jv.idomCompat={callbacks:{onToggle:!0}};_.qs(_.n(function(H){return _.q("yt-toggle-button-view-model",{class:function(){var C;return(C=H.scopingClassName)==null?void 0:C.call(H)}},_.q(_.Jv,{data:function(){var C;
return(C=H.data)==null?void 0:C.call(H)},
buttonShapeOverrides:function(){var C;return(C=H.overrides)==null?void 0:C.call(H)},
animatedTextPropsDefault:function(){var C;return(C=H.animatedTextPropsDefault)==null?void 0:C.call(H)},
animatedTextPropsToggled:function(){var C;return(C=H.animatedTextPropsToggled)==null?void 0:C.call(H)},
disableExplicitClickLogging:function(){var C;return(C=H.disableExplicitClickLogging)==null?void 0:C.call(H)},
onToggle:function(C){var S;return(S=H.onToggle)==null?void 0:S.call(H,C)},
style:function(){var C;return(C=H.style)==null?void 0:C.call(H)},
useOutlinedIcon:function(){var C;return(C=H.useOutlinedIcon)==null?void 0:C.call(H)},
className:function(){var C;return(C=H.className)==null?void 0:C.call(H)}}))},"F"),"yt-toggle-button-view-model",{props:{data:_.GH,
buttonShapeOverrides:_.GH,overrides:_.GH,animatedTextPropsDefault:_.GH,animatedTextPropsToggled:_.GH,disableExplicitClickLogging:_.GH,onToggle:_.Yb,style:_.GH,useOutlinedIcon:_.GH,className:_.GH,scopingClassName:_.GH}});var FE=function(){return _.X.apply(this,arguments)||this};
_.G(FE,_.X);FE.prototype.onTap=function(H){H.stopPropagation();H=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.pN("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:H})):this.ytLiveChatReduxBehavior.dispatch(_.O5("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:H}))};
_.JJ.Object.defineProperties(FE.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.engagementState)==null?void 0:H.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var H=_.e(this.data.toggleButton,_.mk),C;if(Number(((C=this.likeCountState)==null?void 0:C.likeCountIfIndifferentNumber)||"0")===0){var S;C=((S=this.data.likeCountPlaceholder)==null?void 0:S.content)||""}else{var w,A,J;C=((w=this.likeCountState)==null?void 0:(A=w.likeCountIfIndifferent)==null?void 0:A.content)||((J=this.data.likeCountPlaceholder)==null?void 0:J.content)||""}var c,Y;S=((c=this.likeCountState)==null?void 0:(Y=
c.likeCountIfLiked)==null?void 0:Y.content)||"1";c=_.e(H.toggledButtonViewModel,_.qc);return Object.assign({},H,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.e(H.defaultButtonViewModel,_.qc),{title:C})},toggledButtonViewModel:{buttonViewModel:Object.assign({},c,{title:S})}})}}}});
FE.prototype.onTap=FE.prototype.onTap;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],FE.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],FE.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.qU),_.K("design:type",Object)],FE.prototype,"ytLiveChatReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],FE.prototype,"data",void 0);
_.D([_.V({selectorArgs:["data.likeCountEntityKey"],selector:tN7}),_.K("design:type",Object)],FE.prototype,"likeCountState",void 0);_.D([_.V({selectorArgs:["data.engagementStateKey"],selector:UFW}),_.K("design:type",Object)],FE.prototype,"engagementState",void 0);_.D([_.l("data","engagementState"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],FE.prototype,"isLiked",null);
_.D([_.l("data","likeCountState","isLiked"),_.K("design:type",Object),_.K("design:paramtypes",[])],FE.prototype,"toggleButton",null);_.D([_.Gz("tap"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],FE.prototype,"onTap",null);_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],FE);
_.B(FE,"yt-live-chat-like-button-view-model",function(){if(x4b===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;aWU===void 0&&(aWU=document.createElement("template"));var w=aWU;S.call(C,w.content.cloneNode(!0),H.content.firstChild);x4b=H}H=x4b;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var aH7;var xGb;var Z$=function(){return _.X.apply(this,arguments)||this};
_.G(Z$,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Z$.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Z$.prototype,"data",void 0);_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],Z$);
_.B(Z$,"yt-live-chat-paid-message-footer-renderer",function(){if(xGb===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;aH7===void 0&&(aH7=document.createElement("template"));var w=aH7;S.call(C,w.content.cloneNode(!0),H.content.firstChild);xGb=H}H=xGb;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var HAP;var iAn;var C_1;var SG1,sgn=function(){if(SG1!==void 0)return SG1;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;C_1===void 0&&(C_1=document.createElement("template"));var w=C_1;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return SG1=H};var cm=function(){return _.X.apply(this,arguments)||this};
_.G(cm,_.X);cm.prototype.onTap=function(H){H.stopPropagation()};
_.JJ.Object.defineProperties(cm.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var H=_.e(this.data.replyButton,_.qc),C,S,w,A,J,c,Y,M=Number(((C=this.replyCountState)==null?void 0:C.replyCountNumber)||"0")===0?(S=this.data)==null?void 0:(w=S.replyCountPlaceholder)==null?void 0:w.content:((A=this.replyCountState)==null?void 0:(J=A.replyCount)==null?void 0:J.content)||((c=this.data)==null?void 0:(Y=c.replyCountPlaceholder)==null?void 0:Y.content)||"",m;return Object.assign({},
H,{title:M,accessibilityText:(m=this.replyCountState)==null?void 0:m.replyButtonAccessibilityText})}}}});
_.JJ.Object.defineProperties(cm,{template:{configurable:!0,enumerable:!0,get:function(){return sgn()}}});
cm.prototype.onTap=cm.prototype.onTap;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],cm.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],cm.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.qU),_.K("design:type",Object)],cm.prototype,"ytLiveChatReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],cm.prototype,"data",void 0);
_.D([_.V({selectorArgs:["data.replyCountEntityKey"],selector:function(H,C){return _.Ea(H.entities,"replyCountEntity",C)}}),
_.K("design:type",Object)],cm.prototype,"replyCountState",void 0);_.D([_.l("data","replyCountState"),_.K("design:type",Object),_.K("design:paramtypes",[])],cm.prototype,"buttonViewModel",null);_.D([_.Gz("tap"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],cm.prototype,"onTap",null);_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],cm);
_.B(cm,"yt-live-chat-reply-button-view-model",function(){return sgn()},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var jgd;var wkP;var Yr=function(){var H=_.X.apply(this,arguments)||this;H.ariaLabel="";return H};
_.G(Yr,_.X);
Yr.prototype.dataChanged=function(){for(var H=(0,_.bA)(_.mY(this.hostElement).querySelector("#image"));H.firstChild;)H.removeChild(H.firstChild);if(this.data)if(this.data.icon){var C=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(C.polymerController.icon="yt-sys-icons:shield-filled",C.polymerController.defaultToFilled=!0):C.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();H.appendChild(C)}else if(this.data.customThumbnail){C=document.createElement("img");
var S=_.Q3w(this.data.customThumbnail.thumbnails,16);S?(C.src=S,H.appendChild(C),C.setAttribute("alt",this.hostElement.ariaLabel||"")):_.Bn(new _.X0("Could not compute URL for thumbnail",this.data.customThumbnail))}};
Yr.prototype.identity=function(H){return H};
Yr.prototype.computeType=function(H){return WI(H||void 0)};
Yr.prototype.dataChanged=Yr.prototype.dataChanged;_.D([_.V(),_.K("design:type",Object)],Yr.prototype,"data",void 0);_.D([_.V({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.K("design:type",Object)],Yr.prototype,"ariaLabel",void 0);_.D([_.V({computed:"computeType(data)",reflectToAttribute:!0}),_.K("design:type",String)],Yr.prototype,"type",void 0);
_.D([_.V({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.K("design:type",String)],Yr.prototype,"sharedTooltipText",void 0);_.D([_.V({reflectToAttribute:!0,value:function(){return _.E("live_chat_enable_new_moderator_badge")}}),
_.K("design:type",Boolean)],Yr.prototype,"enableNewModeratorBadge",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Yr.prototype,"dataChanged",null);_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],Yr);
_.B(Yr,"yt-live-chat-author-badge-renderer",function(){if(wkP===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;jgd===void 0&&(jgd=document.createElement("template"));var w=jgd;S.call(C,w.content.cloneNode(!0),H.content.firstChild);wkP=H}H=wkP;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var Az1;var JzV;var zh=function(){return _.X.apply(this,arguments)||this};
_.G(zh,_.X);_.F=zh.prototype;_.F.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"}}}}};
_.F.computeBadgesInsideChip=function(H){return H?H.filter(function(C){return WI(C.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.F.computeBadgesOutsideChip=function(H){return this.prependChatBadges||!H?[]:H.filter(function(C){C=WI(C.liveChatAuthorBadgeRenderer);return C!=="verified"&&C!=="owner"})};
_.F.computeBadgesBeforeChip=function(H){return this.prependChatBadges&&H?H.filter(function(C){C=WI(C.liveChatAuthorBadgeRenderer);return C!=="verified"&&C!=="owner"}):[]};
_.F.computeIsHighlighted=function(H,C){var S=!!ari(H,"owner"),w=!!ari(H,"verified");H=!!ari(H,"moderator");return(S||w&&!H)&&!C};
_.F.computeAuthorType=function(H){return Ir6(H)};
_.F.computeAuthorClass=function(H,C){return C?(H?H+" ":"")+"single-line":H};
_.F.onSeedColorChanged=function(){_.E("live_chat_author_name_color_usernames")||_.E("live_chat_seed_color_usernames")||_.E("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):_.E("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
zh.prototype.onSeedColorChanged=zh.prototype.onSeedColorChanged;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],zh.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],zh.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],zh.prototype,"authorName",void 0);_.D([_.V(),_.K("design:type",Array)],zh.prototype,"authorBadges",void 0);
_.D([_.V({computed:"computeAuthorType(authorBadges)"}),_.K("design:type",String)],zh.prototype,"authorType",void 0);_.D([_.V({computed:"computeAuthorClass(authorType, singleLine)"}),_.K("design:type",String)],zh.prototype,"authorClass",void 0);_.D([_.V({computed:"computeBadgesInsideChip(authorBadges)"}),_.K("design:type",Array)],zh.prototype,"badgesInsideChip",void 0);_.D([_.V({computed:"computeBadgesOutsideChip(authorBadges)"}),_.K("design:type",Array)],zh.prototype,"badgesOutsideChip",void 0);
_.D([_.V({computed:"computeBadgesBeforeChip(authorBadges)"}),_.K("design:type",Array)],zh.prototype,"badgesBeforeChip",void 0);_.D([_.V({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.K("design:type",Boolean)],zh.prototype,"isHighlighted",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],zh.prototype,"singleLine",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],zh.prototype,"disableHighlighting",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],zh.prototype,"dashboardMoneyFeed",void 0);_.D([_.V({value:_.E("live_chat_prepend_badges"),reflectToAttribute:!0}),_.K("design:type",Boolean)],zh.prototype,"prependChatBadges",void 0);_.D([_.V(),_.K("design:type",String)],zh.prototype,"authorNameColor",void 0);_.D([_.lA("#author-name"),_.K("design:type",HTMLDivElement)],zh.prototype,"username",void 0);
_.D([_.fx("authorNameColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],zh.prototype,"onSeedColorChanged",null);_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],zh);
_.B(zh,"yt-live-chat-author-chip",function(){if(JzV===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;Az1===void 0&&(Az1=document.createElement("template"));var w=Az1;S.call(C,w.content.cloneNode(!0),H.content.firstChild);JzV=H}H=JzV;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var FXM;var ZAd;var Mh=function(){var H=_.X.apply(this,arguments)||this;H.debounceCommand=_.P8(function(C){H.ytComponentBehavior.resolveCommand(C)},1500);
return H};
_.G(Mh,_.X);Mh.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var H=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",C,S,w=this.isHearted?(C=this.data)==null?void 0:C.unheartCommand:(S=this.data)==null?void 0:S.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.pN("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:H}));(H=_.L7(w))&&this.debounceCommand(H)}};
_.JJ.Object.defineProperties(Mh.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var H,C;if(!((H=this.data)==null?0:(C=H.creatorThumbnail)==null?0:C.sources))return{};H={thumbnails:[]};C={};C.url=this.data.creatorThumbnail.sources[0].url;H.thumbnails.push(C);return H}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var H,C;return((H=this.engagementState)==null?void 0:H.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((C=this.engagementState)==null?void 0:C.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var H,C;return((H=this.engagementState)==null?void 0:H.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((C=this.engagementState)==null?void 0:C.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.engagementState)==null?void 0:H.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var H,C,S;return((H=this.engagementState)==null?void 0:H.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((C=this.engagementState)==null?void 0:C.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((S=this.engagementState)==null?void 0:S.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}}});
Mh.prototype.onTap=Mh.prototype.onTap;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Mh.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Mh.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.qU),_.K("design:type",Object)],Mh.prototype,"ytLiveChatReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Mh.prototype,"data",void 0);
_.D([_.V({selectorArgs:["data.engagementStateKey"],selector:UFW}),_.K("design:type",Object)],Mh.prototype,"engagementState",void 0);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Mh.prototype,"thumbnailDetails",null);_.D([_.l("data","engagementState"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Mh.prototype,"isHearted",null);_.D([_.l("data","engagementState"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Mh.prototype,"isEditable",null);
_.D([_.l("data","engagementState"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Mh.prototype,"showCreatorView",null);_.D([_.l("data","engagementState"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Mh.prototype,"showButton",null);_.D([_.l("data","isHearted"),_.K("design:type",String),_.K("design:paramtypes",[])],Mh.prototype,"label",null);_.D([_.l("data","isHearted"),_.K("design:type",Object),_.K("design:paramtypes",[])],Mh.prototype,"heartHoverText",null);
_.D([_.Gz("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Mh.prototype,"onTap",null);_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],Mh);
_.B(Mh,"yt-live-chat-creator-heart-view-model",function(){if(ZAd===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;FXM===void 0&&(FXM=document.createElement("template"));var w=FXM;S.call(C,w.content.cloneNode(!0),H.content.firstChild);ZAd=H}H=ZAd;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var qh=function(){};
_.G(qh,Db);qh.prototype.JSC$13127_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:CL("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
qh.prototype.getApiPaths=function(){return[]};
qh.prototype.getExtension=function(){};
qh.prototype.JSC$13127_buildRequest=function(){};var czY={},YGM=(czY.GET_DATASYNC_IDS=XG(qh),czY);var zd7,M01,qG7,JjM,Th,WXd,MOi,mFU,TfV;zd7="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");M01=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.xb=function(H,C,S,w,A,J,c,Y,M){this.endpointMap=H;this.networkManager=C;this.authService=S;this.responseProcessorMap=w;this.innertubeResponseStore=A;this.contextProcessors=J;this.asyncContextProcessors=c;this.localInnertubeRouter=Y;this.requestSequencer=M;this.inflightRequests=new Map;H.signalEndpointMap||(H.signalEndpointMap={});H.signalEndpointMap=Object.assign({},YGM,H.signalEndpointMap)};
qG7=function(H,C,S,w,A,J,c,Y,M){if(_.xb.instance!==void 0){if(w=_.xb.instance,H=[H!==w.endpointMap,C!==w.networkManager,S!==w.authService,A!==w.innertubeResponseStore,J!==w.contextProcessors,c!==w.asyncContextProcessors,Y!==w.localInnertubeRouter],H.some(function(m){return m}))throw new _.X0("InnerTubeTransportService is already initialized",H);
}else _.xb.instance=new _.xb(H,C,S,w,A,J,c,Y,M)};
_.ir=function(H,C,S){var w=w===void 0?VaY:w;var A=MOi(H,C);return A?new _.Es(function(J,c){var Y,M,m,W,y;return _.z(function(N){switch(N.nextAddress){case 1:return N.yield(A,2);case 2:Y=N.yieldResult;M=Y.JSC$13127_getRequest(C,S,w);if(!M){c(new _.X0("Error: Failed to build request for command.",C));N.jumpTo(0);break}iA(M.input);W=((m=M.requestShell)==null?void 0:m.mode)==="cors"?"cors":void 0;if(H.authService.syncHeaders){y=TfV(M.config,W);N.jumpTo(4);break}return N.yield(mFU(M.config,W),5);case 5:y=
N.yieldResult;case 4:J(WXd(H,M,y)),_.oT(N)}})}):_.kj(new _.X0("Error: No request builder found for command.",C))};
JjM=function(H,C,S,w){var A=A===void 0?VaY:A;var J,c,Y,M,m,W,y,N,b,u,O,d,p,k,R,L,t,g;return _.z(function(ii){switch(ii.nextAddress){case 1:J=Rf0(C,H.endpointMap);if(!J)throw new _.X0("Error: No streaming request builder found for command",C);c=J.JSC$13127_getRequest(C,S,A);if(!c)throw new _.X0("Failed to build YtRequest for streaming Command",C);if((Y=H.localInnertubeRouter)==null||!Y.shouldPreferLocalResponse(c.input,c.innerTubeRequest)){ii.jumpTo(2);break}return ii.yield(H.localInnertubeRouter.localInnertubeResponse(c.input,
c.innerTubeRequest),3);case 3:return M=ii.yieldResult,m={},M.playerResponse&&(Th(H,M.playerResponse,c),m.player=M.playerResponse,(W=w)==null||W(m,M)),M.watchNextResponse&&(Th(H,M.watchNextResponse,c),m.content=M.watchNextResponse,(y=w)==null||y(m,M)),ii.return(m);case 2:b=((N=c.requestShell)==null?void 0:N.mode)==="cors"?"cors":void 0;if(H.authService.syncHeaders){u=TfV(c.config,b);ii.jumpTo(4);break}return ii.yield(mFU(c.config,b),5);case 5:u=ii.yieldResult;case 4:return p=(d=(O=c.requestShell)==
null?void 0:O.headers)!=null?d:{},c.requestShell=Object.assign({},c.requestShell,{headers:Object.assign({},p,u)}),k=Object.assign({},c.requestShell),R=JSON.stringify(c.innerTubeRequest),c.requestShell.method==="POST"&&(k=Object.assign({},k,{body:R})),L=function(FW,cZ){Th(H,cZ.playerResponse||cZ.watchNextResponse||cZ.reelItemWatchResponse||cZ.reelWatchSequenceResponse,c);w==null||w(FW,cZ)},t={},ii.yield(yzd(H.networkManager,c.input,k,L),6);
case 6:return t=ii.yieldResult,((g=c.config)==null?0:g.responseTick)&&_.DR(c.config.responseTick),ii.return(t)}})};
_.Mb=function(H,C,S,w,A){A=A===void 0?{authStrategy:{identity:VaY}}:A;var J=J===void 0?!0:J;var c=function(){};
c=hZu(pap(S));C.context||(C.context=_.ATZ(w,J));return new _.Es(function(Y){var M,m,W,y,N;return _.z(function(b){if(b.nextAddress==1)return M=fJZ(S),m=_.i9(M),H.authService.syncHeaders?(W=TfV(A,m),b.jumpTo(2)):b.yield(mFU(A,m),3);b.nextAddress!=2&&(W=b.yieldResult);y=vg$(fJZ(S));N={input:y,requestShell:CL(y),innerTubeRequest:C,config:A};Y(WXd(H,N,W,c));_.oT(b)})})};
Th=function(H,C,S){var w;if(C&&!(C==null?0:(w=C.sequenceMetaData)==null?0:w.skipProcessing)&&H.responseProcessorMap){w=_.Z(zd7);for(var A=w.next();!A.done;A=w.next())A=A.value,H.responseProcessorMap[A]&&H.responseProcessorMap[A].handleResponse(C,S)}};
WXd=function(H,C,S,w){w=w===void 0?function(){}:w;
var A,J,c,Y,M,m,W,y,N,b,u,O,d,p,k,R,L,t,g,ii,FW,cZ,eZ,ND,bi,pU,O$,R0,m1,c7,tV,Td,Mi,fP,eo,Cr,wu,xE,En,So;return _.z(function(qi){switch(qi.nextAddress){case 1:c=(A=C.config)==null?void 0:(J=A.storeStrategy)==null?void 0:J.storeKey;if(!(c&&H.innertubeResponseStore&&H.innertubeResponseStore.has(c))||((Y=C.config)==null?0:(M=Y.storeStrategy)==null?0:M.disableCache)){qi.jumpTo(2);break}return qi.yield(H.innertubeResponseStore.get(c),3);case 3:if((m=qi.yieldResult)&&!m.isExpired())return qi.return(Promise.resolve(_.AN(m)));
case 2:if(!((W=C)==null?0:(y=W.innerTubeRequest)==null?0:y.context)){qi.jumpTo(4);break}N=C.innerTubeRequest.context;if(!(H.asyncContextProcessors&&H.asyncContextProcessors.length>0)){qi.jumpTo(5);break}b=[];u=_.Z(H.asyncContextProcessors);for(O=u.next();!O.done;O=u.next())d=O.value,p=d.processContext(C),p.wrappedPromise_&&b.push(p.wrappedPromise_);if(!(b.length>0)){qi.jumpTo(5);break}return qi.yield(Promise.all(b),5);case 5:k=_.Z(H.contextProcessors||[]),R=k.next();case 8:if(R.done){qi.jumpTo(4);
break}L=R.value;return qi.yield(L.processContext(N),9);case 9:R=k.next();qi.jumpTo(8);break;case 4:if((t=H.localInnertubeRouter)==null||!t.shouldPreferLocalResponse(C.input,C.innerTubeRequest)){qi.jumpTo(12);break}return qi.yield(H.localInnertubeRouter.localInnertubeResponse(C.input,C.innerTubeRequest),13);case 13:return g=qi.yieldResult,Th(H,g,C),qi.return(g);case 12:return(cZ=(FW=C.config)==null?void 0:FW.requestKey)&&H.inflightRequests.has(cZ)?ii=H.inflightRequests.get(cZ):(eZ=JSON.stringify(C.innerTubeRequest),
pU=(bi=(ND=C.requestShell)==null?void 0:ND.headers)!=null?bi:{},C.requestShell=Object.assign({},C.requestShell,{headers:Object.assign({},pU,S)}),O$=Object.assign({},C.requestShell),C.requestShell.method==="POST"&&(O$=Object.assign({},O$,{body:eZ})),((R0=C.config)==null?0:R0.requestTick)&&_.DR(C.config.requestTick),m1=function(){return H.networkManager.fetch(C.input,O$,C.config)},ii=H.requestSequencer?Nf_(H.requestSequencer,C,m1):m1(),cZ&&H.inflightRequests.set(cZ,ii)),qi.yield(ii,14);
case 14:(c7=qi.yieldResult)&&_.E("web_streaming_player")&&Array.isArray(c7)&&(c7=c7[0].playerResponse);if(c7&&"error"in c7&&((tV=c7)==null?0:(Td=tV.error)==null?0:Td.details))for(Mi=c7.error.details,fP=_.Z(Mi),eo=fP.next();!eo.done;eo=fP.next())Cr=eo.value,(wu=Cr["@type"])&&M01.indexOf(wu)>-1&&(delete Cr["@type"],c7=Cr);cZ&&H.inflightRequests.has(cZ)&&H.inflightRequests.delete(cZ);((xE=C.config)==null?0:xE.responseTick)&&_.DR(C.config.responseTick);if(c7||(En=H.localInnertubeRouter)==null||!En.canProvideFallbackResponse(C.input,
C.innerTubeRequest)){qi.jumpTo(15);break}return qi.yield(H.localInnertubeRouter.localFallbackInnertubeResponse(C.input,C.innerTubeRequest),16);case 16:c7=qi.yieldResult;case 15:return Th(H,c7,C),((So=C.config)==null?0:So.processorTick)&&_.DR(C.config.processorTick),w(),qi.return(c7||void 0)}})};
_.Ht=function(H,C){return UoD(C,H.endpointMap)};
MOi=function(H,C){H=IF$(C,H.endpointMap);if(H!==void 0)return Promise.resolve(H)};
mFU=function(H,C){var S,w,A,J;return _.z(function(c){if(c.nextAddress==1){A=(S=H)==null?void 0:(w=S.authStrategy)==null?void 0:w.sessionIndex;var Y=c.yield;var M=_.N3(nFE({sessionIndex:A}));return Y.call(c,M,2)}J=c.yieldResult;return c.return(Promise.resolve(Object.assign({},aF6(C),J)))})};
TfV=function(H,C){var S;H=H==null?void 0:(S=H.authStrategy)==null?void 0:S.sessionIndex;S=nFE({sessionIndex:H});return Object.assign({},aF6(C),S)};var bAV,EhW,ed1,ukd,G3V,fE1,V07,ohd,ya,OAb,Xkd,lEd,Qgi;bAV=0;EhW=/tone[1-5]/;ed1=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");ukd="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
G3V=Number.MAX_SAFE_INTEGER;fE1=RegExp("\ufe0f","g");_.mw=function(H){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;H&&_.vhd(this,H)};
_.vhd=function(H,C){try{_.e$(C,{context:H,onSuccess:function(w,A){Array.isArray(A)?H.load(A):(w=new _.X0("Emoji manager JSON response was not an array!",{response:A}),_.nC(w))},
onError:function(w){w=new _.X0("Failed to retrieve emoji manager initial JSON data!",{url:C,statusCode:_.WA(w).toString()});_.Bn(w)}})}catch(w){var S=new _.X0("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:C});
_.Bn(S)}};
_.mw.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.mw.prototype.load=function(H,C){if(C)if(H.length)H=H.concat(C.emojis);else{this.emojis=C.emojis;this.emojiMap=C.emojiMap;this.emojiShortcutMap=C.emojiShortcutMap;this.emojiShortcutCharMap=lEd(C);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=C.emojiRegex;return}this.emojis=[].concat(_.k$(new Set(this.emojis.concat(H))));this.hasInitializedShortcutCharMap=!1;H=Array(this.emojis.length);for(C=0;C<this.emojis.length;C++){var S=this.emojis[C];if(S.emojiId){this.emojiMap[S.emojiId]=S;this.emojiMap[S.emojiId].index=
C;for(var w=0;S.shortcuts&&w<S.shortcuts.length;w++)this.emojiShortcutMap[S.shortcuts[w].toLocaleLowerCase()]=S;H[C]=S.isCustomEmoji&&S.shortcuts?S.shortcuts[0]:S.emojiId}}H.sort(function(A,J){return J.length-A.length});
if(H.length)try{this.emojiRegex=new RegExp(H.join("|").replace("*","\\*"),"gi")}catch(A){this.emojiRegex=/$./}else this.emojiRegex=/$./};
V07=function(H,C){C=_.Z(C);for(var S=C.next();!S.done;S=C.next()){var w=S.value;if(w.emojiId&&H.emojiMap[w.emojiId]){S=Object.assign({},H.emojiMap[w.emojiId],w);H.emojiMap[w.emojiId]=S;var A=void 0;S.index&&((A=H.emojis[S.index])==null?void 0:A.emojiId)===w.emojiId&&(H.emojis[S.index]=S);w=void 0;if((w=S.shortcuts)==null?0:w.length)for(H.hasInitializedShortcutCharMap=!1,w=_.Z(S.shortcuts),A=w.next();!A.done;A=w.next())H.emojiShortcutMap[A.value.toLocaleLowerCase()]=S}}};
ohd=function(H){var C,S;_.z(function(w){if(w.nextAddress==1)return w.yield(_.C$.getInstance(),2);if(w.nextAddress!=3)return(C=w.yieldResult)?w.yield(C.get("ytlc-emoji-pref"),3):w.return();(S=w.yieldResult)&&V07(H,Object.keys(S).map(function(A){return{emojiId:A,stickyPrefId:S[A]}}).filter(function(A){return!!A.emojiId&&!!A.stickyPrefId}));
_.oT(w)})};
_.Wm=function(H,C,S){return(H=H.emojiMap[C])&&(!H.isLocked||S!==void 0&&S)?H:void 0};
ya=function(H,C,S){S=_.Wm(H,C,S===void 0?!1:S);var w=C.match("\u200d");S&&H.skinTone!==0&&(H=(w==null?void 0:w.length)===1?_.Wm(H,C.replace("\u200d",ed1[H.skinTone]+"\u200d")):_.Wm(H,C+ed1[H.skinTone]))&&(S=H);return S};
OAb=function(H,C){var S=H.emojiMap[C];return(S==null?0:S.stickyPrefId)?H.emojiMap[S.stickyPrefId]:ya(H,C)};
_.qN=function(H,C){H=H.emojiShortcutMap[C.toLocaleLowerCase()];return!H||H.isLocked?null:H};
Xkd=function(H,C,S){return lEd(H,S===void 0?!1:S)[C]||{}};
lEd=function(H,C){C=C===void 0?!1:C;if(!H.hasInitializedShortcutCharMap){H.hasInitializedShortcutCharMap=!0;for(var S=0;S<H.emojis.length;S++){var w=H.emojis[S];if(!(w.isLocked||C&&w.isCustomEmoji&&w.emojiId&&!H.pickerCustomEmojiIds.includes(w.emojiId)))for(var A=0;w.shortcuts&&A<w.shortcuts.length;A++){var J=w.shortcuts[A];J.startsWith(":_")&&w.isCustomEmoji&&(H.emojiShortcutCharMap[":_"]==null&&(H.emojiShortcutCharMap[":_"]=Object.create(null)),H.emojiShortcutCharMap[":_"][J]=w);if(!(J.length<3||
!w.isCustomEmoji&&EhW.test(J))){var c=J.substr(0,3).toLocaleLowerCase();H.emojiShortcutCharMap[c]==null&&(H.emojiShortcutCharMap[c]=Object.create(null));H.emojiShortcutCharMap[c][J]=w}}}}return H.emojiShortcutCharMap};
_.mw.prototype.createEmoji=function(H,C){C=C===void 0?!0:C;var S=document.createElement("img");H.isCustomEmoji||S.classList.add("small-emoji");S.classList.add("emoji");S.classList.add("yt-formatted-string");S.src=H.image?_.TG(H.image.thumbnails,this.emojiSize)||"":"";var w=void 0;H.image&&H.image.accessibility&&H.image.accessibility.accessibilityData&&(w=H.image.accessibility.accessibilityData.label);S.alt=w?w:(H.isCustomEmoji&&H.shortcuts?H.shortcuts[0]:H.emojiId)||"";H.isCustomEmoji&&(S.dataset.emojiId=
H.emojiId);_.My&&(S.setAttribute("contenteditable","false"),S.setAttribute("unselectable","on"));C&&(H.shortcuts&&H.shortcuts.length&&S.setAttribute("shared-tooltip-text",H.shortcuts[0]),S.id="emoji-"+bAV++);return S};
_.mw.prototype.createDocumentFragment=function(H,C,S,w){C=C===void 0?!1:C;S=S===void 0?!0:S;w=w===void 0?!1:w;H=H.replace(fE1,"");for(var A=document.createDocumentFragment(),J=0,c,Y=0;(c=this.emojiRegex.exec(H))!=null;){var M=_.Wm(this,c[0])||_.qN(this,c[0]);!M||M.isCustomEmoji&&!C||(M=this.createEmoji(M,S),J!==c.index&&A.appendChild(document.createTextNode(H.substring(J,c.index))),A.appendChild(M),J=c.index+c[0].length,Y++)}if(!w||Y)return A.appendChild(document.createTextNode(H.substr(J))),A};
Qgi=function(H,C,S){var w,A,J,c,Y,M,m,W,y;return _.z(function(N){if(N.nextAddress==1){if(!C.emojiId||!H.emojiMap[C.emojiId])return N.return();w=Object.assign({},H.emojiMap[C.emojiId],{stickyPrefId:S});H.emojiMap[C.emojiId]=w;C.index&&((A=H.emojis[C.index])==null?void 0:A.emojiId)===C.emojiId&&(H.emojis[C.index]=w);if((J=C.shortcuts)==null?0:J.length)for(H.hasInitializedShortcutCharMap=!1,c=_.Z(C.shortcuts),Y=c.next();!Y.done;Y=c.next())M=Y.value,H.emojiShortcutMap[M.toLocaleLowerCase()]=w;return N.yield(_.C$.getInstance(),
2)}if(N.nextAddress!=4)return(m=N.yieldResult)?N.yield(m.get("ytlc-emoji-pref"),4):N.jumpTo(0);y=(W=N.yieldResult)!=null?W:{};y[C.emojiId]=S;return N.yield(m.set("ytlc-emoji-pref",y,G3V),0)})};
_.Nh=new _.mw;var $FM;_.bQ={};
$FM={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.E("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:_.E("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 St(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 H=_.mY(this.hostElement||this).querySelector("#inline-action-button-container");H&&H.setAttribute("aria-hidden","true");this.menuButton=_.mY(this.hostElement).querySelector("#menu-button")},
attached:function(){var H=this.menuButton;H&&(H.addEventListener("focusin",_.uA(this,this.onMenuButtonFocus_)),H.addEventListener("focusout",_.uA(this,this.onMenuButtonBlur_)))},
detached:function(){var H=this.menuButton;H&&(H.removeEventListener("focusin",_.uA(this,this.onMenuButtonFocus_)),H.removeEventListener("focusout",_.uA(this,this.onMenuButtonBlur_)))},
identity:_.$E,truthy:function(H){return!!H},
computeTimestampString:function(H){return H?H.timestampText?this.getSimpleString(H.timestampText):this.TIME_FORMATTER.format(new Date(H.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(H){return H},
computeMenuVisible_:function(H,C){return H||C},
computeHasInlineActionButtons:function(H){if(!H)return!1;var C,S;return!((C=H.inlineActionButtons)==null||!C.length)||!((S=H.additionalInlineActionButtons)==null||!S.length)},
createDocumentFragmentFromString:function(H){var C=_.Nh.createDocumentFragment.bind(_.Nh),S;if((S=this.participantsManager)==null||!S.viewerRegex)return C(H);S=document.createDocumentFragment();for(var w=0,A;(A=this.participantsManager.viewerRegex.exec(H))!=null;){if(A.index>0){var J=":"+A[0]+":";if((_.Wm(_.Nh,J)||_.qN(_.Nh,J))&&H.indexOf(J)===A.index-1)continue}S.appendChild(C(H.substring(w,A.index)));w=document.createElement("span");w.appendChild(C(A[0]));w.classList.add("mention");S.appendChild(w);
w=A.index+A[0].length}S.appendChild(C(H.substring(w)));return S},
createDocumentFragment:function(H){var C=document.createDocumentFragment();if(H.simpleText)return C.appendChild(this.createDocumentFragmentFromString(H.simpleText)),C;if(!H.runs)return C;for(var S=0;S<H.runs.length;S++){var w=H.runs[S];if(w.emoji)C.appendChild(_.Nh.createEmoji(w.emoji));else if(w.text)if(w.navigationEndpoint){var A=document.createElement("a");A.classList.add("yt-simple-endpoint");wQu(A,w.navigationEndpoint);_.mY(A).appendChild(this.createDocumentFragmentFromString(w.text));C.appendChild(A)}else C.appendChild(this.createDocumentFragmentFromString(w.text))}return C},
hasModerationOverlayVisible:function(){var H;return((H=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:H.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(H){H.composedPath().some(function(C){return(C=C instanceof Element?C:null)?C.tagName&&(C.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||C.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.E("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(H)},
colorFromDecimal:function(H){return Q96(H)},
markAsDeleted:function(H,C){this.set("data.deletedStateMessage",H);this.set("data.showOriginalContentMessage",C)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(H){if(this.data.contextMenuEndpoint){var C=_.JA().resolve(_.tG),S=this.data.contextMenuEndpoint,w;(w=_.xb.instance)&&_.Ht(w,S)?(C=dFb(C,S),w=_.Mb(w,{},C)):w=_.P__(C,S);w.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);H&&H.stopPropagation()}},
handleGetContextMenuResponse_:function(H){var C=_.xb.instance;C&&_.Ht(C,{liveChatEndpoint:{}})||(H=H.response);H.liveChatItemContextMenuSupportedRenderers&&H.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(H.liveChatItemContextMenuSupportedRenderers.menuRenderer);H.actions&&_.q3(this.hostElement,"yt-live-chat-actions",[H.actions])},
handleGetContextMenuError:function(H){if(H instanceof Error||H instanceof Object||H instanceof String)var C=H;_.nC(new _.X0("Error encountered calling GetLiveChatItemContextMenu",C))},
showContextMenu_:function(H){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:H}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.M3(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.M3(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.bQ.YtLiveChatItemBehavior=[$FM,_.mL.YtComponentBehavior,_.Kw.YtOpenPopupBehavior];_.EY=function(){};var pkd;var k3U;var hd1;var nh7;var e3=function(){var H=_.X.apply(this,arguments)||this;H.active=!1;H.identity=_.$E;return H};
_.G(e3,_.X);e3.prototype.dataChanged=function(){this.active=!1};
e3.prototype.onClick=function(){_.M3(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
e3.prototype.dataChanged=e3.prototype.dataChanged;_.D([_.V(),_.K("design:type",Object)],e3.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],e3.prototype,"active",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],e3.prototype,"dataChanged",null);_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],e3);
_.B(e3,"yt-live-chat-text-input-field-suggestion",function(){if(nh7===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;hd1===void 0&&(hd1=document.createElement("template"));var w=hd1;S.call(C,w.content.cloneNode(!0),H.content.firstChild);nh7=H}H=nh7;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});_.uQ=function(H,C,S){return CustomEvent.call(this,H,{detail:{value:C,path:S}})||this};
_.G(_.uQ,CustomEvent);_.Gh=function(){var H=_.X.apply(this,arguments)||this;H.viewerName=null;H.actionMap={"yt-live-chat-actions":"onChatMessage_"};H.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];H.PARTICIPANT_TIME_USEC_=3E8;return H};
_.G(_.Gh,_.X);_.F=_.Gh.prototype;_.F.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.F.addParticipant=function(H){var C=_.$Dw(this.participants,H,function(w,A){w=w[Object.keys(w)[0]];A=A[Object.keys(A)[0]];w=String(_.jt(w.authorName)).toLowerCase();A=String(_.jt(A.authorName)).toLowerCase();return w<A?-1:w==A?0:1}.bind(this));
if(C>=0){var S=this.participants[C];S[Object.keys(S)[0]].timestampUsec&&this.splice("participants",C,1,H)}else this.splice("participants",-C-1,0,H);H=H[Object.keys(H)[0]];C=_.jt(H.authorName).toLocaleLowerCase();S=C.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(S)||(this.allParticipantsCharMap_[S]={});this.allParticipantsCharMap_[S][C]=H};
_.F.getAuthorsFromPrefix=function(H){return this.allParticipantsCharMap_.hasOwnProperty(H)?this.allParticipantsCharMap_[H]:null};
_.F.computeViewerRegex_=function(H){if(!H)return null;H=H.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var C=H.indexOf("@")===0&&_.E("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(C+H.replace(/ /g,"\\s*")+"|^"+H.replace(/ /g,"\\s*")+"$|^"+H.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+H.replace(/ /g,"\\s*")+"$|(?<=\\s)"+H.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.F.checkForStaleParticipants_=function(){var H=this;this.trimOldParticipants_();this.asyncHandle_&&wLZ(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.HI(function(){H.checkForStaleParticipants_()},3E4))};
_.F.onChatMessage_=function(H){var C=this,S=Date.now()*1E3;H.forEach(function(w){if(w=_.e(w,Mv1)){w=w.item;var A=Object.keys(w)[0];C.SUPPORTED_ITEM_TYPES_.indexOf(A)!=-1&&w[A].timestampUsec>=S-C.PARTICIPANT_TIME_USEC_&&C.addParticipant(w)}},this);
this.checkForStaleParticipants_()};
_.F.trimOldParticipants_=function(){for(var H=Date.now()*1E3,C=this.participants.length-1;C>=0;C--){var S=this.participants[C];S=S[Object.keys(S)[0]];S.timestampUsec&&S.timestampUsec<H-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",C,1)}};
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],_.Gh.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],_.Gh.prototype,"viewerName",void 0);_.D([_.V({computed:"computeViewerRegex_(viewerName)"}),_.K("design:type",Object)],_.Gh.prototype,"viewerRegex",void 0);_.D([_.V({value:function(){return[]},
notify:!0}),_.K("design:type",Array)],_.Gh.prototype,"participants",void 0);_.D([_.Lx({is:"yt-live-chat-participants-manager",noInjection:!0})],_.Gh);var rzn=/.*([:@#].*?)$/,f4=/\u00a0/g,BfM=String.fromCharCode(160),DFY={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"},lQ=function(){var H=_.X.apply(this,arguments)||this;H.disabled=!1;H.liveChatRichMessageInput=null;H.messageInput=null;H.isValidWithNoInputText=!1;H.suggestions=[];H.emojiManager=_.Nh;H.inputMethodEditorActive=
!1;H.suggestionIndex=-1;H.JSC$14125_lastSuggestionRange=null;return H};
_.G(lQ,_.X);_.F=lQ.prototype;_.F.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.F.attached=function(){_.qy&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.F.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.F.dataChanged=function(){if(!this.ignoreColorMapping){var H=!1,C={},S;for(S in DFY)this.data&&this.data.hasOwnProperty(S)&&(C[DFY[S]]=this.colorFromDecimal(this.data[S]),H=!0);H&&_.Ed(this.hostElement,C)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.F.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.F.colorFromDecimal=function(H){H=Math.floor(Number(H));return"rgba("+[H>>16&255,H>>8&255,H&255,(H>>24&255)/255].join()+")"};
_.F.preventDrag=function(H){H.dataTransfer&&(H.dataTransfer.dropEffect="none");H.preventDefault()};
_.F.preventResize=function(H){H.returnValue=!1};
_.F.onInputChange=function(){var H=this.characterCount,C=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&C&&C.remove();if(!C&&this.characterCount>this.maxCharacterLimit){var S=window.getSelection();if(S){var w=S.getRangeAt(0);S.removeAllRanges();S.addRange(w)}}if(S=this.getCurrentRange())w=this.calculateTextBeforeRange(S),this.completeEmojisInRange(S,w,!0)||this.updateSuggestions(S,w);w=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(w);
_.M3(this.hostElement,"yt-live-chat-message-input-change",w);C&&this.characterCount===0&&C.remove();S&&S.commonAncestorContainer.parentElement.id==="input"&&S.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>H):S&&!S.collapsed&&S.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(H=this.input.childNodes.length-1;H>=0;H--)this.input.childNodes[H].nodeName==="BR"&&this.input.childNodes[H].remove()};
_.F.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.F.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var H=this.getCurrentRange();H&&H.commonAncestorContainer.parentElement.id==="input"&&H.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.F.mergeOverflowText=function(H){if(H){var C=document.createRange();C.selectNodeContents(H);C=C.extractContents();this.input.insertBefore(C,H)}};
_.F.checkRangeAtEndOfInput=function(){var H=this.getCurrentRange();if(H){var C=_.mY(this.hostElement).querySelector("#overflow-text"),S=document.createRange();C&&C.previousSibling?C.previousSibling instanceof HTMLImageElement?S.selectNode(C.previousSibling):S.selectNodeContents(C.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?S.selectNode(this.input.lastChild):S.selectNodeContents(this.input.lastChild));S.collapse(!1);return S.isPointInRange(H.startContainer,
H.startOffset)}return!1};
_.F.handleOverflowText=function(H){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var C=_.mY(this.hostElement).querySelector("#overflow-text"),S=this.getCurrentRange();this.input.normalize();H=this.checkRangeAtEndOfInput()&&H;this.mergeOverflowText(C);for(var w,A=0,J=0,c,Y=this.input.childNodes,M=0;M<Y.length;M++){var m=Y[M];m instanceof Text?(J+=m.textContent.length,J>this.maxCharacterLimit&&(w=m,A=this.maxCharacterLimit+m.textContent.length-J)):m instanceof HTMLImageElement&&
(w=void 0,J=m.dataset.emojiId&&((w=this.data)==null?0:w.emojiCharacterCount)?J+this.data.emojiCharacterCount:J+m.alt.length,w=this.input,A=M);if(J>this.maxCharacterLimit&&w){c=document.createRange();c.collapse(!1);C?(J=this.input.lastChild.previousSibling,J instanceof Text?c.setEnd(this.input.lastChild.previousSibling,J.textContent.length):J instanceof HTMLImageElement&&c.setEnd(this.input,this.input.childNodes.length-1)):c.selectNodeContents(this.input);c.setStart(w,A);break}}c&&(w=!1,S&&(H=c.isPointInRange(S.startContainer,
S.startOffset-1)),C||(C=document.createElement("span"),C.id="overflow-text",C.textContent="",C.setAttribute("contenteditable","true"),_.mY(_.mY(this.hostElement).querySelector("#input")).appendChild(C),w=!0),C&&(S=c.extractContents(),C.insertBefore(S,C.firstChild),H&&C.firstChild&&(S=document.createRange(),w?S.setStartAfter(C.lastChild):S.setStartAfter(C.firstChild),S.collapse(!0),C=window.getSelection(),C.removeAllRanges(),C.addRange(S))))}};
_.F.checkForDuplicateSpans=function(){for(var H=0;H<this.input.childNodes.length;H++){var C=this.input.childNodes[H];if(C.nodeName==="SPAN"){var S=document.createRange();S.selectNodeContents(C);S=S.extractContents();this.input.insertBefore(S,C);C.remove()}}this.handleOverflowText(!0)};
_.F.getCurrentRange=function(){var H=window.getSelection();return H&&H.rangeCount?H.getRangeAt(0).cloneRange():null};
_.F.getInputRange=function(){var H=this.getCurrentRange();if(H){for(var C=H.commonAncestorContainer,S=!1,w=_.mY(this.hostElement).querySelector("#input");C;){if(C===w){S=!0;break}C=C.parentNode}S||(H=null)}H||(H=this.getRangeAtEnd());return H};
_.F.getRangeAtEnd=function(){var H=document.createRange(),C=_.mY(this.hostElement).querySelector("#input").lastChild;!C||C.nodeName!=="#text"&&C.nodeName!=="SPAN"?(H.selectNodeContents(_.mY(this.hostElement).querySelector("#input")),H.collapse(!1)):C.nodeName==="#text"?H.setStart(C,C.textContent.length):H.setStart(C,C.childNodes.length);return H};
_.F.getChatParticipantSuggestions=function(H,C,S,w){var A=_.E("live_chat_enable_handles_web_text_input_update");if(C)for(var J in C)if(J.indexOf(H)===0||A&&J.indexOf(S+H)===0){var c=C[J],Y=_.jt(c.authorName);w.push({suggestion:{author:!0,authorType:S,image:c.authorPhoto,alt:Y,text:Y}});if(w.length>=64)break}};
_.F.getSuggestions=function(H){var C=[],S=H.substring(0,3),w=Xkd(_.Nh,S,!0);if(w)for(var A in w)if(A.toLocaleLowerCase().indexOf(H)===0){var J=w[A];if(J&&J.emojiId){if(J=OAb(_.Nh,J.emojiId)){var c=void 0,Y=void 0,M=void 0,m=void 0,W=((c=J.image)==null?0:(Y=c.accessibility)==null?0:(M=Y.accessibilityData)==null?0:M.label)||J.isCustomEmoji?(m=J.shortcuts)==null?void 0:m[0]:J.emojiId;C.push({suggestion:{emoji:!0,image:J.image,alt:W,text:A,textToInsertWhenSelected:J.isCustomEmoji?A:W}})}if(C.length>=
64)break}}if(!this.participantsManager)return null;if(S.indexOf("@")===0||S.indexOf("#")===0)w=S.charAt(0),H=H.substring(1),A=_.E("live_chat_enable_handles_web_text_input_update"),S.indexOf("@")===0&&A&&(A=this.participantsManager.getAuthorsFromPrefix(S.substring(0,2)),this.getChatParticipantSuggestions(H,A,w,C)),S=S.substring(1),S=this.participantsManager.getAuthorsFromPrefix(S),this.getChatParticipantSuggestions(H,S,w,C);return C?C.sort(function(y,N){return N.suggestion.text<y.suggestion.text?-1:
N.suggestion.text===y.suggestion.text?0:1}):null};
_.F.insertSuggestion=function(H){var C=_.E("live_chat_enable_handles_web_text_input_update"),S=H.authorType;C=H.text.indexOf(S)===0&&C?H.text+BfM:S+H.text+BfM;H.emoji?this.insertTextAtRange(this.JSC$14125_lastSuggestionRange,H.textToInsertWhenSelected||""):H.author&&this.insertTextAtRange(this.JSC$14125_lastSuggestionRange,C)};
_.F.updateSuggestionsAtCaret=function(){var H=this.getCurrentRange();H&&this.updateSuggestions(H,this.calculateTextBeforeRange(H))};
_.F.offsetStartOfRangeBy=function(H,C){for(;C>0;)if(H.startOffset-C>=0){H.setStart(H.startContainer,H.startOffset-C);break}else{C=H.startContainer instanceof HTMLImageElement?C-H.startContainer.alt.length:C-H.startOffset;var S=H.startContainer.previousSibling;if(!S){H.setStart(H.startContainer,0);break}if(_.E("live_chat_require_space_for_autocomplete_emoji")){var w=void 0,A=void 0;H.setStart(S,((w=S)==null?void 0:(A=w.textContent)==null?void 0:A.length)||0)}else H.setStart(S,S.childNodes.length||
0)}};
_.F.updateSuggestions=function(H,C){var S=this;this.JSC$14125_lastSuggestionRange&&(this.JSC$14125_lastSuggestionRange.detach(),this.JSC$14125_lastSuggestionRange=null);if((C=rzn.exec(C))&&C.length&&(C=C[C.length-1].toLocaleLowerCase(),C.length>2&&(this.offsetStartOfRangeBy(H,C.length),this.JSC$14125_lastSuggestionRange=H,(H=this.getSuggestions(C))&&H.length))){this.suggestions=H;_.wM(this,function(){_.mY(S.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(H.length-1);return}this.dropdown.opened=!1};
_.F.completeEmojisInRange=function(H,C,S){var w=C.replace(/[\s\xa0]+$/,"");C=C.length-w.length;w=w.split(" ");w=w[w.length-1].trim().toLocaleLowerCase();var A=w.lastIndexOf(":");if(S&&!C&&A!==w.length-1)return!1;A!==-1&&(S=w.lastIndexOf(":",A-1),S!==-1&&(w=w.substring(S)));if((S=_.qN(_.Nh,w))&&S.emojiId){S=OAb(_.Nh,S.emojiId)||null;this.offsetStartOfRangeBy(H,w.length+C);var J,c,Y,M;w=(((J=S)==null?0:J.isCustomEmoji)?(c=S)==null?void 0:(Y=c.shortcuts)==null?void 0:Y[0]:(M=S)==null?void 0:M.emojiId)||
"";C&&(w+=BfM);this.insertTextAtRange(H,w);this.dropdown.opened=!1;return!0}return!1};
_.F.onSuggestion=function(H){this.insertSuggestion(H.detail);this.dropdown.opened=!1};
_.F.onKeyPress=function(H){H.keyCode===13&&(H.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.M3(this.hostElement,"yt-live-chat-send-message"))};
_.F.completeEmojis=function(){var H=document.createRange(),C=_.mY(this.hostElement).querySelector("#input").lastChild;C?H.setStart(C,C.childNodes.length):(H.selectNodeContents(_.mY(this.hostElement).querySelector("#input")),H.collapse(!1));this.completeEmojisInRange(H,this.calculateTextBeforeRange(H),_.E("live_chat_require_space_for_autocomplete_emoji"))};
_.F.maybePreventTextFormatting=function(H){!_.yK||!H.ctrlKey&&!H.metaKey||H.keyCode!==66&&H.keyCode!==73||(H.stopImmediatePropagation(),H.preventDefault())};
_.F.onKeyDown=function(H){this.maybePreventTextFormatting(H);if(this.dropdown.opened)switch(H.keyCode){case 27:this.dropdown.opened=!1;H.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;H.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);H.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),H.preventDefault()}};
_.F.onKeyUp=function(H){switch(H.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.My)this.onInputChange()};
_.F.changeSuggestionIndex=function(H){if(this.dropdown.opened){var C=_.mY(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<C.children.length&&(C.children[this.suggestionIndex].active=!1);var S=this.suggestions.length;this.suggestionIndex=(H+S)%S;H=C.children[this.suggestionIndex];H.active=!0;C.scrollTop=H.offsetTop}};
_.F.onInputPaste=function(H){H.preventDefault();(H=H.clipboardData)&&H.types&&(H=H.getData("text/plain")||"",H=H.replace(/\n/g,""),this.insertText(H));(H=this.getCurrentRange())&&H.commonAncestorContainer.parentElement.id==="input"&&H.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.F.onFocus=function(){this._setFocused(!0)};
_.F.onBlur=function(){this._setFocused(!1)};
_.F.insertText=function(H){this.insertTextAtRange(this.getInputRange(),H)};
_.F.insertTextAtRange=function(H,C){if(H&&(H.collapsed||H.deleteContents(),C=_.Nh.createDocumentFragment(C,!0,!1))){for(var S=_.Z((C==null?void 0:C.childNodes)||[]),w=S.next();!w.done;w=S.next()){w=w.value;var A=void 0,J=void 0,c=void 0,Y=void 0,M=void 0;(c=(A=window)==null?void 0:(J=A.ShadyCSS)==null?void 0:J.ScopingShim)==null||(M=(Y=c).scopeNode)==null||M.call(Y,w,this.hostElement.localName)}S=C.lastChild;H.insertNode(C);this.focused||this.input.focus();if(this.focused){H=H.cloneRange();H.selectNodeContents(S);
H.collapse(!1);if(C=window.getSelection())C.removeAllRanges(),C.addRange(H);H.commonAncestorContainer.parentElement.id==="input"&&H.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}H=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(H);_.M3(this.hostElement,"yt-live-chat-message-input-change",H)}};
_.F.setLiveChatRichMessageInput=function(H){_.mY(_.mY(this.hostElement).querySelector("#input")).textContent="";if(H&&H.textSegments){for(var C=0;C<H.textSegments.length;C++){var S=H.textSegments[C];S.text?_.mY(_.mY(this.hostElement).querySelector("#input")).appendChild(_.Nh.createDocumentFragment(S.text,!0,!1)):S.emojiId&&(S=_.Wm(_.Nh,S.emojiId))&&_.mY(_.mY(this.hostElement).querySelector("#input")).appendChild(_.Nh.createEmoji(S,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.F.setText=function(H){this.setLiveChatRichMessageInput(H?{textSegments:[{text:H}]}:null)};
_.F.calculateTextBeforeRange=function(H){var C="",S=H.startContainer;if(S&&S instanceof Text){var w;C=((w=S.textContent)==null?void 0:w.substring(0,H.startOffset))||"";S=S.previousSibling}for(;S&&S instanceof Text;)C=S.textContent+C,S=S.previousSibling;return C.replace(f4," ")};
_.F.calculateLiveChatRichMessageInput=function(){for(var H=[],C="",S=_.mY(_.mY(this.hostElement).querySelector("#input")).childNodes,w=0;w<S.length;w++){var A=S[w];A instanceof Text?C+=A.textContent:A instanceof HTMLImageElement&&(A.dataset.emojiId?(C&&(H.push({text:C.replace(f4," ")}),C=""),H.push({emojiId:A.dataset.emojiId})):C+=A.alt)}C&&H.push({text:C.replace(f4," ")});if(S=_.mY(this.hostElement).querySelector("#overflow-text")){C="";S=S.childNodes;for(w=0;w<S.length;w++)A=S[w],A instanceof Text?
C+=A.textContent:A instanceof HTMLImageElement&&(A.dataset.emojiId?(C&&(H.push({text:C.replace(f4," ")}),C=""),H.push({emojiId:A.dataset.emojiId})):C+=A.alt);C&&H.push({text:C.replace(f4," ")})}return{textSegments:H}};
_.F.computeCharacterCount=function(H){if(!H||!H.textSegments)return 0;for(var C=0,S=0;S<H.textSegments.length;S++){var w=H.textSegments[S];if(w.text)C+=w.text.length;else if(w.emojiId){var A=void 0;if((A=this.data)==null?0:A.emojiCharacterCount)C+=this.data.emojiCharacterCount;else{var J=A=void 0,c=void 0;C+=((J=_.Wm(_.Nh,(A=w)==null?void 0:A.emojiId))==null?void 0:(c=J.shortcuts)==null?void 0:c[0].length)||0}}}return C};
_.F.characterCountChanged=function(){_.M3(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.F.focusedChanged=function(){this.hostElement.dispatchEvent(new _.uQ("focused-changed",this.focused))};
_.F.focus=function(){this.setFocus(!1)};
_.F.focusAtEnd=function(){this.setFocus(!0)};
_.F.setFocus=function(H){H=H?this.getRangeAtEnd():this.getInputRange();_.mY(this.hostElement).querySelector("#input").focus();var C=window.getSelection();C&&(C.removeAllRanges(),C.addRange(H))};
_.F.insertEmoji=function(H){var C,S=((H==null?0:H.isCustomEmoji)?(C=H.shortcuts)==null?void 0:C[0]:H==null?void 0:H.emojiId)||"";this.insertText(S)};
_.F.computeText=function(H){if(!H||!H.textSegments)return"";for(var C="",S=0;S<H.textSegments.length;S++){var w=H.textSegments[S];if(w.text)C+=w.text;else if(w.emojiId){var A=void 0,J=void 0,c=void 0;C+=((J=_.Wm(_.Nh,(A=w)==null?void 0:A.emojiId))==null?void 0:(c=J.shortcuts)==null?void 0:c[0])||""}}return C};
_.F.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.JJ.Object.defineProperties(lQ.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.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}}});
lQ.prototype.focusedChanged=lQ.prototype.focusedChanged;lQ.prototype.characterCountChanged=lQ.prototype.characterCountChanged;lQ.prototype.onSuggestion=lQ.prototype.onSuggestion;lQ.prototype.onMessageSet=lQ.prototype.onMessageSet;lQ.prototype.dataChanged=lQ.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],lQ.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],lQ.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],lQ.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],lQ.prototype,"disabled",void 0);_.D([_.l("disabled"),_.K("design:type",Number),_.K("design:paramtypes",[])],lQ.prototype,"inputTabIndex",null);_.D([_.l("data.maxCharacterLimit"),_.V({readOnly:!0,notify:!0}),_.K("design:type",Number),_.K("design:paramtypes",[])],lQ.prototype,"maxCharacterLimit",null);
_.D([_.l("liveChatRichMessageInput"),_.V({readOnly:!0,notify:!0}),_.K("design:type",Number),_.K("design:paramtypes",[])],lQ.prototype,"characterCount",null);_.D([_.l("maxCharacterLimit, characterCount"),_.V({readOnly:!0,notify:!0}),_.K("design:type",Number),_.K("design:paramtypes",[])],lQ.prototype,"remainingCharacterCount",null);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],lQ.prototype,"isChatMessageInput",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],lQ.prototype,"inputExpanded",void 0);_.D([_.V({readOnly:!0,notify:!0}),_.K("design:type",Object)],lQ.prototype,"liveChatRichMessageInput",void 0);_.D([_.V(),_.K("design:type",Object)],lQ.prototype,"messageInput",void 0);_.D([_.V(),_.K("design:type",Boolean)],lQ.prototype,"ignoreColorMapping",void 0);_.D([_.l("characterCount"),_.V({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],lQ.prototype,"hasText",null);
_.D([_.V(),_.K("design:type",Object)],lQ.prototype,"isValidWithNoInputText",void 0);_.D([_.l("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.V(),_.K("design:type",Boolean),_.K("design:paramtypes",[])],lQ.prototype,"isInputValid",null);_.D([_.V({readOnly:!0,value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],lQ.prototype,"focused",void 0);_.D([_.V(),_.K("design:type",Array)],lQ.prototype,"suggestions",void 0);
_.D([_.V(),_.K("design:type",_.mw)],lQ.prototype,"emojiManager",void 0);_.D([_.V(),_.K("design:type",_.Gh)],lQ.prototype,"participantsManager",void 0);_.D([_.V(),_.K("design:type",Boolean)],lQ.prototype,"noUnderline",void 0);_.D([_.V(),_.K("design:type",Object)],lQ.prototype,"inputMethodEditorActive",void 0);_.D([_.lA("#dropdown"),_.K("design:type",Object)],lQ.prototype,"dropdown",void 0);_.D([_.lA("#input"),_.K("design:type",HTMLElement)],lQ.prototype,"input",void 0);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lQ.prototype,"dataChanged",null);_.D([_.fx("messageInput"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lQ.prototype,"onMessageSet",null);_.D([_.Gz("yt-live-chat-select-suggestion"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],lQ.prototype,"onSuggestion",null);
_.D([_.fx("characterCount"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lQ.prototype,"characterCountChanged",null);_.D([_.fx("focused"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lQ.prototype,"focusedChanged",null);_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],lQ);
_.KX7=_.B(lQ,"yt-live-chat-text-input-field-renderer",function(){if(k3U===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;pkd===void 0&&(pkd=document.createElement("template"));var w=pkd;S.call(C,w.content.cloneNode(!0),H.content.firstChild);k3U=H}H=k3U;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var Va=function(){var H=_.X.apply(this,arguments)||this;H.buttonOverrides={style:"overlay",type:"filled"};H.allowAnimations=!1;H.modern=_.E("web_button_rework_with_live");H.noPadding=!1;return H};
_.G(Va,_.X);_.F=Va.prototype;_.F.shouldSupportInlineActionButtons=function(){return!0};
_.F.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"}}}}};
_.F.ready=function(){var H=document.querySelector("yt-live-chat-app");H&&H.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.F.attached=function(){this.allowAnimations=!1};
_.F.dataChanged=function(){if(this.data){var H={"--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)};_.Ed(this.hostElement,H);this.allowAnimations=!0}};
_.F.messageChanged=function(){var H,C=(H=this.data)==null?void 0:H.message;H=_.mY(_.mY(this.hostElement).querySelector("#message"));H.textContent="";C&&H.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(C))};
_.F.computeShowOnlyHeader=function(H,C){return!H||H.pdgLikeButton||H.replyButton||H.buyFlowButton?!1:this.isEmpty(H,C)&&!H.footer};
_.F.computeShowFooterDivider=function(H,C,S){return H?!!H.footer&&!this.isEmpty(H,C)&&!S:!1};
_.F.computeIsUserEditable=function(H){return!!H.inputField};
_.F.computeHasHeartButton=function(H){return(H==null?void 0:H.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(H==null?void 0:H.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(H==null?void 0:H.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.F.computeNoveltyImage=function(H){if(H.headerOverlayImage&&H.headerOverlayImage.thumbnails.length){var C=H.headerOverlayImage.thumbnails[0],S,w;if((S=H.pdgPurchasedNoveltyLoggingDirectives)==null?0:(w=S.loggingDirectives)==null?0:w.trackingParams){var A,J;IEp((A=H.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(J=A.loggingDirectives)==null?void 0:J.trackingParams)}return C.width||0}return 0};
_.F.computeAuthorPhotoSize=function(H){return(H==null?0:H.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.F.inputFocus=function(){var H=_.mY(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");H&&H.focus()};
_.F.inputInsertEmoji=function(H){var C=_.mY(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");C&&C.insertEmoji(H)};
_.F.inputMessage=function(){var H=_.mY(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),C;return H&&((C=this.data)==null?0:C.inputField)?(H.completeEmojis(),_.RW(H.liveChatRichMessageInput)):null};
_.F.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.F.isEmpty=function(H,C){return H?H.empty||!(H.message||H.inputField||C):!0};
_.F.onLowerBuyButtonClick=function(){var H,C=_.e((H=this.data)==null?void 0:H.buyButton,_.cg);C&&C.trackingParams&&!P6E(C.command)&&(H=_.Qh(C.trackingParams))&&(C=_.Dg())&&_.Sp(C,H)};
_.F.shouldSupportWholeItemClick=function(){return!0};
_.JJ.Object.defineProperties(Va.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?0:H.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
Va.prototype.isDeletedChanged=Va.prototype.isDeletedChanged;Va.prototype.messageChanged=Va.prototype.messageChanged;Va.prototype.dataChanged=Va.prototype.dataChanged;_.D([_.v(ymi.YtPdgLiveChatItemBehavior),_.K("design:type",Object)],Va.prototype,"ytPdgLiveChatItemBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Va.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.qU),_.K("design:type",Object)],Va.prototype,"ytLiveChatReduxBehavior",void 0);
_.D([_.v(_.bQ.YtLiveChatItemBehavior),_.K("design:type",_.EY)],Va.prototype,"ytLiveChatItemBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Va.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Va.prototype,"data",void 0);_.D([_.V({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:UFW}),_.K("design:type",Object)],Va.prototype,"engagementState",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.K("design:type",Boolean)],Va.prototype,"isUserEditable",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.K("design:type",Boolean)],Va.prototype,"hasHeartButton",void 0);_.D([_.V({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Va.prototype,"showOnlyHeader",void 0);
_.D([_.V({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Va.prototype,"showFooterDivider",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Object)],Va.prototype,"allowAnimations",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],Va.prototype,"dashboardMoneyFeed",void 0);_.D([_.V({computed:"computeNoveltyImage(data)"}),_.K("design:type",Number)],Va.prototype,"noveltyWidth",void 0);
_.D([_.V({computed:"computeAuthorPhotoSize(data)"}),_.K("design:type",Number)],Va.prototype,"authorPhotoSize",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Va.prototype,"modern",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Va.prototype,"noPadding",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Va.prototype,"dataChanged",null);
_.D([_.fx("data.message"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Va.prototype,"messageChanged",null);_.D([_.l("data","dashboardMoneyFeed"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Va.prototype,"hideLowerBumper",null);_.D([_.fx("isDeleted"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Va.prototype,"isDeletedChanged",null);
_.D([_.h({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],Va);
_.B(Va,"yt-live-chat-paid-message-renderer",function(){if(iAn===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;HAP===void 0&&(HAP=document.createElement("template"));var w=HAP;S.call(C,w.content.cloneNode(!0),H.content.firstChild);iAn=H}H=iAn;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var t01;var LXU;var on=function(){var H=_.oZ.apply(this,arguments)||this;H._noAccessors=!0;return H};
_.G(on,_.oZ);on.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.rh("openPopupConfig")};
_.D([_.v(_.Kw.YtOpenPopupBehavior),_.K("design:type",Object)],on.prototype,"ytOpenPopupBehavior",void 0);_.D([_.Od()],on);_.OY=[_.Kw.YtOpenPopupBehavior,on.prototype];var gh7;var S4=[_.vU,gcP,_.Jd,_.l4,_.sX,_.T5b,_.Ox,_.a3n,_.dR,WZp];_.E("web_watch_get_updated_metadata_response_processing")&&S4.push(_.mbW);_.E("web_continuation_response_processing")&&S4.push(_.UU);var n2$=new _.W4("RESPONSE_RECEIVED_COMMANDS"),MP$=new _.W4("RESPONSE_RECEIVED_COMMANDS");var ARp="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),w06=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],jzZ=["GET_UNSEEN_NOTIFICATION_COUNT"];var XE=function(){var H=_.oZ.apply(this,arguments)||this;H._noAccessors=!0;H.serviceEndpointHandlers=[];return H};
_.G(XE,_.oZ);XE.prototype.created=function(){var H=this;this.endpointHandlerActionMap={"yt-service-request":function(C,S,w,A){var J;return szE(H.hostElement,C,S,w,A,H.serviceEndpointHandlers,(J=H.onEntitiesUpdated)==null?void 0:J.bind(H))}}};
XE.prototype.attached=function(){_.xI(_.a8.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
XE.prototype.detached=function(){_.H5(_.a8.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.D([_.Od()],XE);_.UFd=[XE.prototype];var Rdd,IEW=function(){return Rdd!==void 0?Rdd:Rdd=document.createElement("template")};
document.head.appendChild(IEW().content);var aEn;var xFY=document.head,Hb1=xFY.appendChild,ib7;if(aEn===void 0){var C8d=document.createElement("template");_.f(C8d,"\x3c!--css-build:shady--\x3e");C8d.content.insertBefore(IEW().content.cloneNode(!0),C8d.content.firstChild);aEn=C8d}ib7=aEn;Hb1.call(xFY,ib7.content);var SzW,s1U=function(){return SzW!==void 0?SzW:SzW=document.createElement("template")};
document.head.appendChild(s1U().content);var j1_;var ws_=document.head,AH1=ws_.appendChild,JHU;if(j1_===void 0){var Ftd=document.createElement("template");_.f(Ftd,"\x3c!--css-build:shady--\x3e");Ftd.content.insertBefore(s1U().content.cloneNode(!0),Ftd.content.firstChild);j1_=Ftd}JHU=j1_;AH1.call(ws_,JHU.content);var Zbd;_.hg("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.hg("sharingRendererButtons","buttonRenderer","ytd-button-renderer");Zbd=_.E("web_button_rework")&&_.Bh("BUTTON_REWORK")||_.E("web_button_rework_with_live");_.Qa=function(){var H=_.X.apply(this,arguments)||this;H.isPressed=!1;H.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return H};
_.G(_.Qa,_.X);_.F=_.Qa.prototype;_.F.created=function(){this.showTooltips=!0};
_.F.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.F.onHintIdChanged=function(){var H=this,C,S,w=(C=this.ytButtonBehavior.data)==null?void 0:(S=C.hint)==null?void 0:S.hintRenderer;if(w&&w.hintId){C=_.m7(this.hostElement,"yt-get-opened-popups-action");C=(C&&C.length===1?C[0]:[]).length>0;var A=null;w.hintId!=="sponsor-pre-purchase"||C?w.hintId.startsWith("sponsor-post-purchase")&&!C?A=$kd("membership-manage"):w.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!C&&(A=$kd("membership-freebie-join")):A=$kd("membership-join");A&&_.rT.addLowPriorityJob(function(){for(var J=
_.Z(A),c=J.next();!c.done;c=J.next())H.ytComponentBehavior.resolveCommand(c.value)})}};
_.F.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.F.onYtNavigate=function(H){var C=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(H.detail.endpoint);C&&(H.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(C))};
_.F.onYtServiceRequestSent=function(H,C){this.handleServiceRequestActions(C);_.M3(this.hostElement,"yt-service-request-sent-button-renderer")};
_.F.onServiceRequestCompleted=function(H,C){this.handleServiceRequestActions(C);_.M3(this.hostElement,"yt-service-request-completed-button-renderer")};
_.F.updateButton=function(H){var C;if(H=(C=_.e(H,ka_))==null?void 0:C.updatedButton)this.ytButtonBehavior.data=_.e(H,_.cg)};
_.F.handleUpdateButtonAction=function(H){var C=this.ytButtonBehavior.data;C.targetId&&H.updateButtonAction.targetId&&C.targetId===H.updateButtonAction.targetId&&this.updateButton(H)};
_.F.handleServiceRequestActions=function(H){if(H=H.actions)for(var C=0;C<H.length;C++)this.updateButton(H[C])};
_.JJ.Object.defineProperties(_.Qa,{template:{configurable:!0,enumerable:!0,get:function(){if(gh7===void 0){var H=document.createElement("template");_.f(H,"\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");H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);gh7=H}H=gh7;return H}}});
_.Qa.prototype.onServiceRequestCompleted=_.Qa.prototype.onServiceRequestCompleted;_.Qa.prototype.onYtServiceRequestSent=_.Qa.prototype.onYtServiceRequestSent;_.Qa.prototype.onYtNavigate=_.Qa.prototype.onYtNavigate;_.Qa.prototype.onPressedStateChanged=_.Qa.prototype.onPressedStateChanged;_.Qa.prototype.onHintIdChanged=_.Qa.prototype.onHintIdChanged;_.D([_.V(),_.K("design:type",Object)],_.Qa.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],_.Qa.prototype,"isPressed",void 0);
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],_.Qa.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.ysY.YtButtonBehavior),_.K("design:type",Object)],_.Qa.prototype,"ytButtonBehavior",void 0);_.D([_.v(_.OY),_.K("design:type",Object)],_.Qa.prototype,"ytdOpenPopupBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],_.Qa.prototype,"ytComponentBehavior",void 0);
_.D([_.v(S3.YtRenderButtonBehavior),_.K("design:type",Object)],_.Qa.prototype,"ytRenderButtonBehavior",void 0);_.D([_.fx("data.hint.hintRenderer"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],_.Qa.prototype,"onHintIdChanged",null);_.D([_.fx("isPressed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],_.Qa.prototype,"onPressedStateChanged",null);
_.D([_.Gz("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],_.Qa.prototype,"onYtNavigate",null);_.D([_.Gz("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.IW]),_.K("design:returntype")],_.Qa.prototype,"onYtServiceRequestSent",null);
_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.j4]),_.K("design:returntype")],_.Qa.prototype,"onServiceRequestCompleted",null);_.D([_.h({is:"ytd-button-renderer",disableElementRegistration:Zbd})],_.Qa);var d2=function(){var H=_.X.apply(this,arguments)||this;H.modern=_.E("web_button_rework_with_live");H.buttonOverrides={style:"overlay",type:"filled"};return H};
_.G(d2,_.X);_.F=d2.prototype;_.F.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"}}}}};
_.F.ready=function(){var H=document.querySelector("yt-live-chat-app");H&&H.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.F.dataChanged=function(){if(this.data&&this.data.sticker){var H=_.TG(this.data.sticker.thumbnails,this.stickerWidth);H||_.bYu(H).thenCatch(function(){_.Bn(new _.X0("Failed to load Super Sticker with url",H))})}};
_.F.computeAuthorPhotoSize=function(H){return(H==null?0:H.isV2Style)?32:40};
_.F.computeIsV2Style=function(H){return(H==null?0:H.isV2Style)?!0:!1};
_.F.onStickerLoaded=function(H){var C,S,w;(C=_.Jr(H))==null||(S=C.parentNode)==null||(w=S.classList)==null||w.add("sticker-loaded")};
_.F.computeNoveltyImageWidth=function(H){var C,S;if(H==null?0:(C=H.headerOverlayImage)==null?0:(S=C.thumbnails)==null?0:S.length){C=H.headerOverlayImage.thumbnails[0];var w,A;if((w=H.pdgPurchasedNoveltyLoggingDirectives)==null?0:(A=w.loggingDirectives)==null?0:A.trackingParams){var J,c;IEp((J=H.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(c=J.loggingDirectives)==null?void 0:c.trackingParams)}return C.width||0}return 0};
_.F.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.F.updateStickerStyles=function(){var H=this.data;H&&(H={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(H.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(H.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(H.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(H.authorNameTextColor)},
_.Ed(this.hostElement,H))};
_.F.onBuyButtonClick=function(){var H,C=_.e((H=this.data)==null?void 0:H.buyButton,_.cg);C&&!P6E(C.command)&&this.ytRendererBehavior.logExplicitClick(C)};
_.F.shouldSupportWholeItemClick=function(){return!0};
_.JJ.Object.defineProperties(d2.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 H;return((H=this.data)==null?0:H.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
d2.prototype.updateStickerStyles=d2.prototype.updateStickerStyles;d2.prototype.isDeletedChanged=d2.prototype.isDeletedChanged;d2.prototype.onStickerLoaded=d2.prototype.onStickerLoaded;d2.prototype.dataChanged=d2.prototype.dataChanged;_.D([_.v(ymi.YtPdgLiveChatItemBehavior),_.K("design:type",Object)],d2.prototype,"ytPdgLiveChatItemBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],d2.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],d2.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.bQ.YtLiveChatItemBehavior),_.K("design:type",_.EY)],d2.prototype,"ytLiveChatItemBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],d2.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],d2.prototype,"data",void 0);
_.D([_.V({computed:"computeAuthorPhotoSize(data)"}),_.K("design:type",Number)],d2.prototype,"authorPhotoSize",void 0);_.D([_.V(),_.K("design:type",Boolean)],d2.prototype,"isDeleted",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],d2.prototype,"dashboardMoneyFeed",void 0);_.D([_.V({computed:"computeNoveltyImageWidth(data)"}),_.K("design:type",Number)],d2.prototype,"noveltyWidth",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],d2.prototype,"modern",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.K("design:type",Boolean)],d2.prototype,"isV2Style",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],d2.prototype,"dataChanged",null);_.D([_.Gz("yt-img-shadow-loaded"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],d2.prototype,"onStickerLoaded",null);
_.D([_.l("data"),_.K("design:type",Number),_.K("design:paramtypes",[])],d2.prototype,"stickerWidth",null);_.D([_.l("data"),_.K("design:type",Number),_.K("design:paramtypes",[])],d2.prototype,"stickerHeight",null);_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],d2.prototype,"hasHeartButton",null);_.D([_.l("data","dashboardMoneyFeed"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],d2.prototype,"hideLowerBumper",null);
_.D([_.fx("isDeleted"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],d2.prototype,"isDeletedChanged",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],d2.prototype,"updateStickerStyles",null);_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],d2);
_.B(d2,"yt-live-chat-paid-sticker-renderer",function(){if(LXU===void 0){var H=document.createElement("template");_.f(H,'\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>');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;t01===void 0&&(t01=document.createElement("template"));var w=t01;S.call(C,w.content.cloneNode(!0),H.content.firstChild);LXU=H}H=LXU;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var cHb;var Yzi;var zf_,MNi=function(){return zf_!==void 0?zf_:zf_=document.createElement("template")};
document.head.appendChild(MNi().content);var qzd,Tkn=function(){return qzd!==void 0?qzd:qzd=document.createElement("template")};
document.head.appendChild(Tkn().content);var moV;var WtU,yHU=function(){return WtU!==void 0?WtU:WtU=document.createElement("template")};
document.head.appendChild(yHU().content);var Nk1;var bb7=document.head,Ewd=bb7.appendChild,ef_;if(Nk1===void 0){var uud=document.createElement("template");_.f(uud,"\x3c!--css-build:shady--\x3e");uud.content.insertBefore(yHU().content.cloneNode(!0),uud.content.firstChild);Nk1=uud}ef_=Nk1;Ewd.call(bb7,ef_.content);var GiW=document.head,fFi=GiW.appendChild,vwW;if(moV===void 0){var Pm=document.createElement("template");_.f(Pm,"\x3c!--css-build:shady--\x3e");Pm.content.insertBefore(Tkn().content.cloneNode(!0),Pm.content.firstChild);Pm.content.insertBefore(MNi().content.cloneNode(!0),Pm.content.firstChild);moV=Pm}vwW=moV;fFi.call(GiW,vwW.content);var $r=function(){var H=_.oZ.apply(this,arguments)||this;H.focusedIndex=0;H.verticalOffset=0;H.verticalAlign="top";H.dynamicAlign=!0;return H};
_.G($r,_.oZ);$r.prototype.emojiUrl=function(H){H=_.Wm(this.emojiManager,H);if(!H)return"";var C;H=(C=H.image)==null?void 0:C.thumbnails;return _.TG(H,24)||""};
var lFb=function(H){var C;H.emojiVariants&&(C=H.data)!=null&&C.target&&_.wM(H,function(){H.set("verticalOffset",-1*H.hostElement.clientHeight);var S=_.mY(H.hostElement).querySelector("img");S&&S.focus()})};
_.F=$r.prototype;_.F.onKeyboardEnter=function(){};
_.F.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.F.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.F.onKeyDown=function(H){switch(H.keyCode){case 13:this.onKeyboardEnter();H.preventDefault();break;case 40:this.changeFocus(1);H.preventDefault();break;case 38:this.changeFocus(-1);H.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.F.onYtEmojiSelect=function(H){var C=this,S,w,A,J,c,Y,M,m;return _.z(function(W){if(W.nextAddress==1)return w=(S=C.data)==null?void 0:S.emoji,c=((A=w)==null?void 0:A.stickyPrefId)||((J=w)==null?void 0:J.emojiId),M=(Y=H.detail)==null?void 0:Y.emojiId,c&&M&&c!==M?W.yield((m=C.emojiManager)==null?void 0:Qgi(m,w,M),2):W.return();_.q3(C.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[w,M]);_.oT(W)})};
_.F.changeFocus=function(H){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+H+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(H=_.mY(this.hostElement).querySelector("#variants"))&&H.children[this.focusedIndex].focus())};
_.JJ.Object.defineProperties($r.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
$r.prototype.onYtEmojiSelect=$r.prototype.onYtEmojiSelect;$r.prototype.onKeyDown=$r.prototype.onKeyDown;$r.prototype.onEmojiVariantsChanged=$r.prototype.onEmojiVariantsChanged;$r.prototype.onVerticalOffsetOrPositionTargetChanged=$r.prototype.onVerticalOffsetOrPositionTargetChanged;_.D([_.v(_.zj),_.K("design:type",Object)],$r.prototype,"ironOverlayBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],$r.prototype,"data",void 0);_.D([_.V(),_.K("design:type",_.mw)],$r.prototype,"emojiManager",void 0);
_.D([_.V(),_.K("design:type",Object)],$r.prototype,"emojiVariants",void 0);_.D([_.V(),_.K("design:type",Object)],$r.prototype,"focusedIndex",void 0);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],$r.prototype,"positionTarget",null);_.D([_.V({reflectToAttribute:!0}),_.l("verticalOffset","data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],$r.prototype,"isPositioned",null);_.D([_.V(),_.K("design:type",Object)],$r.prototype,"verticalOffset",void 0);
_.D([_.V(),_.K("design:type",Object)],$r.prototype,"verticalAlign",void 0);_.D([_.V(),_.K("design:type",Object)],$r.prototype,"dynamicAlign",void 0);_.D([_.fx("verticalOffset","positionTarget"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$r.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.D([_.fx("emojiVariants"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$r.prototype,"onEmojiVariantsChanged",null);
_.D([_.Gz("keydown"),_.K("design:type",Function),_.K("design:paramtypes",[KeyboardEvent]),_.K("design:returntype")],$r.prototype,"onKeyDown",null);_.D([_.Gz("yt-emoji-select"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype",Promise)],$r.prototype,"onYtEmojiSelect",null);_.D([_.Od()],$r);var VN7=[$r.prototype];var owb;var Ob1;var Xsi=/medium-light|medium-dark|light|medium|dark/,Q1n=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,dod=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),p4=function(){var H=_.X.apply(this,arguments)||this;H.userSelection={left:null,right:null};H.scrollAction="lock";H.isEmojiDraftInProgress=!1;return H};
_.G(p4,_.X);_.F=p4.prototype;_.F.onClick=function(H){H=_.Jr(H);H instanceof HTMLImageElement&&this.selectOrUpdateEmoji(H)};
_.F.selectOrUpdateEmoji=function(H){var C=H.getAttribute("selection");C&&(C==="default"?_.M3(this.hostElement,"yt-emoji-select",_.Wm(this.emojiManager,H.id)):C==="left"?this.userSelection=Object.assign({},this.userSelection,{left:H.src}):C==="right"?this.userSelection=Object.assign({},this.userSelection,{right:H.src}):C==="user"&&this.userSelection.left&&this.userSelection.right&&_.M3(this.hostElement,"yt-emoji-select",_.Wm(this.emojiManager,H.id)))};
_.F.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.F.onMultiSelectorThumbnailRowChanged=function(){var H,C,S;((H=this.data)==null?0:(C=H.emoji)==null?0:(S=C.multiSelectorThumbnailRow)==null?0:S.length)&&this.openSelector()};
_.F.getThumbnailFromEmojiRow=function(H){var C,S;return(H==null?void 0:(C=H.thumbnails)==null?void 0:(S=C[0])==null?void 0:S.url)||""};
_.F.getEmojiAltTextForPartialSelector=function(H){var C;return((C=this.getThumbnailFromEmojiRow(H).match(Q1n))==null?void 0:C[0])||""};
_.F.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.F.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.F.getRowSelection=function(H){return["left","right"][H]};
_.F.getIdFromComposedEmoji=function(H){return(H==null?void 0:H.emojiId)||""};
_.F.getEmojiFromPartialSelections=function(H,C){if(!H&&!C)return null;var S,w,A=(S=this.data)==null?void 0:(w=S.emoji)==null?void 0:w.variantIds;if(!A||!A.length)return null;var J;H=(J=H.match(Xsi))==null?void 0:J[0];var c;C=(c=C.match(Xsi))==null?void 0:c[0];if(!H||!C)return null;var Y=dod.get(H);c=dod.get(C);if(Y===c){c=Array.from(dod.values()).filter(function(m){return m!==Y}).join("|");
var M=new RegExp("^((?!("+c+")).)*"+Y+"$")}else M=new RegExp(Y+".*"+c);return(A=A.find(function(m){return M.test(m)}))&&_.Wm(this.emojiManager,A)||null};
_.F.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var H,C=this.ytEmojiSelectorBehavior.emojiUrl(((H=this.data.emoji)==null?void 0:H.emojiId)||"");_.mY(this.hostElement).querySelector('[selection="user"]').src.includes(C)||(this.isEmojiDraftInProgress=!0)}};
_.F.onDomChange=function(){lFb(this.ytEmojiSelectorBehavior)};
_.F.getFocusableElements=function(){return _.mY(this.hostElement).querySelectorAll("img").filter(function(H){return H.getAttribute("role")==="option"})};
_.F.changeFocus=function(H){var C=this.getFocusableElements();C!=null&&C.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+H+C.length)%C.length,this.ytEmojiSelectorBehavior.focusedIndex<C.length&&(H=C[this.ytEmojiSelectorBehavior.focusedIndex])&&H.focus())};
_.F.onKeyboardEnter=function(){var H=this.getFocusableElements();H!=null&&H.length&&(H=H[this.ytEmojiSelectorBehavior.focusedIndex])&&H instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(H),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.JJ.Object.defineProperties(p4.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var H=this,C,S,w;return this.emojiManager&&((C=this.data)==null?0:(S=C.emoji)==null?0:(w=S.variantIds)==null?0:w.length)?this.data.emoji.variantIds.map(function(A){return!!A&&_.Wm(H.emojiManager,A)}).filter(function(A){return!!A}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var H,C=(H=this.userSelection)==null?void 0:H.left,S;H=(S=this.userSelection)==null?void 0:S.right;return C&&H?this.getEmojiFromPartialSelections(C,H):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.composedEmojiSelection)==null?0:H.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var C;H=(C=this.userSelection)==null?void 0:C.left;var S;C=(S=this.userSelection)==null?void 0:S.right;if(!H&&!C){var w;return this.ytEmojiSelectorBehavior.emojiUrl(((w=this.data.emoji)==null?void 0:w.emojiId)||"")}return H&&!C?H:!H&&C?C:""}}});
p4.prototype.onMultiSelectorThumbnailRowChanged=p4.prototype.onMultiSelectorThumbnailRowChanged;p4.prototype.onClick=p4.prototype.onClick;_.D([_.v(_.zj),_.K("design:type",Object)],p4.prototype,"ironOverlayBehavior",void 0);_.D([_.v(VN7),_.K("design:type",Object)],p4.prototype,"ytEmojiSelectorBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],p4.prototype,"data",void 0);_.D([_.V(),_.K("design:type",_.mw)],p4.prototype,"emojiManager",void 0);
_.D([_.V(),_.K("design:type",Object)],p4.prototype,"userSelection",void 0);_.D([_.V(),_.K("design:type",Object)],p4.prototype,"scrollAction",void 0);_.D([_.V(),_.K("design:type",Object)],p4.prototype,"isEmojiDraftInProgress",void 0);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],p4.prototype,"emojiVariants",null);_.D([_.l("data","userSelection"),_.K("design:type",Object),_.K("design:paramtypes",[])],p4.prototype,"composedEmojiSelection",null);
_.D([_.Gz("click"),_.K("design:type",Function),_.K("design:paramtypes",[MouseEvent]),_.K("design:returntype")],p4.prototype,"onClick",null);_.D([_.fx("data.emoji.multiSelectorThumbnailRow"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],p4.prototype,"onMultiSelectorThumbnailRowChanged",null);_.D([_.l("data","userSelection","composedEmojiSelection"),_.K("design:type",String),_.K("design:paramtypes",[])],p4.prototype,"draftEmojiUrl",null);
_.D([_.Lx({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],p4);
_.B(p4,"yt-emoji-multi-person-selector",function(){if(Ob1===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;owb===void 0&&(owb=document.createElement("template"));var w=owb;S.call(C,w.content.cloneNode(!0),H.content.firstChild);Ob1=H}H=Ob1;return H},{mode:2});var P8n;var $oP;var kr=function(){var H=_.X.apply(this,arguments)||this;H.tooltip_=null;return H};
_.G(kr,_.X);_.F=kr.prototype;_.F.dataChanged_=function(){var H;if((H=this.data)==null?0:H.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.mY(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.bA)(this.tooltip_).textContent=this.data.tooltip};
_.F.computeTargetId=function(){var H;return((H=this.data)==null?void 0:H.targetId)||""};
_.F.computeId_=function(H){return H};
_.F.computeIcon_=function(H){return _.bJ(H)};
_.F.onTap_=function(){this.active=!this.active;_.M3(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.F.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uQ("active-changed",this.active))};
_.JJ.Object.defineProperties(kr.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var H,C;if((H=this.data)==null?0:(C=H.icon)==null?0:C.iconType)return this.data.icon.iconType==="SUPER_STICKER";var S,w;return((S=this.data)==null?void 0:(w=S.icon)==null?void 0:w.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
kr.prototype.activeChangedForBinding=kr.prototype.activeChangedForBinding;kr.prototype.dataChanged_=kr.prototype.dataChanged_;_.D([_.v(_.TH.YtLiveChatTooltipTargetingBehavior),_.K("design:type",Object)],kr.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],kr.prototype,"data",void 0);_.D([_.V({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.K("design:type",String)],kr.prototype,"id",void 0);
_.D([_.V({computed:"computeTargetId(data.targetId)"}),_.K("design:type",String)],kr.prototype,"targetId",void 0);_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],kr.prototype,"active",void 0);_.D([_.V({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.K("design:type",String)],kr.prototype,"icon",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],kr.prototype,"dataChanged_",null);
_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],kr.prototype,"iconFilled",null);_.D([_.fx("active"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],kr.prototype,"activeChangedForBinding",null);_.D([_.Lx({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],kr);
_.B(kr,"yt-emoji-picker-category-button-renderer",function(){if($oP===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;P8n===void 0&&(P8n=document.createElement("template"));var w=P8n;S.call(C,w.content.cloneNode(!0),H.content.firstChild);$oP=H}H=$oP;return H},{mode:2});var psU;var kin;var hv=function(){var H=_.X.apply(this,arguments)||this;H.ariaLabel=null;H.ariaActivedescendant=null;H.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};H.JSC$14190_ignoreNextFocus_=!1;H.longPressTimeoutId=-1;return H};
_.G(hv,_.X);_.F=hv.prototype;_.F.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.F.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.F.emojiChanged_=function(){this.changeFocus_(0,!1);for(var H=_.lJ(),C=0;C<this.emoji.length;C++){var S={veType:88013,elementIndex:C},w=this.emoji[C];w.isCustomEmoji&&(w=document.querySelector(("#"+w.emojiId).replace("/","\\/")))&&(S=_.vI(H,S))&&(w.visualElement=S)}};
_.F.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.F.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.F.emojiSkinToneChanged_=function(H){this.skinTone=H};
_.F.dataChanged=function(){this.data&&this.data.emojiData&&V07(this.emojiManager,this.data.emojiData)};
_.F.emojiUrl=function(H){H=this.getEmoji(H);if(!H)return"";var C;H=(C=H.image)==null?void 0:C.thumbnails;return _.TG(H,24)||""};
_.F.emojiAlt=function(H){var C=this.get("image.accessibility.accessibilityData.label",H);return C?C:H.isCustomEmoji?H.shortcuts[0]:H.emojiId};
_.F.emojiAriaLabel=function(H){return H.shortcuts?H.shortcuts[0]:""};
_.F.emojiAriaSelected=function(H,C,S){return H&&S==C?"true":"false"};
_.F.getEmoji=function(H){if(this.emojiManager)return this.shouldUseStickyPreferences?OAb(this.emojiManager,H):ya(this.emojiManager,H)};
_.F.computeId_=function(H){return H.categoryId||""};
_.F.computeEmoji=function(H){var C=this;return this.emojiManager?H.emojiIds?H.emojiIds.map(function(S){return S?_.Wm(C.emojiManager,S):null}).filter(E0W):H.emojiData?H.emojiData.map(function(S){var w=!!S.emojiId&&_.Wm(C.emojiManager,S.emojiId);
return w?Object.assign({},w,S):null}).filter(E0W):[]:[]};
_.F.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.F.computeAriaLabel_=function(H){return _.jt(H)};
_.F.computeAriaActivedescendant_=function(H,C){return H&&H[C]?H[C].emojiId||"":""};
_.F.handleLongPressEmojiWithVariants=function(H,C){this.changeFocusToEmoji(H.emojiId,!1);this.openVariantSelector(H,C)};
_.F.onMouseDown=function(H){var C=this;this.hostElement!==document.activeElement&&(this.JSC$14190_ignoreNextFocus_=!0);if(H.button===0){var S=_.Jr(H);if(S instanceof HTMLImageElement){var w=_.mY(this.hostElement).querySelector("#repeat").itemForElement(S);this.emojiContainsVariants(w)&&(this.longPressTimeoutId=setTimeout(function(){C.handleLongPressEmojiWithVariants(w,S)},500))}}};
_.F.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.F.onFocus=function(){this.JSC$14190_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14190_ignoreNextFocus_=!1};
_.F.onBlur_=function(){this.showFocus=!1};
_.F.emojiContainsVariants=function(H){return!!(H&&H.variantIds&&H.variantIds.length)};
_.F.onClick=function(H){clearTimeout(this.longPressTimeoutId);H=_.Jr(H);if(H instanceof HTMLImageElement){var C=H.id;this.changeFocusToEmoji(C,!1);var S=this.getEmoji(C),w;if(w=this.shouldUseStickyPreferences&&this.emojiContainsVariants(S)){var A;w=!((A=this.emojiManager.emojiMap[C])!=null&&A.stickyPrefId)}w?(A=_.mY(this.hostElement).querySelector("#repeat").itemForElement(H),this.openVariantSelector(A,H)):_.M3(this.hostElement,"yt-emoji-select",S)}};
_.F.isActiveEmojiWithVariants=function(H,C){return H&&C?C.stickyPrefId?H===C.stickyPrefId:H===C.emojiId:!1};
_.F.onCloseEmojiVariantSelector=function(H){this.activeEmojiWithVariantsId===H&&(this.activeEmojiWithVariantsId="")};
_.F.onMouseOver_=function(H){H=_.Jr(H);H instanceof HTMLImageElement&&_.M3(this.hostElement,"yt-emoji-hover",_.Wm(this.emojiManager,H.id))};
_.F.changeFocus_=function(H,C){this.focusedIndex=(this.focusedIndex+H+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(H=this.emoji[this.focusedIndex],C&&(this.showFocus=!0,_.mY(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.M3(this.hostElement,"yt-emoji-hover",H)))};
_.F.changeFocusToEmoji=function(H,C){if(H){var S=this.emoji.findIndex(function(w){return w.emojiId===H});
S!==-1&&this.changeFocus_(S-this.focusedIndex,C)}};
_.F.onKeyDown_=function(H){switch(H.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var C=this.emoji[this.focusedIndex];if(C&&C.emojiId){if(this.emojiContainsVariants(C)){var S=_.mY(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(C,S)}else _.M3(this.hostElement,"yt-emoji-select",ya(this.emojiManager,C.emojiId)),this.hostElement.focus();H.preventDefault()}}break;case 40:this.changeFocus_(1,!0);H.preventDefault();break;case 38:this.changeFocus_(-1,!0),
H.preventDefault()}};
_.F.onEmojiStickyPreferenceChanged=function(H,C){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&H.emojiId&&H.variantIds&&H.variantIds.includes(C)&&this.activeEmojiWithVariantsId!==C&&this.setStickyEmojiPreference(H.emojiId,C)};
_.F.openVariantSelector=function(H,C){this.activeEmojiWithVariantsId=H.stickyPrefId||H.emojiId||"";_.M3(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:H,target:C})};
_.F.setStickyEmojiPreference=function(H,C){if(this.data){var S=this.emoji.findIndex(function(A){return A.emojiId===H});
if(S!==-1){var w=this.emoji[S];w.stickyPrefId=C;this.set("emoji."+S,Object.assign({},w));this.activeEmojiWithVariantsId=C}}};
hv.prototype.onKeyDown_=hv.prototype.onKeyDown_;hv.prototype.onMouseOver_=hv.prototype.onMouseOver_;hv.prototype.onClick=hv.prototype.onClick;hv.prototype.onBlur_=hv.prototype.onBlur_;hv.prototype.onFocus=hv.prototype.onFocus;hv.prototype.onMouseUp=hv.prototype.onMouseUp;hv.prototype.onMouseDown=hv.prototype.onMouseDown;hv.prototype.dataChanged=hv.prototype.dataChanged;hv.prototype.disableIncrementalLoadingChanged_=hv.prototype.disableIncrementalLoadingChanged_;hv.prototype.emojiManagerChanged_=hv.prototype.emojiManagerChanged_;
hv.prototype.emojiChanged_=hv.prototype.emojiChanged_;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],hv.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],hv.prototype,"data",void 0);_.D([_.V({computed:"computeId_(data)"}),_.K("design:type",String)],hv.prototype,"id",void 0);_.D([_.V({computed:"computeEmoji(data)"}),_.K("design:type",Array)],hv.prototype,"emoji",void 0);_.D([_.V(),_.K("design:type",Number)],hv.prototype,"skinTone",void 0);
_.D([_.V(),_.K("design:type",_.mw)],hv.prototype,"emojiManager",void 0);_.D([_.V(),_.K("design:type",Boolean)],hv.prototype,"disableIncrementalLoading",void 0);_.D([_.V({value:0}),_.K("design:type",Number)],hv.prototype,"focusedIndex",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],hv.prototype,"showFocus",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.K("design:type",Object)],hv.prototype,"ariaLabel",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.K("design:type",Object)],hv.prototype,"ariaActivedescendant",void 0);_.D([_.V({value:60}),_.K("design:type",Number)],hv.prototype,"domRepeatTargetFramerate",void 0);_.D([_.V({value:1}),_.K("design:type",Number)],hv.prototype,"domRepeatInitialCount",void 0);_.D([_.V({value:""}),_.K("design:type",String)],hv.prototype,"activeEmojiWithVariantsId",void 0);
_.D([_.V({value:!1}),_.K("design:type",Boolean)],hv.prototype,"shouldUseStickyPreferences",void 0);_.D([_.fx("emoji"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hv.prototype,"emojiChanged_",null);_.D([_.fx("emojiManager"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hv.prototype,"emojiManagerChanged_",null);
_.D([_.fx("disableIncrementalLoading"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hv.prototype,"disableIncrementalLoadingChanged_",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hv.prototype,"dataChanged",null);_.D([_.Gz("mousedown"),_.K("design:type",Function),_.K("design:paramtypes",[Object]),_.K("design:returntype")],hv.prototype,"onMouseDown",null);
_.D([_.Gz("mouseup"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hv.prototype,"onMouseUp",null);_.D([_.Gz("focus"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hv.prototype,"onFocus",null);_.D([_.Gz("blur"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hv.prototype,"onBlur_",null);
_.D([_.Gz("click"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],hv.prototype,"onClick",null);_.D([_.Gz("mouseover"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],hv.prototype,"onMouseOver_",null);_.D([_.Gz("keydown"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],hv.prototype,"onKeyDown_",null);
_.D([_.Lx({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],hv);
_.B(hv,"yt-emoji-picker-category-renderer",function(){if(kin===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;psU===void 0&&(psU=document.createElement("template"));var w=psU;S.call(C,w.content.cloneNode(!0),H.content.firstChild);kin=H}H=kin;return H},{mode:2});var hfV;var nwU;var rH_;var Bkn;var n4=function(){var H=_.X.apply(this,arguments)||this;H.ariaLabel=null;H.ariaActivedescendant=null;H.getFormattedStringRawText=_.jt;H.JSC$14196_ignoreNextFocus_=!1;return H};
_.G(n4,_.X);_.F=n4.prototype;_.F.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")};
_.F.emojiUrl=function(H){var C,S;H=(C=ya(this.emojiManager,H,!0))==null?void 0:(S=C.image)==null?void 0:S.thumbnails;return _.TG(H,24)||""};
_.F.emojiAlt=function(H){var C=this.get("image.accessibility.accessibilityData.label",H);return C?C:H.isCustomEmoji?H.shortcuts[0]:H.emojiId};
_.F.emojiId=function(H){return"emoji"+H};
_.F.computeId_=function(H){return H.categoryId||""};
_.F.computeAriaActivedescendant_=function(H){return this.emoji&&H<this.emoji.length?this.emojiId(H):""};
_.F.emojiChanged_=function(){this.changeFocus_(0,!1);for(var H=_.lJ(),C=0;C<this.emoji.length;C++){var S={veType:88013,elementIndex:C},w=this.emoji[C];w.isCustomEmoji&&(w=document.querySelector(("#"+w.emojiId).replace("/","\\/")))&&(S=_.vI(H,S))&&(w.visualElement=S)}};
_.F.computeEmoji_=function(H){var C=this;return this.emojiManager?H.emojiIds.map(function(S){return _.Wm(C.emojiManager,S,!0)}).filter(egw):[]};
_.F.titleOffsetChanged_=function(){var H=this.hostElement.getBoundingClientRect(),C=_.mY(this.hostElement).querySelector("#title").getBoundingClientRect();H=Math.max(0,Math.min(this.titleOffset,H.height-C.height));_.mY(this.hostElement).querySelector("#title").style.top=H+"px"};
_.F.onEmojiMouseOver_=function(H){_.M3(this.hostElement,"yt-emoji-hover",H.model.item)};
_.F.onEmojiTap_=function(H){this.data.command&&(H=j1V(_.JA().resolve(_.AA(Us)),this.data.command,H),_.M3(this.hostElement,"yt-navigate",H))};
_.F.emojiAriaLabel=function(H){return H.shortcuts[0]};
_.F.emojiAriaSelected=function(H,C,S){return H&&S==C?"true":"false"};
_.F.changeFocus_=function(H,C){var S=this.emoji.length;this.focusedIndex=(this.focusedIndex+H+S)%S;H=this.emoji[this.focusedIndex];if(C){var w;(w=_.mY(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||w.scrollIntoView(!1);_.M3(this.hostElement,"yt-emoji-hover",H)}};
_.F.onMouseDown_=function(){this.JSC$14196_ignoreNextFocus_=!0};
_.F.onFocus_=function(){this.JSC$14196_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14196_ignoreNextFocus_=!1};
_.F.onBlur_=function(){this.showFocus=!1};
_.F.onKeyDown_=function(H){switch(H.keyCode){case 13:this.onEmojiTap_(H);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);H.preventDefault();break;case 38:this.changeFocus_(-1,!0),H.preventDefault()}};
n4.prototype.onKeyDown_=n4.prototype.onKeyDown_;n4.prototype.onBlur_=n4.prototype.onBlur_;n4.prototype.onFocus_=n4.prototype.onFocus_;n4.prototype.onMouseDown_=n4.prototype.onMouseDown_;n4.prototype.onEmojiTap_=n4.prototype.onEmojiTap_;n4.prototype.titleOffsetChanged_=n4.prototype.titleOffsetChanged_;n4.prototype.emojiChanged_=n4.prototype.emojiChanged_;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],n4.prototype,"ytComponentBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],n4.prototype,"data",void 0);_.D([_.V({computed:"computeId_(data)"}),_.K("design:type",String)],n4.prototype,"id",void 0);_.D([_.V({computed:"computeEmoji_(data)"}),_.K("design:type",Array)],n4.prototype,"emoji",void 0);_.D([_.V({value:0}),_.K("design:type",Number)],n4.prototype,"titleOffset",void 0);_.D([_.V({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.K("design:type",Object)],n4.prototype,"ariaLabel",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.K("design:type",Object)],n4.prototype,"ariaActivedescendant",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],n4.prototype,"showFocus",void 0);_.D([_.V({value:0}),_.K("design:type",Number)],n4.prototype,"focusedIndex",void 0);_.D([_.V(),_.K("design:type",_.mw)],n4.prototype,"emojiManager",void 0);
_.D([_.fx("emoji"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],n4.prototype,"emojiChanged_",null);_.D([_.fx("titleOffset"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],n4.prototype,"titleOffsetChanged_",null);_.D([_.Gz("click"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],n4.prototype,"onEmojiTap_",null);
_.D([_.Gz("mousedown"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],n4.prototype,"onMouseDown_",null);_.D([_.Gz("focus"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],n4.prototype,"onFocus_",null);_.D([_.Gz("blur"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],n4.prototype,"onBlur_",null);
_.D([_.Gz("keydown"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],n4.prototype,"onKeyDown_",null);_.D([_.Lx({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],n4);
_.B(n4,"yt-emoji-picker-upsell-category-renderer",function(){if(Bkn===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;rH_===void 0&&(rH_=document.createElement("template"));var w=rH_;S.call(C,w.content.cloneNode(!0),H.content.firstChild);Bkn=H}H=Bkn;return H},{mode:2});var DoM;var KtY;var r2=function(){var H=_.X.apply(this,arguments)||this;H.scrollAction="lock";H.verticalAlign="top";return H};
_.G(r2,_.X);_.F=r2.prototype;_.F.onClick=function(H){H=_.Jr(H);H instanceof HTMLImageElement&&_.M3(this.hostElement,"yt-emoji-select",_.Wm(this.emojiManager,H.id))};
_.F.openSelector=function(){this.ironOverlayBehavior.open()};
_.F.onDomChange=function(){lFb(this.ytEmojiSelectorBehavior)};
_.F.computeIsFamilySelector=function(H){var C;return(H==null?void 0:(C=H.emoji)==null?void 0:C.emojiId)==="\ud83d\udc6a"};
_.F.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var H=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];H&&H.emojiId&&(_.M3(this.hostElement,"yt-emoji-select",_.Wm(this.emojiManager,H.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.JJ.Object.defineProperties(r2.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var H=this,C,S,w;return this.emojiManager&&((C=this.data)==null?0:(S=C.emoji)==null?0:(w=S.variantIds)==null?0:w.length)?this.data.emoji.variantIds.map(function(A){return!!A&&_.Wm(H.emojiManager,A)}).filter(function(A){return!!A}):[]}}});
r2.prototype.onClick=r2.prototype.onClick;_.D([_.v(_.zj),_.K("design:type",Object)],r2.prototype,"ironOverlayBehavior",void 0);_.D([_.v(VN7),_.K("design:type",Object)],r2.prototype,"ytEmojiSelectorBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],r2.prototype,"data",void 0);_.D([_.V(),_.K("design:type",_.mw)],r2.prototype,"emojiManager",void 0);_.D([_.V(),_.K("design:type",Object)],r2.prototype,"scrollAction",void 0);_.D([_.V(),_.K("design:type",Object)],r2.prototype,"verticalAlign",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.K("design:type",Boolean)],r2.prototype,"isFamilySelector",void 0);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],r2.prototype,"emojiVariants",null);_.D([_.Gz("click"),_.K("design:type",Function),_.K("design:paramtypes",[MouseEvent]),_.K("design:returntype")],r2.prototype,"onClick",null);_.D([_.Lx({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],r2);
_.B(r2,"yt-emoji-variant-selector",function(){if(KtY===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;DoM===void 0&&(DoM=document.createElement("template"));var w=DoM;S.call(C,w.content.cloneNode(!0),H.content.firstChild);KtY=H}H=KtY;return H},{mode:2});var tNb=/:/g,Ltn=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],Bm=function(){var H=_.X.apply(this,arguments)||this;H.emojiVariantSelector=null;H.emojiMultiPersonSelector=null;H.identity=_.$E;H.lastAnimationTime_=0;H.animationStart_=null;H.animationEnd_=null;return H};
_.G(Bm,_.X);_.F=Bm.prototype;
_.F.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}}};
_.F.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.Nh)};
_.F.attached=function(){_.My&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&ohd(this.emojiManager)};
_.F.dataChanged=function(){var H;if((H=this.data)==null?0:H.categories){H=this.emojiManager;var C=this.getCustomEmojiIds();H.pickerCustomEmojiIds=[].concat(_.k$(ukd),_.k$(C))}};
_.F.getCustomEmojiIds=function(){var H,C=(H=this.data.categories)==null?void 0:H.find(function(J){var c;return((c=J.emojiPickerCategoryRenderer)==null?void 0:c.categoryId)&&Ltn.includes(J.emojiPickerCategoryRenderer.categoryId)}),S;
H=(S=this.data.categories)==null?void 0:S.find(function(J){return J.emojiPickerUpsellCategoryRenderer});
var w,A;return[C==null?void 0:(w=C.emojiPickerCategoryRenderer)==null?void 0:w.emojiIds,H==null?void 0:(A=H.emojiPickerUpsellCategoryRenderer)==null?void 0:A.emojiIds].flat().filter(function(J){return!!J})};
_.F.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.F.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.F.updateCategoriesAndPlaceholderInternal=function(H,C){var S=this;H&&C&&(this.categories=H.categories||[],this.categoryButtons=H.categoryButtons||[],this.resetPlaceholder(),this.search="",_.HI(function(){S.updateButtons_()}))};
_.F.computeId_=function(H){return H.id||""};
_.F.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(H){return H.emojiPickerCategoryRenderer&&H.emojiPickerCategoryRenderer.emojiData}):!1};
_.F.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.F.onShowEmojiVariantSelector=function(H){var C=H.detail.emojiData;C.variantIds&&C.variantIds.length&&(C.multiSelectorThumbnailRow&&C.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:C,target:H.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:C,target:H.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.F.onIronOverlayClosed=function(H){var C=OAb(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");C&&H.composedPath&&(H.composedPath().includes(_.mY(this.hostElement).querySelector("#emoji-variant-selector"))||H.composedPath().includes(_.mY(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.q3(this.hostElement,"yt-close-emoji-variant-selector",[C.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.F.onEmojiVariantSelectorMouseup=function(H){var C=H.target.firstChild;this.variantSelectorOpened&&C&&_.HI(function(){C.noCancelOnOutsideClick=!1},100)};
_.F.onEmojiVariantSelectorMousedown=function(H){H=H.target.firstChild;this.variantSelectorOpened&&H&&(H.noCancelOnOutsideClick=!1)};
_.F.onSelectCategory_=function(H){var C=this.search!="";this.search="";for(var S=_.mY(this.hostElement).querySelector("#categories").children,w=0;w<S.length;w++){var A=S[w];if(A.id==H.detail.categoryId){C?(_.mY(this.hostElement).querySelector("#categories").scrollTop=A.offsetTop,this.updateButtons_()):(this.animationStart_=_.mY(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=A.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.F.onEmojiHover_=function(H){this.placeholder=H.detail.shortcuts?H.detail.shortcuts[0]:""};
_.F.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.F.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.F.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.F.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.F.computeSearchCategory_=function(H){H=H.replace(tNb,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();H=H.split(" ");for(var C=[],S=this.emojiManager.emojis,w=0;w<S.length;w++){var A=S[w];if(A.searchTerms)for(var J=0;J<A.searchTerms.length;J++){for(var c=A.searchTerms[J].toLocaleLowerCase(),Y=!1,M=0;M<H.length;M++)if(c.indexOf(H[M])!=-1){Y=!0;break}if(Y&&(!A.isCustomEmoji||!A.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(A.emojiId))){C.push(A.emojiId);
break}}}return{categoryId:-1,emojiIds:C}};
_.F.computeSearchEmptyMessage_=function(H,C){return H&&C&&C.emojiIds&&C.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.F.computeSearching_=function(H){return this.emojiManager&&H.replace(tNb,"").length>1};
_.F.computeSkinToneHidden=function(){var H;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((H=this.data)==null||!H.hideSkinTonePicker)};
_.F.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.F.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.F.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.F.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.F.selectSkinTone_=function(H){H=Number(H.target.getAttribute("tone"));this.set("emojiManager.skinTone",H);_.q3(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[H]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.F.skinToneChanged_=function(){_.mY(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var H=_.mY(this.hostElement).querySelector("#dropdown-content").children,C=0;C<H.length;C++)C===this.skinTone?H[C].setAttribute("selected",""):H[C].removeAttribute("selected")};
_.F.animateScroll_=function(H){this.lastAnimationTime_||(this.lastAnimationTime_=H);H-=this.lastAnimationTime_;H<200?(_.mY(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*H/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.mY(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.F.searchChanged_=function(){this.updateButtons_()};
_.F.updateButtons_=function(){var H=null;if(!this.search)for(var C=_.mY(this.hostElement).querySelector("#categories").scrollTop,S=_.mY(this.hostElement).querySelector("#categories").children,w=0;w<S.length;w++){var A=S[w];A.offsetTop<=C&&(H=A.id)}C=_.mY(this.hostElement).querySelector("#category-buttons").children;for(S=0;S<C.length;S++)w=C[S],w.active=w.id===H};
Bm.prototype.searchChanged_=Bm.prototype.searchChanged_;Bm.prototype.skinToneChanged_=Bm.prototype.skinToneChanged_;Bm.prototype.onEmojiHover_=Bm.prototype.onEmojiHover_;Bm.prototype.onSelectCategory_=Bm.prototype.onSelectCategory_;Bm.prototype.onShowEmojiVariantSelector=Bm.prototype.onShowEmojiVariantSelector;Bm.prototype.updateCategoriesAndPlaceholder_=Bm.prototype.updateCategoriesAndPlaceholder_;Bm.prototype.dataChanged=Bm.prototype.dataChanged;
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Bm.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Bm.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Bm.prototype,"data",void 0);_.D([_.V({value:function(){return[]}}),
_.K("design:type",Array)],Bm.prototype,"categories",void 0);_.D([_.V({value:function(){return[]}}),
_.K("design:type",Array)],Bm.prototype,"categoryButtons",void 0);_.D([_.V({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Bm.prototype,"disableScroll",void 0);_.D([_.V({computed:"computeId_(data)",reflectToAttribute:!0}),_.K("design:type",String)],Bm.prototype,"id",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],Bm.prototype,"selected",void 0);
_.D([_.V({value:!1}),_.K("design:type",Boolean)],Bm.prototype,"disableIncrementalLoading",void 0);_.D([_.V(),_.K("design:type",String)],Bm.prototype,"placeholder",void 0);_.D([_.V({value:""}),_.K("design:type",String)],Bm.prototype,"search",void 0);_.D([_.V({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Bm.prototype,"searching",void 0);_.D([_.V({computed:"computeSearchCategory_(search)"}),_.K("design:type",Object)],Bm.prototype,"searchCategory",void 0);
_.D([_.V({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.K("design:type",Object)],Bm.prototype,"searchEmptyMessage",void 0);_.D([_.V({computed:"identity(emojiManager.skinTone)"}),_.K("design:type",Number)],Bm.prototype,"skinTone",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],Bm.prototype,"skinToneOpened",void 0);_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],Bm.prototype,"variantSelectorOpened",void 0);
_.D([_.V({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.K("design:type",Boolean)],Bm.prototype,"skinToneHidden",void 0);_.D([_.V(),_.K("design:type",_.mw)],Bm.prototype,"emojiManager",void 0);_.D([_.V(),_.K("design:type",Object)],Bm.prototype,"emojiVariantSelector",void 0);_.D([_.V(),_.K("design:type",Object)],Bm.prototype,"emojiMultiPersonSelector",void 0);
_.D([_.V({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.K("design:type",Boolean)],Bm.prototype,"shouldUseStickyPreferences",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Bm.prototype,"dataChanged",null);_.D([_.fx("data","selected"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Bm.prototype,"updateCategoriesAndPlaceholder_",null);
_.D([_.Gz("yt-show-emoji-variant-selector"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],Bm.prototype,"onShowEmojiVariantSelector",null);_.D([_.Gz("yt-emoji-picker-select-category"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],Bm.prototype,"onSelectCategory_",null);_.D([_.Gz("yt-emoji-hover"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],Bm.prototype,"onEmojiHover_",null);
_.D([_.fx("skinTone"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Bm.prototype,"skinToneChanged_",null);_.D([_.fx("search"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Bm.prototype,"searchChanged_",null);_.D([_.Lx({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],Bm);
_.B(Bm,"yt-emoji-picker-renderer",function(){if(nwU===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;hfV===void 0&&(hfV=document.createElement("template"));var w=hfV;S.call(C,w.content.cloneNode(!0),H.content.firstChild);nwU=H}H=nwU;return H},{mode:2});var D$=function(){var H=_.X.apply(this,arguments)||this;H.emojiManager=_.Nh;H.isDarkTheme=document.documentElement.hasAttribute("dark");H.selectedIndex=1;H.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return H};
_.G(D$,_.X);_.F=D$.prototype;_.F.handleEmojiCustomizationVisible=function(H){this.emojiPickerRenderer.selected=H;this.selectedIndex=1;H?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.F.emojiCustomizationSetChanged=function(){var H;(H=this.data)!=null&&H.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.a0(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.F.updateSaveButtonState=function(H){var C;(C=this.data)!=null&&C.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.O5("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:H}))};
_.F.emojiUrl=function(H){H=_.Wm(this.emojiManager,H);if(!H)return"";var C;H=(C=H.image)==null?void 0:C.thumbnails;return _.TG(H,24)||""};
_.F.emojiAlt=function(H){var C=_.Wm(this.emojiManager,H);if(!C)return H;var S,w,A,J=(C==null?void 0:(S=C.image)==null?void 0:(w=S.accessibility)==null?void 0:(A=w.accessibilityData)==null?void 0:A.label)||"";return J?J:C.isCustomEmoji?C.shortcuts[0]:C.emojiId||H};
_.F.emojiAriaLabel=function(H){var C,S;return((C=_.Wm(this.emojiManager,H))==null?void 0:(S=C.shortcuts)==null?void 0:S[0])||H};
_.F.onEmojiClick=function(H){H.model.index!==0&&(this.selectedIndex=H.model.index)};
_.F.onEmojiSelect=function(H){H=H.detail;var C,S;((C=this.data)==null?0:C.emojiCustomizationSetEntityKey)&&((S=this.emojiCustomizationSet)==null?0:S.emojiId)&&H.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,H.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.O5("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,H.emojiId,this.selectedIndex)}))};
_.F.canEditEmoji=function(H,C,S){H=H.indexOf(C);return H===S||H===0||S===0?!1:!0};
_.F.getUpdatedEmojiIdList=function(H,C,S){var w=H.indexOf(C);H=[].concat(_.k$(H));w>=0&&(H[w]=H[S]);H[S]=C;return H};
_.JJ.Object.defineProperties(D$,{template:{configurable:!0,enumerable:!0,get:function(){if(Yzi===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;cHb===void 0&&(cHb=document.createElement("template"));var w=cHb;S.call(C,w.content.cloneNode(!0),H.content.firstChild);Yzi=H}H=Yzi;return H}}});
D$.prototype.onEmojiSelect=D$.prototype.onEmojiSelect;_.D([_.v(_.qU),_.K("design:type",Object)],D$.prototype,"ytLiveChatReduxBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],D$.prototype,"ytActionHandlerBehavior",void 0);_.D([_.lA("yt-emoji-picker-renderer"),_.K("design:type",Object)],D$.prototype,"emojiPickerRenderer",void 0);
_.D([_.V({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(H,C){return _.Ea(H.entities,"emojiCustomizationSetEntity",C)},
observer:"emojiCustomizationSetChanged"}),_.K("design:type",Object)],D$.prototype,"emojiCustomizationSet",void 0);_.D([_.V(),_.K("design:type",Object)],D$.prototype,"originalEmojiSet",void 0);_.D([_.V(),_.K("design:type",_.mw)],D$.prototype,"emojiManager",void 0);_.D([_.V(),_.K("design:type",Object)],D$.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],D$.prototype,"isDarkTheme",void 0);_.D([_.V(),_.K("design:type",Object)],D$.prototype,"selectedIndex",void 0);
_.D([_.Gz("yt-emoji-select"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],D$.prototype,"onEmojiSelect",null);_.D([_.Lx({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],D$);var gw7;var Uoi;var RfV;var IFn;var K4=function(){var H=_.X.apply(this,arguments)||this;H.authorBadges=[];return H};
_.G(K4,_.X);_.F=K4.prototype;_.F.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.F.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]]"}}}}}};
_.F.dataChanged=function(){var H=Ir6(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",H)};
_.F.updateMessage=function(){var H=this.data.message,C=_.mY(_.mY(this.hostElement).querySelector("#message"));C.textContent="";H&&C.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(H))};
_.F.shouldSupportWholeItemClick=function(){return!0};
_.F.onShowOriginalClick=function(H){H.preventDefault();this.showOriginal=!0};
_.F.computeShowBar=function(H,C,S){return H&&C||S};
_.F.computeAuthorBadges=function(H){return H.authorBadges||[]};
_.F.computeAuthorIsOwner=function(H){return!!ari(H.authorBadges,"owner")};
_.F.computeAuthorNameColor=function(H){var C;if(_.E("live_chat_author_name_color_usernames")&&(H==null?0:(C=H.authorName)==null?0:C.simpleText))return _.s90(_.j90(H.authorName.simpleText));if(_.E("live_chat_seed_color_usernames")&&(H==null?0:H.authorSeedColorArgb))return _.s90(_.yh(H.authorSeedColorArgb));if(_.E("live_chat_colored_usernames"))return"#cc0000";var S;return _.E("live_chat_simple_color_usernames")&&(H==null?0:(S=H.authorName)==null?0:S.simpleText)&&(H==null?0:H.authorUsernameColorLight)&&
(H==null?0:H.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.yh(H.authorUsernameColorDark):_.yh(H.authorUsernameColorLight):""};
K4.prototype.updateMessage=K4.prototype.updateMessage;K4.prototype.dataChanged=K4.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],K4.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.bQ.YtLiveChatItemBehavior),_.K("design:type",_.EY)],K4.prototype,"ytLiveChatItemBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],K4.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],K4.prototype,"data",void 0);
_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],K4.prototype,"showOriginal",void 0);_.D([_.V({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.K("design:type",Boolean)],K4.prototype,"isDimmed",void 0);_.D([_.V({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.K("design:type",Boolean)],K4.prototype,"showBar",void 0);
_.D([_.V({computed:"computeAuthorBadges(data)"}),_.K("design:type",Array)],K4.prototype,"authorBadges",void 0);_.D([_.V({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],K4.prototype,"authorIsOwner",void 0);_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],K4.prototype,"inCollapsedBanner",void 0);_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],K4.prototype,"inBanner",void 0);
_.D([_.V({value:_.E("live_chat_hide_avatars"),reflectToAttribute:!0}),_.K("design:type",Boolean)],K4.prototype,"avatarHidden",void 0);_.D([_.V({computed:"computeAuthorNameColor(data)"}),_.K("design:type",String)],K4.prototype,"authorNameColor",void 0);_.D([_.V(),_.K("design:type",_.Gh)],K4.prototype,"participantsManager",void 0);_.D([_.V({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.K("design:type",Object)],K4.prototype,"filledButtonOverrides",void 0);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],K4.prototype,"dataChanged",null);_.D([_.fx("data.message"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],K4.prototype,"updateMessage",null);_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],K4);
_.B(K4,"yt-live-chat-text-message-renderer",function(){if(IFn===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;RfV===void 0&&(RfV=document.createElement("template"));var w=RfV;S.call(C,w.content.cloneNode(!0),H.content.firstChild);IFn=H}H=IFn;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var tv=function(){var H=_.X.apply(this,arguments)||this;H.tonalButtonOverrides={type:"tonal",style:"overlay"};return H};
_.G(tv,_.X);
tv.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]]"}}}}}};
tv.prototype.shouldSupportInlineActionButtons=function(){return!0};
tv.prototype.shouldSupportWholeItemClick=function(){return!0};
_.JJ.Object.defineProperties(tv.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],tv.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.bQ.YtLiveChatItemBehavior),_.K("design:type",_.EY)],tv.prototype,"ytLiveChatItemBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],tv.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],tv.prototype,"data",void 0);_.D([_.V(),_.K("design:type",_.Gh)],tv.prototype,"participantsManager",void 0);
_.D([_.V(),_.K("design:type",Object)],tv.prototype,"tonalButtonOverrides",void 0);_.D([_.V({reflectToAttribute:!0}),_.l("data.infoDialogButton"),_.K("design:type",Object),_.K("design:paramtypes",[])],tv.prototype,"hasInfoDialogButton",null);_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],tv);
_.B(tv,"yt-live-chat-auto-mod-message-renderer",function(){if(Uoi===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;gw7===void 0&&(gw7=document.createElement("template"));var w=gw7;S.call(C,w.content.cloneNode(!0),H.content.firstChild);Uoi=H}H=Uoi;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var aFd;var xo1;var HYY;var iY7=function(){return _.X.apply(this,arguments)||this};
_.G(iY7,_.X);_.D([_.V(),_.K("design:type",Object)],iY7.prototype,"data",void 0);_.D([_.h({is:"ytd-factoid-renderer",disableElementRegistration:!0})],iY7);
_.B(iY7,"ytd-factoid-renderer",function(){if(HYY!==void 0)return HYY;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return HYY=H},{mode:1});var L4=function(){return _.X.apply(this,arguments)||this};
_.G(L4,_.X);L4.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.D([_.V(),_.K("design:type",Object)],L4.prototype,"data",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],L4.prototype,"ytRendererstamperBehavior",void 0);_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],L4);
_.B(L4,"yt-live-chat-channel-activity-reputation-renderer",function(){if(xo1===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;aFd===void 0&&(aFd=document.createElement("template"));var w=aFd;S.call(C,w.content.cloneNode(!0),H.content.firstChild);xo1=H}H=xo1;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var C$n;var SmW;var g2=function(){return _.X.apply(this,arguments)||this};
_.G(g2,_.X);g2.prototype.ready=function(){var H=document.querySelector("yt-live-chat-app");H&&H.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],g2.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Boolean)],g2.prototype,"menuFocused",void 0);_.D([_.V(),_.K("design:type",Object)],g2.prototype,"data",void 0);_.D([_.v(_.bQ.YtLiveChatItemBehavior),_.K("design:type",_.EY)],g2.prototype,"ytLiveChatItemBehavior",void 0);_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],g2);
_.B(g2,"yt-live-chat-donation-announcement-renderer",function(){if(SmW===void 0){var H=document.createElement("template");_.f(H,'\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>');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;C$n===void 0&&(C$n=document.createElement("template"));var w=C$n;S.call(C,w.content.cloneNode(!0),H.content.firstChild);SmW=H}H=SmW;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var sz1;var jz7,w0d=function(){if(jz7!==void 0)return jz7;var H=document.createElement("template");_.f(H,'\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>');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;sz1===void 0&&(sz1=document.createElement("template"));var w=sz1;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return jz7=H};var UY=function(){return _.X.apply(this,arguments)||this};
_.G(UY,_.X);_.JJ.Object.defineProperties(UY,{template:{configurable:!0,enumerable:!0,get:function(){return w0d()}}});
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],UY.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],UY.prototype,"data",void 0);_.D([_.Lx({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],UY);_.B(UY,"yt-live-chat-empty-feed-view-model",function(){return w0d()},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var ARW;var JR1;var Rn=function(){return _.X.apply(this,arguments)||this};
_.G(Rn,_.X);Rn.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"}}}}}};
_.JJ.Object.defineProperties(Rn.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var H,C;return{runs:[{text:(H=this.data)==null?void 0:(C=H.channelName)==null?void 0:C.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var H=[],C;if((C=this.data)==null||!C.channelBadges)return H;var S;C=_.Z((S=this.data)==null?void 0:S.channelBadges);for(S=C.next();!S.done;S=C.next()){S=_.e(S.value,gg1);var w=void 0,A=void 0;if((w=S)==null?0:(A=w.badgeImage)==null?0:A.sources)w=void 0,A={liveChatAuthorBadgeRenderer:{tooltip:S.tooltip,accessibility:{accessibilityData:{label:(w=_.e(S.rendererContext,_.VB))==null?void 0:w.label}}}},S.badgeImage.sources[0].clientResource?A.liveChatAuthorBadgeRenderer.icon=
{iconType:S.badgeImage.sources[0].clientResource.imageName}:A.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:S.badgeImage.sources},H.push(A)}return H}}});
_.D([_.V(),_.K("design:type",Object)],Rn.prototype,"data",void 0);_.D([_.l("data.channelName"),_.K("design:type",Object),_.K("design:paramtypes",[])],Rn.prototype,"channelName",null);_.D([_.l("data.channelBadges"),_.K("design:type",Array),_.K("design:paramtypes",[])],Rn.prototype,"channelBadges",null);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Rn.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],Rn);
_.B(Rn,"yt-live-chat-identity-view-model",function(){if(JR1===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;ARW===void 0&&(ARW=document.createElement("template"));var w=ARW;S.call(C,w.content.cloneNode(!0),H.content.firstChild);JR1=H}H=JR1;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var FZ1;var ZYV;var cRd;var YmV;var In=function(){var H=_.X.apply(this,arguments)||this;H.hidden=!1;H.supportsInlineActionButtons=!0;return H};
_.G(In,_.X);In.prototype.ready=function(){var H;((H=document.querySelector("yt-live-chat-app"))==null?0:H.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
In.prototype.dataChanged=function(H){var C=(0,_.bA)(_.mY(this.hostElement).querySelector("#detail-text"));C.textContent="";(H==null?0:H.detailText)&&C.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(H.detailText))};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],In.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.bQ.YtLiveChatItemBehavior),_.K("design:type",_.EY)],In.prototype,"ytLiveChatItemBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],In.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V({observer:"dataChanged"}),_.K("design:type",Object)],In.prototype,"data",void 0);
_.D([_.V({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.K("design:type",Object)],In.prototype,"hidden",void 0);_.D([_.h({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],In);
_.B(In,"yt-live-chat-legacy-paid-message-renderer",function(){if(YmV===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;cRd===void 0&&(cRd=document.createElement("template"));var w=cRd;S.call(C,w.content.cloneNode(!0),H.content.firstChild);YmV=H}H=YmV;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var zgM;var MPn;var qmb={},an=function(){return _.oZ.apply(this,arguments)||this};
_.G(an,_.oZ);an.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
an.prototype.onLiveChatMembershipItemBehaviorClick=an.prototype.onLiveChatMembershipItemBehaviorClick;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],an.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],an.prototype,"data",void 0);_.D([_.Gz("click"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],an.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.D([_.Od()],an);
qmb.YtLiveChatMembershipItemBehavior=[an.prototype,_.I.YtRendererBehavior];var xr=function(){var H=_.X.apply(this,arguments)||this;H.supportsInlineActionButtons=!0;H.hasPrimaryHeaderText=!1;H.showOnlyHeader=!1;H.authorBadges=[];H.modern=_.E("web_button_rework_with_live");H.buttonOverrides={style:"overlay",type:"filled"};return H};
_.G(xr,_.X);_.F=xr.prototype;_.F.shouldSupportInlineActionButtons=function(){return!0};
_.F.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.F.ready=function(){var H=document.querySelector("yt-live-chat-app");H&&H.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.F.messageChanged=function(){var H=this.data.message,C=(0,_.bA)(_.mY(this.hostElement).querySelector("#message"));C.textContent="";H&&C.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(H))};
_.F.computeHasPrimaryHeaderText=function(H){return!(!H||!H.headerPrimaryText)};
_.F.computeShowOnlyHeader=function(H,C){return this.isMessageEmpty(H,C)};
_.F.computeAuthorBadges=function(H){return H.authorBadges||[]};
_.F.isMessageEmpty=function(H,C){return!H||H.empty?!0:!H.message&&!H.inputField&&!C};
_.F.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.F.getInputElement=function(){return _.mY(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.F.inputFocus=function(){var H=this.getInputElement();H&&H.focus()};
_.F.inputInsertEmoji=function(H){var C=this.getInputElement();C&&C.insertEmoji(H)};
_.F.inputMessage=function(){var H=this.getInputElement();return H&&this.data.inputField?(H.completeEmojis(),_.RW(H.liveChatRichMessageInput)):null};
_.F.onFooterButtonClick=function(){this.data.footerButton&&_.M3(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.F.shouldSupportWholeItemClick=function(){return!0};
xr.prototype.isDeletedChanged=xr.prototype.isDeletedChanged;xr.prototype.messageChanged=xr.prototype.messageChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],xr.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.bQ.YtLiveChatItemBehavior),_.K("design:type",_.EY)],xr.prototype,"ytLiveChatItemBehavior",void 0);_.D([_.v(qmb.YtLiveChatMembershipItemBehavior),_.K("design:type",Object)],xr.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],xr.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],xr.prototype,"data",void 0);_.D([_.V({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.K("design:type",Object)],xr.prototype,"hasPrimaryHeaderText",void 0);_.D([_.V({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.K("design:type",Object)],xr.prototype,"showOnlyHeader",void 0);
_.D([_.V({computed:"computeAuthorBadges(data)"}),_.K("design:type",Array)],xr.prototype,"authorBadges",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],xr.prototype,"modern",void 0);_.D([_.fx("data.message"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xr.prototype,"messageChanged",null);_.D([_.fx("isDeleted"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xr.prototype,"isDeletedChanged",null);
_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],xr);
_.B(xr,"yt-live-chat-membership-item-renderer",function(){if(MPn===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;zgM===void 0&&(zgM=document.createElement("template"));var w=zgM;S.call(C,w.content.cloneNode(!0),H.content.firstChild);MPn=H}H=MPn;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var Tq7;var mM_;var H_=function(){return _.X.apply(this,arguments)||this};
_.G(H_,_.X);H_.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],H_.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],H_.prototype,"data",void 0);_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],H_);
_.B(H_,"yt-live-chat-mode-change-message-renderer",function(){if(mM_===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;Tq7===void 0&&(Tq7=document.createElement("template"));var w=Tq7;S.call(C,w.content.cloneNode(!0),H.content.firstChild);mM_=H}H=mM_;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var WZW;var yR1;var iU=function(){return _.X.apply(this,arguments)||this};
_.G(iU,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],iU.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.bQ.YtLiveChatItemBehavior),_.K("design:type",_.EY)],iU.prototype,"ytLiveChatItemBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],iU.prototype,"data",void 0);_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],iU);
_.B(iU,"yt-live-chat-moderation-message-renderer",function(){if(yR1===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;WZW===void 0&&(WZW=document.createElement("template"));var w=WZW;S.call(C,w.content.cloneNode(!0),H.content.firstChild);yR1=H}H=yR1;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var NqV;var bYU;var CT=function(){var H=_.X.apply(this,arguments)||this;H.modern=_.E("web_button_rework");return H};
_.G(CT,_.X);CT.prototype.onClick=function(){var H;if((H=this.data)!=null&&H.onClickCommand){var C;_.eU.instance.resolveCommand((C=this.data)==null?void 0:C.onClickCommand)}};
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],CT.prototype,"modern",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],CT.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.qU),_.K("design:type",Object)],CT.prototype,"ytLiveChatReduxBehavior",void 0);_.D([_.v(_.bQ.YtLiveChatItemBehavior),_.K("design:type",_.EY)],CT.prototype,"ytLiveChatItemBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],CT.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],CT.prototype,"data",void 0);_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],CT);
_.B(CT,"yt-live-chat-offer-click-count-message-renderer",function(){if(bYU===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;NqV===void 0&&(NqV=document.createElement("template"));var w=NqV;S.call(C,w.content.cloneNode(!0),H.content.firstChild);bYU=H}H=bYU;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var E0d;var eg1=function(){return _.X.apply(this,arguments)||this};
_.G(eg1,_.X);_.D([_.V(),_.K("design:type",Object)],eg1.prototype,"data",void 0);_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],eg1);
_.B(eg1,"yt-live-chat-placeholder-item-renderer",function(){if(E0d===void 0){var H=document.createElement("template");_.f(H,"\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");H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);E0d=H}H=E0d;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var uSP;var GWd;var f_Y=new St(7),Sw=function(){var H=_.X.apply(this,arguments)||this;H.data={};return H};
_.G(Sw,_.X);Sw.prototype.dataChanged=function(){var H;((H=this.data)==null?0:H.class)&&_.yQ(this.hostElement,this.data.class,!0);var C;((C=this.oldData)==null?0:C.class)&&_.yQ(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
Sw.prototype.computeTimestampString=function(H){return f_Y.format(new Date(H/1E3))};
Sw.prototype.dataChanged=Sw.prototype.dataChanged;_.D([_.V(),_.K("design:type",Object)],Sw.prototype,"data",void 0);_.D([_.V({computed:"computeTimestampString(data.timestampUsec)"}),_.K("design:type",String)],Sw.prototype,"timestampString",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Sw.prototype,"dataChanged",null);_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],Sw);
_.B(Sw,"yt-live-chat-server-error-message",function(){if(GWd===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;uSP===void 0&&(uSP=document.createElement("template"));var w=uSP;S.call(C,w.content.cloneNode(!0),H.content.firstChild);GWd=H}H=GWd;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var v01;var l_7;var sI=function(){var H=_.X.apply(this,arguments)||this;H.defaultToFilledIcon=!1;return H};
_.G(sI,_.X);sI.prototype.computeHasPrimaryColorIcon=function(H){return H==="SPARK"||H==="SPONSORSHIP_STAR"};
sI.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],sI.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.bQ.YtLiveChatItemBehavior),_.K("design:type",_.EY)],sI.prototype,"ytLiveChatItemBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],sI.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],sI.prototype,"defaultToFilledIcon",void 0);_.D([_.V(),_.K("design:type",Object)],sI.prototype,"data",void 0);
_.D([_.V({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.K("design:type",Boolean)],sI.prototype,"hasPrimaryColorIcon",void 0);_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],sI);
_.B(sI,"yt-live-chat-viewer-engagement-message-renderer",function(){if(l_7===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;v01===void 0&&(v01=document.createElement("template"));var w=v01;S.call(C,w.content.cloneNode(!0),H.content.firstChild);l_7=H}H=l_7;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var VP7;var jw=function(){var H=_.X.apply(this,arguments)||this;H.modernUpdate=!1;H.buttonStyle="overlay";H.buttonType="filled";return H};
_.G(jw,_.X);jw.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
jw.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],jw.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],jw.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],jw.prototype,"modernUpdate",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",String)],jw.prototype,"buttonStyle",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",String)],jw.prototype,"buttonType",void 0);
_.D([_.h({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],jw);
_.B(jw,"ytd-ad-hover-text-button-renderer",function(){if(VP7!==void 0)return VP7;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return VP7=H},{mode:1});var o0_;var w9=function(){var H=_.X.apply(this,arguments)||this;H.buttonOverrides={size:"XS"};H.modern=_.E("web_button_rework");return H};
_.G(w9,_.X);w9.prototype.onHelpTap=function(H){this.data&&this.data.informationDialog&&(_.M3(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),H.preventDefault(),H.stopPropagation())};
_.D([_.V(),_.K("design:type",Object)],w9.prototype,"buttonOverrides",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],w9.prototype,"modern",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],w9.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],w9.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],w9);
_.B(w9,"ytd-live-chat-purchased-product-message-renderer",function(){if(o0_!==void 0)return o0_;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return o0_=H},{mode:1});var OYb;var X0P;var A1=function(){var H=_.X.apply(this,arguments)||this;H.isContainerDeleted=!1;return H};
_.G(A1,_.X);A1.prototype.onContextMenuClick=function(H){this.ytLiveChatItemBehavior.showContextMenu(H)};
A1.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))};
A1.prototype.isContainerDeletedChanged=A1.prototype.isContainerDeletedChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],A1.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.bQ.YtLiveChatItemBehavior),_.K("design:type",_.EY)],A1.prototype,"ytLiveChatItemBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],A1.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],A1.prototype,"isContainerDeleted",void 0);
_.D([_.V(),_.K("design:type",String)],A1.prototype,"deletedStateMessage",void 0);_.D([_.fx("isContainerDeleted"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],A1.prototype,"isContainerDeletedChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],A1);
_.B(A1,"ytd-sponsorships-live-chat-header-renderer",function(){if(X0P!==void 0)return X0P;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return X0P=H},{mode:1});var J1=function(){var H=_.X.apply(this,arguments)||this;H.modern=_.E("web_button_rework_with_live");H.buttonOverrides={style:"overlay",type:"filled"};return H};
_.G(J1,_.X);J1.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]]"}}}}}};
J1.prototype.onCtaButtonClick=function(){var H,C=_.e((H=this.data)==null?void 0:H.optInPrompt,_.cg);if(H=this.maybeGetButtonCommand(C)){var S;(S=_.lJ())==null||S.clickCommand(H)}};
J1.prototype.maybeGetButtonCommand=function(H){return!H||!H.command||_.e(H.command,lb1)===void 0&&_.e(H.command,vei)===void 0?null:H.command};
J1.prototype.shouldHideOptinPrompt=function(H,C){return!H||C};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],J1.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.bQ.YtLiveChatItemBehavior),_.K("design:type",_.EY)],J1.prototype,"ytLiveChatItemBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],J1.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],J1.prototype,"modern",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],J1);
_.B(J1,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(OYb!==void 0)return OYb;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return OYb=H},{mode:1});var Qz1;var F$=function(){return _.X.apply(this,arguments)||this};
_.G(F$,_.X);F$.prototype.onContextMenuClick=function(H){this.ytLiveChatItemBehavior.showContextMenu(H)};
F$.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))};
F$.prototype.isDeletedChanged=F$.prototype.isDeletedChanged;_.D([_.v(_.bQ.YtLiveChatItemBehavior),_.K("design:type",_.EY)],F$.prototype,"ytLiveChatItemBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],F$.prototype,"data",void 0);_.D([_.fx("isDeleted"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],F$.prototype,"isDeletedChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],F$);
_.B(F$,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(Qz1!==void 0)return Qz1;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return Qz1=H},{mode:1});var ZL=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return H};
_.G(ZL,_.X);_.F=ZL.prototype;
_.F.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"}}}};
_.F.handleLiveChatAction=function(H){_.e(H,Ted)?this.handleMarkChatItemAsDeletedAction(_.e(H,Ted)):_.e(H,qSn)&&this.handleRemoveChatItemAction(_.e(H,qSn))};
_.F.handleLiveChatActions=function(H){H.forEach(this.handleLiveChatAction,this)};
_.F.handleMarkChatItemAsDeletedAction=function(H){var C=this,S;((S=this.data)==null?0:S.items)&&this.data.items.forEach(function(w,A){var J=Object.keys(w)[0];Object.values(w)[0].id===H.targetItemId&&C.markAsDeleted("data.items",A,J,H.deletedStateMessage,H.showOriginalContentMessage)})};
_.F.handleRemoveChatItemAction=function(H){var C=this,S;((S=this.data)==null?0:S.items)&&this.data.items.forEach(function(w,A){Object.values(w)[0].id===H.targetItemId&&C.splice("data.items",A,1)})};
_.F.markAsDeleted=function(H,C,S,w,A){H=[H,C,S].join(".");this.set(H+".deletedStateMessage",w);this.set(H+".showOriginalContentMessage",A)};
_.D([_.V(),_.K("design:type",Object)],ZL.prototype,"data",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],ZL.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],ZL.prototype,"ytActionHandlerBehavior",void 0);_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],ZL);
_.B(ZL,"yt-live-chat-item-display-list-renderer",function(){if(ZYV===void 0){var H=document.createElement("template");_.f(H,'\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>');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;FZ1===void 0&&(FZ1=document.createElement("template"));var w=FZ1;S.call(C,w.content.cloneNode(!0),H.content.firstChild);ZYV=H}H=ZYV;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var dMP;var P$V,$Md=function(){if(P$V!==void 0)return P$V;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;dMP===void 0&&(dMP=document.createElement("template"));var w=dMP;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return P$V=H};var c_=function(){var H=_.X.apply(this,arguments)||this;H.isHeader=!1;return H};
_.G(c_,_.X);c_.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.JJ.Object.defineProperties(c_,{template:{configurable:!0,enumerable:!0,get:function(){return $Md()}}});
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],c_.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],c_.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],c_.prototype,"isHeader",void 0);_.D([_.Lx({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],c_);_.B(c_,"yt-live-chat-item-display-renderer",function(){return $Md()},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var p0d,kW1,DMU,BqU;
p0d={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}};kW1={home:"eohps",search:"eosps",watch:"eowps"};_.hg1=["watch","search","home"];
_.Yo=function(){this.JSC$14307_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14307_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.rh("PRECONSTRUCTION_DELAY",0);this.signals_=_.mN();this.targetPage_=""};
_.Yo.prototype.init=function(H,C){H=H===void 0?"":H;C=C===void 0?null:C;if(this.JSC$14307_isInitialized_)this.abort();else if(this.JSC$14307_isInitialized_=!0,H&&_.n0Y(this,H),C){var S=_.WP(this.signals_,"pcl")?0:10,w=function(){for(var A=0,J;J=_.hg1[A++];)J!=H&&J!=C&&this.pendingPages_.push(J);_.rR_(this)}.bind(this);
this.signals_.parkOrScheduleJob(w,S,"pcl")}};
_.Yo.prototype.abort=function(){this.fragmentJobId_&&(_.rT.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);BqU(this)};
_.n0Y=function(H,C){H.JSC$14307_isInitialized_&&!H.targetPage_&&(H.targetPage_=C,DMU(H,C),H.isInitialPass_=!1,DMU(H,C),H.signals_.processSignal(kW1[H.targetPage_]),BqU(H),_.rR_(H))};
_.rR_=function(H){H.pendingPages_.length&&!H.pagePreparerJobId_&&(H.pagePreparerJobId_=_.X2(_.rT,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.n0Y(this,this.pendingPages_.shift())}.bind(H),H.DEFAULT_DELAY_))};
DMU=function(H,C){if(C=p0d[C])for(var S in C){var w=!1,A=S;S.charAt(0)=="~"&&(w=!0,A=S.substring(1));var J=C[S];J=typeof J=="object"?J:{count:J};C[S]=J;J.componentName=A;J.count>0&&(H.isInitialPass_?w||H.isSeenDuringInitialPass_[A]||(H.JSC$14307_queue_.push({componentName:A,count:1,signals:J.signals}),H.isSeenDuringInitialPass_[A]=!0,J.count--):H.JSC$14307_queue_.push(J))}};
BqU=function(H){H.JSC$14307_queue_.length=0;H.targetPage_="";H.isInitialPass_=!0;H.signals_.processSignal("eop")};
_.Yo.getInstance=function(){return _.j9(_.Yo)};var KZn=function(){this.signals=_.mN();this.init()};
KZn.prototype.startPreconstruction=function(){_.Yo.getInstance().init(_.Bh("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
KZn.prototype.init=function(){tP7(this);window.Polymer&&Man&&nou();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var H=_.s$.ytcsi;if(H&&H.gt&&(H=H.gt())&&H.tick&&(H.tick.aft>0||H.tick.pbs>0)&&(_.Bh("IS_HOMEPAGE_COLD")||_.Bh("IS_RESULTS_PAGE_COLD")||_.Bh("IS_WATCH_PAGE_COLD"))){LZd(this);break a}XYW(lCZ,this.onNotifications,this)}};
var tP7=function(H){var C=function(){H.signals.processSignal("dl")};
document.readyState==="complete"?(_.Ug(Error("yh"),"WARNING"),C()):_.Jg$(window,"load",C)};
KZn.prototype.onNotifications=function(H){H.timer||(_.Bh("IS_HOMEPAGE_COLD")||_.Bh("IS_RESULTS_PAGE_COLD")||_.Bh("IS_WATCH_PAGE_COLD"))&&LZd(this)};
var LZd=function(H){H.signals.parkOrScheduleJob(function(){H.signals.processSignal("eocs")},10,"eor")};
new KZn;var zx,g0d=function(){return _.oZ.apply(this,arguments)||this};
_.G(g0d,_.oZ);_.F=g0d.prototype;_.F.enableActiveViewMeasurement=function(H){if(this.isActiveViewEnabled(H)){var C=this.getUrlPrefixesFromCommand(H.viewableCommands);H=this.getUrlPrefixesFromCommand(H.endOfSessionCommands);if(!zx){var S=_.YB("custom_active_view_tos_timeout_ms");zx=S>0&&S!==36E5?new WHE(this.getVersion(),S):new WHE(this.getVersion())}Np7(zx,this.hostElement);bZ$(zx,this.hostElement,C,H)}};
_.F.stopActiveViewMeasurement=function(){zx&&Np7(zx,this.hostElement)};
_.F.isActiveViewEnabled=function(H){return!!H&&(this.hasAtLeastOneUrl(H.viewableCommands)||this.hasAtLeastOneUrl(H.endOfSessionCommands))};
_.F.hasAtLeastOneUrl=function(H){return!!H&&H.length>0&&H[0].loggingUrls!=null&&H[0].loggingUrls.length>0};
_.F.getVersion=function(){var H=_.rh("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(H==null?void 0:H.length)===2?H[1]:null};
_.F.getUrlPrefixesFromCommand=function(H){if(!H)return[];var C=[];H=_.Z(H);for(var S=H.next();!S.done;S=H.next())if(S=S.value,S.loggingUrls){S=_.Z(S.loggingUrls);for(var w=S.next();!w.done;w=S.next())w=w.value,w.baseUrl&&C.push(w.baseUrl)}return C};
_.D([_.Od()],g0d);var M$=[g0d.prototype];var UMn=function(){return _.oZ.apply(this,arguments)||this};
_.G(UMn,_.oZ);_.JJ.Object.defineProperties(UMn.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.E("enable_entity_store_from_dependency_injection")?_.wC():_.AG()}}});
_.D([_.Od()],UMn);_.q$=[JZ.prototype,UMn.prototype];var Rg7=["ytd-rich-shelf-renderer"],Tx=function(){var H=_.oZ.apply(this,arguments)||this;H._noAccessors=!0;H.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";H.followUpDialogPromise=null;H.followUpDialogPromiseResolve=null;H.followUpDialogPromiseReject=null;return H};
_.G(Tx,_.oZ);_.F=Tx.prototype;_.F.dismissibleItemIsDismissedChanged_=function(H){_.E("kevlar_fluid_dismiss")&&(H?_.M3(this.hostElement,"yt-dismissible-item-dismissed"):_.M3(this.hostElement,"yt-dismissible-item-undismissed"))};
_.F.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.F.dismissibleItemReset_=function(){var H=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 _.Es(function(C,S){H.followUpDialogPromiseResolve=C;H.followUpDialogPromiseReject=S});
_.M3(this.hostElement,"yt-enable-lockup-interaction")};
_.F.dismissibleItemOnYtServiceRequestSent_=function(H,C){C.actions&&this.dismissibleItemProcessActions(C.actions,H)};
_.F.dismissibleItemOnRequestSent=function(H){if(_.E("web_button_rework"))for(var C=_.Z(H.detail),S=C.next();!S.done;S=C.next()){var w=void 0;(S=(w=_.e(S.value,_.eR))==null?void 0:w.actions)&&this.dismissibleItemProcessActions(S,H)}};
_.F.dismissibleItemOnCommandSent=function(H,C){C&&this.dismissibleItemProcessActions(C,H)};
_.F.setAndGetDismissedContentId=function(H){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+H};
_.F.replayDismissAction=function(H){this.dismissibleItemProcessActions([H])};
_.F.dismissibleItemProcessActions=function(H,C){for(var S=0;S<H.length;S++){var w=H[S],A=void 0;((A=_.e(w,_.b9))==null?0:A.commands)&&this.dismissibleItemProcessActions(_.e(w,_.b9).commands,C);if(_.e(w,_.Ko)){if(A=_.e(w,_.Ko),!A.replaceParentSection||Rg7.includes(this.hostElement.nodeName.toLowerCase()))A.groupDismissal&&uSU(this,A.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(A),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.O5("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:w})),w=void 0,(w=C)==null||w.stopPropagation()}else if(_.e(w,MQn))this.dismissibleItemHandleHideEnclosingAction_(),w=void 0,(w=C)==null||w.stopPropagation();else if(_.e(w,pwV))w=_.e(w,pwV),A=void 0,((A=w)==null?0:A.targetGroupId)&&uSU(this,{targetGroupId:w.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.O5("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
w=void 0,(w=C)==null||w.stopPropagation();else if(_.e(w,_.eR))(w=_.e(w,_.eR).actions)&&_.yN(this.hostElement,w,this.hostElement),w=void 0,(w=C)==null||w.stopPropagation();else{var J=A=void 0;((A=_.e(w,_.gv))==null?void 0:A.signal)!=="TELL_US_WHY"||((J=_.e(w,_.gv))==null?0:J.targetId)&&_.E("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),w=void 0,(w=C)==null||w.stopPropagation())}}};
_.F.dismissibleItemOnYtServiceRequestCompleted_=function(H,C){var S=this.get("feedbackResponses.0.followUpDialog",C.data);S?this.followUpDialogPromiseResolve(S):C.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(C.actions,H)};
_.F.dismissibleItemHandleReplaceEnclosingAction_=function(H){this.dismissedRenderer=H.item;this.isDismissed=!0;var C=null;(C=_.mY(this.hostElement).querySelector("#dismissed"))&&_.wM(this,function(){_.ss(C)});
_.M3(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.F.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.F.dismissibleItemHandleUndoFeedbackAction_=function(){_.M3(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.F.dismissibleItemHandleTellUsWhySignalAction_=function(){var H=this;this.followUpDialogPromise.then(function(C){H.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:C}})})};
Tx.prototype.dismissibleItemOnYtServiceRequestCompleted_=Tx.prototype.dismissibleItemOnYtServiceRequestCompleted_;Tx.prototype.dismissibleItemOnCommandSent=Tx.prototype.dismissibleItemOnCommandSent;Tx.prototype.dismissibleItemOnRequestSent=Tx.prototype.dismissibleItemOnRequestSent;Tx.prototype.dismissibleItemOnYtServiceRequestSent_=Tx.prototype.dismissibleItemOnYtServiceRequestSent_;Tx.prototype.dismissibleItemDataChanged_=Tx.prototype.dismissibleItemDataChanged_;
Tx.prototype.dismissibleItemIsDismissedChanged_=Tx.prototype.dismissibleItemIsDismissedChanged_;_.D([_.v(_.OY),_.K("design:type",Object)],Tx.prototype,"ytdOpenPopupBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],Tx.prototype,"ytdReduxBehavior",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],Tx.prototype,"isDismissed",void 0);_.D([_.V(),_.K("design:type",Object)],Tx.prototype,"dismissedRenderer",void 0);
_.D([_.fx("isDismissed"),_.K("design:type",Function),_.K("design:paramtypes",[Boolean]),_.K("design:returntype")],Tx.prototype,"dismissibleItemIsDismissedChanged_",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Tx.prototype,"dismissibleItemDataChanged_",null);
_.D([_.Gz("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.IW]),_.K("design:returntype")],Tx.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.D([_.Gz("yt-service-request-sent-button-renderer"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Tx.prototype,"dismissibleItemOnRequestSent",null);
_.D([_.Gz("yt-dismissible-item-action"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Array]),_.K("design:returntype")],Tx.prototype,"dismissibleItemOnCommandSent",null);_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.j4]),_.K("design:returntype")],Tx.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.D([_.Od()],Tx);_.m4=[_.OY,_.q$,Tx.prototype];var W_=function(){var H=_.oZ.apply(this,arguments)||this;H.disableGridStateAware=!1;H.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};H.currentGridClass="";return H};
_.G(W_,_.oZ);W_.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.wM(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var H=this.gridStateAwareGetElement();_.yQ(H,"grid",!0)}};
W_.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
W_.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.mY(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
W_.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var H="grid-disabled";else{H=_.QC.getInstance();var C=this.get("pageSubtype");H=C&&poi.includes(C)?"grid-disabled":H.currentSnapState_?H.currentSnapState_.className:null}(C=this.gridStateAwareGetElement())&&H!==this.currentGridClass&&(H&&_.yQ(C,H,!0),this.currentGridClass&&_.yQ(C,this.currentGridClass,!1),this.currentGridClass=H)};
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],W_.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",String)],W_.prototype,"gridStateAwareSizingElementSelector",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],W_.prototype,"disableGridStateAware",void 0);_.D([_.Od()],W_);_.yz=[W_.prototype,_.Lw.YtActionHandlerBehavior];_.N$=new _.W4("GUIDE_TOKEN");var EI;_.bU={};EI=function(){var H=_.oZ.apply(this,arguments)||this;H.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 H};
_.G(EI,_.oZ);_.F=EI.prototype;_.F.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.F.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var H=_.JA().resolve(_.AA(_.N$));H&&(this.guidePersistentAndVisible=H.getGuidePersistentAndVisible(),this.activeEndpoint=H.getActiveEndpoint(),this.guideOpened=H.getGuideOpened(),this.miniGuideVisible=H.getMiniGuideVisible())};
_.F.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.F.handleGuideStateAction=function(H){this.guidePersistentAndVisible=H};
_.F.handleMiniGuideStateAction=function(H){this.miniGuideVisible=H};
_.F.handleGuideOpenedAction=function(H){this.guideOpened=H};
_.F.handleActiveEndpointAction=function(H){this.activeEndpoint=H};
EI.prototype.onActiveEndpointChange=EI.prototype.onActiveEndpointChange;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],EI.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],EI.prototype,"guidePersistentAndVisible",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],EI.prototype,"miniGuideVisible",void 0);_.D([_.V(),_.K("design:type",Object)],EI.prototype,"activeEndpoint",void 0);
_.D([_.fx("activeEndpoint"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],EI.prototype,"onActiveEndpointChange",null);_.D([_.V(),_.K("design:type",Boolean)],EI.prototype,"guideOpened",void 0);_.D([_.Od()],EI);_.bU.YtdGuideStateAwareBehavior=[];_.bU.YtdGuideStateAwareBehavior.push(EI.prototype,_.Lw.YtActionHandlerBehavior);var I_n=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],ew=function(){var H=_.oZ.apply(this,arguments)||this;H.hoverJobId=0;H.JSC$14338_touched=!1;return H};
_.G(ew,_.oZ);_.F=ew.prototype;_.F.created=function(){this.useExpandableTooltip=!I_n.includes(this.is)};
_.F.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.F.detached=function(){this.useExpandableTooltip=!1};
_.F.lockupOnDown=function(H){this.interactionElement&&!_.ww(_.Ar(H),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.F.lockupOnUp=function(H){this.interactionElement&&!_.ww(_.Ar(H),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.F.onTouchStart=function(){this.JSC$14338_touched=!0};
_.F.lockupOnMouseEnter=function(){var H=this,C=_.YB("kevlar_lockup_hover_delay",-1);this.JSC$14338_touched&&C>=0?(_.rT.cancelJob(this.hoverJobId),this.hoverJobId=_.rT.addJob(function(){H.lockupIsHovered=!0},8,C),this.JSC$14338_touched=!1):this.lockupIsHovered=!0};
_.F.lockupOnMouseLeave=function(){this.hoverJobId&&(_.rT.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.F.lockupOnPopupClosed=function(H,C){var S;((S=C.popupRenderer)==null?void 0:S.is)==="ytd-menu-popup-renderer"&&(H=C.popupRenderer.veData,C=_.Dg(),H&&C&&_.C8(C,[H]))};
_.F.lockupOnLockupRequested=function(H){var C=H.detail.videoIds[0],S;H.detail&&C===((S=this.data)==null?void 0:S.videoId)&&(H.detail.returnValue=[this.data])};
_.F.lockupOnYtServiceRequestSent=function(H,C){if(H=C.actions)for(var S=0;S<H.length;S++){var w=H[S];if(w.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&C.ajaxPromise){var A=void 0,J=(A=_.e(C.endpoint,_.Jd))==null?void 0:A.playlistId;A=void 0;w=(A=w.removedVideoId)!=null?A:"";FzU(_.Nb(),w,J)}else w.action==="ACTION_REMOVE_VIDEO"&&C.ajaxPromise&&(J=void 0,w=(J=w.setVideoId)!=null?J:"",_.ZE1(_.Nb(),w))}};
_.F.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.F.lockupOnLockupEnabled=function(){if(!this.$){var H=_.JA().resolve(_.JB).getCurrentPage(),C=this.getParentRenderer?this.getParentRenderer():void 0;_.Bn(new _.X0("component not ready",this.is,this.isAttached,H==null?void 0:H.is,C==null?void 0:C.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
ew.prototype.lockupOnLockupEnabled=ew.prototype.lockupOnLockupEnabled;ew.prototype.lockupOnLockupDisabled=ew.prototype.lockupOnLockupDisabled;ew.prototype.lockupOnYtServiceRequestSent=ew.prototype.lockupOnYtServiceRequestSent;ew.prototype.lockupOnLockupRequested=ew.prototype.lockupOnLockupRequested;ew.prototype.lockupOnPopupClosed=ew.prototype.lockupOnPopupClosed;ew.prototype.lockupOnMouseLeave=ew.prototype.lockupOnMouseLeave;ew.prototype.lockupOnMouseEnter=ew.prototype.lockupOnMouseEnter;
ew.prototype.onTouchStart=ew.prototype.onTouchStart;ew.prototype.lockupOnUp=ew.prototype.lockupOnUp;ew.prototype.lockupOnDown=ew.prototype.lockupOnDown;_.D([_.V(),_.K("design:type",Object)],ew.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Boolean)],ew.prototype,"lockupIsHovered",void 0);_.D([_.V(),_.K("design:type",Boolean)],ew.prototype,"lockupTouchTriggered",void 0);_.D([_.V(),_.K("design:type",Boolean)],ew.prototype,"useExpandableTooltip",void 0);
_.D([_.lA("#interaction"),_.K("design:type",Object)],ew.prototype,"interactionElement",void 0);_.D([_.Gz("down"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],ew.prototype,"lockupOnDown",null);_.D([_.Gz("up"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],ew.prototype,"lockupOnUp",null);
_.D([_.Gz("touchstart"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ew.prototype,"onTouchStart",null);_.D([_.Gz("mouseenter"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ew.prototype,"lockupOnMouseEnter",null);_.D([_.Gz("mouseleave"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ew.prototype,"lockupOnMouseLeave",null);
_.D([_.Gz("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],ew.prototype,"lockupOnPopupClosed",null);_.D([_.Gz("yt-lockup-requested"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],ew.prototype,"lockupOnLockupRequested",null);
_.D([_.Gz("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.IW]),_.K("design:returntype")],ew.prototype,"lockupOnYtServiceRequestSent",null);_.D([_.Gz("yt-disable-lockup-interaction"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ew.prototype,"lockupOnLockupDisabled",null);
_.D([_.Gz("yt-enable-lockup-interaction"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ew.prototype,"lockupOnLockupEnabled",null);_.D([_.Od()],ew);_.uU=[ew.prototype];_.a_b={YtdReduxBehavior:[]};_.a_b.YtdReduxBehavior.push.apply(_.a_b.YtdReduxBehavior,_.q$);var Gx=function(){var H=_.oZ.apply(this,arguments)||this;H._noAccessors=!0;H.disableNowPlaying=!1;H.disableTooltips=!1;H.useHoveredProperty=!1;H.hovered=!1;H.isThumbnailHovered_=!1;H.addBackground=_.E("kevlar_thumbnail_bg");H.nowPlaying=!1;H.disableRounding=!1;H.size="small";return H};
_.G(Gx,_.oZ);_.F=Gx.prototype;_.F.computeThumbnailOverlaySidePanelWidth_=function(H,C){return H-C};
_.F.computeSize=function(H,C){if(!this.disableRounding){if(!H&&!C)return"small";H=Math.max(H||0,C||0);return H>=256?"large":H>=96?"medium":"small"}};
_.F.computeFinalHoveredState_=function(H,C,S){return this.nowPlaying?!1:_.E("kevlar_thumbnail_fluid")&&H?C:S};
_.F.computeHoverOverlays_=function(H,C){return H&&C?C:void 0};
_.F.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.F.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.F.checkMiniplayer_=function(){var H;if(((H=this.data)==null?0:H.playlistSetVideoId)&&_.E("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{H=_.LO();var C=H.currentEndpoint;!this.disableNowPlaying&&C&&_.e(C,_.sX)&&this.data?(C=_.e(C,_.sX),this.nowPlaying=this.data.playlistId?C.playlistId===this.data.playlistId:C.videoId===this.data.videoId,this.isVideoPlaying=H==null?void 0:H.isVideoPlaying):this.nowPlaying=!1}};
Gx.prototype.checkMiniplayer_=Gx.prototype.checkMiniplayer_;Gx.prototype.onMouseLeave_=Gx.prototype.onMouseLeave_;Gx.prototype.onMouseEnter_=Gx.prototype.onMouseEnter_;Gx.prototype.computeHoverOverlays_=Gx.prototype.computeHoverOverlays_;Gx.prototype.computeFinalHoveredState_=Gx.prototype.computeFinalHoveredState_;Gx.prototype.computeSize=Gx.prototype.computeSize;Gx.prototype.computeThumbnailOverlaySidePanelWidth_=Gx.prototype.computeThumbnailOverlaySidePanelWidth_;
_.D([_.v(_.q$),_.K("design:type",Object)],Gx.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Gx.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Number)],Gx.prototype,"height",void 0);_.D([_.V(),_.K("design:type",Boolean)],Gx.prototype,"bottomSidePanel",void 0);_.D([_.V(),_.K("design:type",Number)],Gx.prototype,"width",void 0);_.D([_.V(),_.K("design:type",Object)],Gx.prototype,"disableNowPlaying",void 0);
_.D([_.V({selector:_.Dy}),_.K("design:type",Boolean)],Gx.prototype,"miniplayerIsActive",void 0);_.D([_.V(),_.K("design:type",Object)],Gx.prototype,"disableTooltips",void 0);_.D([_.V(),_.K("design:type",Object)],Gx.prototype,"useHoveredProperty",void 0);_.D([_.V(),_.K("design:type",Object)],Gx.prototype,"hovered",void 0);_.D([_.V(),_.K("design:type",Object)],Gx.prototype,"isThumbnailHovered_",void 0);
_.D([_.V({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.K("design:type",Boolean)],Gx.prototype,"finalHoveredState_",void 0);_.D([_.V({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.K("design:type",Number)],Gx.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Gx.prototype,"addBackground",void 0);
_.D([_.V({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.K("design:type",Object)],Gx.prototype,"hoverOverlays_",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Gx.prototype,"nowPlaying",void 0);_.D([_.V(),_.K("design:type",Boolean)],Gx.prototype,"isVideoPlaying",void 0);_.D([_.V(),_.K("design:type",Object)],Gx.prototype,"disableRounding",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.K("design:type",Object)],Gx.prototype,"size",void 0);_.D([_.Gz("mouseenter"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Gx.prototype,"onMouseEnter_",null);_.D([_.Gz("mouseleave"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Gx.prototype,"onMouseLeave_",null);
_.D([_.fx("data","disableNowPlaying","miniplayerIsActive"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Gx.prototype,"checkMiniplayer_",null);_.D([_.Od()],Gx);var xM7=[Gx.prototype];_.fT={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(H,C){return H+":"+_.I0(C)},
getPlayerListener_:function(H,C,S){H=this.getPlayerListenerKey_(H,C);C=this.playerListeners_.get(H);S&&this.playerListeners_.delete(H);return C},
savePlayerListener_:function(H,C){var S=C.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(H,C),S);return S},
listenToPlayerEvent:function(H,C,S){S=this.savePlayerListener_(C,S);H.addEventListener(C,S)},
listenToPlayerEvents:function(H,C){C.forEach(function(S,w){this.listenToPlayerEvent(H,w,S)}.bind(this))},
unlistenFromPlayerEvent:function(H,C,S){S=this.getPlayerListener_(C,S,!0);H.removeEventListener(C,S)},
unlistenFromPlayerEvents:function(H,C){C.forEach(function(S,w){this.unlistenFromPlayerEvent(H,w,S)}.bind(this))}}};
_.v_=function(){};_.HRU=new _.W4("PLAYER_API_TOKEN");var l_Z=!1,X0U,o0V=!1,dMU;var zb=function(H,C,S,w,A){_.Op.call(this);var J=this;this.playerId=C;this.webPlayerContextConfig=w;this.cC8=A;this.vOi=!1;this.api={};this.bTR=this.vi8=null;this.vGy=new _.G9;this.t2={};this.lnm=this.xfz=this.elementId=this.yd9=this.config=null;this.oV2=!1;this.mH=this.x4K=null;this.fQS={};this.s5k=["onReady"];this.lastError=null;this.ngn=NaN;this.gvR={};this.oqm=0;this.x7=this.targetElement=H;_.Nx(this,this.vGy);iR7(this);S?this.oqm=setTimeout(function(){J.loadNewVideoConfig(S)},0):w&&(CV7(this),
STU(this))};
_.G(zb,_.Op);zb.prototype.getId=function(){return this.playerId};
zb.prototype.loadNewVideoConfig=function(H){if(!this.isDisposed()){this.oqm&&(clearTimeout(this.oqm),this.oqm=0);var C=H||{};C instanceof m$1||(C=new m$1(C));this.config=C;this.setConfig(H);STU(this);this.isReady()&&scb(this)}};
var CV7=function(H){var C;H.webPlayerContextConfig?C=H.webPlayerContextConfig.rootElementId:C=H.config.attrs.id;H.elementId=C||H.elementId;H.elementId==="video-player"&&(H.elementId=H.playerId,H.webPlayerContextConfig?H.webPlayerContextConfig.rootElementId=H.playerId:H.config.attrs.id=H.playerId);var S;((S=H.x7)==null?void 0:S.id)===H.elementId&&(H.elementId+="-player",H.webPlayerContextConfig?H.webPlayerContextConfig.rootElementId=H.elementId:H.config.attrs.id=H.elementId)};
zb.prototype.setConfig=function(H){this.yd9=H;this.config=jc_(H);CV7(this);if(!this.xfz){var C;this.xfz=wTY(this,((C=this.config.args)==null?void 0:C.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var S;if((S=this.config)==null?0:S.attrs)H=this.config.attrs,(C=H.width)&&this.x7&&(this.x7.style.width=ao(Number(C)||C,!0)),(H=H.height)&&this.x7&&(this.x7.style.height=ao(Number(H)||H,!0))};
zb.prototype.getConfig=function(){return this.yd9};
var scb=function(H){if(H.config&&H.config.loaded!==!0)if(H.config.loaded=!0,!H.config.args||H.config.args.autoplay!=="0"&&H.config.args.autoplay!==0&&H.config.args.autoplay!==!1){var C;H.api.loadVideoByPlayerVars((C=H.config.args)!=null?C:null)}else H.api.cueVideoByPlayerVars(H.config.args)},Jq7=function(H){var C=!0,S=H.getPlayerElement();
S&&H.config&&(C=S.dataset.version===Aq1(H));return C&&!!_.gh("yt.player.Application.create")},STU=function(H){if(!H.isDisposed()&&!H.oV2){var C=Jq7(H);
if(C&&(H.getPlayerElement()?"html5":null)==="html5")H.lnm="html5",H.isReady()||Fcd(H);else if(ZRY(H),H.lnm="html5",C&&H.mH&&H.targetElement)H.targetElement.appendChild(H.mH),Fcd(H);else{H.config&&(H.config.loaded=!0);var S=!1;H.x4K=function(){S=!0;var w=cqY(H,"player_bootstrap_method")?_.gh("yt.player.Application.createAlternate")||_.gh("yt.player.Application.create"):_.gh("yt.player.Application.create");var A=H.config?jc_(H.config):void 0;w&&w(H.targetElement,A,H.webPlayerContextConfig,H.cC8);Fcd(H)};
H.oV2=!0;C?H.x4K():(_.Ie(Aq1(H),H.x4K),(C=YT7(H))&&UZ0(C||""),zTb(H)&&!S&&_.AO("yt.player.Application.create",null))}}};
zb.prototype.getPlayerElement=function(){var H=_.Yi(document,this.elementId);!H&&this.x7&&this.x7.querySelector&&(H=this.x7.querySelector("#"+this.elementId));return H};
var Fcd=function(H){if(!H.isDisposed()){var C=H.getPlayerElement(),S=!1;C&&C.getApiInterface&&C.getApiInterface()&&(S=!0);if(S){H.oV2=!1;if(!cqY(H,"html5_remove_not_servable_check_killswitch")){var w;if((C==null?0:C.isNotServable)&&H.config&&(C==null?0:C.isNotServable((w=H.config.args)==null?void 0:w.video_id)))return}MX1(H)}else H.ngn=setTimeout(function(){Fcd(H)},50)}},MX1=function(H){iR7(H);
H.vOi=!0;var C=H.getPlayerElement();if(C){H.vi8=qT1(H,C,"addEventListener");H.bTR=qT1(H,C,"removeEventListener");var S=C.getApiInterface();S=S.concat(C.getInternalApiInterface());for(var w=H.api,A=0;A<S.length;A++){var J=S[A];w[J]||(w[J]=qT1(H,C,J))}}for(var c in H.t2)H.t2.hasOwnProperty(c)&&H.vi8&&H.vi8(c,H.t2[c]);scb(H);H.xfz&&H.xfz(H.api);H.vGy.publish("onReady",H.api)},qT1=function(H,C,S){var w=C[S];
return function(){var A=_.tc.apply(0,arguments);try{return H.lastError=null,w.apply(C,A)}catch(J){if(S!=="sendAbandonmentPing")throw J.params=S,H.lastError=J,A=new _.X0("PlayerProxy error in method call",{error:J,method:S,playerId:H.playerId}),A.level="WARNING",A;}}},iR7=function(H){H.vOi=!1;
if(H.bTR)for(var C in H.t2)H.t2.hasOwnProperty(C)&&H.bTR(C,H.t2[C]);for(var S in H.gvR)H.gvR.hasOwnProperty(S)&&clearTimeout(Number(S));H.gvR={};H.vi8=null;H.bTR=null;C=H.api;for(var w in C)C.hasOwnProperty(w)&&(C[w]=null);C.addEventListener=function(A,J){H.addEventListener(A,J)};
C.removeEventListener=function(A,J){H.removeEventListener(A,J)};
C.destroy=function(){H.dispose()};
C.getLastError=function(){return H.getLastError()};
C.getPlayerType=function(){return H.getPlayerType()};
C.getCurrentVideoConfig=function(){return H.getConfig()};
C.loadNewVideoConfig=function(A){H.loadNewVideoConfig(A)};
C.isReady=function(){return H.isReady()}};
zb.prototype.isReady=function(){return this.vOi};
zb.prototype.addEventListener=function(H,C){var S=this;this.isDisposed();var w=wTY(this,C);w&&(_.nU(this.s5k,H)||this.t2[H]||(C=T07(this,H),this.vi8&&this.vi8(H,C)),this.vGy.subscribe(H,w),H==="onReady"&&this.isReady()&&setTimeout(function(){w(S.api)},0))};
zb.prototype.removeEventListener=function(H,C){this.isDisposed()||(C=wTY(this,C))&&this.vGy.unsubscribe(H,C)};
var wTY=function(H,C){var S=C;if(typeof C==="string"){if(H.fQS[C])return H.fQS[C];S=function(){var w=_.tc.apply(0,arguments),A=_.gh(C);if(A)try{A.apply(_.s$,w)}catch(J){throw w=new _.X0("PlayerProxy error when executing callback",{error:J}),w.level="ERROR",w;}};
H.fQS[C]=S}return S?S:null},T07=function(H,C){var S=function(w){var A=function(){H.isDisposed();
if(!H.isDisposed())try{H.vGy.publish(C,w!=null?w:void 0)}catch(Y){var c=new _.X0("PlayerProxy error when creating global callback",{error:Y.message,event:C,playerId:H.playerId,data:w,originalStack:Y.stack,componentStack:Y.componentStack});c.level="WARNING";throw c;}};
if(cqY(H,"web_player_publish_events_immediately"))A();else{var J=setTimeout(function(){A();_.hb.remove(H.gvR,String(J))},0);
_.hb.add(H.gvR,String(J),!0)}};
return H.t2[C]=S};
zb.prototype.getPlayerType=function(){return this.lnm||(this.getPlayerElement()?"html5":null)};
zb.prototype.getLastError=function(){return this.lastError};
var ZRY=function(H){H.cancel();iR7(H);H.lnm=null;H.config&&(H.config.loaded=!1);var C=H.getPlayerElement();C&&(Jq7(H)||!zTb(H)?H.mH=C:(C&&C.destroy&&C.destroy(),H.mH=null));H.targetElement&&_.Ki(H.targetElement)};
zb.prototype.cancel=function(){this.x4K&&_.eJW(Aq1(this),this.x4K);clearTimeout(this.ngn);this.oV2=!1};
zb.prototype.disposeInternal=function(){ZRY(this);if(this.mH&&this.config&&this.mH.destroy)try{this.mH.destroy()}catch(C){var H=new _.X0("PlayerProxy error during disposal",{error:C});H.level="ERROR";throw H;}this.fQS=null;for(H in this.t2)this.t2.hasOwnProperty(H)&&delete this.t2[H];this.yd9=this.config=this.api=null;delete this.targetElement;delete this.x7;_.Op.prototype.disposeInternal.call(this)};
var zTb=function(H){var C,S;H=(C=H.config)==null?void 0:(S=C.args)==null?void 0:S.fflags;return!!H&&H.indexOf("player_destroy_old_version=true")!==-1},Aq1=function(H){return H.webPlayerContextConfig?H.webPlayerContextConfig.jsUrl:(H=H.config.assets)?H.js:""},YT7=function(H){return H.webPlayerContextConfig?H.webPlayerContextConfig.cssUrl:(H=H.config.assets)?H.css:""},cqY=function(H,C){if(H.webPlayerContextConfig)var S=H.webPlayerContextConfig.serializedExperimentFlags;
else{var w;if((w=H.config)==null?0:w.args)S=H.config.args.fflags}return(S||"").split("&").includes(C+"=true")},jc_=function(H){for(var C={},S=_.Z(Object.keys(H)),w=S.next();!w.done;w=S.next()){w=w.value;
var A=H[w];C[w]=typeof A==="object"?_.hb.clone(A):A}return C};var hgE={},kWw="player_uid_"+(Math.random()*1E9>>>0);var lU=function(H,C,S,w,A,J){C=C===void 0?document.createElement("div"):C;this.webPlayerContextConfig=H;this.container=C;this.commandResolver=S;this.apiResolver=Bqu();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.N5;w||J?mm7(this):WcU(this);this.pendingPlayerResponse=w;this.pendingWatchNextResponse=A;this.pendingPlayerVars=J;yq1(this)};
lU.prototype.loadVideoWithPlayerResponse=function(H,C,S){this.loadVideo(H,C,S)};
lU.prototype.loadVideoWithPlayerVars=function(H){return this.loadVideo(void 0,void 0,H)};
lU.prototype.destroy=function(H){if(H=_.Yi(document,H))H=kWw+"_"+_.I0(H),(H=hgE[H])&&H.dispose()};
var bRn=function(H,C){var S;_.z(function(w){if(w.nextAddress==1)return H.pendingWatchNextResponse=C,H.synchronousApi?(S=H.synchronousApi,w.jumpTo(2)):w.yield(H.api,3);w.nextAddress!=2&&(S=w.yieldResult);if(!N01(H,S))return w.return();H.pendingWatchNextResponse&&(S.updateVideoData({raw_watch_next_response:H.pendingWatchNextResponse}),H.pendingWatchNextResponse=void 0);_.oT(w)})},N01=function(H,C){var S;
if(!(C==null?0:(S=C.isReady)==null?0:S.call(C))){var w;_.Bn(new _.X0("playerApi is falsey",{synchronousApi:H.synchronousApi,apiResolved:H.apiResolver.resolved,playerApiUndefined:C===void 0,playerApiNull:C===null,playerApiReady:(C==null?void 0:(w=C.isReady)==null?void 0:w.call(C))===!0,playerApiMethods:C?Object.keys(C):[]}));return!1}return!0},Es7=function(H,C){if(typeof H[C]==="function")return H[C]()},eTd=function(H){var C=window,S,w=(S=C.ytplayer)==null?void 0:S.bootstrapPlayerContainer;
if((S=w==null?void 0:w.firstElementChild)&&_.s2(S,"html5-video-player")){var A,J,c=(A=C.ytplayer)==null?void 0:(J=A.bootstrapWebPlayerContextConfig)==null?void 0:J.contextId;A=H.webPlayerContextConfig.contextId;if(c&&c===A){w!==H.container&&(w=!1,Es7(S,"getPlayerState")===2&&(w=!0),H.container.appendChild(S),w||Es7(S,"playVideo"));var Y;if((Y=C.ytplayer)==null?0:Y.bootstrapPlayerResponse)H.bootstrapPlayerResponse=C.ytplayer.bootstrapPlayerResponse}}},yq1=function(H){var C,S,w,A,J;
_.z(function(c){if(c.nextAddress==1)return H.pageReadyOrDataAvailable?c.jumpTo(2):c.yield(H.pageReadyOrDataAvailableResolver.promise,2);if(c.nextAddress!=4)return!_.E("kevlar_player_unified_player_loading")||VPZ()&&OY7()?c.jumpTo(4):c.yield($M6(),4);eTd(H);if(H.pendingPlayerResponse||H.pendingPlayerVars)C=p06(H.pendingPlayerResponse,H.pendingWatchNextResponse,H.pendingPlayerVars),H.pendingPlayerResponse&&H.pendingPlayerResponse===H.bootstrapPlayerResponse&&(C.loaded=!0),H.bootstrapPlayerResponse=
void 0;S=rRV(H.container,C,H.webPlayerContextConfig);((w=C)==null?0:w.loaded)&&H.pendingWatchNextResponse?(bRn(H,H.pendingWatchNextResponse),H.pendingPlayerResponse=void 0,H.pendingPlayerVars=void 0):ufW(H);A=function(Y){S.removeEventListener("onReady",A);H.synchronousApi=Y;H.apiResolver.resolve(Y)};
S.addEventListener("onReady",A);H.commandResolver!==void 0&&(J=H.commandResolver,S.addEventListener("innertubeCommand",function(Y){J(Y)}));
_.oT(c)})};
lU.prototype.loadVideo=function(H,C,S){var w=this,A,J,c,Y,M,m,W,y,N;return _.z(function(b){if(b.nextAddress==1)return w.pendingPlayerResponse=H,w.pendingWatchNextResponse=C,w.pendingPlayerVars=S,mm7(w),w.synchronousApi?(A=w.synchronousApi,b.jumpTo(2)):b.yield(w.api,3);b.nextAddress!=2&&(A=b.yieldResult);if(!N01(w,A))return b.return(new Promise(function(){}));
c=new Promise(function(u){J=u});
Y=function(){var u=A.getPlayerResponse();u&&(A.removeEventListener("onVideoDataChange",Y),J(u))};
A.addEventListener("onVideoDataChange",Y);if(w.pendingPlayerResponse||w.pendingPlayerVars)w.pendingPlayerResponse&&w.pendingPlayerResponse===w.bootstrapPlayerResponse?(J(w.pendingPlayerResponse),w.pendingWatchNextResponse&&bRn(w,w.pendingWatchNextResponse)):(M=p06(w.pendingPlayerResponse,w.pendingWatchNextResponse,w.pendingPlayerVars),(N=(m=w.pendingPlayerResponse)==null?void 0:(W=m.playerConfig)==null?void 0:(y=W.playbackStartConfig)==null?void 0:y.startPaused)?A.cueVideoByPlayerVars(M.args):A.loadVideoByPlayerVars(M.args)),
ufW(w),w.bootstrapPlayerResponse=void 0;return b.return(c)})};
var WcU=function(H){if(document.readyState==="complete"||document.readyState==="interactive")mm7(H);else{var C=function(){document.removeEventListener("DOMContentLoaded",C);mm7(H)};
document.addEventListener("DOMContentLoaded",C)}},mm7=function(H){H.pageReadyOrDataAvailable=!0;
H.pageReadyOrDataAvailableResolver.resolve()},ufW=function(H){H.pendingPlayerResponse=void 0;
H.pendingWatchNextResponse=void 0;H.pendingPlayerVars=void 0};
_.JJ.Object.defineProperties(lU.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var Vz=function(H){aS.call(this,H===void 0?"document_active":H);var C=this;this.overridePriority=10;this.hasRun=new Map;this.transitions=[{from:"document_active",to:"document_disposed_preventable",action:this.runPreventableDispose},{from:"document_active",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"flush_logs",action:this.runFlush},{from:"document_disposed_preventable",
to:"document_active",action:this.runActive},{from:"document_disposed",to:"flush_logs",action:this.runFlush},{from:"document_disposed",to:"document_active",action:this.runActive},{from:"document_disposed",to:"document_disposed",action:function(){}},
{from:"flush_logs",to:"document_active",action:this.runActive}];window.addEventListener("pagehide",function(S){C.transition("document_disposed",{event:S})});
window.addEventListener("beforeunload",function(S){C.transition("document_disposed_preventable",{event:S})});
window.addEventListener("unload",function(S){C.transition("document_disposed",{event:S});C.hasRun=new Map})};
_.G(Vz,aS);
Vz.prototype.runPreventableDispose=function(H,C){if(!this.hasRun.get("document_disposed_preventable")){H(C==null?void 0:C.event);var S,w;if((C==null?0:(S=C.event)==null?0:S.defaultPrevented)||(C==null?0:(w=C.event)==null?0:w.returnValue)){C.event.returnValue||(C.event.returnValue=!0);C.event.defaultPrevented||C.event.preventDefault();this.hasRun=new Map;this.transition("document_active");return}}this.hasRun.set("document_disposed_preventable",!0);this.hasRun.get("document_disposed")?this.transition("flush_logs"):this.transition("document_disposed")};
Vz.prototype.runDispose=function(H,C){this.hasRun.get("document_disposed")?this.transition("document_active"):(H(C==null?void 0:C.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
Vz.prototype.runFlush=function(H,C){H(C==null?void 0:C.event);this.transition("document_active")};
Vz.prototype.runActive=function(){};var oI=function(H){aS.call(this,H===void 0?"document_visibility_unknown":H);var C=this;this.transitions=[{from:"document_visibility_unknown",to:"document_visible",action:this.runVisible},{from:"document_visibility_unknown",to:"document_hidden",action:this.runHidden},{from:"document_visibility_unknown",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visibility_unknown",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_visible",to:"document_hidden",action:this.runHidden},
{from:"document_visible",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visible",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_hidden",action:this.runHidden},{from:"document_foregrounded",to:"document_foregrounded",action:this.runForegrounded},{from:"document_hidden",to:"document_visible",action:this.runVisible},{from:"document_hidden",to:"document_backgrounded",
action:this.runBackgrounded},{from:"document_hidden",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_backgrounded",to:"document_visible",action:this.runVisible}];document.addEventListener("visibilitychange",function(S){document.visibilityState==="visible"?C.transition("document_visible",{event:S}):C.transition("document_hidden",
{event:S})});
_.E("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(S){C.transition("document_backgrounded",{event:S})}),window.addEventListener("focus",function(S){C.transition("document_foregrounded",{event:S})}))};
_.G(oI,aS);oI.prototype.runVisible=function(H,C){H(C==null?void 0:C.event);_.E("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
oI.prototype.runHidden=function(H,C){H(C==null?void 0:C.event);_.E("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
oI.prototype.runBackgrounded=function(H,C){H(C==null?void 0:C.event)};
oI.prototype.runForegrounded=function(H,C){H(C==null?void 0:C.event)};var OI=function(){this.teardownLifecycle=new Vz;this.visibilityLifecycle=new oI};
OI.prototype.install=function(){var H=_.tc.apply(0,arguments),C=this;H.forEach(function(S){C.teardownLifecycle.install(S)});
H.forEach(function(S){C.visibilityLifecycle.install(S)})};var X$=function(){OI.call(this);var H={};this.install((H.document_disposed={callback:this.abortSlisAndFlush},H));_.E("combine_ve_grafts")&&(H={},this.install((H.document_disposed={callback:this.flushInteractionLoggingAttachVes},H)));H={};this.install((H.flush_logs={callback:this.logFinalPayload},H));_.E("web_log_cfg_cee_ks")||_.X2(_.rT,Gw7)};
_.G(X$,OI);var DMu=function(){X$.loggingInstance||(X$.loggingInstance=new X$);return X$.loggingInstance};
X$.prototype.logFinalPayload=function(){if(_.E("web_fp_via_jspb")){var H=new BM7,C=_.Dg();C&&_.XA(H,1,C);C=_.E("jspb_sparse_encoded_pivot")?new Os([{}]):new Os;_.vV(C,380,DQW,H);zZ7("finalPayload",C);_.E("web_fp_via_jspb_and_json")&&_.kI("finalPayload",{csn:_.Dg()})}else _.kI("finalPayload",{csn:_.Dg()})};
X$.prototype.abortSlisAndFlush=function(){CUM(ye);Nc!=null&&Nc.flush()};
X$.prototype.flushInteractionLoggingAttachVes=function(){bt1(_.lJ())};
var Gw7=function(){var H=_.rh("CLIENT_EXPERIMENT_EVENTS");if(H){var C=Sn7();H=_.Z(H);for(var S=H.next();!S.done;S=H.next())S=S.value,C(S)&&_.kI("genericClientExperimentEvent",{eventType:S});delete _.hE.CLIENT_EXPERIMENT_EVENTS}};var fPW={};
fPW.YtPlayerBehavior=[_.fT.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 H=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.N5;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;KZ$(function(){H.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.B5(this,"pan-down"),_.E("kevlar_pinch_fullscreen")&&_.Cw().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.E("kevlar_pinch_fullscreen")&&_.Cw().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(H,C,S){var w=this;Mp(this.useUnifiedPlayer_());if(this.mainAppPlayer_)Mp(!1,"MainAppPlayer already created.");else{var A=_.E("kevlar_player_container_query_killswitch")?this.$.container:_.mY(this.hostElement).querySelector("#container");this.mainAppPlayer_=new lU(this.getWebPlayerContextConfig_(),A,function(J){return _.uJ(J,w.hostElement)},H,C,S);
this.mainAppPlayer_.api.then(function(J){w.player_=J;w.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&Ed_.resolve(J)})}},
loadVideoWithPlayerResponse:function(H,C){var S=this;if(this.useUnifiedPlayer_()){var w=this.watchNextData,A,J=(A=H.videoDetails)==null?void 0:A.videoId,c,Y,M;(A=(c=this.watchNextData)==null?void 0:(Y=c.currentVideoEndpoint)==null?void 0:(M=Y.watchEndpoint)==null?void 0:M.videoId)&&J!=A&&(w=void 0,_.E("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(H,w,C):this.createMainAppPlayer_(H,w,C);this.mainAppPlayer_.api.then(function(){_.M3(S.hostElement,
"yt-player-updated")})}else this.update(GW6(H,C))},
loadVideoWithPlayerVars:function(H){var C=this;this.useUnifiedPlayer_()?(_.E("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(H):this.createMainAppPlayer_(void 0,void 0,H),this.mainAppPlayer_.api.then(function(){_.M3(C.hostElement,"yt-player-updated")})):this.update({args:H})},
update:function(H){var C=this;if(this.useUnifiedPlayer_())Mp(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(H);var S=XW7(H.args);S&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==S&&Object.assign(H.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(H).then(function(w){_.M3(C.hostElement,"yt-player-updated",_.E("kevlar_player_updated_obsolete_player_killswitch")?
w:void 0)})}_.rv(new _.X0("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(H){var C=this,S;return _.z(function(w){if(w.nextAddress==1)return w.yield(C.getPlayerPromise(),2);S=w.yieldResult;if(!S)throw Error("Ah");H&&C.updatePlayerPlaylist_(H);_.oT(w)})},
acquireApi_:function(H){var C=this;if(this.useUnifiedPlayer_())Mp(!1,"Invalid method call in kevlar_unified_player.");else return _.rT.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(Mp(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(S){C.shouldAutoplay_(H)?S.loadVideoByPlayerVars(H.args):S.cueVideoByPlayerVars(H.args)})):this.initPlayerPromise_=this.initPlayerContainer_(H),this.initPlayerPromise_},
initPlayerContainer_:function(H){var C=this;if(this.useUnifiedPlayer_())Mp(!1,"Invalid method call in kevlar_unified_player.");else return Mp(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.Bn(Error("Bh")),Mp(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.E("kevlar_player_container_query_killswitch")?this.$.container:_.mY(this.hostElement).querySelector("#container"),$M6().then(function(){var S=C.initPlayer_(H);C.playerResolver_.resolve(S);
return S})},
onPlayerReady_:function(H,C){this.useUnifiedPlayer_()?Mp(!1,"Invalid method call in kevlar_unified_player."):(H.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&Ed_.resolve(H),C(H))},
maybeCallApiMethodOnElement_:function(H,C){if(typeof H[C]==="function")return H[C]()},
maybeAdoptBootstrapPlayer_:function(){var H=window,C,S=(C=H.ytplayer)==null?void 0:C.bootstrapPlayerContainer;if((C=S==null?void 0:S.firstElementChild)&&C.classList.contains("html5-video-player")){var w,A,J=(w=H.ytplayer)==null?void 0:(A=w.bootstrapWebPlayerContextConfig)==null?void 0:A.contextId;w=this.getWebPlayerContextConfig_().contextId;if(J&&J===w){S!==this.playerContainer_&&(S=!1,this.maybeCallApiMethodOnElement_(C,"getPlayerState")===2&&(S=!0),this.playerContainer_.appendChild(C),S||this.maybeCallApiMethodOnElement_(C,
"playVideo"));var c;if((c=H.ytplayer)==null?0:c.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=H.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(H){var C=this;if(this.useUnifiedPlayer_())Mp(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(S){C.maybeAdoptBootstrapPlayer_();var w=H?f_i(H):void 0;w&&w==C.bootstrapPlayerResponse_&&(H.loaded=!0);w=C.playerContainer_;var A=C.getWebPlayerContextConfig_();w=rRV(w,H,A);C.player_=w;C.onPlayerReadyEvent_=C.onPlayerReady_.bind(C,C.player_,S);C.player_.addEventListener("onReady",C.onPlayerReadyEvent_);C.player_.addEventListener("innertubeCommand",
C.onPlayerInnerTubeCommand_.bind(C))})},
getPlayerPromise:function(){return this.useUnifiedPlayer_()?(this.mainAppPlayer_||this.createMainAppPlayer_(),this.mainAppPlayer_.api):this.playerResolver_.promise},
getPlayer:function(){return this.player_&&this.player_.isReady()?this.player_:null},
pause:function(){this.getPlayerPromise().then(function(H){H.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(H){H.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var H=_.JA().resolve(_.JB).getCurrentPage();H&&H.getScrollTop()<=0?_.B5(this,"pan-down"):_.B5(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(H){H.isFullscreen()||H.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(H){H.isFullscreen()&&H.toggleFullscreen()})},
updatePlayerPlaylist_:function(H){var C=this,S,w,A;return _.z(function(J){if(J.nextAddress==1)return S=_.JA().resolve(_.AA(_.qb)),w=!!(S&&S.playlistComponent&&S.playlistComponent.loopOn),J.yield(C.getPlayerPromise(),2);var c=A=J.yieldResult,Y=c.updatePlaylist,M=[];if(_.E("kevlar_player_playlist_use_local_index")){var m,W;var y=(W=(m=H.localCurrentIndex)!=null?m:H.currentIndex)!=null?W:0}else{var N;y=(N=H.currentIndex)!=null?N:0}if(H.contents)for(m=0;m<H.contents.length;m++)if((W=H.contents[m])&&W.playlistPanelVideoRenderer)if(oru(W)){W=
W.playlistPanelVideoRenderer;N="";W.shortBylineText&&(N=_.jt(W.shortBylineText));var b="";W.title?b=_.jt(W.title):W.unplayableText&&(b=_.jt(W.unplayableText));M.push({author:N,title:b,encrypted_id:W.videoId})}else m<y&&--y;Y.call(c,{index:y,list:H.playlistId?H.playlistId:"",loop:w,playlist_title:H.title,playlist_length:M.length,video:M,fetch:0,external_list:"1",title:H.title?H.title:"",playlist_author:H.ownerName?_.jt(H.ownerName):void 0});_.oT(J)})},
focusOnPlayer:function(){_.wM(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var H=this.playerContainer_.querySelector(".html5-video-player");H&&(_.Qz(_.JA().resolve(_.Qi)),H.focus())}})},
preparePlayer:function(){var H=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(C){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")C();else{var S=function(){document.removeEventListener("DOMContentLoaded",S);C()};
document.addEventListener("DOMContentLoaded",S)}})).then(function(){return $M6()}).then(function(){H.initPlayerPromise_||H.preparePlayerJobId_||(H.preparePlayerJobId_=_.X2(_.rT,function(){H.initPlayerPromise_||(H.initPlayerPromise_=H.initPlayerContainer_())}))}):_.rv(new _.X0("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(H){this.useUnifiedPlayer_()?Mp(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(H)||(H.args.autoplay="0")},
shouldAutoplay_:function(H){if(this.useUnifiedPlayer_())Mp(!1,"Invalid method call in kevlar_unified_player.");else{var C=this.get("args.el",H);return C&&C!="detailpage"&&this.isMiniplayerActive_()||C&&(C=="sponsorshipsoffer"||C=="handlesclaiming")&&this.get("args.autoplay",H)=="0"?!1:(H=f_i(H))&&this.get("playerConfig.playbackStartConfig.startPaused",H)?!1:!0}},
isMiniplayerActive_:function(){return _.JA().resolve(_.Df).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var H=this.getPlayer();if(H){var C=H.getPlayerState();_.E("kevlar_player_check_ad_state_on_stop")&&(C=H.getPlayerState(H.getPresentingPlayerType()));C!=5&&H.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(H,C,S){S=S===void 0?!1:S;var w=this,A,J,c,Y;return _.z(function(M){if(M.nextAddress==1)return C||(C=w.hostElement),A=w.useUnifiedPlayer_()?!!w.mainAppPlayer_:!!w.initPlayerPromise_,A?M.yield(w.getPlayerPromise(),2):(S?H.insertBefore(C,H.firstChild):H.appendChild(C),M.return());J=M.yieldResult;c=J.getPlayerState(J.getPresentingPlayerType());Y=!1;if(c==-1||c==1||c==3)Y=!0;S?H.insertBefore(C,H.firstChild):H.appendChild(C);Y&&J.playVideo();J.setSize(NaN,NaN);_.oT(M)})},
watchNextDataChanged_:function(H){var C=this;H&&(this.useUnifiedPlayer_()&&_.E("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&bRn(this.mainAppPlayer_,H):this.getPlayerPromise().then(function(S){S.updateVideoData(C.computeWatchNextPlayerVars_(H))}))},
computeWatchNextPlayerVars_:function(H){if(this.useUnifiedPlayer_()&&_.E("kevlar_unified_player_update_watch_next_killswitch"))Mp(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:H}},
maybeSendAbandonmentPing_:function(){var H=this.getPlayer();H&&H.getPlayerState()!=5&&H.getPlayerState()!=0&&H.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var H=_.rh("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(H=Object.assign({},H),H.rootElementId=this.playerId);H.serializedExperimentIds&&H.serializedExperimentFlags||_.Bn(Error("Ch"));return H},
hasWebPlayerContextConfig_:function(){return!!_.rh("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(H){this.useUnifiedPlayer_()?Mp(!1,"Invalid method call in kevlar_unified_player."):_.uJ(H,this.hostElement)},
useUnifiedPlayer_:function(){var H=_.E("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.E("kevlar_unified_player")||H}}];var vsb={};vsb.YtPlaylistPanelBehavior=[_.I.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(H){H=H.detail;if(H.actions.loop!=void 0||H.actions["yt-icons:loop"]!=void 0)this.loopOn=H.actions.loop||H.actions["yt-icons:loop"];if(H.actions.shuffle!=void 0||H.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=H.actions.shuffle||H.actions["yt-icons:shuffle"]},
setMenuData_:function(H){if(!H||!H.playlistButtons||H.isInfinite)return null;for(var C=H.playlistButtons.menuRenderer.topLevelButtons,S=C.length,w=0;w<S;w++)if(C[w].toggleButtonRenderer){var A=C[w].toggleButtonRenderer;A.defaultIcon.iconType=="LOOP"&&this.loopOn?A.isToggled=this.loopOn:A.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(A.isToggled=this.shuffleOn)}return H.playlistButtons}}];var lPV=function(H){Tc.call(this,H,132);this.isDocument=H===document.documentElement};
_.G(lPV,Tc);lPV.prototype.calculateScrollDelta=function(H,C,S){var w=0;H<C?w=H<C-100?-48:-8:H>C+S&&(w=H>C+S+100?48:8);return w};
lPV.prototype.JSC$11408_onMouseMove=function(H){this.isDocument||(H.clientX=H.event_.pageX,H.clientY=H.event_.pageY);Tc.prototype.JSC$11408_onMouseMove.call(this,H)};var d9=function(){var H=_.oZ.apply(this,arguments)||this;H._noAccessors=!0;H.scrollElement=document.documentElement;H.JSC$14397_dragListGroup=null;H.dragScrollSupport=null;H.onDraggerCreated=function(C){var S=C.JSC$11404_dragger;S.scrollTarget_=H.scrollElement;C=C.draggerEl;S&&C.menuOpened&&S.setEnabled(!1)};
H.onDragStart=function(C){var S=C.draggerEl;C=C.currDragItem;var w=Object.assign({},C==null?void 0:C.data);w.trackingParams=void 0;S.data=w;S.style.position="absolute";S.style.width=(C==null?void 0:C.clientWidth)+"px";S.style.zIndex="2030";S.onDrag&&S.onDrag();_.E("web_owner_document_fallback_killswitch")?(C=document.querySelector("ytd-app"))&&_.mY(C).appendChild(S):(C=_.D9(S),(w=C.querySelector("ytd-app"))?_.mY(w).appendChild(S):C.body.appendChild(S));H.dragScrollSupport=new lPV(H.scrollElement);
H.dragScrollSupport.horizontalScrolling_=!1;S=H.dragScrollSupport;S.constrainScroll_=!!S.margin_&&!1};
H.onDrop=function(C){H.handleDrop(C);H.dragScrollSupport&&(_.Ak(H.dragScrollSupport),H.dragScrollSupport=null)};
H.onReorderableScroll=function(){if(H.JSC$14397_dragListGroup){var C=H.JSC$14397_dragListGroup;rr7(C,C.currDragItem_)}};
return H};
_.G(d9,_.oZ);d9.prototype.detached=function(){_.VXM(this)};
_.VXM=function(H){H.JSC$14397_dragListGroup&&(_.$c(H.JSC$14397_dragListGroup,XYd,H.onDragStart),_.$c(H.JSC$14397_dragListGroup,$Td,H.onDragStart),H.JSC$14397_dragListGroup.dispose(),H.JSC$14397_dragListGroup=null);H.dragScrollSupport&&(_.Ak(H.dragScrollSupport),H.dragScrollSupport=null);H.scrollElement.removeEventListener("scroll",H.onReorderableScroll)};
_.os_=function(H,C,S,w){w=w===void 0?"":w;_.VXM(H);S&&(H.scrollElement=S);H.JSC$14397_dragListGroup=new jc;H.JSC$14397_dragListGroup.hysteresisDistance_=2;kz_(H.JSC$14397_dragListGroup,C);H.JSC$14397_dragListGroup.draggerElClasses_=qD("dragging").split(" ");w&&hKU(H.JSC$14397_dragListGroup,function(A){var J=A||document,c=null;J.getElementsByClassName?c=J.getElementsByClassName(w)[0]:c=y9P("*",w,A);return c||A});
_.PI(H.JSC$14397_dragListGroup,ozW,H.onDraggerCreated);_.PI(H.JSC$14397_dragListGroup,XYd,H.onDragStart);_.PI(H.JSC$14397_dragListGroup,$Td,H.onDrop);H.JSC$14397_dragListGroup.init();H.scrollElement.addEventListener("scroll",H.onReorderableScroll,{passive:!0})};
d9.prototype.handleDrop=function(){};
_.JJ.Object.defineProperties(d9.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.D([_.V({value:100}),_.K("design:type",Number)],d9.prototype,"scrollMargin",void 0);_.D([_.Od()],d9);_.OR7=[d9.prototype];_.P_={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(H,C,S){var w=this.getClickTarget_(C);if(w&&this.isClickAllowed_(w)){C.preventDefault();H=(0,_.hb.unsafeClone)(H);var A=this.getContainerBoundingRect();C=this.getRelativeClickXy_(C,A);this.expandEndpointUrlMacros_(H,{NX:C[0],NY:C[1],NB:w.code});S&&this.truncateWebCommendMetadataUrl_(H);_.M3(this.hostElement,"yt-navigate",{endpoint:H})}},
getClickTarget_:function(H){if(!this.clickTargetMap)return null;H=_.Ar(H)||[];H=_.Z(H);for(var C=H.next();!C.done;C=H.next()){C=C.value;if(C===_.mY(this.hostElement).querySelector("#menu"))break;if(C=this.clickTargetMap.get(C.id))return C}return null},
getRelativeClickXy_:function(H,C){var S=H.detail.x,w=H.detail.y;_.E("use_on_click_for_desktop_display_ad")&&H.clientX!=null&&H.clientY!=null&&(S=H.clientX,w=H.clientY);H=Math.round(S-C.left);C=Math.round(w-C.top);return H<0||C<0?[null,null]:[H,C]},
getContainerBoundingRect:function(){return _.mY(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(H,C){for(var S=_.Z(H.loggingUrls||[]),w=S.next();!w.done;w=S.next())w=w.value,w.baseUrl&&(w.baseUrl=wNE(w.baseUrl,C));H.urlEndpoint&&H.urlEndpoint.url&&(H.urlEndpoint.url=wNE(H.urlEndpoint.url,C));H.commandMetadata&&H.commandMetadata.webCommandMetadata&&H.commandMetadata.webCommandMetadata.url&&(H.commandMetadata.webCommandMetadata.url=wNE(H.commandMetadata.webCommandMetadata.url,C))},
truncateWebCommendMetadataUrl_:function(H){if(H.commandMetadata&&H.commandMetadata.webCommandMetadata&&H.commandMetadata.webCommandMetadata.url){var C=H.commandMetadata.webCommandMetadata.url,S=C.indexOf("&pp=");if(S>0){var w=C.indexOf("&",S+1);H.commandMetadata.webCommandMetadata.url=w>S&&w<C.length?C.slice(0,S)+C.slice(w):C.slice(0,S)}}},
configureClickTargets:function(H,C,S){this.containerId=H;this.clickTargetMap=new Map;H=_.Z(C);for(C=H.next();!C.done;C=H.next())if(C=C.value,C.location){var w=S.get(C.location);w&&(_.yQ(_.mY(this.hostElement).querySelector("#"+w),"yt-simple-endpoint",this.isClickAllowed_(C)),this.clickTargetMap.set(w,C))}},
isClickAllowed_:function(H){return H.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||H.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||H.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||H.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.$o={};
_.$o.YtLazyListBehavior=[_.o_.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 H=(this.constructor.generatedFrom||this).observers;H||(H=[]);H.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
H}},
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 H=this.renderElementsOutsideVisibleArea_;H&&(Vz1(H,4),H.processSignal())},
deepLazyListObserver_:function(H){var C=this;if(H){var S=H.value||[];if(this.itemsPath==H.path){var w=this.nonDeferredItemCount;H=0;w>-1&&S.length>w&&(H=_.rh("REMAINING_DOVA_DEFERRED_CHUNKS",-1));H>0?(w>0&&(w=S.slice(0,w),this.setInitialItemsOnDataChanged(w)),(w=this.renderElementsOutsideVisibleArea_)?w.cancel():(w=this.renderElementsOutsideVisibleArea_=new _.XP(2,"eocs"),_.Jg$(window,"scroll",function(){return C.renderDeferredElements()})),_.Ql(w,function(){C.setInitialItemsOnDataChanged(S)}),_.np("REMAINING_DOVA_DEFERRED_CHUNKS",
H-1)):this.setInitialItemsOnDataChanged(S)}else if(this.itemsPath+".splices"==H.path)this.onItemsUpdated_(S);
else w="shownItems"+H.path.substr(this.itemsPath.length),this.useSignals&&w==="shownItems.length"||this.notifyPath(w,H.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(H){H&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(H),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(H){H=H.indexSplices;for(var C=0,S=H.length;C<S;C++){var w=H[C];if(w.index<this.shownCount&&(w.removed&&this.splice("shownItems",w.index,w.removed.length),w.addedCount)){var A=w.object.slice(w.index,w.index+w.addedCount);w=["shownItems",w.index,0];w.push.apply(w,A);this.splice.apply(this,w)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(H){this.cancelPendingTasks_();H||(H=[]);this.items_=H;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&&(_.Bh("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.wM(this,this.tryRenderChunk_)))},
fillRange_:function(H,C){this.canShowMore&&this.items_&&(H=this.items_.slice(H,C),H.unshift("shownItems"),this.push.apply(this,H),this.shownCount=C,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var H=this;this.canShowMore&&_.iJ(this,"renderChunk",function(){H.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.Bh("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.dw(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var H=this.renderElementsOutsideVisibleArea_;H&&(H.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var H=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(H-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=H;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(H){return Math.ceil(1E3/H)},
onCanShowMoreUpdated_:function(H){this.data&&this.items_!==null&&(H?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(H){!this.shouldUseTaskManager()&&this.data&&(!H&&this.canShowMore?(_.Z17(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):H&&this.partiallyRenderedItems_.has(this.items_)&&(_.E("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var h1;_.pT={};
h1=function(){var H=_.oZ.apply(this,arguments)||this;H.atStart=!0;H.atEnd=!0;H.startIndex=0;H.endIndex=0;H.scrollCount=0;H.initialStartIndex=0;H.disableScrollEventListener=!1;H.useFloorScrolling=!1;H.isSearch=!1;H.dragging=!1;H.dragMouseStart=0;H.dragOffsetStart=0;H.disableWheelScroll=!1;H.centerListItems=!1;H.offset=0;H.minComponentWidth=0;H.marginWidthRight=0;H.marginWidthLeft=0;H.setButtonsStateRequested=!1;H.itemsVisibilityObserver=null;H.fullyVisibleItemsIndices=[];H.JSC$14408_onWheelScroll=function(C){if(H.isSearch&&
!H.disableWheelScroll&&_.E("desktop_enable_dmpanel_wheel_scroll")){var S=C.shiftKey?Math.abs(C.deltaY)>Math.abs(C.deltaX)?C.deltaY:C.deltaX:C.deltaX;S!==0&&(C.preventDefault(),H.ytLazyListBehavior.fillRemainingListItems(),H.offset+=S,ko(H),H.reposition_())}};
H.onPointerDown=function(C){XTM(H)&&(H.dragMouseStart=C.clientX,H.dragOffsetStart=H.offset,H.dragging=!0)};
H.onPointerMove=function(C){XTM(H)&&H.dragging&&(H.ytLazyListBehavior.fillRemainingListItems(),H.offset=H.dragOffsetStart-(C.clientX-H.dragMouseStart),ko(H),H.reposition_())};
H.onPointerUp=function(){XTM(H)&&(H.dragging=!1)};
return H};
_.G(h1,_.oZ);var Qcd=function(H){var C=_.mY(H.hostElement).querySelector("#items").children;if(!C)return 0;var S=0;H=_.Z(H.fullyVisibleItemsIndices);for(var w=H.next();!w.done;w=H.next())S+=C[w.value].clientWidth;return S},XTM=function(H){return H.isSearch&&_.E("desktop_enable_dmpanel_click_drag_scroll")};
h1.prototype.created=function(){this.cachedViewportWidth=_.rh("initialInnerWidth")||window.innerWidth;this.JSC$14408_cachedViewportHeight=_.rh("initialInnerHeight")||window.innerHeight;_.rh("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.np("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
h1.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.E("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();dmd(this)};
h1.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.E("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var H;(H=this.itemsVisibilityObserver)==null||H.disconnect();this.itemsVisibilityObserver=null;var C;(C=this.itemsObserver)==null||C.disconnect()};
var dmd=function(H){var C=_.mY(H.hostElement).querySelector("#scroll-container");if(C){if(!H.itemsVisibilityObserver){var S=window.getComputedStyle(C).marginRight;H.itemsVisibilityObserver=new IntersectionObserver(function(w){PVn(H,w)},{root:C,
rootMargin:S,threshold:.98})}if(C=_.mY(H.hostElement).querySelector("#items"))H.itemsObserver=new yGV(C,function(w){$m1(H,w)})}},$m1=function(H,C){pTd(H)&&(Array.from(C.addedNodes).filter(function(S){return S.nodeType===Node.ELEMENT_NODE}).forEach(function(S){H.itemsVisibilityObserver&&H.itemsVisibilityObserver.observe(S)}),Array.from(C.removedNodes).filter(function(S){return S.nodeType===Node.ELEMENT_NODE}).forEach(function(S){H.itemsVisibilityObserver&&H.itemsVisibilityObserver.unobserve(S)}))},
PVn=function(H,C){var S=new Set(H.fullyVisibleItemsIndices);
C=_.Z(C);for(var w=C.next();!w.done;w=C.next()){w=w.value;var A=w.target.parentElement;A?(A=Array.from(A.children).indexOf(w.target),w.isIntersecting?S.add(A):S.has(A)&&S.delete(A)):_.Bn(new _.X0("Parent element not found",w.target.nodeName))}H.fullyVisibleItemsIndices=Array.from(S).sort(function(J,c){return J-c});
S.size===0?_.Bn(new _.X0("No visible entries in horizontal list")):(H.startIndex=H.fullyVisibleItemsIndices[0],H.endIndex=H.fullyVisibleItemsIndices[H.fullyVisibleItemsIndices.length-1])},pTd=function(H){H.data?H=(H=H.data)&&H.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===H.itemSizeConstraint:!1:H=!1;
return H};
_.F=h1.prototype;_.F.addScrollEventListeners=function(){var H=_.mY(this.hostElement).querySelector("#scroll-container");H.style.touchAction="pan-y";H.addEventListener("wheel",this.JSC$14408_onWheelScroll);H.addEventListener("pointerdown",this.onPointerDown);H.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.F.removeScrollEventListeners=function(){var H=_.mY(this.hostElement).querySelector("#scroll-container");H.removeEventListener("wheel",this.JSC$14408_onWheelScroll);H.removeEventListener("pointerdown",this.onPointerDown);H.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.F.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.wM(this,this.setStartIndex,[this.initialStartIndex])};
_.F.reposition_=function(){var H=_.rh("HTML_DIR")=="rtl"?"":"-",C=_.mY(this.hostElement).querySelector("#items");C&&(C.style.transform="translateX("+H+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.F.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.wM(this,this.setButtonsState_))};
_.F.setButtonsState_=function(){this.setButtonsStateRequested=!1;var H=_.mY(this.hostElement).querySelector("#items").firstElementChild;if(H){this.minComponentWidth||(this.minComponentWidth=kwn(this,H));H=_.mY(this.hostElement).querySelector("#scroll-container").clientWidth;var C=_.mY(this.hostElement).querySelector("#items");C=_.E("kevlar_horizontal_list_scroll_width_killswitch")?C.clientWidth:C.scrollWidth;var S=this.get(this.ytLazyListBehavior.itemsPath,this);if(S){var w=Math.round(H/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+w,S.length)-1)}this.ytLazyListBehavior.canShowMore?C+this.minComponentWidth>=this.offset+H&&(this.atEnd=!1):this.atEnd=this.offset+H>=C-20?!0:!1;this.atStart=this.offset<=20}};
_.F.setStartIndex=function(H){if(!this.minComponentWidth){var C=_.mY(this.hostElement).querySelector("#items").firstElementChild;if(!C)return;this.minComponentWidth=kwn(this,C)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*H;ko(this);this.reposition_()};
_.F.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.XL();var H=_.mY(this.hostElement).querySelector("#scroll-container").clientWidth;_.E("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=kwn(this,_.mY(this.hostElement).querySelector("#items").firstElementChild));H=this.useFloorScrolling?Math.floor(H/this.minComponentWidth)||1:Math.round(H/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&hT1(this);this.offset+=pTd(this)?
Qcd(this):H*this.minComponentWidth;ko(this);this.reposition_();this.scrollCount++};
_.F.prevClick_=function(){var H=_.mY(this.hostElement).querySelector("#scroll-container").clientWidth;H=this.useFloorScrolling?Math.floor(H/this.minComponentWidth)||1:Math.round(H/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=pTd(this)?Qcd(this):this.minComponentWidth*this.scrollCount-1):this.offset-=pTd(this)?Qcd(this):H*this.minComponentWidth;this.centerListItems&&hT1(this);ko(this);this.reposition_()};
_.F.onIronResize_=function(){this.resizeSupportEnabled&&_.wM(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.F.onItemsTransitionEnd_=function(H){_.Jr(H)===_.mY(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.F.onChildElementFocus_=function(H){H=H.target.closest("#items > *");var C=_.mY(this.hostElement).querySelector("#scroll-container");if(C.contains(H)){if(_.E("web_horizontal_list_behavior_focus_killswitch"))if(H.offsetLeft<this.offset)this.offset=Math.abs(H.offsetLeft)<H.clientWidth?0:H.offsetLeft;else if(H.offsetLeft+H.clientWidth>this.offset+C.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.XL(),this.offset=H.offsetLeft+H.clientWidth-C.clientWidth;else return;else{var S=_.mY(this.hostElement).querySelector("#items"),
w=_.rh("HTML_DIR")==="rtl",A=w?S.clientWidth-H.offsetLeft:H.offsetLeft;S=w?S.clientWidth-(H.offsetLeft+H.clientWidth):H.offsetLeft+H.clientWidth;var J=w?A>this.offset+C.clientWidth:A<this.offset,c=w?S<this.offset:S>this.offset+C.clientWidth,Y=w?J:c;if(w?c:J)C=w?S:A,this.offset=Math.abs(C)<H.clientWidth?0:C;else if(Y)this.ytLazyListBehavior.fillRemainingListItems(),_.XL(),this.offset=(w?A:S)-C.clientWidth;else return}ko(this);this.reposition_()}};
_.F.observeShownItems_=function(){this.reset()};
_.F.checkComponentWidthResize=function(){var H=_.mY(this.hostElement).querySelector("#items").firstElementChild;H&&(H=kwn(this,H),this.centerListItems||H!==this.minComponentWidth)&&(this.minComponentWidth=H,this.offset=H*this.scrollCount,this.centerListItems&&hT1(this),ko(this),this.reposition_())};
var kwn=function(H,C){var S=window.getComputedStyle(C).marginRight;S=Math.floor(Number(S.replace("px","")));var w=window.getComputedStyle(C).marginLeft;w=Math.floor(Number(w.replace("px","")));H.centerListItems&&!H.marginWidthRight&&(H.marginWidthRight=S,H.marginWidthLeft=w);return H.resizeSupportEnabled?C.getBoundingClientRect().width+S:C.offsetWidth+S},ko=function(H){var C=_.mY(H.hostElement).querySelector("#scroll-container").clientWidth,S=_.mY(H.hostElement).querySelector("#items").clientWidth;
H.offset<0?H.offset=0:H.offset+C>=S&&(H.offset=S-C)},hT1=function(H){H.offset-=(_.mY(H.hostElement).querySelector("#scroll-container").clientWidth+H.marginWidthRight-H.minComponentWidth)/2-H.marginWidthLeft};
_.JJ.Object.defineProperties(h1.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var H=_.rh("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(H==-1)H=this.JSC$14408_cachedViewportHeight,H=H>1320?5:H>1020?4:H>730?3:H>430?2:1;else if(H==0)return 0;_.np("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",H-1);H=_.rh("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(H>-1)return H;H=this.cachedViewportWidth;H=H>1600?6:H>1400?5:H>1300?4:H>1090?5:H>870?4:H>660?3:2;_.np("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
H);return H},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.E("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
h1.prototype.observeShownItems_=h1.prototype.observeShownItems_;h1.prototype.onChildElementFocus_=h1.prototype.onChildElementFocus_;h1.prototype.onItemsTransitionEnd_=h1.prototype.onItemsTransitionEnd_;h1.prototype.onIronResize_=h1.prototype.onIronResize_;h1.prototype.prevClick_=h1.prototype.prevClick_;h1.prototype.nextClick_=h1.prototype.nextClick_;h1.prototype.setButtonsState_=h1.prototype.setButtonsState_;h1.prototype.requestButtonsStateUpdate_=h1.prototype.requestButtonsStateUpdate_;
h1.prototype.reposition_=h1.prototype.reposition_;h1.prototype.reset=h1.prototype.reset;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],h1.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.$o.YtLazyListBehavior),_.K("design:type",Object)],h1.prototype,"ytLazyListBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],h1.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],h1.prototype,"atStart",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],h1.prototype,"atEnd",void 0);_.D([_.V(),_.K("design:type",Object)],h1.prototype,"startIndex",void 0);_.D([_.V(),_.K("design:type",Object)],h1.prototype,"endIndex",void 0);_.D([_.V({value:6}),_.K("design:type",Number)],h1.prototype,"initialCount",void 0);_.D([_.V(),_.K("design:type",Object)],h1.prototype,"scrollCount",void 0);_.D([_.V(),_.K("design:type",Object)],h1.prototype,"initialStartIndex",void 0);
_.D([_.V(),_.K("design:type",Object)],h1.prototype,"disableScrollEventListener",void 0);_.D([_.V(),_.K("design:type",Object)],h1.prototype,"supportComponentResize",void 0);_.D([_.V({value:function(){var H=this;return function(){return H.prevClick_()}}}),
_.K("design:type",Function)],h1.prototype,"boundPrevClick",void 0);_.D([_.V({value:function(){var H=this;return function(){return H.nextClick_()}}}),
_.K("design:type",Function)],h1.prototype,"boundNextClick",void 0);_.D([_.V(),_.K("design:type",Object)],h1.prototype,"useFloorScrolling",void 0);_.D([_.V(),_.K("design:type",Object)],h1.prototype,"isSearch",void 0);_.D([_.V(),_.K("design:type",Object)],h1.prototype,"dragging",void 0);_.D([_.V(),_.K("design:type",Object)],h1.prototype,"dragMouseStart",void 0);_.D([_.V(),_.K("design:type",Object)],h1.prototype,"dragOffsetStart",void 0);
_.D([_.V(),_.K("design:type",Object)],h1.prototype,"disableWheelScroll",void 0);_.D([_.V(),_.K("design:type",Object)],h1.prototype,"centerListItems",void 0);_.D([_.Gz("iron-resize"),_.fx("guideOpened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],h1.prototype,"onIronResize_",null);_.D([_.Gz("transitionend"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],h1.prototype,"onItemsTransitionEnd_",null);
_.D([_.Gz("focusin"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],h1.prototype,"onChildElementFocus_",null);_.D([_.fx("shownItems"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],h1.prototype,"observeShownItems_",null);_.D([_.Od()],h1);_.pT.YtdHorizontalListBehavior=[];_.pT.YtdHorizontalListBehavior.push(_.Ix,_.I.YtRendererBehavior,_.$o.YtLazyListBehavior,_.bU.YtdGuideStateAwareBehavior,h1.prototype);var LZ6=["APP_STATE","PI"];var nsd=_.xC(["about:blank"]),rq7={pushState:window.history.pushState,replaceState:window.history.replaceState};var nT=function(H){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=H;this.internalPushState=H.pushState.bind(H);this.internalReplaceState=H.replaceState.bind(H)};
nT.prototype.init=function(){this.initialized=!0};
nT.prototype.pushState=function(H,C){this.initialized||this.init();this.internalPushState&&this.internalPushState(H,"",C)};
nT.prototype.replaceState=function(H,C){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(H,"",C)};
nT.prototype.getState=function(){return this.history&&this.history.state};var B0b=function(H){var C=function(){var S=H.apply(this,arguments)||this;S.boundHistoryPushState=!1;S.boundHistoryReplaceState=!1;S.debugInfo={};return S};
_.G(C,H);C.prototype.init=function(){var S=_.GZ("IFRAME");_.He(S,_.qH(nsd));S.sandbox="allow-same-origin";S.style.display="none";this.iframe=S;document.body.appendChild(S);this.bindHistoryStateFunctions();H.prototype.init.call(this)};
C.prototype.bindHistoryStateFunctions=function(){var S=this,w=[],A;this.iframe&&((A=this.iframe.contentWindow)==null?0:A.history)&&(A=this.iframe.contentWindow.history)&&(w.push(A),Object.getPrototypeOf(A)&&w.push(Object.getPrototypeOf(A)));window.history&&w.push(window.history);A=window.history;Object.getPrototypeOf(A)&&w.push(Object.getPrototypeOf(A));w.push(rq7);A=function(c){for(var Y=null,M=0;M<w.length;M++){var m=w[M][c];if(typeof m==="function"){Y=m.bind(window.history);S.debugInfo[c]=M;break}}return Y};
if(!this.boundHistoryReplaceState){var J=A("replaceState");J&&(this.internalReplaceState=J,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(A=A("pushState"))&&(this.internalPushState=A,this.boundHistoryPushState=!0)};
return C}(nT),DmV=function(){return B0b.call(this,window.history)||this};
_.G(DmV,B0b);DmV.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var r9=function(H){this.browserHistory=H;this.initialized=!1};
r9.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
r9.prototype.pushState=function(H,C){this.initialized||this.init();this.browserHistory.pushState(H,C)};
r9.prototype.replaceState=function(H,C){this.initialized||this.init();this.browserHistory.replaceState(H,C)};
r9.prototype.handlePopstate=function(H){return H.state};_.Kcd=function(H,C,S,w,A){this.endpoint=H;this.forward=C;this.historyEntry=S;this.JSC$30233_savedComponentState=w;this.legacyBorder=A===void 0?!1:A};var tX7=function(H,C){this.rootData=H;this.scrollTop=C};var vf=new _.W4("PAGE_REQUEST_TOKEN"),jCd=new _.W4("FETCH_PBJ_TOKEN");_.B_=new _.W4("EPHEMERAL_STORE_TOKEN");_.DL=function(H){this.data=Object.assign({},H);var C;(C=this.data.innertubeResponse)==null||delete C.frameworkUpdates};
_.DL.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.Zt)()};
_.AN=function(H){return Object.assign({},H.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var LcP=function(){this.maxSize=100;this.timeToDataCache=new Map};
LcP.prototype.get=function(H){var C=this.timeToDataCache.get(H);C&&(this.timeToDataCache.delete(H),this.timeToDataCache.set(H,C));if(C&&C.rootData&&(_.E("web_use_response_store_for_history_cache")||_.E("mweb_use_new_history_manager"))){var S=_.JA().resolve(_.B_),w=gs1(C),A=!!w;if(w){if(w.content){var J=KT(S,w.content);A&&J?C.rootData.response=_.AN(J):A=!1}w.player&&(J=KT(S,w.player),A&&J?C.rootData.playerResponse=_.AN(J):A=!1);w.reelSequence&&(S=KT(S,w.reelSequence),A&&S?C.rootData.reelWatchSequenceResponse=
_.AN(S):A=!1)}A||(this.timeToDataCache.delete(H),C=void 0)}return C};
LcP.prototype.set=function(H,C){if(C.rootData&&(_.E("web_use_response_store_for_history_cache")||_.E("mweb_use_new_history_manager"))){var S=gs1(C),w=Object.assign({},C.rootData);S&&(S.content&&C.rootData.response&&(UmY(this,S.content,C.rootData.response),w.response=null),S.player&&C.rootData.playerResponse&&(UmY(this,S.player,C.rootData.playerResponse),w.playerResponse=null),S.reelSequence&&C.rootData.reelWatchSequenceResponse&&(UmY(this,S.reelSequence,C.rootData.reelWatchSequenceResponse),w.reelWatchSequenceResponse=
null));C=new tX7(w,C.scrollTop)}this.timeToDataCache.has(H)?this.timeToDataCache.delete(H):this.timeToDataCache.size>=this.maxSize&&(S=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(S.value));this.maxSize!==0&&this.timeToDataCache.set(H,C)};
LcP.prototype.clear=function(){this.timeToDataCache.clear()};
var gs1=function(H){var C=_.JA().resolve(_.AA(vf)),S;if((S=H.rootData)==null?0:S.endpoint)return C==null?void 0:dC0(C,H.rootData.endpoint);var w;_.Bn(new _.X0("History snapshot response data does not contain endpoint",(w=H.rootData)==null?void 0:w.url));return null},UmY=function(H,C,S){if(H.maxSize>0){var w;
(H=(w=S.responseContext)==null?void 0:w.maxAgeSeconds)&&Number(H)>0&&(w=_.JA().resolve(_.B_),S=m_(S,H),w.put(C,new _.DL(S)))}};var RTd=function(H,C,S){this.endpoint=C;this.JSC$30238_savedComponentState=S===void 0?null:S;this.entryTime=H};var xMZ=1;var t1=function(H){var C=function(){var S=H.apply(this,[].concat(_.k$(_.tc.apply(0,arguments))))||this;S.historyEntryTime=0;S.historySnapshotCache=S.createHistoryCache();return S};
_.G(C,H);C.prototype.createHistoryCache=function(){return new LcP};
C.prototype.saveAndReplace=function(S,w,A){var J=window.location.href;var c=c===void 0?{}:c;var Y=(Y=this.browserHistory.getState())&&Y.entryTime?Y.entryTime:HRu();S=this.createNewHistoryEntry(S,c,Y);this.saveSnapshot(Y,w,A);this.replaceState(S,J||window.location.href)};
C.prototype.saveAndPush=function(S,w,A,J,c){c=c===void 0?{}:c;this.saveSnapshot(this.historyEntryTime,A,J);A=this.historySnapshotCache;J=this.historyEntryTime;var Y=A.timeToDataCache.keys();Y=_.Z(Y);for(var M=Y.next();!M.done;M=Y.next())M=M.value,M>J&&A.timeToDataCache.delete(M);w=this.createNewHistoryEntry(w,c);this.pushState(w,S)};
C.prototype.saveSnapshot=function(S,w,A){this.historySnapshotCache.set(S,new tX7(w,A))};
C.prototype.createNewHistoryEntry=function(S,w,A){A=A===void 0?HRu():A;return new RTd(A,S,w)};
C.prototype.handlePopstate=function(S){var w=H.prototype.handlePopstate.call(this,S),A=null,J=null,c=!1,Y=null;w&&w.entryTime&&(Y=this.historySnapshotCache.get(w.entryTime)||null,c=w.entryTime>this.historyEntryTime,this.historyEntryTime=w.entryTime,A=w.endpoint,J=w.JSC$30238_savedComponentState);this.handleHistoryCacheLoad(new _.Kcd(A,c,Y,J),S);return w};
C.prototype.pushState=function(S,w){Number(S==null?void 0:S.entryTime)>=0&&(this.historyEntryTime=S.entryTime);H.prototype.pushState.call(this,S,w)};
C.prototype.replaceState=function(S,w){Number(S==null?void 0:S.entryTime)>=0&&(this.historyEntryTime=S.entryTime);H.prototype.replaceState.call(this,S,w)};
C.prototype.handleHistoryCacheLoad=function(){};
return C}(r9),IPM=function(){var H=t1.call(this,new DmV)||this;
H.dispatchElement=null;H.entryIndex=0;return H};
_.G(IPM,t1);_.F=IPM.prototype;_.F.init=function(H){H=H===void 0?!0:H;t1.prototype.init.call(this);this.initialized||(H||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.F.handlePopstate=function(H){var C=null;H.state||(C="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return t1.prototype.handlePopstate.call(this,H);var S=new CustomEvent("yt-history-pop",{cancelable:!0});_.q3(this.dispatchElement,"yt-history-pop",[S,{errorMsg:C}]);_.m7(this.dispatchElement,"yt-close-all-popups-action");if(!S.defaultPrevented){S=_.JA().resolve(_.JB);C=S.getCurrentData();var w=S.getCurrentPage();S=0;w?(w=_.q3(this.dispatchElement,"yt-get-page-offset",
[w]),w.length>0&&(S=w[0])):_.Bn(new _.X0("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:C?C.page:"undefined"}));C&&(C.csn=_.Dg());this.saveSnapshot(this.historyEntryTime,C,S)}return t1.prototype.handlePopstate.call(this,H)};
_.F.handleHistoryCacheLoad=function(H,C){H.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.Z(_.m7(this.dispatchElement,"yt-history-will-navigate",[C])).next().value||_.q3(this.dispatchElement,"yt-history-load",[C,H]))};
_.F.pushState=function(H,C){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var S=new _.X0("history.pushState is not a function",this.getDebugString());_.nC(S)}t1.prototype.pushState.call(this,H,C)};
_.F.replaceState=function(H,C){if(!this.browserHistory.boundHistoryReplaceState){var S=new _.X0("history.replaceState is not a function",this.getDebugString());_.nC(S)}t1.prototype.replaceState.call(this,H,C)};
_.F.saveAndPush=function(H,C,S,w,A){A=A===void 0?{}:A;S&&(S.csn=_.Dg());t1.prototype.saveAndPush.call(this,H,C,S,w,A)};
_.F.getDebugString=function(){var H=[];this.initialized&&H.push("i");this.browserHistory.boundHistoryReplaceState&&H.push("bhr");this.browserHistory.boundHistoryPushState&&H.push("bhs");"replaceState"in this.browserHistory.debugInfo&&H.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&H.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&H.push("ei:"+String(this.entryIndex));return H.join(",")};
_.LT=function(H,C){H.init(!0);var S=H.browserHistory.getState();H.replaceState(S,Tb(C))};
IPM.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.g9=new _.W4("DESKTOP_HISTORY_MANAGER_TOKEN");var aP_=[10,20,30,40,50,60],UI=function(){this.currentPartitionIndex=0},xmM=function(H){ZT7({mainAppWeb:_.Ss(),
survivalSli:{partitionMinute:H,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},HI1=function(H){ZT7({mainAppWeb:_.Ss(),
survivalSli:{partitionMinute:H,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},iIP=function(H){return H.currentPartitionIndex>=0&&H.currentPartitionIndex<aP_.length?aP_[H.currentPartitionIndex]:-1},C21=function(H){return H.currentPartitionIndex>0&&H.currentPartitionIndex-1<aP_.length?aP_[H.currentPartitionIndex-1]:-1};
UI.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var H=C21(this);H>0&&HI1(H);H=iIP(this);H>0&&xmM(H);SKV(this)}};
var SKV=function(H){var C=iIP(H);if(C>0){var S=C21(H);S<0&&(S=0);H.intervalId=_.rT.addJob(function(){var w=C21(H);w>0&&HI1(w);w=iIP(H);w>0&&xmM(w);SKV(H)},3,(C-S)*6E4);
H.currentPartitionIndex+=1}else H.currentPartitionIndex=-1};var sU1=function(){this.skipNextNavigation=!1},jU7=function(H,C,S){if(!C)return!1;
if(H.skipNextNavigation)return H.skipNextNavigation=!1;if(_.e(S,_.R8))return!1;var w,A,J;if((w=_.e(S,_.vU))==null?0:(A=w.browseEndpointContextSupportedConfigs)==null?0:(J=A.browseEndpointContextMainConfig)==null?0:J.skipConfirmation)return!1;var c;return((c=_.e(C.commandMetadata,_.u9))==null?void 0:c.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
sU1.prototype.showConfirmationDialog=function(H,C){this.navigateParams=C;this.customConfirmationCommand?_.JA().resolve(_.ZQ).resolveCommand(this.customConfirmationCommand):(C={openPopupAction:{popup:{confirmDialogRenderer:{title:_.sx(_.fL("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.sx(_.fL("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.sx(_.fL("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.sx(_.fL("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.a8.getInstance().triggerAction("yt-open-popup-action",C,H))};
sU1.prototype.cancelPendingNavigation=function(){var H;((H=this.navigateParams)==null?void 0:H.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var w$d=function(){},Jp7=function(H,C,S,w,A,J,c){S=S===void 0?{}:S;
c=c===void 0?{}:c;var Y=_.ai.instance,M,m=(M=_.e(C,_.R8))==null?void 0:M.url;return m?Ty$(Y,m,S,window.location.href,function(W,y){Apb(H,W,y,!1,!0,S,J,w)},function(){return!1}):Ld(Y,C,S,window.location.href,VL(C),function(W,y){Apb(H,W,y,!1,!0,S,J,w)},A,c)},Apb=function(H,C,S,w,A,J,c,Y){if(!H.JSC$14466_chunkHandler)if(S.page==="learning_journey_watch"&&_.E("web_enable_canvas_on_learning_journey")){var M=!_.e(Y,_.vU);
A=A||w;if(M)if(A){if(_.E("kevlar_continue_playback_without_player_response")){var m;var W=(m=_.e(Y,_.sX))==null?void 0:m.videoId}w={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:w,previousVideoId:W},tempData:J}}else w={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else w={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};H.JSC$14466_chunkHandler=new oyd(_.Zz,w,c,M,A)}else if(S.page==="watch"||S.page==="learning_journey_watch")if(A||w){if(_.E("kevlar_continue_playback_without_player_response")){var y;
M=(y=_.e(Y,_.sX))==null?void 0:y.videoId}H.JSC$14466_chunkHandler=new Qj7(_.Zz,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:w,previousVideoId:M},tempData:J},c)}else H.JSC$14466_chunkHandler=new lUU(_.Zz);else S.page==="shorts"&&A&&!w?H.JSC$14466_chunkHandler=new Xod(_.Zz,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:J},c):H.JSC$14466_chunkHandler=new VVd(c);H.JSC$14466_chunkHandler.processChunk({endpoint:C,data:S});return H.JSC$14466_chunkHandler.oR.promise},
Fgd=function(H,C,S,w,A){(S=_.yjb(S))&&Apb(H,C,S,!1,!0,w,void 0,A)};_.ZI7=new _.W4("NAVIGATION_SERVICE_TOKEN");var cpP=function(){this.pendingNavigationPromise=null};
_.F=cpP.prototype;_.F.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.F.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.F.addEventListener=function(){throw Error("Dh");};
_.F.dispatchEvent=function(){throw Error("Dh");};
_.F.removeEventListener=function(){throw Error("Dh");};var YKb=new _.W4("APP_ROOT");var CVZ=null;var zF_=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],RI=function(){_.ph.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];M1d(this)};
_.G(RI,_.ph);RI.prototype.verifyUser=function(){var H=M1d(this),C=H.logout;if(!H.sessionChange)return!0;this.dispatchEvent("ytsessionchange");C&&this.dispatchEvent("ytuserinvalid");return!1};
var M1d=function(H){var C=zF_.map(function(A){var J;return(J=_.vA.get(A))!=null?J:""}),S=C.some(function(A,J){return H.sessionCookies&&H.sessionCookies[J]!==""&&A===""}),w=C.some(function(A,J){return H.sessionCookies&&H.sessionCookies[J]!==A});
H.sessionCookies=C;return{logout:S,sessionChange:w}};
RI.prototype.clearTimeout=function(){this.scheduledJobId&&(_.rT.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var JqZ=new _.W4("POSTMESSAGE_TUNNEL_TOKEN");var jcV=["/parent_tools","/file_download","/artist_roster"],cqi=[aw1,xD7,HPd,CY_,iP1,IwY,Snb,sV7];var II=new _.W4("NAVIGATION_CONFIRMATION_SERVICE");var qKn="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /contribute-notes /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),Tl_=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],aI=function(H,C){this.pendingNavigationPromise=null;this.JSC$14489_clientRoot=H;this.historyManager=C;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 w$d;this.debugString=H.is;H={"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};_.xI(_.a8.getInstance(),H,this.JSC$14489_clientRoot)},bI7,E9d,eF7,utM,Nld;
_.G(aI,cpP);aI.prototype.reload=function(){_.Cx(window.location.href)};
var EaP=function(H){H.currentEndpoint&&_.e(H.currentEndpoint,_.Ox)?H.reload():H.currentEndpoint&&H.navigate(H.currentEndpoint,!0,void 0,{disableCache:!0})};
aI.prototype.navigate=function(H,C,S,w,A,J,c,Y){C=C===void 0?!1:C;S=S===void 0?{}:S;w=w===void 0?{}:w;var M=_.JA().resolve(II),m;if(!c&&jU7(M,(m=this.currentEndpoint)!=null?m:void 0,H))return M.showConfirmationDialog(this.JSC$14489_clientRoot.parentElement,{endpoint:H,reload:C,params:S,tempData:w,requestType:A,createScreenConfig:J}),!1;var W=_.mN();_.WP(W,"eocs")||W.parkOrScheduleJob(function(){W.processSignal("eocs")},10,"eor");
STu();c=VL(H);M=w.autonav==="1";m=_.Dg();RI.instance||(RI.instance=new RI);var y=RI.instance.verifyUser(),N;if(_.E("enable_dark_theme_only_on_shorts")){var b=document.documentElement.hasAttribute("dark"),u=_.$F(!0)==="USER_INTERFACE_THEME_DARK";if(c==="shorts"){if(!b)if(_.E("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var O;_.Cx((O=_.e(H==null?void 0:H.commandMetadata,_.u9))==null?void 0:O.url,void 0,void 0,window.top)}}else{var d;_.Cx(_.HA((d=_.e(H==
null?void 0:H.commandMetadata,_.u9))==null?void 0:d.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.E("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!b){var p;_.Cx(_.HA((p=_.e(H==null?void 0:H.commandMetadata,_.u9))==null?void 0:p.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(u!==b){var k;_.Cx(_.HA((k=_.e(H==null?void 0:H.commandMetadata,_.u9))==null?void 0:k.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(c==="watch"){if(m7V(_.JA().resolve(_.Df),
H)&&(y||_.E("fix_miniplayer_navigation_killswitch")))return!1;_.E("block_all_player_prefetch_requests")||(N=NGn(_.j9(_.xe),H,M))}else{var R,L=(R=_.e(this.currentEndpoint,_.sX))==null?void 0:R.videoId;L&&_.C$.getInstance().then(function(bi){bi&&bi.set("yt-miniplayer-shown-video-id",L)})}N&&(S.frags=N.missingFragments_.join(","));
O=null;var t;d=(t=_.e(H==null?void 0:H.commandMetadata,_.u9))==null?void 0:t.ignoreNavigation;if(!d)if(_.E("kevlar_command_url")){var g;O=(g=_.e(H==null?void 0:H.commandMetadata,_.u9))==null?void 0:g.url}else O=_.UpZ(H,S);if(O&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&O==this.lastNavigationUrl)return _.nL({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.qI(Re(),"CANCELLED")}O&&(this.lastNavigationUrl=O);p_u();_.np("IS_HOMEPAGE_COLD",
!1);_.np("IS_RESULTS_PAGE_COLD",!1);_.np("IS_WATCH_PAGE_COLD",!1);H.loggingUrls&&H.loggingUrls.forEach(function(bi){bi.baseUrl&&_.aM(bi.baseUrl)});
_.qTE(H,J?J.layer:0)&&_.E("kevlar_flush_logs_on_away_navigation")&&_.ht();if(YTZ(H))return!1;HSV(c,A);if(!O)return d||_.Bn(new _.X0("Can't construct url for endpoint",H)),_.qI(Re(),"FAILURE"),!1;_.sc7();t=H&&_.e(H,_.vU)&&_.e(H,_.vU).browseId.startsWith("UC");S=(g=_.E("enable_dark_theme_only_on_shorts")&&c==="shorts"?!1:_.pf()&&document.documentElement.hasAttribute("dark")!==_.PU())?{themeRefresh:1}:{};g&&!_.VD()&&_.$F()==="USER_INTERFACE_THEME_DARK"&&(S.theme="dark");t=g||WgM(O)&&!t&&!_.E("kevlar_disable_url_allowlist");
y||(t=!0);if(t||_.rh("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var ii;var FW=(ii=window.top)==null?void 0:ii.location.href}catch(bi){var cZ;FW=(cZ=bi)==null?void 0:cZ.message}_.Bn(new _.X0("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:FW}))}H=_.E("kevlar_redirect_on_window_killswitch")?window.top:window;iA(O);_.Cx(_.HA(O,S),void 0,void 0,H);_.qI(Re(),"ABORTED");return!1}_.E("kevlar_early_popup_close")&&_.q3(this.JSC$14489_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14466_chunkHandler=void 0;var eZ;FW=VL((eZ=this.currentEndpoint)!=null?eZ:void 0);(eZ=c==="shorts"&&FW==="shorts")||_.XaE();_.Lp(WuZ)("nr",void 0);M&&_.nL({webInfo:{navigationReason:"an"}});H.clickTrackingParams&&(w.itct=H.clickTrackingParams,w.csn=m);RoE(w);w.endpoint=JSON.stringify(H);_.E("enable_unknown_lact_fix_on_html5")&&(_.JA().resolve(_.Qi),w.lact=_.cn());_.hb.isEmpty(w)||_.JM(O,w);!_.E("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(J=Object.assign({},{layer:0},J,{parentLayer:3}));this.pendingNavigationPromise=J=Jp7(this.pageFetcher,H,w,this.currentEndpoint,this.JSC$14489_isNetworkPromiseStale.bind(this),J,Y);J=J.then(this.handleNavigateSuccess.bind(this,J,H,N,w),this.handleNavigateFail.bind(this,J,H));_.LO().navigationFinishPromise=J;C={endpoint:H,pageType:c,url:Tb(O),reload:!!C,noProgressBar:eZ};A&&(C.type=A);this.fireEvent("yt-navigate-start",C);var ND;(ND=_.JA().resolve(_.AA(_.ZI7)))==null||ND.publish("navigation-start");
N&&Fgd(this.pageFetcher,H,N,w,this.currentEndpoint);return!0};
aI.prototype.JSC$14489_isNetworkPromiseStale=function(H){return H!=this.pendingNavigationPromise};
var ypd=function(H,C,S,w,A){var J=VL(C);C={endpoint:C,pageType:J};A&&(C.errorMessage=A);_.Bn(S);C.navigationDoneMs=_.DR("nd");C.navigationErrorReason=w;H.fireEvent("yt-navigate-error",C)};
aI.prototype.handleNavigateFail=function(H,C,S){var w=void 0;S instanceof _.KN&&(w=S,L_D(S));if(this.JSC$14489_isNetworkPromiseStale(H))return _.kj(w);_.qI(Re(),"FAILURE");ypd(this,C,S,"101");return _.kj(S)};
aI.prototype.handleNavigateSuccess=function(H,C,S,w,A){if(this.JSC$14489_isNetworkPromiseStale(H))return _.N3();this.pendingNavigationPromise=null;if(!A)return C=new _.X0("Missing data in response for navigation endpoint",C),_.kj(C);if(A.reload)return window.location.reload(!0),_.N3();S&&(H={},_.hb.extend(H,_.yjb(S),A),A=H);var J,c;S=(J=A)==null?void 0:(c=J.timing)==null?void 0:c.responseStart;S!=null&&_.DR("srt",S);_.DR("pdc");var Y,M;J=(Y=A)==null?void 0:(M=Y.timing)==null?void 0:M.info;J!=null&&
(Y=_.Lp(_.EA0)(J),_.nL(Y));_.qI(Re(),"SUCCESS");Nld(this,C,A,1,w);return _.N3()};
var WgM=function(H){var C=H;_.E("kevlar_no_redirect_to_classic_2_ks")||(C=(new _.jR(H)).getPath());if(C==="/"||C==="/red")return!1;var S=!0;qKn.forEach(function(w){H.indexOf(w)===0&&(S=!1)});
Tl_.forEach(function(w){var A=w.url;_.E(w.expFlag)&&H.indexOf(A)===0&&(S=!1)});
return S};
aI.prototype.publishPageData=function(H){this.fireEvent("yt-page-data-fetched",{pageData:H})};
bI7=function(H,C,S,w,A,J){var c=null;C.page!=="watch"&&C.page!=="learning_journey_watch"||w?C.filler||_.q3(H.JSC$14489_clientRoot,"yt-stop-old-player",[C]):c=Apb(H.pageFetcher,A,C,S,!1,J,void 0,H.currentEndpoint);if(c)return c.then(H.publishPageData.bind(H,C));H.publishPageData(C);return _.N3()};
E9d=function(H,C,S){var w=null;if(!S)return w=new _.X0("Empty data",H.debugString,C);var A=S.response;if(!A)return w;var J={endpointType:VL(C)||"unknown"};A.responseContext?(A=A.responseContext.errors)&&(w=new _.X0("Errors in response context",H.debugString,C,A,J)):w=A.error||A.errorMetadata?new _.X0("Errors in response",H.debugString,C,A.error,A.errorMetadata,J):new _.X0("responseContext missing",H.debugString,C,Object.keys(A).sort().join(","),J);var c,Y,M,m;if(H=S==null?void 0:(c=S.response)==null?
void 0:(Y=c.responseContext)==null?void 0:(M=Y.webResponseContextExtensionData)==null?void 0:(m=M.webResponseContextDebugData)==null?void 0:m.debugErrorMessages)for(c=0;c<H.length;c++);return w};
eF7=function(H){var C,S,w,A;return H==null?void 0:(C=H.response)==null?void 0:(S=C.responseContext)==null?void 0:(w=S.errors)==null?void 0:(A=w.error)==null?void 0:A["0"]};
utM=function(H,C){var S;if(S=C.url&&!C.url.startsWith("/clip"))S=C.url,S=!_.E("webfe_parse_debug_param_in_resolveurl_service")&&H.searchDebugUrlMatcher.test(S)||i8Z(S)?!0:!1;if(S)i8Z(C.url)&&_.xT(window.location.href).themeRefresh?(C=_.Fw(C.url,"themeRefresh"),_.LT(H.historyManager,C)):C.url&&!I_$(C.url)&&_.LT(H.historyManager,C.url);else if(C.endpoint){var w,A,J;(S=(w=C.endpoint)==null?void 0:(A=w.commandMetadata)==null?void 0:(J=A.webCommandMetadata)==null?void 0:J.url)&&!I_$(S)&&_.LT(H.historyManager,
S);S&&C.url&&S!=C.url&&!C.url.match("playnext=1")&&new _.X0("Response url mismatch in response data",H.debugString,S,C.url)}};
_.G0b=function(H,C,S,w,A,J,c,Y){J=J===void 0?!1:J;var M=_.JA().resolve(II),m;if(!Y&&jU7(M,(m=H.currentEndpoint)!=null?m:void 0,C))return M.showConfirmationDialog(H.JSC$14489_clientRoot.parentElement,{endpoint:C,data:S,navigationType:w,tempData:A,isMiniplayer:J,isForwardHistoryNavigation:c==null?void 0:c.forward}),_.N3();H.pageFetcher.JSC$14466_chunkHandler=void 0;return Nld(H,C,S,w,A,J)};
Nld=function(H,C,S,w,A,J){J=J===void 0?!1:J;H.isMiniplayerExpansion=J;var c=w===2;H.currentEndpoint=C;H.numNavigations++;H.numNavigations&&($vw.navigationCount=H.numNavigations);_.np("NUM_NAV",H.numNavigations);var Y=E9d(H,C,S);if(Y)return ypd(H,C,Y,"102",eF7(S)),_.kj(Y);var M,m,W,y;Y=S.rootVe||(S==null?void 0:(M=S.response)==null?void 0:(m=M.responseContext)==null?void 0:(W=m.webResponseContextExtensionData)==null?void 0:(y=W.ytConfigData)==null?void 0:y.rootVisualElementType);!c&&S&&utM(H,S);var N,
b;M=S==null?void 0:(N=S.response)==null?void 0:(b=N.responseContext)==null?void 0:b.maxAgeSeconds;if(!c&&!isNaN(M)){var u;_.E("kevlar_use_response_ttl_to_invalidate_cache")?u=(0,_.Zt)()+1E3*M:_.E("kevlar_always_invalidate_cache")&&(u=0);isNaN(u)||(S.expirationTime=u)}_.j9(_.xe).prefetchCache_.clear();c||S.page!=="watch"||S.type!=="reduced"&&w!==1?w=bI7(H,S,c,!!J,C,A):(H.publishPageData(S),w=_.N3());A=w.then(function(){var O=VL(C);O={endpoint:C,pageType:O,fromHistory:c,response:S};O.navigationDoneMs=
_.DR("nd");H.fireEvent("yt-navigate-finish",O);var d;(d=_.JA().resolve(_.AA(_.ZI7)))==null||d.publish("navigation-end")});
S.csn&&Y&&S.clientSideGrafts&&w.then(H.attachClientSideGrafts.bind(H,S,_.BM()));return A};
_.F=aI.prototype;_.F.attachClientSideGrafts=function(H,C){H.clientSideGrafts&&C&&H.clientSideGrafts.forEach(function(S){if(C&&S){var w=_.Qh(S);_.E("combine_ve_grafts")?_.lJ().graftServerVe(S,C):_.ak(H.csn,C,w)}})};
_.F.handleSignalActionHistoryBack=function(){window.history.back()};
_.F.handleSignalActionCloseWindow=function(){window.close()};
_.F.handleSignalActionReloadPage=function(){this.reload()};
_.F.handleSignalActionSoftReloadPage=function(){EaP(this)};
_.F.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.F.fireEvent=function(H,C){H=new CustomEvent(H,{bubbles:!0,cancelable:!1,composed:!0,detail:C});this.dispatchEvent(H)};
_.F.addEventListener=function(H,C){this.JSC$14489_clientRoot.addEventListener(H,C)};
_.F.dispatchEvent=function(H){return this.JSC$14489_clientRoot.dispatchEvent(H)};
_.F.removeEventListener=function(H,C){this.JSC$14489_clientRoot.removeEventListener(H,C)};
aI[F0]=[YKb,_.g9];_.yWp=new ke("browse","h8y2qb");_.N_W=new ke("search","JzFVk");_.bcE=new ke("shorts","xwEKAe");_.E2Z=new ke("watchFixie","nmfa2d");_.eS7=new ke("watchFlexy","CF909");_.ul0=new ke("watchGrid","Tm0L3c");_.GCE=new ke("watchLearningJourney","L3n37");var fS1;var v9M=function(){return _.X.apply(this,arguments)||this};
_.G(v9M,_.X);_.JJ.Object.defineProperties(v9M,{template:{configurable:!0,enumerable:!0,get:function(){if(fS1===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);fS1=H}H=fS1;return H}}});
_.D([_.v(fPW.YtPlayerBehavior),_.K("design:type",Object)],v9M.prototype,"ytPlayerBehavior",void 0);_.D([_.h({is:"ytd-player"})],v9M);var lS_;var V17;var o9b;var xo=function(){var H=_.X.apply(this,arguments)||this;H.forceModernIconButton=!1;H.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return H};
_.G(xo,_.X);xo.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]]"}}}}}};
xo.prototype.handleAccountLinkingStateChangedCommand=function(H){if(H=_.e(H,Li7)){var C,S=(C=this.data)==null?void 0:C.providerKey;C=H.providerKey;S&&C&&S.id===C.id&&S.subject===C.subject&&(H=H.linked,H!==void 0&&(this.set("data.linked",H),this.notifyPath("data.linked"),_.E("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(H)))}};
xo.prototype.setPlayerAccountLinkState=function(H){var C=new Jn1;FuW(C,wa1(new jx1,H));var S=_.Zz();S&&S.getPlayerPromise().then(function(w){w.setAccountLinkState(_.QO(C.JSC$12183_serializeBinary(),4));w.updateAccountLinkingConfig(H)})};
xo.prototype.handleShowAccountLinkDialog=function(){var H=this.get("button.buttonRenderer.command");H&&_.EX([H],this.hostElement)};
_.JJ.Object.defineProperties(xo.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}}}});
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],xo.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],xo.prototype,"ytRendererBehavior",void 0);_.D([_.v([_.Lw.YtActionHandlerBehavior]),_.K("design:type",Object)],xo.prototype,"actionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],xo.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],xo.prototype,"overrides",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],xo.prototype,"forceModernIconButton",void 0);_.D([_.V({value:"bottom"}),_.K("design:type",String)],xo.prototype,"buttonTooltipPosition",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],xo.prototype,"forceIconButton",void 0);_.D([_.V(),_.K("design:type",Boolean)],xo.prototype,"disableTextTransform",void 0);
_.D([_.l("data","data.linked","data.isWarning"),_.K("design:type",Object),_.K("design:paramtypes",[])],xo.prototype,"button",null);_.D([_.h({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],xo);
_.B(xo,"ytd-account-link-button-renderer",function(){if(o9b!==void 0)return o9b;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return o9b=H},{mode:1});var OIb;var X$M=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],Hq=function(){return _.X.apply(this,arguments)||this};
_.G(Hq,_.X);Hq.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
Hq.prototype.updateButtonActiveState=function(){var H=this,C=!!X$M.find(function(S){return H.currentState===S});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.E("enable_web_delhi_icons")&&(C=!1);this.button&&(this.button.isPressed=C)};
_.JJ.Object.defineProperties(Hq.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var H,C;return((H=this.playlistLoopStateEntity)==null?void 0:H.state)||((C=this.data)==null?void 0:C.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var H=void 0,C;if(this.currentState&&((C=this.data)==null?0:C.states)){C=_.Z(this.data.states);for(var S=C.next();!S.done;S=C.next()){S=_.e(S.value,_.YN7);var w=void 0;if(((w=S)==null?void 0:w.state)===this.currentState){H=S;break}}}return H}}});
Hq.prototype.updateButtonActiveState=Hq.prototype.updateButtonActiveState;_.D([_.v(_.q$),_.K("design:type",Object)],Hq.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Hq.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Hq.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.V({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.EsZ}),_.K("design:type",Object)],Hq.prototype,"playlistLoopStateEntity",void 0);_.D([_.V(),_.K("design:type",Object)],Hq.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Boolean)],Hq.prototype,"forceIconOnly",void 0);_.D([_.lA("ytd-button-renderer"),_.K("design:type",_.Qa)],Hq.prototype,"button",void 0);
_.D([_.l("data","playlistLoopStateEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],Hq.prototype,"currentState",null);_.D([_.fx("currentButtonStateRenderer"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Hq.prototype,"updateButtonActiveState",null);_.D([_.l("currentState"),_.K("design:type",Object),_.K("design:paramtypes",[])],Hq.prototype,"currentButtonStateRenderer",null);
_.D([_.h({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],Hq);
_.B(Hq,"ytd-playlist-loop-button-renderer",function(){if(OIb!==void 0)return OIb;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return OIb=H},
{mode:1});var QU7;var d7Y=_.fL("DOWNLOAD",{},"Download"),P2P=_.fL("DOWNLOADING",{},"Downloading"),$7i=_.fL("DOWNLOADED",{},"Downloaded"),p$7=_.fL("RETRY",{},"Retry"),iq=function(){var H=_.X.apply(this,arguments)||this;H.forceIconButton=!1;H.forceIconOnly=!1;H.overrides=!1;H.buttonTooltipPosition=!1;H.styleActionButton=!1;H.disableTextTransform=!1;H.downloadProgress=0;H.isDownloadComplete=!1;H.isHidden=!0;H.transferState="TRANSFER_STATE_UNKNOWN";H.isVideoDeletedByUser=!1;H.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return H};
_.G(iq,_.X);_.F=iq.prototype;_.F.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.F.dataChanged=function(){var H;(H=this.data)!=null&&H.text||(H=_.L8(_.AG().getState(),this.videoId),this.updateButtonState(H))};
_.F.computeVideoId=function(H){return H};
_.F.computePlayerStateEntityKey=function(H){return H};
_.F.showHideButton=function(){this.updateButtonVisibility()};
_.F.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;var H;((H=this.playerStateEntity)==null?void 0:H.adsState)==="ADS_STATE_PLAYING"?this.isHidden=!0:this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.F.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.F.updateButtonState=function(H){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==P2P||!_.Oa(H))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(H){case "TRANSFER_STATE_UNKNOWN":H=d7Y;var C="OFFLINE_DOWNLOAD";var S="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":H=p$7;C="OFFLINE_DOWNLOAD";S="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":H=$7i;C="OFFLINE_PIN";S="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":H=
P2P;C="OFFLINE_DOWNLOADING_ZERO";S="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":H=p$7;C="OFFLINE_DOWNLOAD";S="ACTION_RETRY";break;default:H=d7Y,C="OFFLINE_DOWNLOAD",S="ACTION_ADD"}this.isVideoDeletedByUser&&(H=d7Y,C="OFFLINE_DOWNLOAD",S="ACTION_ADD");var w=Object.assign({},this.data);w.text=_.sx(H);w.tooltip=H;w.icon={iconType:C};w.size="SIZE_DEFAULT";w.style="STYLE_DEFAULT";_.e(w.command,_.ur)&&(_.e(w.command,_.ur).action=S);this.set("data",w)}};
_.F.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var H="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?H="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?H="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?H="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?H="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?H="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(H="OFFLINE_PIN",this.isDownloadComplete=!0);var C;H!==((C=this.data.icon)==null?void 0:C.iconType)&&(C=Object.assign({},this.data),C.text=_.sx(P2P),C.tooltip=P2P,C.icon={iconType:H},_.e(C.command,_.ur)&&(_.e(C.command,_.ur).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",C))}};
iq.prototype.updateProgress=iq.prototype.updateProgress;iq.prototype.onTransferStateChanged=iq.prototype.onTransferStateChanged;iq.prototype.showHideButton=iq.prototype.showHideButton;iq.prototype.dataChanged=iq.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],iq.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],iq.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],iq.prototype,"forceIconButton",void 0);
_.D([_.V(),_.K("design:type",Object)],iq.prototype,"forceIconOnly",void 0);_.D([_.V(),_.K("design:type",Object)],iq.prototype,"overrides",void 0);_.D([_.V(),_.K("design:type",Object)],iq.prototype,"buttonTooltipPosition",void 0);_.D([_.V(),_.K("design:type",Object)],iq.prototype,"styleActionButton",void 0);_.D([_.V(),_.K("design:type",Object)],iq.prototype,"disableTextTransform",void 0);
_.D([_.V({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.K("design:type",String)],iq.prototype,"videoId",void 0);_.D([_.V({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.K("design:type",String)],iq.prototype,"playerStateEntityKey",void 0);_.D([_.V(),_.K("design:type",Object)],iq.prototype,"data",void 0);_.D([_.V({selector:Ua,selectorArgs:["videoId"]}),_.K("design:type",Object)],iq.prototype,"downloadProgress",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],iq.prototype,"isDownloadComplete",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],iq.prototype,"isHidden",void 0);_.D([_.V({selector:_.L8,selectorArgs:["videoId"]}),_.K("design:type",String)],iq.prototype,"transferState",void 0);_.D([_.V({selector:_.dbE,selectorArgs:["videoId"]}),_.K("design:type",Object)],iq.prototype,"isVideoDeletedByUser",void 0);
_.D([_.V({selector:lbE,selectorArgs:["videoId"]}),_.K("design:type",Object)],iq.prototype,"offlineabilityState",void 0);_.D([_.V({selector:YzD,selectorArgs:["playerStateEntityKey"]}),_.K("design:type",Object)],iq.prototype,"playerStateEntity",void 0);_.D([_.V({value:!0}),_.K("design:type",Boolean)],iq.prototype,"showTooltips",void 0);_.D([_.V({value:!0}),_.K("design:type",Boolean)],iq.prototype,"sendCommandWhenDisabled",void 0);
_.D([_.V({value:!1}),_.K("design:type",Boolean)],iq.prototype,"disabled",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],iq.prototype,"dataChanged",null);_.D([_.XJ("offlineabilityState","playerStateEntity"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],iq.prototype,"showHideButton",null);
_.D([_.XJ("transferState","isVideoDeletedByUser"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],iq.prototype,"onTransferStateChanged",null);_.D([_.XJ("downloadProgress"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],iq.prototype,"updateProgress",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],iq);
_.B(iq,"ytd-download-button-renderer",function(){if(QU7!==void 0)return QU7;var H=document.createElement("template");_.f(H,'\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>');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return QU7=H},{mode:2});var k0b;var hFb,n9n=function(){if(hFb!==void 0)return hFb;var H=document.createElement("template");_.f(H,'\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 hFb=H};var rpP=_.E("web_button_rework")&&_.Bh("BUTTON_REWORK")||_.E("web_button_rework_with_live"),Bl1=_.YB("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,CJ=function(){var H=_.X.apply(this,arguments)||this;H.isPressed=!1;H.forceIconButton=!1;H.forceIconOnly=!1;H.forceModernIconButton=!1;H.alignByText=!1;H.isShorts=!1;H.animatedText=!1;H.shouldAnimate=!1;H.JSC$14527_browserSupportsAnimation=_.E("web_supports_animations_api");H.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};H.onTap=function(){var C;if((C=H.data)==null||!C.defaultNavigationEndpoint){var S;C=!((S=H.data)==null?0:S.isToggled);var w;if((w=H.data)==null||!w.preventAutoToggle){H.shouldAnimate=!1;H.disableTextUpdateJobId&&_.rT.cancelJob(H.disableTextUpdateJobId);H.disableTextUpdateJobId=_.rT.addLowPriorityJob(function(){H.disableTextUpdateJobId=void 0},Bl1);
var A;H.set("data.isToggled",!((A=H.data)==null?0:A.isToggled));S=H.getInnertubeIcon();w={toggled:C,actions:{}};S&&(w.actions[S.toLowerCase()]=C);_.M3(H.hostElement,"yt-toggle-button",w)}}};
return H};
_.G(CJ,_.X);_.F=CJ.prototype;_.F.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.rT.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.F.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.F.toggle=function(H){var C;this.set("data.isToggled",H!==void 0?H:!((C=this.data)==null?0:C.isToggled))};
_.F.handleUpdateToggleButtonStateCommand=function(H){if(this.data){H=_.e(H,SNY);var C,S,w,A=(C=this.data)==null?void 0:(S=C.toggleButtonSupportedData)==null?void 0:(w=S.toggleButtonIdData)==null?void 0:w.id;A&&H&&A===(H==null?void 0:H.buttonId)&&this.set("data.isToggled",H.toggled)}};
_.F.handleUpdateToggleButtonTextAction=function(H){if(this.data){H=_.e(H,Ww1);var C,S,w,A=(C=this.data)==null?void 0:(S=C.toggleButtonSupportedData)==null?void 0:(w=S.toggleButtonIdData)==null?void 0:w.id;A&&H&&A===(H==null?void 0:H.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=H.defaultNumericalValue,this.set("data.defaultText",H.defaultText),this.set("data.toggledText",H.toggledText),this.shouldAnimate=!1)}};
_.F.getInnertubeIcon=function(){var H=this.data;if(H){var C,S,w=((C=H.defaultIcon)==null?0:C.iconType)?(S=H.defaultIcon)==null?void 0:S.iconType:null,A,J;C=((A=H.toggledIcon)==null?0:A.iconType)?(J=H.toggledIcon)==null?void 0:J.iconType:w;return H.isToggled?C:w}};
_.F.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.JJ.Object.defineProperties(CJ.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var H={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$14527_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var C=H.renderer;var S=H.element;var w=H.toggled;var A=H.onTapCallback;var J=H.commandClientArgs;var c=H.overrides;var Y=H.forceIcon;var M=H.forceModernIconButton;var m=H.forceDisabled;var W=H.useAnimatedText;var y=H.animatedTextProps;H=fPp(C,w);Y=!C.defaultIcon||!Y&&C.defaultText?C.defaultIcon?"leading":void 0:M?"icon-only":"icon-only-40";Y==="icon-only-40"&&(H.type="text");var N;M=Object;var b=M.assign,u;a:switch((u=
C.style)==null?void 0:u.styleType){case "STYLE_COMPACT_GRAY":u={size:"S"};break a;default:u={size:"M"}}var O=!!w;var d=(d=w&&C.toggledText||C.defaultText)?_.BI(d):void 0;W?(W=_.jt(w&&C.toggledText||C.defaultText))&&y&&!isNaN(Number(y.numberValue))?(y.numberText=W,w&&(y.numberValue+=1),W=y):W=void 0:W=void 0;var p,k,R,L;var t=(y=((k=w?C.toggledAccessibilityData||((t=C.toggledText)==null?void 0:t.accessibility):C.accessibilityData||((p=C.defaultText)==null?void 0:p.accessibility))==null?void 0:(R=k.accessibilityData)==
null?void 0:R.label)||((L=C.accessibility)==null?void 0:L.label))?y:_.jt(w&&C.toggledText||C.defaultText);m=m===void 0?C.isDisabled:m;S=GwZ(C,w,A,S,J);w=ufp(C,w);w!=null&&w.length?(w=_.U4({innertubeCommand:Foi(w),forceNewState:!0}),w=Rm(w)?w:void 0):w=void 0;C=b.call(M,{},H,u,{iconPosition:Y},c,{focused:!1,toggled:O,toggleable:!0,formattedButtonText:d,animatedTextProps:W,accessibilityLabel:t,disabled:m,onTap:S,aTagConfig:w},P8$((N=C.colorData)==null?void 0:N.basicColorPaletteData));C.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(C.type="filled");return C}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var H=this.getInnertubeIcon();if(H)return _.bJ(H)}}});
CJ.prototype.resetAnimation=CJ.prototype.resetAnimation;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],CJ.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],CJ.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],CJ.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],CJ.prototype,"data",void 0);
_.D([_.V(),_.K("design:type",Object)],CJ.prototype,"isPressed",void 0);_.D([_.V(),_.K("design:type",Object)],CJ.prototype,"forceIconButton",void 0);_.D([_.V(),_.K("design:type",Object)],CJ.prototype,"forceIconOnly",void 0);_.D([_.V(),_.K("design:type",Object)],CJ.prototype,"forceModernIconButton",void 0);_.D([_.V(),_.K("design:type",Object)],CJ.prototype,"alignByText",void 0);_.D([_.V(),_.K("design:type",Object)],CJ.prototype,"overrides",void 0);
_.D([_.V(),_.K("design:type",Boolean)],CJ.prototype,"disabled",void 0);_.D([_.V(),_.K("design:type",Object)],CJ.prototype,"isShorts",void 0);_.D([_.V(),_.K("design:type",Object)],CJ.prototype,"buttonTooltipPosition",void 0);_.D([_.V(),_.K("design:type",Object)],CJ.prototype,"animatedText",void 0);_.D([_.V(),_.K("design:type",String)],CJ.prototype,"textNumberValue",void 0);_.D([_.V({computed:"computeTooltip(data, data.isToggled)"}),_.K("design:type",Object)],CJ.prototype,"tooltip",void 0);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],CJ.prototype,"resetAnimation",null);_.D([_.l("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.K("design:type",Object),_.K("design:paramtypes",[])],CJ.prototype,"computedButtonShape",null);_.D([_.l("data.*"),_.K("design:type",Object),_.K("design:paramtypes",[])],CJ.prototype,"computedIcon",null);
_.D([_.h({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],CJ);rpP&&_.B(CJ,"ytd-toggle-button-renderer",n9n,{mode:_.mn("kevlar_poly_si_batch_j081")?1:2});var D7i=_.n(function(H){function C(m){var W;return _.z(function(y){if(y.nextAddress==1)return(W=!lP0(m,Y())||!Y().enabled)?y.jumpTo(2):y.yield(Qc6(),3);y.nextAddress!=2&&(W=y.yieldResult);if(W)return y.return();S();setTimeout(function(){c(!1)},1500);
_.oT(y)})}
function S(){setTimeout(function(){c(!0);var m;(m=w.lottieEl)==null||m.goToAndPlay(0)},150)}
var w=_.E5(),A=_.Z(_.mB(!1,void 0,"UfUosc")),J=A.next().value,c=A.next().value,Y=_.Jx(H.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.$T(function(){var m,W;((m=H.settings)==null?void 0:(W=m.call(H))==null?void 0:W.uniqueId)==="this is not intended behavior"&&_.Bn(new _.X0("Smartimation Settings is undefined"))});
_.d6(function(){Y().experimentEnabled&&(Y().enabled?VXE(C):(c(!1),osV(C)),_.PN(function(){osV(C)}))},"IHhVmc");
_.d6(function(){Y().timings.join("");Y().experimentEnabled&&(ORZ(Y()),_.PN(function(){XTE(Y())}))},"fsfhOe");
var M=_.EF(function(){var m=w,W=Y().uniqueId+"-border",y,N;var b="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((N=(y=_.JA().resolve(_.AA(_.sU)))==null?void 0:y())!=null&&N?"dark":"light")+"_v2.json";return{animationRef:m,animationConfig:{name:W,autoplay:!1,loop:!1,path:b}}},void 0,"UWvUGe");
A={};return _.q("yt-smartimation",{class:_.eJ(H.className,"smartimation",(A["smartimation--experiment-enabled"]=function(){return Y().experimentEnabled},A["smartimation--active-border"]=J,A["smartimation--enable-masking"]=dmW(),A))},_.q(_.T,{cond:function(){return Y().experimentEnabled},
then:function(){return _.q("div",{class:"smartimation__border"},_.q(_.UA,{className:"smartimation__border-gradient",data:M,animationName:function(){return M().animationConfig.name}}))}}),_.q("div",{class:"smartimation__content"},H.children))},"G");
D7i.idomCompat=!0;_.qs(D7i,"yt-smartimation",{props:{className:_.GH,settings:_.GH}});var SD=function(){var H=_.X.apply(this,arguments)||this;H.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};H.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};H.shouldEnableSmartimation=!1;return H};
_.G(SD,_.X);SD.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
SD.prototype.onDataChanged=function(){var H,C;this.shouldEnableSmartimation=(((H=this.data)==null?void 0:(C=H.timedAnimationData)==null?void 0:C.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
SD.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var H=_.e(this.data.likeButton,_.YP),C=_.e(this.data.dislikeButton,_.YP);return!!((H==null?0:H.isToggled)||(C==null?0:C.isToggled))};
SD.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]]"}}}}}};
_.JJ.Object.defineProperties(SD.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var H,C,S=((H=this.data)==null?void 0:(C=H.timedAnimationData)==null?void 0:C.animationTiming)||[];return{uniqueId:"like-dislike",timings:S,enabled:this.shouldEnableSmartimation,experimentEnabled:S.length>0}}}});
SD.prototype.onDataChanged=SD.prototype.onDataChanged;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],SD.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],SD.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],SD.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],SD.prototype,"likeButtonOverride",void 0);_.D([_.V(),_.K("design:type",Object)],SD.prototype,"dislikeButtonOverride",void 0);
_.D([_.l("shouldEnableSmartimation"),_.K("design:type",Object),_.K("design:paramtypes",[])],SD.prototype,"smartimationSettings",null);_.D([_.fx("data"),_.Gz("yt-toggle-button"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],SD.prototype,"onDataChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],SD);
_.B(SD,"ytd-segmented-like-dislike-button-renderer",function(){if(k0b!==void 0)return k0b;var H=document.createElement("template");_.f(H,'\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>');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return k0b=H},{mode:1});var KgY;var t17;(t17=document.body)==null||t17.setAttribute("rounded-container","");var Lgn={};Lgn.YtToggleButtonBehavior=[_.Lw.YtActionHandlerBehavior,S3.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 H=this.data.isToggled;if(!this.isModal_(H)){if(!this.data.preventAutoToggle){this.toggle();var C={toggled:this.data.isToggled,actions:{}};C.actions[this.buttonIcon]=this.data.isToggled;_.M3(this.hostElement,"yt-toggle-button",C)}C=this.data.defaultServiceEndpoint||null;var S=this.data.toggledServiceEndpoint||null;if(C&&S||C&&this.data.preventAutoToggle)H=H?S:C,C=this.disableCommandHandlerOverride,_.E("killswitch_toggle_button_behavior_resolve_command")||C?_.WH(this.hostElement,
[H]):_.uJ(H,this.hostElement),_.M3(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:H})}},
stateChanged_:function(){var H=this.data;if(H){var C=H.isToggled;this._setEndpoint(this.computeEndpoint_(H));this._setServiceEndpoint(this.computeServiceEndpoint_(H));this._setButtonIcon(this.computeButtonIcon_(H,C));this._setButtonText(this.computeButtonText_(H,C));this._setButtonAccessibility(this.computeAccessibility_(H,C));this._setButtonTooltip(this.computeTooltip_(H,C));this._setButtonClass(this.computeButtonClass_(H,C));this._setIconPositionType(this.computeIconPositionType_(H));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=C):this.elements_.button.setAttribute("aria-pressed",C));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=C)}},
shouldSetIconActiveState_:function(){return _.E("kevlar_system_icons")},
toggle:function(H){this.set("data.isToggled",H!==void 0?H:!this.data.isToggled);_.E("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(H){if(H){var C,S;return!!((C=this.data)==null?0:(S=C.toggledServiceEndpoint)==null?0:S.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(H){return H&&H.defaultNavigationEndpoint||null},
computeButtonIcon_:function(H,C){var S=H&&H.defaultIcon?_.bJ(H.defaultIcon.iconType):null;H=H&&H.toggledIcon?_.bJ(H.toggledIcon.iconType):S;return C?H:S},
handleUpdateToggleButtonStateCommand_:function(H){H=H.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==H.buttonId&&this.toggle(H.toggled)},
computeButtonText_:function(H,C){return H?C&&H.toggledText||H.defaultText||null:null},
computeAccessibility_:function(H,C){return H?(C?this.get("toggledAccessibilityData.accessibilityData",H):this.get("accessibilityData.accessibilityData",H))||H.accessibility||null:null},
computeTooltip_:function(H,C){return H?C&&H.toggledTooltip||H.defaultTooltip||null:null},
computeButtonClass_:function(H,C){if(!H)return"";var S="",w=H.toggledStyle||H.style;if(C=C?w:H.style){C.styleType&&(C=C.styleType);try{S+=C.toLowerCase().replace(/_/g,"-")+" "}catch(A){_.DZ(A,C,typeof C),_.Bn(A)}}if(H=H.size){H.sizeType&&(H=H.sizeType);try{S+=H.toLowerCase().replace(/_/g,"-")+" "}catch(A){_.DZ(A,H,typeof H),_.Bn(A)}}return S.trim()},
computeIconPositionType_:function(H){return H&&H.iconPosition||null},
computeServiceEndpoint_:function(H){var C=H&&H.serviceEndpoint,S=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return C?C:S&&H.command?H.command:null},
handleUpdateToggleButtonTextAction_:function(H){H=H.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==H.buttonId&&(this.set("data.defaultText",H.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",H.toggledText),this.notifyPath("data.toggledText"))}}];_.hg("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var g9_=_.E("web_button_rework")&&_.Bh("BUTTON_REWORK")||_.E("web_button_rework_with_live"),su=function(){var H=_.X.apply(this,arguments)||this;H.systemIcons=_.E("kevlar_system_icons");H.roundedContainer=!0;return H};
_.G(su,_.X);su.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
su.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var H=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var C={toggled:!!this.data.isToggled,actions:{}};C.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var S,w;C.actions.playlistId=(S=this.data.defaultServiceEndpoint)==null?void 0:(w=S.playlistEditEndpoint)==null?void 0:w.playlistId;_.M3(this.hostElement,"yt-toggle-button",C)}(H=H?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(H)}};
su.prototype.onYtNavigate=function(H){var C=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(H.detail.endpoint);C&&(H.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(C))};
_.JJ.Object.defineProperties(su,{template:{configurable:!0,enumerable:!0,get:function(){if(KgY===void 0){var H=document.createElement("template");_.f(H,"\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");H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);KgY=H}H=KgY;return H}}});
su.prototype.onYtNavigate=su.prototype.onYtNavigate;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],su.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],su.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.OY),_.K("design:type",Object)],su.prototype,"ytdOpenPopupBehavior",void 0);_.D([_.v(Lgn.YtToggleButtonBehavior),_.K("design:type",Object)],su.prototype,"ytToggleButtonBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],su.prototype,"data",void 0);_.D([_.V({value:!0}),_.K("design:type",Boolean)],su.prototype,"showTooltips",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],su.prototype,"systemIcons",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],su.prototype,"roundedContainer",void 0);_.D([_.Gz("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],su.prototype,"onYtNavigate",null);
_.D([_.h({is:"ytd-toggle-button-renderer",disableElementRegistration:g9_})],su);var U71,RFW;_.jD=new _.W4("PANEL_CONTROLLER_TOKEN");_.wz=new _.W4("SHEET_CONTROLLER_TOKEN");_.AT=new _.W4("DIALOG_CONTROLLER_TOKEN");U71=new _.W4("DIALOG_CONTAINER_TOKEN");RFW=new _.W4("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.JT=new _.W4("PERSISTENT_PANEL_CONTROLLER_TOKEN");var Dm0=_.fL("DOWNLOAD",{},"Download"),KcW=_.fL("DOWNLOADING",{},"Downloading"),tXZ=_.fL("DOWNLOADED",{},"Downloaded"),LcU=_.fL("RETRY",{},"Retry");var ISM=_.n(function(H){var C=aPV,S=function(){return""},w=gsE(H.data),A=Umi(H.data),J=RTW(H.data),c=IPE(H.data);
C=function(){var Y=H.data(),M=rqZ(Y,w(),A(),J(),c()),m=!!Y.videoId,W=M.text;return{title:m?W:void 0,tooltip:m?void 0:W,accessibilityText:W,onTap:M.onTap,iconName:M.iconType,style:Y.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:M.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:Y.buttonSize}};
S={};S=_.eJ("ytDownloadButtonViewModelHost",(S.ytDownloadButtonViewModelIsHidden=function(){var Y=H.data(),M=c();return Y.playlistId||M()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||M()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},S));
return _.q("download-button-view-model",{class:S},_.q(_.rc,{data:C}))},"H");
ISM.idomCompat=!0;var Ap7=new _.W4("SUBMIT_API_SERVICE_TOKEN");var sUE,jUZ,JpZ={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};var eFZ=new _.W4("RENDERER_LOGGER_TOKEN");var yp6=new _.W4("RENDERER_STAMPER_OPTIONS_TOKEN");var Fg6;_.lr=new eeV;Fg6=new Map;var NlW="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),E96=["notificationTextRenderer","notificationMultiActionRenderer"],
bIZ="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),WgE=ZIZ(function(H){return _.ps(H==null?void 0:H.targetId)}).useUpdatableData;var m70=0;_.V4.debugName="EjJbCe";var aSW=_.n(function(H){var C=H.data;H=H.className;_.Ph(function(){C().formId||_.nC(Error("Hh"))});
var S=_.SK0(function(){return C().formId},function(){return C().beforeSubmitCommand},function(){return C().afterSubmitCommand}),w=S.submitForm,A=S.isValid,J=S.isSubmitting,c=function(){return{state:C().isDisabled||!A()||J()?"disabled":"active"}};
return _.q("yt-submit-button-view-model",{class:_.eJ("ytSubmitButtonViewModelHost",H)},_.q(_.V4,{data:function(){return C().button}},{buttonViewModel:function(Y){return _.q(_.rc,{data:Y.data,
buttonOverrides:c,onClick:w})}}))},"I");var HkV=_.n(function(H){var C=H.backgroundLottieRef;var S=H.foregroundLottieRef;var w=H.children;var A=H.wrapperClass;var J=H.disableAnimation;H=function(){return(_.E("web_animated_actions")||_.E("web_animated_actions_v2"))&&!(J==null?0:J())};
return _.q("yt-animated-action",{class:_.eJ("ytAnimatedActionHost",A)},_.q("div",{class:"ytAnimatedActionContentWithBackground"},_.q(_.T,{cond:H,then:function(){return _.q(x7P,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:C==null?void 0:C(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(utE()?"dark":"light")+"_v5.json"}}}})}}),w),_.q(_.T,{cond:H,
then:function(){return _.q(x7P,{lottiePlayerProps:function(){return{animationRef:S==null?void 0:S(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(utE()?"dark":"light")+"_v4.json"}}}})}}))},"J");
HkV.idomCompat=!0;var x7P=_.n(function(H){var C=H.wrapperClass;var S=H.lottieClass;var w=H.lottiePlayerProps;return _.q("div",{class:_.eJ("ytAnimatedActionLottie",C),"aria-hidden":"true"},_.q(_.UA,{className:S,data:w,animationName:function(){return w().animationConfig.name}}))},"K");var G07={isOpen:!1};var v9E={isAllowed:!1};var V1Z={errorMessage:"",title:"",privacy:"",isDisabled:!0};var OI7={isOpen:!1};var QUZ={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var ik7={response:void 0};var P2U=function(H,C){H=H===void 0?ik7:H;switch(C.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},H,{response:C.payload});default:return H}};var Cl1={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var $7D=function(H,C){H=H===void 0?Cl1:H;switch(C.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},H,{nextDisabled:C.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},H,{nextCommand:C.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},H,{footerSubmissionData:C.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},H,{isImpersonationValid:C.payload});default:return H}};var SC7={reportFormData:void 0,reportDetailsFormData:void 0};var p$Z=function(H,C){H=H===void 0?SC7:H;switch(C.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},H,{reportFormData:C.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},H,{reportDetailsFormData:C.payload});default:return H}};var sG_=void 0;_.E("mweb_enable_redux_store_on_demand")||(sG_=new wm(k07()));var FQ=_.E("enable_web_delhi_icons");var jG7=_.n(function(H){H=_.FH(H,{themeOverride:void 0,animationRef:{}});var C=H.animatedIconType,S=H.active,w=H.themeOverride,A=H.animationRef;H=H.staticIconFn;var J=_.Z(_.mB(void 0,void 0,"l48agc")),c=J.next().value,Y=J.next().value,M=function(){a:{var d=C();var p=w==null?void 0:w();var k;p=(p==null?void 0:p.useDarkTheme)||((k=_.JA().resolve(_.AA(_.sU)))==null?void 0:k());switch(d){case "LIKE":sG_||(sG_=new wm(k07()));d=(d=Wtu(sG_.getState()))&&d.animationLightUrl&&d.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:p?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:p?d.animationDarkUrl:d.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(d){p=d;break a}p="animated_like_icon_"+(p?"dark":"light")+"_"+(FQ?"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"+
(FQ?" animated-like-icon-delhi":"")}}},totalFrames:FQ?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")+(FQ?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(FQ?" animated-subscribe-icon-delhi":"")}}},totalFrames:FQ?120:79,lazyLoad:!1};break a}p=
void 0}return p},m=function(){var d,p;
return(p=(d=M())==null?void 0:d.lottiePlayerProps.animationConfig.name)!=null?p:""},W=function(){if(M()){var d=M().lottiePlayerProps.animationConfig.path;
return $b.get(d)||c()}};
J=_.Z(_.mB(!1,void 0,"sDrGId"));var y=J.next().value;J=J.next().value;var N=n9$(J),b=function(){var d=M(),p,k,R;return(R=d==null?void 0:(p=d.lottiePlayerProps.animationConfig)==null?void 0:(k=p.rendererSettings)==null?void 0:k.className)!=null?R:""},u=void 0,O=void 0;
_.d6(function(){var d=M(),p=m(),k=W(),R=y(),L=S();if(d&&(O!==p&&(O=p,u=L,p=A(),N.animationConfig=d.lottiePlayerProps.animationConfig,N.animationRef=p,k&&(N.animationConfig.animationData=k,N.animationConfig.path=void 0),p=d.lottiePlayerProps.animationConfig.path,!$b.get(p)&&d.lazyLoad&&p&&hF7(p,Y)),!(R||d.lazyLoad&&!k))){if(k=!A().lottieEl)L?(R=d.totalFrames,N.animationConfig.initialSegment=[R-1,R]):N.animationConfig.initialSegment=void 0;if(u!==L&&!k)if(k=A(),L){var t;(t=k.lottieEl)==null||t.playSegments([0,
d.totalFrames],!0)}else{var g;(g=k.lottieEl)==null||g.playSegments([0,1],!0)}u=L}},"RQVZ1d");
return _.q("animated-icon",{class:"ytAnimatedIconHost"},_.q(_.T,{cond:function(){var d,p;return!((d=M())==null||!d.lottiePlayerProps.animationConfig.path||((p=M())==null?0:p.lazyLoad)&&!W()||y())},
then:function(){return _.q(_.UA,{data:N,animationName:m,className:b,animationRef:A})},
else:H}))},"L");_.Zk=_.n(function(H){var C=_.sW("yt-subscribe-button-view-model"),S=_.sW("div"),w=_.sW("div"),A=_.E5(),J=_.E5(),c=_.E5(),Y=_.fn(T0Z,function(){return H.data().stateEntityStoreKey}),M=_.fn(mmZ,function(){var tV,Td;
return(Td=(tV=H.data().notificationStateEntityStoreKeys)==null?void 0:tV.subsNotificationStateKey)!=null?Td:""}),m=function(){return!H.data().enableSubscribeButtonPostClickAnimation},W=_.Z(_.mB(0,void 0,"YtsSKb")),y=W.next().value,N=W.next().value;
W=_.Z(_.mB(0,void 0,"V6JxRe"));var b=W.next().value,u=W.next().value;W=_.Z(_.mB(!1,void 0,"JUCSZ"));var O=W.next().value,d=W.next().value;W=_.Z(_.mB(!1,void 0,"oV6jwf"));var p=W.next().value,k=W.next().value;W=_.Z(_.mB(!1,void 0,"hK1Whe"));var R=W.next().value,L=W.next().value,t;W=_.Z(_.mB(!1,void 0,"Asaolf"));var g=W.next().value,ii=W.next().value,FW=function(){k(!0);_.dw(_.rT,function(){k(!1)},1500)};
_.d6(function(){var tV=p();TR(function(){tV&&!m()&&Y()&&ISE(A,J,c)})},"Qq6Hsf");
_.d6(function(){var tV=Y();TR(function(){if(!m()&&tV){var Td;((Td=H.animateWidth)==null?0:Td.call(H))&&RFp(C.value,!!tV.subscribed,y(),b());var Mi,fP;((Mi=t)==null?0:Mi.subscribed)||!tV.subscribed||tV.key!==((fP=t)==null?void 0:fP.key)||FW();t=tV}})},"hog8te");
W=_.EF(function(){var tV,Td,Mi,fP=H.data(),eo=!((tV=Y())==null||!tV.subscribed);tV=!((Td=H.isOverlay)==null||!Td.call(H));Td=O()?C:void 0;var Cr=(Mi=M())==null?void 0:Mi.state;Mi=g();U7E(fP,Cr);return D7D({model:fP,subscribed:eo,isOverlay:tV,element:Td,notificationState:Cr,disableTextEllipsis:!0,focused:Mi})},void 0,"hc1PRd");
var cZ=function(){var tV;if(!m()&&((tV=H.animateWidth)==null?0:tV.call(H))&&(S==null?0:S.value)&&(w==null?0:w.value)&&!R()){tV=Y();var Td=_.Z((tV==null?0:tV.subscribed)?[S,w]:[w,S]),Mi=Td.next().value;Td=Td.next().value;Mi=Math.ceil(Mi.value.getBoundingClientRect().width);Td=Math.ceil(Td.value.getBoundingClientRect().width);N(Mi);u(Td);RFp(C.value,!(tV==null||!tV.subscribed),Mi,Td);L(!0)}},eZ=_.um(function(tV){cZ();
var Td=Y();Td&&(tV.detail.endpoint.subscribeEndpoint||tV.detail.endpoint.unsubscribeEndpoint)&&t1Z(C.value,!Td.subscribed,Td)}),ND=function(){var tV=_.JA().resolve(_.AA(_.PS));
tV&&ii(tV.isKeyBoardInUse())},bi=function(){ii(!1)};
_.iy("yt-player-subscribe",function(tV){var Td=Y();Td&&tV===H.data().channelId&&t1Z(C.value,!0,Td)});
_.iy("yt-player-unsubscribe",function(tV){var Td=Y();Td&&tV===H.data().channelId&&t1Z(C.value,!1,Td)});
_.iy("yt-update-subscribe-button-action",function(tV){tV=_.e(tV,hL7);var Td=Y();Td&&tV&&tV.channelId===H.data().channelId&&t1Z(C.value,!!tV.subscribed,Td)});
_.$T(function(){C.value&&(C.value.addEventListener("focusin",ND),C.value.addEventListener("focusout",bi));var tV=_.X2(_.rT,function(){cZ()});
d(!0);_.PN(function(){_.rT.cancelJob(tV);C.value&&(C.value.removeEventListener("focusin",ND),C.value.removeEventListener("focusout",bi))})});
var pU=function(){var tV,Td,Mi;if(Mi=!((tV=Y())==null||!tV.subscribed))tV=!!H.data().disableNotificationBell,Mi=(Td=M())==null?void 0:Td.state,Mi=!tV&&!!Mi;return Mi},O$=function(){var tV;
return!((tV=Y())==null?0:tV.subscribed)},R0=function(){var tV,Td;
if(Td=O$()){Td=!!H.data().disableNotificationBell;var Mi=(tV=M())==null?void 0:tV.state;Td=!Td&&!!Mi}return Td},m1={},c7={};
return _.q("yt-subscribe-button-view-model",{class:_.eJ(H.className,"ytSubscribeButtonViewModelHost",(m1.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var tV,Td;return!((tV=Y())==null||!tV.subscribed)&&((Td=H.animateWidth)==null?void 0:Td.call(H))&&p()},m1.ytSubscribeButtonViewModelHostHidden=function(){var tV;
return!((tV=Y())==null?0:tV.subscribed)&&H.data().hideWhenUnsubscribed},m1)),
el:C,"on:yt-service-request-sent":eZ},_.q(HkV,{backgroundLottieRef:A,foregroundLottieRef:J,wrapperClass:_.eJ("ytSubscribeButtonViewModelAnimatedActionWrapper",(c7.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var tV;return((tV=H.animateWidth)==null?void 0:tV.call(H))&&p()},c7.ytSubscribeButtonViewModelStaticWidth=function(){var tV;
return!((tV=H.animateWidth)==null?0:tV.call(H))},c7)),
disableAnimation:m},_.q("div",{el:S,class:"ytSubscribeButtonViewModelContainer"},_.q(_.nw,{data:W,icon:function(){return _.q(_.T,{cond:pU,then:function(){var tV=function(){var Td;return Kgi((Td=M())==null?void 0:Td.state)};
return _.q(_.T,{cond:function(){return m()||tV()!=="NOTIFICATIONS_NONE"},
then:function(){return _.q(_.lm,{icon:tV})},
else:function(){return _.q(jG7,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:c})}})}})},
secondaryIconName:function(){return pU()?"EXPAND":void 0}}))),_.q("div",{el:w,
class:"ytSubscribeButtonViewModelInvisible"},_.q(_.T,{cond:function(){var tV;return((tV=H.animateWidth)==null?void 0:tV.call(H))&&!m()&&!R()},
then:function(){return _.q(_.nw,{data:_.EF(function(){var tV;return D7D({model:H.data(),subscribed:O$(),isOverlay:!((tV=H.isOverlay)==null||!tV.call(H)),element:C,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var tV;return R0()?Kgi((tV=M())==null?void 0:tV.state):void 0},
secondaryIconName:function(){return R0()?"EXPAND":void 0}})}})))},"M");
_.Zk.idomCompat=!0;var wx7=_.n(function(H){var C=H.data;var S=_.fn(T0Z,function(){return C().subscriptionStateEntityKey});
return _.q(_.T,{cond:function(){var w=C(),A=S();return!w.hideWhenUnsubscribed||(A==null?0:A.subscribed)?_.e(C().button,_.qc):void 0},
then:function(w){return _.q("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.q(_.rc,{data:w,buttonOverrides:function(){return{toggled:!0}}}))}})},"N");
wx7.idomCompat=!0;var AXY,cq;AXY=_.n(function(H){return _.q(_.V4,{data:function(){return H.actionRow().actions}},{buttonViewModel:function(C){var S=C.data;
return _.q(cq,{isRow:H.isRow,isIconOnlyButton:function(){return aSp(S())},
useIntrinsicWidth:H.useIntrinsicWidth},_.q(_.rc,{data:S}))},
subscribeButtonViewModel:function(C){return _.q(cq,{isRow:H.isRow},_.q(_.Zk,{data:C.data,isOverlay:!1,animateWidth:function(){return!H.isRow()}}))},
downloadButtonViewModel:function(C){var S=C.data;return _.q(cq,{isRow:H.isRow,isIconOnlyButton:function(){return!!S().playlistId}},_.q(ISM,{data:S}))},
submitButtonViewModel:function(C){var S=C.data;return _.q(cq,{isRow:H.isRow,isIconOnlyButton:function(){var w=S();return aSp(_.e(w==null?void 0:w.button,_.qc))}},_.q(aSW,{data:S}))},
toggleButtonViewModel:function(C){var S=C.data;return _.q(cq,{isRow:H.isRow,isIconOnlyButton:function(){var w=S();return aSp(_.e(w.isToggled?w.toggledButtonViewModel:w.defaultButtonViewModel,_.qc))}},_.q(_.Jv,{data:S}))},
subscribePlusButtonViewModel:function(C){return _.q(cq,{isRow:H.isRow},_.q(wx7,{data:C.data}))}})},"O");
cq=_.n(function(H){var C={};return _.q("div",{class:_.eJ("ytFlexibleActionsViewModelAction",(C.ytFlexibleActionsViewModelActionRowAction=H.isRow,C.ytFlexibleActionsViewModelActionIntrinsicWidth=H.useIntrinsicWidth,C.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,C.ytFlexibleActionsViewModelActionIconOnlyButton=H.isIconOnlyButton,C))},H.children)},"P");
_.Ym=_.n(function(H){var C=function(){var w;return((w=H.layout)==null?void 0:w.call(H))===1},S={};
return _.q("yt-flexible-actions-view-model",{class:_.eJ("ytFlexibleActionsViewModelHost",H.className,(S.ytFlexibleActionsViewModelInline=function(){return!C()},S.ytFlexibleActionsViewModelScrollable=function(){return H.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},S))},_.q(_.Vq,{each:function(){return H.data().actionsRows||[]}},function(w){return _.q(_.T,{cond:C,
then:function(){return _.q("div",{class:"ytFlexibleActionsViewModelActionRow"},_.q(AXY,{actionRow:w,isRow:C,useIntrinsicWidth:function(){return!!H.data().respectActionIntrinsicWidth}}))},
else:function(){return _.q(AXY,{actionRow:w,isRow:C})}})}))},"Q");_.qs(_.Ym,"yt-flexible-actions-view-model",{props:{data:_.GH,layout:_.GH,justifyContentOverride:_.GH,className:_.GH}});_.zu=_.n(function(H){var C=_.fn(gW,function(){var A;return(A=H.data().dislikeEntityKey)!=null?A:""}),S=_.EF(function(){var A=C();
return A?A.likeStatus==="DISLIKE":_.e(H.data().toggleButtonViewModel,_.mk).isToggled},void 0,"fNr9he"),w=_.EF(function(){return Object.assign({},_.e(H.data().toggleButtonViewModel,_.mk),{isToggled:S()})},void 0,"AezoCc");
return _.q("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.q(_.Jv,{data:w,buttonShapeOverrides:H.buttonShapeOverrideables,onToggle:function(A){var J=C();J&&A!==(J.likeStatus==="DISLIKE")&&J.key&&_.Ax(_.pN("likeStatusEntity",J.key,{likeStatus:A?"DISLIKE":"INDIFFERENT",hadUserInteraction:A}))}}))},"R");
_.zu.idomCompat=!0;_.Mv=_.n(function(H){var C=_.E("web_supports_animations_api"),S=cb(function(N){var b=m();if(!N){var u,O;return{numberText:(O=b==null?void 0:(u=b.likeCountIfIndifferent)==null?void 0:u.content)!=null?O:"",numberValue:Number(b==null?void 0:b.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var d;u=(b==null?void 0:(d=b.likeCountIfIndifferent)==null?void 0:d.content)!==N.numberText;if(Y()||!u)return N;var p;return{numberText:(b==null?void 0:(p=b.likeCountIfIndifferent)==null?void 0:p.content)||
"",numberValue:Number(b==null?void 0:b.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!b}}),w=cb(function(N){var b=m();
if(!N){var u,O;return{numberText:(O=b==null?void 0:(u=b.likeCountIfLiked)==null?void 0:u.content)!=null?O:"",numberValue:Number(b==null?void 0:b.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var d;u=(b==null?void 0:(d=b.likeCountIfIndifferent)==null?void 0:d.content)!==N.numberText;if(Y()||!u)return N;var p;return{numberText:(b==null?void 0:(p=b.likeCountIfLiked)==null?void 0:p.content)||"",numberValue:Number(b==null?void 0:b.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!b}}),A=_.Z(_.mB(void 0,
void 0,"xldjge")),J=A.next().value,c=A.next().value,Y=J,M=_.fn(gW,function(){var N,b;
return(b=(N=H.data())==null?void 0:N.likeStatusEntityKey)!=null?b:""}),m=_.fn(tN7,function(){var N,b;
return((N=H.likeCountEntity)==null?void 0:(b=N.call(H))==null?void 0:b.key)||""}),W=_.EF(function(){var N;
return((N=M())==null?void 0:N.likeStatus)==="LIKE"},void 0,"B3od5e"),y=function(){var N;
return C&&!((N=H.likeCountEntity)==null||!N.call(H))};
return _.q("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.q(_.Jv,{data:function(){var N=Object,b=N.assign,u;var O=_.e((u=H.data())==null?void 0:u.toggleButtonViewModel,_.mk);return b.call(N,{},O||{},{isToggled:W()})},
buttonShapeOverrides:H.buttonShapeOverrideables,animatedTextPropsDefault:function(){return y()?S():void 0},
animatedTextPropsToggled:function(){return y()?w():void 0},
onToggle:function(N){x7U(N,M(),Y(),c)},
style:function(){var N;return((N=H.disableIconAnimation)==null?0:N.call(H))?void 0:{animateIcon:"true"}}}))},"S");
_.Mv.idomCompat=!0;var JX1=_.n(function(H){var C=function(){return _.e(H.data().likeButtonViewModel,_.wH)},S=function(){var A;
return((A=C())==null?void 0:A.likeStatusEntityKey)||""},w=_.EF(function(){var A,J;
var c=(J=_.fn(gW,S)())!=null?J:(A=C())==null?void 0:A.likeStatusEntity;A=H.data();var Y;A=(A==null?void 0:(Y=A.timedAnimationData)==null?void 0:Y.animationTiming)||[];return{uniqueId:"like-dislike",timings:A,enabled:(c==null?void 0:c.likeStatus)==="INDIFFERENT"&&A.length>0,experimentEnabled:A.length>0}},void 0,"zZ3GQb");
return _.q("segmented-like-dislike-button-view-model",{class:_.eJ("ytSegmentedLikeDislikeButtonViewModelHost",H.className),"button-renderer":!0},_.q(D7i,{settings:w},_.q("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.q(_.T,{cond:C,then:function(A){return _.q(_.Mv,{data:A,likeCountEntity:function(){return H.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start",onClickRateLimitMs:_.E("web_enable_like_button_click_debouncing")?500:void 0}})}}),_.q(_.T,{cond:function(){return _.e(H.data().dislikeButtonViewModel,_.jf)},
then:function(A){return _.q(_.zu,{data:A,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"T");
JX1.idomCompat=!0;_.qs(JX1,"segmented-like-dislike-button-view-model",{props:{data:_.GH,className:_.GH}});var FeY=_.n(function(H){var C=H.data;var S=H.className;var w=H.setMinWidth;var A=H.forceIconOnly;var J=_.sW("account-link-button-view-model"),c=_.fn(_.Hk0,function(){var N;return(N=C().accountLinkStatusEntityKey)!=null?N:""}),Y=_.fn(_.Hk0,function(){var N;
return(N=C().accountLinkStatusSecondaryEntityKey)!=null?N:""}),M=function(){if(!_.E("web_account_link_secondary_killswitch")){var N,b;
return((N=c())==null?void 0:N.linked)||((b=Y())==null?void 0:b.linked)}var u;return(u=c())==null?void 0:u.linked};
_.d6(function(){var N=c();if(N){var b=FuW(new Jn1,wa1(new jx1,!!N.linked));_.Np().then(function(u){u&&(u.setAccountLinkState(_.QO(b.JSC$12183_serializeBinary(),4)),u.updateAccountLinkingConfig(!!N.linked))})}},"IvZF7");
var m=function(){return _.e(C().toggleButtonViewModel,_.mk)};
_.iy("yt-signal-action-show-account-link-dialog",function(){if(m()){var N=M()?m().toggledButtonViewModel:m().defaultButtonViewModel;N=_.e(N,_.qc);var b;if((b=c())==null?0:b.isWarning){b=_.e(C().warningButtonViewModel,_.qc);if(!b){_.Ug(Error("Ih"));return}N=b}var u;(b=_.L7((u=N)==null?void 0:u.onTap))&&_.EX([b],J.value)}else _.Ug(Error("Jh"))});
var W=function(){var N=m();return Object.assign({},N,{isToggled:M()})},y=function(){return(A==null?0:A())?{iconPosition:"icon-only"}:{}};
return _.q("account-link-button-view-model",{class:_.eJ("ytwAccountLinkButtonViewModelHost",S,function(){return(w==null?0:w())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:J,"button-renderer":!0},_.q("div",null,_.q(_.T,{cond:function(){var N;if((N=c())==null?0:N.isWarning)return(N=_.e(C().warningButtonViewModel,_.qc))||_.Ug(Error("Ih")),N},
then:function(N){return _.q(_.rc,{data:N,buttonOverrides:y})},
else:function(){return _.q(_.Jv,{data:W,buttonShapeOverrides:y})}})))},"U");_.qs(FeY,"account-link-button-view-model",{props:{data:_.GH,className:_.Yb,setMinWidth:_.Yb,forceIconOnly:_.Yb}});_.hg("menuRenderer","menuRenderer","ytd-menu-renderer");
var Zkd={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"}},
cXV=_.E("web_fix_missing_action_buttons")?100:200,qv=function(){var H=_.X.apply(this,arguments)||this;H.safeArea=!_.E("kevlar_flex_menu_safe_area_killswitch");H.tonalOverride=!1;H.threeDotSize="M";H.isOverlay=!1;H.useOverlayDark=!1;H.topLevelIconsOnly=!1;H.JSC$14659_lastWidth=0;H.maybeUpdateFlexibleMenu=function(){_.E("web_fix_missing_action_buttons")?requestAnimationFrame(H.maybeUpdateFlexibleMenuImpl):H.maybeUpdateFlexibleMenuImpl()};
H.maybeUpdateFlexibleMenuImpl=function(){var C;if((C=H.data)!=null&&C.flexibleItems){H.maybeFlushDebouncer();C=H.hostElement.clientWidth;var S=C>H.JSC$14659_lastWidth,w,A=((w=H.topLevelButtonsContainer)==null?void 0:w.scrollHeight)||0,J;w=((J=H.flexibleItemButtonsContainer)==null?void 0:J.scrollHeight)||0;J=H.hostElement.scrollHeight>Math.max(A,w)+8;S?(H.resetFlexibleItems(),H.JSC$14659_lastWidth=H.hostElement.clientWidth,H.maybeUpdateFlexibleMenu()):J&&(H.shrinkFlexibleMenu(),H.JSC$14659_lastWidth=
C)}};
H.computeThreeDotButtonShape=function(){if(H.tonalOverride)return Object.assign({},{onTap:function(){H.onOverflowTap()},
iconPosition:"icon-only",style:H.isOverlay?H.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:H.threeDotSize,state:"active",accessibilityLabel:H.computeAccessibilityLabel(H.data)},H.threeDotButtonOverride)};
H.onOverflowTap=function(){if(H.data.fetchMenuCommand)_.JA().resolve(_.ZQ).resolveCommand(H.data.fetchMenuCommand,{form:{element:H.hostElement}});else if(H.data.isDisabled&&H.data.disabledCommand)_.uJ(H.data.disabledCommand,H.hostElement);else{var C=H.createMenuRendererVe(),S={items:H.items};H.data.menuPopupAccessibility&&(S.menuPopupAccessibility=H.data.menuPopupAccessibility);H.data.footer&&(S.footer=H.data.footer);C={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:S},veData:C}};
_.JA().resolve(_.wz).openSheet({openPopupActionCommand:C},H.hostElement)}};
return H};
_.G(qv,_.X);_.F=qv.prototype;_.F.updateButtonOverrides=function(){if(!_.E("menu_renderer_label_update_upkillswitch")){var H=_.mY(this.hostElement).querySelector("yt-button-view-model");H&&(H.buttonOverrides=this.buttonOverrides)}};
_.F.computeHasItems=function(){var H;return((H=this.topLevelButtonData)==null?void 0:H.length)||this.hasFlexibleItems};
_.F.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.F.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.Ed(this.hostElement,{"--ytd-menu-renderer-button-color":_.Iw(this.data.iconColor)}))};
_.F.onStamperFinished=function(){this.JSC$14659_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.F.setupFlexibleMenu=function(){var H=this,C;(C=this.data)!=null&&C.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.I$(this.maybeUpdateFlexibleMenu,cXV,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){H.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))};
_.F.maybeFlushDebouncer=function(){if(_.E("web_replace_formatted_with_attributed_string")){var H;(H=this.topLevelButtons)==null||H.forEach(function(S){var w;(S=(w=S.getElementsByTagName("yt-attributed-string"))==null?void 0:w[0])&&cji(S)});
var C;(C=this.flexibleItemButtons)==null||C.forEach(function(S){var w;(S=(w=S.getElementsByTagName("yt-attributed-string"))==null?void 0:w[0])&&cji(S)})}};
_.F.resetFlexibleItems=function(){var H;if((H=this.data)!=null&&H.flexibleItems){_.E("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var C;this.flexAsTopLevelButtons=(C=this.data.flexibleItems)==null?void 0:C.map(function(S){return _.e(S,_.h$1).topLevelButton});
_.E("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.F.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.F.shrinkFlexibleMenu=function(){var H;(H=this.flexAsTopLevelButtons)!=null&&H.length&&(this.flexAsTopLevelButtons=[].concat(_.k$(this.flexAsTopLevelButtons.slice(0,-1))))};
_.F.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:Zkd,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:Zkd,events:!0}}};
_.F.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.F.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.F.detached=function(){this.icon="MORE_VERT"};
_.F.computeTopLevelButtonData=function(H){if(!H)return[];var C;H=(C=H==null?void 0:H.topLevelButtons)!=null?C:[];return _.hb.unsafeClone([].concat(_.k$(H)))};
_.F.computeItems=function(H,C){if(!H)return[];var S=[];if(C){var w=(H.flexibleItems||[]).map(function(c){return _.e(c,_.h$1)});
w=_.Z(w);for(var A=w.next();!A.done;A=w.next())A=A.value,C.includes(A.topLevelButton)||(A=A.menuItem)&&S.push(A)}var J;H=(J=H==null?void 0:H.items)!=null?J:[];return[].concat(_.k$(S),_.k$(H))};
_.F.computeMenuActive=function(H,C){return H||C};
_.F.onPopupOpened=function(){this.overlayOpen=!0;_.M3(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.F.onPopupClosed=function(){this.overlayOpen=!1;_.M3(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.F.onPopupCanceled=function(){this.overlayOpen=!1;_.M3(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.F.computeAccessibilityLabel=function(H){return this.get("accessibility.accessibilityData.label",H)};
_.F.isHidden=function(H,C){return this.tonalOverride||!H?!0:H.fetchMenuCommand||H.isDisabled&&H.disabledCommand?!1:!(C==null?0:C.length)};
_.F.isModernOverflowHidden=function(H,C){return this.tonalOverride&&H?H.fetchMenuCommand?!1:!(C==null?0:C.length):!0};
_.F.createMenuRendererVe=function(){var H=this.data.trackingParams,C=_.Dg(),S=_.BM();return H&&C&&S?(H=_.Qh(H),S=_.y4(7591),_.E("combine_ve_grafts")?_.hd(_.lJ(),S,H):_.ak(C,H,S),S):null};
_.JJ.Object.defineProperties(qv.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.flexAsTopLevelButtons)==null||!H.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
qv.prototype.onPopupCanceled=qv.prototype.onPopupCanceled;qv.prototype.onPopupClosed=qv.prototype.onPopupClosed;qv.prototype.onPopupOpened=qv.prototype.onPopupOpened;qv.prototype.tonalOverrideChanged=qv.prototype.tonalOverrideChanged;qv.prototype.resetFlexibleItems=qv.prototype.resetFlexibleItems;qv.prototype.setupFlexibleMenu=qv.prototype.setupFlexibleMenu;qv.prototype.iconButtonColorChanged=qv.prototype.iconButtonColorChanged;qv.prototype.updateButtonOverrides=qv.prototype.updateButtonOverrides;
_.D([_.v(_.OY),_.K("design:type",Object)],qv.prototype,"ytdOpenPopupBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],qv.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],qv.prototype,"ytRendererstamperBehavior",void 0);_.D([_.lA("#button-shape"),_.K("design:type",HTMLElement)],qv.prototype,"buttonShape",void 0);_.D([_.lA("#button"),_.K("design:type",Object)],qv.prototype,"button",void 0);
_.D([_.V(),_.K("design:type",Object)],qv.prototype,"data",void 0);_.D([_.V({computed:"computeTopLevelButtonData(data)"}),_.K("design:type",Array)],qv.prototype,"topLevelButtonData",void 0);_.D([_.V(),_.K("design:type",Array)],qv.prototype,"flexAsTopLevelButtons",void 0);_.D([_.V({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.K("design:type",Array)],qv.prototype,"items",void 0);_.D([_.V({value:"MORE_VERT"}),_.K("design:type",String)],qv.prototype,"icon",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],qv.prototype,"safeArea",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.K("design:type",Boolean)],qv.prototype,"menuActive",void 0);_.D([_.V(),_.K("design:type",Boolean)],qv.prototype,"menuFocused",void 0);_.D([_.V({value:"bottom"}),_.K("design:type",String)],qv.prototype,"buttonTooltipPosition",void 0);_.D([_.V(),_.K("design:type",Boolean)],qv.prototype,"overlayOpen",void 0);
_.D([_.V({value:!0}),_.K("design:type",Boolean)],qv.prototype,"forceIconButton",void 0);_.D([_.V(),_.K("design:type",Boolean)],qv.prototype,"styleActionButton",void 0);_.D([_.V(),_.K("design:type",Boolean)],qv.prototype,"disableTextTransformOnButtons",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],qv.prototype,"tonalOverride",void 0);_.D([_.V(),_.K("design:type",Object)],qv.prototype,"threeDotSize",void 0);
_.D([_.V(),_.K("design:type",Object)],qv.prototype,"threeDotButtonOverride",void 0);_.D([_.V(),_.K("design:type",Object)],qv.prototype,"isOverlay",void 0);_.D([_.V(),_.K("design:type",Object)],qv.prototype,"useOverlayDark",void 0);_.D([_.V({computed:"computeButtonOverride(tonalOverride)"}),_.K("design:type",Object)],qv.prototype,"buttonOverride",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],qv.prototype,"hasCustomIconColor",void 0);
_.D([_.V({reflectToAttribute:!0}),_.l("flexAsTopLevelButtons"),_.K("design:type",Object),_.K("design:paramtypes",[])],qv.prototype,"hasFlexibleItems",null);_.D([_.V({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.K("design:type",Boolean)],qv.prototype,"hasItems",void 0);_.D([_.V(),_.K("design:type",Object)],qv.prototype,"topLevelIconsOnly",void 0);
_.D([_.fx("topLevelIconsOnly"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qv.prototype,"updateButtonOverrides",null);_.D([_.l("topLevelIconsOnly"),_.K("design:type",Object),_.K("design:paramtypes",[])],qv.prototype,"buttonOverrides",null);_.D([_.lA("#top-level-buttons-computed"),_.K("design:type",HTMLElement)],qv.prototype,"topLevelButtonsContainer",void 0);_.D([_.VQ(".top-level-buttons > *"),_.K("design:type",Array)],qv.prototype,"topLevelButtons",void 0);
_.D([_.lA("#flexible-item-buttons"),_.K("design:type",HTMLElement)],qv.prototype,"flexibleItemButtonsContainer",void 0);_.D([_.VQ("#flexible-item-buttons > *"),_.K("design:type",Array)],qv.prototype,"flexibleItemButtons",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qv.prototype,"iconButtonColorChanged",null);
_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qv.prototype,"setupFlexibleMenu",null);_.D([_.XJ("topLevelIconsOnly"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qv.prototype,"resetFlexibleItems",null);_.D([_.fx("tonalOverride"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qv.prototype,"tonalOverrideChanged",null);
_.D([_.Gz("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qv.prototype,"onPopupOpened",null);_.D([_.Gz("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qv.prototype,"onPopupClosed",null);_.D([_.Gz("yt-popup-canceled"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qv.prototype,"onPopupCanceled",null);
_.B(qv,"ytd-menu-renderer",function(){if(V17===void 0){var H=document.createElement("template");_.f(H,'\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>');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);V17=H}H=V17;return H},{mode:2});var YCn;var z4n;_.Tu=_.n(function(H){var C=H.data;var S=function(){if(C().icon)a:{var A={iconName:C().icon};for(var J=_.JA().resolve(_.E4),c=_.Z([12,24]),Y=c.next();!Y.done;Y=c.next()){var M=Y.value;Y=Object.assign({},A,{iconStyle:"youtube_fill",iconSize:M});M=Object.assign({},A,{iconStyle:"youtube_outline",iconSize:M});if(J.resolveIcon(Y)){A=Y;break a}if(J.resolveIcon(M)){A=M;break a}}A=void 0}else A=void 0;return A};
H={};var w={};return _.q("badge-shape",{class:_.eJ("yt-badge-shape",function(){return wxZ(C().type)},(H["yt-badge-shape--overlay"]=function(){return C().isOverlay},H["yt-badge-shape--ads-include-dot"]=function(){return C().adsIncludeDot},H["yt-badge-shape--thumbnail-badge"]=function(){a:switch(C().type){case 17:case 18:case 19:var A=!0;
break a;default:A=!1}return A},H["yt-badge-shape--status-badge"]=function(){a:switch(C().type){case 12:case 13:case 14:case 15:case 16:var A=!0;
break a;default:A=!1}return A},H["yt-badge-shape--no-text"]=function(){return!C().text},H["yt-badge-shape--modern"]=function(){return C().modern||_.E("web_modern_badge_shape")},H)),
style:_.vb({"background-color":function(){var A;return(A=C().customColors)==null?void 0:A.backgroundColor}}),
role:function(){return C().accessibilityText?"img":void 0},
"aria-label":function(){return C().accessibilityText}},_.q(_.T,{cond:function(){return C().animation},
then:function(A){return _.q(_.UA,{className:"yt-badge-shape__icon",data:A,animationName:function(){return A().animationConfig.name||""}})}}),_.q(_.T,{cond:function(){var A;
return S()&&!((A=C())==null?0:A.animation)},
then:function(){return _.q("div",{class:"yt-badge-shape__icon"},_.q(ow7,{data:function(){return S()}}))}}),_.q("div",{class:_.eJ("yt-badge-shape__text",(w["yt-badge-shape__text--has-multiple-badges-in-row"]=function(){return(C().numBadgesInRow||0)>1},w))},function(){var A;
return(A=C())==null?void 0:A.text}))},"V");
_.Tu.idomCompat=!0;_.qs(_.Tu,"badge-shape",{props:{data:_.GH}});var m$=function(){var H=_.X.apply(this,arguments)||this;H.systemIcons=_.E("kevlar_system_icons");H.animated=_.E("animated_live_badge_icon");H.useBadgeShape=_.E("web_badge_shape_defrag");return H};
_.G(m$,_.X);_.F=m$.prototype;_.F.addTooltips=function(){for(var H=_.mY(this.hostElement).querySelectorAll(".badge"),C=0,S;S=H[C++];){var w=this.repeatElement.itemForElement(S);S=_.mY(S);S.lastChild&&S.lastChild.is==="tp-yt-paper-tooltip"&&S.removeChild(S.lastChild);if(w=w.metadataBadgeRenderer&&w.metadataBadgeRenderer.tooltip){var A=_.OA("tp-yt-paper-tooltip");(0,_.bA)(A).textContent=w;A.setAttribute("position","top");A.setAttribute("aria-hidden","true");S.appendChild(A)}}};
_.F.badgesChanged=function(){var H=this;_.mN().parkOrScheduleJob(function(){H.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.F.standaloneRoundedBadgeChanged=function(){var H=this.useRoundedBadge?this.useRoundedBadge:void 0;H&&(this.useRoundedBadge=H)};
_.F.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.F.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.F.computeStyle=function(H){_.E("enable_html5_teal_ad_badge")&&H==="BADGE_STYLE_TYPE_AD"&&(H="badge-style-type-ad-alternate");_.E("kevlar_ytb_live_badges")&&H==="BADGE_STYLE_TYPE_LIVE_NOW"&&(H="badge-style-type-live-now-alternate");return H?H.toLowerCase().replace(/_/g,"-"):""};
_.F.computeRole=function(H){return this.computeAriaLabel(H)?"img":"status"};
_.F.computeAriaLabel=function(H){var C;return(H==null?void 0:(C=H.accessibilityData)==null?void 0:C.label)||(H==null?void 0:H.label)};
_.F.computeBadgeShape=function(H){if(H){var C,S;var w=sGV(H.style);var A=jGZ(H.style),J=H.label,c=((C=H.accessibilityData)==null?void 0:C.label)||H.label;a:switch(H.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":C=!0;break a;default:C=!1}var Y=(S=H.icon)==null?void 0:S.iconType;a:switch(H.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":H=!0;break a;default:H=!1}w={type:w,brNzRatingBadgeType:A,text:J,accessibilityText:c,
isOverlay:C,icon:Y!=="PREMIUM"?Y:void 0,modern:_.E("web_modern_badge_view_model"),numBadgesInRow:this.numBadgesInRow,adsIncludeDot:H}}else w={};return w};
_.F.updateComputedBadges=function(H,C,S){var w=this;(C=C?[C]:S?[S]:void 0)?this.computedBadges=C:this.computedBadges=H==null?void 0:H.filter(function(A){var J;if((J=A.metadataBadgeRenderer)==null?0:J.groups){J=!1;A=_.Z(A.metadataBadgeRenderer.groups);for(var c=A.next();!c.done;c=A.next()){c=c.value;var Y=void 0;J=J||((Y=w.hiddenBadgeGroups)==null?void 0:Y.includes(c))}return!J}return!0})};
_.F.useFilledIcons=function(H){return _.E("kevlar_system_icons")&&(H==="AUDIO_BADGE"||H==="CHECK_CIRCLE_THICK"||H==="OFFICIAL_ARTIST_BADGE"||H==="SPONSORSHIP_STAR"||H==="PERSON_RADAR_FILLED"||H==="PERSON_RADAR")};
_.F.computeBadgeShapeStyle=function(H){return this.useBadgeShape?H==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||H==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":"":""};
_.F.computeIcon=function(H){var C,S;H=H==null?void 0:(C=H.metadataBadgeRenderer)==null?void 0:(S=C.icon)==null?void 0:S.iconType;if(H!=="PREMIUM"&&H)return _.bJ(H)};
_.F.computeStandaloneBadge=function(H){var C;H=H==null?void 0:(C=H.icon)==null?void 0:C.iconType;return H==="PREMIUM_STANDALONE"||H==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
m$.prototype.hiddenBadgeGroupsChanged=m$.prototype.hiddenBadgeGroupsChanged;m$.prototype.standaloneBadgeChanged=m$.prototype.standaloneBadgeChanged;m$.prototype.standaloneRoundedBadgeChanged=m$.prototype.standaloneRoundedBadgeChanged;m$.prototype.badgesChanged=m$.prototype.badgesChanged;_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],m$.prototype,"hidden",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],m$.prototype,"componentBehavior",void 0);
_.D([_.V(),_.K("design:type",Array)],m$.prototype,"badges",void 0);_.D([_.V(),_.K("design:type",Object)],m$.prototype,"topStandaloneBadge",void 0);_.D([_.V(),_.K("design:type",Object)],m$.prototype,"bottomStandaloneBadge",void 0);_.D([_.V(),_.K("design:type",Object)],m$.prototype,"computedBadges",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],m$.prototype,"mediumFontAdBadge",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],m$.prototype,"useRoundedBadge",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],m$.prototype,"largeFontAdBadge",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],m$.prototype,"overlayAd",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],m$.prototype,"overlayPremium",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],m$.prototype,"noDotAdBadge",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],m$.prototype,"collectionTruncate",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],m$.prototype,"isThumbnailBadge",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],m$.prototype,"wrapBadges",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Number)],m$.prototype,"numBadgesInRow",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],m$.prototype,"systemIcons",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],m$.prototype,"animated",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],m$.prototype,"useBadgeShape",void 0);_.D([_.V({value:[]}),_.K("design:type",Array)],m$.prototype,"hiddenBadgeGroups",void 0);_.D([_.lA("#repeat"),_.K("design:type",nx)],m$.prototype,"repeatElement",void 0);_.D([_.XJ("badges"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],m$.prototype,"badgesChanged",null);
_.D([_.XJ("useRoundedBadge"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],m$.prototype,"standaloneRoundedBadgeChanged",null);_.D([_.XJ("topStandaloneBadge","bottomStandaloneBadge"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],m$.prototype,"standaloneBadgeChanged",null);_.D([_.XJ("hiddenBadgeGroups"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],m$.prototype,"hiddenBadgeGroupsChanged",null);
_.D([_.h({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],m$);
var MqW=_.Tp()(m$,"ytd-badge-supported-renderer",function(){if(z4n===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);z4n=H}H=z4n;return H},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.mn("kevlar_poly_si_batch_j053")?1:2});var Wq=function(){var H=_.X.apply(this,arguments)||this;H.iconType="STAR";H.standardizeIconSize=_.E("kevlar_system_icons");H.mediaHoverOverlayInitialVisibility=_.E("enable_top_landscape_image_button_command_web");H.noBottomMargin=!1;H.thumbnailObjectFit="CONTAIN";H.thumbnailFitHeight=!0;H.actionMap={"yt-mute-ad-action":"handleMuteAd"};return H};
_.G(Wq,_.X);_.F=Wq.prototype;
_.F.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"}}}};
_.F.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",Wq.JSC$14671_DEFAULT_CLICK_LOCATION_BEHAVIOR,Wq.JSC$14671_CLICK_LOCATION_ID_MAP))};
_.F.onTap=function(H){if(!_.E("use_on_click_for_desktop_display_ad"))this.onTapOrClick(H)};
_.F.onClick=function(H){if(_.E("use_on_click_for_desktop_display_ad"))this.onTapOrClick(H)};
_.F.onTapOrClick=function(H){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,H,!1)};
_.F.updateMediaBackgroundImage=function(){var H=this.get("data.image.thumbnail.thumbnails");H&&(H=_.TG(H,0))&&_.Ed(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+H+")"})};
_.F.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var H=0;H<this.data.impressionEndpoints.length;H++){var C=this.data.impressionEndpoints[H];C.clickTrackingParams&&delete C.clickTrackingParams;_.JA().resolve(_.ZQ).resolveCommand(C,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var S;((S=this.data)==null?0:S.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.F.handleMuteAd=function(){};
_.F.attached=function(){var H=this;_.E("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&H.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.F.detached=function(){_.E("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.JJ.Object.defineProperties(Wq.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.data)==null||!H.titleText)return"";var C;return _.fL("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((C=this.data)==null?void 0:C.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?0:H.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?0:H.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?0:H.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?0:H.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?0:H.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 H;return!((H=this.data)==null||!H.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"}}});
Wq.prototype.onClick=Wq.prototype.onClick;Wq.prototype.onTap=Wq.prototype.onTap;Wq.prototype.dataChanged=Wq.prototype.dataChanged;
Wq.JSC$14671_CLICK_LOCATION_ID_MAP=_.E("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"]]);
Wq.JSC$14671_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.E("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"}];_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Wq.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Wq.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.v(_.m4),_.K("design:type",Object)],Wq.prototype,"ytdDismissibleItemBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],Wq.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.P_.YtSparklesClickLocationBehavior),_.K("design:type",Object)],Wq.prototype,"ytSparklesClickLocationBehavior",void 0);_.D([_.v(M$),_.K("design:type",Object)],Wq.prototype,"ytdActiveViewBehavior",void 0);_.D([_.v([_.Lw.YtActionHandlerBehavior]),_.K("design:type",Object)],Wq.prototype,"actionHandlerBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],Wq.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],Wq.prototype,"clickCommand",void 0);_.D([_.V({reflectToAttribute:!0,selector:_.rB}),_.K("design:type",Boolean)],Wq.prototype,"miniMode",void 0);_.D([_.V(),_.K("design:type",String)],Wq.prototype,"iconType",void 0);_.D([_.l("data.titleText"),_.K("design:type",String),_.K("design:paramtypes",[])],Wq.prototype,"titleAriaLabel",null);
_.D([_.l("data.rating"),_.K("design:type",Object),_.K("design:paramtypes",[])],Wq.prototype,"getRating",null);_.D([_.l("data.price"),_.K("design:type",Object),_.K("design:paramtypes",[])],Wq.prototype,"getPrice",null);_.D([_.l("data.thirdLine"),_.K("design:type",Object),_.K("design:paramtypes",[])],Wq.prototype,"getThirdLine",null);_.D([_.l("data.fourthLine"),_.K("design:type",Object),_.K("design:paramtypes",[])],Wq.prototype,"getFourthLine",null);
_.D([_.l("data.fifthLine"),_.K("design:type",Object),_.K("design:paramtypes",[])],Wq.prototype,"getFifthLine",null);_.D([_.l("getRating"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Wq.prototype,"computeRatingHidden",null);_.D([_.l("getPrice"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Wq.prototype,"computePriceHidden",null);_.D([_.l("getThirdLine"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Wq.prototype,"computeThirdLineHidden",null);
_.D([_.l("getFourthLine"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Wq.prototype,"computeFourthLineHidden",null);_.D([_.l("getFifthLine"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Wq.prototype,"computeFifthLineHidden",null);_.D([_.V({reflectToAttribute:!0}),_.l("data.energyIcon"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Wq.prototype,"hasEnergyIcon",null);
_.D([_.l("computePriceHidden","computeRatingHidden"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Wq.prototype,"computeSecondaryTextHidden",null);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Wq.prototype,"standardizeIconSize",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Wq.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Wq.prototype,"noBottomMargin",void 0);
_.D([_.V({reflectToAttribute:!0}),_.l("data.layout"),_.K("design:type",String),_.K("design:paramtypes",[])],Wq.prototype,"layout",null);_.D([_.l("data.layout"),_.K("design:type",Object),_.K("design:paramtypes",[])],Wq.prototype,"mediaThumbnailWidth",null);_.D([_.l("layout"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Wq.prototype,"useRoundedBadge",null);_.D([_.V(),_.K("design:type",String)],Wq.prototype,"thumbnailObjectFit",void 0);
_.D([_.V(),_.K("design:type",Object)],Wq.prototype,"thumbnailFitHeight",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Wq.prototype,"dataChanged",null);_.D([_.Gz("tap"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Wq.prototype,"onTap",null);_.D([_.Gz("click"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Wq.prototype,"onClick",null);
_.D([_.h({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],Wq);
_.B(Wq,"ytd-display-ad-renderer",function(){if(YCn!==void 0)return YCn;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return YCn=H},{mode:1});var qCU;var TId;var m8P;var AXi=new Map;var We1=!1;var yG=function(){var H=_.X.apply(this,arguments)||this;H.DEFAULT_TOOLTIP_OFFSET="10";H.TOOLTIP_OFFSET_NO_BANNER="-8";H.badges=null;H.noEndpoints=!1;H.wrapText=!1;H.forceVerified=!1;H.tooltipPosition="top";H.compactStyle=!1;H.height=0;H.lineHeight=0;return H};
_.G(yG,_.X);_.F=yG.prototype;_.F.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.F.attached=function(){var H=this;this.observer=new MutationObserver(function(C,S){H.handleResized();S.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.F.detached=function(){this.observer&&this.observer.disconnect()};
_.F.logTooltipEvent=function(){_.E("kevlar_wiz_tooltip_event_killswitch")||We1||(_.JXE("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),We1=!0)};
_.F.handleWindowResized=function(){this.handleResized()};
_.F.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")))};
_.F.onHeightChanged=function(){if(this.verified){var H=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.rh("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=H:this.textContainerEl.style.marginRight=H}};
_.F.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.rh("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.F.handleResized=function(){var H=this;this.verified&&_.rT.addLowPriorityJob(function(){H.fitBackgroundToText();var C=getComputedStyle(H.hostElement).lineHeight;C&&(C=C.match(/\d+/))&&C.length&&(H.lineHeight=Number(C[0]));H.height=H.lineHeight&&!H.wrapText?H.lineHeight:H.textEl.offsetHeight})};
_.F.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var H=document.createRange(),C=_.mY(this.textEl).children;C.length>0?H.selectNodeContents(C[0]):H.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(H.getBoundingClientRect().width)+"px"}};
_.F.computeChannelBadgeStyle=function(H){var C;if((H==null?0:(C=H.runs)==null?0:C.length)&&H.runs[0].textColor)return"--ytd-badge-icon-color:"+_.Iw(H.runs[0].textColor)+";"};
_.JJ.Object.defineProperties(yG.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"?_.sx(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var H=this.get("badges.0.metadataBadgeRenderer.tooltip");if(H)return H}return _.jt(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
yG.prototype.onLineHeightChanged=yG.prototype.onLineHeightChanged;yG.prototype.onHeightChanged=yG.prototype.onHeightChanged;yG.prototype.onChannelNameChanged=yG.prototype.onChannelNameChanged;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],yG.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],yG.prototype,"badges",void 0);_.D([_.V(),_.K("design:type",Object)],yG.prototype,"channelName",void 0);
_.D([_.V(),_.K("design:type",Object)],yG.prototype,"noEndpoints",void 0);_.D([_.V(),_.K("design:type",Object)],yG.prototype,"wrapText",void 0);_.D([_.V(),_.K("design:type",Object)],yG.prototype,"forceVerified",void 0);_.D([_.V(),_.K("design:type",Object)],yG.prototype,"tooltipPosition",void 0);_.D([_.V(),_.K("design:type",String)],yG.prototype,"tooltip",void 0);_.D([_.V(),_.K("design:type",Boolean)],yG.prototype,"hasChannelArt",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],yG.prototype,"compactStyle",void 0);_.D([_.lA("#text-container"),_.K("design:type",HTMLElement)],yG.prototype,"textContainerEl",void 0);_.D([_.lA("#text"),_.K("design:type",Object)],yG.prototype,"textEl",void 0);_.D([_.lA("#verified-tooltip"),_.K("design:type",HTMLElement)],yG.prototype,"verifiedTooltip",void 0);_.D([_.V(),_.K("design:type",Object)],yG.prototype,"height",void 0);
_.D([_.V(),_.K("design:type",Object)],yG.prototype,"lineHeight",void 0);_.D([_.V({reflectToAttribute:!0}),_.l("badges","forceVerified"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],yG.prototype,"verified",null);_.D([_.l("badges","verified"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],yG.prototype,"hideBadges",null);_.D([_.l("channelName"),_.K("design:type",Object),_.K("design:paramtypes",[])],yG.prototype,"formattedName",null);
_.D([_.l("badges","verified","formattedName"),_.K("design:type",String),_.K("design:paramtypes",[])],yG.prototype,"tooltipText",null);_.D([_.l("hasChannelArt"),_.K("design:type",String),_.K("design:paramtypes",[])],yG.prototype,"tooltipOffset",null);_.D([_.fx("channelName"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],yG.prototype,"onChannelNameChanged",null);
_.D([_.fx("height"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],yG.prototype,"onHeightChanged",null);_.D([_.fx("lineHeight","height"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],yG.prototype,"onLineHeightChanged",null);_.D([_.h({is:"ytd-channel-name",disableElementRegistration:!0})],yG);
_.B(yG,"ytd-channel-name",function(){if(m8P!==void 0)return m8P;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return m8P=H},{mode:_.mn("kevlar_poly_si_batch_j036")?1:2});var Nv=function(){var H=_.X.apply(this,arguments)||this;H.standardizeIconSize=_.E("kevlar_system_icons");return H};
_.G(Nv,_.X);Nv.prototype.basicPaletteChanged=function(){var H;(H=this.data.color)!=null&&H.basicColorPaletteData&&_.pu(this.hostElement,this.data.color.basicColorPaletteData)};
Nv.prototype.useFilledIcons=function(H){return _.E("kevlar_system_icons")&&(H==="CHECK_CIRCLE_THICK"||H==="OFFICIAL_ARTIST_BADGE")};
_.JJ.Object.defineProperties(Nv.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var H,C,S;return this.data.authorCreator||((H=this.data)==null?void 0:(C=H.color)==null?void 0:(S=C.basicColorPaletteData)==null?void 0:S.backgroundColor)}}});
Nv.prototype.basicPaletteChanged=Nv.prototype.basicPaletteChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Nv.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Nv.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],Nv.prototype,"standardizeIconSize",void 0);_.D([_.V({reflectToAttribute:!0}),_.l("data.authorUnifiedVerified"),_.K("design:type",Object),_.K("design:paramtypes",[])],Nv.prototype,"verified",null);
_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Nv.prototype,"creator",null);_.D([_.fx("data.color.basicColorPaletteData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Nv.prototype,"basicPaletteChanged",null);_.D([_.h({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],Nv);
_.B(Nv,"ytd-author-comment-badge-renderer",function(){if(TId!==void 0)return TId;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return TId=H},{mode:1});var yXW;var bq=function(){return _.X.apply(this,arguments)||this};
_.G(bq,_.X);bq.prototype.computeThumbnailWidth=function(H){if(H==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],bq.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],bq.prototype,"data",void 0);_.D([_.V({computed:"computeIcon_(data.icon)"}),_.K("design:type",String)],bq.prototype,"icon",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",String)],bq.prototype,"surface",void 0);
_.D([_.V({reflectToAttribute:!0,value:_.E("enable_shrink_image_size_on_web_posts_singleton")}),_.K("design:type",Boolean)],bq.prototype,"searchSxsUx",void 0);_.D([_.V({reflectToAttribute:!0,value:_.E("enable_community_page_on_desktop")}),_.K("design:type",Boolean)],bq.prototype,"useSmallerPostImageAttachments",void 0);_.D([_.h({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],bq);
_.B(bq,"ytd-backstage-image-renderer",function(){if(yXW!==void 0)return yXW;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return yXW=H},{mode:1});var NIb;var Eu=function(){var H=_.X.apply(this,arguments)||this;H.isLoading=!1;H.selectedItemIndex=-1;return H};
_.G(Eu,_.X);_.F=Eu.prototype;_.F.computeIsChannelOwner=function(H){if(!H)return!0;H=H[0];return!(H&&(H.signinEndpoint||H.selectServiceEndpoint))};
_.F.computeIsImagePoll=function(H){return(H==null?void 0:H.type)==="POLL_TYPE_IMAGE"};
_.F.computeIsTotalVotesDisabled=function(H){return!(H==null?0:H.totalVotes)};
_.F.thumbnailSrc=function(H){var C,S,w,A;return(H==null?0:(C=H.thumbnails)==null?0:(S=C[0])==null?0:S.url)?_.D4((w=H.thumbnails)==null?void 0:(A=w[0])==null?void 0:A.url):void 0};
_.F.progressWidth=function(H){return"width:"+(H?H*100:0)+"%;"};
_.F.textAreaWidth=function(H){return this.isImagePoll?null:"width:"+(H?H*100:0)+"%;"};
_.F.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.F.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var H=this.data.choices,C=0;C<H.length;C++)if(H[C].selected){this.selectedItemIndex=C;break}};
_.F.onPopupClosed=function(H,C){H=Number(this.pollVotes.selected);C.confirmed&&(this.selectChoice(H,!1),_.q3(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.F.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.F.onYtCommentPollRevert=function(H,C){C&&(this.selectChoice(C.selectedChoiceIndex,!0),this.set("data.totalVotes",C.totalVotes))};
_.F.onYtServiceRequestSent=function(H,C){if(C.actions)for(H=0;H<C.actions.length;H++){var S=C.actions[H];_.e(S,gZ)&&this.set("data.totalVotes",_.e(S,gZ).totalVotes)}};
_.F.onYtServiceRequestCompleted=function(H){var C=this.get("detail.data.actionResults.0.feedback",H);H=this.get("detail.data.actionResults.0.status",H);if(C==="FEEDBACK_DESELECT"||C==="FEEDBACK_SELECT")this.isLoading=!1,H==="STATUS_FAILED"?_.M3(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.F.getEndpoint=function(H,C){return C===H?this.data.choices[C].deselectServiceEndpoint||null:this.data.choices[H].selectServiceEndpoint||null};
_.F.selectChoice=function(H,C){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var S=0;S<this.data.choices.length;S++){var w;if(H===this.selectedItemIndex){var A=!1;var J=w=null}else w=(A=S===H)?this.data.choices[S].voteRatioIfSelected:this.data.choices[S].voteRatioIfNotSelected,J=A?this.data.choices[S].votePercentageIfSelected:this.data.choices[S].votePercentageIfNotSelected;this.set("data.choices."+S+".voteRatio",w);
this.set("data.choices."+S+".votePercentage",J);this.set("data.choices."+S+".selected",A)}C||(this.isLoading=!0,(C=this.getEndpoint(H,this.selectedItemIndex))&&_.JA().resolve(_.ZQ).resolveCommand(C,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===H?-1:H};
_.JJ.Object.defineProperties(Eu.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
Eu.prototype.onYtServiceRequestCompleted=Eu.prototype.onYtServiceRequestCompleted;Eu.prototype.onYtServiceRequestSent=Eu.prototype.onYtServiceRequestSent;Eu.prototype.onYtCommentPollRevert=Eu.prototype.onYtCommentPollRevert;Eu.prototype.onPopupClosed=Eu.prototype.onPopupClosed;Eu.prototype.dataChanged=Eu.prototype.dataChanged;_.D([_.v(_.Tj),_.K("design:type",Object)],Eu.prototype,"paperItemBehavior",void 0);
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Eu.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.OY),_.K("design:type",Object)],Eu.prototype,"ytdOpenPopupBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Eu.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],Eu.prototype,"isLoading",void 0);_.D([_.V({computed:"computeIsChannelOwner(data.choices)"}),_.K("design:type",Boolean)],Eu.prototype,"isChannelOwner",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.K("design:type",Boolean)],Eu.prototype,"isImagePoll",void 0);_.D([_.V({computed:"computeIsTotalVotesDisabled(data)"}),_.K("design:type",Boolean)],Eu.prototype,"isTotalVotesDisabled",void 0);_.D([_.V(),_.K("design:type",Object)],Eu.prototype,"previousPollInfo",void 0);_.D([_.V(),_.K("design:type",Object)],Eu.prototype,"selectedItemIndex",void 0);_.D([_.lA("#poll-votes"),_.K("design:type",Object)],Eu.prototype,"pollVotes",void 0);
_.D([_.l("isChannelOwner"),_.K("design:type",Object),_.K("design:paramtypes",[])],Eu.prototype,"endpointStyle",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Eu.prototype,"dataChanged",null);_.D([_.Gz("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],Eu.prototype,"onPopupClosed",null);
_.D([_.Gz("yt-comment-poll-revert"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],Eu.prototype,"onYtCommentPollRevert",null);_.D([_.Gz("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.IW]),_.K("design:returntype")],Eu.prototype,"onYtServiceRequestSent",null);
_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Eu.prototype,"onYtServiceRequestCompleted",null);_.D([_.h({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],Eu);
_.B(Eu,"ytd-backstage-poll-renderer",function(){if(NIb!==void 0)return NIb;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return NIb=H},{mode:2});var bk_;var ELd={autoplay:!1,loop:!1},e4n={simpleText:""},eD=function(){var H=_.X.apply(this,arguments)||this;H.isLoading=!1;H.usesPanelLockup=!1;H.selectedItemIndex=-1;H.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},ELd,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});H.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},ELd,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});H.correctnessAnimationProps=[];H.correctnessAnimationRefs=[];return H};
_.G(eD,_.X);_.F=eD.prototype;_.F.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.F.computeIsChannelOwner=function(H){if(!H)return!0;H=H[0];return!(H&&(H.signinEndpoint||H.selectServiceEndpoint))};
_.F.computeIsTotalVotesDisabled=function(H){return!(H==null?0:H.totalVotes)};
_.F.computeIsImageQuiz=function(H){return(H==null?void 0:H.type)==="POLL_TYPE_IMAGE"};
_.F.onExplanationChanged=function(){this.expander.reset()};
_.F.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var H=this.data.choices;if(H){this.maybeInitializeQuizLotties(H);for(var C=0;C<H.length;C++)if(H[C].isSelected||this.isChannelOwner&&H[C].isCorrect){this.selectedItemIndex=C;return}this.selectedItemIndex=-1}}};
_.F.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var H=this.selectedItemIndex,C=Number(this.quizVotes.selected);this.selectChoice(C);this.sendVoteAction(C,H);this.quizVotes.selected=-1;var S;H=!((S=this.data)==null?0:S.enableAnimation);this.maybePlayAnswerAnimations(H)}};
_.F.onYtCommentPollRevert=function(H,C){C&&(this.selectChoice(C.selectedChoiceIndex),this.set("data.totalVotes",C.totalVotes))};
_.F.onYtServiceRequestSent=function(H,C){if(C.actions)for(H=_.Z(C.actions),C=H.next();!C.done;C=H.next())(C=_.e(C.value,gZ))&&this.set("data.totalVotes",C.totalVotes)};
_.F.onYtServiceRequestCompleted=function(H){var C=this.get("detail.data.actionResults.0.feedback",H);H=this.get("detail.data.actionResults.0.status",H);if(C==="FEEDBACK_DESELECT"||C==="FEEDBACK_SELECT")this.isLoading=!1,H==="STATUS_FAILED"?_.M3(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.F.getAnimationPropsForChoiceIndex=function(H,C){return C[H]};
_.F.maybePlayAnswerAnimations=function(H){H=H===void 0?!1:H;var C;if((C=this.data)!=null&&C.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){C=_.Z(this.correctnessAnimationRefs);for(var S=C.next();!S.done;S=C.next()){var w=void 0,A=void 0;(w=S.value)==null||(A=w.lottieEl)==null||A.stop()}if(!(this.selectedItemIndex<0)){C=0;H&&(C=this.isCorrect?37:25);var J,c;(J=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(c=J.lottieEl)==null||c.goToAndPlay(H?C:0,!0);if(!(this.isCorrect||
(J=this.data.choices.findIndex(function(W){return W.isCorrect}),J<0))){var Y,M;
(M=(Y=this.correctnessAnimationRefs[J])==null?void 0:Y.lottieEl)==null||M.goToAndPlay(37,!0);var m;Y=(m=this.fadeContainers)==null?void 0:m.item(J);!H&&Y&&this.fadeIn(Y)}}}};
_.F.thumbnailSrc=function(H){var C,S,w,A;return(H==null?0:(C=H.thumbnails)==null?0:(S=C[0])==null?0:S.url)?_.D4((w=H.thumbnails)==null?void 0:(A=w[0])==null?void 0:A.url):void 0};
_.F.a11yVotedText=function(H,C){var S,w,A=((S=this.data)==null?void 0:(w=S.correctVotedText)==null?void 0:w.simpleText)||"",J,c;S=((J=this.data)==null?void 0:(c=J.votedText)==null?void 0:c.simpleText)||"";if(!C)return"";var Y,M;if((Y=this.data)==null?0:(M=Y.choices)==null?0:M[H].isCorrect)return A;var m,W;return((m=this.data)==null?0:(W=m.choices)==null?0:W[H].isSelected)?S:""};
_.F.getEndpoint=function(H,C){return C===H?this.data.choices[H].deselectServiceEndpoint||null:this.data.choices[H].selectServiceEndpoint||null};
_.F.sendVoteAction=function(H,C){if(H=this.getEndpoint(H,C))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(H)};
_.F.selectChoice=function(H){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var C=0;C<this.data.choices.length;C++)this.set("data.choices."+C+".isSelected",H===this.selectedItemIndex?!1:C===H);this.selectedItemIndex=this.selectedItemIndex===H?-1:H};
_.F.maybeInitializeQuizLotties=function(H){var C=this;this.isDarkTheme&&(this.baseCorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_DarkTheme_01a.json",this.baseIncorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_DarkTheme_01a.json");this.correctnessAnimationProps=H.map(function(S){return{animationConfig:S.isCorrect?C.baseCorrectLottiePlayerAnimationConfig:C.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){C.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(S){return S.animationRef||{}})};
_.F.fadeIn=function(H){H.classList.add("fade-in");_.Ns(_.rT,function(){H.classList.remove("fade-in")},900)};
_.JJ.Object.defineProperties(eD.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.E("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.jt(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 H,C;return((H=this.data)==null?void 0:(C=H.choices)==null?void 0:C.some(function(S){return S.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null||!H.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?e4n:this.data.choices[this.selectedItemIndex].explanation||e4n}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null||!H.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
eD.prototype.onYtServiceRequestCompleted=eD.prototype.onYtServiceRequestCompleted;eD.prototype.onYtServiceRequestSent=eD.prototype.onYtServiceRequestSent;eD.prototype.onYtCommentPollRevert=eD.prototype.onYtCommentPollRevert;eD.prototype.dataChanged=eD.prototype.dataChanged;eD.prototype.onExplanationChanged=eD.prototype.onExplanationChanged;_.D([_.v(_.Tj),_.K("design:type",Object)],eD.prototype,"paperItemBehavior",void 0);
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],eD.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],eD.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.o_.YtTaskEmitterBehavior),_.K("design:type",Object)],eD.prototype,"ytTaskEmitterBehavior",void 0);_.D([_.v(_.OY),_.K("design:type",Object)],eD.prototype,"ytdOpenPopupBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],eD.prototype,"data",void 0);
_.D([_.V(),_.K("design:type",Object)],eD.prototype,"isLoading",void 0);_.D([_.V(),_.K("design:type",Object)],eD.prototype,"usesPanelLockup",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.K("design:type",Boolean)],eD.prototype,"isChannelOwner",void 0);_.D([_.V({computed:"computeIsTotalVotesDisabled(data)"}),_.K("design:type",Boolean)],eD.prototype,"isTotalVotesDisabled",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.K("design:type",Boolean)],eD.prototype,"isImageQuiz",void 0);_.D([_.V(),_.K("design:type",Object)],eD.prototype,"previousQuizInfo",void 0);_.D([_.V(),_.K("design:type",Object)],eD.prototype,"selectedItemIndex",void 0);_.D([_.V({reflectToAttribute:!0}),_.l("data","usesPanelLockup"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],eD.prototype,"shouldUseModernUi",null);
_.D([_.VQ(".fade-container"),_.K("design:type",Object)],eD.prototype,"fadeContainers",void 0);_.D([_.V(),_.K("design:type",Array)],eD.prototype,"correctnessAnimationProps",void 0);_.D([_.l("explanation","showCorrectAnswer"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],eD.prototype,"showExplanation",null);_.D([_.l("isChannelOwner","isAttempted"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],eD.prototype,"showCorrectAnswer",null);
_.D([_.l("isChannelOwner","isAttempted","data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],eD.prototype,"isQuizAnsweringDisabled",null);_.D([_.l("isQuizAnsweringDisabled"),_.K("design:type",Object),_.K("design:paramtypes",[])],eD.prototype,"endpointStyle",null);_.D([_.l("data","selectedItemIndex"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],eD.prototype,"isAttempted",null);
_.D([_.l("data","selectedItemIndex"),_.K("design:type",Object),_.K("design:paramtypes",[])],eD.prototype,"explanation",null);_.D([_.l("data","selectedItemIndex"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],eD.prototype,"isCorrect",null);_.D([_.lA("ytd-expander"),_.K("design:type",Object)],eD.prototype,"expander",void 0);_.D([_.lA("#quiz-votes"),_.K("design:type",Object)],eD.prototype,"quizVotes",void 0);
_.D([_.fx("explanation"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],eD.prototype,"onExplanationChanged",null);_.D([_.fx("data","isChannelOwner"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],eD.prototype,"dataChanged",null);_.D([_.Gz("yt-comment-quiz-revert"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],eD.prototype,"onYtCommentPollRevert",null);
_.D([_.Gz("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.IW]),_.K("design:returntype")],eD.prototype,"onYtServiceRequestSent",null);_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],eD.prototype,"onYtServiceRequestCompleted",null);_.D([_.h({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],eD);
_.B(eD,"ytd-backstage-quiz-renderer",function(){if(bk_!==void 0)return bk_;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return bk_=H},{mode:1});var u8d;var uq=function(){return _.X.apply(this,arguments)||this};
_.G(uq,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],uq.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],uq.prototype,"data",void 0);_.D([_.h({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],uq);
_.B(uq,"ytd-post-uploaded-video-renderer",function(){if(u8d!==void 0)return u8d;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return u8d=H},{mode:1});var GOd;var Gu=function(){return _.X.apply(this,arguments)||this};
_.G(Gu,_.X);Gu.prototype.useFilledIcons=function(H){return H==="SPONSORSHIP_STAR"};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Gu.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Gu.prototype,"data",void 0);_.D([_.h({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],Gu);
var fed=_.Tp()(Gu,"ytd-sponsors-only-badge-renderer",function(){if(GOd===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);GOd=H}H=GOd;return H},{allowedProps:["data"],
mode:1});var vL1;var fJ=function(){return _.X.apply(this,arguments)||this};
_.G(fJ,_.X);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],fJ.prototype,"componentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],fJ.prototype,"data",void 0);_.D([_.h({is:"ytd-child-video-renderer",disableElementRegistration:!0})],fJ);
_.B(fJ,"ytd-child-video-renderer",function(){if(vL1!==void 0)return vL1;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return vL1=H},{mode:1});var le1;var VqW;var vq=function(){var H=_.X.apply(this,arguments)||this;H.size=0;H.enableWebModernCollectionsV2=_.E("web_modern_collections_v2");H.fallbackImageSize={height:void 0,width:9999};H.webModernCollections=!1;return H};
_.G(vq,_.X);_.F=vq.prototype;_.F.computeBlurredImageSize=function(H){return H?{height:H*2,width:H*2}:this.fallbackImageSize};
_.F.computeImageSize=function(H){return H?{height:H,width:H}:this.fallbackImageSize};
_.F.computeObjectFit=function(H){return H?"FILL":"CONTAIN"};
_.F.computePreserve=function(H){return H?!0:!1};
_.F.setBackground=function(){var H,C;_.E("web_modern_collections_v2")&&((H=this.data)==null?0:(C=H.thumbnail)==null?0:C.sampledThumbnailColor)&&(H=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+H.red+","+H.green+","+H.blue+",1)")};
vq.prototype.setBackground=vq.prototype.setBackground;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],vq.prototype,"ytRendererBehavior",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],vq.prototype,"watchFeedThumbnail",void 0);_.D([_.V(),_.K("design:type",Object)],vq.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],vq.prototype,"size",void 0);
_.D([_.V({computed:"computeBlurredImageSize(size)"}),_.K("design:type",Object)],vq.prototype,"blurredImageSize",void 0);_.D([_.V({computed:"computeImageSize(size)"}),_.K("design:type",Object)],vq.prototype,"imageSize",void 0);_.D([_.V({computed:"computePreserve(size)"}),_.K("design:type",String)],vq.prototype,"preserve",void 0);_.D([_.V({computed:"computeObjectFit(size)"}),_.K("design:type",String)],vq.prototype,"objectFit",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],vq.prototype,"enableWebModernCollectionsV2",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],vq.prototype,"webModernCollections",void 0);_.D([_.fx("data.thumbnail.sampledThumbnailColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vq.prototype,"setBackground",null);_.D([_.h({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],vq);
_.B(vq,"ytd-playlist-custom-thumbnail-renderer",function(){if(VqW!==void 0)return VqW;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return VqW=H},{mode:1});var oLV;var lq=function(){return _.X.apply(this,arguments)||this};
_.G(lq,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],lq.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],lq.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Number)],lq.prototype,"width",void 0);_.D([_.h({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],lq);
_.B(lq,"ytd-playlist-video-thumbnail-renderer",function(){if(oLV!==void 0)return oLV;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return oLV=H},{mode:1});var Ok7;var VG=function(){return _.X.apply(this,arguments)||this};
_.G(VG,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],VG.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],VG.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Number)],VG.prototype,"width",void 0);_.D([_.h({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],VG);
_.B(VG,"ytd-show-custom-thumbnail-renderer",function(){if(Ok7!==void 0)return Ok7;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Ok7=H},{mode:1});var XxP;var oN=function(){return _.X.apply(this,arguments)||this};
_.G(oN,_.X);oN.prototype.useFilledIcons=function(H){return H==="MUSIC"||H==="COURSE"};
oN.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=xF(this.overlayColor,"0.8");else if(this.overlayColor){var H=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+H.red+","+H.green+","+H.blue+",0.8)"}};
_.JJ.Object.defineProperties(oN.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)}}});
oN.prototype.overlayColorChanged=oN.prototype.overlayColorChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],oN.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],oN.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],oN.prototype,"overlayColor",void 0);_.D([_.V({reflectToAttribute:!0}),_.l("data.icon","data.text"),_.K("design:type",Object),_.K("design:paramtypes",[])],oN.prototype,"overlayStyle",null);
_.D([_.V({reflectToAttribute:!0}),_.l("data.icon","data.text"),_.K("design:type",Object),_.K("design:paramtypes",[])],oN.prototype,"overlayTextStyle",null);_.D([_.fx("overlayColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],oN.prototype,"overlayColorChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],oN);
_.B(oN,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(XxP!==void 0)return XxP;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return XxP=H},{mode:1});var QG7;var Ou=function(){var H=_.X.apply(this,arguments)||this;H.active=!1;return H};
_.G(Ou,_.X);Ou.prototype.computeIsSpinnerHidden=function(H){return(H==null?void 0:H.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
Ou.prototype.computeOverlayIcon=function(H){return(H==null?void 0:H.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(H==null?void 0:H.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Ou.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Ou.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],Ou.prototype,"active",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],Ou);
_.B(Ou,"ytd-thumbnail-overlay-downloading-renderer",function(){if(QG7!==void 0)return QG7;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return QG7=H},{mode:1});var d8_;var XQ=function(){return _.X.apply(this,arguments)||this};
_.G(XQ,_.X);_.JJ.Object.defineProperties(XQ.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],XQ.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],XQ.prototype,"data",void 0);_.D([_.l("data.text"),_.K("design:type",Object),_.K("design:paramtypes",[])],XQ.prototype,"text",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],XQ);
_.B(XQ,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(d8_!==void 0)return d8_;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return d8_=H},{mode:1});var Pld,$8Y=function(){if(Pld!==void 0)return Pld;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return Pld=H};var QG=function(){return _.X.apply(this,arguments)||this};
_.G(QG,_.X);_.JJ.Object.defineProperties(QG,{template:{configurable:!0,enumerable:!0,get:function(){return $8Y()}}});
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],QG.prototype,"animateEqualizer",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],QG);_.Tp()(QG,"ytd-thumbnail-overlay-equalizer",function(){return $8Y()},{allowedProps:["animateEqualizer"],
mode:1});var pxi;var dz=function(){var H=_.X.apply(this,arguments)||this;H.nowPlayingBadge=_.E("web_now_playing_badge");H.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return H};
_.G(dz,_.X);dz.prototype.activeChanged=function(){var H=this;_.E("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.wM(this,function(){_.M3(H.hostElement,"yt-playlist-lockup-now-playing-active",H)})};
dz.prototype.onMiniplayerPlayStateChanged=function(H){var C,S=(C=_.e(_.LO().currentEndpoint,_.sX))==null?void 0:C.videoId;this.isVideoPlaying=H&&(_.E("web_limit_now_playing_animation_killswitch")||this.videoId===S)};
dz.prototype.activeChanged=dz.prototype.activeChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],dz.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],dz.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],dz.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Boolean)],dz.prototype,"isVideoPlaying",void 0);_.D([_.V(),_.K("design:type",String)],dz.prototype,"videoId",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],dz.prototype,"equalizerOnly",void 0);_.D([_.V(),_.K("design:type",Boolean)],dz.prototype,"isActive",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],dz.prototype,"nowPlayingBadge",void 0);_.D([_.fx("isActive"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dz.prototype,"activeChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],dz);
_.B(dz,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(pxi!==void 0)return pxi;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return pxi=H},{mode:1});var kOi;var Pq=function(){return _.X.apply(this,arguments)||this};
_.G(Pq,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Pq.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Pq.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],Pq);
_.B(Pq,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(kOi!==void 0)return kOi;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return kOi=H},{mode:_.mn("kevlar_poly_si_batch_j025")?1:2});var h4b;var $m=function(){return _.X.apply(this,arguments)||this};
_.G($m,_.X);$m.prototype.onDurationChanged=function(){var H,C;_.mY(this.hostElement).querySelector("#progress").style.width=((C=(H=this.data)==null?void 0:H.percentDurationWatched)!=null?C:0)+"%"};
$m.prototype.onDurationChanged=$m.prototype.onDurationChanged;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],$m.prototype,"componentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],$m.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],$m.prototype,"isLive",void 0);_.D([_.fx("data.percentDurationWatched"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$m.prototype,"onDurationChanged",null);
_.D([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],$m);
_.B($m,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(h4b!==void 0)return h4b;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return h4b=H},{mode:1});var nL_;var pJ=function(){var H=_.X.apply(this,arguments)||this;H.bottomPanel=!1;H.richGridOverlay=!1;H.watchFeedOverlay=!1;H.isCompact=!1;return H};
_.G(pJ,_.X);pJ.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.JJ.Object.defineProperties(pJ.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var H,C;return((H=this.data)==null?void 0:(C=H.icon)==null?void 0:C.iconType)==="PLAY_ALL"&&_.E("kevlar_system_icons")}}});
pJ.prototype.widthChanged=pJ.prototype.widthChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],pJ.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],pJ.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Number)],pJ.prototype,"width",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],pJ.prototype,"bottomPanel",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],pJ.prototype,"richGridOverlay",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],pJ.prototype,"watchFeedOverlay",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],pJ.prototype,"isCompact",void 0);_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],pJ.prototype,"isIconFilled",null);_.D([_.fx("width","watchFeedOverlay"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pJ.prototype,"widthChanged",null);
_.D([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],pJ);
_.B(pJ,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(nL_!==void 0)return nL_;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return nL_=H},{mode:1});var rXV;var BIb=["CLIP","SHORTS"],km=function(){var H=_.X.apply(this,arguments)||this;H.animated=_.E("animated_live_badge_icon");H.hasIcon=!1;H.updateTimerIntervalId=0;H.timeSinceLive=0;return H};
_.G(km,_.X);_.F=km.prototype;_.F.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.F.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.F.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.F.hasIconOrText=function(){var H,C;return!!(((H=this.data)==null?0:H.icon)||((C=this.data)==null?0:C.text))};
_.F.initializeLiveBadgeTimer=function(){var H=this,C,S=(C=this.liveBadgeData)==null?void 0:C.startTimestampSec;if(S&&this.canShowLiveBadgeTimer()){var w;C=Number((w=this.liveBadgeData)==null?void 0:w.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(S);this.updateTimerIntervalId=_.NE(function(){H.canShowLiveBadgeTimer()?H.timeSinceLive++:(H.timeSinceLive=0,window.clearInterval(H.updateTimerIntervalId))},C)}else this.timeSinceLive=0};
_.F.canShowLiveBadgeTimer=function(){var H=Date.now(),C,S;return H<(Number((C=this.liveBadgeData)==null?void 0:C.endTimestampSec)-1)*1E3&&H>Number((S=this.liveBadgeData)==null?void 0:S.startTimestampSec)*1E3};
_.JJ.Object.defineProperties(km.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var H=this.data;var C=this.timeSinceLive;var S,w,A,J;a:{var c=H.style;if(c===void 0)c=17;else switch(c){case "LIVE":c=18;break a;default:c=17}}C={type:c,text:C?hlV({seconds:C}):_.jt(H.text),accessibilityText:(S=H.text)==null?void 0:(w=S.accessibility)==null?void 0:(A=w.accessibilityData)==null?void 0:A.label,icon:(J=H.icon)==null?void 0:J.iconType}}else C={};return C}},
hideBadgeShape:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.hasIconOrText()||this.overlayType==="OPEN_IN_NEW_TAB"}},
overlayStyle:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.style)return this.data.style}},
liveBadgeData:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.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 BIb.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
km.prototype.initializeLiveBadgeTimer=km.prototype.initializeLiveBadgeTimer;km.prototype.dataChanged=km.prototype.dataChanged;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],km.prototype,"componentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],km.prototype,"data",void 0);_.D([_.V({computed:"computeIcon_(data.icon)"}),_.K("design:type",String)],km.prototype,"icon",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],km.prototype,"animated",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.K("design:type",Boolean)],km.prototype,"hideTimeStatus",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],km.prototype,"hasIcon",void 0);_.D([_.V(),_.K("design:type",Object)],km.prototype,"timeSinceLive",void 0);_.D([_.l("data","timeSinceLive"),_.K("design:type",Object),_.K("design:paramtypes",[])],km.prototype,"badgeShapeData",null);
_.D([_.l("data","overlayType"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],km.prototype,"hideBadgeShape",null);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],km.prototype,"dataChanged",null);_.D([_.V({reflectToAttribute:!0}),_.l("data.style"),_.K("design:type",Object),_.K("design:paramtypes",[])],km.prototype,"overlayStyle",null);
_.D([_.l("data.liveBadgeData"),_.K("design:type",Object),_.K("design:paramtypes",[])],km.prototype,"liveBadgeData",null);_.D([_.V({reflectToAttribute:!0}),_.l("data.type"),_.K("design:type",Object),_.K("design:paramtypes",[])],km.prototype,"overlayType",null);_.D([_.l("overlayType","overlayStyle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],km.prototype,"useFilledIcon",null);
_.D([_.XJ("liveBadgeData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],km.prototype,"initializeLiveBadgeTimer",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],km);
_.B(km,"ytd-thumbnail-overlay-time-status-renderer",function(){if(rXV!==void 0)return rXV;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return rXV=H},{mode:_.mn("kevlar_poly_si_batch_j035")?1:2});var D8M;var hT=function(){return _.X.apply(this,arguments)||this};
_.G(hT,_.X);hT.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"}}}}};
hT.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(H){if(this.hasPlaybackProgressBar)return{percentDurationWatched:H.percentDurationWatched}};
hT.prototype.computeHasPlaybackProgressBar=function(H){return!!H.percentDurationWatched&&H.percentDurationWatched>0};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],hT.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],hT.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],hT.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.K("design:type",Boolean)],hT.prototype,"hasPlaybackProgressBar",void 0);
_.D([_.h({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],hT);
_.B(hT,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(D8M!==void 0)return D8M;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return D8M=H},{mode:1});var KeV;var tqP=_.n(function(H){var C=H.data;var S=H.children;var w=function(){return!!C().doubleStack},A=function(){return!!C().includeStackHeight};
return _.q("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!C().experimentEnabled}},_.q(_.T,{cond:C,
then:function(){var J={};return _.q(_.F9,null,_.q(_.T,{cond:A,then:function(){var c={};return _.q("div",{class:_.eJ("ytCollectionsStackSpacer",(c.ytCollectionsStackSpacerDoubleStack=w,c))})}}),_.q("div",{class:_.eJ((J.ytCollectionsStackRelativeStack=A,J))},_.q(_.T,{cond:w,
then:function(){var c={};return _.q("div",{class:_.eJ("ytCollectionsStackCollectionStack2",function(){return C().customClassName2ndStack},(c.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return C().enableResponsiveMode},c)),
style:_.vb({"background-color":function(){return Zk6(C())}})})}}),_.q("div",{class:_.eJ("ytCollectionsStackCollectionStack1",function(){return C().customClassName1stStack},function(){return Fei(C().thumbnailSize?C().thumbnailSize:"medium")}),
style:_.vb({"background-color":function(){return Zk6(C())}})}),S))}}))},"W");_.qs(tqP,"yt-collections-stack",{props:{data:_.GH}});var nJ=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};H.webModernCollections=!1;H.isSearch=!1;H.isDoubleStack=!1;H.thumbnailSize="medium";H.enableWebModernCollectionsV2=_.E("web_modern_collections_v2");return H};
_.G(nJ,_.X);_.F=nJ.prototype;
_.F.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]]"}}}}}};
_.F.getThumbnailDetails=function(H){if(H!=null&&H.thumbnailRenderer){var C=H.thumbnailRenderer,S;if((S=C.playlistVideoThumbnailRenderer)==null?0:S.thumbnail)return C.playlistVideoThumbnailRenderer.thumbnail;var w;if((w=C.playlistCustomThumbnailRenderer)==null?0:w.thumbnail)return C.playlistCustomThumbnailRenderer.thumbnail;H=H.thumbnailRenderer;var A;if((A=H.showCustomThumbnailRenderer)==null?0:A.thumbnail)return H.showCustomThumbnailRenderer.thumbnail}};
_.F.computeOverlayColor=function(H){var C,S;if((C=this.getThumbnailDetails(H))==null?0:(S=C.darkColorPalette)==null?0:S.section2Color)return this.getThumbnailDetails(H).darkColorPalette.section2Color;var w;return(w=this.getThumbnailDetails(H))==null?void 0:w.sampledThumbnailColor};
_.F.computeWebModernCollections=function(H){if(H==null||!H.thumbnailOverlays)return!1;H=_.Z(H.thumbnailOverlays);for(var C=H.next();!C.done;C=H.next()){var S=void 0;if((S=C.value)==null?0:S.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.F.computeNavigationEndpoint=function(H){return Wy7(H==null?void 0:H.navigationEndpoint)};
_.JJ.Object.defineProperties(nJ.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var H=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:H==null?void 0:H.sampledThumbnailColor,vibrantColorPalette:H==null?void 0:H.vibrantColorPalette,darkColorPalette:H==null?void 0:H.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],nJ.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],nJ.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(xM7),_.K("design:type",Object)],nJ.prototype,"ytdThumbnailBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],nJ.prototype,"componentBehavior",void 0);
_.D([_.V({value:!1}),_.K("design:type",Boolean)],nJ.prototype,"watchFeedThumbnail",void 0);_.D([_.V(),_.K("design:type",Number)],nJ.prototype,"customThumbnailSize",void 0);_.D([_.V({value:!0}),_.K("design:type",Boolean)],nJ.prototype,"hideAria",void 0);_.D([_.V(),_.K("design:type",Object)],nJ.prototype,"data",void 0);_.D([_.V({computed:"computeOverlayColor(data)"}),_.K("design:type",Object)],nJ.prototype,"overlayColor",void 0);
_.D([_.V({computed:"computeWebModernCollections(data)"}),_.K("design:type",Object)],nJ.prototype,"webModernCollections",void 0);_.D([_.V({computed:"computeNavigationEndpoint(data)"}),_.K("design:type",Object)],nJ.prototype,"computedNavigationEndpoint",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],nJ.prototype,"isSearch",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],nJ.prototype,"isDoubleStack",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",String)],nJ.prototype,"thumbnailSize",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],nJ.prototype,"enableWebModernCollectionsV2",void 0);_.D([_.l("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.K("design:type",Object),_.K("design:paramtypes",[])],nJ.prototype,"collectionStack",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],nJ);
_.B(nJ,"ytd-playlist-thumbnail",function(){if(KeV!==void 0)return KeV;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return KeV=H},{mode:_.mn("kevlar_poly_si_batch_j025")?1:2});var Le7;var rz=function(){var H=_.X.apply(this,arguments)||this;H.noEndpoints=!1;H.amsterdamPostMvp=_.E("web_amsterdam_post_mvp_playlists");H.badges=[];H.transferState="TRANSFER_STATE_UNKNOWN";return H};
_.G(rz,_.X);_.F=rz.prototype;_.F.getMetadata=function(H){if(!H)return[];var C=[],S=H.shortViewCountText||H.viewCountText;S&&C.push(_.jt(S));H.publishedTimeText&&C.push(_.jt(H.publishedTimeText));H.upcomingEventData&&H.upcomingEventData.upcomingEventText&&C.push(_.Pt(_.jt(H.upcomingEventData.upcomingEventText),Number(H.upcomingEventData.startTime)));return C};
_.F.observeDataForBylineSeparator=function(){this.data&&_.yQ(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.F.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.Iw(this.metadataColor)};
_.F.getSimpleString=function(H){return _.jt(H)};
_.F.isBylineHidden=function(H){return this.noByline||!((H==null?0:H.longBylineText)||(H==null?0:H.shortBylineText))};
_.F.isMetadataHidden=function(H){var C;return((C=this.getMetadata(H))==null?void 0:C.length)===0};
_.F.isBylineMetadataSeparatorHidden=function(H){return this.isMetadataHidden(H)||!this.shouldShowVideoInfo};
_.F.isLongByline=function(H,C){return C&&!(H==null||!H.longBylineText)};
_.JJ.Object.defineProperties(rz.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var H;return this.amsterdamPostMvp&&!((H=this.data)==null||!H.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 _.E("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
rz.prototype.metadataColorChanged=rz.prototype.metadataColorChanged;rz.prototype.observeDataForBylineSeparator=rz.prototype.observeDataForBylineSeparator;_.D([_.v(_.q$),_.K("design:type",Object)],rz.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],rz.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],rz.prototype,"noEndpoints",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],rz.prototype,"isSlimShort",void 0);
_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],rz.prototype,"radioMeta",void 0);_.D([_.V({selector:_.tg}),_.K("design:type",Object)],rz.prototype,"isGridViewEnabled",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],rz.prototype,"richMeta",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],rz.prototype,"amsterdamPostMvp",void 0);_.D([_.V(),_.K("design:type",Boolean)],rz.prototype,"noByline",void 0);
_.D([_.V({computed:"isLongByline(data, radioMeta)"}),_.K("design:type",Boolean)],rz.prototype,"longByline",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],rz.prototype,"truncateMetadataLine",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],rz.prototype,"miniMode",void 0);_.D([_.V(),_.K("design:type",Number)],rz.prototype,"metadataColor",void 0);_.D([_.V(),_.K("design:type",Array)],rz.prototype,"badges",void 0);
_.D([_.V({selector:_.L8,selectorArgs:["data.videoId"]}),_.K("design:type",String)],rz.prototype,"transferState",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],rz.prototype,"isDownloading",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],rz.prototype,"typographyBump",void 0);_.D([_.lA("#metadata-line"),_.K("design:type",HTMLElement)],rz.prototype,"metadataLine",void 0);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rz.prototype,"observeDataForBylineSeparator",null);_.D([_.fx("metadataColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rz.prototype,"metadataColorChanged",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],rz.prototype,"shouldShowVideoInfo",null);
_.D([_.l("badges"),_.K("design:type",String),_.K("design:paramtypes",[])],rz.prototype,"inlineBadgeClass",null);_.D([_.l("longByline"),_.K("design:type",String),_.K("design:paramtypes",[])],rz.prototype,"longBylineClass",null);_.D([_.l("data","longByline"),_.K("design:type",Object),_.K("design:paramtypes",[])],rz.prototype,"bylineText",null);_.D([_.l("isGridViewEnabled","data"),_.V({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],rz.prototype,"watchFeedBigThumbs",null);
_.D([_.h({is:"ytd-video-meta-block",disableElementRegistration:!0})],rz);
_.B(rz,"ytd-video-meta-block",function(){if(Le7!==void 0)return Le7;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Le7=H},{mode:_.mn("kevlar_poly_si_batch_j080")?1:2});_.hg("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var Bq=function(){var H=_.X.apply(this,arguments)||this;H.displayItemCount=2;H.isBackstagePlaylist=!1;H.isPostCompactPlaylist=!1;H.shouldShowChannelThumbnail=!1;H.useModernCollectionsV2=_.E("web_modern_collections_v2");return H};
_.G(Bq,_.X);_.F=Bq.prototype;_.F.computeFirstVideos=function(H,C){return H===void 0||C===void 0?[]:H.slice(0,C)};
_.F.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var H=this.data.thumbnailRenderer;H.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",H.playlistVideoThumbnailRenderer.thumbnail);H.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",H.playlistCustomThumbnailRenderer.thumbnail)}};
_.F.computeThumbnailHeight=function(H,C,S,w,A){return w?A==="BIG"?280:A==="MASSIVE"?337:234:S?240:C?72:H?118:138};
_.F.computeThumbnailWidth=function(H,C,S,w,A){return w?A==="MEDIUM"?450:A==="BIG"?500:A==="MASSIVE"?600:420:S?360:C?128:H?210:246};
_.F.computeUseBiggerThumbs=function(H){return H&&_.E("enable_desktop_search_bigger_thumbs")};
_.F.computeShouldShowChannelThumbnail=function(H,C){return H&&!(C==null||!C.channelThumbnail)};
_.JJ.Object.defineProperties(Bq.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
Bq.prototype.dataChanged=Bq.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Bq.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.uU),_.K("design:type",Object)],Bq.prototype,"ytdLockupBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],Bq.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Bq.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],Bq.prototype,"displayItemCount",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Bq.prototype,"isBackstagePlaylist",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Bq.prototype,"isPostCompactPlaylist",void 0);_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],Bq.prototype,"isSearch",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.K("design:type",Boolean)],Bq.prototype,"useBiggerThumbs",void 0);_.D([_.V({reflectToAttribute:!0,value:function(){return _.z9("desktop_search_bigger_thumbs_style")}}),
_.K("design:type",String)],Bq.prototype,"biggerThumbsStyle",void 0);_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],Bq.prototype,"isDownloads",void 0);_.D([_.V({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.K("design:type",Object)],Bq.prototype,"shouldShowChannelThumbnail",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Bq.prototype,"useModernCollectionsV2",void 0);
_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Bq.prototype,"dataChanged",null);_.D([_.l("isSearch"),_.K("design:type",String),_.K("design:paramtypes",[])],Bq.prototype,"stackThumbnailSize",null);_.D([_.h({is:"ytd-playlist-renderer",disableElementRegistration:!0})],Bq);
_.B(Bq,"ytd-playlist-renderer",function(){if(le1===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);le1=H}H=le1;return H},{mode:1});var gL7;var U87;var Dk=function(){var H=_.X.apply(this,arguments)||this;H.collections=!!_.E("web_modern_collections_v2");H.startX=0;return H};
_.G(Dk,_.X);Dk.prototype.onEndpointMouseDown=function(H){this.startX=H.clientX};
Dk.prototype.onEndpointClick=function(H){this.startX!==H.clientX&&(H.preventDefault(),H.stopPropagation())};
Dk.prototype.computeObjectFit=function(H){return H==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||H==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||H==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
Dk.prototype.computeCardStyle=function(H){return H?H.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.JJ.Object.defineProperties(Dk.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var H,C;return this.collections&&((H=this.data)==null?void 0:(C=H.searchRefinementCardRendererStyle)==null?void 0:C.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Dk.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Dk.prototype,"data",void 0);_.D([_.V({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.K("design:type",Number)],Dk.prototype,"objectFit",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.K("design:type",String)],Dk.prototype,"cardStyle",void 0);
_.D([_.V({reflectToAttribute:!0,value:!0}),_.K("design:type",Boolean)],Dk.prototype,"roundContainer",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],Dk.prototype,"collections",void 0);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Dk.prototype,"isAlbumCard",null);_.D([_.l("data","collections","isAlbumCard"),_.K("design:type",Object),_.K("design:paramtypes",[])],Dk.prototype,"collectionStack",null);
_.D([_.h({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],Dk);
_.B(Dk,"ytd-search-refinement-card-renderer",function(){if(U87!==void 0)return U87;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return U87=H},{mode:1});var R4i;var KJ=function(){var H=_.X.apply(this,arguments)||this;H.isRichGrid=!1;return H};
_.G(KJ,_.X);_.D([_.V(),_.K("design:type",Object)],KJ.prototype,"data",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],KJ.prototype,"componentBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],KJ.prototype,"ytdReduxBehavior",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],KJ.prototype,"isRichGrid",void 0);_.D([_.V({reflectToAttribute:!0,selector:_.rB}),_.K("design:type",Boolean)],KJ.prototype,"miniMode",void 0);
_.D([_.h({is:"ytd-game-details-renderer",disableElementRegistration:!0})],KJ);
_.B(KJ,"ytd-game-details-renderer",function(){if(R4i!==void 0)return R4i;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return R4i=H},{mode:1});var Ien;var aed;var tT=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return H};
_.G(tT,_.X);_.F=tT.prototype;_.F.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.F.currentStateData=function(H){var C=H||this.data;return C&&C.states&&C.currentStateId!=null?C.states.find(function(S){return S.stateId===C.currentStateId})||null:null};
_.F.currentStateRendererData=function(H){return(H=this.currentStateData(H))&&H.state&&H.state.buttonRenderer?H.state.buttonRenderer:null};
_.F.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())};
_.F.computeButtonIcon=function(H){H=this.currentStateRendererData(H);var C;return(H==null?0:(C=H.icon)==null?0:C.iconType)?H.icon.iconType.toLowerCase():null};
_.F.computeAccessibility=function(H){return(H=this.currentStateRendererData(H))&&H.accessibilityData?H.accessibilityData.accessibilityData||null:null};
_.F.computeButtonClass=function(H){var C=this.currentStateRendererData(H);if(!C)return"";H="";var S=C.style;S&&(H+=S.toLowerCase().replace(/_/g,"-")+" ");(C=C.size)&&(H+=C.toLowerCase().replace(/_/g,"-")+" ");return H.trim()};
_.F.computeServiceEndpoint=function(H){if(!H)return null;var C=H&&H.serviceEndpoint,S=this.get("command.commandMetadata.webCommandMetadata.sendPost",H);return C?C:S&&H.command?H.command:null};
_.F.computeBellMenuItemParams=function(H){var C;H=(C=_.e(H==null?void 0:H.command,_.b9))==null?void 0:C.commands;if(!H||H.length===0)return null;C=_.e(H[0],_.Uy);var S,w;return(C==null?0:(S=C.popup)==null?0:(w=S.menuPopupRenderer)==null?0:w.items)?C.popup.menuPopupRenderer.items.map(function(A){return A.menuServiceItemRenderer.trackingParams}):null};
_.F.handleBellMenuOpenSelectedAction=function(H){var C=H.trackingParams,S=this.computeBellMenuItemParams(this.data);this.data&&C&&S&&S.includes(C)&&this.ytRenderButtonBehavior._setButtonIcon(H.icon.iconType.toLowerCase())};
_.F.onYtServiceRequestCompleted=function(H,C){(H=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",C))&&this.set("data",H)};
_.F.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.F.resetState=function(){this.set("data.currentStateId",3)};
_.F.onYtButtonTapHandler=function(){if(this.data){var H=this.currentStateRendererData(this.data);H&&this.ytRendererBehavior.logExplicitClick(H)}};
tT.prototype.onYtServiceRequestError=tT.prototype.onYtServiceRequestError;tT.prototype.onYtServiceRequestCompleted=tT.prototype.onYtServiceRequestCompleted;tT.prototype.stateChanged=tT.prototype.stateChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],tT.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],tT.prototype,"ytActionHandlerBehavior",void 0);
_.D([_.v(S3.YtRenderButtonBehavior),_.K("design:type",Object)],tT.prototype,"ytRenderButtonBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],tT.prototype,"data",void 0);_.D([_.XJ("data","data.currentStateId"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],tT.prototype,"stateChanged",null);
_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.j4]),_.K("design:returntype")],tT.prototype,"onYtServiceRequestCompleted",null);_.D([_.Gz("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],tT.prototype,"onYtServiceRequestError",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],tT);
_.B(tT,"ytd-subscription-notification-toggle-button-renderer",function(){if(aed!==void 0)return aed;var H=document.createElement("template");_.f(H,"\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");H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return aed=H},{mode:1});var x8b;var LJ=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};H.tapHandler=function(){if(H.data){var C=H.currentStateRendererData();C&&H.ytRendererBehavior.logExplicitClick(C)}};
return H};
_.G(LJ,_.X);_.F=LJ.prototype;_.F.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.F.currentStateData=function(){var H=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(C){return C.stateId===H.data.currentStateId})||null:null};
_.F.currentStateRendererData=function(){var H=this.currentStateData();return H&&H.state&&H.state.buttonRenderer?H.state.buttonRenderer:null};
_.F.computeAccessibilityLabel=function(){var H,C,S;return(H=this.currentStateRendererData())==null?void 0:(C=H.accessibilityData)==null?void 0:(S=C.accessibilityData)==null?void 0:S.label};
_.F.computeBellMenuItemParams=function(){var H,C,S=(C=_.e((H=this.data)==null?void 0:H.command,_.b9))==null?void 0:C.commands;if(!S||S.length===0)return null;H=_.e(S[0],_.Uy);var w,A;return(H==null?0:(w=H.popup)==null?0:(A=w.menuPopupRenderer)==null?0:A.items)?H.popup.menuPopupRenderer.items.map(function(J){return J.menuServiceItemRenderer.trackingParams}):null};
_.F.handleBellMenuOpenSelectedAction=function(H){var C=H.trackingParams,S=this.computeBellMenuItemParams();if(this.data&&C&&S&&S.includes(C)&&(H==null||!H.isDisabled)){var w;((w=_.e(H.serviceEndpoint,_.eR))==null?void 0:w.signal)!=="CLIENT_SIGNAL"&&(this.icon=H.icon.iconType)}};
_.F.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.F.onYtServiceRequestCompleted=function(H,C){if(H=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",C))this.icon=void 0,this.set("data",H)};
_.F.onYtServiceRequestError=function(){this.icon=void 0};
_.JJ.Object.defineProperties(LJ.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var H=this.data,C=this.textLabel,S=this.hostElement,w=this.computeAccessibilityLabel(),A=this.tapHandler,J=this.isOverlay?"overlay":"mono",c=(H==null?0:H.disableButton)?"disabled":"active";C=C?_.BI(C):void 0;return{style:J,type:"tonal",state:c,size:"M",focused:!1,formattedButtonText:C,iconPosition:"leading-trailing",onTap:YC$(H,A,S),accessibilityLabel:w}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var H=this.currentStateRendererData(),C,S,w=(S=this.icon)!=null?S:H==null?void 0:(C=H.icon)==null?void 0:C.iconType;if(w)return _.bJ(w)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var H,C,S=(H=this.data)==null?void 0:(C=H.secondaryIcon)==null?void 0:C.iconType;if(S)return _.bJ(S)}}});
LJ.prototype.onYtServiceRequestError=LJ.prototype.onYtServiceRequestError;LJ.prototype.onYtServiceRequestCompleted=LJ.prototype.onYtServiceRequestCompleted;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],LJ.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],LJ.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],LJ.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],LJ.prototype,"textLabel",void 0);
_.D([_.V(),_.K("design:type",String)],LJ.prototype,"icon",void 0);_.D([_.V(),_.K("design:type",Boolean)],LJ.prototype,"isOverlay",void 0);_.D([_.l("data.*","textLabel"),_.K("design:type",Object),_.K("design:paramtypes",[])],LJ.prototype,"computedButtonShape",null);_.D([_.l("data.*","icon"),_.K("design:type",Object),_.K("design:paramtypes",[])],LJ.prototype,"computedIcon",null);_.D([_.l("computedIcon"),_.K("design:type",Object),_.K("design:paramtypes",[])],LJ.prototype,"computedAnimateIcon",null);
_.D([_.l("data.*"),_.K("design:type",Object),_.K("design:paramtypes",[])],LJ.prototype,"computedSecondaryIcon",null);_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.j4]),_.K("design:returntype")],LJ.prototype,"onYtServiceRequestCompleted",null);_.D([_.Gz("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],LJ.prototype,"onYtServiceRequestError",null);
_.D([_.h({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],LJ);
_.B(LJ,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(x8b!==void 0)return x8b;var H=document.createElement("template");_.f(H,'\x3c!--css-build:shady--\x3e<yt-button-shape animate-icon="[[computedAnimateIcon]]" data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return x8b=H},{mode:_.mn("kevlar_poly_si_batch_j081")?1:2});var HQn;_.qs(HkV,"yt-animated-action",{props:{backgroundLottieRef:_.GH,foregroundLottieRef:_.GH,wrapperClass:_.GH,disableAnimation:_.GH},unsafeExternallySettableAttributes:new Set(["key"])});var gz=function(){var H=_.X.apply(this,arguments)||this;H.animatedActionEnabled=_.E("web_animated_actions");H.foregroundLottieRef={};H.backgroundLottieRef={};H.forceIconOnly=!1;H.showTextWhileAnimating=!1;H.keyboardFocused=!1;H.isAnimating=!1;H.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return H};
_.G(gz,_.X);_.F=gz.prototype;_.F.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.F.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]]"}}}}}};
_.F.attached=function(){this.keyboardFocused=!1};
_.F.onYtServiceRequestSent=function(H,C){(this.get("endpoint.subscribeEndpoint",C)||this.get("endpoint.unsubscribeEndpoint",C))&&this.updateSubscriptionState(!this.subscribed)};
_.F.onYtServiceRequestCompleted=function(H,C){(H=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",C.data))&&this.bellButton&&(this.bellButton.data=H)};
_.F.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.Ed(this.hostElement)};
_.F.onPlayerSubscribe=function(H){this.isCompactRed()||H!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.F.onPlayerUnsubscribe=function(H){this.isCompactRed()||H!==this.data.channelId||this.updateSubscriptionState(!1)};
_.F.handleUpdateSubscribeButtonAction=function(H){H=_.e(H,hL7);var C;H&&H.channelId===((C=this.data)==null?void 0:C.channelId)&&this.updateSubscriptionState(!!H.subscribed)};
_.F.computeButtonStyle=function(H){return this.get("style.styleType",H)||null};
_.F.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.F.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.F.updateSubscriptionState=function(H){if(H!==this.subscribed){this.set("data.subscribed",H);var C,S=(C=this.data)==null?void 0:C.subscribedEntityKey;S&&this.ytdReduxBehavior.dispatch(_.O5("subscriptionStateEntity",S,{key:S,subscribed:H}));this.isCompactRed()||_.M3(this.hostElement,"yt-subscription-changed",H);H||(_.q3(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!H),H&&this.hasBellButton&&this.startAnimation())}};
_.F.startAnimation=function(){var H=this;if(!this.isAnimating){var C=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var S;(S=this.backgroundLottieRef.lottieEl)==null||S.goToAndPlay(0);var w;(w=this.foregroundLottieRef.lottieEl)==null||w.goToAndPlay(0);_.rT.addJob(function(){H.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.rT.addJob(function(){H.updateContainerToFitContent(!!H.subscribed,!0)},2,1500);
_.rT.addJob(function(){H.isAnimating=!1},2,C)}};
_.F.maybeAnimateBellIcon=function(){var H=_.WY(this.hostElement).querySelector("yt-animated-icon");if(H){var C;(C=H.animationRef.lottieEl)==null||C.goToAndPlay(0)}};
_.F.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.F.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.F.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var H;this.unsubscribedWidth=(H=this.subscribeButtonShape)==null?void 0:H.getBoundingClientRect().width}var C;this.subscribedWidth=(C=this.bellButton)==null?void 0:C.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.F.updateContainerToFitContent=function(H,C){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(H?(H=this.subscribedWidth,C=this.isAnimating&&!C,this.subscribedIconOnlyWidth===void 0||C||(H=this.subscribedIconOnlyWidth),this.hostElement.style.width=H+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.F.clearContainerSize=function(){this.hostElement.style.width=""};
_.F.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.F.maybeSetSubscribedButtonIconOnlyWidth=function(){var H=this;this.forceIconOnly&&this.showTextWhileAnimating&&this.subscribedIconOnlyWidth===void 0&&(this.subscribedIconOnlyWidth=0,this.subscribed?this.subscribedIconOnlyWidth=this.subscribedWidth:(this.bellButton&&(this.bellButton.textLabel=void 0),requestAnimationFrame(function(){var C;H.subscribedIconOnlyWidth=(C=H.bellButton)==null?void 0:C.getBoundingClientRect().width;requestAnimationFrame(function(){if(H.bellButton){var S;H.bellButton.textLabel=
(S=H.data)==null?void 0:S.subscribedButtonText}})})))};
_.JJ.Object.defineProperties(gz.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 H;return(H=this.data)==null?void 0:H.subscribedButtonText}var C;return this.forceIconOnly?void 0:(C=this.data)==null?void 0:C.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var H,C,S=((H=this.data)==null?void 0:(C=H.timedAnimationData)==null?void 0:C.animationTiming)||[];return{uniqueId:"subscribe",timings:S,enabled:S.length>0&&!this.subscribed,experimentEnabled:S.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var H;return!this.subscribed&&((H=this.data)==null?void 0:H.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 H={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var C=H.renderer;var S=H.element;var w=H.subscribed;var A=H.commandController;var J=H.isOverlay;H=H.stopPropagation;var c=TIW(C,w);J&&(c.style="overlay");J=Object;var Y=J.assign,M;a:switch((M=C.style)==null?void 0:M.styleType){case "COMPACT_GRAY":case "COMPACT_RED":M={size:"S"};break a;default:M={size:"M"}}var m=qCu(C,
w);var W=(W=w?C.subscribedButtonText:C.unsubscribedButtonText)?_.BI(W):void 0;return Y.call(J,{},c,M,{focused:!1,toggled:w,accessibilityLabel:m,formattedButtonText:W,onTap:Mqp(C,w,S,A,H)})}}}});
gz.prototype.onMouseDown=gz.prototype.onMouseDown;gz.prototype.onDataChanged=gz.prototype.onDataChanged;gz.prototype.observedSubscribed=gz.prototype.observedSubscribed;gz.prototype.onYtServiceRequestCompleted=gz.prototype.onYtServiceRequestCompleted;gz.prototype.onYtServiceRequestSent=gz.prototype.onYtServiceRequestSent;gz.prototype.maybeUpdateBellButtonText=gz.prototype.maybeUpdateBellButtonText;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],gz.prototype,"ytComponentBehavior",void 0);
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],gz.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],gz.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],gz.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],gz.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],gz.prototype,"data",void 0);
_.D([_.V({selectorArgs:["data.subscribedEntityKey"],selector:T0Z}),_.K("design:type",Object)],gz.prototype,"subscriptionStateEntity",void 0);_.D([_.V({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.K("design:type",Boolean)],gz.prototype,"subscribed",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],gz.prototype,"branded",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],gz.prototype,"animatedActionEnabled",void 0);
_.D([_.V(),_.K("design:type",Object)],gz.prototype,"foregroundLottieRef",void 0);_.D([_.V(),_.K("design:type",Object)],gz.prototype,"backgroundLottieRef",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],gz.prototype,"overlayButton",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.K("design:type",Object)],gz.prototype,"buttonStyle",void 0);_.D([_.V(),_.K("design:type",Object)],gz.prototype,"forceIconOnly",void 0);
_.D([_.V(),_.K("design:type",Object)],gz.prototype,"showTextWhileAnimating",void 0);_.D([_.V({value:function(){return!!_.JA().resolve(_.AA(_.PS))&&_.E("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.K("design:type",Boolean)],gz.prototype,"useKeyboardFocused",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],gz.prototype,"keyboardFocused",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],gz.prototype,"isAnimating",void 0);_.D([_.l("data.notificationPreferenceButton.*"),_.K("design:type",Object),_.K("design:paramtypes",[])],gz.prototype,"hasBellButton",null);
_.D([_.fx("subscribedButtonText"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],gz.prototype,"maybeUpdateBellButtonText",null);_.D([_.l("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.K("design:type",Object),_.K("design:paramtypes",[])],gz.prototype,"subscribedButtonText",null);_.D([_.l("data.timedAnimationData.animationTiming","subscribed"),_.K("design:type",Object),_.K("design:paramtypes",[])],gz.prototype,"smartimationSettings",null);
_.D([_.V({reflectToAttribute:!0}),_.l("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.K("design:type",Object),_.K("design:paramtypes",[])],gz.prototype,"subscribeButtonHidden",null);_.D([_.V({reflectToAttribute:!0}),_.l("subscribed","hasBellButton"),_.K("design:type",Object),_.K("design:paramtypes",[])],gz.prototype,"subscribeButtonInvisible",null);
_.D([_.V({reflectToAttribute:!0}),_.l("subscribed"),_.K("design:type",Object),_.K("design:paramtypes",[])],gz.prototype,"unsubscribeButtonHidden",null);_.D([_.lA("ytd-subscription-notification-toggle-button-renderer-next"),_.K("design:type",Object)],gz.prototype,"bellButton",void 0);_.D([_.lA("#subscribe-button-shape"),_.K("design:type",HTMLElement)],gz.prototype,"subscribeButtonShape",void 0);
_.D([_.l("overlayButton","subscribed","data"),_.K("design:type",Object),_.K("design:paramtypes",[])],gz.prototype,"buttonShape",null);_.D([_.Gz("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.IW]),_.K("design:returntype")],gz.prototype,"onYtServiceRequestSent",null);_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.j4]),_.K("design:returntype")],gz.prototype,"onYtServiceRequestCompleted",null);
_.D([_.fx("subscribed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],gz.prototype,"observedSubscribed",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],gz.prototype,"onDataChanged",null);_.D([_.Gz("mousedown"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],gz.prototype,"onMouseDown",null);
_.D([_.h({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],gz);
_.B(gz,"ytd-subscribe-button-renderer",function(){if(HQn!==void 0)return HQn;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return HQn=H},{mode:1});var Uu=function(){var H=_.X.apply(this,arguments)||this;H.isRichGrid=!1;return H};
_.G(Uu,_.X);Uu.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"}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Uu.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Uu.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Uu.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Uu.prototype,"isRichGrid",void 0);_.D([_.h({is:"ytd-game-card-renderer",disableElementRegistration:!0})],Uu);
_.B(Uu,"ytd-game-card-renderer",function(){if(Ien!==void 0)return Ien;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Ien=H},{mode:1});var RN={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.E("defer_menus")&&!pLb?0:void 0,waitForSignal:"eocs"};var iQM;var C17;var IN=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return H};
_.G(IN,_.X);_.F=IN.prototype;_.F.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.F.onSeriesReminderStateEntityChange=function(){var H,C,S;((H=this.eventReminderStateEntity)==null?0:H.key)&&((C=this.seriesReminderStateEntity)==null?void 0:C.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((S=this.eventReminderStateEntity)==null?void 0:S.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.O5("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.F.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.F.onYtServiceRequestError=function(){var H;this.updateReminderStateEntitiesFromButtonState((H=this.data)==null?void 0:H.currentState)};
_.F.handleUpdateUpcomingEventReminderButtonStateCommand=function(H){if(H=_.e(H,oeP)){var C,S=(C=this.data)==null?void 0:C.targetId;S&&H.targetId===S&&_.HI(this.updateReminderStateEntitiesFromButtonState.bind(this,H.state))}};
_.F.getButtonStateFromReminderState=function(){var H;if(((H=this.seriesReminderStateEntity)==null?void 0:H.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var C;if(((C=this.eventReminderStateEntity)==null?void 0:C.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var S,w;if(((S=this.seriesReminderStateEntity)==null?void 0:S.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((w=this.eventReminderStateEntity)==
null?void 0:w.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var A;return(A=this.data)==null?void 0:A.currentState};
_.F.updateReminderStateEntitiesFromButtonState=function(H){if(H){switch(H){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":H="UPCOMING_EVENT_REMINDER_STATE_NONE";var C="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":H="UPCOMING_EVENT_REMINDER_STATE_SINGLE";C="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":H="UPCOMING_EVENT_REMINDER_STATE_NONE";C="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var S;
((S=this.eventReminderStateEntity)==null?0:S.key)&&this.ytdReduxBehavior.dispatch(_.O5("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:H})));var w;((w=this.seriesReminderStateEntity)==null?0:w.key)&&this.ytdReduxBehavior.dispatch(_.O5("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:C})))}};
_.JJ.Object.defineProperties(IN.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var H=this.getButtonStateFromReminderState(),C,S;if(H&&((C=this.data)==null?0:(S=C.states)==null?0:S.length))for(C=_.Z(this.data.states),S=C.next();!S.done;S=C.next()){S=S.value;var w=void 0;if(((w=_.e(S,O$i))==null?void 0:w.state)===H)return _.e(S,O$i)}}}});
IN.prototype.onYtServiceRequestError=IN.prototype.onYtServiceRequestError;IN.prototype.onYtServiceRequestCompleted=IN.prototype.onYtServiceRequestCompleted;IN.prototype.onSeriesReminderStateEntityChange=IN.prototype.onSeriesReminderStateEntityChange;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],IN.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],IN.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],IN.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],IN.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],IN.prototype,"data",void 0);_.D([_.V({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:Wcu}),_.K("design:type",Object)],IN.prototype,"eventReminderStateEntity",void 0);
_.D([_.V({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(H,C){return _.Ea(H.entities,"sportsSeriesReminderStateEntity",C)}}),
_.K("design:type",Object)],IN.prototype,"seriesReminderStateEntity",void 0);_.D([_.l("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],IN.prototype,"currentButtonStateRenderer",null);_.D([_.fx("seriesReminderStateEntity"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],IN.prototype,"onSeriesReminderStateEntityChange",null);
_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],IN.prototype,"onYtServiceRequestCompleted",null);_.D([_.Gz("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],IN.prototype,"onYtServiceRequestError",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],IN);
_.B(IN,"ytd-upcoming-event-reminder-button-renderer",function(){if(C17!==void 0)return C17;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);
return C17=H},{mode:1});var So1;var aN=function(){return _.X.apply(this,arguments)||this};
_.G(aN,_.X);aN.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.JJ.Object.defineProperties(aN.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(_.E("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],aN.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],aN.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],aN.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],aN.prototype,"shelfDismissal",void 0);_.D([_.l("data.responseText"),_.K("design:type",Object),_.K("design:paramtypes",[])],aN.prototype,"text",null);
_.D([_.l("data.responseText"),_.K("design:type",Object),_.K("design:paramtypes",[])],aN.prototype,"textAriaLabel",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],aN);
_.B(aN,"ytd-notification-multi-action-renderer",function(){if(So1!==void 0)return So1;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return So1=H},{mode:1});var stY;var xm=function(){return _.X.apply(this,arguments)||this};
_.G(xm,_.X);xm.prototype.ready=function(){var H=this;_.mY(this.hostElement).querySelector("#undo").addEventListener("tap",function(){H.onUndoTap()})};
xm.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.JA().resolve(_.ZQ).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],xm.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],xm.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],xm);
_.B(xm,"ytd-notification-text-renderer",function(){if(stY!==void 0)return stY;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return stY=H},{mode:1});var jti;var HG=function(){var H=_.X.apply(this,arguments)||this;H.mouseOverDelayJobId=0;H.fadeInImageDelayJobId=0;H.startTimeMs=-1;H.loadingStartTimeMs=-1;H.loadingEndTimeMs=-1;H.hasVideoPreview=!1;return H};
_.G(HG,_.X);_.F=HG.prototype;_.F.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.F.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.F.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.F.showThumbnail=function(){var H=this;this.csn=_.Dg();_.KL("fmth");_.rT.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.Ns(_.rT,function(){H.loadingStartTimeMs=(0,_.Zt)();var C=_.mY(H.hostElement).querySelector("#thumbnail");C.complete?H.displayMouseOverImage():C.addEventListener("load",_.uA(H,H.displayMouseOverImage))},150):_.yQ(_.mY(this.hostElement).querySelector("#play"),"show",!0)};
_.F.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.F.onTap=function(){this.removeVideoPreview()};
_.F.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var H=this.videoId,C=this.csn,S=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,w=this.startTimeMs,A=this.hasVideoPreview,J=_.Qh(this.trackingParams),c={isMovingThumbnail:A};A&&w>0&&(S>0&&(c.movingThumbnailLoadingDurationMs=Math.round(S)),c.durationHoveredMs=Math.round((0,_.Zt)()-w));H&&(c.videoId=H);_.sa(C,J,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:c});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.F.removeVideoPreview=function(){_.rT.cancelJob(this.mouseOverDelayJobId);_.rT.cancelJob(this.fadeInImageDelayJobId);var H=_.mY(this.hostElement).querySelector("#thumbnail");_.yQ(H,"fade-in",!1);H.removeEventListener("load",_.uA(this,this.displayMouseOverImage));H=_.mY(this.hostElement).querySelector("#play");_.yQ(H,"fade-in",!1);_.yQ(H,"show",!1)};
_.F.displayMouseOverImage=function(){var H=_.mY(this.hostElement).querySelector("#thumbnail"),C=_.mY(this.hostElement).querySelector("#play");this.isImageAvailable(H)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.Zt)(),this.startTimeMs=(0,_.Zt)(),this.fadeInImageDelayJobId=_.Ns(_.rT,function(){_.yQ(H,"fade-in",!0)},50)):_.yQ(C,"fade-in",!0)};
_.F.computeThumbnail=function(H,C){var S;H&&H.movingThumbnailDetails&&H.movingThumbnailDetails.thumbnails&&C?S=_.TG(H.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):S=C?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(S)return _.D4(S)};
_.F.isImageAvailable=function(H){return!(!H.src||H.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||H.naturalWidth===120)};
HG.prototype.onTap=HG.prototype.onTap;HG.prototype.dataChanged=HG.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],HG.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],HG.prototype,"ytComponentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],HG.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],HG.prototype,"csn",void 0);_.D([_.V(),_.K("design:type",Object)],HG.prototype,"trackingParams",void 0);
_.D([_.V(),_.K("design:type",String)],HG.prototype,"videoId",void 0);_.D([_.V(),_.K("design:type",Boolean)],HG.prototype,"isAttachedAndDataSet",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],HG.prototype,"dataChanged",null);_.D([_.Gz("click"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],HG.prototype,"onTap",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],HG);
_.B(HG,"ytd-moving-thumbnail-renderer",function(){if(jti!==void 0)return jti;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return jti=H},{mode:1});var wcV;_.cf=function(H){this.hostElement=H;this.eventSink=null;this.eventList=[]};
_.cf.prototype.shouldForward=function(){var H,C;return(C=(H=this.eventSink)==null?void 0:H.isConnected)!=null?C:document.body.contains(this.eventSink)};
_.cf.prototype.start=function(H,C){this.eventSink&&this.stop();for(var S=0;S<H.length;S++)this.hostElement.addEventListener(H[S],_.uA(this,this.forwardEvent));var w;this.eventSink=(w=C.hostElement)!=null?w:C;this.eventList=H};
_.cf.prototype.stop=function(){for(var H=0;H<this.eventList.length;H++)this.hostElement.removeEventListener(this.eventList[H],_.uA(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.cf.prototype.forwardEvent=function(H,C){this.shouldForward()&&(H.stopPropagation(),this.eventSink instanceof Element?_.M3(this.eventSink,H.type,C):_.Bn(new _.X0("eventSink is not an element")))};_.ie={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.cf(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(H,C){this.forwarder_.start(H,C)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var Ct=function(){return _.X.apply(this,arguments)||this};
_.G(Ct,_.X);_.F=Ct.prototype;_.F.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=_.rh("HTML_DIR")==="rtl"?"right":"left"};
_.F.dataChanged=function(){this.popupOpen=!1};
_.F.computeAriaLabel=function(H){return _.e(H,ASY).label};
_.F.onTap=function(H){H.stopPropagation();H.preventDefault();this.data.command&&_.JA().resolve(_.ZQ).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.F.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.F.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
Ct.prototype.onPopupClosed=Ct.prototype.onPopupClosed;Ct.prototype.onPopupOpened=Ct.prototype.onPopupOpened;Ct.prototype.onTap=Ct.prototype.onTap;Ct.prototype.dataChanged=Ct.prototype.dataChanged;_.D([_.v(_.ie.YtEventForwardingBehavior),_.K("design:type",Object)],Ct.prototype,"eventForwardingBehavior",void 0);_.D([_.v(_.xA),_.K("design:type",Object)],Ct.prototype,"ironButtonState",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Ct.prototype,"componentBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],Ct.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,value:-1}),_.K("design:type",Number)],Ct.prototype,"tabindex",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.K("design:type",Object)],Ct.prototype,"ariaLabel",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],Ct.prototype,"disableTooltips",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],Ct.prototype,"popupOpen",void 0);
_.D([_.V(),_.K("design:type",Element)],Ct.prototype,"eventSink",void 0);_.D([_.lA("#tooltip"),_.K("design:type",Object)],Ct.prototype,"tooltip",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ct.prototype,"dataChanged",null);_.D([_.Gz("tap"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Ct.prototype,"onTap",null);
_.D([_.Gz("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ct.prototype,"onPopupOpened",null);_.D([_.Gz("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ct.prototype,"onPopupClosed",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],Ct);
_.B(Ct,"ytd-thumbnail-overlay-button-renderer",function(){if(wcV!==void 0)return wcV;var H=document.createElement("template");_.f(H,'\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>');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return wcV=H},{mode:1});var A5Y;var S_=function(){return _.X.apply(this,arguments)||this};
_.G(S_,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],S_.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],S_.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],S_.prototype,"disableAnimation",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],S_.prototype,"rounded",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],S_.prototype,"transparentBackground",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],S_.prototype,"noPadding",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],S_);
_.B(S_,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(A5Y!==void 0)return A5Y;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return A5Y=H},{mode:1});var J5d;var sr=function(){return _.X.apply(this,arguments)||this};
_.G(sr,_.X);sr.prototype.computeIconPosition=function(H){return this.get("iconPosition",H)||null};
sr.prototype.computeIconStyle=function(H){return this.get("iconStyle",H)||null};
sr.prototype.computeIsIconStyleFilled=function(H){if(!H)return!1;var C;return H.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((C=H.icon)==null?void 0:C.iconType)==="ERROR_BLACK"};
_.D([_.V(),_.K("design:type",Object)],sr.prototype,"data",void 0);_.D([_.V({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.K("design:type",Object)],sr.prototype,"iconPosition",void 0);_.D([_.V({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.K("design:type",Object)],sr.prototype,"iconStyle",void 0);_.D([_.V({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],sr.prototype,"iconStyleFilled",void 0);
_.D([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],sr);
_.B(sr,"ytd-thumbnail-overlay-icon-renderer",function(){if(J5d!==void 0)return J5d;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return J5d=H},{mode:1});var FGY;var j_=function(){return _.X.apply(this,arguments)||this};
_.G(j_,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],j_.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],j_.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],j_);
_.B(j_,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(FGY!==void 0)return FGY;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return FGY=H},{mode:1});var ZQP;var wn=function(){var H=_.X.apply(this,arguments)||this;H.isPreviewLoading=!1;return H};
_.G(wn,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],wn.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],wn.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],wn.prototype,"isPreviewLoading",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],wn);
_.B(wn,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(ZQP!==void 0)return ZQP;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return ZQP=H},{mode:1});var c57;var AK=function(){return _.X.apply(this,arguments)||this};
_.G(AK,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],AK.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],AK.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],AK);
_.B(AK,"ytd-thumbnail-overlay-pinking-renderer",function(){if(c57!==void 0)return c57;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return c57=H},{mode:1});var YoV;var JK=function(){var H=_.X.apply(this,arguments)||this;H.disableTooltips=!1;H.isLoading=!1;H.useExpandableTooltip=!1;H.toggled=!1;H.hovered=!1;H.mouseoverDelayJobId=0;H.toggleDelayJobId=0;H.expandAnimationDelayJobId=0;return H};
_.G(JK,_.X);_.F=JK.prototype;_.F.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");_.mY(this.hostElement).querySelector("#tooltip").position=_.rh("HTML_DIR")==="rtl"?"right":"left"};
_.F.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.rT.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.rT.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.rT.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.F.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.rT.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.rT.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.rT.cancelJob(this.expandAnimationDelayJobId)};
_.F.computeIcon=function(H,C,S){return(H=S?C:H)&&H.iconType?_.bJ(H.iconType):void 0};
_.F.computeAriaLabel=function(H,C,S){return _.e(S?C:H,ASY).label};
_.F.computeTooltip=function(H,C,S){return S?C:H};
_.F.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.F.computeIconOnHover=function(H,C){if((H==null?0:H.iconType)&&!C)return _.bJ(H.iconType)};
_.F.onTap=function(H){var C=this;H.stopPropagation();H.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(H=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(H),this.useExpandableTooltip&&(this.toggleDelayJobId=_.Ns(_.rT,function(){C.hovered=!1;C.data&&!C.data.toggledServiceEndpoint&&(C.expandAnimationDelayJobId=_.Ns(_.rT,function(){C.set("data.isToggled",
!1)},200))},2E3))};
_.F.onMouseenter=function(){var H=this;this.mouseoverDelayJobId=_.Ns(_.rT,function(){H.hovered=!0},300)};
_.F.onMouseleave=function(){_.rT.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.F.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.F.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.F.onServiceRequestCompleted=function(H,C){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(C)||this.set("data.isToggled",!this.data.isToggled)};
_.F.serviceRequestWasSuccessful=function(H){return _.e(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.Jd)?H.data.status==="STATUS_SUCCEEDED":!0};
JK.prototype.onServiceRequestCompleted=JK.prototype.onServiceRequestCompleted;JK.prototype.onPopupClosed=JK.prototype.onPopupClosed;JK.prototype.onPopupOpened=JK.prototype.onPopupOpened;JK.prototype.onMouseleave=JK.prototype.onMouseleave;JK.prototype.dataChanged=JK.prototype.dataChanged;_.D([_.v(_.xA),_.K("design:type",Object)],JK.prototype,"ironButtonState",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],JK.prototype,"ytComponentBehavior",void 0);
_.D([_.v(_.ie.YtEventForwardingBehavior),_.K("design:type",Object)],JK.prototype,"ytEventForwardingBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],JK.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.K("design:type",Object)],JK.prototype,"ariaLabel",void 0);_.D([_.V(),_.K("design:type",Object)],JK.prototype,"disableTooltips",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],JK.prototype,"popupOpen",void 0);_.D([_.V(),_.K("design:type",Object)],JK.prototype,"isLoading",void 0);_.D([_.V(),_.K("design:type",Element)],JK.prototype,"eventSink",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],JK.prototype,"useExpandableTooltip",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.K("design:type",Object)],JK.prototype,"toggled",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],JK.prototype,"hovered",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.K("design:type",Object)],JK.prototype,"iconOnHover",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],JK.prototype,"dataChanged",null);
_.D([_.Gz("mouseleave"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],JK.prototype,"onMouseleave",null);_.D([_.Gz("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],JK.prototype,"onPopupOpened",null);_.D([_.Gz("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],JK.prototype,"onPopupClosed",null);
_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.j4]),_.K("design:returntype")],JK.prototype,"onServiceRequestCompleted",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],JK);
_.B(JK,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(YoV!==void 0)return YoV;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return YoV=H},{mode:_.mn("kevlar_poly_si_batch_j053")?1:2});var zQ1;var M5i=_.n(function(H){var C=H.data;var S=H.thumbnailSize;var w=function(){return C().enableSegmentView};
return _.q("yt-thumbnail-overlay-progress-bar-view-model",{class:_.eJ("ytThumbnailOverlayProgressBarHost",function(){return m8U(S==null?void 0:S())})},_.q(_.T,{cond:w,
then:function(){return _.q("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.q("div",{class:_.pn("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+C().startPercent+"%"}}),_.q("div",{class:_.pn("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+C().segmentDurationPercent+"%"}},_.q("div",{class:_.pn("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.q("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.q("div",null," ",function(){return C().segmentLabel})),_.q("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.q("div",{class:_.pn("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.q(_.T,{cond:function(){return!w()&&C().startPercent},
then:function(){var A={};return _.q("div",{class:_.pn("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(A.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.E("web_enable_modern_progress_bar_overlay"),A))},_.q("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+C().startPercent+"%"}}))}}))},"X");
M5i.idomCompat=!0;var qoM=_.n(function(H){var C=_.E5(),S=_.Lu(function(A){var J,c,Y;a:{var M=(J=H.data())==null?void 0:J.animationActivationTargetId;J=((c=H.data())==null?void 0:c.animationActivationEntityKey)||"";c=(Y=H.data())==null?void 0:Y.animationActivationEntitySelectorType;if(J&&M)switch(c){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":A=YzD(A,J);Y=_.JA().resolve(_.AA(_.Df));M=!!(A&&A.videoId===M&&(Y==null?0:Y.isMiniplayerActive()));M={activated:M,playAnimation:M&&A.playerState==="PLAYER_STATE_PLAYING"};
break a}M=void 0}return M});
_.d6(function(){var A;if((A=S())==null?0:A.activated){var J;if((J=S())==null?0:J.playAnimation){var c;(c=C.lottieEl)==null||c.goToAndPlay(0)}else{var Y;(Y=C.lottieEl)==null||Y.goToAndStop(0)}}},"DbQiXd");
var w=function(){var A,J=!((A=S())==null||!A.activated);if(H.data()){A=H.data();var c=void 0;A.icon&&(c=_.U4i(A.icon),c=CS7(c));var Y=void 0,M;if((M=A.backgroundColor)==null?0:M.lightTheme){var m;Y={backgroundColor:xF((m=A.backgroundColor)==null?void 0:m.lightTheme,"0.8")}}if(A.text||c||J){if(J&&A.lottieData&&C){m=A.lottieData;var W,y,N;M={animationConfig:{name:m.url,path:m.url,autoplay:(W=m.settings)==null?void 0:W.autoplay,loop:(N=(y=m.settings)==null?void 0:y.loop)!=null?N:!0},animationRef:C}}else M=
void 0;if(J)W=17;else b:switch(A.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":W=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":W=19;break b;default:W=17}J={type:W,text:J&&A.animatedText?A.animatedText:A.text,icon:c,customColors:Y,animation:M}}else J=void 0}else J=void 0;return J};
return _.q("yt-thumbnail-badge-view-model",{class:_.eJ("ytThumbnailBadgeViewModelHost",H.class)},_.q(_.T,{cond:w,then:function(){return _.q(_.Tu,{data:function(){return w()}})}}))},"Y");var TD1=_.n(function(H){var C={},S={};return _.q("yt-thumbnail-bottom-overlay-view-model",{class:_.eJ("ytThumbnailBottomOverlayViewModelHost",(C.ytThumbnailBottomOverlayViewModelHostBackground=function(){return H.data().enableGradientBackground},C))},_.q(_.V4,{data:function(){return H.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(w){return _.q(M5i,{data:w.data,
thumbnailSize:H.thumbnailSize})}}),_.q("div",{class:_.eJ("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var w;
return Wew((w=H.thumbnailSize)==null?void 0:w.call(H))},(S.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var w;
return(w=H.isClip)==null?void 0:w.call(H)},S.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var w;
return!_.E("web_enable_modern_progress_bar_overlay")&&((w=H.thumbnailSize)==null?void 0:w.call(H))==="small"},S))},_.q(_.V4,{data:function(){return H.data().badge}},{thumbnailBadgeViewModel:function(w){return _.q(qoM,{data:w.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.q(_.V4,{data:function(){return H.data().badges}},{thumbnailBadgeViewModel:function(w){return _.q(qoM,{data:w.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Z");
TD1.idomCompat=!0;_.qs(TD1,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.Yb,thumbnailSize:_.Yb,isClip:_.Yb}});var leE={calledOnce:!1,state:"visible"},Vqp={calledOnce:!1,state:"hidden"};var Fx=_.n(function(H){var C=H.data;var S=H.className;H=H.alwaysShow;var w=_.bkV(),A={};return _.q("thumbnail-hover-overlay-view-model",{el:_.Zl(_.Bt(function(){return C().rendererContext})),
class:_.eJ("ytThumbnailHoverOverlayViewModelHost",S,(A.ytThumbnailHoverOverlayViewModelHostForceHover=H,A)),"aria-label":function(){var J;return(J=_.e(C().rendererContext,_.VB))==null?void 0:J.label},
role:function(){return _.nn(C().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.nn(C().rendererContext)!==void 0?0:void 0},
"on:keypress":w},_.q("div",{class:_.eJ("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(C().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var J="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:J="ytThumbnailHoverOverlayViewModelStyleCover"}return J})},_.q(_.T,{cond:function(){return C().icon},
then:function(J){return _.q(_.Jg,{data:J,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.q(_.T,{cond:function(){return C().text},
then:function(J){return _.q(_.uZ,{text:J,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"$");
Fx.idomCompat=!0;var mPM=_.n(function(H){var C=H.data;return _.q(_.V4,{data:function(){return C==null?void 0:C().overlays}},{thumbnailHoverOverlayViewModel:Fx})},"aa");
mPM.idomCompat=!0;var WG_={};var y5P=_.n(function(H){var C=H.data;var S=H.image;var w=H.state;var A=H.iconType;var J=H.overlays;var c=H.isOverlay;var Y=_.ja("div");H=_.Z(_.mB(!0,void 0,"AA4e7b"));var M=H.next().value,m=H.next().value,W=function(){return!!C().onTap},y=_.Jx(A,"LIVE");
_.d6(function(){var b=C();requestAnimationFrame(function(){if(Y.value===null)var u=!0;else{var O=Y.value;u=b.badgeText;var d=XxU(b.size);u in WG_?O=WG_[u]:(O=O.clientWidth,WG_[u]=O);(u=O>d)?Y.value.style.display="none":Y.value.style.visibility="visible"}m(u)})},"vNdN8b");
var N=function(){var b={};return b["yt-spec-avatar-shape__image"]=!0,b["yt-spec-avatar-shape__image--ads-app"]=C().type===1,b["yt-spec-avatar-shape__image--inscribed-square"]=C().type===2,b};
return _.q("yt-avatar-shape",null,_.q("div",{el:_.Zl(d8V(W,{keydown:function(b){if(b.key==="Enter"){var u;(u=b.currentTarget)==null||u.click()}},
click:function(b){var u,O;return void((O=(u=C()).onTap)==null?void 0:O.call(u,b))}})),
class:function(){var b={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},u=C();b=(b[u.clusterLayoutConfig?pxD(u.clusterLayoutConfig):kOD(u.size)]=!0,b["yt-spec-avatar-shape__button--tappable"]=W(),b);(u=C().avatarButtonCustomClassName)&&(b[u]=!0);return _.pn(b)},
"aria-label":function(){return W()?C().accessibilityText:""},
role:function(){return W()?"button":void 0},
tabindex:function(){return W()?0:void 0}},_.q("div",{class:function(){var b,u=C(),O=w==null?void 0:w(),d=c==null?void 0:c(),p=!((b=u.decorations)==null||!b.includes(2)||u.size!=="medium"&&u.size!=="large"),k=u.size==="tiny"||u.size==="extra-small",R,L,t,g,ii={};
b=(ii["yt-spec-avatar-shape--live-ring"]=!!(((R=u.decorations)==null?0:R.includes(0))&&nLV(u.size)),ii["yt-spec-avatar-shape--stories-watched"]=p&&!(O==null||!O.storiesWatched),ii["yt-spec-avatar-shape--stories-unwatched"]=p&&!(O==null?0:O.storiesWatched),ii["yt-spec-avatar-shape--background-border"]=rX0(u.decorations)&&!k,ii["yt-spec-avatar-shape--background-border-thin"]=rX0(u.decorations)&&k,ii["yt-spec-avatar-shape__on-select-border"]=!((L=u.decorations)==null||!L.includes(4)),ii["yt-spec-avatar-shape__white-border"]=
!((t=u.decorations)==null||!t.includes(5)),ii["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((g=u.decorations)==null?0:g.includes(5))&&k),ii["yt-spec-avatar-shape--is-overlay"]=!!d,ii);return _.pn(b)},
style:function(){a:{var b=C().clusterLayoutConfig;if(b){b:{var u=b.numAvatarsInCluster;var O=b.avatarIndex;if(O!==u-1){switch(b.clusterSize){case "small":b="32";break;case "medium":b="36";break;case "40":b="40";break;default:u=void 0;break b}u="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+b+"x"+b+"_avatars_"+u+"_index_"+O+".svg"}else u=void 0}if(u){u=_.vb({"-webkit-mask-image":"url("+u+")","mask-image":"url("+u+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}u=void 0}return u}},_.q("div",{class:function(){var b={};
var u=C();b=(b[u.clusterLayoutConfig?Pl6(u.clusterLayoutConfig):$8i(u.size)]=!0,b["yt-spec-avatar-shape--no-margin"]=rX0(C().decorations),b["yt-spec-avatar-shape--square"]=C().type===2,b);return _.pn(b)}},_.q(_.Jg,{data:S,
alt:function(){return!W()&&C().accessibilityText?C().accessibilityText:""},
targetWidth:function(){return h47(C().size)},
targetHeight:function(){return h47(C().size)},
className:function(){return _.pn(N())}}),_.q(_.T,{cond:function(){var b;
return((b=C().decorations)==null?void 0:b.includes(0))&&nLV(C().size)},
then:function(){return _.q("div",{class:function(){var b={};b=(b["yt-spec-avatar-shape__live-badge"]=!0,b["yt-spec-avatar-shape__live-badge--badge-small"]=C().size==="small",b["yt-spec-avatar-shape__live-badge--badge-medium"]=C().size==="medium"||C().size==="48",b["yt-spec-avatar-shape__live-badge--badge-large"]=C().size==="large",b["yt-spec-avatar-shape__live-badge--badge-extra-large"]=C().size==="extra-large"||C().size==="extra-extra-large"||C().size==="giant",b);return _.pn(b)}},_.q(_.T,{cond:function(){return C().badgeText},
then:function(b){return _.q("div",{class:"yt-spec-avatar-shape__badge-text",el:Y},b)}}),_.q(_.T,{cond:M,
then:function(){return _.q("div",{class:"yt-spec-avatar-shape__badge-icon"},_.q(_.lm,{icon:y,size:function(){a:switch(C().size){case "extra-large":var b=16;break a;default:b=13}return b}}))}}))}}),_.q(_.T,{cond:function(){var b,u;
return((b=C().decorations)==null?void 0:b.includes(1))||((u=C().decorations)==null?void 0:u.includes(0))&&!nLV(C().size)},
then:function(){return _.q("div",{class:function(){var b=C(),u,O,d={};var p=(d["yt-spec-avatar-shape__live-dot"]=!((u=b.decorations)==null||!u.includes(0)||nLV(b.size)),d["yt-spec-avatar-shape__new-content"]=!((O=b.decorations)==null||!O.includes(1)),d);return _.pn(p)}})}}),_.q(_.T,{cond:function(){return!!J},
then:function(){return _.q("div",{class:function(){var b={};b=Object.assign((b["yt-spec-avatar-shape__image-overlays"]=!0,b),N());return _.pn(b)}},J==null?void 0:J())}})))))},"ba");
y5P.idomCompat={callbacks:{overlays:!0}};_.ZT=_.n(function(H){function C(){S().endpoint&&_.Im(S().endpoint)}
var S=H.data;var w=H.decorations;var A=H.avatarButtonCustomClassName;var J=H.isOverlay;var c=H.clusterLayoutConfig;return _.q("avatar-view-model",null,_.q(_.T,{cond:function(){return S().image},
then:function(Y){return _.q(y5P,{data:function(){return D8E({data:S(),onTap:S().endpoint?C:void 0,decorations:w==null?void 0:w(),badgeText:void 0,accessibilityText:S().accessibilityText,avatarButtonCustomClassName:A==null?void 0:A(),clusterLayoutConfig:c==null?void 0:c()})},
image:Y,iconType:"RADAR_LIVE",overlays:function(){return _.q(mPM,{data:S})},
isOverlay:J})}}))},"ca");
_.ZT.idomCompat=!0;_.cG=_.n(function(H){var C=H.data;H=H.className;var S=_.ja("yt-decorated-avatar-view-model"),w=function(){return _.e(C().avatar,_.Dz)},A=_.EF(function(){var J,c=C(),Y=w(),M=_.nn(C().rendererContext),m=(J=S.value)!=null?J:void 0,W;
if(Y){m={data:c,avatar:Y,onTap:M,element:m};J=m.data;c=m.avatar;Y=m.onTap;M=m.element;m=m.commandController;Y=Y?gLZ(Y,M,m):void 0;M=[];J.liveData&&M.push(0);var y;m=(y=J.liveData)==null?void 0:y.liveBadgeText;y=(W=_.e(J.rendererContext,_.VB))==null?void 0:W.label;W=D8E({data:c,onTap:Y,decorations:M,badgeText:m,accessibilityText:y?y:J.a11yLabel})}else W={size:"medium"};return W},void 0,"c00kWd");
return _.q("yt-decorated-avatar-view-model",{class:_.eJ("ytDecoratedAvatarViewModelHost",H),el:S},_.q(_.T,{cond:function(){var J;return(J=w())==null?void 0:J.image},
then:function(J){return _.q(y5P,{data:A,image:J,iconType:"RADAR_LIVE",overlays:function(){return _.q(mPM,{data:w})}})}}))},"da");
_.cG.idomCompat=!0;_.Yn=_.n(function(H){var C=function(){var Y;return Object.assign({},H.data(),(Y=H.overrides)==null?void 0:Y.call(H))},S=function(){return _.rw(C().rendererContext)},w=function(){var Y=C().avatars,M,m;
return(m=(M=(Y==null?0:Y[0])?_.e(Y[0],_.Dz):void 0)==null?void 0:M.avatarImageSize)!=null?m:"AVATAR_SIZE_UNKNOWN"},A=function(){return LeZ(C())},J=function(){if(C().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var Y=void 0;
else if((Y=H.decorations)==null?0:Y.call(H))Y=H.decorations();else{Y=C();var M=0;Y.avatars&&(M+=Y.avatars.length);Y.decoratedText&&(M+=1);Y=M>1?[3]:[]}return Y},c={};
return _.q("yt-avatar-stack-view-model",{el:_.Zl(_.Bt(function(){return C().rendererContext})),
class:_.eJ("yt-avatar-stack-view-model",H.className,(c["yt-avatar-stack-view-model--tappable"]=S,c["yt-avatar-stack-view-model--is-overlay"]=H.isOverlay,c["yt-avatar-stack-view-model--medium-text"]=H.useMediumText,c)),tabindex:function(){return S()?0:void 0},
role:function(){return S()?"link":void 0},
"aria-label":function(){var Y,M;return(M=(Y=_.e(C().rendererContext,_.VB))==null?void 0:Y.label)!=null?M:""}},_.q(_.T,{cond:function(){var Y;
return C().avatars&&!((Y=H.hideAvatar)==null?0:Y.call(H))},
then:function(){return _.q("div",{class:"yt-avatar-stack-view-model__avatars"},_.q(_.T,{cond:function(){return C().decoratedText},
then:function(Y){var M={};return _.q("div",{class:_.eJ("yt-avatar-stack-view-model__text-container",(M["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return w()==="AVATAR_SIZE_XXS"||w()==="AVATAR_SIZE_XS"},M["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var m;
return((m=H.isOverlay)==null?void 0:m.call(H))&&(w()==="AVATAR_SIZE_XXS"||w()==="AVATAR_SIZE_XS")},M)),
style:_.vb({width:function(){return A().avatarSizeInPx+"px"},
height:function(){return A().avatarSizeInPx+"px"}})},_.q(_.uZ,{text:Y,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.q("div",{style:function(){return _.vb(A().avatarStackStyle)()},
class:function(){return A().avatarStackClass}},_.q(_.V4,{data:function(){return A().avatars.reverse()}},{avatarViewModel:function(Y,M){return _.q("div",{style:function(){var m,W;
return _.vb((W=(m=A()).avatarStyle)==null?void 0:W.call(m,M()))()},
class:function(){return A().avatarClass}},_.q(_.ZT,{data:Y.data,
decorations:J,avatarButtonCustomClassName:function(){return A().avatarButtonCustomClassName},
isOverlay:H.isOverlay,clusterLayoutConfig:function(){var m,W;return(W=(m=A()).clusterLayoutConfig)==null?void 0:W.call(m,M())}}))},
decoratedAvatarViewModel:function(Y,M){return _.q("div",{style:function(){var m,W;return _.vb((W=(m=A()).avatarStyle)==null?void 0:W.call(m,M()))()},
class:function(){return A().avatarClass}},_.q(_.cG,{data:Y.data}))}})))}}),_.q(_.T,{cond:function(){return C().text},
then:function(Y){return _.q(_.uZ,{text:Y,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"ea");
_.Yn.idomCompat=!0;_.qs(_.n(function(H){var C=H.data;var S=H.thumbnailSize;return _.q("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.q("div",{class:_.eJ("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return U8Z(S==null?void 0:S())})},_.q(_.V4,{data:function(){return C().avatarStack}},{avatarStackViewModel:function(w){return _.q(_.Yn,{data:w.data,
decorations:[5]})}})))},"fa"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.GH,
thumbnailSize:_.GH}});var ND1=_.n(function(H){H=_.FH(H,{hidden:!1});var C=H.data;return _.q("yt-thumbnail-overlay-title-view-model",{class:"ytThumbnailOverlayTitleViewModelHost",hidden:H.hidden},_.q(_.uZ,{text:function(){return C().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.q(_.T,{cond:function(){return C().subtitle},
then:function(){return _.q(_.uZ,{text:function(){return C().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}}))},"ga");
ND1.idomCompat=!0;_.qs(ND1,"yt-thumbnail-overlay-title-view-model",{props:{data:_.GH,hidden:_.GH}});var bQi=_.n(function(H){H=_.FH(H,{isClip:!1});var C=H.data,S=H.thumbnailSize,w={};return _.q("yt-thumbnail-overlay-badge-view-model",{class:_.eJ("yt-thumbnail-overlay-badge-view-model",function(){a:switch(C().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var A="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:A="yt-thumbnail-overlay-badge-view-model--bottom-end"}return A},function(){return R4D(S==null?void 0:S())},(w["yt-thumbnail-overlay-badge-view-model--clip"]=H.isClip,
w))},_.q(_.V4,{data:function(){return C().thumbnailBadges}},{thumbnailBadgeViewModel:function(A){return _.q(qoM,{data:A.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"ha");
bQi.idomCompat=!0;_.qs(bQi,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.GH,thumbnailSize:_.GH,isClip:_.GH}});var Eqd=_.n(function(H){var C=H.data;H=H.hidden;var S=_.EF(function(){return C().indicatorCount||0},void 0,"AbKnMc"),w={};
return _.q("yt-page-indicator-view-model",{class:_.eJ("ytPageIndicatorViewModelHost",(w.ytPageIndicatorViewModelIndicatorHidden=function(){return!C().indicatorCount},w)),
hidden:H},_.q(_.Vq,{each:function(){return Array(S())}},function(A,J){var c={};
return _.q("div",{class:_.eJ("ytPageIndicatorViewModelIndicator",(c.ytPageIndicatorViewModelIndicatorSelected=function(){return C().selectedIndex===J()},c))})}))},"ia");
Eqd.idomCompat=!0;_.qs(Eqd,"yt-page-indicator-view-model",{props:{data:_.GH,hidden:_.GH}});var zY=function(){var H=_.X.apply(this,arguments)||this;H.eventSink=function(){return H};
H.disableInteraction=!1;H.noRoundedCorners=!1;H.isPreviewLoading=!1;H.isOriginalAspectRatio=!1;H.computedObjectFit=!1;H.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return H};
_.G(zY,_.X);_.F=zY.prototype;
_.F.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:_.E("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"}}};
_.F.onImageLoaded=function(){this.loaded=!0};
_.F.onImageUnloaded=function(){this.loaded=!1};
_.F.computeRichThumbnail=function(H,C,S,w){if(H&&C&&!w&&!_.E("disable_moving_thumbs_handling")&&!S)return C};
_.F.computeImageWidth=function(H,C){return C||9999};
_.F.computeIsOriginalAspectRatio=function(H){return H};
_.F.computeIsLive=function(H){if(H==null?0:H.badges)for(var C=0;C<H.badges.length;C++){var S=H.badges[C];if(S.metadataBadgeRenderer&&S.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(H==null?0:H.thumbnailOverlays)for(C=0;C<H.thumbnailOverlays.length;C++)if(S=H.thumbnailOverlays[C],S.thumbnailOverlayTimeStatusRenderer&&S.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.F.computeObjectFit=function(H,C){return C||(H?"CONTAIN":"")};
_.F.computeNavigationEndpoint=function(H,C,S){return H?C:S};
_.F.computeHasClip=function(H){H=_.Z(H||[]);for(var C=H.next();!C.done;C=H.next())if(C.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.F.computeOverlayColor=function(H){var C;return(H==null?0:(C=H.darkColorPalette)==null?0:C.section2Color)?H.darkColorPalette.section2Color:H==null?void 0:H.sampledThumbnailColor};
_.JJ.Object.defineProperties(zY.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return bA0(this.width)}}});
zY.prototype.onImageUnloaded=zY.prototype.onImageUnloaded;zY.prototype.onImageLoaded=zY.prototype.onImageLoaded;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],zY.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],zY.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(xM7),_.K("design:type",Object)],zY.prototype,"ytdThumbnailBehavior",void 0);
_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],zY.prototype,"componentBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],zY.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],zY.prototype,"data",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],zY.prototype,"circular",void 0);
_.D([_.V({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.K("design:type",Object)],zY.prototype,"richThumbnail",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.K("design:type",Boolean)],zY.prototype,"hasClip",void 0);_.D([_.V(),_.K("design:type",Object)],zY.prototype,"eventSink",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],zY.prototype,"queued",void 0);
_.D([_.V({value:!1}),_.K("design:type",Boolean)],zY.prototype,"richGridThumbnail",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],zY.prototype,"useExpandableTooltip",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],zY.prototype,"useUntranslatedNavigationEndpoint",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],zY.prototype,"disableInteraction",void 0);
_.D([_.V({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.K("design:type",Object)],zY.prototype,"computedNavigationEndpoint",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],zY.prototype,"nowPlayingEqualizerOnly",void 0);_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],zY.prototype,"hidePlaybackStatus",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",String)],zY.prototype,"objectFit",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],zY.prototype,"noRoundedCorners",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],zY.prototype,"watchFeedThumbnail",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],zY.prototype,"isPreviewLoading",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.K("design:type",Object)],zY.prototype,"isOriginalAspectRatio",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.K("design:type",Object)],zY.prototype,"computedObjectFit",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.K("design:type",Boolean)],zY.prototype,"isLiveVideo",void 0);
_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],zY.prototype,"loaded",void 0);_.D([_.V({computed:"computeOverlayColor(data.thumbnail)"}),_.K("design:type",Object)],zY.prototype,"overlayColor",void 0);_.D([_.V({selector:_.mbp}),_.K("design:type",Boolean)],zY.prototype,"inlinePreviewIsEnabled",void 0);_.D([_.V(),_.K("design:type",Number)],zY.prototype,"width",void 0);
_.D([_.l("inlinePreviewIsEnabled"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],zY.prototype,"isPreviewDisabled",null);_.D([_.l("width"),_.K("design:type",String),_.K("design:paramtypes",[])],zY.prototype,"thumbnailSize",null);_.D([_.Gz("image-loaded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],zY.prototype,"onImageLoaded",null);
_.D([_.Gz("image-unloaded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],zY.prototype,"onImageUnloaded",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-thumbnail"})],zY);
var eQb=_.Tp()(zY,"ytd-thumbnail",function(){if(zQ1===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);zQ1=H}H=zQ1;return H},{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 x87=function(H){var C=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$14931_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$14931_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(S){uqP(C,S)};
this.onLockupMouseLeaveFn=function(S){S=S.relatedTarget;var w,A;((w=document.getElementsByTagName("ytd-video-preview"))==null?0:(A=w.item(0))==null?0:A.contains(S))||(C.terminateVideoPreview(),Mq(C))};
this.onThumbnailMouseDownFn=function(){C.terminateVideoPreview();Mq(C)};
this.onTouchStart=function(){C.JSC$14931_touched=!0};
this.mediaRenderer=H.mediaRenderer;this.thumbnailElement=H.thumbnailElement;this.lockupElement=H.lockupElement;this.videoPreviewOptsInput=H.videoPreviewOpts;Gki(this);qq(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)):
_.Bn(Error("Kh")):_.Bn(Error("Lh")):fIP(this)},Cd=function(H){fIP(H);
var C;(C=H.lockupElement)==null||C.removeEventListener("mouseenter",H.onMouseMoveFn);var S;(S=H.lockupElement)==null||S.removeEventListener("mouseleave",H.onLockupMouseLeaveFn);var w;(w=H.lockupElement)==null||w.removeEventListener("touchstart",H.onTouchStart);var A;(A=H.thumbnailElement)==null||A.removeEventListener("mousedown",H.onThumbnailMouseDownFn);Mq(H)},Gki=function(H){H.inlinePreviewIsEnabledForUser=_.AG().getState().ui.inlinePreviewIsEnabled;
H.unsubscribeFromInlinePreviewIsEnabled=_.Uf(_.AG(),_.mbp,function(C){(H.inlinePreviewIsEnabledForUser=C)||Mq(H)});
H.JSC$14931_unsubscribeFromInlinePreviewIsActive=_.Uf(_.AG(),_.TQp,function(C){(H.inlinePreviewIsActive=C)||Mq(H)})},fIP=function(H){H.unsubscribeFromInlinePreviewIsEnabled();
H.unsubscribeFromInlinePreviewIsEnabled=function(){};
H.JSC$14931_unsubscribeFromInlinePreviewIsActive();H.JSC$14931_unsubscribeFromInlinePreviewIsActive=function(){}},uqP=function(H,C){C.buttons>0||(C=_.YB("kevlar_lockup_hover_delay",-1),H.JSC$14931_touched&&C>=0?(_.rT.cancelJob(H.videoPreviewJobId),H.videoPreviewJobId=_.Ns(_.rT,function(){vqP(H)},C),H.JSC$14931_touched=!1):vqP(H))},pXu=function(H){H.videoPreviewJobId=_.Ns(_.rT,function(){return _.z(function(C){return C.yield(lId(H,{isAutoplay:!0}),0)})})},vqP=function(H){!H.previewTriggered&&qq(H)&&
(H.inlinePreviewIsActive&&H.terminateVideoPreview(),H.previewTriggered=!0,H.mediaRenderer.isInlinePreviewTriggered=!0,_.rT.cancelJob(H.videoPreviewJobId),H.videoPreviewJobId=_.Ns(_.rT,function(){return _.z(function(C){return C.yield(lId(H),0)})}))},lId=function(H,C){C=C===void 0?{}:C;
var S=C.isAutoplay===void 0?!1:C.isAutoplay;var w,A,J,c;return _.z(function(Y){if(Y.nextAddress==1){if(!qq(H))return Y.return();w=H.getVideoPreviewOpts();if(!w)return Y.return();S&&(w.isAutoplay=!0);return(J=(A=_.m7(H.mediaRenderer.hostElement,"yt-open-video-preview-action",[w]))&&A[0])?Y.yield(A[0],3):Y.jumpTo(2)}Y.nextAddress!=2&&(J=Y.yieldResult===1);if(J){var M=(c=H.mediaRenderer)==null?void 0:c.data;M&&(aeW(M)?delete M.inlinePlayerData:"inlinePlaybackEndpoint"in M&&delete M.inlinePlaybackEndpoint)}_.oT(Y)})};
x87.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var H,C;if((C=(H=this.videoPreviewOptsInput)==null?void 0:H.videoPreviewData)!=null)H=C;else if(H=this.mediaRenderer.data)if(aeW(H))H={inlinePlaybackEndpoint:_.L7(H.inlinePlayerData.onVisible),navigationEndpoint:_.L7(H.onTap),thumbnail:"image"in H?H.image:H.thumbnail,thumbnailOverlays:void 0,accessibilityText:Ie$(H)};else if("multipleInlinePlaybackEndpoint"in H){var S=_.e(_.e(H.multipleInlinePlaybackEndpoint,b3W),EU1);if(S!=
null&&S.playerDescriptors){C=[];S=_.Z(S.playerDescriptors);for(var w=S.next();!w.done;w=S.next())w=w.value,C.push({inlinePlaybackEndpoint:w.inlinePlaybackEndpoint,navigationEndpoint:w.navigationEndpoint,thumbnail:w.thumbnail,thumbnailOverlays:w.thumbnailOverlays,accessibilityText:Ie$(H)});H=C}else H=void 0}else H={inlinePlaybackEndpoint:H.inlinePlaybackEndpoint,navigationEndpoint:H.navigationEndpoint,thumbnail:H.thumbnail,thumbnailOverlays:H.thumbnailOverlays,accessibilityText:Ie$(H)};else H=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:H,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var qq=function(H){var C;if(C=H.inlinePreviewIsEnabledForUser)C=(H=H.mediaRenderer.data)?"inlinePlaybackEndpoint"in H&&H.inlinePlaybackEndpoint||aeW(H)&&H.inlinePlayerData||"multipleInlinePlaybackEndpoint"in H&&H.multipleInlinePlaybackEndpoint?!0:!1:!1;return C};
x87.prototype.terminateVideoPreview=function(){_.q3(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var Mq=function(H){_.rT.cancelJob(H.videoPreviewJobId);H.inlinePreviewIsActive=!1;H.previewTriggered=!1;H.mediaRenderer.isInlinePreviewTriggered=!1};var V5d=_.xC(["#"]),TY=function(){var H=_.X.apply(this,arguments)||this;H.isDisabled=!1;return H};
_.G(TY,_.X);_.F=TY.prototype;_.F.configureRendererStamper=function(){return{"data.menu":RN,"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"}}}};
_.F.attached=function(){this.updateInlinePreviewHoverListeners()};
_.F.detached=function(){this.clearInlinePreviewHoverListeners()};
_.F.getMetadata=function(H){var C=[];if(H.metadataText&&Object.keys(H.metadataText).length>0){var S=this.ytRendererBehavior.getSimpleString(H.metadataText);H.upcomingEventData&&H.upcomingEventData.upcomingEventText&&(S=_.Pt(S,Number(H.upcomingEventData.startTime)));C.push(S)}else H.shortViewCountText&&C.push(this.ytRendererBehavior.getSimpleString(H.shortViewCountText)),H.publishedTimeText&&C.push(this.ytRendererBehavior.getSimpleString(H.publishedTimeText)),H.upcomingEventData&&H.upcomingEventData.upcomingEventText&&
(S=this.ytRendererBehavior.getSimpleString(H.upcomingEventData.upcomingEventText),C.push(_.Pt(S,Number(H.upcomingEventData.startTime))));return C};
_.F.calculateBylineText=function(H){return H.shortBylineText?H.shortBylineText:H.bylineText?H.bylineText:null};
_.F.calculateIsDisabled=function(H){return!!H.isDisabled};
_.F.computeHrefWithDefault=function(H){return this.ytComponentBehavior.computeHref_(H)||_.weZ(V5d)};
_.F.onDetailsTap=function(H){var C=this.data&&this.data.navigationEndpoint;C&&!_.ww(_.Ar(H)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.E("kevlar_grid_video_renderer_killswitch")?_.M3(this.hostElement,"yt-navigate",{endpoint:C}):this.ytComponentBehavior.resolveCommand(C))};
_.F.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.F.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14938_inlinePreviewHoverListener=Kn({mediaRenderer:this,lockupElement:_.mY(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.mY(this.hostElement).querySelector("ytd-thumbnail")})};
_.F.clearInlinePreviewHoverListeners=function(){var H;(H=this.JSC$14938_inlinePreviewHoverListener)==null||Cd(H)};
_.F.computeThumbnailWidth=function(H,C){return C&&C>0?C:H?360:210};
_.F.computeNumBadgesInRow=function(H){var C;return((C=H.badges)==null?void 0:C.length)||0};
_.F.computeShowChannelThumbnail=function(H,C){var S;return C&&!!(H==null?0:(S=H.channelThumbnailSupportedRenderers)==null?0:S.channelThumbnailWithLinkRenderer)};
_.JJ.Object.defineProperties(TY.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.JSC$14938_inlinePreviewHoverListener)==null?0:qq(H))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
TY.prototype.dataChanged=TY.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],TY.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],TY.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],TY.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.m4),_.K("design:type",Object)],TY.prototype,"ytdDismissibleItemBehavior",void 0);
_.D([_.v(_.uU),_.K("design:type",Object)],TY.prototype,"ytdLockupBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],TY.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],TY.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Boolean)],TY.prototype,"noEndpoints",void 0);_.D([_.V({computed:"calculateBylineText(data)"}),_.K("design:type",Object)],TY.prototype,"bylineText",void 0);
_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],TY.prototype,"isSearch",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],TY.prototype,"isDownloading",void 0);_.D([_.V({reflectToAttribute:!0,value:0}),_.K("design:type",Number)],TY.prototype,"width",void 0);_.D([_.V({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.K("design:type",Object)],TY.prototype,"isDisabled",void 0);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],TY.prototype,"dataChanged",null);_.D([_.l("lockupIsHovered"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],TY.prototype,"isHovered",null);_.D([_.h({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],TY);
_.B(TY,"ytd-grid-video-renderer",function(){if(iQM!==void 0)return iQM;var H=document.createElement("template");_.f(H,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" hidden="[[!bylineText]]" class="style-scope ytd-grid-video-renderer"><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" num-badges-in-row="[[computeNumBadgesInRow(data)]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return iQM=H},{mode:_.mn("kevlar_poly_si_batch_j047")?1:2});var oq1;var mS=function(){var H=_.X.apply(this,arguments)||this;H.roundedContainer=!0;H.skipRoundingTop=!1;H.disableTopPadding=!1;H.amsterdamEnabled=_.E("enable_desktop_amsterdam_info_panels");H.extractOverlay=!1;return H};
_.G(mS,_.X);mS.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
mS.prototype.onClick=function(H){var C,S=(C=this.data)==null?void 0:C.sourceEndpoint;!_.ww(_.Ar(H),this.hostElement,["A".toString()])&&S&&_.M3(this.hostElement,"yt-navigate",{endpoint:S})};
_.JJ.Object.defineProperties(mS.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 H;return!((H=this.data)==null||!H.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var H,C;return(C=(H=this.data)==null?void 0:H.paragraphMaxLines)!=null?C:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],mS.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],mS.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],mS.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],mS.prototype,"showVerticalDividers",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],mS.prototype,"roundedContainer",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],mS.prototype,"skipRoundingTop",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],mS.prototype,"disableTopPadding",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],mS.prototype,"amsterdamEnabled",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],mS.prototype,"extractOverlay",void 0);
_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],mS.prototype,"showMetadataAtTop",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],mS.prototype,"showMetadataBelowTitle",null);_.D([_.V({reflectToAttribute:!0}),_.l("data.menu"),_.K("design:type",Object),_.K("design:paramtypes",[])],mS.prototype,"hasMenu",null);
_.D([_.V({reflectToAttribute:!0}),_.l("data.truncateParagraphs"),_.K("design:type",Object),_.K("design:paramtypes",[])],mS.prototype,"truncateParagraphs",null);_.D([_.V({reflectToAttribute:!0}),_.l("data.paragraphMaxLines"),_.K("design:type",Number),_.K("design:paramtypes",[])],mS.prototype,"paragraphMaxLines",null);
_.D([_.V({type:_.E("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.l("data.background"),_.K("design:type",Object),_.K("design:paramtypes",[])],mS.prototype,"background",null);_.D([_.h({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],mS);
_.B(mS,"ytd-info-panel-content-renderer",function(){if(oq1!==void 0)return oq1;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return oq1=H},{mode:_.mn("kevlar_poly_si_batch_j076")?1:2});var OQV;var XcW;var Qtd;var dPY;var WG=function(){return _.X.apply(this,arguments)||this};
_.G(WG,_.X);WG.prototype.computeStyle=function(H){return H};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],WG.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],WG.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.K("design:type",String)],WG.prototype,"style_",void 0);_.D([_.Lx({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],WG);
_.B(WG,"yt-channel-thumbnail-with-link-renderer",function(){if(dPY===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;Qtd===void 0&&(Qtd=document.createElement("template"));var w=Qtd;S.call(C,w.content.cloneNode(!0),H.content.firstChild);dPY=H}H=dPY;return H},{mode:2});var yg=function(){return _.X.apply(this,arguments)||this};
_.G(yg,_.X);yg.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"}}}};
yg.prototype.computeTitleStyle=function(H){return H||null};
yg.prototype.computeAvatarStyle=function(H){return H||null};
yg.prototype.computeShowNavigationButton=function(H,C){return!(H==null||!H.navigationButton||C)};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],yg.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],yg.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],yg.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.K("design:type",String)],yg.prototype,"titleStyle",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.K("design:type",String)],yg.prototype,"avatarStyle",void 0);_.D([_.V(),_.K("design:type",Boolean)],yg.prototype,"hideNavigationButton",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],yg.prototype,"isModernSd",void 0);_.D([_.h({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],yg);
_.B(yg,"ytd-rich-list-header-renderer",function(){if(XcW!==void 0)return XcW;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return XcW=H},{mode:_.mn("kevlar_poly_si_batch_j058")?1:2});var Nq=function(){return _.X.apply(this,arguments)||this};
_.G(Nq,_.X);Nq.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]]"}}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Nq.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Nq.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Nq.prototype,"data",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],Nq.prototype,"isSearch",void 0);_.D([_.h({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],Nq);
_.B(Nq,"ytd-preview-card-renderer",function(){if(OQV!==void 0)return OQV;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return OQV=H},{mode:1});var P1Y;var be=function(){return _.X.apply(this,arguments)||this};
_.G(be,_.X);be.prototype.configureRendererStamper=function(){return{"data.menu":RN}};
be.prototype.dataChanged=function(){var H=this.get("colorExtractionPalette.section1Color",this.data);H=_.Iw(H);_.Ed(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":H})};
be.prototype.computeCardStyle=function(H){return this.get("style.value",H)||null};
be.prototype.dataChanged=be.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],be.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],be.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.m4),_.K("design:type",Object)],be.prototype,"ytdDismissibleItemBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],be.prototype,"data",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.K("design:type",String)],be.prototype,"cardStyle",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],be.prototype,"dataChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],be);
_.B(be,"ytd-compact-channel-recommendation-card-renderer",function(){if(P1Y!==void 0)return P1Y;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return P1Y=H},{mode:1});var $PU;var pcU;var Er=function(){var H=_.X.apply(this,arguments)||this;H.alignAuto=!1;H.collapsed=!0;H.isToggled=!1;H.alwaysCollapsed=!1;H.canToggle=!0;H.collapsedHeight=80;H.disableToggle=!1;H.alwaysToggleable=!1;H.reversed=!1;H.shouldUseNumberOfLines=!1;H.recomputeOnResize=!1;H.canToggleJobId=0;H.lastReversed=!1;return H};
_.G(Er,_.X);_.F=Er.prototype;_.F.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.F.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.F.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var H=_.mY(this.hostElement),C=H.childNodes,S=document.createDocumentFragment(),w=H.childNodes.length-1;w>=0;w--)_.mY(S).appendChild(C[w]);_.E("enable_shadydom_free_scoped_node_methods")?_.WY(this.hostElement).appendChild(S):H.appendChild(S)}};
_.F.ready=function(){var H=this;_.HI(function(){H.initChildrenObserver()},1)};
_.F.attached=function(){var H;(H=this.resizeObserver)==null||H.observe(this.content)};
_.F.detached=function(){this.detachObserver()};
_.F.toggle=function(H,C){this.canToggle&&(this.isToggled=C,_.M3(this.hostElement,"yt-refit"),H&&H.stopPropagation())};
_.F.reset=function(){this.childrenChanged()};
_.F.onIronResize=function(){this.recomputeOnResize&&!_.E("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.F.computeIsMoreVisible=function(H,C){return H&&!C};
_.F.computeShouldUseNumberOfLines=function(H){try{return!!H&&window.CSS.supports("-webkit-line-clamp","1")}catch(C){}return!1};
_.F.computeIsLessVisible=function(H,C){return H&&C};
_.F.observeCollapsedHeightAndMaxLines=function(){var H=this.collapsedHeight,C=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.Ed(this.hostElement,{"--ytd-expander-max-lines":""+C,"--ytd-expander-collapsed-height":""}):_.Ed(this.hostElement,{"--ytd-expander-collapsed-height":H+"px","--ytd-expander-max-lines":""})};
_.F.handleMoreTap=function(H){this.disableToggle||(_.M3(this.hostElement,"yt-expander-more-tapped"),this.toggle(H,!0))};
_.F.handleLessTap=function(H){_.M3(this.hostElement,"yt-expander-less-tapped");this.toggle(H,!1)};
_.F.initChildrenObserver=function(){var H=this;this.observer=new MutationObserver(function(){H.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.E("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.I$(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var C;(C=H.resizeThrottle)==null||C.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.F.childrenChanged=function(){var H=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){yi(function(){H.canToggleJobId=0;H.calculateCanCollapse()})}))};
_.F.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};
_.F.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.F.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uQ("collapsed-changed",this.collapsed))};
_.F.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uQ("is-toggled-changed",this.isToggled))};
_.F.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uQ("can-toggle-changed",this.canToggle))};
_.JJ.Object.defineProperties(Er.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
Er.prototype.canToggleChangedForBinding=Er.prototype.canToggleChangedForBinding;Er.prototype.isToggledChangedForBinding=Er.prototype.isToggledChangedForBinding;Er.prototype.collapsedChangedForBinding=Er.prototype.collapsedChangedForBinding;Er.prototype.observeCollapsedHeightAndMaxLines=Er.prototype.observeCollapsedHeightAndMaxLines;Er.prototype.onIronResize=Er.prototype.onIronResize;Er.prototype.reversedChanged=Er.prototype.reversedChanged;Er.prototype.toggledChanged=Er.prototype.toggledChanged;
Er.prototype.alwaysToggleableChanged=Er.prototype.alwaysToggleableChanged;_.D([_.v(_.Ix),_.K("design:type",Object)],Er.prototype,"ironResizableBehavior",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Er.prototype,"alignAuto",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Er.prototype,"collapsed",void 0);_.D([_.V(),_.K("design:type",Object)],Er.prototype,"isToggled",void 0);_.D([_.V(),_.K("design:type",Object)],Er.prototype,"alwaysCollapsed",void 0);
_.D([_.V(),_.K("design:type",Object)],Er.prototype,"canToggle",void 0);_.D([_.V(),_.K("design:type",Object)],Er.prototype,"collapsedHeight",void 0);_.D([_.V(),_.K("design:type",Object)],Er.prototype,"disableToggle",void 0);_.D([_.V(),_.K("design:type",Object)],Er.prototype,"alwaysToggleable",void 0);_.D([_.V(),_.K("design:type",Object)],Er.prototype,"reversed",void 0);_.D([_.V(),_.K("design:type",Number)],Er.prototype,"maxNumberOfLines",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.K("design:type",Object)],Er.prototype,"shouldUseNumberOfLines",void 0);_.D([_.V(),_.K("design:type",Object)],Er.prototype,"recomputeOnResize",void 0);_.D([_.lA("#content"),_.K("design:type",HTMLDivElement)],Er.prototype,"content",void 0);_.D([_.XJ("alwaysToggleable"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Er.prototype,"alwaysToggleableChanged",null);
_.D([_.XJ("isToggled"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Er.prototype,"toggledChanged",null);_.D([_.l("canToggleJobId"),_.K("design:type",Object),_.K("design:paramtypes",[])],Er.prototype,"isResetting",null);_.D([_.fx("reversed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Er.prototype,"reversedChanged",null);
_.D([_.Gz("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Er.prototype,"onIronResize",null);_.D([_.fx("maxNumberOfLines","collapsedHeight"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Er.prototype,"observeCollapsedHeightAndMaxLines",null);_.D([_.fx("collapsed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Er.prototype,"collapsedChangedForBinding",null);
_.D([_.fx("isToggled"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Er.prototype,"isToggledChangedForBinding",null);_.D([_.fx("canToggle"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Er.prototype,"canToggleChangedForBinding",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-expander"})],Er);
_.B(Er,"ytd-expander",function(){if(pcU!==void 0)return pcU;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return pcU=H},{mode:1});var e_=function(){return _.X.apply(this,arguments)||this};
_.G(e_,_.X);e_.prototype.computeIsCarousel=function(H){return!!H.isCarousel};
e_.prototype.observeLightsourcePalette=function(){var H,C=(H=this.data)==null?void 0:H.vibrantsourceColorPaletteData;C&&_.pu(this.hostElement,C)};
e_.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
e_.prototype.observeLightsourcePalette=e_.prototype.observeLightsourcePalette;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],e_.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],e_.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],e_.prototype,"data",void 0);_.D([_.V({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],e_.prototype,"isCarousel",void 0);
_.D([_.fx("data.vibrantsourceColorPaletteData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],e_.prototype,"observeLightsourcePalette",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],e_);
_.B(e_,"ytd-media-upsell-renderer",function(){if($PU!==void 0)return $PU;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return $PU=H},{mode:2});var kkn;var ue=function(){var H=_.X.apply(this,arguments)||this;H.JSC$14965_playerEvents=new Map;H.listeningToPlayer=!1;H.startX=0;H.active=!1;H.shouldShowButtons=_.E("web_buttons_hidden_killswitch");H.isHighlighted=!1;H.useHighlightStyling=_.E("web_enable_deeper_metadata_highlight_styling");H.modern=_.E("kevlar_modern_sd");H.enableProblemWalkthrough=_.E("problem_walkthrough_sd");return H};
_.G(ue,_.X);_.F=ue.prototype;
_.F.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}}}}}};
_.F.created=function(){this.JSC$14965_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.F.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.uA(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.uA(this,this.onActiveUpdate))};
_.F.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.uA(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.uA(this,this.onActiveUpdate))};
_.F.onDataChanged=function(){this.removePlayerListeners()};
_.F.onColorPaletteChange=function(){var H={},C;if(_.$F()==="USER_INTERFACE_THEME_DARK"&&((C=this.data)==null?0:C.darkColorPalette)){var S=this.data.darkColorPalette;H["--ytd-macro-markers-list-item-background-color"]=_.aw(this.get("section2Color",S))}else{var w;_.$F()==="USER_INTERFACE_THEME_LIGHT"&&((w=this.data)==null?0:w.lightColorPalette)&&(S=this.data.lightColorPalette,H["--ytd-macro-markers-list-item-background-color"]=_.aw(this.get("section3Color",S)))}S?(H["--ytd-macro-markers-list-item-title-color"]=
_.aw(this.get("primaryTitleColor",S)),H["--ytd-macro-markers-list-item-secondary-color"]=_.aw(this.get("secondaryTitleColor",S)),H["--ytd-macro-markers-list-item-timestamp-background-color"]=_.aw(this.get("section1Color",S)),this.customButtonProperties={customColors:{color:_.aw(this.get("primaryTitleColor",S))}},this.useColorSampling=!0):(H["--ytd-macro-markers-list-item-background-color"]="initial",H["--ytd-macro-markers-list-item-title-color"]="initial",H["--ytd-macro-markers-list-item-secondary-color"]=
"initial",H["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.Ed(this.hostElement,H)};
_.F.onEndpointMouseDown=function(H){this.startX=H.clientX};
_.F.onEndpointClick=function(H){var C=this,S,w,A;return _.z(function(J){if(J.nextAddress==1){if(C.startX!==H.clientX)return H.preventDefault(),J.return();C.data&&C.ytRendererBehavior.logExplicitClick(C.data);if(!C.seekWithAnimationOnClick)return J.jumpTo(0);if(H.button!==0||H.shiftKey||H.altKey||H.metaKey||H.ctrlKey||_.ww(_.Ar(H),C.hostElement,["BUTTON".toString()]))return J.return();H.stopPropagation();H.preventDefault();return C.data?J.yield(_.ct().getPlayerPromise(),3):J.return()}S=J.yieldResult;
A=(w=_.e(C.data.onTap,_.sX))==null?void 0:w.startTimeSeconds;A!==void 0&&S.seekToTimeWithAnimation(A*1E3,_.jt(C.data.title));_.oT(J)})};
_.F.computeLayout=function(H){return H};
_.F.computeIsHighlighted=function(H){return!!H};
_.F.computeCarouselType=function(H){return H};
_.F.hideModernCarousel=function(H){return this.modern&&this.hideThumbnail(H)};
_.F.hideThumbnail=function(H){return this.enableProblemWalkthrough&&H!==null&&H==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.F.onRepeatButtonToggle=function(H){var C=this;H.detail.toggled&&_.ct().getPlayerPromise().then(function(S){C.ytPlayerListenerBehavior.listenToPlayerEvents(S,C.JSC$14965_playerEvents);C.listeningToPlayer=!0})};
_.F.onLoopRangeChange=function(H){var C=_.mY(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(C){var S=C.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",C.polymerController.data);if(S){var w=Number(S.endTimeMs);if(Number(S.startTimeMs)!==(H==null?void 0:H.startTimeMs)||w!==(H==null?void 0:H.endTimeMs))C.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.F.removePlayerListeners=function(){var H=this;this.listeningToPlayer&&_.ct().getPlayerPromise().then(function(C){H.ytPlayerListenerBehavior.unlistenFromPlayerEvents(C,H.JSC$14965_playerEvents);H.listeningToPlayer=!1})};
_.F.onActiveUpdate=function(H){this.active=H.detail.active};
ue.prototype.onColorPaletteChange=ue.prototype.onColorPaletteChange;ue.prototype.onDataChanged=ue.prototype.onDataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],ue.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],ue.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.fT.YtPlayerListenerBehavior),_.K("design:type",_.v_)],ue.prototype,"ytPlayerListenerBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],ue.prototype,"data",void 0);_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],ue.prototype,"useCustomColors",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],ue.prototype,"active",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],ue.prototype,"shouldShowButtons",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.K("design:type",String)],ue.prototype,"layout",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.K("design:type",Object)],ue.prototype,"isHighlighted",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],ue.prototype,"useHighlightStyling",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],ue.prototype,"modern",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],ue.prototype,"enableProblemWalkthrough",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.K("design:type",String)],ue.prototype,"carouselType",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],ue.prototype,"useColorSampling",void 0);_.D([_.V(),_.K("design:type",Boolean)],ue.prototype,"seekWithAnimationOnClick",void 0);_.D([_.V(),_.K("design:type",Object)],ue.prototype,"customButtonProperties",void 0);
_.D([_.lA("#repeat-button"),_.K("design:type",HTMLElement)],ue.prototype,"repeatButton",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ue.prototype,"onDataChanged",null);_.D([_.fx("data.lightColorPalette","data.darkColorPalette"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ue.prototype,"onColorPaletteChange",null);_.D([_.h({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],ue);
_.B(ue,"ytd-macro-markers-list-item-renderer",function(){if(kkn!==void 0)return kkn;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return kkn=H},{mode:1});var hQY;var nqW;var GY=function(){return _.X.apply(this,arguments)||this};
_.G(GY,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],GY.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],GY.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],GY);
_.B(GY,"ytd-title-and-button-list-header-renderer",function(){if(nqW!==void 0)return nqW;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return nqW=H},{mode:1});var r5Y;var BDb=new _.W4("BUTTON_RENDERER_WIZ_TOKEN"),DP1=new _.W4("BUTTON_RENDERER_TOKEN");_.ft=_.n(function(H){var C=_.JA().resolve(_.AA(BDb));if(C)return _.q(C,Object.assign({},H,{overrides:H.buttonOverrides}));var S=_.JA().resolve(DP1);return S?_.q(dNW,null,function(){return _.q(wd,null,function(){var w,A,J,c,Y,M,m,W,y,N,b,u;return void S(H.data(),{onButtonClickCallback:H.onButtonClickCallback,shouldShowIcons:(w=H.shouldShowIcons)==null?void 0:w.call(H),icon:(A=H.icon)==null?void 0:A.call(H),processAllEndpoints:(J=H.processAllEndpoints)==null?void 0:J.call(H),preventDefault:(c=H.preventDefault)==
null?void 0:c.call(H),stopPropagation:(Y=H.stopPropagation)==null?void 0:Y.call(H),disableButtonRendererClickHandling:(M=H.disableButtonRendererClickHandling)==null?void 0:M.call(H),className:(m=H.className)==null?void 0:m.call(H),buttonOverrides:(W=H.buttonOverrides)==null?void 0:W.call(H),forceModernIconButton:(y=H.forceModernIconButton)==null?void 0:y.call(H),isSubscribe:(N=H.isSubscribe)==null?void 0:N.call(H),alignByText:(b=H.alignByText)==null?void 0:b.call(H),forceDisabled:(u=H.forceDisabled)==
null?void 0:u.call(H)})})}):_.q(_.F9,null)},"ja");
_.ft.idomCompat=!0;var KGP=_.n(function(H){var C=H.data,S=_.Jx(H.useSquareAspectRatio,!1);return _.q("dismissed-mini-game-card-view-model",null,_.q(_.T,{cond:function(){var w,A;return(w=C().responseText)==null?void 0:(A=w.runs)==null?void 0:A.length},
then:function(){var w={};return _.q("div",{class:_.eJ("yt-mini-game-card-view-model__dismissed-card",(w["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!S()},w["yt-mini-game-card-view-model--dismissed-square-card"]=S,w))},_.q("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.q(_.T,{cond:function(){return C().responseText.runs[0].text},
then:function(A){return _.q("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:A},A)}}),_.q(_.V4,{data:function(){return C().buttons}},{buttonRenderer:_.ft,
buttonViewModel:_.rc})))}}))},"ka");var aI7=_.n(function(H){H=_.FH(H,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var C=H.data,S=H.useFullWidth,w=H.isDesktopWeb,A=H.addSearchResultTopMargin,J=function(){return C().layout},c=function(){return C().title},Y=function(){return C().metadataText?C().metadataText:C().genre},M=function(){return C().channelName},m=function(){return C().image},W=function(){return C().colorPalette},y=function(){return C().actionButton},N=function(){return C().overflowButton},
b=function(){return C().avatar},u=function(){var k={};
k=_.eJ("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(k["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return w()},k));
return _.q("div",{class:k},_.q(t5i,{imageData:m,colorPalette:W}),_.q(LG1,{onTap:function(){return C().onTap},
imageData:m,accessibilityText:function(){return C().accessibilityText},
overlayBadgeText:function(){return C().overlayBadgeText},
iconName:function(){return C().iconName},
unplayableInlinePlaybackIconName:function(){return C().unplayableInlinePlaybackIconName},
isDesktopWeb:w}),_.q(_.T,{cond:function(){return!w()},
then:function(){return _.q(_.F9,null,_.q(gq7,{layout:J,colorPalette:W,isDesktopWeb:w,overflowButton:N,avatar:b,onTap:function(){return C().onTap},
genre:Y,title:c,channelName:M}),_.q(UP7,{actionButton:y}))}}))},O=function(){var k={};
k=_.eJ((k["yt-mini-game-card-view-model--search-result-desktop"]=function(){return w()},k["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!w()},k["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return A()},k));
return _.q("div",{class:k},u(),_.q(RQ7,{description:function(){return C().description},
isDesktopWeb:w,title:c,genre:Y,onTap:function(){return C().onTap},
actionButton:y,overflowButton:N,avatar:b,channelName:M}))},d=function(){var k={};
k=_.eJ("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(k["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return w()},k["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return w()&&C().width===135},k["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return w()},k["yt-mini-game-card-view-model--big-metadata-font"]=function(){return C().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},k["yt-mini-game-card-view-model--use-full-width"]=
function(){return S()},k["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!y()},k));
return _.q("div",{class:k},_.q(IId,{colorPalette:W,isDesktopWeb:w,onTap:function(){return C().onTap},
accessibilityText:function(){return C().accessibilityText},
overlayBadgeText:function(){return C().overlayBadgeText},
iconName:function(){return C().iconName},
unplayableInlinePlaybackIconName:function(){return C().unplayableInlinePlaybackIconName},
actionButton:y,imageData:m}),_.q(gq7,{layout:J,colorPalette:W,isDesktopWeb:w,overflowButton:N,avatar:b,onTap:function(){return C().onTap},
genre:Y,title:c,channelName:M}))},p=function(){var k={};
k=_.eJ("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(k["yt-mini-game-card-view-model--square-card-desktop"]=function(){return w()},k["yt-mini-game-card-view-model--use-full-width"]=function(){return S()},k));
return _.q("div",{class:k},_.q(LG1,{onTap:function(){return C().onTap},
imageData:m,accessibilityText:function(){return C().accessibilityText},
overlayBadgeText:function(){return C().overlayBadgeText},
iconName:function(){return C().iconName},
unplayableInlinePlaybackIconName:function(){return C().unplayableInlinePlaybackIconName},
isDesktopWeb:w}),_.q(gq7,{layout:J,colorPalette:W,isDesktopWeb:w,overflowButton:N,avatar:b,onTap:function(){return C().onTap},
genre:Y,title:c,channelName:M}))};
return _.q("mini-game-card-view-model",{class:H.className},_.q(_.X9,null,_.q(_.o6,{when:function(){return J()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return d()}),_.q(_.o6,{when:function(){return J()==="MINI_APP_LAYOUT_SQUARE"}},function(){return p()}),_.q(_.o6,{when:function(){return J()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return O()})))},"la");
aI7.idomCompat=!0;var UP7=_.n(function(H){var C=_.Jx(H.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.q(_.V4,{data:H.actionButton},{buttonViewModel:function(S){return _.q("div",{class:C},_.q(_.rc,{data:S.data}))}})},"ma"),LG1=_.n(function(H){var C=H.onTap;
var S=H.imageData;var w=H.accessibilityText;var A=H.overlayBadgeText;var J=H.iconName;var c=H.unplayableInlinePlaybackIconName;H=H.isDesktopWeb;return _.q(_.$4,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:C},_.q(_.Jg,{data:S,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(w==null?void 0:w())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.q(xPM,{overlayBadgeText:A,iconName:J,unplayableInlinePlaybackIconName:c,isDesktopWeb:H}))},"na"),xPM=_.n(function(H){var C=H.overlayBadgeText;
var S=H.iconName;var w=H.unplayableInlinePlaybackIconName;var A=H.isDesktopWeb;return _.q("div",{class:"yt-mini-game-card-view-model__badge-container"},_.q(_.T,{cond:S,then:function(J){return _.q("div",{class:"yt-mini-game-card-view-model__badge"},_.q("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.q(_.lm,{icon:J,className:"yt-mini-game-card-view-model__icon",size:12}),_.q("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},C)))}}),_.q(_.T,{cond:function(){return!S()&&
C()},
then:function(){return _.q("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},C)}}),_.q(_.T,{cond:function(){return w()&&A()},
then:function(){return _.q("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.q(_.lm,{icon:w,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"oa"),t5i=_.n(function(H){var C=H.colorPalette;
var S=H.imageData;var w=function(){return C().vibrantColorPalette?C().vibrantColorPalette.section2Color:C().sectionTwoColor};
return _.q(_.F9,null,_.q("div",{class:"yt-mini-game-card-view-model__background-base",style:_.vb({"background-color":function(){return xF(w(),"1")}})}),_.q("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.vb({"background-image":function(){return"url("+S().sources[0].url+")"}})}),_.q("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.vb({background:function(){return"linear-gradient(180deg,\n    "+xF(w(),".8")+" 0%,\n    "+xF(w(),".4")+" 25%,\n    "+xF(C().vibrantColorPalette?C().vibrantColorPalette.section4Color:C().sectionFourColor,".8")+" 100%)"}})}))},"pa"),gq7=_.n(function(H){var C=H.layout;
var S=H.colorPalette;var w=H.overflowButton;var A=H.avatar;var J=H.onTap;var c=H.title;var Y=H.channelName;var M=H.genre;var m=function(){var W;return C()!=="MINI_APP_LAYOUT_SQUARE"&&((W=S())==null?0:W.textPrimaryColor)?"color: "+xF(S().textPrimaryColor,".7"):""};
return _.q("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.q(_.T,{cond:A,then:function(){return _.q("div",{class:"yt-mini-game-card-view-model__avatar"},_.q(_.V4,{data:A},{avatarViewModel:_.ZT}))}}),_.q(_.$4,{command:J,
className:"yt-mini-game-card-view-model__metadata-details"},_.q("h3",{class:"yt-mini-game-card-view-model__title",title:c},c),_.q(_.T,{cond:A,then:function(){return _.q("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.q("span",{class:"yt-mini-game-card-view-model__genre",title:Y,style:m},Y),_.q("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:m},M))},
else:function(){return _.q("span",{class:"yt-mini-game-card-view-model__genre",title:M},M)}})),_.q("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.q(_.V4,{data:w},{buttonViewModel:function(W){var y=W.data;
return _.q(_.rc,{data:function(){return Object.assign({},y(),{customFontColor:C()==="MINI_APP_LAYOUT_SINGLETON"?y().customFontColor:void 0})}})}})))},"qa"),IId=_.n(function(H){var C=H.colorPalette;
var S=H.isDesktopWeb;var w=H.onTap;var A=H.accessibilityText;var J=H.overlayBadgeText;var c=H.iconName;var Y=H.unplayableInlinePlaybackIconName;var M=H.actionButton;H=H.imageData;return _.q("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.q(t5i,{imageData:H,colorPalette:C}),_.q(LG1,{onTap:w,imageData:H,accessibilityText:A,overlayBadgeText:J,iconName:c,unplayableInlinePlaybackIconName:Y,isDesktopWeb:S}),_.q(_.T,{cond:function(){return M==null?void 0:M()},
then:function(){return _.q(UP7,{actionButton:M})}}))},"ra"),RQ7=_.n(function(H){var C=H.description;
var S=H.isDesktopWeb;var w=H.title;var A=H.genre;var J=H.onTap;var c=H.actionButton;var Y=H.overflowButton;var M=H.avatar;H=H.channelName;var m={};m=_.eJ("yt-mini-game-card-view-model--search-result-metadata-wrapper",(m["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=S,m["yt-mini-game-card-view-model--show-unplayable-on-hover"]=S,m["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!S()},m));
var W={};W=_.eJ("yt-mini-game-card-view-model__search-result-info-row",(W["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!S()},W));
return _.q("div",{class:m},_.q("div",{class:W},_.q(_.$4,{command:J,className:"yt-mini-game-card-view-model__metadata-details"},_.q("h3",{class:"yt-mini-game-card-view-model__title",title:w},w),_.q("span",{class:"yt-mini-game-card-view-model__genre",title:A},A)),_.q(UP7,{actionButton:c,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.q("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.q(_.V4,{data:Y},{buttonViewModel:_.rc}))),_.q("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.q("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.q("div",{class:"yt-mini-game-card-view-model__avatar"},_.q(_.V4,{data:M},{avatarViewModel:function(y){var N=y.data;return _.q(_.ZT,{data:function(){return Object.assign({},N(),{avatarImageSize:S()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.q(_.$4,{command:J,
className:"yt-mini-game-card-view-model__description"},_.q("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},H)),_.q(_.$4,{command:J,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.q("div",null)))),_.q(_.T,{cond:S,then:function(){return _.q(_.$4,{command:J,className:"yt-mini-game-card-view-model__description"},C)}}))},"sa");_.qs(aI7,"mini-game-card-view-model",{props:{data:_.GH,className:_.GH,useFullWidth:_.GH,isDesktopWeb:_.GH,addSearchResultTopMargin:_.GH}});_.qs(KGP,"dismissed-mini-game-card-view-model",{props:{data:_.GH,useSquareAspectRatio:_.GH}});var vG=function(){var H=_.X.apply(this,arguments)||this;H.isSearch=!1;H.isRichGrid=!1;return H};
_.G(vG,_.X);_.F=vG.prototype;_.F.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.F.dismissibleItemOnYtServiceRequestSent=function(H,C){C.actions&&this.dismissibleItemProcessActions(H,C.actions)};
_.F.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.F.dataChanged=function(){this.dismissibleItemReset()};
_.F.dismissibleItemProcessActions=function(H,C){for(var S=0;S<C.length;S++){var w=C[S];_.e(w,_.Ko)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.e(w,_.Ko)),H.stopPropagation())}};
_.F.dismissibleItemHandleReplaceEnclosingAction=function(H){this.dismissedRenderer=H.item;this.isDismissed=!0};
_.JJ.Object.defineProperties(vG.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var H;return!!this.data&&!((H=this.dismissedRenderer)==null?0:H.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.dismissedRenderer)==null||!H.notificationMultiActionRenderer)}}});
vG.prototype.dataChanged=vG.prototype.dataChanged;vG.prototype.dismissibleItemOnRequestSent=vG.prototype.dismissibleItemOnRequestSent;vG.prototype.dismissibleItemOnYtServiceRequestSent=vG.prototype.dismissibleItemOnYtServiceRequestSent;_.D([_.V(),_.K("design:type",Object)],vG.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],vG.prototype,"isSearch",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],vG.prototype,"isDismissed",void 0);
_.D([_.V(),_.K("design:type",Object)],vG.prototype,"dismissedRenderer",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],vG.prototype,"isRichGrid",void 0);_.D([_.l("data.layout"),_.K("design:type",Object),_.K("design:paramtypes",[])],vG.prototype,"useSquareAspectRatio",null);_.D([_.l("data","dismissedRenderer"),_.K("design:type",Object),_.K("design:paramtypes",[])],vG.prototype,"showCard",null);
_.D([_.l("data","dismissedRenderer"),_.K("design:type",Object),_.K("design:paramtypes",[])],vG.prototype,"showDismissed",null);_.D([_.Gz("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.IW]),_.K("design:returntype")],vG.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.D([_.Gz("yt-service-request-sent-button-renderer"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],vG.prototype,"dismissibleItemOnRequestSent",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vG.prototype,"dataChanged",null);_.D([_.Lx({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],vG);
_.B(vG,"ytd-mini-game-card-view-model",function(){if(r5Y!==void 0)return r5Y;var H=document.createElement("template");_.f(H,'\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>');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return r5Y=H},{mode:_.mn("kevlar_poly_si_batch_j081")?1:2});var HZd;var iZY;var le=function(){return _.Fj.apply(this,arguments)||this};
_.G(le,_.Fj);le.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
le.prototype.getContinuationUrl=function(H){var C={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(C.itct=this.data.clickTrackingParams);return _.i5(H,C)};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],le.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],le.prototype,"data",void 0);_.D([_.Lx({is:"yt-reload-continuation",noInjection:!0})],le);var CxW;var S9d;var Vg=function(){var H=_.X.apply(this,arguments)||this;H.notificationData={};return H};
_.G(Vg,_.X);_.F=Vg.prototype;_.F.isMenuExpanded=function(H){return H&&H.length<=1?"undefined":"false"};
_.F.dataChanged_=function(){this.selected=void 0;var H=this.computeSelectedIndex_(this.data);H>=0&&(this.selected=H);H=this.data&&this.data.length>1;_.yQ(this.hostElement,"has-items",H);_.mY(this.hostElement).querySelector("#label").tabIndex=H?0:-1};
_.F.onDropdownOpen=function(){var H=_.Dg();if(this.parentTrackingParams&&this.data){var C=_.Qh(this.parentTrackingParams);this.data.forEach(function(S){H&&C&&S.trackingParams&&(S=_.Qh(S.trackingParams),_.ak(H,C,S),_.ia(H,[S]))})}else this.parentTrackingParams||_.Bn(new _.X0("No parent tracking params passed in for yt-dropdown-menu."))};
_.F.hasNotification=function(H){var C;if(H.targetId&&((C=this.notificationData)==null?0:C.targetId)){var S;return H.targetId===((S=this.notificationData)==null?void 0:S.targetId)}};
_.F.computeSelectedIndex_=function(H){if(H)for(var C=0,S=H.length;C<S;C++)if(H[C].selected)return C;return-1};
_.F.computeLabel_=function(H){return this.data&&H!=void 0?this.data[H].title:""};
_.F.computeShowIcon_=function(H,C){return!C&&!!H};
_.F.computeVerticalOffset_=function(H){return H?36:0};
_.F.computeEndpoint_=function(H){return H.endpoint||H.navigationEndpoint};
_.F.onLabelClick_=function(H){this.data&&this.data.length<=1?H.stopPropagation():this.menuExpanded="true"};
_.F.onIronActivate_=function(H){H=H.detail.item;var C=_.mY(this.hostElement).querySelector("#repeat").itemForElement(H);if(C&&C.trackingParams){var S=_.Dg(),w=_.Qh(C.trackingParams);S&&_.Sp(S,w)}if(C&&C.serviceEndpoint)_.E("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(C.serviceEndpoint):_.WH(this.hostElement,[C.serviceEndpoint]),_.M3(this.hostElement,"yt-playlist-reloading");else a:{if((C=H.querySelector("yt-supported-renderers"))&&
(C=C.rendererElement)&&C.is=="yt-reload-continuation"){C.trigger();break a}(H=H.querySelector("yt-reload-continuation"))&&H.trigger()}};
_.F.onTap_=function(H){H.preventDefault()};
_.F.onItemTap_=function(H){this.ytEndpointBehavior.onEndpointTap_(H)};
_.F.onLinkFocus_=function(H){try{var C=H.target}catch(w){}if(C){var S=C.querySelector("tp-yt-paper-item");S&&_.iJ(this,"focus",function(){S.focus()})}};
_.F.onMenuClose_=function(){this.menuExpanded="false"};
_.F.isLabelIconActive_=function(H){return H==="true"};
_.F.computeHasSubtitle_=function(H){return!!H};
_.F.computeHrefForItem_=function(H){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(H))};
_.F.updateSelectedFromBinding=function(H){this.selected=H.detail.value};
_.JJ.Object.defineProperties(Vg.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
Vg.prototype.onMenuClose_=Vg.prototype.onMenuClose_;Vg.prototype.onTap_=Vg.prototype.onTap_;Vg.prototype.onIronActivate_=Vg.prototype.onIronActivate_;Vg.prototype.onDropdownOpen=Vg.prototype.onDropdownOpen;Vg.prototype.dataChanged_=Vg.prototype.dataChanged_;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Vg.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.tZ.YtEndpointBehavior),_.K("design:type",Object)],Vg.prototype,"ytEndpointBehavior",void 0);
_.D([_.V(),_.K("design:type",Array)],Vg.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],Vg.prototype,"parentTrackingParams",void 0);_.D([_.V(),_.K("design:type",Object)],Vg.prototype,"selected",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],Vg.prototype,"useLabel",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],Vg.prototype,"useComputedAriaLabel",void 0);_.D([_.V(),_.K("design:type",String)],Vg.prototype,"icon",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",String)],Vg.prototype,"iconLabel",void 0);_.D([_.V(),_.K("design:type",String)],Vg.prototype,"ariaLabel",void 0);_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],Vg.prototype,"disabled",void 0);_.D([_.V({computed:"isMenuExpanded(data)"}),_.K("design:type",String)],Vg.prototype,"menuExpanded",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],Vg.prototype,"closeOnActivate",void 0);
_.D([_.V({reflectToAttribute:!0,value:_.E("web_modern_buttons")}),_.K("design:type",Boolean)],Vg.prototype,"modernButtons",void 0);_.D([_.V(),_.K("design:type",Object)],Vg.prototype,"notificationData",void 0);_.D([_.l("ariaLabel, selected"),_.V(),_.K("design:type",String),_.K("design:paramtypes",[])],Vg.prototype,"computedAriaLabel",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Vg.prototype,"dataChanged_",null);
_.D([_.Gz("paper-dropdown-open"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],Vg.prototype,"onDropdownOpen",null);_.D([_.Gz("iron-activate"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],Vg.prototype,"onIronActivate_",null);_.D([_.Gz("tap"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Vg.prototype,"onTap_",null);
_.D([_.Gz("iron-overlay-closed"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],Vg.prototype,"onMenuClose_",null);_.D([_.Lx({is:"yt-dropdown-menu",disableElementRegistration:!0})],Vg);
_.B(Vg,"yt-dropdown-menu",function(){if(S9d===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;CxW===void 0&&(CxW=document.createElement("template"));var w=CxW;S.call(C,w.content.cloneNode(!0),H.content.firstChild);S9d=H}H=S9d;return H},{mode:2});var ob=function(){var H=_.X.apply(this,arguments)||this;H.hasNotification=!1;return H};
_.G(ob,_.X);ob.prototype.computeId=function(H){return H};
ob.prototype.computeHorizontalAlign=function(H){return H?"right":"left"};
ob.prototype.computeAccessibilityLabel=function(H){var C,S;return((C=H.accessibility)==null?void 0:(S=C.accessibilityData)==null?void 0:S.label)||null};
ob.prototype.notificationDataChanged=function(){var H;this.hasNotification=!!this.notificationData&&!((H=this.data)==null?0:H.icon)};
ob.prototype.notificationDataChanged=ob.prototype.notificationDataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],ob.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.TH.YtLiveChatTooltipTargetingBehavior),_.K("design:type",Object)],ob.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],ob.prototype,"data",void 0);_.D([_.V({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.K("design:type",String)],ob.prototype,"id",void 0);
_.D([_.V({value:!1}),_.K("design:type",Boolean)],ob.prototype,"isRightAligned",void 0);_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],ob.prototype,"disabled",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],ob.prototype,"closeOnActivate",void 0);_.D([_.V(),_.K("design:type",Object)],ob.prototype,"notificationData",void 0);_.D([_.V(),_.K("design:type",Object)],ob.prototype,"hasNotification",void 0);
_.D([_.V({value:!1}),_.K("design:type",Boolean)],ob.prototype,"useComputedAriaLabel",void 0);_.D([_.fx("notificationData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ob.prototype,"notificationDataChanged",null);_.D([_.Lx({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],ob);
_.B(ob,"yt-sort-filter-sub-menu-renderer",function(){if(iZY===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;HZd===void 0&&(HZd=document.createElement("template"));var w=HZd;S.call(C,w.content.cloneNode(!0),H.content.firstChild);iZY=H}H=iZY;return H},{mode:2});var slM=_.n(function(H){var C=H.data;var S=_.um(function(){var J=C().onTap;(J=_.e(J,_.tx))&&_.JA().resolve(_.ZQ).resolveCommand(J);return!1}),w=function(){return{sources:[{url:C().thumbnailUrl,
width:120,height:90}]}},A=function(){return C().rating&&C().ratingA11yLabel&&C().reviewsCount&&C().reviewsCountA11yLabel};
return _.q("place-data-view-model",null,_.q(_.T,{cond:function(){return C().placeName&&C().placeCategory},
then:function(){return _.q("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":S},_.q(_.Jg,{data:w,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.q(_.$4,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return C().onTap}},_.q("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return C().placeName}},function(){return C().placeName})),_.q("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.q(_.T,{cond:A,
then:function(){return _.q("div",{class:_.eJ("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.q("span",{class:"score",title:function(){return C().ratingA11yLabel}},function(){return C().rating}),_.q("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.q(_.lm,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.q("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return C().reviewsCountA11yLabel}},function(){return C().reviewsCount}))},
else:function(){return _.q("div",{class:_.eJ("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.q("div",{class:_.eJ("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.q("span",{class:"category",
title:function(){return C().placeCategory}},function(){return C().placeCategory}))))}}))},"ta");
slM.idomCompat=!0;_.qs(slM,"place-data-view-model",{props:{data:_.GH}});var jlP=new _.W4("INLINE_PLAYBACK_HOOK_TOKEN");var wr1=_.rW({sharedUi:_.WbW});_.R$=_.Bb(wr1)(wr1.sharedUi,{animatedThumbnailEnabledSelector:function(H){return H.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(H){return H.inlinePreviewEnabled},
currentPageTypeSelector:function(H){return H.currentPageType},
currentPageSubTypeSelector:function(H){return H.currentPageSubType},
persistentPanelVisibleSelector:function(H){return H.persistentPanelVisible}});var Aw7=function(H){this.setActiveSlideIndex=H;this.jobIds=[];this.isSlideshowPlaying=!1},ZZU=function(H,C){H.isSlideshowPlaying||(H.isSlideshowPlaying=!0,Jwi(H),FHn(H,C,0))},Jwi=function(H){_.Ns(_.rT,function(){H.setActiveSlideIndex(0)},1)},FHn=function(H,C,S){H.jobIds.push(_.Ns(_.rT,function(){var w=S<C-1?S+1:0;
H.setActiveSlideIndex(w);FHn(H,C,w)},1800))};var cw7=new _.W4("IMAGE_ON_LOAD_HANDLER_TOKEN");var Y91=_.n(function(H){return _.q("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.q(_.T,{cond:function(){var C;return(C=H.data())==null?void 0:C.thumbnail},
then:function(C){return _.q(_.Jg,{data:C,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ua");_.zIi=_.n(function(H){var C=H.data;var S=H.lockupExperiments;H={};return _.q("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.q("div",{class:_.eJ("ytThumbnailOverlayButtonViewModelButton",(H.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var w;return S&&((w=S())==null?void 0:w.useLegacySizedIconButton)},H))},_.q(_.V4,{data:function(){return C().overlayButton}},{buttonViewModel:function(w){return _.q(_.rc,{data:w.data,
buttonOverrides:function(){var A;return S&&((A=S())==null?0:A.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"va");
_.zIi.idomCompat=!0;var Mb7=_.n(function(H){return _.q("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.um(function(C){C.preventDefault();return!1})},_.q(_.V4,{data:function(){return H.data().buttons}},{toggleButtonViewModel:function(C){return _.q("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.q(_.Jv,{data:C.data}))}}))},"wa");
Mb7.idomCompat=!0;var q91=_.n(function(H){var C=function(){var S;return((S=_.e(H.data().rendererContext,_.VB))==null?void 0:S.label)||""};
return _.q("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.q(_.T,{cond:function(){return H.data().image},
then:function(){return _.q("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.q(_.Jg,{data:function(){return H.data().image},
alt:C}))}}),_.q(_.T,{cond:function(){return H.data().text},
then:function(){return _.q("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return H.data().text})}}))},"xa");var Tpd;Tpd=_.R$.animatedThumbnailEnabledSelector;_.Or=_.n(function(H){var C=[],S=function(){var N,b;return bA0((N=H.width)==null?void 0:N.call(H),(b=H.height)==null?void 0:b.call(H))},w=_.JA().resolve(_.AA(cw7)),A=_.sW("yt-thumbnail-view-model",function(){C.push("elRef.value set");
var N;(N=H.playbackRef)==null||N.call(H,{thumbnailElRef:A,thumbnail:H.data().image,thumbnailOverlays:H.data().overlays,thumbnailSize:S()})});
_.$T(function(){C.push("onInit");_.PN(function(){C.push("onCleanup")})});
var J=_.Lu(Tpd),c=function(){var N,b;return(b=(N=H.aspectRatio)==null?void 0:N.call(H))!=null?b:0},Y=function(){return(H.data().image?_.gNu(H.data().image):c())<=1&&c()===0},M=function(){return Y()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},m=function(){A.value||_.Bn(new _.X0("Thumbnail elRef.value is null",C.join("\n")));
w&&A.value&&w(A.value)},W=function(){var N,b;
return((N=H.hovered)==null?void 0:N.call(H))&&S()!=="large"&&((b=H.data().overlays)==null?void 0:b.some(function(u){return _.e(u,SYn)}))},y={};
return _.q("yt-thumbnail-view-model",{class:_.eJ("ytThumbnailViewModelHost",H.className,function(){return iQE(c())},function(){var N,b;
a:{var u=S(),O=(N=H.disableRounding)==null?void 0:N.call(H);N=(b=H.isClip)==null?void 0:b.call(H);if(!O&&!N)switch(u){case "large":b="ytThumbnailViewModelLarge";break a;case "small":b="ytThumbnailViewModelSmall";break a;default:b="ytThumbnailViewModelMedium";break a}b=void 0}return b},(y.ytThumbnailViewModelCinematic=Y,y)),
style:_.vb({"background-color":function(){var N,b=Y()?(N=H.data().backgroundColor)==null?void 0:N.lightTheme:void 0;return b?xF(b,"1"):void 0}}),
el:A},_.q(_.T,{cond:Y,then:function(){return _.q("div",{class:"ytThumbnailViewModelBlurredImage"},_.q(_.Jg,{data:function(){return H.data().image},
alt:"",contentMode:M,targetWidth:H.width,onload:m}))}}),_.q("div",{class:"ytThumbnailViewModelImage"},_.q(_.Jg,{data:function(){return H.data().image},
alt:"",contentMode:M,targetWidth:H.width,onload:m}),null),_.q(_.V4,{data:function(){return W()?void 0:H.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:ND1,thumbnailOverlayBadgeViewModel:function(N){return _.q(bQi,{data:N.data,thumbnailSize:S,isClip:H.isClip})},
thumbnailBottomOverlayViewModel:function(N){return _.q(TD1,{data:N.data,thumbnailSize:S,isClip:H.isClip})},
thumbnailOverlayFullViewModel:q91,thumbnailOverlayButtonViewModel:function(N){return _.q(_.zIi,{data:N.data,lockupExperiments:H.lockupExperiments})}}),_.q(_.V4,{data:function(){var N;
return((N=H.hovered)==null?0:N.call(H))?H.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(N){return _.q(Fx,{data:N.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:Mb7}),_.q(_.V4,{data:function(){var N;return((N=H.hovered)==null?0:N.call(H))&&J()?H.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:Y91}),_.q(_.T,{cond:H.isClip,then:function(){return _.q("div",{class:"ytPinkingNsHost"},_.q("svg",{class:"ytPinkingNsPinkingLeft"},_.q("defs",null,_.q("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.q("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.q("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.q("svg",{class:"ytPinkingNsPinkingRight"},_.q("defs",null,_.q("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.q("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.q("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"ya");
_.Or.idomCompat={callbacks:{playbackRef:!0}};var muV=_.n(function(H){var C=_.Z(_.mB(-1,void 0,"RW2Ole")),S=C.next().value,w=C.next().value;_.$T(function(){var A=new Aw7(w);ZZU(A,H.data().thumbnails.length);_.PN(function(){if(A.isSlideshowPlaying){A.isSlideshowPlaying=!1;for(var J=A.jobIds,c=0,Y=J.length;c<Y;c++)_.rT.cancelJob(J[c]);A.jobIds.length=0}})});
return _.q("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.q(_.V4,{data:function(){return H.data().thumbnails}},{thumbnailViewModel:function(A,J){return _.q("div",{class:function(){var c=!H.data().primaryThumbnail,Y=J(),M=S(),m=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
c&&Y===0&&m.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");Y<=M&&m.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return m.join(" ")}},_.q(_.Or,{data:A.data,
disableRounding:H.disableRounding}))}}))},"za");
muV.idomCompat=!0;var C1Z=new _.W4("DWELL_DETECTOR_REGISTRY_TOKEN");var yw1=_.n(function(H){var C=SoE(H.triggeringElement),S=function(){return!!H.data().primaryThumbnail},w=function(){var J,c=(J=H.data())==null?void 0:J.maxHeight,Y;
J=(Y=H.maxHeight)==null?void 0:Y.call(H);return c!=null&&J!=null?Math.min(c,J):J!=null?J:c},A=function(){var J=w();
if(J){var c;if(S()&&(c=H.includeStackHeight)!=null&&c.call(H)){var Y;c=((Y=H.doubleStack)==null?0:Y.call(H))?8:4}else c=0;J=J-c-1;if(!(J<0)){Y=Math;c=Y.ceil;var M,m;var W=NfV((m=(M=H.aspectRatio)==null?void 0:M.call(H))!=null?m:0);return c.call(Y,J*W)}}};
return _.q("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.vb({height:function(){return w()?w()+"px":void 0},
width:function(){return A()?A()+"px":void 0}})},_.q(WH1,{stackEnabled:S,
thumbnailSize:function(){var J,c;return bA0((J=H.width)==null?void 0:J.call(H),(c=H.height)==null?void 0:c.call(H))},
doubleStack:H.doubleStack,stackColor:function(){return H.data().stackColor},
includeStackHeight:H.includeStackHeight},_.q(_.V4,{data:function(){return H.data().primaryThumbnail}},{thumbnailViewModel:function(J){var c={};
return _.q(_.Or,{data:J.data,width:H.width,height:H.height,aspectRatio:H.aspectRatio,disableRounding:H.disableRounding,className:_.eJ((c.ytCollectionThumbnailViewModelHostHasStacks=S,c)),hovered:H.hovered,playbackRef:H.playbackRef})}}),_.q(_.T,{cond:function(){var J;
return C()&&((J=H.data().thumbnails)==null?void 0:J.length)},
then:function(){return _.q("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.q(muV,{data:H.data,disableRounding:function(){return!S()}}))}})))},"Aa");
yw1.idomCompat={callbacks:{playbackRef:!0}};
var WH1=_.n(function(H){var C=H.children;var S=H.stackEnabled;var w=H.thumbnailSize;var A=H.doubleStack;var J=H.stackColor;var c=H.includeStackHeight;var Y,M=(Y=_.JA().resolve(_.AA(_.sU)))==null?void 0:Y();return _.q(_.T,{cond:S,then:function(){return _.q(tqP,{data:function(){var m,W;return{experimentEnabled:!0,thumbnailSize:w(),doubleStack:A==null?void 0:A(),color:M?J==null?void 0:(m=J())==null?void 0:m.darkTheme:J==null?void 0:(W=J())==null?void 0:W.lightTheme,enableResponsiveMode:!1,includeStackHeight:c==
null?void 0:c()}}},C)},
else:function(){return C}})},"Ba");var Npb=new _.W4("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var Qg;_.Xx={calledOnce:!0,state:"visible"};Qg={calledOnce:!0,state:"hidden"};_.dn=_.n(function(H){var C=H.data;var S=H.customCommandResolver;var w=H.className;var A=H.delayedClassName;var J=H.animationEntityKey;var c=H.isCompactWidth;var Y=H.isContentWidth;H=_.Z(_.mB(!1,void 0,"pC3tUb"));var M=H.next().value,m=H.next().value,W=_.Jx(J,""),y=_.fn(Tk$,W),N=function(){var bi,pU;return(pU=(bi=y())==null?void 0:bi.value)!=null?pU:!1},b=function(){_.Ax(_.O5("booleanEntity",W(),{key:W(),
value:!0}));t=void 0};
J=_.Z(_.fu(N));var u=J.next().value,O=J.next().value;J=_.Z(_.fu(N));var d=J.next().value,p=J.next().value;J=_.Z(_.fu(function(){var bi;return N()?(bi=C().styleTransitionConfig)==null?void 0:bi.destinationStyle:void 0}));
var k=J.next().value,R=J.next().value,L=function(){var bi=Object.assign({},C(),k()&&{style:k()});var pU,O$,R0=bi.label,m1=(pU=bi.interaction)==null?void 0:(O$=pU.accessibility)==null?void 0:O$.label;pU=bi.iconImage?bi.label&&bi.label.content?bi.iconLeading?"leading":"trailing":"icon-only":void 0;bi={formattedButtonText:R0,accessibilityLabel:m1,style:A5i(bi.style),type:J56(bi.style),state:"active",size:wc0(bi.size),iconPosition:pU,disabled:!1,aTagConfig:jtD(bi,S)};_.E("enable_desktop_vdcbg_components")&&
(bi.focused=M());return bi},t;
J=_.c5({visibilityCallback:function(bi){var pU,O$=(pU=C().interaction)==null?void 0:pU.onFirstVisible;bi&&O$&&_.Im(O$)},
showOption:_.Xx});var g=function(){return V0Z(L(),!!C().iconImage)};
H={};var ii={};w=_.eJ(function(){return"ytwAdButtonViewModelHost"},function(){return C().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var bi=!!C().delayedAppearanceConfig,pU=u();
return bi?pU?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var bi=!!C().delayedAppearanceConfig,pU=d();
return bi?pU?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!C().delayedAppearanceConfig||u()?A==null?void 0:A():""},(H.ytwAdButtonViewModelHostCompactWidth=function(){return c==null?void 0:c()},H),(ii.ytwAdButtonViewModelHostContentWidth=function(){return Y==null?void 0:Y()},ii),w!=null?w:"");
var FW=function(){var bi,pU=(bi=C().delayedAppearanceConfig)==null?void 0:bi.delayedInvisibleSeconds;pU&&(t=_.dw(_.rT,function(){O(!0);cZ()},pU*1E3))},cZ=function(){var bi,pU=(bi=C().delayedAppearanceConfig)==null?void 0:bi.delayedVisibleSeconds;
pU&&(t=_.dw(_.rT,function(){p(!0);eZ()},pU*1E3))},eZ=function(){var bi,pU=(bi=C().styleTransitionConfig)==null?void 0:bi.styleTransitionSeconds,O$,R0=(O$=C().styleTransitionConfig)==null?void 0:O$.destinationStyle;
pU&&R0?t=_.dw(_.rT,function(){R(R0);b()},pU*1E3):b()},ND=function(){var bi;
return(bi=C().delayedAppearanceConfig)==null?void 0:bi.transitionDurationSeconds};
_.$T(function(){FW()});
_.PN(function(){t&&_.rT.cancelJob(t)});
return _.q("ad-button-view-model",{"on:focusin":_.um(_.E("enable_desktop_vdcbg_components")?function(){var bi=_.JA().resolve(_.AA(_.PS));bi&&m(bi.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.um(_.E("enable_desktop_vdcbg_components")?function(){m(!1);return!1}:void 0),
class:w,el:_.Zl(J),style:_.vb({"transition-duration":function(){return ND()?ND()+"s":void 0}})},_.q(_.T,{cond:L,
then:function(){return _.q(_.nw,{data:L,icon:function(){return _.q(_.T,{cond:function(){return C().iconImage},
then:function(bi){return _.q(_.Jg,{data:bi,alt:"",targetWidth:g,targetHeight:g,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"Ca");var bZn=_.n(function(H){var C=H.data;H=function(){return C().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var S=_.c5({visibilityCallback:function(J){var c,Y=(c=C().interaction)==null?void 0:c.onFirstVisible;J&&Y&&_.Im(Y)},
showOption:_.Xx}),w={},A={};return _.q("ad-button-group-view-model",{class:_.eJ("ytwAdButtonGroupViewModelHost",(w.ytwAdButtonGroupViewModelHostCompactWidth=H,w)),el:_.Zl(S)},_.q("div",{class:_.eJ("ytwAdButtonGroupViewModelHostSecondaryButton",(A.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=H,A))},_.q(_.V4,{data:function(){return C().secondaryAdButton}},{adButtonViewModel:function(J){return _.q(_.dn,{data:J.data})}})),_.q("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.q(_.V4,
{data:function(){return C().primaryAdButton}},{adButtonViewModel:function(J){return _.q(_.dn,{data:J.data})}})))},"Da");var EW7=_.n(function(H){var C=function(){var S;return((S=H.data())==null?void 0:S.answers)||[]};
return _.q("yt-survey-icons",{class:"ytSurveyIconsHost"},_.q("div",{class:"ytSurveyIconsHeader"},_.q("div",{class:"ytSurveyIconsTitle"},function(){var S;return(S=H.data())==null?void 0:S.text}),_.q("div",null,_.q(_.nw,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var S;(S=H.onDismiss)==null||S.call(H)}}},
iconName:"DISMISSAL"}))),_.q("div",null,_.q("div",{class:"ytSurveyIconsAnswers"},_.q(_.Vq,{each:function(){return C()},
keyBy:"INDEX"},function(S,w){return _.q("div",null,_.q(_.nw,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var A;(A=H.onSelect)==null||A.call(H,S(),w)}}},
icon:function(){return _.q(_.lm,{icon:function(){var A,J;return(A=S())==null?void 0:(J=A.icon)==null?void 0:J.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.q("div",{class:"ytSurveyIconsAnswersText"},_.q("div",null,function(){return C().length?C()[0].text:""}),_.q("div",null,function(){return C().length?C()[C().length-1].text:""}))))},"Ea");var eIP=_.n(function(H){var C=_.Zl(_.Bt(function(){var M;return(M=H.data())==null?void 0:M.rendererContext},void 0,void 0,void 0,!0)),S=_.Z(_.mB(!1,void 0,"GW0yjf")),w=S.next().value,A=S.next().value,J=_.fn(ikZ,function(){var M;
return(M=H.data().keys)==null?void 0:M.surveyEntityKey}),c=_.fn(Clw,function(){var M;
return(M=H.data().keys)==null?void 0:M.surveyStateEntityKey});
_.iy("ytd-slimline-survey-show-action",function(){A(!1)});
var Y=function(){var M,m;var W=(M=c())==null?void 0:(m=M.questionStack)==null?void 0:m[0];if(W!==void 0){var y,N;return(y=J())==null?void 0:(N=y.questions)==null?void 0:N[W]}};
S={};return _.q("yt-slimline-survey-view-model",{el:C,class:_.eJ("ytSlimlineSurveyViewModelHost",(S.ytSlimlineSurveyViewModelCollapsed=function(){return w()},S))},_.q("div",{class:"ytSlimlineSurveyViewModelContainer"},_.q(_.T,{cond:function(){var M;
return((M=Y())==null?void 0:M.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.q(EW7,{data:function(){return Y()},
onSelect:function(M,m){var W,y;return _.z(function(N){A(!0);if(y=(W=H.data())==null?void 0:W.onSelectRating)_.Im(y),_.Ax(Vud(m));_.oT(N)})},
onDismiss:function(){A(!0);var M;var m=(M=J())==null?void 0:M.dismissalFeedbackToken;M=m?{feedbackEndpoint:{feedbackToken:m}}:void 0;M&&_.gC(M,{form:{element:C.value}})}})}})))},"Fa");var uVU=_.n(function(H){return _.q("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.q(_.V4,{data:function(){var C;return(C=H.data())==null?void 0:C.attachments}},{flexibleActionsViewModel:function(C){return _.q("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.q(_.Ym,{data:C.data,
layout:function(){var S;return((S=H.lockupStyle())==null?void 0:S.arrangement)===1?0:1},
justifyContentOverride:function(){var S;return((S=H.lockupStyle())==null?void 0:S.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(C){return _.q("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.q(eIP,{data:C.data}))},
expandableMetadataViewModel:function(C){C=C.data;var S;return _.q("div",{class:_.eJ("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(S=_.JA().resolve(_.AA(Npb)))==null?void 0:S({data:C}))},
adButtonGroupViewModel:function(C){return _.q("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.q(bZn,{data:C.data}))},
adButtonViewModel:function(C){return _.q("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.q(_.dn,{data:C.data,isCompactWidth:!0}))}}))},"Ga");var M5D=_.YB("rich_grid_min_item_width",310),Yo0=_.YB("rich_grid_max_item_width",500);var GU1=_.n(function(H){var C=H.data;return _.q("br-nz-badge-shape",{class:_.eJ(function(){return EqW(C().brNzRatingBadgeType)}),
role:function(){return C().accessibilityText?"img":void 0},
"aria-label":function(){return C().accessibilityText}},function(){var S;
return(S=C())==null?void 0:S.text})},"Ha");_.PG=_.n(function(H){var C=function(){var S=H.data(),w,A,J;if(S){var c=!((w=H.workaroundShortsIsThumbnailBadge)==null||!w.call(H));w=(A=H.modern)==null?void 0:A.call(H);A=(J=H.numBadgesInRow)==null?void 0:J.call(H);var Y;a:switch(S.badgeStyle){case "BADGE_OVERLAY":J=!0;break a;default:J=!1}S={type:c?17:eQ7(S.badgeStyle),brNzRatingBadgeType:uqU(S.badgeStyle),text:S.badgeText,icon:S.iconName,isOverlay:J,modern:w||_.E("web_modern_badge_view_model"),numBadgesInRow:A,accessibilityText:S.accessibilityLabel||
((Y=_.e(S.rendererContext,_.VB))==null?void 0:Y.label)}}else S=void 0;return S};
return _.q("yt-badge-view-model",{class:_.eJ("ytBadgeViewModelHost",H.class)},_.q(_.X9,null,_.q(_.o6,{when:function(){var S;return!((S=C())==null||!S.brNzRatingBadgeType)}},function(){return _.q(GU1,{data:function(){return C()}})}),_.q(_.o6,{when:function(){return!!C()&&!C().brNzRatingBadgeType}},function(){return _.q(_.Tu,{data:function(){return C()}})})))},"Ia");
_.PG.idomCompat=!0;var fIU,GkD;fIU=16/9;GkD=2/3;_.$n=_.n(function(H){var C=H.data;var S=H.className;var w=H.imageSizeConfig;var A=H.notifyOnLoaded;var J=function(){return C().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},c=function(){var N;
return _.rw((N=C())==null?void 0:N.rendererContext)};
H={};H=(H.ytContentPreviewImageViewModelHost=!0,H.ytContentPreviewImageViewModelCircleImage=function(){return J()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},H.ytContentPreviewImageViewModelTappable=function(){return c()},H);
var Y=function(){var N,b;return(b=(N=_.e(C().rendererContext,_.VB))==null?void 0:N.label)!=null?b:""},M=function(){return lI6(C())},m=function(){var N=vqU(J(),C().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",w==null?void 0:w(),V5W(M()),C().layoutWidth,C().layoutHeight),b=Object.assign({},N);
N.width&&(b.width=Math.round(N.width));N.height&&(b.height=Math.round(N.height));N.maxWidth&&(b.maxWidth=Math.round(N.maxWidth));N.maxHeight&&(b.maxHeight=Math.round(N.maxHeight));return b},W=_.EF(function(){return m().height},void 0,"CxFlJb"),y=_.EF(function(){return m().width},void 0,"lb8Jhd");
return _.q("yt-content-preview-image-view-model",{el:_.Zl(_.Bt(function(){var N;return(N=C())==null?void 0:N.rendererContext})),
role:function(){return c()?"link":void 0},
tabindex:function(){return c()?0:void 0},
class:_.eJ(S,H,function(){var N=J();var b=w==null?void 0:w();N=N==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||N==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||N==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||N==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(b==null?void 0:b.size)!=null&&b.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(b==null?void 0:b.size)!=null&&b.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return N}),
style:function(){var N=m(),b=[];N.width&&b.push("width: "+N.width+"px");N.height&&b.push("height: "+N.height+"px");N.maxWidth&&b.push("max-width: "+N.maxWidth+"px");N.maxHeight&&b.push("max-height: "+N.maxHeight+"px");N.fullWidth&&b.push("width: 100%");return b.join(";")}},_.q(_.T,{cond:M,
then:function(N){return _.q(_.Jg,{data:N,alt:Y,"data-disabled$":function(){return!Y()},
notifyOnLoaded:A,targetWidth:y,targetHeight:W,preserveWidth:function(){return!!y()},
preserveHeight:function(){return!!W()}})}}),_.q(_.V4,{data:function(){var N;
return(N=C())==null?void 0:N.overlays}},{thumbnailHoverOverlayViewModel:Fx,
thumbnailOverlayButtonViewModel:_.zIi}))},"Ja");
_.$n.idomCompat=!0;var vW1=_.n(function(H){var C=H.data;var S=H.className;var w=H.useSmallLayout;H=H.useMediumText;var A={};return _.q("yt-attribution-view-model",{el:_.Zl(_.Bt(function(){var J;return(J=C())==null?void 0:J.rendererContext})),
class:_.eJ(S,(A.ytAttributionViewModelHost=!0,A.ytAttributionViewModelMediumText=H,A))},_.q(_.T,{cond:function(){return _.rw(C().rendererContext)},
then:function(){return _.q("button",{class:"ytAttributionViewModelTappable"},_.q(f8V,{data:C,useSmallLayout:w}))},
else:function(){return _.q(f8V,{data:C,useSmallLayout:w})}}))},"Ka"),f8V=_.n(function(H){var C=H.data;
var S=H.useSmallLayout;var w=function(){return{size:(S==null?0:S())?16:24}};
return _.q(_.F9,null,_.q(_.V4,{data:function(){return C().contentPreviewImage}},{contentPreviewImageViewModel:function(A){return _.q(_.$n,{data:A.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:w})}}),_.q(_.V4,{data:function(){return C().badge}},{badgeViewModel:function(A){return _.q(_.PG,{data:A.data,
class:"ytAttributionViewModelBadge",modern:!0})}}),_.q(_.T,{cond:function(){return C().text},
then:function(){return _.q(_.uZ,{text:function(){return C().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.q(_.T,{cond:function(){return C().suffix},
then:function(){return _.q(_.uZ,{text:function(){return C().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"La");
vW1.idomCompat=!0;var l8P,Vbd,oWM,OZb,XrV;l8P=_.n(function(H){var C=H.delimiter;var S=H.max;var w=H.index;var A=H.isStandalone;return _.q(_.T,{cond:function(){return S()-1>w()},
then:function(){var J={};return _.q("span",{class:_.eJ("yt-content-metadata-view-model__delimiter",(J["yt-content-metadata-view-model__delimiter--standalone"]=A,J)),"aria-hidden":!0},C)}})},"Ma");
Vbd=_.n(function(H){var C=H.metadataPart;var S=H.maxLines;return _.q(_.uZ,{text:function(){return C().text},
linkInheritColor:!0,className:function(){return oqw(S())},
userInput:!0})},"Na");
oWM=_.n(function(H){var C=H.metadataPart;var S=H.maxLines;return _.q(_.T,{cond:function(){return C().tooltip},
then:function(w){return _.q("span",{title:w,role:"tooltip"},_.q(Vbd,{metadataPart:C,maxLines:S}))},
else:function(){return _.q(Vbd,{metadataPart:C,maxLines:S})}})},"Oa");
OZb=_.n(function(H){var C=H.metadataPart;var S=H.isOverlay;var w=H.useMediumText;var A=H.hideAvatar;var J=function(){return C().maxLines!==void 0?C().maxLines:1};
return _.q(_.F9,null,_.q(_.V4,{data:function(){return C().avatarStack}},{avatarStackViewModel:function(c){return _.q(_.Yn,{data:c.data,
isOverlay:S,useMediumText:w,hideAvatar:A})},
badgeViewModel:_.PG}),_.q(_.T,{cond:function(){return C().leadingIcon},
then:function(c){return _.q(_.lm,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return c().name},
size:function(){return c().width}})}}),_.q(_.T,{cond:function(){return C().text},
then:function(){return _.q(oWM,{metadataPart:C,maxLines:J})}}),_.q(_.T,{cond:function(){return C().icon},
then:function(c){return _.q(_.lm,{className:"yt-content-metadata-view-model__icon",icon:function(){return c().name},
size:function(){return c().width}})}}))},"Pa");
XrV=_.n(function(H){var C=H.metadataRow;var S=H.isInline;var w=H.delimiter;var A=H.isOverlay;var J=H.useMediumText;var c=H.extensions;var Y=function(){var m,W=c==null?void 0:(m=c())==null?void 0:m.lockupMetadata;m=C();var y,N;return!!((W==null?0:(y=W.byline)==null?0:y.hideAvatar)&&((N=_.e(m,UUd))==null?void 0:N.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},M=function(){return C().metadataParts||[]};
H={};return _.q("div",{class:_.eJ("yt-content-metadata-view-model__metadata-row",(H["yt-content-metadata-view-model__metadata-row--metadata-row-inline"]=S,H["yt-content-metadata-view-model__metadata-row--metadata-row-padding"]=function(){var m,W=c==null?void 0:(m=c())==null?void 0:m.lockupMetadata;m=C();var y,N;return!!((W==null?0:(y=W.byline)==null?0:y.addPadding)&&((N=_.e(m,UUd))==null?void 0:N.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},H["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var m;
return!!(c==null?0:(m=c())==null?0:m.lockupMetadata)&&C().badges&&!C().metadataParts},H))},_.q(_.V4,{data:function(){return C().badges}},{badgeViewModel:function(m){return _.q("div",{class:"yt-content-metadata-view-model__badge"},_.q(_.PG,{data:m.data,
numBadgesInRow:function(){var W,y;return((W=C())==null?void 0:(y=W.badges)==null?void 0:y.length)||0}}))}}),_.q(_.Vq,{each:M},function(m,W){return _.q(_.F9,null,_.q(OZb,{metadataPart:m,
isOverlay:A,useMediumText:J,hideAvatar:Y}),_.q(l8P,{delimiter:w,max:function(){return M().length},
index:W,isStandalone:!1}))}),_.q(_.T,{cond:function(){return C().isSpacerRow&&!S()},
then:function(){return _.q("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"Qa");
_.pt=_.n(function(H){H=_.FH(H,{layout:0,isOverlay:!1});var C=H.data,S=H.layout,w=H.isOverlay,A=H.useMediumText,J=H.extensions,c=function(){return S()===0},Y=function(){var m;
return((m=C().metadataRows)==null?void 0:m.filter(function(W){var y,N=J==null?void 0:(y=J())==null?void 0:y.lockupMetadata,b,u;y=!!((N==null?0:(b=N.description)==null?0:b.hideDescription)&&((u=_.e(W,UUd))==null?void 0:u.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var O,d;return!((N==null?0:(O=N.spacer)==null?0:O.hideSpacer)&&((d=_.e(W,UUd))==null?void 0:d.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||y)}))||[]},M={};
return _.q("yt-content-metadata-view-model",{class:_.eJ(H.className,"yt-content-metadata-view-model",(M["yt-content-metadata-view-model--inline"]=c,M["yt-content-metadata-view-model--tappable"]=function(){return _.rw(C().rendererContext)},M["yt-content-metadata-view-model--medium-text"]=A,M)),
el:_.Zl(_.Bt(function(){return C().rendererContext}))},_.q(_.Vq,{each:Y},function(m,W){return _.q(_.F9,null,_.q(XrV,{metadataRow:m,
isInline:c,delimiter:function(){return C().delimiter},
isOverlay:w,useMediumText:A,extensions:J}),_.q(_.T,{cond:function(){return c()&&!m.isSpacerRow},
then:function(){return _.q(l8P,{delimiter:function(){return C().delimiter},
max:function(){return Y().length},
index:W,isStandalone:!0})}}))}))},"Ra");
_.pt.idomCompat=!0;var Qln=_.n(function(H){var C={};return _.q("yt-lockup-metadata-view-model",{class:_.eJ("yt-lockup-metadata-view-model",function(){a:{var S=H.lockupStyle();if(S==null?0:S.isOverlay)S="yt-lockup-metadata-view-model--overlay";else switch(S==null?void 0:S.arrangement){case 1:S="yt-lockup-metadata-view-model--horizontal";break a;default:S="yt-lockup-metadata-view-model--vertical"}}return S},function(){a:{var S=H.lockupStyle();
if(S==null?0:S.isTiny)S="yt-lockup-metadata-view-model--tiny";else switch(S==null?void 0:S.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":S="yt-lockup-metadata-view-model--compact";break a;default:S="yt-lockup-metadata-view-model--standard"}}return S},(C["yt-lockup-metadata-view-model--overlay"]=function(){var S;
return(S=H.lockupStyle())==null?void 0:S.isOverlay},C["yt-lockup-metadata-view-model--card"]=function(){var S;
return(S=H.lockupStyle())==null?void 0:S.isCard},C["yt-lockup-metadata-view-model--centered"]=function(){var S;
return(S=H.lockupStyle())==null?void 0:S.isCentered},C["yt-lockup-metadata-view-model--typography-bump"]=function(){var S;
return(S=H.lockupStyle())==null?void 0:S.typographyBump},C["yt-lockup-metadata-view-model--legacy-typography"]=function(){var S;
return(S=H.lockupStyle())==null?void 0:S.useLegacyTypography},C["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var S;
return(S=H.lockupStyle())==null?void 0:S.useRichGridLegacyTypography},C))},_.q(_.V4,{data:function(){return H.data().image}},{avatarStackViewModel:function(S){return _.q("div",{class:"yt-lockup-metadata-view-model__avatar"},_.q(_.Yn,{data:S.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(S){return _.q("div",{class:"yt-lockup-metadata-view-model__avatar"},_.q(_.ZT,{data:S.data}))},
decoratedAvatarViewModel:function(S){return _.q("div",{class:"yt-lockup-metadata-view-model__avatar"},_.q(_.cG,{data:S.data}))}}),_.q("div",{class:"yt-lockup-metadata-view-model__text-container"},_.q("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var S;return(S=H.data().title)==null?void 0:S.content}},_.q(_.T,{cond:function(){return H.data().title},
then:function(S){return _.q(_.$4,{command:H.lockupCommand,className:"yt-lockup-metadata-view-model__title",ariaLabel:H.lockupAccessibilityLabel},_.q(_.uZ,{text:S,userInput:!0}))}})),_.q("div",{class:"yt-lockup-metadata-view-model__metadata"},_.q(_.V4,{data:function(){return H.data().metadata}},{contentMetadataViewModel:function(S){return _.q(_.pt,{data:S.data,
layout:1,useMediumText:function(){var w,A;return((w=H.lockupStyle())==null?void 0:w.typographyBump)||((A=H.lockupStyle())==null?void 0:A.useRichGridLegacyTypography)},
extensions:function(){var w,A,J,c;return{lockupMetadata:{byline:{hideAvatar:((w=H.lockupStyle())==null?void 0:w.arrangement)===0,addPadding:((A=H.lockupStyle())==null?void 0:A.arrangement)===1},description:{hideDescription:!((J=H.lockupStyle())==null||!J.compactMetadata)},spacer:{hideSpacer:!((c=H.lockupStyle())==null||!c.compactMetadata)}}}}})}})),_.q(_.V4,{data:function(){return H.data().attribution}},{attributionViewModel:function(S){return _.q("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.q(vW1,{data:S.data,
useSmallLayout:!0}))}})),_.q("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.q(_.V4,{data:function(){return H.data().menuButton}},{buttonViewModel:function(S){return _.q(_.rc,{data:S.data,
buttonOverrides:function(){var w;return((w=H.lockupStyle())==null?0:w.isOverlay)?{style:"overlay"}:void 0}})}})))},"Sa");
Qln.idomCompat=!0;var duY=_.n(function(H){var C=_.sW("notification-multi-action-renderer");_.Ph(function(){requestAnimationFrame(function(){_.ss(C.value)})});
var S={},w={},A={};return _.q("notification-multi-action-renderer",{class:_.eJ("ytNotificationMultiActionRendererHost",(S.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var J;return(J=H.useLegacyShelfStyle)==null?void 0:J.call(H)},S)),
el:C},_.q("span",{"aria-live":"polite",class:_.eJ("ytNotificationMultiActionRendererTextContainer",(w.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var J;return(J=H.useLegacyShelfStyle)==null?void 0:J.call(H)},w))},_.q(_.uZ,{text:function(){return H.data().responseText}})),_.q("div",{class:_.eJ("ytNotificationMultiActionRendererButtonContainer",(A.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var J;
return(J=H.useLegacyShelfStyle)==null?void 0:J.call(H)},A))},_.q(_.V4,{data:function(){var J;
return(J=H.data().buttons)==null?void 0:J.map(function(c){if(c=c.buttonRenderer){var Y,M=Object,m=M.assign,W=(Y=c.icon)==null?void 0:Y.iconType;Y=(Y=c.command||c.serviceEndpoint||c.navigationEndpoint)?{innertubeCommand:Y}:void 0;c={buttonViewModel:m.call(M,{},{iconName:W,onTap:Y,trackingParams:c.trackingParams,titleFormatted:c.text?_.BI(c.text):void 0},Xcp(c))}}else c=void 0;return c}).filter(function(c){return!!c})}},{buttonViewModel:function(J,c){return _.q("div",null,_.q(_.rc,{data:J.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var Y;return((Y=H.useModernStyles)==null?0:Y.call(H))?{type:c()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Ta");var Px1=_.n(function(H){var C=_.sW("notification-text-renderer");_.Ph(function(){requestAnimationFrame(function(){_.ss(C.value)})});
return _.q("notification-text-renderer",{el:C,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.q(_.uZ,{text:function(){return H.data().successResponseText}}))},"Ua");_.kn=_.n(function(H){var C=_.fn(eTW,function(){var w;return Qt6((w=H.contentId)==null?void 0:w.call(H))}),S=function(){var w;
return _.e((w=C())==null?void 0:w.command,_.Ko)};
return _.q(_.T,{cond:function(){var w;if(!(w=S())){var A;w=_.e((A=C())==null?void 0:A.command,MQn)}return w},
then:function(){return _.q(_.T,{cond:S,then:function(){var w={};return _.q("div",{class:_.eJ("ytDismissibleItemReplacedContent",function(){var A;return dPi((A=H.aspectRatio)==null?void 0:A.call(H))})},_.q("div",{class:_.eJ((w.ytDismissibleItemAspectRatioContainer=function(){var A;
return((A=H.aspectRatio)==null?void 0:A.call(H))!==void 0},w))},_.q(_.V4,{data:function(){var A;
return(A=S())==null?void 0:A.item}},{notificationMultiActionRenderer:function(A){return _.q(duY,{data:A.data,
useModernStyles:H.useModernStyle,useLegacyShelfStyle:H.useLegacyShelfStyle})},
notificationTextRenderer:Px1})))}})},
else:H.children})},"Va");_.$ud=_.n(function(H){var C=H.data;var S=H.customCommandResolver;H=_.Zl(_.c5({visibilityCallback:function(J){var c,Y=(c=C().interaction)==null?void 0:c.onFirstVisible;J&&Y&&_.Im(Y)},
showOption:_.Xx}));var w=function(){var J;return((J=C().interaction)==null?0:J.onTap)?function(c){var Y;sti(c,(Y=C().interaction)==null?void 0:Y.onTap,S)}:void 0},A=function(){var J,c=C(),Y=w(),M=(J=_.e(C().rendererContext,_.VB))==null?void 0:J.label;
a:switch(c.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":J=1;break a;default:J=0}return{size:pcu(c.size),type:J,onTap:Y,accessibilityText:M}};
return _.q("ad-avatar-view-model",{class:function(){var J;return((J=C().interaction)==null?0:J.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:H},_.q(_.T,{cond:function(){return C().image},
then:function(J){return _.q(y5P,{data:A,image:J})}}))},"Wa");_.hK=_.n(function(H){var C=_.FH(H,{hasDot:!1,usedInMasthead:!1}),S=Object.assign({},C),w=C.data,A=C.hasDot;H=C.customCommandResolver;var J=C.usedInMasthead,c=(delete S.data,delete S.hasDot,delete S.customCommandResolver,delete S.usedInMasthead,S);C=function(){return w().style};
C!==void 0&&C!==null||_.Ug(Error("Mh"));H=_.Ln(function(){return w().interaction},H);
return _.q("ad-badge-view-model",{class:_.eJ(function(){var Y;return((Y=w().interaction)==null?0:Y.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var Y=c.adRenderingContextType(),M=J();
w();return Y!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||M?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.Zl(H)},_.q(_.Tu,{data:function(){var Y;w();return{type:2,text:(Y=w().label)==null?void 0:Y.content,adsIncludeDot:A(),isOverlay:w().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Xa");var pr7;_.nt=_.n(function(H){var C=H.data;var S=H.customCommandResolver;var w=H.adRenderingContextType;return _.q("ad-details-line-view-model",{class:function(){var A;return((A=C().interaction)==null?0:A.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.Zl(_.c5({visibilityCallback:function(A){var J,c=(J=C().interaction)==null?void 0:J.onFirstVisible;A&&c&&_.Im(c)},
showOption:_.Xx}),_.Ln(function(){return C().interaction},S))},_.q(_.T,{cond:function(){return C().style},
then:function(A){return _.q(_.Vq,{each:function(){var J;return((J=C())==null?void 0:J.attributes)||[]},
keyBy:"INDEX"},function(J){return _.q(pr7,{attribute:J,style:A,adRenderingContextType:function(){return w()}})})}}))},"Ya");
pr7=_.n(function(H){var C=H.attribute;var S=H.style;var w=H.adRenderingContextType;return _.q(_.T,{cond:function(){return C().text},
then:function(A){return _.q(_.uZ,{text:A,className:function(){var J=w();S();return J==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Za");var kU_=_.n(function(H){var C=H.data;var S=H.typographyBump;var w=function(){return C().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
H={};return _.q(_.F9,null,_.q("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.q(_.uZ,{text:function(){return C().headline},
className:_.eJ("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(H.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return w==null?void 0:w()},H.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(S==null?void 0:S())&&!(w==null?0:w())},H)),
linkInheritColor:!0}),_.q(_.T,{cond:function(){return C().description},
then:function(A){var J={};return _.q(_.uZ,{text:A,className:_.eJ("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(J.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return w==null?void 0:w()},J.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(S==null?void 0:S())&&!(w==null?0:w())},J)),
linkInheritColor:!0})}}),_.q(_.T,{cond:function(){return C().secondaryDescription},
then:function(A){var J={};return _.q(_.uZ,{text:A,className:_.eJ("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(J.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return S==null?void 0:S()},J)),
linkInheritColor:!0})}}),_.q("div",{class:function(){return w()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.q(_.T,{cond:function(){return C().adAvatar},
then:function(){return _.q("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.q(_.V4,{data:function(){return C().adAvatar}},{adAvatarViewModel:_.$ud}))}}),_.q(_.V4,{data:function(){return C().adBadge}},{adBadgeViewModel:function(A){return _.q(_.hK,{data:A.data,
hasDot:function(){return!!C().adDetailsLine},
adRenderingContextType:function(){return C().adRenderingContextType}})}}),_.q(_.V4,{data:function(){return C().adDetailsLine}},{adDetailsLineViewModel:function(A){return _.q(_.nt,{data:A.data,
adRenderingContextType:function(){return C().adRenderingContextType}})}}))),_.q("div",{class:function(){return w()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.q(_.V4,{data:function(){return C().menu}},{buttonViewModel:function(A){return _.q(_.rc,{data:A.data,
buttonOverrides:function(){a:switch(C().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var J="S";break a;default:J="M"}return{size:J}}})}})))},"$a"),hIY=_.n(function(H){var C=H.data;
var S=H.noBottomMargin;var w=H.useVideoLockupTopPadding;var A=H.typographyBump;H={};H=_.eJ("ytwFeedAdMetadataViewModelHostMetadata",(H.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return S==null?void 0:S()},H.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return w==null?void 0:w()},H));
var J=function(){return C().adBadge};
J!==void 0&&J!==null||_.Ug(Error("Nh"));J={};var c={};return _.q(_.F9,null,_.q(_.T,{cond:function(){return C().adAvatar},
then:function(){return _.q("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.q(_.V4,{data:function(){return C().adAvatar}},{adAvatarViewModel:function(Y){return _.q(_.$ud,{data:Y.data})}}))}}),_.q("div",{class:H},_.q("div",{class:_.eJ("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(J.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return A==null?void 0:A()},J.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(A==
null?void 0:A())&&_.E("web_enable_typography_bump_v2")},J))},_.q(_.uZ,{text:function(){return C().headline},
linkInheritColor:!0})),_.q(_.T,{cond:function(){return C().description},
then:function(Y){return _.q(_.uZ,{text:Y,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.q("div",{class:function(){return C().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.E("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.q(_.V4,{data:function(){return C().adBadge}},
{adBadgeViewModel:function(Y){return _.q(_.hK,{data:Y.data,
hasDot:function(){return!!C().adDetailsLine},
adRenderingContextType:function(){return C().adRenderingContextType}})}}),_.q(_.V4,{data:function(){return C().adDetailsLine}},{adDetailsLineViewModel:function(Y){return _.q(_.nt,{data:Y.data,
adRenderingContextType:function(){return C().adRenderingContextType}})}})),_.q(_.T,{cond:function(){return C().secondaryDescription},
then:function(Y){return _.q(_.uZ,{text:Y,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.q("div",{class:_.eJ("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(c.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return w==null?void 0:w()},c))},_.q(_.V4,{data:function(){return C().menu}},{buttonViewModel:_.rc})))},"ab"),rn=_.n(function(H){var C=H.data;
var S=H.noBottomMargin;var w=H.listenToTapEvent;var A=H.setTouchEndHandler;var J=H.useVideoLockupTopPadding;var c=H.typographyBump;H=_.c5({visibilityCallback:function(y){var N,b=(N=C().interaction)==null?void 0:N.onFirstVisible;y&&b&&_.Im(b)},
showOption:_.Xx});var Y=_.Ln(function(){return C().interaction},void 0,function(){return w==null?void 0:w()}),M=_.Z(_.mB(!1,void 0,"a2FSrb")),m=M.next().value,W=M.next().value;
M=_.um(function(y){(A==null?0:A())&&!m()&&(y.currentTarget.click(),W(!0),setTimeout(function(){W(!1)},100));
return!1});
return _.q("feed-ad-metadata-view-model",{class:function(){var y;return((y=C().interaction)==null?0:y.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.Zl(H,Y),"on:touchend":M},_.q(_.X9,null,_.q(_.o6,{when:function(){return C().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.q(kU_,{data:C,
typographyBump:c})}),_.q(_.o6,{when:function(){return C().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.q(hIY,{data:C,
noBottomMargin:S,useVideoLockupTopPadding:J,typographyBump:c})})))},"bb");var nWM,rwV;nWM=_.R$.inlinePreviewEnabledSelector;_.BG=_.n(function(H){return _.q("yt-lockup-view-model",{class:_.eJ(H.className)},_.q(_.kn,{contentId:function(){return H.data().contentId},
useModernStyle:!0,aspectRatio:function(){var C,S;return((C=H.containerType)==null?void 0:C.call(H))!==3?NDE(H.data().contentType,(S=H.force16By9ThumbnailAspectRatio)==null?void 0:S.call(H)):void 0}},function(){return _.q(rwV,Object.assign({},H))}))},"cb");
rwV=_.n(function(H){H=_.FH(H,{containerLayoutConfig:void 0,protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0});var C=H.data,S=H.containerLayoutConfig,w=H.containerType,A=H.sizing,J=H.protectBackground,c=H.typographyBump,Y=H.force16By9ThumbnailAspectRatio,M=H.thumbnailFixedWidth,m=H.thumbnailTargetWidth,W=H.lockupExperiments,y=H.elementsPerRow,
N=_.JA().resolve(_.AA(_.sU));H=_.Zl(_.Bt(function(){var O$;return(O$=C())==null?void 0:O$.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 b=_.Lu(nWM),u=_.JA().resolve(_.AA(jlP)),O=u?{}:void 0,d=function(){var O$,R0,m1;return(m1=(R0=_.e((O$=C())==null?void 0:O$.rendererContext,_.VB))==null?void 0:R0.label)!=null?m1:void 0},p=function(){var O$;
return(O$=_.e(C().metadata,_.Rc_))==null?void 0:O$.endorsement},k=function(){var O$=S==null?void 0:S(),R0;
if(O$==null?0:O$.containerType){var m1=(R0=C())==null?void 0:R0.contentType;R0=W();var c7=c(),tV=m(),Td=J();O$=Object.assign({},bQD(mPE(O$),qoE(O$.responsiveSize),c7,m1,O$.force16By9ThumbnailAspectRatio,tV,Td,R0),{thumbnailFixedWidth:O$.contentPreviewWidth})}else O$=bQD(w(),A(),c(),(m1=C())==null?void 0:m1.contentType,Y(),m(),J(),W());return O$};
u&&O&&u({enabled:function(){return b()},
itemPlaybackModel:function(){return C().itemPlayback},
thumbnailElRef:function(){return O.thumbnailElRef},
containerElRef:H,options:function(){var O$=O.thumbnailOverlays||[],R0=p(),m1;!R0||((m1=W())==null?0:m1.onFocusEffect)||O$.push(R0);var c7,tV;return{thumbnail:O.thumbnail,thumbnailOverlays:O$,accessibilityText:d(),thumbnailSize:O.thumbnailSize,enableRounding:k().isCollection,containPlayerWithinThumbnail:k().isCollection,mouseleaveCallback:function(){t(!1)},
trackingParams:(c7=_.e(C().rendererContext,_.Vh))==null?void 0:(tV=c7.loggingDirectives)==null?void 0:tV.trackingParams}}});
var R=0;u=_.Z(_.mB(!1,void 0,"JThLqe"));var L=u.next().value,t=u.next().value;u=_.Z(_.mB(!1,void 0,"SSE3E"));var g=u.next().value,ii=u.next().value;u=_.um(function(){g()?(_.rT.cancelJob(R),R=_.rT.addJob(function(){t(!0)},8,32)):t(!0);
return!0});
var FW=_.um(function(O$){O$=O$.relatedTarget;var R0=document.querySelector("ytd-video-preview");O$&&R0&&R0.contains(O$)||(R&&(_.rT.cancelJob(R),R=0),t(!1))});
_.PN(function(){R&&(_.rT.cancelJob(R),R=0)});
var cZ=$Pu(function(){ii(!0)}),eZ=cZ.touchFeedbackEvents,ND=cZ.touchFeedbackOnPointerUp,bi=cZ.touchFeedbackOnPointerDown;
cZ=cZ.touchFeedbackOnPointerLeave;var pU={};return _.q(_.F9,null,_.q("div",{el:H,class:_.eJ("yt-lockup-view-model",function(){a:{var O$=k();if(O$.isOverlay)O$="yt-lockup-view-model--overlay";else switch(O$.arrangement){case 1:O$="yt-lockup-view-model--horizontal";break a;default:O$="yt-lockup-view-model--vertical"}}return O$},function(){a:{var O$=k();
if(O$.isOverlay)O$="yt-lockup-view-model--overlay";else{switch(O$.collectionStackNumber){case 1:O$="yt-lockup-view-model--collection-stack-1";break a;case 2:O$="yt-lockup-view-model--collection-stack-2";break a}O$=void 0}}return O$},function(){var O$;
return _.OQ0((O$=C())==null?void 0:O$.contentId)},(pU["yt-lockup-view-model--card"]=function(){return k().isCard},pU["yt-lockup-view-model--compact"]=function(){return k().isTiny||k().sizing!=="STANDARD"},pU["yt-lockup-view-model--protect-background"]=J,pU["yt-lockup-view-model--add-margins"]=function(){return k().addMarginForFullbleed},pU["yt-lockup-view-model--centered"]=function(){return k().isCentered},pU["yt-lockup-view-model--fullbleed"]=function(){return k().fullbleed},pU["yt-lockup-view-model--single-column-grid"]=
function(){return y()===1&&w()===2},pU["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var O$;
return(O$=W())==null?void 0:O$.useRichGridLegacyMargin},pU)),
"on:mousedown":bi,"on:mouseleave":FW,"on:mouseup":ND,"on:mouseover":u,"on:touchstart":bi,"on:touchend":ND,"on:pointerleave":cZ},_.q(_.pw,{model:function(){var O$,R0=Object,m1=R0.assign,c7=(O==null?void 0:O.thumbnailSize)||"small";a:{var tV=k();if(p())tV=12;else{switch(tV.collectionStackNumber){case 1:tV=8;break a;case 2:tV=12;break a}tV=void 0}}c7={thumbnailSize:c7,triggerEvents:!0,customTopExtend:tV};var Td;tV=(O$=W())==null?void 0:O$.onFocusEffect;var Mi=!(N==null||!N());if(tV){var fP,eo;O$=Mi?
(fP=tV.onFocusColor)==null?void 0:fP.darkTheme:(eo=tV.onFocusColor)==null?void 0:eo.lightTheme;var Cr,wu;fP=Mi?(Cr=tV.keyLightColor)==null?void 0:Cr.darkTheme:(wu=tV.keyLightColor)==null?void 0:wu.lightTheme;var xE;Cr=Mi?(Td=tV.touchResponseColor)==null?void 0:Td.darkTheme:(xE=tV.touchResponseColor)==null?void 0:xE.lightTheme;Td={background:O$!==void 0?_.Iw(O$):void 0,keyLight:fP!==void 0?_.Iw(fP):void 0};xE=[];tV=_.Z(tV.lightingTechniques||[]);for(wu=tV.next();!wu.done;wu=tV.next())switch(wu.value){case "LIGHTING_TECHNIQUE_KEY_LIGHT":xE.push(2);
break;case "LIGHTING_TECHNIQUE_BACK_LIGHT":xE.push(1);break;case "LIGHTING_TECHNIQUE_FILL_LIGHT":xE.push(3)}Td={hoverEffect:{palette:Td,lightingTechniques:xE},touchEffect:{palette:{background:Cr!==void 0?_.Iw(Cr):void 0}}}}else Td={};return m1.call(R0,{},c7,Td)},
hovered:function(){return L()},
pointerDownEvent:eZ.pointerDownEvent,pointerUpEvent:eZ.pointerUpEvent,pointerLeaveEvent:eZ.pointerLeaveEvent}),_.q(_.$4,{command:function(){var O$;return _.nn((O$=C())==null?void 0:O$.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return M()&&k().arrangement===1?"width: "+M():""}},_.q(_.V4,{data:function(){var O$;
return(O$=C())==null?void 0:O$.contentImage}},{thumbnailViewModel:function(O$){return _.q(_.Or,{data:O$.data,
aspectRatio:function(){return k().aspectRatio},
disableRounding:function(){return k().disableRounding},
width:m,hovered:function(){return L()&&!(b()&&C().itemPlayback)},
isClip:function(){var R0;return((R0=C())==null?void 0:R0.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:HQ$(O),lockupExperiments:function(){return W()}})},
collectionThumbnailViewModel:function(O$){return _.q(yw1,{data:O$.data,aspectRatio:function(){return k().aspectRatio},
disableRounding:function(){return k().disableRounding},
width:m,doubleStack:function(){return k().collectionStackNumber===2},
hovered:function(){return L()&&!(b()&&C().itemPlayback)},
playbackRef:HQ$(O)})},
decoratedAvatarViewModel:_.cG})),_.q("div",{class:"yt-lockup-view-model__metadata"},_.q(_.V4,{data:function(){var O$;return(O$=C())==null?void 0:O$.metadata}},{lockupMetadataViewModel:function(O$){return _.q(Qln,{data:O$.data,
lockupStyle:k,lockupCommand:function(){var R0;return _.nn((R0=C())==null?void 0:R0.rendererContext)},
lockupAccessibilityLabel:function(){return d()}})},
feedAdMetadataViewModel:function(O$){return _.q(rn,{data:O$.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:c})}}),_.q(_.V4,{data:function(){var O$;
return(O$=C())==null?void 0:O$.attachmentSlot}},{lockupAttachmentsViewModel:function(O$){return _.q(uVU,{data:O$.data,
lockupStyle:k})}}))),_.q(_.V4,{data:function(){var O$;
return(O$=C())==null?void 0:O$.bottomAttachmentSlot}},{lockupAttachmentsViewModel:function(O$){return _.q(uVU,{data:O$.data,
lockupStyle:k})}}))},"db");
_.BG.idomCompat=!0;_.qs(_.BG,"yt-lockup-view-model",{props:{data:_.GH,containerLayoutConfig:_.GH,containerType:_.GH,sizing:_.GH,protectBackground:_.GH,typographyBump:_.GH,thumbnailFixedWidth:_.GH,thumbnailTargetWidth:_.GH,force16By9ThumbnailAspectRatio:_.GH,className:_.GH,lockupExperiments:_.GH,elementsPerRow:_.GH}});var r5i,BpP=_.n(function(H){var C=_.FH(H,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),S=C.text,w=C.alwaysShowTruncationText;H=C.truncationText;var A=C.onTextClick,J=C.maxLines,c=C.disableTextMask,Y=C.textStyle,M=C.accessibilityLabel,m=C.textSize,W=C.alwaysTruncateAtMaxLines,y=C.expandOnClick;C=_.Z(_.mB(!1,void 0,"EzA1q"));var N=C.next().value,b=C.next().value;C=_.um(function(){y()&&b(!N());A==null||A()});
var u=function(){a:switch(m()){case "medium":var g=2;break a;case "large":g=2.2;break a;default:g=1.8}return g},O=KGU(S,function(){return N()?Infinity:J()},u,c,W,N),d=O.isTruncated;
S=O.displayText;W=O.contentRef;var p=O.hiddenRef,k=O.placeholderTruncationTextRef,R=O.hiddenTruncationTextRef;O=O.truncationTextRef;var L={},t={};return _.q("truncated-text",{class:_.eJ((L["yt-truncated-text"]=!0,L["yt-truncated-text--overlay"]=function(){return Y()==="overlay"},L["yt-truncated-text--medium-text"]=function(){return m()==="medium"},L["yt-truncated-text--large-text"]=function(){return m()==="large"},L["yt-truncated-text--primary-text"]=function(){return Y()==="primary-text"},L)),
"on:click":C,style:function(){return"line-height: "+u()+"rem;"}},_.q("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:W,style:function(){return N()?"":"max-height: "+J()*u()+"rem;"}},_.q(_.uZ,{text:S}),_.q("button",{"aria-disabled":!0,
disabled:!0,class:"yt-truncated-text__inline-button",el:k,style:function(){return"line-height: "+u()+"rem;"}},_.q(_.uZ,{text:H}))),_.q("truncated-text-content",{class:_.eJ("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:p,style:function(){return N()?"":"max-height: "+J()*u()+"rem;"},
"aria-hidden":"true"},_.q(_.uZ,{text:S}),_.q("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:R,style:function(){return"line-height: "+u()+"rem;"}},_.q(_.uZ,{text:H}))),_.q("button",{"aria-label":M,
class:_.eJ((t["yt-truncated-text__absolute-button"]=function(){return!c()},t["yt-truncated-text__bottom-button"]=function(){return c()},t["yt-truncated-text--hidden"]=function(){return!(!N()&&(w!=null&&w()||d()))},t)),
el:O,style:function(){return"line-height: "+u()+"rem;"}},_.q(_.uZ,{text:H})))},"eb");
BpP.idomCompat={callbacks:{onTextClick:!0}};var tb7=_.n(function(H){var C=H.data;H=H.className;var S=_.EF(function(){return LGw(C())},void 0,"uDhDke"),w=_.q(_.F9,null,_.q(_.T,{cond:function(){return C().heroText||C().image},
then:function(){return _.q(Dud,{data:C})}}),_.q(KH1,{data:C,
sizeSmall:function(){return C().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.q("yt-video-attribute-view-model",{class:H},_.q("div",{class:function(){var A=C();a:switch(A.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var J="yt-video-attribute-view-model--vertical";break a;default:J="yt-video-attribute-view-model--horizontal"}a:switch(A.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(A.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var Y=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":Y="yt-video-attribute-view-model--image-avatar";break a;default:Y=""}a:switch(A.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var M="yt-video-attribute-view-model--metadata-header";break a;default:M=""}a:switch(A.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var m="yt-video-attribute-view-model--container-card";break a;default:m=""}return["yt-video-attribute-view-model",J,c,
Y,M,m,LGw(A)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.vb({"background-color":function(){var A=C();if(A.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var J="";else{J=A.lightColorPalette;A=A.darkColorPalette;var c,Y=((c=_.JA().resolve(_.AA(_.sU)))==null?0:c())&&A?A:J;J=(J=Y==null?void 0:Y.section2Color)?_.aw(J):""}return J}})},_.q(_.T,{cond:S,
then:function(){return _.q(_.$4,{className:"yt-video-attribute-view-model__content-container",command:S,role:"group",ariaLabel:function(){return C().title}},w)},
else:function(){return _.q("div",{class:"yt-video-attribute-view-model__content-container"},w)}})))},"fb");
tb7.idomCompat=!0;var Dud=_.n(function(H){var C=H.data;var S,w=(S=_.JA().resolve(_.AA(_.sU)))==null?void 0:S(),A=function(){return w&&C().darkThemeImage?C().darkThemeImage:C().image},J=_.EF(function(){return gqZ(C())},void 0,"UDqj0b");
return _.q("div",{class:"yt-video-attribute-view-model__hero-section"},_.q(_.X9,null,_.q(_.o6,{when:A},function(){return _.q(_.Jg,{data:function(){return A()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.q(_.o6,{when:function(){return C().heroText}},function(){return _.q("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.q("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return C().heroText}))})),_.q(_.T,{cond:function(){return C().overflowMenuOnTap},
then:function(){return _.q("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.q(_.nw,{data:J,iconName:"MORE_VERT"}))}}))},"gb");
Dud.idomCompat=!0;var KH1=_.n(function(H){var C=H.data;H=H.sizeSmall;var S=function(){return C().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},w=_.EF(function(){return Rm(_.U4({innertubeCommand:LGw(C())}))?"link":LGw(C())?"button":"group"},void 0,"e2MmYe"),A={};
return _.q("div",{class:_.eJ("yt-video-attribute-view-model__metadata",(A["yt-video-attribute-view-model--small-font"]=H,A)),role:w},_.q("h1",{class:"yt-video-attribute-view-model__title"},function(){return C().title}),_.q(_.T,{cond:function(){return C().subtitle},
then:function(){return _.q("h4",{class:"yt-video-attribute-view-model__subtitle"},_.q(_.T,{cond:S,then:function(){return _.q(BpP,{text:function(){return t5D(C().subtitle)},
truncationText:function(){return t5D(C().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.q("span",null,function(){return C().subtitle})}}))}}),_.q(_.T,{cond:function(){return C().secondarySubtitle},
then:function(J){return _.q("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.q(_.uZ,{text:function(){var c=J();if(c!=null&&c.attachmentRuns){for(var Y=[],M=_.Z(c.attachmentRuns),m=M.next();!m.done;m=M.next())m=m.value,m.element&&Y.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}}}})}));c=Object.assign({},c,{attachmentRuns:Y})}return c}}))}}),_.q(_.V4,
{data:function(){return C().buttonViewModel}},{buttonViewModel:function(J){return _.q(_.rc,{data:J.data,
className:"yt-video-attribute-view-model__button"})}}))},"hb");
KH1.idomCompat=!0;_.qs(tb7,"yt-video-attribute-view-model",{props:{data:_.GH,className:_.GH}});var DT=function(){var H=_.X.apply(this,arguments)||this;H.useHighlightStyling=_.E("web_enable_deeper_metadata_highlight_styling");H.isSearch=!1;H.JSC$15172_lastScrollContainerWidth=NaN;H.pageLoadingFromNavigation=!1;H.currentIndex=0;H.supportComponentResize=!1;return H};
_.G(DT,_.X);_.F=DT.prototype;
_.F.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}}}}}};
_.F.attached=function(){document.addEventListener("yt-page-type-changed",_.uA(this,this.onPageChange))};
_.F.detached=function(){document.removeEventListener("yt-page-type-changed",_.uA(this,this.onPageChange))};
_.F.getItemsPath=function(){return"data.cards"};
_.F.onIronResize=function(){this.updateListStyles()};
_.F.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var H;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(H=this.data)==null?void 0:H.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.E("problem_walkthrough_sd")&&!!this.centerItems};
_.F.computeCardListStyle=function(H){return H||null};
_.F.computeEmpty=function(H){return!this.get("cards.length",H)};
_.F.computeThumbnailStyle=function(H){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",H)||null};
_.F.computeHasSubtitle=function(H){return!!this.get("header.richListHeaderRenderer.subtitle",H)};
_.F.computeInitialCountNumber=function(H){return this.hasSquareMiniApp&&H==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&H==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:H==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:H==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:H==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&H==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.F.computeUseFloorScrolling=function(H){return H==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.F.computeHasGameCard=function(H){return(H=this.get("cards",H))?H.some(function(C){return C.gameCardRenderer}):!1};
_.F.computeCenterHeaderTitle=function(H){return!(H==null||!H.centerHeaderTitle)};
_.F.computeHasPortraitMiniApp=function(H){return(H=H==null?void 0:H.cards)?H.some(function(C){return C.miniGameCardViewModel&&C.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.F.computeHasSquareMiniApp=function(H){return(H=H==null?void 0:H.cards)?H.some(function(C){return C.miniGameCardViewModel&&C.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.F.computeHasSkinnyWidthPortraitMiniApp=function(H){return(H=H==null?void 0:H.cards)?H.some(function(C){return C.miniGameCardViewModel&&C.miniGameCardViewModel.width===135}):!1};
_.F.computeCenterItems=function(H){return!!H};
_.F.computeHasInfoPanel=function(H){var C;return H==null?void 0:(C=H.cards)==null?void 0:C.some(function(S){return S.infoPanelContentRenderer})};
_.F.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.F.getItemByIndex=function(H){var C=this.items.children;return C&&C.length>H?C[H]:void 0};
_.F.onPageChange=function(){var H=this;this.pageLoadingFromNavigation=!0;_.rT.addJob(function(){H.pageLoadingFromNavigation=!1;_.m7(H.hostElement,"yt-terminate-video-preview-action")},8)};
_.F.updateListStyles=function(){if(_.E("problem_walkthrough_sd")&&this.JSC$15172_scrollContainer!==void 0){var H=this.JSC$15172_scrollContainer.clientWidth;H!==this.JSC$15172_lastScrollContainerWidth&&(this.JSC$15172_lastScrollContainerWidth=H,_.Ed(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(H*.8,415)+"px"}),_.M3(this.hostElement,"iron-resize"))}};
_.JJ.Object.defineProperties(DT.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.E("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var H,C,S;return!!((H=this.data)==null?0:(C=H.cards)==null?0:(S=C[0])==null?0:S.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var H,C,S;return!!((H=this.data)==null?0:(C=H.cards)==null?0:(S=C[0])==null?0:S.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var H,C,S;return _.E("enable_desktop_amsterdam_info_panels")&&!!((H=this.data)==null?0:(C=H.cards)==null?0:(S=C[0])==null?0:S.infoPanelContentRenderer)}}});
DT.prototype.dataChanged=DT.prototype.dataChanged;DT.prototype.onIronResize=DT.prototype.onIronResize;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],DT.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],DT.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.pT.YtdHorizontalListBehavior),_.K("design:type",Object)],DT.prototype,"ytdHorizontalListBehavior",void 0);
_.D([_.v(_.m4),_.K("design:type",Object)],DT.prototype,"ytdDismissibleItemBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],DT.prototype,"data",void 0);_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],DT.prototype,"useCustomColors",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],DT.prototype,"useHighlightStyling",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.K("design:type",Object)],DT.prototype,"cardListStyle",void 0);_.D([_.V({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.K("design:type",Boolean)],DT.prototype,"empty",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.K("design:type",Boolean)],DT.prototype,"hasSubtitle",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.K("design:type",Boolean)],DT.prototype,"thumbnailStyle",void 0);_.D([_.V({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.K("design:type",Boolean)],DT.prototype,"hasGameCard",void 0);_.D([_.V({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.K("design:type",Boolean)],DT.prototype,"centerHeaderTitle",void 0);
_.D([_.V({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.K("design:type",Boolean)],DT.prototype,"hasPortraitMiniApp",void 0);_.D([_.V({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.K("design:type",Boolean)],DT.prototype,"hasSquareMiniApp",void 0);_.D([_.V({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.K("design:type",Boolean)],DT.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.D([_.V({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.K("design:type",Boolean)],DT.prototype,"hasInfoPanel",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],DT.prototype,"isSearch",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],DT.prototype,"inlineStructuredDescription",void 0);_.D([_.lA("#scroll-container"),_.K("design:type",HTMLDivElement)],DT.prototype,"JSC$15172_scrollContainer",void 0);
_.D([_.V({computed:"computeInitialCountNumber(data.style.type)"}),_.K("design:type",Number)],DT.prototype,"initialCount",void 0);_.D([_.V({computed:"computeUseFloorScrolling(data.style.type)"}),_.K("design:type",Boolean)],DT.prototype,"useFloorScrolling",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.K("design:type",Boolean)],DT.prototype,"centerItems",void 0);_.D([_.V(),_.K("design:type",Object)],DT.prototype,"pageLoadingFromNavigation",void 0);
_.D([_.V(),_.K("design:type",Object)],DT.prototype,"currentIndex",void 0);_.D([_.V(),_.K("design:type",Number)],DT.prototype,"scrollCount",void 0);_.D([_.V(),_.K("design:type",Object)],DT.prototype,"supportComponentResize",void 0);_.D([_.lA("#items"),_.K("design:type",HTMLDivElement)],DT.prototype,"items",void 0);_.D([_.Gz("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],DT.prototype,"onIronResize",null);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],DT.prototype,"dataChanged",null);_.D([_.V({reflectToAttribute:!0}),_.l("inlineStructuredDescription"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],DT.prototype,"hideNavigationButton",null);_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],DT.prototype,"modernChapters",null);
_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],DT.prototype,"hasVideoAttributeViewModels",null);_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],DT.prototype,"modernInfoPanels",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],DT);
_.B(DT,"ytd-horizontal-card-list-renderer",function(){if(hQY!==void 0)return hQY;var H=document.createElement("template");_.f(H,'\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>');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return hQY=H},{mode:_.mn("kevlar_poly_si_batch_j072")?1:2});var LHU=_.n(function(H){var C=H.data;var S={};return _.q("video-summary-content-view-model",{class:_.eJ("videoSummaryContentViewModelHost",H.className,(S.videoSummaryContentViewModelHostIsSearch=H.isSearch,S))},_.q(_.Vq,{each:function(){var w=[],A=C().paragraphs;if(A==null||!A.length)return[];for(var J=0;J<A.length;J++){var c=_.e(A[J],ICd),Y=void 0;J>0&&(Y=_.e(A[J-1],ICd));Y&&!!Y.marker===!!c.marker?w[w.length-1].paragraphs.push(c):w.push({isList:!!c.marker,paragraphs:[c]})}return w},
keyBy:"INDEX"},function(w){return _.q(_.T,{cond:function(){return w().isList},
then:function(){return _.q("ul",{class:"videoSummaryContentViewModelList"},_.q(_.Vq,{each:function(){return w().paragraphs},
keyBy:"INDEX"},function(A){return _.q("li",{class:"videoSummaryContentViewModelListItem"},_.q(_.uZ,{text:function(){return A().text}}))}))},
else:function(){return _.q("div",{class:"videoSummaryContentViewModelParagraphContainer"},_.q(_.Vq,{each:function(){return w().paragraphs},
keyBy:"INDEX"},function(A){return _.q("p",{class:"videoSummaryContentViewModelParagraph"},_.q(_.uZ,{text:function(){return A().text}}))}))}})}),_.q(_.T,{cond:function(){return!!_.e(C().likeButtonViewModel,_.wH)&&!!_.e(C().dislikeButtonViewModel,_.jf)},
then:function(){return _.q("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.q("div",{class:"videoSummaryContentViewModelLikeButton"},_.q(_.Mv,{data:function(){return _.e(C().likeButtonViewModel,_.wH)},
disableIconAnimation:!0})),_.q(_.zu,{data:function(){return _.e(C().dislikeButtonViewModel,_.jf)}}))}}))},"ib");
LHU.idomCompat=!0;_.qs(LHU,"video-summary-content-view-model",{props:{data:_.GH,isSearch:_.GH,className:_.GH}});var Kt=function(){var H=_.X.apply(this,arguments)||this;var C,S;H.isExpanded=(S=(C=H.data)==null?void 0:C.isExpanded)!=null?S:!1;H.disableExpand=!1;H.showProminentLabel=!1;H.showRightSideLabel=!0;H.toggleExpandableContent=function(w){H.disableExpand||(w.stopPropagation(),_.AB(_.Ar(w),H.hostElement,["info","expanded-subtitle"])||(H.isExpanded=!H.isExpanded,H.ytRendererBehavior.logExplicitClick(H.data),H.JSC$15183_cardList&&!_.E("expandable_metadata_a11y_fix_ks")&&_.wM(H,function(){_.Sr(H.hostElement)})))};
H.useSquareThumbnail=!1;H.startX=0;return H};
_.G(Kt,_.X);_.F=Kt.prototype;_.F.computeUseSquareThumbnail=function(){var H;return(H=this.data)==null?void 0:H.useSquareThumbnail};
_.F.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"}}}}};
_.F.dataChanged=function(){if(this.data){var H,C;this.isExpanded=(C=(H=this.data)==null?void 0:H.isExpanded)!=null?C:!1;var S,w,A,J;if(H=this.isDarkTheme()?(S=this.data)==null?void 0:(w=S.colorData)==null?void 0:w.darkColorPalette:(A=this.data)==null?void 0:(J=A.colorData)==null?void 0:J.lightColorPalette){var c,Y;if((c=this.data)==null?0:(Y=c.colorData)==null?0:Y.vibrantColorPalette)H.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.pu(this.hostElement,H)}}};
_.F.isExpandedChanged=function(){this.isExpanded&&this.JSC$15183_cardList&&_.M3(this.JSC$15183_cardList,"iron-resize")};
_.F.computeIsExpanded=function(H){return!!H.isExpanded};
_.F.computeShowProminentLabel=function(H,C){var S;return!!(H==null?0:(S=H.header)==null?0:S.showLeadingCollapsedLabel)&&!C};
_.F.computeShowRightSideLabel=function(H,C){var S;return!(H==null?0:(S=H.header)==null?0:S.showLeadingCollapsedLabel)&&!C};
_.F.captureContentClick=function(H){if(!this.disableExpand)if(_.E("expandable_metadata_fix_killswitch")){var C=H.target;_.D9n(C,"ytd-macro-markers-list-item-renderer")||H.stopPropagation();(C==null?void 0:C.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.AB(_.Ar(H),this.hostElement,["items"])||_.ww(_.Ar(H),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.F.timestampClick=function(H){H.stopPropagation();var C,S;(H=(C=this.data)==null?void 0:(S=C.header)==null?void 0:S.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(H)};
_.F.onDown=function(H){H.stopPropagation();this.startX=H.detail?H.detail.x:0};
_.F.onUp=function(H){this.skipKeyInteraction(H)&&H.stopPropagation()};
_.F.skipKeyInteraction=function(H){var C=H.target;if((C==null?void 0:C.id)==="scroll-container"||(C==null?void 0:C.id)==="items"||H.detail&&H.detail.x!==this.startX)return!0;H=_.Ar(H);H=_.Z(H);for(C=H.next();!C.done;C=H.next()){C=C.value;if(C===this.hostElement)break;if(C.hasAttribute&&C.hasAttribute("skip-key-interaction"))return!0}return!1};
_.F.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.JJ.Object.defineProperties(Kt.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var H;return!!_.e((H=this.data)==null?void 0:H.expandedContent,RZd)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var H;return!!_.e((H=this.data)==null?void 0:H.expandedContent,_.IMM)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var H,C;return!((H=this.data)==null||!H.useCustomColors)&&!((C=this.data)==null||!C.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var H,C;return!!((H=this.data)==null?0:(C=H.header)==null?0:C.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var H,C;return!!((H=this.data)==null?0:(C=H.header)==null?0:C.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var H,C;return!!((H=this.data)==null?0:(C=H.header)==null?0:C.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
Kt.prototype.onUp=Kt.prototype.onUp;Kt.prototype.onDown=Kt.prototype.onDown;Kt.prototype.isExpandedChanged=Kt.prototype.isExpandedChanged;Kt.prototype.dataChanged=Kt.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Kt.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Kt.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Kt.prototype,"ytComponentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Kt.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Kt.prototype,"isExpanded",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Kt.prototype,"disableExpand",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],Kt.prototype,"isSearch",void 0);
_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],Kt.prototype,"isWatch",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.K("design:type",Object)],Kt.prototype,"showProminentLabel",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.K("design:type",Object)],Kt.prototype,"showRightSideLabel",void 0);
_.D([_.V({value:!1,reflectToAttribute:!0}),_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Kt.prototype,"hasVideoSummary",null);_.D([_.V({value:!1,reflectToAttribute:!0}),_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Kt.prototype,"hasLockupViewModel",null);_.D([_.V({reflectToAttribute:!0}),_.l("data","isWatch"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Kt.prototype,"useCustomColors",null);
_.D([_.V({reflectToAttribute:!0}),_.l("data","isExpanded"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Kt.prototype,"showInfoButton",null);_.D([_.l("data","isExpanded"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Kt.prototype,"showTimestamp",null);_.D([_.l("data","isExpanded"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Kt.prototype,"showExpandedSubtitle",null);
_.D([_.l("data","isExpanded"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Kt.prototype,"showThumbnail",null);_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Kt.prototype,"useVppShoppingDestinationStyle",null);_.D([_.V(),_.K("design:type",Object)],Kt.prototype,"toggleExpandableContent",void 0);_.D([_.lA("ytd-horizontal-card-list-renderer"),_.K("design:type",Object)],Kt.prototype,"JSC$15183_cardList",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.K("design:type",Object)],Kt.prototype,"useSquareThumbnail",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Kt.prototype,"dataChanged",null);_.D([_.fx("isExpanded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Kt.prototype,"isExpandedChanged",null);
_.D([_.Gz("down"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Kt.prototype,"onDown",null);_.D([_.Gz("up"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Kt.prototype,"onUp",null);_.D([_.h({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],Kt);
_.B(Kt,"ytd-expandable-metadata-renderer",function(){if(gL7!==void 0)return gL7;var H=document.createElement("template");_.f(H,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[!isExpanded]]" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return gL7=H},{mode:1});var gWP,Uud=function(){if(gWP!==void 0)return gWP;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return gWP=H};_.qs(_.Yn,"yt-avatar-stack-view-model",{props:{className:_.GH,data:_.GH,overrides:_.GH,isOverlay:_.GH,useMediumText:_.GH,decorations:_.GH,hideAvatar:_.GH}});_.hg("itemSectionRenderer","videoRenderer","ytd-video-renderer");var tK=function(){var H=_.X.apply(this,arguments)||this;H.disableExpand=!1;H.shouldShowChannelInfo=!1;H.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return H};
_.G(tK,_.X);_.F=tK.prototype;_.F.computeUseSearchUi=function(){var H,C;return this.isSearch||((H=this.data)==null?void 0:(C=H.style)==null?void 0:C.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.F.computeUseThreeLineTitle=function(){var H;return((H=this.data)==null?void 0:H.maxTitleLines)===3};
_.F.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.E("polymer_video_renderer_defer_menu")&&!pLb?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"}}}};
_.F.attached=function(){_.yQ(this.hostElement,"blue-links",_.E("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.F.detached=function(){this.clearInlinePreviewHoverListeners()};
_.F.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.NT(_.mY(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var H=this.get("data.buttons.buttonRenderer.serviceEndpoint"),C;H&&((C=_.e(H.commandMetadata,_.R4))==null?0:C.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(H);this.updateInlinePreviewHoverListeners()};
_.F.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15188_inlinePreviewHoverListener=Kn({mediaRenderer:this,lockupElement:this.JSC$15188_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.F.clearInlinePreviewHoverListeners=function(){var H;(H=this.JSC$15188_inlinePreviewHoverListener)==null||Cd(H)};
_.F.onTextWrapperClick=function(H){var C,S,w=this.hideTranslation?(C=this.data)==null?void 0:C.untranslatedNavigationEndpoint:(S=this.data)==null?void 0:S.navigationEndpoint;C=_.AB(_.Ar(H),this.hostElement,["expandable-metadata"]);!w||C&&!_.E("expandable_metadata_fix_killswitch")||_.ww(_.Ar(H),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.M3(this.hostElement,"yt-navigate",{endpoint:w})};
_.F.computeThumbnailWidth=function(H,C,S,w,A){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:w?A==="MASSIVE"?600:A==="BIG"?500:A==="MEDIUM"?450:420:S?360:C?128:H?210:246};
_.F.computeUseBiggerThumbs=function(H){return H&&_.E("enable_desktop_search_bigger_thumbs")};
_.F.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.F.computeVideoStyle=function(){if(_.E("enable_video_style")){var H,C;return(H=this.data)==null?void 0:(C=H.style)==null?void 0:C.value}};
_.F.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.F.handleHideItemSectionVideosByIdCommand=function(H){var C;H=(C=_.e(H,Wu7))==null?void 0:C.videoId;this.data&&this.data.videoId===H&&(this.isHidden=!0)};
_.F.getMetadataSnippetContainerClass=function(H){return H?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.F.computeTitleText=function(H,C,S){return H?S:C};
_.F.computeDescriptionSnippet=function(H,C,S){return H?S:C};
_.F.computeSnippetText=function(H,C,S){return H?S:C};
_.F.computeNavigationEndpoint=function(H,C){return H?C==null?void 0:C.untranslatedNavigationEndpoint:C==null?void 0:C.navigationEndpoint};
_.F.hideInlineTitleIcon=function(H,C){return H||!C};
_.JJ.Object.defineProperties(tK.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 H;return(H=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?H:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var H,C,S;return!!(this==null?0:(H=this.data)==null?0:(C=H.channelThumbnailSupportedRenderers)==null?0:(S=C.channelThumbnailWithLinkRenderer)==null?0:S.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var H;return!!_.e((H=this.data)==null?void 0:H.avatar,aM7)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.JSC$15188_inlinePreviewHoverListener)==null?0:qq(H))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.JJ.Object.defineProperties(tK,{template:{configurable:!0,enumerable:!0,get:function(){return Uud()}}});
tK.prototype.dataChanged=tK.prototype.dataChanged;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],tK.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],tK.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],tK.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.m4),_.K("design:type",Object)],tK.prototype,"ytdDismissibleItemBehavior",void 0);
_.D([_.v(_.uU),_.K("design:type",Object)],tK.prototype,"ytdLockupBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],tK.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],tK.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],tK.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],tK.prototype,"isBackstageVideo",void 0);
_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],tK.prototype,"isPostCompactVideo",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],tK.prototype,"isHistory",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],tK.prototype,"isRichGridVideoPost",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],tK.prototype,"isHidden",void 0);
_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],tK.prototype,"isSearch",void 0);_.D([_.V({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.K("design:type",Boolean)],tK.prototype,"useSearchUi",void 0);_.D([_.V({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.K("design:type",Boolean)],tK.prototype,"useThreeLineTitle",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.K("design:type",Boolean)],tK.prototype,"useBiggerThumbs",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.K("design:type",Object)],tK.prototype,"videoStyle",void 0);_.D([_.V({computed:"computeDisableExpand(videoStyle)"}),_.K("design:type",Object)],tK.prototype,"disableExpand",void 0);
_.D([_.V({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.K("design:type",Object)],tK.prototype,"shouldShowChannelInfo",void 0);_.D([_.V({reflectToAttribute:!0,value:function(){return _.z9("desktop_search_bigger_thumbs_style")}}),
_.K("design:type",String)],tK.prototype,"biggerThumbsStyle",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.K("design:type",String)],tK.prototype,"inlineTitleIcon",void 0);_.D([_.V({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.K("design:type",Object)],tK.prototype,"computedNavigationEndpoint",void 0);_.D([_.V({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(H,C){return _.Ea(H.entities,"searchVideoResultEntity",C)}}),
_.K("design:type",Object)],tK.prototype,"searchVideoResultEntity",void 0);_.D([_.lA("ytd-thumbnail"),_.K("design:type",HTMLElement)],tK.prototype,"thumbnail",void 0);_.D([_.lA("#dismissible"),_.K("design:type",HTMLElement)],tK.prototype,"JSC$15188_dismissibleMedia",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],tK.prototype,"dataChanged",null);
_.D([_.l("searchVideoResultEntity"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],tK.prototype,"hideTranslation",null);_.D([_.l("searchVideoResultEntity"),_.K("design:type",Array),_.K("design:paramtypes",[])],tK.prototype,"hiddenBadgeGroups",null);_.D([_.l("data","useAvatar"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],tK.prototype,"shouldShowChannelThumbnail",null);_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],tK.prototype,"useAvatar",null);
_.D([_.l("lockupIsHovered"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],tK.prototype,"isHovered",null);_.D([_.h({is:"ytd-video-renderer",disableElementRegistration:!0})],tK);_.B(tK,"ytd-video-renderer",function(){return Uud()},{mode:_.mn("kevlar_poly_si_batch_j047")?1:2});var Lt=function(){var H=_.X.apply(this,arguments)||this;H.editDialog=null;H.roundedContainer=!0;H.isLoading=!1;H.isRichGrid=!1;H.isRichGridRepost=!1;H.reduceSidePaddings=_.E("reduce_side_paddings_in_shelf");H.JSC$15195_spinnerEl=null;return H};
_.G(Lt,_.X);_.F=Lt.prototype;
_.F.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"}}}};
_.F.contentTextChanged=function(){this.expander.reset()};
_.F.dataChanged=function(){var H=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var C=0,S=this.data.actions&&this.data.actions.length;C<S;C++)this.openEditDialog(_.e(this.data.actions[C],ww1));if((C=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(C=this.get("buttonRenderer.hint.hintRenderer.hintId",C))&&C.startsWith("share-post-hint")){var w=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(w){_.PP.getInstance();var A=$e(_.sx(_.fL("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.rT.addLowPriorityJob(function(){_.yN(H.hostElement,A,w)})}}}};
_.F.updatePoll=function(H){H>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.F.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15195_spinnerEl||(this.JSC$15195_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.mY(this.hostElement).appendChild(this.JSC$15195_spinnerEl));this.JSC$15195_spinnerEl&&(this.JSC$15195_spinnerEl.active=this.isLoading)};
_.F.onYtNavigate=function(H){var C=this.get("updateCommentDialogEndpoint",H.detail.endpoint);C&&(this.openEditDialog(C),H.stopPropagation())};
_.F.onYtCommentboxDismiss=function(){this.editDialog=null};
_.F.onYtCommentPollRevert=function(H,C){C&&this.updatePoll(C.selectedChoiceIndex)};
_.F.onYtServiceRequestSent=function(H,C){var S;C.endpoint&&(_.e(C.endpoint,J$7)||_.e(C.endpoint,A$i)&&((S=_.e(C.endpoint,A$i))==null||!S.clientActions))&&(this.isLoading=!0);if(C.actions)for(H=0;H<C.actions.length;H++)S=C.actions[H],_.e(S,gZ)&&(S=this.get("updateBackstagePollAction.selectedChoiceIndex",S),S==void 0&&(S=-1),this.updatePoll(S))};
_.F.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.F.openEditDialog=function(H){H&&H.dialog&&(this.editDialog=H.dialog,H=this.editDialogEl.firstElementChild)&&(H.focus(),H.openDialog&&H.openDialog())};
_.F.computeIsPostHidden=function(H,C){return!!H||C};
_.F.computeSurfaceType=function(H){return H?H.toLowerCase().replace(/_/g,"-"):""};
_.F.computeUsesCompactLockup=function(H){return H==="BACKSTAGE_SURFACE_TYPE_HOME"||H==="BACKSTAGE_SURFACE_TYPE_SEARCH"||H==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||H==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||H==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||H==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.F.computeShowWithoutToolbar=function(H){return!H.actionButtons&&!H.actionMenu};
_.F.computePostAttachment=function(H){if(H.backstageAttachment){if(_.e(H.backstageAttachment,nP7))return"poll";if(_.e(H.backstageAttachment,u7P))return"quiz";if(_.e(H.backstageAttachment,_.zN))return"video";if(_.e(H.backstageAttachment,GNd))return"uploaded-videos";if(_.e(H.backstageAttachment,oc7))return H.contentText?"image":"image-only";if(_.e(H.backstageAttachment,NHV))return"playlist"}return"none"};
_.F.computePostTabIndex=function(H){return H?0:-1};
_.F.computeButtonTooltipPosition=function(H){return this.computeUsesCompactLockup(H)?"top":"bottom"};
_.F.computeHasText=function(H){return!(H==null||!H.contentText)};
_.F.onTap=function(H){var C,S;if(((C=this.data)==null?0:C.navigationEndpoint)&&((S=this.data)==null?void 0:S.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var w;((w=this.data)==null?0:w.navigationEndpoint)&&!_.ww(_.Ar(H)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.M3(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.JJ.Object.defineProperties(Lt.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.voteCount)||_.sx("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.e(this.data.backstageAttachment,nP7))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.e(this.data.backstageAttachment,GNd))}}});
Lt.prototype.onYtServiceRequestCompleted=Lt.prototype.onYtServiceRequestCompleted;Lt.prototype.onYtServiceRequestSent=Lt.prototype.onYtServiceRequestSent;Lt.prototype.onYtCommentPollRevert=Lt.prototype.onYtCommentPollRevert;Lt.prototype.onYtCommentboxDismiss=Lt.prototype.onYtCommentboxDismiss;Lt.prototype.onYtNavigate=Lt.prototype.onYtNavigate;Lt.prototype.isLoadingChanged=Lt.prototype.isLoadingChanged;Lt.prototype.dataChanged=Lt.prototype.dataChanged;Lt.prototype.contentTextChanged=Lt.prototype.contentTextChanged;
_.D([_.v(_.m4),_.K("design:type",Object)],Lt.prototype,"ytdDismissibleItemBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Lt.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Lt.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Lt.prototype,"ytComponentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Lt.prototype,"data",void 0);
_.D([_.V(),_.K("design:type",Object)],Lt.prototype,"editDialog",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Lt.prototype,"roundedContainer",void 0);_.D([_.V(),_.K("design:type",Object)],Lt.prototype,"isLoading",void 0);_.D([_.V({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.K("design:type",String)],Lt.prototype,"surface",void 0);
_.D([_.V({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Lt.prototype,"usesCompactLockup",void 0);_.D([_.V({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Lt.prototype,"showWithoutToolbar",void 0);_.D([_.V({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.K("design:type",String)],Lt.prototype,"attachment",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Lt.prototype,"isRichGrid",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Lt.prototype,"isRichGridRepost",void 0);_.D([_.V({reflectToAttribute:!0,value:_.E("use_better_post_dismissals")}),_.K("design:type",Boolean)],Lt.prototype,"useBetterPostDismissals",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Lt.prototype,"reduceSidePaddings",void 0);
_.D([_.V({computed:"computeHasText(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Lt.prototype,"hasText",void 0);_.D([_.lA("#expander"),_.K("design:type",Object)],Lt.prototype,"expander",void 0);_.D([_.lA("#action-buttons"),_.K("design:type",Object)],Lt.prototype,"actionButtons",void 0);_.D([_.lA("#edit-dialog"),_.K("design:type",HTMLElement)],Lt.prototype,"editDialogEl",void 0);
_.D([_.fx("data.contentText"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Lt.prototype,"contentTextChanged",null);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Lt.prototype,"dataChanged",null);_.D([_.fx("isLoading"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Lt.prototype,"isLoadingChanged",null);
_.D([_.Gz("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Lt.prototype,"onYtNavigate",null);_.D([_.Gz("yt-commentbox-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Lt.prototype,"onYtCommentboxDismiss",null);_.D([_.Gz("yt-comment-poll-revert"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],Lt.prototype,"onYtCommentPollRevert",null);
_.D([_.Gz("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.IW]),_.K("design:returntype")],Lt.prototype,"onYtServiceRequestSent",null);_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.j4]),_.K("design:returntype")],Lt.prototype,"onYtServiceRequestCompleted",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Lt.prototype,"voteCount",null);
_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Lt.prototype,"commentCount",null);_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Lt.prototype,"hasPoll",null);_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Lt.prototype,"hasUploadedVideo",null);_.D([_.h({is:"ytd-post-renderer",disableElementRegistration:!0})],Lt);
_.B(Lt,"ytd-post-renderer",function(){if(qCU!==void 0)return qCU;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return qCU=H},{mode:1});var RIW;var I8b;var gn=function(){return _.X.apply(this,arguments)||this};
_.G(gn,_.X);gn.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],gn.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],gn.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.pT.YtdHorizontalListBehavior),_.K("design:type",Object)],gn.prototype,"ytdHorizontalListBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],gn.prototype,"componentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],gn.prototype,"data",void 0);
_.D([_.V({value:"$.items.children"}),_.K("design:type",String)],gn.prototype,"itemsPath",void 0);_.D([_.V({value:1}),_.K("design:type",Number)],gn.prototype,"initialCount",void 0);_.D([_.V({reflectToAttribute:!0,value:_.E("enable_community_page_on_desktop")}),_.K("design:type",Boolean)],gn.prototype,"useSmallerPostImageAttachments",void 0);_.D([_.V(),_.K("design:type",String)],gn.prototype,"surface",void 0);_.D([_.h({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],gn);
_.B(gn,"ytd-post-multi-image-renderer",function(){if(I8b!==void 0)return I8b;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return I8b=H},{mode:_.mn("kevlar_poly_si_batch_j079")?1:2});var a8M={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}},Ur=function(){var H=_.X.apply(this,arguments)||this;H.hasInlineCommentSection=!1;H.editDialog=null;H.isLoading=!1;H.shouldHideAuthor=!1;H.shouldShowVideoTime=!1;
H.isInEngagementPanel=!1;H.hideBorder=!1;H.usesFullLockup=!1;H.shouldShowMenuInCompactView=!1;H.JSC$15210_spinnerEl=null;H.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return H};
_.G(Ur,_.X);_.F=Ur.prototype;_.F.configureRendererStamper=function(){return a8M};
_.F.computeIsPollHeaderEnabled=function(H){return(H==null?void 0:H.pollMetadataIcon)!=null};
_.F.getPublishTimeStampString=function(H,C){C=new Date((Number(C)-60*((new Date).getTimezoneOffset()-(new Date(Number(C)*1E3)).getTimezoneOffset()))*1E3);C=(new St(10)).format(C);if(H&&H.runs&&H.runs.length)for(var S=0;S<H.runs.length;S++)H.runs[S].text&&(H.runs[S].text=H.runs[S].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",C));return H};
_.F.created=function(){this.JSC$15210_spinnerEl=null};
_.F.contentTextChanged=function(){this.expander.reset()};
_.F.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var H;if((H=this.data)==null?0:H.actions){H=_.Z(this.data.actions);for(var C=H.next();!C.done;C=H.next())this.openEditDialog(_.e(C.value,ww1))}};
_.F.handleSignalActionOpenPostCommentDialogAction=function(){_.mY(this.hostElement).querySelector("#action-buttons").reply()};
_.F.updatePoll=function(H,C){C&&this.set("data.pollMetadataVoteCountText",C);this.hasInlineCommentSection&&(H=H>=0,C=_.mY(this.hostElement).querySelector("#action-buttons"),H?C.reply():C.hideReplyDialog())};
_.F.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15210_spinnerEl||(this.JSC$15210_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.mY(this.hostElement).appendChild(this.JSC$15210_spinnerEl));this.JSC$15210_spinnerEl&&(this.JSC$15210_spinnerEl.active=this.isLoading)};
_.F.onYtNavigate=function(H){var C=this.get("updateCommentDialogEndpoint",H.detail.endpoint);C&&(this.openEditDialog(C),H.stopPropagation())};
_.F.onYtCommentboxDismiss=function(){this.editDialog=null};
_.F.onYtCommentPollRevert=function(H,C){C&&this.updatePoll(C.selectedChoiceIndex,C.totalVotes)};
_.F.onYtServiceRequestSent=function(H,C){H.stopPropagation();H=_.e(C.endpoint,A$i);if(_.e(C.endpoint,J$7)||H&&!H.clientActions)this.isLoading=!0;if(C.actions)for(H=0;H<C.actions.length;H++){var S=C.actions[H],w=_.e(S,gZ);w&&(S=this.get("updateBackstagePollAction.selectedChoiceIndex",S),S===void 0&&(S=-1),this.updatePoll(S,w.totalVotes))}};
_.F.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.F.openEditDialog=function(H){H&&H.dialog&&(this.editDialog=H.dialog,H=this.editDialogElement.firstElementChild)&&(H.focus(),H.openDialog&&H.openDialog())};
_.F.computeIsBodyHidden=function(H,C){return!!H||C};
_.JJ.Object.defineProperties(Ur.prototype,{authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var H=this.data,C=H.showPostAuthorBackgroundHighlight,S=H.postAuthorBadgeType,w=H.authorEndpoint;if(!C&&S!=="POST_AUTHOR_BADGE_TYPE_VERIFIED"&&S!=="POST_AUTHOR_BADGE_TYPE_ARTIST")return null;var A,J,c;H=_.sx(((A=H.authorText)==null?void 0:(J=A.runs)==null?void 0:(c=J[0])==null?void 0:c.text)||"");A=void 0;switch(S){case "POST_AUTHOR_BADGE_TYPE_ARTIST":A={iconType:"AUDIO_BADGE"};
break;case "POST_AUTHOR_BADGE_TYPE_VERIFIED":A={iconType:C?"CHECK_CIRCLE_THICK":"CHECK"}}return{renderer:{authorText:H,authorEndpoint:w,authorCreator:C,icon:A}}}},
postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var H,C;if((H=this.data)==null?0:(C=H.pollMetadataIcon)==null?0:C.iconType)return _.bJ(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.voteCount)||_.sx("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.e(this.data.backstageAttachment,nP7))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.e(this.data.backstageAttachment,u7P))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.e(this.data.backstageAttachment,GNd))}}});
Ur.prototype.onYtServiceRequestCompleted=Ur.prototype.onYtServiceRequestCompleted;Ur.prototype.onYtServiceRequestSent=Ur.prototype.onYtServiceRequestSent;Ur.prototype.onYtCommentPollRevert=Ur.prototype.onYtCommentPollRevert;Ur.prototype.onYtCommentboxDismiss=Ur.prototype.onYtCommentboxDismiss;Ur.prototype.onYtNavigate=Ur.prototype.onYtNavigate;Ur.prototype.isLoadingChanged=Ur.prototype.isLoadingChanged;Ur.prototype.dataChanged=Ur.prototype.dataChanged;Ur.prototype.contentTextChanged=Ur.prototype.contentTextChanged;
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],Ur.prototype,"actionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Ur.prototype,"rendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Ur.prototype,"rendererstamperBehavior",void 0);_.D([_.lA("#contentTextExpander"),_.K("design:type",Object)],Ur.prototype,"expander",void 0);
_.D([_.lA("#edit-dialog"),_.K("design:type",Element)],Ur.prototype,"editDialogElement",void 0);_.D([_.V(),_.K("design:type",Object)],Ur.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],Ur.prototype,"hasInlineCommentSection",void 0);_.D([_.V(),_.K("design:type",Object)],Ur.prototype,"editDialog",void 0);_.D([_.V(),_.K("design:type",Object)],Ur.prototype,"isLoading",void 0);
_.D([_.V({computed:"computeIsPollHeaderEnabled(data)"}),_.K("design:type",Boolean)],Ur.prototype,"isPollHeaderEnabled",void 0);_.D([_.V(),_.K("design:type",Object)],Ur.prototype,"shouldHideAuthor",void 0);_.D([_.V(),_.K("design:type",Object)],Ur.prototype,"shouldShowVideoTime",void 0);_.D([_.V(),_.K("design:type",Object)],Ur.prototype,"isInEngagementPanel",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Ur.prototype,"hideBorder",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Ur.prototype,"usesFullLockup",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Ur.prototype,"shouldShowMenuInCompactView",void 0);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ur.prototype,"authorCommentBadge",null);_.D([_.l("isInEngagementPanel"),_.K("design:type",Number),_.K("design:paramtypes",[])],Ur.prototype,"postTextMaxLines",null);
_.D([_.l("data.icon.iconType"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ur.prototype,"pollIcon",null);_.D([_.fx("data.contentText"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ur.prototype,"contentTextChanged",null);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ur.prototype,"dataChanged",null);
_.D([_.fx("isLoading"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ur.prototype,"isLoadingChanged",null);_.D([_.Gz("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Ur.prototype,"onYtNavigate",null);_.D([_.Gz("yt-commentbox-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ur.prototype,"onYtCommentboxDismiss",null);
_.D([_.Gz("yt-comment-poll-revert"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],Ur.prototype,"onYtCommentPollRevert",null);_.D([_.Gz("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.IW]),_.K("design:returntype")],Ur.prototype,"onYtServiceRequestSent",null);
_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Ur.prototype,"onYtServiceRequestCompleted",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ur.prototype,"voteCount",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ur.prototype,"commentCount",null);
_.D([_.l("data.backstageAttachment"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Ur.prototype,"hasPoll",null);_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Ur.prototype,"hasQuiz",null);_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Ur.prototype,"hasUploadedVideo",null);_.D([_.h({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],Ur);
_.B(Ur,"ytd-backstage-post-renderer",function(){if(RIW!==void 0)return RIW;var H=document.createElement("template");_.f(H,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return RIW=H},{mode:1});var xui;var Rb=function(){var H=_.X.apply(this,arguments)||this;H.editDialog=null;H.showExpandButton=!1;H.isRichGrid=!1;H.usesFullLockup=!1;return H};
_.G(Rb,_.X);_.F=Rb.prototype;_.F.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"}}}};
_.F.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.F.computeShowExpandButton=function(H){return this.usesCompactLockup||H&&H.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.F.computeUsesCompactLockup=function(H){return!!H.condensedContent};
_.F.computeShowFullContentText=function(H){return!H};
_.F.onYtNavigate=function(H){H=this.get("updateCommentDialogEndpoint",H.detail.endpoint);this.openEditDialog(H)};
_.F.onYtCommentboxDismiss=function(){this.editDialog=null};
_.F.openEditDialog=function(H){H&&H.dialog&&(this.editDialog=H.dialog,H=this.repostEditDialogEl.firstElementChild)&&(H.focus(),H.openDialog&&H.openDialog())};
_.F.onTap=function(H){if(this.data){var C=null;this.usesCompactLockup&&!_.ww(_.Ar(H)||[],this.hostElement,["YT-IMG-SHADOW"])?C=this.get("navigationEndpoint",this.data):H.target===this.moreButtonEl&&(C=this.get("navigationEndpoint",H.target.data));C&&_.M3(this.hostElement,"yt-navigate",{endpoint:C})}};
Rb.prototype.onYtCommentboxDismiss=Rb.prototype.onYtCommentboxDismiss;Rb.prototype.onYtNavigate=Rb.prototype.onYtNavigate;Rb.prototype.dataChanged=Rb.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Rb.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Rb.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Rb.prototype,"data",void 0);
_.D([_.V(),_.K("design:type",Object)],Rb.prototype,"editDialog",void 0);_.D([_.V({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Rb.prototype,"usesCompactLockup",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Rb.prototype,"showExpandButton",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Rb.prototype,"isRichGrid",void 0);
_.D([_.V({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Rb.prototype,"showFullContentText",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Rb.prototype,"usesFullLockup",void 0);_.D([_.lA("#more"),_.K("design:type",Object)],Rb.prototype,"moreButtonEl",void 0);_.D([_.lA("#repost-content-text"),_.K("design:type",HTMLElement)],Rb.prototype,"repostContentTextEl",void 0);
_.D([_.lA("#repost-edit-dialog"),_.K("design:type",HTMLElement)],Rb.prototype,"repostEditDialogEl",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Rb.prototype,"dataChanged",null);_.D([_.Gz("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Rb.prototype,"onYtNavigate",null);
_.D([_.Gz("yt-commentbox-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Rb.prototype,"onYtCommentboxDismiss",null);_.D([_.h({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],Rb);
_.B(Rb,"ytd-shared-post-renderer",function(){if(xui!==void 0)return xui;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return xui=H},{mode:1});var HF7;var iF7;var Ib=function(){return _.X.apply(this,arguments)||this};
_.G(Ib,_.X);Ib.prototype.attached=function(){var H=this;this.networkStatusManager||(this.networkStatusManager=new _.Hn,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){H.onlineHandler()}))};
Ib.prototype.detached=function(){var H=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){H.onlineHandler()}),delete this.networkStatusManager)};
Ib.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Ib.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Ib.prototype,"ytComponentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Ib.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],Ib);
_.B(Ib,"ytd-reload-page-button-renderer",function(){if(iF7!==void 0)return iF7;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);
return iF7=H},{mode:1});var CNY={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"},ab=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return H};
_.G(ab,_.X);_.F=ab.prototype;_.F.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.F.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.F.computeHasBodyText=function(H){return!!H.bodyText};
_.F.computeButtons=function(H){var C=[];H.ctaButton&&C.push(H.ctaButton);H.secondaryButton&&C.push(H.secondaryButton);return C};
_.F.computeRendererStyle=function(H){return H.style?H.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():H.icon?"":"no-icon"};
_.F.getIconName=function(H,C){C=C===void 0?!1:C;if(H===void 0)return"";H=this.get("icon.iconType",H);var S;_.E("enable_hlp_client_icon_pick")?S=this.getThemedIcon(H,C):S=H;(C=CNY[S])||(C="yt-icons");return[C,S].join(":")};
_.F.getThemedIcon=function(H,C){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(H)?C?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(H)?C?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":H};
_.F.isThumbnail=function(H){return!!H.thumbnail};
_.F.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.F.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],ab.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],ab.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],ab.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],ab.prototype,"data",void 0);
_.D([_.V({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.K("design:type",String)],ab.prototype,"rendererStyle",void 0);_.D([_.V({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.K("design:type",String)],ab.prototype,"iconName",void 0);_.D([_.V({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],ab.prototype,"thumbnail",void 0);_.D([_.V({computed:"computeButtons(data)"}),_.K("design:type",Array)],ab.prototype,"buttons",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],ab.prototype,"isDarkTheme",void 0);_.D([_.V({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],ab.prototype,"hasBodyText",void 0);_.D([_.h({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],ab);
_.B(ab,"ytd-background-promo-renderer",function(){if(HF7!==void 0)return HF7;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return HF7=H},{mode:1});var SOM;var xn=function(){var H=_.X.apply(this,arguments)||this;H.collections=_.E("web_modern_collections_v2");return H};
_.G(xn,_.X);_.JJ.Object.defineProperties(xn.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var H,C,S,w,A,J;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(H=this.data)==null?void 0:(C=H.thumbnail)==null?void 0:C.sampledThumbnailColor,vibrantColorPalette:(S=this.data)==null?void 0:(w=S.thumbnail)==null?void 0:w.vibrantColorPalette,darkColorPalette:(A=this.data)==null?void 0:(J=A.thumbnail)==null?void 0:J.darkColorPalette,experimentEnabled:this.collections}}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],xn.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],xn.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],xn.prototype,"collections",void 0);_.D([_.l("data","collections"),_.K("design:type",Object),_.K("design:paramtypes",[])],xn.prototype,"collectionStack",null);_.D([_.h({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],xn);
_.B(xn,"ytd-compact-station-renderer",function(){if(SOM!==void 0)return SOM;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return SOM=H},{mode:1});var sK_;var HB=function(){var H=_.X.apply(this,arguments)||this;H.isRichGrid=!1;return H};
_.G(HB,_.X);HB.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]]"}}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],HB.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],HB.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],HB.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],HB.prototype,"isRichGrid",void 0);_.D([_.h({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],HB);
_.B(HB,"ytd-grid-channel-renderer",function(){if(sK_!==void 0)return sK_;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return sK_=H},{mode:1});var jK1;var iI=function(){return _.X.apply(this,arguments)||this};
_.G(iI,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],iI.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],iI.prototype,"data",void 0);_.D([_.h({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],iI);
_.B(iI,"ytd-grid-movie-playlist-renderer",function(){if(jK1!==void 0)return jK1;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return jK1=H},{mode:1});var wzU;var Cg=function(){var H=_.X.apply(this,arguments)||this;H.downloadProgress=0;H.transferState="TRANSFER_STATE_UNKNOWN";H.modernButtons=_.E("web_modern_buttons");H.useModernCollectionsV2=_.E("web_modern_collections_v2");return H};
_.G(Cg,_.X);Cg.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
Cg.prototype.configureRendererStamper=function(){return{"data.menu":RN}};
Cg.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
Cg.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.E("woffle_playlist_renderer_killswitch")){var H,C=qAU(this.entityInfo,this.transferState,this.downloadProgress,(H=this.data)==null?void 0:H.playlistId,this.isOnline);H=C.viewPlaylistText;var S=C.badges;C=C.thumbnailOverlays;this.isDownloads=!!H||!!S;this.set("data.viewPlaylistText",H);S&&S.length>0&&this.set("data.badges",S);C&&C.length>0&&this.set("data.thumbnailOverlays",
C)}};
_.JJ.Object.defineProperties(Cg.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 H;return!((H=this.data)==null?0:H.menu)}}});
Cg.prototype.transferStateChanged=Cg.prototype.transferStateChanged;Cg.prototype.dataChanged=Cg.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Cg.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.uU),_.K("design:type",Object)],Cg.prototype,"ytdLockupBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],Cg.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Cg.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.V({selector:_.Gm7,selectorArgs:["data.playlistId"]}),_.K("design:type",Object)],Cg.prototype,"downloadProgress",void 0);_.D([_.V({selector:_.gB,selectorArgs:["data.playlistId"]}),_.K("design:type",Object)],Cg.prototype,"transferState",void 0);_.D([_.V({selector:uKV,selectorArgs:["data.playlistId"]}),_.K("design:type",Object)],Cg.prototype,"entityInfo",void 0);_.D([_.V({selector:_.tf}),_.K("design:type",Boolean)],Cg.prototype,"isOnline",void 0);
_.D([_.V(),_.K("design:type",Object)],Cg.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],Cg.prototype,"downloadRenderData",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],Cg.prototype,"modernButtons",void 0);_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],Cg.prototype,"isDownloads",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Cg.prototype,"useModernCollectionsV2",void 0);
_.D([_.l("transferState"),_.V({reflectToAttribute:!0}),_.K("design:type",String),_.K("design:paramtypes",[])],Cg.prototype,"downloadState",null);_.D([_.l("data"),_.V({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Cg.prototype,"menuHidden",null);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Cg.prototype,"dataChanged",null);
_.D([_.XJ("transferState","downloadProgress","isOnline"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Cg.prototype,"transferStateChanged",null);_.D([_.h({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],Cg);
_.B(Cg,"ytd-grid-playlist-renderer",function(){if(wzU!==void 0)return wzU;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return wzU=H},{mode:1});var AeP;var Su=function(){var H=_.X.apply(this,arguments)||this;H.collections=_.E("web_modern_collections_v2");return H};
_.G(Su,_.X);Su.prototype.configureRendererStamper=function(){return{"data.menu":RN,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.JJ.Object.defineProperties(Su.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var H,C,S,w,A,J;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(H=this.data)==null?void 0:(C=H.thumbnail)==null?void 0:C.sampledThumbnailColor,vibrantColorPalette:(S=this.data)==null?void 0:(w=S.thumbnail)==null?void 0:w.vibrantColorPalette,darkColorPalette:(A=this.data)==null?void 0:(J=A.thumbnail)==null?void 0:J.darkColorPalette,experimentEnabled:this.collections}}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Su.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.m4),_.K("design:type",Object)],Su.prototype,"ytdDismissibleItemBehavior",void 0);_.D([_.v(_.uU),_.K("design:type",Object)],Su.prototype,"ytdLockupBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Su.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Su.prototype,"data",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],Su.prototype,"collections",void 0);_.D([_.l("data","collections"),_.K("design:type",Object),_.K("design:paramtypes",[])],Su.prototype,"collectionStack",null);_.D([_.h({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],Su);
_.B(Su,"ytd-grid-radio-renderer",function(){if(AeP!==void 0)return AeP;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return AeP=H},{mode:1});var Je1;var sH=function(){var H=_.X.apply(this,arguments)||this;H.useModernCollectionsV2=_.E("web_modern_collections_v2");return H};
_.G(sH,_.X);sH.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
sH.prototype.computeNavigationEndpoint=function(H){return Wy7(H==null?void 0:H.navigationEndpoint)};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],sH.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],sH.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.uU),_.K("design:type",Object)],sH.prototype,"ytdLockupBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],sH.prototype,"data",void 0);_.D([_.V({computed:"computeNavigationEndpoint(data)"}),_.K("design:type",Object)],sH.prototype,"computedNavigationEndpoint",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],sH.prototype,"useModernCollectionsV2",void 0);_.D([_.h({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],sH);
_.B(sH,"ytd-grid-show-renderer",function(){if(Je1!==void 0)return Je1;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Je1=H},{mode:1});var FKV;_.ju=function(H){this.playerClient=H};
_.ZFP=function(H,C,S){S=S===void 0?{}:S;return H.playerClient.setOption("ad",C,S)};
_.ju.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.ju.prototype.executeCommand=function(H,C){this.getOptions().includes("executeCommand")?_.ZFP(this,"executeCommand",{command:H,layoutId:C}):_.a$("Calling executeCommand when adModule is not loaded")};var wo=function(){return _.X.apply(this,arguments)||this};
_.G(wo,_.X);wo.prototype.getLayoutId=function(){var H=_.gh("yt.www.ads.eventcache.getLastCompanionData");return H?(H=H())&&H.layoutId:null};
wo.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var H=_.Zz(),C=this.getLayoutId(),S=this.data.clickthroughEndpoint;H&&C&&_.E("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?H.getPlayerPromise().then(function(w){(new _.ju(w)).executeCommand(S,C)}):_.M3(this.hostElement,"yt-navigate",{endpoint:S})}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],wo.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],wo.prototype,"data",void 0);_.D([_.h({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],wo);
_.B(wo,"ytd-shopping-companion-item-renderer",function(){if(FKV!==void 0)return FKV;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return FKV=H},{mode:1});var ced;var AU=function(){var H=_.X.apply(this,arguments)||this;H.isExpandableContent=!1;return H};
_.G(AU,_.X);_.JJ.Object.defineProperties(AU.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var H,C,S;return((H=this.data)==null?void 0:H.price)||((C=this.data)==null?void 0:(S=C.dealsData)==null?void 0:S.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var H,C;if((H=this.data)!=null&&H.dealsData&&((C=this.data)==null||!C.priceReplacementText)){H=this.data.dealsData;var S,w,A;return((S=H.salesData)==null?void 0:S.originalPrice)||((w=H.priceDropData)==null?void 0:w.referencePrice)||((A=H.promotionData)==null?void 0:A.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var H,C;return(H=this.data)==null?void 0:(C=H.dealsData)==null?void 0:C.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],AU.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],AU.prototype,"componentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],AU.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],AU.prototype,"isExpandableContent",void 0);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],AU.prototype,"showCta",null);
_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],AU.prototype,"ctaText",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],AU.prototype,"hasPriceTopPosition",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],AU.prototype,"hasPriceBottomPosition",null);_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],AU.prototype,"useNewStyle",null);
_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],AU.prototype,"showPriceReplacementText",null);_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],AU.prototype,"priceValue",null);_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],AU.prototype,"showDeal",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],AU.prototype,"showAffiliateDisclaimer",null);
_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],AU.prototype,"useSaleStyle",null);_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],AU.prototype,"useFromBrandCtaStyle",null);_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],AU.prototype,"useFromVendorCtaStyle",null);
_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],AU.prototype,"useShoppingCollectionCtaStyle",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],AU);
_.B(AU,"ytd-vertical-product-card-renderer",function(){if(ced!==void 0)return ced;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return ced=H},{mode:1});var YOY;var JU=function(){return _.X.apply(this,arguments)||this};
_.G(JU,_.X);JU.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],JU.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],JU.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.uU),_.K("design:type",Object)],JU.prototype,"ytdLockupBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],JU.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],JU);
_.B(JU,"ytd-grid-movie-renderer",function(){if(YOY!==void 0)return YOY;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return YOY=H},{mode:1});var zy1;var FX=function(){var H=_.X.apply(this,arguments)||this;H.roundedFix=_.E("web_enable_merch_item_rounding_fix");H.itemStyle="small-item";return H};
_.G(FX,_.X);FX.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var H,C,S,w,A=(C=_.e((H=this.data)==null?void 0:H.buttonCommand,_.D6))==null?void 0:(S=C.item)==null?void 0:(w=S.notificationTextRenderer)==null?void 0:w.successResponseText;A&&_.UPZ(this.hostElement,A)}};
_.JJ.Object.defineProperties(FX.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var H,C;return((H=this.data)==null?void 0:H.isProductPlaceholder)!==void 0&&((C=this.data)==null?void 0:C.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.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}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],FX.prototype,"ytRendererBehavior",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],FX.prototype,"roundedFix",void 0);_.D([_.V(),_.K("design:type",Object)],FX.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",String)],FX.prototype,"itemStyle",void 0);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],FX.prototype,"hasPrice",null);
_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],FX.prototype,"hasPriceReplacementText",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],FX.prototype,"hasAdditionalFeesText",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],FX.prototype,"hasAffiliateDisclaimer",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],FX.prototype,"isProductPlaceholder",null);
_.D([_.V(),_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],FX.prototype,"hideOpenInNewIcon",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],FX.prototype,"ariaLabel",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],FX);
_.B(FX,"ytd-merch-shelf-item-renderer",function(){if(zy1!==void 0)return zy1;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return zy1=H},{mode:1});var MG1=_.n(function(H){return _.q("button-card-view-model",{el:_.Zl(_.Bt(function(){return H.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return H.data().title},
role:"button"},_.q(_.pw,{model:{}}),_.q("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.q("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.q(_.T,{cond:function(){return H.data().image},
then:function(C){return _.q(_.Jg,{data:C,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.q("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return H.data().title})))},"jb");_.E("web_button_view_model_wcw_registration_killswitch")||_.qs(MG1,"button-card-view-model",{props:{data:_.GH}});_.qs(_.n(function(H){H=_.FH(H,{className:void 0});var C=H.data;H=H.className;var S=_.EF(function(){return C().onTapCommand},void 0,"SXkP9e");
return _.q("ytd-shopping-item-card",{class:_.eJ("ytdShoppingItemCardHost",H)},_.q(_.$4,{command:S,className:"ytdShoppingItemCardHostLink"},_.q("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.q(_.V4,{data:function(){return C().thumbnailViewModel}},{thumbnailViewModel:function(w){return _.q(_.Or,{data:w.data,
aspectRatio:3})}})),_.q("div",null,_.q("p",{class:"ytdShoppingItemCardHostItemTitle"},_.q(_.uZ,{text:function(){return C().itemTitle}})),_.q("p",{class:"ytdShoppingItemCardHostPrice"},_.q(_.uZ,{text:function(){return C().priceOrStatus}})))))},"kb"),"ytd-shopping-item-card",{props:{data:_.GH,
className:_.GH}});var qOi={isAdsVideo:!0},Trn={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},mBd={showPlayerControls:!1,videoPreviewDurationMs:15E3},WKn={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0};var iK=null,RQZ={};var xPE="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(" "),Z0={},HZW=(Z0.FEwhat_to_watch="home",Z0.FEhashtag="hashtag",Z0.FEtrending="trending",Z0.FEhistory="history",Z0.SPunlimited="premium",Z0.FEmemberships_and_purchases="paid_memberships",Z0.SPredeem_code="redeem",Z0.SPverify_location="locate",Z0.SPminor_moment="minor_moment",
Z0.FEmini_app_container="mini_app",Z0.FEnews_destination="news",Z0.SPopen_in_app="open_in_app",Z0.FEexplore="explore",Z0.FEsubscriptions="subscriptions",Z0.FEsfv_audio_pivot="sfv_audio_pivot",Z0.FEplaylist_aggregation="playlist_aggregation",Z0);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");_.N3("init");var ye_=function(){},eyb=_.n(function(H){var C=H.data;
var S=H.inlineMetadata;var w=H.aspectRatio;var A=H.scrimStyle;var J=H.className;var c=H.useDefaultStyle;var Y=H.titleStyle;var M=new ye_,m=_.E("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",W=_.EF(function(){return(c==null?0:c())?m==="SHORTS_LOCKUP_STYLE_SLIM":C().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"xq9ok"),y=_.EF(function(){return _.ps(S)||W()||!1},void 0,"neizSe"),N=function(){return(A==null?void 0:A())!==void 0?A==null?void 0:A():1},
b=_.EF(function(){return C().belowThumbnailMetadata||!y()},void 0,"HdmMMe");
H=_.c5({visibilityCallback:function(FW){var cZ=C().onFirstVisible;FW&&cZ&&_.Im(cZ)},
showOption:{calledOnce:!0,state:"visible"}});var u=_.Zl(),O={},d=_.eJ(function(){return W(),"shortsLockupViewModelHostThumbnailContainer"},(O.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.ps(w)===1},O.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.ps(w)===2},O.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.E("web_shorts_2_by_3_lockups_study")&&!_.E("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
O)),p=_.EF(function(){if(_.ps(w)===1)return 1;
_.ps(w);return 2},void 0,"ZRUa3c"),k,R=function(){if(M){var FW;
(FW=k)==null||Cd(FW);var cZ;if(M.hostElement&&((cZ=M.data)==null?0:cZ.inlinePlayerData)){FW=Object.assign({},WKn);var eZ,ND;((eZ=M.data)==null?void 0:(ND=eZ.inlinePlayerData)==null?void 0:ND.maxPlaybackLengthSec)!==void 0&&(FW.videoPreviewDurationMs=M.data.inlinePlayerData.maxPlaybackLengthSec*1E3);k=Kn({mediaRenderer:M,lockupElement:M.hostElement,thumbnailElement:u.value,videoPreviewOpts:FW})}}};
_.d6(function(){M&&(M.data=C(),R())},"c4oj4d");
var L=_.EF(function(){return C().thumbnail},void 0,"CJHyHc");
O=_.EF(function(){return C().badge},void 0,"g31PIe");
var t=_.EF(function(){return C().onTap},void 0,"CJCUBc"),g={},ii={};
return _.q("ytm-shorts-lockup-view-model",{el:_.Zl(function(FW){M&&(M.hostElement=FW)},R,H),
class:_.eJ("shortsLockupViewModelHost",J)},_.q(_.F9,null,_.q(_.$4,{command:t,className:_.eJ("shortsLockupViewModelHostEndpoint",(g.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!b()},g),"reel-item-endpoint",""),
ariaHidden:function(){return!y()},
tabIndex:function(){return y()?0:-1}},_.q("div",{el:u,
class:_.eJ("shortsLockupViewModelHostThumbnailParentContainer",(ii.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!W()},ii))},_.q(_.T,{cond:L,
then:function(){return _.q("div",{class:d},_.q(_.Jg,{data:function(){var FW;return(FW=L==null?void 0:L())!=null?FW:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.q(_.V4,{data:function(){return C().thumbnailViewModel}},{thumbnailViewModel:function(FW){return _.q(_.Or,{data:FW.data,
aspectRatio:function(){return p()},
disableRounding:function(){return W()}})}}),null),_.q(_.T,{cond:y,
then:function(){return _.q(Nrd,{data:C,scrimStyle:N,useDefaultStyle:c,titleStyle:Y})}}),_.q(_.V4,{data:O},{badgeViewModel:function(FW){return _.q(_.PG,{data:FW.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.q(_.T,{cond:function(){return y()&&C().menuOnTap},
then:function(){return _.q(bFb,{data:C,inlineMetadata:!0})}}),_.q(_.T,{cond:b,
then:function(){return _.q(E3P,{data:C,useDefaultStyle:c,inlineMetadata:y})}})))},"lb"),Nrd=_.n(function(H){var C=H.data;
var S=H.scrimStyle;var w=H.useDefaultStyle;var A=H.titleStyle;var J=_.E("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",c=w&&_.E("web_hide_primary_text_for_pivot_panel"),Y=_.EF(function(){return(w==null?0:w())?J==="SHORTS_LOCKUP_STYLE_SLIM":C().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"eqtoN");
H={};H=_.eJ("shortsLockupViewModelHostInlineMetadata",(H.shortsLockupViewModelHostMetadataRounded=function(){return!Y()},H.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(S==null?void 0:S())===3&&!_.E("enable_shorts_lockup_new_scrim")},H.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(S==null?void 0:S())===3&&_.E("enable_shorts_lockup_new_scrim")},H.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(S==null?void 0:S())===2||(S==null?void 0:
S())===4},H.shortsLockupViewModelHostShowOverPlayer=function(){return!0},H),"image-overlay-text");
var M={};return _.q("div",{class:H},_.q("h3",{class:_.eJ("shortsLockupViewModelHostMetadataTitle",(M.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(S==null?void 0:S())===4},M.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return C().belowThumbnailMetadata},M.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(A==null?void 0:A())===1},M.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(A==null?void 0:A())===2},M)),
"aria-label":function(){return C().accessibilityText}},_.q(_.T,{cond:function(){var m;
return!((m=C().overlayMetadata)==null||!m.primaryText)&&!c},
then:function(){return _.q(_.uZ,{text:function(){var m;return(m=C().overlayMetadata)==null?void 0:m.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.q(_.T,{cond:function(){var m;
return(m=C().overlayMetadata)==null?void 0:m.secondaryText},
then:function(){return _.q(uDY,{data:C,scrimStyle:S,className:void 0})}}))},"mb"),E3P=_.n(function(H){var C=H.data;
var S=H.useDefaultStyle;var w=H.inlineMetadata;var A=_.E("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",J=_.EF(function(){return(S==null?0:S())?A==="SHORTS_LOCKUP_STYLE_SLIM":C().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"rFGYIe"),c=_.Zl(),Y;
H=_.um(function(b){if(_.hB(_.ki(b),c.value,["AVATAR-VIEW-MODEL"]))return!1;var u;(u=Y)==null||u.click();return!1});
var M=_.EF(function(){return C().belowThumbnailMetadata||C().overlayMetadata},void 0,"yJVuMb"),m=function(){return C().menuOnTap&&!w()},W=function(){var b;
return(b=M())==null?void 0:b.avatar},y={},N={};
return _.q("div",{class:_.eJ(function(){return J()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(y.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!W()},y.shortsLockupViewModelHostOutsideMetadataHasMenu=m,y)),
"on:click":H,el:c,role:"presentation"},_.q(_.V4,{data:W},{avatarViewModel:function(b){return _.q("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.q(_.ZT,{data:b.data}))}}),_.q("div",null,_.q("h3",{class:_.eJ("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(N.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var b,u;
return!((b=M())==null?0:(u=b.primaryText)==null?0:u.content)},N.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=w,N)),
role:"presentation"},_.q(_.$4,{ref:function(b){return void(Y=b)},
command:function(){return C().onTap},
className:_.eJ("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var b,u;return(b=M())==null?void 0:(u=b.primaryText)==null?void 0:u.content},
"aria-label":function(){return C().accessibilityText}},_.q(_.T,{cond:function(){var b;
return(b=M())==null?void 0:b.primaryText},
then:function(b){return _.q(_.uZ,{text:b,noEndpoints:!0,noStyleRuns:!0})}}))),_.q(_.T,{cond:function(){var b;
return(b=M())==null?void 0:b.secondaryText},
then:function(b){return _.q("div",{class:_.eJ("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.q(_.uZ,{text:b,noStyleRuns:!0}))}})),_.q(_.T,{cond:m,
then:function(){return _.q(bFb,{data:C,inlineMetadata:!1})}}))},"nb"),uDY=_.n(function(H){var C=H.data;
var S=H.scrimStyle;H=H.className;var w={};return _.q("div",{class:_.eJ((w.shortsLockupViewModelHostMetadataSubhead=function(){return(S==null?void 0:S())!==4},w.shortsLockupViewModelHostMetadataSubheadNew=_.E("enable_shorts_lockup_new_scrim"),w.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(S==null?void 0:S())===4},w),H),
"aria-hidden":"true"},_.q(_.uZ,{text:function(){var A;return(A=C().overlayMetadata)==null?void 0:A.secondaryText},
noStyleRuns:!0}))},"ob"),bFb=_.n(function(H){var C=H.data;
var S=H.inlineMetadata;H={};H=_.eJ((H.shortsLockupViewModelHostInlineMetadataMenu=function(){return S()},H.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!S()},H.shortsLockupViewModelHostShowOverPlayer=function(){return!0},H),"image-overlay-text");
return _.q("div",{class:H},_.q(_.nw,{data:function(){return{style:S()?"overlay":"mono",accessibilityLabel:C().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(w){w.preventDefault();w.stopPropagation();var A=_.U4({elementsCommand:C().menuOnTap,forceNewState:!0});if(A==null?0:A.onclick)A.onclick(w)}}},
iconName:"MORE_VERT"}))},"pb");var GLP=_.n(function(H){var C=H.data;var S=H.inlineMetadata;var w=H.aspectRatio;var A=H.scrimStyle;var J=H.className;var c=H.useDefaultStyle;H=_.EF(function(){var Y=C().entityId;return Y?Y.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.q("ytm-shorts-lockup-view-model-v2",{class:_.eJ("shortsLockupViewModelHost",J)},_.q(_.kn,{contentId:H,aspectRatio:function(){return(w==null?void 0:w())===1?1:(w==null?void 0:w())===2?2:4}},function(){return _.q(eyb,{data:C,
inlineMetadata:S,aspectRatio:w,scrimStyle:A,className:J,useDefaultStyle:c})}))},"qb");_.qs(GLP,"ytm-shorts-lockup-view-model-v2",{props:{data:_.Yb,inlineMetadata:_.Yb,aspectRatio:_.Yb,scrimStyle:_.Yb,className:_.Yb,useDefaultStyle:_.Yb,titleStyle:_.Yb}});var fOM=16/9*210,cB=function(){var H=_.X.apply(this,arguments)||this;H.isExpandableContent=!1;H.hideShelfHeader=!1;H.engagementPanel=!1;H.buttonClasses=["arrow"];H.isSearch=!1;H.disableScrollEventListener=!1;H.containsLockup=!1;H.overrideArrowPositionForProductCard=!1;H.overrideArrowPositionForShoppingItemCard=!1;H.overrideArrowPositionForReelItems=!1;H.overrideArrowPositionForGridMovie=!1;H.overrideArrowPositionToCenter=!1;H.isSearchPostShelf=!1;H.overrideArrowPositionForMixedShelf=!1;H.overrideArrowPositionForMixedShelfShortsOnly=
!1;H.hasBigThumbsReelItems=!1;H.shouldUseMixedListHeight=!1;H.shouldUseShortsListHeight=!1;H.gridVideoWidth=0;H.isSearchVodShelf=!1;H.disableWheelScroll=!1;H.sizing="COMPACT";H.shortsLockupAspectRatio=0;return H};
_.G(cB,_.X);_.F=cB.prototype;
_.F.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]]"}}}}};
_.F.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.E("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.F.computeInitialCountNumber=function(H){if(!H)return 6;var C=H.items.some(function(J){return!!J.topicRecommendationsChipRenderer}),S=H.items.some(function(J){return!!J.displayAdRenderer}),w=this.computeShouldListItemsHaveEqualHeight(H),A=H.items.some(function(J){return!!J.gridPlaylistRenderer});
H=H.items.some(function(J){return!!J.shoppingItemCardViewModel});
return C?9:S?8:A||w?10:H?7:6};
_.F.computeContainsPost=function(H){return!!H&&!!H.items&&H.items.some(function(C){return!!C.postRenderer})};
_.F.computeContainsLockup=function(){if(_.E("web_horizontal_list_lockup_arrow_killswitch"))return!1;var H,C;return(H=this.data)==null?void 0:(C=H.items)==null?void 0:C.some(function(S){return!!S.lockupViewModel})};
_.F.maybeUpdateLockupAspectRatio=function(){var H,C;if(this.computeContainsLockup()&&((H=this.data)==null?0:(C=H.items)==null?0:C.length)){var S;H=NDE((S=this.data.items[0].lockupViewModel)==null?void 0:S.contentType,this.data.force16By9ThumbnailAspectRatio);S=Ehp(H);S=this.computeLockupWidth()/S;_.Ed(this.hostElement,{"--yt-horizontal-list-content-height":S+"px"})}};
_.F.computeOverrideArrowPositionForProductCard=function(H){if(this.isExpandableContent)return!1;var C;return!!(H==null?0:(C=H.items)==null?0:C.some(function(S){return!!S.verticalProductCardRenderer}))};
_.F.computeOverrideArrowPositionForShoppingItemCard=function(H){var C;return!!(H==null?0:(C=H.items)==null?0:C.some(function(S){return!!S.shoppingItemCardViewModel}))};
_.F.computeOverrideArrowPositionForReelItemRenderer=function(H){return this.containsReelItemRenderer(H)};
_.F.computeHasBigThumbsReelItems=function(H,C){return H&&this.containsReelItemRenderer(C)};
_.F.computeShouldListItemsHaveEqualHeight=function(H){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(H==null?void 0:H.itemSizeConstraint)};
_.F.computeShouldListItemsHaveShortsHeight=function(H){return this.computeShouldListItemsHaveEqualHeight(H)&&!this.containsGridVideoRenderer(H)};
_.F.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.F.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.F.containsReelItemRenderer=function(H){var C;return!!(H==null?0:(C=H.items)==null?0:C.some(function(S){return!(!S.reelItemRenderer&&!S.shortsLockupViewModel)}))};
_.F.containsGridVideoRenderer=function(H){var C;return!!(H==null?0:(C=H.items)==null?0:C.some(function(S){return!!S.gridVideoRenderer||!!S.lockupViewModel}))};
_.F.computeContainsGridMovieRenderer=function(H){var C;return!!(H==null?0:(C=H.items)==null?0:C.some(function(S){return!!S.gridMovieRenderer}))};
_.F.computeOverrideArrowPositionToCenter=function(H){return this.computeIsSearchPostShelf(H)};
_.F.computeIsSearchPostShelf=function(H){var C;return!!(H==null?0:(C=H.items)==null?0:C.some(function(S){var w,A;return((A=(w=S.postRenderer)==null?void 0:w.surface)!=null?A:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.F.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(H){var C;return!!(H==null?0:(C=H.items)==null?0:C.some(function(S){var w,A,J;return((J=(w=S.backgroundPromoRenderer)==null?void 0:(A=w.style)==null?void 0:A.value)!=null?J:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.F.computeIsSearchVodShelf=function(H,C){return H&&this.containsGridVideoRenderer(C)};
_.F.computeDisableWheelScroll=function(H,C){return this.computeIsSearchVodShelf(H,C)};
_.F.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.F.computeShortsLockupAspectRatio=function(){return 1};
_.F.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.Ed(this.hostElement,{"--ytd-reel-item-thumbnail-height":fOM+"px"})};
cB.prototype.dataChanged=cB.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],cB.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],cB.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.pT.YtdHorizontalListBehavior),_.K("design:type",Object)],cB.prototype,"ytdHorizontalListBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],cB.prototype,"data",void 0);
_.D([_.V(),_.K("design:type",Object)],cB.prototype,"isExpandableContent",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],cB.prototype,"hideShelfHeader",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],cB.prototype,"engagementPanel",void 0);_.D([_.V(),_.K("design:type",Array)],cB.prototype,"buttonClasses",void 0);_.D([_.V(),_.K("design:type",Object)],cB.prototype,"isSearch",void 0);
_.D([_.V(),_.K("design:type",Object)],cB.prototype,"disableScrollEventListener",void 0);_.D([_.V({computed:"computeInitialCountNumber(data)"}),_.K("design:type",Number)],cB.prototype,"initialCount",void 0);_.D([_.V({computed:"computeContainsPost(data)"}),_.K("design:type",Boolean)],cB.prototype,"supportComponentResize",void 0);_.D([_.V({computed:"computeContainsPost(data)"}),_.K("design:type",Boolean)],cB.prototype,"containsPost",void 0);
_.D([_.V({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.K("design:type",Object)],cB.prototype,"containsLockup",void 0);_.D([_.V({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],cB.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.D([_.V({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.K("design:type",Object)],cB.prototype,"overrideArrowPositionForProductCard",void 0);_.D([_.V({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.K("design:type",Object)],cB.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.D([_.V({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.K("design:type",Object)],cB.prototype,"overrideArrowPositionForReelItems",void 0);_.D([_.V({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.K("design:type",Object)],cB.prototype,"overrideArrowPositionForGridMovie",void 0);
_.D([_.V({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.K("design:type",Object)],cB.prototype,"overrideArrowPositionToCenter",void 0);_.D([_.V({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.K("design:type",Object)],cB.prototype,"isSearchPostShelf",void 0);_.D([_.V({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.K("design:type",Object)],cB.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.D([_.V({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.K("design:type",Object)],cB.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.D([_.V({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.K("design:type",Object)],cB.prototype,"hasBigThumbsReelItems",void 0);
_.D([_.V({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.K("design:type",Object)],cB.prototype,"shouldUseMixedListHeight",void 0);_.D([_.V({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.K("design:type",Object)],cB.prototype,"shouldUseShortsListHeight",void 0);_.D([_.V({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.K("design:type",Object)],cB.prototype,"gridVideoWidth",void 0);
_.D([_.V({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.K("design:type",Object)],cB.prototype,"isSearchVodShelf",void 0);_.D([_.V({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.K("design:type",Object)],cB.prototype,"disableWheelScroll",void 0);_.D([_.V({computed:"computeSizing(isSearch)"}),_.K("design:type",Object)],cB.prototype,"sizing",void 0);
_.D([_.V({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.K("design:type",Object)],cB.prototype,"shortsLockupAspectRatio",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cB.prototype,"dataChanged",null);
_.B(cB,"yt-horizontal-list-renderer",function(){if(lS_===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);lS_=H}H=lS_;return H},{mode:1});var v3_=function(){this.subscriptions=new Map([["navigation-start",new Set],["navigation-end",new Set]])};
v3_.prototype.subscribe=function(H,C){var S=this.subscriptions.get(H);if(!S)return function(){};
S.add(C);return function(){S.delete(C)}};
v3_.prototype.unsubscribe=function(H,C){(H=this.subscriptions.get(H))&&H.delete(C)};
v3_.prototype.publish=function(H){(H=this.subscriptions.get(H))&&H.forEach(function(C){C()})};var lOW;var VGd=[10,12,14,16,18,20,24,28,32,36],o3d=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],Yd=function(){var H=_.X.apply(this,arguments)||this;H.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";H.hideOverflow=!1;H.useRoboto=!1;H.fontClass="";H.overflown=!1;H.actionMap={"yt-window-resized":"resize"};return H};
_.G(Yd,_.X);_.F=Yd.prototype;
_.F.attached=function(){var H=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();_.wM(this,function(){H.resize()});
if(!_.My){var C,S,w;(C=document)==null||(S=C.fonts)==null||(w=S.ready)==null||w.then(function(){H.resize()})}};
_.F.dataChanged=function(){this.resize()};
_.F.guideIsExpandedChanged=function(){this.resize()};
_.F.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 H=this.getMaxNumLines(),C=this.getMinFont(),S=this.getMaxFont(),w=this.useRoboto?VGd:o3d;for(w=w.filter(function(J){return J<=S&&J>=C});w.length>1;){var A=Math.floor(w.length/2);
this.updateFontSize(w[A]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=H)w=w.slice(A,w.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>H)w=w.slice(0,A);else break}this.updateFontSize(w[w.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(H)}};
_.F.handleOverflow=function(H){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>H&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",H.toString()))};
_.F.updateFontSize=function(H){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+H;this.textNode.classList.add(this.fontClass)};
_.F.getMaxFont=function(){var H=this.useRoboto?VGd:o3d;H=H[H.length-1];return this.maxFontSize&&this.maxFontSize<=H?this.maxFontSize:H};
_.F.getMinFont=function(){var H=(this.useRoboto?VGd:o3d)[0];return this.minFontSize&&this.minFontSize>=H?this.minFontSize:H};
_.F.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.F.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.F.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.jt(this.text).split("\n").length-1:Infinity};
_.F.setParentConstraints=function(){this.maxWidth&&(this.containerNode.style.maxWidth=this.maxWidth+"px");this.maxHeight&&(this.containerNode.style.maxHeight=this.maxHeight+"px");if(this.fontWeight){if(this.useRoboto&&this.fontWeight!==400&&this.fontWeight!==500)throw Error("Oh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
Yd.prototype.guideIsExpandedChanged=Yd.prototype.guideIsExpandedChanged;Yd.prototype.dataChanged=Yd.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Yd.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],Yd.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],Yd.prototype,"actionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Yd.prototype,"text",void 0);
_.D([_.V(),_.K("design:type",String)],Yd.prototype,"fontFamily",void 0);_.D([_.V(),_.K("design:type",Number)],Yd.prototype,"maxWidth",void 0);_.D([_.V(),_.K("design:type",Number)],Yd.prototype,"maxHeight",void 0);_.D([_.V(),_.K("design:type",Number)],Yd.prototype,"maxFontSize",void 0);_.D([_.V(),_.K("design:type",Number)],Yd.prototype,"minFontSize",void 0);_.D([_.V(),_.K("design:type",Number)],Yd.prototype,"maxLines",void 0);_.D([_.V(),_.K("design:type",Object)],Yd.prototype,"hideOverflow",void 0);
_.D([_.V({selector:_.YeV}),_.K("design:type",Boolean)],Yd.prototype,"guideIsExpanded",void 0);_.D([_.lA("#container"),_.K("design:type",HTMLElement)],Yd.prototype,"containerNode",void 0);_.D([_.lA("#text"),_.K("design:type",HTMLElement)],Yd.prototype,"textNode",void 0);_.D([_.XJ("text"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Yd.prototype,"dataChanged",null);
_.D([_.XJ("guideIsExpanded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Yd.prototype,"guideIsExpandedChanged",null);_.D([_.h({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],Yd);
_.B(Yd,"yt-dynamic-sizing-formatted-string",function(){if(lOW!==void 0)return lOW;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return lOW=H},{mode:1});var OFV;_.Xzd=function(H){_.CU.call(this,H)};
_.G(_.Xzd,_.CU);var QKY=function(H){_.CU.call(this,H)};
_.G(QKY,_.Xzd);var zJ=function(){return _.X.apply(this,arguments)||this};
_.G(zJ,_.X);zJ.prototype.onTapSuspendedChannel=function(){var H;if((H=this.data)!=null&&H.serviceEndpoint){var C,S;(H=(S=_.e((C=this.data)==null?void 0:C.serviceEndpoint,_.R8))==null?void 0:S.url)?_.Cx(H,void 0,void 0,window.top):(C=new QKY("Did not handle suspended account tap. No appealUrl."),_.nC(C))}else C=new QKY("Did not handle suspended account tap. No serviceEndpoint."),_.nC(C)};
zJ.prototype.onTap=function(){var H=this,C=_.lJ(),S,w=(S=_.vI(C,{veType:7116}))!=null?S:void 0;_.aW(C,{visualElement:w});_.HY();this.saveRoleText();var A;if((A=this.data)==null?0:A.youtubeSuspended)this.onTapSuspendedChannel();else{var J=!1,c,Y;(C=(Y=_.e((c=this.data)==null?void 0:c.serviceEndpoint,_.M8n))==null?void 0:Y.supportedTokens)&&C.forEach(function(M){if(M.accountSigninToken)if(J=!0,H.onAccountItemTap)H.onAccountItemTap(M.accountSigninToken.signinUrl);else _.Cx(M.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!J){if(c=this.get("serviceEndpoint",this.data))J=!0,this.ytComponentBehavior.resolveCommand(c);J||_.rv(new QKY("Did not handle account switch tap. No token."))}}};
zJ.prototype.saveRoleText=function(){if(this.data){var H=this.data,C=H.channelDelegationRole;if(C){var S,w=(S=_.e(H==null?void 0:H.serviceEndpoint,_.M8n))==null?void 0:S.supportedTokens;if(!w){var A,J,c,Y;w=(A=_.e(H==null?void 0:H.serviceEndpoint,_.Uy))==null?void 0:(J=A.popup)==null?void 0:(c=J.confirmDialogRenderer)==null?void 0:(Y=c.confirmButton)==null?void 0:Y.buttonRenderer;var M;w=(M=_.e(w==null?void 0:w.command,_.b9))==null?void 0:M.commands;if(!w)return;var m;w=(m=_.e(w[1],_.M8n))==null?
void 0:m.supportedTokens}if(w){M=void 0;m=_.Z(w);for(w=m.next();!w.done;w=m.next())if(w=w.value,w.datasyncIdToken){M=w.datasyncIdToken.datasyncIdToken;break}if(M){var W;a:{if(_.BzV()&&(m=_.Pai(M+"::pom"))){m=new Sx(m);break a}m=void 0}(W=m)==null||W.set("role_text",C);if((CeZ?CeZ:window.location).href.indexOf("studio")!==-1&&(W=DvV())){m=W.src?(new URL(W.src)).origin:"*";var y;(y=W.contentWindow)==null||y.postMessage({action:"save_pom_role",datasyncId:M,roleText:C},m)}}}}}};
_.JJ.Object.defineProperties(zJ.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var H,C,S=(H=this.data)==null?void 0:(C=H.accountPhoto)==null?void 0:C.thumbnails;return S&&S.length>0&&(S[0].height===36||S[0].height===48)?S[0].height:40}}});
zJ.prototype.onTap=zJ.prototype.onTap;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],zJ.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],zJ.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],zJ.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!1}),_.K("design:type",Function)],zJ.prototype,"onAccountItemTap",void 0);
_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],zJ.prototype,"enableRingForActiveAccount",null);_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Number),_.K("design:paramtypes",[])],zJ.prototype,"thumbnailSize",null);_.D([_.Gz("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],zJ.prototype,"onTap",null);_.D([_.h({is:"ytd-account-item-renderer",disableElementRegistration:!0})],zJ);
_.B(zJ,"ytd-account-item-renderer",function(){if(OFV!==void 0)return OFV;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return OFV=H},{mode:1});var dBd;var Ml=function(){return _.X.apply(this,arguments)||this};
_.G(Ml,_.X);Ml.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.JA().resolve(_.ZQ).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Ml.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Ml.prototype,"data",void 0);_.D([_.h({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],Ml);
_.B(Ml,"ytd-identity-chip-renderer",function(){if(dBd!==void 0)return dBd;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return dBd=H},{mode:1});var PN7;var $B_;var pzd;var kLV;var ql=function(){var H=_.X.apply(this,arguments)||this;H.richItemMinWidth=_.YB("wn_grid_min_item_width",310);H.isShorts=!1;H.isWatchNext=!1;H.isExploreHub=!1;return H};
_.G(ql,_.X);_.JJ.Object.defineProperties(ql.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var H=[],C=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.Ed(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var S;if(((S=this.data)==null?0:S.rows)&&C)for(C*=this.data.rows,S=0;S<C;S++)H.push({});return H}}});
_.D([_.v(_.q$),_.K("design:type",Object)],ql.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],ql.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],ql.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,selector:_.BF,value:3}),_.K("design:type",Number)],ql.prototype,"itemsPerRow",void 0);_.D([_.V({selector:_.c$U,value:6}),_.K("design:type",Number)],ql.prototype,"slimItemsPerRow",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Number)],ql.prototype,"richItemMinWidth",void 0);_.D([_.V({reflectToAttribute:!0,selector:_.rB}),_.K("design:type",Boolean)],ql.prototype,"miniMode",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],ql.prototype,"isShorts",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],ql.prototype,"isWatchNext",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],ql.prototype,"isExploreHub",void 0);
_.D([_.l("isExploreHub"),_.V({reflectToAttribute:!0}),_.K("design:type",Object),_.K("design:paramtypes",[])],ql.prototype,"shimmerAnimation",null);_.D([_.l("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.K("design:type",Array),_.K("design:paramtypes",[])],ql.prototype,"cardItems",null);_.D([_.h({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],ql);
_.hy_=_.Tp()(ql,"ytd-ghost-grid-renderer",function(){if(kLV===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);kLV=H}H=kLV;return H},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.qs(_.n(function(H){var C=_.FH(H,{numberOfComments:3}).numberOfComments,S=_.FH(H,{isInitialLoad:!1}).isInitialLoad,w=_.FH(H,{engagementPanel:!1}).engagementPanel,A=function(){return Math.min(Number(C==null?void 0:C())||20,20)};
return _.q("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.q(_.T,{cond:function(){return!(w==null?0:w())&&(S==null?void 0:S())},
then:function(){return _.q("div",{class:"ytGhostCommentsComments"},_.q("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.q("div",{class:_.eJ("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.q("div",{class:_.eJ("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.q("div",{class:"ytGhostCommentsGhostCard"},_.q("div",{class:"ytGhostCommentsAvatar"},_.q("div",{class:"ytGhostCommentsCircle"})),_.q("div",{class:"ytGhostCommentsComments"},_.q("div",{class:"ytGhostCommentsMeta"},
_.q("div",{class:_.eJ("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.q("div",{class:_.eJ("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.q("div",{class:"ytGhostCommentsComments"},_.q(_.Vq,{each:function(){return Array((A==null?void 0:A())||3)}},function(){return _.q("div",{class:"ytGhostCommentsGhostCard"},_.q("div",{class:"ytGhostCommentsAvatar"},_.q("div",{class:"ytGhostCommentsCircle"})),_.q("div",{class:"ytGhostCommentsHost"},_.q("div",{class:"ytGhostCommentsMeta"},
_.q("div",{class:_.eJ("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.q("div",{class:_.eJ("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.q("div",{class:_.eJ("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.q("div",{class:"ytGhostCommentsGhostLikeDislike"},_.q("div",{class:_.eJ("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.q("div",{class:_.eJ("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"rb"),"yt-ghost-comments",{props:{numberOfComments:_.GH,
isInitialLoad:_.GH,engagementPanel:_.GH}});_.hg("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var TJ=function(){var H=_.X.apply(this,arguments)||this;H.isOverridable=!1;H.spinnerActive=!1;H.showButton=!1;H.isCommentsSection=!1;H.engagementPanel=!0;H.isShortsGrid=!1;H.isShortsPage=!1;H.isWatchPage=!1;H.ghostCardExperimentEnabled=_.E("show_ghost_comments_shorts_watch")||_.E("show_ghost_comments_desktop_watch");H.originalShowButton=!1;H.endOfList=!1;return H};
_.G(TJ,_.X);_.F=TJ.prototype;_.F.resetIntersectionObserver=function(){var H;(H=this.observer)==null||H.disconnect();this.observer=void 0};
_.F.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var H,C;((H=this.data)==null?void 0:H.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((C=this.data)==null?0:C.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.F.initializeIntersectionObserver=function(){var H=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(C){C=_.Z(C);for(var S=C.next();!S.done;S=C.next())S.value.isIntersecting&&(H.triggerContinuation(),H.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.F.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]]"}}}}}};
_.F.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var H;((H=this.data)==null?0:H.continuationEndpoint)&&(H=_.e(this.data.continuationEndpoint,_.UU))&&this.ytdReduxBehavior.dispatch(_.Md({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:H}}))};
_.F.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.F.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.F.onServiceRequestCompleted=function(H,C){if(!_.E("kevlar_hide_spinner_on_empty_continuation_killswitch")){var S;(S=C.actions)!=null&&S.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.F.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.F.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.F.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.F.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var H=3;if(this.engagementPanel){var C,S,w;H=Math.floor(((((C=this.hostElement)==null?void 0:(S=C.parentElement)==null?void 0:(w=S.parentElement)==null?void 0:w.scrollHeight)||108)-108)/108);H=this.isInitialLoad?Math.max(H,3):3}C=[].concat(_.k$(this.hostElement.querySelectorAll("yt-ghost-comments")));C=_.Z(C);for(S=C.next();!S.done;S=C.next())S=S.value,S.numberOfComments=H,S.isInitialLoad=this.isInitialLoad,S.engagementPanel=
this.engagementPanel}};
_.F.detached=function(){this.resetIntersectionObserver()};
_.JJ.Object.defineProperties(TJ.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.E("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.E("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
TJ.prototype.numberOfGhostCommentsChanged=TJ.prototype.numberOfGhostCommentsChanged;TJ.prototype.continuationTriggerOffsetChanged=TJ.prototype.continuationTriggerOffsetChanged;TJ.prototype.showButtonChanged=TJ.prototype.showButtonChanged;TJ.prototype.onYtServiceRequestCompletedForButtonRenderer=TJ.prototype.onYtServiceRequestCompletedForButtonRenderer;TJ.prototype.onServiceRequestCompleted=TJ.prototype.onServiceRequestCompleted;TJ.prototype.onYtServiceRequestSentForButtonRenderer=TJ.prototype.onYtServiceRequestSentForButtonRenderer;
TJ.prototype.observeData=TJ.prototype.observeData;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],TJ.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],TJ.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.NU.YtVisibilityBehavior),_.K("design:type",Object)],TJ.prototype,"ytVisibilityBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],TJ.prototype,"ytComponentBehavior",void 0);
_.D([_.v(_.q$),_.K("design:type",Object)],TJ.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],TJ.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],TJ.prototype,"isOverridable",void 0);_.D([_.V(),_.K("design:type",Object)],TJ.prototype,"spinnerActive",void 0);_.D([_.V(),_.K("design:type",Object)],TJ.prototype,"showButton",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],TJ.prototype,"isCommentsSection",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],TJ.prototype,"engagementPanel",void 0);_.D([_.V(),_.K("design:type",Object)],TJ.prototype,"isShortsGrid",void 0);_.D([_.V({reflectToAttribute:!0,selector:_.qeD}),_.K("design:type",Object)],TJ.prototype,"isShortsPage",void 0);_.D([_.V({reflectToAttribute:!0,selector:_.M8$}),_.K("design:type",Object)],TJ.prototype,"isWatchPage",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],TJ.prototype,"ghostCardExperimentEnabled",void 0);
_.D([_.V(),_.K("design:type",Number)],TJ.prototype,"continuationTriggerOffset",void 0);_.D([_.V(),_.K("design:type",Object)],TJ.prototype,"endOfList",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],TJ.prototype,"isInitialLoad",void 0);_.D([_.lA("ytd-button-renderer"),_.K("design:type",_.Qa)],TJ.prototype,"buttonRenderer",void 0);_.D([_.V(),_.K("design:type",Object)],TJ.prototype,"buttonOverrides",void 0);
_.D([_.V(),_.l("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.K("design:type",Object),_.K("design:paramtypes",[])],TJ.prototype,"isShortsCommentsSection",null);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],TJ.prototype,"observeData",null);
_.D([_.Gz("yt-service-request-sent-button-renderer"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],TJ.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.j4]),_.K("design:returntype")],TJ.prototype,"onServiceRequestCompleted",null);
_.D([_.Gz("yt-service-request-completed-button-renderer"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],TJ.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.D([_.XJ("showButton"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],TJ.prototype,"showButtonChanged",null);
_.D([_.XJ("continuationTriggerOffset"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],TJ.prototype,"continuationTriggerOffsetChanged",null);_.D([_.fx("isInitialLoad","engagementPanel"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],TJ.prototype,"numberOfGhostCommentsChanged",null);_.D([_.h({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],TJ);
_.B(TJ,"ytd-continuation-item-renderer",function(){if(pzd!==void 0)return pzd;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return pzd=H},{mode:1});var n3M;var mb=function(){var H=_.X.apply(this,arguments)||this;H.downloadProgress=0;H.transferState="TRANSFER_STATE_UNKNOWN";H.downloadState="DOWNLOAD_STATE_UNKNOWN";H.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";H.offlineVideoPolicyExpirationTimestamp=0;H.downloadedVideoPlaybackPosition=0;return H};
_.G(mb,_.X);mb.prototype.dataChanged=function(){var H;this.videoData=_.e((H=this.data)==null?void 0:H.renderer,tfi);this.transferStateChanged()};
mb.prototype.downloadProgressChanged=function(){if(this.entityInfo){var H=Object.assign({},this.videoData),C=TcV(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),S=C.publishedTimeText,w=C.badges;H.shortViewCountText=C.shortViewCountText;H.publishedTimeText=S;H.badges=w;this.set("videoData",H)}};
mb.prototype.transferStateChanged=function(){if(this.entityInfo){var H=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",C=_.Oa(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!ou(this.entityInfo.policyEntity),S=Object.assign({},this.videoData),w=TcV(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),A=w.publishedTimeText,J=w.badges;S.shortViewCountText=
w.shortViewCountText;S.publishedTimeText=A;S.badges=J;S.isDisabled=C;S.isWatched=this.downloadedVideoPlaybackPosition>0;S.navigationEndpoint=C?void 0:TZ7(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var c;H&&((c=this.videoData)==null?0:c.videoId)&&!_.E("dl_resume_click_killswitch")&&(S.isDisabled=!1,S.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});S.thumbnailOverlays=MxE(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",S)}};
mb.prototype.transferStateChanged=mb.prototype.transferStateChanged;mb.prototype.downloadProgressChanged=mb.prototype.downloadProgressChanged;mb.prototype.dataChanged=mb.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],mb.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],mb.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],mb.prototype,"data",void 0);
_.D([_.V(),_.K("design:type",Object)],mb.prototype,"videoData",void 0);_.D([_.V({selector:Ua,selectorArgs:["videoData.videoId"]}),_.K("design:type",Object)],mb.prototype,"downloadProgress",void 0);_.D([_.V(),_.K("design:type",Number)],mb.prototype,"relativeDateReference",void 0);_.D([_.V({selector:_.L8,selectorArgs:["videoData.videoId"]}),_.K("design:type",Object)],mb.prototype,"transferState",void 0);
_.D([_.V({selector:PoW,selectorArgs:["videoData.videoId"]}),_.K("design:type",Object)],mb.prototype,"downloadState",void 0);_.D([_.V({selector:NQV,selectorArgs:["videoData.videoId"]}),_.K("design:type",Object)],mb.prototype,"offlinePolicyAction",void 0);_.D([_.V({selector:b$0,selectorArgs:["videoData.videoId"]}),_.K("design:type",Object)],mb.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.D([_.V({selector:Ru,selectorArgs:["videoData.videoId"]}),_.K("design:type",Object)],mb.prototype,"downloadedVideoPlaybackPosition",void 0);_.D([_.V({selector:el7,selectorArgs:["videoData.videoId"]}),_.K("design:type",Object)],mb.prototype,"entityInfo",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],mb.prototype,"isDownloading",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mb.prototype,"dataChanged",null);
_.D([_.XJ("downloadProgress"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mb.prototype,"downloadProgressChanged",null);_.D([_.XJ("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mb.prototype,"transferStateChanged",null);
_.D([_.h({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],mb);
_.B(mb,"ytd-downloaded-video-grid-video-renderer",function(){if(n3M!==void 0)return n3M;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return n3M=H},{mode:_.mn("kevlar_poly_si_batch_j025")?1:2});var re1;var WB=function(){};
WB.prototype.resolve=function(H,C){var S=this;return _.z(function(w){return w.yield(S.resolveCommand(H,C),0)})};var Brd,yu;Brd=ZIZ(function(H){return H.targetId},{shouldPersist:!1});
yu=Brd.updateData;_.DBi=Brd.useUpdatableData;var KKP,tGP;KKP=ZIZ(function(H){return H.targetId});
tGP=KKP.updateData;_.LK7=KKP.useUpdatableData;var g37=slE.bind(null,yu),UBd=slE.bind(null,tGP);(function(H,C,S){var w=_.e(S==null?void 0:S.updatedRenderer,_.bOV);return w?H({targetId:C},function(){return w}):!1}).bind(null,yu);var Nl=function(){};
_.G(Nl,WB);Nl.prototype.resolveCommand=function(H){var C;return _.z(function(S){C=_.e(H,_.TqZ);if(!C)return S.return();g37(C.targetId,C);_.oT(S)})};var bI=function(){var H=_.oZ.apply(this,arguments)||this;H.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return H};
_.G(bI,_.oZ);_.F=bI.prototype;_.F.configureContinuationPathMap=function(){return{}};
_.F.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.F.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.F.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.F.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.F.handleAppendContinuationItemsAction=function(H){var C=_.e(H,_.bq7);if(this.data&&this.data.targetId&&C&&this.continuationPathMap&&C.targetId===this.data.targetId){var S=xp$(H),w=S&&this.continuationPathMap[S];if(w&&S)if(H=this.get(w,this.data)){a:{for(S=0;S<H.length;S++){var A=H[S],J=void 0,c=!!_.e((J=_.e(A,J7i))==null?void 0:J.content,_.rdU);if(_.e(A,_.S9)||c)break a}S=H.length}w="data."+w;C.continuationItems?S===H.length-1?(this.pop(w),this.push.apply(this,[w].concat(_.k$(C.continuationItems)))):
S===H.length?this.push.apply(this,[w].concat(_.k$(C.continuationItems))):this.splice.apply(this,[w,S,1].concat(_.k$(C.continuationItems))):this.splice(w,S,1);(_.E("web_enable_voting_animation")||_.E("enable_music_web_cairo_voting_animation"))&&_.M3(this.hostElement,"yt-append-continuation-items-action-finished");_.M3(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.Bn(new _.X0("append continuation items does not exist",S));else _.Bn(new _.X0("append continuation path does not exist",
S))}};
_.F.handleReloadContinuationItemsCommand=function(H){var C=_.e(H,_.TqZ);if(this.data&&C){if(_.E("web_client_explore_hub")||_.E("web_explore_hub_on_hover")||_.E("web_client_explore_hub_on_hover"))try{_.JA().resolve(Nl).resolveCommand(H)}catch(J){}if(this.data.targetId&&this.continuationPathMap&&C.targetId===this.data.targetId&&(!_.E("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||C.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var S,w=(S=C.slot)==null?void 0:
S.replace("RELOAD_CONTINUATION_SLOT_","");S=(H=xp$(H)+"-"+(w==null?void 0:w.toLowerCase()))&&this.continuationPathMap[H];if(!S||!H||!w)_.Bn(new _.X0("reload continuation path does not exist",H));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(C)){if(C.replaceWithFirstItem){var A;this.set("data."+S,((A=C.continuationItems)==null?0:A.length)?C.continuationItems[0]:{})}else this.set("data."+S,C.continuationItems?C.continuationItems:[]);this.continuationIsReloading=
!1;_.M3(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.F.handleShowReloadUiCommand=function(H){H=_.e(H,$LV);var C;((C=this.data)==null?0:C.targetId)&&(H==null?0:H.targetId)&&H.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
bI.prototype.observeData=bI.prototype.observeData;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],bI.prototype,"actionHandlerBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],bI.prototype,"componentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],bI.prototype,"data",void 0);_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],bI.prototype,"continuationIsReloading",void 0);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bI.prototype,"observeData",null);_.D([_.Od()],bI);_.EH=[_.mL.YtComponentBehavior,_.Lw.YtActionHandlerBehavior,bI.prototype];_.eu={};_.eu.YtNextContinuationBehavior=[_.o_.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",_.uA(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.uA(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(H,C){H.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,C,{}):(H={locationRetrieved:function(S){this.makeNextContinuationRequest_(S,C,{})}.bind(this)},_.M3(this.hostElement,"yt-retrieve-location",H))},
makeNextContinuationRequest_:function(H,C,S){_.KL("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();H=C(H);var w;this.canUseContextualNetworkManager_()&&(w=this.getNetworkManager());w||(w=_.JA().resolve(_.tG));C=_.xb.instance;if(_.rh("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&C){w=_.JG([H.startsWith("/")?H.substr(1):H]);var A,J;S=_.Mb(C,{},w,S==null?void 0:(A=S.context)==null?void 0:(J=A.clickTracking)==null?void 0:J.clickTrackingParams).then(function(c){return{response:c}})}else S=
this.nextContinuation.usePost?w.postData(H,S):w.fetchData(H);
S.then(this.updateNextContinuationData_.bind(this,H));this.pendingContinuationRequest_=S;this.startListeningForNavigate_()},
updateNextContinuationData_:function(H,C){var S=this;_.KL("ncl");this.pendingContinuationRequest_=void 0;if(C){var w={};this.nextContinuation&&(w=this.nextContinuation);if(C.response&&C.response.continuationContents&&C.response.continuationContents[w.continuationType]){H=C.response.continuationContents[w.continuationType];var A=w.header||"data.header",J=H[w.responseHeaderKey||"header"];J&&this.set(A,J);A=w.contentsArray||"data.contents";J=this.getContents_(H,w.responseContentsKey||"contents")||[];
this.pathExists_(A)?(J.unshift(A),this.push.apply(this,J)):this.set(A,J);J&&(jlU(_.lJ(),C.response,this.hostElement,function(c){_.q3(S.hostElement,"yt-store-grafted-ve-action",[c])}),_.M3(this.hostElement,"yt-next-continuation-data-updated",{continuationData:C,
page:this,contentsArray:A}));this.set(w.continuationsArray||"data.continuations",H[w.responseContinuationsKey||"continuations"]||[])}else C.reload?_.Bn(new _.X0("Reloading from continuation is unsupported")):C.responseContext&&C.responseContext.errors||(delete C.xsrf_token,delete C.timing,delete C.endpoint,delete C.csn,C.responseContext&&delete C.responseContext.serviceTrackingParams,A={request:_.HA(H,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(C).sort()},C.response&&(A.responseContentKeys=
Object.keys(C.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(A.continuationType=this.nextContinuation.continuationType.substr(0,256)),C=new _.X0("Malformed continuation",A),H.indexOf("/comment_service_ajax")==0?_.Bn(C):_.nC(C)),this.set(w.continuationsArray||"data.continuations",[])}else _.rv(new _.X0("Missing continuation response",H))},
getContents_:function(H,C){C=C.split(".");return _.hb.getValueByKeys(H,C)},
pathExists_:function(H){var C=this;H=H.toString().split(".");for(var S=0;S<H.length;S++)if(C=C[H[S]],C===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var Ry_;var IOn;var uI=function(){var H=_.X.apply(this,arguments)||this;H.triggered_=!1;return H};
_.G(uI,_.X);_.F=uI.prototype;_.F.attached=function(){this.maybeTriggerAutoload()};
_.F.detached=function(){this.hasBeenTriggered_=!1};
_.F.onPrescanVisible=function(){this.onShow()};
_.F.onShow=function(){this.showButton||this.trigger()};
_.F.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.M3(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.F.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.F.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.F.computeLabel_=function(H,C){return H===void 0?null:H.label||!C?H.label:this.showMoreText_};
_.F.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.F.getContinuationUrl=function(H){var C={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(C.itct=this.data.clickTrackingParams);return _.i5(H,C)};
_.F.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
uI.prototype.showButtonChanged_=uI.prototype.showButtonChanged_;uI.prototype.observeData_=uI.prototype.observeData_;_.D([_.v(_.NU.YtVisibilityBehavior),_.K("design:type",Object)],uI.prototype,"ytVisibilityBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],uI.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],uI.prototype,"data",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],uI.prototype,"showButton",void 0);
_.D([_.V({value:!1}),_.K("design:type",Boolean)],uI.prototype,"showIcon",void 0);_.D([_.V({computed:"computeLabel_(data, showButton)"}),_.K("design:type",Object)],uI.prototype,"label",void 0);_.D([_.V({value:_.sx(_.fL("SHOW_MORE",void 0,"Show More"))}),_.K("design:type",Object)],uI.prototype,"showMoreText_",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],uI.prototype,"spinnerActive_",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],uI.prototype,"hasBeenTriggered_",void 0);
_.D([_.V({value:void 0}),_.K("design:type",String)],uI.prototype,"observeVisibleOption",void 0);_.D([_.V({value:void 0}),_.K("design:type",String)],uI.prototype,"observeHiddenOption",void 0);_.D([_.V({value:"observe_once"}),_.K("design:type",Object)],uI.prototype,"observePrescanOption",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],uI.prototype,"observeData_",null);
_.D([_.fx("showButton"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],uI.prototype,"showButtonChanged_",null);_.D([_.Lx({is:"yt-next-continuation",disableElementRegistration:!0})],uI);
_.B(uI,"yt-next-continuation",function(){if(IOn===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;Ry_===void 0&&(Ry_=document.createElement("template"));var w=Ry_;S.call(C,w.content.cloneNode(!0),H.content.firstChild);IOn=H}H=IOn;return H},{mode:2});var aO1;var xBd;var GJ=function(){return _.X.apply(this,arguments)||this};
_.G(GJ,_.X);GJ.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],GJ.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],GJ.prototype,"data",void 0);_.D([_.Lx({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],GJ);
_.B(GJ,"yt-music-pass-small-feature-info-renderer",function(){if(xBd===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;aO1===void 0&&(aO1=document.createElement("template"));var w=aO1;S.call(C,w.content.cloneNode(!0),H.content.firstChild);xBd=H}H=xBd;return H},{mode:2});_.hg("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var fg=function(){var H=_.X.apply(this,arguments)||this;H.isCollapsible=!1;H.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return H};
_.G(fg,_.X);_.F=fg.prototype;_.F.computeIsCollapsible=function(H){return!!(((H==null?0:H.showMoreText)||(H==null?0:H.visibleRowCount))&&(H==null?0:H.isCollapsible))};
_.F.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"}}}};
_.F.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.F.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.F.onIronResize=function(){var H=this;_.iJ(this,"updateGridInitItems",function(){H.maybeUpdateInitialItemsDisplayed()})};
_.F.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var H=this.getVisibleWidth();H!==0&&(H=Math.floor(H/214)*(this.data.visibleRowCount||2),H!==this.initialCount&&(this.initialCount=H,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.F.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.F.computeExpandVisible=function(H,C,S,w){return H&&C&&S&&!!w&&!!w.showMoreText};
_.F.computeShowMoreButton=function(H){return{text:H,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.F.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.F.initCollapsed=function(){var H=this;this.ytLazyListBehavior.canShowMore=!1;var C;(this.collapsed=!((C=this.data)==null||!C.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.wM(this,function(){_.m7(H.hostElement,"yt-refit-popups-action")})};
_.F.fillRestIfNotCollapsible=function(){var H=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!H||this.ytLazyListBehavior.fillRemainingListItems()};
_.F.computeViewAllHidden=function(H,C){return H||!C.viewAllEndpoint};
fg.prototype.fillRestIfNotCollapsible=fg.prototype.fillRestIfNotCollapsible;fg.prototype.initCollapsed=fg.prototype.initCollapsed;fg.prototype.onIronResize=fg.prototype.onIronResize;fg.prototype.persistentGuideChanged=fg.prototype.persistentGuideChanged;_.D([_.v(_.Ix),_.K("design:type",Object)],fg.prototype,"ironResizableBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],fg.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],fg.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.$o.YtLazyListBehavior),_.K("design:type",Object)],fg.prototype,"ytLazyListBehavior",void 0);_.D([_.v(_.eu.YtNextContinuationBehavior),_.K("design:type",Object)],fg.prototype,"ytNextContinuationBehavior",void 0);_.D([_.v(_.bU.YtdGuideStateAwareBehavior),_.K("design:type",Object)],fg.prototype,"ytdGuideStateAwareBehavior",void 0);
_.D([_.v(_.EH),_.K("design:type",Object)],fg.prototype,"ytContinuationHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],fg.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Boolean)],fg.prototype,"collapsed",void 0);_.D([_.V(),_.K("design:type",Number)],fg.prototype,"initialCount",void 0);_.D([_.V({computed:"computeShowMoreButton(data.showMoreText)"}),_.K("design:type",Object)],fg.prototype,"showMoreButton",void 0);
_.D([_.V({computed:"computeIsCollapsible(data)"}),_.K("design:type",Object)],fg.prototype,"isCollapsible",void 0);_.D([_.lA("#items"),_.K("design:type",HTMLElement)],fg.prototype,"items",void 0);_.D([_.XJ("guidePersistentAndVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],fg.prototype,"persistentGuideChanged",null);_.D([_.Gz("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],fg.prototype,"onIronResize",null);
_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],fg.prototype,"initCollapsed",null);_.D([_.XJ("canShowMore"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],fg.prototype,"fillRestIfNotCollapsible",null);_.D([_.h({is:"ytd-grid-renderer",disableElementRegistration:!0})],fg);
_.B(fg,"ytd-grid-renderer",function(){if(re1!==void 0)return re1;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return re1=H},{mode:_.mn("kevlar_poly_si_batch_j025")?1:2});var vB=function(){return _.X.apply(this,arguments)||this};
_.G(vB,_.X);
vB.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"}}}};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],vB.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],vB.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],vB.prototype,"data",void 0);_.D([_.h({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],vB);
_.B(vB,"ytd-carousel-ad-renderer",function(){if($B_!==void 0)return $B_;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return $B_=H},{mode:1});var HK_;var lI=function(){return _.X.apply(this,arguments)||this};
_.G(lI,_.X);_.F=lI.prototype;_.F.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"}}}};
_.F.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,lI.JSC$15392_CLICK_LOCATION_ID_MAP))};
_.F.onSitelinkTap=function(H){H.stopPropagation();var C,S,w=H==null?void 0:(C=H.model)==null?void 0:(S=C.item)==null?void 0:S.onTap;w&&this.ytSparklesClickLocationBehavior.handleClick(w,H,!1)};
_.F.onTap=function(H){var C=this.data&&this.data.content&&this.data.content.navigationEndpoint;C&&this.ytSparklesClickLocationBehavior.handleClick(C,H,!1)};
_.F.sendImpression=function(){if(this.data&&this.data.content)for(var H=_.Z(this.data.content.impressionEndpoints||[]),C=H.next();!C.done;C=H.next()){C=_.Z(C.value.loggingUrls||[]);for(var S=C.next();!S.done;S=C.next())S=S.value,S.baseUrl&&xu(S.baseUrl,S.attributionSrcMode)}};
lI.prototype.onTap=lI.prototype.onTap;lI.prototype.dataChanged=lI.prototype.dataChanged;lI.JSC$15392_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"]]);
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],lI.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],lI.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.P_.YtSparklesClickLocationBehavior),_.K("design:type",Object)],lI.prototype,"ytSparklesClickLocationBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],lI.prototype,"data",void 0);
_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lI.prototype,"dataChanged",null);_.D([_.Gz("tap"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],lI.prototype,"onTap",null);_.D([_.h({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],lI);
_.B(lI,"ytd-promoted-sparkles-text-search-renderer",function(){if(HK_!==void 0)return HK_;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return HK_=H},{mode:1});var iK7;var Vu=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-mute-ad-action":"handleMuteAd"};return H};
_.G(Vu,_.X);_.F=Vu.prototype;
_.F.configureRendererStamper=function(){return{"data.menu":{id:_.E("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]]"}}}}}};
_.F.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.F.computeHasAdBadge=function(H){return!(H==null||!H.adBadge)};
_.F.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",Vu.JSC$15401_DEFAULT_AD_BADGE_RENDERER),_.yQ(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,Vu.JSC$15401_CLICK_LOCATION_ID_MAP))};
_.F.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var H;(((H=this.data)==null?void 0:H.impressionCommands)||[]).forEach(function(C){C=_.Z(C.loggingUrls||[]);for(var S=C.next();!S.done;S=C.next())S=S.value,S.baseUrl&&xu(S.baseUrl,S.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.F.onTap=function(H){var C,S=(C=this.data)==null?void 0:C.navigationEndpoint,w;(C=(w=this.data)==null?void 0:w.thumbnailNavigationEndpoint)&&_.AB(_.Ar(H),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(C,H,!1):S&&this.ytSparklesClickLocationBehavior.handleClick(S,H,!1)};
_.F.handleMuteAd=function(){this.collapsed=!0};
_.F.attached=function(){var H=this;_.E("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&H.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.F.detached=function(){_.E("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.JJ.Object.defineProperties(Vu.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var H;return!(((H=this.data)==null?void 0:H.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var H;return!(((H=this.data)==null?void 0:H.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.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}}});
Vu.prototype.dataChanged=Vu.prototype.dataChanged;
Vu.JSC$15401_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"]]);
Vu.JSC$15401_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.fL("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Vu.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Vu.prototype,"ytRendererBehavior",void 0);_.D([_.v(M$),_.K("design:type",Object)],Vu.prototype,"ytdActiveViewBehavior",void 0);
_.D([_.v([_.Lw.YtActionHandlerBehavior]),_.K("design:type",Object)],Vu.prototype,"actionHandlerBehavior",void 0);_.D([_.v(_.P_.YtSparklesClickLocationBehavior),_.K("design:type",Object)],Vu.prototype,"ytSparklesClickLocationBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Vu.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],Vu.prototype,"collapsed",void 0);_.D([_.V({reflectToAttribute:!0,value:function(){return _.E("enable_desktop_search_bigger_thumbs")}}),
_.K("design:type",Boolean)],Vu.prototype,"useBiggerThumbs",void 0);_.D([_.V({reflectToAttribute:!0,value:function(){return _.z9("desktop_search_bigger_thumbs_style")}}),
_.K("design:type",String)],Vu.prototype,"biggerThumbsStyle",void 0);_.D([_.V({reflectToAttribute:!0,value:function(){return _.E("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.K("design:type",Boolean)],Vu.prototype,"fixAlignmentSmallScreens",void 0);_.D([_.V({reflectToAttribute:!0,value:function(){return _.E("enable_desktop_search_bigger_thumbs_square")}}),
_.K("design:type",Boolean)],Vu.prototype,"useBiggerThumbsSquare",void 0);_.D([_.V({reflectToAttribute:!0}),_.l("data.mediaHoverOverlay"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Vu.prototype,"hideHoverOverlay",null);_.D([_.V({reflectToAttribute:!0}),_.l("data.promotedSparklesWebStyle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Vu.prototype,"webSearchLayout",null);
_.D([_.V({reflectToAttribute:!0}),_.l("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Vu.prototype,"webSearchLayoutLandscape",null);_.D([_.V({reflectToAttribute:!0}),_.l("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Vu.prototype,"webSearchLayoutSquare",null);
_.D([_.V({reflectToAttribute:!0}),_.l("data.promotedSparklesWebStyle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Vu.prototype,"sparklesCtaNoBackground",null);_.D([_.V({reflectToAttribute:!0}),_.l("data.actionButton"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Vu.prototype,"hideActionButton",null);_.D([_.V({computed:"computeButtonOverride(uiUpdate)"}),_.K("design:type",Object)],Vu.prototype,"buttonOverride",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.K("design:type",Boolean)],Vu.prototype,"hasNewAdBadge",void 0);_.D([_.l("data.promotedSparklesWebStyle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Vu.prototype,"useRoundedBadge",null);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Vu.prototype,"dataChanged",null);_.D([_.h({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],Vu);
_.B(Vu,"ytd-promoted-sparkles-web-renderer",function(){if(iK7!==void 0)return iK7;var H=document.createElement("template");_.f(H,'\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>');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return iK7=H},{mode:1});var Ch1;var ov=function(){var H=_.X.apply(this,arguments)||this;H.isInlinePreviewTriggered=!1;H.enableMonoStyle=_.E("enable_default_mono_cta_migration_web_client");return H};
_.G(ov,_.X);_.F=ov.prototype;_.F.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]]"}}}}}};
_.F.computeShowCta=function(H){return!(H==null||!H.ctaRenderer)};
_.F.onCtaClick=function(){var H,C,S,w=(H=this.data)==null?void 0:(C=H.ctaRenderer)==null?void 0:(S=C.buttonRenderer)==null?void 0:S.command;w&&this.ytComponentBehavior.resolveCommand(w)};
_.F.onWatchButtonClick=function(){var H,C,S,w=(H=this.data)==null?void 0:(C=H.watchButtonRenderer)==null?void 0:(S=C.buttonRenderer)==null?void 0:S.command;w&&this.ytComponentBehavior.resolveCommand(w)};
_.F.onTap=function(){};
_.F.dataChanged=function(){if(this.data){var H;_.E("enable_inline_muted_playback_on_web_search")&&((H=this.data)==null?0:H.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",ov.JSC$15405_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",ov.JSC$15405_DEFAULT_CLICK_LOCATION_BEHAVIOR,ov.JSC$15405_CLICK_LOCATION_ID_MAP);
this.thumbnail&&(H=this.thumbnail.getElementsByTagName("a"),H.length>0&&(H=H.namedItem("thumbnail"))&&H.removeAttribute("href"));var C;if(((C=this.data)==null?0:C.forceImpAutoplay)&&_.E("enable_force_imp_autoplay_on_desktop_search")){var S;(S=this.JSC$15406_inlinePreviewHoverListener)==null||pXu(S)}}};
_.F.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var H=_.Z(this.data.impressionUrls),C=H.next();!C.done;C=H.next())C=C.value,$Ww(C,kpD(C));this.data.impressionsFired=!0}};
_.F.maybeComputeHref=function(){return null};
_.F.computeIsShortDR=function(H){return!(H==null||!H.watchButtonRenderer)&&!(H==null||!H.ctaRenderer)&&!!this.enableShortDR};
_.F.computeIsNewUiOrShortDr=function(H){return!!this.enableUiUpdate||this.computeIsShortDR(H)};
_.F.computeIsNewUiAndNotShortDr=function(H){return!!this.enableUiUpdate&&!this.computeIsShortDR(H)};
_.F.computeHideAvatar=function(H){return!((H==null?0:H.channelThumbnail)&&this.computeIsNewUiOrShortDr(H))};
_.F.onClick=function(H){var C,S=(C=this.data)==null?void 0:C.navigationEndpoint;if(this.enableShortDR&&S&&(_.e(S,_.sX)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(S,H,!!_.e(S,_.sX)),H.stopPropagation();else if(S&&_.e(S,_.sX))this.ytSparklesClickLocationBehavior.handleClick(S,H,!0),H.stopPropagation();else if(S){var w,A;((w=this.data)==null?0:w.navigationEndpoint)&&((A=this.data)==null?0:A.adPlaybackContextParams)&&(C=this.data.navigationEndpoint,H=this.data.adPlaybackContextParams,
C.commandMetadata&&_.e(C.commandMetadata,_.u9)&&_.e(C.commandMetadata,_.u9).url&&(C=_.xT(_.e(C.commandMetadata,_.u9).url).adurl)&&_.kou(C)&&_.JM(_.x_(C),{encoded_ad_playback_context:H}));this.ytComponentBehavior.resolveCommand(S)}};
_.F.computeButtonOverride=function(H){if(this.computeIsNewUiOrShortDr(H))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.F.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.F.onThumbnailContainerClick=function(H){this.onClick(H)};
_.F.computeThumbnailWidth=function(H,C){return H?C==="MASSIVE"?600:C==="BIG"?500:C==="MEDIUM"?450:420:360};
_.F.attached=function(){var H=this,C;_.E("enable_inline_muted_playback_on_web_search")&&((C=this.data)==null?0:C.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.E("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&H.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.F.detached=function(){var H;_.E("enable_inline_muted_playback_on_web_search")&&((H=this.data)==null?0:H.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.E("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.F.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15406_inlinePreviewHoverListener=Kn({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:qOi})};
_.F.clearInlinePreviewHoverListeners=function(){var H;(H=this.JSC$15406_inlinePreviewHoverListener)==null||Cd(H)};
ov.prototype.dataChanged=ov.prototype.dataChanged;ov.prototype.onTap=ov.prototype.onTap;ov.JSC$15405_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.fL("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};ov.JSC$15405_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
ov.JSC$15405_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"}];_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],ov.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],ov.prototype,"ytRendererBehavior",void 0);_.D([_.v(M$),_.K("design:type",Object)],ov.prototype,"ytdActiveViewBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],ov.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.P_.YtSparklesClickLocationBehavior),_.K("design:type",Object)],ov.prototype,"ytSparklesClickLocationBehavior",void 0);
_.D([_.lA("#main-container"),_.K("design:type",HTMLElement)],ov.prototype,"mainContainer",void 0);_.D([_.V(),_.K("design:type",Object)],ov.prototype,"isInlinePreviewTriggered",void 0);_.D([_.V(),_.K("design:type",Object)],ov.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,value:function(){return _.E("enable_desktop_search_bigger_thumbs")}}),
_.K("design:type",Boolean)],ov.prototype,"useBiggerThumbs",void 0);_.D([_.V({reflectToAttribute:!0,value:function(){return _.E("enable_video_display_compact_button_group_for_desktop_search")}}),
_.K("design:type",Boolean)],ov.prototype,"enableShortDR",void 0);_.D([_.V({reflectToAttribute:!0,value:function(){return _.E("enable_vac_ui_update_for_desktop_search")}}),
_.K("design:type",Boolean)],ov.prototype,"enableUiUpdate",void 0);_.D([_.V({reflectToAttribute:!0,value:function(){return _.z9("desktop_search_bigger_thumbs_style")}}),
_.K("design:type",String)],ov.prototype,"biggerThumbsStyle",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.K("design:type",Boolean)],ov.prototype,"showCta",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.K("design:type",Boolean)],ov.prototype,"isShortDr",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.K("design:type",Boolean)],ov.prototype,"isShortDrOrNewUi",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.K("design:type",Boolean)],ov.prototype,"isNewUiAndNotShortDr",void 0);_.D([_.V({computed:"computeButtonOverride(data)"}),_.K("design:type",Object)],ov.prototype,"buttonOverride",void 0);_.D([_.V({computed:"computeSecondaryButtonOverride(data)"}),_.K("design:type",Object)],ov.prototype,"secondaryButtonOverride",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],ov.prototype,"enableMonoStyle",void 0);
_.D([_.lA("ytd-thumbnail"),_.K("design:type",HTMLElement)],ov.prototype,"thumbnail",void 0);_.D([_.Gz("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ov.prototype,"onTap",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ov.prototype,"dataChanged",null);_.D([_.h({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],ov);
_.B(ov,"ytd-promoted-video-renderer",function(){if(Ch1!==void 0)return Ch1;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return Ch1=H},{mode:1});var SV1;var OH=function(){var H=_.X.apply(this,arguments)||this;H.useRoundedBadge=!0;H.sitelinkIds=[];return H};
_.G(OH,_.X);_.F=OH.prototype;
_.F.configureRendererStamper=function(){return{"data.menu":{id:_.E("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]]"}}}}}};
_.F.dataChanged=function(){var H;(H=this.data)!=null&&H.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,OH.JSC$15411_CLICK_LOCATION_ID_MAP)};
_.F.onTap=function(H){var C,S=(C=this.data)==null?void 0:C.navigationCommand;S&&!_.AB(_.Ar(H),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(S,H,!1)};
_.F.onSitelinkTap=function(H){var C,S,w=H==null?void 0:(C=H.model)==null?void 0:(S=C.item)==null?void 0:S.onTap;w&&this.ytSparklesClickLocationBehavior.handleClick(w,H,!1)};
_.F.configureSitelinkClickTargets=function(){var H=this,C,S,w=(C=this.data)==null?void 0:(S=C.clickLocationTargets)==null?void 0:S.find(function(A){return A.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
w&&_.mY(this.hostElement).querySelectorAll(".sitelink").forEach(function(A){_.yQ(A,"yt-simple-endpoint",!0);H.sitelinkIds.push(A.id);var J,c;(J=H.ytSparklesClickLocationBehavior)==null||(c=J.clickTargetMap)==null||c.set(A.id,w)})};
_.F.sendImpression=function(){var H,C,S=((H=this.data)==null?void 0:(C=H.impressionCommand)==null?void 0:C.loggingUrls)||[];H=_.Z(S);for(C=H.next();!C.done;C=H.next())C=C.value,C.baseUrl&&xu(C.baseUrl,C.attributionSrcMode)};
_.F.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.JJ.Object.defineProperties(OH.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
OH.prototype.onTap=OH.prototype.onTap;OH.prototype.dataChanged=OH.prototype.dataChanged;OH.JSC$15411_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"]]);
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],OH.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],OH.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.P_.YtSparklesClickLocationBehavior),_.K("design:type",Object)],OH.prototype,"ytSparklesClickLocationBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],OH.prototype,"data",void 0);
_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],OH.prototype,"showFavicon",null);_.D([_.V({reflectToAttribute:!0,value:function(){return _.E("enable_desktop_search_bigger_thumbs")}}),
_.K("design:type",Boolean)],OH.prototype,"useBiggerThumbs",void 0);_.D([_.V({reflectToAttribute:!0,value:function(){return _.z9("desktop_search_bigger_thumbs_style")}}),
_.K("design:type",String)],OH.prototype,"biggerThumbsStyle",void 0);_.D([_.V({reflectToAttribute:!0,value:function(){return _.E("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.K("design:type",Boolean)],OH.prototype,"enableThumbnailScalingFix",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],OH.prototype,"dataChanged",null);_.D([_.Gz("tap"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],OH.prototype,"onTap",null);_.D([_.h({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],OH);
_.B(OH,"ytd-text-image-no-button-layout-renderer",function(){if(SV1!==void 0)return SV1;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return SV1=H},{mode:_.mn("kevlar_poly_si_batch_j028")?1:2});var sQW;var XX=function(){var H=_.X.apply(this,arguments)||this;H.isInlinePlaybackState=!1;H.uiUpdate=_.E("web_modern_buttons");H.hideCta=_.E("hide_cta_for_home_web_video_ads");H.noBottomMargin=!1;H.animateInTimeStamp=_.YB("hide_cta_for_home_web_video_ads_animate_in_time");H.animateInCta=!1;H.isHovered=!1;H.enableMonoStyle=_.E("enable_default_mono_cta_migration_web_client");H.player=null;H.JSC$15418_playerEvents=new Map;H.JSC$15418_preventProgressSaveTimer=null;H.delayedCtaJobId=null;return H};
_.G(XX,_.X);_.F=XX.prototype;_.F.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]]"}}}}}};
_.F.attached=function(){this.JSC$15418_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15418_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.E("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.F.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15418_playerEvents)};
_.F.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",XX.JSC$15417_DEFAULT_CLICK_LOCATION_BEHAVIOR,XX.JSC$15417_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.F.hoverChanged=function(){var H=this;this.delayedCtaJobId&&(_.rT.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.E("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.dw(_.rT,function(){H.buttonContainer.classList.add("show-delayed-buttons")},_.YB("delayed_cta_on_web_delay_milliseconds")))};
_.F.setPlayer=function(){var H=this,C;return _.z(function(S){if(S.nextAddress==1)return(C=_.m7(H.hostElement,"yt-get-inline-preview-player-action"))&&C[0]?S.yield(C[0].getPlayerPromise(),3):S.jumpTo(0);H.player=S.yieldResult;H.ytPlayerListenerBehavior.listenToPlayerEvents(H.player,H.JSC$15418_playerEvents);_.oT(S)})};
_.F.onPlaybackStart=function(){var H=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15418_preventProgressSaveTimer=_.Ns(_.rT,function(){H.JSC$15418_preventProgressSaveTimer=null},1E4))};
_.F.onVideoProgress=function(H){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&H>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.F.resetPreventProgressSaveTimer=function(){_.rT.cancelJob(this.JSC$15418_preventProgressSaveTimer);this.JSC$15418_preventProgressSaveTimer=null};
_.F.getSimpleString=function(H){return _.jt(H)};
_.F.onClick=function(H){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var C,S=(C=this.data)==null?void 0:C.navigationEndpoint,w;C=(w=this.data)==null?void 0:w.channelEndpoint;var A,J;((J=_.e((A=this.data)==null?void 0:A.adCtaButton,_.cg))==null?0:J.command)&&_.AB(_.Ar(H),this.hostElement,["call-to-action"])||(C&&_.AB(_.Ar(H),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(C,H,!1):!_.AB(_.Ar(H),this.hostElement,
["secondary-button"])&&S&&(_.E("enable_short_dr_for_desktop_launchable")?(w=!!_.e(S,_.sX),this.isInlinePlaybackState&&w&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(S,H,w)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(S,H,!0))))}};
_.F.updateWatchEndpointStartTime=function(){var H,C;this.player&&((H=this.data)==null?0:H.inlinePlaybackEndpoint)&&((C=this.data)==null?0:C.navigationEndpoint)&&!this.JSC$15418_preventProgressSaveTimer&&(H=Math.floor(this.player.getCurrentTime()),_.e(this.data.navigationEndpoint,_.sX).startTimeSeconds=H,_.e(this.data.inlinePlaybackEndpoint,_.sX).startTimeSeconds=H)};
_.F.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.F.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.JJ.Object.defineProperties(XX.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.E("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var H,C;return!((H=this.data)==null||!H.watchButton)&&!((C=this.data)==null||!C.adCtaButton)}}});
XX.prototype.hoverChanged=XX.prototype.hoverChanged;XX.prototype.dataChanged=XX.prototype.dataChanged;
XX.JSC$15417_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"]]);
XX.JSC$15417_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"}];
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],XX.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],XX.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],XX.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.P_.YtSparklesClickLocationBehavior),_.K("design:type",Object)],XX.prototype,"ytSparklesClickLocationBehavior",void 0);
_.D([_.v(_.fT.YtPlayerListenerBehavior),_.K("design:type",_.v_)],XX.prototype,"ytPlayerListenerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],XX.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],XX.prototype,"isInlinePlaybackState",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],XX.prototype,"miniMode",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],XX.prototype,"uiUpdate",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],XX.prototype,"hideCta",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],XX.prototype,"noBottomMargin",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],XX.prototype,"animateInCta",void 0);_.D([_.V({computed:"computeButtonOverride(uiUpdate)"}),_.K("design:type",Object)],XX.prototype,"buttonOverride",void 0);
_.D([_.V({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.K("design:type",Object)],XX.prototype,"secondaryButtonOverride",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],XX.prototype,"isHovered",void 0);_.D([_.lA("#button-container"),_.K("design:type",HTMLElement)],XX.prototype,"buttonContainer",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],XX.prototype,"typographyBump",void 0);
_.D([_.V({reflectToAttribute:!0}),_.l("typographyBump"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],XX.prototype,"typographyBumpV2",null);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],XX.prototype,"enableMonoStyle",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],XX.prototype,"dataChanged",null);
_.D([_.fx("isHovered"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],XX.prototype,"hoverChanged",null);_.D([_.l("data"),_.V({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],XX.prototype,"isButtonGroup",null);_.D([_.h({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],XX);
_.B(XX,"ytd-ad-inline-playback-meta-block",function(){if(sQW!==void 0)return sQW;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return sQW=H},{mode:_.mn("kevlar_poly_si_batch_j065")?1:2});var jQd;var Qu=function(){var H=_.X.apply(this,arguments)||this;H.noBottomMargin=!1;H.isInlinePreviewTriggered=!1;H.JSC$15423_activeViewMeasurementDataResolver=_.Cn();return H};
_.G(Qu,_.X);_.F=Qu.prototype;_.F.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.F.attached=function(){var H=this;this.updateInlinePreviewHoverListeners();this.JSC$15423_activeViewMeasurementDataResolver.promise.then(function(C){H.ytdActiveViewBehavior.enableActiveViewMeasurement(C,15)});
_.E("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&H.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.F.detached=function(){this.clearInlinePreviewHoverListeners();_.E("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.F.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15423_inlinePreviewHoverListener=Kn({mediaRenderer:this,lockupElement:this.JSC$15423_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:qOi})};
_.F.clearInlinePreviewHoverListeners=function(){var H;(H=this.JSC$15423_inlinePreviewHoverListener)==null||Cd(H)};
_.F.onDataChanged=function(){var H;((H=this.data)==null?0:H.activeView)&&this.JSC$15423_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Qu.JSC$15422_DEFAULT_CLICK_LOCATION_BEHAVIOR,Qu.JSC$15422_CLICK_LOCATION_ID_MAP);this.thumbnail&&(H=this.thumbnail.getElementsByTagName("a"),H.length>0&&(H=H.namedItem("thumbnail"))&&H.removeAttribute("href"));var C;if((C=this.data)==
null?0:C.forceImpAutoplay){var S;(S=this.JSC$15423_inlinePreviewHoverListener)==null||pXu(S)}};
_.F.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.F.onThumbnailContainerClick=function(H){if(this.data&&this.data.navigationEndpoint){var C,S=(C=this.data)==null?void 0:C.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(S,H,!!_.e(S,_.sX));H.stopPropagation()}};
_.F.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.F.impressionLog=function(){var H=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var C,S,w=(S=_.e((C=this.data)==null?void 0:C.onImpression,_.b9))==null?void 0:S.commands;w&&(w.forEach(function(A){A.clickTrackingParams&&delete A.clickTrackingParams;H.ytComponentBehavior.resolveCommand(A)}),this.data.impressionsFired=!0)}};
_.JJ.Object.defineProperties(Qu.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.JSC$15423_inlinePreviewHoverListener)==null?0:qq(H))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Qu.prototype.onTypographyBumpChanged=Qu.prototype.onTypographyBumpChanged;Qu.prototype.onDataChanged=Qu.prototype.onDataChanged;Qu.JSC$15422_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Qu.JSC$15422_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"}];
_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Qu.prototype,"ytComponentBehavior",void 0);_.D([_.v(M$),_.K("design:type",Object)],Qu.prototype,"ytdActiveViewBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Qu.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Qu.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.m4),_.K("design:type",Object)],Qu.prototype,"ytdDismissibleItemBehavior",void 0);
_.D([_.v(_.uU),_.K("design:type",Object)],Qu.prototype,"ytdLockupBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],Qu.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.P_.YtSparklesClickLocationBehavior),_.K("design:type",Object)],Qu.prototype,"ytSparklesClickLocationBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Qu.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],Qu.prototype,"noBottomMargin",void 0);
_.D([_.V(),_.K("design:type",Object)],Qu.prototype,"isInlinePreviewTriggered",void 0);_.D([_.V({reflectToAttribute:!0,selector:_.rB}),_.K("design:type",Boolean)],Qu.prototype,"miniMode",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],Qu.prototype,"typographyBump",void 0);_.D([_.lA("ytd-thumbnail"),_.K("design:type",HTMLElement)],Qu.prototype,"thumbnail",void 0);_.D([_.lA("#dismissible"),_.K("design:type",HTMLElement)],Qu.prototype,"JSC$15423_dismissibleMedia",void 0);
_.D([_.lA("ytd-ad-inline-playback-meta-block"),_.K("design:type",HTMLElement)],Qu.prototype,"adInlinePlaybackMetaBlock",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Qu.prototype,"onDataChanged",null);_.D([_.XJ("typographyBump"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Qu.prototype,"onTypographyBumpChanged",null);
_.D([_.l("lockupIsHovered"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Qu.prototype,"isHovered",null);_.D([_.h({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],Qu);
_.B(Qu,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(jQd!==void 0)return jQd;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return jQd=H},{mode:1});var wiM;var PB=function(){var H=_.X.apply(this,arguments)||this;H.isInlinePreviewTriggered=!1;H.JSC$15426_activeViewMeasurementDataResolver=_.Cn();return H};
_.G(PB,_.X);_.F=PB.prototype;_.F.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.F.attached=function(){var H=this;this.updateInlinePreviewHoverListeners();this.JSC$15426_activeViewMeasurementDataResolver.promise.then(function(C){H.ytdActiveViewBehavior.enableActiveViewMeasurement(C,15)})};
_.F.detached=function(){this.clearInlinePreviewHoverListeners()};
_.F.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15426_inlinePreviewHoverListener=Kn({mediaRenderer:this,lockupElement:this.JSC$15426_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:qOi})};
_.F.clearInlinePreviewHoverListeners=function(){var H;(H=this.JSC$15426_inlinePreviewHoverListener)==null||Cd(H)};
_.F.onDataChanged=function(){var H;((H=this.data)==null?0:H.activeView)&&this.JSC$15426_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",PB.JSC$15425_DEFAULT_CLICK_LOCATION_BEHAVIOR,PB.JSC$15425_CLICK_LOCATION_ID_MAP);this.thumbnail&&(H=this.thumbnail.getElementsByTagName("a"),H.length>0&&(H=H.namedItem("thumbnail"))&&H.removeAttribute("href"))};
_.F.onThumbnailContainerClick=function(H){if(this.data&&this.data.navigationEndpoint){var C,S=(C=this.data)==null?void 0:C.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(S,H,!0);H.stopPropagation()}};
_.F.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.F.impressionLog=function(){var H=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var C,S,w=(S=_.e((C=this.data)==null?void 0:C.onImpression,_.b9))==null?void 0:S.commands;w&&(w.forEach(function(A){A.clickTrackingParams&&delete A.clickTrackingParams;_.JA().resolve(_.ZQ).resolveCommand(A,{form:{element:H.hostElement}})}),this.data.impressionsFired=!0)}};
_.JJ.Object.defineProperties(PB.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.JSC$15426_inlinePreviewHoverListener)==null?0:qq(H))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
PB.prototype.onDataChanged=PB.prototype.onDataChanged;PB.JSC$15425_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);PB.JSC$15425_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"}];_.D([_.v(M$),_.K("design:type",Object)],PB.prototype,"ytdActiveViewBehavior",void 0);
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],PB.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],PB.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.m4),_.K("design:type",Object)],PB.prototype,"ytdDismissibleItemBehavior",void 0);_.D([_.v(_.uU),_.K("design:type",Object)],PB.prototype,"ytdLockupBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],PB.prototype,"ytdReduxBehavior",void 0);
_.D([_.v(_.P_.YtSparklesClickLocationBehavior),_.K("design:type",Object)],PB.prototype,"ytSparklesClickLocationBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],PB.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],PB.prototype,"isInlinePreviewTriggered",void 0);_.D([_.V({reflectToAttribute:!0,selector:_.rB}),_.K("design:type",Boolean)],PB.prototype,"miniMode",void 0);_.D([_.lA("ytd-thumbnail"),_.K("design:type",HTMLElement)],PB.prototype,"thumbnail",void 0);
_.D([_.lA("#dismissible"),_.K("design:type",HTMLElement)],PB.prototype,"JSC$15426_dismissibleMedia",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],PB.prototype,"onDataChanged",null);_.D([_.l("lockupIsHovered"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],PB.prototype,"isHovered",null);_.D([_.h({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],PB);
_.B(PB,"ytd-video-display-full-buttoned-renderer",function(){if(wiM!==void 0)return wiM;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return wiM=H},{mode:1});var Jh=function(H,C,S,w){w=w===void 0?!1:w;_.CU.call(this,H);this.adsClientErrorMessage=S;this.aggressivelySample=w;this.args=[];C&&this.args.push(C)};
_.G(Jh,_.CU);var w$=function(H,C,S,w){w=w===void 0?!1:w;_.CU.call(this,H);this.adsClientErrorMessage=S;this.aggressivelySample=w;this.args=[];C&&this.args.push(C)};
_.G(w$,_.CU);var AQ_=function(H){_.Op.call(this);var C=this;this.initializationFunction=H;this.instance=null;this.addOnDisposeCallback(function(){_.Ak(C.instance);C.instance=null})};
_.G(AQ_,_.Op);AQ_.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.a$("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var zID=function(){var H=new Map;[].forEach(function(C){H.set(C.JSC$30541_getType(),C)});
this.getters=H};new Promise(function(){});var JwD=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"]]),wrE=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"}]]),JQ1=function(H){this.experimentApiProvider=H;H=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=H<.1};var $d=function(H,C,S,w){_.Op.call(this);this.adsControlFlowEventListeners=C;this.adEventLogger=S;this.experimentApiProvider=w;this.adsControlFlowManagerHelper=H(this,this,this,this,this);_.Nx(this,this.adsControlFlowManagerHelper);H=_.Z(C);for(C=H.next();!C.done;C=H.next())_.Nx(this,C.value)};
_.G($d,_.Op);var FW7=function(H,C,S,w){pg(H.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",C,S,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,w);H=_.Z(H.adsControlFlowEventListeners);for(w=H.next();!w.done;w=H.next())FW7(w.value,C,S)};
_.F=$d.prototype;_.F.onOpportunityProcessedExternallyManaged=function(H,C,S,w){pg(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",H,S,C,void 0,void 0,void 0,void 0,void 0,void 0,void 0,w)};
_.F.onSlotReceivedExternallyManaged=function(H,C){kd(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",H,C)};
_.F.onSlotEntered=function(H){if(hU(this.adsControlFlowManagerHelper,H)!=null){kd(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",H);this.adsControlFlowManagerHelper.onSlotEntered(H);for(var C=_.Z(this.adsControlFlowEventListeners),S=C.next();!S.done;S=C.next())S.value.onSlotEntered(H);if(hU(this.adsControlFlowManagerHelper,H)!=null&&hU(this.adsControlFlowManagerHelper,H).isOccupyingSlotType()&&ng(this.adsControlFlowManagerHelper,H)&&!ZK7(this.adsControlFlowManagerHelper,H)){var w;ro(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",H,(w=ng(this.adsControlFlowManagerHelper,H))!=null?w:void 0);H=hU(this.adsControlFlowManagerHelper,H);H.slotLifecycleStage!=="entered"&&BB(H.slot,H.slotLifecycleStage,"enterLayoutForSlot");H.slotLifecycleStage="rendering";H.registeredLayoutRenderingAdapter.startRendering(H.layout)}}};
_.F.onSlotExited=function(H){if(hU(this.adsControlFlowManagerHelper,H)!=null){kd(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",H);this.adsControlFlowManagerHelper.onSlotExited(H);for(var C=_.Z(this.adsControlFlowEventListeners),S=C.next();!S.done;S=C.next())S.value.onSlotExited(H);hU(this.adsControlFlowManagerHelper,H)!=null&&hU(this.adsControlFlowManagerHelper,H).markedForUnscheduleAfterOutboundAdapterRequests&&cQd(this,H)}};
_.F.onLayoutReceivedExternallyManaged=function(H,C,S){H.managerLayer!=="core"&&ro(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",H,C,S)};
var YV1=function(H,C,S){if(hU(H.adsControlFlowManagerHelper,C)!=null){ro(H.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",C,S);H=_.Z(H.adsControlFlowEventListeners);for(var w=H.next();!w.done;w=H.next())YV1(w.value,C,S)}};
$d.prototype.onLayoutExited=function(H,C,S){if(hU(this.adsControlFlowManagerHelper,H)!=null){ro(this.adEventLogger,AwZ(S),H,C);this.adsControlFlowManagerHelper.onLayoutExited(H,C);for(var w=_.Z(this.adsControlFlowEventListeners),A=w.next();!A.done;A=w.next())A.value.onLayoutExited(H,C,S);(S=ng(this.adsControlFlowManagerHelper,H))&&C.layoutId===S.layoutId&&zCn(this,H)}};
$d.prototype.disposeInternal=function(){var H=MEn(this.adsControlFlowManagerHelper);H=_.Z(H);for(var C=H.next();!C.done;C=H.next())cQd(this,C.value);_.Op.prototype.disposeInternal.call(this)};
var cQd=function(H,C){if(hU(H.adsControlFlowManagerHelper,C)!=null)if(hU(H.adsControlFlowManagerHelper,C).JSC$30571_isSlotExitRequested()||hU(H.adsControlFlowManagerHelper,C).JSC$30571_isLayoutExitRequested())hU(H.adsControlFlowManagerHelper,C).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(hU(H.adsControlFlowManagerHelper,C).isOccupyingSlotType())hU(H.adsControlFlowManagerHelper,C).markedForUnscheduleAfterOutboundAdapterRequests=!0,zCn(H,C);else if(hU(H.adsControlFlowManagerHelper,C).JSC$30571_isSlotFillRequested())hU(H.adsControlFlowManagerHelper,
C).markedForUnscheduleAfterOutboundAdapterRequests=!0,hU(H.adsControlFlowManagerHelper,C)!=null&&(kd(H.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",C),C=hU(H.adsControlFlowManagerHelper,C),C.fulfillmentLifecycleStage="fill_cancel_requested",C.registeredFulfillmentAdapter.cancelSlotFilling());else{var S=ng(H.adsControlFlowManagerHelper,C),w;H.experimentApiProvider.get();(w=_.E("h5_enable_layout_unscheduling_events"))&&(S?qV7(H,C,S):_.a$(Error("Qh"),C,S,void 0,!1));kd(H.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",C);var A=hU(H.adsControlFlowManagerHelper,C),J=C.slotEntryTrigger,c=A.registeredSlotEntryTriggerAdapters.get(J.triggerId);c&&(c.unregisterTrigger(J),A.registeredSlotEntryTriggerAdapters.delete(J.triggerId));J=_.Z(C.slotFulfillmentTriggers);for(c=J.next();!c.done;c=J.next()){c=c.value;var Y=A.registeredFulfillmentTriggerAdapters.get(c.triggerId);Y&&(Y.unregisterTrigger(c),A.registeredFulfillmentTriggerAdapters.delete(c.triggerId))}J=_.Z(C.slotExpirationTriggers);
for(c=J.next();!c.done;c=J.next())if(c=c.value,Y=A.registeredExpirationTriggerAdapters.get(c.triggerId))Y.unregisterTrigger(c),A.registeredExpirationTriggerAdapters.delete(c.triggerId);A.hasLayout()&&(J=A.layout,D0(A,J.layoutExitNormalTriggers),D0(A,J.layoutExitSkipTriggers),D0(A,J.layoutExitMuteTriggers),D0(A,J.layoutExitUserInputSubmittedTriggers),D0(A,J.layoutExitUserCancelledTriggers));A.registeredFulfillmentAdapter=void 0;A.registeredSlotAdapter!=null&&(A.registeredSlotAdapter.release(),A.registeredSlotAdapter=
void 0);A.registeredLayoutRenderingAdapter!=null&&(A.registeredLayoutRenderingAdapter.release(),A.registeredLayoutRenderingAdapter=void 0);A=H.adsControlFlowManagerHelper;hU(A,C)&&(A=TJd(A,C.slotType+"_"+C.slotPhysicalPosition))&&A.delete(C.slotId);kd(H.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",C);H=_.Z(H.adsControlFlowEventListeners);for(A=H.next();!A.done;A=H.next())A=A.value,A.onSlotUnscheduled(C),S&&!w&&qV7(A,C,S)}},qV7=function(H,C,S){ro(H.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
C,S);
ro(H.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",C,S);H=_.Z(H.adsControlFlowEventListeners);for(var w=H.next();!w.done;w=H.next())w=w.value,S&&qV7(w,C,S)},zCn=function(H,C){if(hU(H.adsControlFlowManagerHelper,C)!=null&&hU(H.adsControlFlowManagerHelper,C).isOccupyingSlotType()){var S=ng(H.adsControlFlowManagerHelper,C);
if(S&&ZK7(H.adsControlFlowManagerHelper,C)){if(hU(H.adsControlFlowManagerHelper,C)!=null){var w=H.adEventLogger,A;var J=((A=wrE.get("abandoned"))==null?void 0:A.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";ro(w,J,C,S);H=hU(H.adsControlFlowManagerHelper,C);H.slotLifecycleStage!=="rendering"&&BB(H.slot,H.slotLifecycleStage,"exitLayout");H.slotLifecycleStage="rendering_stop_requested";H.registeredLayoutRenderingAdapter.stopRendering(S,"abandoned")}}else{kd(H.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
C);try{w=hU(H.adsControlFlowManagerHelper,C);if(!w)throw new w$("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");w.slotLifecycleStage!=="enter_requested"&&w.slotLifecycleStage!=="entered"&&w.slotLifecycleStage!=="rendering"&&BB(w.slot,w.slotLifecycleStage,"exitSlot");w.slotLifecycleStage="exit_requested";if(w.registeredSlotAdapter===void 0)throw w.slotLifecycleStage="scheduled",new w$("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
w.registeredSlotAdapter.exit()}catch(c){c instanceof w$&&c.adsClientErrorMessage?(m17(H.adEventLogger,c.adsClientErrorMessage,C),_.a$(c,C,void 0,void 0,c.aggressivelySample)):(m17(H.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",C),_.a$(c,C))}}}};var Kg=function(H,C,S,w,A,J){_.Op.call(this);this.registry=H;this.experimentApiProvider=J;this.slotMap=new Map};
_.G(Kg,_.Op);var TJd=function(H,C){return(H=H.slotMap.get(C))?H:new Map},hU=function(H,C){return TJd(H,C.slotType+"_"+C.slotPhysicalPosition).get(C.slotId)},MEn=function(H){var C=[];
H.slotMap.forEach(function(S){S=_.Z(S.values());for(var w=S.next();!w.done;w=S.next())C.push(w.value.slot)});
return C};
Kg.prototype.onSlotEntered=function(H){H=hU(this,H);H.slotLifecycleStage!=="enter_requested"&&BB(H.slot,H.slotLifecycleStage,"onSlotEntered");H.slotLifecycleStage="entered"};
var ZK7=function(H,C){H=hU(H,C);return H.hasLayout()&&H.isRendering()},ng=function(H,C){(H=hU(H,C))?H.hasLayout()&&!H.layout&&_.a$("Unexpected empty layout",C):_.a$("Unexpected undefined slotState",C);
return(H==null?void 0:H.layout)||null};
Kg.prototype.onSlotExited=function(H){H=hU(this,H);H.slotLifecycleStage!=="exit_requested"&&BB(H.slot,H.slotLifecycleStage,"onSlotExited");H.slotLifecycleStage="scheduled"};
Kg.prototype.onLayoutExited=function(H,C){H=hU(this,H);H.isPrimaryLayout(C)&&(H.slotLifecycleStage!=="rendering_stop_requested"&&BB(H.slot,H.slotLifecycleStage,"onLayoutExited"),H.slotLifecycleStage="entered")};
var D0=function(H,C){C=_.Z(C);for(var S=C.next();!S.done;S=C.next()){S=S.value;var w=H.registeredLayoutExitTriggerAdapters.get(S.triggerId);w&&(w.unregisterTrigger(S),H.registeredLayoutExitTriggerAdapters.delete(S.triggerId))}},BB=function(H,C,S){_.a$("Slot stage was "+C+" when calling method "+S,H)};var yQ1=function(H){_.Op.call(this);this.deps=H;this.JSC$15476_adsControlFlowManager=WWU(this)};
_.G(yQ1,_.Op);var WWU=function(H){var C=new $d(function(S,w,A,J){return new Kg(H.deps.registry,S,w,A,J,H.deps.experimentApiProvider)},new Set(Y9E(H.deps.registry).concat(H.deps.listeners)),H.deps.adEventLogger,H.deps.experimentApiProvider);
_.Nx(H,C);return C};var D3w=function(){};var NJ_=function(H,C){_.Op.call(this);this.experimentApiProvider=H;this.eventLoggingSettingsProvider=C;this.eventCount=0;this.premiumAdSeenEventLogger=K7D()()};
_.G(NJ_,_.Op);NJ_.prototype.logEvent=function(H){pg(this,H)};
var kd=function(H,C,S,w){pg(H,C,void 0,void 0,void 0,S,void 0,void 0,void 0,S.adSlotLoggingData,void 0,void 0,w)},ro=function(H,C,S,w,A){pg(H,C,void 0,void 0,void 0,S,w?w:void 0,void 0,void 0,S.adSlotLoggingData,w?w.adLayoutLoggingData:void 0,void 0,A);
S=_.JA().resolve(_.AA(Qm))==null?void 0:dv();C=S==null?void 0:S.adsSeenHotConfig;S=S==null?void 0:S.adsHotConfig;(C==null?0:C.logOnAdsSeen)&&(S==null?0:S.webEnablePremiumAdsSeenLogging)&&bK7(H,w?w:void 0,A)},m17=function(H,C,S){pg(H,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,S,void 0,void 0,void 0,S.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:C})},pg=function(H,C,S,w,A,J,c,Y,M,m,W,y,N){N=N===void 0?0:N;
EY1(H.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+C,"slot:",J,"layout:",c,"ping:",Y,"Opportunity:",{opportunityType:S,associatedSlotId:w,slotsFromOpportunity:A,triggerBundle:M,adSlotLoggingData:m,adLayoutLoggingData:W});try{var b=function(){H.experimentApiProvider.get();if(C!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){C||_.a$("Empty PACF event type",J,c);var u=H.eventLoggingSettingsProvider.get();var O;(O=u.alwaysIncludeDebugData)||(u.experimentApiProvider.get(),O=
!1);u=O;O={eventType:C,eventOrder:++H.eventCount};var d={};J&&(d.slotData=ZZu(u,J));if(c){var p={type:c.layoutType,controlFlowManagerLayer:JwD.get(c.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};u&&(p.debugData={layoutId:c.layoutId});d.layoutData=p}Y&&(d.pingData={pingDispatchStatus:Y.dispatchStatus,serializedAdPingMetadata:Y.ping.serializedAdPingMetadata,pingIndex:Y.index});M&&(d.triggerData=FH$(M.trigger,M.category));S&&(d.opportunityData=cwZ(u,S,w,A));O.adClientData=d;m&&(O.serializedSlotAdServingData=
m.serializedSlotAdServingDataEntry);W&&(O.serializedAdServingData=W.serializedAdServingDataEntry);y&&(O.errorInfo=y);_.kI("adsClientStateChange",{adsClientEvent:O})}};
N&&N>0?_.X2(_.oh(),function(){return b()},N):b()}catch(u){EY1(H.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.X2(_.oh(),function(){_.a$(u instanceof Error?u:String(u),J,c,{pacf_message:"exception during pacf logging"})})}},bK7=function(H,C,S){if(C){var w=C.adLayoutLoggingData;
_.X2(_.oh(),function(){H.premiumAdSeenEventLogger!=null&&w&&_.kI("adsSeenClientLogging",{serializedAdServingDataEntry:w.serializedAdServingDataEntry})},S!=null?S:0)}};var eC7=function(H,C){NJ_.call(this,H,C)};
_.G(eC7,NJ_);var uM7=function(){},EY1=function(H,C){return _.E(C)};var f7Y=function(){var H=new GyP;this.JSC$15501_adsControlFlowManager=(new yQ1(H)).JSC$15476_adsControlFlowManager},GyP=function(){_.Op.call(this);
var H=this;this.experimentApiProvider=new AQ_(function(){return new uM7});
var C=new AQ_(function(){return new JQ1(H.experimentApiProvider)});
this.adEventLogger=new eC7(this.experimentApiProvider,C);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.G(GyP,_.Op);var vYb=function(){},l7U,tU=function(){l7U||(l7U=new vYb);
return l7U},Lg=function(H){if(!H.JSC$15512_externallyManagedSlotAdapterCallback){var C=(new f7Y).JSC$15501_adsControlFlowManager;
H.JSC$15512_externallyManagedSlotAdapterCallback=C}return H.JSC$15512_externallyManagedSlotAdapterCallback},VEM=function(H,C,S){var w=C.opportunityType,A=Error("Rh");
if(w!==void 0){var J=Lg(H);FW7(J,w,void 0,S)}else _.a$(A,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});J=[];if(C.adSlotAndLayoutMetadata!==void 0){C=_.Z(C.adSlotAndLayoutMetadata);for(var c=C.next();!c.done;c=C.next()){var Y=c.value;if(c=Y.adSlotMetadata)if(J.push(c),H.onSlotReceivedExternallyManaged(c,S),Y.adLayoutMetadata){Y=_.Z(Y.adLayoutMetadata);for(var M=Y.next();!M.done;M=Y.next())H.onLayoutReceivedExternallyManaged(c,M.value,S)}else S>0&&_.a$("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
w,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else S>0&&_.a$("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+w,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else S>0&&_.a$("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+w,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(w!==void 0)H.onOpportunityProcessedExternallyManaged(w,J,void 0,S);else _.a$(A,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
vYb.prototype.onSlotReceivedExternallyManaged=function(H,C){H=Ah(H);if(H instanceof w$)_.a$(H,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else Lg(this).onSlotReceivedExternallyManaged(H,C)};
vYb.prototype.onLayoutReceivedExternallyManaged=function(H,C,S){H=Ah(H);C=MbZ(C);if(H instanceof w$)_.a$(H,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(C instanceof Jh)_.a$(C,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else Lg(this).onLayoutReceivedExternallyManaged(H,C,S)};
vYb.prototype.onOpportunityProcessedExternallyManaged=function(H,C,S,w){var A=[];C=_.Z(C);for(var J=C.next();!J.done;J=C.next())J=Ah(J.value),J instanceof w$?_.a$(J,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):A.push(J);Lg(this).onOpportunityProcessedExternallyManaged(H,A,S,w)};
var oYW=function(H,C){C=Ah(C);if(C instanceof w$)_.a$(C,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var S=Lg(H);kd(S.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",C);S=_.Z(S.adsControlFlowEventListeners);for(var w=S.next();!w.done;w=S.next())w=hU(w.value,C),w.slotLifecycleStage!=="not_scheduled"&&BB(w.slot,w.slotLifecycleStage,"onSlotScheduled"),w.slotLifecycleStage="scheduled";H=Lg(H);kd(H.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",C);H=_.Z(H.adsControlFlowEventListeners);
for(S=H.next();!S.done;S=H.next())S.value.onSlotEntered(C)}},OKP=function(H,C){C=Ah(C);
if(C instanceof w$)_.a$(C,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var S=Lg(H);kd(S.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",C);S=_.Z(S.adsControlFlowEventListeners);for(var w=S.next();!w.done;w=S.next())w.value.onSlotExited(C);H=Lg(H);kd(H.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",C);H=_.Z(H.adsControlFlowEventListeners);for(S=H.next();!S.done;S=H.next())S.value.onSlotUnscheduled(C)}},Xi_=function(H,C,S){C=Ah(C);
S=MbZ(S);if(C instanceof w$)_.a$(C,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(S instanceof Jh)_.a$(S,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var w=Lg(H);ro(w.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",C,S);w=_.Z(w.adsControlFlowEventListeners);for(var A=w.next();!A.done;A=w.next())A.value.onLayoutScheduled(C,S);H=Lg(H);ro(H.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",C,S);H=_.Z(H.adsControlFlowEventListeners);
for(w=H.next();!w.done;w=H.next())YV1(w.value,C,S)}},go=function(H,C,S){C=Ah(C);
S=MbZ(S);if(C instanceof w$)_.a$(C,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(S instanceof Jh)_.a$(S,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var w=Lg(H);ro(w.adEventLogger,AwZ("normal"),C,S);w=_.Z(w.adsControlFlowEventListeners);for(var A=w.next();!A.done;A=w.next())A.value.onLayoutExited(C,S,"normal");H=Lg(H);H=_.Z(H.adsControlFlowEventListeners);for(w=H.next();!w.done;w=H.next())qV7(w.value,C,S)}};_.UH=_.n(function(H){var C=_.FH(H,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});H=Object.assign({},C);var S=C.data;C=C.customCommandResolver;var w=(delete H.data,delete H.customCommandResolver,H);H=_.c5({visibilityCallback:function(Y,M){var m,W=(m=S().interaction)==null?void 0:m.onFirstVisible;Y&&(W&&_.Im(W),w.setOnErrorHandler()&&q9w(M))},
showOption:_.Xx});C=_.Ln(function(){return S().interaction},C,function(){var Y;
return(Y=w.listenToTapEvent)==null?void 0:Y.call(w)});
var A=_.Z(_.mB(!1,void 0,"wAC0Lc")),J=A.next().value,c=A.next().value;A=_.um(function(Y){var M;((M=w.setTouchEndHandler)==null?0:M.call(w))&&!J()&&(Y.currentTarget.click(),c(!0),setTimeout(function(){c(!1)},100));
return!1});
return _.q("ad-image-view-model",{class:function(){var Y,M=[((Y=S().interaction)==null?0:Y.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],m;((m=w.isGridViewEnabled)==null?0:m.call(w))&&M.push("ytwAdImageViewModelHostInGridView");return M.join(" ")},
el:_.Zl(H,C),"on:touchend":A},_.q("div",{class:"ytwAdImageViewModelHostImageContainer"},_.q(_.Jg,{data:function(){var Y;return{sources:S().imageSources,contentMode:(Y=S().imageProperties)==null?void 0:Y.contentMode}},
alt:function(){var Y,M;return((Y=S().interaction)==null?void 0:(M=Y.accessibility)==null?void 0:M.label)||""},
targetHeight:w.targetHeight,targetWidth:w.targetWidth,preserveHeight:w.preserveHeight,preserveWidth:w.preserveWidth,useWidth:w.useWidth,style:function(){var Y,M;return"vertical-align: bottom;"+(((Y=S().background)==null?0:Y.color)?"background-color:"+_.Iw((M=S().background)==null?void 0:M.color)+";":"")},
className:function(){return w.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var Y,M;return(M=(Y=w.setDraggable)==null?void 0:Y.call(w))!=null?M:void 0}})))},"sb");var QQ_=_.n(function(H){var C=H.data,S=H.listenToTapEvent,w=function(){};
return _.q("ad-button-hover-overlay-view-model",{"on:click":_.um(function(A){if(_.E("enable_web_home_top_landscape_image_layout_legacy_click_command")){var J,c=(J=C().interaction)==null?void 0:J.onTap;c&&_.M3(A.currentTarget,"yt-navigate",{endpoint:_.L7(c)})}}),
class:function(){var A;return((A=C().interaction)==null?0:A.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.Zl(_.c5({visibilityCallback:function(A){var J,c=(J=C().interaction)==null?void 0:J.onFirstVisible;A&&c&&_.Im(c)},
showOption:_.Xx}),_.Ln(function(){return C().interaction},void 0,function(){return!_.E("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(S==null?void 0:S())}))},function(){return _.E("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.q(_.V4,{data:function(){return C().button}},{adButtonViewModel:function(A){return _.q(_.dn,{data:A.data,
customCommandResolver:w})}}):_.q(_.V4,{data:function(){return C().button}},{adButtonViewModel:_.dn})}())},"tb");var Fe;_.qs(_.n(function(H){var C=H.data;H=_.c5({visibilityCallback:function(Y,M){if(Y){var m;(Y=(m=C().interaction)==null?void 0:m.onFirstVisible)&&_.Im(Y);var W;if(m=(W=C().adLayoutData)==null?void 0:W.activeViewData)ZB(M,m),_.E("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&cQ(M)})}else _.E("stop_av_measurement_on_detach")&&cQ(M)},
showOption:_.Xx,hideOption:Qg});var S=_.Ln(function(){return C().interaction},void 0,function(){return!0}),w=_.Z(_.mB(!1,void 0,"VNDDT")),A=w.next().value,J=w.next().value;
w=_.um(function(){J(!0)});
var c=_.um(function(){J(!1)});
return _.q("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.Zl(H,EWZ,S),"on:mouseenter":w,"on:mouseleave":c},_.q("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.vb({"max-width":function(){return _.E("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.q("div",{class:function(){var Y;
a:{var M;switch((Y=_.e(C().thumbnailImage,fNM))==null?void 0:(M=Y.imageProperties)==null?void 0:M.renderingAspect){case "RENDERING_ASPECT_SQUARE":Y="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":Y="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}Y=void 0}return Y}},_.q(_.V4,{data:function(){return C().thumbnailImage}},{adImageViewModel:function(Y){return _.q(_.UH,
{data:Y.data,
listenToTapEvent:!0,setTouchEndHandler:_.E("enable_top_landscape_image_experiment_dom_id_web")})}})),_.q("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.q(_.T,{cond:function(){var Y,M,m;
return(Y=_.e(C().thumbnailImage,fNM))==null?void 0:(M=Y.imageProperties)==null?void 0:(m=M.overlayIcon)==null?void 0:m.iconImage},
then:function(Y){return _.q(_.Jg,{data:Y,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.q("div",{class:function(){return A()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.q(_.V4,{data:function(){return C().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(Y){return _.q(QQ_,
{data:Y.data,
listenToTapEvent:!0})}}))),_.q("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.q(_.V4,{data:function(){return C().feedAdMetadata}},{feedAdMetadataViewModel:function(Y){return _.q(rn,{data:Y.data,
listenToTapEvent:!0,setTouchEndHandler:_.E("enable_top_landscape_image_experiment_dom_id_web")})}})))},"ub"),"compact-landscape-no-button-layout-view-model",{props:{data:_.GH}});_.qs(_.n(function(H){var C=H.data;H=_.c5({visibilityCallback:function(Y,M){if(Y){var m;(Y=(m=C().interaction)==null?void 0:m.onFirstVisible)&&_.Im(Y);var W;if(m=(W=C().adLayoutData)==null?void 0:W.activeViewData)ZB(M,m),_.E("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&cQ(M)})}else _.E("stop_av_measurement_on_detach")&&cQ(M)},
showOption:_.Xx,hideOption:Qg});var S=_.Lu(_.tg),w=_.Ln(function(){return C().interaction}),A={},J={},c={};
return _.q("square-image-layout-view-model",{class:_.eJ("ytwSquareImageLayoutViewModelHost",(A.ytwSquareImageLayoutViewModelHostColumn=S,A)),el:_.Zl(H,eIU,w)},_.q("div",{class:_.eJ("ytwSquareImageLayoutViewModelHostImage",(J.ytwSquareImageLayoutViewModelHostColumnImage=S,J))},function(){return _.q(_.V4,{data:function(){return C().adImage}},{adImageViewModel:function(Y){return _.q(_.UH,{data:Y.data,
isGridViewEnabled:S,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.q("div",{class:_.eJ("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(c.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=S,c))},_.q(_.V4,{data:function(){return C().feedAdMetadata}},{feedAdMetadataViewModel:rn}),function(){return _.q(_.V4,{data:function(){return C().adButton}},{adButtonViewModel:function(Y){var M={};
return _.q(_.dn,{data:Y.data,className:_.eJ((M.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,M.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=S,M))})}})}()))},"vb"),"square-image-layout-view-model",{props:{data:_.GH}});_.qs(_.n(function(H){var C=H.data;var S=H.noBottomMargin;var w=H.typographyBump;H=_.c5({visibilityCallback:function(y,N){if(y){var b;(y=(b=C().interaction)==null?void 0:b.onFirstVisible)&&_.Im(y);var u;if(b=(u=C().adLayoutData)==null?void 0:u.activeViewData)ZB(N,b),_.E("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&cQ(N)})}else _.E("stop_av_measurement_on_detach")&&cQ(N)},
showOption:_.Xx,hideOption:Qg});var A=_.Ln(function(){return C().interaction},void 0,function(){return _.E("enable_web_home_top_landscape_image_layout_level_click")}),J=function(){return C().interaction};
J!==void 0&&J!==null||_.Ug(Error("Sh"));var c=function(){var y,N,b;return(y=_.e(C().thumbnailImage,fNM))==null?void 0:(N=y.background)==null?void 0:(b=N.backgroundImageSource)==null?void 0:b.imageSources};
J=_.Z(_.mB(!1,void 0,"NFjwje"));var Y=J.next().value,M=J.next().value;J=_.um(function(){M(!0)});
var m=_.um(function(){M(!1)}),W=function(){return Y()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.q("top-landscape-image-layout-view-model",{class:function(){var y;return((y=C().interaction)==null?0:y.onTap)&&_.E("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.Zl(H,uVu,A),"on:mouseenter":J,"on:mouseleave":m},_.q("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.q(_.T,{cond:function(){return c()&&c().length>0},
then:function(){return _.q("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.vb({top:"0","background-image":function(){return"url("+String(c()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.q(_.T,{cond:function(){return!!C().adButtonHoverOverlay},
then:function(){return _.q("div",{class:W},_.q(_.V4,{data:function(){return C().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:QQ_}))}}),_.q("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.q(_.V4,{data:function(){return C().thumbnailImage}},{adImageViewModel:function(y){return _.q(_.UH,{data:y.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.E("enable_web_home_top_landscape_image_layout_level_click")})}})),_.q("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.q(_.Jg,{data:{sources:[{clientResource:{imageName:_.E("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.q("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.q(_.V4,{data:function(){return C().feedAdMetadata}},{feedAdMetadataViewModel:function(y){return _.q(rn,{data:y.data,
noBottomMargin:function(){return S==null?void 0:S()},
listenToTapEvent:function(){return _.E("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return w==null?void 0:w()}})}})))},"wb"),"top-landscape-image-layout-view-model",{props:{data:_.GH,
noBottomMargin:_.GH,typographyBump:_.GH}});var d1M=_.n(function(H){var C=H.data,S=_.c5({visibilityCallback:function(A){var J,c=(J=C().interaction)==null?void 0:J.onFirstVisible;A&&c&&_.Im(c)},
showOption:_.Xx});H=_.Ln(function(){return C().interaction},H.customCommandResolver);
var w={};return _.q("ad-text-image-view-model",{class:_.eJ("ytwAdTextImageViewModelHost",(w.ytwAdTextImageViewModelHostDarkBackground=function(){return C().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},w)),
el:_.Zl(S,H),"aria-label":function(){var A,J;return(A=C().interaction)==null?void 0:(J=A.accessibility)==null?void 0:J.label}},_.q("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.q(_.uZ,{text:function(){return C().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0})),_.q(_.T,{cond:function(){return C().overlayIcon},
then:function(A){return _.q("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.q(_.Jg,{data:A,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"xb");var Phb=_.n(function(H){var C=H.data;return _.q("feed-ad-sitelink-view-model",{class:function(){var S;return((S=C().interaction)==null?0:S.onTap)?"ytwFeedAdSitelinkViewModelHostIsClickableAdComponent":"ytwFeedAdSitelinkViewModelHost"},
el:_.Zl(_.Ln(function(){return C().interaction},H.customCommandResolver,void 0,function(){return!0})),
"aria-label":function(){var S,w;return(S=C().interaction)==null?void 0:(w=S.accessibility)==null?void 0:w.label},
role:"link",tabindex:0},_.q(_.uZ,{text:function(){return C().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"yb");var $1V=_.n(function(H){var C=H.data;H={};return _.q("feed-ad-sitelinks-carousel-view-model",{el:_.Zl(_.c5({visibilityCallback:function(S){var w,A=(w=C().interaction)==null?void 0:w.onFirstVisible;S&&A&&_.Im(A)},
showOption:_.Xx})),class:_.eJ("ytwFeedAdSitelinksCarouselViewModelHost",(H.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return C().style==="FEED_AD_SITELINKS_STYLE_NONE"},H))},_.q(_.V4,{data:function(){return C().sitelinks}},{feedAdSitelinkViewModel:Phb}))},"zb");_.qs(_.n(function(H){var C=H.data;H=_.c5({visibilityCallback:function(c,Y){if(c){var M;(c=(M=C().interaction)==null?void 0:M.onFirstVisible)&&_.Im(c);var m;(M=(m=C().adLayoutData)==null?void 0:m.activeViewData)&&ZB(Y,M)}},
showOption:_.Xx});var S=_.Z(_.mB(!1,void 0,"BzPhl")),w=S.next().value,A=S.next().value;S=_.um(function(){A(!0)});
var J=_.um(function(){A(!1)});
return _.q("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.Zl(H),"on:mouseenter":S,"on:mouseleave":J},_.q("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.q("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.q(_.V4,{data:function(){return C().textImage}},{adTextImageViewModel:d1M})),_.q("div",{class:function(){return w()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.q(_.V4,{data:function(){return C().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(c){return _.q(QQ_,{data:c.data,
listenToTapEvent:!0})}}))),_.q("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.q(_.V4,{data:function(){return C().feedAdMetadata}},{feedAdMetadataViewModel:function(c){return _.q(rn,{data:c.data,
listenToTapEvent:!0})}}),_.q(_.V4,{data:function(){return C().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:$1V})))},"Ab"),"text-image-no-button-layout-view-model",{props:{data:_.GH}});_.qs(_.n(function(H){var C=H.data;var S=H.typographyBump;return _.q("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.Zl(_.c5({visibilityCallback:function(w,A){if(w){var J;(w=(J=C().interaction)==null?void 0:J.onFirstVisible)&&_.Im(w);var c;(J=(c=C().adLayoutData)==null?void 0:c.activeViewData)&&ZB(A,J)}},
showOption:_.Xx,hideOption:Qg}))},_.q("div",null,_.q(_.V4,{data:function(){return C().videoLockup}},{lockupViewModel:function(w){return _.q(_.BG,{data:w.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:S})}})))},"Bb"),"video-display-button-group-layout-view-model",{props:{data:_.GH,
noBottomMargin:_.GH,typographyBump:_.GH}});_.qs(_.n(function(H){var C=H.data;var S=H.className;var w=H.typographyBump;return _.q("video-display-compact-button-group-layout-view-model",{el:_.Zl(_.c5({visibilityCallback:function(A,J){if(A){var c;(A=(c=C().interaction)==null?void 0:c.onFirstVisible)&&_.Im(A);var Y;(c=(Y=C().adLayoutData)==null?void 0:Y.activeViewData)&&ZB(J,c)}},
showOption:_.Xx})),class:_.eJ("videoDisplayCompactButtonGroupLayoutViewModelHost",S)},_.q(_.V4,{data:function(){return C().videoLockup}},{lockupViewModel:function(A){return _.q(_.BG,{data:A.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:w})}}))},"Cb"),"video-display-compact-button-group-layout-view-model",{props:{data:_.GH,
className:_.GH,typographyBump:_.GH}});_.qs(_.n(function(H){var C=H.data;var S=H.className;var w=H.typographyBump;return _.q("video-display-compact-buttoned-layout-view-model",{el:_.Zl(_.c5({visibilityCallback:function(A,J){if(A){var c;(A=(c=C().interaction)==null?void 0:c.onFirstVisible)&&_.Im(A);var Y;(c=(Y=C().adLayoutData)==null?void 0:Y.activeViewData)&&ZB(J,c)}},
showOption:_.Xx})),class:_.eJ("videoDisplayCompactButtonedLayoutViewModelHost",S)},_.q(_.V4,{data:function(){return C().videoLockup}},{lockupViewModel:function(A){return _.q(_.BG,{data:A.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:w})}}))},"Db"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.GH,
className:_.GH,typographyBump:_.GH}});_.qs(_.n(function(H){var C=H.data;var S=H.className;var w=H.typographyBump;var A=function(){return C().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},J=_.Lu(_.tg);
H=_.c5({visibilityCallback:function(m,W){if(m){var y=C();m=y.adLayoutData;var N;(y=(N=y.interaction)==null?void 0:N.onFirstVisible)&&_.Im(y);(N=m==null?void 0:m.activeViewData)&&ZB(W,N)}},
showOption:_.Xx});var c=_.EF(function(){return{containerType:A()&&J()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST"}},void 0,"mu2jrc"),Y=_.EF(function(){return A()&&J()?"":A()?"168px":"50%"},void 0,"qNDzkb"),M=_.EF(function(){return A()&&J()?9999:void 0},void 0,"Ikn8Kb");
return _.q("video-display-compact-layout-view-model",{el:_.Zl(H),class:_.eJ("videoDisplayCompactLayoutViewModelHost",S)},_.q(_.V4,{data:function(){return C().videoLockup}},{lockupViewModel:function(m){return _.q(_.BG,{data:m.data,
containerLayoutConfig:c,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:Y,thumbnailTargetWidth:M,typographyBump:w})}}))},"Eb"),"video-display-compact-layout-view-model",{props:{data:_.GH,
className:_.GH,typographyBump:_.GH}});_.qs(_.n(function(H){var C=H.data;var S=H.typographyBump;return _.q("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.Zl(_.c5({visibilityCallback:function(w,A){if(w){var J;(w=(J=C().interaction)==null?void 0:J.onFirstVisible)&&_.Im(w);var c;(J=(c=C().adLayoutData)==null?void 0:c.activeViewData)&&ZB(A,J)}},
showOption:_.Xx,hideOption:Qg}))},_.q("div",null,_.q(_.V4,{data:function(){return C().videoLockup}},{lockupViewModel:function(w){return _.q(_.BG,{data:w.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:S})}})))},"Fb"),"video-display-full-layout-view-model",{props:{data:_.GH,
noBottomMargin:_.GH,typographyBump:_.GH}});_.pi7=_.n(function(H){var C=H.data;H=_.sW("ad-card-badge-view-model");return _.q("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:H},_.q(_.T,{cond:function(){return C().imageBadge},
then:function(S){return _.q(_.Jg,{data:S,alt:""})}}))},"Gb");var ky7=_.n(function(H){var C=H.data;var S=H.customCommandResolver;return _.q("carousel-ad-card-image-view-model",{class:function(){var w;return((w=C().interaction)==null?0:w.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.Zl(_.c5({visibilityCallback:function(w){var A,J=(A=C().interaction)==null?void 0:A.onFirstVisible;w&&J&&_.Im(J)},
showOption:_.Xx}),_.Ln(function(){return C().interaction},S)),
"aria-label":function(){var w,A;return(w=C().interaction)==null?void 0:(A=w.accessibility)==null?void 0:A.label}},_.q(_.V4,{data:function(){return C().adImage}},{adImageViewModel:function(w){return _.q(_.UH,{data:w.data,
customCommandResolver:S})}}),_.q("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.q(_.V4,{data:function(){return C().badge}},{adCardBadgeViewModel:_.pi7})),_.q(_.pw,{model:{color:4}}))},"Hb");var hCY=_.n(function(H){var C=_.Z(_.mB(0,void 0,"JJ0QQc")),S=C.next().value;C.next();var w=C.next().value,A=_.Z(_.mB(!1,void 0,"f6YICe"));C=A.next().value;var J=A.next().value,c;_.PN(function(){clearTimeout(c)});
A=_.um(function(){var m;((m=H.animate)==null?0:m.call(H))?(J(!0),c=setTimeout(function(){J(!1);Y()},200)):Y();
return!1});
var Y=function(){w(function(m){return(m+H.numShownItems())%H.data().length})},M={};
return _.q("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.q("div",{class:_.eJ("ytwHorizontalCarouselCarouselWrapper")},_.q("div",{class:_.eJ("ytwHorizontalCarouselCarouselInnerWrapper",(M.ytwHorizontalCarouselAnimating=C,M))},_.q(_.Vq,{each:H.data,keyBy:"INDEX"},function(m,W){return _.q("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.vb({"flex-basis":function(){return"calc((100% - (8px * "+(H.numShownItems()-1)+")) / "+H.numShownItems()+")"},
order:function(){var y=W-S();y<0&&(y+=H.data().length);return y}})},H.children(m,W))}))),_.q("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":A},H.nextButton()))},"Ib");var nYV=_.n(function(H){var C=H.data;var S=H.customCommandResolver;var w=H.expansive;return _.q("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.Zl(_.c5({visibilityCallback:function(A){var J,c=(J=C().interaction)==null?void 0:J.onFirstVisible;A&&c&&_.Im(c)},
showOption:_.Xx}))},_.q(hCY,{data:function(){var A;return((A=C())==null?void 0:A.carouselAdCards)||[]},
nextButton:function(){return _.q(_.V4,{data:function(){return C().nextButton}},{buttonViewModel:function(A){var J=A.data;
return _.q(_.rc,{data:function(){return(w==null?0:w())?Object.assign({},J(),{style:"mono"}):J()},
className:_.E("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(A){return _.q(_.V4,{data:A},{carouselAdCardImageViewModel:function(J){return _.q(ky7,{data:J.data,customCommandResolver:S})}})}))},"Jb");var rQ7=_.n(function(H){var C=H.data;var S=H.customCommandResolver;var w=H.className;var A=H.buttonClassName;var J=H.animationEntityKey;var c=H.expansive;return _.q("carousel-button-view-model",{class:_.eJ("ytwCarouselButtonViewModelHost",w)},_.q(_.V4,{data:function(){return C().carousel}},{carouselAdCardCollectionViewModel:function(Y){return _.q(nYV,{data:Y.data,
customCommandResolver:S,expansive:c})}}),_.q(_.V4,{data:function(){return C().button}},{adButtonViewModel:function(Y){var M=Y.data;
return _.q(_.dn,{data:function(){return(c==null?0:c())?Object.assign({},M(),{style:"AD_BUTTON_STYLE_TONAL"}):M()},
className:A,customCommandResolver:S,animationEntityKey:J})}}))},"Kb");_.BJP=_.n(function(H){var C=H.data;H=H.className;var S=_.sW("pivot-button-view-model");_.$T(function(){var w;((w=C())==null?0:w.backgroundColor)&&S.value.setAttribute("data-background-color",String(C().backgroundColor))});
return _.q("pivot-button-view-model",{el:S,class:_.eJ("ytwPivotButtonViewModelHost",H)},_.q(_.$4,{command:function(){var w=C();w=w.onClickCommand?_.L7(w.onClickCommand):w.contentDescription?_.Zo(w.contentDescription):void 0;return w},
ariaLabel:function(){return C().contentDescription}},_.q(_.T,{cond:function(){return C().thumbnail},
then:function(w){return _.q(_.Jg,{data:w,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.q(_.T,{cond:function(){return C().icon},
then:function(w){return _.q(_.lm,{icon:function(){return w().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Lb");_.D1P=_.n(function(H){var C=H.data;var S=H.buttonShapeOverrideables;return _.q("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.q(_.V4,{data:function(){return C().buttonViewModels}},{buttonViewModel:function(w){return _.q(_.rc,{data:w.data,
buttonOverrides:S})},
likeButtonViewModel:function(w){return _.q(_.Mv,{data:w.data,buttonShapeOverrideables:S})},
dislikeButtonViewModel:function(w){return _.q(_.zu,{data:w.data,buttonShapeOverrideables:S})},
toggleButtonViewModel:function(w){return _.q(_.Jv,{data:w.data,buttonShapeOverrides:S})}}))},"Mb");var KW7=_.n(function(H){var C=H.avatar;var S=H.headline;var w=H.badge;var A=H.description;var J=H.expansive;H={};return _.q("yt-ad-metadata-shape",{class:_.eJ("ytAdMetadataShapeHost",(H.ytAdMetadataShapeHostLarge=J,H))},_.q("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.q(_.T,{cond:C,then:function(c){return _.q(_.$ud,{data:function(){return(J==null?0:J())?Object.assign({},c(),{size:"AD_AVATAR_SIZE_M"}):c()}})}}),_.q("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.q(_.uZ,{text:S,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.q(_.T,{cond:w,then:function(c){return _.q(_.hK,{data:function(){return(J==null?0:J())?Object.assign({},c(),{style:"AD_BADGE_STYLE_STARK"}):c()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.q("h2",{class:"ytAdMetadataShapeHostDescription"},_.q(_.uZ,{text:A,
linkInheritColor:!0,isHeadline:function(){return J==null?void 0:J()}})))},"Nb");var tEY=_.n(function(H){var C=H.data;var S=H.onShow;var w=H.expansive;H=_.Ln(function(){return C().interaction});
_.$T(function(){var J,c=(J=C().animatedRenderingConfig)==null?void 0:J.delayedSecondsToVisible;if(c){var Y=setTimeout(S,c*1E3);_.PN(function(){clearTimeout(Y)})}});
var A={};return _.q("reels-ad-card-buttoned-view-model",{class:_.eJ(function(){var J;return((J=C().interaction)==null?0:J.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(A.ytwReelsAdCardButtonedViewModelHostExpansive=w,A)),
el:_.Zl(H)},_.q(KW7,{avatar:function(){return _.e(C().avatar,ewP)},
headline:function(){return C().headline},
badge:function(){return _.e(C().adBadge,ucV)},
description:function(){return C().description},
expansive:w}),_.q(_.V4,{data:function(){return C().ctaButton}},{adButtonViewModel:function(J){var c=J.data;
return _.q(_.dn,{data:function(){return(w==null?0:w())?Object.assign({},c(),{style:"AD_BUTTON_STYLE_FILLED"}):c()}})}}))},"Ob");var LWM=_.n(function(H){var C=H.data;H=H.expansive;var S=_.E("web_ad_metadata_clickable")?_.Ln(function(){return C().interaction},void 0,function(){return _.E("web_ad_metadata_clickable")}):void 0,w={};
w=_.pn("ytwReelsAdMetadataViewModelHost",(w.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.E("web_ad_metadata_clickable"),w));return _.q("reels-ad-metadata-view-model",{class:w,el:_.Zl(S)},_.q(KW7,{avatar:function(){return _.e(C().avatar,ewP)},
headline:function(){return C().headline},
badge:function(){return _.e(C().adBadge,ucV)},
description:function(){return C().description},
expansive:H}))},"Pb");var gY7={iconPosition:"icon-with-label",size:"L"},U1i=_.n(function(H){var C=H.data;var S=H.overlayDensity;var w=H.extractOverlay;var A=H.extractActionBar;H=_.sW("reels-player-overlay-layout-view-model");var J=_.Jx(S,0),c=function(){var b;return(b=C().reelsAdCardButtonedEntityKey)!=null?b:""},Y=function(){return c()+"/ad_button"},M=_.fn(Tk$,c),m=function(){var b,u;
return(u=(b=M())==null?void 0:b.value)!=null?u:!1},W=_.Lu(GUw),y=function(){var b;
return Object.assign({},gY7,(W()||!((b=A==null?void 0:A())!=null&&b))&&{style:"overlay-dark"})};
S={};var N={};return _.q("reels-player-overlay-layout-view-model",{class:_.eJ("ytwReelsPlayerOverlayLayoutViewModelHost",(S.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!C().extension},S.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},S.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return J()===1&&!(w==null?0:w())},S.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var b;
return(b=w==null?void 0:w())!=null?b:!1},S.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var b;
return(b=A==null?void 0:A())!=null?b:!1},S)),
"overlay-density":function(){return String(J())},
el:H},_.q("div",{class:_.eJ("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(N.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},N))},_.q("div",{"aria-hidden":function(){return m()},
class:_.eJ("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return m()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.vb({"transition-duration":function(){return VbW(C())}})},_.q(_.V4,{data:function(){return C().adMetadata}},{reelsAdMetadataViewModel:function(b){return _.q(LWM,{data:b.data,
expansive:function(){return J()===1}})}}),_.q(_.T,{cond:function(){return C().extension},
then:function(b){return _.q("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.q(_.V4,{data:b},{adButtonViewModel:function(u){return _.q(_.dn,{data:u.data,animationEntityKey:Y,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(u){return _.q(rQ7,{data:u.data,animationEntityKey:Y,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return J()===1}})}}))}})),_.q("div",{"aria-hidden":function(){return!m()},
class:_.eJ("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return m()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.vb({"transition-duration":function(){return VbW(C())}})},_.q(_.V4,{data:function(){return C().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(b){return _.q(tEY,{data:b.data,
onShow:function(){_.Ax(_.O5("booleanEntity",c(),{key:c(),value:!0}))},
expansive:function(){return J()===1}})}}))),_.q("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.q(_.V4,{data:function(){return C().actions}},{reelActionBarViewModel:function(b){return _.q(_.D1P,{data:b.data,
buttonShapeOverrideables:y})}}),_.q(_.V4,{data:function(){return C().menu}},{buttonViewModel:function(b){return _.q(_.rc,{data:b.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},y(),{type:"tonal"})}})}}),_.q(_.V4,{data:function(){return C().pivotButton}},{pivotButtonViewModel:function(b){return _.q(_.BJP,{data:b.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Qb");_.qs(U1i,"reels-player-overlay-layout-view-model",{props:{data:_.GH,overlayDensity:_.GH,extractOverlay:_.GH,extractActionBar:_.GH}});var Rv=function(){var H=_.X.apply(this,arguments)||this;H.noBottomMargin=!1;H.overlayDensity=0;H.extractOverlay=!1;H.extractActionBar=!1;return H};
_.G(Rv,_.X);_.F=Rv.prototype;
_.F.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",textImageNoButtonLayoutViewModel:"text-image-no-button-layout-view-model",
promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.E("enable_short_dr_for_desktop_launchable")?{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},
textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.F.ready=function(){var H=this;KZ$(function(){H.isAttached&&sj(H.JSC$15556_storedAdSlotMetadata,H.JSC$15556_storedAdLayoutMetadata,H.adSlotMetadata,H.adLayoutMetadata)&&go(tU(),H.JSC$15556_storedAdSlotMetadata,H.JSC$15556_storedAdLayoutMetadata)})};
_.F.attached=function(){sj(this.JSC$15556_storedAdSlotMetadata,this.JSC$15556_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Xi_(tU(),this.JSC$15556_storedAdSlotMetadata,this.JSC$15556_storedAdLayoutMetadata)};
_.F.detached=function(){sj(this.JSC$15556_storedAdSlotMetadata,this.JSC$15556_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&go(tU(),this.JSC$15556_storedAdSlotMetadata,this.JSC$15556_storedAdLayoutMetadata)};
_.F.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.F.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15556_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15556_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15556_storedAdLayoutMetadata!==void 0&&this.JSC$15556_storedAdSlotMetadata!==void 0&&go(tU(),this.JSC$15556_storedAdSlotMetadata,this.JSC$15556_storedAdLayoutMetadata),Xi_(tU(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15556_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15556_storedAdSlotMetadata=this.adSlotMetadata)};
_.JJ.Object.defineProperties(Rv.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.adLayoutMetadata}}});
Rv.prototype.onAdMetadataChanged=Rv.prototype.onAdMetadataChanged;Rv.prototype.onTypographyBumpChanged=Rv.prototype.onTypographyBumpChanged;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Rv.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Rv.prototype,"rendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Rv.prototype,"ytComponentBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],Rv.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],Rv.prototype,"noBottomMargin",void 0);_.D([_.V(),_.K("design:type",Object)],Rv.prototype,"overlayDensity",void 0);_.D([_.V(),_.K("design:type",Object)],Rv.prototype,"extractOverlay",void 0);_.D([_.V(),_.K("design:type",Object)],Rv.prototype,"extractActionBar",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],Rv.prototype,"typographyBump",void 0);
_.D([_.l("data.adLayoutMetadata"),_.K("design:type",Object),_.K("design:paramtypes",[])],Rv.prototype,"adLayoutMetadata",null);_.D([_.V(),_.K("design:type",Object)],Rv.prototype,"adSlotMetadata",void 0);_.D([_.lA("ytd-video-display-full-buttoned-and-button-group-renderer"),_.K("design:type",HTMLElement)],Rv.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.D([_.fx("typographyBump"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Rv.prototype,"onTypographyBumpChanged",null);_.D([_.fx("adLayoutMetadata","adSlotMetadata"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Rv.prototype,"onAdMetadataChanged",null);_.D([_.h({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],Rv);
_.B(Rv,"ytd-in-feed-ad-layout-renderer",function(){if(PN7!==void 0)return PN7;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return PN7=H},
{mode:_.mn("kevlar_poly_si_batch_j028")?1:2});var RC7;var I7M;_.qs(_.hK,"ad-badge-view-model",{props:{data:_.GH,hasDot:_.GH,customCommandResolver:_.Yb,adRenderingContextType:_.Yb,usedInMasthead:_.Yb}});_.qs(_.dn,"ad-button-view-model",{props:{data:_.GH,customCommandResolver:_.Yb,className:_.Yb,delayedClassName:_.Yb,animationEntityKey:_.Yb,isCompactWidth:_.Yb,isContentWidth:_.Yb}});var Iv=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return H};
_.G(Iv,_.X);_.F=Iv.prototype;_.F.computeHasLiveDescription=function(H){return!(H==null||!H.liveDescription)};
_.F.computeHasByline=function(H){return!(H==null||!H.byline)};
_.F.computeUsesAdButtonViewModel=function(H){return!!_.e(H==null?void 0:H.cta,G41)};
_.F.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{adBadgeViewModel:{component:"ad-badge-view-model",properties:{adRenderingContextType:"[[adRenderingContextType]]",hasDot:"[[hasByline]]",usedInMasthead:"[[isMasthead]]"}}}},"data.cta":{id:"ad-button",mapping:{adButtonViewModel:{component:"ad-button-view-model",params:{isContentWidth:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.F.onYtToggleButton=function(H){var C,S=(C=this.data)==null?void 0:C.videoReminderEntityKey;S&&this.ytdReduxBehavior.dispatch(_.O5("upcomingEventReminderStateEntity",S,{key:S,state:H.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.F.attached=function(){this.updateChannelBanner()};
_.F.dataChanged=function(){this.updateChannelBanner()};
_.F.videoReminderStateChanged=function(){var H;this.videoReminderState&&_.e((H=this.data)==null?void 0:H.cta,_.YP)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.F.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var H=_.TG(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);H&&(H.startsWith("//")&&(H="https:"+H),this.hostElement.classList.add("channel-banner"),_.Ed(this.hostElement,{"--ytvmh-channel-banner":"url("+H+")"}))}else _.E("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.F.onPlayerReady=function(){this.onIronResize()};
_.F.maybeFlushDebouncer=function(){_.E("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(H){var C;H=(C=H.getElementsByTagName("yt-attributed-string"))==null?void 0:C[0];cji(H==null?void 0:H.polymerController)})};
_.F.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var H=_.mY(this.hostElement).querySelector("#live-description"),C;H&&((C=this.data)==null?0:C.shortLiveDescription)&&H.clientWidth<H.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
Iv.prototype.onIronResize=Iv.prototype.onIronResize;Iv.prototype.videoReminderStateChanged=Iv.prototype.videoReminderStateChanged;Iv.prototype.dataChanged=Iv.prototype.dataChanged;Iv.prototype.onYtToggleButton=Iv.prototype.onYtToggleButton;_.D([_.v(_.Ix),_.K("design:type",Object)],Iv.prototype,"ironResizableBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],Iv.prototype,"ytActionHandlerBehavior",void 0);
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Iv.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Iv.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],Iv.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Iv.prototype,"data",void 0);_.D([_.V({selectorArgs:["data.videoReminderEntityKey"],selector:Wcu}),_.K("design:type",Object)],Iv.prototype,"videoReminderState",void 0);
_.D([_.V({reflectToAttribute:!0,value:_.E("web_modern_buttons")}),_.K("design:type",Boolean)],Iv.prototype,"rounded",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.K("design:type",Boolean)],Iv.prototype,"hasLiveDescription",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.K("design:type",Boolean)],Iv.prototype,"hasByline",void 0);
_.D([_.V({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.K("design:type",String)],Iv.prototype,"adRenderingContextType",void 0);_.D([_.V({value:!0}),_.K("design:type",Boolean)],Iv.prototype,"isMasthead",void 0);_.D([_.V({computed:"computeUsesAdButtonViewModel(data)"}),_.K("design:type",Boolean)],Iv.prototype,"usesAdButtonViewModel",void 0);
_.D([_.V({reflectToAttribute:!0,value:_.E("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.K("design:type",Boolean)],Iv.prototype,"resizableAdBannerSafariFix",void 0);_.D([_.VQ("yt-formatted-string"),_.K("design:type",Array)],Iv.prototype,"formattedStrings",void 0);_.D([_.lA("#cta-button"),_.K("design:type",HTMLElement)],Iv.prototype,"ctaButton",void 0);
_.D([_.Gz("yt-toggle-button"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Iv.prototype,"onYtToggleButton",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Iv.prototype,"dataChanged",null);_.D([_.fx("videoReminderState"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Iv.prototype,"videoReminderStateChanged",null);
_.D([_.Gz("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Iv.prototype,"onIronResize",null);_.D([_.h({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],Iv);
_.B(Iv,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(I7M!==void 0)return I7M;var H=document.createElement("template");_.f(H,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <div id="ad-badge" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n      <div id="ad-button" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n  </div>\n</div>\n');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return I7M=H},{mode:1});var a7P;var av=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};H.isLocked=!1;return H};
_.G(av,_.X);_.F=av.prototype;_.F.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.F.onExpandedChanged=function(){this.expanded&&_.m7(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.F.onMouseOver=function(){this.maybeExpand()};
_.F.onTap=function(){this.maybeExpand()};
_.F.onExpandableTileExpanding=function(H){H!==this&&(this.expanded=!1)};
_.F.onExpandableTileLockAndCollapse=function(H){this.isLocked=!0;H!==this&&(this.expanded=!1)};
_.F.onExpandableTileUnlock=function(){this.isLocked=!1};
av.prototype.onTap=av.prototype.onTap;av.prototype.onMouseOver=av.prototype.onMouseOver;av.prototype.onExpandedChanged=av.prototype.onExpandedChanged;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],av.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],av.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],av.prototype,"data",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],av.prototype,"expanded",void 0);_.D([_.XJ("expanded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],av.prototype,"onExpandedChanged",null);_.D([_.Gz("mouseover"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],av.prototype,"onMouseOver",null);_.D([_.Gz("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],av.prototype,"onTap",null);
_.D([_.h({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],av);
_.B(av,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(a7P!==void 0)return a7P;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return a7P=H},{mode:1});var x17;var xd=function(){var H=_.X.apply(this,arguments)||this;H.buttonOverrides={style:"overlay"};H.useYtdPlayer=_.E("use_ytd_player_for_desktop_masthead");H.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};H.playbackFinished=!1;H.JSC$15570_playerManager=null;H.JSC$15570_mastheadCounter=new zUd;return H};
_.G(xd,_.X);_.F=xd.prototype;_.F.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"}}}};
_.F.created=function(){this.JSC$15570_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15570_playerManager=new sA)};
_.F.ready=function(){var H=this;this.JSC$15570_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var C=_.mY(this.hostElement).querySelector("#player");this.useYtdPlayer?C.style.display="none":(this.ytdPlayer.style.display="none",IX1(this.JSC$15570_playerManager,C,function(){H.onPlaybackEnded()}),_.mY(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var S;
((S=H.data)==null?0:S.navigationEndpoint)&&_.M3(H.hostElement,"yt-navigate",{endpoint:H.data.navigationEndpoint})}))};
_.F.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15570_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.F.attached=function(){var H=this;_.HI(function(){H.maybePlayVideo()})};
_.F.maybePlayVideo=function(){var H=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$15570_playerManager.playVideo(),this.getPlayerPromise().then(function(){H.JSC$15570_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.F.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15570_playerManager.stopVideo()};
_.F.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var H,C={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((H=this.data.playbackStartMs)!=null?H:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(C);this.setupYtdPlayer()}else xwM(this.JSC$15570_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(aXV(this.JSC$15570_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.F.getPlayerPromise=function(){return this.JSC$15570_playerManager.getPlayerPromise()};
_.F.onYtToggleButton=function(H){this.useYtdPlayer?this.toggleMute(H.detail.toggled):H.detail.toggled?this.JSC$15570_playerManager.mute():this.JSC$15570_playerManager.unMute()};
_.F.onYtNavigate=function(H){var C=sbu(H.detail.endpoint),S=jbE(this.data.clickthroughReportingData);C&&S&&(H.detail.endpoint.watchEndpoint?H.detail.tempData=S:_.JM(C,S,30))};
_.F.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.F.onExpandedChanged=function(){this.expanded?(_.m7(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.F.onMouseOver=function(){this.maybeExpand()};
_.F.onTap=function(){this.maybeExpand()};
_.F.onExpandableTileExpanding=function(H){H!==this&&(this.stopVideo(),this.expanded=!1)};
_.F.onExpandableTileLockAndCollapse=function(H){H!==this&&(this.isLocked=!0,this.expanded=!1)};
_.F.onExpandableTileUnlock=function(){this.isLocked=!1};
_.F.lockAndCollapseExpandableTiles=function(){_.q3(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.F.unlockExpandableTiles=function(){_.q3(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.F.setupYtdPlayer=function(){var H=this,C;return _.z(function(S){if(S.nextAddress==1)return S.yield(H.ytdPlayer.getPlayerPromise(),2);C=S.yieldResult;C.addEventListener("onStateChange",function(w){H.onPlayerStateChange(w)});
C.addEventListener("onCueRangeExit",function(w){H.onCueRangeExit(w)});
_.oT(S)})};
_.F.onPlayerStateChange=function(H){if(H===1&&(H=this.ytdPlayer.getPlayer())){var C=H.getCurrentTime(),S,w,A=C+((w=(S=this.data)==null?void 0:S.playbackDurationMs)!=null?w:0)/1E3;H.addCueRange("playback",C,A);this.JSC$15570_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.F.onCueRangeExit=function(H){H==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.F.toggleMute=function(H){var C=this,S;return _.z(function(w){if(w.nextAddress==1)return w.yield(C.ytdPlayer.getPlayerPromise(),2);S=w.yieldResult;H?S.mute():S.unMute();_.oT(w)})};
xd.prototype.onTap=xd.prototype.onTap;xd.prototype.onMouseOver=xd.prototype.onMouseOver;xd.prototype.onExpandedChanged=xd.prototype.onExpandedChanged;xd.prototype.onYtNavigate=xd.prototype.onYtNavigate;xd.prototype.onYtToggleButton=xd.prototype.onYtToggleButton;xd.prototype.dataChanged=xd.prototype.dataChanged;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],xd.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],xd.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],xd.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],xd.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],xd.prototype,"expanded",void 0);_.D([_.V(),_.K("design:type",Object)],xd.prototype,"buttonOverrides",void 0);
_.D([_.V(),_.K("design:type",Object)],xd.prototype,"useYtdPlayer",void 0);_.D([_.lA("#ytd-player"),_.K("design:type",Object)],xd.prototype,"ytdPlayer",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xd.prototype,"dataChanged",null);_.D([_.Gz("yt-toggle-button"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],xd.prototype,"onYtToggleButton",null);
_.D([_.Gz("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],xd.prototype,"onYtNavigate",null);_.D([_.XJ("expanded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xd.prototype,"onExpandedChanged",null);_.D([_.Gz("mouseover"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xd.prototype,"onMouseOver",null);
_.D([_.Gz("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xd.prototype,"onTap",null);_.D([_.h({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],xd);
_.B(xd,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(x17!==void 0)return x17;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return x17=H},{mode:1});var H_7;var Ho=function(){return _.X.apply(this,arguments)||this};
_.G(Ho,_.X);Ho.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Ho.prototype.onShow=function(){var H=_.mY(this.hostElement).querySelector("#live-description"),C;H&&((C=this.data)==null?0:C.shortLiveDescription)&&H.clientWidth<H.scrollWidth&&this.hostElement.classList.add("short-live-description")};
Ho.prototype.onYtToggleButton=function(H){var C,S=(C=this.data)==null?void 0:C.videoReminderEntityKey;S&&this.ytdReduxBehavior.dispatch(_.O5("upcomingEventReminderStateEntity",S,{key:S,state:H.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
Ho.prototype.videoReminderStateChanged=function(){var H;this.videoReminderState&&_.e((H=this.data)==null?void 0:H.cta,_.YP)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
Ho.prototype.videoReminderStateChanged=Ho.prototype.videoReminderStateChanged;Ho.prototype.onYtToggleButton=Ho.prototype.onYtToggleButton;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Ho.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Ho.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],Ho.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Ho.prototype,"data",void 0);
_.D([_.V({selectorArgs:["data.videoReminderEntityKey"],selector:Wcu}),_.K("design:type",Object)],Ho.prototype,"videoReminderState",void 0);_.D([_.Gz("yt-toggle-button"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Ho.prototype,"onYtToggleButton",null);_.D([_.fx("videoReminderState"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ho.prototype,"videoReminderStateChanged",null);
_.D([_.h({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],Ho);
_.B(Ho,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(H_7!==void 0)return H_7;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return H_7=H},{mode:_.mn("kevlar_poly_si_batch_j065")?1:2});var i_d;var ij=function(){var H=_.X.apply(this,arguments)||this;H.useYtdPlayer=_.E("use_ytd_player_for_desktop_masthead");H.buttonOverrides={style:"overlay"};H.JSC$15578_playerManager=null;H.JSC$15578_mastheadCounter=new zUd;H.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return H};
_.G(ij,_.X);_.F=ij.prototype;_.F.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"}}}};
_.F.created=function(){this.JSC$15578_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15578_playerManager=new sA)};
_.F.ready=function(){var H=this;this.JSC$15578_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var C;(C=this.embeddedPlayer)==null||C.remove()}else{var S;(S=this.ytdPlayer)==null||S.remove();IX1(this.JSC$15578_playerManager,this.embeddedPlayer,function(){H.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){H.data&&H.data.navigationEndpoint&&_.M3(H.hostElement,"yt-navigate",{endpoint:H.data.navigationEndpoint})})}};
_.F.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15578_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.F.dataChanged=function(){var H=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var C=!this.data.disableAutoPlayback,S,w={autoplay:C,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((S=this.data.playbackStartMs)!=null?S:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(C?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(w);this.setupYtdPlayer()}else xwM(this.JSC$15578_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(aXV(this.JSC$15578_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15578_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.q3(H.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");H.JSC$15578_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.F.getPlayerPromise=function(){return this.JSC$15578_playerManager.getPlayerPromise()};
_.F.onYtToggleButton=function(H){this.useYtdPlayer?this.toggleMute(H.detail.toggled):H.detail.toggled?this.JSC$15578_playerManager.mute():this.JSC$15578_playerManager.unMute()};
_.F.onYtNavigate=function(H){var C=sbu(H.detail.endpoint),S=jbE(this.data.clickthroughReportingData);C&&S&&(H.detail.endpoint.watchEndpoint?H.detail.tempData=S:_.JM(C,S,30))};
_.F.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15578_playerManager.stopVideo()};
_.F.setupYtdPlayer=function(){var H=this,C;return _.z(function(S){if(S.nextAddress==1)return S.yield(H.ytdPlayer.getPlayerPromise(),2);C=S.yieldResult;C.addEventListener("onStateChange",function(w){H.onPlayerStateChange(w)});
C.addEventListener("onCueRangeExit",function(w){H.onCueRangeExit(w)});
_.oT(S)})};
_.F.onPlayerStateChange=function(H){if(H===1&&(H=this.ytdPlayer.getPlayer())){var C=H.getCurrentTime(),S,w,A=C+((w=(S=this.data)==null?void 0:S.playbackDurationMs)!=null?w:0)/1E3;H.addCueRange("playback",C,A);_.q3(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15578_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.F.onCueRangeExit=function(H){H==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.F.toggleMute=function(H){var C=this,S;return _.z(function(w){if(w.nextAddress==1)return w.yield(C.ytdPlayer.getPlayerPromise(),2);S=w.yieldResult;H?S.mute():S.unMute();_.oT(w)})};
_.JJ.Object.defineProperties(ij.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var H,C;if(!((H=this.data)==null?0:(C=H.accessibilityData)==null?0:C.label))return"Ad primary link";var S,w;return _.fL("AD_TITLE",{title:(S=this.data)==null?void 0:(w=S.accessibilityData)==null?void 0:w.label})}}});
ij.prototype.onYtMastheadHidden=ij.prototype.onYtMastheadHidden;ij.prototype.onYtNavigate=ij.prototype.onYtNavigate;ij.prototype.onYtToggleButton=ij.prototype.onYtToggleButton;ij.prototype.dataChanged=ij.prototype.dataChanged;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],ij.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],ij.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],ij.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],ij.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],ij.prototype,"useYtdPlayer",void 0);_.D([_.lA("ytd-toggle-button-renderer"),_.K("design:type",Object)],ij.prototype,"muteButton",void 0);_.D([_.V(),_.K("design:type",Object)],ij.prototype,"buttonOverrides",void 0);
_.D([_.l("data.accessibilityData.label"),_.K("design:type",String),_.K("design:paramtypes",[])],ij.prototype,"titleAriaLabel",null);_.D([_.lA("#replay-button"),_.K("design:type",Object)],ij.prototype,"replayButton",void 0);_.D([_.lA("#player-container"),_.K("design:type",Object)],ij.prototype,"playerContainer",void 0);_.D([_.lA("#player"),_.K("design:type",Object)],ij.prototype,"embeddedPlayer",void 0);_.D([_.lA("#ytd-player"),_.K("design:type",Object)],ij.prototype,"ytdPlayer",void 0);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ij.prototype,"dataChanged",null);_.D([_.Gz("yt-toggle-button"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],ij.prototype,"onYtToggleButton",null);_.D([_.Gz("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],ij.prototype,"onYtNavigate",null);
_.D([_.Gz("yt-masthead-hidden"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ij.prototype,"onYtMastheadHidden",null);_.D([_.h({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],ij);
_.B(ij,"ytd-video-masthead-ad-primary-video-renderer",function(){if(i_d!==void 0)return i_d;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return i_d=H},{mode:2});var CF7;var CE=function(){var H=_.X.apply(this,arguments)||this;H.collapsed=!1;H.impressionResolver=_.Cn();H.JSC$15582_activeViewMeasurementDataResolver=_.Cn();H.actionMap={"yt-mute-ad-action":"handleMuteAd"};return H};
_.G(CE,_.X);_.F=CE.prototype;_.F.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"}}}};
_.F.ready=function(){var H=this;_.mY(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){H.expandAd()});
this.hostElement.addEventListener("yt-action",function(C){if(C.detail.actionName==="yt-service-request"){var S=C.detail.args[1];S.videoMastheadAdMuteCommand&&(H.collapseAd(S.videoMastheadAdMuteCommand.encryptedMastheadId),C.stopPropagation())}})};
_.F.attached=function(){var H=this;_.HI(function(){H.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(C){if(!H.collapsed){C=_.Z(C);for(var S=C.next();!S.done;S=C.next())S=S.value,xu(S.baseUrl,S.attributionSrcMode);H.data.impressionCommand=void 0}});
this.JSC$15582_activeViewMeasurementDataResolver.promise.then(function(C){H.ytdActiveViewBehavior.enableActiveViewMeasurement(C,15)});
_.E("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&H.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.F.dataChanged=function(){var H;((H=this.data.impressionCommand)==null?0:H.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var C;((C=this.data)==null?0:C.activeView)&&this.JSC$15582_activeViewMeasurementDataResolver.resolve(this.data.activeView);(H=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(H.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.F.computeWidescreen=function(H){var C;return!!(H&&((C=_.e(H,Wan))==null?0:C.isWidescreen))};
_.F.computeExpandable=function(H){return!!(H&&H.length>0)};
_.F.onIronResize=function(){if(this.expandable){var H=_.mY(this.hostElement).querySelector("#expandable-tile-container :first-child");H&&!H.expanded&&(H.expanded=!0)}};
_.F.handleMuteAd=function(){this.collapseAd(null)};
_.F.restoreCollapsedState=function(H){this.collapsed=_.VN().get("HIDDEN_MASTHEAD_ID")===H};
_.F.collapseAd=function(H){if(H){var C=_.VN();C.set("HIDDEN_MASTHEAD_ID",H);C.save()}(H=_.mY(this.hostElement).querySelector("#video"))&&_.M3(H,"yt-masthead-hidden");this.collapsed=!0};
_.F.expandAd=function(){var H=_.VN();H.set("HIDDEN_MASTHEAD_ID",!1);H.save();location.reload()};
_.F.detached=function(){_.E("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
CE.prototype.onIronResize=CE.prototype.onIronResize;CE.prototype.dataChanged=CE.prototype.dataChanged;_.D([_.v(_.Ix),_.K("design:type",Object)],CE.prototype,"ironResizableBehavior",void 0);_.D([_.v(M$),_.K("design:type",Object)],CE.prototype,"ytdActiveViewBehavior",void 0);_.D([_.v(_.yz),_.K("design:type",Object)],CE.prototype,"ytdGridStateAwareBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],CE.prototype,"ytActionHandlerBehavior",void 0);
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],CE.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],CE.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],CE.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.K("design:type",Boolean)],CE.prototype,"widescreen",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.K("design:type",Boolean)],CE.prototype,"expandable",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],CE.prototype,"collapsed",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],CE.prototype,"dataChanged",null);
_.D([_.Gz("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],CE.prototype,"onIronResize",null);_.D([_.h({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],CE);
_.B(CE,"ytd-video-masthead-ad-v3-renderer",function(){if(CF7!==void 0)return CF7;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return CF7=H},{mode:2});var SV=function(){return _.X.apply(this,arguments)||this};
_.G(SV,_.X);_.F=SV.prototype;_.F.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.F.ready=function(){var H=this;KZ$(function(){H.isAttached&&sj(H.JSC$15587_storedAdSlotMetadata,H.JSC$15587_storedAdLayoutMetadata,H.adSlotMetadata,H.adLayoutMetadata)&&go(tU(),H.JSC$15587_storedAdSlotMetadata,H.JSC$15587_storedAdLayoutMetadata)})};
_.F.attached=function(){sj(this.JSC$15587_storedAdSlotMetadata,this.JSC$15587_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Xi_(tU(),this.JSC$15587_storedAdSlotMetadata,this.JSC$15587_storedAdLayoutMetadata)};
_.F.detached=function(){sj(this.JSC$15587_storedAdSlotMetadata,this.JSC$15587_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&go(tU(),this.JSC$15587_storedAdSlotMetadata,this.JSC$15587_storedAdLayoutMetadata)};
_.F.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15587_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15587_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15587_storedAdLayoutMetadata!==void 0&&this.JSC$15587_storedAdSlotMetadata!==void 0&&go(tU(),this.JSC$15587_storedAdSlotMetadata,this.JSC$15587_storedAdLayoutMetadata),Xi_(tU(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15587_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15587_storedAdSlotMetadata=this.adSlotMetadata)};
_.JJ.Object.defineProperties(SV.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.adLayoutMetadata}}});
SV.prototype.onAdMetadataChanged=SV.prototype.onAdMetadataChanged;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],SV.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],SV.prototype,"ytComponentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],SV.prototype,"data",void 0);_.D([_.l("data.adLayoutMetadata"),_.K("design:type",Object),_.K("design:paramtypes",[])],SV.prototype,"adLayoutMetadata",null);
_.D([_.V(),_.K("design:type",Object)],SV.prototype,"adSlotMetadata",void 0);_.D([_.fx("adLayoutMetadata","adSlotMetadata"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],SV.prototype,"onAdMetadataChanged",null);_.D([_.h({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],SV);
_.B(SV,"ytd-page-top-ad-layout-renderer",function(){if(RC7!==void 0)return RC7;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return RC7=
H},{mode:_.mn("kevlar_poly_si_batch_j070")?1:2});var SJ7;var sZ=function(){var H=_.X.apply(this,arguments)||this;H.noBottomMargin=!1;H.overlayDensity=0;H.typographyBump=!1;H.extractOverlay=!1;H.extractActionBar=!1;return H};
_.G(sZ,_.X);_.F=sZ.prototype;
_.F.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",
properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.F.ready=function(){var H=this;KZ$(function(){H.isAttached&&H.adSlotMetadata&&OKP(tU(),H.adSlotMetadata)})};
_.F.attached=function(){if(this.adSlotMetadata){var H;if(this.adSlotMetadata===((H=this.data)==null?void 0:H.adSlotMetadata))oYW(tU(),this.adSlotMetadata);else{var C;_.Bn(Error("Th`"+this.adSlotMetadata+"`"+((C=this.data)==null?void 0:C.adSlotMetadata)))}}};
_.F.detached=function(){this.adSlotMetadata&&OKP(tU(),this.adSlotMetadata)};
_.F.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.F.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&OKP(tU(),this.adSlotMetadata),oYW(tU(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.JJ.Object.defineProperties(sZ.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var H,C,S=_.e((H=this.data)==null?void 0:(C=H.fulfillmentContent)==null?void 0:C.fulfilledLayout,_.NLP),w;return(H=(w=_.e(S==null?void 0:S.renderingContent,ySd))==null?void 0:w.layout)?H.toLowerCase().replace(/_/g,"-"):""}}});
sZ.prototype.onAdSlotMetadataChanged=sZ.prototype.onAdSlotMetadataChanged;sZ.prototype.onTypographyBumpChanged=sZ.prototype.onTypographyBumpChanged;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],sZ.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],sZ.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],sZ.prototype,"rendererBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],sZ.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],sZ.prototype,"noBottomMargin",void 0);_.D([_.V(),_.K("design:type",Object)],sZ.prototype,"overlayDensity",void 0);_.D([_.V(),_.K("design:type",Object)],sZ.prototype,"typographyBump",void 0);_.D([_.V(),_.K("design:type",Object)],sZ.prototype,"extractOverlay",void 0);_.D([_.V(),_.K("design:type",Object)],sZ.prototype,"extractActionBar",void 0);
_.D([_.lA("ytd-in-feed-ad-layout-renderer"),_.K("design:type",HTMLElement)],sZ.prototype,"inFeedAdLayoutRenderer",void 0);_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",String),_.K("design:paramtypes",[])],sZ.prototype,"layout",null);_.D([_.fx("typographyBump"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],sZ.prototype,"onTypographyBumpChanged",null);
_.D([_.fx("data.adSlotMetadata"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],sZ.prototype,"onAdSlotMetadataChanged",null);_.D([_.h({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],sZ);
_.B(sZ,"ytd-ad-slot-renderer",function(){if(SJ7!==void 0)return SJ7;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return SJ7=H},{mode:_.mn("kevlar_poly_si_batch_j077")?
1:2});var s57;var jV=function(){return _.X.apply(this,arguments)||this};
_.G(jV,_.X);_.F=jV.prototype;_.F.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"}}}};
_.F.maybeComputeHref=function(){return null};
_.F.onTap=function(){};
_.F.onThumbnailContainerClick=function(H){this.onClick(H)};
_.F.onClick=function(H){var C,S=(C=this.data)==null?void 0:C.navigationEndpoint;S&&_.e(S,_.sX)&&(this.ytSparklesClickLocationBehavior.handleClick(S,H,!1),H.stopPropagation())};
_.F.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var H=_.Z(this.data.impressionUrls),C=H.next();!C.done;C=H.next())C=C.value,$Ww(C,kpD(C));this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",jV.JSC$15595_DEFAULT_CLICK_LOCATION_BEHAVIOR,jV.JSC$15595_CLICK_LOCATION_ID_MAP);this.thumbnail&&(H=this.thumbnail.getElementsByTagName("a"),H.length>0&&(H=H.namedItem("thumbnail"))&&
H.removeAttribute("href"))}};
_.F.attached=function(){var H=this;_.E("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&H.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.F.detached=function(){_.E("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.JJ.Object.defineProperties(jV.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.E("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.E("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
jV.prototype.dataChanged=jV.prototype.dataChanged;jV.prototype.onTap=jV.prototype.onTap;jV.JSC$15595_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
jV.JSC$15595_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"}];_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],jV.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],jV.prototype,"ytRendererBehavior",void 0);_.D([_.v(M$),_.K("design:type",Object)],jV.prototype,"ytdActiveViewBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],jV.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],jV.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.P_.YtSparklesClickLocationBehavior),_.K("design:type",Object)],jV.prototype,"ytSparklesClickLocationBehavior",void 0);
_.D([_.V({selector:_.tg}),_.K("design:type",Object)],jV.prototype,"isGridViewEnabled",void 0);_.D([_.l("isGridViewEnabled"),_.V({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],jV.prototype,"watchFeedBigThumbs",null);_.D([_.l("isGridViewEnabled"),_.V({reflectToAttribute:!0}),_.K("design:type",String),_.K("design:paramtypes",[])],jV.prototype,"thumbnailWidth",null);_.D([_.V(),_.K("design:type",Object)],jV.prototype,"data",void 0);
_.D([_.lA("ytd-thumbnail"),_.K("design:type",HTMLElement)],jV.prototype,"thumbnail",void 0);_.D([_.Gz("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],jV.prototype,"onTap",null);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],jV.prototype,"dataChanged",null);_.D([_.h({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],jV);
_.B(jV,"ytd-compact-promoted-video-renderer",function(){if(s57!==void 0)return s57;var H=document.createElement("template");_.f(H,'\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>');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return s57=H},{mode:1});var j5i;_.hg("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var wt=function(){return _.X.apply(this,arguments)||this};
_.G(wt,_.X);wt.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],wt.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],wt.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],wt.prototype,"data",void 0);_.D([_.h({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],wt);
_.B(wt,"ytd-search-pyv-renderer",function(){if(j5i!==void 0)return j5i;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return j5i=H},{mode:1});var wRW;_.hg("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var Yy=function(){var H=_.X.apply(this,arguments)||this;H.roundedContainer=!0;H.JSC$15603_handleOpenPostCommentDialogActionAfterStamp=!1;H.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return H};
_.G(Yy,_.X);_.F=Yy.prototype;
_.F.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}}};
_.F.onStampFinished=function(){this.JSC$15603_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.F.handleSignalActionOpenPostCommentDialogAction=function(){var H=_.mY(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");H?H.openDialog():this.JSC$15603_handleOpenPostCommentDialogActionAfterStamp=!0};
_.F.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.F.computeHideBorder=function(){return this.isInEngagementPanel};
_.F.computeIsCompact=function(){return this.isInEngagementPanel};
_.F.computeUsesCompactLockup=function(H){return H==="BACKSTAGE_SURFACE_TYPE_HOME"||H==="BACKSTAGE_SURFACE_TYPE_SEARCH"||H==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||H==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||H==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||H==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.F.computeUsesFullLockup=function(){var H,C=(H=this.data)==null?void 0:H.post,S;H=(S=_.e(C,OhU))==null?void 0:S.surface;var w;S=(w=_.e(C,dRb))==null?void 0:w.originalPost;var A;if(w=H||((A=_.e(S,OhU))==null?void 0:A.surface))return!this.computeUsesCompactLockup(w)&&this.useUpdatedRepostUi;var J;return((J=_.e(C,dRb))==null?void 0:J.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.JJ.Object.defineProperties(Yy.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var H,C;return((C=_.e((H=this.data)==null?void 0:H.post,OhU))==null?void 0:C.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.useUpdatedRepostUi}}});
Yy.prototype.onYtCommentModerationPanelEmpty=Yy.prototype.onYtCommentModerationPanelEmpty;Yy.prototype.onStampFinished=Yy.prototype.onStampFinished;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],Yy.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Yy.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Yy.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],Yy.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Yy.prototype,"roundedContainer",void 0);_.D([_.V({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Yy.prototype,"hideBorder",void 0);_.D([_.V({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Yy.prototype,"isCompact",void 0);
_.D([_.V({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Yy.prototype,"usesFullLockup",void 0);_.D([_.Gz("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Yy.prototype,"onStampFinished",null);
_.D([_.Gz("ytd-comment-moderation-panel-empty"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Yy.prototype,"onYtCommentModerationPanelEmpty",null);_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Yy.prototype,"isInEngagementPanel",null);_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Yy.prototype,"useUpdatedRepostUi",null);
_.D([_.h({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],Yy);
_.B(Yy,"ytd-backstage-post-thread-renderer",function(){if(wRW!==void 0)return wRW;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return wRW=H},{mode:1});var ALV;var zF=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return H};
_.G(zF,_.X);zF.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
zF.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var H=this.data.thumbnail.thumbnails;this.isDarkTheme&&(H=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(H=_.TG(H,24,void 0,"height"))?H:void 0}};
zF.prototype.onDarkModeToggledAction=function(H){this.isDarkTheme=H};
zF.prototype.computeHasText=function(){var H;return!((H=this.data)==null||!H.text)};
_.JJ.Object.defineProperties(zF.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.D4(this.bannerImageUrl))+'");'}}});
zF.prototype.computeHasText=zF.prototype.computeHasText;zF.prototype.computeBannerImageUrl=zF.prototype.computeBannerImageUrl;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],zF.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],zF.prototype,"actionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],zF.prototype,"ytRendererBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],zF.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Boolean)],zF.prototype,"isDarkTheme",void 0);_.D([_.V(),_.K("design:type",String)],zF.prototype,"bannerImageUrl",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.K("design:type",Boolean)],zF.prototype,"hasText",void 0);_.D([_.fx("data","isDarkTheme"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],zF.prototype,"computeBannerImageUrl",null);
_.D([_.fx("data.text"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],zF.prototype,"computeHasText",null);_.D([_.l("bannerImageUrl"),_.K("design:type",Object),_.K("design:paramtypes",[])],zF.prototype,"bannerStyle",null);_.D([_.h({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],zF);
_.B(zF,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(ALV!==void 0)return ALV;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return ALV=H},{mode:1});var JLn;var Mk=function(){return _.X.apply(this,arguments)||this};
_.G(Mk,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Mk.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Mk.prototype,"data",void 0);_.D([_.h({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],Mk);
_.B(Mk,"ytd-backstage-zero-state-renderer",function(){if(JLn!==void 0)return JLn;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return JLn=H},{mode:1});var FOP;var qk=function(){return _.X.apply(this,arguments)||this};
_.G(qk,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],qk.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],qk.prototype,"data",void 0);_.D([_.V({computed:"computeIcon_(data.icon)"}),_.K("design:type",String)],qk.prototype,"icon",void 0);_.D([_.h({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],qk);
_.B(qk,"ytd-post-filter-zero-state-renderer",function(){if(FOP!==void 0)return FOP;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return FOP=H},{mode:1});var Z_V;var cLi={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},TF=function(){return _.X.apply(this,arguments)||this};
_.G(TF,_.X);TF.prototype.configureRendererStamper=function(){return cLi};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],TF.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],TF.prototype,"rendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],TF.prototype,"data",void 0);_.D([_.V({computed:"computeIcon_(data.icon)"}),_.K("design:type",String)],TF.prototype,"icon",void 0);_.D([_.h({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],TF);
_.B(TF,"ytd-post-scheduling-zero-state-renderer",function(){if(Z_V!==void 0)return Z_V;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return Z_V=H},{mode:1});var YJd;var mz=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return H};
_.G(mz,_.X);mz.prototype.onTabsActivate=function(H){this.data&&this.data.tabs&&_.M3(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[H.detail.selected].navigationEndpoint})};
mz.prototype.shouldShowTotalCount=function(H){return H&&H.totalCount!==void 0};
mz.prototype.handleUpdatePostsTotalCountAction=function(H){var C=this.get(["data.tabs",1,"totalCount"]),S=this.get("updatePostsTotalCountAction.updateType",H);H=this.get("updatePostsTotalCountAction.number",H);C!==void 0&&S!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&H&&(S==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(C)+H):S==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(C)-H))};
_.JJ.Object.defineProperties(mz.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var H=0,C=this.data.tabs.length;H<C;H++)if(this.data.tabs[H].selected)return H;return 0}}});
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],mz.prototype,"actionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],mz.prototype,"rendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],mz.prototype,"data",void 0);_.D([_.l("data.tabs"),_.K("design:type",Number),_.K("design:paramtypes",[])],mz.prototype,"selected",null);_.D([_.h({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],mz);
_.B(mz,"ytd-post-stream-filter-renderer",function(){if(YJd!==void 0)return YJd;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return YJd=H},{mode:1});var z77;var Wo=function(){return _.X.apply(this,arguments)||this};
_.G(Wo,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Wo.prototype,"kevlarBehaviors",void 0);_.D([_.V(),_.K("design:type",Object)],Wo.prototype,"data",void 0);_.D([_.h({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],Wo);
_.B(Wo,"ytd-channel-age-gate-renderer",function(){if(z77!==void 0)return z77;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return z77=H},{mode:1});var Me7;_.hg("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var y9=function(){var H=_.X.apply(this,arguments)||this;H.data=null;return H};
_.G(y9,_.X);y9.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.JJ.Object.defineProperties(y9.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var H,C,S;return((H=this.data)==null?0:(C=H.title)==null?0:(S=C.runs)==null?0:S.length)?147:160}}});
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],y9.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],y9.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Number),_.K("design:paramtypes",[])],y9.prototype,"imageSizePx",null);_.D([_.h({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],y9);
_.B(y9,"ytd-channel-owner-empty-state-renderer",function(){if(Me7!==void 0)return Me7;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return Me7=H},{mode:1});var qJM;var TXW;var Nk=function(){var H=_.X.apply(this,arguments)||this;H.boundSubmitSearch=function(){H.submitSearch()};
H.boundClearSearch=function(){H.clearSearch()};
return H};
_.G(Nk,_.X);_.F=Nk.prototype;_.F.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]]"}}}}}};
_.F.toggleClearButton=function(){this.hideClearButton=gXZ||!this.input.value};
_.F.submitOnEnterKeyUp=function(H){H.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.F.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.F.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.F.submit=function(){_.M3(this.hostElement,"search-query-changed",this.input.value)};
Nk.prototype.toggleClearButton=Nk.prototype.toggleClearButton;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Nk.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Nk.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Nk.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Nk.prototype,"data",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],Nk.prototype,"hideClearButton",void 0);_.D([_.V(),_.K("design:type",Object)],Nk.prototype,"boundSubmitSearch",void 0);_.D([_.V(),_.K("design:type",Object)],Nk.prototype,"boundClearSearch",void 0);_.D([_.lA("#input"),_.K("design:type",Object)],Nk.prototype,"input",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Nk.prototype,"toggleClearButton",null);
_.D([_.h({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],Nk);
_.B(Nk,"ytd-channel-switcher-search-box-renderer",function(){if(TXW!==void 0)return TXW;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return TXW=H},{mode:1});var m2i;var bj=function(){var H=_.X.apply(this,arguments)||this;H.boundSubmit=function(){H.submit()};
return H};
_.G(bj,_.X);_.F=bj.prototype;_.F.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"}}}}};
_.F.ready=function(){var H=this;this.form.addEventListener("submit",function(C){return H.onSubmit(C)})};
_.F.onSubmit=function(H){H.preventDefault();return!1};
_.F.toggleClearButton=function(){this.hideClearButton=gXZ||!this.input.value};
_.F.submitOnEnterKeyUp=function(H){H.keyCode===13&&this.submit()};
_.F.submit=function(){var H=this.data.endpoint,C=(0,_.hb.unsafeClone)(H);_.e(C,_.vU)?_.e(C,_.vU).query=this.input.value:_.e(C,_.l4)&&(_.e(C,_.l4).query=this.input.value);var S=_.e(C.commandMetadata,_.u9);(S==null?0:S.url)?(S.url=_.tt(S.url,"query",this.input.value),_.M3(this.hostElement,"yt-navigate",{endpoint:C})):_.e(C,zwW)?(_.e(C,zwW).channelSwitcherQuery=this.input.value,_.JA().resolve(_.ZQ).resolveCommand(C,{form:{element:this.hostElement}})):(H=Error("Uh`"+JSON.stringify(H)),_.nC(H))};
_.F.getUrl=function(H){return this.get("commandMetadata.webCommandMetadata.url",H)};
bj.prototype.toggleClearButton=bj.prototype.toggleClearButton;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],bj.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],bj.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],bj.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],bj.prototype,"hideClearButton",void 0);
_.D([_.V(),_.K("design:type",Object)],bj.prototype,"boundSubmit",void 0);_.D([_.lA("#form"),_.K("design:type",HTMLFormElement)],bj.prototype,"form",void 0);_.D([_.lA("#input"),_.K("design:type",Object)],bj.prototype,"input",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bj.prototype,"toggleClearButton",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],bj);
_.B(bj,"ytd-search-box-renderer",function(){if(m2i!==void 0)return m2i;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return m2i=H},{mode:2});var EZ=function(){var H=_.X.apply(this,arguments)||this;H.showSearchBox=!0;return H};
_.G(EZ,_.X);EZ.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],EZ.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],EZ.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],EZ.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],EZ.prototype,"showSearchBox",void 0);_.D([_.h({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],EZ);
_.B(EZ,"ytd-channel-switcher-header-renderer",function(){if(qJM!==void 0)return qJM;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return qJM=H},{mode:1});var WOW;var yL1;var eV=function(){var H=_.X.apply(this,arguments)||this;H.isDisplayed=!0;return H};
_.G(eV,_.X);_.F=eV.prototype;_.F.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.F.dataChanged=function(){this.isDisplayed=!0};
_.F.computeType=function(H){return H||"UNKNOWN"};
_.F.onYtServiceRequestCompleted=function(H){H.stopPropagation();this.isDisplayed=!1};
_.F.onClose=function(){this.isDisplayed=!1};
eV.prototype.onYtServiceRequestCompleted=eV.prototype.onYtServiceRequestCompleted;eV.prototype.dataChanged=eV.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],eV.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],eV.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],eV.prototype,"data",void 0);
_.D([_.V({computed:"computeType(data.type)",reflectToAttribute:!0}),_.K("design:type",String)],eV.prototype,"type",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],eV.prototype,"isDisplayed",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],eV.prototype,"dataChanged",null);
_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],eV.prototype,"onYtServiceRequestCompleted",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],eV);
_.B(eV,"ytd-alert-with-button-renderer",function(){if(yL1!==void 0)return yL1;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return yL1=H},{mode:1});var uj=function(){var H=_.X.apply(this,arguments)||this;H.noResult=!1;H.enableAlertBanner=!1;H.dismissedAlertBanner=!1;H.hideCreateChannelButton=!1;H.boundDismissAlertBanner=function(){H.dismissAlertBanner()};
H.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return H};
_.G(uj,_.X);_.F=uj.prototype;_.F.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.F.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.F.updateChannelSwitcherAction=function(H){var C;H=(C=_.e(H,A7Y))==null?void 0:C.page;_.e(H,w4U)!==void 0&&(this.data=_.e(H,w4U))};
_.F.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]]"}}}}}};
_.F.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.F.searchQueryChanged=function(H,C){if(this.data&&this.data.contents&&this.data.contents.length){H=[];var S=[];this.hideCreateChannelButton=this.noResult=!1;for(var w=document.querySelectorAll("ytd-account-item-renderer"),A=_.Z(w),J=A.next();!J.done;J=A.next())J=J.value,S.push(J),J.style.display="block";this.resetRightBorder(S);if(C){this.hideCreateChannelButton=!0;for(S=1;S<this.data.contents.length;S++)if(J=this.data.contents[S],_.e(J,ZhP)){var c=void 0,Y=void 0;A=(c=_.e(J,ZhP))==null?void 0:(Y=
c.accountName)==null?void 0:Y.simpleText;Y=c=void 0;J=(c=_.e(J,ZhP))==null?void 0:(Y=c.channelHandle)==null?void 0:Y.simpleText;(c=w[S-1])&&A&&_.MD(A,C)?H.push(c):_.E("enable_handle_search_on_channel_switcher")&&c&&J&&_.MD(J.toString(),C.toString())?H.push(c):c.style.display="none"}H.length===0&&(this.noResult=!0);this.resetRightBorder(H)}}};
_.F.resetRightBorder=function(H){for(var C=0;C<H.length;C++)H[C].style.borderRight=!this.hideCreateChannelButton&&(C+2)%3===0||this.hideCreateChannelButton&&(C+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.F.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.F.setShowSearchBox=function(H){if(H&&H.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var C=0;C<H.contents.length;C++)_.e(H.contents[C],_.S9)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.F.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.JJ.Object.defineProperties(uj.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null?0:H.contents)}}});
uj.prototype.onContinuationItemsUpdated=uj.prototype.onContinuationItemsUpdated;uj.prototype.searchQueryChanged=uj.prototype.searchQueryChanged;uj.prototype.onDataChanged=uj.prototype.onDataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],uj.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],uj.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],uj.prototype,"actionHandlerBehavior",void 0);_.D([_.v(_.EH),_.K("design:type",Object)],uj.prototype,"ytContinuationHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],uj.prototype,"data",void 0);_.D([_.lA("ytd-channel-switcher-header-renderer"),_.K("design:type",Object)],uj.prototype,"channelSwitcherHeaderRenderer",void 0);_.D([_.V(),_.K("design:type",Object)],uj.prototype,"noResult",void 0);
_.D([_.V(),_.K("design:type",Object)],uj.prototype,"enableAlertBanner",void 0);_.D([_.V(),_.K("design:type",Object)],uj.prototype,"dismissedAlertBanner",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],uj.prototype,"hideCreateChannelButton",void 0);_.D([_.l("data.contents"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],uj.prototype,"isLoading",null);_.D([_.V(),_.K("design:type",Object)],uj.prototype,"boundDismissAlertBanner",void 0);
_.D([_.V({computed:"computeButtonOverride()"}),_.K("design:type",Object)],uj.prototype,"buttonOverride",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],uj.prototype,"onDataChanged",null);_.D([_.Gz("search-query-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,String]),_.K("design:returntype")],uj.prototype,"searchQueryChanged",null);
_.D([_.Gz("yt-next-continuation-data-updated"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],uj.prototype,"onContinuationItemsUpdated",null);_.D([_.h({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],uj);
_.B(uj,"ytd-channel-switcher-page-renderer",function(){if(WOW!==void 0)return WOW;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return WOW=H},{mode:1});var NXd;var b_V;var GF=function(){var H=_.X.apply(this,arguments)||this;H.images=[];H.selectedImageIndex=0;return H};
_.G(GF,_.X);_.F=GF.prototype;
_.F.ready=function(){_.PI(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.PI(this.JSC$15648_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.PI(this.JSC$15648_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.PI(this.JSC$15648_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.F.onThumbnailClick=function(H){if(H=H.event_.detail)this.selectedImageIndex=this.images.indexOf(H)};
_.F.updateImageThumbnails=function(H){H=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:H.event_.detail});this.images.splice(this.selectedImageIndex,1,H);this.images=[].concat(_.k$(this.images))};
_.F.cancelImageRepositions=function(){this.selectedImageIndex=0;_.M3(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.F.saveImageRepositions=function(){this.selectedImageIndex=0;_.M3(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.JJ.Object.defineProperties(GF.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var H=this;return(this.images||[]).map(function(C,S){return{image:C,selected:S===H.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],GF.prototype,"ytRendererstamperBehavior",void 0);_.D([_.lA("ytd-backstage-image-preview-renderer"),_.K("design:type",Object)],GF.prototype,"JSC$15648_imagePreviewContainer",void 0);_.D([_.lA(".thumbnail-images-container"),_.K("design:type",HTMLElement)],GF.prototype,"thumbnailImagesContainer",void 0);_.D([_.V(),_.K("design:type",Array)],GF.prototype,"images",void 0);
_.D([_.V(),_.K("design:type",Object)],GF.prototype,"repositionInstructions",void 0);_.D([_.V(),_.K("design:type",Object)],GF.prototype,"selectedImageIndex",void 0);_.D([_.l("images","selectedImageIndex"),_.K("design:type",Array),_.K("design:paramtypes",[])],GF.prototype,"thumbnailRendererDatas",null);_.D([_.l("images","selectedImageIndex"),_.K("design:type",Object),_.K("design:paramtypes",[])],GF.prototype,"selectedImageData",null);
_.D([_.h({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],GF);
_.B(GF,"ytd-backstage-multi-image-reposition-renderer",function(){if(b_V!==void 0)return b_V;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return b_V=H},{mode:1});var fE=function(H,C){_.ph.call(this);this.uploadUrl=H;this.channelId=C;this.imagesUploadData=[]};
_.G(fE,_.ph);fE.prototype.getAllUploadStatuses=function(){var H=this,C,S,w;return _.z(function(A){if(A.nextAddress==1)return A.yield(EkP(H),2);C=A.yieldResult;S=C.get("succeed");w=C.get("failed");return A.return(S.concat(w))})};
var uo7=function(H){var C,S;return _.z(function(w){if(w.nextAddress==1)return w.yield(EkP(H),2);C=w.yieldResult;S=C.get("failed");S.length>0&&e7d(H,S);return w.return(H.getAllUploadStatuses())})},EkP=function(H){var C,S,w,A,J,c,Y;
return _.z(function(M){if(M.nextAddress==1)return C=new Map,M.yield(Promise.allSettled(H.imagesUploadData.map(function(m){return m.uploadPromise})),2);
S=M.yieldResult;w=[];A=_.Z(S);for(J=A.next();!J.done;J=A.next())c=J.value,c.status==="fulfilled"&&w.push(c.value);Y=H.imagesUploadData.map(function(m){return m.image}).filter(function(m){return w.every(function(W){return W.id!==m.id})});
C.set("succeed",w);C.set("failed",Y);return M.return(C)})},e7d=function(H,C){C=_.Z(C);
for(var S=C.next();!S.done;S=C.next()){var w=H;S=S.value;GeM(w,S.id)>=0&&w.cancel(S.id);var A=new fcP(S),J=_.as7(w.uploadUrl,{"X-YouTube-ChannelId":w.channelId},S.imageBlob);A.transfer=J;A.uploadPromise=vkn(J,S);w.imagesUploadData.push(A);J.run()}};
fE.prototype.cancel=function(H){var C=GeM(this,H);C!==-1&&((C=this.imagesUploadData[C].transfer)&&C.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(S){return S.image.id!==H}))};
var GeM=function(H,C){return H.imagesUploadData.findIndex(function(S){return S.image.id===C})},vkn=function(H,C){return new Promise(function(S,w){H.listen("l",function(){var A=H.getResponseText();
A?(A=JSON.parse(A).encryptedBlobId,C.encryptedBlobId=A,S(C)):w("upload failed")});
H.listen("n",function(){w("upload failed")})})},fcP=function(H){this.image=H};var oWE=function(H,C,S,w,A){this.id=H;this.imageBlob=C;this.localImageSrc=S;this.naturalWidth=w;this.naturalHeight=A;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 lcU=[".jpeg",".jpg",".png"],vo=function(){var H=_.X.apply(this,arguments)||this;H.showImagesPreview=!1;H.pollOptions=[];H.errorMessage="";H.optionPlaceholderText="";H.optionDefaultText="";H.JSC$15659_imageId=0;H.maxFileSizeMb=0;H.maxAspectRatio=0;H.invalidFileSizeError="";H.invalidAspectRatioError="";H.invalidFileTypeError="";H.imageSelector=new PJ(null,"single_file",lcU);return H};
_.G(vo,_.X);_.F=vo.prototype;_.F.ready=function(){_.PI(this.imageSelector,"j",this.onImageSelect,!1,this);_.PI(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.PI(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.F.dataChanged=function(){var H,C,S=_.e((H=this.data)==null?void 0:(C=H.cellTemplate)==null?void 0:C.onEmptyCellTap,dJ7);if(S&&S.uploadUrl&&S.channelId){var w;this.maxFileSizeMb=((w=S.imageValidationInfo)==null?void 0:w.maxFileSizeMb)||0;var A;this.maxAspectRatio=((A=S.imageValidationInfo)==null?void 0:A.allowedMaxAspectRatio)||0;var J;this.invalidFileSizeError=this.getSimpleString((J=this.data)==null?void 0:J.invalidFileSizeError);var c;this.invalidAspectRatioError=this.getSimpleString((c=this.data)==
null?void 0:c.invalidAspectRatioError);var Y;this.invalidFileTypeError=this.getSimpleString((Y=this.data)==null?void 0:Y.invalidFileTypeError);this.uploadManager=new fE(S.uploadUrl,S.channelId)}};
_.F.onEditorInfoChange=function(){this.optionPlaceholderText=_.jt(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.jt(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.F.observeAddImageError=function(){this.errorMessage!==""&&_.M3(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.F.onPollOptionsChange=function(){for(var H=!1,C=[],S=0;S<this.pollOptions.length;S++){var w=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(S+1);this.pollOptions[S].placeholderText!==w?(H=!0,C.push(Object.assign({},this.pollOptions[S],{placeholderText:w}))):C.push(this.pollOptions[S])}H&&(this.pollOptions=C);this.isValid()?_.M3(this.hostElement,"yt-commentbox-post-enable"):_.M3(this.hostElement,"yt-commentbox-post-disable")};
_.F.createPollOptions=function(H){var C=[],S;H=(S=H==null?void 0:H.minPollOptions)!=null?S:0;for(S=0;S<H;S++)C.push(this.createPollOption());return C};
_.F.onImageSelect=function(H){var C=this,S,w,A,J,c,Y;return _.z(function(M){if(M.nextAddress==1){if(C.selectedImageIndex===void 0)return M.jumpTo(0);S=H.files[0];C.errorMessage="";w=C.validateImage(S);if(w!=="")return C.errorMessage=w,M.return();A=new ef(C.maxAspectRatio,!1,!0);return M.yield(A.transform(S),3)}if(M.nextAddress!=4)return J=M.yieldResult,J.transformedData?J.invalidAspectRatio?(C.errorMessage=C.invalidAspectRatioError,M.return()):M.yield(OZ7(C.JSC$15659_imageId,H.files[0],J.transformedData),
4):(C.errorMessage=C.invalidFileTypeError,M.return());c=M.yieldResult;C.JSC$15659_imageId++;e7d(C.uploadManager,[c]);Y=Object.assign({},C.pollOptions[C.selectedImageIndex],{image:c});C.pollOptions.splice(C.selectedImageIndex,1,Y);C.refreshPollOptions();_.M3(C.hostElement,"yt-backstage-poll-image-select");_.oT(M)})};
_.F.validateImage=function(H){return H.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.F.refreshPollOptions=function(){this.pollOptions=[].concat(_.k$(this.pollOptions))};
_.F.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.k$(this.pollOptions),[this.createPollOption()]))};
_.F.onRemovePollOption=function(H){var C=this.pollOptions[H.model.index];C&&C.image&&this.uploadManager.cancel(C.image.id);this.pollOptions.splice(H.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.M3(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.F.onTextInput=function(){this.refreshPollOptions()};
_.F.onImageButtonClick=function(H){this.selectedImageIndex=H.model.index;this.imageSelector.click()};
_.F.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.F.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.F.saveImageRepositions=function(H){H=H.event_.detail;for(var C=0,S=[],w=_.Z(this.pollOptions),A=w.next();!A.done;A=w.next())A=A.value,A.image!==void 0?(A=Object.assign({},A,{image:H[C]}),S.push(A),C++):S.push(A);this.showImagesPreview=!1;this.pollOptions=[].concat(_.k$(S))};
_.F.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 H=0,C=_.Z(this.pollOptions),S=C.next();!S.done;S=C.next())if(S=S.value,S.optionText.trim()!==""||S.image!==void 0){if(!S.image||this.hasCustomOptionText&&S.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;H++}return H>=Number(this.editorInfo.minPollOptions)};
_.F.getAllUploadStatuses=function(){var H=this,C,S,w,A;return _.z(function(J){if(J.nextAddress==1)return J.yield(H.uploadManager.getAllUploadStatuses(),2);C=J.yieldResult;S=_.Z(C);for(w=S.next();!w.done;w=S.next())if(A=w.value,A.encryptedBlobId===void 0)return J.return(uo7(H.uploadManager));return J.return(C)})};
_.F.getPostCreateOptions=function(){for(var H=[],C=_.Z(this.pollOptions),S=C.next();!S.done;S=C.next())S=S.value,S.image!==void 0&&H.push({text:this.hasCustomOptionText?S.optionText:S.placeholderText,image:S.image});return H};
_.F.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.F.createButtonRenderer=function(H,C){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:H,accessibilityData:{accessibilityData:{label:this.getSimpleString(H)}},isDisabled:C}};
_.F.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.F.computeThumbnailRendererData=function(H){return H?{image:H,selected:!1}:void 0};
_.F.getSimpleString=function(H){return _.jt(H)};
_.F.updateOptionTextFromBinding=function(H){if(H.target){var C=Array.from(_.mY(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(H.target);if(C>=0){var S;this.pollOptions[C].optionText=(S=H.detail.value)!=null?S:""}}};
_.JJ.Object.defineProperties(vo.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var H,C;return this.pollOptions.length<((C=(H=this.editorInfo)==null?void 0:H.maxPollOptions)!=null?C:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(H){return H.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(H){return H.image}).map(function(H){return H.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(H){return H.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var H,C=(H=this.data)==null?void 0:H.addOptionButtonText;return C?this.createButtonRenderer(C,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var H,C=(H=this.data)==null?void 0:H.repositionImagesButtonLabel;return C?this.createButtonRenderer(C,!this.hasImages):void 0}}});
vo.prototype.onPollOptionsChange=vo.prototype.onPollOptionsChange;vo.prototype.observeAddImageError=vo.prototype.observeAddImageError;vo.prototype.onEditorInfoChange=vo.prototype.onEditorInfoChange;vo.prototype.dataChanged=vo.prototype.dataChanged;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],vo.prototype,"ytRendererstamperBehavior",void 0);_.D([_.lA("ytd-backstage-multi-image-reposition-renderer"),_.K("design:type",Object)],vo.prototype,"imageRepositionContainer",void 0);
_.D([_.V(),_.K("design:type",Object)],vo.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],vo.prototype,"editorInfo",void 0);_.D([_.V(),_.K("design:type",fE)],vo.prototype,"uploadManager",void 0);_.D([_.V(),_.K("design:type",Object)],vo.prototype,"showImagesPreview",void 0);_.D([_.V(),_.K("design:type",Array)],vo.prototype,"pollOptions",void 0);_.D([_.V(),_.K("design:type",Object)],vo.prototype,"errorMessage",void 0);
_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vo.prototype,"dataChanged",null);_.D([_.XJ("editorInfo"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vo.prototype,"onEditorInfoChange",null);_.D([_.fx("errorMessage"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vo.prototype,"observeAddImageError",null);
_.D([_.XJ("pollOptions"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vo.prototype,"onPollOptionsChange",null);_.D([_.l("pollOptions","editorInfo"),_.K("design:type",Object),_.K("design:paramtypes",[])],vo.prototype,"isAllowedToAddOption",null);_.D([_.l("pollOptions"),_.K("design:type",Object),_.K("design:paramtypes",[])],vo.prototype,"hasImages",null);
_.D([_.l("pollOptions"),_.K("design:type",Object),_.K("design:paramtypes",[])],vo.prototype,"imagesToReposition",null);_.D([_.l("pollOptions"),_.K("design:type",Object),_.K("design:paramtypes",[])],vo.prototype,"hasCustomOptionText",null);_.D([_.l("data","isAllowedToAddOption"),_.K("design:type",Object),_.K("design:paramtypes",[])],vo.prototype,"addOptionButton",null);_.D([_.l("data","hasImages"),_.K("design:type",Object),_.K("design:paramtypes",[])],vo.prototype,"repositionImagesButton",null);
_.D([_.h({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],vo);
_.B(vo,"ytd-backstage-image-poll-editor-renderer",function(){if(NXd!==void 0)return NXd;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return NXd=H},{mode:2});var Ven={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 okM;var lj=function(){var H=_.X.apply(this,arguments)||this;H.a11yConfig=Ven;H.imageDisplayOffsetTop=0;H.imageDisplayOffsetLeft=0;H.pickerDisplayOffsetTop=0;H.pickerDisplayOffsetLeft=0;H.showPreviewContainer=!0;H.startPicker=!1;H.repositionOptional=!1;H.editOnlyMode=!1;H.savedImageDisplayOffsetTop=0;H.savedImageDisplayOffsetLeft=0;return H};
_.G(lj,_.X);_.F=lj.prototype;_.F.created=function(){_.Ao.requestAvailability()};
_.F.ready=function(){};
_.F.onArrowKeysDown=function(H){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){H.detail.keyboardEvent.preventDefault();var C=0,S=0,w="";switch(H.detail.keyboardEvent.key){case "ArrowUp":Xr0(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?w=this.a11yConfig.reachBottomOfImage:C=this.imageHeight*.05*-1;break;case "ArrowDown":Xr0(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?w=this.a11yConfig.reachTopOfImage:
C=this.imageHeight*.05;break;case "ArrowLeft":Xr0(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?w=this.a11yConfig.reachRightOfImage:S=this.imageWidth*.05*-1;break;case "ArrowRight":Xr0(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?w=this.a11yConfig.reachLeftOfImage:S=this.imageWidth*.05}w&&_.fL(w)&&_.M3(this.hostElement,"iron-announce",{text:_.fL(w)});if(S||C)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+C)),H=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),H=_.fL(this.a11yConfig.imageVerticalPosition,{x_percent:""+H,y_percent:""+(100-H)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+S)),H=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),H=_.fL(this.a11yConfig.imageHorizontalPosition,{x_percent:""+H,y_percent:""+(100-H)})),H&&_.M3(this.hostElement,"iron-announce",{text:H})}};
_.F.getPreviewPosition=function(H,C,S,w){return Math.round(100*(H+C*.5-S)/w)};
_.F.calculateDisplayPosition=function(){var H=this.imageData.naturalWidth,C=this.imageData.naturalHeight;this.displayScale=Math.max(200/H,200/C);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var S=H*this.displayScale*this.imageData.previewCoordinates.left,w=C*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=C>H?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-S;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=H>C?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-w;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=H*this.displayScale;this.imageHeight=C*this.displayScale};
_.F.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.F.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.F.getSignedPosition=function(H,C,S){return C==="X"&&_.rh("HTML_DIR")==="rtl"?S==="-"?H+"px":H*-1+"px":S==="-"?H*-1+"px":H+"px"};
_.F.pickerMove=function(H){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var C=this.pickerOffsetX-H.clientX,S=this.pickerOffsetY-H.clientY;this.pickerOffsetX=H.clientX;this.pickerOffsetY=H.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
S)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-C))}};
_.F.pickerMoveStart=function(H){this.startPicker=!0;this.pickerOffsetX=H.clientX;this.pickerOffsetY=H.clientY};
_.F.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var H=this.generateCropPreview();H&&_.M3(this.hostElement,"ytd-backstage-image-preview-coordinates-update",H)};
_.F.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.M3(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.F.deleteImage=function(){_.M3(this.hostElement,"ytd-backstage-image-preview-delete")};
_.F.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.F.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var H=this.generateCropPreview();H&&_.M3(this.hostElement,"ytd-backstage-image-preview-coordinates-save",H)};
_.F.getPreviewOffset=function(H,C,S){return C&&H?(S==="X"&&_.rh("HTML_DIR")==="rtl"?300/C*H:300/C*H*-1)+"px":"0px"};
_.F.getSimpleText=function(H){return H?_.jt(H):""};
_.F.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}};
_.JJ.Object.defineProperties(lj.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var H=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.fL(this.a11yConfig.imageVerticalPosition,{x_percent:""+H,y_percent:""+(100-H)})+"\n"+_.fL(this.a11yConfig.verticalRepositionInstruction)}H=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.fL(this.a11yConfig.imageHorizontalPosition,{x_percent:""+H,y_percent:""+(100-H)})+"\n"+_.fL(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 H,C,S=(H=this.instruction)==null?void 0:(C=H.previewInstruction)==null?void 0:C.editButtonLabel;return S?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:S,accessibilityData:{accessibilityData:{label:this.getSimpleText(S)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var H,C,S,w,A=this.editOnlyMode?(H=this.instruction)==null?void 0:(C=H.editInstruction)==null?void 0:C.saveImagesButtonLabel:(S=this.instruction)==null?void 0:(w=S.editInstruction)==null?void 0:w.saveButtonLabel;return A?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:A,accessibilityData:{accessibilityData:{label:this.getSimpleText(A)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var H,C,S=(H=this.instruction)==null?void 0:(C=H.previewInstruction)==null?void 0:C.deleteButtonLabel;return S?{size:"SIZE_SMALL",text:S,accessibilityData:{accessibilityData:{label:this.getSimpleText(S)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var H,C,S=(H=this.instruction)==null?void 0:(C=H.editInstruction)==null?void 0:C.cancelButtonLabel;H=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return S?{style:H,size:"SIZE_SMALL",text:S,accessibilityData:{accessibilityData:{label:this.getSimpleText(S)}}}: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"}}});
lj.prototype.onEditOnlyModeUpdate=lj.prototype.onEditOnlyModeUpdate;lj.prototype.onImageChange=lj.prototype.onImageChange;_.D([_.V(),_.K("design:type",oWE)],lj.prototype,"imageData",void 0);_.D([_.V(),_.K("design:type",Object)],lj.prototype,"instruction",void 0);_.D([_.V(),_.K("design:type",Object)],lj.prototype,"a11yConfig",void 0);_.D([_.V(),_.K("design:type",Number)],lj.prototype,"imageWidth",void 0);_.D([_.V(),_.K("design:type",Number)],lj.prototype,"imageHeight",void 0);
_.D([_.V(),_.K("design:type",Number)],lj.prototype,"displayScale",void 0);_.D([_.V(),_.K("design:type",Object)],lj.prototype,"imageDisplayOffsetTop",void 0);_.D([_.V(),_.K("design:type",Object)],lj.prototype,"imageDisplayOffsetLeft",void 0);_.D([_.V(),_.K("design:type",Object)],lj.prototype,"pickerDisplayOffsetTop",void 0);_.D([_.V(),_.K("design:type",Object)],lj.prototype,"pickerDisplayOffsetLeft",void 0);_.D([_.V(),_.K("design:type",Object)],lj.prototype,"showPreviewContainer",void 0);
_.D([_.V(),_.K("design:type",Object)],lj.prototype,"startPicker",void 0);_.D([_.V(),_.K("design:type",Number)],lj.prototype,"pickerOffsetX",void 0);_.D([_.V(),_.K("design:type",Number)],lj.prototype,"pickerOffsetY",void 0);_.D([_.V(),_.K("design:type",Object)],lj.prototype,"repositionOptional",void 0);_.D([_.V(),_.K("design:type",Object)],lj.prototype,"editOnlyMode",void 0);_.D([_.lA("#picker-container"),_.K("design:type",HTMLElement)],lj.prototype,"JSC$15672_pickerContainer",void 0);
_.D([_.lA("#picker"),_.K("design:type",HTMLElement)],lj.prototype,"picker",void 0);_.D([_.lA("#preview-clipper"),_.K("design:type",HTMLElement)],lj.prototype,"previewClipper",void 0);_.D([_.lA("#image-in-picker-background"),_.K("design:type",HTMLImageElement)],lj.prototype,"JSC$15672_imageInBackground",void 0);_.D([_.lA("#image-in-picker"),_.K("design:type",HTMLImageElement)],lj.prototype,"JSC$15672_imageInPicker",void 0);
_.D([_.lA("#image-in-preview-clipper"),_.K("design:type",HTMLImageElement)],lj.prototype,"JSC$15672_imageInPreviewClipper",void 0);_.D([_.l("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.K("design:type",String),_.K("design:paramtypes",[])],lj.prototype,"altLabelForImage",null);_.D([_.l("imageHeight","imageWidth"),_.K("design:type",Number),_.K("design:paramtypes",[])],lj.prototype,"pickerSize",null);
_.D([_.l("imageHeight","imageWidth"),_.K("design:type",Object),_.K("design:paramtypes",[])],lj.prototype,"imageOrientationStyle",null);_.D([_.l("instruction"),_.K("design:type",Object),_.K("design:paramtypes",[])],lj.prototype,"editButton",null);_.D([_.l("instruction","editOnlyMode"),_.K("design:type",Object),_.K("design:paramtypes",[])],lj.prototype,"saveButton",null);_.D([_.l("instruction"),_.K("design:type",Object),_.K("design:paramtypes",[])],lj.prototype,"deleteButton",null);
_.D([_.l("instruction","editOnlyMode"),_.K("design:type",Object),_.K("design:paramtypes",[])],lj.prototype,"cancelButton",null);_.D([_.l("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.K("design:type",Number),_.K("design:paramtypes",[])],lj.prototype,"cropOffsetTop",null);_.D([_.l("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.K("design:type",Number),_.K("design:paramtypes",[])],lj.prototype,"cropOffsetLeft",null);
_.D([_.l("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.K("design:type",String),_.K("design:paramtypes",[])],lj.prototype,"pickerBackgroundStyle",null);_.D([_.l("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.K("design:type",String),_.K("design:paramtypes",[])],lj.prototype,"pickerDisplayStyle",null);_.D([_.l("cropOffsetLeft","cropOffsetTop"),_.K("design:type",String),_.K("design:paramtypes",[])],lj.prototype,"imageInPickerStyle",null);
_.D([_.l("cropOffsetLeft","cropOffsetTop","pickerSize"),_.K("design:type",String),_.K("design:paramtypes",[])],lj.prototype,"previewClipperStyle",null);_.D([_.XJ("imageData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lj.prototype,"onImageChange",null);_.D([_.XJ("editOnlyMode"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lj.prototype,"onEditOnlyModeUpdate",null);
_.D([_.l("showPreviewContainer"),_.K("design:type",String),_.K("design:paramtypes",[])],lj.prototype,"pickerModeStyle",null);_.D([_.h({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],lj);
_.B(lj,"ytd-backstage-image-preview-renderer",function(){if(okM!==void 0)return okM;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return okM=H},{mode:1});var O_U;var XR1={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 Q5U;var d2d;var V9=function(){var H=_.X.apply(this,arguments)||this;H.a11yConfig=XR1;H.imageDisplayOffsetTop=0;H.imageDisplayOffsetLeft=0;H.pickerDisplayOffsetTop=0;H.pickerDisplayOffsetLeft=0;H.cropCoordinatesSaved=!1;H.previewSize=0;H.startPicker=!1;H.repositionOptional=!1;return H};
_.G(V9,_.X);_.F=V9.prototype;_.F.created=function(){_.Ao.requestAvailability()};
_.F.ready=function(){};
_.F.onArrowKeysDown=function(H){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){H.detail.keyboardEvent.preventDefault();var C=0,S=0,w="";switch(H.detail.keyboardEvent.key){case "ArrowUp":Ql$(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?w=this.a11yConfig.reachBottomOfImage:C=this.imageHeight*.05*-1;break;case "ArrowDown":Ql$(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?w=this.a11yConfig.reachTopOfImage:
C=this.imageHeight*.05;break;case "ArrowLeft":Ql$(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?w=this.a11yConfig.reachRightOfImage:S=this.imageWidth*.05*-1;break;case "ArrowRight":Ql$(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?w=this.a11yConfig.reachLeftOfImage:S=this.imageWidth*.05}w&&_.fL(w)&&_.M3(this.hostElement,"iron-announce",{text:_.fL(w)});if(S||C)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+C)),H=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),H=_.fL(this.a11yConfig.imageVerticalPosition,{x_percent:""+H,y_percent:""+(100-H)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+S)),H=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),H=_.fL(this.a11yConfig.imageHorizontalPosition,{x_percent:""+H,y_percent:""+(100-H)})),H&&_.M3(this.hostElement,"iron-announce",{text:H})}};
_.F.getPreviewPosition=function(H,C,S,w){return Math.round(100*(H+C*.5-S)/w)};
_.F.displayImage=function(){var H=this.JSC$15683_pickerContainer.getBoundingClientRect().width,C=this.JSC$15683_pickerContainer.getBoundingClientRect().height,S=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),w=this.JSC$15683_imageInBackground.naturalWidth,A=this.JSC$15683_imageInBackground.naturalHeight;this.displayScale=Math.max(S/w,S/A);this.imageWidth=w*this.displayScale;this.imageHeight=A*this.displayScale;this.pickerDisplayOffsetLeft=(H-S)/2;this.pickerDisplayOffsetTop=
(C-S)/2;this.imageDisplayOffsetLeft=A>w?this.pickerDisplayOffsetLeft:(H-this.imageWidth)/2;this.imageDisplayOffsetTop=w>A?this.pickerDisplayOffsetTop:(C-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.F.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15683_imageInBackground.src=this.imageData.toString(),this.JSC$15683_imageInPicker.src=this.imageData.toString(),this.JSC$15683_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.F.getSignedPosition=function(H,C,S){return C==="X"&&_.rh("HTML_DIR")==="rtl"?S==="-"?H+"px":H*-1+"px":S==="-"?H*-1+"px":H+"px"};
_.F.pickerMove=function(H){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var C=this.pickerOffsetX-H.clientX,S=this.pickerOffsetY-H.clientY;this.pickerOffsetX=H.clientX;this.pickerOffsetY=H.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
S)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-C))}};
_.F.pickerMoveStart=function(H){this.startPicker=!0;this.pickerOffsetX=H.clientX;this.pickerOffsetY=H.clientY};
_.F.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.F.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.M3(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.F.getPreviewOffset=function(H,C,S,w){return C&&H&&S?(w==="X"&&_.rh("HTML_DIR")==="rtl"?S/C*H:S/C*H*-1)+"px":"0px"};
_.F.getSimpleText=function(H){return H?_.jt(H):""};
_.F.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var H=this.cropOffsetTop/this.imageHeight,C=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,S=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,w=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.mY(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.M3(this.hostElement,"yt-img-crop-coordinates-update",{top:H,right:C,bottom:S,left:w})}};
_.JJ.Object.defineProperties(V9.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var H=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.fL(this.a11yConfig.imageVerticalPosition,{x_percent:""+H,y_percent:""+(100-H)})+"\n"+_.fL(this.a11yConfig.verticalRepositionInstruction)}H=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.fL(this.a11yConfig.imageHorizontalPosition,{x_percent:""+H,y_percent:""+(100-H)})+"\n"+_.fL(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 H,C=(H=this.learnMore.runs[0])==null?void 0:H.navigationEndpoint,S;return((S=_.e(C,_.R8))==null?void 0:S.url)||void 0}}}});
V9.prototype.onImageDataChange=V9.prototype.onImageDataChange;_.D([_.V(),_.K("design:type",Object)],V9.prototype,"imageData",void 0);_.D([_.V(),_.K("design:type",Object)],V9.prototype,"instruction",void 0);_.D([_.V(),_.K("design:type",Object)],V9.prototype,"a11yConfig",void 0);_.D([_.V(),_.K("design:type",Number)],V9.prototype,"imageWidth",void 0);_.D([_.V(),_.K("design:type",Number)],V9.prototype,"imageHeight",void 0);_.D([_.V(),_.K("design:type",Number)],V9.prototype,"displayScale",void 0);
_.D([_.V(),_.K("design:type",Object)],V9.prototype,"imageDisplayOffsetTop",void 0);_.D([_.V(),_.K("design:type",Object)],V9.prototype,"imageDisplayOffsetLeft",void 0);_.D([_.V(),_.K("design:type",Object)],V9.prototype,"pickerDisplayOffsetTop",void 0);_.D([_.V(),_.K("design:type",Object)],V9.prototype,"pickerDisplayOffsetLeft",void 0);_.D([_.V(),_.K("design:type",Object)],V9.prototype,"cropCoordinatesSaved",void 0);_.D([_.V(),_.K("design:type",Object)],V9.prototype,"previewSize",void 0);
_.D([_.V(),_.K("design:type",Object)],V9.prototype,"startPicker",void 0);_.D([_.V(),_.K("design:type",Number)],V9.prototype,"pickerOffsetX",void 0);_.D([_.V(),_.K("design:type",Number)],V9.prototype,"pickerOffsetY",void 0);_.D([_.V(),_.K("design:type",Object)],V9.prototype,"repositionOptional",void 0);_.D([_.lA("#picker-container"),_.K("design:type",HTMLElement)],V9.prototype,"JSC$15683_pickerContainer",void 0);_.D([_.lA("#picker"),_.K("design:type",HTMLElement)],V9.prototype,"picker",void 0);
_.D([_.lA("#image-in-picker-background"),_.K("design:type",HTMLImageElement)],V9.prototype,"JSC$15683_imageInBackground",void 0);_.D([_.lA("#image-in-picker"),_.K("design:type",HTMLImageElement)],V9.prototype,"JSC$15683_imageInPicker",void 0);_.D([_.lA("#image-in-preview-clipper"),_.K("design:type",HTMLImageElement)],V9.prototype,"JSC$15683_imageInPreviewClipper",void 0);_.D([_.lA("#full-image-as-preview"),_.K("design:type",HTMLImageElement)],V9.prototype,"imageAsPreview",void 0);
_.D([_.l("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.K("design:type",String),_.K("design:paramtypes",[])],V9.prototype,"altLabelForImage",null);_.D([_.l("imageHeight","imageWidth"),_.K("design:type",Number),_.K("design:paramtypes",[])],V9.prototype,"pickerSize",null);_.D([_.l("imageHeight","imageWidth"),_.K("design:type",Object),_.K("design:paramtypes",[])],V9.prototype,"imageOrientationStyle",null);
_.D([_.l("instruction.previewInstruction.editButtonLabel"),_.K("design:type",Object),_.K("design:paramtypes",[])],V9.prototype,"editButton",null);_.D([_.l("instruction.editInstruction.saveButtonLabel"),_.K("design:type",Object),_.K("design:paramtypes",[])],V9.prototype,"saveButton",null);_.D([_.l("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.K("design:type",Number),_.K("design:paramtypes",[])],V9.prototype,"cropOffsetTop",null);
_.D([_.l("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.K("design:type",Number),_.K("design:paramtypes",[])],V9.prototype,"cropOffsetLeft",null);_.D([_.l("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.K("design:type",String),_.K("design:paramtypes",[])],V9.prototype,"pickerBackgroundStyle",null);_.D([_.l("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.K("design:type",String),_.K("design:paramtypes",[])],V9.prototype,"pickerDisplayStyle",null);
_.D([_.l("cropOffsetLeft","cropOffsetTop"),_.K("design:type",String),_.K("design:paramtypes",[])],V9.prototype,"imageInPickerStyle",null);_.D([_.l("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.K("design:type",String),_.K("design:paramtypes",[])],V9.prototype,"previewClipperStyle",null);_.D([_.fx("imageData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],V9.prototype,"onImageDataChange",null);
_.D([_.l("cropCoordinatesSaved"),_.K("design:type",String),_.K("design:paramtypes",[])],V9.prototype,"pickerModeStyle",null);_.D([_.l("instruction.editInstruction.learnMore"),_.K("design:type",Object),_.K("design:paramtypes",[])],V9.prototype,"learnMore",null);_.D([_.l("learnMore"),_.K("design:type",Object),_.K("design:paramtypes",[])],V9.prototype,"learnMoreUrl",null);_.D([_.Lx({is:"yt-img-crop-picker",disableElementRegistration:!0})],V9);
_.B(V9,"yt-img-crop-picker",function(){if(d2d===void 0){var H=document.createElement("template");_.f(H,'\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>');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;Q5U===void 0&&(Q5U=document.createElement("template"));var w=Q5U;S.call(C,w.content.cloneNode(!0),H.content.firstChild);d2d=H}H=d2d;return H},{mode:2});var oj=function(){var H=_.X.apply(this,arguments)||this;H.errorMessage="";H.hasPreview=!1;H.isBackstagePost=!1;H.dismissButtonOverrides={size:"XS"};return H};
_.G(oj,_.X);_.F=oj.prototype;_.F.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"}}}};
_.F.detached=function(){this.removeOverlay()};
_.F.setPreview=function(H){_.mY(this.hostElement).querySelector("#preview-picker").imageData=H;this.hasPreview=!0;_.M3(this.hostElement,"yt-backstage-image-select-preview")};
_.F.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var H=_.mY(this.hostElement).querySelector("#dropzone");H.classList.remove("dragover");H.classList.remove("error");_.M3(this.hostElement,"yt-backstage-image-select-cancel")};
_.F.setupOverlay=function(){var H=this.imageUploadEndpoint;this.removeOverlay();if(H&&H.imageValidationInfo){var C=_.mY(this.hostElement).querySelector("#dropzone"),S=_.mY(this.hostElement).querySelector("#select");this.overlay=new GN(H.uploadUrl,H.channelId,H.imageValidationInfo.maxFileSizeMb,H.imageValidationInfo.allowedMaxAspectRatio,C,S,!0);_.PI(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.PI(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.PI(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.PI(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.PI(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.F.removeOverlay=function(){this.overlay&&(_.$c(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.$c(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.$c(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.$c(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.$c(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.F.onDragOver=function(H){var C=_.mY(this.hostElement).querySelector("#dropzone");_.yQ(C,"dragover",H.value)};
_.F.onPreview=function(H){this.setPreview(H.value)};
_.F.onImageError=function(H){if(H.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var C;H=(C=this.data)==null?void 0:C.fileSizeError}else if(H.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var S;H=(S=this.data)==null?void 0:S.invalidError}else if(H.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var w;H=(w=this.data)==null?void 0:w.invalidAspectRatioError}else return;this.errorMessage=_.jt(H);_.mY(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.F.onImageAlert=function(H){this.onImageError(H)};
_.F.uploadPromise=function(){var H=this,C=this.overlay&&this.overlay.uploadPromise();if(C)return C.catch(function(){throw Error(H.data?_.jt(H.data.uploadFailureError):"");})};
_.JJ.Object.defineProperties(oj.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var H,C;if((H=this.data)==null?0:(C=H.icon)==null?0:C.iconType)return _.bJ(this.data.icon.iconType)}}});
oj.prototype.setupOverlay=oj.prototype.setupOverlay;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],oj.prototype,"rendererStamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],oj.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],oj.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],oj.prototype,"imageUploadEndpoint",void 0);_.D([_.V(),_.K("design:type",Object)],oj.prototype,"errorMessage",void 0);
_.D([_.V(),_.K("design:type",GN)],oj.prototype,"overlay",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],oj.prototype,"hasPreview",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],oj.prototype,"isBackstagePost",void 0);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],oj.prototype,"selectionCancel",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],oj.prototype,"previewCancel",null);
_.D([_.l("data.icon.iconType"),_.K("design:type",Object),_.K("design:paramtypes",[])],oj.prototype,"icon",null);_.D([_.V(),_.K("design:type",Object)],oj.prototype,"dismissButtonOverrides",void 0);_.D([_.fx("imageUploadEndpoint"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],oj.prototype,"setupOverlay",null);_.D([_.h({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],oj);
_.B(oj,"ytd-backstage-image-select-renderer",function(){if(O_U!==void 0)return O_U;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return O_U=H},{mode:1});var PFd;var $2_;var OZ=function(){var H=_.X.apply(this,arguments)||this;H.selected=!1;return H};
_.G(OZ,_.X);_.F=OZ.prototype;_.F.computeSelected=function(H){return H==null?void 0:H.selected};
_.F.computeTransform=function(H,C,S){var w,A,J=(A=(w=this.imageContainer)==null?void 0:w.getBoundingClientRect())!=null?A:{width:0,height:0};w=Math.max(J.width/C,J.height/S);S=S*w*H.top;return"translateX("+this.getSignedPosition(C*w*H.left,"X","-")+") translateY("+this.getSignedPosition(S,"Y","-")+")"};
_.F.getSignedPosition=function(H,C,S){return C==="X"&&_.rh("HTML_DIR")==="rtl"?S==="-"?H+"px":H*-1+"px":S==="-"?H*-1+"px":H+"px"};
_.F.onClick=function(){var H;_.M3(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(H=this.data)==null?void 0:H.image)};
_.F.onKeyPress=function(H){if(H.keyCode===13)this.onClick()};
_.JJ.Object.defineProperties(OZ.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var H,C;return((H=this.data)==null?void 0:(C=H.image)==null?void 0:C.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.data)!=null&&H.image){var C;H=(C=this.data)==null?void 0:C.image;return H.previewCoordinates.top!==0||H.previewCoordinates.left!==0?(C=this.computeTransform(H.previewCoordinates,H.naturalWidth,H.naturalHeight),H.naturalHeight>=H.naturalWidth?"width:inherit;transform:"+C+";":"height:inherit;transform:"+C+";"):H.naturalHeight>=H.naturalWidth?"width:inherit;":"height:inherit;"}}}});
OZ.prototype.onKeyPress=OZ.prototype.onKeyPress;_.D([_.lA(".image-container"),_.K("design:type",HTMLElement)],OZ.prototype,"imageContainer",void 0);_.D([_.V(),_.K("design:type",Object)],OZ.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.K("design:type",Object)],OZ.prototype,"selected",void 0);_.D([_.l("data.image"),_.K("design:type",Object),_.K("design:paramtypes",[])],OZ.prototype,"thumbnailUrl",null);
_.D([_.l("data.image","data.image.previewCoordinates"),_.K("design:type",Object),_.K("design:paramtypes",[])],OZ.prototype,"thumbnailStyle",null);_.D([_.Gz("keypress"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],OZ.prototype,"onKeyPress",null);_.D([_.h({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],OZ);
_.B(OZ,"ytd-backstage-multi-image-thumbnail-renderer",function(){if($2_!==void 0)return $2_;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return $2_=H},{mode:2});var Xz=function(H,C,S){S=S===void 0?!1:S;_.ph.call(this);var w=this;this.dropZoneOverlay=new dZ(H);this.selectOverlay=S?new PJ(C,"multiple_file",["image/*"]):new PJ(C,"single_file",["image/*"]);this.handler=new _.qQ(this);_.Nx(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(C,"click",function(){w.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.G(Xz,_.ph);Xz.prototype.onChange=function(H){var C;(C=H.files)!=null&&C.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:H.files}))};var Q9=function(){var H=_.X.apply(this,arguments)||this;H.addImageErrorMessage="";H.errorMessage="";H.images=[];H.selectedImageIndex=0;H.modern=_.E("web_modern_buttons");H.maxNumImagesPerPost=_.YB("max_num_images_per_post_web_ui");H.JSC$15698_imageId=0;return H};
_.G(Q9,_.X);_.F=Q9.prototype;_.F.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.M3(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.F.observeDragToReorder=function(){var H=this;if(this.showImagesPreview){var C,S=Bti(_.PP.getInstance(),(C=this.data)==null?void 0:C.dragToReorderTooltip);_.rT.addLowPriorityJob(function(){_.yN(H.hostElement,S,H.thumbnailDragDropArea)})}};
_.F.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}}};
_.F.computeThumbnail=function(H){return(H==null?void 0:H.localImageSrc)||void 0};
_.F.onRendererstamperFinished=function(){_.os_(this.ytReorderableBehavior,_.mY(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.mY(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.F.handleDrop=function(H){var C=H.currDragItem;if(C!=null&&C.data){H=this.images[this.selectedImageIndex];var S=C.data.image,w=this.images.indexOf(S)||0;C=_.hV(C.parentNode.children,C);this.images.splice(w,1);this.images.splice(C,0,S);this.images=[].concat(_.k$(this.images));this.selectedImageIndex=this.images.indexOf(H)}};
_.F.setUpImagePicker=function(){var H=this.imageUploadEndpoint;H&&H.imageValidationInfo&&(this.uploadManager=new fE(H.uploadUrl,H.channelId),this.initialPicker||(this.initialPicker=new Xz(this.dropzone,this.selectLink,!0),_.PI(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new Xz(this.addImageButtonContainer,this.addImageSelectButton),_.PI(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.PI(this.JSC$15698_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.PI(this.JSC$15698_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.PI(_.mY(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.F.detached=function(){this.initialPicker&&(_.$c(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.$c(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.F.onInitialSelectImages=function(H){var C=this;return _.z(function(S){return S.yield(C.onSelectImages(H,!1),0)})};
_.F.onAddImage=function(H){var C=this;return _.z(function(S){return S.yield(C.onSelectImages(H,!0),0)})};
_.F.onSelectImages=function(H,C){var S=this,w,A,J,c,Y,M,m,W,y,N,b,u,O,d,p,k,R,L,t,g;return _.z(function(ii){switch(ii.nextAddress){case 1:C?S.addImageErrorMessage="":(S.images=[],S.errorMessage="");w=H.detail;A=S.validateImages([].concat(_.k$(w)));if(A!=="")return C?S.addImageErrorMessage=A:S.errorMessage=A,ii.return();J=[].concat(_.k$(w)).map(function(FW){return(new ef(S.maxAspectRatio,!1,!0)).transform(FW)});
return ii.yield(Promise.allSettled(J),2);case 2:c=ii.yieldResult,Y=_.Z(c.entries()),M=Y.next();case 3:if(M.done){ii.jumpTo(5);break}m=M.value;W=_.Z(m);y=W.next().value;N=W.next().value;b=y;u=N;if(u.status!=="fulfilled"){p=d=O=void 0;C?S.addImageErrorMessage=_.jt((O=S.data)==null?void 0:O.invalidError):S.errorMessage=S.errorMessage===""?_.jt((d=S.data)==null?void 0:d.invalidError):_.jt((p=S.data)==null?void 0:p.multiFileError);ii.jumpTo(4);break}k=u.value;k.cropped&&_.M3(S.hostElement,"yt-backstage-multi-image-cropped");
if(k.invalidAspectRatio){t=L=R=void 0;C?S.addImageErrorMessage=_.jt((R=S.data)==null?void 0:R.invalidAspectRatioError):S.errorMessage=S.errorMessage===""?_.jt((L=S.data)==null?void 0:L.invalidAspectRatioError):_.jt((t=S.data)==null?void 0:t.multiFileError);ii.jumpTo(4);break}return ii.yield(OZ7(S.JSC$15698_imageId,H.detail[b],k.transformedData),8);case 8:g=ii.yieldResult,S.images.push(g),S.JSC$15698_imageId++;case 4:M=Y.next();ii.jumpTo(3);break;case 5:if(S.errorMessage!==""||S.addImageErrorMessage!==
"")return ii.return();C?e7d(S.uploadManager,[S.images[S.images.length-1]]):e7d(S.uploadManager,S.images);S.images=[].concat(_.k$(S.images));S.selectedImageIndex=C?Math.max(S.images.length-1,0):0;_.M3(S.hostElement,"yt-backstage-multi-image-select");_.oT(ii)}})};
_.F.onThumbnailClick=function(H){if(H=H.event_.detail)this.selectedImageIndex=this.images.indexOf(H)};
_.F.validateImages=function(H){if(H.length>this.maxNumImagesPerPost){var C;return _.jt((C=this.data)==null?void 0:C.multiImageExceedMaxImageCountError)}var S=1048576*this.maxFileSizeMb;H=H.filter(function(J){return J.size>S}).length;
if(H===0)return"";var w,A;H=H>1?(w=this.data)==null?void 0:w.multiFileError:(A=this.data)==null?void 0:A.fileSizeError;return _.jt(H)};
_.F.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.k$(this.images));this.selectedImageIndex=0};
_.F.repositionImage=function(H){this.images[this.selectedImageIndex].previewCoordinates=H.event_.detail;this.images=[].concat(_.k$(this.images))};
_.F.getAllUploadStatuses=function(){var H=this,C,S,w,A;return _.z(function(J){if(J.nextAddress==1)return J.yield(H.uploadManager.getAllUploadStatuses(),2);C=J.yieldResult;S=_.Z(C);for(w=S.next();!w.done;w=S.next())if(A=w.value,A.encryptedBlobId===void 0)return J.return(uo7(H.uploadManager));return J.return(C)})};
_.F.hasImages=function(){return this.images.length>0};
_.F.cancel=function(){for(var H=this.uploadManager,C=_.Z(H.imagesUploadData),S=C.next();!S.done;S=C.next())H.cancel(S.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.M3(this.hostElement,"yt-backstage-multi-image-cancel")};
_.JJ.Object.defineProperties(Q9.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var H,C;return((H=this.imageUploadEndpoint)==null?void 0:(C=H.imageValidationInfo)==null?void 0:C.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var H,C;return((H=this.imageUploadEndpoint)==null?void 0:(C=H.imageValidationInfo)==null?void 0:C.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var H,C;if((H=this.data)==null?0:(C=H.icon)==null?0:C.iconType)return _.bJ(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.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 H=this;return(this.images||[]).map(function(C,S){return{renderer:{image:C,selected:S===H.selectedImageIndex}}})}}});
Q9.prototype.setUpImagePicker=Q9.prototype.setUpImagePicker;Q9.prototype.onRendererstamperFinished=Q9.prototype.onRendererstamperFinished;Q9.prototype.observeDragToReorder=Q9.prototype.observeDragToReorder;Q9.prototype.observeAddImageError=Q9.prototype.observeAddImageError;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Q9.prototype,"rendererStamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Q9.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.OR7),_.K("design:type",Object)],Q9.prototype,"ytReorderableBehavior",void 0);_.D([_.lA("#dropzone"),_.K("design:type",HTMLElement)],Q9.prototype,"dropzone",void 0);_.D([_.lA("#select-link"),_.K("design:type",HTMLElement)],Q9.prototype,"selectLink",void 0);_.D([_.lA("#thumbnail-drag-drop-area"),_.K("design:type",HTMLElement)],Q9.prototype,"thumbnailDragDropArea",void 0);_.D([_.lA("#add-image-button-container"),_.K("design:type",HTMLElement)],Q9.prototype,"addImageButtonContainer",void 0);
_.D([_.lA("#add-image-button"),_.K("design:type",HTMLElement)],Q9.prototype,"addImageSelectButton",void 0);_.D([_.lA("#image-preview-container"),_.K("design:type",Object)],Q9.prototype,"JSC$15698_imagePreviewContainer",void 0);_.D([_.V(),_.K("design:type",Object)],Q9.prototype,"addImageErrorMessage",void 0);_.D([_.V(),_.K("design:type",Object)],Q9.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],Q9.prototype,"errorMessage",void 0);
_.D([_.V(),_.K("design:type",Object)],Q9.prototype,"imageUploadEndpoint",void 0);_.D([_.V(),_.K("design:type",Array)],Q9.prototype,"images",void 0);_.D([_.V(),_.K("design:type",Xz)],Q9.prototype,"initialPicker",void 0);_.D([_.V(),_.K("design:type",Xz)],Q9.prototype,"addImagePicker",void 0);_.D([_.V(),_.K("design:type",fE)],Q9.prototype,"uploadManager",void 0);_.D([_.V(),_.K("design:type",Object)],Q9.prototype,"selectedImageIndex",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Q9.prototype,"modern",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Q9.prototype,"maxNumImagesPerPost",void 0);_.D([_.l("imageUploadEndpoint"),_.K("design:type",Number),_.K("design:paramtypes",[])],Q9.prototype,"maxAspectRatio",null);_.D([_.l("imageUploadEndpoint"),_.K("design:type",Number),_.K("design:paramtypes",[])],Q9.prototype,"maxFileSizeMb",null);
_.D([_.l("data.icon.iconType"),_.K("design:type",Object),_.K("design:paramtypes",[])],Q9.prototype,"dropIcon",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Q9.prototype,"selectionCancel",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Q9.prototype,"previewCancel",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Q9.prototype,"dataForAddImageButton",null);
_.D([_.l("errorMessage"),_.K("design:type",String),_.K("design:paramtypes",[])],Q9.prototype,"dropzoneClass",null);_.D([_.l("images"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Q9.prototype,"showImagesPreview",null);_.D([_.l("images"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Q9.prototype,"containMaxImages",null);_.D([_.fx("addImageErrorMessage"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Q9.prototype,"observeAddImageError",null);
_.D([_.fx("showImagesPreview"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Q9.prototype,"observeDragToReorder",null);_.D([_.l("images","selectedImageIndex"),_.K("design:type",Object),_.K("design:paramtypes",[])],Q9.prototype,"selectedImageData",null);_.D([_.l("images","selectedImageIndex"),_.K("design:type",Array),_.K("design:paramtypes",[])],Q9.prototype,"thumbnailRenderers",null);
_.D([_.Gz("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Q9.prototype,"onRendererstamperFinished",null);_.D([_.fx("imageUploadEndpoint"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Q9.prototype,"setUpImagePicker",null);_.D([_.h({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],Q9);
_.B(Q9,"ytd-backstage-multi-image-select-renderer",function(){if(PFd!==void 0)return PFd;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return PFd=H},{mode:1});var pRP;var keY;var h7M;var dt=function(){var H=_.X.apply(this,arguments)||this;H.boundCaptureFocus=function(C){H.onCaptureFocus(C)};
return H};
_.G(dt,_.X);_.F=dt.prototype;_.F.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.F.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.F.onCaptureFocus=function(H){_.Ar(H).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.F.getIconType=function(H){return H?"yt-icons:"+H.toLowerCase():null};
_.F.onSelect=function(){var H;if((H=this.data)==null?0:H.onSelectCommand)if(_.E("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var C;((C=_.e(this.data.onSelectCommand.commandMetadata,_.u9))==null?0:C.url)?_.M3(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.JA().resolve(_.ZQ).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.JJ.Object.defineProperties(dt.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.jt(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}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],dt.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],dt.prototype,"ytComponentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],dt.prototype,"data",void 0);_.D([_.lA("#item"),_.K("design:type",HTMLElement)],dt.prototype,"item",void 0);_.D([_.l("data.label"),_.K("design:type",String),_.K("design:paramtypes",[])],dt.prototype,"label",null);
_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],dt.prototype,"value",null);_.D([_.h({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],dt);
_.B(dt,"ytd-privacy-dropdown-item-renderer",function(){if(h7M!==void 0)return h7M;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return h7M=H},{mode:1});var Po=function(){var H=_.X.apply(this,arguments)||this;H.value="";H.label="";H.disabled=!1;return H};
_.G(Po,_.X);_.F=Po.prototype;_.F.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"}}}};
_.F.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.F.dataChanged=function(){this.reset()};
_.F.valueChanged=function(){var H;if(this.value&&(H=this.data)!=null&&H.entries){H=_.Z(this.data.entries);for(var C=H.next();!C.done;C=H.next())if((C=this.getRendererForEntry(C.value))&&this.getItemRendererValue(C)===this.value){this.label=this.ytComponentBehavior.getSimpleString(C.label);break}}};
_.F.setInitialLabel=function(){if(this.data&&this.data.entries)for(var H=_.Z(this.data.entries),C=H.next();!C.done;C=H.next())if(C=this.getRendererForEntry(C.value)){if(C.isSelected){this.label=this.ytComponentBehavior.getSimpleString(C.label);break}this.data.label&&(this.label=this.data.label)}};
_.F.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var H=_.Z(this.data.entries),C=H.next();!C.done;C=H.next()){C=this.getRendererForEntry(C.value);var S=void 0;if((S=C)==null?0:S.isSelected)return this.getItemRendererValue(C)||-1}return-1};
_.F.getItemRendererValue=function(H){return"stringValue"in H||"int32Value"in H?H.stringValue||H.int32Value||null:null};
_.F.getRendererForEntry=function(H){return H.dropdownItemRenderer||H.privacyDropdownItemRenderer||H.navigationDropdownItemRenderer||null};
_.F.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uQ("value-changed",this.value))};
_.F.updateValueFromBinding=function(H){this.value=H.detail.value};
Po.prototype.valueChangedForBinding=Po.prototype.valueChangedForBinding;Po.prototype.valueChanged=Po.prototype.valueChanged;Po.prototype.dataChanged=Po.prototype.dataChanged;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Po.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Po.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Po.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],Po.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],Po.prototype,"value",void 0);_.D([_.V(),_.K("design:type",Object)],Po.prototype,"label",void 0);_.D([_.lA("#entries"),_.K("design:type",Object)],Po.prototype,"entries",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Po.prototype,"disabled",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Po.prototype,"dataChanged",null);
_.D([_.XJ("value"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Po.prototype,"valueChanged",null);_.D([_.fx("value"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Po.prototype,"valueChangedForBinding",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],Po);
_.B(Po,"ytd-flat-dropdown-renderer",function(){if(keY!==void 0)return keY;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return keY=H},{mode:1});var nkU;var $y=function(){var H=_.X.apply(this,arguments)||this;H.quizOptions=[];H.explanationPlaceholderText="";H.optionPlaceholderText="";H.correctAnswerIndex=-1;H.isMarkAnswerTooltipShown=!1;H.timer=0;return H};
_.G($y,_.X);_.F=$y.prototype;_.F.dataChanged=function(){this.optionPlaceholderText=_.jt(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.jt(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.F.onMarkCorrectAnswer=function(H){var C,S=((C=this.quizOptions[this.correctAnswerIndex])==null?void 0:C.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[H.model.index]=Object.assign({},this.quizOptions[H.model.index],{explanationText:S,isCorrect:!0});this.correctAnswerIndex=H.model.index;this.quizOptions=[].concat(_.k$(this.quizOptions))};
_.F.updatePlaceholderTexts=function(){for(var H=!1,C=[],S=0;S<this.quizOptions.length;S++){var w=this.optionPlaceholderText+" "+(S+1),A=void 0;((A=this.quizOptions[S])==null?void 0:A.placeholderText)!==w?(H=!0,C.push(Object.assign({},this.quizOptions[S],{placeholderText:w}))):C.push(this.quizOptions[S])}H&&(this.quizOptions=C);this.isValid()?_.M3(this.hostElement,"yt-commentbox-post-enable"):_.M3(this.hostElement,"yt-commentbox-post-disable")};
_.F.getSimpleString=function(H){return _.jt(H)};
_.F.createQuizOptions=function(H){var C=[],S;H=(S=H==null?void 0:H.minQuizOptions)!=null?S:0;for(S=0;S<H;S++)C.push(this.createQuizOption());return C};
_.F.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.k$(this.quizOptions),[this.createQuizOption()]))};
_.F.onInput=function(){this.quizOptions=[].concat(_.k$(this.quizOptions))};
_.F.onExplanationInput=function(){_.M3(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.F.onRemoveQuizOption=function(H){this.quizOptions.splice(H.model.index,1);H.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:H.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.k$(this.quizOptions));this.quizOptions.length===0&&_.M3(this.hostElement,"yt-quiz-attachment-dismiss")};
_.F.updateHintRenderer=function(){var H=this;clearTimeout(this.timer);this.timer=setTimeout(function(){H.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.F.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var H=0,C=0,S=_.Z(this.quizOptions),w=S.next();!w.done;w=S.next()){w=w.value;var A=void 0;if(((A=w.optionText)==null?void 0:A.trim())!==""||w.isCorrect){w.isCorrect&&C++;A=void 0;if(this.hasCustomOptionText&&((A=w.optionText)==null?void 0:A.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;H++}}return H>=
Number(this.editorInfo.minQuizOptions)&&C===1};
_.F.getPostCreateOptions=function(){for(var H=[],C=_.Z(this.quizOptions),S=C.next();!S.done;S=C.next()){S=S.value;var w=void 0;((w=S.optionText)==null?void 0:w.trim())!==""&&H.push({pollOption:{text:S.optionText,explanation:S.explanationText},isCorrect:S.isCorrect})}return H};
_.F.getExplanationText=function(){var H;return((H=this.quizOptions[this.correctAnswerIndex])==null?void 0:H.explanationText)||""};
_.F.maybeDisplayMarkAnswerEduToolTip=function(){var H,C,S,w,A,J,c;this.shouldShowMarkAnswerTooltip()&&((H=this.editorInfo)==null?0:(C=H.markAnswerButton)==null?0:(S=C.buttonRenderer)==null?0:(w=S.hint)==null?0:(A=w.hintRenderer)==null?0:(J=A.content)==null?0:(c=J.bubbleHintRenderer)==null?0:c.text)&&(_.PP.getInstance(),H=$e(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,(H==null?void 0:H.length)>0&&this.optionSelectors&&_.uJ(H[0],this.optionSelectors[0]))};
_.F.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var H=0,C=_.Z(this.quizOptions),S=C.next();!S.done;S=C.next()){S=S.value;var w=void 0;((w=S.optionText)==null?void 0:w.trim())!==""&&H++;if(S.isCorrect)return!1}return H<2?!1:!0};
_.F.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.F.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.F.updateOptionTextFromBinding=function(H){if(H.target){var C=Array.from(_.mY(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(H.target);if(C>=0){var S;this.quizOptions[C].optionText=(S=H.detail.value)!=null?S:""}}};
_.JJ.Object.defineProperties($y.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var H,C,S=(H=this.editorInfo)==null?void 0:(C=H.addOptionButton)==null?void 0:C.buttonRenderer;S&&(S.style="STYLE_SUGGESTIVE",S.size="SIZE_SMALL",S.isDisabled=!this.isAllowedToAddOption);return(S==null?0:S.text)?S:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var H,C;return this.quizOptions.length<((C=(H=this.editorInfo)==null?void 0:H.maxQuizOptions)!=null?C:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(H){var C;return(C=H.optionText)==null?void 0:C.trim()})}}});
$y.prototype.updatePlaceholderTexts=$y.prototype.updatePlaceholderTexts;$y.prototype.dataChanged=$y.prototype.dataChanged;_.D([_.V(),_.K("design:type",Object)],$y.prototype,"editorInfo",void 0);_.D([_.V(),_.K("design:type",Array)],$y.prototype,"quizOptions",void 0);_.D([_.V(),_.K("design:type",Object)],$y.prototype,"explanationPlaceholderText",void 0);_.D([_.VQ(".option-selector-button"),_.K("design:type",Array)],$y.prototype,"optionSelectors",void 0);
_.D([_.XJ("editorInfo"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$y.prototype,"dataChanged",null);_.D([_.l("editorInfo","isAllowedToAddOption","quizOptions"),_.K("design:type",Object),_.K("design:paramtypes",[])],$y.prototype,"addAnswerButton",null);_.D([_.l("editorInfo","quizOptions"),_.K("design:type",Object),_.K("design:paramtypes",[])],$y.prototype,"isAllowedToAddOption",null);
_.D([_.XJ("quizOptions"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$y.prototype,"updatePlaceholderTexts",null);_.D([_.l("quizOptions"),_.K("design:type",Object),_.K("design:paramtypes",[])],$y.prototype,"hasCustomOptionText",null);_.D([_.h({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],$y);
_.B($y,"ytd-backstage-quiz-editor-renderer",function(){if(nkU!==void 0)return nkU;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return nkU=H},{mode:2});var rLn;var BXP=(Ej.FIRSTDAYOFWEEK+1)%7;var D27;var KO7=[],te7=0,LO7=0;te7=0;LO7=24;if(.25*(LO7-te7)<0)D27=[];else{for(var gkW=te7;gkW<LO7;gkW+=.25)KO7.push(gkW);D27=KO7}var U2i=D27.map(function(H){H=H*60*60;return{secondsSinceMidnight:H,text:(new St(7)).format(new Date(0,0,0,0,0,H))}});var R77;var pE=function(){var H=_.X.apply(this,arguments)||this;H.skipNextOpenDialog=!1;H.errorMessage="";H.previousMonthLabel=_.fL("PREVIOUS_MONTH_LABEL");H.nextMonthLabel=_.fL("NEXT_MONTH_LABEL");return H};
_.G(pE,_.X);_.F=pE.prototype;_.F.attached=function(){var H=this,C=new MutationObserver(function(){H.JSC$15740_calendarMain.scrollHeight>0&&(C.disconnect(),H.calendarConfig&&H.calendarConfig.selectedDate&&H.scrollToDate())});
C.observe(this.JSC$15740_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){C.disconnect()},1E3)};
_.F.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.F.onDateTextChange=function(){if(this.calendarConfig){var H=this.validateDateText();H.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(H.details)):this.textbox.setAttribute("invalid","")}};
_.F.handleDayClick=function(H){H.model.day.date&&(this.commitDate(H.model.day.date),this.dialog.close())};
_.F.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var H=BpU(this.calendarConfig.selectedDate,this.renderData);H!==void 0&&this.JSC$15740_calendarMain.scrollToIndex(H)}};
_.F.scrollToNextMonth=function(){this.JSC$15740_calendarMain.scrollToIndex(this.JSC$15740_calendarMain.firstVisibleIndex+1)};
_.F.scrollToPrevMonth=function(){this.JSC$15740_calendarMain.firstVisibleIndex===0&&this.JSC$15740_calendarMain.scrollTo(0,0);this.JSC$15740_calendarMain.scrollToIndex(this.JSC$15740_calendarMain.firstVisibleIndex-1)};
_.F.onFormSubmit=function(H){H.preventDefault();this.calendarConfig&&(H=this.validateDateText(),H.isValid&&(this.commitDate(H.details),this.dialog.close()))};
_.F.onEscOrClickingOutside=function(H){H=H.detail.path&&!!H.detail.path.length&&H.detail.path[0];if(H.classList.contains("ytd-calendar-date-picker")){H===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var C=0;C<this.dropdownButton.children.length;C++)this.dropdownButton.children[C]===H&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}H=this.textbox.value!==this.dateText;C=this.validateDateText();H&&C.isValid&&this.commitDate(C.details);this.dialog.close();this.textbox.value=
this.dateText};
_.F.commitDate=function(H){this.calendarConfig&&(this.set("calendarConfig.selectedDate",H),_.M3(this.hostElement,"ytd-calendar-date-selected",H))};
_.F.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var H=this.textbox.value;var C=new Date;H=(new Jew(2)).parse(H,C,{validate:!0})===H.length?nWE(C):void 0;if(!H)return this.errorMessage=_.fL("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};C=this.calendarConfig.start;var S=this.calendarConfig.end;if(PxE(H,C))return this.errorMessage=_.fL("ENTER_DATE_OR_LATER",{allowed_date:hIi(C)}),{isValid:!1,details:void 0};if(PxE(S,H))return this.errorMessage=
_.fL("ENTER_DATE_OR_EARLIER",{allowed_date:hIi(S)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:H}};
_.JJ.Object.defineProperties(pE.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?hIi(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var H=this.calendarConfig,C=[],S=0;S<7;S++)C.push(Ej.NARROWWEEKDAYS[(S+BXP)%7]);S=[];for(var w=new Date(H.start.year,H.start.month);w.getFullYear()<H.end.year||w.getFullYear()===H.end.year&&w.getMonth()<=H.end.month;){var A=S,J=A.push,c=w.getFullYear(),Y=w.getMonth(),M=H,m=void 0,W=[],y=Object.freeze({extraCssClass:"invisible",debugClass:""}),N=new Date(c,Y),b=nWE(N);N=N.getDay();for(var u=nWE(new Date);b.month===
Y;){N!==BXP&&m||(m=Array.from({length:7}).fill(y),W.push(m));var O={date:{year:c,month:Y,day:b.day},extraCssClass:"",debugClass:""};M.selectedDate&&O.date&&dui(O.date,M.selectedDate)&&(O.extraCssClass+=" selected");if(PxE(b,M.start)||PxE(M.end,b))O.extraCssClass+=" disabled";dui(b,u)&&(O.extraCssClass+=" today");O.extraCssClass=O.extraCssClass.trim();m[(N-BXP+7)%7]=O;b=prZ(b);N=(N+1)%7}J.call(A,{weeks:W,monthLabel:Ej.SHORTMONTHS[Y]+" "+c,year:c,month:Y,monthLabelExtraCssClass:W[0][2]===y?"shift-down-label":
""});w.setMonth(w.getMonth()+1)}return{months:S,daysOfWeekLabel:C}}}}});
pE.prototype.onEscOrClickingOutside=pE.prototype.onEscOrClickingOutside;pE.prototype.scrollToDate=pE.prototype.scrollToDate;_.D([_.V(),_.K("design:type",Object)],pE.prototype,"calendarConfig",void 0);_.D([_.V(),_.K("design:type",Object)],pE.prototype,"skipNextOpenDialog",void 0);_.D([_.V(),_.K("design:type",Object)],pE.prototype,"errorMessage",void 0);_.D([_.V(),_.K("design:type",Object)],pE.prototype,"previousMonthLabel",void 0);
_.D([_.V(),_.K("design:type",Object)],pE.prototype,"nextMonthLabel",void 0);_.D([_.lA("#textbox"),_.K("design:type",HTMLInputElement)],pE.prototype,"textbox",void 0);_.D([_.lA("#calendar-dialog"),_.K("design:type",Object)],pE.prototype,"dialog",void 0);_.D([_.lA("#calendar-main"),_.K("design:type",Object)],pE.prototype,"JSC$15740_calendarMain",void 0);_.D([_.lA("#date-picker"),_.K("design:type",HTMLElement)],pE.prototype,"dropdownButton",void 0);
_.D([_.l("calendarConfig.selectedDate"),_.K("design:type",String),_.K("design:paramtypes",[])],pE.prototype,"dateText",null);_.D([_.l("calendarConfig","calendarConfig.selectedDate"),_.K("design:type",Object),_.K("design:paramtypes",[])],pE.prototype,"renderData",null);_.D([_.fx("renderData","calendarConfig.selectedDate"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pE.prototype,"scrollToDate",null);
_.D([_.Gz("iron-overlay-canceled"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],pE.prototype,"onEscOrClickingOutside",null);_.D([_.Lx({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],pE);
_.B(pE,"ytd-calendar-date-picker",function(){if(R77!==void 0)return R77;var H=document.createElement("template");_.f(H,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" label="[[previousMonthLabel]]" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" label="[[nextMonthLabel]]" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return R77=H},{mode:2});var Ic_=_.fL("UTC_OFFSET_FORMAT",{utc_offset:(new St("Z")).format(new Date)}),acV=(new Date).getTimezoneOffset()*-60,x2n=new Date,HaY,iaU=Cf(x2n.getTimezoneOffset());HaY=xTU(i7V(iaU,x2n));var COb=_.fL("LOCAL_TIME_GMT_LABEL",{gmt_text:HaY.replace("+0","+").replace("-0","-").replace(":00","")}),ky=function(){var H=_.X.apply(this,arguments)||this;H.selectedTimeIndex=0;H.selectedTimezoneIndex=0;H.timeOfDayOptions=U2i;return H};
_.G(ky,_.X);_.F=ky.prototype;_.F.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.F.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var H=kUV();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=H,this.selectedTimeIndex=0;else{var C=rw0(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},H,{selectedDate:C.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(S){return S.secondsSinceMidnight===C.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.F.onDatePicked=function(H){this.selectedDate=H.detail};
_.F.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.M3(this.hostElement,"ytd-date-time-selection-cancelled")};
_.F.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var H=this.selectedDate;H=new Date(H.year,H.month,H.day);_.M3(this.hostElement,"ytd-date-time-selection-update",Math.floor(H.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+H.getTimezoneOffset()*60))}};
_.F.getTimezoneFormat=function(H){return H.localizedDisplayText?H.localizedDisplayText:_.fL("TIMEZONE_FORMAT",{utc_offset_text:""+H.localizedUtcOffset,city_name:""+H.localizedName})};
_.F.updateSelectedTimeIndexFromBinding=function(H){this.selectedTimeIndex=H.detail.value};
_.F.updateSelectedTimezoneIndexFromBinding=function(H){this.selectedTimezoneIndex=H.detail.value};
_.JJ.Object.defineProperties(ky.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var H=this.data.timezoneOptions;var C={name:"Etc/Unknown",localizedName:_.fL("LOCAL_TIME_LABEL"),localizedUtcOffset:Ic_,utcOffsetSec:""+acV,localizedDisplayText:COb};H?H.length&&H[0].name!==C.name&&(H[0].localizedDisplayText||(C.localizedDisplayText=""),H.unshift(C)):H=[C];return H}}},
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]}}});
ky.prototype.onDateTimeTimezoneChange=ky.prototype.onDateTimeTimezoneChange;ky.prototype.onDatePicked=ky.prototype.onDatePicked;ky.prototype.updateDefaultSelectedValue=ky.prototype.updateDefaultSelectedValue;_.D([_.V(),_.K("design:type",Object)],ky.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],ky.prototype,"calendarConfig",void 0);_.D([_.V(),_.K("design:type",Object)],ky.prototype,"selectedDate",void 0);_.D([_.V(),_.K("design:type",Object)],ky.prototype,"selectedTimeIndex",void 0);
_.D([_.V(),_.K("design:type",Object)],ky.prototype,"selectedTimezoneIndex",void 0);_.D([_.lA("#time-listbox"),_.K("design:type",Object)],ky.prototype,"timeListBox",void 0);_.D([_.lA("#timezone-listbox"),_.K("design:type",Object)],ky.prototype,"timezoneListBox",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],ky.prototype,"rendererStamperBehavior",void 0);_.D([_.l("data.timezoneOptions"),_.K("design:type",Object),_.K("design:paramtypes",[])],ky.prototype,"timeZones",null);
_.D([_.XJ("data","timeZones"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ky.prototype,"updateDefaultSelectedValue",null);_.D([_.l("selectedTimezoneIndex","timeZones"),_.K("design:type",Object),_.K("design:paramtypes",[])],ky.prototype,"selectedTimezone",null);_.D([_.l("selectedTimeIndex"),_.K("design:type",Object),_.K("design:paramtypes",[])],ky.prototype,"selectedTime",null);
_.D([_.Gz("ytd-calendar-date-selected"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],ky.prototype,"onDatePicked",null);_.D([_.fx("selectedTimezone","selectedTime","selectedDate"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ky.prototype,"onDateTimeTimezoneChange",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],ky);
_.B(ky,"ytd-date-time-picker-renderer",function(){if(rLn!==void 0)return rLn;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return rLn=H},{mode:1});var Sid;var h0=function(){var H=_.X.apply(this,arguments)||this;H.boundOnTapDismissButton=function(){H.dismissTapHandler()};
H.dismissButtonOverrides={size:"XS"};return H};
_.G(h0,_.X);h0.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}}}}}};
h0.prototype.dismissTapHandler=function(){_.M3(this.hostElement,"yt-backstage-attachment-dismissed")};
h0.prototype.computeAttachmentType=function(H){return H?H.backstageImageRenderer?"image":H.videoRenderer?"video":"none":"none"};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],h0.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],h0.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],h0.prototype,"attachmentPreview",void 0);_.D([_.V(),_.K("design:type",Object)],h0.prototype,"dismissButton",void 0);_.D([_.V(),_.K("design:type",Object)],h0.prototype,"boundOnTapDismissButton",void 0);
_.D([_.V(),_.K("design:type",Object)],h0.prototype,"dismissButtonOverrides",void 0);_.D([_.V({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.K("design:type",String)],h0.prototype,"attachmentType",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],h0);
_.B(h0,"ytd-backstage-dismissable-attachment",function(){if(Sid!==void 0)return Sid;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Sid=H},{mode:1});var sHd;var nE=function(){var H=_.X.apply(this,arguments)||this;H.selectedVideoId=void 0;H.picker=void 0;H.dismissButtonOverrides={size:"XS"};H.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return H};
_.G(nE,_.X);_.F=nE.prototype;_.F.onServiceRequestCompleted=function(H){H.stopPropagation()};
_.F.handleAddVideoPreviewAction=function(H){H=this.get("addVideoPreviewAction",H);this.onGetVideoPreviewSuccess(H)};
_.F.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}}}}}};
_.F.onLaunchVideoPicker=function(H){var C=this,S=_.jt(this.get("addVideoLinkAction.title",H)),w=this.get("addVideoLinkAction.onePickHostId",H);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",H);w&&(this.picker||(S=_.t$d(_.JTi(w).setTitle(S).addView(rAd()).addView(nBV()),function(A){C.onPickVideo(A)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",H)||S.addView("youtube"),this.picker=S.build()),this.picker.setVisible(!0))};
_.F.onPickVideo=function(H){if(H)if(H.action==="cancel")_.M3(this.hostElement,"yt-video-link-button-cancel");else if(H.action==="picked"){H=H.docs;if(!H||H.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(H=(H==null?0:H.length)?H[0]:void 0)?H.id:void 0;this.setVideoPreview()}};
_.F.setVideoPreview=function(){var H=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){H.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.F.onGetVideoPreviewSuccess=function(H){if(H&&H.videoPreview&&H.cancelButton)this.videoPreview=H.videoPreview,this.cancelButton=H.cancelButton,_.M3(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.F.onGetVideoPreviewError=function(){this.cancel()};
_.F.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.M3(this.hostElement,"yt-video-link-cancel")};
_.F.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
nE.prototype.onServiceRequestCompleted=nE.prototype.onServiceRequestCompleted;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],nE.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],nE.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],nE.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],nE.prototype,"ytComponentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],nE.prototype,"videoPreview",void 0);_.D([_.V(),_.K("design:type",Object)],nE.prototype,"cancelButton",void 0);_.D([_.V(),_.K("design:type",Object)],nE.prototype,"getVideoPreviewCommand",void 0);_.D([_.V(),_.K("design:type",Object)],nE.prototype,"dismissButtonOverrides",void 0);
_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],nE.prototype,"onServiceRequestCompleted",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],nE);
_.B(nE,"ytd-backstage-video-link-attachment",function(){if(sHd!==void 0)return sHd;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return sHd=H},{mode:1});var jH_;var wXW;var Au1;var rt=function(){return _.X.apply(this,arguments)||this};
_.G(rt,_.X);rt.prototype.dataChanged=function(){this.active=!1};
rt.prototype.onTap=function(){_.M3(this.hostElement,"yt-select-emoji-suggestion",this.data)};
rt.prototype.identity=function(H){return H};
_.JJ.Object.defineProperties(rt.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var H,C,S,w;if((H=this.data)==null?0:(C=H.image)==null?0:(S=C.thumbnails)==null?0:(w=S[0])==null?0:w.url)return H=this.data.image.thumbnails[0].url,H.startsWith("data:image/svg+xml")?$D(H):_.D4(H)}}});
rt.prototype.dataChanged=rt.prototype.dataChanged;_.D([_.V(),_.K("design:type",Object)],rt.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],rt.prototype,"active",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rt.prototype,"dataChanged",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],rt.prototype,"imageSrc",null);
_.D([_.h({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],rt);
_.B(rt,"ytd-emoji-suggestion",function(){if(Au1!==void 0)return Au1;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Au1=H},{mode:1});var JuY=/.*([:@#].*?)$/,Bo=function(){var H=_.X.apply(this,arguments)||this;H.suggestions=[];H.suggestionIndex=-1;H.JSC$15768_lastSuggestionRange=null;return H};
_.G(Bo,_.X);_.F=Bo.prototype;_.F.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.F.getSuggestions=function(H){var C=[],S=Xkd(this.emojiManager,H.substr(0,3));if(S)for(var w in S)if(w.toLocaleLowerCase().indexOf(H)===0){var A=S[w];if(A&&A.emojiId){A=ya(this.emojiManager,A.emojiId);var J=void 0,c=void 0,Y=void 0,M=void 0,m=((J=A)==null?0:J.isCustomEmoji)?(c=A)==null?void 0:(Y=c.shortcuts)==null?void 0:Y[0]:(M=A)==null?void 0:M.emojiId;J=void 0;C.push({suggestion:{image:(J=A)==null?void 0:J.image,alt:m,text:w}});if(C.length>=64)break}}return C?C.sort(function(W,y){return y.suggestion.text<
W.suggestion.text?-1:y.suggestion.text===W.suggestion.text?0:1}):null};
_.F.insertSuggestion=function(H){_.M3(this.hostElement,"yt-insert-suggestion",{range:this.JSC$15768_lastSuggestionRange,text:H.alt});this.dropdown.opened=!1};
_.F.updateSuggestionsAtCaret=function(H){this.updateSuggestions(H,this.retrieveTextBeforeRange(H))};
_.F.offsetStartOfRangeBy=function(H,C){H.startOffset>=C&&H.setStart(H.startContainer,H.startOffset-C)};
_.F.updateSuggestions=function(H,C){var S=this;this.JSC$15768_lastSuggestionRange&&(this.JSC$15768_lastSuggestionRange.detach(),this.JSC$15768_lastSuggestionRange=null);if((C=JuY.exec(C))&&C.length&&(C=C[C.length-1].toLocaleLowerCase(),C.length>2||C===":_")&&(this.offsetStartOfRangeBy(H,C.length),this.JSC$15768_lastSuggestionRange=H,(H=this.getSuggestions(C))&&H.length)){this.suggestions=H;_.wM(this,function(){S.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(H.length-1);return}this.dropdown.opened=!1};
_.F.onKeyDown=function(H){if(this.dropdown.opened)switch(H.key){case "Escape":this.dropdown.opened=!1;H.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);H.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);H.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),H.preventDefault()}};
_.F.onKeyUp=function(H,C){switch(H.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(C);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(C)}};
_.F.onKeyPress=function(H){H.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),H.preventDefault())};
_.F.changeSuggestionIndex=function(H){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(H+this.suggestions.length)%this.suggestions.length,H=this.dropdownContent.children[this.suggestionIndex],H.active=!0,this.dropdownContent.scrollTop=H.offsetTop)};
_.F.retrieveTextBeforeRange=function(H){var C=H.startContainer;return C&&C.nodeType===Node.TEXT_NODE?C.textContent.substr(0,H.startOffset):""};
Bo.prototype.onKeyPress=Bo.prototype.onKeyPress;Bo.prototype.onKeyUp=Bo.prototype.onKeyUp;Bo.prototype.onKeyDown=Bo.prototype.onKeyDown;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Bo.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Array)],Bo.prototype,"suggestions",void 0);_.D([_.V(),_.K("design:type",_.mw)],Bo.prototype,"emojiManager",void 0);_.D([_.V(),_.K("design:type",Number)],Bo.prototype,"verticalSuggestionsOffset",void 0);
_.D([_.lA("#dropdown"),_.K("design:type",Object)],Bo.prototype,"dropdown",void 0);_.D([_.lA("#dropdown-content"),_.K("design:type",HTMLDivElement)],Bo.prototype,"dropdownContent",void 0);_.D([_.Gz("keydown"),_.K("design:type",Function),_.K("design:paramtypes",[KeyboardEvent]),_.K("design:returntype")],Bo.prototype,"onKeyDown",null);_.D([_.Gz("keyup"),_.K("design:type",Function),_.K("design:paramtypes",[KeyboardEvent,Range]),_.K("design:returntype")],Bo.prototype,"onKeyUp",null);
_.D([_.Gz("keypress"),_.K("design:type",Function),_.K("design:paramtypes",[KeyboardEvent]),_.K("design:returntype")],Bo.prototype,"onKeyPress",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-emoji-input"})],Bo);
_.B(Bo,"ytd-emoji-input",function(){if(wXW!==void 0)return wXW;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return wXW=H},{mode:2});var FMn;var DU=function(){var H=_.X.apply(this,arguments)||this;H.hasMaxOptions=!1;return H};
_.G(DU,_.X);_.F=DU.prototype;_.F.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.F.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.F.setPrefilledChoices=function(H){var C=this;this.set("pollOptions",[]);var S;for(S=0;S<Math.min(H.length,this.data.maxPollOptions);S++)this.push("pollOptions",H[S].substring(0,this.data.maxPollOptionChars));for(;S<this.data.minPollOptions;S++)this.push("pollOptions","");this.hasMaxOptions=S>=this.data.maxPollOptions;_.wM(this,function(){for(var w=C.pollOptions,A=_.mY(C.hostElement).querySelectorAll(".poll-option-input"),J=0;J<A.length;J++)A[J].value=w[J]})};
_.F.focusChanged=function(){_.Ed(this.hostElement)};
_.F.onInput=function(){var H=this;_.iJ(this,"onInput",function(){H.isValid()?_.M3(H.hostElement,"yt-commentbox-post-enable"):_.M3(H.hostElement,"yt-commentbox-post-disable")},300)};
_.F.setPollOptions=function(){var H=[],C,S=((C=this.data)==null?0:C.minPollOptions)?this.data.minPollOptions:0;for(C=0;C<S;C++)H.push("");return H};
_.F.addPollOption=function(){var H=this;_.M3(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.rT.addLowPriorityJob(function(){var C;(C=_.mY(H.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||C.focus()})};
_.F.onRemovePollOption=function(H){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.M3(this.hostElement,"yt-poll-attachment-dismiss")):(H=this.repeat.indexForElement(H.target.parentNode),H!==null&&(this.splice("pollOptions",H,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.M3(this.hostElement,"yt-commentbox-post-enable"))))};
_.F.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.F.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var H=0,C=this.pollOptions.length;H<C;H++)if(this.pollOptions[H].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.F.getPollOptions=function(){return this.pollOptions};
_.F.setPollOptionsFromInputs=function(){for(var H=_.mY(this.hostElement).querySelectorAll(".poll-option-input"),C=0;C<H.length;C++)this.pollOptions[C]=H[C].value.trim()};
_.F.clearPollOptions=function(){var H=_.mY(this.hostElement).querySelectorAll(".poll-option-input");H=_.Z(H);for(var C=H.next();!C.done;C=H.next())C.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.F.getSimpleString=function(H){return _.jt(H)};
_.F.updateValueFromBinding=function(H){if(H.target&&this.pollOptions){var C=Array.from(_.mY(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(H.target);if(C>=0){var S;this.pollOptions[C]=(S=H.detail.value)!=null?S:"";this.notifyPath("pollOptions."+C)}}};
DU.prototype.dataChanged=DU.prototype.dataChanged;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],DU.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],DU.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Array)],DU.prototype,"pollOptions",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],DU.prototype,"hasMaxOptions",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],DU.prototype,"enableCreationBox",void 0);
_.D([_.lA("#repeat"),_.K("design:type",nx)],DU.prototype,"repeat",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],DU.prototype,"dataChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-poll-attachment"})],DU);
_.B(DU,"ytd-poll-attachment",function(){if(FMn!==void 0)return FMn;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return FMn=H},{mode:2});var ZaU;var cuY;var Yib;var zY_;var KE=function(){return _.X.apply(this,arguments)||this};
_.G(KE,_.X);_.JJ.Object.defineProperties(KE.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],KE.prototype,"rendererBehaviors",void 0);_.D([_.V(),_.K("design:type",Object)],KE.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],KE.prototype,"focused",void 0);_.D([_.V({reflectToAttribute:!0}),_.l("focused"),_.K("design:type",Object),_.K("design:paramtypes",[])],KE.prototype,"ariaSelected",null);_.D([_.Lx({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],KE);
_.B(KE,"yt-user-mention-suggestion-renderer",function(){if(zY_===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;Yib===void 0&&(Yib=document.createElement("template"));var w=Yib;S.call(C,w.content.cloneNode(!0),H.content.firstChild);zY_=H}H=zY_;return H},{mode:2});var MTY;var qiY;var t0=function(){var H=_.X.apply(this,arguments)||this;H.focusedSuggestionIndex=-1;return H};
_.G(t0,_.X);_.F=t0.prototype;_.F.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.F.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.F.setFocusedSuggestionIndex=function(H){!this.data||!this.data.suggestions||H<0||H>=this.data.suggestions.length||(this.focusedSuggestionIndex=H,H=this.getSuggestionId(H),this._setFocusedSuggestionId(H))};
_.F.advanceSuggestion=function(H){this.focusedSuggestionIndex===-1||H!==-1&&H!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+H),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.F.ensureSuggestionVisible=function(H){H=this.getSuggestionId(H);H=_.mY(this.hostElement).querySelector("[id="+H+"]");H!=null&&(H.offsetTop<this.hostElement.scrollTop?H.scrollIntoView(!0):H.offsetTop+H.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&H.scrollIntoView(!1))};
_.F.getSuggestionId=function(H){return"user-mention-suggestion-"+H};
_.F.onSuggestionTap=function(H){var C=_.e(H.model.item,fbn);this.ytRendererBehavior.logExplicitClick(C);_.M3(this.hostElement,"yt-user-mention-suggestion-selected",{data:C,index:H.model.index})};
_.F.onSuggestionMouseMove=function(H){H.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(H.model.index)};
_.F.isSuggestionFocused=function(H,C){return H===C};
_.F.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.F.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uQ("focused-suggestion-id-changed",this.focusedSuggestionId))};
t0.prototype.focusedSuggestionIdChangedForBinding=t0.prototype.focusedSuggestionIdChangedForBinding;t0.prototype.onDomChange=t0.prototype.onDomChange;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],t0.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],t0.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],t0.prototype,"focusedSuggestionIndex",void 0);_.D([_.V({readOnly:!0}),_.K("design:type",String)],t0.prototype,"focusedSuggestionId",void 0);
_.D([_.Gz("dom-change"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],t0.prototype,"onDomChange",null);_.D([_.fx("focusedSuggestionId"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],t0.prototype,"focusedSuggestionIdChangedForBinding",null);_.D([_.Lx({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],t0);
_.B(t0,"yt-user-mention-suggestions-dropdown",function(){if(qiY===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;MTY===void 0&&(MTY=document.createElement("template"));var w=MTY;S.call(C,w.content.cloneNode(!0),H.content.firstChild);qiY=H}H=qiY;return H},{mode:2});var LE=function(){var H=_.X.apply(this,arguments)||this;H.suggestionsResponse=null;H.activeMention=null;H.selectionChangeListener=H.onSelectionChange.bind(H);H.handlesEnabled=_.E("enable_handles_in_mention_suggest_posts");H.handlesInMentionSuggestionsEnabled=_.E("handles_in_mention_suggest_posts");H.zeroPrefixMentionSuggestionEnabled=_.E("enable_zero_prefix_mention_suggestion_web");H.pendingQuery=null;H.flowNonce=null;return H};
_.G(LE,_.X);_.F=LE.prototype;_.F.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.F.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.F.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.F.hasSuggestions=function(H){return!!(H&&H.suggestions&&H.suggestions.length>0)};
_.F.onInput=function(){var H=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var C=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),S=this.activeMention.JSC$11360_getText().slice(-1)===" ",w=this.activeMention.JSC$11360_getText().slice(-2,-1)===" ",A="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11360_getText().slice(-2,
-1))>=0;A=this.zeroPrefixMentionSuggestionEnabled&&A;if(this.activeMention.isCollapsed()||(C||w||A)&&S)this.cancelActiveMention();else{var J=this.activeMention.JSC$11360_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.iJ(this,"requestSuggestions",function(){H.requestSuggestions(J)},100)}}}};
_.F.onServiceRequestSent=function(H){H.stopPropagation()};
_.F.onServiceRequestCompleted=function(H){H.stopPropagation();H=H.detail.data;H.query&&(!this.pendingQuery||this.pendingQuery!==H.query)||!this.zeroPrefixMentionSuggestionEnabled&&H.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=H,this.hasSuggestions(H)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.F.onServiceRequestError=function(H){H.stopPropagation()};
_.F.onUserMentionSuggestionSelected=function(H){this.selectSuggestion(H.detail.data,H.detail.index)};
_.F.onSelectionChange=function(){if(this.activeMention){var H=_.mR(),C=this.activeMention.JSC$11360_containsRange(H);H=H&&this.containsHelper(this.dropdown,H.getContainer());C||H||this.cancelActiveMention()}};
_.F.containsHelper=function(H,C){var S;if(((S=window.ShadyDOM)==null?void 0:S.noPatch)===!0)return H.contains(C);for(;C;){if(C===H)return!0;C=C instanceof ShadowRoot?C.host:C.parentNode}return!1};
_.F.maybeStartSuggest=function(){var H=_.mR();if(H&&H.isCollapsed()){var C=H.JSC$11360_getStartNode(),S=H.JSC$11360_getStartOffset();if(C instanceof Text&&!(S<1)){var w=C.textContent;!(w=w&&w.charAt(S-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(w)<0||(this.activeMention=_.Sc(C,S-1,H.JSC$11360_getEndNode(),H.JSC$11360_getEndOffset()),this.flowNonce=nD(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.F.updateActiveMention=function(){if(this.activeMention){var H=_.mR();H&&H.isCollapsed()&&(this.activeMention=_.Sc(this.activeMention.JSC$11360_getStartNode(),this.activeMention.JSC$11360_getStartOffset(),H.JSC$11360_getEndNode(),H.JSC$11360_getEndOffset()))}};
_.F.requestSuggestions=function(H){if(this.activeMention){var C={suggestions_query:H};this.pendingQuery=H;_.WH(this.hostElement,[this.suggestionsEndpoint,C])}};
_.F.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()};
_.F.focusPreviousSuggestion=function(H){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),H.preventDefault())};
_.F.focusNextSuggestion=function(H){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),H.preventDefault())};
_.F.selectFocusedSuggestion=function(H){if(this.hasSuggestions(this.suggestionsResponse)){var C=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.e(C,fbn)&&(this.selectSuggestion(_.e(C,fbn),this.dropdown.focusedSuggestionIndex),H.preventDefault())}};
_.F.selectSuggestion=function(H,C){if(H){var S=this.activeMention;if(S){var w=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&H.handle?_.Uv(w,"\u00a0\u2068@"+H.handle+"\u2069\u00a0"):this.handlesEnabled?_.Uv(w,"\u00a0"+H.displayName+"\u00a0"):_.Uv(w,"\u00a0@"+H.displayName+"\u00a0");gP(w,"/channel/"+H.channelId);w.classList.add("yt-formatted-string","yt-simple-endpoint");w.setAttribute("spellcheck","false");S.isCollapsed()||S.JSC$11360_removeContents();S.insertNode(w,!0);H=document.createTextNode(" ");
w.parentNode.insertBefore(H,w.nextSibling);window.getSelection().collapse(H,1);C={suggestionSelected:{suggestionIndex:C}};if(this.zeroPrefixMentionSuggestionEnabled){var A;C.suggestionSelected.isZeroPrefix=((A=this.suggestionsResponse)==null?void 0:A.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",C);this.cancelActiveMention();_.M3(this.hostElement,"yt-mention-inserted")}}};
_.F.getPositionTarget=function(H){return H&&H.getBrowserRangeObject()};
_.F.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.F.onFocusedSuggestionIdChanged=function(H){var C=_.cU6(this.hostElement)[0];C&&(H.detail.value?C.setAttribute("aria-activedescendant",H.detail.value):C.removeAttribute("aria-activedescendant"))};
_.F.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.F.logGELEvent=function(H,C){H={eventType:H,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};C&&(H=Object.assign(H,C));_.kI("userMentionAutoCompleteBoxEvent",H)};
LE.prototype.onDomChange=LE.prototype.onDomChange;LE.prototype.onUserMentionSuggestionSelected=LE.prototype.onUserMentionSuggestionSelected;LE.prototype.onServiceRequestError=LE.prototype.onServiceRequestError;LE.prototype.onServiceRequestCompleted=LE.prototype.onServiceRequestCompleted;LE.prototype.onServiceRequestSent=LE.prototype.onServiceRequestSent;LE.prototype.onInput=LE.prototype.onInput;_.D([_.v(_.rA),_.K("design:type",Object)],LE.prototype,"ironA11yKeysBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],LE.prototype,"suggestionsEndpoint",void 0);_.D([_.V(),_.K("design:type",Object)],LE.prototype,"suggestionsResponse",void 0);_.D([_.V(),_.K("design:type",Object)],LE.prototype,"activeMention",void 0);_.D([_.lA("#dropdown"),_.K("design:type",Object)],LE.prototype,"dropdown",void 0);_.D([_.lA("#iron-dropdown"),_.K("design:type",Object)],LE.prototype,"ironDropdown",void 0);
_.D([_.Gz("input"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],LE.prototype,"onInput",null);_.D([_.Gz("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],LE.prototype,"onServiceRequestSent",null);_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],LE.prototype,"onServiceRequestCompleted",null);
_.D([_.Gz("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],LE.prototype,"onServiceRequestError",null);_.D([_.Gz("yt-user-mention-suggestion-selected"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],LE.prototype,"onUserMentionSuggestionSelected",null);
_.D([_.Gz("dom-change"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],LE.prototype,"onDomChange",null);_.D([_.Lx({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],LE);
_.B(LE,"yt-user-mention-autosuggest-input",function(){if(cuY===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;ZaU===void 0&&(ZaU=document.createElement("template"));var w=ZaU;S.call(C,w.content.cloneNode(!0),H.content.firstChild);cuY=H}H=cuY;return H},{mode:2});var gt=null;
_.hr({is:"ytd-commentbox",_template:function(){if(jH_!==void 0)return jH_;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return jH_=H},
behaviors:[_.BoU.YtHostElementBehavior,_.rA,_.Lw.YtActionHandlerBehavior,_.mL.YtComponentBehavior,_.dc.YtRendererstamperBehavior,_.a_b.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(H,C){return _.Ea(H.entities,"aadcGuidelinesStateEntityPayload",C)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(H,C){return _.Ea(H.entities,"commentboxStateEntity",C)},
observer:"commentboxStateEntityChanged_"},receivedFocusPreviously_:{type:Boolean,value:!1},isReply:{type:Boolean,value:!1},isBackstageComment:{type:Boolean,computed:"computeIsBackstageComment_(data.avatarSize)",reflectToAttribute:!0},attachmentButtonIds:{type:Object,readOnly:!0,computed:"computeAttachmentButtonIds_()"},isBackstagePost:{type:Boolean,value:!1,reflectToAttribute:!0},serviceEndpoint:{type:Object,readOnly:!0,computed:"computeServiceEndpoint_(data)"},submitButtonDisabled:{type:Boolean,
value:!1},attachment:Object,isLoading:{type:Boolean,observer:"isLoadingChanged_"},errorMessage_:{type:Object,value:null},alertMessage_:{type:Object,value:null},imageUploadEndpoint_:{type:Object,computed:"computeImageUploadEndpoint_(data)"},rateLimitErrorCommands:{type:Object,computed:"computeRateLimitErrorCommands_(data)"},addedAttachment:{type:String,value:"none",reflectToAttribute:!0},prefilledAttachment_:{type:String,value:"none",reflectToAttribute:!0},previousText_:String,inlineSchedulePanel_:{type:Object,
computed:"computeInlineSchedulingPanel_(data.purpose, data.schedulingDateTimePicker)"},dropdownSchedulePanel_:{type:Object,computed:"computeDropdownSchedulingPanel_(data.purpose, data.schedulingDateTimePicker)"},scheduleButton_:Object,zeroStepChannelCreationRenderer:Object,enableCreationBox:{type:Boolean,reflectToAttribute:!0},isInputFocus_:{type:Boolean,observer:"onIsInputFocusChanged_"},hasImage_:{type:Boolean,computed:"computeHasImage_(addedAttachment)"},hasPollOrQuizRendererInEditDialog_:{type:Boolean,
computed:"computeHasPollOrQuizRendererInEditDialog_(data)"},hasVideo_:{type:Boolean,computed:"computeHasVideo_(addedAttachment)"},hasPoll_:{type:Boolean,computed:"computeHasPoll_(addedAttachment)"},hasImagePoll_:{type:Boolean,computed:"computeHasImagePoll_(addedAttachment)"},hasQuiz_:{type:Boolean,computed:"computeHasQuiz_(addedAttachment)"},prefilledContent_:{type:Object,readOnly:!0,computed:"computePrefilledContent_(data)"},editAttachment_:{type:Object,readOnly:!0,computed:"computeEditAttachment_(data)"},
isCreationBox:{type:Boolean,reflectToAttribute:!0,value:!1},isPopupBox:{type:Boolean,reflectToAttribute:!0,value:!1},emojiManager:{type:Object,readOnly:!0,value:function(){return _.Nh}},
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:_.E("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.E("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",_.uA(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(H){this.fire(H?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(H){this.set("submitButtonDisabled",void 0);this.clear();H&&this.computeIsEmojiButtonDisplayed_(H)&&(H=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&H.updateEmojiCategories()},
observePrefilledImage_:function(H,C,S){this.isValidPrefilledImage_(H,C,S)&&(this.prefilledAttachment_="image",this.prefilledImageData_=C,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(H,C){this.isValidPrefilledVideo_(H,C)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(H){H&&H.pollData&&H.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(H.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.XL();this.focus()},
detached:function(){document.removeEventListener("tap",_.uA(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(H){H=H.detail;H=H.isCustomEmoji?H.shortcuts[0]:H.emojiId;var C=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(C,H);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var H=_.mR();if(H){H=H.getBrowserRangeObject();for(var C=H.commonAncestorContainer;C;){if(C===this.getEditableTextArea_())return H;C=C.parentNode}}H=this.getEditableTextArea_();H=_.Cl(H,H.childNodes.length);H.select();return H.getBrowserRangeObject()},
insertTextWithEmojis_:function(H,C,S){(C=this.emojiManager.createDocumentFragment(C,!0,!1,S===void 0?!0:S))&&C.childNodes.length!==0&&(H.collapsed||H.deleteContents(),S=C.lastChild,H.insertNode(C),_.NEU(S).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var H=_.mR();if(H){var C=H.JSC$11360_getStartNode(),S=H.JSC$11360_getEndNode();if(DuW(C)&&DuW(S)){var w=H.JSC$11360_getStartOffset(),A;if(_.Wu&&C.nodeType===Node.ELEMENT_NODE&&(A=_.Ni1(C)))_.Cl(A,0).select();else{A=MN(C)?C:_.tb(C,MN);var J=MN(S)?S:_.tb(S,MN);if(A||J)if(H.isCollapsed()){if(C.nodeType===Node.TEXT_NODE){H=!0;w===C.length&&(H=!1);if(gt==="end"||gt==="right")H=!1;C=C.parentNode;H=[].concat(_.k$(C.parentNode.childNodes)).indexOf(C)+(H?0:1);_.Cl(C.parentNode,
H).select()}}else A?A.previousSibling&&A.previousSibling.length>0?_.Sc(S,H.JSC$11360_getEndOffset(),A.previousSibling,A.previousSibling.length-1).select():(C=document.createTextNode("\u200b"),A.parentNode.insertBefore(C,A),_.Sc(S,H.JSC$11360_getEndOffset(),C,0).select()):J&&(J.nextSibling&&J.nextSibling.length>0?_.Sc(C,H.JSC$11360_getStartOffset(),J.nextSibling,1).select():(S=document.createTextNode("\u200b"),J.parentNode.insertBefore(S,J.nextSibling),_.Sc(C,H.JSC$11360_getStartOffset(),S,S.length).select()));
gt=null}}else gt=null}else gt=null},
leftKeyPressed_:function(){gt="left"},
rightKeyPressed_:function(){gt="right"},
endKeyPressed_:function(){gt="end"},
maybeDeleteChip_:function(){var H=RIp(!0);if(H){var C=_.mR(),S=C.JSC$11360_getStartNode();C=C.JSC$11360_getStartOffset();_.IF(S,C,H,H.childNodes.length).select()}},
maybeBackspaceChip_:function(){var H=RIp(!1);if(H){var C=_.mR(),S=C.JSC$11360_getStartNode();C=C.JSC$11360_getStartOffset();_.IF(S,C,H,0).select()}},
maybeBackspaceChipWordMode_:function(H){var C=_.mR();if(C.isCollapsed()){var S=C.JSC$11360_getStartNode();C=C.JSC$11360_getStartOffset();var w=I87(S,C,!0);w&&(_.IF(S,C,w,0).select(),document.execCommand("delete"),H.preventDefault(),H.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(H){var C=_.mR();if(C.isCollapsed()){var S=C.JSC$11360_getStartNode();C=C.JSC$11360_getStartOffset();var w=I87(S,C,!1);w&&(_.IF(S,C,w,w.childNodes.length).select(),document.execCommand("delete"),H.preventDefault(),H.stopImmediatePropagation())}},
onTap_:function(H){if(!H.defaultPrevented&&(H.currentTarget.tagName==="YTD-COMMENTBOX"&&MN(H.target)&&H.preventDefault(),this.isEmojiPickerDisplayed)){var C=this.$$("#emojis"),S=this.$$("#emoji-button"),w=this.getEditableTextArea_();if((H=H.path?H.path:H.composedPath&&H.composedPath())&&!H.includes(C)&&!H.includes(w)&&!H.includes(S))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(H,C,S){return H==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&C!==void 0&&C.encryptedBlobId!==null&&C.sourceExternalVideoId!==null&&S!==void 0&&S.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(H,C){return H==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!C&&!!C.videoRenderer&&!!C.videoRenderer.videoId},
isValidPrefilledAttachment_:function(H,C,S){return this.isValidPrefilledImage_(H,C,S)||this.isValidPrefilledVideo_(H,S)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.E("enable_multi_image_post_creation")){var H=this.$$("ytd-backstage-multi-image-select-renderer");H&&H.hasImages()&&H.cancel()}else(H=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&H.cancel();(H=this.$["poll-attachment"])&&this.hasPoll_&&H.clearPollOptions();(H=this.$["image-poll-attachment"])&&this.hasImagePoll_&&H.resetPollOptions();(H=this.$["quiz-attachment"])&&this.hasQuiz_&&H.resetQuizOptions();
(H=this.$["video-link-attachment"])&&this.hasVideo_&&H.cancel();(H=this.$["access-restrictions-selector"].firstElementChild)&&H.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 _.mY(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.mY(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(H,C){H=tbZ(H,this.emojiManager,C).cloneNode(!0);for(C=H.firstChild;C;)if(C.nodeType!==1)C=C.nextSibling;else switch(C.tagName){case "BR":var S=_.B8();_.lqP(S,C);C=S.nextSibling;break;case "DIV":(S=C.lastChild)&&C.nextSibling&&_.Li(_.B8(),S);C.previousSibling&&(C.previousSibling.nodeType===1||C.previousSibling.nodeType===3&&!C.previousSibling.textContent.endsWith("\n"))&&_.tl(_.B8(),C);S&&S.nodeName==="BR"&&_.f6(S);S=C;C.hasChildNodes()?(C=C.firstChild,
_.Vo1(S)):(C=C.nextSibling,_.f6(S));break;default:C=C.nextSibling}return a8E(H)},
onAddImageError_:function(H){H.stopPropagation();this.errorMessage_=_.sx(H.detail)},
setTextAreaValue_:function(H){H||(H="");var C=this.getEditableFormattedString_();C.text="";this.getEditableTextArea_().innerText="";typeof H==="string"&&(H={runs:[{text:H}]});C.text=H},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();gt=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var H=this.getEditableTextArea_();H&&(_.Cl(H,H.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.rh("HTML_DIR")==="rtl"){var H=this.getEditableTextArea_(),C=this.getTextAreaValue()!==""?"auto":"rtl";H.setAttribute("dir",C)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var H;return hqW((H=this.$["quiz-attachment"])==null?void 0:H.getExplanationText())||hqW(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var H=null;if(this.isEmojiButtonDisplayed){var C=this.getInputRange_();C&&(H=this.emojiInput.retrieveTextBeforeRange(C))}this.insertText_(H,!0);this.updateCharCount_();this.setSubmitButton_();H=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=H.scrollHeight>H.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var H=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:H})},
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(H){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(H)},
onPasteEmoji_:function(H){H.preventDefault();H.stopImmediatePropagation();H=H.clipboardData.getData("text/plain");this.insertText_(H,!1,!1)},
insertText_:function(H,C,S){C=C===void 0?!1:C;S=S===void 0?!0:S;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&H){var w=this.getInputRange_().cloneRange();this.emojiManager&&w&&(C&&this.emojiInput.offsetStartOfRangeBy(w,H.length),this.insertTextWithEmojis_(w,H,S),KHE(this.getEditableTextArea_().lastChild)||(w=this.getInputRange_().cloneRange()),w&&(this.emojiInput.updateSuggestions(w,H),this.updateSuggestionOffset_(w)))}},
setSubmitButton_:function(){if(this.data){var H=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",C=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(H||C){var S=this.getTextAreaValue().trim();C=S===this.previousText_;S=!S||this.aboveCharLimit_;H&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(S=this.aboveCharLimit_);this.submitButtonDisabled=
C||S||!this.getTextLength();H&&_.E("enable_post_scheduling")&&(this.submitButtonDisabled=C&&!this.scheduledPublishTimeSec_||S)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.jt,computeCreationBoxClass_:function(H){return H?"focused":"not-focused"},
computeFooterMessageClass_:function(H,C){return C?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(H,C){return C?C:H},
computeFooterMessageHidden_:function(H,C){return!C&&!H},
computePlaceholderText_:function(H,C,S){return(S==="video"||S==="image")&&(H==null?0:H.prefilledPlaceholderText)?H==null?void 0:H.prefilledPlaceholderText:C==="poll"||C==="image-poll"?H==null?void 0:H.pollPostPlaceholderText:C==="quiz"?H==null?void 0:H.quizPostPlaceholderText:C==="image"?H==null?void 0:H.imagePostPlaceholderText:H==null?void 0:H.placeholderText},
computeHideAttachmentButtons_:function(H,C,S,w){return H===void 0?!1:w&&this.getSimpleString(w)===this.getSimpleString(H.rateLimitErrorMessage)?!0:C!=="none"||S!=="none"||!H.videoLinkButton&&!H.pollButton&&!H.imagePollButton&&!H.quizButton&&!H.imageButton},
computeHideDismissableAttachment_:function(H){return H!=="image"&&H!=="video"},
computeHasVideo_:function(H){return H==="video"},
computeHasImage_:function(H){return H==="image"},
computeHasPoll_:function(H){return H==="poll"},
computeHasImagePoll_:function(H){return H==="image-poll"},
computeHasQuiz_:function(H){return H==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(H){return H&&H.backstageAttachment?H.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!H.backstageAttachment.quizRenderer&&!H.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(H){if(this.isValidPrefilledAttachment_(H.purpose,H.prefilledImageData,H.backstageAttachment))return H.backstageAttachment},
computeEditAttachment_:function(H){if(this.computePrefilledContent_(H)===void 0)return H.backstageAttachment},
computeAuthorThumbnailDimension_:function(H,C){return H&&!C?24:40},
computeImageUploadEndpoint_:function(H){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",H)},
computeRateLimitErrorCommands_:function(H){var C,S;return H==null?void 0:(C=H.advancedTierFeatures)==null?void 0:(S=C.rateLimit)==null?void 0:S.rateLimitCommands},
computeIsBackstageComment_:function(H){return!(!H||H!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(H){return this.get("submitButton.buttonRenderer.serviceEndpoint",H)||this.get("replyButton.buttonRenderer.serviceEndpoint",H)||this.get("postButton.buttonRenderer.serviceEndpoint",H)},
computeSubmitButtonOverride:function(){if(_.E("web_modern_buttons")){var H,C;return{segmentedPosition:this.dropdownSchedulePanel_||!((H=this.data)==null?0:(C=H.postOptionsMenu)==null?0:C.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.E("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(H,C){H=this.get("submitButton.buttonRenderer",H)||this.get("replyButton.buttonRenderer",H)||this.get("postButton.buttonRenderer",H);C&&(H=C);H&&(H=Object.assign({},H),H.serviceEndpoint=void 0,H.isDisabled=this.submitButtonDisabled);return H},
computeHasExternalLinksAccess_:function(H){if(_.E("enable_rfa_external_links")){var C,S,w;return(w=H==null?void 0:(C=H.advancedTierFeatures)==null?void 0:(S=C.externalLinks)==null?void 0:S.allowExternalLinks)!=null?w:!0}return!0},
computeIsEmojiButtonDisplayed_:function(H){return H.emojiButton&&H.emojiPicker&&H.emojiPicker.emojiPickerRenderer&&H.emojiPicker.emojiPickerRenderer.categories?H.emojiPicker.emojiPickerRenderer.categories.find(function(C){return C.emojiPickerCategoryRenderer?C.emojiPickerCategoryRenderer.emojiIds&&C.emojiPickerCategoryRenderer.emojiIds.length>0:C.emojiPickerUpsellCategoryRenderer?C.emojiPickerUpsellCategoryRenderer.emojis&&C.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(H){return H.charLimit?H.charLimit:null},
computeDropdownSchedulingPanel_:function(H,C){if(H==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&C)return C},
computeInlineSchedulingPanel_:function(H,C){if(H==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&C)return C},
computeHideAuthorThumbnail_:function(H,C){return H||this.computeUseIdentityChip_(C)},
computeHideIdentityChipRenderer_:function(H,C){return H||!this.computeUseIdentityChip_(C)},
computeUseIdentityChip_:function(H){return!!H&&!!H.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(H){var C,S,w,A;(H==null?0:(C=H.detail)==null?0:(S=C.endpoint)==null?0:S.ypcGetOffersEndpoint)||(H==null?0:(w=H.detail)==null?0:(A=w.endpoint)==null?0:A.ypcOffersEndpoint)?(H.stopPropagation(),_.WH(this,[H.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",H)&&(H.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(H){this.addedAttachment="video";this.selectedVideoId_=H.detail.videoId},
commentboxStateEntityChanged_:function(H){var C=this;(H==null?void 0:H.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(H==null?void 0:H.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){C.focus()})},
onYtServiceRequestSent_:function(H,C){if(C.actions)for(H=_.Z(C.actions),C=H.next();!C.done;C=H.next())C.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(H){this.isLoading=!1;var C=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",H),S,w,A,J=H==null?void 0:(S=H.detail)==null?void 0:(w=S.data)==null?void 0:(A=w.actionResult)==null?void 0:A.commentboxStateEntityKey;if(C)this.errorMessage_=C;else if(J){var c;this.dismissData_=H==null?void 0:(c=H.detail)==null?void 0:c.data;this.commentboxStateKey_=J}else{this.clear();var Y;this.fire("yt-commentbox-dismiss",H==null?void 0:(Y=H.detail)==
null?void 0:Y.data)}},
onYtServiceRequestError_:function(H){H.stopPropagation();this.isLoading=!1;var C,S;if(((C=this.data)==null?void 0:C.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((S=this.data)==null?void 0:S.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(C=this.get("detail.error.args",H)||[],C.length>1&&C[1].message){this.handlePostsServiceRequestError_(C[1].message);return}(H=this.get("detail.error.message",H))?this.errorMessage_=this.data.errorMessage||_.sx(H):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(H){if(_.E("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var C=_.Z(this.rateLimitErrorCommands),S=C.next();!S.done;S=C.next())if(S=S.value,S.errorLabel===H){_.uJ(S.command,this.hostElement);return}this.errorMessage_=_.sx(H)},
submitIfNotBackstagePost_:function(H){if(!this.isBackstagePost)this.onSubmit_(H)},
onSubmit_:function(H){var C=this,S,w,A,J,c,Y,M,m,W,y,N,b,u,O,d;return _.z(function(p){switch(p.nextAddress){case 1:H.stopPropagation();if(!C.serviceEndpoint||!C.isValidInput_())return p.return();if(C.shouldShowPostAadcNotice_())return C.showPostAadcNotice_(),p.return();if(C.shouldShowCommentAadcNotice_())return C.showCommentAadcNotice_(),p.return();if(!(C.$$("ytd-backstage-multi-image-select-renderer")&&C.hasImage_&&_.E("enable_multi_image_post_creation"))){p.jumpTo(2);break}S=C.$$("ytd-backstage-multi-image-select-renderer");
return p.yield(S.getAllUploadStatuses(),3);case 3:w=p.yieldResult;if(!w)return p.return();A=_.Z(w);for(J=A.next();!J.done;J=A.next())if(c=J.value,c.encryptedBlobId===void 0)return C.isLoading=!1,M=Y=void 0,C.errorMessage_=(M=(Y=C.imageUploadEndpoint_)==null?void 0:Y.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?M:null,p.return();return p.return(C.submitForm_(void 0,void 0,void 0,void 0,S.images,C.taggedVideoId_));case 2:if(!C.hasImagePoll_||!C.$["image-poll-attachment"]){p.jumpTo(4);
break}return p.yield(C.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:m=p.yieldResult;if(!m)return p.return();W=_.Z(m);for(y=W.next();!y.done;y=W.next())if(N=y.value,!N.encryptedBlobId)return C.isLoading=!1,b=void 0,C.errorMessage_=(b=C.data.errorMessage)!=null?b:null,p.return();case 4:O=(u=C.$$("ytd-backstage-image-select-renderer"))&&u.uploadPromise(),d=C.getSharedPostId_(),O?O.then(function(){C.submitForm_.apply(C,_.k$(_.tc.apply(0,arguments)))}).catch(function(k){C.isLoading=!1;
C.errorMessage_=_.sx(k.message)}):C.selectedVideoId_?C.submitForm_(void 0,C.selectedVideoId_):C.prefilledAttachment_==="image"?C.submitForm_(C.prefilledImageData_.encryptedBlobId,void 0,void 0,C.prefilledImageData_.sourceExternalVideoId,void 0,C.taggedVideoId_):C.prefilledAttachment_==="video"?C.submitForm_(void 0,C.data.backstageAttachment.videoRenderer.videoId):d?C.submitForm_(void 0,void 0,d):C.taggedVideoId_!==void 0?C.submitForm_(void 0,void 0,void 0,void 0,void 0,C.taggedVideoId_):C.submitForm_(),
_.oT(p)}})},
openSchedulingPanel:function(H){H&&H.scheduleButton&&H.scheduleButton.buttonRenderer&&(this.scheduleButton_=H.scheduleButton.buttonRenderer);H&&H.dateTimePicker&&this.set("data.schedulingDateTimePicker",H.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(H){H.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(H){H.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(H){H.stopPropagation();H.detail.alertMessage&&(this.alertMessage_=H.detail.alertMessage)},
onImageSelected_:function(H){H.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(H){H.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(H){H.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(H.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(H){H.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(H){var C=this.$["video-link-attachment"];C&&C.onLaunchVideoPicker(H)},
onAttachmentDismiss_:function(H){H.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"&&_.E("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.E("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 H;if(this.addedAttachment==="image-poll"&&((H=this.$["image-poll-attachment"])==null||!H.isValid()))return!1;var C;if(this.addedAttachment==="quiz"&&((C=this.$["quiz-attachment"])==null||!C.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;H=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(H=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")H=!0;return H||!!this.getTextAreaValue().trim()},
submitForm_:function(H,C,S,w,A,J){var c=this.getTextAreaValue().trim(),Y={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&c===this.previousText_&&(c=void 0);c!==void 0&&(Y.comment_text=c);this.isLoading=!0;J!=void 0&&(Y.tagged_video_id=J);H?(Y.image_blob_id=H,this.imagePreviewCoordinates_&&(Y.image_preview_coordinates=this.imagePreviewCoordinates_)):C?Y.attached_video_id=C:S?Y.shared_post_id=S:A&&A.length>0&&(Y.images_data=A.map(function(M){return{encryptedBlobId:M.encryptedBlobId,
previewCoordinates:M.previewCoordinates}}));
w&&(Y.source_video_id=w);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(Y.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(Y.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(Y.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.E("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(Y.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.E("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(Y.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.WH(this,[this.serviceEndpoint,Y])},
onIsInputFocusChanged_:function(H,C){H?this.fire("yt-autonav-pause-focus"):C!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(H){var C=this.getEditableTextArea_();[].concat(_.k$(H.dataTransfer.items)).forEach(function(S){S.kind==="string"&&S.type.match("^text/plain")&&S.getAsString(function(w){C.appendChild(document.createTextNode(w))})});
H.preventDefault()},
preventDefault_:function(H){H.preventDefault()},
onSuggestionInsert_:function(H){this.insertTextWithEmojis_(H.detail.range,H.detail.text)},
onEmojiSuggestionClick_:function(H){this.emojiInput.insertSuggestion(H.detail)},
computeSubmitButtonClass_:function(H,C){return!C||H?"":"with-options"},
updateSuggestionOffset_:function(H){if(this.emojiInput&&_.mY(this.emojiInput).querySelector("#dropdown")){var C=this.getEditableTextArea_().getBoundingClientRect().bottom,S=H.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(C-S)+5;C=this.getEditableTextArea_().getBoundingClientRect().left;H=H.getBoundingClientRect().left-C;_.mY(this.emojiInput).querySelector("#dropdown").style.marginLeft=H+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(H){if(_.E("enable_post_scheduling")&&this.data&&this.data.purpose){H=H.detail;if(Math.floor(Date.now()/1E3)>=H)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var C=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(C)||C!==H?this.scheduledPublishTimeSec_=H:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=H;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var H=["image-button","image-poll-button","poll-button"];_.E("enable_quiz_creation")&&H.push("quiz-button");_.E("auto_convert_posts_video_tag")||H.push("video-link-button");return H},
getButtonRenderer:function(H,C){if(H)switch(C){case "video-link-button":var S;return((S=H.videoLinkButton)==null?void 0:S.buttonRenderer)||void 0;case "image-button":var w;return((w=H.imageButton)==null?void 0:w.buttonRenderer)||void 0;case "poll-button":var A;return((A=H.pollButton)==null?void 0:A.buttonRenderer)||void 0;case "image-poll-button":var J;return((J=H.imagePollButton)==null?void 0:J.buttonRenderer)||void 0;case "quiz-button":var c;return((c=H.quizButton)==null?void 0:c.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var H;return(H=this.data)==null||!H.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var H,C;return!((H=this.data)==null||!H.openAadcDialog)&&!((C=this.aadcGuidelinesState_)==null||!C.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.rh("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var H;((H=this.data)==null?0:H.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.LV("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(H){H.clickTrackingParams&&_.lJ().clickCommand(H);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.q3(this,"yt-close-popup-action")},
onHideIdentityChip:function(H){var C;this.set("data.placeholderText",(C=H.hideIdentityChipAction)==null?void 0:C.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var UZ=function(){var H=_.X.apply(this,arguments)||this;H.isOpen=!1;H.modern=_.E("web_modern_buttons");H.roundedContainer=!0;H.dropdownButtonOverride=_.E("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;H.inPopupContainer=!1;H.isCommentboxLoading=!1;var C=["image-button","image-poll-button","poll-button"];_.E("enable_quiz_creation")&&C.push("quiz-button");_.E("auto_convert_posts_video_tag")||C.push("video-link-button");H.attachmentButtonIds=C;H.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 H};
_.G(UZ,_.X);_.F=UZ.prototype;_.F.computeButtonOverride=function(){var H;return((H=this.data)==null?0:H.postOptionsMenu)&&_.E("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.F.configureRendererStamper=function(){var H={"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]]"}}}}};_.E("auto_convert_posts_video_tag")||(H["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return H};
_.F.ready=function(){var H=this,C=_.mY(this.hostElement).querySelector("#placeholder-area"),S=function(w){H.onOpen(w)};
C.addEventListener("tap",S);C.addEventListener("keypress",S)};
_.F.showButtonEduTooltip=function(){var H,C,S,w,A,J,c;if(_.E("enable_quiz_creation")&&((H=this.data)==null?0:(C=H.quizButton)==null?0:(S=C.buttonRenderer)==null?0:(w=S.hint)==null?0:(A=w.hintRenderer)==null?0:(J=A.content)==null?0:(c=J.bubbleHintRenderer)==null?0:c.text)&&(_.PP.getInstance(),H=$e(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(H==null?void 0:
H.length)>0)){this.ytComponentBehavior.resolveCommand(H[0],{form:{element:this.quizButton}});return}var Y;if((Y=this.data)==null?0:Y.imagePollButtonTooltip)if(_.PP.getInstance(),Y=$e(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(Y==null?void 0:Y.length)>0){this.ytComponentBehavior.resolveCommand(Y[0],{form:{element:this.imagePollButton}});return}var M;_.E("enable_multi_image_post_creation")&&
((M=this.data)==null?0:M.multiImageButtonTooltip)&&(_.PP.getInstance(),M=$e(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(M==null?void 0:M.length)>0&&this.ytComponentBehavior.resolveCommand(M[0],{form:{element:this.imageButton}}))};
_.F.onCreatePollAction=function(H){_.e(H,sBY)&&(this.JSC$15823_commentbox.addedAttachment="poll",this.openDialog())};
_.F.onAddVideoLinkAction=function(H){if(_.e(H,Hqd))this.JSC$15823_commentbox.onAddVideoLink(H)};
_.F.onShowSchedulingPanelCommand=function(H){(H=_.e(H,lNY))&&this.openSchedulingPanel(H)};
_.F.onCreateImagePollCommand=function(H){_.e(H,EPV)&&(this.JSC$15823_commentbox.openImagePollComponent(),this.openDialog())};
_.F.onCreateQuizCommand=function(H){_.e(H,e$Y)&&(this.JSC$15823_commentbox.openQuizComponent(),this.openDialog())};
_.F.openSchedulingPanel=function(H){_.E("enable_post_scheduling")&&(this.openDialog(),this.JSC$15823_commentbox.openSchedulingPanel(H))};
_.F.onCreateCommentAction=function(H){this.get("createCommentAction.contents",H)&&(this.JSC$15823_commentbox.clear(),this.closeDialog())};
_.F.onOpen=function(H){H instanceof KeyboardEvent&&H.type==="keypress"&&H.keyCode!==13&&H.keyCode!==32||(this.data.prepareAccountEndpoint?_.M3(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.F.onYtCommentboxDismiss=function(){this.closeDialog()};
_.F.onYtCommentboxLoadingStart=function(H){H.stopPropagation();this.isCommentboxLoading=!0};
_.F.onYtCommentboxLoadingEnd=function(H){H.stopPropagation();this.isCommentboxLoading=!1};
_.F.onYtVideoLinkButtonCancel=function(H){H.stopPropagation();this.onOpen(H)};
_.F.onYtVideoLinkSelected=function(H){H.stopPropagation();this.onOpen(H)};
_.F.onIronSelect=function(H){H.stopPropagation();H.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=H.detail.item.value&&(this.accessRestriction?(this.accessRestriction=H.detail.item.value,this.onOpen(H)):this.accessRestriction=H.detail.item.value)};
_.F.onYtNavigate=function(H){this.get("detail.endpoint.backstageImageUploadEndpoint",H)&&(this.JSC$15823_commentbox.addedAttachment="image",this.JSC$15823_commentbox.submitButtonDisabled=!0,this.onOpen(H))};
_.F.onRequestSent=function(H){if(_.E("web_button_rework"))for(var C=_.Z(H.detail),S=C.next();!S.done;S=C.next())_.e(S.value,dJ7)&&(this.JSC$15823_commentbox.addedAttachment="image",this.JSC$15823_commentbox.submitButtonDisabled=!0,this.onOpen(H))};
_.F.openDialog=function(){var H;(H=this.data)!=null&&H.isIneligibleForCommunityPagePostCreation||(this.JSC$15823_commentbox.accessRestriction=this.accessRestriction,this.isOpen=!0,this.JSC$15823_commentbox.focus())};
_.F.onPopupClosed=function(){_.PP.getInstance()};
_.F.computeCreationDisabled=function(H){return!!H};
_.F.computeIsCreationDialog=function(H){return!!H&&H==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.F.computeDisabledPostButton=function(H){if(!H)return null;H.isDisabled=!0;return H};
_.F.computeIsCreationDialogWithHeader=function(H){return!this.inPopupContainer&&!!H&&!!H.authorText&&H.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.F.computeIsHeaderHidden=function(H,C){return!H||C};
_.F.computeDropdownRendererClasses=function(H){return H?["text-secondary-style"]:[]};
_.F.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var H=_.mY(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;H&&H.reset()};
UZ.prototype.onPopupClosed=UZ.prototype.onPopupClosed;UZ.prototype.onRequestSent=UZ.prototype.onRequestSent;UZ.prototype.onYtNavigate=UZ.prototype.onYtNavigate;UZ.prototype.onIronSelect=UZ.prototype.onIronSelect;UZ.prototype.onYtVideoLinkSelected=UZ.prototype.onYtVideoLinkSelected;UZ.prototype.onYtVideoLinkButtonCancel=UZ.prototype.onYtVideoLinkButtonCancel;UZ.prototype.onYtCommentboxLoadingEnd=UZ.prototype.onYtCommentboxLoadingEnd;UZ.prototype.onYtCommentboxLoadingStart=UZ.prototype.onYtCommentboxLoadingStart;
UZ.prototype.onYtCommentboxDismiss=UZ.prototype.onYtCommentboxDismiss;UZ.prototype.showButtonEduTooltip=UZ.prototype.showButtonEduTooltip;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],UZ.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],UZ.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],UZ.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],UZ.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],UZ.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],UZ.prototype,"isOpen",void 0);_.D([_.V({computed:"computeButtonOverride(data)"}),_.K("design:type",Object)],UZ.prototype,"buttonOverride",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],UZ.prototype,"modern",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],UZ.prototype,"roundedContainer",void 0);_.D([_.V(),_.K("design:type",Object)],UZ.prototype,"dropdownButtonOverride",void 0);_.D([_.V({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.K("design:type",Boolean)],UZ.prototype,"creationDisabled",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],UZ.prototype,"enableCreationBox",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.K("design:type",Boolean)],UZ.prototype,"isCreationDialog",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],UZ.prototype,"inPopupContainer",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.K("design:type",Boolean)],UZ.prototype,"isCreationDialogWithHeader",void 0);_.D([_.V(),_.K("design:type",Object)],UZ.prototype,"accessRestriction",void 0);
_.D([_.V({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.K("design:type",Array)],UZ.prototype,"dropdownRendererClasses",void 0);_.D([_.V(),_.K("design:type",Object)],UZ.prototype,"isCommentboxLoading",void 0);_.D([_.V(),_.K("design:type",Array)],UZ.prototype,"attachmentButtonIds",void 0);_.D([_.lA("#image-button"),_.K("design:type",HTMLElement)],UZ.prototype,"imageButton",void 0);
_.D([_.lA("#image-poll-button"),_.K("design:type",HTMLElement)],UZ.prototype,"imagePollButton",void 0);_.D([_.lA("#quiz-button"),_.K("design:type",HTMLElement)],UZ.prototype,"quizButton",void 0);_.D([_.lA("#commentbox"),_.K("design:type",Object)],UZ.prototype,"JSC$15823_commentbox",void 0);_.D([_.fx("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],UZ.prototype,"showButtonEduTooltip",null);
_.D([_.Gz("yt-commentbox-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],UZ.prototype,"onYtCommentboxDismiss",null);_.D([_.Gz("yt-commentbox-loading-start"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],UZ.prototype,"onYtCommentboxLoadingStart",null);
_.D([_.Gz("yt-commentbox-loading-end"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],UZ.prototype,"onYtCommentboxLoadingEnd",null);_.D([_.Gz("yt-video-link-button-cancel"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],UZ.prototype,"onYtVideoLinkButtonCancel",null);
_.D([_.Gz("yt-video-link-selected"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],UZ.prototype,"onYtVideoLinkSelected",null);_.D([_.Gz("iron-select"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],UZ.prototype,"onIronSelect",null);_.D([_.Gz("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],UZ.prototype,"onYtNavigate",null);
_.D([_.Gz("yt-service-request-sent-button-renderer"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],UZ.prototype,"onRequestSent",null);_.D([_.Gz("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],UZ.prototype,"onPopupClosed",null);_.D([_.h({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],UZ);
_.B(UZ,"ytd-backstage-post-dialog-renderer",function(){if(pRP!==void 0)return pRP;var H=document.createElement("template");_.f(H,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n    [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer"></yt-formatted-string>\n    <div class="visibility-container style-scope ytd-backstage-post-dialog-renderer" hidden="[[data.isIneligibleForCommunityPagePostCreation]]">\n      <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n      <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n      <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" hidden="[[data.isIneligibleForCommunityPagePostCreation]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div class="ytd-commentbox-slot-repost-preview style-scope ytd-backstage-post-dialog-renderer" slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return pRP=H},{mode:1});var TNV;var m0W;var Rj=function(){return _.X.apply(this,arguments)||this};
_.G(Rj,_.X);_.F=Rj.prototype;_.F.computeHeartButtonStyle=function(H){return(H==null?0:H.styleType)?H.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.F.onYtButtonTap=function(){if(this.data.isEnabled){var H=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(H=this.getEndpoint(H))&&_.JA().resolve(_.ZQ).resolveCommand(H,{form:{element:this.hostElement}})}else(H=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(H)};
_.F.toggle=function(H){this.set("data.isHearted",H!==void 0?H:!this.data.isHearted)};
_.F.getEndpoint=function(H){var C,S=(C=this.data)==null?void 0:C.heartEndpoint,w;C=(w=this.data)==null?void 0:w.unheartEndpoint;if(S&&C)return H?C:S};
_.F.computeButtonAccessibility=function(H,C){var S,w,A=H==null?void 0:(S=H.heartedAccessibility)==null?void 0:(w=S.accessibilityData)==null?void 0:w.label,J,c;H=H==null?void 0:(J=H.unheartedAccessibility)==null?void 0:(c=J.accessibilityData)==null?void 0:c.label;return C?A:H};
_.JJ.Object.defineProperties(Rj.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 H;return _.E("kevlar_system_icons")&&!((H=this.data)==null||!H.isHearted)}}});
Rj.prototype.onYtButtonTap=Rj.prototype.onYtButtonTap;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Rj.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.OY),_.K("design:type",Object)],Rj.prototype,"ytdOpenPopupBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Rj.prototype,"data",void 0);_.D([_.l("data.isHearted"),_.K("design:type",Object),_.K("design:paramtypes",[])],Rj.prototype,"heartTooltip",null);
_.D([_.l("data.isHearted"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Rj.prototype,"iconFilled",null);_.D([_.V({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.K("design:type",String)],Rj.prototype,"buttonAccessibility",void 0);_.D([_.V({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.K("design:type",String)],Rj.prototype,"heartButtonStyle",void 0);
_.D([_.Gz("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Rj.prototype,"onYtButtonTap",null);_.D([_.h({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],Rj);
_.B(Rj,"ytd-creator-heart-renderer",function(){if(m0W!==void 0)return m0W;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return m0W=H},{mode:1});var Ij=function(){var H=_.X.apply(this,arguments)||this;H.hasCreatorReply=!1;H.buttonOverrides={size:"S",iconPosition:"icon-only"};H.replyButtonOverrides={size:"S",type:"text"};H.forceIconButton=!_.E("web_modern_buttons");H.modern=_.E("web_modern_buttons");H.buttonTooltipPosition="bottom";H.systemIcons=_.E("kevlar_system_icons");H.replyDialog=null;return H};
_.G(Ij,_.X);_.F=Ij.prototype;
_.F.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]]"}}}}}};
_.F.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.F.dataChange=function(){this.replyDialog&&_.mY(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var H,C,S;this.isLiked=this.systemIcons&&!!((H=this.data)==null?0:(C=H.likeButton)==null?0:(S=C.toggleButtonRenderer)==null?0:S.isToggled)};
_.F.computeShowVoteCountBeginning=function(H,C){return H===void 0||C===void 0?!0:H.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!C&&this.ytRendererBehavior.getSimpleString(C)!=="0"};
_.F.computeShowVoteCountEnd=function(H,C){return H===void 0||C===void 0?!0:H.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!C&&this.ytRendererBehavior.getSimpleString(C)!=="0"};
_.F.computeShowCommentCount=function(H,C){return H===void 0||C===void 0?!0:H.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!C&&this.ytRendererBehavior.getSimpleString(C)!=="0"};
_.F.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.F.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.F.showReplyDialog=function(H){H&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.mY(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=H,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.F.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.F.onRequestSent=function(H){if(_.E("web_button_rework")){H=_.Z(H.detail);for(var C=H.next();!C.done;C=H.next())(C=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",C.value))&&this.showReplyDialog(C)}};
_.F.onYtNavigate=function(H){var C,S;(H=(C=_.e(H.detail.endpoint,_.$J_))==null?void 0:(S=C.dialog)==null?void 0:S.commentReplyDialogRenderer)&&this.showReplyDialog(H)};
_.F.onYtServiceRequestSent=function(H,C){H.stopPropagation();if(C.actions)for(H=0;H<C.actions.length;H++){var S=_.e(C.actions[H],Zq1);S&&this.handleUpdateCommentVoteAction(S)}};
_.F.handleUpdateCommentVoteAction=function(H){this.voteCount=H.voteCount||_.sx("0");H.voteStatus==="LIKE"?this.JSC$15835_ytdDislikeToggleButtonRenderer.toggle(!1):H.voteStatus==="DISLIKE"?this.JSC$15835_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$15835_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$15835_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.F.computeReplyButtonHidden=function(H){return H};
_.F.computeReplyButtonBeginning=function(H){return(H==null?0:H.replyButton)&&H.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?H.replyButton:void 0};
_.F.computeReplyButtonEnd=function(H){return(H==null?0:H.replyButton)&&H.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?H.replyButton:void 0};
_.F.computeActionButtonStyle=function(H){return(H==null?0:H.style)?H.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.F.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.F.onYtToggleButton=function(H){var C,S;this.isLiked=this.systemIcons&&!!((C=H.detail)==null?0:(S=C.actions)==null?0:S.like)};
Ij.prototype.onYtToggleButton=Ij.prototype.onYtToggleButton;Ij.prototype.onButtonTooltipPositionChanged=Ij.prototype.onButtonTooltipPositionChanged;Ij.prototype.onYtServiceRequestSent=Ij.prototype.onYtServiceRequestSent;Ij.prototype.onYtNavigate=Ij.prototype.onYtNavigate;Ij.prototype.onRequestSent=Ij.prototype.onRequestSent;Ij.prototype.onYtCommentboxDismiss=Ij.prototype.onYtCommentboxDismiss;Ij.prototype.dataChange=Ij.prototype.dataChange;
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Ij.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Ij.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Ij.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],Ij.prototype,"voteCount",void 0);_.D([_.V(),_.K("design:type",Object)],Ij.prototype,"commentCount",void 0);_.D([_.V(),_.K("design:type",Object)],Ij.prototype,"replyThumbnail",void 0);
_.D([_.V(),_.K("design:type",Object)],Ij.prototype,"hasCreatorReply",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],Ij.prototype,"enableCreationBox",void 0);_.D([_.V({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.K("design:type",String)],Ij.prototype,"actionButtonsStyle",void 0);_.D([_.V({computed:"computeReplyButtonBeginning(data)"}),_.K("design:type",Object)],Ij.prototype,"replyButtonBeginning",void 0);
_.D([_.V({computed:"computeReplyButtonEnd(data)"}),_.K("design:type",Object)],Ij.prototype,"replyButtonEnd",void 0);_.D([_.V(),_.K("design:type",Object)],Ij.prototype,"buttonOverrides",void 0);_.D([_.V(),_.K("design:type",Object)],Ij.prototype,"replyButtonOverrides",void 0);_.D([_.V(),_.K("design:type",Object)],Ij.prototype,"forceIconButton",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],Ij.prototype,"useCommentIcon",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Ij.prototype,"modern",void 0);_.D([_.V(),_.K("design:type",Object)],Ij.prototype,"buttonTooltipPosition",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Ij.prototype,"systemIcons",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],Ij.prototype,"isLiked",void 0);_.D([_.lA("ytd-button-renderer"),_.K("design:type",Object)],Ij.prototype,"ytdReplyButtonRenderer",void 0);
_.D([_.lA("#like-button"),_.K("design:type",Object)],Ij.prototype,"JSC$15835_ytdLikeToggleButtonRenderer",void 0);_.D([_.lA("#dislike-button"),_.K("design:type",Object)],Ij.prototype,"JSC$15835_ytdDislikeToggleButtonRenderer",void 0);_.D([_.lA("#reply-dialog"),_.K("design:type",HTMLElement)],Ij.prototype,"replyDialogElement",void 0);_.D([_.lA("#reply-button"),_.K("design:type",HTMLElement)],Ij.prototype,"replyButtonElement",void 0);
_.D([_.lA("#reply-button-end"),_.K("design:type",HTMLElement)],Ij.prototype,"replyButtonEndElement",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ij.prototype,"dataChange",null);_.D([_.Gz("yt-commentbox-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Ij.prototype,"onYtCommentboxDismiss",null);
_.D([_.Gz("yt-service-request-sent-button-renderer"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Ij.prototype,"onRequestSent",null);_.D([_.Gz("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Ij.prototype,"onYtNavigate",null);
_.D([_.Gz("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.IW]),_.K("design:returntype")],Ij.prototype,"onYtServiceRequestSent",null);_.D([_.fx("buttonTooltipPosition"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ij.prototype,"onButtonTooltipPositionChanged",null);
_.D([_.Gz("yt-toggle-button"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Ij.prototype,"onYtToggleButton",null);_.D([_.h({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],Ij);
_.B(Ij,"ytd-comment-action-buttons-renderer",function(){if(TNV!==void 0)return TNV;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return TNV=H},{mode:1});var WM7;var aj=function(){return _.X.apply(this,arguments)||this};
_.G(aj,_.X);aj.prototype.focus=function(){_.mY(this.hostElement).querySelector("#commentbox").focus()};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],aj.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],aj.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],aj.prototype,"zeroStepChannelCreationRenderer",void 0);_.D([_.h({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],aj);
_.B(aj,"ytd-comment-dialog-renderer",function(){if(WM7!==void 0)return WM7;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return WM7=H},{mode:1});var yu_;var xy=function(){var H=_.X.apply(this,arguments)||this;H.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.E("enable_web_delhi_icons")};H.replyButtonOverrides={size:"S",type:"text"};return H};
_.G(xy,_.X);_.F=xy.prototype;_.F.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.F.detached=function(){this.replyBox&&this.replyBox.remove()};
_.F.showReplyDialog=function(H){if(H){var C=this.replyBox;C||(C=document.createElement("ytd-comment-reply-dialog-renderer"),C.id="replybox",_.mY(this.replyDialogDiv).appendChild(C));C.data=H;this.replyDialogDiv.hidden=!1;C.openDialog()}};
_.F.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.F.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var H,C=_.e((H=this.toolbarSurface)==null?void 0:H.subscribersOnlyDisclaimerSnackbarCommand,_.tx);C&&_.M3(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:C})}};
_.F.onYtServiceRequestSent=function(H,C){H.stopPropagation();if(C.actions)for(var S=0;S<C.actions.length;S++){var w=_.e(C.actions[S],Zq1);w?this.handleUpdateCommentVoteAction(w):H.target===this.heartButton&&this.toggleHeartState()}};
_.F.handleUpdateCommentVoteAction=function(H){var C;(C=this.toolbarState)!=null&&C.key&&this.ytdReduxBehavior.dispatch(_.pN("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:H.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":H.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.F.toggleHeartState=function(){var H;(H=this.toolbarState)!=null&&H.key&&this.ytdReduxBehavior.dispatch(_.pN("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.JJ.Object.defineProperties(xy.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var H,C,S;return(((H=this.toolbarState)==null?void 0:H.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(C=this.toolbarData)==null?void 0:C.likeCountLiked:(S=this.toolbarData)==null?void 0:S.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.toolbarSurface)==null?void 0:H.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.toolbarSurface)==null?void 0:H.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.toolbarSurface)==null?void 0:H.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.toolbarSurface)==null?void 0:H.prepareAccountCommand)!==void 0&&!_.E("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var H,C=_.e((H=this.toolbarSurface)==null?void 0:H.prepareAccountCommand,_.tx),S,w,A,J,c,Y,M,m,W;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((S=this.toolbarSharedData)==null||!S.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((w=this.toolbarState)==null?void 0:w.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:C!=null?C:_.e((A=this.toolbarSurface)==null?void 0:A.likeCommand,_.tx),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:C!=null?C:_.e((J=this.toolbarSurface)==null?void 0:J.unlikeCommand,_.tx),defaultCommand:this.isVisiblyDisabled?_.e((c=this.toolbarSurface)==null?void 0:c.commentDisabledActionCommand,_.tx):void 0,defaultTooltip:(Y=this.toolbarData)==null?void 0:Y.likeInactiveTooltip,toggledTooltip:(M=this.toolbarData)==null?void 0:M.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(m=this.toolbarData)==null?void 0:m.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(W=this.toolbarSharedData)==null?void 0:W.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var H,C=_.e((H=this.toolbarSurface)==null?void 0:H.prepareAccountCommand,_.tx),S,w,A,J,c,Y,M,m,W,y;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((S=this.toolbarSharedData)==null||!S.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((w=this.toolbarState)==null?void 0:w.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:C!=null?C:_.e((A=this.toolbarSurface)==null?void 0:A.dislikeCommand,_.tx),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:C!=null?C:_.e((J=this.toolbarSurface)==null?void 0:J.undislikeCommand,_.tx),defaultCommand:this.isVisiblyDisabled?_.e((c=this.toolbarSurface)==null?void 0:c.commentDisabledActionCommand,_.tx):void 0,defaultTooltip:(Y=this.toolbarData)==null?void 0:Y.dislikeInactiveTooltip,toggledTooltip:(M=this.toolbarData)==null?void 0:
M.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(m=this.toolbarSharedData)==null?void 0:m.dislikeReplyButtonA11y:(W=this.toolbarSharedData)==null?void 0:W.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(y=this.toolbarSharedData)==null?void 0:y.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var H,C,S;if(((H=this.toolbarState)==null?void 0:H.heartState)!==void 0&&((C=this.toolbarState)==null?void 0:C.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((S=this.toolbarState)==null?void 0:S.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var w,A,J,c,Y,M,m,W,y,N,b,u,O,d;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(w=this.toolbarData)==null?void 0:w.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((A=this.toolbarState)==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((J=this.toolbarState)==null?void 0:J.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((c=this.toolbarState)==null?void 0:c.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((Y=this.toolbarState)==null?void 0:Y.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.e((M=this.toolbarSurface)==null?void 0:M.heartCommand,
_.tx),unheartEndpoint:this.isVisiblyDisabled?void 0:_.e((m=this.toolbarSurface)==null?void 0:m.unheartCommand,_.tx),disabledEndpoint:this.isVisiblyDisabled?_.e((W=this.toolbarSurface)==null?void 0:W.commentDisabledActionCommand,_.tx):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(y=this.toolbarData)==null?void 0:y.heartActiveTooltip,unheartedTooltip:(N=this.toolbarData)==null?void 0:N.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((b=
this.toolbarState)==null?void 0:b.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(u=this.toolbarSharedData)==null?void 0:u.unheartButtonA11y:(O=this.toolbarSharedData)==null?void 0:O.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(d=this.toolbarSharedData)==null?void 0:d.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.toolbarSurface)==null||!H.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var H,C,S,w;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(H=this.commentStrings)==null?void 0:H.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.e((C=this.toolbarSurface)==null?void 0:C.replyCommand,_.tx),command:this.isVisiblyDisabled?_.e((S=this.toolbarSurface)==null?
void 0:S.commentDisabledActionCommand,_.tx):this.isSubsOnlyCommentsIneligibleUser?_.e((w=this.toolbarSurface)==null?void 0:w.subscribersOnlySnackbarCommand,_.tx):void 0}}}});
xy.prototype.onYtServiceRequestSent=xy.prototype.onYtServiceRequestSent;xy.prototype.hideReplyDialogDiv=xy.prototype.hideReplyDialogDiv;_.D([_.V(),_.K("design:type",Object)],xy.prototype,"commentStrings",void 0);_.D([_.V(),_.K("design:type",Boolean)],xy.prototype,"isReply",void 0);_.D([_.V(),_.K("design:type",Object)],xy.prototype,"toolbarData",void 0);_.D([_.V(),_.K("design:type",Object)],xy.prototype,"toolbarSharedData",void 0);
_.D([_.V(),_.K("design:type",String)],xy.prototype,"toolbarStateKey",void 0);_.D([_.V(),_.K("design:type",String)],xy.prototype,"toolbarSurfaceKey",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],xy.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],xy.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],xy.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.v(_.OY),_.K("design:type",Object)],xy.prototype,"ytdOpenPopupBehavior",void 0);_.D([_.lA("#reply-dialog"),_.K("design:type",HTMLElement)],xy.prototype,"replyDialogDiv",void 0);_.D([_.lA("#replybox"),_.K("design:type",Object)],xy.prototype,"replyBox",void 0);_.D([_.lA("ytd-creator-heart-renderer"),_.K("design:type",Object)],xy.prototype,"heartButton",void 0);_.D([_.V({selector:function(H,C){return _.Ea(H.entities,"engagementToolbarStateEntityPayload",C)},
selectorArgs:["toolbarStateKey"]}),_.K("design:type",Object)],xy.prototype,"toolbarState",void 0);_.D([_.V({selector:yqw,selectorArgs:["toolbarSurfaceKey"]}),_.K("design:type",Object)],xy.prototype,"toolbarSurface",void 0);_.D([_.V(),_.K("design:type",Object)],xy.prototype,"buttonOverrides",void 0);_.D([_.Gz("yt-commentbox-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xy.prototype,"hideReplyDialogDiv",null);
_.D([_.l("toolbarData","toolbarState"),_.K("design:type",String),_.K("design:paramtypes",[])],xy.prototype,"likeCount",null);_.D([_.l("likeCount"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],xy.prototype,"showLikeCount",null);_.D([_.l("toolbarSurface"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],xy.prototype,"isVisiblyDisabled",null);_.D([_.l("toolbarSurface"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],xy.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.D([_.l("toolbarSurface"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],xy.prototype,"isSubsOnlyCommentsEligibleUser",null);_.D([_.l("toolbarSurface"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],xy.prototype,"hasPrepareAccountCommand",null);_.D([_.l("toolbarData","toolbarState","toolbarSurface"),_.K("design:type",Object),_.K("design:paramtypes",[])],xy.prototype,"likeToggleButtonRenderer",null);
_.D([_.l("isReply","toolbarData","toolbarState","toolbarSurface"),_.K("design:type",Object),_.K("design:paramtypes",[])],xy.prototype,"dislikeToggleButtonRenderer",null);_.D([_.l("toolbarData","toolbarState","toolbarSurface"),_.K("design:type",Object),_.K("design:paramtypes",[])],xy.prototype,"creatorHeartSupportedRenderer",null);_.D([_.l("toolbarSurface"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],xy.prototype,"hasReplyCommand",null);
_.D([_.l("toolbarSurface","commentStrings","isVisiblyDisabled"),_.K("design:type",Object),_.K("design:paramtypes",[])],xy.prototype,"replyButtonRenderer",null);_.D([_.V(),_.K("design:type",Object)],xy.prototype,"replyButtonOverrides",void 0);_.D([_.Gz("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.IW]),_.K("design:returntype")],xy.prototype,"onYtServiceRequestSent",null);_.D([_.h({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],xy);
_.B(xy,"ytd-comment-engagement-bar",function(){if(yu_!==void 0)return yu_;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return yu_=H},{mode:1});var NNn;var HL=function(){return _.X.apply(this,arguments)||this};
_.G(HL,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],HL.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],HL.prototype,"data",void 0);_.D([_.h({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],HL);
_.B(HL,"ytd-comment-inline-thumbnail-renderer",function(){if(NNn!==void 0)return NNn;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return NNn=H},{mode:1});var ba1;var iT=function(){return _.X.apply(this,arguments)||this};
_.G(iT,_.X);iT.prototype.onMessageTap=function(){if(this.onTapCommand){var H=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);H&&this.ytdOpenPopupBehavior.openPopup(H)}};
_.JJ.Object.defineProperties(iT.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var H,C,S;return(H=this.data)==null?void 0:(C=H.button)==null?void 0:(S=C.buttonRenderer)==null?void 0:S.command}}});
_.D([_.v(_.OY),_.K("design:type",Object)],iT.prototype,"ytdOpenPopupBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],iT.prototype,"data",void 0);_.D([_.l("data.button.buttonRenderer.command"),_.K("design:type",Object),_.K("design:paramtypes",[])],iT.prototype,"onTapCommand",null);_.D([_.h({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],iT);
_.B(iT,"ytd-comment-pause-composer-renderer",function(){if(ba1!==void 0)return ba1;var H=document.createElement("template");_.f(H,'\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>');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return ba1=H},{mode:1});var EGV;var eYi;var C1=function(){var H=_.X.apply(this,arguments)||this;H.isOpen=!1;return H};
_.G(C1,_.X);_.F=C1.prototype;_.F.dataChanged=function(){this.isOpen=!1};
_.F.onTap=function(){this.data&&(this.data.navigationEndpoint?_.M3(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.F.focus=function(){this.JSC$15865_commentbox.focus()};
_.F.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.F.openDialog=function(){this.isOpen=!0;this.JSC$15865_commentbox.focus();this.JSC$15865_commentbox.maybeHeightChanged()};
C1.prototype.onYtCommentboxDismiss=C1.prototype.onYtCommentboxDismiss;C1.prototype.dataChanged=C1.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],C1.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],C1.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],C1.prototype,"isOpen",void 0);_.D([_.lA("#commentbox"),_.K("design:type",Object)],C1.prototype,"JSC$15865_commentbox",void 0);
_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],C1.prototype,"dataChanged",null);_.D([_.Gz("yt-commentbox-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],C1.prototype,"onYtCommentboxDismiss",null);_.D([_.h({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],C1);
_.B(C1,"ytd-comment-reply-dialog-renderer",function(){if(eYi!==void 0)return eYi;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return eYi=H},{mode:1});var uZd;var SO=function(){return _.X.apply(this,arguments)||this};
_.G(SO,_.X);_.JJ.Object.defineProperties(SO.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var H,C,S=(H=this.data)==null?void 0:(C=H.icon)==null?void 0:C.iconType;return S?"yt-icons:"+S.toLowerCase():null}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],SO.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],SO.prototype,"data",void 0);_.D([_.V(),_.l("data.icon"),_.K("design:type",Object),_.K("design:paramtypes",[])],SO.prototype,"icon",null);_.D([_.h({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],SO);
_.B(SO,"ytd-pinned-comment-badge-renderer",function(){if(uZd!==void 0)return uZd;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return uZd=H},{mode:1});var G11;var fnb={},vG7={input:!0,meta:!0,br:!0,link:!0,img:!0},sR=null;fnb.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(){sR==null&&(sR=document.createElement("tp-yt-paper-tooltip"),sR.offset=8,sR.fitToVisibleBounds=!0)},
onMouseOver_:function(H){if(H=_.tb(H.target,function(A){return A==this||A.getAttribute&&A.getAttribute("shared-tooltip-text")}.bind(this),!0)){var C=H.getAttribute("shared-tooltip-text");
if(C){var S=this,w=null;H!=this&&(H.tagName.toLowerCase()in vG7?S=H.parentElement:S=H,H.id&&(w=H.id));this.polymerController.createTooltipIfRequired_();if(sR.parentElement!=S||sR.for!=w)(0,_.bA)(sR).textContent=C,_.mY(S).appendChild(sR),sR.for=w,sR.animationDelay=this.polymerController.sharedTooltipAnimationDelay,sR.position=this.polymerController.sharedTooltipPosition}}}};var jO=function(){return _.X.apply(this,arguments)||this};
_.G(jO,_.X);jO.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]]"}}}}}};
jO.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img");var H;((H=this.data)==null?0:H.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
jO.prototype.colorChanged=function(){var H,C,S,w=(H=this.data)==null?void 0:(C=H.color)==null?void 0:(S=C.basicColorPaletteData)==null?void 0:S.foregroundBodyColor;w&&(this.rgbBadgeColor=_.Iw(w));_.mY(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
jO.prototype.tooltipChanged=function(){var H;((H=this.data)==null?0:H.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
jO.prototype.tooltipChanged=jO.prototype.tooltipChanged;jO.prototype.colorChanged=jO.prototype.colorChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],jO.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],jO.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(fnb.YtSharedTooltipBehavior),_.K("design:type",Object)],jO.prototype,"ytSharedTooltipBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],jO.prototype,"data",void 0);
_.D([_.V({value:"#4285F4"}),_.K("design:type",String)],jO.prototype,"rgbBadgeColor",void 0);_.D([_.fx("data.color"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],jO.prototype,"colorChanged",null);_.D([_.fx("data.tooltip"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],jO.prototype,"tooltipChanged",null);_.D([_.h({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],jO);
_.B(jO,"ytd-sponsor-comment-badge-renderer",function(){if(G11!==void 0)return G11;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return G11=H},{mode:1});var lnP;var VTV;var wG=function(){return _.X.apply(this,arguments)||this};
_.G(wG,_.X);wG.prototype.computeState=function(H){switch(H==null?void 0:H.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"}};
wG.prototype.updateStateIdentifier=function(H){if(this.viewModel.triStateKey){var C=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.pN("triStateButtonStateEntityPayload",C,{key:C,stateIdentifier:H}))}};
wG.prototype.onClick=function(){var H=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(){H.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){H.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.JJ.Object.defineProperties(wG.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 H;return((H=this.data)==null?void 0:H.buttonText)||""}}});
_.D([_.V(),_.K("design:type",Object)],wG.prototype,"viewModel",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],wG.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],wG.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],wG.prototype,"ytRendererBehavior",void 0);_.D([_.V({selector:N0E,selectorArgs:["viewModel.triStateKey"]}),_.K("design:type",Object)],wG.prototype,"triStateButtonStateEntity",void 0);
_.D([_.V({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.K("design:type",String)],wG.prototype,"state",void 0);_.D([_.l("viewModel","state"),_.K("design:type",Object),_.K("design:paramtypes",[])],wG.prototype,"data",null);_.D([_.l("data"),_.K("design:type",String),_.K("design:paramtypes",[])],wG.prototype,"buttonText",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],wG);
_.B(wG,"ytd-tri-state-button-view-model",function(){if(VTV!==void 0)return VTV;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return VTV=H},{mode:1});var oGn;var OaP;var Aj=function(){var H=_.X.apply(this,arguments)||this;H.defaultIconToFilled=!_.E("kevlar_fill_comment_chip_icon_killswitch");return H};
_.G(Aj,_.X);Aj.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
Aj.prototype.dataChanged=function(){if(this.data){var H,C;((H=this.data.chipColorPalette)==null?0:H.backgroundColor)&&((C=this.data.chipColorPalette)==null?0:C.foregroundTitleColor)&&_.Ed(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.aw(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.aw(this.data.chipColorPalette.foregroundTitleColor)});var S;((S=this.data)==null?0:S.command)?(_.Ed(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.Ed(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}};
Aj.prototype.onTap=function(){var H;if(this.data&&(H=this.data)!=null&&H.command){var C;this.ytComponentBehavior.resolveCommand((C=this.data)==null?void 0:C.command)}};
Aj.prototype.getIconSize=function(){return _.E("kevlar_fill_comment_chip_icon_killswitch")?24:12};
Aj.prototype.onTap=Aj.prototype.onTap;Aj.prototype.dataChanged=Aj.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Aj.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Aj.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.rA),_.K("design:type",Object)],Aj.prototype,"ironA11yKeysBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Aj.prototype,"data",void 0);
_.D([_.V(),_.K("design:type",Object)],Aj.prototype,"basePriceText",void 0);_.D([_.V(),_.K("design:type",Object)],Aj.prototype,"chipIcon",void 0);_.D([_.V(),_.K("design:type",Object)],Aj.prototype,"defaultIconToFilled",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Aj.prototype,"dataChanged",null);_.D([_.Gz("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Aj.prototype,"onTap",null);
_.D([_.Lx({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],Aj);
_.B(Aj,"yt-pdg-comment-chip-renderer",function(){if(OaP===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;oGn===void 0&&(oGn=document.createElement("template"));var w=oGn;S.call(C,w.content.cloneNode(!0),H.content.firstChild);OaP=H}H=OaP;return H},{mode:2});var Jj=function(){var H=_.X.apply(this,arguments)||this;H.useSmallAvatars=_.E("small_avatars_for_comments");H.webWatchCompactComments=_.E("web_watch_compact_comments");H.editDialog=null;return H};
_.G(Jj,_.X);_.F=Jj.prototype;_.F.onShow=function(){_.KL("cmv",void 0,"wn_comments")};
_.F.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"}}}};
_.F.detached=function(){this.editDialog=null;this.expander.reset()};
_.F.updateBackgroundColor=function(){if(this.backgroundColor){var H={"--ytd-comment-paid-background-color":_.aw(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.Ed(this.hostElement,H)}else _.Ed(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.F.resetExpander=function(){var H;(H=this.expander)==null||H.reset()};
_.F.openEditDialog=function(H){H.dialog&&(this.editDialog=H.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.F.onYtNavigate=function(H){var C=H.detail.endpoint;if(C=_.e(C,_.pJd)||_.e(C,_.kjW))H.stopPropagation(),this.openEditDialog(C)};
_.F.onYtCommentboxDismiss=function(){this.editDialog=null;_.Ed(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.F.onAuthorThumbnailClicked=function(){_.E("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.F.onYtCommentboxResize=function(H){var C;(H==null?0:(C=H.detail)==null?0:C.height)&&_.Ed(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":H.detail.height+"px"})};
_.JJ.Object.defineProperties(Jj.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 H,C=(H=this.commentEntity)==null?void 0:H.author;return C&&(C.isCreator||C.isVerified||C.isArtist)?{renderer:{authorEndpoint:C.channelPageEndpoint?_.e(C.channelPageEndpoint,_.tx):_.e(C.channelCommand,_.tx),authorText:{runs:[{text:C.displayName}]},color:C.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:C.isArtist?{iconType:"AUDIO_BADGE"}:
C.isVerified?{iconType:C.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:C.isArtist||C.isVerified?C.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var H,C=(H=this.commentEntity)==null?void 0:H.author;return C!=null&&C.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:C.sponsorBadgeUrl}]},tooltip:C.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var H;return _.e((H=this.commentSurfaceEntity)==null?void 0:H.pdgCommentChip,_.z$1)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var H;return this.voiceReplyContainerViewModel&&((H=this.voiceReplyContainerViewModel)==null?void 0:H.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var H;return _.e((H=this.commentSurfaceEntity)==null?void 0:H.voiceReplyContainerViewModel,yyY)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var H;return this.voiceReplyContainerViewModel&&(H=this.voiceReplyContainerViewModel)!=null&&H.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var H,C;return(C=(H=this.commentSurfaceEntity)==null?void 0:H.commentBackgroundColor)!=null?C:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.E("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var H,C;return(((H=this.commentEntity)==null?void 0:(C=H.properties)==null?void 0:C.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var H,C;if(_.E("enable_profile_cards_on_comments")&&((H=this.commentEntity)==null?0:(C=H.author)==null?0:C.profileCardEndpoint)&&this.viewModel.allowProfileCard){var S,w;return _.e((S=this.commentEntity)==null?void 0:(w=S.author)==null?void 0:w.profileCardEndpoint,_.tx)}var A,J;return _.e((A=this.commentEntity)==null?void 0:(J=A.avatar)==null?void 0:J.endpoint,_.tx)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var H,C;if(_.E("enable_profile_cards_on_comments")&&((H=this.commentEntity)==null?0:(C=H.author)==null?0:C.channelPageEndpoint)){var S,w;return _.e((S=this.commentEntity)==null?void 0:(w=S.author)==null?void 0:w.channelPageEndpoint,_.tx)}var A,J;return _.e((A=this.commentEntity)==null?void 0:(J=A.avatar)==null?void 0:J.endpoint,_.tx)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var H,C,S,w,A=(H=this.commentEntity)==null?void 0:(C=H.avatar)==null?void 0:(S=C.image)==null?void 0:(w=S.sources)==null?void 0:w[0];return A?{thumbnails:[{url:A.url,width:A.width,height:A.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var H,C;return((H=this.commentEntity)==null?0:(C=H.author)==null?0:C.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var H,C;return((H=this.commentEntity)==null?void 0:(C=H.author)==null?void 0:C.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var H,C;return((H=this.commentEntity)==null?void 0:(C=H.properties)==null?void 0:C.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var H;return _.e((H=this.commentSurfaceEntity)==null?void 0:H.publishedTimeCommand,_.tx)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var H,C;if(((H=this.commentEntity)==null?0:H.translatedContent)&&((C=this.translateButtonState)==null?void 0:C.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var S;if((S=this.voiceReplyContainerViewModel)==null?0:S.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var w,A;return((w=this.commentEntity)==null?void 0:(A=w.properties)==null?void 0:A.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var H,C;return((H=this.commentSharedEntity)==null?void 0:(C=H.strings)==null?void 0:C.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var H,C;return((H=this.commentSharedEntity)==null?void 0:(C=H.strings)==null?void 0:C.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.commentEntity)==null||!H.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var H,C,S=(C=_.e((H=this.viewModel)==null?void 0:H.translateButton,Wh7))!=null?C:{},w,A,J,c,Y,M,m,W,y,N,b;return Object.assign({},S,{untoggledStateData:Object.assign({},S.untoggledStateData,{buttonText:(w=this.commentEntity)==null?void 0:(A=w.translateData)==null?void 0:A.text}),togglingStateData:Object.assign({},S.togglingStateData,{buttonText:(J=this.commentSharedEntity)==null?
void 0:(c=J.strings)==null?void 0:c.translatingText}),toggledStateData:Object.assign({},S.toggledStateData,{buttonText:(Y=this.commentSharedEntity)==null?void 0:(M=Y.strings)==null?void 0:M.seeOriginalText}),transitionCommand:((m=this.commentEntity)==null?0:m.translatedContent)?void 0:_.e((W=this.commentEntity)==null?void 0:(y=W.translateData)==null?void 0:y.translateComment,_.tx),triStateKey:(N=this.commentEntity)==null?void 0:(b=N.properties)==null?void 0:b.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var H,C,S;return((C=_.e(_.e((H=this.toolbarSurface)==null?void 0:H.menuCommand,_.tx),h1Y))==null?void 0:(S=C.menu)==null?void 0:S.menuRenderer)||null}}});
Jj.prototype.onYtCommentboxResize=Jj.prototype.onYtCommentboxResize;Jj.prototype.onYtCommentboxDismiss=Jj.prototype.onYtCommentboxDismiss;Jj.prototype.onYtNavigate=Jj.prototype.onYtNavigate;Jj.prototype.resetExpander=Jj.prototype.resetExpander;Jj.prototype.updateBackgroundColor=Jj.prototype.updateBackgroundColor;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Jj.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],Jj.prototype,"ytdReduxBehavior",void 0);
_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Jj.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Jj.prototype,"ytRendererstamperBehavior",void 0);_.D([_.lA("#author-thumbnail > button"),_.K("design:type",HTMLElement)],Jj.prototype,"authorThumbnailAnchor",void 0);_.D([_.V({reflectToAttribute:!0}),_.l("viewModel"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Jj.prototype,"linked",null);
_.D([_.l("viewModel","linked"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jj.prototype,"linkedCommentBadge",null);_.D([_.V({reflectToAttribute:!0}),_.l("viewModel"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Jj.prototype,"pinned",null);_.D([_.l("viewModel","pinned"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jj.prototype,"pinnedCommentBadge",null);
_.D([_.l("commentEntity","commentSharedEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jj.prototype,"authorCommentBadge",null);_.D([_.V({reflectToAttribute:!0}),_.l("authorCommentBadge"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jj.prototype,"hasAuthorBadge",null);_.D([_.l("commentEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jj.prototype,"sponsorCommentBadge",null);
_.D([_.V({reflectToAttribute:!0}),_.l("sponsorCommentBadge"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jj.prototype,"hasSponsorBadge",null);_.D([_.l("commentSurfaceEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jj.prototype,"pdgCommentChipRenderer",null);_.D([_.V({reflectToAttribute:!0}),_.l("voiceReplyContainerViewModel"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jj.prototype,"hasVoiceReply",null);
_.D([_.l("commentSurfaceEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jj.prototype,"voiceReplyContainerViewModel",null);_.D([_.l("voiceReplyContainerViewModel"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jj.prototype,"voiceReplyUnavailableText",null);_.D([_.V(),_.K("design:type",Object)],Jj.prototype,"data",void 0);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jj.prototype,"viewModel",null);
_.D([_.V({selector:function(H,C){return _.Ea(H.entities,"commentSharedEntityPayload",C)},
selectorArgs:["viewModel.sharedKey"]}),_.K("design:type",Object)],Jj.prototype,"commentSharedEntity",void 0);_.D([_.V({selector:function(H,C){return _.Ea(H.entities,"commentEntityPayload",C)},
selectorArgs:["viewModel.commentKey"]}),_.K("design:type",Object)],Jj.prototype,"commentEntity",void 0);_.D([_.V({selector:function(H,C){return _.Ea(H.entities,"commentSurfaceEntityPayload",C)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.K("design:type",Object)],Jj.prototype,"commentSurfaceEntity",void 0);_.D([_.V({selector:yqw,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.K("design:type",Object)],Jj.prototype,"toolbarSurface",void 0);_.D([_.V({selector:N0E,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.K("design:type",Object)],Jj.prototype,"translateButtonState",void 0);
_.D([_.l("commentSurfaceEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jj.prototype,"backgroundColor",null);_.D([_.V({reflectToAttribute:!0}),_.l("viewModel"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Jj.prototype,"optimalReadingWidthComments",null);_.D([_.lA("ytd-expander"),_.K("design:type",Object)],Jj.prototype,"expander",void 0);
_.D([_.fx("backgroundColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Jj.prototype,"updateBackgroundColor",null);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Jj.prototype,"useSmallAvatars",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Jj.prototype,"webWatchCompactComments",void 0);_.D([_.V({reflectToAttribute:!0}),_.l("commentEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jj.prototype,"isReply",null);
_.D([_.l("commentEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jj.prototype,"authorThumbnailEndpoint",null);_.D([_.l("commentEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jj.prototype,"authorNameEndpoint",null);_.D([_.l("commentEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jj.prototype,"authorThumbnail",null);_.D([_.l("commentEntity"),_.K("design:type",String),_.K("design:paramtypes",[])],Jj.prototype,"authorTextClass",null);
_.D([_.l("commentEntity"),_.K("design:type",String),_.K("design:paramtypes",[])],Jj.prototype,"authorChannelName",null);_.D([_.l("commentEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jj.prototype,"publishedTime",null);_.D([_.l("commentSurfaceEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jj.prototype,"publishedTimeCommand",null);
_.D([_.l("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jj.prototype,"contentText",null);_.D([_.fx("contentText"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Jj.prototype,"resetExpander",null);_.D([_.l("commentEntity"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Jj.prototype,"shouldShowReadMoreInitially",null);
_.D([_.l("commentSharedEntity"),_.K("design:type",String),_.K("design:paramtypes",[])],Jj.prototype,"expandText",null);_.D([_.l("commentSharedEntity"),_.K("design:type",String),_.K("design:paramtypes",[])],Jj.prototype,"collapseText",null);_.D([_.l("commentEntity"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Jj.prototype,"shouldShowTranslateButton",null);
_.D([_.l("commentEntity","commentSharedEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jj.prototype,"translateButton",null);_.D([_.l("toolbarSurface"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jj.prototype,"overflowMenuRenderer",null);_.D([_.V(),_.K("design:type",Object)],Jj.prototype,"editDialog",void 0);_.D([_.lA("ytd-comment-dialog-renderer"),_.K("design:type",Object)],Jj.prototype,"editCommentDialogContainer",void 0);
_.D([_.lA("ytd-comment-reply-dialog-renderer"),_.K("design:type",Object)],Jj.prototype,"editReplyDialogContainer",void 0);_.D([_.Gz("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Jj.prototype,"onYtNavigate",null);_.D([_.Gz("yt-commentbox-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Jj.prototype,"onYtCommentboxDismiss",null);
_.D([_.Gz("yt-commentbox-resize"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Jj.prototype,"onYtCommentboxResize",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-comment-view-model"})],Jj);
_.B(Jj,"ytd-comment-view-model",function(){if(lnP!==void 0)return lnP;var H=document.createElement("template");_.f(H,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model"> </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model">\n          \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model"> [[authorChannelName]] </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" recompute-on-resize="[[webWatchCompactComments]]" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden$="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return lnP=H},{mode:_.mn("kevlar_poly_si_batch_j025")?1:2});_.qs(_.n(function(H){var C={};return _.q("yt-sub-thread",{class:_.eJ("ytSubThreadHost",(C.ytSubThreadHasButton=H.isButton,C))},_.q("div",{class:"ytSubThreadThreadline"},_.q("div",{class:"ytSubThreadConnection"}),_.q("div",{class:"ytSubThreadContinuation"}),_.q("div",{class:"ytSubThreadShadow"})),_.q("div",{class:"ytSubThreadSubThreadContent"},H.children))},"Rb"),"yt-sub-thread",{props:{isButton:_.GH}});var F3=function(){var H=_.X.apply(this,arguments)||this;H.modern=_.E("web_modern_buttons");H.commentThreadingEnabled=_.E("web_delhi_comment_threads");H.isWatchGrid=_.E("kevlar_watch_grid");H.buttonOverrides=H.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};H.JSC$15911_spinnerEl=null;return H};
_.G(F3,_.X);_.F=F3.prototype;_.F.configureContinuationPathMap=function(){return _.E("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.F.shouldShowExpandedThreads=function(H,C){return this.commentThreadingEnabled&&C&&(H==null?void 0:H.length)>0};
_.F.shouldShowCollapsedThreads=function(H,C){return this.commentThreadingEnabled&&!C&&H};
_.F.computeThreadRenderer=function(H){return _.e(H,cy7)};
_.F.computeIsContinuationItem=function(H){return!!this.computeContinuationItemRenderer(H)};
_.F.computeButtonRenderer=function(H){return _.e(H,_.cg)};
_.F.computeContinuationItemRenderer=function(H){return _.e(H,_.S9)};
_.F.computeShowButton=function(H){var C;return!((C=this.computeContinuationItemRenderer(H))==null||!C.button)};
_.F.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]]"}}}}}};
_.F.attached=function(){this.isShowRepliesVisible=!0};
_.F.dataChanged=function(){var H=this.expanderContents;H&&(H.hidden=!0);this.isLoading=!1};
_.F.endsInContinuation=function(H){return!!H&&H.length>0&&!!this.computeContinuationItemRenderer(H[H.length-1])};
_.F.computeShouldShowHideRepliesButton=function(H,C){return!H&&C};
_.F.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.F.isLoadingChanged=function(){this.isLoading&&!this.JSC$15911_spinnerEl&&(this.JSC$15911_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.mY(this.expanderContents).appendChild(this.JSC$15911_spinnerEl));this.JSC$15911_spinnerEl&&(this.JSC$15911_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var H;(H=this.contents)==null||H.classList.remove("reloading")}};
_.F.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var H=_.e(this.data.viewReplies,_.cg);H&&this.ytRendererBehavior.logExplicitClick(H);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.F.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var H=_.e(this.data.hideReplies,_.cg);H&&this.ytRendererBehavior.logExplicitClick(H);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.F.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var H=_.mY(this.hostElement).querySelector("#expander-contents");H&&(H.hidden=this.isShowRepliesVisible)}};
_.F.computeAlign=function(){if(this.modern){var H;return!((H=this.data)==null?0:H.viewRepliesCreatorThumbnail)}};
_.JJ.Object.defineProperties(F3.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var H,C;return this.endsInContinuation((H=this.data)==null?void 0:H.contents)||this.commentThreadingEnabled&&this.endsInContinuation((C=this.data)==null?void 0:C.subThreads)}}});
F3.prototype.isShowMoreChanged=F3.prototype.isShowMoreChanged;F3.prototype.isLoadingChanged=F3.prototype.isLoadingChanged;F3.prototype.triggerFirstContinuation=F3.prototype.triggerFirstContinuation;F3.prototype.dataChanged=F3.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],F3.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],F3.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.v(_.EH),_.K("design:type",Object)],F3.prototype,"ytContinuationHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],F3.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],F3.prototype,"modern",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],F3.prototype,"commentThreadingEnabled",void 0);_.D([_.V(),_.K("design:type",Boolean)],F3.prototype,"expanded",void 0);
_.D([_.V(),_.K("design:type",Function)],F3.prototype,"toggleExpanded",void 0);_.D([_.V(),_.K("design:type",Array)],F3.prototype,"teasers",void 0);_.D([_.V(),_.K("design:type",Boolean)],F3.prototype,"isLoading",void 0);_.D([_.V({value:!0}),_.K("design:type",Boolean)],F3.prototype,"isShowRepliesVisible",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],F3.prototype,"useNewFormatting",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],F3.prototype,"isWatchGrid",void 0);
_.D([_.V(),_.K("design:type",Object)],F3.prototype,"buttonOverrides",void 0);_.D([_.lA("#expander-contents"),_.K("design:type",HTMLElement)],F3.prototype,"expanderContents",void 0);_.D([_.lA("ytd-continuation-item-renderer"),_.K("design:type",Object)],F3.prototype,"continuationItemRenderer",void 0);_.D([_.lA("#contents"),_.K("design:type",HTMLElement)],F3.prototype,"contents",void 0);
_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],F3.prototype,"dataChanged",null);_.D([_.l("data.contents","data.subThreads.*"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],F3.prototype,"hasContinuation",null);_.D([_.Gz("yt-expander-more-tapped"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],F3.prototype,"triggerFirstContinuation",null);
_.D([_.fx("isLoading"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],F3.prototype,"isLoadingChanged",null);_.D([_.fx("isShowRepliesVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],F3.prototype,"isShowMoreChanged",null);_.D([_.h({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],F3);
_.B(F3,"ytd-comment-replies-renderer",function(){if(EGV!==void 0)return EGV;var H=document.createElement("template");_.f(H,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[commentThreadingEnabled]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div hidden="[[!shouldShowCollapsedThreads(data.viewReplies, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[teasers]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread class="style-scope ytd-comment-replies-renderer">\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n        </ytd-comment-thread-renderer>\n      </div>\n    </yt-sub-thread>\n  </template>\n  <yt-sub-thread is-button="" class="style-scope ytd-comment-replies-renderer">\n    <div class="show-replies-button style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies-sub-thread" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowMoreTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </yt-sub-thread>\n</div>\n<div hidden="[[!shouldShowExpandedThreads(data.subThreads, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread is-button="[[computeIsContinuationItem(item)]]" class="style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n        </ytd-comment-thread-renderer>\n      </template>\n      <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-continuation-item-renderer button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="[[computeShowButton(item)]]" class="style-scope ytd-comment-replies-renderer">\n        </ytd-continuation-item-renderer>\n      </template>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread is-button="" class="style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="less-replies-sub-thread" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </yt-sub-thread>\n  </template>\n</div>\n');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return EGV=H},{mode:1});var XXd;var ZX=function(){var H=_.X.apply(this,arguments)||this;H.isOpen=!1;H.commentDialog=null;H.useSmallAvatars=_.E("small_avatars_for_comments");H.useSmallAvatarsEngagementPanelOnly=_.E("small_avatars_for_comments_ep");H.placeholderFocusListener=null;H.hasOpenedDialog=!1;H.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return H};
_.G(ZX,_.X);_.F=ZX.prototype;_.F.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]]"}}}}}};
_.F.ready=function(){var H=this,C=_.mY(this.hostElement).querySelector("#placeholder-area"),S=_.mY(this.hostElement).querySelector("#simplebox-placeholder"),w=function(A){A.stopPropagation();A instanceof KeyboardEvent&&A.type==="keypress"&&A.keyCode!==13&&A.keyCode!==32||H.openDialog()};
this.placeholderFocusListener=w;S.addEventListener("focus",this.placeholderFocusListener);C.addEventListener("tap",w);C.addEventListener("keypress",w)};
_.F.maybeRemoveFocusEventListener=function(){var H;(H=this.data)!=null&&H.prepareAccountEndpoint&&!_.E("web_comments_simplebox_modal_focus_on_tap_ks")&&(H=_.mY(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(H.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.F.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.F.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.E("web_comment_simplebox_resolve_polymer_command_ks")?_.eU.instance.resolveCommand(this.data.prepareAccountEndpoint):_.uJ(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var H=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);H&&this.ytdOpenPopupBehavior.openPopup(H);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.mY(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.F.onYtCommentboxDismiss=function(H){H.stopPropagation();this.isOpen=!1};
_.F.onCreateCommentAction=function(H){this.get("createCommentAction.contents",H)&&(this.isOpen=!1)};
_.F.computeCommentDialog=function(H){return{placeholderText:H.placeholderText,authorThumbnail:H.authorThumbnail,submitButton:H.submitButton,imageButton:H.imageButton,cancelButton:H.cancelButton,emojiButton:H.emojiButton,emojis:H.emojis,emojiPicker:H.emojiPicker,aadcGuidelinesStateEntityKey:H.aadcGuidelinesStateEntityKey,openAadcDialog:H.openAadcDialog,unicodeEmojisUrl:H.unicodeEmojisUrl}};
_.F.onHideIdentityChip=function(H){_.e(H,jB_)&&this.set("data.placeholderText",_.e(H,jB_).placeholderText)};
ZX.prototype.onYtCommentboxDismiss=ZX.prototype.onYtCommentboxDismiss;ZX.prototype.dataChanged=ZX.prototype.dataChanged;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],ZX.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.OY),_.K("design:type",Object)],ZX.prototype,"ytdOpenPopupBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],ZX.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],ZX.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],ZX.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],ZX.prototype,"isOpen",void 0);_.D([_.V(),_.K("design:type",Object)],ZX.prototype,"commentDialog",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],ZX.prototype,"engagementPanel",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],ZX.prototype,"useSmallAvatars",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],ZX.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],ZX.prototype,"enableCreationBox",void 0);_.D([_.V(),_.K("design:type",Boolean)],ZX.prototype,"showCreateDialog",void 0);
_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ZX.prototype,"dataChanged",null);_.D([_.Gz("yt-commentbox-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],ZX.prototype,"onYtCommentboxDismiss",null);_.D([_.h({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],ZX);
_.B(ZX,"ytd-comment-simplebox-renderer",function(){if(XXd!==void 0)return XXd;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return XXd=H},{mode:1});var QHd;_.hg("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var cL=function(){var H=_.X.apply(this,arguments)||this;H.addHoverEffect=_.E("swatcheroo_comments_hover_effect");H.useSmallAvatars=_.E("small_avatars_for_comments");H.scrollingEnabled=_.E("web_comment_threading_scroll_on_collapse");H.threadHovered=!1;H.expanded=!1;H.removed=!1;H.teasers=[];H.actionMap=H.configureActionMap();H.toggleExpanded=function(){H.expanded=!H.expanded;!H.expanded&&H.scrollingEnabled&&_.q3(H.hostElement,"yt-scroll-to-comment-element",[H.commentElement])};
return H};
_.G(cL,_.X);_.F=cL.prototype;_.F.configureActionMap=function(){return _.E("web_delhi_comment_threads")?{"yt-create-comment-reply-action":"createCommentReplyAction","yt-remove-comment-action":"removeCommentAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction"}:{}};
_.F.createCommentReplyAction=function(H){H=_.e(H,S2d);if(H!=null&&H.contents){var C=H.replyToCommentId,S=H.parentCommentId,w,A=(w=this.commentViewModel)==null?void 0:w.commentId;(A===C||A===S&&!C)&&this.attachReply(H.contents)}};
_.F.attachReply=function(H){var C;((C=this.data)==null?0:C.replies)?(C=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+C+".continuationItemRenderer")?C===0?this.push("teasers",H):this.splice("data.replies.commentRepliesRenderer.subThreads",C,0,H):this.push("data.replies.commentRepliesRenderer.subThreads",H)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[H],viewReplies:{buttonRenderer:{text:_.cF(_.fL("VIEW_REPLIES",
void 0,"View replies")),icon:{iconType:"EXPAND"}}}}}),this.expanded=!0)};
_.F.onAppendContinuationItemsActionFinished=function(){this.teasers.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.k$(this.teasers))),this.set("teasers",[]))};
_.F.removeCommentAction=function(H){H=_.e(H,Jyi);var C=H==null?void 0:H.commentId,S;C&&((S=this.commentViewModel)==null?void 0:S.commentId)===C&&this.maybeRemoveComment(H.actionResult)};
_.F.banAuthorAction=function(H){H=_.e(H,iqP);var C=H==null?void 0:H.commentId,S;C&&((S=this.commentViewModel)==null?void 0:S.commentId)===C&&this.maybeRemoveComment(H.actionResult)};
_.F.hideReportedCommentAction=function(H){H=_.e(H,eLd);var C=H==null?void 0:H.commentId,S;C&&((S=this.commentViewModel)==null?void 0:S.commentId)===C&&this.maybeRemoveComment(H.actionResult)};
_.F.maybeRemoveComment=function(H){H&&H.status==="STATUS_SUCCEEDED"&&(this.feedbackText=H.feedbackText||_.cF("Reply removed"),this.removed=!0)};
_.F.onTap=function(H){if(this.addHoverEffect&&!this.engagementPanel&&!_.ww(_.Ar(H)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var C;((C=window.getSelection())==null?0:C.toString().length)||_.uJ({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.F.attached=function(){var H=this;this.isSubThread&&(this.expanded=!0);var C;(C=this.commentThreadHitbox)==null||C.addEventListener("mouseover",function(){H.threadHovered=!0});
var S;(S=this.commentThreadHitbox)==null||S.addEventListener("mouseout",function(){H.threadHovered=!1});
var w;(w=this.commentThreadHitbox)==null||w.addEventListener("click",function(){H.maybeToggleExpanded()})};
_.F.maybeToggleExpanded=function(){var H,C,S,w=(H=this.data)==null?void 0:(C=H.replies)==null?void 0:(S=C.commentRepliesRenderer)==null?void 0:S.subThreads,A;(w==null?void 0:w.length)===1&&((A=_.e(w[0],_.S9))==null?0:A.button)&&this.expanded||this.toggleExpanded()};
_.JJ.Object.defineProperties(cL.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.data)!=null&&H.commentViewModel)return _.e(this.data.commentViewModel,mLM)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var H,C,S;return _.E("web_delhi_comment_threads")&&!!((H=this.data)==null?0:(C=H.replies)==null?0:(S=C.commentRepliesRenderer)==null?0:S.subThreads)}}});
cL.prototype.onTap=cL.prototype.onTap;cL.prototype.onAppendContinuationItemsActionFinished=cL.prototype.onAppendContinuationItemsActionFinished;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],cL.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],cL.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],cL.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],cL.prototype,"addHoverEffect",void 0);_.D([_.V(),_.K("design:type",Object)],cL.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],cL.prototype,"useSmallAvatars",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],cL.prototype,"scrollingEnabled",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],cL.prototype,"isSubThread",void 0);
_.D([_.lA(".thread-hitbox"),_.K("design:type",HTMLElement)],cL.prototype,"commentThreadHitbox",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],cL.prototype,"threadHovered",void 0);_.D([_.lA("#comment"),_.K("design:type",HTMLElement)],cL.prototype,"commentElement",void 0);_.D([_.V(),_.K("design:type",Object)],cL.prototype,"expanded",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],cL.prototype,"removed",void 0);
_.D([_.V(),_.K("design:type",Object)],cL.prototype,"feedbackText",void 0);_.D([_.V(),_.K("design:type",Array)],cL.prototype,"teasers",void 0);_.D([_.Gz("yt-append-continuation-items-action-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cL.prototype,"onAppendContinuationItemsActionFinished",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],cL.prototype,"commentViewModel",null);
_.D([_.l("data.replies"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],cL.prototype,"hasSubThreading",null);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],cL.prototype,"engagementPanel",void 0);_.D([_.Gz("tap"),_.Gz("click"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],cL.prototype,"onTap",null);_.D([_.h({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],cL);
_.B(cL,"ytd-comment-thread-renderer",function(){if(QHd!==void 0)return QHd;var H=document.createElement("template");_.f(H,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <div class="removed-placeholder style-scope ytd-comment-thread-renderer" hidden="[[!removed]]">\n    <yt-icon icon="WARNING_FILLED" class="style-scope ytd-comment-thread-renderer"></yt-icon>\n    <yt-formatted-string text="[[feedbackText]]" class="style-scope ytd-comment-thread-renderer"></yt-formatted-string>\n  </div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" hidden="[[removed]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer data="[[data.replies.commentRepliesRenderer]]" expanded="[[expanded]]" teasers="[[teasers]]" toggle-expanded="[[toggleExpanded]]" class="style-scope ytd-comment-thread-renderer">\n    </ytd-comment-replies-renderer>\n  </template>\n</div>\n<div class="thread-hitbox style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"></div>\n');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return QHd=H},{mode:_.mn("kevlar_poly_si_batch_j025")?1:2});var d0d;var Ya=function(){var H=_.X.apply(this,arguments)||this;H.compactHeader=_.E("web_watch_compact_comments_header");H.hidePanelButton=!1;H.isPostSchedulingEnabled=_.E("enable_post_scheduling");H.hasFinishedStamping=!1;H.JSC$15934_handleOpenPostCommentDialogActionAfterStamp=!1;H.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return H};
_.G(Ya,_.X);_.F=Ya.prototype;
_.F.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"}}}};
_.F.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.F.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$15934_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.F.onYtServiceRequestSent=function(H,C){if(!_.E("kevlar_command_handler")&&C.actions)for(H=0;H<C.actions.length;H++){var S=C.actions[H];_.e(S,lNY)&&_.mY(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.e(S,lNY))}};
_.F.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var H;if(this.getPrefilledBackstagePostDialog((H=this.data)==null?void 0:H.actions)){_.mY(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var C=_.mY(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;C&&_.wM(this,function(){C.focus();C.openDialog&&C.openDialog()})}}else this.hasActionsChange=!0};
_.F.computeIsBackstage=function(H){return H};
_.F.onYtCommentboxDismiss=function(){_.mY(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.F.removePrefilledDialog=function(H){if(H==null?0:H.actions){for(var C=H.actions.length-1;C>=0;C--){var S=void 0;((S=_.e(H.actions[C],Pt1))==null?0:S.dialog)&&delete H.actions[C]}this.set("data",void 0);this.set("data",H)}};
_.F.getPrefilledBackstagePostDialog=function(H){if(H)for(var C=0;C<H.length;C++){var S=H[C],w=void 0;if((w=_.e(S,Pt1))==null?0:w.dialog)return _.e(S,Pt1).dialog}return null};
_.F.computeBackstagePostDialog=function(H){return H&&(this.getPrefilledBackstagePostDialog(H.actions)||H.createRenderer)};
_.F.dataChanged=function(){if(this.data){var H=this.data.customEmojis,C=this.data.unicodeEmojisUrl;_.Nh.clear();C&&_.vhd(_.Nh,C);H&&_.Nh.load(H)}};
_.F.handleSignalActionOpenPostCommentDialogAction=function(){var H=_.mY(this.hostElement).querySelector("ytd-comment-simplebox-renderer");H?H.openDialog():this.JSC$15934_handleOpenPostCommentDialogActionAfterStamp=!0};
_.F.onPostHeaderTap=function(){var H;((H=this.data)==null?0:H.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.JJ.Object.defineProperties(Ya.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.E("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var H,C,S,w,A,J,c;return!this.hidePanelButton&&_.E("kevlar_watch_comments_panel_button")&&((c=_.e((H=this.data)==null?void 0:(C=H.sortMenu)==null?void 0:(S=C.sortFilterSubMenuRenderer)==null?void 0:(w=S.subMenuItems)==null?void 0:(A=w[0])==null?void 0:(J=A.serviceEndpoint)==null?void 0:J.commandMetadata,_.u9))==null?void 0:c.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.fL("MINIPLAYER_EXPAND_LABEL"),text:_.sx(_.fL("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
Ya.prototype.dataChanged=Ya.prototype.dataChanged;Ya.prototype.onYtCommentboxDismiss=Ya.prototype.onYtCommentboxDismiss;Ya.prototype.observePrefilledBackstagePostDialog=Ya.prototype.observePrefilledBackstagePostDialog;Ya.prototype.onYtServiceRequestSent=Ya.prototype.onYtServiceRequestSent;Ya.prototype.onStampFinished=Ya.prototype.onStampFinished;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Ya.prototype,"ytComponentBehavior",void 0);
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],Ya.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Ya.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Ya.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Ya.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Ya.prototype,"compactHeader",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],Ya.prototype,"engagementPanel",void 0);_.D([_.V(),_.K("design:type",Object)],Ya.prototype,"hidePanelButton",void 0);_.D([_.V({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Ya.prototype,"isBackstage",void 0);_.D([_.V({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.K("design:type",Object)],Ya.prototype,"backstagePostDialog",void 0);
_.D([_.V(),_.K("design:type",Object)],Ya.prototype,"isPostSchedulingEnabled",void 0);_.D([_.V({reflectToAttribute:!0}),_.l("data","showCommentsPanelButton"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ya.prototype,"useSpaceBetween",null);_.D([_.V({reflectToAttribute:!0}),_.l("data","hidePanelButton"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ya.prototype,"showCommentsPanelButton",null);
_.D([_.l("data","showCommentsPanelButton"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ya.prototype,"commentsPanelButtonData",null);_.D([_.Gz("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ya.prototype,"onStampFinished",null);_.D([_.Gz("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.IW]),_.K("design:returntype")],Ya.prototype,"onYtServiceRequestSent",null);
_.D([_.fx("data.actions"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ya.prototype,"observePrefilledBackstagePostDialog",null);_.D([_.Gz("yt-commentbox-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Ya.prototype,"onYtCommentboxDismiss",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ya.prototype,"dataChanged",null);
_.D([_.h({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],Ya);
_.B(Ya,"ytd-comments-header-renderer",function(){if(d0d!==void 0)return d0d;var H=document.createElement("template");_.f(H,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" on-click="onPostHeaderTap" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return d0d=H},{mode:1});var POP;var zI=function(){return _.X.apply(this,arguments)||this};
_.G(zI,_.X);_.D([_.V(),_.K("design:type",Object)],zI.prototype,"data",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],zI.prototype,"ytRendererBehavior",void 0);_.D([_.h({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],zI);
_.B(zI,"ytd-destination-button-renderer",function(){if(POP!==void 0)return POP;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return POP=H},{mode:1});var $0d;var Mw=function(){var H=_.X.apply(this,arguments)||this;H.isRichGrid=!1;H.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};return H};
_.G(Mw,_.X);_.F=Mw.prototype;_.F.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.F.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.F.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.F.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var H;if((H=this.data)==null||!H.isExpanded){H=this.hostElement.clientWidth;var C;if(H&&(C=this.data)!=null&&C.destinationButtons){C=Math.floor((H+4)/214);H=this.data.destinationButtons.length;var S=Math.ceil(H/C);this.fullyVisibleRows=H%C===1&&S===2?1:Math.min(S,2);this.isShowMoreVisible=this.fullyVisibleRows<S}}}};
_.F.updateRichGridDestinationButtonsVisibility=function(){var H,C;if(this.isRichGrid&&((H=this.data)==null||!H.isExpanded)&&(C=this.data)!=null&&C.destinationButtons){H=this.richGridItemsPerRow+1;C=this.data.destinationButtons.length;var S=Math.ceil(C/H);this.fullyVisibleRows=C%H===1&&S===2?1:Math.min(S,2);this.isShowMoreVisible=this.fullyVisibleRows<S}};
_.F.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
Mw.prototype.updateRichGridDestinationButtonsVisibility=Mw.prototype.updateRichGridDestinationButtonsVisibility;_.D([_.V(),_.K("design:type",Object)],Mw.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Number)],Mw.prototype,"fullyVisibleRows",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Mw.prototype,"isShowMoreVisible",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Mw.prototype,"isRichGrid",void 0);
_.D([_.V({selector:_.BF,value:0}),_.K("design:type",Number)],Mw.prototype,"richGridItemsPerRow",void 0);_.D([_.V(),_.K("design:type",Object)],Mw.prototype,"gridStateActionMap",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Mw.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Mw.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],Mw.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],Mw.prototype,"ytdReduxBehavior",void 0);_.D([_.fx("data","richGridItemsPerRow"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Mw.prototype,"updateRichGridDestinationButtonsVisibility",null);_.D([_.h({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],Mw);
_.B(Mw,"ytd-destination-shelf-renderer",function(){if($0d!==void 0)return $0d;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return $0d=H},{mode:1});var pXU;var qw=function(){return _.X.apply(this,arguments)||this};
_.G(qw,_.X);qw.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"}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],qw.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],qw.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],qw.prototype,"data",void 0);_.D([_.h({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],qw);
_.B(qw,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(pXU!==void 0)return pXU;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return pXU=H},{mode:1});var k1_;var TI=function(){var H=_.X.apply(this,arguments)||this;H.disableAnimation=!1;H.isSlimlineSurvey=!1;H.isSlimlineSurveyFollowUp=!1;H.isShortsStyle=!1;return H};
_.G(TI,_.X);TI.prototype.onTap=function(H){H.preventDefault();this.data&&_.M3(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.JJ.Object.defineProperties(TI.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 H,C,S,w,A;return((H=this.data)==null?0:H.checked)?(C=this.data)==null?void 0:(S=C.onStateIcon)==null?void 0:S.iconType:(w=this.data)==null?void 0:(A=w.defaultStateIcon)==null?void 0:A.iconType}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],TI.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],TI.prototype,"ytComponentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],TI.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],TI.prototype,"disableAnimation",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],TI.prototype,"isSlimlineSurvey",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],TI.prototype,"isSlimlineSurveyFollowUp",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],TI.prototype,"isShortsStyle",void 0);_.D([_.l("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],TI.prototype,"isAnimatedIcon",null);
_.D([_.l("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.K("design:type",Number),_.K("design:paramtypes",[])],TI.prototype,"iconSize",null);_.D([_.l("isShortsStyle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],TI.prototype,"isDarkTheme",null);_.D([_.l("data.checked"),_.K("design:type",Object),_.K("design:paramtypes",[])],TI.prototype,"icon",null);_.D([_.h({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],TI);
_.B(TI,"ytd-rating-survey-option-renderer",function(){if(k1_!==void 0)return k1_;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return k1_=H},{mode:2});var hY7;var m0=function(){var H=_.X.apply(this,arguments)||this;H.firstResponseText=null;H.lastResponseText=null;H.selectedNonStarOption=null;H.hideOptions=!1;H.hideUndoButton=!0;H.disableAnimation=!1;H.showResponseRangeText=!1;H.selectedRatingIndex=-1;H.isSlimlineSurvey=!1;H.isSlimlineSurveyFollowUp=!1;H.isShortsStyle=!1;H.slimlineSurveyRatingSelectedIndex=-1;return H};
_.G(m0,_.X);_.F=m0.prototype;_.F.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.F.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.F.onOptionChange=function(H,C){var S=this;H=C.onStateIcon&&C.defaultStateIcon&&C.onStateIcon.iconType===C.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(c,Y){c.responseText===C.responseText?S.isSlimlineSurvey?(S.selectedRatingIndex=Y,S.ytdReduxBehavior.dispatch(Vud(Y))):(S.setSurveyOptionValue(Y,!0,"checked"),S.setSurveyOptionValue(Y,!0,"selected")):(S.setSurveyOptionValue(Y,!1,"checked"),S.setSurveyOptionValue(Y,
!1,"selected"))});
else if(H)this.selectedNonStarOption=C,this.hideOptions=!0;else{var w=this.ytRendererBehavior.getSimpleString(C.responseText),A=!0;this.getOptionRenderers().forEach(function(c,Y){S.setSurveyOptionValue(Y,A,"checked");S.setSurveyOptionValue(Y,!1,"selected");S.ytRendererBehavior.getSimpleString(c.responseText)===w&&(A=!1,S.setSurveyOptionValue(Y,!0,"selected"))})}H=C.responseEndpoint;
var J;C.followUpCommand&&(J=_.e(C.followUpCommand,dgn));this.isSlimlineSurvey?(this.resetComponent(),_.q3(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.q3(this.hostElement,"ytd-inline-survey-rating-select-action",[H,J])};
_.F.showSelectedOption=function(){var H=this;_.rT.addJob(function(){var C=H.getOptionRenderers()[H.slimlineSurveyRatingSelectedIndex];H.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),C)},8,100)};
_.F.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(H){var C;return(C=_.e(H,$gV))!=null?C:{}}):[]};
_.F.onUndoClick=function(){this.resetComponent();_.q3(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.F.setSurveyOptionValue=function(H,C,S){this.notifyPath("data.ratings."+H+".ratingSurveyOptionRenderer."+S);this.set("data.ratings."+H+".ratingSurveyOptionRenderer."+S,C)};
_.F.resetComponent=function(){var H=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var C=this.getOptionRenderers(),S,w;this.firstResponseText=(w=(S=C[0])==null?void 0:S.responseText)!=null?w:null;var A,J;this.lastResponseText=(J=(A=C[C.length-1])==null?void 0:A.responseText)!=null?J:null;C.forEach(function(c,Y){H.setSurveyOptionValue(Y,!1,"checked");H.setSurveyOptionValue(Y,!1,"selected")})};
_.JJ.Object.defineProperties(m0.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
m0.prototype.onOptionChange=m0.prototype.onOptionChange;m0.prototype.dataChanged=m0.prototype.dataChanged;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],m0.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],m0.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],m0.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],m0.prototype,"data",void 0);
_.D([_.V(),_.K("design:type",Object)],m0.prototype,"firstResponseText",void 0);_.D([_.V(),_.K("design:type",Object)],m0.prototype,"lastResponseText",void 0);_.D([_.V(),_.K("design:type",Object)],m0.prototype,"selectedNonStarOption",void 0);_.D([_.V(),_.K("design:type",Object)],m0.prototype,"hideOptions",void 0);_.D([_.V(),_.K("design:type",Object)],m0.prototype,"hideUndoButton",void 0);_.D([_.V(),_.K("design:type",Object)],m0.prototype,"disableAnimation",void 0);
_.D([_.V(),_.K("design:type",Object)],m0.prototype,"showResponseRangeText",void 0);_.D([_.V(),_.K("design:type",Object)],m0.prototype,"selectedRatingIndex",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],m0.prototype,"isSlimlineSurvey",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],m0.prototype,"isSlimlineSurveyFollowUp",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],m0.prototype,"isShortsStyle",void 0);_.D([_.V({selector:function(H){return H.ui.slimlineSurveyRatingSelectedIndex}}),
_.K("design:type",Object)],m0.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.D([_.l("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],m0.prototype,"isSingleSelect",null);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],m0.prototype,"dataChanged",null);
_.D([_.Gz("ytd-rating-survey-option-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],m0.prototype,"onOptionChange",null);_.D([_.h({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],m0);
_.B(m0,"ytd-rating-survey-renderer",function(){if(hY7!==void 0)return hY7;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return hY7=H},{mode:1});var nG1;var rui;var BNd;var jKw=(Ej.FIRSTDAYOFWEEK+1)%7,D0U=function(H,C,S,w){var A="";if(w.selection&&iFZ(w.selection))yB(H,w.selection)&&(A+=" selected");else if(w.selection&&CNi(w.selection)){var J=w.selection.selectionState||"START_DATE";yB(H,w.selection.start)&&(A+=" period-start ",J==="START_DATE"&&(A+="selected"));yB(H,w.selection.end)&&(A+=" period-end ",J==="END_DATE"&&(A+="selected"));NN(H,w.selection.start)||NN(w.selection.end,H)||(A+=" highlighted")}if(NN(C,w.start)||NN(w.end,C))A+=" disabled";w.circleToday&&
yB(C,S)&&(A+=" today");return A};var WL=function(){return _.X.apply(this,arguments)||this};
_.G(WL,_.X);_.F=WL.prototype;_.F.attached=function(){var H=this;_.wM(this,function(){H.JSC$15968_calendarMain.scrollHeight>0&&(H.calendarConfig.selection?H.scrollToDate(SOE(H.calendarConfig.selection)):H.scrollToDate(H.calendarConfig.end))})};
_.F.updateSelection=function(H){H=wzu(Object.assign({},this.calendarConfig,{selection:H}),D0U);this.splice.apply(this,["renderData.months",0,H.length].concat(_.k$(H)))};
_.F.scrollToDate=function(H){this.renderData&&(H=AeU(H,this.renderData),H!==void 0&&this.JSC$15968_calendarMain.scrollToIndex(H))};
_.F.scrollToNextMonth=function(){this.JSC$15968_calendarMain.scrollToIndex(this.JSC$15968_calendarMain.firstVisibleIndex+1)};
_.F.scrollToPrevMonth=function(){this.JSC$15968_calendarMain.firstVisibleIndex===0&&this.JSC$15968_calendarMain.scrollTo(0,0);this.JSC$15968_calendarMain.scrollToIndex(this.JSC$15968_calendarMain.firstVisibleIndex-1)};
_.F.handleDayClick=function(H){_.q3(this.hostElement,"ytd-calendar-date-clicked",[H.model.day.date])};
_.F.handleDayMouseDown=function(H){H.preventDefault();_.q3(this.hostElement,"ytd-calendar-date-mousedown",[H.model.day.date])};
_.F.handleDayMouseUp=function(H){_.q3(this.hostElement,"ytd-calendar-date-mouseup",[H.model.day.date])};
_.F.handleDayMouseEnter=function(H){H.preventDefault();_.q3(this.hostElement,"ytd-calendar-date-mouseenter",[H.model.day.date])};
_.F.handleDayMouseLeave=function(H){_.q3(this.hostElement,"ytd-calendar-date-mouseleave",[H.model.day.date])};
_.JJ.Object.defineProperties(WL.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var H=this.calendarConfig,C=D0U;C=C===void 0?D0U:C;for(var S=[],w=0;w<7;w++)S.push(Ej.NARROWWEEKDAYS[(w+jKw)%7]);return{months:wzu(H,C),daysOfWeekLabel:S}}}});
_.D([_.V(),_.K("design:type",Object)],WL.prototype,"calendarConfig",void 0);_.D([_.lA("#calendar-main"),_.K("design:type",Object)],WL.prototype,"JSC$15968_calendarMain",void 0);_.D([_.l("calendarConfig"),_.K("design:type",Object),_.K("design:paramtypes",[])],WL.prototype,"renderData",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],WL);
_.B(WL,"ytd-scrollable-calendar",function(){if(BNd!==void 0)return BNd;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return BNd=H},{mode:2});var KMn;var tTn;var y2=function(){var H=_.X.apply(this,arguments)||this;H.hideCharCounter=!1;H.hideLabel=!1;H.noLabelFloat=!1;H.autoValidate=!0;H.invalid=!1;H.disabled=!1;H.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return H};
_.G(y2,_.X);_.F=y2.prototype;_.F.reset=function(H){this.value=H&&this.data?this.data.value=H:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.F.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.F.focusTextInput=function(){this.input.focus()};
_.F.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()};
_.F.valueChanged=function(){var H,C;if(((H=this.data)==null?0:H.value)||((C=this.data)==null?void 0:C.value)==="")this.value=this.data.value;else{var S;((S=this.data)==null?void 0:S.value)!==void 0||this.value||(this.value="")}};
_.F.computeLabel=function(H,C){return C?"":_.jt(H)};
_.F.computeAriaLabel=function(H,C){return C?_.jt(H):""};
_.F.computeErrorMessage=function(H,C,S,w){!H&&C?H=S||this.strings.REQUIRED_LABEL:(H=_.jt(w),H=_.z6(H,"&")?"document"in _.s$?c_7(H):YnW(H):H);return H};
_.F.computeType=function(H){return H==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.F.onTextValueChanged=function(H){this.value=H.detail.value;var C;(C=this.onValueChanged)==null||C.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.F.handleUpdateTextInputFormFieldRendererCommand=function(H){(H=_.e(H,CMY))&&this.data&&this.data.id===H.id&&(H.invalid!==void 0&&(this.invalid=H.invalid),H.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",H.invalidValueErrorMessage))};
_.F.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uQ("value-changed",this.value))};
_.F.updateInvalidFromBinding=function(H){this.invalid=H.detail.value};
_.JJ.Object.defineProperties(y2.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var H;return!((H=this.data)==null||!H.isMultiline)}}});
y2.prototype.valueChangedForBinding=y2.prototype.valueChangedForBinding;y2.prototype.valueChanged=y2.prototype.valueChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],y2.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],y2.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],y2.prototype,"ytActionHandlerBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],y2.prototype,"data",void 0);_.D([_.V(),_.K("design:type",String)],y2.prototype,"value",void 0);_.D([_.V(),_.K("design:type",String)],y2.prototype,"pattern",void 0);_.D([_.V(),_.K("design:type",String)],y2.prototype,"errorMessage",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",String)],y2.prototype,"componentStyle",void 0);_.D([_.V(),_.K("design:type",Object)],y2.prototype,"hideCharCounter",void 0);
_.D([_.V(),_.K("design:type",Object)],y2.prototype,"hideLabel",void 0);_.D([_.V(),_.K("design:type",Object)],y2.prototype,"noLabelFloat",void 0);_.D([_.V(),_.K("design:type",Function)],y2.prototype,"onValueChanged",void 0);_.D([_.V(),_.K("design:type",Boolean)],y2.prototype,"isMultilineOverride",void 0);_.D([_.V(),_.K("design:type",Object)],y2.prototype,"autoValidate",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],y2.prototype,"invalid",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],y2.prototype,"disabled",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],y2.prototype,"enableOverlayTheme",void 0);_.D([_.V({value:{REQUIRED_LABEL:_.fL("REQUIRED_LABEL",void 0,"Required")}}),_.K("design:type",Object)],y2.prototype,"strings",void 0);_.D([_.lA("#input"),_.K("design:type",Object)],y2.prototype,"input",void 0);
_.D([_.l("data","isMultilineOverride"),_.K("design:type",Object),_.K("design:paramtypes",[])],y2.prototype,"isMultiline",null);_.D([_.XJ("data.value"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],y2.prototype,"valueChanged",null);_.D([_.fx("value"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],y2.prototype,"valueChangedForBinding",null);_.D([_.Lx({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],y2);
_.B(y2,"yt-text-input-form-field-renderer",function(){if(tTn===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;KMn===void 0&&(KMn=document.createElement("template"));var w=KMn;S.call(C,w.content.cloneNode(!0),H.content.firstChild);tTn=H}H=tTn;return H},{mode:2});var Nw=function(){var H=_.X.apply(this,arguments)||this;H.data=void 0;H.selectionState="START_DATE";H.isStartDateInvalid=!1;H.isEndDateInvalid=!1;H.autoapply=!1;H.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 H};
_.G(Nw,_.X);_.F=Nw.prototype;_.F.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"}}}}};
_.F.focus=function(){this.startDateInput.focus()};
_.F.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:bK(this.data.selection.start),end:bK(this.data.selection.end)})};
_.F.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.F.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.KP(this.selectionState)}};
_.F.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.F.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.F.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.F.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var H=this.calendar.calendarConfig,C=H.end;H=FK0({start:H.start,end:this.endDate||C},this.startDateInput.value||"");this.isStartDateInvalid=!H.isValid;H.isValid&&(H=H.value,this.selection=this.endDate?{start:H,end:this.endDate}:H,this.calendar.scrollToDate(H));this.updateInvalidState()}};
_.F.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var H=this.calendar.calendarConfig,C=H.start;H=FK0({start:this.startDate||C,end:H.end},this.endDateInput.value||"");this.isEndDateInvalid=!H.isValid;H.isValid&&(H=H.value,this.selection={start:this.startDate,end:H},this.calendar.scrollToDate(H));this.updateInvalidState()}};
_.F.handleCalendarDateClicked=function(H){var C=this.selection&&SOE(this.selection),S=this.selection&&sKV(this.selection);C&&!NN(H,C)&&this.selectionState==="END_DATE"?(this.selection={start:C,end:H},this.selectionState="START_DATE"):(S&&!NN(S,H)?this.selection={start:H,end:S}:this.selection=H,this.selectionState="END_DATE")};
_.F.handleCalendarDateMouseDown=function(H){this.selection&&!iFZ(this.selection)&&(this.dragPivot=yB(H,this.selection.start)?this.selection.end:yB(H,this.selection.end)?this.selection.start:H)};
_.F.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.F.handleCalendarDateMouseEnter=function(H){this.dragPivot&&(this.selection={start:function(C,S){return NN(C,S)?C:S}(this.dragPivot,H),
end:function(C,S){return NN(C,S)?S:C}(this.dragPivot,H)},this.dragPivot||(this.selectionState="START_DATE"))};
_.F.handleCalendarDateMouseLeave=function(){};
_.F.handleCalendarSubmitDateRange=function(){this.selection&&!iFZ(this.selection)&&_.q3(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.F.updateInvalidState=function(){var H=function(C,S){S?C.setAttribute("invalid",""):C.removeAttribute("invalid")};
H(this.startDateInput,this.isStartDateInvalid);H(this.endDateInput,this.isEndDateInvalid)};
_.F.updateDateStrings=function(){this.selection&&(iFZ(this.selection)?HFZ(this.selection):(HFZ(this.selection.start),HFZ(this.selection.end)))};
_.F.updateCalendarSelection=function(H){this.calendar.updateSelection(Object.assign({},H,{selectionState:this.selectionState}))};
_.F.updateIsStartDateInvalidFromBinding=function(H){this.isStartDateInvalid=H.detail.value};
_.F.updateIsEndDateInvalidFromBinding=function(H){this.isEndDateInvalid=H.detail.value};
_.F.updateStartDateStringFromBinding=function(){};
_.F.updateEndDateStringFromBinding=function(){};
_.JJ.Object.defineProperties(Nw.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:bK(this.data.dateRangeStart),end:bK(this.data.dateRangeEnd),selection:{start:bK(this.data.selection.start),end:bK(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&SOE(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&sKV(this.selection)}}});
Nw.prototype.resetTextboxes=Nw.prototype.resetTextboxes;Nw.prototype.observeSelection=Nw.prototype.observeSelection;Nw.prototype.dataChanged=Nw.prototype.dataChanged;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],Nw.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Nw.prototype,"ytRendererstamperBehavior",void 0);_.D([_.lA("#calendar"),_.K("design:type",Object)],Nw.prototype,"calendar",void 0);
_.D([_.lA("#start-date"),_.K("design:type",Object)],Nw.prototype,"startDateInput",void 0);_.D([_.lA("#end-date"),_.K("design:type",Object)],Nw.prototype,"endDateInput",void 0);_.D([_.V(),_.K("design:type",Object)],Nw.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],Nw.prototype,"selection",void 0);_.D([_.V(),_.K("design:type",String)],Nw.prototype,"selectionState",void 0);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Nw.prototype,"calendarConfig",null);
_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Nw.prototype,"errorMessage",null);_.D([_.l("selection"),_.K("design:type",Object),_.K("design:paramtypes",[])],Nw.prototype,"startDate",null);_.D([_.l("selection"),_.K("design:type",Object),_.K("design:paramtypes",[])],Nw.prototype,"endDate",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Nw.prototype,"dataChanged",null);
_.D([_.fx("selection","selectionState"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Nw.prototype,"observeSelection",null);_.D([_.fx("selectionState"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Nw.prototype,"resetTextboxes",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],Nw);
_.B(Nw,"ytd-date-period-picker-renderer",function(){if(rui!==void 0)return rui;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return rui=H},{mode:1});var bT=function(){var H=_.X.apply(this,arguments)||this;var C={};H.actionMap=(C["ytd-date-period-picker-apply"]="handleDateRangeUpdated",C);return H};
_.G(bT,_.X);bT.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
bT.prototype.handleDateRangeUpdated=function(){};
_.D([_.V(),_.K("design:type",Object)],bT.prototype,"data",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],bT.prototype,"actionHandlerBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],bT.prototype,"rendererstamperBehavior",void 0);_.D([_.h({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],bT);
_.B(bT,"ytd-report-history-section-header-renderer",function(){if(nG1!==void 0)return nG1;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return nG1=H},{mode:1});var LMn;var gGU;var U07;var ER=function(){return _.X.apply(this,arguments)||this};
_.G(ER,_.X);_.JJ.Object.defineProperties(ER.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var H,C;return((H=this.data)==null?0:(C=H.icon)==null?0:C.iconType)?_.bJ(this.data.icon.iconType):""}}});
_.D([_.V(),_.K("design:type",Object)],ER.prototype,"data",void 0);_.D([_.l("data"),_.K("design:type",String),_.K("design:paramtypes",[])],ER.prototype,"icon",null);_.D([_.h({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],ER);
_.B(ER,"ytd-report-history-table-text-cell-renderer",function(){if(U07!==void 0)return U07;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return U07=H},{mode:1});var eO=function(){return _.X.apply(this,arguments)||this};
_.G(eO,_.X);eO.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],eO.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],eO.prototype,"data",void 0);_.D([_.h({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],eO);
_.B(eO,"ytd-report-history-table-reason-cell-renderer",function(){if(gGU!==void 0)return gGU;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return gGU=H},{mode:1});var uT=function(){return _.X.apply(this,arguments)||this};
_.G(uT,_.X);uT.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"}}}};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],uT.prototype,"rendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],uT.prototype,"data",void 0);_.D([_.h({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],uT);
_.B(uT,"ytd-report-history-table-cell-renderer",function(){if(LMn!==void 0)return LMn;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);
return LMn=H},{mode:1});var RYn;var GI=function(){var H=_.X.apply(this,arguments)||this;H.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 H};
_.G(GI,_.X);GI.prototype.onDataChanged=function(){var H;if((H=this.data)==null?0:H.style)this.componentStyle=this.getStyleName(this.data.style)};
GI.prototype.getCellForColumn=function(H){return this.cells.find(function(C){var S;return((S=_.e(C==null?void 0:C.cell,hqd)||_.e(C==null?void 0:C.cell,k$d))==null?void 0:S.columnId)===H.type})};
GI.prototype.getClassForColumn=function(H){switch(H){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
GI.prototype.getStyleName=function(H){switch(H){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.JJ.Object.defineProperties(GI.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var H;return(((H=this.data)==null?void 0:H.cells)||[]).map(function(C){return _.e(C,p4_)})}}});
GI.prototype.onDataChanged=GI.prototype.onDataChanged;_.D([_.V(),_.K("design:type",Object)],GI.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Array)],GI.prototype,"columnRenderData",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",String)],GI.prototype,"componentStyle",void 0);_.D([_.l("data"),_.K("design:type",Array),_.K("design:paramtypes",[])],GI.prototype,"cells",null);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],GI.prototype,"onDataChanged",null);_.D([_.h({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],GI);
_.B(GI,"ytd-report-history-table-row-renderer",function(){if(RYn!==void 0)return RYn;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return RYn=H},{mode:1});var InV;var ani;var ZFU={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},ce6={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var f1=function(){return _.X.apply(this,arguments)||this};
_.G(f1,_.X);f1.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"}}}}}};
f1.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.JJ.Object.defineProperties(f1.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?0:H.columns)?Tr$(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return MGE(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var H=this.tableSpec,C=ZFU;C=C===void 0?ce6:C;C=qOD(H.columnDimensions,H.columnsToShow||[],C);H=0;C=_.Z(C);for(var S=C.next();!S.done;S=C.next())S=S.value,H+=S.minWidth+S.paddingLeft+S.paddingRight;return H}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.D([_.v(_.EH),_.K("design:type",Object)],f1.prototype,"ytContinuationHandlerBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],f1.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],f1.prototype,"data",void 0);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],f1.prototype,"tableSpec",null);_.D([_.l("tableSpec"),_.K("design:type",Array),_.K("design:paramtypes",[])],f1.prototype,"columnRenderData",null);
_.D([_.l("tableSpec"),_.K("design:type",Number),_.K("design:paramtypes",[])],f1.prototype,"totalMinWidth",null);_.D([_.l("totalMinWidth"),_.K("design:type",String),_.K("design:paramtypes",[])],f1.prototype,"tableWidthStyle",null);_.D([_.h({is:"ytd-table-renderer",disableElementRegistration:!0})],f1);
_.B(f1,"ytd-table-renderer",function(){if(ani!==void 0)return ani;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return ani=H},{mode:1});var vL=function(){return _.X.apply(this,arguments)||this};
_.G(vL,_.X);vL.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}}}}}};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],vL.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],vL.prototype,"data",void 0);_.D([_.h({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],vL);
_.B(vL,"ytd-report-reason-history-modal-renderer",function(){if(InV!==void 0)return InV;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return InV=H},{mode:1});var x0V;var H2U;var i2d;var lT=function(){return _.X.apply(this,arguments)||this};
_.G(lT,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],lT.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],lT.prototype,"data",void 0);_.D([_.h({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],lT);
_.B(lT,"ytd-profile-column-stats-entry-renderer",function(){if(i2d!==void 0)return i2d;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return i2d=H},{mode:1});var CLi;var V2=function(){return _.X.apply(this,arguments)||this};
_.G(V2,_.X);V2.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],V2.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],V2.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],V2.prototype,"data",void 0);_.D([_.h({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],V2);
_.B(V2,"ytd-profile-column-stats-renderer",function(){if(CLi!==void 0)return CLi;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return CLi=H},{mode:1});var S7b;var oC=function(){return _.X.apply(this,arguments)||this};
_.G(oC,_.X);_.JJ.Object.defineProperties(oC.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.data)==null||!H.useThumbnailSize)return 80;var C,S;H=(C=this.data)==null?void 0:(S=C.thumbnail)==null?void 0:S.thumbnails;var w;return H&&((w=H[0])==null?void 0:w.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.data)==null||!H.useThumbnailSize)return 80;var C,S;H=(C=this.data)==null?void 0:(S=C.thumbnail)==null?void 0:S.thumbnails;var w;return H&&((w=H[0])==null?void 0:w.height)||80}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],oC.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],oC.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",String)],oC.prototype,"componentStyle",void 0);_.D([_.l("data.useThumbnailSize"),_.K("design:type",Object),_.K("design:paramtypes",[])],oC.prototype,"thumbnailWidth",null);
_.D([_.l("data.useThumbnailSize"),_.K("design:type",Object),_.K("design:paramtypes",[])],oC.prototype,"thumbnailHeight",null);_.D([_.h({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],oC);
_.B(oC,"ytd-profile-column-user-info-renderer",function(){if(S7b!==void 0)return S7b;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return S7b=H},{mode:1});var OR=function(){return _.X.apply(this,arguments)||this};
_.G(OR,_.X);OR.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]]"}}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],OR.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],OR.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],OR.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",String)],OR.prototype,"componentStyle",void 0);_.D([_.h({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],OR);
_.B(OR,"ytd-profile-column-renderer",function(){if(H2U!==void 0)return H2U;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return H2U=H},{mode:1});var X3=function(){var H=_.X.apply(this,arguments)||this;H.componentStyle="NON_CENTERED_PROFILE";return H};
_.G(X3,_.X);X3.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
X3.prototype.getIcon=function(H){return H?"settings:"+H.toLowerCase():null};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],X3.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],X3.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],X3.prototype,"data",void 0);_.D([_.h({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],X3);
_.B(X3,"ytd-page-introduction-renderer",function(){if(x0V!==void 0)return x0V;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return x0V=H},{mode:1});var sd_;var Q2=function(){return _.X.apply(this,arguments)||this};
_.G(Q2,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Q2.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Q2.prototype,"data",void 0);_.D([_.h({is:"ytd-report-description-renderer",disableElementRegistration:!0})],Q2);
_.B(Q2,"ytd-report-description-renderer",function(){if(sd_!==void 0)return sd_;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return sd_=H},{mode:1});var jdY;var wDi;var dG=function(){return _.X.apply(this,arguments)||this};
_.G(dG,_.X);dG.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],dG.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],dG.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],dG.prototype,"data",void 0);_.D([_.h({is:"ytd-video-report-renderer",disableElementRegistration:!0})],dG);
_.B(dG,"ytd-video-report-renderer",function(){if(wDi!==void 0)return wDi;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return wDi=H},{mode:1});var A3b;_.hg("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.hg("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var PL=function(){return _.X.apply(this,arguments)||this};
_.G(PL,_.X);PL.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]]"}}}}}};
PL.prototype.computeMessageStyle=function(H){return H};
PL.prototype.computeButtonOverride=function(H){var C;if((H==null?0:(C=H.style)==null?0:C.value)&&H.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],PL.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],PL.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],PL.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],PL.prototype,"shelf",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],PL.prototype,"panel",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.K("design:type",Boolean)],PL.prototype,"componentStyle",void 0);_.D([_.V({computed:"computeButtonOverride(data)"}),_.K("design:type",Object)],PL.prototype,"buttonOverride",void 0);_.D([_.h({is:"ytd-message-renderer",disableElementRegistration:!0})],PL);
_.B(PL,"ytd-message-renderer",function(){if(A3b!==void 0)return A3b;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return A3b=H},{mode:1});var $a=function(){return _.X.apply(this,arguments)||this};
_.G($a,_.X);$a.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"}}}};
$a.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
$a.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.JJ.Object.defineProperties($a.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var H,C;return!!(((H=this.data)==null?0:H.header)&&((C=this.data)==null?0:C.table))}}});
$a.prototype.onRequestError=$a.prototype.onRequestError;_.D([_.v(_.EH),_.K("design:type",Object)],$a.prototype,"ytContinuationHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],$a.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],$a.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],$a.prototype,"data",void 0);
_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],$a.prototype,"isUnifiedReportHistory",null);_.D([_.Gz("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$a.prototype,"onRequestError",null);_.D([_.h({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],$a);
_.B($a,"ytd-report-history-section-renderer",function(){if(jdY!==void 0)return jdY;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return jdY=H},{mode:1});var J3_;var p1=function(){var H=_.X.apply(this,arguments)||this;H.answerExpanded=!1;return H};
_.G(p1,_.X);p1.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],p1.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],p1.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],p1.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],p1.prototype,"answerExpanded",void 0);_.D([_.h({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],p1);
_.B(p1,"ytd-handles-claiming-faq-renderer",function(){if(J3_!==void 0)return J3_;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return J3_=H},{mode:1});var FI1;var Z2n=function(){return _.X.apply(this,arguments)||this};
_.G(Z2n,_.X);_.D([_.V(),_.K("design:type",Object)],Z2n.prototype,"data",void 0);_.D([_.h({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],Z2n);
_.B(Z2n,"ytd-handles-claiming-faq-section-renderer",function(){if(FI1!==void 0)return FI1;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return FI1=H},{mode:1});var c3d;var ka=function(){var H=_.X.apply(this,arguments)||this;H.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";H.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";H.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";H.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";H.leftSquiggly=H.leftSquigglyLight;H.rightSquiggly=H.rightSquigglyLight;
H.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};H.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return H};
_.G(ka,_.X);_.F=ka.prototype;_.F.updateLeftSquigglyStyle=function(){_.Ed(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.F.updateRightSquigglyStyle=function(){_.Ed(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.F.ready=function(){var H=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(H)};
_.F.onDarkModeToggledAction=function(H){H!==this.isDarkTheme&&(this.set("isDarkTheme",H),H?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.F.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
ka.prototype.updateRightSquigglyStyle=ka.prototype.updateRightSquigglyStyle;ka.prototype.updateLeftSquigglyStyle=ka.prototype.updateLeftSquigglyStyle;_.D([_.V(),_.K("design:type",Object)],ka.prototype,"data",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],ka.prototype,"isDarkTheme",void 0);_.D([_.V(),_.K("design:type",String)],ka.prototype,"leftSquiggly",void 0);_.D([_.V(),_.K("design:type",String)],ka.prototype,"rightSquiggly",void 0);
_.D([_.fx("leftSquiggly"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ka.prototype,"updateLeftSquigglyStyle",null);_.D([_.fx("rightSquiggly"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ka.prototype,"updateRightSquigglyStyle",null);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],ka.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],ka.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],ka.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],ka.prototype,"actionButtonOverride",void 0);_.D([_.h({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],ka);
_.B(ka,"ytd-handles-claiming-header-renderer",function(){if(c3d!==void 0)return c3d;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return c3d=H},{mode:1});var Y7i;var hj=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};H.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";H.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";H.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";H.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
H.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";H.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";H.image0SquigglyBackground=H.image0LightSquigglyBackground;H.image1SquigglyBackground=H.image1LightSquigglyBackground;H.image3SquigglyBackground=H.image3LightSquigglyBackground;return H};
_.G(hj,_.X);_.F=hj.prototype;_.F.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.F.onDataChanged=function(){this.updateTitleAndImages()};
_.F.onThemeChanged=function(){this.updateTitleAndImages()};
_.F.onDarkModeToggledAction=function(H){H!==this.isDarkTheme&&(this.isDarkTheme=H)};
_.F.updateImage0SquigglyBackground=function(){_.Ed(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.F.updateImage1SquigglyBackground=function(){_.Ed(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.F.updateImage3SquigglyBackground=function(){_.Ed(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.F.updateTitleAndImages=function(){var H,C;((H=this.data)==null?void 0:(C=H.titleImages)==null?void 0:C.length)===5&&(this.title0=this.data.titleImages[0].title,this.title1=this.data.titleImages[1].title,this.title2=this.data.titleImages[2].title,this.title3=this.data.titleImages[3].title,this.title4=this.data.titleImages[4].title,this.isDarkTheme?(this.image0=this.data.titleImages[0].darkImage,this.image1=this.data.titleImages[1].darkImage,this.image2=this.data.titleImages[2].darkImage,this.image3=
this.data.titleImages[3].darkImage,this.image4=this.data.titleImages[4].darkImage,this.image0SquigglyBackground=this.image0DarkSquigglyBackground,this.image1SquigglyBackground=this.image1DarkSquigglyBackground,this.image3SquigglyBackground=this.image3DarkSquigglyBackground):(this.image0=this.data.titleImages[0].lightImage,this.image1=this.data.titleImages[1].lightImage,this.image2=this.data.titleImages[2].lightImage,this.image3=this.data.titleImages[3].lightImage,this.image4=this.data.titleImages[4].lightImage,
this.image0SquigglyBackground=this.image0LightSquigglyBackground,this.image1SquigglyBackground=this.image1LightSquigglyBackground,this.image3SquigglyBackground=this.image3LightSquigglyBackground))};
hj.prototype.updateImage3SquigglyBackground=hj.prototype.updateImage3SquigglyBackground;hj.prototype.updateImage1SquigglyBackground=hj.prototype.updateImage1SquigglyBackground;hj.prototype.updateImage0SquigglyBackground=hj.prototype.updateImage0SquigglyBackground;hj.prototype.onThemeChanged=hj.prototype.onThemeChanged;hj.prototype.onDataChanged=hj.prototype.onDataChanged;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],hj.prototype,"ytActionHandlerBehavior",void 0);
_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],hj.prototype,"isDarkTheme",void 0);_.D([_.V(),_.K("design:type",Object)],hj.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],hj.prototype,"title0",void 0);_.D([_.V(),_.K("design:type",Object)],hj.prototype,"title1",void 0);_.D([_.V(),_.K("design:type",Object)],hj.prototype,"title2",void 0);_.D([_.V(),_.K("design:type",Object)],hj.prototype,"title3",void 0);
_.D([_.V(),_.K("design:type",Object)],hj.prototype,"title4",void 0);_.D([_.V(),_.K("design:type",Object)],hj.prototype,"image0",void 0);_.D([_.V(),_.K("design:type",Object)],hj.prototype,"image1",void 0);_.D([_.V(),_.K("design:type",Object)],hj.prototype,"image2",void 0);_.D([_.V(),_.K("design:type",Object)],hj.prototype,"image3",void 0);_.D([_.V(),_.K("design:type",Object)],hj.prototype,"image4",void 0);_.D([_.V(),_.K("design:type",String)],hj.prototype,"image0SquigglyBackground",void 0);
_.D([_.V(),_.K("design:type",String)],hj.prototype,"image1SquigglyBackground",void 0);_.D([_.V(),_.K("design:type",String)],hj.prototype,"image3SquigglyBackground",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hj.prototype,"onDataChanged",null);_.D([_.fx("isDarkTheme"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hj.prototype,"onThemeChanged",null);
_.D([_.fx("image0SquigglyBackground"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hj.prototype,"updateImage0SquigglyBackground",null);_.D([_.fx("image1SquigglyBackground"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hj.prototype,"updateImage1SquigglyBackground",null);
_.D([_.fx("image3SquigglyBackground"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hj.prototype,"updateImage3SquigglyBackground",null);_.D([_.h({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],hj);
_.B(hj,"ytd-handles-claiming-title-images-section-renderer",function(){if(Y7i!==void 0)return Y7i;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Y7i=H},{mode:1});var zh_;var n1=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return H};
_.G(n1,_.X);n1.prototype.ready=function(){var H=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(H)};
n1.prototype.onDarkModeToggledAction=function(H){H!==this.isDarkTheme&&this.set("isDarkTheme",H)};
n1.prototype.onCopyButtonClick=function(){var H=this,C,S,w;return _.z(function(A){return(C=H.data)!=null&&C.primaryChannelUrl?A.yield(navigator.clipboard.writeText(((S=H.data)==null?0:S.encodedChannelUrl)?H.data.encodedChannelUrl:"https://"+_.jt((w=H.data)==null?void 0:w.primaryChannelUrl)),0):A.jumpTo(0)})};
_.D([_.V(),_.K("design:type",Object)],n1.prototype,"data",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],n1.prototype,"ytComponentBehavior",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],n1.prototype,"isDarkTheme",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],n1.prototype,"ytActionHandlerBehavior",void 0);_.D([_.h({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],n1);
_.B(n1,"ytd-handles-claiming-update-social-renderer",function(){if(zh_!==void 0)return zh_;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return zh_=H},{mode:1});var MyY;var rG=function(){var H=_.X.apply(this,arguments)||this;H.JSC$16062_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";H.JSC$16062_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";H.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};H.squigglyBackground=H.JSC$16062_squigglyBackgroundLight;return H};
_.G(rG,_.X);rG.prototype.updateSquigglyBackgroundStyle=function(){_.Ed(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
rG.prototype.ready=function(){var H=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",H);this.squigglyBackground=H?this.JSC$16062_squigglyBackgroundDark:this.JSC$16062_squigglyBackgroundLight};
rG.prototype.onDarkModeToggledAction=function(H){H!==this.isDarkTheme&&(this.set("isDarkTheme",H),this.squigglyBackground=H?this.JSC$16062_squigglyBackgroundDark:this.JSC$16062_squigglyBackgroundLight)};
rG.prototype.updateSquigglyBackgroundStyle=rG.prototype.updateSquigglyBackgroundStyle;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],rG.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],rG.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],rG.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],rG.prototype,"data",void 0);
_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],rG.prototype,"isDarkTheme",void 0);_.D([_.V(),_.K("design:type",String)],rG.prototype,"squigglyBackground",void 0);_.D([_.fx("squigglyBackground"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rG.prototype,"updateSquigglyBackgroundStyle",null);_.D([_.h({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],rG);
_.B(rG,"ytd-handles-claiming-vanity-info-renderer",function(){if(MyY!==void 0)return MyY;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return MyY=H},{mode:1});var q7d;var BL=function(){var H=_.X.apply(this,arguments)||this;H.JSC$16065_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";H.JSC$16065_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";H.squigglyBackground=H.JSC$16065_squigglyBackgroundLight;H.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return H};
_.G(BL,_.X);_.F=BL.prototype;_.F.ready=function(){var H=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(H)};
_.F.onDarkModeToggledAction=function(H){H!==this.isDarkTheme&&(this.set("isDarkTheme",H),this.squigglyBackground=H?this.JSC$16065_squigglyBackgroundDark:this.JSC$16065_squigglyBackgroundLight)};
_.F.updateSquigglyBackgroundStyle=function(){_.Ed(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.F.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.F.detached=function(){this.stop()};
_.F.stop=function(){this.playerElement.stop()};
_.F.setupVideoPlayer=function(){var H=this,C,S;return _.z(function(w){C=H.data.videoId;S="http://i1.ytimg.com/vi/"+C+"/maxresdefault.jpg";H.playerElement.loadVideoWithPlayerVars({video_id:C,iurlhq:S});_.oT(w)})};
BL.prototype.onDataChanged=BL.prototype.onDataChanged;BL.prototype.updateSquigglyBackgroundStyle=BL.prototype.updateSquigglyBackgroundStyle;_.D([_.V({value:!1}),_.K("design:type",Boolean)],BL.prototype,"isDarkTheme",void 0);_.D([_.V(),_.K("design:type",String)],BL.prototype,"squigglyBackground",void 0);_.D([_.lA("#player"),_.K("design:type",Object)],BL.prototype,"playerElement",void 0);_.D([_.V(),_.K("design:type",Object)],BL.prototype,"data",void 0);
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],BL.prototype,"ytActionHandlerBehavior",void 0);_.D([_.fx("squigglyBackground"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],BL.prototype,"updateSquigglyBackgroundStyle",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],BL.prototype,"onDataChanged",null);
_.D([_.h({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],BL);
_.B(BL,"ytd-handles-claiming-video-item-renderer",function(){if(q7d!==void 0)return q7d;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return q7d=H},{mode:1});var TjV;var K1=function(){var H=_.oZ.apply(this,arguments)||this;H.dragging=!1;H.dragMouseStart=0;H.dragOffsetStart=0;H.containerWidthDiff=0;H.boundPrevClick=function(){H.set("offset",DX(H,H.offset-(H.scrollDistance||320)))};
H.boundNextClick=function(){H.set("offset",DX(H,H.offset+(H.scrollDistance||320)))};
H.boundScrollContainerMouseDown=function(C){H.dragMouseStart=C.clientX;H.dragOffsetStart=H.offset;H.dragging=!0};
H.boundScrollContainerDrag=function(C){H.dragging&&H.set("offset",DX(H,H.dragOffsetStart-(C.clientX-H.dragMouseStart)))};
H.boundMouseUp=function(){H.onMouseUp()};
H.boundWheelScroll=function(C){var S=0;Math.abs(C.deltaX)>=Math.abs(C.deltaY)?S=C.deltaX:C.shiftKey&&(S=C.deltaY);S!==0&&(H.offset+=S,C.stopPropagation(),C.preventDefault())};
H.boundChipCloudChipScrollIntoView=function(C){(C=C.detail)&&H.scrollChipIntoView(C)};
return H};
_.G(K1,_.oZ);K1.prototype.attached=function(){var H=_.mY(this.hostElement).querySelector("#scroll-container");H.addEventListener("wheel",this.boundWheelScroll);H.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);H.style.touchAction="pan-y";H.addEventListener("pointerdown",this.boundScrollContainerMouseDown);H.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
K1.prototype.detached=function(){var H=_.mY(this.hostElement).querySelector("#scroll-container");H.removeEventListener("wheel",this.boundWheelScroll);H.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);H.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);H.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
K1.prototype.reset=function(){this.set("offset",0);_.wM(this,this.setContainerWidthDiff);_.wM(this,this.setButtonsState)};
var DX=function(H,C){return Math.min(Math.max(C,0),H.containerWidthDiff)};
_.F=K1.prototype;_.F.onMouseUp=function(){this.dragging=!1};
_.F.transformContainer=function(){this.offset=DX(this,this.offset);var H=_.rh("HTML_DIR")==="rtl"?"":"-";_.mY(this.hostElement).querySelector("#chips").style.transform="translateX("+H+this.offset+"px)";_.wM(this,this.setButtonsState)};
_.F.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=DX(this,this.offset));this.atStart=this.offset<=0};
_.F.setContainerWidthDiff=function(){var H=_.mY(this.hostElement).querySelector("#scroll-container"),C=_.mY(this.hostElement).querySelector("#chips");H&&C&&(this.containerWidthDiff=C.clientWidth-H.clientWidth)};
_.F.scrollChipIntoView=function(H){var C=_.mY(this.hostElement).querySelector("#scroll-container");if(C){var S=this.atStart?0:106,w=this.atEnd?0:106;H.offsetLeft<this.offset+S?this.offset=DX(this,H.offsetLeft-S):H.offsetLeft+H.clientWidth>this.offset+C.clientWidth-w&&(this.offset=DX(this,H.offsetLeft+H.clientWidth+w-C.clientWidth))}};
K1.prototype.transformContainer=K1.prototype.transformContainer;_.D([_.V({value:0}),_.K("design:type",Number)],K1.prototype,"offset",void 0);_.D([_.V({value:!0,reflectToAttribute:!0}),_.K("design:type",Boolean)],K1.prototype,"atStart",void 0);_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],K1.prototype,"atEnd",void 0);_.D([_.V(),_.K("design:type",Number)],K1.prototype,"scrollDistance",void 0);
_.D([_.fx("offset"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],K1.prototype,"transformContainer",null);_.D([_.Od()],K1);var ma7;var WIW;var b2_=_.n(function(H){var C=H.data;H=_.Z(_.mB(!1,void 0,"icHmSe"));var S=H.next().value,w=H.next().value;H={};H=_.eJ("ytChipShapeChip",function(){a:switch(C==null?void 0:C().state){case 0:var J="ytChipShapeActive";break a;case 1:J="ytChipShapeDisabled";break a;default:J="ytChipShapeInactive"}return J},function(){var J=C().type===1||C().type===2,c=C();
return J||c!=null&&c.startIcon?c==null||!c.startIcon||c!=null&&c.text?J?"ytChipShapeEndIconPadding":(c==null?0:c.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(H.ytChipShapeFocused=function(){var J;
return S()&&((J=C())==null?void 0:J.state)!==1},H));
var A=function(J){if((C==null?void 0:C().state)!==1){var c,Y;(Y=(c=C()).onTap)==null||Y.call(c,J)}};
return _.q("chip-shape",{class:"ytChipShapeHost","on:focusin":_.um(function(){var J=_.JA().resolve(_.AA(_.PS));if(J){w(J.isKeyBoardInUse());var c,Y;(Y=(c=C()).onFocusIn)==null||Y.call(c)}return!1}),
"on:focusout":_.um(function(){w(!1);return!1})},_.q(y3U,{shouldWrapInButton:function(){return C().type!==2},
selected:function(){return C().state===0},
onClick:A,isDropdown:function(){return C().type===1},
accessibilityLabel:function(){return C().type===1?void 0:C().accessibilityLabel}},_.q("div",{class:H},_.q(_.T,{cond:function(){return C().startIcon},
then:function(){return _.q(_.lm,{icon:function(){var J;return(J=C())==null?void 0:J.startIcon},
className:function(){return C().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return C().text},_.q(NjP,{shape:C,
onClick:A}),_.q(_.pw,{model:{borderRadius:"8px"}}))))},"Sb");
b2_.idomCompat=!0;var y3U=_.n(function(H){var C=_.um(function(S){H.onClick(S);return!1});
return _.q(_.T,{cond:H.shouldWrapInButton,then:function(){return _.q("button",{class:"ytChipShapeButtonReset","on:click":C,role:function(){return H.isDropdown()?"combobox":"tab"},
"aria-label":H.accessibilityLabel,"aria-selected":H.selected},H.children)},
else:function(){return H.children}})},"Tb"),NjP=_.n(function(H){var C=H.shape;
var S=H.onClick;var w=_.um(function(A){S(A);return!1});
return _.q(_.X9,null,_.q(_.o6,{when:function(){return C().type===1}},function(){return _.q(_.lm,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.q(_.o6,{when:function(){return C().type===2}},function(){return _.q("button",{class:"ytChipShapeButtonReset",
"on:click":w},_.q(_.lm,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.q(_.o6,{when:function(){return C().type===0}},function(){return _.q(_.F9,null)}))},"Ub");_.qs(b2_,"chip-shape",{props:{data:_.GH}});var tj=function(){var H=_.X.apply(this,arguments)||this;H.disableDeselectEvent=!1;H.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return H};
_.G(tj,_.X);_.F=tj.prototype;_.F.onSelectChipCommand=function(H){if(!this.selected&&this.data&&(H=_.e(H,tKW),H.targetId&&H.targetId===this.data.targetId))this.onTap()};
_.F.onFilterChipTransformCommand=function(H){if(!this.selected&&this.data){var C;(H=(C=_.e(H,k4M))==null?void 0:C.chipUniqueId)&&H===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.F.dataChanged=function(){var H=this;_.wM(this,function(){H.data&&H.data.isSelected&&!H.selected&&(H.scrollChipIntoView(),H.onTap())})};
_.F.computeChipStyle=function(H){return H!=null?H:"STYLE_DEFAULT"};
_.F.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.q3(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.q3(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.F.onFocus=function(){var H=_.JA().resolve(_.AA(_.PS));H&&H.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.F.scrollChipIntoView=function(){_.M3(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.JJ.Object.defineProperties(tj.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return E3U({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
tj.prototype.onFocus=tj.prototype.onFocus;tj.prototype.onTap=tj.prototype.onTap;tj.prototype.dataChanged=tj.prototype.dataChanged;_.D([_.v(_.Kl),_.K("design:type",Object)],tj.prototype,"ironButtonState",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],tj.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],tj.prototype,"ytActionHandlerBehavior",void 0);
_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],tj.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.rA),_.K("design:type",Object)],tj.prototype,"ironA11yKeysBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],tj.prototype,"disableDeselectEvent",void 0);_.D([_.V(),_.K("design:type",Object)],tj.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.l("data.icon"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],tj.prototype,"hasIcon",null);
_.D([_.V({reflectToAttribute:!0}),_.l("data.uniqueId"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],tj.prototype,"isGnomeChip",null);_.D([_.V({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.K("design:type",String)],tj.prototype,"chipStyle",void 0);_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],tj.prototype,"selected",void 0);
_.D([_.l("data","selected"),_.K("design:type",Object),_.K("design:paramtypes",[])],tj.prototype,"chipShapeData",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],tj.prototype,"dataChanged",null);_.D([_.Gz("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],tj.prototype,"onTap",null);
_.D([_.Gz("focus"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],tj.prototype,"onFocus",null);_.D([_.Lx({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],tj);
_.B(tj,"yt-chip-cloud-chip-renderer",function(){if(WIW===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;ma7===void 0&&(ma7=document.createElement("template"));var w=ma7;S.call(C,w.content.cloneNode(!0),H.content.firstChild);WIW=H}H=WIW;return H},{mode:2});var E8d=_.R$.persistentPanelVisibleSelector,L1=function(){var H=_.X.apply(this,arguments)||this;H.isDarkTheme=!1;H.notSticky=!1;H.transparentBackground=!1;H.shouldHide=!1;H.disableSticky=!1;H.fluidWidth=!1;H.isClipList=!1;H.defaultChipIndex=0;H.isPlaylist=!1;H.playlistVotingAnimationEnabled=_.E("web_enable_voting_animation");H.toolbarHeight=0;H.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return H};
_.G(L1,_.X);_.F=L1.prototype;
_.F.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}}}}}};
_.F.attached=function(){var H=this;document.addEventListener("scroll",_.uA(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var C;this.toolbarHeight=((C=document.querySelector("ytd-masthead"))==null?void 0:C.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(S){H.handleIntersect(S)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){H.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.F.detached=function(){var H;(H=this.intersectionObserver)==null||H.disconnect();var C;(C=this.resizeObserver)==null||C.disconnect();document.removeEventListener("scroll",_.uA(this,this.updateChipBarWidthAndTop))};
_.F.dataChanged=function(){var H=this,C,S,w;((w=_.e((C=this.data)==null?void 0:(S=C.contents)==null?void 0:S[0],Dc1))==null?void 0:w.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var A=this.findSelectedChipIndex();this.selectedIndex!==A&&(this.selectedIndex=-1);_.wM(this,function(){H.selectedIndex=A;H.updating=!1;H.ytScrollableChipCloudBehavior.reset()})};
_.F.findSelectedChipIndex=function(){var H;if((H=this.data)==null||!H.contents)return 0;H=this.data.contents;for(var C=0;C<H.length;C++){var S=void 0;if((S=_.e(H[C],Dc1))==null?0:S.isSelected)return C}return 0};
_.F.computeStyle=function(H){return H};
_.F.handleChipCloudChipSelectAction=function(H){H=this.JSC$16086_chipsSelector.indexOf(H);H>-1&&this.JSC$16086_chipsSelector.selectIndex(H)};
_.F.handleChipCloudChipDeselectAction=function(){if(_.E("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var H,C,S,w=(S=_.e((H=this.data)==null?void 0:(C=H.contents)==null?void 0:C[0],Dc1))==null?void 0:S.navigationEndpoint;w&&_.q3(this.hostElement,"yt-browse-section-list-reload-endpoint",[w]);this.JSC$16086_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.F.onGuideIsExpandedChanged=function(){this.updateLayout()};
_.F.onPersistentPanelVisibleChanged=function(){this.updateLayout()};
_.F.onResize=function(){this.updateLayout()};
_.F.updateLayout=function(){var H=this.ytScrollableChipCloudBehavior;_.wM(H,H.setContainerWidthDiff);H=this.ytScrollableChipCloudBehavior;_.wM(H,H.setButtonsState)};
_.F.onDarkModeToggledAction=function(H){this.isDarkTheme=H};
_.F.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.F.handleIntersect=function(H){this.notSticky=this.isChannelPageGrid||this.disableSticky||H[0].intersectionRatio===1};
_.F.updateDimensions=function(){var H=this.ytRendererBehavior.parentComponent;if(H){var C,S=(C=H.headerElement)!=null?C:H;_.Ed(this.hostElement,{"--ytd-rich-grid-chips-bar-width":S.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.F.updateSelectedIndexFromBinding=function(H){this.selectedIndex=H.detail.value};
_.F.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var H;(H=this.sortFilterHeaderRendererElement)==null||H.setAttribute("is-playlist-page-with-filters","")}};
_.F.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(XBn(!this.notSticky))};
_.JJ.Object.defineProperties(L1.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 H,C,S=(H=this.data)==null?void 0:(C=H.contents)==null?void 0:C.find(function(w){return _.e(w,Uc_)});
return{sortFilterHeaderRenderer:_.e(S,Uc_)}}}});
L1.prototype.dispatchChipBarIsSticky=L1.prototype.dispatchChipBarIsSticky;L1.prototype.isPlaylistPageChanged=L1.prototype.isPlaylistPageChanged;L1.prototype.updateChipBarWidthAndTop=L1.prototype.updateChipBarWidthAndTop;L1.prototype.onResize=L1.prototype.onResize;L1.prototype.onPersistentPanelVisibleChanged=L1.prototype.onPersistentPanelVisibleChanged;L1.prototype.onGuideIsExpandedChanged=L1.prototype.onGuideIsExpandedChanged;L1.prototype.dataChanged=L1.prototype.dataChanged;
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],L1.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],L1.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],L1.prototype,"actionHandlerBehavior",void 0);_.D([_.v(_.Ix),_.K("design:type",Object)],L1.prototype,"ironResizableBehavior",void 0);_.D([_.v(),_.K("design:type",K1)],L1.prototype,"ytScrollableChipCloudBehavior",void 0);
_.D([_.v(_.q$),_.K("design:type",Object)],L1.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],L1.prototype,"data",void 0);_.D([_.V({value:0}),_.K("design:type",Number)],L1.prototype,"selectedIndex",void 0);_.D([_.V({value:320}),_.K("design:type",Number)],L1.prototype,"scrollDistance",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],L1.prototype,"isDarkTheme",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],L1.prototype,"notSticky",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],L1.prototype,"transparentBackground",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.K("design:type",String)],L1.prototype,"componentStyle",void 0);_.D([_.V({selector:_.YeV}),_.K("design:type",Boolean)],L1.prototype,"guideIsExpanded",void 0);
_.D([_.V({selector:E8d}),_.K("design:type",Boolean)],L1.prototype,"persistentPanelVisible",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],L1.prototype,"shouldHide",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],L1.prototype,"disableSticky",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],L1.prototype,"fluidWidth",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],L1.prototype,"isClipList",void 0);
_.D([_.V(),_.K("design:type",Object)],L1.prototype,"defaultChipIndex",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],L1.prototype,"isPlaylist",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],L1.prototype,"playlistVotingAnimationEnabled",void 0);_.D([_.lA("#chips"),_.K("design:type",Object)],L1.prototype,"JSC$16086_chipsSelector",void 0);
_.D([_.lA("ytd-sort-filter-header-renderer"),_.K("design:type",HTMLElement)],L1.prototype,"sortFilterHeaderRendererElement",void 0);_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],L1.prototype,"updating",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],L1.prototype,"dataChanged",null);
_.D([_.fx("guideIsExpanded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],L1.prototype,"onGuideIsExpandedChanged",null);_.D([_.fx("persistentPanelVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],L1.prototype,"onPersistentPanelVisibleChanged",null);_.D([_.Gz("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],L1.prototype,"onResize",null);
_.D([_.XJ("isChannelPageGrid","disableSticky","data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],L1.prototype,"updateChipBarWidthAndTop",null);_.D([_.l("componentStyle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],L1.prototype,"isChannelPageGrid",null);_.D([_.l("componentStyle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],L1.prototype,"isHashtagLandingPage",null);
_.D([_.fx("isPlaylistPage"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],L1.prototype,"isPlaylistPageChanged",null);_.D([_.l("componentStyle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],L1.prototype,"isPlaylistPage",null);_.D([_.l("componentStyle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],L1.prototype,"isDisableDeselectEvent",null);
_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],L1.prototype,"sortFilterHeaderRendererData",null);_.D([_.V({reflectToAttribute:!0,selector:_.y$7}),_.K("design:type",String)],L1.prototype,"frostedGlassMode",void 0);_.D([_.fx("notSticky"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],L1.prototype,"dispatchChipBarIsSticky",null);_.D([_.h({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],L1);
_.B(L1,"ytd-feed-filter-chip-bar-renderer",function(){if(TjV!==void 0)return TjV;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return TjV=H},{mode:1});var ehi;var u4d=_.n(function(H){var C=H.data;var S=H.buttonIndex;var w=H.selectedIndex;var A=H.onSelect;var J=function(){return S()===w()},c=function(){var Y,M;
return(M=(Y=C().text)==null?void 0:Y.content)!=null?M:""};
H=_.NI7();return _.q("yt-toggleable-image-button-view-model",{class:function(){var Y={};Y=(Y.toggleableImageButtonViewModelHost=!0,Y[""]=!0,Y.toggleableImageButtonViewModelSemiTransparent=w()!==-1&&!J(),Y);return _.pn(Y)},
tabindex:0,"aria-label":c,"aria-pressed":J,role:"button","on:keydown":H,"on:click":_.um(function(){A(C().onSubmitCommand);return!1})},_.q(_.T,{cond:function(){return C().logo},
then:function(Y){return _.q(_.Jg,{data:Y,className:function(){var M={};M=(M.toggleableImageButtonViewModelImage=!0,M.toggleableImageButtonViewModelCircularRadius=!(!C().backgroundColor||!C().backgroundColorDarkMode),M.toggleableImageButtonViewModelGradientRing=!!(J()&&C().backgroundColor&&C().backgroundColorDarkMode),M);return _.pn(M)},
alt:c,useWidth:!1,style:function(){if(J()&&C().backgroundColor&&C().backgroundColorDarkMode){var M=xF(Number(C().backgroundColorDarkMode),"1");var m=xF(Number(C().backgroundColor),"1");M="background: linear-gradient(180deg,"+M+","+m+") border-box;"}else M="";return M}})}}),_.q(_.pw,{model:{borderRadius:"16px"}}),_.q("p",{class:function(){var Y={};
Y=(Y.toggleableImageButtonViewModelLabel=!0,Y.toggleableImageButtonViewModelBoldText=J(),Y);return _.pn(Y)}},_.q(_.uZ,{text:function(){return C().text}})))},"Vb");
u4d.idomCompat=!0;var fiY=_.n(function(H){var C=H.data;H=_.Z(_.mB({index:-1,command:{}},void 0,"GM3umb"));var S=H.next().value,w=H.next().value;return _.q("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.q("div",{class:"nudgeFormViewModelFormOptions"},_.q(_.V4,{data:function(){return C().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(A,J){return _.q(u4d,{data:A.data,buttonIndex:J,selectedIndex:function(){return S().index},
onSelect:function(c){w({index:J(),command:c})}})}})),_.q(_.uZ,{text:function(){return C().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.q("div",{class:"nudgeFormViewModelSubmit"},_.q(_.V4,{data:function(){return C().submitButton}},{buttonViewModel:function(A){return _.q(GSn,{data:A.data,
isDisabled:function(){return S().index===-1},
onClick:function(){_.Im(S().command)}})}})))},"Wb");
fiY.idomCompat=!0;var GSn=_.n(function(H){var C=_.EF(function(){return Object.assign({},H.data(),{state:H.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.q(_.rc,{data:C,onClick:H.onClick})},"Xb");_.qs(fiY,"yt-nudge-form-view-model",{props:{data:_.GH}});var gG=function(){var H=_.X.apply(this,arguments)||this;H.roundedContainer=!0;H.buttonUpdate=_.E("web_modern_buttons");H.isDarkMode=!1;H.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return H};
_.G(gG,_.X);_.F=gG.prototype;_.F.computeNudgeStyle=function(H){return H?"modernized-nudge":""};
_.F.handleDarkModeToggledAction=function(H){this.isDarkMode=H};
_.F.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.F.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"}}}};
_.F.computeIsHorizontalButtons=function(H){return H?!!H.applyModernizedStyle&&!!H.enableHorizontalButtons&&!!H.secondaryButton:!1};
_.JJ.Object.defineProperties(gG.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var H,C;return(C=(H=this.data)==null?void 0:H.backgroundStyle)!=null?C:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var H,C;return(C=(H=this.data)==null?void 0:H.contentsLocation)!=null?C:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null?0:H.lightIconImage)}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],gG.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],gG.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.m4),_.K("design:type",Object)],gG.prototype,"ytdDismissibleItemBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],gG.prototype,"actionHandlerBehavior",void 0);
_.D([_.V({reflectToAttribute:!0}),_.l("isHideEnclosingAction"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],gG.prototype,"isHidden",null);_.D([_.V(),_.K("design:type",Object)],gG.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],gG.prototype,"roundedContainer",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],gG.prototype,"buttonUpdate",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.K("design:type",String)],gG.prototype,"nudgeStyle",void 0);_.D([_.V({reflectToAttribute:!0}),_.l("data.trimStyle"),_.K("design:type",String),_.K("design:paramtypes",[])],gG.prototype,"trimStyle",null);_.D([_.V({reflectToAttribute:!0}),_.l("data.backgroundStyle"),_.K("design:type",String),_.K("design:paramtypes",[])],gG.prototype,"backgroundStyle",null);
_.D([_.V({reflectToAttribute:!0}),_.l("data.contentsLocation"),_.K("design:type",String),_.K("design:paramtypes",[])],gG.prototype,"contentsLocation",null);_.D([_.V({reflectToAttribute:!0}),_.l("data.disableDropShadow"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],gG.prototype,"noShadow",null);_.D([_.V({reflectToAttribute:!0}),_.l("data.lightIconImage"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],gG.prototype,"noIcon",null);
_.D([_.V({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.K("design:type",Boolean)],gG.prototype,"isHorizontalButtons",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Object)],gG.prototype,"isDarkMode",void 0);_.D([_.h({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],gG);
_.B(gG,"ytd-feed-nudge-renderer",function(){if(ehi!==void 0)return ehi;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return ehi=H},{mode:_.mn("kevlar_poly_si_batch_j028")?1:2});var v87;var li7;var UR=function(){var H=_.X.apply(this,arguments)||this;H.collapsed=!1;H.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return H};
_.G(UR,_.X);UR.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"}}}};
UR.prototype.handleRatingSelect=function(){var H;((H=this.data)==null?0:H.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
UR.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],UR.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],UR.prototype,"actionHandlerBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],UR.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],UR.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.m4),_.K("design:type",Object)],UR.prototype,"ytdDismissibleItemBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],UR.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],UR.prototype,"collapsed",void 0);_.D([_.h({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],UR);
_.B(UR,"ytd-slimline-survey-renderer",function(){if(li7!==void 0)return li7;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return li7=H},{mode:1});var Vy7;var RC=function(){return _.X.apply(this,arguments)||this};
_.G(RC,_.X);RC.prototype.maybeGetBackgroundColor=function(H){return this.isDarkMode?H.section2Color:H.section3Color};
RC.prototype.colorPaletteChanged=function(){var H=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;H&&(H==null?0:H.secondaryTitleColor)&&this.maybeGetBackgroundColor(H)?(this.hostElement.style.backgroundColor=_.Iw(this.maybeGetBackgroundColor(H)),this.hostElement.style.color=_.Iw(H.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
RC.prototype.colorPaletteChanged=RC.prototype.colorPaletteChanged;_.D([_.v(_.q$),_.K("design:type",Object)],RC.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],RC.prototype,"data",void 0);_.D([_.V({selector:function(H){return H.ui.darkModeIsEnabled}}),
_.K("design:type",Boolean)],RC.prototype,"isDarkMode",void 0);_.D([_.V(),_.K("design:type",Object)],RC.prototype,"lightColorPalette",void 0);_.D([_.V(),_.K("design:type",Object)],RC.prototype,"darkColorPalette",void 0);_.D([_.fx("darkColorPalette","lightColorPalette","data","isDarkMode"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],RC.prototype,"colorPaletteChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],RC);
_.B(RC,"ytd-endorsement-header-renderer",function(){if(Vy7!==void 0)return Vy7;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return Vy7=H},{mode:1});_.qs(_.cG,"yt-decorated-avatar-view-model",{props:{data:_.GH,className:_.GH}});_.IC=new _.W4("VIEW_TRANSITION_MANAGER_TOKEN");var aC=function(){var H=_.X.apply(this,arguments)||this;H.fullHeight=_.E("web_rich_grid_media_full_height");H.showChannelAvatar=!0;H.hasPlaylistThumbnail=!1;H.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};H.registerThumbnailForPageTransition=function(){_.E("web_thumbnail_to_watch_transition")&&_.o8Y(_.JA().resolve(_.IC),H.thumbnail)};
return H};
_.G(aC,_.X);_.F=aC.prototype;
_.F.configureRendererStamper=function(){return{lazyLoadMenu:RN,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"}}}};
_.F.attached=function(){this.updateInlinePreviewHoverListeners()};
_.F.detached=function(){this.clearInlinePreviewHoverListeners()};
_.F.shouldLazyLoadMenu=function(){var H=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.E("kevlar_modern_downloads_page")||!H};
_.F.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16111_inlinePreviewHoverListener=Kn({mediaRenderer:this,lockupElement:this.JSC$16111_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.F.getVideoPreviewOpts=function(){var H={},C;if((C=this.data)==null?0:C.multipleInlinePlaybackEndpoint)H=mBd;this.isRadio&&(H=Trn);return H};
_.F.clearInlinePreviewHoverListeners=function(){var H;(H=this.JSC$16111_inlinePreviewHoverListener)==null||Cd(H)};
_.F.getOwner=function(){var H,C,S;return((H=this.data)==null?void 0:(C=H.channelThumbnailSupportedRenderers)==null?void 0:C.channelThumbnailWithLinkRenderer)||_.e((S=this.data)==null?void 0:S.showProviderChannelThumbnail,Rwi)};
_.F.updateLockupSize=function(){var H;((H=this.getOwner())==null?0:H.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.F.getFeedbackEndpoint=function(H){if(_.e(H,_.dR))return H;var C,S;H=(S=(C=_.e(H,_.b9))==null?void 0:C.commands)!=null?S:[];C=_.Z(H);for(S=C.next();!S.done;S=C.next())if(S=this.getFeedbackEndpoint(S.value))return S;return null};
_.F.computeNavigationEndpoint=function(H){return Wy7(H==null?void 0:H.navigationEndpoint)};
_.F.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var H=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(H)!==JSON.stringify(this.data)&&this.set("data",H)}};
_.F.onDataChanged=function(){var H=this,C=this.getOwner();if(C){this.set("data.owner",C);var S,w,A,J,c,Y=((S=this.data)==null?void 0:(w=S.shortBylineText)==null?void 0:(A=w.runs)==null?void 0:(J=A[0])==null?void 0:J.text)||((c=C.name)==null?void 0:c.simpleText);this.set("data.owner.title",Y)}var M,m,W,y,N,b;C=((M=this.data)==null?void 0:(m=M.thumbnailRenderer)==null?void 0:m.playlistVideoThumbnailRenderer)||((W=this.data)==null?void 0:(y=W.thumbnailRenderer)==null?void 0:y.playlistCustomThumbnailRenderer)||
((N=this.data)==null?void 0:(b=N.thumbnailRenderer)==null?void 0:b.showCustomThumbnailRenderer);var u;((u=this.data)==null?0:u.thumbnail)||!C||this.set("data.thumbnail",C.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){H.updateLockupSize()});
var O;if(M=((O=this.data)==null?void 0:O.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(M);var d;((d=this.dismissActionToReplayEntity)==null?0:d.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.F.onHiddenChanged=function(){this.updateLockupSize()};
_.F.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.q3(this.hostElement,"yt-terminate-video-preview-action");else{var H;(H=this.videoTitleLink)==null||H.focus()}};
_.F.metadataColorChanged=function(){var H;if(this.metadataColor&&((H=this.videoTitle)==null?0:H.style))this.videoTitle.style.color=_.Iw(this.metadataColor);else{var C,S;!this.metadataColor&&((C=this.videoTitle)==null?0:(S=C.style)==null?0:S.color)&&(this.videoTitle.style.color="")}};
_.F.onDetailsClick=function(H){var C=this.computedNavigationEndpoint;C&&(_.ww(_.Ar(H),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.M3(this.hostElement,"yt-navigate",{endpoint:C}))};
_.F.onRendererTap=function(){this.registerThumbnailForPageTransition();var H,C,S=((H=this.data)==null?void 0:H.serviceEndpoint)||this.getFeedbackEndpoint((C=this.data)==null?void 0:C.navigationEndpoint);S&&_.e(S,_.dR)&&this.ytComponentBehavior.resolveCommand(S)};
_.F.onMouseDown=function(H){var C=H.target,S=this.computedNavigationEndpoint,w;H=C.href||((w=_.e(S==null?void 0:S.commandMetadata,_.u9))==null?void 0:w.url);w=C.data||S;H&&w&&FtW(H,w)};
_.F.computeVideoTitleText=function(){var H;if((H=this.data)==null?0:H.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.F.computeHasPlaylistThumbnail=function(H){var C,S,w,A,J;if((((C=H.thumbnailRenderer)==null?0:C.playlistVideoThumbnailRenderer)||((S=H.thumbnailRenderer)==null?0:S.playlistCustomThumbnailRenderer)||((w=H.thumbnailRenderer)==null?0:w.showCustomThumbnailRenderer)||((A=H.thumbnailRenderer)==null?0:A.playlistVideoThumbnailRenderer)||((J=H.thumbnailRenderer)==null?0:J.playlistCustomThumbnailRenderer))&&H.thumbnailOverlays)for(C=0;C<H.thumbnailOverlays.length;C++)if(S=void 0,(S=H.thumbnailOverlays[C])==
null?0:S.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.JJ.Object.defineProperties(aC.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.E("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var H;return(H=this.data)==null?void 0:H.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var H;return(H=this.data)==null?void 0:H.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.JSC$16111_inlinePreviewHoverListener)==null?0:qq(H))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.B96(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var H,C;return((H=this.data)==null?void 0:H.videoId)||((C=this.data)==null?void 0:C.playlistId)||""}}});
aC.prototype.onMouseDown=aC.prototype.onMouseDown;aC.prototype.metadataColorChanged=aC.prototype.metadataColorChanged;aC.prototype.onIsDismissedChanged=aC.prototype.onIsDismissedChanged;aC.prototype.onHiddenChanged=aC.prototype.onHiddenChanged;aC.prototype.onDataChanged=aC.prototype.onDataChanged;aC.prototype.handleReloadDownloadsInfo=aC.prototype.handleReloadDownloadsInfo;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],aC.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],aC.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],aC.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.m4),_.K("design:type",Object)],aC.prototype,"ytdDismissibleItemBehavior",void 0);_.D([_.v(_.uU),_.K("design:type",Object)],aC.prototype,"ytdLockupBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],aC.prototype,"ytdReduxBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],aC.prototype,"data",void 0);_.D([_.V(),_.K("design:type",String)],aC.prototype,"entitySelectorType",void 0);_.D([_.V(),_.K("design:type",Boolean)],aC.prototype,"noEndpoints",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],aC.prototype,"isRadio",void 0);_.D([_.V({reflectToAttribute:!0,selector:_.rB}),_.K("design:type",Boolean)],aC.prototype,"miniMode",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],aC.prototype,"fullHeight",void 0);
_.D([_.V(),_.K("design:type",Boolean)],aC.prototype,"showDarkVideoMetadata",void 0);_.D([_.V(),_.K("design:type",Boolean)],aC.prototype,"showLightVideoMetadata",void 0);_.D([_.V(),_.K("design:type",Number)],aC.prototype,"metadataColor",void 0);_.D([_.V(),_.K("design:type",Object)],aC.prototype,"showChannelAvatar",void 0);_.D([_.V(),_.K("design:type",Boolean)],aC.prototype,"hidden",void 0);_.D([_.V({value:!0}),_.K("design:type",Boolean)],aC.prototype,"showYtInteraction",void 0);
_.D([_.V(),_.K("design:type",String)],aC.prototype,"dismissedContentId",void 0);_.D([_.V({selectorArgs:["dismissedContentId"],selector:eTW}),_.K("design:type",Object)],aC.prototype,"dismissActionToReplayEntity",void 0);
_.D([_.V({selectorArgs:["entitySelectorType","mediaId"],selector:function(H,C,S){if(_.E("kevlar_modern_downloads_page")&&S&&C&&C!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(C){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var w=el7(H,S);if(w){C=_.L8(H,S);var A=Ua(H,S),J=PoW(H,S);H=Ru(H,S);var c=TcV(w,C,A,J);A=c.shortViewCountText;var Y=c.publishedTimeText;c=c.badges;var M=H>0;J=MxE(w,C,J,H);w=_.Oa(C)||C==="TRANSFER_STATE_FAILED"||C==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!ou(w.policyEntity)?
void 0:TZ7(S,H,w.videoEntity.lengthSeconds);C==="TRANSFER_STATE_PAUSED_BY_USER"&&S&&!_.E("dl_resume_click_killswitch")&&(w={offlineVideoEndpoint:{videoId:S,action:"ACTION_RESUME"}});S={shortViewCountText:A,publishedTimeText:Y,badges:c,isWatched:M,navigationEndpoint:w,thumbnailOverlays:J}}else S=void 0;return S;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(C=uKV(H,S))if(w=_.gB(H,S),J=_.Gm7(H,S),w!=="TRANSFER_STATE_UNKNOWN"){S=qAU(C,w,J,S,_.tf(H));break a}S=void 0}return S;default:_.Bn(new _.X0("Error: entitySelectorType defined but not matched in selector.",
H,C))}}}),
_.K("design:type",Object)],aC.prototype,"entityDrivenState",void 0);_.D([_.V({computed:"computeVideoTitleText(data)"}),_.K("design:type",Object)],aC.prototype,"videoTitleText",void 0);_.D([_.V({computed:"computeHasPlaylistThumbnail(data)"}),_.K("design:type",Object)],aC.prototype,"hasPlaylistThumbnail",void 0);_.D([_.V({computed:"computeNavigationEndpoint(data)"}),_.K("design:type",Object)],aC.prototype,"computedNavigationEndpoint",void 0);
_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],aC.prototype,"typographyBump",void 0);_.D([_.V({reflectToAttribute:!0}),_.l("typographyBump"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],aC.prototype,"typographyBumpV2",null);_.D([_.lA("#video-title"),_.K("design:type",HTMLElement)],aC.prototype,"videoTitle",void 0);_.D([_.lA("#video-title-link"),_.K("design:type",HTMLElement)],aC.prototype,"videoTitleLink",void 0);
_.D([_.lA("#thumbnail"),_.K("design:type",HTMLElement)],aC.prototype,"thumbnail",void 0);_.D([_.lA("#dismissible"),_.K("design:type",HTMLElement)],aC.prototype,"JSC$16111_dismissibleMedia",void 0);_.D([_.l("data.menu"),_.K("design:type",Object),_.K("design:paramtypes",[])],aC.prototype,"lazyLoadMenu",null);_.D([_.l("data.menu"),_.K("design:type",Object),_.K("design:paramtypes",[])],aC.prototype,"immediateLoadMenu",null);
_.D([_.XJ("entityDrivenState"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],aC.prototype,"handleReloadDownloadsInfo",null);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],aC.prototype,"onDataChanged",null);_.D([_.XJ("hidden"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],aC.prototype,"onHiddenChanged",null);
_.D([_.fx("isDismissed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],aC.prototype,"onIsDismissedChanged",null);_.D([_.fx("metadataColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],aC.prototype,"metadataColorChanged",null);_.D([_.Gz("mousedown"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],aC.prototype,"onMouseDown",null);
_.D([_.l("lockupIsHovered"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],aC.prototype,"isHovered",null);_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],aC.prototype,"useAvatar",null);_.D([_.l("data","entitySelectorType"),_.K("design:type",String),_.K("design:paramtypes",[])],aC.prototype,"mediaId",null);_.D([_.h({is:"ytd-rich-grid-media",disableElementRegistration:!0})],aC);
var O2P=_.Tp()(aC,"ytd-rich-grid-media",function(){if(v87!==void 0)return v87;var H=document.createElement("template");_.f(H,'\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>');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return v87=H},{mode:_.mn("kevlar_poly_si_batch_j072")?1:2});var XDi;var xa=function(){var H=_.X.apply(this,arguments)||this;H.removeMaxWidth=!0;H.insetMetadata=!1;return H};
_.G(xa,_.X);_.F=xa.prototype;_.F.configureRendererStamper=function(){return{innerMenu:RN,outerMenu:Object.assign({},RN,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.F.onDataChanged=function(){var H,C=((H=this.data)==null?void 0:H.trackingParams)||"";C&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(C));var S;((S=this.dismissActionToReplayEntity)==null?0:S.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.F.attached=function(){this.updateInlinePreviewHoverListeners()};
_.F.detached=function(){this.clearInlinePreviewHoverListeners()};
_.F.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16116_inlinePreviewHoverListener=Kn({mediaRenderer:this,lockupElement:this.JSC$16116_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:WKn})};
_.F.clearInlinePreviewHoverListeners=function(){var H;(H=this.JSC$16116_inlinePreviewHoverListener)==null||Cd(H)};
_.F.onRendererTap=function(){var H,C,S=(H=this.data)==null?void 0:(C=H.serviceEndpoints)==null?void 0:C[0];_.e(S,_.dR)&&this.componentBehavior.resolveCommand(S)};
_.F.onDetailsClick=function(H){var C,S=(C=this.data)==null?void 0:C.navigationEndpoint;S&&(_.ww(_.Ar(H),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(S))};
_.F.onShow=function(){var H=this.data;H.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(H.onFirstVisibleCommand),delete H.onFirstVisibleCommand)};
_.JJ.Object.defineProperties(xa.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var H;return this.insetMetadata?void 0:(H=this.data)==null?void 0:H.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var H;return this.insetMetadata?(H=this.data)==null?void 0:H.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var H=this.data;if(H!=null&&H.badge&&(H=_.e(H.badge,$cY))){var C,S,w;return[{metadataBadgeRenderer:{label:((C=H.label)==null?void 0:(S=C.runs)==null?void 0:S[0].text)||((w=H.label)==null?void 0:w.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var H=this.data;return Object.assign({},H.headline,{accessibility:H.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var H,C,S;return this.isSlimShort?(H=this.computedTitle)==null?void 0:(C=H.accessibility)==null?void 0:(S=C.accessibilityData)==null?void 0:S.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.E("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.JSC$16116_inlinePreviewHoverListener)==null?0:qq(H))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
xa.prototype.onDataChanged=xa.prototype.onDataChanged;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],xa.prototype,"componentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],xa.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.uU),_.K("design:type",Object)],xa.prototype,"ytdLockupBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],xa.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.v(_.m4),_.K("design:type",Object)],xa.prototype,"ytdDismissibleItemBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],xa.prototype,"ytdReduxBehavior",void 0);_.D([_.lA("ytd-thumbnail"),_.K("design:type",HTMLElement)],xa.prototype,"thumbnail",void 0);_.D([_.lA("#dismissible"),_.K("design:type",HTMLElement)],xa.prototype,"JSC$16116_dismissibleMedia",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],xa.prototype,"removeMaxWidth",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],xa.prototype,"insetMetadata",void 0);_.D([_.V(),_.K("design:type",String)],xa.prototype,"dismissedContentId",void 0);_.D([_.V({selectorArgs:["dismissedContentId"],selector:eTW}),_.K("design:type",Object)],xa.prototype,"dismissActionToReplayEntity",void 0);_.D([_.l("insetMetadata"),_.K("design:type",Object),_.K("design:paramtypes",[])],xa.prototype,"thumbnailObjectFit",null);
_.D([_.l("data","insetMetadata"),_.K("design:type",Object),_.K("design:paramtypes",[])],xa.prototype,"innerMenu",null);_.D([_.l("data","insetMetadata"),_.K("design:type",Object),_.K("design:paramtypes",[])],xa.prototype,"outerMenu",null);_.D([_.V(),_.K("design:type",Object)],xa.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,selector:_.rB}),_.K("design:type",Boolean)],xa.prototype,"miniMode",void 0);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xa.prototype,"onDataChanged",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],xa.prototype,"shortsBadges",null);_.D([_.l("data"),_.V({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],xa.prototype,"isShort",null);
_.D([_.l("data"),_.V({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],xa.prototype,"isSlimShort",null);_.D([_.l("data","isShort"),_.K("design:type",Object),_.K("design:paramtypes",[])],xa.prototype,"computedTitle",null);_.D([_.l("isSlimShort","computedTitle"),_.K("design:type",Object),_.K("design:paramtypes",[])],xa.prototype,"computedAccessibilityLabel",null);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],xa.prototype,"shouldForce2By3",null);_.D([_.l("lockupIsHovered"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],xa.prototype,"isHovered",null);_.D([_.h({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],xa);
_.B(xa,"ytd-rich-grid-slim-media",function(){if(XDi!==void 0)return XDi;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return XDi=H},{mode:_.mn("kevlar_poly_si_batch_j063")?1:2});var Qd1;var daP;var Hv=function(){var H=_.X.apply(this,arguments)||this;H.darkerDarkTheme=_.E("web_darker_dark_theme");return H};
_.G(Hv,_.X);Hv.prototype.computeIcon=function(H){return H&&H.iconType?"yt-sys-icons:"+H.iconType.toLowerCase():""};
Hv.prototype.onMouseEnter=function(){this.isHovered=!0};
Hv.prototype.onMouseLeave=function(){this.isHovered=!1};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Hv.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Hv.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Hv.prototype,"ytComponentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Hv.prototype,"data",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],Hv.prototype,"isHovered",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Hv.prototype,"darkerDarkTheme",void 0);_.D([_.h({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],Hv);
_.B(Hv,"ytd-expand-on-hover-card-renderer",function(){if(daP!==void 0)return daP;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return daP=H},{mode:1});var PLU,$aU=function(){if(PLU!==void 0)return PLU;var H=document.createElement("template");_.f(H,'\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>');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return PLU=H};_.hg("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var iu=function(){var H=_.X.apply(this,arguments)||this;H.compactStyle=!1;H.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return H};
_.G(iu,_.X);_.F=iu.prototype;_.F.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.F.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"}}}};
_.F.computeHideDot=function(H){return!(H&&H.subscriberCountText&&H.videoCountText)||this.compactStyle};
_.F.hasDualButtons=function(H){return H&&H.purchaseButton&&H.subscribeButton};
_.F.backgroundColorChanged=function(){if(this.data!==void 0){var H=this.data.backgroundColor;this.isDarkTheme&&(H=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=H!=null?_.Iw(H):"transparent"}};
_.F.onDarkModeToggledAction=function(H){this.isDarkTheme=H};
_.F.onTap=function(H){var C,S,w=((C=this.data)==null?void 0:C.navigationEndpoint)||((S=this.data)==null?void 0:S.serviceEndpoint);_.e(w,_.SA)&&(w&&_.JA().resolve(_.ZQ).resolveCommand(w,{form:{element:this.hostElement}}),H.preventDefault())};
_.F.computeChannelEndpoint=function(H){return _.e(H,_.SA)?null:H};
_.F.computeHrefEndpoint=function(H){return _.e(H,_.SA)?null:this.componentBehavior.computeHref_(H)};
_.F.computeChannelRendererStyle=function(H){return H};
_.F.computeIconSize=function(H){return H?108:136};
_.JJ.Object.defineProperties(iu,{template:{configurable:!0,enumerable:!0,get:function(){return $aU()}}});
iu.prototype.backgroundColorChanged=iu.prototype.backgroundColorChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],iu.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],iu.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.OY),_.K("design:type",Object)],iu.prototype,"ytdOpenPopupBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],iu.prototype,"componentBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],iu.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Boolean)],iu.prototype,"isDarkTheme",void 0);_.D([_.V({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.K("design:type",String)],iu.prototype,"channelRendererStyle",void 0);_.D([_.V({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],iu.prototype,"dualButtons",void 0);_.D([_.V({reflectToAttribute:!0,value:function(){return _.E("enable_desktop_search_bigger_thumbs")}}),
_.K("design:type",Boolean)],iu.prototype,"useBiggerThumbs",void 0);_.D([_.V({reflectToAttribute:!0,value:function(){return _.z9("desktop_search_bigger_thumbs_style")}}),
_.K("design:type",String)],iu.prototype,"biggerThumbStyle",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],iu.prototype,"compactStyle",void 0);_.D([_.fx("data","isDarkTheme"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],iu.prototype,"backgroundColorChanged",null);_.D([_.h({is:"ytd-channel-renderer",disableElementRegistration:!0})],iu);_.B(iu,"ytd-channel-renderer",function(){return $aU()},{mode:1});var pDb;var kSb;_.hg("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var CS=function(){var H=_.X.apply(this,arguments)||this;H.displayItemCount=2;H.collections=_.E("web_modern_collections_v2");H.hasPlaylistThumbnail=!1;H.stackThumbnailSize="large";return H};
_.G(CS,_.X);_.F=CS.prototype;_.F.attached=function(){this.updateInlinePreviewHoverListeners()};
_.F.detached=function(){this.clearInlinePreviewHoverListeners()};
_.F.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.F.computeFirstVideos=function(H,C){return H&&C?H.slice(0,C):[]};
_.F.computeThumbnailWidth=function(H,C){return H?C==="BIG"?500:C==="MASSIVE"?600:C==="MEDIUM"?450:420:360};
_.F.computeThumbnailHeight=function(H,C){return H?C==="BIG"?280:C==="MASSIVE"?337:234:202};
_.F.clearInlinePreviewHoverListeners=function(){var H;(H=this.JSC$16129_inlinePreviewHoverListener)==null||Cd(H)};
_.F.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16129_inlinePreviewHoverListener=Kn({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:mBd,thumbnailElement:this.thumbnail})};
_.F.computeHasPlaylistThumbnail=function(H){var C,S;if((((C=H.thumbnailRenderer)==null?0:C.playlistVideoThumbnailRenderer)||((S=H.thumbnailRenderer)==null?0:S.playlistCustomThumbnailRenderer))&&H.thumbnailOverlays)for(C=0;C<H.thumbnailOverlays.length;C++)if(S=void 0,(S=H.thumbnailOverlays[C])==null?0:S.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.JJ.Object.defineProperties(CS.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.JSC$16129_inlinePreviewHoverListener)==null?0:qq(H))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
CS.prototype.dataChanged=CS.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],CS.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.uU),_.K("design:type",Object)],CS.prototype,"ytdLockupBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],CS.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],CS.prototype,"displayItemCount",void 0);_.D([_.V({reflectToAttribute:!0,value:function(){return _.E("enable_desktop_search_bigger_thumbs")}}),
_.K("design:type",Boolean)],CS.prototype,"useBiggerThumbs",void 0);_.D([_.V({reflectToAttribute:!0,value:function(){return _.z9("desktop_search_bigger_thumbs_style")}}),
_.K("design:type",String)],CS.prototype,"biggerThumbsStyle",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],CS.prototype,"collections",void 0);_.D([_.V({computed:"computeHasPlaylistThumbnail(data)"}),_.K("design:type",Object)],CS.prototype,"hasPlaylistThumbnail",void 0);_.D([_.V(),_.K("design:type",String)],CS.prototype,"stackThumbnailSize",void 0);_.D([_.lA("ytd-thumbnail"),_.K("design:type",HTMLElement)],CS.prototype,"thumbnail",void 0);
_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],CS.prototype,"dataChanged",null);_.D([_.l("lockupIsHovered"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],CS.prototype,"isHovered",null);_.D([_.h({is:"ytd-radio-renderer",disableElementRegistration:!0})],CS);
_.B(CS,"ytd-radio-renderer",function(){if(kSb!==void 0)return kSb;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return kSb=H},{mode:_.mn("kevlar_poly_si_batch_j058")?1:2});var hhd;_.hg("itemSectionRenderer","showRenderer","ytd-show-renderer");var SS=function(){return _.X.apply(this,arguments)||this};
_.G(SS,_.X);SS.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
SS.prototype.computeThumbnailWidth=function(H){return H?360:246};
SS.prototype.computeUseProminentThumbs=function(H){return H};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],SS.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],SS.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],SS.prototype,"data",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],SS.prototype,"isSearch",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.K("design:type",Boolean)],SS.prototype,"useProminentThumbs",void 0);_.D([_.h({is:"ytd-show-renderer",disableElementRegistration:!0})],SS);
_.B(SS,"ytd-show-renderer",function(){if(hhd!==void 0)return hhd;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return hhd=H},{mode:1});_.hg("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var sD=function(){var H=_.X.apply(this,arguments)||this;H.isRichGrid=!1;return H};
_.G(sD,_.X);sD.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"}}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],sD.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],sD.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],sD.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],sD.prototype,"isRichGrid",void 0);_.D([_.h({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],sD);
_.B(sD,"ytd-feed-entry-renderer",function(){if(pDb!==void 0)return pDb;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return pDb=H},{mode:1});var n8M;var jS=function(){return _.X.apply(this,arguments)||this};
_.G(jS,_.X);jS.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.D([_.v(_.q$),_.K("design:type",Object)],jS.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],jS.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],jS.prototype,"ytComponentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],jS.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,selector:_.BF,value:3}),_.K("design:type",Number)],jS.prototype,"itemsPerRow",void 0);
_.D([_.h({is:"ytd-link-card-renderer",disableElementRegistration:!0})],jS);
_.B(jS,"ytd-link-card-renderer",function(){if(n8M!==void 0)return n8M;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return n8M=H},{mode:1});var r37;var w3=function(){return _.X.apply(this,arguments)||this};
_.G(w3,_.X);_.F=w3.prototype;_.F.configureRendererStamper=function(){return{"data.menu":RN,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.F.onRendererTap=function(H){if(!this.ytdDismissibleItemBehavior.isDismissed){var C,S=(C=this.data)==null?void 0:C.navigationEndpoint;S&&!_.ww(_.Ar(H),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(S)?_.ww(_.Ar(H),this.hostElement,["A"])||_.M3(this.hostElement,"yt-navigate",{endpoint:S}):this.ytComponentBehavior.resolveCommand(S,{}))}};
_.F.maybeComputeHref=function(H){return this.ytComponentBehavior.computeHref_(H,!0)};
_.F.getNavigationCommand=function(H){return this.isNavigationCommand(H)?H:null};
_.F.isNavigationCommand=function(H){return H?_.e(H,_.vU)||_.e(H,_.sX)||_.e(H,_.R8)?!0:!1:!1};
w3.prototype.onRendererTap=w3.prototype.onRendererTap;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],w3.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],w3.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.m4),_.K("design:type",Object)],w3.prototype,"ytdDismissibleItemBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],w3.prototype,"ytComponentBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],w3.prototype,"data",void 0);_.D([_.Gz("tap"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],w3.prototype,"onRendererTap",null);_.D([_.h({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],w3);
_.B(w3,"ytd-lumiere-promo-item-image-renderer",function(){if(r37!==void 0)return r37;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return r37=H},{mode:1});var Bj7;var A6=function(){return _.X.apply(this,arguments)||this};
_.G(A6,_.X);A6.prototype.computeLandscapeThumbnail=function(){var H;return((H=this.data)==null?void 0:H.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],A6.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],A6.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],A6.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,selector:_.rB}),_.K("design:type",Boolean)],A6.prototype,"miniMode",void 0);_.D([_.V({reflectToAttribute:!0,selector:_.BF}),_.K("design:type",Number)],A6.prototype,"itemsPerRow",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.K("design:type",Boolean)],A6.prototype,"landscapeThumbnail",void 0);_.D([_.h({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],A6);
_.B(A6,"ytd-lumiere-shelf-details-renderer",function(){if(Bj7!==void 0)return Bj7;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Bj7=H},{mode:_.mn("kevlar_poly_si_batch_j076")?1:2});var DaU;var J6=function(){return _.X.apply(this,arguments)||this};
_.G(J6,_.X);J6.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],J6.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],J6.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],J6.prototype,"data",void 0);_.D([_.h({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],J6);
_.B(J6,"ytd-primetime-promo-details-renderer",function(){if(DaU!==void 0)return DaU;var H=document.createElement("template");_.f(H,'\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>');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return DaU=H},{mode:1});var KI1;var Fh=function(){return _.X.apply(this,arguments)||this};
_.G(Fh,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Fh.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Fh.prototype,"data",void 0);_.D([_.h({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],Fh);
_.B(Fh,"ytd-panel-show-style-metadata-renderer",function(){if(KI1!==void 0)return KI1;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return KI1=H},{mode:1});var tyM;var Zr=function(){return _.X.apply(this,arguments)||this};
_.G(Zr,_.X);_.F=Zr.prototype;_.F.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.F.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.F.computeThumbnail=function(H){if(H)return H.smallFormFactorBackgroundThumbnail||H.largeFormFactorBackgroundThumbnail};
_.F.maybeComputeHref=function(H){return this.ytComponentBehavior.computeHref_(H,!0)};
_.F.isNavigationCommand=function(H){return H?_.e(H,_.vU)||_.e(H,_.sX)||_.e(H,_.R8)?!0:!1:!1};
_.F.getNavigationCommand=function(H){return this.isNavigationCommand(H)?H:null};
Zr.prototype.onPanelTap=Zr.prototype.onPanelTap;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Zr.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Zr.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Zr.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Zr.prototype,"data",void 0);
_.D([_.V({reflectToAttribute:!0,value:!0}),_.K("design:type",Boolean)],Zr.prototype,"roundedContainer",void 0);_.D([_.V({reflectToAttribute:!0,value:_.E("web_modern_buttons")}),_.K("design:type",Boolean)],Zr.prototype,"modernButtons",void 0);_.D([_.Gz("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Zr.prototype,"onPanelTap",null);_.D([_.h({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],Zr);
_.B(Zr,"ytd-primetime-promo-panel-renderer",function(){if(tyM!==void 0)return tyM;var H=document.createElement("template");_.f(H,'\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>');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return tyM=H},{mode:1});_.qs(_.n(function(H){H=_.FH(H,{data:{},useFullWidth:!1});var C=H.data,S=H.useFullWidth;H={};return _.q("teaser-card-view-model",{class:_.eJ("ytTeaserCardViewModelHost",(H.ytTeaserCardViewModelUseFullWidth=function(){return S()},H))},_.q(_.T,{cond:function(){return C().onTap},
then:function(w){return _.q(_.$4,{className:"ytTeaserCardViewModelLink",command:w},_.q("div",{class:"ytTeaserCardViewModelImageContainer"},_.q(_.T,{cond:function(){return C().image},
then:function(A){return _.q(_.Jg,{data:A,className:"ytTeaserCardViewModelImage",alt:""})}})),_.q("p",{class:"ytTeaserCardViewModelCaption"},function(){return C().caption}))}}))},"Yb"),"teaser-card-view-model",{props:{data:_.GH,
useFullWidth:_.GH}});var LIV=new _.W4("RICH_GRID_VIDEO_RENDERER_TOKEN");_.qs(_.n(function(H){var C=H.data;var S=H.showYtInteractionInContent;var w=function(){return!!C().selectableFeedback};
H=_.Z(_.mB(!1,void 0,"qxtgaf"));var A=H.next().value,J=H.next().value;_.$T(function(){var N=_.e(C().primaryButton,_.mk);(N==null?0:N.isToggled)&&J(N.isToggled)});
H=_.um(function(N){if(!w())return!1;if(A()){var b;var u=(b=C().selectableFeedback)==null?void 0:b.onDeselect}else{var O;u=(O=C().selectableFeedback)==null?void 0:O.onSelect}u&&_.Im(u,{form:{element:N.target}});J(!A());if(N=_.e(C().primaryButton,_.mk))N.isToggled=A();return!1});
var c=function(){if(!w()){var N,b=(N=C().loggingDirectives)==null?void 0:N.trackingParams;b&&_.Bg(_.JA().resolve(_.Av),b)}},Y=_.bkV(),M=function(){var N;
return w()?(N=C().selectableFeedback)==null?void 0:N.a11yLabel:void 0},m=function(){return w()?{toggled:A()}:{}},W=_.JA().resolve(_.AA(LIV)),y={};
return _.q("yt-feedback-item-renderer",{class:_.eJ("ytFeedbackItemRendererHost",(y.ytFeedbackItemRendererSelectableFeedback=w,y)),"on:click":H,"on:keydown":Y,title:M,"aria-label":M,"aria-pressed":function(){return w()?A():void 0},
tabindex:function(){return w()?0:void 0},
role:function(){return w()?"button":void 0}},_.q("div",{class:"ytFeedbackItemRendererContentContainer"},_.q(_.V4,{data:function(){return C().content}},{videoRenderer:function(N){return _.q(W,{data:N.data,
showYtInteraction:S})},
lockupViewModel:function(N){return _.q(_.BG,{data:N.data,containerType:2})}})),_.q("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.q(_.V4,{data:function(){return C().primaryButton}},{toggleButtonViewModel:function(N){return _.q(_.Jv,{data:N.data,
buttonShapeOverrides:m,disableExplicitClickLogging:!0,onToggle:c})}})))},"Zb"),"yt-feedback-item-renderer",{props:{data:_.GH,
showYtInteractionInContent:_.GH}});var cv=function(){var H=_.X.apply(this,arguments)||this;H.isShortsGrid=!1;H.isCompactGrid=!1;H.isShortsPanelGrid=!1;H.renderedFromRichGrid=!1;H.isInFirstColumn=!1;H.noGutterMargins=!1;H.noBottomMargin=!1;H.halfBottomMargin=!1;H.isInlineGroupItem=!1;H.insetMetadata=!1;H.noBottomMarginInAds=!0;H.force16By9ThumbnailAspectRatio=!1;H.useCompactList=!1;H.containerType=2;H.thumbnailTargetWidth=9999;H.isResponsiveGrid=!1;H.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};H.hoverListener=
H.hover.bind(H);H.leaveListener=H.leave.bind(H);H.highlighted=!1;H.JSC$16163_unsubscribeFromInlinePreviewIsActive=function(){};
return H};
_.G(cv,_.X);_.F=cv.prototype;_.F.computeContainerType=function(){return this.useCompactList?3:2};
_.F.itemWidthChanged=function(){var H;this.thumbnailTargetWidth=(H=this.itemWidth)!=null?H:9999};
_.F.updateIsInFirstColumn=function(){var H;this.isInFirstColumn=((H=this.data)==null?void 0:H.colIndex)===0};
_.F.observerContainerType=function(){if(this.lockup){var H=this.lockup;H.containerType=this.containerType;H.sizing=this.sizing;H.typographyBump=this.typographyBump;H.itemWidth=this.itemWidth}this.richGridMedia&&_.E("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.E("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.F.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]]"}}}}}};
_.F.leave=function(H){H=H.relatedTarget;var C=document.querySelector("ytd-video-preview");H&&C&&_.WY(C).contains(H)||this.removeAndCleanupHighlight()};
_.F.hover=function(){var H;!this.highlighted&&(H=this.data)!=null&&H.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(H=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:H,boxShadow:"0 0 0 10px "+H})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)};
_.F.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};
_.F.registerHoverHighlightListeners=function(){var H=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16163_unsubscribeFromInlinePreviewIsActive=_.Uf(_.AG(),_.TQp,function(C){H.highlighted&&!C&&H.removeAndCleanupHighlight()})};
_.F.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16163_unsubscribeFromInlinePreviewIsActive()};
_.F.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.F.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.F.getBackgroundColor=function(){var H,C,S=(H=this.data)==null?void 0:(C=H.onFocusEffect)==null?void 0:C.onFocusColor;if(S){if(document.documentElement.hasAttribute("dark")&&(S==null?0:S.darkTheme))return _.Iw(S==null?void 0:S.darkTheme);if(S==null?0:S.lightTheme)return _.Iw(S==null?void 0:S.lightTheme)}};
_.F.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var H=_.Dg(),C,S,w;H&&((C=this.data)==null?0:C.trackingParams)&&((S=this.data)==null?void 0:S.colIndex)!=null&&((w=this.data)==null?void 0:w.rowIndex)!=null&&_.jp(H,_.Qh(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.F.isSlimMediaRenderer=function(H){return!!_.e(H==null?void 0:H.content,_.z1P)||!!_.e(H==null?void 0:H.content,Yyi)||!!_.e(H==null?void 0:H.content,_.Z3)||!!_.e(H==null?void 0:H.content,Qy7)};
_.F.isPostRenderer=function(){var H,C;return!!_.e((H=this.data)==null?void 0:H.content,QYW)||!!_.e((C=this.data)==null?void 0:C.content,dRb)};
_.F.computeIsGameCardShelf=function(){var H;return!!_.e((H=this.data)==null?void 0:H.content,ti1)};
_.F.computeIsMiniGameCardShelf=function(){var H,C;return!!_.e((H=this.data)==null?void 0:H.content,wWb)||!!_.e((C=this.data)==null?void 0:C.content,AiU)};
_.F.computeIsTeaserCard=function(){var H;return!!_.e((H=this.data)==null?void 0:H.content,AiU)};
_.F.computeIsSelectableFeedbackItem=function(){var H,C;return!((C=_.e((H=this.data)==null?void 0:H.content,F97))==null||!C.selectableFeedback)};
_.F.computeContainsLumierePosters=function(){var H,C;return((C=_.e((H=this.data)==null?void 0:H.content,KaM))==null?void 0:C.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.F.computeIsExpandOnHoverCardShelf=function(){var H;return!!_.e((H=this.data)==null?void 0:H.content,DR7)};
_.F.computeIsLinkCardShelf=function(){var H;return!!_.e((H=this.data)==null?void 0:H.content,t3V)};
_.F.computeIsReelItemStyleAvatarCircle=function(H){var C;return((C=_.e(H==null?void 0:H.content,_.Z3))==null?void 0:C.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.F.computeIsLinkCardFullWidth=function(H,C){var S;return((S=_.e(H==null?void 0:H.content,t3V))==null?void 0:S.useFullWidth)||C<=2};
_.JJ.Object.defineProperties(cv.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){var H;return _.E("web_hover_effect_refactor")&&_.e((H=this.data)==null?void 0:H.content,_.IMM)?!1:this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.E("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var H;if(_.E("web_hover_effect_refactor")&&_.e((H=this.data)==null?void 0:H.content,_.IMM))return!1;var C;return!((C=this.data)==null||!C.onFocusEffect)||_.E("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return 1}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){var H;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:_.E("web_hover_effect_refactor")?(H=this.data)==null?void 0:H.onFocusEffect:void 0}}}});
cv.prototype.richGridHoverHighlightChanged=cv.prototype.richGridHoverHighlightChanged;cv.prototype.observerContainerType=cv.prototype.observerContainerType;cv.prototype.updateIsInFirstColumn=cv.prototype.updateIsInFirstColumn;cv.prototype.itemWidthChanged=cv.prototype.itemWidthChanged;_.D([_.v(_.q$),_.K("design:type",Object)],cv.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],cv.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],cv.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],cv.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.uU),_.K("design:type",Object)],cv.prototype,"ytdLockupBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],cv.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.K("design:type",Boolean)],cv.prototype,"isPost",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.K("design:type",Boolean)],cv.prototype,"containsLumierePosters",void 0);_.D([_.V({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.K("design:type",Boolean)],cv.prototype,"isSlimMedia",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.K("design:type",Boolean)],cv.prototype,"isGameCardShelf",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.K("design:type",Boolean)],cv.prototype,"isMiniGameCardShelf",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.K("design:type",Boolean)],cv.prototype,"isTeaserCard",void 0);_.D([_.V({computed:"computeIsSelectableFeedbackItem(data)"}),_.K("design:type",Boolean)],cv.prototype,"isSelectableFeedbackItem",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],cv.prototype,"isShortsGrid",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],cv.prototype,"isSlimGrid",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],cv.prototype,"isCompactGrid",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],cv.prototype,"isShortsPanelGrid",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.K("design:type",Boolean)],cv.prototype,"isExpandOnHoverCardShelf",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.K("design:type",Boolean)],cv.prototype,"isLinkCardShelf",void 0);_.D([_.V({reflectToAttribute:!0,selector:_.BF,value:3}),_.K("design:type",Number)],cv.prototype,"itemsPerRow",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],cv.prototype,"renderedFromRichGrid",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],cv.prototype,"isInFirstColumn",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],cv.prototype,"noGutterMargins",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],cv.prototype,"noBottomMargin",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],cv.prototype,"halfBottomMargin",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],cv.prototype,"isInlineGroupItem",void 0);_.D([_.V(),_.K("design:type",Object)],cv.prototype,"insetMetadata",void 0);_.D([_.V(),_.K("design:type",Object)],cv.prototype,"noBottomMarginInAds",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],cv.prototype,"isShelfItem",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.K("design:type",Boolean)],cv.prototype,"isReelItemStyleAvatarCircle",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.K("design:type",Boolean)],cv.prototype,"isLinkCardFullWidth",void 0);_.D([_.V(),_.K("design:type",Object)],cv.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],cv.prototype,"useCompactList",void 0);_.D([_.V(),_.K("design:type",String)],cv.prototype,"sizing",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],cv.prototype,"typographyBump",void 0);_.D([_.V(),_.K("design:type",Number)],cv.prototype,"itemWidth",void 0);_.D([_.V(),_.K("design:type",Boolean)],cv.prototype,"isHomeShelf",void 0);_.D([_.V(),_.K("design:type",Boolean)],cv.prototype,"isHomeGrid",void 0);
_.D([_.lA("yt-lockup-view-model"),_.K("design:type",HTMLElement)],cv.prototype,"lockup",void 0);_.D([_.lA("ytd-rich-grid-media"),_.K("design:type",HTMLElement)],cv.prototype,"richGridMedia",void 0);_.D([_.lA("ytd-ad-slot-renderer"),_.K("design:type",HTMLElement)],cv.prototype,"adSlotRenderer",void 0);_.D([_.V({computed:"computeContainerType(useCompactList)"}),_.K("design:type",Object)],cv.prototype,"containerType",void 0);_.D([_.V(),_.K("design:type",Object)],cv.prototype,"thumbnailTargetWidth",void 0);
_.D([_.l("showYtInteractionOnRichItem"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],cv.prototype,"showYtInteractionOnRichGridMedia",null);_.D([_.l("isSelectableFeedbackItem","richGridHoverHighlight"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],cv.prototype,"showYtInteractionOnRichItem",null);_.D([_.l("typographyBump","isHomeGrid"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],cv.prototype,"richTypographyBump",null);
_.D([_.V({reflectToAttribute:!0}),_.l("data","isShortsGrid","isCompactGrid"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],cv.prototype,"richGridHoverHighlight",null);_.D([_.l("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.K("design:type",Number),_.K("design:paramtypes",[])],cv.prototype,"shortsLockupViewModelAspectRatio",null);_.D([_.l("isInlineGroupItem"),_.K("design:type",Number),_.K("design:paramtypes",[])],cv.prototype,"shortsLockupViewModelScrimStyle",null);
_.D([_.fx("itemWidth"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cv.prototype,"itemWidthChanged",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cv.prototype,"updateIsInFirstColumn",null);_.D([_.fx("containerType","sizing","typographyBump"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cv.prototype,"observerContainerType",null);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],cv.prototype,"isResponsiveGrid",void 0);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],cv.prototype,"lockupExperiments",null);_.D([_.fx("richGridHoverHighlight"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cv.prototype,"richGridHoverHighlightChanged",null);_.D([_.h({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],cv);
_.g87=_.Tp()(cv,"ytd-rich-item-renderer",function(){if(Qd1===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);Qd1=H}H=Qd1;return H},{mode:_.mn("kevlar_poly_si_batch_j028")?1:2});var o36={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var DBD=_.sx(_.fL("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var XzW={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},dBW={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},PNZ={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var Uad;var Yp=function(){var H=_.X.apply(this,arguments)||this;H.useResponsiveGrid=!1;H.hidden=!1;H.isShowMoreHidden=!1;H.isShowLessHidden=!0;H.hasExpansionButton=!1;H.isInnerShelf=!1;H.allVideosCount=0;H.allPlaylistCount=0;H.haveSmartDownloadsCompleted=!1;H.restrictContentsOverflow=!1;H.firstShownIndex=0;H.horizontalOffset=0;H.atEnd=!0;H.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
H.nextClick=function(){var C;(C=H.data)!=null&&C.contents&&(H.firstShownIndex+=H.currentElementsPerRow,H.updateHorizontalOffset(),H.updateHorizontalItemVisibility())};
H.previousClick=function(){var C;(C=H.data)!=null&&C.contents&&(H.firstShownIndex-=H.currentElementsPerRow,H.updateHorizontalOffset(),H.updateHorizontalItemVisibility())};
return H};
_.G(Yp,_.X);_.F=Yp.prototype;
_.F.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",noBottomMargin:"[[isCollapsed]]",halfBottomMargin:"[[isExpanded]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",
params:{buttonTooltipPosition:_.rh("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.F.attached=function(){this.requestElementsPerRow()};
_.F.refreshGridLayoutNew=function(){var H;if((H=this.data)!=null&&H.contents&&this.containerWidth){var C;((C=this.data.responsiveContainerConfiguration)==null?0:C.responsiveSize)?(H=_.LKZ(this.data.responsiveContainerConfiguration,this.containerWidth),H=_.gw(Object.assign({},H,{standardUnitMinWidth:this.standardUnitMinWidth}))):H=_.gw({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=H.typographyBump;if(this.elementsPerRow!==
H.numItems||this.gutter!==H.gutter)this.elementsPerRow=H.numItems,this.gutter=H.gutter,this.itemWidth=H.itemWidth,_.Ed(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":H.gutter+"px"})}};
_.F.computeSizing=function(){if(!this.isLumiere){var H=_.TDw(this.data);return H?H:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.F.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.F.computeButton=function(H){var C=_.e(H,_.cg);H=Object.assign({},_.e(H,_.cg));return C?(H.text||(H.text={simpleText:H.tooltip}),H.style="STYLE_MONO_OUTLINE",H.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",H):C};
_.F.onRowIndexChange=function(){var H=_.Dg(),C,S;((C=this.data)==null?0:C.trackingParams)&&((S=this.data)==null?void 0:S.rowIndex)!=null&&H&&_.jp(H,_.Qh(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.F.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var H,C=((H=this.getRichItemRenderers()[0])==null?void 0:H.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*C;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.F.requestElementsPerRow=function(){_.M3(this.hostElement,"yt-request-elements-per-row")};
_.F.onUpdateElementsPerRowAction=function(H,C,S,w,A,J){if(this.containerWidth!==J&&(this.containerWidth=J,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&H&&C&&S&&w&&A&&(this.elementsPerRow!==H||this.postsPerRow!==C||this.slimItemsPerRow!==S||this.gameCardsPerRow!==w||this.miniGameCardsPerRow!==A)&&(this.elementsPerRow=H,this.postsPerRow=C,this.slimItemsPerRow=S,this.gameCardsPerRow=w,this.miniGameCardsPerRow=A,this.updateItemVisibility())};
_.F.isExpandedChanged=function(){var H=this.getRichItemRenderers(),C=this.isExpanded;H.forEach(function(S){S.halfBottomMargin=C})};
_.F.isCollapsedChanged=function(){var H=this.getRichItemRenderers(),C=this.isCollapsed;H.forEach(function(S){S.noBottomMargin=C})};
_.F.getRichItemRenderers=function(){return _.mY(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.F.updateItemVisibility=function(){var H=this;if(this.data&&this.data.contents){var C=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(w,A){var J;((J=H.data)==null?0:J.isExpanded)?(w.hidden=A>C-1,w.ytRendererBehavior.markDirty()):w.hidden=A>H.currentElementsPerRow-1||A>C-1});
var S=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||S||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||S||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.F.setHeightToSingleRow=function(){var H=this.getRichItemRenderers(),C=Number.parseInt(getComputedStyle(H[0]).marginBottom,10)||0;H=H.slice(0,this.currentElementsPerRow).reduce(function(S,w){return Math.max(S,w.getBoundingClientRect().height+C)},0);
this.contents.style.height=H+"px"};
_.F.focusNextExpandedItem=function(){var H;((H=this.data)==null?0:H.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.F.focusItem=function(H,C){var S=this.getRichItemRenderers();if(S[H]&&(H=S[H].querySelector(".focus-on-expand"))){if(C){var w;(w=S[this.currentElementsPerRow])==null||w.scrollIntoView({behavior:"smooth",block:"center"})}H.focus({preventScroll:!0})}};
_.F.onDataChange=function(){var H=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var C;if((C=this.data)==null?0:C.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.wM(this,function(){H.updateItemVisibility()});
var S;if((S=this.data)==null?0:S.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.Ed(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),C=0;C<this.data.contents.length;C++)S=_.e(this.data.contents[C],_.I4)||{},S.colIndex=C,S.rowIndex=this.data.rowIndex};
_.F.handleRerenderDownloadsData=function(){_.E("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())};
_.F.blockInlinePreview=function(H){var C=this,S;return _.z(function(w){(S=C.inlinePreviewIsEnabled)&&C.ytdReduxBehavior.dispatch(_.OgM(!1));return w.return(new Promise(function(A){H(function(){S&&C.ytdReduxBehavior.dispatch(_.OgM(!0));A()})}))})};
_.F.expandShelf=function(){var H=this;if(this.data){var C,S=(C=_.e(this.data.showMoreButton,_.cg))==null?void 0:C.trackingParams;S&&_.Bg(_.lJ(),S);this.set("data.isExpanded",!0);this.blockInlinePreview(function(w){H.setHeightToSingleRow();H.updateItemVisibility();H.contents.style.height=H.contents.scrollHeight+"px";_.rT.addJob(function(){H.contents.style.height="auto";H.focusNextExpandedItem();w()},2,200)})}};
_.F.collapseShelf=function(){var H=this;return _.z(function(C){if(C.nextAddress==1){if(!H.data)return C.return();H.set("data.isExpanded",!1);return C.yield(H.blockInlinePreview(function(S){H.contents.style.height=H.contents.scrollHeight+"px";H.setHeightToSingleRow();_.rT.addJob(function(){H.updateItemVisibility();H.contents.style.height="auto";S()},2,200)}),2)}_.M3(H.hostElement,"yt-rich-shelf-renderer-collapse",H.data.trackingParams);
H.focusItem(0,!1);_.oT(C)})};
_.F.updateArrowButtonStatus=function(){var H=this.getRichItemRenderers().length;if(!_.E("web_rich_shelf_renderer_use_data_contents_killswitch")){var C,S;H=((C=this.data)==null?void 0:(S=C.contents)==null?void 0:S.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=H};
_.F.onChildElementFocus=function(H){this.hasChevronButtons&&(H=H.target.closest("#contents > *"),this.contents.contains(H)&&(H.offsetLeft<this.horizontalOffset?this.previousClick():H.offsetLeft+H.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.F.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.rh("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.F.updateHorizontalOffset=function(){var H=this.getRichItemRenderers(),C=H.length;if(!_.E("web_rich_shelf_renderer_use_data_contents_killswitch")){var S,w;C=((S=this.data)==null?void 0:(w=S.contents)==null?void 0:w.length)||0}var A;H=((A=H[0])==null?void 0:A.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>C?this.firstShownIndex=C-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*H};
_.F.isSlimMediaShelfRenderer=function(){var H,C,S,w=(S=_.e((H=this.data)==null?void 0:(C=H.contents)==null?void 0:C[0],_.I4))==null?void 0:S.content;return!!(_.e(w,_.z1P)||_.e(w,Yyi)||_.e(w,_.Z3)||_.e(w,Qy7))};
_.F.isGameCardShelf=function(){var H,C,S,w=(S=_.e((H=this.data)==null?void 0:(C=H.contents)==null?void 0:C[0],_.I4))==null?void 0:S.content;return!!_.e(w,ti1)};
_.F.isGnomeShelf=function(){var H,C,S,w=(S=_.e((H=this.data)==null?void 0:(C=H.contents)==null?void 0:C[0],_.I4))==null?void 0:S.content;return!!_.e(w,F97)};
_.F.isMiniGameCardShelf=function(){var H,C,S,w=(S=_.e((H=this.data)==null?void 0:(C=H.contents)==null?void 0:C[0],_.I4))==null?void 0:S.content;return!!_.e(w,wWb)||!!_.e(w,AiU)};
_.F.hasGameBoxArtAvatarStyle=function(){var H;return((H=this.data)==null?void 0:H.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.F.hasRoundedGameBoxArtAvatarStyle=function(){var H;return((H=this.data)==null?void 0:H.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.F.isShortsShelf=function(){var H,C,S,w=(S=_.e((H=this.data)==null?void 0:(C=H.contents)==null?void 0:C[0],_.I4))==null?void 0:S.content;return!!_.e(w,_.Z3)||!!_.e(w,Qy7)};
_.F.isPostShelfRenderer=function(){var H,C,S,w=(S=_.e((H=this.data)==null?void 0:(C=H.contents)==null?void 0:C[0],_.I4))==null?void 0:S.content;return!(!_.e(w,QYW)&&!_.e(w,dRb))};
_.F.isLumiereShelf=function(){var H,C,S=_.e((H=this.data)==null?void 0:(C=H.contents)==null?void 0:C[0],_.I4);return!!_.e(S==null?void 0:S.content,KaM)};
_.F.isLumiereShelfWithPosters=function(){var H,C,S=_.e((H=this.data)==null?void 0:(C=H.contents)==null?void 0:C[0],_.I4),w;return((w=_.e(S==null?void 0:S.content,KaM))==null?void 0:w.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.F.isExpandOnHoverCardShelf=function(){var H,C,S,w=(S=_.e((H=this.data)==null?void 0:(C=H.contents)==null?void 0:C[0],_.I4))==null?void 0:S.content;return!!_.e(w,DR7)};
_.F.computeHasFeaturedBadge=function(){var H,C,S=_.e((H=this.data)==null?void 0:(C=H.badges)==null?void 0:C[0],_.Z3_);return S?S.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.F.computeHasPaygatedFeaturedBadge=function(){var H,C,S=_.e((H=this.data)==null?void 0:(C=H.badges)==null?void 0:C[0],_.Z3_);return S?(S==null?void 0:S.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.F.computeHeaderHidden=function(){var H,C,S,w,A,J;return!((H=this.data)==null?0:H.icon)&&!((C=this.data)==null?0:C.title)&&!((S=this.data)==null?0:S.subtitle)&&!((w=this.data)==null?0:w.thumbnail)&&!((A=this.data)==null?0:A.badges)&&!((J=this.data)==null?0:J.menu)};
_.F.showCtaButton=function(){var H;return!((H=this.data)==null||!H.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.F.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.F.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.F.computeForce16By9ThumbnailAspectRatio=function(){var H,C;return((H=this.data)==null?void 0:(C=H.responsiveContainerConfiguration)==null?void 0:C.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.F.onSectionReactiveDismissal=function(H,C,S){var w,A;var J=(w=this.data)==null?void 0:(A=w.targetingContext)==null?void 0:A.targetGroupId;this&&J&&C.targetGroupId&&J.includes(C.targetGroupId)?(w=this.rowIndex,H=w===void 0?!1:!(C.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&w<=H)):H=!1;H&&(this.hidden=S)};
_.JJ.Object.defineProperties(Yp.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null?0:H.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var H=this.elementsPerRow;this.isPostShelfRenderer()?H=this.postsPerRow:this.isSlimMediaShelfRenderer()?H=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?H=this.slimItemsPerRow-1:this.isGameCardShelf()?H=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(H=this.miniGameCardsPerRow);return H}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.E("kevlar_clean_feeds_show_more")&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null?0:H.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var H,C;return!((H=this.data)==null||!H.previousButton)&&!((C=this.data)==null||!C.nextButton)}},
previousButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.firstShownIndex===0,ariaHidden:!0,tabIndex:-1}}},
nextButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.atEnd,ariaHidden:!0,tabIndex:-1}}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var H;return((H=_.JA().resolve(_.JB).getCurrentPage())==null?void 0:H.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var H,C,S,w;return!((H=this.data)==null?0:(C=H.thumbnail)==null?0:(S=C.accessibility)==null?0:(w=S.accessibilityData)==null?0:w.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
Yp.prototype.onChildElementFocus=Yp.prototype.onChildElementFocus;Yp.prototype.handleRerenderDownloadsData=Yp.prototype.handleRerenderDownloadsData;Yp.prototype.onDataChange=Yp.prototype.onDataChange;Yp.prototype.isCollapsedChanged=Yp.prototype.isCollapsedChanged;Yp.prototype.isExpandedChanged=Yp.prototype.isExpandedChanged;Yp.prototype.onRowIndexChange=Yp.prototype.onRowIndexChange;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Yp.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Yp.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.m4),_.K("design:type",Object)],Yp.prototype,"ytdDismissibleItemBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],Yp.prototype,"actionHandlerBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],Yp.prototype,"ytdReduxBehavior",void 0);
_.D([_.V({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.K("design:type",Object)],Yp.prototype,"useResponsiveGrid",void 0);_.D([_.V(),_.K("design:type",Object)],Yp.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Number)],Yp.prototype,"standardUnitMinWidth",void 0);_.D([_.V({reflectToAttribute:!0,value:3}),_.K("design:type",Number)],Yp.prototype,"elementsPerRow",void 0);_.D([_.V({value:3}),_.K("design:type",Number)],Yp.prototype,"postsPerRow",void 0);
_.D([_.V({value:6}),_.K("design:type",Number)],Yp.prototype,"slimItemsPerRow",void 0);_.D([_.V({value:6}),_.K("design:type",Number)],Yp.prototype,"gameCardsPerRow",void 0);_.D([_.V({value:6}),_.K("design:type",Number)],Yp.prototype,"miniGameCardsPerRow",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Yp.prototype,"hidden",void 0);_.D([_.V(),_.K("design:type",Object)],Yp.prototype,"isShowMoreHidden",void 0);
_.D([_.V(),_.K("design:type",Object)],Yp.prototype,"isShowLessHidden",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Yp.prototype,"hasExpansionButton",void 0);_.D([_.l("data.isExpanded"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Yp.prototype,"isExpanded",null);_.D([_.l("data.isExpanded"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Yp.prototype,"isCollapsed",null);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Yp.prototype,"isInnerShelf",void 0);_.D([_.V({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.K("design:type",Boolean)],Yp.prototype,"isShorts",void 0);_.D([_.V({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.K("design:type",Boolean)],Yp.prototype,"isLumiere",void 0);_.D([_.V({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.K("design:type",Boolean)],Yp.prototype,"hasBoxArtThumbnailStyle",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.K("design:type",Boolean)],Yp.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.K("design:type",Boolean)],Yp.prototype,"hasFeaturedBadge",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.K("design:type",Boolean)],Yp.prototype,"hasPaygatedFeaturedBadge",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.K("design:type",Boolean)],Yp.prototype,"isHeaderHidden",void 0);_.D([_.V({selector:_.EeV}),_.K("design:type",Object)],Yp.prototype,"allVideosCount",void 0);_.D([_.V({selector:tGU}),_.K("design:type",Object)],Yp.prototype,"allPlaylistCount",void 0);_.D([_.V({selector:XPV}),_.K("design:type",Object)],Yp.prototype,"haveSmartDownloadsCompleted",void 0);
_.D([_.V({selectorArgs:["entitySelectorType"],selector:function(H,C){if(_.E("kevlar_modern_downloads_page")&&C&&C!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var S=H.entities;switch(C){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":C=_.k6(S);H=uK(C);var w=_.X_(C);S=_.n8(S);S=_.cF(pzW(w,S,C.length));return{contents:H,subtitle:S};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return S=_.k6(S),{contents:uK(S)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return S=
_.hf(S),{contents:uK(S)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return S=_.xc6(S),{contents:uK(S)};default:_.Bn(new _.X0("Error: entitySelectorType defined but not matched in selector.",H,C))}}}}),
_.K("design:type",Object)],Yp.prototype,"entityDrivenRichShelfData",void 0);_.D([_.V({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.K("design:type",Boolean)],Yp.prototype,"hasTopCtaButton",void 0);_.D([_.V({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.K("design:type",Boolean)],Yp.prototype,"hasBottomCtaButton",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.K("design:type",Boolean)],Yp.prototype,"force16By9ThumbnailAspectRatio",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Yp.prototype,"restrictContentsOverflow",void 0);_.D([_.V({selector:_.mbp}),_.K("design:type",Boolean)],Yp.prototype,"inlinePreviewIsEnabled",void 0);_.D([_.V({computed:"computeSizing(data)"}),_.K("design:type",String)],Yp.prototype,"sizing",void 0);
_.D([_.V(),_.K("design:type",Boolean)],Yp.prototype,"typographyBump",void 0);_.D([_.V(),_.K("design:type",Number)],Yp.prototype,"itemWidth",void 0);_.D([_.V(),_.K("design:type",Object)],Yp.prototype,"firstShownIndex",void 0);_.D([_.V(),_.K("design:type",Object)],Yp.prototype,"horizontalOffset",void 0);_.D([_.V(),_.K("design:type",Object)],Yp.prototype,"atEnd",void 0);_.D([_.lA("#contents"),_.K("design:type",HTMLElement)],Yp.prototype,"contents",void 0);
_.D([_.fx("data.rowIndex"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Yp.prototype,"onRowIndexChange",null);_.D([_.fx("isExpanded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Yp.prototype,"isExpandedChanged",null);_.D([_.fx("isCollapsed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Yp.prototype,"isCollapsedChanged",null);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Yp.prototype,"onDataChange",null);_.D([_.fx("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Yp.prototype,"handleRerenderDownloadsData",null);_.D([_.Gz("focusin"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],Yp.prototype,"onChildElementFocus",null);
_.D([_.V({reflectToAttribute:!0}),_.l("data","isHomePage"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Yp.prototype,"isTruncated",null);_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Yp.prototype,"showBottomDivider",null);_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Yp.prototype,"hasChevronButtons",null);
_.D([_.l("firstShownIndex"),_.K("design:type",Object),_.K("design:paramtypes",[])],Yp.prototype,"previousButtonOverride",null);_.D([_.l("atEnd"),_.K("design:type",Object),_.K("design:paramtypes",[])],Yp.prototype,"nextButtonOverride",null);_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Yp.prototype,"isHomePage",null);_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Yp.prototype,"thumbnailAriaHidden",null);
_.D([_.l("data"),_.K("design:type",String),_.K("design:paramtypes",[])],Yp.prototype,"entitySelectorType",null);_.D([_.h({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],Yp);
_.RhW=_.Tp()(Yp,"ytd-rich-shelf-renderer",function(){if(Uad===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);Uad=H}H=Uad;return H},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.mn("kevlar_poly_si_batch_j028")?1:2});var Iid;_.qs(_.PG,"yt-badge-view-model",{props:{data:_.GH,class:_.GH,workaroundShortsIsThumbnailBadge:_.GH,modern:_.GH,numBadgesInRow:_.GH}});_.qs(eIP,"yt-slimline-survey-view-model",{props:{data:_.GH}});var zg=function(){var H=_.X.apply(this,arguments)||this;H.tileLottieAnimationRef={};H.backgroundLottieAnimationRef={};H.isOnHoverBehaviorForLottieEnabled=!0;H.useBiggerShowcaseImage=_.E("enable_desktop_search_bigger_thumbs");H.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return H};
_.G(zg,_.X);_.F=zg.prototype;_.F.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.F.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},
"data.badge":{id:"badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.additionalBadge":{id:"additional-badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.F.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var H=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);H!==this.hasTile&&this.set("hasTile",H);H=this.hasLogo(this.data)||!!this.data.badgeText;H!==this.hasMetadata&&this.set("hasMetadata",H);H=this.data.overflowButton?!1:H;H!==this.showLogoImage&&this.set("showLogoImage",H);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.F.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.F.currentColorChanged=function(){this.updateButtonPalette()};
_.F.computeBackgroundStyle=function(H){if(H&&this.data){var C=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var S=_.m3((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);S&&C.push('background-image: url("'+S+'");')}var w;((w=H.basicColorData)==null?void 0:w.backgroundColor)!==void 0&&C.push("background-color: "+_.aw(H.basicColorData.backgroundColor)+";");return C.join("")}};
_.F.onDarkModeToggledAction=function(H){H!==this.isDarkTheme&&this.set("isDarkTheme",H)};
_.F.getCurrentLogo=function(H,C){if(H)return C?H.darkLogoImage:H.lightLogoImage};
_.F.getCurrentStaticTileImage=function(H,C){if(this.hasStaticTile(H))return H.darkTileImage?C?H.darkTileImage:H.tileImage:H.tileImage};
_.F.computeTitleStyle=function(H){if(this.data&&this.data.title&&H&&H.basicColorData&&H.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.Iw(H.basicColorData.foregroundTitleColor)+";"};
_.F.computeSubtitleStyle=function(H){if(this.data&&this.data.subtitle&&H&&H.basicColorData&&H.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.Iw(H.basicColorData.foregroundBodyColor)+";"};
_.F.computeSupplementalStyle=function(H){if(this.data&&this.data.supplementalText&&H&&H.supplementalTextColor!==void 0)return H=_.Iw(H.supplementalTextColor),"color:"+H+";--yt-endpoint-color:"+H+";--yt-endpoint-hover-color:"+H+";--yt-endpoint-visited-color:"+H+";--yt-formatted-string-bold-font-weight:700;"};
_.F.computeDismissIconStyle=function(H){var C,S;if((H==null?0:(C=H.dismissButtonColorData)==null?0:C.foregroundTitleColor)&&(H==null?0:(S=H.dismissButtonColorData)==null?0:S.backgroundColor))return"--yt-button-color:"+_.aw(H.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.aw(H.dismissButtonColorData.backgroundColor)+";"};
_.F.computeOverflowIconStyle=function(H){var C,S;if((H==null?0:(C=H.dismissButtonColorData)==null?0:C.foregroundTitleColor)&&(H==null?0:(S=H.dismissButtonColorData)==null?0:S.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.aw(H.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.aw(H.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.aw(H.dismissButtonColorData.foregroundTitleColor)+";"};
_.F.computeBannerStyle=function(H){return H?H.toLowerCase().replace(/_/g,"-"):""};
_.F.computeLocation=function(H){switch(H==null?void 0:H.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.F.shouldShowTileSection=function(H,C,S){return!this.shouldExpandLogo(H,C,S)&&C};
_.F.shouldShowExpandedLogoSection=function(H,C,S){return this.shouldExpandLogo(H,C,S)&&H!==void 0&&this.hasLogo(H)};
_.F.shouldExpandLogo=function(H,C,S){return H&&C?!1:S>=2};
_.F.hasStaticTile=function(H){return!(H==null||!H.tileImage)};
_.F.hasTileLottie=function(H){var C;return!!(H==null?0:(C=H.tileLottie)==null?0:C.url)};
_.F.hasLogo=function(H){return this.getCurrentLogo(H,this.isDarkTheme)!==void 0};
_.F.getLogoHeight=function(H){return this.logoWithPadding(H)?"26":"20"};
_.F.getExpandedLogoHeight=function(H){return this.logoWithPadding(H)?"31":"24"};
_.F.getLogoImageId=function(H){return this.logoWithPadding(H)?"logo-image-with-padding":"logo-image"};
_.F.getMaxTitleFontSize=function(H){return H.overrideTitleMaxFontSize?String(H.overrideTitleMaxFontSize):"36"};
_.F.hasBackgroundLottie=function(H){var C;return!!(H==null?0:(C=H.backgroundLottie)==null?0:C.url)};
_.F.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var H,C;(H=this.tileLottieAnimationRef)==null||(C=H.lottieEl)==null||C.play();var S,w;(S=this.backgroundLottieAnimationRef)==null||(w=S.lottieEl)==null||w.play()}};
_.F.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var H,C;(H=this.tileLottieAnimationRef)==null||(C=H.lottieEl)==null||C.pause();var S,w;(S=this.backgroundLottieAnimationRef)==null||(w=S.lottieEl)==null||w.pause()}};
_.F.pauseLottie=function(){var H,C;(H=this.tileLottieAnimationRef)==null||(C=H.lottieEl)==null||C.pause();var S,w;(S=this.backgroundLottieAnimationRef)==null||(w=S.lottieEl)==null||w.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.F.performPrimaryButtonAction=function(){var H,C,S;((H=this.data)==null?0:(C=H.primaryButton)==null?0:(S=C.buttonRenderer)==null?0:S.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.F.requestElementsPerRow=function(){_.M3(this.hostElement,"yt-request-elements-per-row")};
_.F.updateButtonPalette=function(){if(this.data&&this.currentColorData){var H;((H=this.data.dismissButton)==null?0:H.buttonRenderer)&&this.currentColorData.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.dismissButtonColorData},this.data.dismissButton.buttonRenderer.style=void 0,this.set("dismissButton",{buttonRenderer:Object.assign({},this.data.dismissButton.buttonRenderer)}));var C;if((C=this.data.primaryButton)==null?0:C.buttonRenderer)this.currentColorData.primaryButtonColorData?
(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorData.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorData.primaryButtonStyleType,this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)});var S;if((S=this.data.secondaryButton)==
null?0:S.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 w;((w=this.data.primaryButton)==null?0:w.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var A;((A=this.data.secondaryButton)==null?0:A.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var J;((J=this.data.primaryButton)==null?0:J.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},
this.data.primaryButton.buttonViewModel)})}};
_.F.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var H=this.getTileLottieDataBasedOnTheme(),C,S;if(H.url!==((C=this.tileLottiePlayerProps)==null?void 0:(S=C.animationConfig)==null?void 0:S.path)){var w,A;(w=this.tileLottieAnimationRef)==null||(A=w.lottieEl)==null||A.destroy();var J;this.isOnHoverBehaviorForLottieEnabled=!((J=H.settings)==null?0:J.autoplay);var c,Y;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(Y=(c=H.settings)==null?void 0:c.autoplay)!=null?Y:!1,loop:this.getLottieLoopValue(H.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof H.url==="string"?this.tileLottiePlayerProps.animationConfig.path=H.url:this.tileLottiePlayerProps.animationConfig.animationData=H.url}}};
_.F.getOverflowButton=function(H){return _.e(H.overflowButton,kNb)};
_.F.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var H=this.getBackgroundLottieDataBasedOnTheme(),C,S;if(H.url!==((C=this.backgroundLottiePlayerProps)==null?void 0:(S=C.animationConfig)==null?void 0:S.path)){var w,A;(w=this.backgroundLottieAnimationRef)==null||(A=w.lottieEl)==null||A.destroy();var J;this.isOnHoverBehaviorForLottieEnabled=!((J=H.settings)==null?0:J.autoplay);var c,Y;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(Y=(c=H.settings)==null?void 0:c.autoplay)!=null?Y:!1,loop:this.getLottieLoopValue(H.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof H.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=H.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
H.url}}};
_.F.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var H;((H=this.tileLottieAnimationRef)==null?void 0:H.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var C;((C=this.backgroundLottieAnimationRef)==null?void 0:C.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.F.getTileLottieDataBasedOnTheme=function(){var H;if(this.isDarkTheme&&((H=this.data)==null?0:H.darkThemeTileLottie))return this.data.darkThemeTileLottie;var C;return((C=this.data)==null?0:C.tileLottie)?this.data.tileLottie:{}};
_.F.getBackgroundLottieDataBasedOnTheme=function(){var H;if(this.isDarkTheme&&((H=this.data)==null?0:H.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var C;return((C=this.data)==null?0:C.backgroundLottie)?this.data.backgroundLottie:{}};
_.F.onUpdateElementsPerRowAction=function(H){H&&this.elementsPerRow!==H&&(this.elementsPerRow=H)};
_.F.getLottieLoopValue=function(H){return H?H.loop!==void 0?H.loop:H.loopCount?H.loopCount-1:!0:!0};
_.F.logoWithPadding=function(H){var C,S,w;return(H=(C=this.getCurrentLogo(H,this.isDarkTheme))==null?void 0:(S=C.thumbnails)==null?void 0:(w=S[0])==null?void 0:w.height)&&H%31===0?!0:!1};
zg.prototype.currentColorChanged=zg.prototype.currentColorChanged;zg.prototype.themeChanged=zg.prototype.themeChanged;zg.prototype.dataChanged=zg.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],zg.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],zg.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.m4),_.K("design:type",Object)],zg.prototype,"ytdDismissibleItemBehavior",void 0);
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],zg.prototype,"actionHandlerBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],zg.prototype,"ytComponentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],zg.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],zg.prototype,"primaryButton",void 0);_.D([_.V(),_.K("design:type",Object)],zg.prototype,"secondaryButton",void 0);
_.D([_.V({reflectToAttribute:!0,value:3}),_.K("design:type",Number)],zg.prototype,"elementsPerRow",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],zg.prototype,"isDarkTheme",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],zg.prototype,"hasTile",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],zg.prototype,"hasMetadata",void 0);
_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],zg.prototype,"showLogoImage",void 0);_.D([_.V(),_.K("design:type",Object)],zg.prototype,"currentColorData",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.K("design:type",String)],zg.prototype,"bannerStyle",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.K("design:type",String)],zg.prototype,"location",void 0);
_.D([_.V(),_.K("design:type",Object)],zg.prototype,"tileLottiePlayerProps",void 0);_.D([_.V(),_.K("design:type",Object)],zg.prototype,"tileLottieAnimationRef",void 0);_.D([_.V(),_.K("design:type",Object)],zg.prototype,"backgroundLottiePlayerProps",void 0);_.D([_.V(),_.K("design:type",Object)],zg.prototype,"backgroundLottieAnimationRef",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],zg.prototype,"useBiggerShowcaseImage",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],zg.prototype,"isHideEnclosingAction",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],zg.prototype,"dataChanged",null);_.D([_.XJ("isDarkTheme"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],zg.prototype,"themeChanged",null);
_.D([_.XJ("currentColorData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],zg.prototype,"currentColorChanged",null);_.D([_.h({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],zg);
_.B(zg,"ytd-statement-banner-renderer",function(){if(Iid!==void 0)return Iid;var H=document.createElement("template");_.f(H,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="[[getMaxTitleFontSize(data)]]" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="new-badge-container" hidden="[[data.badge]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n            <div id="badge-view-model-container" class="style-scope ytd-statement-banner-renderer">\n              <div id="additional-badge-view-model" hidden="[[!data.additionalBadge]]" class="style-scope ytd-statement-banner-renderer"></div>\n              <div id="badge-view-model" hidden="[[!data.badge]]" class="style-scope ytd-statement-banner-renderer"></div>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Iid=H},{mode:1});var aiW;var M6=function(){var H=_.X.apply(this,arguments)||this;H.isSearch=!1;H.hideShelfHeader=!1;H.engagementPanel=!1;H.disableMouseScroll=!0;H.useFloorScrolling=!0;return H};
_.G(M6,_.X);M6.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.fL("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.fL("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
M6.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
M6.prototype.onDataChanged=M6.prototype.onDataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],M6.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],M6.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],M6.prototype,"isSearch",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],M6.prototype,"hideShelfHeader",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],M6.prototype,"engagementPanel",void 0);_.D([_.V(),_.K("design:type",Object)],M6.prototype,"disableMouseScroll",void 0);_.D([_.V(),_.K("design:type",Object)],M6.prototype,"useFloorScrolling",void 0);_.D([_.V(),_.K("design:type",Object)],M6.prototype,"data",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],M6.prototype,"onDataChanged",null);
_.D([_.h({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],M6);
_.B(M6,"ytd-reel-shelf-renderer",function(){if(aiW!==void 0)return aiW;var H=document.createElement("template");_.f(H,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n  <h2 class="style-scope ytd-reel-shelf-renderer">\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n    <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n  </h2>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return aiW=H},{mode:_.mn("kevlar_poly_si_batch_j028")?1:2});var xa_;var Hj_;Hj_=_.xC(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.ijV=_.qH(Hj_);var CHd=_.n(function(H){var C=H.data;H=H.useSmallFont;var S={},w={};return _.q("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.q(_.T,{cond:function(){return C().favicon},
then:function(A){return _.q(_.Jg,{data:A,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.q("div",{class:"ytChannelExternalLinkViewModelContainer"},_.q(_.uZ,{text:function(){return C().title},
className:_.eJ("ytChannelExternalLinkViewModelTitle",(S.ytChannelExternalLinkViewModelTitleSmallFont=H,S)),ellipsisTruncate:!0,userInput:!0}),_.q(_.uZ,{text:function(){return C().link},
className:_.eJ("ytChannelExternalLinkViewModelLink",(w.ytChannelExternalLinkViewModelLinkSmallFont=H,w)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"$b");
CHd.idomCompat=!0;_.qs(CHd,"yt-channel-external-link-view-model",{props:{data:_.GH,useSmallFont:_.GH}});_.hg("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var q6=function(){var H=_.X.apply(this,arguments)||this;H.revealButtonClass="button";H.businessEmailDisplayState="HIDE_SECTION";return H};
_.G(q6,_.X);_.F=q6.prototype;_.F.refit=function(){var H=this;_.HI(function(){_.m7(H.hostElement,"yt-refit-popups-action")});
_.wM(this,function(){_.m7(H.hostElement,"yt-refit-popups-action")})};
_.F.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Ie(_.ijV),this.businessEmailDisplayState="CAPTCHA")};
_.F.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"};
_.F.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.F.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"}}}};
_.F.computeEmailHref=function(H){return"mailto:"+H};
_.F.computeSafeUrl=function(H){if(H)return _.D4(H)};
_.F.linkEndpoint=function(H){return _.e(H.onTap,_.tx)};
_.F.linkEndpointToHref=function(H){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(H))};
_.F.onYtServiceRequestCompleted=function(H){var C;if((C=H.detail.data)==null?0:C.businessEmail)this.businessEmail=H.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var S;if((S=H.detail.data)==null?0:S.errorMessage)this.businessEmailErrorMessage=H.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.F.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var H=this.JSC$16277_captchaTextarea.value;if(H){H={recaptcha_response_token:H,channel_id:this.metadata.channelId};var C=_.e(this.metadata.onBusinessEmailRevealClickCommand,_.tx);C&&this.ytComponentBehavior.resolveCommand(C,{form:H})}}};
_.F.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.JJ.Object.defineProperties(q6.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var H;return _.e((H=this.data)==null?void 0:H.metadata,UR7)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.e(this.metadata.businessEmailRevealButton,_.qc)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var H=new URL(this.metadata.canonicalChannelUrl);return H.host+H.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 _.e(this.metadata.learnMoreOnTap,_.tx)}}});
q6.prototype.onYtServiceRequestCompleted=q6.prototype.onYtServiceRequestCompleted;q6.prototype.businessEmailMetadataChanged=q6.prototype.businessEmailMetadataChanged;q6.prototype.refit=q6.prototype.refit;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],q6.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],q6.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],q6.prototype,"ytRendererstamperBehavior",void 0);_.D([_.lA("#g-recaptcha-response"),_.K("design:type",HTMLTextAreaElement)],q6.prototype,"JSC$16277_captchaTextarea",void 0);_.D([_.V(),_.K("design:type",Object)],q6.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],q6.prototype,"revealButtonClass",void 0);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],q6.prototype,"metadata",null);
_.D([_.l("metadata"),_.K("design:type",Object),_.K("design:paramtypes",[])],q6.prototype,"revealButton",null);_.D([_.l("metadata"),_.K("design:type",Object),_.K("design:paramtypes",[])],q6.prototype,"channelDisplayUrl",null);_.D([_.XJ("metadata"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],q6.prototype,"refit",null);_.D([_.l("metadata"),_.K("design:type",Object),_.K("design:paramtypes",[])],q6.prototype,"formattedDescription",null);
_.D([_.l("metadata","learnMoreCommand"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],q6.prototype,"shouldRendereVerifiedPhoneStatus",null);_.D([_.l("metadata"),_.K("design:type",Object),_.K("design:paramtypes",[])],q6.prototype,"learnMoreCommand",null);_.D([_.V(),_.K("design:type",String)],q6.prototype,"businessEmailDisplayState",void 0);_.D([_.V(),_.K("design:type",String)],q6.prototype,"businessEmail",void 0);
_.D([_.V(),_.K("design:type",String)],q6.prototype,"businessEmailErrorMessage",void 0);_.D([_.XJ("metadata"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],q6.prototype,"businessEmailMetadataChanged",null);_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],q6.prototype,"onYtServiceRequestCompleted",null);_.D([_.h({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],q6);
_.B(q6,"ytd-about-channel-renderer",function(){if(xa_!==void 0)return xa_;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return xa_=H},{mode:1});var S1W;var Tg=function(){return _.X.apply(this,arguments)||this};
_.G(Tg,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Tg.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Tg.prototype,"data",void 0);_.D([_.h({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],Tg);
_.B(Tg,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(S1W!==void 0)return S1W;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return S1W=H},{mode:1});var sA1;var mA=function(){return _.X.apply(this,arguments)||this};
_.G(mA,_.X);mA.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],mA.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],mA.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",String)],mA.prototype,"aligment",void 0);_.D([_.h({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],mA);
_.B(mA,"ytd-channel-list-sub-menu-renderer",function(){if(sA1!==void 0)return sA1;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return sA1=
H},{mode:1});var jA1;var Wv=function(){return _.X.apply(this,arguments)||this};
_.G(Wv,_.X);Wv.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}}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Wv.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Wv.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Wv.prototype,"data",void 0);_.D([_.h({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],Wv);
_.B(Wv,"ytd-channel-sub-menu-renderer",function(){if(jA1!==void 0)return jA1;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return jA1=H},{mode:1});var w6P;var ADV;var y3=function(){var H=_.X.apply(this,arguments)||this;H.isCompact=!1;return H};
_.G(y3,_.X);_.JJ.Object.defineProperties(y3.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var H,C;return((C=_.e((H=this.data)==null?void 0:H.endpoint,_.R8))==null?void 0:C.target)==="TARGET_NEW_WINDOW"}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],y3.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],y3.prototype,"componentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],y3.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],y3.prototype,"isCompact",void 0);_.D([_.l("isCompact"),_.K("design:type",Number),_.K("design:paramtypes",[])],y3.prototype,"thumbnailWidth",null);
_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],y3.prototype,"openNewWindow",null);_.D([_.h({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],y3);
_.B(y3,"ytd-media-lockup-renderer",function(){if(ADV!==void 0)return ADV;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return ADV=H},{mode:1});var JD7;var N6=function(){return _.X.apply(this,arguments)||this};
_.G(N6,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],N6.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],N6.prototype,"componentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],N6.prototype,"data",void 0);_.D([_.h({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],N6);
_.B(N6,"ytd-structured-description-channel-lockup-renderer",function(){if(JD7!==void 0)return JD7;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return JD7=H},{mode:1});var F5_;var bu=function(){var H=_.X.apply(this,arguments)||this;H.isCompact=!1;H.collections=_.E("web_modern_collections_v2");H.collectionsStackColor=_.E("modernize_structured_description_playlist_lockups_v2");return H};
_.G(bu,_.X);bu.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:_.E("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.JJ.Object.defineProperties(bu.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var H,C,S,w,A,J;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(H=this.data)==null?void 0:(C=H.thumbnail)==null?void 0:C.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(S=this.data)==null?void 0:(w=S.thumbnail)==null?void 0:w.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(A=this.data)==null?void 0:(J=A.thumbnail)==
null?void 0:J.vibrantColorPalette:void 0}}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],bu.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],bu.prototype,"componentBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],bu.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],bu.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],bu.prototype,"showSidePanelThumbnailOverlay",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],bu.prototype,"isCompact",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],bu.prototype,"collections",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],bu.prototype,"collectionsStackColor",void 0);_.D([_.l("data"),_.V({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],bu.prototype,"twoLineTitle",null);
_.D([_.l("data","collections","collectionsStackColor"),_.K("design:type",Object),_.K("design:paramtypes",[])],bu.prototype,"collectionStack",null);_.D([_.h({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],bu);
_.B(bu,"ytd-structured-description-playlist-lockup-renderer",function(){if(F5_!==void 0)return F5_;var H=document.createElement("template");_.f(H,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]" aria-label$="[[getSimpleString(data.title)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return F5_=H},{mode:1});var Zjd;var ED=function(){return _.X.apply(this,arguments)||this};
_.G(ED,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],ED.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],ED.prototype,"componentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],ED.prototype,"data",void 0);_.D([_.h({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],ED);
_.B(ED,"ytd-structured-description-video-lockup-renderer",function(){if(Zjd!==void 0)return Zjd;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return Zjd=H},{mode:2});var eS=function(){return _.X.apply(this,arguments)||this};
_.G(eS,_.X);
eS.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}}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],eS.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],eS.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],eS.prototype,"data",void 0);_.D([_.h({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],eS);
_.B(eS,"ytd-compact-infocard-renderer",function(){if(w6P!==void 0)return w6P;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return w6P=H},{mode:1});var cDn;var uu=function(){var H=_.X.apply(this,arguments)||this;H.useModernCollectionsV2=_.E("web_modern_collections_v2");return H};
_.G(uu,_.X);uu.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.JJ.Object.defineProperties(uu.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.E("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.E("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.E("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],uu.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],uu.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.m4),_.K("design:type",Object)],uu.prototype,"ytdDismissibleItemBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],uu.prototype,"ytdReduxBehavior",void 0);_.D([_.V({selector:_.tg}),_.K("design:type",Object)],uu.prototype,"isGridViewEnabled",void 0);
_.D([_.l("isGridViewEnabled"),_.V({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],uu.prototype,"watchFeedBigThumbs",null);_.D([_.l("isGridViewEnabled","data"),_.V({reflectToAttribute:!0,value:"168"}),_.K("design:type",String),_.K("design:paramtypes",[])],uu.prototype,"thumbnailWidth",null);_.D([_.l("isGridViewEnabled","data"),_.V({reflectToAttribute:!0,value:"94"}),_.K("design:type",String),_.K("design:paramtypes",[])],uu.prototype,"customThumbnailSize",null);
_.D([_.V(),_.K("design:type",Object)],uu.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],uu.prototype,"useModernCollectionsV2",void 0);_.D([_.h({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],uu);
_.B(uu,"ytd-compact-playlist-renderer",function(){if(cDn!==void 0)return cDn;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return cDn=H},{mode:1});var Y17;var Gg=function(){var H=_.X.apply(this,arguments)||this;H.darkerDarkTheme=_.E("web_darker_dark_theme");H.roundedContainer=!0;H.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return H};
_.G(Gg,_.X);_.F=Gg.prototype;_.F.attached=function(){this.requestElementsPerRow()};
_.F.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"}}}};
_.F.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.F.computeViewStyle=function(H){return H.style?H.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.F.onUpdateElementsPerRowAction=function(H){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&H===1};
_.F.requestElementsPerRow=function(){_.M3(this.hostElement,"yt-request-elements-per-row")};
Gg.prototype.dataChanged=Gg.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Gg.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Gg.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.m4),_.K("design:type",Object)],Gg.prototype,"ytdDismissibleItemBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],Gg.prototype,"actionHandlerBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],Gg.prototype,"data",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],Gg.prototype,"hideThumbnail",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.K("design:type",String)],Gg.prototype,"viewStyle",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Gg.prototype,"darkerDarkTheme",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Gg.prototype,"roundedContainer",void 0);
_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Gg.prototype,"dataChanged",null);_.D([_.h({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],Gg);
_.B(Gg,"ytd-compact-promoted-item-renderer",function(){if(Y17!==void 0)return Y17;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Y17=H},{mode:1});var zj1;var fS=function(){var H=_.X.apply(this,arguments)||this;H.collections=_.E("web_modern_collections_v2");return H};
_.G(fS,_.X);fS.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
fS.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
fS.prototype.onYtNavigate=function(H,C){var S=this;if(C.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",C)){var w=this.get("watchEndpoint.videoId",C.endpoint),A=_.m7(this.hostElement,"yt-get-current-video-id-action")[0];_.E("kevlar_mix_handle_first_endpoint_different")&&w&&A&&w!==A||(H.stopPropagation(),_.ct().getPlayerPromise().then(function(J){if(J.getPlayerState()===0&&S.data.secondaryNavigationEndpoint)var c=S.data.secondaryNavigationEndpoint;else{c=
Object.assign({},C.endpoint);var Y=_.e(c.commandMetadata,_.u9);Y&&(J=Math.floor(J.getCurrentTime()),Y.url=_.i5(Y.url,{t:J}),!_.E("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(Y=_.e(c,_.sX)))&&(Y.startTimeSeconds=J)}_.M3(S.hostElement,"yt-navigate",{endpoint:c})}))}};
_.JJ.Object.defineProperties(fS.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.E("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.E("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var H,C,S,w,A,J;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(H=this.data)==null?void 0:(C=H.thumbnail)==null?void 0:C.sampledThumbnailColor,vibrantColorPalette:(S=this.data)==null?void 0:(w=S.thumbnail)==null?void 0:w.vibrantColorPalette,darkColorPalette:(A=this.data)==null?void 0:(J=A.thumbnail)==null?void 0:J.darkColorPalette,experimentEnabled:this.collections}}}});
fS.prototype.onYtNavigate=fS.prototype.onYtNavigate;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],fS.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.tZ.YtEndpointBehavior),_.K("design:type",Object)],fS.prototype,"ytEndpointBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],fS.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.m4),_.K("design:type",Object)],fS.prototype,"ytdDismissibleItemBehavior",void 0);
_.D([_.v(_.uU),_.K("design:type",Object)],fS.prototype,"ytdLockupBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],fS.prototype,"ytdReduxBehavior",void 0);_.D([_.V({selector:_.tg}),_.K("design:type",Object)],fS.prototype,"isGridViewEnabled",void 0);_.D([_.l("isGridViewEnabled"),_.V({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],fS.prototype,"watchFeedBigThumbs",null);
_.D([_.l("isGridViewEnabled"),_.V({reflectToAttribute:!0}),_.K("design:type",String),_.K("design:paramtypes",[])],fS.prototype,"thumbnailWidth",null);_.D([_.V(),_.K("design:type",Object)],fS.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],fS.prototype,"collections",void 0);_.D([_.l("data","collections"),_.K("design:type",Object),_.K("design:paramtypes",[])],fS.prototype,"collectionStack",null);
_.D([_.Gz("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],fS.prototype,"onYtNavigate",null);_.D([_.h({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],fS);
_.B(fS,"ytd-compact-radio-renderer",function(){if(zj1!==void 0)return zj1;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return zj1=H},{mode:1});var MH7;var vv=function(){return _.X.apply(this,arguments)||this};
_.G(vv,_.X);vv.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
vv.prototype.computeRendererStyle=function(H){return H.style?H.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.D([_.V(),_.K("design:type",Object)],vv.prototype,"data",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],vv.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],vv.prototype,"rendererBehavior",void 0);_.D([_.V({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.K("design:type",String)],vv.prototype,"rendererStyle",void 0);_.D([_.h({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],vv);
_.B(vv,"ytd-compact-text-promo-renderer",function(){if(MH7!==void 0)return MH7;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return MH7=H},{mode:1});var q17;var lu=function(){var H=_.X.apply(this,arguments)||this;H.isShortsStyle=!1;return H};
_.G(lu,_.X);_.F=lu.prototype;_.F.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"}}}};
_.F.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.M3(this.hostElement,"yt-disable-lockup-interaction"):_.M3(this.hostElement,"yt-enable-lockup-interaction"))};
_.F.isMetaBlockEmpty=function(H){return!H||!H.longBylineText&&!H.shortBylineText&&!H.shortViewCountText&&!H.viewCountText};
_.F.computeHasOneLineTitle=function(H){return this.forceOneLineTitle||!(H==null||!H.buttons)};
_.F.computeDisableInteraction=function(){var H;return!((H=this.data)==null?0:H.navigationEndpoint)};
_.F.hasSingularTopStandaloneBadge=function(){var H;return!((H=this.data)==null||!H.topStandaloneBadge)};
_.JJ.Object.defineProperties(lu.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.E("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.E("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 H;return this.hasSingularTopStandaloneBadge()?[(H=this.data)==null?void 0:H.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var H;return this.shouldShowTopBadges?((H=this.data)==null?void 0:H.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
lu.prototype.disableInteractionChanged=lu.prototype.disableInteractionChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],lu.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],lu.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.m4),_.K("design:type",Object)],lu.prototype,"ytdDismissibleItemBehavior",void 0);_.D([_.v(_.uU),_.K("design:type",Object)],lu.prototype,"ytdLockupBehavior",void 0);
_.D([_.v(_.q$),_.K("design:type",Object)],lu.prototype,"ytdReduxBehavior",void 0);_.D([_.V({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.K("design:type",Boolean)],lu.prototype,"metaBlockEmpty",void 0);_.D([_.V({selector:_.tg}),_.K("design:type",Object)],lu.prototype,"isGridViewEnabled",void 0);_.D([_.l("isGridViewEnabled"),_.V({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],lu.prototype,"watchFeedBigThumbs",null);
_.D([_.l("isGridViewEnabled"),_.V({reflectToAttribute:!0}),_.K("design:type",String),_.K("design:paramtypes",[])],lu.prototype,"thumbnailWidth",null);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],lu.prototype,"isShortsStyle",void 0);_.D([_.V(),_.K("design:type",Object)],lu.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.K("design:type",Boolean)],lu.prototype,"hasOneLineTitle",void 0);
_.D([_.V(),_.K("design:type",Boolean)],lu.prototype,"hideThumbnail",void 0);_.D([_.V(),_.K("design:type",Boolean)],lu.prototype,"forceOneLineTitle",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.K("design:type",Boolean)],lu.prototype,"disableInteraction",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],lu.prototype,"musicMetadataVideoLockup",void 0);
_.D([_.fx("disableInteraction"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lu.prototype,"disableInteractionChanged",null);_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],lu.prototype,"shouldShowTopBadges",null);_.D([_.l("data"),_.K("design:type",Array),_.K("design:paramtypes",[])],lu.prototype,"topBadges",null);
_.D([_.l("shouldShowTopBadges","data"),_.K("design:type",Array),_.K("design:paramtypes",[])],lu.prototype,"inlineMetadataBadges",null);_.D([_.l("shouldShowTopBadges"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],lu.prototype,"shouldShowBadgesBelowMetadata",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],lu.prototype,"compactTitleClass",null);_.D([_.h({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],lu);
_.B(lu,"ytd-compact-video-renderer",function(){if(q17!==void 0)return q17;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return q17=H},{mode:_.mn("kevlar_poly_si_batch_j067")?1:2});var T7d;_.hg("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var V3=function(){return _.X.apply(this,arguments)||this};
_.G(V3,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],V3.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],V3.prototype,"data",void 0);_.D([_.h({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],V3);
_.B(V3,"ytd-counterfactual-renderer",function(){if(T7d!==void 0)return T7d;var H=document.createElement("template");_.f(H,"\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");H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return T7d=H},{mode:1});var mV1;var oX=function(){var H=_.X.apply(this,arguments)||this;H.hidden=!1;return H};
_.G(oX,_.X);oX.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.JA().resolve(_.ZQ).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
oX.prototype.computeHidden=function(H){return!!H};
_.JJ.Object.defineProperties(oX.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}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],oX.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],oX.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.K("design:type",Object)],oX.prototype,"hidden",void 0);_.D([_.l("data.label"),_.K("design:type",String),_.K("design:paramtypes",[])],oX.prototype,"label",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],oX.prototype,"value",null);
_.D([_.h({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],oX);
_.B(oX,"ytd-dropdown-item-renderer",function(){if(mV1!==void 0)return mV1;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return mV1=H},{mode:1});var W51;var yDP;var OD=function(){return _.X.apply(this,arguments)||this};
_.G(OD,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],OD.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],OD.prototype,"data",void 0);_.D([_.V({computed:"getSimpleString(data.label)"}),_.K("design:type",String)],OD.prototype,"label",void 0);_.D([_.h({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],OD);
_.B(OD,"ytd-navigation-dropdown-item-renderer",function(){if(yDP!==void 0)return yDP;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return yDP=H},{mode:1});var Xh=function(){var H=_.X.apply(this,arguments)||this;H.disabled=!1;H.value="";H.noLabelFloat=!1;H.noUnderline=!1;H.usePrimaryColor=!1;H.hasBackground=!1;H.verticalAlign="top";H.autosize=!1;H.minAutosizeWidth=100;H.autosizeFont="14px Roboto";return H};
_.G(Xh,_.X);_.F=Xh.prototype;_.F.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"}}}};
_.F.open=function(){this.inputEl.open()};
_.F.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.F.dataChanged=function(){this.reset()};
_.F.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uQ("value-changed",this.value))};
_.F.stopPropagation=function(H){H.stopPropagation()};
_.F.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var H=this.canvas.getContext("2d");H&&(H.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(H.measureText(this.inputEl.value).width)+24)+"px")}};
_.F.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var H=0,C=this.data.entries.length;H<C;H++){var S=this.data.entries[H],w;for(w in S)if(S.hasOwnProperty(w)){var A=S[w];if("isSelected"in A&&A.isSelected)return"stringValue"in A?A.stringValue||"":"int32Value"in A?A.int32Value||0:0}}return null};
_.F.updateValueFromBinding=function(H){this.value=H.detail.value};
_.JJ.Object.defineProperties(Xh.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 H=0,C=this.data.entries.length;H<C;H++){var S=this.data.entries[H],w;for(w in S)if(S.hasOwnProperty(w)){var A=S[w];if("isSelected"in A&&A.isSelected&&"label"in A)return this.ytRendererBehavior.getSimpleString(A.label)}}return null}}});
Xh.prototype.autoSizeLabel=Xh.prototype.autoSizeLabel;Xh.prototype.stopPropagation=Xh.prototype.stopPropagation;Xh.prototype.valueChangedForBinding=Xh.prototype.valueChangedForBinding;Xh.prototype.dataChanged=Xh.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Xh.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Xh.prototype,"ytRendererStamperBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],Xh.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Xh.prototype,"disabled",void 0);_.D([_.V(),_.K("design:type",Object)],Xh.prototype,"value",void 0);_.D([_.V(),_.K("design:type",Object)],Xh.prototype,"noLabelFloat",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Xh.prototype,"noUnderline",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",String)],Xh.prototype,"theme",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Xh.prototype,"usePrimaryColor",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Xh.prototype,"hasBackground",void 0);_.D([_.V(),_.K("design:type",Object)],Xh.prototype,"verticalAlign",void 0);_.D([_.V(),_.K("design:type",Object)],Xh.prototype,"autosize",void 0);_.D([_.V(),_.K("design:type",Object)],Xh.prototype,"minAutosizeWidth",void 0);_.D([_.V(),_.K("design:type",Object)],Xh.prototype,"autosizeFont",void 0);
_.D([_.lA("#entries"),_.K("design:type",Object)],Xh.prototype,"entries",void 0);_.D([_.lA("#input"),_.K("design:type",Object)],Xh.prototype,"inputEl",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Xh.prototype,"dataChanged",null);_.D([_.XJ("value"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Xh.prototype,"valueChangedForBinding",null);
_.D([_.Gz("iron-overlay-opened"),_.Gz("iron-overlay-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Xh.prototype,"stopPropagation",null);_.D([_.Gz("iron-select"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Xh.prototype,"autoSizeLabel",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Xh.prototype,"label",null);
_.D([_.h({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],Xh);
_.B(Xh,"ytd-dropdown-renderer",function(){if(W51!==void 0)return W51;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return W51=H},{mode:1});var N71;var Q3=function(){var H=_.X.apply(this,arguments)||this;H.isConstrainedList=!1;return H};
_.G(Q3,_.X);Q3.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"}}}};
Q3.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
Q3.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
Q3.prototype.computeViewAllHidden=function(H,C){return H||!C.viewAllEndpoint};
Q3.prototype.fillRestIfNoShowMore=Q3.prototype.fillRestIfNoShowMore;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Q3.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Q3.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.$o.YtLazyListBehavior),_.K("design:type",Object)],Q3.prototype,"ytLazyListBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Q3.prototype,"data",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Q3.prototype,"isConstrainedList",void 0);_.D([_.XJ("data","canShowMore"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Q3.prototype,"fillRestIfNoShowMore",null);_.D([_.h({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],Q3);
_.B(Q3,"ytd-expanded-shelf-contents-renderer",function(){if(N71!==void 0)return N71;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return N71=H},{mode:_.mn("kevlar_poly_si_batch_j025")?1:2});var bjU;var d3=function(){return _.X.apply(this,arguments)||this};
_.G(d3,_.X);d3.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}}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],d3.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],d3.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],d3.prototype,"data",void 0);_.D([_.h({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],d3);
_.B(d3,"ytd-feed-channel-filter-header-renderer",function(){if(bjU!==void 0)return bjU;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return bjU=H},{mode:1});var EKV;var ejn;var upM;var Pv=function(){return _.X.apply(this,arguments)||this};
_.G(Pv,_.X);_.F=Pv.prototype;_.F.onClick=function(H){var C,S=(C=this.data)==null?void 0:C.sectionEndpoint;!_.ww(_.Ar(H),this.hostElement,["A".toString()])&&S&&_.M3(this.hostElement,"yt-navigate",{endpoint:S})};
_.F.computeHasSectionEndpoint=function(H){return(H==null?void 0:H.sectionEndpoint)!==void 0};
_.F.computeShowHeaderAsLink=function(H){return(H==null?void 0:H.header)!==void 0&&(H==null?void 0:H.sectionEndpoint)!==void 0};
_.F.computeShowSubheaderAsLink=function(H){return(H==null?void 0:H.subheader)!==void 0&&(H==null?void 0:H.sectionEndpoint)!==void 0&&(H==null?void 0:H.header)===void 0};
_.F.getHeaderAsLinkClass=function(H){var C=[],S;(H==null?0:(S=H.headerIcon)==null?0:S.iconType)&&C.push("header-link-active");return C.join(" ")};
_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Pv.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Pv.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Pv.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Pv.prototype,"data",void 0);
_.D([_.V({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Pv.prototype,"hasSectionEndpoint",void 0);_.D([_.V({computed:"computeShowHeaderAsLink(data)"}),_.K("design:type",Boolean)],Pv.prototype,"showHeaderAsLink",void 0);_.D([_.V({computed:"computeShowSubheaderAsLink(data)"}),_.K("design:type",Boolean)],Pv.prototype,"showSubheaderAsLink",void 0);_.D([_.h({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],Pv);
_.B(Pv,"ytd-medical-panel-section-renderer",function(){if(upM!==void 0)return upM;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return upM=H},{mode:1});var $p=function(){var H=_.X.apply(this,arguments)||this;H.isExpanded=!1;H.roundedContainer=!0;H.skipRoundingTop=!1;H.toggleExpandableSection=function(){H.isExpanded=!H.isExpanded};
return H};
_.G($p,_.X);
$p.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]]"}}}}}};
$p.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
$p.prototype.dataChanged=$p.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],$p.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],$p.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],$p.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],$p.prototype,"isExpanded",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],$p.prototype,"roundedContainer",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],$p.prototype,"skipRoundingTop",void 0);_.D([_.V(),_.K("design:type",Object)],$p.prototype,"toggleExpandableSection",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$p.prototype,"dataChanged",null);_.D([_.h({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],$p);
_.B($p,"ytd-medical-panel-content-renderer",function(){if(ejn!==void 0)return ejn;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return ejn=H},{mode:1});_.hg("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var pS=function(){var H=_.X.apply(this,arguments)||this;H.roundedContainer=!0;H.extractOverlay=!1;H.amsterdamEnabled=_.E("enable_desktop_amsterdam_info_panels");H.hasTitle=!1;H.linkIcon="OPEN_IN_NEW";H.isDismissed=!1;return H};
_.G(pS,_.X);pS.prototype.onOverlayConditionsChange=function(){var H=_.mY(this.hostElement).querySelector("ytd-info-panel-content-renderer");H&&(H.set("extractOverlay",this.extractOverlay),H.set("roundedContainer",this.roundedContainer))};
pS.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]",extractOverlay:"[[extractOverlay]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",
roundedContainer:"[[roundedContainer]]"}},horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
pS.prototype.computeHasTitle=function(H){return!(H==null||!H.title)};
pS.prototype.onClick=function(H){var C,S=(C=this.data)==null?void 0:C.headerEndpoint;!_.ww(_.Ar(H),this.hostElement,["BUTTON".toString()])&&S&&this.ytComponentBehavior.resolveCommand(S)};
_.JJ.Object.defineProperties(pS.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 H;return((H=this.data)==null?void 0:H.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var H,C;return((H=this.data)==null?void 0:H.disableBottomDivider)||!((C=this.data)==null?0:C.title)}}});
pS.prototype.onOverlayConditionsChange=pS.prototype.onOverlayConditionsChange;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],pS.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],pS.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],pS.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],pS.prototype,"ytdReduxBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],pS.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],pS.prototype,"roundedContainer",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],pS.prototype,"extractOverlay",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],pS.prototype,"amsterdamEnabled",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.K("design:type",Object)],pS.prototype,"hasTitle",void 0);
_.D([_.V({type:_.E("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.l("data.background"),_.K("design:type",Object),_.K("design:paramtypes",[])],pS.prototype,"background",null);_.D([_.V({type:_.E("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.l("data.titleStyle"),_.K("design:type",Object),_.K("design:paramtypes",[])],pS.prototype,"titleStyle",null);
_.D([_.V({type:_.E("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.l("data.titleStyle"),_.K("design:type",Object),_.K("design:paramtypes",[])],pS.prototype,"showLinkIcon",null);_.D([_.V(),_.K("design:type",String)],pS.prototype,"linkIcon",void 0);_.D([_.V({type:_.E("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],pS.prototype,"hideDivider",null);
_.D([_.V({selectorArgs:["data.dismissStateEntityKey"],selector:function(H,C){H=_.Ea(H.entities,"dismissState",C);return(H==null?void 0:H.isDismissed)||(H==null?void 0:H.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(H==null?void 0:H.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.K("design:type",Object)],pS.prototype,"isDismissed",void 0);_.D([_.fx("roundedContainer","extractOverlay"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pS.prototype,"onOverlayConditionsChange",null);_.D([_.h({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],pS);
_.B(pS,"ytd-info-panel-container-renderer",function(){if(EKV!==void 0)return EKV;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return EKV=H},{mode:1});var G21;_.hg("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var kp=function(){return _.X.apply(this,arguments)||this};
_.G(kp,_.X);kp.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
kp.prototype.computeStyle=function(H){return H?H:""};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],kp.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],kp.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],kp.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.K("design:type",String)],kp.prototype,"titleStyle",void 0);
_.D([_.h({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],kp);
_.Tp()(kp,"ytd-item-section-header-renderer",function(){if(G21===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);G21=H}H=G21;return H},{allowedProps:["data"],
mode:1});var fv_;var vKd,lvn=function(){return vKd!==void 0?vKd:vKd=document.createElement("template")};
document.head.appendChild(lvn().content);var VHY;_.h6=new _.W4("VOTING_ANIMATION_CONTROLLER_TOKEN");var Oj_=_.n(function(H){var C=H.data;var S=_.sW("div"),w=_.sW("div");H=_.Z(_.mB("VOTE_STATUS_NONE",void 0,"YPH5mf"));var A=H.next().value,J=H.next().value,c=_.fn(g3Z,function(){var N;return(N=C())==null?void 0:N.entityKey}),Y=_.E("web_enable_voting_animation")||_.E("enable_music_web_cairo_voting_animation");
_.$T(function(){var N;((N=C().initialState)==null?0:N.status)&&J(C().initialState.status)});
var M=function(){var N,b,u=(b=(N=C().initialState)==null?void 0:N.votes)!=null?b:0,O;N=(O=C().initialState)==null?void 0:O.status;return N==="VOTE_STATUS_UPVOTED"?u-1:N==="VOTE_STATUS_DOWNVOTED"?u+1:u},m=function(){return A()==="VOTE_STATUS_UPVOTED"?M()+1:A()==="VOTE_STATUS_DOWNVOTED"?M()-1:M()},W=function(N){var b=N?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
J(b);var u=m(),O=_.JA().resolve(_.AA(_.h6)),d=c();d&&(N&&(d==null?0:d.upvoteDefaultButtonOnTap)?_.Im(d.upvoteDefaultButtonOnTap,{form:{element:S.value},disableClickTracking:!0}):(d==null?0:d.upvoteToggledButtonOnTap)&&_.Im(d.upvoteToggledButtonOnTap,{form:{element:S.value},disableClickTracking:!0}));var p;N=(p=d==null?void 0:d.enableOptimisticReordering)!=null?p:C().enableOptimisticReordering;Y&&O&&C().itemId&&N&&oKi(O,C().itemId,u,b)},y=function(N){var b=N?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
J(b);var u=m(),O=_.JA().resolve(_.AA(_.h6)),d=c();d&&(N&&(d==null?0:d.downvoteDefaultButtonOnTap)?_.Im(d.downvoteDefaultButtonOnTap,{form:{element:w.value},disableClickTracking:!0}):(d==null?0:d.downvoteToggledButtonOnTap)&&_.Im(d.downvoteToggledButtonOnTap,{form:{element:w.value},disableClickTracking:!0}));var p;N=(p=d==null?void 0:d.enableOptimisticReordering)!=null?p:C().enableOptimisticReordering;Y&&O&&C().itemId&&N&&oKi(O,C().itemId,u,b)};
H={};H=_.eJ("ytVotingViewModelVoteCount",(H.ytVotingViewModelVoteCountDisabled=function(){return C().isDisabled},H));
return _.q("voting-view-model",{class:"ytVotingViewModelHost"},_.q("div",{el:S},_.q(_.V4,{data:function(){var N=_.e(C().upvoteButton,_.mk);return{toggleButtonViewModel:Object.assign({},N,{isToggled:A()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(N){return _.q(_.Jv,{data:N.data,
onToggle:W})}})),_.q("div",{class:H},function(){var N,b,u;
return A()==="VOTE_STATUS_UPVOTED"?(N=C().initialState)==null?void 0:N.compactVotesUpvoted:A()==="VOTE_STATUS_DOWNVOTED"?(b=C().initialState)==null?void 0:b.compactVotesDownvoted:(u=C().initialState)==null?void 0:u.compactVotes}),_.q("div",{el:w},_.q(_.V4,{data:function(){var N=_.e(C().downvoteButton,_.mk);
return{toggleButtonViewModel:Object.assign({},N,{isToggled:A()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(N){return _.q(_.Jv,{data:N.data,
onToggle:y})}})))},"ac");_.qs(_.n(function(H){var C=H.data;return _.q("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.q("div",{class:_.eJ("ytEngagementBarViewModelEngagementBarWrapper",H.className)},_.q(_.V4,{data:function(){return C().actions}},{votingViewModel:Oj_})))},"bc"),"engagement-bar-view-model",{props:{data:_.GH,
className:_.GH}});var nS=function(){var H=_.X.apply(this,arguments)||this;H.playlistVotingAnimationEnabled=_.E("web_enable_voting_animation");H.downloadProgress=0;H.transferState="TRANSFER_STATE_UNKNOWN";H.downloadState="DOWNLOAD_STATE_UNKNOWN";H.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";H.offlineVideoPolicyExpirationTimestamp=0;return H};
_.G(nS,_.X);_.F=nS.prototype;_.F.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"}}}};
_.F.canReorderChanged=function(){this.persistentDragHandle=_.E("kevlar_playlist_drag_handles")&&this.canReorder};
_.F.onDrag=function(){if(this.thumbnail){var H=_.mY(this.thumbnail).querySelector("yt-image");H&&(H.shouldRenderLazy=!1)}};
_.F.onMenuOverlayChanged=function(H,C){this.menuOpened=C};
_.F.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.F.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.F.onContentsTap=function(H){var C,S=(C=this.data)==null?void 0:C.serviceEndpoints;if(S&&S.length===1&&_.e(S[0],iZi)&&!_.ww(_.Ar(H),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(S[0]);else{var w;(C=(w=this.data)==null?void 0:w.navigationEndpoint)&&_.E("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?X6W(_.JA().resolve(_.Df),C):(_.LO().playlistSuggestionsShelfActivation=
!0,_.QA7(_.JA().resolve(_.Df),C)):C&&!_.ww(_.Ar(H),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.E("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.M3(this.hostElement,"yt-navigate",{endpoint:C}):this.ytComponentBehavior.resolveCommand(C))}};
_.F.computeStyle=function(H){return H?H.toLowerCase().replace(/_/g,"-"):""};
_.F.computeThumbnailWidth=function(H){return H==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.F.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=TcV(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))}};
_.F.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.F.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.F.dataChanged=function(){if(this.data){var H,C,S,w=((H=this.downloadRenderData)==null?void 0:H.badges)&&((C=this.downloadRenderData)==null?void 0:C.badges)!==((S=this.data)==null?void 0:S.badges),A,J,c;H=((A=this.downloadRenderData)==null?void 0:A.thumbnailOverlays)&&((J=this.downloadRenderData)==null?void 0:J.thumbnailOverlays)!==((c=this.data)==null?void 0:c.thumbnailOverlays);(!this.downloadRenderData||w||H)&&this.downloadStateChanged()}};
_.F.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var H,C,S=(H=this.data.menu)==null?void 0:(C=H.menuRenderer)==null?void 0:C.items;if(S)for(H=_.Z(S),C=H.next();!C.done;C=H.next())if(C=C.value,S=void 0,_.e((S=C.menuServiceItemRenderer)==null?void 0:S.serviceEndpoint,_.Jd)){var w=S=void 0,A=void 0;C=(S=C)==null?void 0:(w=S.menuServiceItemRenderer)==null?void 0:(A=w.serviceEndpoint)==null?void 0:A.playlistEditEndpoint;A=w=void 0;if(S=(w=C)==null?void 0:(A=w.actions)==null?void 0:
A[0])w=void 0,S.setVideoId=(w=this.data)==null?void 0:w.setVideoId;A=w=S=void 0;if(C=(S=C)==null?void 0:(w=S.clientActions)==null?void 0:(A=w[0])==null?void 0:A.playlistRemoveVideosAction)S=void 0,C.setVideoIds=[(S=this.data)==null?void 0:S.setVideoId]}}};
_.JJ.Object.defineProperties(nS.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
nS.prototype.setVideoIdChanged=nS.prototype.setVideoIdChanged;nS.prototype.dataChanged=nS.prototype.dataChanged;nS.prototype.downloadStateChanged=nS.prototype.downloadStateChanged;nS.prototype.onMenuOverlayChanged=nS.prototype.onMenuOverlayChanged;nS.prototype.canReorderChanged=nS.prototype.canReorderChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],nS.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],nS.prototype,"ytdReduxBehavior",void 0);
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],nS.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.uU),_.K("design:type",Object)],nS.prototype,"ytdLockupBehavior",void 0);_.D([_.v(_.m4),_.K("design:type",Object)],nS.prototype,"ytdDismissibleItemBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],nS.prototype,"ytComponentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],nS.prototype,"data",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],nS.prototype,"canReorder",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],nS.prototype,"menuOpened",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],nS.prototype,"handleIsHovered",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],nS.prototype,"persistentDragHandle",void 0);_.D([_.V(),_.K("design:type",Object)],nS.prototype,"downloadRenderData",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.K("design:type",String)],nS.prototype,"styleType",void 0);_.D([_.V({computed:"computeThumbnailWidth(data.style)"}),_.K("design:type",Number)],nS.prototype,"thumbnailWidth",void 0);_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],nS.prototype,"isDownloads",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],nS.prototype,"playlistVotingAnimationEnabled",void 0);
_.D([_.V({selector:Ua,selectorArgs:["data.videoId"]}),_.K("design:type",Object)],nS.prototype,"downloadProgress",void 0);_.D([_.V(),_.K("design:type",Number)],nS.prototype,"relativeDateReference",void 0);_.D([_.V({selector:_.L8,selectorArgs:["data.videoId"]}),_.K("design:type",Object)],nS.prototype,"transferState",void 0);_.D([_.V({selector:PoW,selectorArgs:["data.videoId"]}),_.K("design:type",Object)],nS.prototype,"downloadState",void 0);
_.D([_.V({selector:NQV,selectorArgs:["data.videoId"]}),_.K("design:type",Object)],nS.prototype,"offlinePolicyAction",void 0);_.D([_.V({selector:b$0,selectorArgs:["data.videoId"]}),_.K("design:type",Object)],nS.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.D([_.V({selector:el7,selectorArgs:["data.videoId"]}),_.K("design:type",Object)],nS.prototype,"entityInfo",void 0);_.D([_.V({selector:_.Dy}),_.K("design:type",Boolean)],nS.prototype,"miniplayerIsActive",void 0);
_.D([_.l("data"),_.K("design:type",String),_.K("design:paramtypes",[])],nS.prototype,"playlistVideoId",null);_.D([_.lA("#thumbnail"),_.K("design:type",Object)],nS.prototype,"thumbnail",void 0);_.D([_.XJ("canReorder"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],nS.prototype,"canReorderChanged",null);
_.D([_.Gz("yt-menu-overlay-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Boolean]),_.K("design:returntype")],nS.prototype,"onMenuOverlayChanged",null);_.D([_.XJ("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],nS.prototype,"downloadStateChanged",null);
_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],nS.prototype,"dataChanged",null);_.D([_.XJ("data.setVideoId"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],nS.prototype,"setVideoIdChanged",null);_.D([_.h({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],nS);
_.B(nS,"ytd-playlist-video-renderer",function(){if(VHY!==void 0)return VHY;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);H.content.insertBefore(lvn().content.cloneNode(!0),H.content.firstChild);return VHY=H},{mode:1});var dV1;var r3=function(){return _.X.apply(this,arguments)||this};
_.G(r3,_.X);_.D([_.V(),_.K("design:type",Object)],r3.prototype,"data",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],r3.prototype,"rendererBehavior",void 0);_.D([_.h({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],r3);
_.B(r3,"ytd-premium-browse-footer-renderer",function(){if(dV1!==void 0)return dV1;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return dV1=H},{mode:1});var PHb;var Bv=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return H};
_.G(Bv,_.X);_.F=Bv.prototype;_.F.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.F.handleDarkModeToggledAction=function(H){this.isDarkTheme=H};
_.F.computeHeaderLogoThumbnail=function(H,C){if(H)return C?H.darkLogo:H.lightLogo};
_.F.computeHeaderLogoHeight=function(H,C){var S,w,A;return(H=(S=this.computeHeaderLogoThumbnail(H,C))==null?void 0:(w=S.thumbnails)==null?void 0:(A=w[0])==null?void 0:A.height)&&H%31===0?"31":"24"};
_.F.computeHeaderLogoMarginBottom=function(H,C){return this.computeHeaderLogoHeight(H,C)==="24"?"0":"-7"};
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],Bv.prototype,"actionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Bv.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Bv.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Boolean)],Bv.prototype,"isDarkTheme",void 0);_.D([_.V({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.K("design:type",Object)],Bv.prototype,"themeLogo",void 0);
_.D([_.V({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.K("design:type",String)],Bv.prototype,"logoHeight",void 0);_.D([_.V({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.K("design:type",String)],Bv.prototype,"logoMarginBottom",void 0);_.D([_.h({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],Bv);
_.B(Bv,"ytd-primetime-promo-header-renderer",function(){if(PHb!==void 0)return PHb;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return PHb=H},{mode:1});var $VW;_.Dr=_.n(function(H){var C=H.className;var S=H.data;var w=H.isOverlay;var A=H.maxLinesOverride;var J=H.useMediumText;var c=function(){return S().alwaysShowTruncationText},Y=function(){return S().truncationText},M=function(){return J!==void 0&&J()?"medium":"small"},m=function(){return w!==void 0&&w()?"overlay":"default"},W=function(){var u,O;
return(O=(u=_.e(S().rendererContext,_.VB))==null?void 0:u.label)!=null?O:""};
H=_.Z(_.mB(!1,void 0,"OKr1o"));var y=H.next().value,N=H.next().value;H=_.um(function(){S().expandOnTap&&N(!y());return!1});
var b={};return _.q("yt-description-preview-view-model",{el:_.Zl(_.Bt(function(){return S().rendererContext})),
class:_.eJ("ytDescriptionPreviewViewModelHost",C,(b.ytDescriptionPreviewViewModelClickable=function(){var u;return!((u=_.e(S().rendererContext,OkZ))==null||!u.onTap)},b.ytDescriptionPreviewViewModelIsOverlay=w,b)),
"on:click":H},_.q(_.T,{cond:function(){return S().description},
then:function(u){return _.q(_.T,{cond:y,then:function(){var O={};return _.q("div",{class:_.eJ("ytDescriptionPreviewViewModelDescription",(O.ytDescriptionPreviewViewModelDescriptionMediumText=J,O))},_.q(_.uZ,{text:u}))},
else:function(){return _.q(BpP,{text:u,alwaysShowTruncationText:c,truncationText:Y,maxLines:function(){var O;return(O=A==null?void 0:A())!=null?O:S().maxLines},
textStyle:m,accessibilityLabel:W,textSize:M})}})}}))},"cc");
_.Dr.idomCompat=!0;var k2n=_.n(function(H){var C=_.um(function(A){var J;(J=H.onClick)==null||J.call(H,A)}),S={},w={};
return _.q("yt-shelf-header-layout",{class:_.eJ("yt-shelf-header-layout",(S["yt-shelf-header-layout--disable-horizontal-padding"]=H.disableHorizontalPadding,S["yt-shelf-header-layout--disable-vertical-padding"]=H.disableVerticalPadding,S["yt-shelf-header-layout--responsive"]=H.useResponsiveLayout,S["yt-shelf-header-layout--narrow"]=function(){var A,J;return((A=H.useResponsiveLayout)==null?void 0:A.call(H))&&((J=H.forceSmallLayout)==null?void 0:J.call(H))},S["yt-shelf-header-layout--is-overlay"]=H.isOverlay,
S["yt-shelf-header-layout--tappable"]=H.isInteractive,S)),
"on:click":C,tabindex:function(){var A;return((A=H.isInteractive)==null?0:A.call(H))?0:void 0}},_.q("div",{class:"yt-shelf-header-layout__header-row"},_.q(_.T,{cond:H.leadingIcon,
then:function(A){return _.q("div",{class:"yt-shelf-header-layout__leading-icon"},_.q(_.lm,{icon:A}))},
else:function(){return _.q(_.T,{cond:H.hasLeadingImage,then:function(){var A,J={};return _.q("div",{class:_.eJ("yt-shelf-header-layout__leading-image",(J["yt-shelf-header-layout__leading-image--circular-image"]=H.circularImage,J))},(A=H.leadingImage)==null?void 0:A.call(H))}})}}),_.q("div",{class:"yt-shelf-header-layout__label-container"},_.q(_.T,{cond:H.hasSuperlabel,
then:function(){var A;return _.q("div",{class:"yt-shelf-header-layout__superlabel"},(A=H.superlabel)==null?void 0:A.call(H))}}),_.q("div",{class:"yt-shelf-header-layout__title-row"},_.q(p6W,{text:H.title,
className:_.eJ("yt-shelf-header-layout__title",(w["yt-shelf-header-layout__title--small-title"]=H.forceSmallLayout,w)),tagLevel:H.tagLevel}),_.q(_.T,{cond:H.hasDetail,then:function(){var A;return _.q("div",{class:"yt-shelf-header-layout__detail"},(A=H.detail)==null?void 0:A.call(H))}})),_.q(_.T,{cond:H.hasSublabel,
then:function(){var A;return _.q("div",{class:"yt-shelf-header-layout__sublabel"},(A=H.sublabel)==null?void 0:A.call(H))}})),_.q(_.T,{cond:H.hasTrailingActions,
then:function(){var A;return _.q("div",{class:"yt-shelf-header-layout__trailing-actions"},(A=H.trailingActions)==null?void 0:A.call(H))}})),_.q(_.T,{cond:H.hasBottomAccessory,
then:function(){var A;return(A=H.bottomAccessory)==null?void 0:A.call(H)}}))},"dc");
k2n.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0,bottomAccessory:!0}};
var p6W=_.n(function(H){var C=H.text;var S=H.className;var w=H.tagLevel;return _.q(_.X9,null,_.q(_.o6,{when:function(){return(w==null?void 0:w())===0}},function(){return _.q("h2",{class:S},C())}),_.q(_.o6,{when:function(){return(w==null?void 0:w())===1}},function(){return _.q("h3",{class:S},C())}),_.q(_.o6,{when:function(){return(w==null?void 0:w())===2}},function(){return _.q("h4",{class:S},C())}),_.q(_.Og,null,function(){return _.q("h2",{class:S},C())}))},"ec");var rD7,hjP,nKi;_.KS=_.n(function(H){var C=H.className;var S=H.data;var w=H.disableHorizontalPadding;var A=H.disableVerticalPadding;var J=H.forceSmallLayout;var c=H.useResponsiveLayout;H=H.isOverlay;return _.q("yt-section-header-view-model",{class:_.eJ("ytSectionHeaderViewModelHost",C),style:_.vb({"background-color":function(){return G_(S().backgroundColor)?_.aw(G_(S().backgroundColor)):void 0}})},_.q(k2n,{hasDetail:!1,
title:function(){return _.q(_.uZ,{text:function(){return S().headline}})},
hasTitle:!0,sublabel:function(){return _.q(hjP,{data:S})},
hasSublabel:function(){return!!S().sublabel||!!S().bottomBadge},
superlabel:function(){return _.q(nKi,{data:S})},
hasSuperlabel:function(){return!!S().superlabel||!!S().topBadge},
leadingImage:function(){return _.q(rD7,{leadingAccessory:function(){return S().leadingAccessory}})},
hasLeadingImage:function(){return!!S().leadingAccessory},
trailingActions:function(){return _.q(_.V4,{data:function(){return S().trailingActions}},{flexibleActionsViewModel:_.Ym})},
hasTrailingActions:function(){return!!S().trailingActions},
disableHorizontalPadding:w,disableVerticalPadding:A,forceSmallLayout:J,useResponsiveLayout:c,isOverlay:H,isInteractive:function(){return!!_.nn(S().rendererContext)},
onClick:function(Y){if(_.rw(S().rendererContext)){var M=_.nn(S().rendererContext);M&&_.gC(M,{form:{element:Y.target,event:Y}})}},
bottomAccessory:function(){return _.q(_.V4,{data:function(){return S().bottomAccessory}},{descriptionPreviewViewModel:_.Dr})},
hasBottomAccessory:function(){return!!S().bottomAccessory}}))},"fc");
rD7=_.n(function(H){var C=H.leadingAccessory;return _.q(_.F9,null,_.q(_.T,{cond:function(){var S;return(S=C().image)!=null?S:_.U5(C().themedImage)},
then:function(S){return _.q(_.Jg,{data:S,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.q(_.T,{cond:function(){return _.e(C().avatar,_.Dz)},
then:function(S){return _.q(_.ZT,{data:S})}}))},"gc");
hjP=_.n(function(H){var C=H.data;return _.q(_.F9,null,_.q(_.T,{cond:function(){return _.e(C().bottomBadge,KL7)},
then:function(S){var w={};return _.q(_.PG,{data:S,class:_.eJ((w.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!S()&&!!C().sublabel},w))})}}),_.q(_.T,{cond:function(){return C().sublabel},
then:function(S){return _.q(_.uZ,{text:S})}}))},"hc");
nKi=_.n(function(H){var C=H.data;return _.q(_.F9,null,_.q(_.T,{cond:function(){return _.e(C().topBadge,KL7)},
then:function(S){var w={};return _.q(_.PG,{data:S,class:_.eJ((w.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!S()&&!!C().superlabel},w))})}}),_.q(_.T,{cond:function(){return C().superlabel},
then:function(S){return _.q(_.uZ,{text:S})}}))},"ic");_.qs(_.KS,"yt-section-header-view-model",{props:{data:_.GH,className:_.GH,disableHorizontalPadding:_.GH,disableVerticalPadding:_.GH,forceSmallLayout:_.GH,useResponsiveLayout:_.GH,isOverlay:_.GH}});_.hg("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var t6=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return H};
_.G(t6,_.X);_.F=t6.prototype;_.F.attached=function(){this.requestElementsPerRow()};
_.F.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"}}}};
_.F.onDataChange=function(){var H=this;_.wM(this,function(){H.updateItemVisibility()})};
_.F.onUpdateElementsPerRowAction=function(H){H&&this.elementsPerRow!==H&&(this.elementsPerRow=H,this.updateItemVisibility())};
_.F.updateItemVisibility=function(){var H=this;this.data&&this.data.panels&&_.mY(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(C,S){C.hidden=S>H.elementsPerRow-1})};
_.F.requestElementsPerRow=function(){_.M3(this.hostElement,"yt-request-elements-per-row")};
t6.prototype.onDataChange=t6.prototype.onDataChange;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],t6.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.m4),_.K("design:type",Object)],t6.prototype,"ytdDismissibleItemBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],t6.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],t6.prototype,"actionHandlerBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],t6.prototype,"data",void 0);_.D([_.V({value:3}),_.K("design:type",Number)],t6.prototype,"elementsPerRow",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],t6.prototype,"onDataChange",null);_.D([_.h({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],t6);
_.B(t6,"ytd-primetime-promo-renderer",function(){if($VW!==void 0)return $VW;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return $VW=H},{mode:1});var B7d;var LS=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return H};
_.G(LS,_.X);LS.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
LS.prototype.handleButtonRefreshAction=function(H){if(H=_.e(H,qwP))this.set("data.button",H.membershipButton),this.notifyPath("data.button")};
_.JJ.Object.defineProperties(LS.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var H,C;return((H=this.data)==null?void 0:(C=H.avatars)==null?void 0:C.slice(0,8))||[]}}});
_.D([_.V(),_.K("design:type",Object)],LS.prototype,"data",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],LS.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],LS.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],LS.prototype,"rendererBehavior",void 0);_.D([_.l("data"),_.K("design:type",Array),_.K("design:paramtypes",[])],LS.prototype,"avatars",null);
_.D([_.h({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],LS);
_.B(LS,"ytd-recognition-shelf-renderer",function(){if(B7d!==void 0)return B7d;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return B7d=H},{mode:1});var DVi;var K57;var g3=function(){var H=_.X.apply(this,arguments)||this;H.modernButtons=_.E("web_modern_buttons");return H};
_.G(g3,_.X);_.F=g3.prototype;
_.F.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]]"}}}}}};
_.F.dataChanged=function(){this.collapsed=!0};
_.F.computeVisibleItems=function(H,C){return H!==void 0&&H.items?C?H.items.slice(0,this.data.collapsedItemCount):H.items:[]};
_.F.computeHideShowMore=function(H,C,S){return H>=C||!S};
_.F.computeHideShowAll=function(H,C,S){return!(H&&C)||S};
_.F.onMoreClick=function(){this.collapsed=!1};
_.JJ.Object.defineProperties(g3.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.E("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.z9("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.E("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
g3.prototype.dataChanged=g3.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],g3.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],g3.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],g3.prototype,"data",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],g3.prototype,"isSearch",void 0);
_.D([_.V({computed:"computeVisibleItems(data,collapsed)"}),_.K("design:type",Array)],g3.prototype,"visibleItems",void 0);_.D([_.V({value:!0}),_.K("design:type",Boolean)],g3.prototype,"collapsed",void 0);_.D([_.V({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.K("design:type",Boolean)],g3.prototype,"hideShowMore",void 0);
_.D([_.V({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.K("design:type",Boolean)],g3.prototype,"hideShowAll",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],g3.prototype,"modernButtons",void 0);_.D([_.l("isSearch"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],g3.prototype,"typographyBump",null);
_.D([_.l("isSearch"),_.K("design:type",Object),_.K("design:paramtypes",[])],g3.prototype,"lockupExperiments",null);_.D([_.l("isSearch"),_.K("design:type",String),_.K("design:paramtypes",[])],g3.prototype,"thumbnailWidth",null);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],g3.prototype,"dataChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],g3);
_.B(g3,"ytd-vertical-list-renderer",function(){if(K57!==void 0)return K57;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return K57=H},{mode:1});var tHd=_.xC(["#"]);_.hg("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var UD=function(){var H=_.X.apply(this,arguments)||this;H.isConstrainedList=!1;return H};
_.G(UD,_.X);_.F=UD.prototype;
_.F.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"}}}};
_.F.computeThumbnailStyle=function(H){return H||""};
_.F.computePlaceAnnotationUnderTitle=function(){var H;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((H=this.data)==null?void 0:H.thumbnailStyle)||"")};
_.F.computeHrefWithDefault=function(H){return this.ytComponentBehavior.computeHref_(H)||_.weZ(tHd)};
_.F.computeIsPromoShelf=function(H){var C;return(H=H==null?void 0:(C=H[0])==null?void 0:C.metadataBadgeRenderer)?H.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.F.computePlaceBadgeBesideTitle=function(H){var C;return(H==null?0:(C=H[0])==null?0:C.metadataBadgeRenderer)?!this.computeIsPromoShelf(H):!1};
_.F.computeMenuIcon=function(H){return this.computeIsPromoShelf(H)?"yt-icons:more_vert":"yt-icons:more"};
_.F.onDataChange=function(){var H,C;((H=this.data)==null?0:(C=H.content)==null?0:C.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.F.onLockupRequested=function(H){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&H.detail&&H.detail.videoIds){for(var C=this.data.content.gridRenderer.items,S=new Set,w=_.Z(H.detail.videoIds),A=w.next();!A.done;A=w.next())S.add(A.value);H.detail.returnValue=C.filter(function(J){return J.gridVideoRenderer&&J.gridVideoRenderer.videoId&&S.has(J.gridVideoRenderer.videoId)}).map(function(J){return J.gridVideoRenderer})}};
_.F.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
UD.prototype.onLockupRequested=UD.prototype.onLockupRequested;UD.prototype.onDataChange=UD.prototype.onDataChange;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],UD.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.m4),_.K("design:type",Object)],UD.prototype,"ytdDismissibleItemBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],UD.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],UD.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.Ix),_.K("design:type",Object)],UD.prototype,"ironResizableBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],UD.prototype,"data",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],UD.prototype,"isSearch",void 0);_.D([_.V(),_.K("design:type",Object)],UD.prototype,"isConstrainedList",void 0);_.D([_.V({reflectToAttribute:!0,value:function(){return _.E("kevlar_fluid_dismiss")}}),
_.K("design:type",Boolean)],UD.prototype,"enableFluidDismiss",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.K("design:type",String)],UD.prototype,"thumbnailStyle",void 0);_.D([_.V({computed:"computeMenuIcon(data.badges)"}),_.K("design:type",String)],UD.prototype,"menuIcon",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],UD.prototype,"onDataChange",null);
_.D([_.Gz("yt-lockup-requested"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],UD.prototype,"onLockupRequested",null);_.D([_.h({is:"ytd-shelf-renderer",disableElementRegistration:!0})],UD);
_.B(UD,"ytd-shelf-renderer",function(){if(DVi!==void 0)return DVi;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return DVi=H},{mode:1});var L51;var RX=function(){return _.X.apply(this,arguments)||this};
_.G(RX,_.X);RX.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.JJ.Object.defineProperties(RX.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],RX.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],RX.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],RX.prototype,"data",void 0);_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],RX.prototype,"isPlaylist",void 0);_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],RX.prototype,"isClipList",void 0);
_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],RX.prototype,"isPlaylistPageWithFilters",void 0);_.D([_.V({value:!1,reflectToAttribute:!0}),_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],RX.prototype,"hasTitle",null);_.D([_.V(),_.l("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.K("design:type",Object),_.K("design:paramtypes",[])],RX.prototype,"isRightAligned",null);
_.D([_.h({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],RX);
_.B(RX,"ytd-sort-filter-header-renderer",function(){if(L51!==void 0)return L51;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return L51=H},{mode:1});var gKP;var IX=function(){var H=_.X.apply(this,arguments)||this;H.enableRightArrowHidden=_.E("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return H};
_.G(IX,_.X);IX.prototype.attached=function(){var H=this;this.enableRightArrowHidden&&(this.JSC$16406_throttledOnResize=new _.I$(function(){var C;(C=H.ytdHorizontalListBehavior)==null||C.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var C;
(C=H.JSC$16406_throttledOnResize)==null||C.fire()}),this.resizeObserver.observe(this.hostElement))};
IX.prototype.detached=function(){if(this.enableRightArrowHidden){var H;(H=this.resizeObserver)==null||H.disconnect();var C;(C=this.JSC$16406_throttledOnResize)==null||C.dispose()}};
IX.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]]"}}}}}};
IX.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.JJ.Object.defineProperties(IX.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.E("enable_creator_details_shelf_m2")){var H=[],C;((C=this.data)==null?0:C.creatorVideosButton)&&H.push(this.data.creatorVideosButton);var S;((S=this.data)==null?0:S.creatorAboutButton)&&H.push(this.data.creatorAboutButton);C=_.Z(this.data.creatorCustomUrlButtons||[]);for(S=C.next();!S.done;S=C.next())H.push(S.value);return H}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.E("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],IX.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],IX.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.pT.YtdHorizontalListBehavior),_.K("design:type",Object)],IX.prototype,"ytdHorizontalListBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],IX.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],IX.prototype,"engagementPanel",void 0);
_.D([_.V(),_.K("design:type",Object)],IX.prototype,"enableRightArrowHidden",void 0);_.D([_.l("enableRightArrowHidden","atEnd"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],IX.prototype,"hideRightArrow",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],IX.prototype,"creatorCustomUrlButtons",null);
_.D([_.V({reflectToAttribute:!0}),_.l("data","creatorCustomUrlButtons"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],IX.prototype,"showCreatorCustomUrlButtons",null);_.D([_.l("showCreatorCustomUrlButtons"),_.K("design:type",Number),_.K("design:paramtypes",[])],IX.prototype,"channelAvatarSize",null);_.D([_.h({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],IX);
_.B(IX,"ytd-video-description-infocards-section-renderer",function(){if(gKP!==void 0)return gKP;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return gKP=H},{mode:_.mn("kevlar_poly_si_batch_j067")?1:2});var UVV;var aX=function(){return _.X.apply(this,arguments)||this};
_.G(aX,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],aX.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],aX.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],aX.prototype,"data",void 0);_.D([_.V({computed:"computeIcon_(data.infoIcon)"}),_.K("design:type",Object)],aX.prototype,"infoIcon",void 0);_.D([_.h({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],aX);
_.B(aX,"ytd-eom-settings-disclaimer-renderer",function(){if(UVV!==void 0)return UVV;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return UVV=H},{mode:1});var Rj7;var xp=function(){return _.X.apply(this,arguments)||this};
_.G(xp,_.X);_.JJ.Object.defineProperties(xp.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.suppressPaddingDisclaimer)}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],xp.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],xp.prototype,"componentBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],xp.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],xp.prototype,"data",void 0);
_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],xp.prototype,"suppressPaddingDisclaimer",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],xp);
_.B(xp,"ytd-product-list-header-renderer",function(){if(Rj7!==void 0)return Rj7;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Rj7=H},{mode:1});var Ivd;var Hd=function(){return _.X.apply(this,arguments)||this};
_.G(Hd,_.X);Hd.prototype.computeThumbnailStyle=function(H){if(H&&(H=_.Iw(H)))return"background-color:"+H+";"};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Hd.prototype,"rendererBehaviors",void 0);_.D([_.V(),_.K("design:type",Object)],Hd.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],Hd);
_.B(Hd,"ytd-hashtag-tile-renderer",function(){if(Ivd!==void 0)return Ivd;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Ivd=H},{mode:1});var av7;var i6=function(){return _.X.apply(this,arguments)||this};
_.G(i6,_.X);i6.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}}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],i6.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],i6.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],i6.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],i6);
_.B(i6,"ytd-sponsorships-alert-renderer",function(){if(av7!==void 0)return av7;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return av7=H},{mode:1});var xV_;var C0=function(){return _.X.apply(this,arguments)||this};
_.G(C0,_.X);C0.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.JJ.Object.defineProperties(C0.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.E("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.E("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.D([_.v(_.m4),_.K("design:type",Object)],C0.prototype,"ytdDismissibleItemBehavior",void 0);_.D([_.v(_.uU),_.K("design:type",Object)],C0.prototype,"ytdLockupBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],C0.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],C0.prototype,"ytRendererBehavior",void 0);_.D([_.V({selector:_.tg}),_.K("design:type",Object)],C0.prototype,"isGridViewEnabled",void 0);
_.D([_.l("isGridViewEnabled"),_.V({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],C0.prototype,"watchFeedBigThumbs",null);_.D([_.l("isGridViewEnabled"),_.V({reflectToAttribute:!0}),_.K("design:type",String),_.K("design:paramtypes",[])],C0.prototype,"thumbnailWidth",null);_.D([_.V(),_.K("design:type",Object)],C0.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],C0);
_.B(C0,"ytd-compact-movie-renderer",function(){if(xV_!==void 0)return xV_;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return xV_=H},{mode:1});var HGP;var iGb;var CgP=_.rh("HTML_DIR")==="rtl",Sg=function(){var H=_.X.apply(this,arguments)||this;H.engagementPanel=!1;H.maxLines=2;H.expandButtonOffset=0;H.showExpandButton=!1;H.isTruncated=!1;H.isExpanded=!1;H.currentSnippetType=2;H.alwaysShowExpandButton=!1;H.JSC$16423_lastWidth=NaN;H.observer=null;H.left=0;H.right=0;H.mid=0;H.longestSnippetLength=0;H.isFinalSnippet=!1;H.isFirstMutation=!1;H.isResetMutation=!1;H.OVERFLOW_THRESHOLD=5;return H};
_.G(Sg,_.X);_.F=Sg.prototype;_.F.onClick=function(H){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.ww(_.Ar(H)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var C;if((C=window.getSelection())==null||!C.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.F.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.F.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.F.updateTextOnSnippetTypeChange=function(){_.E("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.F.setUpBinarySearch=function(H){H=H*this.maxLines/8;this.left=0;var C,S;this.right=Math.min(H*2,(S=(C=this.simpleText)==null?void 0:C.length)!=null?S:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.F.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.F.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.Bn(new _.X0("AttributedSnippet is empty when the description is not empty",this.text))};
_.F.mutationCallback=function(){if(this.observer!=null){var H=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var C=Math.floor(H*this.maxLines/8);this.setSnippetText(this.text,C);C!==0||this.attributedTextIsEmpty()||_.Bn(new _.X0("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;H=H*this.maxLines/8;this.left=0;var S;this.right=Math.min(H*2,(S=(C=this.simpleText)==null?void 0:C.length)!=null?S: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)}}};
_.F.mutationObserve=function(H){var C=this;this.observer||(this.observer=new MutationObserver(function(){C.mutationCallback()}));
this.observer.observe(H,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.F.attached=function(){var H=this;_.wM(this,function(){H.resize()})};
_.F.isExpandedChanged=function(){_.M3(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.F.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)};
_.F.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var H="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((CgP?"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",H);this.snippetContainer.style.setProperty("mask-image",
H)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(CgP?"right":"left",this.expandButtonOffset+"px")};
_.F.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.F.setSnippetText=function(H,C){H||(H={});if(_.jJ(H)){var S=SJ(H,C);S.attachmentRuns||S.commandRuns||S.decorationRuns||S.styleRuns||S.alignment||S.lineBreakMode?this.attributedSnippetTextEl?(_.E("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=SJ(H,C),this.attributedSnippetTextEl.headerRuns=umU(C,this.headerRuns)):this.attributedSnippetText={data:SJ(H,C),headerRuns:umU(C,this.headerRuns)},this.currentSnippetType=0):_.Bn(new _.X0("Tried to set snippet text when HTML element was null",
H)):(this.plainSnippetText.textContent=im(H.content||"",C),this.currentSnippetType=2)}else{a:{S=UB6(H,C);if(S.runs){S=_.Z(S.runs);for(var w=S.next();!w.done;w=S.next())if(w=w.value,w.bold||w.deemphasize||w.italics||w.strikethrough||w.textColor||w.navigationEndpoint||_.e(w,D5)){S=!0;break a}}S=!1}S?this.formattedSnippetText?(this.formattedSnippetText.text=UB6(H,C),this.currentSnippetType=1):_.Bn(new _.X0("Tried to set snippet text when HTML element was null",H)):(this.plainSnippetText.textContent=
im(_.jt(H),C),this.currentSnippetType=2)}};
_.F.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.F.attributedTextIsEmpty=function(){var H=this.text;if(!_.jJ(H))return!0;var C;return((C=H.content)==null?void 0:C.length)===0?!0:!1};
_.F.resize=function(H){if(this.snippetText){if(H===void 0?0:H)this.JSC$16423_lastWidth=NaN;var C=this.hostElement.offsetWidth;if(C!==this.JSC$16423_lastWidth&&!this.isExpanded)if(this.JSC$16423_lastWidth=C,this.hasAttributedStringText)this.attributedSnippetIsEmpty()?(this.showExpandButton=this.alwaysShowExpandButton,this.isFinalSnippet=!1,this.isFirstMutation=!0,this.mutationObserve(this.snippetText),this.setSnippetText(this.text,Infinity)):(this.isResetMutation=!0,this.mutationObserve(this.snippetText),
this.setSnippetText(this.text,0));else if(this.setSnippetText(this.text,Infinity),this.showExpandButton=this.alwaysShowExpandButton,this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;H=0;var S,w;C=Math.min(C*this.maxLines/8*2,(w=(S=this.simpleText)==null?void 0:S.length)!=null?w:0)-1;for(S=0;H<=C;)w=Math.floor(H+(C-H)/2),this.setSnippetText(this.text,w),this.isOverflowing()?C=w-1:(H=w+1,S=w);this.setSnippetText(this.text,S);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.F.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.F.onExpandClick=function(){var H=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.E("inline_expander_reset_focus_killswitch")||_.wM(this,function(){var C;((C=_.JA().resolve(_.AA(_.PS)))==null?0:C.isKeyBoardInUse())&&_.Sr(H.hostElement)});
_.M3(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.F.onCollapseClick=function(){this.collapse();_.M3(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.F.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.F.computeExpandButtonOffset=function(){var H=this.expandSizer;return H?CgP?H.offsetParent?H.offsetParent.offsetWidth-H.offsetWidth-H.offsetLeft:0:H.offsetLeft:0};
_.JJ.Object.defineProperties(Sg.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.jJ(this.text)?this.text.content||"":_.jt(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 _.jJ(this.text)?!0:this.text&&_.E("web_replace_formatted_with_attributed_string")&&R2$(this.text)?(this.text=_.BI(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}}});
Sg.prototype.onTextChanged=Sg.prototype.onTextChanged;Sg.prototype.updateMaskAndExpandButtonOffset=Sg.prototype.updateMaskAndExpandButtonOffset;Sg.prototype.updateSnippetContainerMaxHeight=Sg.prototype.updateSnippetContainerMaxHeight;Sg.prototype.isExpandedChanged=Sg.prototype.isExpandedChanged;Sg.prototype.updateTextOnSnippetTypeChange=Sg.prototype.updateTextOnSnippetTypeChange;Sg.prototype.updateIsFormattedExpanded=Sg.prototype.updateIsFormattedExpanded;Sg.prototype.updateIsAttributedExpanded=Sg.prototype.updateIsAttributedExpanded;
Sg.prototype.onClick=Sg.prototype.onClick;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Sg.prototype,"componentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Sg.prototype,"text",void 0);_.D([_.V(),_.K("design:type",Array)],Sg.prototype,"headerRuns",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Sg.prototype,"engagementPanel",void 0);_.D([_.V(),_.K("design:type",Object)],Sg.prototype,"maxLines",void 0);
_.D([_.V(),_.K("design:type",String)],Sg.prototype,"expandLabel",void 0);_.D([_.V(),_.K("design:type",String)],Sg.prototype,"collapseLabel",void 0);_.D([_.V(),_.K("design:type",Object)],Sg.prototype,"expandCommand",void 0);_.D([_.V(),_.K("design:type",Object)],Sg.prototype,"expandButtonOffset",void 0);_.D([_.l("text"),_.K("design:type",String),_.K("design:paramtypes",[])],Sg.prototype,"simpleText",null);
_.D([_.Gz("click"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Sg.prototype,"onClick",null);_.D([_.l("text","isExpanded"),_.K("design:type",Object),_.K("design:paramtypes",[])],Sg.prototype,"expandedText",null);_.D([_.l("headerRuns","isExpanded"),_.K("design:type",Object),_.K("design:paramtypes",[])],Sg.prototype,"expandedHeaderRuns",null);
_.D([_.l("text"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Sg.prototype,"hasAttributedStringText",null);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Sg.prototype,"showExpandButton",void 0);_.D([_.l("collapseLabel","isExpanded"),_.K("design:type",Object),_.K("design:paramtypes",[])],Sg.prototype,"showCollapseButton",null);_.D([_.V(),_.K("design:type",Object)],Sg.prototype,"isTruncated",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Sg.prototype,"isExpanded",void 0);_.D([_.V(),_.K("design:type",Boolean)],Sg.prototype,"isAttributedExpanded",void 0);_.D([_.fx("isExpanded","hasAttributedStringText"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Sg.prototype,"updateIsAttributedExpanded",null);_.D([_.V(),_.K("design:type",Boolean)],Sg.prototype,"isFormattedExpanded",void 0);
_.D([_.fx("isExpanded","hasAttributedStringText"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Sg.prototype,"updateIsFormattedExpanded",null);_.D([_.V(),_.K("design:type",Number)],Sg.prototype,"currentSnippetType",void 0);_.D([_.l("currentSnippetType"),_.K("design:type",Object),_.K("design:paramtypes",[])],Sg.prototype,"useAttributedSnippet",null);
_.D([_.l("currentSnippetType"),_.K("design:type",Object),_.K("design:paramtypes",[])],Sg.prototype,"useFormattedSnippet",null);_.D([_.l("currentSnippetType"),_.K("design:type",Object),_.K("design:paramtypes",[])],Sg.prototype,"usePlainSnippet",null);_.D([_.V(),_.K("design:type",Object)],Sg.prototype,"alwaysShowExpandButton",void 0);_.D([_.fx("currentSnippetType"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Sg.prototype,"updateTextOnSnippetTypeChange",null);
_.D([_.V(),_.K("design:type",Object)],Sg.prototype,"attributedSnippetText",void 0);_.D([_.lA("#snippet"),_.K("design:type",HTMLElement)],Sg.prototype,"snippetContainer",void 0);_.D([_.lA("#snippet-text"),_.K("design:type",HTMLElement)],Sg.prototype,"snippetText",void 0);_.D([_.lA("#plain-snippet-text"),_.K("design:type",HTMLElement)],Sg.prototype,"plainSnippetText",void 0);_.D([_.lA("#formatted-snippet-text"),_.K("design:type",Object)],Sg.prototype,"formattedSnippetText",void 0);
_.D([_.lA("#attributed-snippet-text"),_.K("design:type",Object)],Sg.prototype,"attributedSnippetTextEl",void 0);_.D([_.lA("#expand"),_.K("design:type",HTMLElement)],Sg.prototype,"expandButton",void 0);_.D([_.lA("#expand-sizer"),_.K("design:type",HTMLElement)],Sg.prototype,"expandSizer",void 0);_.D([_.XJ("isExpanded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Sg.prototype,"isExpandedChanged",null);
_.D([_.fx("isExpanded","maxLines"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Sg.prototype,"updateSnippetContainerMaxHeight",null);_.D([_.fx("isTruncated","showExpandButton","expandButtonOffset"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Sg.prototype,"updateMaskAndExpandButtonOffset",null);
_.D([_.XJ("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Sg.prototype,"onTextChanged",null);_.D([_.h({is:"ytd-text-inline-expander",disableElementRegistration:!0})],Sg);
_.B(Sg,"ytd-text-inline-expander",function(){if(iGb===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);iGb=H}H=iGb;return H},{mode:2});var sq=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return H};
_.G(sq,_.X);sq.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
sq.prototype.handleUpdateDescriptionAction=function(H){if(H=_.e(H,_.mhn))if(H.attributedDescription)this.set("data.attributedDescriptionBodyText",H.attributedDescription);else if(H.description){var C;((C=this.data)==null?0:C.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.BI(H.description)):this.set("data.descriptionBodyText",H.description)}};
_.JJ.Object.defineProperties(sq.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var H,C;return!((H=this.data)==null||!H.attributedDescriptionBodyText)||!((C=this.data)==null||!C.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.data)==null?0:H.collapsedLineCount){var C;return(C=this.data)==null?void 0:C.collapsedLineCount}H=_.YB("web_watch_description_collapsed_default_lines",12);if(_.E("ww_desc_line_page_size_ks"))return H;C=Math.round(_.ow().height*_.YB("web_watch_description_screen_height_percentage",.5)/20);return Math.max(C,H)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var H,C,S;return(S=(H=this.data)==null?void 0:H.descriptionBodyText)!=null?S:(C=this.data)==null?void 0:C.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.sourceAttributions}}});
sq.prototype.panelContentVisibleChanged=sq.prototype.panelContentVisibleChanged;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],sq.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],sq.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],sq.prototype,"componentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],sq.prototype,"data",void 0);
_.D([_.V(),_.K("design:type",Boolean)],sq.prototype,"panelContentVisible",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],sq.prototype,"engagementPanel",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],sq.prototype,"shortsPanel",void 0);_.D([_.lA("#inline-expander"),_.K("design:type",Object)],sq.prototype,"inlineExpander",void 0);
_.D([_.fx("panelContentVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],sq.prototype,"panelContentVisibleChanged",null);_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],sq.prototype,"hasDescriptionText",null);_.D([_.l("data"),_.K("design:type",Number),_.K("design:paramtypes",[])],sq.prototype,"collapsedLines",null);
_.D([_.l("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.K("design:type",Object),_.K("design:paramtypes",[])],sq.prototype,"descriptionText",null);_.D([_.l("data","data.headerRuns"),_.K("design:type",Object),_.K("design:paramtypes",[])],sq.prototype,"headerRuns",null);_.D([_.l("data","data.sourceAttributions"),_.K("design:type",Object),_.K("design:paramtypes",[])],sq.prototype,"sourceAttributions",null);
_.D([_.h({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],sq);
_.B(sq,"ytd-expandable-video-description-body-renderer",function(){if(HGP!==void 0)return HGP;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return HGP=H},{mode:_.mn("kevlar_poly_si_batch_j028")?1:2});var SLb;var sPM=_.n(function(H){var C=H.data;return _.q("factoid-renderer",{class:"ytwFactoidRendererHost"},_.q("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return C().accessibilityText}},_.q("span",{class:"ytwFactoidRendererValue"},_.q(_.uZ,{text:function(){return C().value}})),_.q("span",{class:"ytwFactoidRendererLabel"},_.q(_.uZ,{text:function(){return C().label}}))))},"jc");_.qs(sPM,"factoid-renderer",{props:{data:_.GH}});_.qs(_.n(function(H){var C=H.data;return _.q("upload-time-factoid-renderer",null,_.q(_.V4,{data:function(){return C().factoid}},{factoidRenderer:sPM}))},"kc"),"upload-time-factoid-renderer",{props:{data:_.Yb}});_.qs(_.n(function(H){var C=H.data;return _.q("view-count-factoid-renderer",null,_.q(_.V4,{data:function(){return C().factoid}},{factoidRenderer:sPM}))},"lc"),"view-count-factoid-renderer",{props:{data:_.Yb}});var jg=function(){var H=_.X.apply(this,arguments)||this;H.shortsPanel=!1;H.engagementPanel=!1;H.watchWhileSdp=_.E("shorts_desktop_watch_while_sdp");return H};
_.G(jg,_.X);jg.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"}}}}};
_.JJ.Object.defineProperties(jg.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var H;return(H=this.data)==null?void 0:H.channel}}});
_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],jg.prototype,"componentBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],jg.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],jg.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],jg.prototype,"shortsPanel",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],jg.prototype,"engagementPanel",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],jg.prototype,"watchWhileSdp",void 0);_.D([_.l("shortsPanel","engagementPanel","data.channel"),_.K("design:type",Object),_.K("design:paramtypes",[])],jg.prototype,"showChannelInfo",null);_.D([_.h({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],jg);
_.B(jg,"ytd-video-description-header-renderer",function(){if(SLb!==void 0)return SLb;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return SLb=H},{mode:1});var jPV;var wg=function(){return _.X.apply(this,arguments)||this};
_.G(wg,_.X);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],wg.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],wg.prototype,"ytRendererBehavior",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],wg.prototype,"noPadding",void 0);_.D([_.V(),_.K("design:type",Object)],wg.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],wg);
_.B(wg,"ytd-list-item-view-model",function(){if(jPV!==void 0)return jPV;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return jPV=H},{mode:1});var w2M;var AIW;var JId;var F87;var Am=function(){var H=_.X.apply(this,arguments)||this;H.adaptiveFullWidth=!1;H.modernButtons=_.E("web_modern_buttons");H.buttonOverrides={style:"call-to-action",type:"filled"};H.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return H};
_.G(Am,_.X);Am.prototype.handleSetTimestamp_=function(H){this.data&&this.data.shortUrl&&(_.mY(this.hostElement).querySelector("#share-url").value=H.isSet?_.SQ(this.data.shortUrl,"t",H.timestamp):this.data.shortUrl)};
Am.prototype.handleSignalActionCopyShareUrl_=function(H,C){(_.E("killswitch_copy_link_target_check")||_.mY(this.hostElement).querySelector("#copy-button")===C)&&this.copyUrlToClipboard()};
Am.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.mY(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
Am.prototype.computeStyle_=function(H){return H?H.toLowerCase().replace(/_/g,"-"):""};
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],Am.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Am.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Am.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.K("design:type",String)],Am.prototype,"rendererStyle",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Am.prototype,"adaptiveFullWidth",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Am.prototype,"modernButtons",void 0);_.D([_.V(),_.K("design:type",Object)],Am.prototype,"buttonOverrides",void 0);_.D([_.Lx({is:"yt-copy-link-renderer",disableElementRegistration:!0})],Am);
_.B(Am,"yt-copy-link-renderer",function(){if(F87===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;JId===void 0&&(JId=document.createElement("template"));var w=JId;S.call(C,w.content.cloneNode(!0),H.content.firstChild);F87=H}H=F87;return H},{mode:2});_.hg("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var Jm=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return H};
_.G(Jm,_.X);_.F=Jm.prototype;_.F.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.F.attached=function(){this.keyboardFocused=!1};
_.F.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var H=_.JA().resolve(_.AA(_.PS));H&&(this.keyboardFocused=H.isKeyBoardInUse())}};
_.F.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.F.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}};
_.F.onChange_=function(){if(this.data){var H=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;H&&this.ytComponentBehavior.resolveCommand(H);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.F.handleUpdateToggleAction_=function(H){(H=_.e(H,nVU))&&this.data&&H.targetId==this.data.targetId&&this.set("data.toggled",H.toggled)};
_.F.toBoolean_=function(H){return!!H};
_.F.reset=function(){};
_.F.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uQ("data-changed",this.data))};
_.F.updateDataToggledFromBinding=function(H){this.set("data.toggled",H.detail.value)};
Jm.prototype.dataChangedForBinding=Jm.prototype.dataChangedForBinding;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],Jm.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Jm.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Jm.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Jm.prototype,"ytRendererBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],Jm.prototype,"data",void 0);_.D([_.V({computed:"computeDescription_(data.*)"}),_.K("design:type",Object)],Jm.prototype,"description_",void 0);_.D([_.V({value:function(){return!!_.JA().resolve(_.AA(_.PS))&&_.E("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.K("design:type",Boolean)],Jm.prototype,"useKeyboardFocused",void 0);_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],Jm.prototype,"keyboardFocused",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Jm.prototype,"dataChangedForBinding",null);_.D([_.Lx({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],Jm);
_.B(Jm,"yt-toggle-form-field-renderer",function(){if(AIW===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;w2M===void 0&&(w2M=document.createElement("template"));var w=w2M;S.call(C,w.content.cloneNode(!0),H.content.firstChild);AIW=H}H=AIW;return H},{mode:2});var ZG7;var cIb;var FY=function(){var H=_.X.apply(this,arguments)||this;H.isDarkTheme=!1;H.isSearch=!1;H.darkerDarkTheme=_.E("web_darker_dark_theme");H.noTopMargin=_.E("kevlar_watch_no_top_margin");H.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 H};
_.G(FY,_.X);_.F=FY.prototype;_.F.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}}}}}};
_.F.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.F.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.F.dataChanged=function(){var H=this.getSelectedIndex();if(H>0)this.selected=H;else{this.selected=0;var C,S;(C=this.ytScrollableChipCloudBehavior)==null||(S=C.reset)==null||S.call(C)}};
_.F.getSelectedIndex=function(){var H;if((H=this.data)==null||!H.chips)return-1;H=-1;for(var C,S=0;S<((C=this.data)==null?void 0:C.chips.length);S++){var w=void 0,A=void 0;if((w=this.data)==null?0:(A=w.chips[S].chipCloudChipRenderer)==null?0:A.isSelected){H=S;break}}return H};
_.F.onResize=function(){var H=this.ytScrollableChipCloudBehavior;_.wM(H,H.setContainerWidthDiff);H=this.ytScrollableChipCloudBehavior;_.wM(H,H.setButtonsState)};
_.F.onDarkModeToggledAction=function(H){this.isDarkTheme=H};
_.F.handleRelatedChipCommand=function(H,C){H=this.JSC$16450_chipsSelector.indexOf(C);H!==-1&&this.JSC$16450_chipsSelector.selectIndex(H)};
_.F.handleChipCloudChipSelectAction=function(H){H=this.JSC$16450_chipsSelector.indexOf(H);H>-1&&this.JSC$16450_chipsSelector.selectIndex(H)};
_.F.handleChipCloudChipDeselectAction=function(){var H=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16450_chipsSelector&&((H==null?0:H.continuationCommand)?_.WH(this.hostElement,[H]):(H==null?0:H.searchEndpoint)?this.ytComponentBehavior.resolveCommand(H):H&&_.yN(this.hostElement,[H],this.hostElement),this.JSC$16450_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.F.updateSelectedFromBinding=function(H){this.selected=H.detail.value};
FY.prototype.onResize=FY.prototype.onResize;FY.prototype.dataChanged=FY.prototype.dataChanged;FY.prototype.isSearchChanged=FY.prototype.isSearchChanged;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],FY.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],FY.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],FY.prototype,"actionHandlerBehavior",void 0);
_.D([_.v(_.Ix),_.K("design:type",Object)],FY.prototype,"ironResizableBehavior",void 0);_.D([_.v(),_.K("design:type",K1)],FY.prototype,"ytScrollableChipCloudBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],FY.prototype,"ytComponentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],FY.prototype,"data",void 0);_.D([_.V({value:0}),_.K("design:type",Number)],FY.prototype,"selected",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],FY.prototype,"isDarkTheme",void 0);_.D([_.V({value:160}),_.K("design:type",Number)],FY.prototype,"scrollDistance",void 0);_.D([_.V(),_.K("design:type",Object)],FY.prototype,"isSearch",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],FY.prototype,"darkerDarkTheme",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],FY.prototype,"noTopMargin",void 0);
_.D([_.lA("#chips"),_.K("design:type",Object)],FY.prototype,"JSC$16450_chipsSelector",void 0);_.D([_.fx("isSearch"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],FY.prototype,"isSearchChanged",null);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],FY.prototype,"dataChanged",null);_.D([_.Gz("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],FY.prototype,"onResize",null);
_.D([_.Lx({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],FY);
_.B(FY,"yt-chip-cloud-renderer",function(){if(cIb===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;ZG7===void 0&&(ZG7=document.createElement("template"));var w=ZG7;S.call(C,w.content.cloneNode(!0),H.content.firstChild);cIb=H}H=cIb;return H},{mode:2});var YLb,zEd=function(){return YLb!==void 0?YLb:YLb=document.createElement("template")};
document.head.appendChild(zEd().content);var Mdb;var qLn=document.head,Tyn=qLn.appendChild,mtY;if(Mdb===void 0){var W8U=document.createElement("template");_.f(W8U,"");W8U.content.insertBefore(zEd().content.cloneNode(!0),W8U.content.firstChild);Mdb=W8U}mtY=Mdb;Tyn.call(qLn,mtY.content);var yIU=_.n(function(H){var C=H.data;return _.q("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.q("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.q("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.q(_.T,{cond:function(){return _.U5(C().image)},
then:function(S){return _.q("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.q(_.Jg,{data:S,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.q("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.q(_.uZ,{text:function(){return C().title}})),_.q("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.q(_.uZ,{text:function(){return C().subtitle}})))),_.q(_.T,{cond:function(){var S;
return(S=C())==null?void 0:S.hasBottomDivider},
then:function(){return _.q("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"mc");var Ny1=_.n(function(H){var C=H.data;return _.q("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.q("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.q(_.V4,{data:function(){var S;return(S=C().offerPlanDetailsItem)!=null?S:[]}},{offerPlanDetailsItemViewModel:function(S){return _.q("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.q(yIU,{data:S.data}))}})),_.q("div",null,_.q(_.T,{cond:function(){return C().hasBottomDivider},
then:function(){return _.q("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.q("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.q("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.q("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.q("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"nc");var bGV=_.n(function(H){var C=H.data;H=_.Z(_.mB(!1,void 0,"OHF6Ec"));var S=H.next().value,w=H.next().value,A=_.um(function(){w(!S());return!1}),J=function(){var c;
return(c=C().offerPlanDetailsContainer)!=null?c:[]};
return _.q("lp-complex-offer-card-details-view-model",null,_.q("div",null,_.q(_.T,{cond:function(){return S()},
then:function(){return _.q("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.q("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":A,"aria-expanded":S},_.q(_.uZ,{text:function(){return C().expandedTitle}})),_.q("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.q(_.V4,{data:J},{offerPlanDetailsContainerViewModel:function(c){return _.q("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.q(Ny1,{data:c.data}))}})),_.q("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.q(_.uZ,{text:function(){return C().legalText}})))},
else:function(){return _.q("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":A,"aria-expanded":S},_.q(_.uZ,{text:function(){return C().collapsedTitle}}),_.q("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.q(_.lm,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"oc");var Ex_=_.n(function(H){var C=H.data;return _.q("lp-complex-offer-card-option-view-model",null,_.q("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.q(_.T,{cond:function(){return C().topDividerText},
then:function(){return _.q("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.q("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.q("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.q("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.q(_.uZ,{text:function(){return C().topDividerText}}))))}}),_.q(_.T,{cond:function(){return C().description},
then:function(){return _.q("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.q(_.uZ,{text:function(){return C().description}}))}}),_.q(_.T,{cond:function(){return C().planPricingPrimary},
then:function(){return _.q("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.q(_.uZ,{text:function(){return C().planPricingPrimary}}))}}),_.q(_.T,{cond:function(){return C().planPricingSecondary},
then:function(){return _.q("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.q(_.uZ,{text:function(){return C().planPricingSecondary}}))}}),_.q(_.T,{cond:function(){return C().primaryButton},
then:function(){return _.q("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.q(_.V4,{data:function(){return C().primaryButton}},{buttonViewModel:function(S){return _.q(_.rc,{data:S.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"pc");var eEi=_.n(function(H){var C=H.data;var S=function(){var J;return((J=C())==null?void 0:J.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
H={};var w={},A={};return _.q("ytm-lp-complex-offer-card-view-model",null,_.q("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.q("div",{class:_.eJ((H.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=S,H),"ytmLpComplexOfferCardViewModelCardContainer")},_.q(_.T,{cond:function(){var J;return(J=C())==null?void 0:J.bannerText},
then:function(){return _.q("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.q("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.q(_.uZ,{text:function(){return C().bannerText}})))}}),_.q(_.T,{cond:function(){return _.U5(C().logo)},
then:function(J){var c={};return _.q("div",{class:_.eJ((c.ytmLpComplexOfferCardViewModelLogoAlignLeft=S,c),"ytmLpComplexOfferCardViewModelLogo")},_.q(_.Jg,{data:J,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.q("div",{class:_.eJ((w.ytmLpComplexOfferCardViewModelTitleAlignLeft=S,w),"ytmLpComplexOfferCardViewModelTitle")},_.q(_.uZ,{text:function(){return C().title}})),_.q(_.T,{cond:function(){var J;
return(J=C())==null?void 0:J.subtitle},
then:function(){var J={};return _.q("div",{class:_.eJ((J.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=S,J),"ytmLpComplexOfferCardViewModelSubtitle")},_.q(_.uZ,{text:function(){return C().subtitle}}))}}),_.q(_.T,{cond:function(){return C().planPricingPrimary},
then:function(){return _.q("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.q(_.uZ,{text:function(){return C().planPricingPrimary}}))}}),_.q(_.T,{cond:function(){return C().planPricingSecondary},
then:function(){return _.q("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.q(_.uZ,{text:function(){return C().planPricingSecondary}}))}}),_.q(_.T,{cond:function(){return C().purchaseButton},
then:function(){return _.q("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.q(_.V4,{data:function(){return C().purchaseButton}},{buttonViewModel:function(J){return _.q(_.rc,{data:J.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.q(_.T,{cond:function(){var J;
return(J=C())==null?void 0:J.offerOptions},
then:function(){return _.q("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.q(_.V4,{data:function(){return C().offerOptions}},{lpComplexOfferCardOptionViewModel:Ex_}))}}),_.q("div",{class:_.eJ((A.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=S,A),"ytmLpComplexOfferCardViewModelLegalText")},_.q(_.uZ,{text:function(){return C().legalText}})),_.q(_.T,{cond:function(){var J;
return(J=C())==null?void 0:J.offerCardDetails},
then:function(){return _.q("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.q(_.V4,{data:function(){return C().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:bGV}))}}))))},"qc");var ua7=_.n(function(H){var C=H.data;var S=function(){var c;return((c=C())==null?void 0:c.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
H={};var w={},A={},J={};return _.q("ytm-lp-complex-offer-card-section-view-model",null,_.q("div",{class:_.eJ("ytmLpComplexOfferCardSectionViewModelHost")},_.q("div",{class:_.eJ((H.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=S,H),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.q("div",{class:_.eJ((w.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=S,w),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.q("h2",{class:_.eJ((A.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
S,A),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.q(_.uZ,{text:function(){return C().title}}))),_.q(_.T,{cond:function(){var c;
return(c=C())==null?void 0:c.subtitle},
then:function(){var c={},Y={};return _.q("div",{class:_.eJ((c.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=S,c),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.q("div",{class:_.eJ((Y.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=S,Y),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.q(_.uZ,{text:function(){return C().subtitle}})))}}),_.q("div",{class:_.eJ((J.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=S,J),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.q(_.V4,{data:function(){var c;
return(c=C().offerPlans)!=null?c:[]}},{lpComplexOfferCardViewModel:function(c){return _.q("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.q(eEi,{data:c.data}))}})))))},"rc");var Gr1=_.n(function(H){return _.q("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.q("div",{class:"ytLpCouponBannerViewModelIcon"},_.q(_.lm,{icon:function(){return"price_tag"}})),_.q("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.q("div",{class:"ytLpCouponBannerViewModelContent"},_.q("div",{class:"ytLpCouponBannerViewModelHeading"},_.q(_.uZ,{text:function(){var C;
return(C=H.data())==null?void 0:C.title}})),_.q("div",{class:"ytLpCouponBannerViewModelBody"},_.q(_.uZ,{text:function(){var C;
return(C=H.data())==null?void 0:C.subtitle}})))))},"sc");
Gr1.idomCompat=!0;_.ZD=dz_.getInstance();var fmY;fmY=_.n(function(H){return _.q("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":H.shouldAriaHideContent},_.q("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:H.questionId},_.q(_.uZ,{text:H.question})))},"tc");
_.vxY=_.n(function(H){var C=H.data;var S=H.themeOverride;H=_.Z(_.mB(!1,void 0,"pNli2b"));var w=H.next().value,A=H.next().value;H=_.um(function(){A(!w());return!1});
var J=function(){return w()?"EXPAND_LESS":"EXPAND_MORE"},c=("faq-container"+_.IB(_.ZD)).toString(),Y="faq-question-and-answers-section-question"+_.IB(_.ZD),M={},m={};
return _.q("faq-entry-view-model",null,_.q("div",{class:_.eJ("ytLpFaqEntryViewModelHost",(M.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return S==null?void 0:S().useDarkTheme},M))},_.q("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":H,role:"button","aria-expanded":w,"aria-labelledby":Y.toString(),"tab-index":"0"},_.q(fmY,{question:function(){return C().question},
questionId:Y,shouldAriaHideContent:!0}),_.q(_.T,{cond:function(){return w()!==void 0},
then:function(){return _.q("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.q(_.lm,{icon:J,ariaHidden:!0}),_.q("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.q("div",{class:_.eJ("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(m.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!w()},m))},_.q("div",{id:c},_.q(_.Vq,{each:function(){return C().answers||[]}},function(W){return _.q("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.q(_.uZ,
{text:W}))})))))},"uc");
_.vxY.idomCompat=!0;var lm7=_.n(function(H){var C=H.data;var S=H.themeOverride;H={};return _.q("lp-faq-section-view-model",null,_.q("div",{class:_.eJ("yt-lp-faq-section-view-model",(H["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return C().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},H["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(S==null||!S().useDarkTheme)},H))},_.q("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.q(_.T,{cond:function(){return C().header},
then:function(w){return _.q("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.q(_.uZ,{text:w}))}}),_.q("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.q(_.V4,{data:function(){return C().faqs}},{faqEntryViewModel:function(w){return _.q(_.vxY,{data:w.data,
themeOverride:S})}})),_.q("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.q(_.Vq,{each:function(){return C().footers||[]}},function(w){return _.q(_.uZ,{text:w})})),_.q(_.T,{cond:function(){return C().legal},
then:function(w){return _.q("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.q(_.uZ,{text:w}))}}))))},"vc");
lm7.idomCompat=!0;var VdP=_.n(function(H){var C=H.data;var S=H.themeOverride;_.$T(function(){var c=C().gtmId;c&&_.jx(c,_.rh("GL",""))});
var w={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var c,Y,M;return(M=(c=C().logo)==null?void 0:(Y=c.accessibilityData)==null?void 0:Y.label)!=null?M:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},A=_.JA().resolve(_.AA(_.sU)),J=function(){return A&&A()||(S==null?void 0:S().useDarkTheme)};
return _.q("lp-header-section-view-model",null,_.q("div",{class:function(){var c=C().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",Y=C().marginType==="LP_SECTION_MARGIN_TYPE_TOP",M=S==null?void 0:S().useDarkTheme,m=["lp-header-section-view-model"];c&&m.push("lp-header-section-view-model--ptc-layout-type");Y&&m.push("lp-header-section-view-model__lp-header-section-margin");M&&m.push("lp-header-section-view-model--premium-force-dark-mode");return m.join(" ")}},_.q(_.T,{cond:function(){return C().logo},
then:function(){return _.q("div",null,_.q(_.T,{cond:J,then:function(){return _.q(_.T,{cond:function(){var c;return(c=C().logo)==null?void 0:c.imageDark},
then:function(c){return _.q(_.Jg,Object.assign({},{data:c},w))}})},
else:function(){return _.q(_.T,{cond:function(){var c;return(c=C().logo)==null?void 0:c.imageLight},
then:function(c){return _.q(_.Jg,Object.assign({},{data:c},w))}})}}))}}),_.q(_.T,{cond:function(){return C().title},
then:function(c){return _.q("div",{class:"lp-header-section-view-model__lp-header-title"},_.q(_.uZ,{text:c}))}}),_.q("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.q(_.T,{cond:function(){return C().subtitles},
then:function(c){return _.q(_.Vq,{each:c},function(Y){return _.q("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.q(_.uZ,{text:Y}))})}})),_.q(_.T,{cond:function(){return C().additionalInfo},
then:function(c){return _.q("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.q(_.uZ,{text:c}))}}),_.q("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.q(_.T,{cond:function(){return C().primaryButton},
then:function(c){return _.q("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.q(_.V4,{data:c},{buttonViewModel:_.rc}))}}),_.q(_.T,{cond:function(){return C().secondaryButton},
then:function(c){return _.q("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.q(_.V4,{data:c},{buttonViewModel:_.rc}))}})),_.q(_.T,{cond:function(){return C().otherOffersInfo},
then:function(c){return _.q("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.q(_.uZ,{text:c}))}}),_.q("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.q(_.T,{cond:function(){return C().billingInfo},
then:function(c){return _.q(_.Vq,{each:c},function(Y){return _.q("div",null,_.q(_.uZ,{text:Y}))})}}))))},"wc");
VdP.idomCompat=!0;var oxd=_.n(function(H){var C=H.data;var S=_.Jx(H.themeOverride,{useDarkTheme:!1});H={};H=_.eJ("ytmLpHeadlineSectionViewModelHost",(H.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return S().useDarkTheme},H));
return _.q("lp-headline-section-view-model",null,_.q("div",{class:H},_.q(_.T,{cond:function(){return C().title},
then:function(w){return _.q("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.q(_.uZ,{text:w}))}}),_.q(_.T,{cond:function(){return C().subtitle},
then:function(w){return _.q("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.q(_.uZ,{text:w}))}})))},"xc");var OGY=_.n(function(H){var C=H.data;var S=H.themeOverride;var w=_.JA().resolve(_.AA(_.sU)),A=function(){return w&&w()||(S==null?void 0:S().useDarkTheme)},J=function(){var m,W;
var y=A()?(m=C().textBackgroundImage)==null?void 0:m.imageDark:(W=C().textBackgroundImage)==null?void 0:W.imageLight;return LoE((y==null?void 0:y.sources)||[])},c=function(){var m,W;
return A()?(m=C().featureImage)==null?void 0:m.imageDark:(W=C().featureImage)==null?void 0:W.imageLight},Y=function(){return C().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},M=function(){var m,W;
return A()?(m=C().logo)==null?void 0:m.imageDark:(W=C().logo)==null?void 0:W.imageLight};
return _.q("ytm-lp-large-feature-section-view-model",null,_.q("div",{class:function(){var m=C().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",W=C().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",y=(C().index||0)%2===1,N=S==null?void 0:S().useDarkTheme,b=["yt-lp-large-feature-section-view-model"];m?b.push("yt-lp-large-feature-section-view-model--music-feature-type"):W?b.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):y||b.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
N&&b.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return b.join(" ")}},_.q("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.q(_.T,{cond:c,
then:function(){return _.q(_.Jg,{data:function(){return c()},
alt:function(){var m,W,y;return(y=(m=C().featureImage)==null?void 0:(W=m.accessibilityData)==null?void 0:W.label)!=null?y:""},
contentMode:Y})}})),_.q("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var m;return((m=J())==null?0:m.url)?"background-image: url("+_.D4(J().url)+");":""}},_.q("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.q(_.T,{cond:M,
then:function(){return _.q(_.Jg,{data:function(){return M()},
alt:function(){var m,W,y;return(y=(m=C().logo)==null?void 0:(W=m.accessibilityData)==null?void 0:W.label)!=null?y:""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",targetWidth:138,targetHeight:20,preserveWidth:!0,preserveHeight:!0,className:"yt-lp-large-feature-section-view-model__lp-large-feature-section-logo"})}}),_.q(_.T,{cond:function(){return C().eyebrowText},
then:function(){return _.q("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.q(_.uZ,{text:function(){return C().eyebrowText}}))}}),_.q(_.T,{cond:function(){return C().title},
then:function(){return _.q("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.q(_.uZ,{text:function(){return C().title}}))}}),_.q(_.T,{cond:function(){return C().subtitles},
then:function(){return _.q("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.q(_.Vq,{each:function(){return C().subtitles||[]}},function(m){return _.q(_.uZ,{text:m})}))}})))))},"yc");
OGY.idomCompat=!0;var X2U=_.n(function(H){return _.q("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.q("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.q(_.lm,{icon:function(){var C;return(C=H.data())==null?void 0:C.iconType},
className:function(){var C;switch((C=H.data())==null?void 0:C.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 C;return((C=H.data())==null?void 0:C.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.q("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.q(_.uZ,{text:function(){var C;
return(C=H.data())==null?void 0:C.text},
className:function(){var C;return((C=H.data())==null?void 0:C.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"zc");var QP1=_.n(function(H){H=_.FH(H,{config:void 0,themeOverride:void 0});var C=H.data,S=H.config,w=H.themeOverride;H={};H=_.eJ("ytmLpOfferCardOptionViewModelHost",(H.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var Y;return(Y=w())==null?void 0:Y.useDarkTheme},H));
var A=_.um(function(){var Y,M;(Y=S())==null||(M=Y.handleRadioButtonClick)==null||M.call(Y,C());return!1}),J=function(){var Y;
return(Y=S())==null?void 0:Y.shouldDisplayRadioButton},c=function(){var Y;
return(Y=C().featureListItems)!=null?Y:[]};
return _.q("ytm-lp-offer-card-option-view-model",null,_.q("div",{class:H,"on:click":_.um(function(){if(J()){var Y,M;(Y=S())==null||(M=Y.handleRadioButtonClick)==null||M.call(Y,C())}return!1})},_.q(_.T,{cond:J,
then:function(){return _.q("div",null,_.q("input",{type:"radio","on:click":A,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var Y;return!((Y=S())==null||!Y.isOptionSelected)}}))}}),_.q("div",null,_.q("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.q(_.uZ,{text:function(){return C().eyebrowText}})),_.q("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.q(_.uZ,{text:function(){return C().title}})),_.q("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.q(_.uZ,
{text:function(){return C().subtitle}})),_.q(_.T,{cond:function(){return c().length>0},
then:function(){return _.q("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.q(_.V4,{data:c},{lpFeatureListItemViewModel:X2U}))}}),_.q("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.q(_.uZ,{text:function(){return C().description}})))))},"Ac");
QP1.idomCompat=!0;var dt1=_.n(function(H){var C=H.data;var S=H.themeOverride;H=_.Z(_.fu(function(){var J,c=(J=C().offerOptions)==null?void 0:J[0];return _.e(c,vPb)||{}}));
var w=H.next().value,A=H.next().value;H={};return _.q("ytm-lp-offer-card-view-model",null,_.q("div",{class:_.eJ("ytmLpOfferCardViewModelHost",(H.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(S==null||!S().useDarkTheme)},H))},_.q("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.q(_.T,{cond:function(){return C().titleIconType},
then:function(){return _.q("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.q(_.lm,{icon:function(){var J;return((J=C().titleIconType)==null?void 0:J.toString())||""}}))}}),_.q("div",{class:"ytmLpOfferCardViewModelTitleText"},_.q(_.uZ,{text:function(){return C().title}})),_.q(_.V4,{data:function(){return C().titleBadge}},{badgeViewModel:function(J){return _.q("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.q(_.PG,{data:J.data}))}})),_.q("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.q(_.V4,{data:function(){return C().offerOptions}},{lpOfferCardOptionViewModel:function(J){var c=J.data;
return _.q(_.F9,null,_.q("div",{class:"ytmLpOfferCardViewModelDivider"}),_.q(QP1,{data:c,config:function(){var Y;return{shouldDisplayRadioButton:(C().offerOptions||[]).length>1,isOptionSelected:c().id===((Y=w())==null?void 0:Y.id),handleRadioButtonClick:function(M){return void A(M)}}},
themeOverride:S}))}})),_.q("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.q(_.V4,{data:function(){var J;
return(J=w())==null?void 0:J.purchaseButtonOverride}},{buttonViewModel:_.rc}))))},"Bc");
dt1.idomCompat=!0;var PgY=_.n(function(H){var C=H.data;var S=H.themeOverride;H={};H=_.eJ("ytmLpOfferCardSectionViewModelHost",(H.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var w;return S==null?void 0:(w=S())==null?void 0:w.useDarkTheme},H));
return _.q("ytm-lp-offer-card-section-view-model",null,_.q("div",{class:H},_.q(_.T,{cond:function(){return C().title!==void 0},
then:function(){return _.q("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.q("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.q(_.uZ,{text:function(){return C().title}})),_.q(_.T,{cond:function(){return C().subtitle},
then:function(){return _.q("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.q(_.uZ,{text:function(){return C().subtitle}}))}}))}}),_.q("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.q(_.V4,{data:function(){return C().offerCards}},{lpOfferCardViewModel:function(w){return _.q("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.q(dt1,{data:w.data,
themeOverride:S}))}})),_.q(_.T,{cond:function(){return C().footer},
then:function(){return _.q("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.q(_.uZ,{text:function(){return C().footer}}))}})))},"Cc");var $tW=_.n(function(H){var C=H.data;return _.q("lp-offer-table-cell-content-view-model",null,_.q("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.q(_.X9,null,_.q(_.o6,{when:function(){return C().title}},function(){return _.q(_.uZ,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return C().title}})}),_.q(_.o6,{when:function(){return C().subTitle}},function(){return _.q(_.uZ,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return C().subTitle}})}),_.q(_.o6,{when:function(){return C().featureDescription}},function(){return _.q(_.uZ,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return C().featureDescription}})}),_.q(_.o6,{when:function(){return C().description}},function(){return _.q(_.uZ,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return C().description}})}),_.q(_.o6,{when:function(){return C().iconType}},function(){return _.q("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.q(_.lm,{icon:function(){return C().iconType.toString()}}))}),_.q(_.o6,{when:function(){return C().purchaseButton}},function(){return _.q(_.V4,{data:function(){return C().purchaseButton}},{buttonViewModel:function(S){return _.q("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.q(_.rc,
{data:S.data}))}})}),_.q(_.o6,{when:function(){return C().note}},function(){return _.q(_.uZ,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return C().note}})}),_.q(_.o6,{when:function(){return C().featureDetail}},function(){return _.q(_.uZ,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return C().featureDetail}})}),_.q(_.o6,{when:function(){return C().badge}},function(){return _.q(_.V4,{data:function(){return C().badge}},{badgeViewModel:_.PG})}))))},"Dc");
$tW.idomCompat=!0;var p2b=_.n(function(H){var C=H.data;return _.q("lp-offer-table-cell-view-model",null,_.q("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(C().alignSelf){case "LP_OFFER_TABLE_ALIGNMENT_START":return"justify-content: flex-start;";case "LP_OFFER_TABLE_ALIGNMENT_END":return"justify-content: flex-end;";case "LP_OFFER_TABLE_ALIGNMENT_CENTER":return"justify-content: center;";default:return"justify-content: flex-start;"}}},_.q(_.V4,{data:function(){return C().contents}},{lpOfferTableCellContentViewModel:$tW})))},
"Ec");
p2b.idomCompat=!0;var kr7=_.n(function(H){var C=H.data;var S=H.lpTableIsFirstRow;var w=H.lpTableIsLastRow;var A=function(){return(S==null?0:S())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},J=function(){return(S==null?0:S())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(w==null?0:w())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.q("ytm-lp-offer-table-row-view-model",null,_.q("div",{class:"ytLpOfferTableRowViewModelHost"},_.q(_.V4,{data:function(){return C().rowHeaderCell}},{lpOfferTableCellViewModel:function(c){return _.q("div",{class:A},_.q(p2b,{data:c.data}))}}),_.q(_.V4,{data:function(){return C().contentCells}},{lpOfferTableCellViewModel:function(c){return _.q("div",{class:J},_.q(p2b,{data:c.data}))}})))},"Fc");
kr7.idomCompat=!0;var hE1=_.n(function(H){var C=H.data;var S=H.themeOverride;var w=_.JA().resolve(_.AA(_.sU)),A=function(){return _.e(C().logo,grV)||{}};
H={};return _.q("ytm-lp-offer-table-section-view-model",null,_.q("div",{class:"ytLpOfferTableViewModelHost"},_.q(_.T,{cond:function(){var J,c;return w&&w()||(S==null?0:S().useDarkTheme)?(J=A())==null?void 0:J.imageDark:(c=A())==null?void 0:c.imageLight},
then:function(J){return _.q(_.Jg,{data:J,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var c,Y,M;return(M=(c=A())==null?void 0:(Y=c.accessibilityData)==null?void 0:Y.label)!=null?M:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.q("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.q(_.uZ,{text:function(){return C().title}})),_.q("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.q(_.uZ,{text:function(){return C().subtitle}})),_.q(_.T,{cond:function(){return C().disclaimers},
then:function(J){return _.q("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.q(_.Vq,{each:J},function(c){return _.q("div",null,_.q(_.uZ,{text:c}))}))}}),_.q("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.q(_.V4,{data:function(){return C().rows}},{lpOfferTableRowViewModel:function(J,c){return _.q(kr7,{data:J.data,
lpTableIsFirstRow:function(){return c()===0},
lpTableIsLastRow:function(){return c()===C().rows.length-1}})}})),_.q("div",{class:_.eJ((H.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return C().hasFooterBackground},H))},_.q(_.T,{cond:function(){return C().footer},
then:function(){return _.q("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.q(_.uZ,{text:function(){return C().footer}}))}}),_.q(_.T,{cond:function(){return C().footerTitle},
then:function(){return _.q("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.q(_.uZ,{text:function(){return C().footerTitle}}))}}),_.q(_.T,{cond:function(){return C().footerDescription},
then:function(){return _.q("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.q(_.uZ,{text:function(){return C().footerDescription}}))}}),_.q(_.T,{cond:function(){return C().footerDescriptions},
then:function(J){return _.q("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.q(_.Vq,{each:J},function(c){return _.q("div",null,_.q(_.uZ,{text:c}))}))}}))))},"Gc");
hE1.idomCompat=!0;var nxi=_.n(function(H){var C=H.data;var S=H.themeOverride;var w=_.JA().resolve(_.AA(_.sU)),A=function(){var Y;return S==null?void 0:(Y=S())==null?void 0:Y.useDarkTheme},J=function(){var Y,M;
return w&&w()||A()?(Y=C().image)==null?void 0:Y.imageDark:(M=C().image)==null?void 0:M.imageLight};
H={};H=_.eJ("ytmLpSmallFeatureSectionViewModelHost",(H.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=A,H));var c=function(){var Y,M,m;return(m=(Y=C().image)==null?void 0:(M=Y.accessibilityData)==null?void 0:M.label)!=null?m:""};
return _.q("ytm-lp-small-feature-section-view-model",{class:H},_.q(_.T,{cond:function(){return J()&&!nqp},
then:function(){return _.q("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.q(_.Jg,{data:function(){return J()},
alt:c,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.q("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.q("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.q(_.T,{cond:function(){return C().title},
then:function(Y){return _.q(_.uZ,{text:Y})}})),_.q("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.q(_.uZ,{text:function(){return C().description}}))))},"Hc");
nxi.idomCompat=!0;var rI1=_.n(function(H){var C=H.data;var S=H.themeOverride;H={};return _.q("ytm-lp-small-feature-section-group-view-model",null,_.q("div",{class:_.eJ("ytmLpSmallFeatureSectionGroupViewModelHost",(H.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(S==null||!S().useDarkTheme)},H))},_.q("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.q(_.V4,{data:function(){return C().smallFeatures}},{lpSmallFeatureSectionViewModel:function(w){return _.q("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.q(nxi,{data:w.data,
themeOverride:S}))}}))))},"Ic");
rI1.idomCompat=!0;_.qs(_.n(function(H){var C=H.data;var S=function(){return C().forcedTheme==="USER_INTERFACE_THEME_DARK"},w=function(){return C().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},A=function(){var c="",Y,M;
var m=_.JA().resolve(_.AA(_.sU));m=S()||(m==null?0:m())?(Y=C().themedImageViewModel)==null?void 0:Y.imageDark:(M=C().themedImageViewModel)==null?void 0:M.imageLight;(Y=LoE((m==null?void 0:m.sources)||[]))&&Y.url&&(c=w()?"background-image: linear-gradient(to bottom, transparent, "+(C().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.D4(Y.url)+");":"background-image: url("+_.D4(Y.url)+");");return c},J=function(){return{useDarkTheme:S()}};
H={};return _.q("yt-section-group-view-model",null,_.q("div",{class:_.eJ("yt-lp-section-group-view-model",(H["yt-lp-section-group-view-model--premium-force-dark-mode"]=S,H["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return C().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},H))},_.q(_.T,{cond:function(){return A().length},
then:function(){var c={};return _.q("div",{class:_.eJ("yt-lp-section-group-view-model__bg-image",(c["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=w,c)),style:A})}}),_.q("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.q(_.V4,{data:function(){return C().sections}},{lpFaqSectionViewModel:function(c){return _.q(lm7,{data:c.data,
themeOverride:J})},
lpHeaderSectionViewModel:function(c){return _.q(VdP,{data:c.data,themeOverride:J})},
lpHeadlineSectionViewModel:function(c){return _.q(oxd,{data:c.data,themeOverride:J})},
lpLargeFeatureSectionViewModel:function(c){return _.q(OGY,{data:c.data,themeOverride:J})},
lpOfferCardSectionViewModel:function(c){return _.q(PgY,{data:c.data,themeOverride:J})},
lpComplexOfferCardSectionViewModel:function(c){return _.q(ua7,{data:c.data})},
lpOfferTableSectionViewModel:function(c){return _.q(hE1,{data:c.data,themeOverride:J})},
lpSmallFeatureSectionGroupViewModel:function(c){return _.q(rI1,{data:c.data,themeOverride:J})},
lpCouponBannerViewModel:function(c){return _.q(Gr1,{data:c.data})}}))))},"Jc"),"yt-section-group-view-model",{props:{data:_.GH}});var aOw=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.By_=_.n(function(H){function C(){if(aOw.has(H.data().displayType)){var m=!w(),W;if((W=H.disableDeselection)==null||!W.call(H)||m){H.data().selected=m;W=Object.assign({},c(),{selected:m});Y(W);var y;(y=H.callback)==null||y.call(H,W,m)}}}
var S=_.sW("chip-view-model"),w=function(){var m,W;return!!(((m=H.selected)==null?void 0:m.call(H))!==void 0?(W=H.selected)==null?0:W.call(H):c().selected)},A=_.Z(_.fu(H.data)),J=A.next().value;
A=A.next().value;var c=J,Y=A,M=_.fn(IO$,function(){return H.data().chipEntityKey||""});
return _.q("chip-view-model",{class:"ytChipViewModelHost",el:S},_.q(b2_,{data:function(){var m,W=Object.assign({},c(),{selected:w()}),y=M(),N=(m=H.disableDeselection)==null?void 0:m.call(H);a:switch(W.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":m=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":m=3;break a;default:m=0}return{text:(y==null?void 0:y.text)||W.text,state:W.disabled?1:W.selected?0:2,type:m,onTap:xBW(W,S,C,N),
accessibilityLabel:W.accessibilityLabel||W.text}}}))},"Kc");
_.By_.idomCompat={callbacks:{callback:!0}};_.DtV=_.n(function(H){var C=_.fn(RyV,function(){var c;return(c=H.data())==null?void 0:c.chipBarStateEntityKey}),S=function(){return H.data().disableDeselection},w=_.Z(_.fu(function(){var c;
if(((c=C())==null?void 0:c.selectedIndex)!=void 0)return C().selectedIndex;var Y,M;c=_.Z(((Y=H.data())==null?void 0:(M=Y.chips)==null?void 0:M.entries())||[]);for(Y=c.next();!Y.done;Y=c.next()){Y=_.Z(Y.value);M=Y.next().value;Y=Y.next().value;var m=void 0;if((m=_.e(Y,_.TN))==null?0:m.selected)return M}return-1})),A=w.next().value,J=w.next().value;
return _.q("chip-bar-view-model",{class:_.eJ("ytChipBarViewModelHost",H.className),role:"tablist"},_.q(_.V4,{data:function(){return H.data().chips}},{chipViewModel:function(c,Y){return _.q("div",{class:"ytChipBarViewModelChipWrapper"},_.q(_.By_,{data:c.data,
selected:function(){return Y()===A()},
callback:function(M,m){M=!!m;m=Y();J(M?m:-1);var W,y=(W=H.data())==null?void 0:W.chipBarStateEntityKey;y&&M&&_.Ax(_.O5("chipBarStateEntity",y,{key:y,selectedIndex:m}))},
disableDeselection:H.disableDeselection||S}))}}))},"Lc");_.qs(_.DtV,"chip-bar-view-model",{props:{data:_.Yb,className:_.Yb,disableDeselection:_.Yb}});_.K8n=_.n(function(H){var C=H.data;H={};return _.q("divider-view-model",{class:_.eJ("dividerViewModelHost",(H.dividerViewModelInsetThinPadding=function(){return C().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},H))},_.q("div",{class:_.eJ("dividerViewModelBaseDivider",function(){return HKV(C().dividerStyle)}),
style:_.vb({"background-color":function(){return C().backgroundColor?_.Iw(C().backgroundColor):void 0}})}))},"Mc");
_.K8n.idomCompat=!0;_.qs(_.K8n,"divider-view-model",{props:{data:_.GH}});var vQ=new Map,fN=new Map,SVw=0,lK;var ZKZ=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],zC$={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var tdb,L8M;tdb=function(H){return function(C){return function(){return(C==null?void 0:C())!==void 0?String(C())+H:void 0}}};
_.cd=tdb("px");L8M=tdb("s");var gxP=ZIZ(function(H){return H.targetGroupId}).useUpdatableData;_.RE_=_.n(function(H){function C(ii){return function(){var FW=O().numItemsPerGridRow,cZ=ii()*FW;FW=cZ+FW;var eZ,ND;return(ND=(eZ=w().contents)==null?void 0:eZ.slice(cZ,FW))!=null?ND:[]}}
var S=_.FH(H,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),w=S.data,A=S.layoutContainerWidth,J=S.shouldUseOwnContainerSize,c=S.marginSettings,Y=k3u(),M=_.Z(gxP(function(){var ii,FW;return{targetGroupId:(ii=w().targetingContext)==null?void 0:(FW=ii.targetGroupId)==null?void 0:FW[0]}})).next().value;
S=_.Z(_.mB(!0,void 0,"f25nob"));var m=S.next().value,W=S.next().value,y=function(){var ii,FW=(ii=_.e(w().showMoreButton,_.qc))==null?void 0:ii.trackingParams;FW&&_.Bg(_.lJ(),FW);W(!1)},N=function(){var ii,FW=(ii=_.e(w().showLessButton,_.qc))==null?void 0:ii.trackingParams;
FW&&_.Bg(_.lJ(),FW);W(!0)};
S=_.sW("grid-shelf-view-model");var b=_.qVZ(S,{canHaveZeroSize:!1}),u=function(){var ii;return(ii=w().contentAspectRatio)!=null?ii:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},O=_.EF(function(){var ii=_.gw({containerWidth:J()&&b.width()>0?b.width()||A():A(),
sizing:"EXTRA_COMPACT",marginSettings:c(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:ii.maxContainerWidth,numItemsPerGridRow:ii.numItems,contentPadding:J()?ii.margin:ii.contentMargin,itemWidth:ii.itemWidth,itemMargin:ii.gutter/2}},void 0,"b3gcJf"),d=function(){if(w().enableVerticalExpansion){if(m())return p();
var ii,FW,cZ=(FW=(ii=w().contents)==null?void 0:ii.length)!=null?FW:0;return Math.ceil(cZ/O().numItemsPerGridRow)}return O().numItemsPerGridRow<=2?2:1},p=function(){var ii;
return Math.ceil(((ii=w().minCollapsedItemCount)!=null?ii:1)/O().numItemsPerGridRow)},k=function(){return w().enableVerticalExpansion&&w().showLessButton&&!m()&&d()>p()},R=function(){var ii,FW;
return w().enableVerticalExpansion&&w().showMoreButton&&m()&&((FW=(ii=w().contents)==null?void 0:ii.length)!=null?FW:0)>O().numItemsPerGridRow*p()},L=function(){return!k()},t=function(){return!R()},g={};
return _.q("grid-shelf-view-model",{class:_.eJ("ytGridShelfViewModelHost",H.className,(g.ytGridShelfViewModelHostHasBottomButton=function(){return k()||R()},g.ytGridShelfViewModelHostIsDismissed=function(){var ii,FW=(ii=M())!=null?ii:{};
ii=FW.behavior;var cZ=FW.isDismissed,eZ=FW.stamperContextTargetId;FW=FW.stamperIndex;if(!(_.E("mweb_see_fewer_shorts_group_dismissal")&&cZ&&ii&&eZ))return!1;var ND;cZ=Y;for(var bi,pU,O$=((bi=cZ)==null?0:bi.targetId)?_.ps((pU=cZ)==null?void 0:pU.targetId):void 0;((ND=cZ)==null?0:ND.parent)&&O$!==eZ;)cZ=cZ.parent,pU=bi=void 0,O$=((bi=cZ)==null?0:bi.targetId)?_.ps((pU=cZ)==null?void 0:pU.targetId):void 0;ND=O$===eZ?cZ:void 0;if(!ND)return!1;var R0;eZ=ND==null?void 0:(R0=ND.stamperIndex)==null?void 0:
R0.call(ND);return ii==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||ii==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&eZ!=null&&FW!=null&&eZ>FW},g)),
el:S,style:_.vb({"margin-left":(0,_.cd)(function(){return O().contentPadding}),
"margin-right":(0,_.cd)(function(){return O().contentPadding})})},_.q(_.T,{cond:function(){return _.e(w().header,jnU)},
then:function(ii){return _.q(_.KS,{data:ii,disableHorizontalPadding:!0})}}),_.q("div",null,_.q(_.Vq,{each:function(){return Array(d())}},function(ii,FW){return _.q(UtW,{className:H.className,
items:C(FW),responsiveGridShelfLayout:O,contentAspectRatio:u})})),_.q("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.q(_.V4,{data:function(){return w().showMoreButton}},{buttonViewModel:function(ii){return _.q("div",{hidden:t},_.q(_.rc,{data:ii.data,
onClick:y}))}}),_.q(_.V4,{data:function(){return w().showLessButton}},{buttonViewModel:function(ii){return _.q("div",{hidden:L},_.q(_.rc,{data:ii.data,
onClick:N}))}})))},"Nc");
_.RE_.idomCompat=!0;var UtW=_.n(function(H){var C=H.items;var S=H.responsiveGridShelfLayout;var w=H.contentAspectRatio;H=H.className;var A=_.sW("div");Chw(A,function(){a:{var c=A.value;for(var Y=C(),M=[],m=0;m<Y.length;m++){var W=_.e(Y[m],Qy7);if(!W||W==null||!W.inlinePlayerData){c=null;break a}var y=c.children.item(m);if(!y){c=null;break a}M.push({thumbnailElement:y,videoData:W})}c={gridVideoPreviewData:{gridItems:M}}}return c});
var J=(0,_.cd)(function(){return-S().itemMargin});
return _.q("div",{el:A,class:_.eJ("ytGridShelfViewModelGridShelfRow",H),style:_.vb({"margin-left":J,"margin-right":J})},_.q(_.V4,{data:C,replacementWrapper:function(c){return _.q(Imi,{responsiveGridShelfLayout:S},c)}},{shortsLockupViewModel:function(c){return _.q(Imi,{responsiveGridShelfLayout:S},_.q(GLP,{data:c.data,
aspectRatio:function(){return w()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.E("mweb_enable_one_line_title_on_shorts")?1:_.E("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))},
lockupViewModel:function(c){return _.q(Imi,{responsiveGridShelfLayout:S},_.q(_.BG,{data:c.data}))}}))},"Oc"),Imi=_.n(function(H){return _.q("div",{style:_.vb({width:(0,_.cd)(function(){return H.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+H.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},H.children)},"Pc");
_.RE_.idomCompat=!0;_.qs(_.RE_,"grid-shelf-view-model",{props:{data:_.GH,layoutContainerWidth:_.GH,shouldUseOwnContainerSize:_.GH,marginSettings:_.GH,className:_.GH}});_.amU=_.n(function(H){var C=_.Z(_.mB(!1,void 0,"FVl30c")),S=C.next().value,w=C.next().value;C={};return _.q("yt-alert-banner-view-model",{class:_.eJ("ytAlertBannerViewModelHost",H.className,function(){var A;a:switch((A=H.data())==null?void 0:A.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":A="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":A="ytAlertBannerViewModelWarning";break a;default:A="ytAlertBannerViewModelInformational"}return A},(C.ytAlertBannerViewModelDismissed=
S,C.ytAlertBannerViewModelFullbleed=H.fullbleed,C.ytAlertBannerViewModelNarrow=H.narrow,C.ytAlertBannerViewModelIsInRichGrid=H.isInRichGrid,C))},_.q(_.T,{cond:function(){var A;
return!((A=H.data())==null?0:A.hideIcon)},
then:function(){return _.q("div",{class:"ytAlertBannerViewModelIcon"},_.q(_.lm,{icon:function(){return"info_circle"}}))}}),_.q("div",{class:"ytAlertBannerViewModelOuterContainer"},_.q("div",{class:"ytAlertBannerViewModelContainer"},_.q("div",{class:"ytAlertBannerViewModelContent"},_.q("div",{class:"ytAlertBannerViewModelHeading"},_.q(_.uZ,{text:function(){var A;
return(A=H.data())==null?void 0:A.heading}})),_.q("div",{class:"ytAlertBannerViewModelBody"},_.q(_.uZ,{text:function(){var A;
return(A=H.data())==null?void 0:A.body}})))),_.q(_.V4,{data:function(){var A;
return(A=H.data())==null?void 0:A.actionButton}},{buttonViewModel:function(A){return _.q(_.rc,{data:A.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.q(_.V4,{data:function(){var A;
return(A=H.data())==null?void 0:A.dismissButton}},{buttonViewModel:function(A){return _.q(_.rc,{data:A.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var J;((J=H.data())==null?0:J.disableLocalDismissBehavior)||w(!0)}})}}))},"Qc");_.qs(_.amU,"yt-alert-banner-view-model",{props:{data:_.GH,fullbleed:_.GH,narrow:_.GH,isInRichGrid:_.GH,className:_.GH}});var xtW;_.HcP=_.n(function(H){return _.q("basic-content-view-model",{class:_.eJ("ytBasicContentViewModelHost",_.Jx(H.className))},_.q(_.T,{cond:function(){return H.data().headline},
then:function(C){return _.q("div",{class:"ytBasicContentViewModelHeadline"},_.q(_.uZ,{text:C}))}}),_.q(_.Vq,{each:function(){return H.data().paragraphs||[]},
keyBy:"INDEX"},function(C){return _.q("div",{class:"ytBasicContentViewModelParagraph"},_.q(_.T,{cond:function(){var S=C();return!!(S.header||S.customHeader||S.headline)},
then:function(){return _.q(xtW,{paragraph:C})}}),_.q(_.T,{cond:function(){return C().asset||C().text},
then:function(){return _.q("div",{class:"ytBasicContentViewModelParagraphContent"},_.q(_.T,{cond:function(){return C().asset},
then:function(S){return _.q("div",{class:"ytBasicContentViewModelParagraphAsset"},_.q(_.V4,{data:S},{contentPreviewImageViewModel:_.$n}))}}),_.q(_.T,{cond:function(){return C().text},
then:function(S){return _.q("div",{class:"ytBasicContentViewModelParagraphText"},_.q(_.uZ,{text:S}))}}))}}))}))},"Rc");
xtW=_.n(function(H){var C=H.paragraph;return _.q(_.F9,null,_.q(_.T,{cond:function(){return C().headline},
then:function(S){return _.q(_.uZ,{text:S,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.q(_.V4,{data:function(){return C().header||C().customHeader}},{sectionHeaderViewModel:function(S){return _.q(_.KS,{data:S.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Sc");_.icU=_.n(function(H){var C=function(){return H.data().orientation==="LINEAR_LAYOUT_ORIENTATION_HORIZONTAL"};
return _.q("yt-linear-layout-view-model",{class:_.eJ("ytLinearLayoutViewModelHost",function(){a:switch(H.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var S="ytLinearLayoutViewModelHorizontal";break a;default:S="ytLinearLayoutViewModelVertical"}return S})},_.q(_.V4,{data:function(){return H.data().items}},{lockupViewModel:function(S){return _.q("div",{style:_.vb({"margin-bottom":function(){return C()?void 0:"8px"},
"margin-right":function(){return C()?"8px":void 0}})},_.q(_.BG,{data:S.data,
containerType:function(){return C()?2:3},
sizing:"COMPACT",thumbnailFixedWidth:function(){return C()?void 0:"33%"}}))},
basicContentViewModel:function(S){return _.q("div",{style:_.vb({"margin-bottom":function(){return C()?void 0:"8px"},
"margin-right":function(){return C()?"8px":void 0}})},_.q(_.HcP,{data:S.data}))}}))},"Tc");_.qs(_.icU,"yt-linear-layout-view-model",{props:{data:_.GH}});_.Y7=_.n(function(H){var C=H.data;var S=H.callback;var w=H.selectionBehavior;var A=H.disableChipsScrollAnimation;var J=_.ja("div");H=_.Z(_.mB(!0,void 0,"aUEsOc"));var c=H.next().value,Y=H.next().value;H=_.Z(_.mB(!1,void 0,"V0aKld"));var M=H.next().value,m=H.next().value,W=!1,y=0;_.Ph(function(){Y(u());m(O())});
H=_.Z(_.fu(function(){var ii={};return C().autoselectedChipIndex!=null?(ii[C().autoselectedChipIndex]=!0,ii):{}}));
var N=H.next().value,b=H.next().value,u=function(){var ii=J.value;return ii==null||ii.scrollLeft-1<=0},O=function(){var ii=J.value;
return ii==null?!1:ii.scrollLeft+1>=(ii==null?NaN:ii.scrollWidth)-(ii==null?NaN:ii.clientWidth)},d=function(){return C().isHorizontallyScrollable},p=function(ii){J.value!=null&&(_.rh("HTML_DIR")==="rtl"&&(ii=-ii),J.value.scrollBy({left:ii,
behavior:(A==null?0:A())?"instant":"smooth"}))},k=function(){p(-320)},R=function(){p(320)},L=_.um(function(ii){W=!0;
y=ii.clientX}),t=_.um(function(ii){if(W){ii=ii.clientX;
var FW=ii-y;y=ii;var cZ;(cZ=J.value)==null||cZ.scrollBy({left:-FW})}}),g=_.um(function(){var ii=u(),FW=O();
ii!==c()&&Y(ii);FW!==M()&&m(FW)});
_.Fy("pointerup",function(){W&&(W=!1)});
return _.q("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.q(_.kn,{contentId:function(){return C().contentId},
useModernStyle:!0},function(){var ii={},FW={};return _.q("div",null,_.q(_.T,{cond:function(){return C().title},
then:function(){return _.q("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.q("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return C().title}),_.q(_.V4,{data:function(){return C().overflowButton}},{buttonViewModel:_.rc}))}}),_.q("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.q(_.T,{cond:function(){return C().previousButton},
then:function(){var cZ={};return _.q("div",{class:_.eJ("ytChipsShelfViewModelLeftArrowContainer",(cZ.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return c()},cZ))},_.q(_.V4,{data:function(){return C().previousButton}},{buttonViewModel:function(eZ){return _.q(_.rc,{data:eZ.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:k})}}))}}),_.q("div",{el:J,
"on:pointerdown":L,"on:pointermove":t,"on:scroll":g,class:_.eJ("ytChipsShelfViewModelChipsScrollContainer",(ii.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=d,ii))},_.q("div",{class:_.eJ("ytChipsShelfViewModelChipsContainer",(FW.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=d,FW.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,FW)),role:"tablist"},_.q(_.V4,{data:function(){return C().contents}},{chipViewModel:function(cZ,eZ){return _.q("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.q(_.By_,{data:cZ.data,
callback:function(ND,bi){var pU=eZ(),O$,R0=(O$=w==null?void 0:w())!=null?O$:0;R0===1||R0===2?(O$={},b((O$[pU]=bi,O$))):(O$={},b(Object.assign({},N(),(O$[pU]=bi,O$))));S==null||S(ND,bi,pU)},
disableDeselection:function(){return(w==null?void 0:w())===1},
selected:function(){return!!N()[eZ()]}}))}}))),_.q(_.T,{cond:function(){return C().nextButton},
then:function(){var cZ={};return _.q("div",{class:_.eJ("ytChipsShelfViewModelRightArrowContainer",(cZ.ytChipsShelfViewModelRightArrowContainerIsHidden=M,cZ))},_.q(_.V4,{data:function(){return C().nextButton}},{buttonViewModel:function(eZ){return _.q(_.rc,{data:eZ.data,
className:"ytChipsShelfViewModelRightArrow",onClick:R})}}))}})))}))},"Uc");
_.Y7.idomCompat={callbacks:{callback:!0}};_.qs(_.Y7,"chips-shelf-view-model",{props:{data:_.GH,callback:_.Yb,selectionBehavior:_.GH,disableChipsScrollAnimation:_.GH}});_.qs(_.n(function(H){return _.q("yt-comment-filter-context-view-model",{class:_.eJ("ytCommentFilterContextHost",H.className)},_.q(_.uZ,{text:function(){return H.data().text}}))},"Vc"),"yt-comment-filter-context-view-model",{props:{data:_.GH,
className:_.Yb}});var CXd=_.n(function(H){H=_.FH(H,{disabled:!1});var C=H.active,S=H.disabled;H={};H=_.eJ("ytSwitchShapeTrack",(H.ytSwitchShapeTrackActive=function(){return C()},H.ytSwitchShapeTrackDisabled=function(){return S()},H));
var w={};w=_.eJ("ytSwitchShapeKnob",(w.ytSwitchShapeKnobActive=function(){return C()},w));
return _.q("switch-shape",{class:"ytSwitchShapeHost"},_.q("div",{class:H}),_.q("div",{class:w}))},"Wc");var SPW=_.n(function(H){var C=_.FH(H,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),S=C.data;H=C.className;var w=C.handleOnTapEventInParent,A=C.parentActive,J=C.onTap;C=_.Z(_.fu(function(){var N;return(N=A())!=null?N:S().switchedOnByDefault||!1}));
var c=C.next().value,Y=C.next().value,M=function(){return S().isDisabled},m=_.sW("button");
C=_.um(function(N){return N.key==="Enter"?(N.preventDefault(),m.value.click(),!1):!0});
var W=_.um(function(N){if(S().handleOnTapEventInParent||w())return!0;if(M())return!1;if(J)return J(N),!0;m1Z(S(),c(),N);Y(!c());return!1}),y={};
y=_.eJ("ytSwitchButtonViewModelButton",(y.ytSwitchButtonViewModelTappable=function(){return!M()},y));
return _.q("switch-button-view-model",{class:_.eJ("ytSwitchButtonViewModelHost",H)},_.q("button",{el:m,class:y,"on:click":W,"on:keydown":C,"aria-label":function(){return c()?S().a11yLabelSwitchedOn:S().a11yLabelSwitchedOff},
"aria-checked":c,"aria-disabled":M,role:"switch"},_.q(CXd,{active:c,disabled:M})))},"Xc");var sR7=_.n(function(H){var C=H.data;var S=H.isLeading;var w=H.hideSelectionTextChevron;var A=H.isToggled;var J=function(){return S()?C().leadingImage:C().trailingImage},c=function(){a:switch(C().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var W="expand_more";
break a;default:W="chevron_right"}return W};
H={};var Y=_.eJ("yt-list-item-view-model__image-container",(H["yt-list-item-view-model__leading"]=S,H["yt-list-item-view-model__trailing"]=function(){return!S()},H)),M=_.eJ("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
H={};var m=_.eJ("yt-list-item-view-model__accessory",(H["yt-list-item-view-model__leading"]=S,H["yt-list-item-view-model__trailing"]=function(){return!S()},H));
return _.q(_.T,{cond:function(){var W=C(),y=S();return!!(y&&(W.leadingImage||W.leadingAccessory)||!y&&(W.trailingImage||W.trailingButton||W.trailingButtons||W.selectionText))},
then:function(){return _.q(_.F9,null,_.q(_.T,{cond:J,then:function(W){return _.q("div",{class:Y,"aria-hidden":"true"},_.q(_.Jg,{data:W,alt:"",preserveWidth:!0,preserveHeight:!0,className:M,isToggled:A}))}}),_.q(_.T,{cond:function(){return S()&&C().leadingAccessory},
then:function(){return _.q("div",{class:Y},_.q(_.V4,{data:function(){return C().leadingAccessory}},{avatarViewModel:function(W){return _.q(_.ZT,{data:W.data,
avatarButtonCustomClassName:M})},
collectionThumbnailViewModel:function(W){return _.q(yw1,{data:W.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.q(_.T,{cond:function(){return!S()&&C().trailingButton},
then:function(){return _.q("div",{class:"yt-list-item-view-model__button-container"},_.q(_.V4,{data:function(){return C().trailingButton}},{buttonViewModel:function(W){return _.q(_.rc,{data:W.data,
className:m})}}))}}),_.q(_.T,{cond:function(){var W;
return!S()&&((W=C().trailingButtons)==null?void 0:W.buttons)},
then:function(){return _.q("div",{class:"yt-list-item-view-model__button-container"},_.q(_.V4,{data:function(){var W;return(W=C().trailingButtons)==null?void 0:W.buttons}},{buttonViewModel:function(W){return _.q(_.rc,{data:W.data,
className:m})},
accountLinkButtonViewModel:function(W){return _.q(FeY,{data:W.data,className:m})},
switchButtonViewModel:function(W){return _.q(SPW,{data:W.data,className:m})},
subscribeButtonViewModel:function(W){return _.q(_.Zk,{data:W.data,isOverlay:!1,animateWidth:!1,className:m})},
toggleButtonViewModel:function(W){return _.q(_.Jv,{data:W.data,className:m})}}))}}),_.q(_.T,{cond:function(){return!S()&&!!C().selectionText},
then:function(){return _.q(_.F9,null,_.q(_.uZ,{text:function(){return C().selectionText},
className:_.eJ("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.q(_.T,{cond:function(){return!(w==null?0:w())},
then:function(){return _.q(_.lm,{icon:c,className:"yt-list-item-view-model__chevron-icon"})}}))}}))}})},"Yc");var jR7=_.n(function(H){function C(){var b,u;M((u=(b=A)==null?void 0:b.isKeyBoardInUse())!=null?u:!1)}
function S(){M(!1)}
function w(){var b;return Y()?(b=H.focusedClassName)==null?void 0:b.call(H):""}
var A=_.JA().resolve(_.AA(_.PS)),J=_.Z(_.mB(!1,void 0,"zbdw0d")),c=J.next().value;J=J.next().value;var Y=c,M=J,m=function(){var b,u;return((b=H.toggleable)==null?0:b.call(H))?(u=H.toggled)==null?void 0:u.call(H):void 0},W=_.um(function(b){var u,O=(u=H.command)==null?void 0:u.call(H);
O&&_.JA().resolve(_.ZQ).resolveCommand(O);var d;(d=H.onClick)==null||d.call(H,b)}),y=_.um(C),N=_.um(S);
return _.q(_.T,{cond:function(){var b;if(b=H.command){b=H.command();b=sDV(b);var u=b.href;b=!(!b.navigatingCommand||!u)}return b},
then:function(){return _.q(_.$4,Object.assign({},{command:H.command,style:H.style,ariaDescribedby:H.ariaDescribedby,ariaHidden:H.ariaHidden,ariaLabel:H.ariaLabel,ariaLabelledby:H.ariaLabelledby,ariaSelected:H.ariaSelected,disabled:H.disabled,dir:H.dir,tabIndex:H.tabIndex,target:H.target,title:H.title,onClick:H.onClick},{className:_.eJ("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",H.className,function(){return w()}),
onFocusin:C,onFocusout:S,ariaCurrent:function(){var b,u;return(u=(b=H.ariaCurrent)==null?void 0:b.call(H))!=null?u:m()}}),H.children)},
else:function(){return _.q("button",{"on:click":W,"on:focusin":y,"on:focusout":N,class:_.eJ("ytButtonOrAnchorHost","ytButtonOrAnchorButton",H.className,function(){return w()}),
style:H.style,"aria-describedby":H.ariaDescribedby,"aria-hidden":H.ariaHidden,"aria-label":H.ariaLabel,"aria-labelledby":H.ariaLabelledby,"aria-pressed":m,dir:H.dir,disabled:H.disabled,tabindex:H.tabIndex,title:H.title},H.children)}})},"Zc");var wKb=_.n(function(H){var C=H.data;var S=H.useButtonOrAnchor;var w=H.onTap;var A=H.isTappableWithoutSelect;var J=H.isToggled;return _.q(_.T,{cond:function(){return C().title||C().subtitle},
then:function(){return _.q("div",{class:"yt-list-item-view-model__text-wrapper"},_.q(_.T,{cond:function(){return C().title},
then:function(c){return _.q("div",{class:"yt-list-item-view-model__title-wrapper"},_.q(_.T,{cond:function(){return(S==null?void 0:S())&&(A==null?void 0:A())},
then:function(){return _.q(jR7,{command:function(){return _.nn(C().rendererContext)},
onClick:w,className:"yt-list-item-view-model__button-or-anchor",toggleable:J!==void 0,toggled:J},_.q(_.uZ,{text:c,className:"yt-list-item-view-model__title"}))},
else:function(){return _.q(_.uZ,{text:c,className:"yt-list-item-view-model__title"})}}))}}),_.q(_.T,{cond:function(){return C().subtitle},
then:function(c){return _.q(_.uZ,{text:c,className:"yt-list-item-view-model__subtitle"})}}))}})},"$c");var AWd=_.n(function(H){var C=H.data;var S=H.hideSelectionTextChevron;var w=H.TrailingAccessory;var A=H.isToggled;var J=H.disabled;var c=H.isSelectItem;var Y=H.isCompact;var M=H.inPopup;var m=H.disableHorizontalPadding;var W=H.isTappableWithoutSelect;var y=H.useButtonOrAnchor;H=H.onTap;var N={};return _.q("div",{class:_.eJ("yt-list-item-view-model__label",(N["yt-list-item-view-model__container"]=function(){return!(c==null?0:c())},N["yt-list-item-view-model__container--disabled"]=function(){return!!C().isDisabled||
!(J==null||!J())},N["yt-list-item-view-model__container--has-subtitle"]=function(){return!!C().subtitle},N["yt-list-item-view-model__container--compact"]=Y,N["yt-list-item-view-model__container--tappable"]=W,N["yt-list-item-view-model__container--in-popup"]=M,N["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(m==null?void 0:m())&&!(c==null?0:c())},N))},_.q(sR7,{data:C,
isLeading:!0,hideSelectionTextChevron:S,isToggled:A}),_.q(wKb,{data:C,onTap:H,useButtonOrAnchor:y,isTappableWithoutSelect:W,isToggled:A}),_.q(_.T,{cond:function(){return!!w},
then:function(){return _.q("div",{class:"yt-list-item-view-model__trailing"},w&&_.q(w,null))},
else:function(){return _.q(sR7,{data:C,isLeading:!1,hideSelectionTextChevron:S,isToggled:A})}}))},"ad");var FqW=_.n(function(H){var C=_.FH(H,{checked:!1});H=C.name;var S=C.onChange,w=C.onClick,A=C.checked,J=C.labelRenderable,c=C.hasLeadingLabel,Y=C.labelClass,M=C.isCompact,m=C.selectElementClass;C=C.disableHorizontalPadding;var W="checkbox"+_.IB(_.ZD),y=_.um(function(u){w==null||w(u);return!1}),N=_.um(function(u){S==null||S(u);
return!1}),b={};
return _.q("checkbox-shape",null,_.q("label",{class:_.eJ("ytCheckboxShapeHost",Y,(b.ytCheckboxShapeHostCompact=M,b.ytCheckboxShapeDisableHorizontalPadding=C,b))},_.q("input",{class:"ytCheckboxShapeInput",id:W,checked:A,name:H,type:"checkbox","prop:checked":A,"on:change":N,"on:click":y}),_.q(_.T,{cond:function(){return!(c==null?0:c())},
then:function(){return _.q(JWi,{isLeading:!0,selectElementClass:m})}}),_.q(_.T,{cond:function(){return!!J},
then:function(){return _.q("div",{class:"ytCheckboxShapeLabel"},J==null?void 0:J())}}),_.q(_.T,{cond:c,
then:function(){return _.q(JWi,{isLeading:!1,selectElementClass:m})}})))},"bd");
FqW.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var JWi=_.n(function(H){var C=H.selectElementClass;H={};return _.q("div",{class:_.eJ("ytCheckboxShapeCheckbox",C,(H.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(C==null?0:C())},H)),
"aria-hidden":"true"},_.q(_.lm,{icon:_.E("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.q(_.lm,{icon:_.E("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"cd");_.zP=_.n(function(H){var C=H.name;var S=H.onChange;var w=H.onClick;var A=H.checked;var J=H.labelRenderable;var c=H.useCheckIcon;var Y=H.hasLeadingLabel;var M=H.labelClass;var m=H.isCompact;var W=H.selectElementClass;var y=H.ariaLabel;H=H.className;var N="radio"+_.IB(_.ZD),b=_.sW("input"),u=_.um(function(g){b.value.checked=!(A==null||!A());S==null||S(g);return!1}),O=_.um(function(g){w==null||w(g);
return!1}),d=_.um(function(g){_.E("enable_ios_webview_radio_button_responsiveness")&&(g.preventDefault(),b.value.click())}),p=_.Z(_.mB(!1,void 0,"TcCZlf")),k=p.next().value,R=p.next().value;
p=_.um(function(){var g;((g=_.JA().resolve(_.AA(_.PS)))==null?0:g.isKeyBoardInUse())&&R(!0)});
var L=_.um(function(){R(!1)}),t={};
return _.q("radio-shape",{class:_.eJ("yt-radio-shape",H)},_.q("input",{el:b,class:"yt-radio-shape__input",id:N,"prop:checked":A,name:C,type:"radio","on:change":u,"on:click":O,"aria-label":y,"on:focusin":p,"on:focusout":L}),_.q("label",{class:_.eJ("yt-radio-shape__label-container",M,(t["yt-radio-shape--compact"]=m,t["yt-radio-shape__label-container--keyboard-focused"]=k,t)),for:N,"on:click":d},_.q(_.T,{cond:function(){return!(Y==null?0:Y())},
then:function(){return _.q(ZcU,{checked:A,useCheckIcon:c,isLeading:!0,selectElementClass:W})}}),_.q(_.T,{cond:function(){return!!J},
then:function(){return _.q("div",{class:"yt-radio-shape__label","aria-hidden":function(){return(y==null?0:y())?"true":"false"}},J==null?void 0:J())}}),_.q(_.T,{cond:Y,
then:function(){return _.q(ZcU,{checked:A,useCheckIcon:c,isLeading:!1,selectElementClass:W})}})))},"dd");
_.zP.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var ZcU=_.n(function(H){var C=H.useCheckIcon;var S=H.selectElementClass;H=function(){return(C==null?0:C())?"CHECK":_.E("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var w={};return _.q("div",{class:_.eJ("yt-radio-shape__radio",S,(w["yt-radio-shape__radio--check-icon"]=C,w["yt-radio-shape__radio--radio-default-style"]=function(){return!(S==null?0:S())},w)),
"aria-hidden":"true"},_.q(_.lm,{icon:H}),_.q(_.lm,{icon:H,active:function(){return!(C==null?0:C())}}))},"ed");_.MA=_.n(function(H){var C=H.data;var S=H.isMenuItem;var w=H.isCompact;var A=H.onTap;var J=H.trailingAccessory;var c=H.hideSelectionTextChevron;var Y=H.disabled;var M=H.inPopup;var m=H.disableHorizontalPadding;var W=H.isOverlay;var y=H.isToggled;var N=H.ariaLabel;H=H.ariaPressed;var b=!_.E("web_enable_killswitch_for_selectable_list_item_on_tap_fix"),u=function(){return _.E("enable_web_shorts_captions_language_command")||_.E("web_shorts_audio_track_picker")?Object.assign({},C(),NJV(C())):C()},O=_.EYw(function(){return u().rendererContext}),
d=function(){return!(u().isSelected===void 0||!u().selectionStyle||u().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},p=function(){return(_.rw(u().rendererContext)||A)&&!d()},k={},R=_.eJ("yt-list-item-view-model__container",(k["yt-list-item-view-model__container--tappable"]=function(){return _.rw(u().rendererContext)||d()},k["yt-list-item-view-model__container--compact"]=w,k["yt-list-item-view-model__container--in-popup"]=M,k["yt-list-item-view-model__container--disable-horizontal-padding"]=
function(){return(m==null?void 0:m())&&d()},k)),L=function(){return u().leadingImage||u().leadingAccessory},t=_.eJ("yt-list-item-view-model__image-container",function(){return L()?"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
k=_.um(function(bi){var pU;if(pU=b)pU=u().selectionStyle,pU=pU==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"||pU==="LIST_ITEM_SELECTION_STYLE_RADIO"||pU==="LIST_ITEM_SELECTION_STYLE_DEFAULT";pU||ND||A==null||A(bi)});
var g=_.NI7(),ii=_.Z(_.mB(!1,void 0,"YQ5CU")),FW=ii.next().value,cZ=ii.next().value,eZ=function(){return _.q(AWd,{data:u,hideSelectionTextChevron:c,TrailingAccessory:J,isToggled:y,disabled:Y,isSelectItem:d,isCompact:w,inPopup:M,disableHorizontalPadding:m,isTappableWithoutSelect:p,useButtonOrAnchor:ND,onTap:A})},ND=_.E("web_button_or_anchor_list_item");
ii={};return _.q("yt-list-item-view-model",{el:_.Zl(_.Bt(function(){return u().rendererContext},void 0,void 0,ND?["A".toString(),
"BUTTON".toString()]:[]),ND&&A?bKZ(A):void 0,d8V(function(){return p==null?void 0:p()},{focusin:function(){var bi;
((bi=_.JA().resolve(_.AA(_.PS)))==null?0:bi.isKeyBoardInUse())&&cZ(!0)},
focusout:function(){cZ(!1)}})),
class:_.eJ("yt-list-item-view-model",(ii["yt-list-item-view-model--is-overlay"]=W,ii["yt-list-item-view-model--keyboard-focused"]=FW,ii)),role:function(){return(S==null?0:S())?"menuitem":"listitem"},
tabindex:function(){var bi=p();bi=ND?void 0:A||bi?0:void 0;return bi},
"on:keydown":g,"on:click":k,"aria-label":function(){var bi;return(N==null?void 0:N())||((bi=O())==null?void 0:bi.label)},
"aria-pressed":H},_.q(_.T,{cond:d,then:function(){return _.q(_.X9,null,_.q(_.o6,{when:function(){return u().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.q(FqW,{labelRenderable:eZ,
isCompact:w,checked:function(){return u().isSelected},
hasLeadingLabel:function(){return!!L()},
labelClass:R,selectElementClass:t,disableHorizontalPadding:m,onClick:b?A:void 0})}),_.q(_.o6,{when:function(){return u().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.q(_.zP,{labelRenderable:eZ,
isCompact:w,checked:function(){return u().isSelected},
hasLeadingLabel:function(){return!!L()},
labelClass:R,selectElementClass:t,onClick:b?A:void 0})}),_.q(_.o6,{when:function(){return u().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.q(_.zP,{labelRenderable:eZ,
isCompact:w,checked:function(){return u().isSelected},
hasLeadingLabel:function(){return!!L()},
labelClass:R,selectElementClass:t,useCheckIcon:!0,onClick:b?A:void 0})}),_.q(_.Og,null,eZ))},
else:eZ}))},"fd");
_.MA.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.cWb=_.n(function(H){var C=H.data;var S=H.onTap;var w=H.onSwitch;var A=H.overrideDisabled;H=H.disableHorizontalPadding;var J=_.Z(_.fu(function(){var b;return((b=yQw(y()))==null?void 0:b.switchedOnByDefault)||!1})),c=J.next().value,Y=J.next().value;
J=_.Z(_.mB(!1,void 0,"ZHBkbb"));var M=J.next().value,m=J.next().value,W=_.E("web_button_or_anchor_list_item"),y=function(){var b;if(!(b=C().switchButton)){var u=C();b=A==null?void 0:A();u={switchOnCommand:u.switchOnCommand,switchOffCommand:u.switchOffCommand,switchedOnByDefault:u.switchedOnByDefault,isDisabled:u.isDisabled,handleOnTapEventInParent:!W,a11yLabelSwitchedOn:u.a11yLabelSwitchedOn,a11yLabelSwitchedOff:u.a11yLabelSwitchedOff};b!==void 0&&(u.isDisabled=b);b={switchButtonViewModel:u}}return b},
N=function(b){var u=yQw(y());
!u||u.isDisabled||C().ignoreTapUntilCommandCompletes&&M()||(S==null||S(b),m1Z(u,c(),b,C().ignoreTapUntilCommandCompletes,m),Y(!c()),w==null||w(c()))};
return _.q("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.q(_.MA,{data:function(){return{title:C().title,subtitle:C().attributedSubtitle,leadingImage:C().leadingImage,leadingAccessory:C().leadingAccessory,isDisabled:C().isDisabled}},
onTap:N,isToggled:W?c:void 0,trailingAccessory:function(){return _.q(_.V4,{data:y},{switchButtonViewModel:function(b){return _.q(SPW,{data:b.data,parentActive:c,handleOnTapEventInParent:!!S&&!W,onTap:W?N:void 0})}})},
disableHorizontalPadding:H}))},"gd");var YPW=_.n(function(H){var C=_.Z(_.fu(function(){var A,J;return!!((A=H.data())==null?0:(J=A.initialState)==null?0:J.isToggled)})),S=C.next().value,w=C.next().value;
C=_.um(function(){w(!S())});
return _.q("toggleable-list-item-view-model",{el:_.Zl(_.Bt(function(){return H.data().rendererContext})),
class:_.eJ("toggleableListItemViewModelHost",H.className),"on:click":C},_.q(_.T,{cond:function(){if(S()){var A=H.data().toggledListItem;A=_.e(A,_.Q4)}else A=H.data().defaultListItem,A=_.e(A,_.Q4);return A},
then:function(A){return _.q(_.MA,{data:A,isToggled:S,ariaLabel:function(){var J=S()?H.data().toggledListItem:H.data().defaultListItem,c;J=(c=_.e(J,_.Q4))==null?void 0:c.rendererContext;var Y;return(Y=_.e(J,_.VB))==null?void 0:Y.label},
ariaPressed:function(){return S()}})}}))},"hd");var zSM=_.fL("DOWNLOAD",{},"Download"),M67=_.fL("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),qPi=_.fL("RETRY",{},"Retry"),T_V=_.fL("PAUSE_DOWNLOADING",{},"Pause downloading"),mCi=_.fL("RESUME_DOWNLOAD",{},"Resume download"),eCZ={text:zSM,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},oJ={text:M67,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},f7i={text:qPi,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
uMZ={text:T_V,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},GyU={text:mCi,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var WqY=_.n(function(H){var C=function(){var Y=H.data();Y=_.nn(Y.rendererContext);var M;return(M=_.e(Y,_.ur))==null?void 0:M.videoId},S=_.Lu(function(Y){var M=C(),m=VEE(H.data());
return M?_.L8(Y,M):m?_.gB(Y,m):"TRANSFER_STATE_UNKNOWN"}),w=_.fn(_.dbE,C),A=_.Lu(function(Y){return _.veD(Y,C(),VEE(H.data()))}),J=function(){return l7u(S(),w(),_.nn(H.data().rendererContext),!!VEE(H.data()))},c=function(){return A()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.q("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:c},_.q(_.T,{cond:function(){return!c()},
then:function(){return _.q(_.T,{cond:J,then:function(Y){return _.q(_.Vq,{each:Y},function(M){return _.q(_.MA,{data:M,isCompact:H.isCompact,isMenuItem:H.isMenuItem,inPopup:H.inPopup,disableHorizontalPadding:H.disableHorizontalPadding})})}})}}))},"id");
WqY.idomCompat=!0;_.yWW=_.n(function(H){var C=H.data;var S=H.isCompact;var w=H.hideSelectionTextChevron;var A=H.inPopup;var J=H.isOverlay;var c=H.disableHorizontalPadding;var Y=function(){return oYp(C())&&(A==null?void 0:A())};
H=_.um(function(m){if(A!=null&&A()&&_.E("web_enable_arrow_key_navigation_in_dropdown")){var W=_.AV6(m.currentTarget),y=W.length;if(y!==0){var N=Array.prototype.indexOf.call(W,document.activeElement);switch(m.key){case "ArrowDown":m.preventDefault();var b;(b=W[(N+1)%y])==null||b.focus();break;case "ArrowUp":m.preventDefault();var u;(u=W[N===-1?y-1:(N-1+y)%y])==null||u.focus()}}}});
var M={};return _.q("yt-list-view-model",{class:_.eJ("ytListViewModelHost",(M.ytListViewModelHostKaiosSpatNav=nqp&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",M.ytListViewModelCollectionThumbnailClass=function(){return QQV(C())},M)),
role:function(){return Y()?"menu":"list"},
style:_.vb({"max-height":function(){var m,W=(m=C())==null?void 0:m.visibleElementCount;if(W)return QQV(C())?(W+.5)*48+"px":(W+.5)*40+"px"}}),
"on:keydown":H},_.q(_.V4,{data:function(){return C().listItems}},{listItemViewModel:function(m){return _.q(_.MA,{data:m.data,
isMenuItem:Y,isCompact:S,hideSelectionTextChevron:w,inPopup:A,isOverlay:J,disableHorizontalPadding:c})},
toggleableListItemViewModel:function(m){return _.q(YPW,{data:m.data})},
downloadListItemViewModel:function(m){return _.q(WqY,{data:m.data,isMenuItem:Y,isCompact:S,inPopup:A,disableHorizontalPadding:c})},
switchListItemViewModel:function(m){return _.q(_.cWb,{data:m.data,disableHorizontalPadding:c})}}))},"jd");
_.yWW.idomCompat=!0;var N_d=_.n(function(H){var C=H.data;var S=H.isOverlay;H={};return _.q("yt-course-perks-view-model",{class:_.eJ("ytwCoursePerksViewModelHost",(H.ytwCoursePerksViewModelHostOverlay=S,H))},_.q("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.q(_.uZ,{text:function(){return C().title}})),_.q("div",null,_.q(_.T,{cond:function(){return C().perks},
then:function(w){return _.q(_.yWW,{data:function(){return{listItems:w()}},
isCompact:!0,isOverlay:S})}})))},"kd");_.qs(N_d,"yt-course-perks-view-model",{props:{data:_.Yb,isOverlay:_.Yb}});_.qs(_.n(function(H){var C=H.data;return _.q("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.q("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.q(_.uZ,{text:function(){return C().title}})),_.q("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.q(_.uZ,{text:function(){return C().progressSummary}})),_.q("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.q("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.vb({width:function(){return C().progressPercentage*100+"%"}})})))},"ld"),"yt-course-progress-view-model",{props:{data:_.GH}});var bc1=_.n(function(H){var C={};return _.q("yt-progress-view-model",{class:_.eJ("ytwProgressViewModelHost",(C.ytwProgressViewModelHostOverlay=_.Jx(H.isOverlay,!1),C))},_.q(_.T,{cond:function(){return H.data().progressSummary},
then:function(S){return _.q("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.q(_.uZ,{text:S}))}}),_.q("div",{class:"ytwProgressViewModelHostProgressContainer"},_.q(_.T,{cond:function(){return H.data().leadingLabel},
then:function(S){return _.q("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.q(_.uZ,{text:S}))}}),_.q("div",{class:"ytwProgressViewModelHostProgressBar"},_.q("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(H.data().progressPercentage||0)*100+"%"}}))))},"md");var qA=_.n(function(H){var C=H.starNumber;var S=H.data;var w=function(){var A;return((A=S())==null?void 0:A.rating)||0};
return _.q(_.T,{cond:function(){return C()},
then:function(A){return _.q(_.X9,null,_.q(_.o6,{when:function(){return w()>=A()-.25}},function(){return _.q("div",{class:"ytStarRatingViewModelHostStar"},_.q(_.lm,{icon:"STAR_FILLED",
size:function(){return 24}}))}),_.q(_.o6,{when:function(){return w()>=A()-.75}},function(){return _.q("div",{class:"ytStarRatingViewModelHostStar"},_.q(_.lm,{icon:"STAR_HALF",
size:function(){return 24}}))}),_.q(_.Og,null,function(){return _.q("div",{class:"ytStarRatingViewModelHostStar"},_.q(_.lm,{icon:"STAR_BORDER",
size:function(){return 24}}))}))}})},"nd"),E27=_.n(function(H){H=H.data;
return _.q("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.q(qA,{starNumber:1,data:H}),_.q(qA,{starNumber:2,data:H}),_.q(qA,{starNumber:3,data:H}),_.q(qA,{starNumber:4,data:H}),_.q(qA,{starNumber:5,data:H}))},"od");_.qs(_.n(function(H){var C=_.FH(H,{}).data;return _.q("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.q("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.q(_.uZ,{text:function(){var S;return(S=C())==null?void 0:S.title}})),_.q("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.q(_.T,{cond:function(){return C().starProgressViewModels},
then:function(S){return _.q("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.q(_.V4,{data:S},{progressViewModel:bc1}))}}),_.q("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.q("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.q(_.uZ,{text:function(){var S;
return(S=C())==null?void 0:S.averageRatingLabel}})),_.q(_.T,{cond:function(){return C().zeroStateText},
then:function(S){return _.q("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.q(_.uZ,{text:S}))}}),_.q(_.T,{cond:function(){return C().starRatingViewModel},
then:function(S){return _.q("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.q(_.V4,{data:S},{starRatingViewModel:E27}))}}),_.q("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.q(_.uZ,{text:function(){var S;
return(S=C())==null?void 0:S.totalRatingsCountLabel}})))))},"pd"),"yt-course-ratings-view-model",{props:{data:_.Yb}});var eSb;eSb={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"}};_.ulV=_.n(function(H){var C=_.sW("yt-learning-journey-loader-view-model"),S=_.E5();_.Ph(function(){requestAnimationFrame(function(){var A;(A=S.lottieEl)==null||A.addEventListener("DOMLoaded",function(){var J;(J=H.onLottieLoaded)==null||J.call(H)})});
var w=H.data().browseEndpoint;w&&_.Im(w)});
return _.q("yt-learning-journey-loader-view-model",{class:_.eJ("learningJourneyLoaderViewModelHost",H.className),"data-target-id":function(){var w;return((w=H.data)==null?void 0:w.call(H).targetId)||""},
el:C},_.q(_.UA,{className:_.eJ("learningJourneyLoaderViewModelLoader",H.className),animationName:function(){return eSb.animationConfig.name},
data:eSb,animationRef:S}))},"qd");_.qs(_.ulV,"yt-learning-journey-loader-view-model",{props:{data:_.GH,className:_.Yb,onLottieLoaded:_.Yb}});var Ph7=new Set,d1E=null;var fjd=_.n(function(H){var C=void 0,S=function(){return H.data()},w=function(){var b=S();
var u=_.JA().resolve(_.AA(_.sU));b=u!=null&&u()?b.darkThemeColorPalette:b.lightThemeColorPalette;return{primaryTextColor:Xe(b,0),secondaryTextColor:Xe(b,1),optionColor:Xe(b,2),backgroundColor:Xe(b,3),videoBackgroundColor:Xe(b,4)}},A=function(){return!!w().optionColor},J=_.Z(_.mB(-1,void 0,"FNv5Ne")),c=J.next().value,Y=J.next().value,M=function(b){return S().correctAnswerIndex===b},m=function(){return c()!==-1};
J=_.Z(_.mB("",void 0,"LFzaYe"));var W=J.next().value,y=J.next().value,N=function(b){return c()===S().correctAnswerIndex&&M(b)};
return _.q("learning-journey-quiz-view-model",{class:_.eJ("learningJourneyQuizViewModelHost","learningJourneyQuizYoututorHost",H.className),style:_.vb({background:function(){return w().backgroundColor}})},_.q("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},W),_.q(_.T,{cond:function(){return!!S().video},
then:function(){return _.q("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.vb({background:function(){return w().videoBackgroundColor}})},_.q(_.V4,{data:function(){return S().video}},{lockupViewModel:function(b){return _.q(_.BG,{data:b.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.q("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.q("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.q("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.q(_.T,{cond:function(){return!!S().aiGeneratedQuizLabel},
then:function(){return _.q("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.q(_.uZ,{text:function(){return S().aiGeneratedQuizLabel}}))}}),_.q("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.vb({"align-items":function(){return S().overflowMenu?"start":"center"}})},_.q("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.vb({"min-height":function(){return S().overflowMenu?"48px":"26px"}})},_.q("div",{class:"learningJourneyQuizYoututorText",
style:_.vb({color:function(){return w().primaryTextColor}})},_.q(_.uZ,{text:function(){return S().questionHeaderText}})))),_.q("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.vb({color:function(){return w().secondaryTextColor}})},_.q(_.uZ,{text:function(){var b=S();
return m()?b.explanationText:b.questionSubheaderText}}))),_.q("div",{role:"group",
class:_.eJ("learningJourneyQuizViewModelHostQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.q(_.Vq,{each:function(){return S().optionsData||[]}},function(b,u){var O={};
return _.q("button",{class:_.eJ("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(O.learningJourneyQuizViewModelHostQuizHover=function(){return!m()},O.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=A,O.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return m()&&M(u())},O.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){var d;
if(d=c()!==S().correctAnswerIndex)d=u(),d=c()===d;return d},O)),
"on:click":_.um(function(){if(m())return!1;Y(u());var d,p;y(M(u())?((d=S().successTitle)==null?void 0:d.content)||"":((p=S().failureTitle)==null?void 0:p.content)||"");return!1}),
style:_.vb({background:"transparent"}),"aria-description":function(){var d,p;return m()?M(u())?(d=S().successTitle)==null?void 0:d.content:(p=S().failureTitle)==null?void 0:p.content:""},
"aria-disabled":m,el:_.Zl(function(d){_.Oj(271905,d,C,function(p){C=p})}),
"client-ve-type":271905},_.q("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.q(_.uZ,{text:b.optionText}),_.q(_.T,{cond:function(){var d=u(),p;if(p=m())p=c()===d||M(d);return p},
then:function(){return _.q(GCM,{isOptionCorrect:M,optionIndex:u,isOptionSelectedAndCorrect:N,colors:w})}})))}),_.q(_.T,{cond:m,
then:function(){return _.q("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.q("div",{class:"learningJourneyQuizYoututorExplanationText"},_.q(_.uZ,{text:function(){return S().explanationHeaderText}})),_.q(_.uZ,{text:function(){return S().optionsData[c()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"rd"),GCM=_.n(function(H){var C={};
return _.q("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,width:24,viewBox:"0 0 24 24",class:_.eJ("learningJourneyQuizYoututorOptionIconTrailing",(C.learningJourneyQuizViewModelHostQuizPulse=function(){return H.isOptionSelectedAndCorrect(H.optionIndex())},C.learningJourneyQuizYoututorIconIncorrectFill=function(){return!H.isOptionSelectedAndCorrect(H.optionIndex())&&!H.isOptionCorrect(H.optionIndex())},C.learningJourneyQuizYoututorIconCorrectFill=function(){return H.isOptionCorrect(H.optionIndex())},
C))},_.q("path",{d:function(){var S=H.optionIndex();
return H.isOptionCorrect(S)?"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":"M12 1.5C18.0751 1.5 23 6.42487 23 12.5C23 18.5751 18.0751 23.5 12 23.5C5.92487 23.5 1 18.5751 1 12.5C1 6.42487 5.92487 1.5 12 1.5ZM16.207 8.29297C15.8165 7.90246 15.1835 7.90246 14.793 8.29297L12 11.0859L9.20703 8.29297C8.81651 7.90247 8.18349 7.90247 7.79297 8.29297C7.40245 8.68349 7.40246 9.31651 7.79297 9.70703L10.5859 12.5L7.79297 15.293C7.40247 15.6835 7.4025 16.3165 7.79297 16.707C8.1835 17.0976 8.81651 17.0976 9.20703 16.707L12 13.9141L14.793 16.707L14.8691 16.7754C15.2619 17.0958 15.8409 17.0731 16.207 16.707C16.5731 16.3409 16.5958 15.7619 16.2754 15.3691L16.207 15.293L13.4141 12.5L16.207 9.70703C16.5975 9.31651 16.5975 8.68349 16.207 8.29297Z"}}))},
"sd");
fjd.idomCompat=!0;var v2V;_.ljd=_.n(function(H){var C=null,S=null,w=null,A=function(){return H.data()},J=function(){var L=A();
var t=_.JA().resolve(_.AA(_.sU));L=t!=null&&t()?L.darkThemeColorPalette:L.lightThemeColorPalette;return{primaryTextColor:QB(L,0),secondaryTextColor:QB(L,1),optionColor:QB(L,2),backgroundColor:QB(L,3),videoBackgroundColor:QB(L,4)}},c=function(){return!!J().optionColor},Y=_.Z(_.mB(-1,void 0,"QDu8Oe")),M=Y.next().value,m=Y.next().value,W=function(L){return M()===L},y=function(L){return A().correctAnswerIndex===L},N=function(){return M()!==-1},b=function(){return M()===A().correctAnswerIndex},u=function(){var L=
A(),t=N(),g=b();
return t?g?L.successTitle:L.failureTitle:L.questionHeaderText},O=function(){var L=N(),t=b();
return L?t?264685:264684:264683},d=function(){var L=A();
return N()?L.explanationText:L.questionSubheaderText},p=function(){return!!A().video},k=function(L){return b()&&y(L)},R=_.um(function(){m(-1);
return!1});
return _.q(_.T,{cond:function(){return A().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.q(fjd,{data:function(){return A()}})},
else:function(){return _.q("learning-journey-quiz-view-model",{class:_.eJ("learningJourneyQuizViewModelHost",H.className),style:_.vb({background:function(){return J().backgroundColor}})},_.q(_.T,{cond:p,
then:function(){return _.q("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.vb({background:function(){return J().videoBackgroundColor}})},_.q(_.V4,{data:function(){return A().video}},{lockupViewModel:function(L){return _.q(_.BG,{data:L.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.q("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.q("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.q("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.q(_.T,{cond:function(){return!!A().aiGeneratedQuizLabel},
then:function(){return _.q("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.q(_.uZ,{text:function(){return A().aiGeneratedQuizLabel}}))}}),_.q("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.vb({"align-items":function(){return A().overflowMenu?"start":"center"}})},_.q("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.vb({"min-height":function(){return A().overflowMenu?"48px":"26px"}})},_.q("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
el:_.Zl(function(L){_.Oj(O(),L,C,function(t){C=t})}),
style:_.vb({color:function(){return J().primaryTextColor}}),
"client-ve-type":O},_.q(_.uZ,{text:u}))),_.q("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.q(_.T,{cond:N,then:function(){return _.q("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover",el:_.Zl(function(L){_.Oj(264687,L,S,function(t){S=t})}),
"on:click":R,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.q("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.vb({fill:function(){return J().primaryTextColor}})},_.q("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"})))}}),
_.q(_.V4,{data:function(){return A().overflowMenu}},{buttonViewModel:function(L){return _.q(_.rc,{data:L.data})}}))),_.q("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.Zl(function(L){_.Oj(264688,L,w,function(t){w=t})}),
style:_.vb({color:function(){return J().secondaryTextColor}}),
"client-ve-type":264688},_.q(_.uZ,{text:d}))),_.q("div",{role:"group",class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.q(_.Vq,{each:function(){return A().optionsData||[]}},function(L,t){var g={};
return _.q("button",{class:_.eJ("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizViewModelHostQuizOptionsBorderRound",(g.learningJourneyQuizViewModelHostQuizHover=function(){return!N()},g.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=c,g.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return k(t())},g.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!b()&&W(t())},g.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return N()&&
!W(t())},g)),
"on:click":_.um(function(){if(N())return!1;m(t());return!1}),
style:_.vb({background:function(){var ii=t();return N()&&W(ii)?"":c()?J().optionColor:"transparent"}}),
"aria-disabled":N,"client-ve-type":264686},_.q("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.q(_.T,{cond:N,then:function(){return _.q(v2V,{isOptionCorrect:y,optionIndex:t,isOptionSelectedAndCorrect:k,colors:J})}}),_.q(_.uZ,{text:L.optionText})))})))))}})},"td");
v2V=_.n(function(H){var C={};return _.q("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var S=H.optionIndex();return H.isOptionCorrect(S)?"0 0 24 24":"0 -960 960 960"},
class:_.eJ("learningJourneyQuizViewModelHostQuizOptionIconLeading",(C.learningJourneyQuizViewModelHostQuizPulse=function(){return H.isOptionSelectedAndCorrect(H.optionIndex())},C)),
style:_.vb({fill:function(){return H.colors().primaryTextColor}})},_.q("path",{d:function(){var S=H.optionIndex();
return H.isOptionCorrect(S)?"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"}}))},"ud");
_.ljd.idomCompat=!0;_.qs(_.ljd,"learning-journey-quiz-view-model",{props:{data:_.GH,className:_.GH}});var V6U=_.n(function(H){var C=_.Z((0,_.DBi)(function(){var c;return{targetId:(c=H.data().config)==null?void 0:c.suspenseKey,contents:[H.data()]}})).next().value,S=_.JA().resolve(_.ZQ),w=function(){var c=C().contents.length>0?C().contents[0]:void 0;
return c==null?void 0:c.config},A=function(){var c;
return(c=w())==null?void 0:c.entityTriggerConfig},J=_.fn(gwZ,function(){var c,Y;
return(Y=(c=A())==null?void 0:c.entityKey)!=null?Y:""});
_.d6(function(){var c,Y,M,m=(M=Number((c=A())==null?void 0:(Y=c.invalidationTimestamp)==null?void 0:Y.seconds))!=null?M:0,W,y,N;if(((N=Number((W=J())==null?void 0:(y=W.lastUpdated)==null?void 0:y.seconds))!=null?N:0)>m){var b;(c=(b=w())==null?void 0:b.continuationCommand)&&S.resolveCommand(c)}},"FaC8z");
return _.q("yt-suspense-view-model",{class:_.eJ("ytSuspenseViewModelHost")},_.q(_.V4,{data:function(){var c;return(c=w())==null?void 0:c.contents}},{lockupViewModel:_.BG}))},"vd");var o2b=_.n(function(H){var C=_.FH(H,{palette:void 0,isLastItem:!1}),S=C.palette,w=C.isLastItem,A=function(){return H.data().isHighlighted},J=function(){var M;
return piZ((M=S())==null?void 0:M.iconDisabledColor)},c=function(){var M;
return piZ((M=S())==null?void 0:M.primaryTitleColor)},Y=function(){var M;
return piZ((M=S())==null?void 0:M.secondaryTitleColor)};
C={};return _.q("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.Zl(_.Bt(function(){return H.data().rendererContext}))},_.q(_.V4,{data:function(){return H.data().thumbnail}},{thumbnailViewModel:_.Or}),_.q("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.q("div",{class:_.eJ("ytMacroMarkerListItemViewModelTimeDescription",(C.ytMacroMarkerListItemViewModelHighlighted=A,C)),
style:_.vb({"background-color":function(){return A()?c():J()},
color:function(){return A()?"":Y()}})},_.q(_.uZ,{text:function(){return H.data().timestamp}})),_.q("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.vb({"background-color":function(){return w()?"transparent":J()}})}),_.q("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(A()?c():Y())}},_.q(_.uZ,{text:function(){return H.data().title}}))))},"wd");_.TP=_.n(function(H){function C(wu){k("transform:translateX("+(_.rh("HTML_DIR")==="rtl"?"":"-")+wu+"px)")}
function S(wu){return Math.min(Math.max(wu,0),p()-ii())}
function w(){var wu=t()+ND();return A()?(Math.round(ii()/wu)||1)*wu:0}
var A=function(){return H.data().items||[]},J=function(){return H.data().previousButton},c=function(){return H.data().nextButton},Y=function(){var wu,xE;
return(xE=(wu=H.disableArrows)==null?void 0:wu.call(H))!=null?xE:!1},M=function(){var wu;
return!((wu=H.forceNarrowLayout)==null||!wu.call(H))},m=_.EF(function(){var wu;
return!((wu=H.centerAlignItems)==null||!wu.call(H))&&p()<=ii()},void 0,"Uto0kc"),W=_.sW("horizontal-shelf-view-model"),y=_.sW("div"),N=_.Z(_.mB(0,void 0,"G0xZB")),b=N.next().value,u=N.next().value;
N=_.Z(_.mB(0,void 0,"kqCYFf"));var O=N.next().value,d=N.next().value,p=O;O=_.Z(_.mB("",void 0,"Hh6Uye"));N=O.next().value;var k=O.next().value;O=_.Z(_.mB(0,void 0,"yMGBKb"));var R=O.next().value,L=O.next().value,t=R;O=_.Z(_.mB(0,void 0,"VChthd"));R=O.next().value;var g=O.next().value,ii=R;O=_.Z(_.mB(!1,void 0,"qJlhhe"));var FW=O.next().value,cZ=O.next().value;O=_.Z(_.mB(0,void 0,"x7H94"));R=O.next().value;var eZ=O.next().value,ND=R;O=_.Z(_.mB(0,void 0,"ksuUee"));var bi=O.next().value,pU=O.next().value;
O=_.Z(_.mB("50%",void 0,"uxCxde"));var O$=O.next().value,R0=O.next().value,m1=function(){var wu,xE=(wu=H.data())==null?void 0:wu.responsiveContainerConfiguration,En,So;return xE?qoE(xE==null?void 0:xE.responsiveSize):(So=(En=H.sizing)==null?void 0:En.call(H))!=null?So:"STANDARD"};
O=_.EF(function(){return!Y()&&b()>0},void 0,"XK60w");
R=_.EF(function(){return!Y()&&b()<p()-ii()},void 0,"D22LVd");
var c7=function(){u(S(b()-w()));C(b())},tV=function(){u(S(b()+w()));
C(b())},Td=function(){W.value!==null&&fP()},Mi;
_.$T(function(){fP();window.ResizeObserver?(Mi=new ResizeObserver(_.P8(Td,0)),Mi.observe(W.value)):window.addEventListener("resize",Td)});
_.PN(function(){if(window.ResizeObserver){var wu;(wu=Mi)==null||wu.disconnect()}else window.removeEventListener("resize",Td)});
var fP=function(){var wu=W.value.clientWidth,xE=H.includeMargin!==void 0?H.includeMargin():!1,En;var So=H.hasPeek!==void 0?H.hasPeek():!((En=H.data())==null||!En.hasPeek);wu=_.gw({containerWidth:wu,hasPeek:So,sizing:m1(),marginSettings:xE?M()?4:1:0});eZ(wu.gutter);pU(wu.margin);L(wu.itemWidth);cZ(wu.maxContainerWidth<528||M());g(wu.maxContainerWidth);A()&&d((wu.itemWidth+wu.gutter)*A().length-wu.gutter);if(A()){var qi;if(((qi=H.thumbnailAspectRatio)==null?void 0:qi.call(H))!==void 0){var H3;R0(t()/
NfV((H3=H.thumbnailAspectRatio)==null?void 0:H3.call(H))/2+"px")}else R0("50%")}},eo={},Cr={};
return _.q("horizontal-shelf-view-model",{class:_.eJ("ytwHorizontalShelfViewModelHost",H.className),el:W},_.q(_.T,{cond:function(){var wu;return H.data().header&&!((wu=H.horizontalShelfExperiments)==null?0:wu.call(H).hideHeader)},
then:function(){return _.q("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.vb({width:function(){return ii()+"px"},
padding:function(){return"0 "+bi()+"px"}})},_.q(_.V4,{data:function(){return H.data().header}},{sectionHeaderViewModel:function(wu){return _.q(_.KS,{data:wu.data,
disableHorizontalPadding:!0,forceSmallLayout:FW,useResponsiveLayout:!0})}}))}}),_.q("div",{class:_.eJ("ytwHorizontalShelfViewModelOuterContainer",(eo.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return m()},eo)),
style:_.vb({"margin-top":function(){var wu,xE=H.data().header&&!((wu=H.horizontalShelfExperiments)==null?0:wu.call(H).hideHeader),En;return(((En=H.ensureMarginTop)==null?0:En.call(H))&&!xE?12:0)+"px"}})},_.q("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.vb({width:function(){return ii()+"px"},
padding:function(){return"0 "+bi()+"px"},
overflow:function(){return Y()?"auto":"hidden"}})},_.q("div",{class:_.eJ("ytwHorizontalShelfViewModelItems",(Cr.ytwHorizontalShelfViewModelCenterAlignItems=function(){return m()},Cr)),
el:y,style:N},_.q(_.V4,{data:A},{macroMarkerListItemViewModel:function(wu,xE){return _.q("div",{style:_.vb({width:function(){return t()+"px"},
"margin-right":function(){return(xE()===A().length-1?0:ND())+"px"}})},_.q(o2b,{data:wu.data,
palette:_.Jx(H.palette),isLastItem:function(){return xE()===A().length-1}}))},
lockupViewModel:function(wu,xE){var En=wu.data;return _.q("div",{style:_.vb({width:function(){return t()+"px"},
"margin-right":function(){return(xE()===A().length-1?0:ND())+"px"}})},_.q(_.BG,{data:En,
containerType:4,sizing:m1,protectBackground:H.protectBackground,thumbnailFixedWidth:function(){return kyZ(En())+"px"},
thumbnailTargetWidth:function(){return kyZ(En())}}))},
suspenseViewModel:function(wu,xE){return _.q("div",{style:_.vb({width:function(){return t()+"px"},
"margin-right":function(){return(xE()===A().length-1?0:ND())+"px"}})},_.q(V6U,{data:wu.data}))}}))),_.q(_.T,{cond:O,
then:function(){return _.q("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.vb({top:function(){return O$()}})},_.q(_.V4,{data:J},{buttonViewModel:function(wu){return _.q(_.rc,{data:wu.data,
onClick:c7})}}))}}),_.q(_.T,{cond:R,
then:function(){return _.q("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.vb({top:function(){return O$()}})},_.q(_.V4,{data:c},{buttonViewModel:function(wu){return _.q(_.rc,{data:wu.data,
onClick:tV})}}))}})))},"xd");
_.TP.idomCompat=!0;var Ocd=_.n(function(H){var C=function(){return H.data().targetId||""},S=function(){var O;
return((O=H.data())==null?void 0:O.expansionEntityKey)||""},w=_.fn(_.Lt$,S),A=!0,J=function(){var O;
return((O=w())==null?void 0:O.value)===C()},c=function(O){_.Ax(_.O5("stringEntity",S(),{key:S(),
value:O?C():""}))};
_.Ph(function(){A=!1;H.data().isExpanded&&c(!0)});
var Y=function(){if(J()){var O=!0;H.onCollapse!==void 0&&(O=H.onCollapse());O&&c(!1)}else c(!0)},M=_.um(Y),m=function(){var O;
return(((O=H.accordionStyle)==null?void 0:O.call(H))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},W=_.sW("div"),y=function(){var O,d;
return(d=(O=_.e(H.data().rendererContext,_.VB))==null?void 0:O.label)!=null?d:""},N=function(){var O,d;
return{disabled:(O=H.hideIfNotExpanded)==null?void 0:O.call(H),ariaHidden:(d=H.hideIfNotExpanded)==null?void 0:d.call(H)}},b={},u={};
return _.q("yt-accordion-item-view-model",{class:_.eJ("ytAccordionItemViewModelHost",H.className,(b.ytAccordionItemViewModelExpanded=function(){return J()},b.ytAccordionItemViewModelHidden=function(){var O;
return(O=H.hideIfNotExpanded)==null?void 0:O.call(H)},b.ytAccordionItemViewModelMini=m,b)),
"data-target-id":C},_.q("div",{class:"ytAccordionItemViewModelContainer"},_.q("div",{class:"ytAccordionItemViewModelLeftSection","on:click":M,title:y,"aria-hidden":function(){var O;return(O=H.hideIfNotExpanded)==null?void 0:O.call(H)}},_.q(_.uZ,{text:function(){return H.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:y})),_.q("div",{class:"ytAccordionItemViewModelRightSection"},_.q(_.V4,{data:function(){return J()?H.data().expandButton:H.data().collapseButton}},{buttonViewModel:function(O){return _.q(_.rc,{data:O.data,
className:"ytAccordionItemViewModelToggleButton",onClick:Y,buttonOverrides:N})}}))),_.q("div",{class:"ytAccordionItemViewModelContainer"},_.q("div",{class:_.eJ("ytAccordionItemViewModelContent",(u.ytAccordionItemViewModelExpandedSubtitle=function(){return J()},u)),
el:W,style:_.vb({"max-height":function(){return A?"auto":J()?W.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!J()}},_.q(_.T,{cond:function(){return!m()},
then:function(){return _.q(_.uZ,{text:function(){return H.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.q(_.V4,{data:function(){return H.data().content}},{horizontalShelfViewModel:function(O){return _.q(_.TP,{data:O.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"yd");_.XKM=_.n(function(H){var C=_.Z((0,_.DBi)(H.data)).next().value,S=function(){return H.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},w=function(){return S()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},A=_.Z(_.mB(!0,void 0,"AbejLb")),J=A.next().value,c=A.next().value,Y=function(){return w()&&J()},M=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){c(!J())}}},m=_.um(function(){C().onTitleTap&&_.Im(C().onTitleTap||{})});
A={};return _.q("yt-accordion-view-model",{class:_.eJ("ytAccordionViewModelHost",(A.ytAccordionViewModelMinimized=function(){return Y()},A)),
"data-target-id":function(){return H.data().targetId||""}},_.q(_.T,{cond:function(){return w()||!!C().title},
then:function(){return _.q("div",{class:"ytAccordionViewModelHeader"},_.q("div",{class:"ytAccordionViewModelTitleSection"},_.q("div",{class:"ytAccordionViewModelTitleWrapper"},_.q(_.T,{cond:function(){return!!H.data().headerIcon},
then:function(){return _.q(_.lm,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var W;return(W=H.data().headerIcon)==null?void 0:W.iconType}})}}),_.q("div",{class:"ytAccordionViewModelTitle",
"on:click":m},_.q(_.uZ,{className:"ytAccordionViewModelTitleText",text:function(){return C().title}})))),_.q("div",{class:"ytAccordionViewModelButtonSection"},_.q(_.T,{cond:w,
then:function(){return _.q(_.nw,{data:M,iconName:function(){return Y()?"chevron_down":"chevron_collapse"}})}})))}}),_.q("div",{class:"ytAccordionViewModelContent"},_.q(_.V4,{data:function(){return C().contents}},{accordionItemViewModel:function(W){return _.q(Ocd,{data:W.data,
className:"ytAccordionViewModelRow",accordionStyle:S,hideIfNotExpanded:Y,onCollapse:function(){return w()?(c(!0),!1):!0}})}})),_.q("div",null,_.q(_.T,{cond:function(){return!w()&&(!!C().disclaimerFooter||!!C().footer)},
then:function(){return _.q("div",{class:"ytAccordionViewModelFooter"},_.q(_.uZ,{text:function(){return C().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.q(_.V4,{data:function(){return H.data().footer}},{flexibleActionsViewModel:function(W){return _.q(_.Ym,{data:W.data,
layout:0})}}))}})))},"zd");_.qs(_.XKM,"yt-accordion-view-model",{props:{data:_.GH}});_.qs(_.n(function(H){var C=null,S=null,w,A=(w=_.JA().resolve(_.AA(_.sU)))==null?void 0:w(),J=_.Z(_.mB(!1,void 0,"h3atzd"));w=J.next().value;var c=J.next().value;J=_.Z(_.mB(!0,void 0,"UTh8db"));var Y=J.next().value,M=J.next().value,m=_.sW("textarea",function(d){_.Oj(264503,d,C,function(p){C=p})}),W=function(d){c(!0);
d={learningJourneyFormData:{query:d}};_.Im(H.data().searchEndpoint||{},{form:{formData:d}});return!1},y=_.um(function(d){d.target.closest("button-view-model")&&c(!0)});
J=_.um(function(){M(m.value.value.length===0)});
var N=_.um(function(d){if(d.key==="Enter"&&!d.shiftKey&&!Y()){var p=d.target;d.preventDefault();W(p.value)}}),b={},u={},O={};
return _.q("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.q("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.q(_.Jg,{data:function(){return H.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.q("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.q("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.q("div",{class:_.eJ("ytLearningJourneyZeroStateSearchBar",(b.ytLearningJourneyZeroStateSearchBarDark=A,b))},_.q("textarea",{class:_.eJ("ytLearningJourneyZeroStateTextInput",(u.ytLearningJourneyZeroStateTextInputDark=A,u)),el:m,"on:keyup":J,"on:keydown":N,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.q("div",{class:_.eJ("ytLearningJourneyZeroStateSearchButtonContainer",(O.ytLearningJourneyZeroStateSearchButtonContainerDark=A,O))},_.q(_.rc,{data:function(){return _.e(H.data().searchButton,_.qc)},
className:"search-button",onClick:function(){return W(m.value.value)},
buttonOverrides:function(){return{disabled:Y(),style:A?"mono-inverse":"mono",size:"XL"}}}))),_.q(_.T,{cond:function(){return!!H.data().errorBanner},
then:function(){return _.q("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.Zl(function(d){_.Oj(264617,d,S,function(p){S=p})})},_.q(_.V4,{data:function(){return H.data().errorBanner}},{alertBannerViewModel:function(d){return _.q(_.amU,{data:d.data,
"client-ve-type":264617})}}))}})),_.q(_.T,{cond:w,
then:function(){return _.q("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.q(_.V4,{data:function(){return H.data().loader}},{learningJourneyLoaderViewModel:function(d){return _.q(_.ulV,{data:d.data})}}))},
else:function(){return _.q("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.q(_.T,{cond:function(){return!!H.data().learningJourneyShelf},
then:function(){return _.q("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.q("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return H.data().learningJourneySectionTitle}),_.q(_.V4,{data:function(){return H.data().learningJourneyShelf}},{horizontalShelfViewModel:function(d){return _.q(_.TP,{data:d.data,
centerAlignItems:!0})}}))}}),_.q("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.q("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return H.data().suggestedJourneySectionTitle}),_.q("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":y},_.q(_.V4,{data:function(){return H.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(d){return _.q(_.Ym,{data:d.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"Ad"),"yt-learning-journey-zero-state",{props:{data:_.GH}});var QRW=_.n(function(H){var C=H.data;return _.q("ytvl-live-leaderboard-item-action-content-view-model",{class:_.eJ("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.q(_.uZ,{text:function(){var S;return(S=C())==null?void 0:S.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.q(_.V4,{data:function(){return C().actionButton}},{buttonViewModel:function(S){return _.q(_.rc,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:S.data})}}))},"Bd");var dCV=_.n(function(H){var C=H.data;return _.q("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.eJ("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.q(_.uZ,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var S;return(S=C())==null?void 0:S.displayName},
ellipsisTruncate:!0}),_.q(_.V4,{data:function(){return C().badge}},{buttonViewModel:function(S){return _.q(_.rc,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:S.data})}}))},"Cd");_.qs(_.n(function(H){var C=H.data;return _.q("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.q("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.q(_.uZ,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var S;return(S=C())==null?void 0:S.rank}})),_.q("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.q(_.V4,{data:function(){return C().avatar}},{avatarViewModel:_.ZT})),_.q("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.q(_.V4,{data:function(){return C().content}},{liveLeaderboardItemChannelContentViewModel:dCV,
liveLeaderboardItemActionContentViewModel:QRW})),_.q(_.uZ,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var S;return(S=C())==null?void 0:S.points}}))},"Dd"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.GH}});_.qs(_.n(function(H){var C=H.data;return _.q("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.q(_.uZ,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var S,w;return(S=C())==null?void 0:(w=S.ranking)==null?void 0:w.rank}}),_.q("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.q(_.V4,{data:function(){return C().avatar}},{avatarViewModel:_.ZT})),_.q(_.uZ,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var S,w;return(S=C())==null?void 0:(w=S.channelContent)==null?void 0:w.channelName}}),_.q(_.uZ,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var S;return(S=C())==null?void 0:S.points}}))},"Ed"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.GH}});var PXn=_.n(function(H){H=_.FH(H,{wrapper:!1}).wrapper;return _.q(_.T,{cond:H,then:function(){return _.q("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.q("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.q("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Fd");
PXn.idomCompat=!0;var $C_=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],pKU=_.n(function(H){var C=H.data;var S=_.Zl(),w=_.EF(function(){return C().command},void 0,"fyYsT");
_.d6(function(){w()&&_.gC(w(),{form:{element:S.value}})},"B0nxdb");
return _.q("div",{el:S,class:"YtQrCodeRendererHostContainer"},_.q(_.T,{cond:function(){return C().qrCodeImage},
then:function(A){return _.q(_.Jg,{data:A,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.q(_.T,{cond:function(){return C().spinner},
then:function(){return _.q(PXn,null)}})}}),_.q(_.T,{cond:function(){return C().label},
then:function(A){return _.q(_.uZ,{text:A,className:"YtQrCodeRendererHostLabel"})}}),_.q(_.T,{cond:function(){return C().labels},
then:function(A){return _.q("div",{class:"YtQrCodeRendererHostLabels"},_.q(_.Vq,{each:A},function(J){return _.q(_.uZ,{text:J})}))}}))},"Hd");_.qs(_.n(function(H){var C=H.data;var S=_.EF(function(){return C().qrEntityKey},void 0,"M0PrY"),w=_.EF(function(){return C().deleteEntityOnDismiss},void 0,"QZa4g"),A=_.EF(function(){return C().command},void 0,"wEOxUe"),J=_.fn(mo0,S);
H=_.EF(function(){return C().qrCodeImage},void 0,"UO5oub");
var c=_.EF(function(){return C().style&&$C_.includes(C().style)},void 0,"Op9kZd"),Y=_.c5({visibilityCallback:function(M){M&&A()&&_.gC(A())},
showOption:{calledOnce:!0,state:"visible"}});_.$T(function(){_.PN(function(){w()&&S()&&_.wC().dispatch(_.O5("qrCodeEntity",S()))})});
return _.q("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.Zl(Y)},_.q(_.T,{cond:c,then:function(){return _.q(_.T,{cond:J,then:function(M){return _.q(pKU,{data:M})}})}}),_.q(_.T,{cond:H,
then:function(M){return _.q(_.Jg,{data:M,alt:""})}}))},"Gd"),"yt-qr-code-renderer",{props:{data:_.GH}});var hS1=_.n(function(H){var C=function(){return _.aw(1728053247&(H.barColor!==void 0?G_(H.barColor()):4278190080))};
return _.q("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},_.q(kCY,{animationDelay:0,percentWidth:100,barColor:function(){return C()}}),_.q("div",{class:"ytVideoOverviewGhostCardMediaWrapper"},_.q("div",{class:"ytVideoOverviewGhostCardMedia",
style:function(){return"background-color:"+C()}})),_.q(kCY,{animationDelay:0,
percentWidth:100,barColor:function(){return C()}}),_.q(kCY,{animationDelay:600,
percentWidth:60,barColor:function(){return C()}}))},"Id"),kCY=_.n(function(H){return _.q("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+H.percentWidth()+"%"}},_.q("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var C=H.animationDelay(),S=H.barColor();return"animation-delay:"+C+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+S+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"Jd");var n2n;_.rW1=_.n(function(H){function C(d){c(d)}
var S=H.data;var w=_.sW("yt-video-overview-view-model"),A=_.ja("div");H=_.Z(_.mB(-1,void 0,"qaDSu"));var J=H.next().value,c=H.next().value;H=_.Z(_.mB(0,void 0,"Vz681c"));var Y=H.next().value,M=H.next().value,m={},W=_.fn(hCi,function(){return S().asyncDataEntityKey}),y=function(){var d;
if((d=W())==null?0:d.videoOverviewViewModel){var p;return _.e((p=W())==null?void 0:p.videoOverviewViewModel,H$d)}return S()};
_.$T(function(){M(Math.min((w.value.clientWidth-24)/4-8,72))});
var N=function(d){c(d);(A==null?0:A.value)&&A.value.children[d]&&A.value.children[d].scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})};
Chw(w,function(){var d;if((d=y())==null||!d.inlinePlaybackEndpoint)return null;var p;d=m==null?void 0:(p=m.thumbnailElRef)==null?void 0:p.value;if(!d)return null;var k;p=(k=y())==null?void 0:k.inlinePlaybackEndpoint;k=_.e(p,EU1);return{multipleVideoPreviewData:{data:(k==null?0:k.playerDescriptors)&&(k==null?0:k.playerDescriptors.length)?k.playerDescriptors:[],thumbnailElement:d,trackingParams:"test",callbacks:{onPlaybackStarted:N},options:{hideScrubbingControls:!0,hideTimeDisplay:!0}}}});
var b=function(){var d;return((d=y())==null?void 0:d.headerSubtext)!==void 0?!0:!1},u=function(){var d,p=G_((d=y())==null?void 0:d.titleColor);
return p?"color: "+_.aw(p)+";":void 0},O=function(){var d,p=G_((d=y())==null?void 0:d.subtextColor);
return p?"color: "+_.aw(p)+";":void 0};
return _.q("yt-video-overview-view-model",{class:"ytGenAiVideoOverviewViewModelHost",el:w,style:function(){var d,p=G_((d=y())==null?void 0:d.backgroundColor);return p?"background-color: "+_.aw(p)+";":void 0}},_.q(_.T,{cond:function(){var d;
return(d=y())==null?void 0:d.isLoading},
then:function(){return _.q(hS1,{barColor:function(){var d;return(d=y())==null?void 0:d.titleColor}})},
else:function(){return _.q(_.F9,null,_.q("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.q("div",{class:"ytGenAiVideoOverviewViewModelTitle",style:function(){return u()}},_.q(_.uZ,{text:function(){var d;
return(d=y())==null?void 0:d.headerText}})),_.q(_.T,{cond:b,
then:function(){return _.q("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.q("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return O()}},_.q(_.lm,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.q("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return O()}},_.q(_.uZ,{text:function(){var d;
return(d=y())==null?void 0:d.headerSubtext}})))}})),_.q("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.q(_.V4,{data:function(){var d;
return(d=y())==null?void 0:d.thumbnail}},{thumbnailViewModel:function(d){return _.q(_.Or,{data:d.data,
aspectRatio:0,playbackRef:HQ$(m)})}})),_.q(_.T,{cond:function(){var d,p,k,R;
return((d=y())==null?void 0:(p=d.listItems)==null?void 0:p.length)!==void 0&&((k=y())==null?void 0:(R=k.listItems)==null?void 0:R.length)>0?!0:!1},
then:function(){return _.q("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:A},_.q(_.Vq,{each:function(){var d;return(d=y())==null?void 0:d.listItems}},function(d,p){return _.q(n2n,{image:d.image,
index:p,isSelected:function(){return p()===J()},
onClick:C,itemWidth:Y})}))}}),_.q("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.q("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return u()}},_.q(_.uZ,{text:function(){var d,p,k,R,L,t,g;
return(g=(d=y())==null?void 0:(p=d.listItems)==null?void 0:(k=p[J()])==null?void 0:k.headline)!=null?g:(R=y())==null?void 0:(L=R.listItems)==null?void 0:(t=L[0])==null?void 0:t.headline}})),_.q("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return O()}},_.q(_.uZ,{text:function(){var d,p,k,R,L,t,g;
return(g=(d=y())==null?void 0:(p=d.listItems)==null?void 0:(k=p[J()])==null?void 0:k.subtext)!=null?g:(R=y())==null?void 0:(L=R.listItems)==null?void 0:(t=L[0])==null?void 0:t.subtext}}))))}}))},"Kd");
n2n=_.n(function(H){var C=H.image;var S=H.itemWidth;var w=H.index;var A=H.isSelected;var J=H.onClick;H=_.um(function(){w!==void 0&&J!==void 0&&J(w());return!1});
var c={};return _.q("div",{class:_.eJ("ytGenAiVideoOverviewViewModelCarouselItem",(c.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return A==null?void 0:A()},c)),
style:function(){return"width: "+S()+"px;"},
"on:click":H},_.q(_.Jg,{data:C,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.q(_.T,{cond:function(){return A==null?void 0:A()},
then:function(){return _.q("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.q("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Ld");
_.rW1.idomCompat=!0;_.qs(_.rW1,"yt-video-overview-view-model",{props:{data:_.GH}});_.B_V=_.n(function(H){var C=H.data;var S=H.topbarOffset;var w,A=((w=_.JA().resolve(_.AA(_.sU)))==null?void 0:w())||!1;return _.q("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var J=C();var c,Y,M=A?(c=J.config)==null?void 0:c.darkThemeBackgroundColor:(Y=J.config)==null?void 0:Y.lightThemeBackgroundColor;J=M?_.Iw(M):void 0;J="background-color: "+J+";";S!==void 0&&(J+="top: -"+S()+"px;");return J},
"aria-hidden":!0},_.q(_.T,{cond:function(){var J,c,Y;return!!((J=C().backgroundImageConfig)==null?0:(c=J.image)==null?0:(Y=c.sources)==null?0:Y.length)},
then:function(){return _.q(_.Jg,{data:function(){var J;return(J=C().backgroundImageConfig)==null?void 0:J.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.q("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+nY0(A,C().gradientColorConfig)+";"}}))},"Md");
_.B_V.idomCompat=!0;var DCd=_.n(function(H){var C=H.data;var S=H.isOverlay;return _.q("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.q("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.q(_.V4,{data:function(){return C().header}},{sectionHeaderViewModel:function(w){return _.q(_.KS,{data:w.data,
isOverlay:S})}})),_.q("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.q(_.V4,{data:function(){return C().channelInfoButtons}},{flexibleActionsViewModel:_.Ym})),_.q("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.q(_.V4,{data:function(){return C().description}},{descriptionPreviewViewModel:function(w){return _.q(_.Dr,{data:w.data,
isOverlay:S})}})))},"Nd");
DCd.idomCompat=!0;var KqU=_.n(function(H){var C=H.data;var S={};return _.q("factoid-view-model",{class:_.eJ("ytwFactoidViewModelHost",(S.ytwFactoidViewModelHostOverlay=H.isOverlay,S))},_.q(_.uZ,{text:function(){return C().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.q(_.uZ,{text:function(){return C().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Od");
KqU.idomCompat=!0;var t6V=_.n(function(H){var C=H.data;var S=H.isOverlay;return _.q("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.q(_.V4,{data:function(){return C().factoids}},{factoidViewModel:function(w){return _.q(KqU,{data:w.data,
isOverlay:S})}}))},"Pd");
t6V.idomCompat=!0;_.LqV=_.n(function(H){var C=H.data;var S=H.isOverlay;return _.q("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.q(_.V4,{data:function(){return C().items}},{channelInfoViewModel:function(w){return _.q("div",{class:"ytwCourseMetadataViewModelHostItem"},_.q(DCd,{data:w.data,
isOverlay:S}))},
coursePerksViewModel:function(w){return _.q("div",{class:"ytwCourseMetadataViewModelHostItem"},_.q(N_d,{data:w.data,isOverlay:S}))},
descriptionPreviewViewModel:function(w){return _.q("div",{class:"ytwCourseMetadataViewModelHostItem"},_.q(_.Dr,{data:w.data,isOverlay:S}))},
factoidsRowViewModel:function(w){return _.q("div",{class:"ytwCourseMetadataViewModelHostItem"},_.q(t6V,{data:w.data,isOverlay:S}))},
progressViewModel:function(w){return _.q("div",{class:"ytwCourseMetadataViewModelHostItem"},_.q(bc1,{data:w.data,isOverlay:S}))}}))},"Qd");var g2b=_.n(function(H){return _.q("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.q(_.V4,{data:function(){return H.data().content}},{courseMetadataViewModel:function(C){return _.q(_.LqV,{data:C.data,
isOverlay:H.isOverlay})},
progressViewModel:function(C){return _.q(bc1,{data:C.data})}}))},"Rd");var UCP=_.n(function(H){var C=H.data;H=H.className;var S=function(){var A;return _.rw((A=C())==null?void 0:A.rendererContext)},w={};
w=(w.dynamicTextViewModelHost=!0,w.dynamicTextViewModelHostTappable=function(){return S()},w);
return _.q("yt-dynamic-text-view-model",{el:_.Zl(_.Bt(function(){var A;return(A=C())==null?void 0:A.rendererContext})),
role:function(){return S()?"link":void 0},
tabindex:function(){return S()?0:void 0},
class:_.eJ(H,w)},_.q("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var A,J,c;return(c=(J=_.e((A=C())==null?void 0:A.rendererContext,_.VB))==null?void 0:J.label)!=null?c:""}},_.q(_.uZ,{text:function(){return C().text},
userInput:!0})))},"Sd");
UCP.idomCompat=!0;_.md=_.n(function(H){var C=H.data;var S=H.isPositionRelative;var w=_.BJU("(max-width: 527.9px)"),A=function(){var J,c;return(c=(J=C())==null?void 0:J.style)!=null?c:"IMAGE_BANNER_STYLE_FULL_BLEED"};
H={};return _.q("yt-image-banner-view-model",{el:_.Zl(_.Bt(function(){var J;return(J=C())==null?void 0:J.rendererContext})),
class:_.eJ((H.ytImageBannerViewModelHost=!0,H.ytImageBannerViewModelInset=function(){return D1U(A())},H.ytImageBannerViewModelPositionAbsolute=function(){return _.ps(!0)&&!(S==null?0:S())},H.ytImageBannerViewModelSmallInset=function(){return D1U(A())&&w()},H.ytImageBannerViewModelTappable=function(){var J;
return _.rw((J=C())==null?void 0:J.rendererContext)},H))},_.q(_.T,{cond:function(){var J;
return(J=C())==null?void 0:J.image},
then:function(){return _.q(_.Jg,{data:function(){return C().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.q(_.V4,{data:function(){var J;
return(J=C())==null?void 0:J.overlays}},{thumbnailHoverOverlayViewModel:Fx}))},"Td");
_.md.idomCompat=!0;var RSV;RSV=_.n(function(H){var C=H.condition;var S=H.content;return _.q(_.T,{cond:C,then:function(){return _.q("div",{class:"yt-page-header-view-model__scroll-container"},S())},
else:function(){return S()}})},"Ud");
_.Ij_=_.n(function(H){var C=H.data;var S=H.noPadding;var w=H.enableBanner;var A=H.cinematicContainerTopbarOffset;var J=H.allowCinematicContainerOverflow;var c=H.displayAsSidebar;var Y=H.displayAsPanel;var M=H.alwaysUseMediumTextDescription;var m=KWZ(),W=function(){return!!C().image||!!C().animatedImage},y=function(){return!!C().background},N=function(){return(c==null?0:c())||(Y==null?0:Y())?1:m()},b=function(){return N()===1},u=function(){return b()||N()===2},O=function(){return N()===4},d=function(){var bi=
C();
var pU=!!C().heroImage;var O$=N(),R0=tEi(C()),m1=c==null?void 0:c(),c7=!bi.metadata,tV;if(tV=pU?_.e(bi.heroImage,txb):_.e(bi.animatedImage||bi.image,txb)){bi=tV.style;var Td=tV.layoutMode;if(Td!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(tV=V5W(lI6(tV)),pU)pU=rQZ(O$,bi,Td,tV,m1);else b:if(c7)pU=O$===1?{size:48}:{size:72};else switch(O$){case 1:pU={size:72};break b;case 2:pU={size:120};break b;default:pU=R0<4?{size:120}:{size:160}}else pU=void 0}else pU={size:0};return pU};
H={};H=_.eJ((H["yt-page-header-view-model"]=!0,H["yt-page-header-view-model--no-padding"]=function(){return!(S==null||!S())},H["yt-page-header-view-model--small-top-padding"]=function(){return b()&&!C().actions&&!(Y==null?0:Y())||N()===2&&!(W()||C().heroImage)},H["yt-page-header-view-model--small-bottom-padding"]=function(){return u()&&!C().actions&&!(Y==null?0:Y())},H["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(J==null?0:J())},H["yt-page-header-view-model--display-as-sidebar"]=
c,H));
var p={},k=_.eJ((p["yt-page-header-view-model__page-header-headline"]=!0,p["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var bi;return(bi=d())==null?void 0:bi.allowFullWidth},p)),R=function(){var bi;
return u()&&!((bi=d())==null?0:bi.allowFullWidth)},L=function(){return b()&&(!!C().heroImage||W())&&tEi(C())>0},t=function(){return L()&&(Y==null?void 0:Y())};
p={};var g=_.eJ((p["yt-page-header-view-model__page-header-title"]=!0,p["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!L()},p["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return L()&&!t()},p["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=t,p["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=y,p));
p={};var ii=_.eJ((p["yt-page-header-view-model__page-header-headline-image"]=!0,p["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!C().heroImage&&u()},p));
p={};var FW=_.eJ((p["yt-page-header-view-model__page-header-banner-container"]=w,p["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var bi;return(w==null?void 0:w())&&((bi=_.e(C().banner,_.g4b))==null?void 0:bi.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},p));
p={};var cZ=_.eJ((p["yt-page-header-view-model__page-header-content-metadata"]=!0,p["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=y,p));p={};var eZ=_.eJ((p["yt-page-header-view-model__page-header-flexible-actions"]=!0,p["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!C().metadata||u()},p["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!u()},p));
p={};var ND=_.eJ((p["yt-page-header-view-model__page-header-attribution"]=!0,p["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=y,p));return _.q("yt-page-header-view-model",{class:H},_.q(_.T,{cond:y,then:function(){return _.q("div",{class:"yt-page-header-view-model__page-header-background"},_.q(_.V4,{data:function(){return C().background}},{cinematicContainerViewModel:function(bi){return _.q(_.B_V,{data:bi.data,
topbarOffset:A})}}))}}),_.q(RSV,{condition:function(){return!(c==null||!c())},
content:function(){return _.q("div",{class:"yt-page-header-view-model__page-header-content"},_.q(_.T,{cond:function(){return(w==null?void 0:w())&&C().banner},
then:function(){return _.q("div",{class:FW},_.q(_.V4,{data:function(){return C().banner}},{imageBannerViewModel:_.md}))}}),_.q("div",{class:k},_.q(_.T,{cond:W,
then:function(){return _.q(_.V4,{data:function(){var bi;if(!(bi=C().animatedImage)){bi=C();if(W()){var pU=bi=Object.assign({},bi),O$=N(),R0=tEi(C()),m1=pU.image,c7=_.e(m1,LLM),tV=c7==null?void 0:c7.avatar,Td=_.e(tV,_.Dz);if(m1&&tV&&Td){switch(O$){case 1:Td.avatarImageSize="AVATAR_SIZE_XL";break;case 2:Td.avatarImageSize="AVATAR_SIZE_XXL";break;default:R0<4?Td.avatarImageSize="AVATAR_SIZE_XXL":Td.avatarImageSize="AVATAR_SIZE_XXXL"}_.rC(tV,_.Dz,Object.assign({},Td));c7.avatar=Object.assign({},tV);_.rC(m1,
LLM,Object.assign({},c7));pU.image=Object.assign({},m1)}}bi=bi.image}return bi}},{contentPreviewImageViewModel:function(bi){return _.q(_.$n,{data:bi.data,
className:ii,imageSizeConfig:d})},
decoratedAvatarViewModel:function(bi){return _.q(_.cG,{data:bi.data,className:ii})}})}}),_.q(_.T,{cond:function(){return!!C().heroImage&&!R()},
then:function(){return _.q(_.V4,{data:function(){return C().heroImage}},{contentPreviewImageViewModel:function(bi){return _.q(_.$n,{data:bi.data,
className:ii,imageSizeConfig:d})}})}}),_.q("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.q(_.T,{cond:function(){return!!C().heroImage&&R()},
then:function(){return _.q("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.q(_.V4,{data:function(){return C().heroImage}},{contentPreviewImageViewModel:function(bi){return _.q(_.$n,{data:bi.data,
className:ii,imageSizeConfig:d})}}))}}),_.q(_.V4,{data:function(){return C().title}},{dynamicTextViewModel:function(bi){return _.q(UCP,{data:bi.data,
className:g})}}),_.q(_.V4,{data:function(){return C().metadata}},{contentMetadataViewModel:function(bi){return _.q(_.pt,{data:bi.data,
layout:function(){return b()?1:0},
className:cZ,isOverlay:y,useMediumText:O})}}),_.q(_.T,{cond:function(){return C().description&&!b()},
then:function(){return _.q(_.V4,{data:function(){return C().description}},{descriptionPreviewViewModel:function(bi){return _.q(_.Dr,{data:bi.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:y,maxLinesOverride:function(){return b()?void 0:1},
useMediumText:function(){return(M==null?void 0:M())||O()}})}})}}),_.q(_.T,{cond:function(){return C().attribution&&!u()},
then:function(){return _.q(_.V4,{data:function(){return C().attribution}},{attributionViewModel:function(bi){return _.q(vW1,{data:bi.data,
className:ND,useMediumText:O})}})}}),_.q(_.T,{cond:function(){return C().actions&&!u()},
then:function(){return _.q(_.V4,{data:function(){return C().actions}},{flexibleActionsViewModel:function(bi){return _.q(_.Ym,{data:bi.data,
layout:function(){return LWE(N())},
className:eZ})}})}}))),_.q("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.q(_.T,{cond:function(){return C().description&&b()},
then:function(){return _.q(_.V4,{data:function(){return C().description}},{descriptionPreviewViewModel:function(bi){return _.q(_.Dr,{data:bi.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:y,maxLinesOverride:function(){return b()?void 0:1},
useMediumText:function(){return(M==null?void 0:M())||O()}})}})}}),_.q(_.T,{cond:function(){return C().attribution&&u()},
then:function(){return _.q(_.V4,{data:function(){return C().attribution}},{attributionViewModel:function(bi){return _.q(vW1,{data:bi.data,
className:ND,useMediumText:O})}})}}),_.q(_.T,{cond:function(){return C().actions&&u()},
then:function(){return _.q(_.V4,{data:function(){return C().actions}},{flexibleActionsViewModel:function(bi){return _.q(_.Ym,{data:bi.data,
layout:function(){return LWE(N())},
className:eZ})}})}})),_.q("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.q(_.V4,{data:function(){return C().bottomMetadataFlexibleContainer}},{flexibleContainer:function(bi){return _.q(g2b,{data:bi.data,
isOverlay:y})}})))}}))},"Vd");
_.Ij_.idomCompat=!0;_.qs(_.n(function(H){var C=_.Z(_.mB(!1,void 0,"vvzTj")),S=C.next().value,w=C.next().value;return _.q("yt-official-card-view-model",{class:_.eJ("ytOfficialCardViewModelHost",H.className),style:_.vb({"background-color":function(){var A,J=G_((A=H.data())==null?void 0:A.backgroundColor);return J?_.aw(J):void 0}})},_.q(_.V4,{data:function(){return H.data().header}},{pageHeaderViewModel:function(A){return _.q(_.Ij_,{data:A.data,
noPadding:!0})}}),_.q(_.V4,{data:function(){return H.data().contents}},{horizontalShelfViewModel:function(A){return _.q(_.TP,{data:A.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.q(_.T,{cond:S,
then:function(){return _.q("div",{class:"ytOfficialCardViewModelExpandedContent"},_.q(_.V4,{data:function(){return H.data().expandedContents}},{horizontalShelfViewModel:function(A){return _.q(_.TP,{data:A.data,
sizing:"MINI"})}}),_.q("div",{class:"ytOfficialCardViewModelCollapseButton"},_.q(_.V4,{data:function(){return H.data().collapseButton}},{buttonViewModel:function(A){return _.q(_.rc,{data:A.data,
onClick:function(){w(!S())}})}})))},
else:function(){return _.q("div",{class:"ytOfficialCardViewModelExpandButton"},_.q(_.V4,{data:function(){return H.data().expandButton}},{buttonViewModel:function(A){return _.q(_.rc,{data:A.data,
onClick:function(){w(!S())}})}}))}}))},"Wd"),"yt-official-card-view-model",{props:{data:_.GH,
className:_.GH}});var ajW=_.n(function(H){var C,S=(C=_.JA().resolve(_.AA(_.sU)))==null?void 0:C();return _.q("ytw-search-friction-view-model",{class:_.eJ("ytwSearchFrictionViewModelHost",H.className)},_.q("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.q("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.q(_.T,{cond:function(){return S&&H.data().darkThemeImage?H.data().darkThemeImage:H.data().image},
then:function(w){return _.q(_.Jg,{data:w,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.q(_.V4,{data:function(){return H.data().overflowMenuButton}},{buttonViewModel:function(w){return _.q(_.rc,{data:w.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.q(_.uZ,{text:function(){return H.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.q(_.Vq,{each:function(){return H.data().bodyText||[]}},function(w){return _.q(_.uZ,{text:w,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.q(_.V4,{data:function(){return H.data().actions}},{buttonViewModel:function(w){return _.q(_.rc,{data:w.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.q(_.uZ,{text:function(){return H.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.q(_.uZ,{text:function(){return H.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"Xd");
ajW.idomCompat=!0;_.qs(ajW,"ytw-search-friction-view-model",{props:{data:_.GH,className:_.GH}});_.Wd=_.n(function(H){var C=_.sW("markdown-div"),S,w=(S=_.JA().resolve(_.AA(_.sU)))==null?void 0:S();_.d6(function(){var A=C.value;var J=new Fjb,c=new Map(J.JSC$9315_sanitizerTable.globalAttributePolicies);c.set("style",{policyAction:4});J.JSC$9315_sanitizerTable=new $S(J.JSC$9315_sanitizerTable.allowedElements,J.JSC$9315_sanitizerTable.elementPolicies,J.JSC$9315_sanitizerTable.allowedGlobalAttributes,c,J.JSC$9315_sanitizerTable.globallyAllowedAttributePrefixes);var Y=["data-time"];if(Y===void 0)c=
new Set(J.JSC$9315_sanitizerTable.globallyAllowedAttributePrefixes),c.add("data-"),J.JSC$9315_sanitizerTable=new $S(J.JSC$9315_sanitizerTable.allowedElements,J.JSC$9315_sanitizerTable.elementPolicies,J.JSC$9315_sanitizerTable.allowedGlobalAttributes,J.JSC$9315_sanitizerTable.globalAttributePolicies,c);else{c=new Set(J.JSC$9315_sanitizerTable.allowedGlobalAttributes);Y=_.Z(Y);for(var M=Y.next();!M.done;M=Y.next()){M=M.value;if(M.indexOf("data-")!==0)throw Error("ma`"+M);c.add(M)}J.JSC$9315_sanitizerTable=
new $S(J.JSC$9315_sanitizerTable.allowedElements,J.JSC$9315_sanitizerTable.elementPolicies,c,J.JSC$9315_sanitizerTable.globalAttributePolicies,J.JSC$9315_sanitizerTable.globallyAllowedAttributePrefixes)}c=new Set(J.JSC$9315_sanitizerTable.allowedGlobalAttributes);c.add("class");J.JSC$9315_sanitizerTable=new $S(J.JSC$9315_sanitizerTable.allowedElements,J.JSC$9315_sanitizerTable.elementPolicies,c,J.JSC$9315_sanitizerTable.globalAttributePolicies,J.JSC$9315_sanitizerTable.globallyAllowedAttributePrefixes);
_.FN(A,_.sOW(J.build(),U1D(H.text())));RCZ(C.value)},"OZ439c");
S={};return _.q("div",null,_.q("markdown-div",{class:_.eJ("ytwMarkdownDivHost",(S.ytwMarkdownDivDark=w,S.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var A;return((A=H.isSmallText)==null?void 0:A.call(H))||!1},S.ytwMarkdownDivHostWrapCodeBlocks=function(){var A;
return((A=H.wrapCodeBlocks)==null?void 0:A.call(H))||!1},S.ytwMarkdownDivHostEnableDefaultStyling=function(){var A;
return!((A=H.disableDefaultStyling)==null?0:A.call(H))},S)),
el:C}))},"Yd");
_.Wd.idomCompat=!0;var xCY=_.n(function(H){var C=H.imageData;var S=_.Jx(H.isInList,!1),w=function(){return S()?{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 _.q("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.q(_.T,{cond:function(){return C().image},
then:function(A){return _.q(_.Jg,{data:A,alt:function(){return w().alt},
contentMode:function(){return w().contentMode},
targetWidth:function(){return w().targetWidth},
targetHeight:function(){return w().targetHeight},
className:function(){return w().className}})}}),_.q("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.q("div",{class:_.eJ("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.q(_.uZ,{text:function(){return C().title}})),_.q(_.Vq,{each:function(){var A;
return(A=C().description)!=null?A:[]}},function(A){return _.q("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.q(ys,{content:A}))})))},"Zd"),HWP=_.n(function(H){var C=H.list;
var S=function(){var w;return(w=C().items)!=null?w:[]};
return _.q("div",{class:"ytwGenAiRichTextViewModelListContent"},_.q(_.T,{cond:function(){return C().title},
then:function(w){return _.q("div",{class:_.eJ("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.q(_.uZ,{text:w}))}}),_.q(_.T,{cond:function(){return C().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.q("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.q(_.Vq,{each:S},function(w){return _.q("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.q(ys,{content:w,isInList:!0}))}))}}),_.q(_.T,{cond:function(){return C().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.q("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.q(_.Vq,{each:S},function(w){return _.q("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.q(ys,{content:w,isInList:!0}))}))}}),_.q(_.T,{cond:function(){return C().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.q("div",{class:"ytwGenAiRichTextViewModelImageList"},_.q(_.Vq,{each:S},function(w){return _.q("div",{class:"ytwGenAiRichTextViewModelListItem"},_.q(ys,{content:w,isInList:!0}))}))}}))},"$d"),iW1=_.n(function(H){var C=H.table;
return _.q("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.q("thead",null,_.q("tr",null,_.q(_.Vq,{each:function(){var S,w;return(w=(S=C().header)==null?void 0:S.cells)!=null?w:[]}},function(S){return _.q("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.q(_.Vq,{each:function(){return S.contents}},function(w){return _.q(ys,{content:w})}))}))),_.q("tbody",null,_.q(_.Vq,{each:function(){var S;
return(S=C().rows)!=null?S:[]}},function(S){return _.q("tr",null,_.q(_.Vq,{each:function(){return S.cells}},function(w){return _.q("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.q(_.Vq,{each:function(){return w.contents}},function(A){return _.q(ys,{content:A})}))}))})))},"ae"),ys=_.n(function(H){var C=H.content;
var S=_.Jx(H.isInList,!1),w=function(){var A,J;return(J=(A=C().contentBlock)==null?void 0:A.contents)!=null?J:[]};
return _.q("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.q(_.T,{cond:function(){return C().text},
then:function(A){return _.q(_.uZ,{className:"ytwGenAiRichTextViewModelText",text:A})}}),_.q(_.T,{cond:function(){return C().image},
then:function(A){return _.q(xCY,{imageData:A,isInList:S})}}),_.q(_.T,{cond:function(){return C().list},
then:function(A){return _.q(HWP,{list:A})}}),_.q(_.T,{cond:function(){return C().contentBlock},
then:function(){return _.q("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.q(_.Vq,{each:w},function(A){return _.q(ys,{content:A,isInList:!1})}))}}),_.q(_.T,{cond:function(){return C().table},
then:function(A){return _.q(iW1,{table:A})}}))},"be"),CvY=_.n(function(H){var C={};
C=_.pn("ytwGenAiRichTextViewModelHost",(C.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.z9("search_overview_link_style")),C));return _.q("gen-ai-rich-text-view-model",{class:C},_.q(ys,{content:function(){return H.data().content}}))},"ce");_.S31=_.n(function(H){var C=H.data;var S=function(){var O;return((O=C().loadingUi)!=null?O:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},w=function(){return C().isLoading&&(S()==="UNSPECIFIED"||S()==="GHOST_CARD")},A=function(){return!C().isLoading},J=function(){return!!C().content&&!C().contents},c=function(){return!!C().contents},Y=function(){return!!C().nextQueryButtons},M=function(){return C().isLoading&&S()==="INVISIBLE"},m=function(){var O,d;
return(d=(O=C().headerIcon)==null?void 0:O.iconType)!=null?d:""},W=function(){var O;
return(O=C().content)!=null?O:""},y=function(){return!!C().sourcesSection},N,b=!((N=_.JA().resolve(_.AA(_.sU)))==null||!N()),u=_.EF(function(){var O=[],d=C().contents;
if(d)for(var p=0;p<d.length;p++){var k=_.e(d&&d[p],xcd);k&&O.push(k)}return O},void 0,"gcCsZb");
_.$T(function(){C().isLoading||_.DR("so_re",void 0,"search_overview_answer")});
return _.q("ytd-overview-answer-view-model",{class:function(){var O={};O=(O.ytdOverviewAnswerViewModelHost=!0,O.ytdOverviewAnswerViewModelDarkBackground=b&&!M(),O.ytdOverviewAnswerViewModelLightBackground=!b&&!M(),O);return _.pn(O)}},_.q(_.T,{cond:function(){return!M()},
then:function(){return _.q(_.F9,null,_.q("h2",null,_.q("div",{class:"ytdOverviewAnswerViewModelHeader"},_.q(_.T,{cond:m,then:function(O){return _.q("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.q(_.lm,{icon:O}))}}),_.q("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.q("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return C().headerText}),_.q("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.q(_.uZ,{text:function(){return C().headerSubtext}}))))),_.q(_.T,{cond:w,
then:function(){return _.q(I7E,null)}}),_.q(_.T,{cond:A,
then:function(){return _.q(_.F9,null,_.q(_.T,{cond:J,then:function(){return _.q("div",{class:"ytdOverviewAnswerViewModelText"},_.q(_.Wd,{text:W,isSmallText:!0}))}}),_.q(_.T,{cond:c,
then:function(){return _.q("div",{class:"ytdOverviewAnswerViewModelRichText"},_.q(_.Vq,{each:u},function(O){return _.q(CvY,{data:O})}))}}),_.q(_.T,{cond:Y,
then:function(){return _.q("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.q(_.V4,{data:function(){return C().nextQueryButtons}},{buttonViewModel:function(O){return _.q(_.rc,{data:O.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.TP}))}}),_.q("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.q("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.q(_.T,{cond:function(){return!!_.e(C().likeButtonViewModel,_.wH)&&!!_.e(C().dislikeButtonViewModel,_.jf)},
then:function(){return _.q("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.q(_.Mv,{data:function(){return _.e(C().likeButtonViewModel,_.wH)},
disableIconAnimation:!0}),_.q(_.zu,{data:function(){return _.e(C().dislikeButtonViewModel,_.jf)}}))}})),_.q(_.T,{cond:function(){var O;
return(O=C().sourcesSection)==null?void 0:O.headerText},
then:function(O){return _.q("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.q(_.uZ,{text:O}))}})),_.q(_.T,{cond:y,
then:function(){return _.q("div",{class:"ytdOverviewAnswerViewModelSources"},_.q(_.V4,{data:function(){var O;return(O=C().sourcesSection)==null?void 0:O.sourcesShelf}},{buttonViewModel:_.rc,
horizontalShelfViewModel:function(O){return _.q(_.TP,{data:O.data,includeMargin:!0,hasPeek:!0})}}))}}),_.q(_.T,{cond:function(){return C().disclaimerText},
then:function(){return _.q("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.q(_.uZ,{text:function(){return C().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"de");var srM=_.n(function(H){var C=_.FH(H,{}).data;return _.q("yt-shopping-content-line-item-view-model",{class:_.eJ("ytShoppingContentLineItemViewModelHost")},_.q(_.uZ,{text:function(){var S;return(S=C().text)==null?void 0:S.attributedString}}))},"ee");_.NA=_.n(function(H){H=_.FH(H,{});var C=H.data,S={};return _.q("yt-shopping-content-line-view-model",{class:_.eJ("ytShoppingContentLineViewModelHost",H.className,(S.ytShoppingContentLineViewModelTruncateText=function(){return!C().wrapContent},S)),
style:_.vb({"--shopping-content-line-gap":function(){return C().itemGap?C().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return C().lineHeight?C().lineHeight+"px":void 0}})},_.q(_.Vq,{each:function(){return(C().items||[]).map(function(w){return _.e(w,co7)}).filter(function(w){return!!w})}},function(w){return _.q(srM,{data:w})}))},"fe");var jrM=_.n(function(H){var C=H.data;return _.q("yt-shopping-description-item-view-model",{class:"ytShoppingDescriptionItemViewModelHost",style:function(){var S,w,A,J=((S=_.JA().resolve(_.AA(_.sU)))==null?0:S())?(w=C())==null?void 0:w.darkThemeBackgroundColor:(A=C())==null?void 0:A.lightThemeBackgroundColor;return"background-color: "+(J?_.aw(J):"")+";"},
el:_.Zl(_.Bt(function(){var S;return(S=C())==null?void 0:S.rendererContext}))},_.q(_.T,{cond:function(){return C().thumbnail},
then:function(S){return _.q(_.Jg,{data:S,width:48,height:48,alt:"",className:"ytShoppingDescriptionItemViewModelThumbnail"})}}),_.q("div",{class:"ytShoppingDescriptionItemViewModelText"},_.q(_.V4,{data:function(){return C().line1}},{shoppingContentLineViewModel:function(S){return _.q(_.NA,{data:S.data})}}),_.q(_.V4,{data:function(){return C().line2}},{shoppingContentLineViewModel:function(S){return _.q(_.NA,{data:S.data})}}),_.q(_.V4,{data:function(){return C().line3}},{shoppingContentLineViewModel:function(S){return _.q(_.NA,
{data:S.data})}})))},"ge");var w11=_.n(function(H){var C=H.data;var S=H.active;var w=_.sW("transcript-segment-view-model");_.d6(function(){var A,J,c,Y=((A=_.JA().resolve(_.AA(_.sU)))==null?0:A())?(J=C())==null?void 0:J.darkThemeColorPalette:(c=C())==null?void 0:c.lightThemeColorPalette;Y&&(Y.additiveBackground&&w.value.style.setProperty("--timestamp-active-background-color",_.aw(Y.additiveBackground)),Y.textSecondary&&w.value.style.setProperty("--timestamp-active-color",_.Iw(Y.textSecondary)))},"TnVCnb");
H={};return _.q("transcript-segment-view-model",{class:_.eJ("ytwTranscriptSegmentViewModelHost",(H.ytwTranscriptSegmentViewModelHostActive=S,H.ytwTranscriptSegmentViewModelHostModern=_.E("enable_timeline_view_modern_transcript")||_.E("enable_timeline_view_modern_transcript_fe"),H)),el:w},_.q(_.T,{cond:function(){var A;return(A=C())==null?void 0:A.timestamp},
then:function(A){var J={};return _.q(_.F9,null,_.q("div",{class:_.eJ("ytwTranscriptSegmentViewModelTimestamp",(J.ytwTranscriptSegmentViewModelTimestampActive=S,J)),"aria-hidden":!0},A),_.q("div",{class:"ytwTranscriptSegmentViewModelTimestampA11yLabel"},function(){var c=A().split(":").map(Number),Y=_.Z(c.reverse());c=Y.next().value;var M=Y.next().value;Y=Y.next().value;return _.r$i({hours:Y,minutes:M,seconds:c})}))}}),_.q(_.uZ,{text:function(){var A,J,c;
return(c=(A=C())==null?void 0:A.attributedText)!=null?c:{content:(J=C())==null?void 0:J.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"he");var A87=_.n(function(H){var C=H.data;return _.q("div",{class:"videoAttributesSectionViewModelHeader"},_.q("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.q("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return C().headerTitle}),_.q(_.T,{cond:function(){return C().headerInfoButton},
then:function(){return _.q(_.V4,{data:function(){return C().headerInfoButton}},{buttonViewModel:function(S){return _.q(_.rc,{data:S.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.q(_.T,{cond:function(){return C().headerSubtitle},
then:function(){return _.q("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return C().headerSubtitle})}}))},"ie"),J8b=_.n(function(H){function C(O){return Math.max(Math.min(O,0),m()-Y())}
var S=H.data;var w;H=_.sW("div",function(O){var d=function(){W(O.clientWidth)};
d();window.ResizeObserver&&(w=new ResizeObserver(d),w.observe(O))});
var A=_.sW("div",function(O){M(O.scrollWidth)}),J=_.Z(_.mB(0,void 0,"C3XQAe")),c=J.next().value;
J=J.next().value;var Y=c,M=J;J=_.Z(_.mB(0,void 0,"db7y3"));c=J.next().value;J=J.next().value;var m=c,W=J;c=_.Z(_.mB(0,void 0,"RchC7"));var y=c.next().value,N=c.next().value;_.PN(function(){var O;(O=w)==null||O.disconnect()});
var b=function(){N(C(y()+m()))},u=function(){N(C(y()-m()))};
return _.q("yt-video-attributes-section-view-model",null,_.q("div",{class:"videoAttributesSectionViewModelHost"},_.q(_.T,{cond:function(){return S().headerTitle},
then:function(){return _.q(A87,{data:S})}}),_.q("div",{class:_.eJ("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:H},_.q("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.vb({transform:function(){var O=y();_.rh("HTML_DIR")==="rtl"&&(O*=-1);return"translateX("+O+"px)"}}),
el:A},_.q(_.V4,{data:function(){return S().videoAttributeViewModels}},{videoAttributeViewModel:tb7}))),_.q(_.V4,{data:function(){return S().footerButton}},{buttonViewModel:function(O){return _.q(_.rc,{data:O.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.q(_.T,{cond:function(){return y()<0&&S().previousButton},
then:function(){return _.q("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.q(_.V4,{data:function(){return S().previousButton}},{buttonViewModel:function(O){return _.q(_.rc,{data:O.data,
onClick:b})}}))}}),_.q(_.T,{cond:function(){return y()>m()-Y()&&S().nextButton},
then:function(){return _.q("div",{class:"videoAttributesSectionViewModelRightArrow"},_.q(_.V4,{data:function(){return S().nextButton}},{buttonViewModel:function(O){return _.q(_.rc,{data:O.data,
onClick:u})}}))}})))},"je");
J8b.idomCompat=!0;var Fpd=_.n(function(H){var C=H.data;var S=H.active;var w={},A={};return _.q("timeline-item-view-model",{class:_.eJ("ytwTimelineItemViewModelHost",(w.ytwTimelineItemViewModelHostChapterChild=H.chapterChild,w.ytwTimelineItemViewModelModern=_.E("enable_timeline_view_modern_transcript")||_.E("enable_timeline_view_modern_transcript_fe"),w))},_.q("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.q("div",{class:_.eJ("ytwTimelineItemViewModelTimestamp",(A.ytwTimelineItemViewModelTimestampActive=
S,A))},function(){return C().timestamp})),_.q("div",{class:"ytwTimelineItemViewModelContentItems"},_.q(_.V4,{data:function(){return C().contentItems}},{transcriptSegmentViewModel:function(J){return _.q(w11,{data:J.data,
active:S})},
videoAttributesSectionViewModel:J8b})))},"ke");var ZW1=_.n(function(H){var C=H.data;H={};return _.q("timeline-chapter-view-model",{class:_.eJ("ytwTimelineChapterViewModelHost")},_.q("div",{class:_.eJ("ytwTimelineChapterViewModelTitle",(H.ytwTimelineChapterViewModelModern=_.E("enable_timeline_view_modern_transcript")||_.E("enable_timeline_view_modern_transcript_fe"),H))},function(){return C().title}),_.q(_.V4,{data:function(){return C().contents}},{timelineItemViewModel:function(S){return _.q(Fpd,{data:S.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(S){return _.q(J8b,{data:S.data})}}))},"le");var c81=_.n(function(H){var C=H.data;var S=_.sW("macro-markers-panel-item-view-model"),w=_.fn(_.cH7,function(){var J;return(J=C().markersEngagementPanelSyncEntityKey)!=null?J:""}),A=function(){var J;
return((J=w())==null?void 0:J.activeItemIndex)===C().index};
H=_.um(function(J){var c,Y,M,m,W;return _.z(function(y){if(y.nextAddress==1)return J.stopPropagation(),_.hB(_.ki(J),S.value,["A".toString(),"BUTTON".toString()])?y.return():(c=_.L7(C().onTap))?y.yield(_.Np(),2):y.return();Y=y.yieldResult;m=(M=_.e(c,_.sX))==null?void 0:M.startTimeSeconds;m===void 0||(W=Y)!=null&&W.seekTo(m,!0);_.oT(y)})});
return _.q("macro-markers-panel-item-view-model",{class:_.eJ("ytwMacroMarkersPanelItemViewModelHost",{"is-active":A}),el:S,"on:click":H,tabindex:0,role:"button"},_.q(_.V4,{data:function(){var J;return(J=C())==null?void 0:J.item}},{timelineChapterViewModel:function(J){return _.q(ZW1,{data:J.data,
active:A})},
timelineItemViewModel:function(J){return _.q(Fpd,{data:J.data,active:A})},
videoAttributeViewModel:tb7,shoppingDescriptionItemViewModel:jrM}))},"me");
c81.idomCompat=!0;_.qs(c81,"macro-markers-panel-item-view-model",{props:{data:_.GH}});_.qs(J8b,"yt-video-attributes-section-view-model",{props:{data:_.GH}});var Y3V=_.n(function(H){var C=function(){var S,w,A;return(A=(S=H.data().leadingLogoAccessibility)==null?void 0:(w=S.accessibilityData)==null?void 0:w.label)!=null?A:""};
return _.q("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.q(_.T,{cond:function(){return H.data().leadingLogo},
then:function(S){return _.q(_.Jg,{className:"ytwFantasySectionHeaderViewModelLogo",data:S,alt:C})}}),_.q("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.q(_.uZ,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return H.data().title}}),_.q(_.uZ,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return H.data().subtitle}})),_.q(_.V4,{data:function(){return H.data().trailingButton}},{buttonViewModel:function(S){return _.q(_.rc,{data:S.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"ne");var zmU=_.n(function(H){var C={};C=_.eJ("ytwFantasyTeamViewModelHost",(C.ytwFantasyTeamViewModelCompact=function(){var A;return!((A=H.compact)==null||!A.call(H))},C.ytwFantasyTeamViewModelUser=function(){return H.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},C.ytwFantasyTeamViewModelOpponent=function(){return H.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},C));
var S=function(){var A,J,c;return(c=(A=H.data().teamLogoAccessibility)==null?void 0:(J=A.accessibilityData)==null?void 0:J.label)!=null?c:""},w=_.fn(MND,function(){return H.data().teamEntityKey});
return _.q("ytw-fantasy-team-view-model",{class:C},_.q(_.T,{cond:function(){return H.data().teamLogo},
then:function(A){return _.q(_.Jg,{className:"ytwFantasyTeamViewModelLogo",data:A,alt:S})}}),_.q("div",{class:"ytwFantasyTeamViewModelMetadata"},_.q("div",{class:"ytwFantasyTeamViewModelHeader"},_.q(_.uZ,{className:"ytwFantasyTeamViewModelScore",
text:function(){var A;return(A=w())==null?void 0:A.score}}),_.q(_.lm,{icon:function(){var A;
return(A=w())==null?void 0:A.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.q(_.uZ,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var A;return(A=w())==null?void 0:A.projectedScore}})),_.q(_.uZ,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return H.data().primaryText}}),_.q(_.uZ,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return H.data().secondaryText}}),_.q(_.uZ,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return H.data().tertiaryText}})),_.q(_.uZ,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var A;return(A=w())==null?void 0:A.score}}))},"oe");_.qs(_.n(function(H){return _.q("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.q("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.q(_.V4,{data:function(){return H.data().summaryHeader}},{fantasySectionHeaderViewModel:Y3V})),_.q(_.V4,{data:function(){return H.data().userTeam}},{fantasyTeamViewModel:zmU}),_.q(_.V4,{data:function(){return H.data().opponentTeam}},{fantasyTeamViewModel:zmU}))},"pe"),"fantasy-league-summary-view-model",{props:{data:_.GH}});var MFY=_.n(function(H){var C=_.FH(H,{shape:{},useCustomTabRenderable:!1}),S=C.shape;C=C.useCustomTabRenderable;var w=H.customTabRenderable,A=function(){return S().disabled},J=function(){return S().selected},c=function(){return S().title},Y=function(){return S().icon},M=_.sW("yt-tab-shape");
H=_.um(function(y){var N;if(!A()&&((N=S().aTagConfig)==null?0:N.onclick))S().aTagConfig.onclick(y);return!1});
var m=_.um(function(y){if(y.key==="Enter"||y.key==="ArrowUp"||y.key==="ArrowDown")y.preventDefault(),M.value.click();return!1}),W={};
return _.q("yt-tab-shape",{class:_.eJ("yt-tab-shape",function(){return S().className},(W["yt-tab-shape__tab--last-tab"]=function(){return S().isLastTab},W["yt-tab-shape--host-disabled"]=A,W["yt-tab-shape--host-clickable"]=!w,W)),
role:w?void 0:"tab","aria-selected":J!=null?J:!1,"aria-disabled":A,tabindex:w?void 0:0,"on:click":H,"on:keydown":m,el:M,"tab-identifier":function(){return S().identifier},
"tab-title":c},_.q(_.T,{cond:C,then:function(){return w()},
else:function(){var y={},N={};return _.q(_.F9,null,_.q("div",{class:_.eJ("yt-tab-shape__tab",(y["yt-tab-shape__tab--tab-selected"]=J,y))},_.q(_.T,{cond:Y,then:function(b){return _.q(_.lm,{className:"yt-tab-shape__tab-icon",icon:function(){return b().iconType}})}}),c),_.q("div",{class:_.eJ("yt-tab-shape__tab-bar",(N["yt-tab-shape__tab-bar--tab-bar-selected"]=J,N))}))}}))},"qe");
MFY.idomCompat={callbacks:{customTabRenderable:!0}};_.TFU=_.n(function(H){var C=H.shape;H=_.Z(_.mB(48,void 0,"rCewuf"));var S=H.next().value,w=H.next().value;H=_.Z(_.mB(0,void 0,"aUUTWe"));var A=H.next().value,J=H.next().value,c=function(){return C().tabs},Y=_.sW("yt-tab-group-shape"),M=function(){var m,W;
return(W=(m=c())==null?void 0:m.findIndex(function(y){return y.selected}))!=null?W:-1};
_.$T(function(){var m=Y.value.querySelectorAll("yt-tab-shape"),W=M()>-1?m[M()]:void 0;_.rT.addJob(function(){w((W==null?void 0:W.getBoundingClientRect().width)||0)},8,0)});
_.d6(function(){var m=M(),W=_.rT.addJob(function(){var y,N=((y=Y.value)==null?void 0:y.querySelectorAll("yt-tab-shape"))||[],b;w(((b=m>-1?N[m]:void 0)==null?void 0:b.getBoundingClientRect().width)||0);for(b=y=0;b<m;b++)y+=N[b].offsetWidth+24;_.rh("HTML_DIR")==="rtl"&&(y=-y);J(y)},8,0);
_.PN(function(){_.rT.cancelJob(W)})},"DAb5Qb");
H={};return _.q("yt-tab-group-shape",{class:_.eJ("tabGroupShapeHost",(H.tabGroupShapeOverflowHidden=function(){return C().isOverflowHidden},H)),
el:Y},_.q(_.T,{cond:c,then:function(m){return _.q(_.F9,null,_.q("div",{class:"tabGroupShapeTabs",role:"tablist"},_.q(_.Vq,{each:m},function(W,y){return _.q(MFY,{shape:function(){return Object.assign({},W,{isLastTab:y()===m().length-1})},
customTabRenderable:W.customTabRenderable,useCustomTabRenderable:!!W.customTabRenderable})})),_.q(q37,{width:S,
sliderOffset:A}))}}))},"re");
_.TFU.idomCompat=!0;var q37=_.n(function(H){var C=_.Jx(H.sliderOffset,0),S=H.width;return _.q("div",{class:"tabGroupShapeSlider",style:_.vb({width:function(){return S()+"px"},
transform:function(){return"translateX("+C()+"px)"}})})},"se");var mYn=_.n(function(H){var C=function(){var J,c,Y;return(Y=(J=H.data().playerLogoAccessibility)==null?void 0:(c=J.accessibilityData)==null?void 0:c.label)!=null?Y:""},S=_.fn(qzW,function(){return H.data().playerEntityKey}),w={};
w=_.eJ("ytwFantasyPlayerViewModelHost",(w.ytwFantasyPlayerViewModelPlaying=function(){var J;return!((J=S())==null||!J.isPlayerPlaying)},w.ytwFantasyPlayerViewModelOnField=function(){var J;
return((J=S())==null?void 0:J.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},w.ytwFantasyPlayerViewModelRedZone=function(){var J;
return((J=S())==null?void 0:J.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},w));
var A=function(){var J,c,Y,M=((J=_.JA().resolve(_.AA(_.sU)))==null?0:J())?(c=H.data().playerLogoBackgroundColor)==null?void 0:c.darkTheme:(Y=H.data().playerLogoBackgroundColor)==null?void 0:Y.lightTheme;return M===void 0?"":_.aw(M)};
return _.q("ytw-fantasy-player-view-model",{class:w},_.q(_.T,{cond:function(){return H.data().playerLogo},
then:function(J){return _.q("div",{class:"ytwFantasyPlayerViewModelLogo"},_.q("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.q(_.Jg,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.vb({"background-color":A}),data:J,alt:C})),_.q("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.q(_.lm,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.q("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.q("div",{class:"ytwFantasyPlayerViewModelHeader"},_.q(_.uZ,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var J;return(J=H.data())==null?void 0:J.playerNameText}}),_.q(_.uZ,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var J;return(J=H.data())==null?void 0:J.playerDescriptionText}})),_.q("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.q(_.uZ,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var J;return(J=S())==null?void 0:J.gamePeriodText}}),_.q(_.uZ,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var J;return(J=H.data())==null?void 0:J.opponentTeamText}}),_.q(_.uZ,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var J;return(J=S())==null?void 0:J.gameStatusText}}),_.q(_.uZ,{className:_.eJ("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var J;return(J=S())==null?void 0:J.playerStatusText}})),_.q("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.q(_.uZ,{text:function(){var J;
return(J=S())==null?void 0:J.playerStatsText}}))),_.q(_.uZ,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var J;return(J=S())==null?void 0:J.fantasyScore}}))},"te");var WpY=_.n(function(H){return _.q("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.q(_.T,{cond:function(){return H.data().players},
then:function(C){return _.q(_.V4,{data:C},{fantasyPlayerViewModel:mYn})}}))},"ue");var y8n=_.n(function(H){var C=_.Z(_.fu(function(){var A;return(A=H.data().selectedTabIdentifierKey)!=null?A:""})),S=C.next().value,w=C.next().value;
_.Ph(function(){var A;(A=H.setSelectedTabSignal)==null||A.call(H,S)});
return _.q("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.q("div",{class:"ytTabbedViewModelTabGroup"},_.q(_.TFU,{shape:function(){var A=H.data(),J=[],c={tabs:J};if(!A.tabs)return c;A=_.Z(A.tabs);for(var Y=A.next(),M={};!Y.done;M={tabViewModel:void 0},Y=A.next())if(M.tabViewModel=_.e(Y.value,M3Y),M.tabViewModel){var m=Y=void 0;J.push({aTagConfig:{onclick:function(W){return function(){var y;w((y=W.tabViewModel.tabIdentifier)!=null?y:"")}}(M)},
identifier:M.tabViewModel.tabIdentifier,selected:S()===M.tabViewModel.tabIdentifier,title:(m=(Y=M.tabViewModel.title)==null?void 0:Y.content)!=null?m:""})}return c}})),_.q(_.V4,{data:function(){var A,J=_.Z((A=H.data().tabs)!=null?A:[]);
for(A=J.next();!A.done;A=J.next())if((A=_.e(A.value,M3Y))&&A.tabIdentifier===S())return A.content}},{fantasyRosterViewModel:WpY}))},"ve");_.qs(_.n(function(H){var C=_.Z(a7U()),S=C.next().value,w=C.next().value;return _.q("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.q(_.uZ,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return H.data().title}}),_.q(_.T,{cond:function(){return H.data().tabbedViewModel},
then:function(A){return _.q(_.V4,{data:A},{tabbedViewModel:function(J){return _.q(y8n,{data:J.data,setSelectedTabSignal:w})}})}}),_.q(_.T,{cond:function(){var A,J=(A=_.e(H.data().tabbedViewModel,qY1))==null?void 0:A.tabs;
A=_.e(J==null?void 0:J[0],M3Y);J=_.e(J==null?void 0:J[1],M3Y);var c=A==null?void 0:A.tabIdentifier;if(S()===c){var Y,M;if(!((Y=_.e(A==null?void 0:A.content,QSY))==null?0:(M=Y.players)==null?0:M.length))return H.data().noUserTeamPlayersText}else{var m,W;if(!((m=_.e(J==null?void 0:J.content,QSY))==null?0:(W=m.players)==null?0:W.length))return H.data().noOpponentTeamPlayersText}},
then:function(A){return _.q(_.uZ,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:A})}}))},"we"),"ytw-fantasy-matchup-view-model",{props:{data:_.GH}});_.qs(_.n(function(H){return _.q("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.q(_.uZ,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return H.data().title}}),_.q(_.T,{cond:function(){return H.data().matchupTeamPairs},
then:function(C){return _.q(_.Vq,{each:C,keyBy:"INDEX"},function(S){return _.q("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.q(_.V4,{data:function(){return[S().firstTeam,S().secondTeam]}},{fantasyTeamViewModel:function(w){return _.q(zmU,{data:w.data,
compact:!0})}}))})}}))},"xe"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.GH}});_.qs(_.n(function(H){var C=function(){var A,J,c;return(c=(A=H.data().userLogoAccessibility)==null?void 0:(J=A.accessibilityData)==null?void 0:J.label)!=null?c:""},S=function(){var A,J,c;
return(c=(A=H.data().opponentLogoAccessibility)==null?void 0:(J=A.accessibilityData)==null?void 0:J.label)!=null?c:""},w=_.fn(zfV,function(){return H.data().entityKey});
return _.q("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.q("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.q(_.T,{cond:function(){return H.data().userLogo},
then:function(A){return _.q(_.Jg,{className:"ytwFantasyWinProbabilityViewModelLogo",data:A,alt:C})}}),_.q("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.q(_.uZ,{text:function(){return H.data().title}})),_.q(_.T,{cond:function(){return H.data().opponentLogo},
then:function(A){return _.q(_.Jg,{className:"ytwFantasyWinProbabilityViewModelLogo",data:A,alt:S})}})),_.q("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.q("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.q(_.uZ,{text:function(){var A;
return(A=w())==null?void 0:A.userWinNumberLabel}})),_.q("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.q("div",{class:_.eJ("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.vb({flex:function(){var A,J;return(J=(A=w())==null?void 0:A.userWinNumber)!=null?J:50}})}),_.q("div",{class:_.eJ("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.vb({flex:function(){var A,J;return(J=(A=w())==null?void 0:A.opponentWinNumber)!=null?J:50}})})),_.q("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.q(_.uZ,{text:function(){var A;
return(A=w())==null?void 0:A.opponentWinNumberLabel}}))))},"ye"),"fantasy-win-probability-view-model",{props:{data:_.GH}});var NF7={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},bW7=_.n(function(H){return _.q(_.V4,{data:H.button},{buttonViewModel:function(C){return _.q(_.rc,{data:C.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"ze"),EXd=_.n(function(H){return _.q("ytd-backstage-locked-post-view-model",{class:_.eJ("ytdBackstageLockedPostViewModelHost",H.className)},_.q("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.q("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.q(_.V4,
{data:function(){return H.data().authorAvatar}},{decoratedAvatarViewModel:_.cG})),_.q("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.q("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.q(_.uZ,{text:function(){return H.data().authorText}})),_.q("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.q(_.uZ,{text:function(){return H.data().publishedTimeText}}),_.q(_.V4,{data:function(){return H.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(C){return _.q(fed,
{data:C.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.q("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.q(_.uZ,{text:function(){return H.data().contentText}})),_.q(_.X9,null,_.q(_.o6,{when:function(){return H.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.q("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.q(_.Jg,{data:NF7,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.q(_.uZ,{text:function(){return H.data().lockedText}}))}),_.q(_.o6,{when:function(){return H.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.q("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.q("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.q(_.Jg,{data:NF7,
alt:""})),_.q(_.uZ,{text:function(){return H.data().lockedText}}))})),_.q("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.q(bW7,{button:function(){return H.data().likeButton}}),_.q("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return H.data().voteCountA11y}},_.q(_.uZ,{text:function(){return H.data().voteCount}})),_.q(bW7,{button:function(){return H.data().dislikeButton}}),_.q(bW7,{button:function(){return H.data().commentButton}}),_.q("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return H.data().commentCountA11y}},_.q(_.uZ,{text:function(){return H.data().commentCount}}))))},"Ae");
EXd.idomCompat=!0;_.qs(EXd,"ytd-backstage-locked-post-view-model",{props:{data:_.GH,className:_.GH}});_.hg("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var b6=function(){var H=_.X.apply(this,arguments)||this;H.darkerPanels=_.E("web_watch_darker_panels");H.commentsHidePanelButton=!1;H.isWatchGrid=!1;H.continuationShowButton=!1;H.isSearch=!1;H.isConstrainedList=!1;H.isWatch=!1;H.eligibleToSwitchToGrid=!1;H.useBigThumbs=!1;H.notSticky=!1;H.epRestyle=!1;H.isCarouselInFeed=!0;H.topSpacingZero=!1;H.continuationIsInitialLoad=!0;H.enableSqueezebackPanels=_.E("web_shorts_enable_squeezeback_panels");H.enableAnchoredPanel=_.E("desktop_shorts_v2_anchored_panel");
H.mastheadHeight=0;H.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};H.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return H};
_.G(b6,_.X);_.F=b6.prototype;_.F.updateLockupContainerTypes=function(H){if(this.eligibleToSwitchToGrid){var C;(C=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||C.forEach(function(S){S.containerType=H})}};
_.F.getItemsPath=function(){return"data.contents"};
_.F.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.F.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupContainerType:"[[lockupContainerType]]"}},channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",
commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},commentFilterContextViewModel:{component:"yt-comment-filter-context-view-model"},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",
compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",
faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",
gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",
hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",linearLayoutViewModel:"yt-linear-layout-view-model",
liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",
notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",
playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",
radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",
resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",
properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",
subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},
webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",
errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",
videoOverviewViewModel:"yt-video-overview-view-model",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},
accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},
reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.E("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.E("kevlar_low_priority_continuation")}}};
_.F.created=function(){};
_.F.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.F.handleIntersect=function(H){this.notSticky=H[0].intersectionRatio===1};
_.F.attached=function(){var H=this,C=_.E("web_item_section_sticky_header_use_scroll_as_fallback");C||document.addEventListener("scroll",_.uA(this,this.updateHeaderState));var S;this.mastheadHeight=((S=document.querySelector("ytd-masthead"))==null?void 0:S.clientHeight)||0;window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver(function(w){H.handleIntersect(w)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement)):C&&document.addEventListener("scroll",_.uA(this,this.updateHeaderState));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){H.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.F.detached=function(){document.removeEventListener("scroll",_.uA(this,this.updateHeaderState));var H;(H=this.intersectionObserver)==null||H.disconnect();var C;(C=this.resizeObserver)==null||C.disconnect()};
_.F.updated=function(H){H.has("data")&&this.updateHeaderState()};
_.F.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(XBn(!this.notSticky))};
_.F.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var H=_.mY(this.hostElement).querySelector("ytd-comments-header-renderer");H&&(H.hidePanelButton=this.commentsHidePanelButton)}};
_.F.onRetrieveLocation=function(H,C){this.containsComments()&&(this.firstCommentsLoaded=C.hasComments=!0)};
_.F.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.F.onLoadReloadContinuation=function(H,C){var S=this;H.stopPropagation();this.isReloading=!0;_.M3(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(w){var A=_.JA().resolve(_.tG);w=C(w);A.postData(w).then(function(J){S.onReloadContinuationData(J)})}})};
_.F.onReloadContinuationData=function(H){if(H=this.get("response.continuationContents.itemSectionContinuation",H)||this.get("response.contents.itemSectionRenderer",H)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",H)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",H))this.set("data.contents",H.contents||H.results),H.header&&this.set("data.header",H.header),this.set("data.continuations",
H.continuations||[]);this.isReloading=!1};
_.F.computeContentsClass=function(H){return H?"reloading":""};
_.F.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.F.computeSectionIdentifier=function(H){return H==null?void 0:H.sectionIdentifier};
_.F.computeFitContainer=function(H){return(H==null?void 0:H.sectionIdentifier)==="youchat-item-section"};
_.F.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.E("kevlar_disable_comments_auto_load")};
_.F.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.F.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.F.computeHasDestinationShelfRenderer=function(H){var C,S;return!!(H==null?0:(C=H.contents)==null?0:(S=C[0])==null?0:S.destinationShelfRenderer)};
_.F.computeHasSectionGroupViewModel=function(H){var C,S;return!!(H==null?0:(C=H.contents)==null?0:(S=C[0])==null?0:S.sectionGroupViewModel)};
_.F.computeHasQrCodeRenderer=function(H){var C,S;return!!(H==null?0:(C=H.contents)==null?0:(S=C[0])==null?0:S.qrCodeRenderer)};
_.F.computeStaticCommentsHeader=function(H){return H&&this.containsComments()};
_.F.computeEpRestyle=function(H){return _.E("web_ep_restyling")&&H&&this.containsComments()};
_.F.computeIsContinuationCommentSection=function(H){return(H==null?void 0:H.targetId)==="shorts-engagement-panel-comments-section"||(H==null?void 0:H.targetId)==="comments-section"||(H==null?void 0:H.targetId)==="engagement-panel-comments-section"};
_.F.computeSuppressPaddingDisclaimer=function(){var H,C,S,w;return!!((H=this.data)==null?0:(C=H.contents)==null?0:(S=C[0])==null?0:(w=S.productListHeaderRenderer)==null?0:w.suppressPaddingDisclaimer)};
_.F.computeHeaderStyle=function(H){switch(H==null?void 0:H.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.F.dataChanged=function(){this.firstCommentsLoaded=!1};
_.F.observeDataContentsLength=function(){var H,C;((H=this.data)==null?0:(C=H.contents)==null?0:C.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.F.onYtDismissibleItemDismissedChange=function(H){this._setItemDismissed(H.type==="yt-dismissible-item-dismissed")};
_.F.triggerContinuations=function(){for(var H=_.mY(this.hostElement).querySelector("#continuations").children,C=0;C<H.length;C++)H[C].trigger()};
_.F.triggerInitialContinuations=function(){for(var H=_.mY(this.hostElement).querySelector("#continuations").children,C=0;C<H.length;C++)H[C].triggerIfNotPreviouslyTriggered()};
_.F.handleYtItemSectionContinuation=function(H,C){var S;C&&((S=this.data)==null?void 0:S.sectionIdentifier)!==C||(this.set("data.continuations",[H]),this.triggerContinuations())};
_.F.handleYtItemSectionReplace=function(H,C){var S;C&&((S=this.data)==null?void 0:S.sectionIdentifier)!==C||(this.set("data.contents",H),this.set("data.continuations",[]))};
_.F.computeUseHeightHack=function(H){return H&&!_.E("kevlar_disable_height_hack")};
_.F.computeTopSpacingZero=function(H){return H};
_.F.continuationShowButtonChanged=function(){var H=_.mY(this.hostElement).querySelector("ytd-continuation-item-renderer");H&&(H.showButton=this.continuationShowButton)};
_.F.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uQ("data-changed",this.data))};
_.JJ.Object.defineProperties(b6.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.E("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
hasHeader:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.header)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.E("web_fix_sticky_playlist_header")}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var H,C,S;return!!((H=this.data)==null?0:(C=H.contents)==null?0:(S=C[0])==null?0:S.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var H,C,S,w,A,J,c;return!!((H=this.data)==null?0:(C=H.contents)==null?0:(S=C[0])==null?0:(w=S.shelfRenderer)==null?0:(A=w.content)==null?0:(J=A.gridRenderer)==null?0:(c=J.targetId)==null?0:c.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var H,C,S;return!!((H=this.data)==null?0:(C=H.contents)==null?0:(S=C[0])==null?0:S.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var H,C,S;return!!((H=this.data)==null?0:(C=H.contents)==null?0:(S=C[0])==null?0:S.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.z9("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.E("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.E("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
b6.prototype.dataChangedForBinding=b6.prototype.dataChangedForBinding;b6.prototype.continuationShowButtonChanged=b6.prototype.continuationShowButtonChanged;b6.prototype.onYtDismissibleItemDismissedChange=b6.prototype.onYtDismissibleItemDismissedChange;b6.prototype.observeDataContentsLength=b6.prototype.observeDataContentsLength;b6.prototype.dataChanged=b6.prototype.dataChanged;b6.prototype.onServiceRequestCompleted=b6.prototype.onServiceRequestCompleted;b6.prototype.onLoadReloadContinuation=b6.prototype.onLoadReloadContinuation;
b6.prototype.onRetrieveLocation=b6.prototype.onRetrieveLocation;b6.prototype.commentsHidePanelButtonChanged=b6.prototype.commentsHidePanelButtonChanged;b6.prototype.dispatchChipBarIsSticky=b6.prototype.dispatchChipBarIsSticky;b6.prototype.updateLockupContainerTypes=b6.prototype.updateLockupContainerTypes;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],b6.prototype,"ytActionHandlerBehavior",void 0);
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],b6.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],b6.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.$o.YtLazyListBehavior),_.K("design:type",Object)],b6.prototype,"ytLazyListBehavior",void 0);_.D([_.v(_.eu.YtNextContinuationBehavior),_.K("design:type",Object)],b6.prototype,"ytNextContinuationBehavior",void 0);
_.D([_.v(_.EH),_.K("design:type",Object)],b6.prototype,"ytContinuationHandlerBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],b6.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],b6.prototype,"ytdReduxBehavior",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],b6.prototype,"darkerPanels",void 0);_.D([_.V(),_.K("design:type",Object)],b6.prototype,"data",void 0);
_.D([_.V(),_.K("design:type",Boolean)],b6.prototype,"engagementPanel",void 0);_.D([_.V(),_.K("design:type",Object)],b6.prototype,"commentsHidePanelButton",void 0);_.D([_.V(),_.K("design:type",Object)],b6.prototype,"isWatchGrid",void 0);_.D([_.V(),_.K("design:type",Object)],b6.prototype,"continuationShowButton",void 0);_.D([_.V({computed:"computeIsContinuationCommentSection(data)"}),_.K("design:type",Boolean)],b6.prototype,"continuationIsCommentsSection",void 0);
_.D([_.V({value:!0}),_.K("design:type",Boolean)],b6.prototype,"autoFill",void 0);_.D([_.V(),_.K("design:type",Boolean)],b6.prototype,"continuationDisablePrescanVisibility",void 0);_.D([_.V(),_.K("design:type",Boolean)],b6.prototype,"isReloading",void 0);_.D([_.V(),_.K("design:type",Object)],b6.prototype,"isSearch",void 0);_.D([_.V(),_.K("design:type",Object)],b6.prototype,"isConstrainedList",void 0);_.D([_.V(),_.K("design:type",Object)],b6.prototype,"isWatch",void 0);
_.D([_.V(),_.K("design:type",Object)],b6.prototype,"eligibleToSwitchToGrid",void 0);_.D([_.V(),_.K("design:type",Object)],b6.prototype,"useBigThumbs",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],b6.prototype,"notSticky",void 0);_.D([_.V({selector:_.tg}),_.K("design:type",Object)],b6.prototype,"isGridViewEnabled",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.K("design:type",Object)],b6.prototype,"epRestyle",void 0);_.D([_.l("isWatch"),_.V({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],b6.prototype,"hideShortsShelfHeader",null);_.D([_.l("isSearch","isWatch"),_.K("design:type",String),_.K("design:paramtypes",[])],b6.prototype,"thumbnailWidth",null);
_.D([_.l("isSearch","containerWidth"),_.K("design:type",Object),_.K("design:paramtypes",[])],b6.prototype,"thumbnailTargetWidth",null);_.D([_.l("isSearch","isWatch"),_.K("design:type",String),_.K("design:paramtypes",[])],b6.prototype,"sizing",null);_.D([_.l("isWatch","isGridViewEnabled","useBigThumbs","data"),_.V({reflectToAttribute:!0}),_.K("design:type",Number),_.K("design:paramtypes",[])],b6.prototype,"lockupContainerType",null);
_.D([_.l("data"),_.V({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],b6.prototype,"hasHeader",null);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],b6.prototype,"expFixPlaylistHeader",null);_.D([_.fx("lockupContainerType","data"),_.K("design:type",Function),_.K("design:paramtypes",[Number]),_.K("design:returntype")],b6.prototype,"updateLockupContainerTypes",null);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",String)],b6.prototype,"pageSubtype",void 0);_.D([_.V({computed:"computeContainerWidth()"}),_.K("design:type",Number)],b6.prototype,"containerWidth",void 0);_.D([_.V(),_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],b6.prototype,"isPlaylist",null);_.D([_.V(),_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],b6.prototype,"isClipList",null);_.D([_.V(),_.K("design:type",Object)],b6.prototype,"isCarouselInFeed",void 0);
_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],b6.prototype,"isPlaylistVideoContainer",null);_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],b6.prototype,"isSearchFrictionPage",null);_.D([_.V({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.K("design:type",Boolean)],b6.prototype,"useHeightHack",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.K("design:type",Object)],b6.prototype,"topSpacingZero",void 0);_.D([_.V({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.K("design:type",Boolean)],b6.prototype,"showButton",void 0);_.D([_.V(),_.K("design:type",Boolean)],b6.prototype,"firstCommentsLoaded",void 0);_.D([_.V(),_.K("design:type",Object)],b6.prototype,"continuationIsInitialLoad",void 0);
_.D([_.V({reflectToAttribute:!0,readOnly:!0}),_.K("design:type",Boolean)],b6.prototype,"itemDismissed",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.K("design:type",String)],b6.prototype,"sectionIdentifier",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.K("design:type",String)],b6.prototype,"fitContainer",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.K("design:type",Boolean)],b6.prototype,"hasDestinationShelfRenderer",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.K("design:type",Boolean)],b6.prototype,"staticCommentsHeader",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],b6.prototype,"enableSqueezebackPanels",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],b6.prototype,"enableAnchoredPanel",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.K("design:type",Boolean)],b6.prototype,"hasSectionGroupViewModel",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.K("design:type",Boolean)],b6.prototype,"hasQrCodeRenderer",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.K("design:type",Boolean)],b6.prototype,"suppressDisclaimerSeparator",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.K("design:type",String)],b6.prototype,"headerStyle",void 0);_.D([_.l("isSearch"),_.K("design:type",Object),_.K("design:paramtypes",[])],b6.prototype,"lockupExperiments",null);
_.D([_.l("isSearch"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],b6.prototype,"typographyBump",null);_.D([_.lA("#header"),_.K("design:type",HTMLElement)],b6.prototype,"header",void 0);_.D([_.fx("notSticky"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],b6.prototype,"dispatchChipBarIsSticky",null);
_.D([_.fx("commentsHidePanelButton"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],b6.prototype,"commentsHidePanelButtonChanged",null);_.D([_.Gz("yt-retrieve-location"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],b6.prototype,"onRetrieveLocation",null);
_.D([_.Gz("yt-load-reload-continuation"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Function]),_.K("design:returntype")],b6.prototype,"onLoadReloadContinuation",null);_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],b6.prototype,"onServiceRequestCompleted",null);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],b6.prototype,"dataChanged",null);
_.D([_.XJ("data.contents.length"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],b6.prototype,"observeDataContentsLength",null);_.D([_.Gz("yt-dismissible-item-dismissed"),_.Gz("yt-dismissible-item-undismissed"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],b6.prototype,"onYtDismissibleItemDismissedChange",null);
_.D([_.fx("continuationShowButton"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],b6.prototype,"continuationShowButtonChanged",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],b6.prototype,"dataChangedForBinding",null);_.D([_.h({is:"ytd-item-section-renderer",disableElementRegistration:!0})],b6);
_.B(b6,"ytd-item-section-renderer",function(){if(fv_!==void 0)return fv_;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return fv_=H},{mode:1});var em1;var i_6=_.sx(_.fL("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var uC1={},H_Z=(uC1[0]={title:_.cF(_.fL("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.cF(_.fL("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.F_("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},uC1[1]={title:_.cF(_.fL("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.F_("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},uC1);_.hg("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var Eq=function(){var H=_.X.apply(this,arguments)||this;H.allVideosCount=0;H.allPlaylistCount=0;H.isOnline=!1;H.shouldRenderDownloadsBanner=!1;H.shouldRenderDownloadsBannerUpsell=!1;H.hasOptedIntoSmartDownloads=!1;H.areAllSmartDownloadsDeleted=!1;H.smartDownloadsCompleted=!1;return H};
_.G(Eq,_.X);Eq.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
Eq.prototype.attached=function(){this.downloadsToRenderChanged()};
Eq.prototype.detached=function(){this.set("renderableData",{})};
Eq.prototype.downloadsToRenderChanged=function(){var H=_.AG().getState().entities,C=_.k6(H),S=_.E("kevlar_playlist_dl_page_killswitch")?FNi(H):_.hf(H),w=_.CoV(H),A=_.wPw(H),J=_.X_(C);H=_.n8(H);this.set("renderableData",SJZ(S,C,w,A,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,J,H))};
Eq.prototype.downloadsToRenderChanged=Eq.prototype.downloadsToRenderChanged;_.D([_.v(_.q$),_.K("design:type",Object)],Eq.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Eq.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Eq.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Eq.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],Eq.prototype,"renderableData",void 0);_.D([_.V({selector:_.EeV}),_.K("design:type",Object)],Eq.prototype,"allVideosCount",void 0);_.D([_.V({selector:tGU}),_.K("design:type",Object)],Eq.prototype,"allPlaylistCount",void 0);_.D([_.V({selector:_.tf}),_.K("design:type",Object)],Eq.prototype,"isOnline",void 0);_.D([_.V({selector:_.V8E}),_.K("design:type",Object)],Eq.prototype,"shouldRenderDownloadsBanner",void 0);
_.D([_.V({selector:_.QiE}),_.K("design:type",Object)],Eq.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.D([_.V({selector:_.oeU}),_.K("design:type",Object)],Eq.prototype,"hasOptedIntoSmartDownloads",void 0);_.D([_.V({selector:_.O$D}),_.K("design:type",Object)],Eq.prototype,"areAllSmartDownloadsDeleted",void 0);_.D([_.V({selector:XPV}),_.K("design:type",Object)],Eq.prototype,"smartDownloadsCompleted",void 0);
_.D([_.XJ("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Eq.prototype,"downloadsToRenderChanged",null);_.D([_.h({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],Eq);
_.B(Eq,"ytd-offline-item-section-renderer",function(){if(em1!==void 0)return em1;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return em1=H},
{mode:1});var GDd;var fuM;var eg=function(){return _.X.apply(this,arguments)||this};
_.G(eg,_.X);
eg.prototype.onDataChanged=function(){if(this.JSC$16718_lastData){var H=this.getFilterClass(this.JSC$16718_lastData.status);H&&this.hostElement.classList.remove(H)}var C;(H=this.getFilterClass((C=this.data)==null?void 0:C.status))&&this.hostElement.classList.add(H);H==="selected"?_.mY(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.mY(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");H==="disabled"?_.mY(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.mY(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$16718_lastData=this.data};
eg.prototype.getFilterClass=function(H){switch(H){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
eg.prototype.onDataChanged=eg.prototype.onDataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],eg.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],eg.prototype,"data",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],eg.prototype,"onDataChanged",null);_.D([_.h({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],eg);
_.B(eg,"ytd-search-filter-renderer",function(){if(fuM!==void 0)return fuM;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return fuM=H},{mode:_.mn("kevlar_poly_si_batch_j075")?1:2});var u6=function(){return _.X.apply(this,arguments)||this};
_.G(u6,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],u6.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],u6.prototype,"data",void 0);_.D([_.h({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],u6);
_.B(u6,"ytd-search-filter-group-renderer",function(){if(GDd!==void 0)return GDd;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return GDd=H},{mode:_.mn("kevlar_poly_si_batch_j075")?1:2});var vXb;var GP=function(){return _.X.apply(this,arguments)||this};
_.G(GP,_.X);GP.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.XL());this.isCollapsed=!this.isCollapsed};
GP.prototype.navigateToAboutTheseResultsPage=function(){var H=_.n9("https://www.youtube.com/howyoutubeworks/product-features/search/");H?_.CM(window,H,"_blank"):_.tE(Error("Zh"))};
GP.prototype.dataChanged=function(){this.isCollapsed=!0};
GP.prototype.computeShowBottomBorder=function(){var H,C,S;return!!((H=this.data)==null?0:(C=H.button)==null?0:C.toggleButtonRenderer)||!((S=this.data)==null||!S.aboutTheseResultsButton)};
GP.prototype.dataChanged=GP.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],GP.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],GP.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.K("design:type",Boolean)],GP.prototype,"showBottomBorder",void 0);_.D([_.V(),_.K("design:type",Boolean)],GP.prototype,"renderCollapsibleMenu",void 0);
_.D([_.V(),_.K("design:type",Boolean)],GP.prototype,"isCollapsed",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],GP.prototype,"dataChanged",null);_.D([_.h({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],GP);
_.B(GP,"ytd-search-sub-menu-renderer",function(){if(vXb!==void 0)return vXb;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return vXb=H},{mode:1});var lu1;var VF1=new _.W4("SECTION_LIST_RENDERER_TOKEN");var oXd;var f0=function(){return _.X.apply(this,arguments)||this};
_.G(f0,_.X);f0.prototype.computeStyle=function(H){return H?H.toLowerCase().replace(/_/g,"-"):""};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],f0.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],f0.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.K("design:type",String)],f0.prototype,"headerStyle",void 0);_.D([_.h({is:"ytd-text-header-renderer",disableElementRegistration:!0})],f0);
_.B(f0,"ytd-text-header-renderer",function(){if(oXd!==void 0)return oXd;var H=document.createElement("template");_.f(H,"\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");H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return oXd=H},{mode:1});var OWP;var vd=function(){return _.X.apply(this,arguments)||this};
_.G(vd,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],vd.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],vd.prototype,"data",void 0);_.D([_.h({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],vd);
_.B(vd,"ytd-minor-moment-header-renderer",function(){if(OWP!==void 0)return OWP;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return OWP=H},{mode:1});var X1i;var l6=function(){return _.X.apply(this,arguments)||this};
_.G(l6,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],l6.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],l6.prototype,"data",void 0);_.D([_.h({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],l6);
_.B(l6,"ytd-minor-moment-setting-alert-renderer",function(){if(X1i!==void 0)return X1i;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return X1i=H},{mode:1});var Qrd;var dYW;var Vs=function(){var H=_.X.apply(this,arguments)||this;H.booleanSettingById=!1;H.smartDownloadsEnabledVE=_.y4(128287);H.smartDownloadsDisabledVE=_.y4(128286);H.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return H};
_.G(Vs,_.X);_.F=Vs.prototype;_.F.attachSmartDownloadsSettingVes=function(){var H;this.activeVeForLogging||((H=this.data)==null?void 0:H.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.hd(_.lJ(),this.smartDownloadsEnabledVE),_.hd(_.lJ(),this.smartDownloadsDisabledVE))};
_.F.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.M3(this.hostElement,"yt-settings-switch-ready")};
_.F.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.F.onSwitchChange=function(H){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(H=_.Jr(H).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.E("kevlar_settings_switch_resolve_command_killswitch")?_.JA().resolve(_.ZQ).resolveCommand(H,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(H)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.F.handleUpdateSettingsSwitch=function(H){(H=_.e(H,xLP))&&this.data&&this.data.id===H.id&&this.set("data.enabled",!!H.enabled)};
_.F.onToggleSettingsSwitch=function(H,C){this.data&&this.data.id===H&&this.set("data.enabled",C!=null?C:!this.data.enabled)};
_.F.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.l3.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.F.maybeLogSmartDownloadsSettingVisibility=function(){var H=_.Dg(),C;H&&((C=this.data)==null?void 0:C.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.ia(H,[this.smartDownloadsEnabledVE]),_.C8(H,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.ia(H,[this.smartDownloadsDisabledVE]),_.C8(H,[this.smartDownloadsEnabledVE])))};
_.F.maybeLogSmartDownloadsSettingClick=function(){var H;((H=this.data)==null?void 0:H.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.rH(_.lJ(),this.activeVeForLogging)};
_.F.updateDataEnabledFromBinding=function(H){this.set("data.enabled",H.detail.value)};
_.JJ.Object.defineProperties(Vs.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var H=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!H&&(H=this.ytRendererBehavior.getSimpleString(this.data.title));return H}}});
Vs.prototype.dataChanged=Vs.prototype.dataChanged;_.D([_.v(_.q$),_.K("design:type",Object)],Vs.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Vs.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],Vs.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Vs.prototype,"ytComponentBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],Vs.prototype,"data",void 0);_.D([_.V({selector:function(H,C){if(Object.keys(H==null?void 0:H.entities).length)switch(C){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return Z$V(H.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.K("design:type",Object)],Vs.prototype,"booleanSettingById",void 0);_.D([_.V(),_.K("design:type",rM)],Vs.prototype,"activeVeForLogging",void 0);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vs.prototype,"toggleAriaLabel",null);_.D([_.XJ("data"),_.XJ("booleanSettingById"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Vs.prototype,"dataChanged",null);
_.D([_.h({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],Vs);
_.B(Vs,"ytd-settings-switch-renderer",function(){if(dYW!==void 0)return dYW;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return dYW=H},{mode:1});var o9=function(){return _.X.apply(this,arguments)||this};
_.G(o9,_.X);o9.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}}}}};
_.JJ.Object.defineProperties(o9.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var H=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(H+=" remove-left-margin");this.data.extraBottomSpace&&(H+=" extra-bottom-space");return H}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],o9.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],o9.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],o9.prototype,"data",void 0);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],o9.prototype,"contentsClassName",null);_.D([_.h({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],o9);
_.B(o9,"ytd-minor-moment-setting-section-renderer",function(){if(Qrd!==void 0)return Qrd;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return Qrd=H},{mode:1});var PvW;var Oq=function(){return _.X.apply(this,arguments)||this};
_.G(Oq,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Oq.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Oq.prototype,"componentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Oq.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],Oq);
_.B(Oq,"ytd-empty-product-details-renderer",function(){if(PvW!==void 0)return PvW;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return PvW=H},{mode:1});var $Yb;var p1i;var XY=function(){var H=_.X.apply(this,arguments)||this;H.expanded=!0;return H};
_.G(XY,_.X);XY.prototype.getBadgeRowClass=function(H,C,S){for(var w=_.Z(this.hostElement.querySelectorAll("yt-img-shadow")),A=w.next();!A.done;A=w.next())A.value.onShow();H=H.selected;return S?H!==-1?H===C?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(H!==void 0?H:0)===C?"badge-line":"badge-hidden"};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],XY.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],XY.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],XY.prototype,"expanded",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],XY);
_.B(XY,"ytd-sponsorships-loyalty-badges-renderer",function(){if(p1i!==void 0)return p1i;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return p1i=H},{mode:1});var kDi;var Qs=function(){var H=_.X.apply(this,arguments)||this;H.expanded=!0;return H};
_.G(Qs,_.X);Qs.prototype.getContainerClasses=function(H,C){H=H?"expanded":"collapsed";C&&(H+=" item");return H};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Qs.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Qs.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],Qs.prototype,"expanded",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],Qs);
_.B(Qs,"ytd-sponsorships-perk-renderer",function(){if(kDi!==void 0)return kDi;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return kDi=H},{mode:1});var hm1;var dg=function(){var H=_.X.apply(this,arguments)||this;H.expanded=!0;return H};
_.G(dg,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],dg.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],dg.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],dg.prototype,"expanded",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],dg);
_.B(dg,"ytd-sponsorships-perks-renderer",function(){if(hm1!==void 0)return hm1;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return hm1=H},{mode:1});var Pd=function(){var H=_.X.apply(this,arguments)||this;H.isCollapsed=!1;return H};
_.G(Pd,_.X);Pd.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
Pd.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
Pd.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var H;this.expandCollapseButton=_.e((H=this.data)==null?void 0:H.expandButton,_.cg)}else{var C;this.expandCollapseButton=_.e((C=this.data)==null?void 0:C.collapseButton,_.cg)}};
Pd.prototype.updateExpandCollapseButton=Pd.prototype.updateExpandCollapseButton;Pd.prototype.onDataChanged=Pd.prototype.onDataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Pd.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Pd.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Pd.prototype,"isCollapsed",void 0);_.D([_.V(),_.K("design:type",Object)],Pd.prototype,"expandCollapseButton",void 0);
_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Pd.prototype,"onDataChanged",null);_.D([_.XJ("data","isCollapsed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Pd.prototype,"updateExpandCollapseButton",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],Pd);
_.B(Pd,"ytd-sponsorships-expandable-perks-renderer",function(){if($Yb!==void 0)return $Yb;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return $Yb=H},{mode:1});var nXV;var $7=function(){return _.X.apply(this,arguments)||this};
_.G($7,_.X);$7.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],$7.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],$7.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],$7.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],$7);
_.B($7,"ytd-sponsorships-actionable-message-renderer",function(){if(nXV!==void 0)return nXV;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return nXV=H},{mode:1});var r8P;var p0=function(){return _.X.apply(this,arguments)||this};
_.G(p0,_.X);_.F=p0.prototype;_.F.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.F.getExpansionIcon=function(H){return H?"COLLAPSE":"EXPAND"};
_.F.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.F.computeMessageContainerStyle=function(H){var C=H.expandableItems?" style-clickable":"";return H.messageContainerStyle?H.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+C:"style-unspecified"+C};
_.F.isSinglePerk=function(H){return!!H.messageContainerStyle&&(H.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||H.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.F.onExpandedChanged=function(){var H=this;if(this.expanded)for(var C=_.Z(this.hostElement.querySelectorAll("yt-img-shadow")),S=C.next();!S.done;S=C.next())S.value.onShow();_.wM(this,function(){_.M3(H.hostElement,"yt-refit")})};
_.F.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
p0.prototype.onDataChanged=p0.prototype.onDataChanged;p0.prototype.onExpandedChanged=p0.prototype.onExpandedChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],p0.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],p0.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],p0.prototype,"data",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],p0.prototype,"expanded",void 0);
_.D([_.fx("expanded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],p0.prototype,"onExpandedChanged",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],p0.prototype,"onDataChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],p0);
_.B(p0,"ytd-sponsorships-expandable-message-renderer",function(){if(r8P!==void 0)return r8P;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return r8P=H},{mode:_.mn("kevlar_poly_si_batch_j028")?1:2});var BFP;var k7=function(){return _.X.apply(this,arguments)||this};
_.G(k7,_.X);k7.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"}}}}};
k7.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.e(this.data.endButton,_.cg).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
k7.prototype.onDataChanged=k7.prototype.onDataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],k7.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],k7.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],k7.prototype,"data",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],k7.prototype,"onDataChanged",null);
_.D([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],k7);
_.B(k7,"ytd-sponsorships-heading-renderer",function(){if(BFP!==void 0)return BFP;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return BFP=H},{mode:1});var DYU;var hm=function(){return _.X.apply(this,arguments)||this};
_.G(hm,_.X);_.D([_.V(),_.K("design:type",Object)],hm.prototype,"data",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],hm.prototype,"ytRendererBehavior",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],hm);
_.B(hm,"ytd-sponsorships-links-renderer",function(){if(DYU!==void 0)return DYU;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return DYU=H},{mode:1});var Kp_;var n0=function(){return _.X.apply(this,arguments)||this};
_.G(n0,_.X);_.F=n0.prototype;_.F.onDataChanged=function(){if(this.data&&this.data.expandableItems){var H;(H=_.mY(this.hostElement).querySelector("tp-yt-paper-button"))==null||H.setAttribute("role","button")}else{var C;(C=_.mY(this.hostElement).querySelector("tp-yt-paper-button"))==null||C.removeAttribute("role")}};
_.F.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.F.getExpansionIcon=function(H){return H?"COLLAPSE":"EXPAND"};
_.F.getTileClasses=function(H){return H?"tile expandable-tile":"tile"};
_.F.getButtonDisabled=function(H){return H?void 0:""};
n0.prototype.onDataChanged=n0.prototype.onDataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],n0.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],n0.prototype,"data",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],n0.prototype,"expanded",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],n0.prototype,"onDataChanged",null);
_.D([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],n0);
_.B(n0,"ytd-sponsorships-list-tile-renderer",function(){if(Kp_!==void 0)return Kp_;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Kp_=H},{mode:1});var tFY;var Lpb;var rg=function(){return _.X.apply(this,arguments)||this};
_.G(rg,_.X);rg.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],rg.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],rg.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],rg.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],rg);
_.B(rg,"ytd-sponsorships-promotion-renderer",function(){if(Lpb!==void 0)return Lpb;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return Lpb=H},{mode:1});var gX7;var Bd=function(){return _.X.apply(this,arguments)||this};
_.G(Bd,_.X);Bd.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Bd.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Bd.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Bd.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],Bd);
_.B(Bd,"ytd-sponsorships-purchase-option-renderer",function(){if(gX7!==void 0)return gX7;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return gX7=H},{mode:1});var UYd;var Rmb;var IuV=function(){return _.X.apply(this,arguments)||this};
_.G(IuV,_.X);_.D([_.V(),_.K("design:type",Object)],IuV.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],IuV);
_.B(IuV,"ytd-ypc-offer-promo-renderer",function(){if(Rmb!==void 0)return Rmb;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Rmb=H},{mode:1});var DD=function(){return _.X.apply(this,arguments)||this};
_.G(DD,_.X);_.F=DD.prototype;
_.F.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"}}}}};
_.F.expansionCTA=function(H,C){return H&&(C?H.collapseCallToAction:H.expansionCallToAction)};
_.F.getExpansionIcon=function(H){return H?"COLLAPSE":"EXPAND"};
_.F.expansionCallToActionTap=function(){var H=this;this.expanded=!this.expanded;_.wM(this,function(){_.M3(H.hostElement,"yt-refit")})};
_.F.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var H,C=(H=this.data)==null?void 0:H.onVisible;C&&this.ytComponentBehavior.resolveCommand(C)};
_.F.computeDisplayTitle=function(H){return!(!H||this.titledisplaystatus!=="show")};
_.F.computeDisplaySeparator=function(){return!1};
_.F.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
DD.prototype.onDataChanged=DD.prototype.onDataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],DD.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],DD.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],DD.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],DD.prototype,"data",void 0);
_.D([_.V({value:!1}),_.K("design:type",Boolean)],DD.prototype,"expanded",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],DD.prototype,"purchaseButtonClicked",void 0);_.D([_.V({reflectToAttribute:!0,value:"show"}),_.K("design:type",String)],DD.prototype,"titledisplaystatus",void 0);_.D([_.V({computed:"computeDisplayTitle(data.title)"}),_.K("design:type",Boolean)],DD.prototype,"displayTitle",void 0);
_.D([_.V({computed:"computeDisplaySeparator(data)"}),_.K("design:type",Boolean)],DD.prototype,"displaySeparator",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],DD.prototype,"onDataChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],DD);
_.B(DD,"ytd-sponsorships-tier-renderer",function(){if(UYd!==void 0)return UYd;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return UYd=H},{mode:2});var K0=function(){return _.X.apply(this,arguments)||this};
_.G(K0,_.X);
K0.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"}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],K0.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],K0.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],K0.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],K0);
_.B(K0,"ytd-sponsorships-management-renderer",function(){if(tFY!==void 0)return tFY;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return tFY=H},{mode:1});var au7;var tm=function(){return _.X.apply(this,arguments)||this};
_.G(tm,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],tm.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],tm.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],tm);
_.B(tm,"ytd-open-in-native-app-view-model",function(){if(au7!==void 0)return au7;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return au7=H},{mode:_.mn("kevlar_poly_si_batch_j028")?1:2});var xYd;var He7;var iei=_.xC(["top-"]),CGd=_.xC(["bottom-"]),S8i=_.xC(["left-"]),sLd=_.xC(["right-"]),jLb={},wEW=function(H,C,S){H.removeAttribute("top-"+S);H.removeAttribute("bottom-"+S);H.removeAttribute("left-"+S);H.removeAttribute("right-"+S);C&&(C.top&&_.ZA([_.cj(iei)],H,"top-"+S,C.top),C.bottom&&_.ZA([_.cj(CGd)],H,"bottom-"+S,C.bottom),C.left&&_.ZA([_.cj(S8i)],H,"left-"+S,C.left),C.right&&_.ZA([_.cj(sLd)],H,"right-"+S,C.right))};
jLb.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(H){var C,S=_.mY((C=this.hostElement)!=null?C:this),w;C=this.cardItemBoxBehaviorMarginTargetId&&S?S.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(w=this.hostElement)!=null?w:this;wEW(C,H,"margin")},
cardItemContainerPaddingChanged_:function(H){var C,S=_.mY((C=this.hostElement)!=null?C:this),w;C=this.cardItemBoxBehaviorPaddingTargetId&&S?S.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(w=this.hostElement)!=null?w:this;wEW(C,H,"padding")}}];var L0={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 A4Y;var J4U;var gg=function(){return _.X.apply(this,arguments)||this};
_.G(gg,_.X);gg.prototype.textColorChanged_=function(){this.hostElement.style.color=L0[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
gg.prototype.textColorChanged_=gg.prototype.textColorChanged_;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],gg.prototype,"ytRendererBehavior",void 0);_.D([_.v(jLb.YtCardItemBoxBehavior),_.K("design:type",Object)],gg.prototype,"ytCardItemBoxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],gg.prototype,"data",void 0);_.D([_.fx("data.textColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],gg.prototype,"textColorChanged_",null);
_.D([_.Lx({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],gg);
_.B(gg,"yt-card-item-text-renderer",function(){if(J4U===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;A4Y===void 0&&(A4Y=document.createElement("template"));var w=A4Y;S.call(C,w.content.cloneNode(!0),H.content.firstChild);J4U=H}H=J4U;return H},{mode:2});var FV7;var Zen;var Uq=function(){return _.X.apply(this,arguments)||this};
_.G(Uq,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Uq.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Uq.prototype,"data",void 0);_.D([_.Lx({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],Uq);
_.B(Uq,"yt-card-item-badge-renderer",function(){if(Zen===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;FV7===void 0&&(FV7=document.createElement("template"));var w=FV7;S.call(C,w.content.cloneNode(!0),H.content.firstChild);Zen=H}H=Zen;return H},{mode:2});var c47;var Y8M;var R9=function(){return _.X.apply(this,arguments)||this};
_.G(R9,_.X);R9.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],R9.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],R9.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],R9.prototype,"data",void 0);_.D([_.Lx({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],R9);
_.B(R9,"yt-card-item-text-collection-renderer",function(){if(Y8M===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;c47===void 0&&(c47=document.createElement("template"));var w=c47;S.call(C,w.content.cloneNode(!0),H.content.firstChild);Y8M=H}H=Y8M;return H},{mode:2});var zOn;var Mld;var I9=function(){return _.X.apply(this,arguments)||this};
_.G(I9,_.X);I9.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]]"}}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],I9.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],I9.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],I9.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Number)],I9.prototype,"iconSize",void 0);_.D([_.Lx({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],I9);
_.B(I9,"yt-card-item-text-with-button-renderer",function(){if(Mld===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;zOn===void 0&&(zOn=document.createElement("template"));var w=zOn;S.call(C,w.content.cloneNode(!0),H.content.firstChild);Mld=H}H=Mld;return H},{mode:2});var a9=function(){return _.X.apply(this,arguments)||this};
_.G(a9,_.X);a9.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"}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],a9.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],a9.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],a9.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],a9.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],a9);
_.B(a9,"ytd-commerce-cart-summary-line-item-renderer",function(){if(He7!==void 0)return He7;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return He7=H},{mode:1});_.hg("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var x7=function(){var H=_.X.apply(this,arguments)||this;H.hidden=!1;return H};
_.G(x7,_.X);_.F=x7.prototype;_.F.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"}}}}};
_.F.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.F.updateSummary=function(){var H=this.commerceCartCheckoutButtonEntity,C;if(((C=this.data)==null?0:C.cartButton)&&H.checkoutSummaryText){var S,w=PQ((S=this.data)==null?void 0:S.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+w+".cardItemTextRenderer.text",$Q(H.checkoutSummaryText));if(H.checkoutDetailText){var A;S=PQ((A=this.data)==null?void 0:A.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+S+".cardItemTextRenderer.text",$Q(H.checkoutDetailText))}if(H.checkoutAdditionalMetadataText){var J;
A=PQ((J=this.data)==null?void 0:J.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+A+".cardItemTextRenderer.text",$Q(H.checkoutAdditionalMetadataText))}}else H.estimatedTotalPrice&&(J=PQ((w=this.data)==null?void 0:w.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+J+".cardItemTextRenderer.text",$Q(H.estimatedTotalPrice)))};
_.F.updateIsHidden=function(){var H,C=(H=this.commerceCartCheckoutButtonEntity)==null?void 0:H.isHidden;C!==void 0&&(this.hidden=C)};
_.F.updateCheckoutButton=function(){var H,C=(H=this.commerceCartCheckoutButtonEntity)==null?void 0:H.isDisabled;C!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",C);var S;H=(S=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:S.innertubeCommand;H!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",H);var w;S=(w=this.commerceCartCheckoutButtonEntity)==null?void 0:w.checkoutButtonText;S!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:S})};
x7.prototype.entityChanged=x7.prototype.entityChanged;_.D([_.v(_.q$),_.K("design:type",Object)],x7.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],x7.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],x7.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],x7.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],x7.prototype,"fullWidth",void 0);_.D([_.V(),_.K("design:type",Object)],x7.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],x7.prototype,"compact",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],x7.prototype,"hidden",void 0);
_.D([_.V({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:bR$}),_.K("design:type",Object)],x7.prototype,"commerceCartCheckoutButtonEntity",void 0);_.D([_.fx("commerceCartCheckoutButtonEntity","data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],x7.prototype,"entityChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],x7);
_.B(x7,"ytd-commerce-cart-checkout-button-renderer",function(){if(xYd!==void 0)return xYd;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return xYd=H},{mode:2});var q8V;_.TKn={};
_.TKn.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",_.uA(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.uA(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(H){!this.tappableItemBehaviorTapEnabled||H.keyCode!==13&&H.keyCode!==32||H.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var H=this.data.onTap;H.ypcGetCartEndpoint?(_.WH(this.hostElement,[H]),this.tappableItemBehaviorTapEnabled=!1):H.ypcOffersEndpoint?_.WH(this.hostElement,[H]):_.yN(this.hostElement,[H],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(H){this.tappableItemBehaviorTapEnabled=!!H},
tappableItemBehaviorOnTapEnabledChanged_:function(){var H=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(H.setAttribute("tabIndex",0),H.setAttribute("role","button")):(H.removeAttribute("tabIndex"),H.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(H){H.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var mSi;var WVU;var Hy=function(){return _.X.apply(this,arguments)||this};
_.G(Hy,_.X);Hy.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.nu("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.nu("sharingToggleButtonAndDefaultButton")}}};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Hy.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Hy.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Hy.prototype,"data",void 0);_.D([_.Lx({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],Hy);
_.B(Hy,"yt-card-item-actions-renderer",function(){if(WVU===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;mSi===void 0&&(mSi=document.createElement("template"));var w=mSi;S.call(C,w.content.cloneNode(!0),H.content.firstChild);WVU=H}H=WVU;return H},{mode:2});var y4M;var NKY;var beU;var E57;var eOU;var ugW;var ic=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return H};
_.G(ic,_.X);ic.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
ic.prototype.handleDarkModeToggledAction_=function(H){this.isDarkTheme_=H};
ic.prototype.computeThemeImage_=function(H,C){if(!H||!H.imageLight)return!1;this.isCircular_=H.isCircular;H.imageWidth&&(this.hostElement.style.width=H.imageWidth+"px");H.imageHeight&&(this.hostElement.style.height=H.imageHeight+"px");H.borderWidth&&(this.image.style.borderWidth=H.borderWidth+"px",this.image.style.borderStyle="solid");H.borderColor&&(this.image.style.borderColor=_.aw(H.borderColor));return C&&H.imageDark?H.imageDark:H.imageLight};
ic.prototype.computeThemeIcon_=function(H){var C,S;if(!(H==null?0:(C=H.themedIcon)==null?0:(S=C.icon)==null?0:S.iconType))return!1;this.icon.style.color=L0[H.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(H.imageWidth||18)+"px";this.icon.style.height=(H.imageHeight||18)+"px";return _.bJ(H.themedIcon.icon.iconType)};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],ic.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],ic.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(jLb.YtCardItemBoxBehavior),_.K("design:type",Object)],ic.prototype,"ytCardItemBoxBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],ic.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],ic.prototype,"data",void 0);
_.D([_.V({value:!1}),_.K("design:type",Boolean)],ic.prototype,"fit",void 0);_.D([_.V(),_.K("design:type",Boolean)],ic.prototype,"isDarkTheme_",void 0);_.D([_.V({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.K("design:type",Object)],ic.prototype,"themeImage_",void 0);_.D([_.V({computed:"computeThemeIcon_(data)"}),_.K("design:type",Object)],ic.prototype,"themeIcon_",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Object)],ic.prototype,"isCircular_",void 0);
_.D([_.lA("#image"),_.K("design:type",Object)],ic.prototype,"image",void 0);_.D([_.lA("#icon"),_.K("design:type",Object)],ic.prototype,"icon",void 0);_.D([_.Lx({is:"yt-themed-image-renderer",disableElementRegistration:!0})],ic);
_.B(ic,"yt-themed-image-renderer",function(){if(ugW===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;eOU===void 0&&(eOU=document.createElement("template"));var w=eOU;S.call(C,w.content.cloneNode(!0),H.content.firstChild);ugW=H}H=ugW;return H},{mode:2});var Cy=function(){return _.X.apply(this,arguments)||this};
_.G(Cy,_.X);Cy.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"}}}}};
Cy.prototype.computeImagePlacement_=function(H){return H||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Cy.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Cy.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Cy.prototype,"data",void 0);_.D([_.V({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.K("design:type",String)],Cy.prototype,"imagePlacement",void 0);
_.D([_.Lx({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],Cy);
_.B(Cy,"yt-card-item-text-with-image-renderer",function(){if(E57===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;beU===void 0&&(beU=document.createElement("template"));var w=beU;S.call(C,w.content.cloneNode(!0),H.content.firstChild);E57=H}H=E57;return H},{mode:2});var Sz=function(){return _.X.apply(this,arguments)||this};
_.G(Sz,_.X);Sz.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"}}}}};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Sz.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Sz.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Sz.prototype,"data",void 0);_.D([_.Lx({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],Sz);
_.B(Sz,"yt-card-item-error-renderer",function(){if(NKY===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;y4M===void 0&&(y4M=document.createElement("template"));var w=y4M;S.call(C,w.content.cloneNode(!0),H.content.firstChild);NKY=H}H=NKY;return H},{mode:2});var Gs7;var fdd;_.hg("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var sh=function(){return _.X.apply(this,arguments)||this};
_.G(sh,_.X);_.F=sh.prototype;
_.F.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"}}}}};
_.F.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.F.backgroundColorChanged_=function(){var H,C=(H=this.data)==null?void 0:H.backgroundColor;H=L0[C||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.mY(this.hostElement).querySelector("#main-content").style.backgroundColor=H};
_.F.headerPromoBackgroundColorChanged_=function(){var H,C=(H=this.data)==null?void 0:H.headerPromoBackgroundColor;H=L0[C||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.mY(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=H};
_.F.errorRendererVisibilityChanged_=function(){var H=this.isExpanded_,C;this.isErrorRendererVisible_=!((C=this.data)==null||!C.errorRenderer)&&!H};
_.F.onYtToggleButton_=function(H,C){this.isExpanded_=C.toggled};
sh.prototype.onYtToggleButton_=sh.prototype.onYtToggleButton_;sh.prototype.errorRendererVisibilityChanged_=sh.prototype.errorRendererVisibilityChanged_;sh.prototype.headerPromoBackgroundColorChanged_=sh.prototype.headerPromoBackgroundColorChanged_;sh.prototype.backgroundColorChanged_=sh.prototype.backgroundColorChanged_;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],sh.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],sh.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(jLb.YtCardItemBoxBehavior),_.K("design:type",Object)],sh.prototype,"ytCardItemBoxBehavior",void 0);_.D([_.v(_.TKn.YtTappableItemBehavior),_.K("design:type",Object)],sh.prototype,"ytTappableItemBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],sh.prototype,"data",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],sh.prototype,"isExpanded_",void 0);
_.D([_.V({value:!1}),_.K("design:type",Boolean)],sh.prototype,"isErrorRendererVisible_",void 0);_.D([_.fx("data.backgroundColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],sh.prototype,"backgroundColorChanged_",null);_.D([_.fx("data.headerPromoBackgroundColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],sh.prototype,"headerPromoBackgroundColorChanged_",null);
_.D([_.fx("data.errorRenderer","isExpanded_"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],sh.prototype,"errorRendererVisibilityChanged_",null);_.D([_.Gz("yt-toggle-button"),_.K("design:type",Function),_.K("design:paramtypes",[Event,Object]),_.K("design:returntype")],sh.prototype,"onYtToggleButton_",null);_.D([_.Lx({is:"yt-card-item-renderer",disableElementRegistration:!0})],sh);
_.B(sh,"yt-card-item-renderer",function(){if(fdd===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;Gs7===void 0&&(Gs7=document.createElement("template"));var w=Gs7;S.call(C,w.content.cloneNode(!0),H.content.firstChild);fdd=H}H=fdd;return H},{mode:2});_.hg("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var jz=function(){var H=_.X.apply(this,arguments)||this;H.hidden=!1;return H};
_.G(jz,_.X);_.F=jz.prototype;_.F.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.F.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.F.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var H,C=(H=this.commerceCartHeaderEntity)==null?void 0:H.isHidden;C!==void 0&&(this.hidden=C)}};
_.F.updateTitle=function(){var H=this.commerceCartHeaderEntity.isDisabled,C,S,w=(S=_.e((C=this.data)==null?void 0:C.item,B2b))==null?void 0:S.headingRenderer;w&&(C=PQ(w,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+C+".0.cardItemTextRenderer.textColor",H?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.F.updateSummaryText=function(){var H=this.commerceCartHeaderEntity;if(this.compact){var C,S,w=(S=_.e((C=this.data)==null?void 0:C.item,B2b))==null?void 0:S.headingRenderer;w&&(C=PQ(w,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+C+".1.cardItemTextRenderer.text",H.shortHeaderSummaryText?$Q(H.shortHeaderSummaryText):H.headerSummaryText?$Q(H.headerSummaryText):""))}else{var A;if(C=(A=_.e((w=this.data)==null?void 0:w.item,B2b))==null?void 0:A.additionalInfoRenderer)C=PQ(C,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+C+".text",H.headerSummaryText?$Q(H.headerSummaryText):"")}};
_.F.updateCheckoutButton=function(){var H=this.commerceCartHeaderEntity,C,S,w=(S=_.e((C=this.data)==null?void 0:C.item,B2b))==null?void 0:S.additionalInfoRenderer;C=PQ(w,"buttonRenderer");var A;S=(A=this.commerceCartHeaderEntity)==null?void 0:A.isButtonDisabled;var J;A=(J=this.commerceCartHeaderEntity)==null?void 0:J.isButtonHidden;S!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+C+".buttonRenderer.isDisabled",S);A!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
A);var c;H=(c=H.checkoutButtonCommand)==null?void 0:c.innertubeCommand;H!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+C+".buttonRenderer.command",H)};
jz.prototype.entityChanged=jz.prototype.entityChanged;_.D([_.v(_.q$),_.K("design:type",Object)],jz.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],jz.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],jz.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],jz.prototype,"data",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],jz.prototype,"compact",void 0);_.D([_.V({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(H,C){return _.Ea(H.entities,"commerceCartHeaderEntity",C)}}),
_.K("design:type",Object)],jz.prototype,"commerceCartHeaderEntity",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],jz.prototype,"hidden",void 0);_.D([_.fx("commerceCartHeaderEntity","data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],jz.prototype,"entityChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],jz);
_.B(jz,"ytd-commerce-cart-header-renderer",function(){if(q8V!==void 0)return q8V;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return q8V=H},{mode:1});var v5i;var ldd=_.P8(function(H,C){var S;return(S=H.onChangeCallback)==null?void 0:S.call(H,C)},1E3),Vl7=_.n(function(H){var C=H.data;
var S=H.iconMinus;H=H.iconPlus;var w=function(){return!!C().disabled},A=_.Z(_.mB(0,void 0,"mKh0af")),J=A.next().value,c=A.next().value;
A=_.um(function(){if(J()===1){var y,N;(N=(y=C()).onRemoveCommand)==null||N.call(y)}y=J()>C().maxValue?C().maxValue:J()-1;c(y);ldd(C(),y);return!1});
var Y=_.um(function(){if(J()===C().maxValue)return!1;var y=J()+1;c(y);ldd(C(),y);return!1});
_.Ph(function(){c(C().value)});
var M={},m={},W={};return _.q("quantity-incrementer-shape",null,_.q("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.q("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return J()===(C().onRemoveCommand?0:1)||w()},
"aria-label":function(){return J()!==1?C().minusLabel:C().minimumReachedLabel},
"on:click":A},_.q(_.pw,{model:{circular:!0}}),_.q("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.q("div",{class:_.eJ("ytSpecQuantityIncrementerShapeIcon",(M.ytSpecQuantityIncrementerShapeIconDisabled=function(){return w()||J()===(C().onRemoveCommand?0:1)},M))},S()))),_.q("div",{class:_.eJ("ytSpecQuantityIncrementerShapeText",(m.ytSpecQuantityIncrementerShapeTextInvalid=function(){return J()>C().maxValue},m.ytSpecQuantityIncrementerShapeTextDisabled=w,m))},J),_.q("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return J()>=C().maxValue||w()},
"aria-label":function(){return J()!==C().maxValue?C().plusLabel:C().maximumReachedLabel},
"on:click":Y},_.q(_.pw,{model:{circular:!0}}),_.q("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.q("div",{class:_.eJ("ytSpecQuantityIncrementerShapeIcon",(W.ytSpecQuantityIncrementerShapeIconDisabled=function(){return J()>=C().maxValue||w()},W))},H())))))},"Be");_.qs(_.n(function(H){function C(){S().onRemoveCommand&&_.Im(S().onRemoveCommand)}
var S=H.data;var w=_.fn(SCZ,function(){return S().quantityIncrementerEntityKey});
return _.q("yt-quantity-incrementer-view-model",null,_.q(Vl7,{data:function(){var A=S(),J;var c=w()?!((J=w())==null||!J.disabled):!1;var Y;J=w()?(Y=w())==null?void 0:Y.quantity:S().quantity;return wRp(A,c,C,J)},
iconMinus:function(){return _.q(_.lm,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.q(_.lm,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"Ce"),"yt-quantity-incrementer-view-model",{props:{data:_.GH}});var wY=function(){var H=_.X.apply(this,arguments)||this;H.compact=!1;H.hasQuantityIncrementer=!1;return H};
_.G(wY,_.X);wY.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"}}}};
wY.prototype.computeHasQuantityIncrementer=function(){var H;return!!_.e((H=this.data)==null?void 0:H.picker,Lw7)};
wY.prototype.onLabelClick=function(){var H;(H=this.dropdownEl)==null||H.open()};
_.D([_.lA("ytd-dropdown-renderer"),_.K("design:type",Object)],wY.prototype,"dropdownEl",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],wY.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],wY.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],wY.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",String)],wY.prototype,"quantityColor",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],wY.prototype,"compact",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.K("design:type",Object)],wY.prototype,"hasQuantityIncrementer",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],wY);
_.B(wY,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(v5i!==void 0)return v5i;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return v5i=H},{mode:1});var o5n;var Oei;var A2=function(){return _.X.apply(this,arguments)||this};
_.G(A2,_.X);A2.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
A2.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
A2.prototype.updateTitle=function(){var H=this.disabledCartItemEntity;H.disableActionName&&this.set("data.title",$Q(H.disableActionName))};
A2.prototype.updateButton=function(){var H,C=(H=this.disabledCartItemEntity.undoCommand)==null?void 0:H.innertubeCommand;C!==void 0&&(this.set("data.actionButton.buttonRenderer.command",C),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
A2.prototype.entityChanged=A2.prototype.entityChanged;_.D([_.v(_.q$),_.K("design:type",Object)],A2.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],A2.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],A2.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(H,C){return _.Ea(H.entities,"disabledCartItemEntity",C)}}),
_.K("design:type",Object)],A2.prototype,"disabledCartItemEntity",void 0);_.D([_.V(),_.K("design:type",Object)],A2.prototype,"data",void 0);_.D([_.fx("disabledCartItemEntity","data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],A2.prototype,"entityChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],A2);
_.B(A2,"ytd-disabled-cart-item-renderer",function(){if(Oei!==void 0)return Oei;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return Oei=H},{mode:1});_.hg("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var J2=function(){var H=_.X.apply(this,arguments)||this;H.compact=!1;H.hidden=!1;H.errorHidden=!1;H.noOnTap=!1;return H};
_.G(J2,_.X);_.F=J2.prototype;
_.F.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"}}}};
_.F.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.F.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var H=this.firstButtonElement;H.alignByText=!0;H.iconAlignByText=!0}};
_.F.computeNoOnTap=function(H){return!H};
_.F.updateQuantityColor=function(){if(this.pickerElement){var H,C=(H=this.commerceCartItemEntity)==null?void 0:H.quantityColor;this.pickerElement.quantityColor=C}};
_.F.updateTotalPriceColor=function(){var H,C=(H=this.commerceCartItemEntity)==null?void 0:H.totalPriceColor;if(C){var S;H=_.e((S=this.data)==null?void 0:S.quantityPicker,Kwn);if(S=_.e(H==null?void 0:H.price,DhY))S.textColor=C}};
_.F.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var H,C=(H=this.commerceCartItemEntity)==null?void 0:H.isHidden;C!==void 0&&(this.hidden=C)}};
_.F.updateHideErrorMessage=function(){var H,C=(H=this.commerceCartItemEntity)==null?void 0:H.hideErrorMessage;C!==void 0&&(this.errorHidden=C)};
_.F.updateQuantity=function(){var H=this,C,S=(C=this.commerceCartItemEntity)==null?void 0:C.quantity,w;C=(w=this.commerceCartItemEntity)==null?void 0:w.totalPrice;if(S){this.updateTotalPriceColor();this.updateQuantityColor();var A;w=_.e((A=this.data)==null?void 0:A.quantityPicker,Kwn);if(A=_.e(w==null?void 0:w.price,DhY))A.text=C?{simpleText:C.content}:void 0;if(C=_.e(w==null?void 0:w.picker,Lw7))C.quantity=S;var J;if(A=(J=_.e(w==null?void 0:w.picker,Kk_))==null?void 0:J.entries){J=!1;C=void 0;A=
_.Z(A);for(w=A.next();!w.done;w=A.next())w=w.value,w.dropdownItemRenderer&&(C||(C=w.dropdownItemRenderer),w.dropdownItemRenderer.isSelected=!1,S===w.dropdownItemRenderer.int32Value&&(J=!0,w.dropdownItemRenderer.isSelected=!0));!J&&C&&(C.isSelected=!0)}_.wM(this,function(){var c;H.set("data.quantityPicker",_.hb.unsafeClone((c=H.data)==null?void 0:c.quantityPicker))})}};
J2.prototype.onYtRendererstamperFinished=J2.prototype.onYtRendererstamperFinished;J2.prototype.entityChanged=J2.prototype.entityChanged;_.D([_.V(),_.K("design:type",Object)],J2.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],J2.prototype,"compact",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],J2.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],J2.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],J2.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],J2.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(H,C){return _.Ea(H.entities,"commerceCartItemEntity",C)}}),
_.K("design:type",Object)],J2.prototype,"commerceCartItemEntity",void 0);_.D([_.V(),_.K("design:type",Object)],J2.prototype,"quantityPicker",void 0);_.D([_.V(),_.K("design:type",Object)],J2.prototype,"compactQuantityPicker",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],J2.prototype,"hidden",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],J2.prototype,"errorHidden",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.K("design:type",Object)],J2.prototype,"noOnTap",void 0);_.D([_.lA("ytd-commerce-cart-item-quantity-picker-renderer"),_.K("design:type",Object)],J2.prototype,"pickerElement",void 0);_.D([_.lA("yt-button-renderer"),_.K("design:type",Element)],J2.prototype,"firstButtonElement",void 0);
_.D([_.fx("commerceCartItemEntity","data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],J2.prototype,"entityChanged",null);_.D([_.Gz("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],J2.prototype,"onYtRendererstamperFinished",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],J2);
_.B(J2,"ytd-commerce-cart-item-renderer",function(){if(o5n!==void 0)return o5n;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return o5n=H},{mode:_.mn("kevlar_poly_si_batch_j028")?1:2});var XEd;var QL_;var Fm=function(){return _.X.apply(this,arguments)||this};
_.G(Fm,_.X);Fm.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}}}}}};
Fm.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
Fm.prototype.updateCheckoutLineItems=function(){var H,C=(H=this.commerceCartCheckoutButtonEntity)==null?void 0:H.checkoutLineItems;C&&(H=C.map(function(S){a:{var w=S.price,A=S.description;switch(S.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":S={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:$Q(A),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:$Q(w),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:S={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:$Q(A),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:$Q(w),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 S}),this.set("data.summaryLineItems",H))};
Fm.prototype.updateIsHidden=function(){var H,C=(H=this.commerceCartCheckoutButtonEntity)==null?void 0:H.isHidden;C!==void 0&&(this.hostElement.hidden=C)};
Fm.prototype.entityChanged=Fm.prototype.entityChanged;_.D([_.v(_.q$),_.K("design:type",Object)],Fm.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Fm.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Fm.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Fm.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],Fm.prototype,"data",void 0);_.D([_.V({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:bR$}),_.K("design:type",Object)],Fm.prototype,"commerceCartCheckoutButtonEntity",void 0);_.D([_.fx("commerceCartCheckoutButtonEntity","data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Fm.prototype,"entityChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],Fm);
_.B(Fm,"ytd-commerce-cart-summary-renderer",function(){if(QL_!==void 0)return QL_;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return QL_=H},{mode:1});var dSP={};dSP.InjectBehavior=[hR7.InjectBehavior];var PGY;var $SV;var ZW=function(){return _.X.apply(this,arguments)||this};
_.G(ZW,_.X);
ZW.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:_.nu("menuRenderer")}}};
ZW.prototype.onMenuTap=function(H){H.stopPropagation()};
_.JJ.Object.defineProperties(ZW.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 H,C;return!(((H=this.data)==null||!H.sectionHeading)&&((C=this.data)==null?void 0:C.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var H,C;return!(((H=this.data)==null||!H.image)&&((C=this.data)==null?void 0:C.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var H,C;return!(((H=this.data)==null||!H.menu)&&((C=this.data)==null?void 0:C.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],ZW.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],ZW.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.TKn.YtTappableItemBehavior),_.K("design:type",Object)],ZW.prototype,"ytTappableItemBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],ZW.prototype,"data",void 0);
_.D([_.V({reflectToAttribute:!0}),_.l("data.accessibilityData"),_.K("design:type",String),_.K("design:paramtypes",[])],ZW.prototype,"ariaLabel",null);_.D([_.l("data.sectionHeading","data.layout"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ZW.prototype,"sectionHeadingVisible",null);_.D([_.l("data.image","data.layout"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ZW.prototype,"imageVisible",null);
_.D([_.l("data.menu","data.layout"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ZW.prototype,"menuVisible",null);_.D([_.Lx({is:"yt-activity-item-renderer",disableElementRegistration:!0})],ZW);
_.B(ZW,"yt-activity-item-renderer",function(){if($SV===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;PGY===void 0&&(PGY=document.createElement("template"));var w=PGY;S.call(C,w.content.cloneNode(!0),H.content.firstChild);$SV=H}H=$SV;return H},{mode:2});var pEV;var ksi;var hOP;var n5b;var cy=function(){return _.X.apply(this,arguments)||this};
_.G(cy,_.X);
cy.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"}}}}};
cy.prototype.backgroundColorChanged_=function(){var H,C=(H=this.data)==null?void 0:H.backgroundColor;this.hostElement.style.backgroundColor=L0[C||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
cy.prototype.backgroundColorChanged_=cy.prototype.backgroundColorChanged_;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],cy.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],cy.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],cy.prototype,"data",void 0);
_.D([_.fx("data.backgroundColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cy.prototype,"backgroundColorChanged_",null);_.D([_.Lx({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],cy);
_.B(cy,"yt-offer-item-upsell-renderer",function(){if(n5b===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;hOP===void 0&&(hOP=document.createElement("template"));var w=hOP;S.call(C,w.content.cloneNode(!0),H.content.firstChild);n5b=H}H=n5b;return H},{mode:2});_.hg("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var YN=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};H.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return H};
_.G(YN,_.X);_.F=YN.prototype;
_.F.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:_.nu("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.F.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.F.computeContainerStyle_=function(H){return H};
_.F.computeContainerIsHidden_=function(H){return H&&!!H.isHidden};
_.F.computeShowSpinner_=function(H,C){return H&&C==="in-progress"};
_.F.computeShowMoreContentsButton_=function(H,C,S,w,A){return!(!(w&&w.length||A&&A.length&&S)||!H||C)};
_.F.onToggleButton_=function(H){var C=this;H.stopPropagation();this.isExpanded_=H.detail&&H.detail.toggled;var S,w;this.isExpanded_&&!this.data.continuationSection.length&&((S=this.data)==null?0:(w=S.continuation)==null?0:w.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.M3(this.hostElement,"yt-load-next-continuation",function(A){return C.getContinuationUrl_(C.data.continuation.onClickContinuationData,A)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.WH(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.F.onShowMoreContentsButtonClicked_=function(H){var C=this;H.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.M3(this.hostElement,"yt-load-next-continuation",function(S){return C.getContinuationUrl_(C.data.continuations[0].nextContinuationData,S)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.WH(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.F.getContinuationUrl_=function(H,C){var S=H.continuation;H=H.clickTrackingParams;var w=_.Dg();H&&w&&_.Sp(w,_.Qh(H));return _.i5(C,{continuation:S})};
_.F.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var H=_.mY(this.hostElement).querySelector("#continuation-section");H&&(H=H.querySelectorAll("ytmusic-item-section-renderer"))&&H.forEach(function(C){return C.classList.add("memberships-and-purchases")})};
_.F.dataChanged_=function(){var H;this.isExpanded_=!((H=this.data)==null||!H.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.F.updateCardOnClickCommand_=function(H){H=_.e(H,dh7);var C,S;this.data&&((C=this.data)==null?0:C.targetId)&&H&&H.targetId===((S=this.data)==null?void 0:S.targetId)&&H.onClickCommand&&(this.data.onClickCommand=H.onClickCommand,this.isOnClickCommand_=!0)};
_.F.backgroundColorChanged_=function(){var H,C=(H=this.data)==null?void 0:H.backgroundColor;this.hostElement.style.backgroundColor=L0[C||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
YN.prototype.backgroundColorChanged_=YN.prototype.backgroundColorChanged_;YN.prototype.dataChanged_=YN.prototype.dataChanged_;YN.prototype.nextContinuationDataUpdated_=YN.prototype.nextContinuationDataUpdated_;YN.prototype.onToggleButton_=YN.prototype.onToggleButton_;_.D([_.v(_.EH),_.K("design:type",Object)],YN.prototype,"ytContinuationHandlerBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],YN.prototype,"ytActionHandlerBehavior",void 0);
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],YN.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.eu.YtNextContinuationBehavior),_.K("design:type",Object)],YN.prototype,"ytNextContinuationBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],YN.prototype,"ytRendererBehavior",void 0);_.D([_.v(dSP.InjectBehavior),_.K("design:type",Object)],YN.prototype,"injectBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],YN.prototype,"data",void 0);
_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],YN.prototype,"compact",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],YN.prototype,"isExpanded_",void 0);_.D([_.V({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.K("design:type",String)],YN.prototype,"containerStyle_",void 0);_.D([_.V({value:"not-started"}),_.K("design:type",String)],YN.prototype,"continuationStatus_",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.K("design:type",Boolean)],YN.prototype,"showSpinner_",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],YN.prototype,"isOnClickCommand_",void 0);_.D([_.V({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.K("design:type",Boolean)],YN.prototype,"showMoreContentsButton_",void 0);
_.D([_.V({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(H,C){return!C||H.entities?null:_.Ea(H.entities,"cardItemContainerEntity",C)}}),
_.K("design:type",Object)],YN.prototype,"cardItemContainerEntity_",void 0);_.D([_.Gz("yt-toggle-button"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],YN.prototype,"onToggleButton_",null);_.D([_.Gz("yt-next-continuation-data-updated"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],YN.prototype,"nextContinuationDataUpdated_",null);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],YN.prototype,"dataChanged_",null);_.D([_.fx("data.backgroundColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],YN.prototype,"backgroundColorChanged_",null);_.D([_.Lx({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],YN);
_.B(YN,"yt-card-item-container-renderer",function(){if(ksi===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;pEV===void 0&&(pEV=document.createElement("template"));var w=pEV;S.call(C,w.content.cloneNode(!0),H.content.firstChild);ksi=H}H=ksi;return H},{mode:2});var zQ=function(){return _.X.apply(this,arguments)||this};
_.G(zQ,_.X);zQ.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"}}}};
zQ.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
zQ.prototype.computeLoadingHidden=function(){var H;return!((H=this.commerceCartPageStateEntity)==null?0:H.cartActionInProgress)};
zQ.prototype.updateNotification=function(){var H,C=(H=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:H.summaryText;C&&this.set("data.cartNotification",$Q(C))};
zQ.prototype.notificationEntityChanged=zQ.prototype.notificationEntityChanged;_.D([_.v(_.q$),_.K("design:type",Object)],zQ.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],zQ.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],zQ.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],zQ.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],zQ.prototype,"data",void 0);_.D([_.V({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(H,C){return _.Ea(H.entities,"commerceCartExpandableNotificationEntity",C)}}),
_.K("design:type",Object)],zQ.prototype,"commerceCartExpandableNotificationEntity",void 0);_.D([_.V({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(H,C){return _.Ea(H.entities,"commerceCartPageStateEntity",C)}}),
_.K("design:type",Object)],zQ.prototype,"commerceCartPageStateEntity",void 0);_.D([_.lA("#spinner"),_.K("design:type",HTMLElement)],zQ.prototype,"spinner",void 0);_.D([_.fx("commerceCartExpandableNotificationEntity","data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],zQ.prototype,"notificationEntityChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],zQ);
_.B(zQ,"ytd-commerce-cart-renderer",function(){if(XEd!==void 0)return XEd;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return XEd=H},{mode:1});var r4M;var M4=function(){var H=_.X.apply(this,arguments)||this;H.bigImage=!1;return H};
_.G(M4,_.X);_.JJ.Object.defineProperties(M4.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.placeholderImageUrl}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],M4.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],M4.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],M4.prototype,"bigImage",void 0);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],M4.prototype,"placeholderImageUrl",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],M4);
_.B(M4,"ytd-empty-product-shelf-renderer",function(){if(r4M!==void 0)return r4M;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return r4M=H},{mode:1});var BKV;var q4=function(){var H=_.X.apply(this,arguments)||this;H.itemStyle="link-item";H.watchMetadataRefresh=!1;H.skinnyMode=!1;H.metaPanel=!1;H.inStructuredDescription=!1;H.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};H.updateOnResizeDebouncer=null;return H};
_.G(q4,_.X);_.F=q4.prototype;_.F.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.F.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"}}}}};
_.F.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.F.attachVEs=function(H){H.trackingParams&&_.lJ().graftServerVe(H.trackingParams)};
_.F.handleUpdateMerchShelfAction=function(H){var C=this,S=_.e(H.updateMerchandiseShelfAction.merchandiseShelf,_.Zod);S&&(S.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){C.attachVEs(S);C.data=S},Number(S.renderDelayMs))):(this.attachVEs(S),this.data=S))};
_.F.updateOnResize=function(){if(this.JSC$16886_scrollContainer!==void 0&&this.JSC$16886_scrollContainer.clientWidth!==0&&this.items!==void 0){var H=this.JSC$16886_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-H));this.ytdHorizontalListBehavior.reposition_();var C;switch((C=this.data)==null?void 0:C.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var S,
w;((S=this.data)==null?void 0:(w=S.items)==null?void 0:w.length)===1?this.itemStyle="cta-item":this.itemStyle=H>=740?"large-item":"small-item"}}};
_.F.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.vW(this.updateOnResizeDebouncer,_.qZ.after(100),this.updateOnResize)};
q4.prototype.debouncedUpdateOnResize=q4.prototype.debouncedUpdateOnResize;q4.prototype.dataChanged=q4.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],q4.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],q4.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.pT.YtdHorizontalListBehavior),_.K("design:type",Object)],q4.prototype,"ytdHorizontalListBehavior",void 0);
_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],q4.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],q4.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],q4.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],q4.prototype,"itemStyle",void 0);_.D([_.V({value:6}),_.K("design:type",Number)],q4.prototype,"initialCount",void 0);
_.D([_.V({value:"data.items"}),_.K("design:type",String)],q4.prototype,"itemsPath",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],q4.prototype,"watchMetadataRefresh",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],q4.prototype,"skinnyMode",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],q4.prototype,"metaPanel",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],q4.prototype,"inStructuredDescription",void 0);
_.D([_.lA("#items"),_.K("design:type",HTMLDivElement)],q4.prototype,"items",void 0);_.D([_.lA("#scroll-container"),_.K("design:type",HTMLDivElement)],q4.prototype,"JSC$16886_scrollContainer",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],q4.prototype,"dataChanged",null);_.D([_.Gz("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],q4.prototype,"debouncedUpdateOnResize",null);
_.D([_.h({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],q4);
_.B(q4,"ytd-merch-shelf-renderer",function(){if(BKV!==void 0)return BKV;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return BKV=H},{mode:2});var DSi;var TQ=function(){var H=_.X.apply(this,arguments)||this;H.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 H};
_.G(TQ,_.X);_.F=TQ.prototype;
_.F.addBackstagePostAction=function(H){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(H=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",H))&&(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:H}):this.set("data.contents",[{backstagePostThreadRenderer:H}]))};
_.F.addBackstageCommentAction=function(H){var C=this.get("addBackstageCommentAction.parentId",H);H=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",H);if(C&&H){C=this.postIdToIndices(C);for(var S=0;S<C.length;S++){var w=C[S];if(w<0)break;w="data.contents."+w+".backstagePostThreadRenderer.comments";this.get(w)&&(this.get(w+".backstageCommentsRenderer.contents")&&this.push(w+".backstageCommentsRenderer.contents",{commentThreadRenderer:H}),this.get(w+".backstageCommentsRenderer.teaserContents")?
this.push(w+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:H}):this.set(w+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:H}]))}}};
_.F.addBackstageReplyAction=function(H){var C=this.get("addBackstageReplyAction.parentId",H);H=this.get("addBackstageReplyAction.renderer.commentRenderer",H);C&&H&&this.setCreatorReply(C,H)};
_.F.banAuthorAction=function(H){var C=this.get("banAuthorAction.commentId",H);C&&(H=this.get("banAuthorAction.parentCommentId",H)||this.getParentPostId(C),this.removeFromStream(C,H))};
_.F.hideReportedCommentAction=function(H){var C=this.get("hideReportedCommentAction.commentId",H);C&&((H=this.get("hideReportedCommentAction.parentCommentId",H))||(H=this.getParentPostId(C)),this.removeFromStream(C,H))};
_.F.replaceBackstageCommentAction=function(H){var C=this.get("replaceBackstageCommentAction.commentId",H),S=this.get("replaceBackstageCommentAction.parentId",H);H=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",H);if(C&&S&&H){S=this.postIdToIndices(S);for(var w=0;w<S.length;w++){var A=S[w];if(A<0)break;var J=this.commentIdToIndex(C,A,!1);if(J>=0){var c=this.get("data.contents."+A+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+J+".commentThreadRenderer.replies.commentRepliesRenderer");
c&&(H.replies={commentRepliesRenderer:c});this.splice("data.contents."+A+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",J,1,{commentThreadRenderer:H})}J=this.commentIdToIndex(C,A,!0);if(J>=0){if(c=this.get("data.contents."+A+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(J+".commentThreadRenderer.replies.commentRepliesRenderer")))H.replies={commentRepliesRenderer:c};this.splice("data.contents."+A+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
J,1,{commentThreadRenderer:H})}}}};
_.F.replaceBackstagePostAction=function(H){var C=this.get("replaceBackstagePostAction.itemId",H);if(C){C=this.postIdToIndices(C);for(var S=0;S<C.length;S++){var w=C[S];if(w<0)break;var A=this.getPostRendererType(w),J=this.get("replaceBackstagePostAction.renderer."+A,H);if(!J&&A!=="sharedPostRenderer")break;var c=!1;J||(c=!0,J=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",H));if(!J)break;var Y={};c?(_.rC(Y,OhU,J),this.set("data.contents."+w+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
Y)):(_.rC(Y,new _.mi(A),J),this.set("data.contents."+w+".backstagePostThreadRenderer.post",Y))}}};
_.F.replaceBackstageReplyAction=function(H){var C=this.get("replaceBackstageReplyAction.replyId",H),S=this.get("replaceBackstageReplyAction.parentId",H);H=this.get("replaceBackstageReplyAction.renderer.commentRenderer",H);C&&H&&S&&this.setCreatorReply(S,H)};
_.F.removeCommentAction=function(H){var C=this.get("removeCommentAction.commentId",H);if(C){var S=this.get("removeCommentAction.parentCommentId",H);S&&this.get("removeCommentAction.isCreatorReply",H)?this.setCreatorReply(S,void 0):(S||(S=this.getParentPostId(C)),this.removeFromStream(C,S))}};
_.F.setCreatorReply=function(H,C){var S=this.getParentPostId(H);if(S){S=this.postIdToIndices(S);for(var w=0;w<S.length;w++){var A=S[w];if(A<0)break;var J=this.commentIdToIndex(H,A,!1);if(J>=0){var c="data.contents."+A+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+J;J=c+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";c+=".commentThreadRenderer.replies";C==void 0?(this.set(c,{}),this.set(J,!1)):(this.set(c,{commentRepliesRenderer:{teaserContents:[{commentRenderer:C}]}}),
this.set(c+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(J,!0))}J=this.commentIdToIndex(H,A,!0);J>=0&&(J="data.contents."+A+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+J,A=J+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",J+=".commentThreadRenderer.replies",C==void 0?(this.set(J,{}),this.set(A,!1)):(this.set(J,{commentRepliesRenderer:{teaserContents:[{commentRenderer:C}]}}),this.set(A,!0)))}}};
_.F.removeFromStream=function(H,C){if(C){C=this.postIdToIndices(C);for(var S=0;S<C.length;S++){var w=C[S];if(w<0)break;var A=this.commentIdToIndex(H,w,!1);A>=0&&this.splice("data.contents."+w+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",A,1);A=this.commentIdToIndex(H,w,!0);A>=0&&this.splice("data.contents."+w+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",A,1);w="data.contents."+w+".backstagePostThreadRenderer.post.backstagePostRenderer";
A=w+".backstageAttachment.pollRenderer.votedCommentId";this.get(A)===H&&(this.set(A,null),this.set(w+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(C=this.postIdToIndices(H).reverse(),S=0;S<C.length;S++){w=C[S];if(w<0)break;A=this.getPostRendererType(w);var J=this.get("backstagePostThreadRenderer.post."+A,this.data.contents[w]);J.postId===H?this.splice("data.contents",w,1):A==="sharedPostRenderer"&&this.set("data.contents."+w+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);J.scheduledPublishTimeSec&&_.q3(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.F.postIdToIndices=function(H){for(var C=[],S=0;S<this.data.contents.length;S++){var w=this.getPostRendererType(S);this.get("backstagePostThreadRenderer.post."+w+".postId",this.data.contents[S])===H&&C.push(S);if(w==="sharedPostRenderer"){var A=this.get("backstagePostThreadRenderer.post."+w+".originalPost.backstagePostRenderer.postId",this.data.contents[S]);w=this.get("backstagePostThreadRenderer.post."+w+".originalPost.postRenderer.postId",this.data.contents[S]);A!==H&&w!==H||C.push(S)}}return C};
_.F.commentIdToIndex=function(H,C,S){if(C<0)return-1;var w,A,J,c,Y=_.e((w=this.data)==null?void 0:(A=w.contents)==null?void 0:(J=A[C])==null?void 0:(c=J.backstagePostThreadRenderer)==null?void 0:c.comments,VQ7);return(C=S?Y==null?void 0:Y.teaserContents:Y==null?void 0:Y.contents)&&C.length?C.findIndex(function(M){return _.e(M,cy7).comment.commentRenderer.commentId===H}):-1};
_.F.getParentPostId=function(H){H=H.split(".");if(H[1])return H[0]};
_.F.getPostRendererType=function(H){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[H])?"sharedPostRenderer":"backstagePostRenderer"};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],TQ.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],TQ.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],TQ.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,value:_.E("enable_community_page_on_desktop")}),_.K("design:type",Boolean)],TQ.prototype,"useSmallerPostContainer",void 0);
_.D([_.h({disableElementRegistration:!0,is:"ytd-backstage-items"})],TQ);
_.B(TQ,"ytd-backstage-items",function(){if(DSi!==void 0)return DSi;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return DSi=
H},{mode:1});var KVb;var tl1={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_POSTS_TAB_COMMUNITY_ENABLEMENT_NUDGE:70,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100},mo=function(){var H=_.X.apply(this,arguments)||this;H.disablePrescanVisibility=!0;H.canScheduleJobs=!0;H.engagementPanel=!1;H.hidePanelButton=!1;H.isWatchGrid=
!1;H.hasShownSubscribersOnlyDisclaimer=!1;H.actionMap={"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"};H.TEST_ONLY=void 0;return H};
_.G(mo,_.X);_.F=mo.prototype;_.F.created=function(){this.initCommentsCsi_();_.E("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_");_.E("web_comment_threading_scroll_on_collapse")&&(this.actionMap["yt-scroll-to-comment-element"]="handleScrollToCommentElement_")};
_.F.contentsChanged_=function(){var H;(H=this.data)!=null&&H.contents&&this.tickForCommentsTimer_("cml")};
_.F.headerChanged_=function(){var H;(H=this.data)!=null&&H.header&&this.tickForCommentsTimer_("cmhl")};
_.F.initCommentsCsi_=function(){_.BH("wn_comments");var H=_.Dg();H&&_.nL({clientScreenNonce:H},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.F.createCommentAction_=function(H){H=_.hb.unsafeClone(H);var C,S;if(H=(C=_.e(H,C0Y))==null?void 0:(S=C.contents)==null?void 0:S.commentThreadRenderer){var w,A,J,c,Y,M;!this.isBackstage&&((w=this.data)==null?0:(A=w.header)==null?0:(J=A.commentsHeaderRenderer)==null?0:(c=J.createRenderer)==null?0:(Y=c.commentSimpleboxRenderer)==null?0:(M=Y.zeroStep)==null?0:M.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var m,
W,y;this.isBackstage&&_.e((m=this.data)==null?void 0:(W=m.header)==null?void 0:(y=W.commentsHeaderRenderer)==null?void 0:y.zeroStateMessage,XC1)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(H)}};
_.F.doReplyInsert_=function(H,C,S,w){w?this.splice(H,w,0,C):this.push(H,C)};
_.F.getRepliesPath_=function(H){return"data.contents."+H+".commentThreadRenderer.replies"};
_.F.getRepliesContentsPath_=function(H,C){H=this.getRepliesPath_(H);return C?H+".commentRepliesRenderer.teaserContents":H+".commentRepliesRenderer.contents"};
_.F.showSubscribersOnlyDisclaimer_=function(H){(H=H.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(H=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(H))&&(_.q3(this.hostElement,"yt-open-popup-action",[H,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.F.createCommentReplyAction_=function(H){H=_.hb.unsafeClone(H);var C=_.e(H,S2d);if(H=C==null?void 0:C.contents){var S=this.commentIdToIndex_(C==null?void 0:C.parentCommentId);if(!(S<0)){var w=this.getRepliesPath_(S);if(this.get(w)){C=C.replyToCommentId;w=this.getRepliesContentsPath_(S,!1);if(this.get(w)){var A=this.get(w).length,J=w+"."+(A-1)+".continuationItemRenderer";this.get(J+".button")?(J=this.replyIdToIndex_(C,S,!1),this.doReplyInsert_(w,H,J,A-1)):this.get(J)||(A=this.replyIdToIndex_(C,S,
!1),this.doReplyInsert_(w,H,A,null))}w=this.getRepliesContentsPath_(S,!0);this.get(w)?(S=this.replyIdToIndex_(C,S,!0),(!C||S>=0)&&this.doReplyInsert_(w,H,S,null)):this.set(w,[H])}else this.set(w,{commentRepliesRenderer:{teaserContents:[H]}})}}};
_.F.hideReportedCommentAction_=function(H){var C=_.e(H,eLd);if(H=C==null?void 0:C.commentId)(C=this.get("parentCommentId",C))||(C=this.getParentCommentId_(H)),this.remove_(H,C)};
_.F.getParentCommentId_=function(H){H=H.split(".");if(H[1])return H[0]};
_.F.removeCommentAction_=function(H){var C=_.e(H,Jyi);if(H=C==null?void 0:C.commentId)C=(C==null?void 0:C.parentCommentId)||this.getParentCommentId_(H),this.remove_(H,C)};
_.F.pinCommentAction_=function(H){H=_.hb.unsafeClone(H);var C=_.e(H,Ay7);C!=null&&C.commentId&&(H=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",H))&&(this.remove_(C.commentId),this.insert_(H,!0))};
_.F.unpinCommentAction_=function(H){H=_.hb.unsafeClone(H);H=_.e(H,Fhi);if(H!=null&&H.commentId){var C,S,w=(C=H.actionResult)==null?void 0:(S=C.update)==null?void 0:S.commentThreadRenderer;w&&(this.remove_(H.commentId),this.insert_(w))}};
_.F.banAuthorAction_=function(H){var C=_.e(H,iqP);C!=null&&C.commentId&&(H=C.commentId,C=C.parentCommentId||this.getParentCommentId_(H),this.remove_(H,C))};
_.F.handleScrollToCommentElement_=function(H){this.nearestScrollParent||(this.nearestScrollParent=AL0(H));this.isCommentVisibleInScrollParent(H)||H.scrollIntoView({behavior:"smooth",block:"start"})};
_.F.isCommentVisibleInScrollParent=function(H){if(!this.nearestScrollParent)return!1;H=H.getBoundingClientRect();var C=this.nearestScrollParent===document.documentElement?{top:68,bottom:window.innerHeight}:this.nearestScrollParent.getBoundingClientRect();return H.top>=C.top&&H.bottom<=C.bottom};
_.F.commentIdToIndex_=function(H){var C;return H&&(C=this.data)!=null&&C.contents?this.data.contents.findIndex(function(S){S=S.commentThreadRenderer;var w;return H===((S==null?void 0:S.commentViewModel)&&((w=_.e(S.commentViewModel,mLM))==null?void 0:w.commentId))}):-1};
_.F.insert_=function(H,C){C=C===void 0?!1:C;var S,w;if((S=this.data)==null?0:(w=S.contents)==null?0:w.some(function(J){return!!J.commentThreadRenderer}))for(S=0,w=this.data.contents.length;S<w;S++){var A=this.data.contents[S].commentThreadRenderer;
if(tl1[H.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=tl1[A.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){C&&tl1[H.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===tl1[A.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",S,1,{commentThreadRenderer:H}):this.splice("data.contents",S,0,{commentThreadRenderer:H});break}}else this.set("data.contents",[{commentThreadRenderer:H}])};
_.F.doReplyRemove_=function(H,C,S){H=this.replyIdToIndex_(H,C,S);H<0||(C=this.getRepliesContentsPath_(C,S),this.splice(C,H,1))};
_.F.remove_=function(H,C){C=this.commentIdToIndex_(C);C<0?(C=this.commentIdToIndex_(H),C<0||this.splice("data.contents",C,1)):_.E("web_delhi_comment_threads")||(this.doReplyRemove_(H,C,!1),this.doReplyRemove_(H,C,!0))};
_.F.replyIdToIndex_=function(H,C,S){if(C<0)return-1;C=this.getRepliesContentsPath_(C,S);C=this.get(C);if(!C||!C.length)return-1;S=0;for(var w=C.length;S<w;S++){var A=void 0,J=void 0;if(((A=C[S])==null?void 0:(J=A.commentViewModel)==null?void 0:J.commentId)===H)return S}return-1};
_.F.tickForCommentsTimer_=function(H){_.KL(H,void 0,"wn_comments")};
_.F.reloadComments_=function(H){H=_.e(H,q2V);_.e(H==null?void 0:H.command,_.UU)&&_.WH(this.hostElement,[H==null?void 0:H.command])};
_.JJ.Object.defineProperties(mo.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var H,C,S;return!!((H=this.data)==null?0:(C=H.header)==null?0:(S=C.commentsHeaderRenderer)==null?0:S.isBackstageContent)}}});
_.JJ.Object.defineProperties(mo,{template:{configurable:!0,enumerable:!0,get:function(){if(KVb===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);KVb=H}H=KVb;return H}}});
mo.prototype.showSubscribersOnlyDisclaimer_=mo.prototype.showSubscribersOnlyDisclaimer_;mo.prototype.headerChanged_=mo.prototype.headerChanged_;mo.prototype.contentsChanged_=mo.prototype.contentsChanged_;_.D([_.v(_.OY),_.K("design:type",Object)],mo.prototype,"ytdOpenPopupBehavior",void 0);_.D([_.v(_.BoU.YtHostElementBehavior),_.K("design:type",Object)],mo.prototype,"ytHostElementBehavior",void 0);
_.D([_.v(_.fT.YtPlayerListenerBehavior),_.K("design:type",Function)],mo.prototype,"ytPlayerListenerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],mo.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],mo.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],mo.prototype,"data",void 0);
_.D([_.V({reflectToAttribute:!0}),_.l("data.header.commentsHeaderRenderer.isBackstageContent"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],mo.prototype,"isBackstage",null);_.D([_.V(),_.K("design:type",Object)],mo.prototype,"disablePrescanVisibility",void 0);_.D([_.V(),_.K("design:type",Object)],mo.prototype,"canScheduleJobs",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],mo.prototype,"engagementPanel",void 0);
_.D([_.V(),_.K("design:type",Object)],mo.prototype,"hidePanelButton",void 0);_.D([_.V(),_.K("design:type",Object)],mo.prototype,"isWatchGrid",void 0);_.D([_.V(),_.K("design:type",Object)],mo.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);_.D([_.fx("data.contents"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mo.prototype,"contentsChanged_",null);
_.D([_.fx("data.header"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mo.prototype,"headerChanged_",null);_.D([_.Gz("yt-show-subscribers-only-disclaimer"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],mo.prototype,"showSubscribersOnlyDisclaimer_",null);_.D([_.h({is:"ytd-comments"})],mo);var Wy=function(){return _.oZ.apply(this,arguments)||this};
_.G(Wy,_.oZ);_.F=Wy.prototype;_.F.bindIf=function(H,C,S){return H?C:S};
_.F.bindIfDefined=function(H,C){return H!==void 0?H:C};
_.F.booleanString=function(H){return(!!H).toString()};
_.F.equals=function(){for(var H=_.tc.apply(0,arguments),C=H[0],S=1;S<H.length;S++)if(C!=H[S])return!1;return!0};
_.F.isGreaterThan=function(H,C){return H>C};
_.F.isLessThan=function(H,C){return H<C};
_.F.logicalAND=function(){for(var H=_.tc.apply(0,arguments),C=!!H[0],S=1;S<H.length;S++)C=C&&!!H[S];return C};
_.F.logicalOR=function(){for(var H=_.tc.apply(0,arguments),C=!!H[0],S=1;S<H.length;S++)C=C||!!H[S];return C};
_.F.toBool=function(H){return!!H};
Wy.prototype.toBool=Wy.prototype.toBool;Wy.prototype.logicalOR=Wy.prototype.logicalOR;Wy.prototype.logicalAND=Wy.prototype.logicalAND;Wy.prototype.isLessThan=Wy.prototype.isLessThan;Wy.prototype.isGreaterThan=Wy.prototype.isGreaterThan;Wy.prototype.equals=Wy.prototype.equals;Wy.prototype.booleanString=Wy.prototype.booleanString;Wy.prototype.bindIfDefined=Wy.prototype.bindIfDefined;Wy.prototype.bindIf=Wy.prototype.bindIf;_.D([_.Od()],Wy);_.LVd=[Wy.prototype];var g5d;var USd;var yP=function(){return _.X.apply(this,arguments)||this};
_.G(yP,_.X);yP.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
yP.prototype.onBackIconTap_=function(){window.history.back()};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],yP.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],yP.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],yP.prototype,"data",void 0);_.D([_.Lx({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],yP);
_.B(yP,"yt-header-with-back-renderer",function(){if(USd===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;g5d===void 0&&(g5d=document.createElement("template"));var w=g5d;S.call(C,w.content.cloneNode(!0),H.content.firstChild);USd=H}H=USd;return H},{mode:2});var RO1;var IdM;var N4=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return H};
_.G(N4,_.X);_.F=N4.prototype;_.F.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.F.onDarkModeToggledAction=function(H){H!==this.isDarkTheme&&(this.isDarkTheme=H,this.setUrl())};
_.F.dataChanged=function(){var H=this;if(this.data){var C=this.setUrl();C&&_.zl({destination:window,iframe:this.iframe,origin:_.MhV(C.toString()),channelName:"yt-iframe",onMessage:function(S){(S=H.getCommunicationCommand(S.data))&&H.ytComponentBehavior.resolveCommand(S)},
onEstablished:function(){}})}};
_.F.setUrl=function(){if(this.data&&this.data.iframeUrl){var H=_.B9(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(H)return _.He(this.iframe,H),H}};
_.F.getCommunicationCommand=function(H){var C;if((C=this.data)!=null&&C.onCommunicationCommandsMap){C=this.data.onCommunicationCommandsMap.find(function(A){return A.key===H});
if(C==null?0:C.value)return C==null?void 0:C.value;try{var S=Ghi(_.iY(H)),w=this.data.onCommunicationCommandsMap.find(function(A){return A.key===(S==null?void 0:S.getMethodName())});
if(w==null?0:w.value)return w==null?void 0:w.value}catch(A){}}};
N4.prototype.dataChanged=N4.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],N4.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],N4.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],N4.prototype,"actionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],N4.prototype,"data",void 0);
_.D([_.V({value:!1}),_.K("design:type",Boolean)],N4.prototype,"isDarkTheme",void 0);_.D([_.lA("#iframe"),_.K("design:type",HTMLIFrameElement)],N4.prototype,"iframe",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],N4.prototype,"dataChanged",null);_.D([_.Lx({is:"yt-iframe-renderer",disableElementRegistration:!0})],N4);
_.B(N4,"yt-iframe-renderer",function(){if(IdM===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;RO1===void 0&&(RO1=document.createElement("template"));var w=RO1;S.call(C,w.content.cloneNode(!0),H.content.firstChild);IdM=H}H=IdM;return H},{mode:2});_.bc=function(H){_.Op.call(this);this.callback=H;this.bezier=new ZuP(0,0,.4,0,.2,1,1,1);this.delay=new _.cM(this.next,window,this);this.JSC$16927_animating=!1;_.Nx(this,this.delay)};
_.G(_.bc,_.Op);_.bc.prototype.isAnimating=function(){return this.JSC$16927_animating};
_.bc.prototype.start=function(H,C,S){this.config={from:H,to:C,duration:S,startTime:(0,_.Zt)()};this.JSC$16927_animating=!0;this.next()};
_.bc.prototype.stop=function(){this.delay.stop();this.JSC$16927_animating=!1;this.config=void 0};
_.bc.prototype.next=function(){if(this.config){var H=this.config,C=H.from,S=H.to,w=H.duration;H=H.startTime;var A=(0,_.Zt)()-H;H=this.bezier;w=YUb(H,A/w);if(w==0)H=H.y0;else if(w==1)H=H.y3;else{A=pi(H.y0,H.y1,w);var J=pi(H.y1,H.y2,w);H=pi(H.y2,H.y3,w);A=pi(A,J,w);J=pi(J,H,w);H=pi(A,J,w)}H=_.$C(H,0,1);this.callback(C+(S-C)*H);H<1?this.delay.start():this.JSC$16927_animating=!1}};_.Eh=new _.W4("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var ad1={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},Hz_=function(H,C,S,w){_.Op.call(this);this.JSC$16938_miniAppId=H;this.localReleaseId=C;this.derivedDeviceInterface=S;this.isForeground=w;this.JSC$16938_playNonceResolver=new _.N5;this.playPingTimerId=NaN;this.playPingIntervalMs=_.YB("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.YB("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.E("enable_displaying_ppn");this.JSC$16938_miniAppClientDataProvider=_.JA().resolve(_.Eh);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;xS7(this);var A=setTimeout(function(){_.Bn(new _.X0("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$16938_playNonceResolver.promise.then(function(){clearTimeout(A)})};
_.G(Hz_,_.Op);var Cni=function(H,C){H.JSC$16938_playNonceResolver.resolve(C!=null?C:nD(8));H.enableDisplayingPpn&&iz1(H).then(function(S){H.JSC$16938_miniAppClientDataProvider.clientData.set("post_play_nonce",S)})},iz1=function(H){return _.z(function(C){return C.nextAddress==1?C.yield(H.JSC$16938_playNonceResolver.promise,2):C.return(C.yieldResult)})},xS7=function(H){var C,S;
_.z(function(w){if(w.nextAddress==1)return w.yield(H.JSC$16938_playNonceResolver.promise,2);C=w.yieldResult;S={miniAppInfo:{externalPostId:H.JSC$16938_miniAppId,localReleaseId:H.localReleaseId,postPlayNonce:C,derivedDeviceInterface:H.derivedDeviceInterface}};_.nL(S);_.oT(w)})},sfM=function(H){H.state!==0?_.Bn(new _.X0("[MiniAppPlayLogger] recordPlayStart failed with state "+ad1[H.state])):(H.state=1,ez(H,"ma_cl"),uc(H,"PLAY_EVENT_TYPE_PLAY_START"),SBM(H))},jfn=function(H){H.isForeground=!1;
uc(H,"PLAY_EVENT_TYPE_PLAY_PAUSE")},wp1=function(H){H.state!==1&&H.state!==2?_.Bn(new _.X0("[MiniAppPlayLogger] recordPlayEnd failed with state "+ad1[H.state])):(H.state=3,window.clearInterval(H.playPingTimerId),H.playPingTimerId=NaN,Qxp(),uc(H,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},AF7=function(H,C){H.state===2&&H.gameReady&&(H.firstClickRecorded?Date.now()-H.clickRecordedMs<H.playClickIntervalMs||(H.clickRecordedMs=Date.now(),uc(H,"PLAY_EVENT_TYPE_PLAY_CLICK")):C&&(ez(H,"ma_fua"),uc(H,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),H.firstClickRecorded=!0,H.clickRecordedMs=Date.now()))};
Hz_.prototype.logError=function(H){var C=this,S;_.z(function(w){if(w.nextAddress==1)return H.metadata.externalPostId=C.JSC$16938_miniAppId,S=H.metadata,w.yield(Promise.race([C.JSC$16938_playNonceResolver.promise,new Promise(function(A){setTimeout(function(){A("")},3E4)})]),2);
S.postPlayNonce=w.yieldResult;H.metadata.localReleaseId=C.localReleaseId;H.loggingError.level="WARNING";_.nC(H.loggingError,H.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:H.metadata});_.oT(w)})};
var JF7=function(H,C,S,w){var A,J,c,Y,M,m;_.z(function(W){if(W.nextAddress==1)return W.yield(H.JSC$16938_playNonceResolver.promise,2);A=W.yieldResult;J={externalPostId:H.JSC$16938_miniAppId,localReleaseId:H.localReleaseId,postPlayNonce:A,sdkVersion:S,api:C};w!==void 0&&(J.networkRequestsMeasurement={networkRequests:_.YJ(w,1),cachedRequests:_.YJ(w,2),transferredBytes:_.YJ(w,3)},(c=w)==null?0:_.uP(c,NJ,6))&&(J.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((Y=_.zf(w,
NJ,6))==null?void 0:kv(Y,1))||"0",cacheHits:((M=_.zf(w,NJ,6))==null?void 0:kv(M,2))||"0",cachedBytes:((m=_.zf(w,NJ,6))==null?void 0:kv(m,3))||"0"});_.kI("miniAppSdkUsage",J);_.oT(W)})},Zzi=function(H,C,S){var w,A,J,c,Y,M,m,W,y,N,b,u,O,d,p,k;
_.z(function(R){if(R.nextAddress==1)return R.yield(H.JSC$16938_playNonceResolver.promise,2);w=R.yieldResult;A={externalPostId:H.JSC$16938_miniAppId,localReleaseId:H.localReleaseId,postPlayNonce:w,sdkVersion:S,measurementWindow:{startTimestampMs:String(dO(C,1)),endTimestampMs:String(dO(C,2))},frameRate:{averageFrameTimeDeltaMs:Pu(C,3),averageFrameIdleTimeMs:Pu(C,4)}};_.uP(C,bt,5)&&(A.networkRequests={networkRequests:(J=lt(C))==null?void 0:_.YJ(J,1),cachedRequests:(c=lt(C))==null?void 0:_.YJ(c,2),transferredBytes:(Y=
lt(C))==null?void 0:_.YJ(Y,3),sameOriginStatusCodeToCounts:FfV((M=lt(C))==null?void 0:d9U(M,4)),crossOriginStatusCodeToCounts:FfV((m=lt(C))==null?void 0:d9U(m,5))},(W=lt(C))==null?0:_.uP(W,NJ,6))&&(A.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((y=lt(C))==null?void 0:(N=_.zf(y,NJ,6))==null?void 0:kv(N,1))||"0",cacheHits:((b=lt(C))==null?void 0:(u=_.zf(b,NJ,6))==null?void 0:kv(u,2))||"0",cachedBytes:((O=lt(C))==null?void 0:(d=_.zf(O,NJ,6))==null?void 0:kv(d,3))||"0"});_.uP(C,
GlP,7)&&(A.gameCapture={averageFrameTimeDeltaMs:(p=_.zf(C,GlP,7))==null?void 0:Pu(p,1),averageFrameIdleTimeMs:(k=_.zf(C,GlP,7))==null?void 0:Pu(k,2)});_.kI("miniAppPerformanceMetrics",A);_.oT(R)})},cF7=function(H,C){var S,w;
return _.z(function(A){if(A.nextAddress==1)return A.yield(H.JSC$16938_playNonceResolver.promise,2);S=A.yieldResult;w={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:H.JSC$16938_miniAppId,postPlayNonce:S,miniAppReleaseId:H.localReleaseId},derivedDeviceInterface:H.derivedDeviceInterface,adTriggerType:C,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.kI("miniAppAdEvent",w);_.oT(A)})};
Hz_.prototype.disposeInternal=function(){_.Op.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var uc=function(H,C,S,w){S=S===void 0?{}:S;w=w===void 0?!1:w;var A,J,c,Y;_.z(function(M){if(M.nextAddress==1)return A=H.isForeground,J=H.beforeReady,M.yield(H.JSC$16938_playNonceResolver.promise,2);c=M.yieldResult;Y={externalPostId:H.JSC$16938_miniAppId,localReleaseId:H.localReleaseId,derivedDeviceInterface:H.derivedDeviceInterface,postPlayNonce:c,type:C};S.sequenceGroup=c;Y.playState=J?"PLAY_STATE_NOT_READY":A?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.kI("miniAppPlayEvent",Y,
S);w&&_.ht();_.oT(M)})},ez=function(H,C){var S;
_.z(function(w){if(w.nextAddress==1)return S=(0,_.Zt)(),w.yield(H.JSC$16938_playNonceResolver.promise,2);_.DR(C,S);_.oT(w)})},SBM=function(H){isNaN(H.playPingTimerId)&&(H.playPingTimerId=_.NE(function(){H.state!==1&&H.state!==2?_.Bn(new _.X0("[MiniAppPlayLogger] reportPlayPing failed with state "+ad1[H.state])):uc(H,"PLAY_EVENT_TYPE_PLAY_PING")},H.playPingIntervalMs))},FfV=function(H){return Array.from(H.entries()).map(function(C){var S=_.Z(C);
C=S.next().value;S=S.next().value;return{key:C,value:S}})};var YBi=function(){},zVi=function(H,C){H.showMiniAppAdCommand=C.showMiniAppAdCommand;
H.isEmbeddedInWebview=C.isEmbeddedInWebview;H.playLogger=C.playLogger},qB_=function(H,C){var S;
return _.z(function(w){if(w.nextAddress==1){if(!H.showMiniAppAdCommand||!H.isEmbeddedInWebview)return w.return(MWn(H,C));H.adResolver=new _.N5;var A=new xH;S=_.qz(A,3,C);nN(H.showMiniAppAdCommand,sFW(S));return w.yield(H.adResolver.promise,2)}return w.return(w.yieldResult)})};
YBi.prototype.onAdFinished=function(H){H=Sv7(H);var C;(C=this.adResolver)==null||C.resolve(H)};
var MWn=function(H,C){var S;return _.z(function(w){if(w.nextAddress==1)w=w.yield((S=H.playLogger)==null?void 0:cF7(S,MeZ(C)),2);else{var A=w.return;var J=new C7W;J=_.qz(J,1,2);w=A.call(w,J)}return w})};var Tbi=new _.W4("INNERTUBE_MANAGER_TOKEN");var mXd=function(){this.callbacks={}};
mXd.prototype.initialize=function(H){var C=this;this.callbacks=H;window.youtubewebview?window.youtubewebview.onmessage=function(S){Wf1(C,S)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(S){Wf1(C,S)})};
var Wf1=function(H,C){if(C.data)try{var S=Ghi(C.data);if(_.E_(_.eC(S,1))!=null){var w=axb(_.$v(S,2));switch(S.getMethodName()){case "yt-mini-app-load-audio-state":var A,J;(J=(A=H.callbacks).onAudioStateLoaded)==null||J.call(A,_.QK(w,lb(w,a4,1)));break;case "yt-mute-mini-app":var c,Y;(Y=(c=H.callbacks).onMuteMiniApp)==null||Y.call(c);break;case "yt-unmute-mini-app":var M,m;(m=(M=H.callbacks).onUnmuteMiniApp)==null||m.call(M);break;case "yt-playable-exit":var W,y;(y=(W=H.callbacks).onExit)==null||y.call(W);
break;case "yt-post-play-nonce":var N,b;(b=(N=H.callbacks).onPostPlayNonceReceived)==null||b.call(N,hC(w,2,a4));break;case "yt-confirm-exit-mini-app":var u,O;(O=(u=H.callbacks).confirmExitMiniApp)==null||O.call(u);break;case "yt-confirm-exit-mini-app-edu":var d,p;(p=(d=H.callbacks).confirmExitMiniAppEdu)==null||p.call(d);break;case "yt-benchmarking-response":var k,R;(R=(k=H.callbacks).onNativeBenchmarkingMessageReceived)==null||R.call(k,hC(w,2,a4));break;case "yt-mini-app-load-3p-consent-state":var L,
t;(t=(L=H.callbacks).multiplayer3pAckStateLoaded)==null||t.call(L,_.QK(w,lb(w,a4,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var g,ii;(ii=(g=H.callbacks).exitMiniAppSeenStateLoaded)==null||ii.call(g,_.QK(w,lb(w,a4,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var FW,cZ;(cZ=(FW=H.callbacks).onNavigateToNewMiniApp)==null||cZ.call(FW);break;case "yt-game-data-available":var eZ,ND;(ND=(eZ=H.callbacks).onGameDataAvailable)==null||ND.call(eZ,hC(w,2,a4));break;case "yt-pause-mini-app":var bi,
pU;(pU=(bi=H.callbacks).onPauseMiniApp)==null||pU.call(bi);break;case "yt-resume-mini-app":var O$,R0;(R0=(O$=H.callbacks).onResumeMiniApp)==null||R0.call(O$);break;case "yt-playable-ad-finished":var m1,c7;(c7=(m1=H.callbacks).onAdFinished)==null||c7.call(m1,hC(w,2,a4))}}else _.Bn(Error("$h"))}catch(tV){_.nC(Error("ai"))}else _.Bn(Error("bi"))};var TXp=function(H){this.rpcErrorCode=H};var GQ=function(H,C,S){this.intervalMs=H;this.apiFunc=C;this.type=S;this.schedulerReady=!0};
GQ.prototype.call=function(H){var C=this,S;return _.z(function(w){if(w.nextAddress==1){if(C.type!==1&&H===C.cachedValue)return w.return();C.pendingApiRequestResolver||(C.pendingApiRequestResolver=new _.N5);S=C.pendingApiRequestResolver.promise;C.cachedValue=H;return w.yield(yF7(C),2)}return w.return(S)})};
GQ.prototype.flush=function(H){H=H===void 0?!1:H;var C=this;return _.z(function(S){return C.cachedValue===void 0?S.return():S.yield(C.apiFunc(C.cachedValue,H),0)})};
var yF7=function(H){var C,S,w;return _.z(function(A){switch(A.nextAddress){case 1:if(!H.schedulerReady||!H.pendingApiRequestResolver)return A.return();H.schedulerReady=!1;C=H.pendingApiRequestResolver;H.pendingApiRequestResolver=void 0;_.en(A,2);if(H.cachedValue===void 0){A.jumpTo(4);break}return A.yield(H.apiFunc(H.cachedValue),5);case 5:S=A.yieldResult,C.resolve(S);case 4:_.xB(A,3);break;case 2:w=_.Vx(A),C.reject(w);case 3:setTimeout(function(){return _.z(function(J){H.schedulerReady=!0;return J.yield(yF7(H),
0)})},H.intervalMs),_.oT(A)}})};var yLw=window.location.origin+"/miniapp_cloudsaves",m2D=[400,401],Nbd=_.YB("cloud_save_game_data_rate_limit_ms",3E3),eV7=function(H){var C=this;this.JSC$16982_miniAppId=H;this.loadAttempts=0;this.cloudSaveIntervalMs=Nbd;this.initialDownloadDataSucceeded=!1;this.JSC$16982_playNonceResolver=new _.N5;this.scottyUploadRateLimiter=new GQ(this.cloudSaveIntervalMs,function(S,w){return bzP(C,S,w)},2);
this.downloadDataPromise=EOd(this);this.downloadDataPromise.then(function(){C.initialDownloadDataSucceeded=!0}).catch(function(){})},u5P=function(H,C){C.then(function(S){return H.JSC$16982_playNonceResolver.resolve(S)})},GBd=function(H){return _.z(function(C){return H.cachedData===void 0?C.return(H.downloadDataPromise):C.return(H.cachedData)})},fG1=function(H,C){return _.z(function(S){H.cachedData=C;
if(!H.initialDownloadDataSucceeded)throw Error("ci");return S.yield(H.scottyUploadRateLimiter.call(C),0)})},vOM=function(){return new Promise(function(H){setTimeout(H,1E3,"")})},lGn=function(H,C){var S,w;
return _.z(function(A){if(A.nextAddress==1)return S=H.JSC$16982_miniAppId,A.yield(Promise.race([H.JSC$16982_playNonceResolver.promise,vOM()]),2);w={"X-YouTube-MiniAppId":S,"X-YouTube-PostPlayNonce":A.yieldResult};"DELEGATED_SESSION_ID"in _.hE&&Sap(C,w);return A.return(w)})},bzP=function(H,C,S){S=S===void 0?!1:S;
return _.z(function(w){return qJE()?_.E("enable_cloud_save_error_popup_after_retry")?w.return(new Promise(function(A,J){var c,Y,M,m,W;return _.z(function(y){switch(y.nextAddress){case 1:c=0,Y=!0,m=M=null;case 2:if(!(Y&&c++<2)){y.jumpTo(4);break}_.en(y,5);return y.yield(VWY(H,C,S),7);case 7:M=y.yieldResult;Y=M.ok?!1:!m2D.includes(M.status);_.xB(y,2);break;case 5:m=W=_.Vx(y);Y=WOp(m);y.jumpTo(2);break;case 4:M?M.ok?(fy(H,Nbd),A()):(fy(H,H.cloudSaveIntervalMs*2),J(Error("di`"+String(M.status),{cause:{rpcErrorCode:M.status}}))):
(fy(H,H.cloudSaveIntervalMs*2),J(m||Error("ei"))),_.oT(y)}})})):w.return(new Promise(function(A,J){var c,Y;
return _.z(function(M){if(M.nextAddress==1){if(H.JSC$16982_miniAppId==="")return J(Error("fi")),M.return();_.en(M,2);return M.yield(VWY(H,C,S),4)}if(M.nextAddress!=2)return c=M.yieldResult,c.ok?(fy(H,Nbd),A()):(fy(H,H.cloudSaveIntervalMs*2),J(Error("di`"+String(c.status),{cause:{rpcErrorCode:c.status}}))),_.xB(M,0);Y=_.Vx(M);fy(H,H.cloudSaveIntervalMs*2);J(Y);_.oT(M)})})):w.return()})},VWY=function(H,C,S){S=S===void 0?!1:S;
var w,A,J;return _.z(function(c){if(c.nextAddress==1)return w=_.QO((new TextEncoder).encode(C)),A=NXW(),c.yield(lGn(H,A),2);J=c.yieldResult;return c.return(fetch(A,{method:"POST",body:new Blob([w]),headers:J,keepalive:S}))})},EOd=function(H){var C,S;
return _.z(function(w){if(w.nextAddress==1){if(!qJE())return w.return("");if(H.JSC$16982_miniAppId==="")throw Error("fi");if(H.loadAttempts>2)return w.return(H.downloadDataPromise);_.en(w,2);return w.yield(oOY(H),4)}if(w.nextAddress!=2)return C=w.yieldResult,w.return(C);S=_.Vx(w);if(WOp(S)&&++H.loadAttempts<2)return w.return(EOd(H));throw S;})},oOY=function(H){var C,S,w,A,J;
return _.z(function(c){switch(c.nextAddress){case 1:return _.en(c,2),C=NXW(),c.yield(lGn(H,C),4);case 4:return S=c.yieldResult,c.yield(fetch(C,{method:"GET",headers:S}),5);case 5:return w=c.yieldResult,w.ok?c.yield(w.text(),6):c.return(Promise.reject(Error("gi`"+String(w.status),{cause:new TXp(w.status)})));case 6:return A=c.yieldResult,c.return((new TextDecoder).decode(_.iY(A)));case 2:return J=_.Vx(c),c.return(Promise.reject(J))}})},fy=function(H,C){H.cloudSaveIntervalMs=C;
H.scottyUploadRateLimiter.intervalMs=H.cloudSaveIntervalMs};
eV7.prototype.flush=function(){var H=this;return _.z(function(C){return H.initialDownloadDataSucceeded?C.yield(H.scottyUploadRateLimiter.flush(!0),0):C.return()})};var Oz_=fo(Gj(1),eB(1)),Xpd=fo(Gj(1),eB(3)),vy=function(H){this.callbacks=H};
_.F=vy.prototype;_.F.onAudioToggled=function(H,C){(C===void 0||C)&&_.rm("yt-mini-app-is-audio-enabled",H,2592E3)};
_.F.onPause=function(){this.onAudioToggled(!1,!1)};
_.F.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.F.returnNativeBenchmarkingMessage=function(){};
_.F.sendGameData=function(){};
_.F.sendStartGameFrameCapture=function(){};
var b_0=function(H,C,S){this.callbacks=H;var w=this;this.sdkVersion=new _.N5;this.channel=new mDd(_.zl({destination:window,iframe:C,origin:(new URL(S.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var A=lc;var J=Gj(5);var c=new YvP;c=_.rO(c,1,1E4);J=_.vV(J,4,N1d,c);A(w,J);w.onAudioToggled(w.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){w.sdkVersion.resolve("")},1E4)};
_.G(b_0,vy);_.F=b_0.prototype;_.F.onAudioToggled=function(H,C){vy.prototype.onAudioToggled.call(this,H,C===void 0?!0:C);C=lc;var S=Gj(2),w=new ZiY;H=_.TZ(w,1,H);H=_.vV(S,3,N1d,H);C(this,H)};
_.F.onPause=function(){vy.prototype.onPause.call(this);lc(this,Gj(3))};
_.F.onResume=function(){vy.prototype.onResume.call(this);lc(this,Gj(4))};
_.F.returnNativeBenchmarkingMessage=function(H){var C=lc,S=Gj(6);var w=eB(_.uP(H,AS,1)?1:2);H=_.uP(H,AS,1)?H:null;w=_.vV(w,5,ut,H);C(this,fo(S,w))};
_.F.sendGameData=function(H){var C=lc,S=Gj(7);H=_.vV(S,5,N1d,H);C(this,H)};
_.F.sendStartGameFrameCapture=function(){lc(this,Gj(9))};
var VP=function(H,C,S){var w,A,J;return _.z(function(c){if(c.nextAddress==1)return w=H.callbacks,A=w.onSdkCalled,J=C,c.yield(H.sdkVersion.promise,2);A.call(w,J,c.yieldResult,S);_.oT(c)})};
b_0.prototype.onMessage=function(){var H=this;return NuV(Vt,function(C){var S,w,A,J,c,Y,M,m,W,y,N,b,u,O,d,p,k,R,L,t,g,ii,FW,cZ,eZ,ND,bi,pU,O$,R0,m1,c7,tV,Td,Mi,fP,eo,Cr,wu,xE,En,So,qi,H3,I2,RV;return _.z(function(YM){switch(YM.nextAddress){case 1:if(!VMY(C.data))return _.Bn(Error("hi")),YM.return();S=_.p5(C.data,1);_.E("enable_iframe_message_get_type_via_fields")&&(w=C.data,S=A=_.p5(w,1));switch(S){case 8:if(C.data.hasMetadata()){var LP=H.sdkVersion,yO=LP.resolve;var lY=C.data.getMetadata();lY=_.$v(lY,
1);yO.call(LP,lY);clearTimeout(H.sdkVersionTimeoutId)}break;case 6:return YM.jumpTo(2);case 16:if(!_.Gt(C.data,e5V,14,o4))return YM.return();J=_.n5(C.data,e5V,14,o4);(Y=(c=H.callbacks).onGameFrameReceived)==null||Y.call(c,J);return YM.return();case 17:if(!_.Gt(C.data,ESb,15,o4))return YM.return();(m=(M=H.callbacks).onGameAudioReceived)==null||m.call(M,_.n5(C.data,ESb,15,o4));return YM.return();case 1:if(LP=_.n5(C.data,qvV,2,o4))switch(_.p5(LP,1)){case 1:H.callbacks.onFirstFrameReady();if(_.E("enable_network_request_logging_on_game_events")&&
_.uP(LP,bt,4)){VP(H,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.zf(LP,bt,4));break}VP(H,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(lY=(yO=H.callbacks).onGameReady)==null||lY.call(yO);if(_.E("enable_network_request_logging_on_game_events")&&_.uP(LP,bt,4)){VP(H,"MINI_APP_SDK_API_GAME_READY",_.zf(LP,bt,4));break}VP(H,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.Gt(LP,Ey,3,T17))H.callbacks.onResourceLoaded(_.n5(LP,Ey,3,T17))}return YM.return();case 3:return YM.jumpTo(3);case 4:return YM.jumpTo(4);
case 2:return YM.jumpTo(5);case 9:return YM.jumpTo(6);case 10:return H.callbacks.onClick(),YM.return();case 5:return YM.jumpTo(7);case 11:if(!_.Gt(C.data,my,9,o4))return YM.return();W=_.n5(C.data,my,9,o4);(N=(y=H.callbacks).onBenchmarkingMessageReceived)==null||N.call(y,W);LP=C.reply;yO=Gj(1);lY=eB(1);var Gd=new my;var W3=new Uint8Array(PGi(W,lb(W,jo_,6))|0);Gd=er(Gd,5,jo_,_.On(W3,!1));lY=_.vV(lY,5,ut,Gd);LP.call(C,fo(yO,lY));return YM.return();case 12:return YM.jumpTo(8);case 13:return YM.jumpTo(9);
case 15:if(!_.E("enable_open_yt_content"))return C.reply(Xpd),YM.return();if(!_.Gt(C.data,bi7,12,o4))return C.reply(fo(Gj(1),eB(2))),YM.return();LP=_.n5(C.data,bi7,12,o4);b=_.$v(LP,1);H.callbacks.onOpenYTContent(b);C.reply(Oz_);return YM.return();case 14:return YM.jumpTo(10);default:return YM.return()}YM.jumpTo(0);break;case 2:if(!_.Gt(C.data,vJ,5,o4))return YM.return();yO=C.data;LP=lb(yO,o4,5);yO=yO.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;u=kKi(yO,yO[_.A_]|0,vJ,LP)||vJ[nM$]||(vJ[nM$]=
r_7(vJ));LP=_.Za(u,WJ,1,_.cl());O=_.Z(LP);d=O.next();case 12:if(d.done){YM.jumpTo(14);break}p=d.value;k=new _.X0;k.level=_.p5(p,2)===1?"WARNING":"ERROR";R=e76(p.getSource());return YM.yield(H.sdkVersion.promise,15);case 15:L={source:R,sdkVersion:YM.yieldResult};_.s_(_.eC(p,6))!=null?(k.message=p.getMessage(),k.stack=_.$v(p,5),L.sdkErrorType=uoZ(_.p5(p,6)),_.s_(_.eC(p,7))!=null&&(L.sdkApi=GeE(_.p5(p,7)))):k.stack=void 0;g=t=void 0;(g=(t=H.callbacks).onError)==null||g.call(t,{loggingError:k,metadata:L});
d=O.next();YM.jumpTo(12);break;case 14:return YM.return();case 3:return _.en(YM,16),LP=YM.yield,yO=H.callbacks,lY=yO.onSave,Gd=_.n5(C.data,clb,4,o4),Gd=_.$v(Gd,1),LP.call(YM,lY.call(yO,Gd),18);case 18:C.reply(Oz_);_.xB(YM,17);break;case 16:return ii=_.Vx(YM),FW=r$,cZ=ii,eZ=H.callbacks,ND="MINI_APP_SDK_API_SAVE_DATA",YM.yield(H.sdkVersion.promise,19);case 19:FW(cZ,eZ,ND,YM.yieldResult),C.reply(Xpd);case 17:return YM.yield(VP(H,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return YM.return();case 4:return _.en(YM,
21),YM.yield(H.callbacks.onLoad(),23);case 23:bi=YM.yieldResult;LP=C.reply;yO=Gj(1);lY=eB(1);Gd=new clb;Gd=_.XA(Gd,1,bi);lY=_.vV(lY,3,ut,Gd);LP.call(C,fo(yO,lY));_.xB(YM,22);break;case 21:return pU=_.Vx(YM),O$=r$,R0=pU,m1=H.callbacks,c7="MINI_APP_SDK_API_LOAD_DATA",YM.yield(H.sdkVersion.promise,24);case 24:O$(R0,m1,c7,YM.yieldResult),C.reply(Xpd);case 22:return YM.yield(VP(H,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return YM.return();case 5:_.en(YM,26);H.callbacks.onSendHighScore(rS(_.n5(C.data,
vSP,3,o4).getValue()));C.reply(fo(Gj(1),eB(1)));_.xB(YM,27);break;case 26:return tV=_.Vx(YM),Td=r$,Mi=tV,fP=H.callbacks,eo="MINI_APP_SDK_API_SEND_SCORE",YM.yield(H.sdkVersion.promise,28);case 28:Td(Mi,fP,eo,YM.yieldResult),C.reply(Xpd);case 27:return YM.yield(VP(H,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return YM.return();case 6:if(!_.Gt(C.data,lsP,8,o4)){YM.jumpTo(30);break}LP=YM.yield;yO=_.n5(C.data,lsP,8,o4);yO=_.p5(yO,1);return LP.call(YM,VP(H,GeE(yO)),30);case 30:return YM.return();case 7:return LP=
C.reply,yO=Gj(1),lY=eB(1),Gd=H.callbacks.getLanguage(),lY=er(lY,4,ut,bp(Gd)),LP.call(C,fo(yO,lY)),YM.yield(VP(H,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return YM.return();case 8:if(!_.Gt(C.data,fsn,10,o4))return YM.return();Cr=_.n5(C.data,fsn,10,o4);wu=H.callbacks;xE=wu.onSdkPerformanceUpdate;return YM.yield(H.sdkVersion.promise,33);case 33:return xE.call(wu,Cr,YM.yieldResult),YM.return();case 9:LP=C.data;yO=lb(LP,o4,11);if(_.E_(_.eC(LP,yO))==null)return C.reply(fo(Gj(1),eB(2))),YM.return();
En=hC(C.data,11,o4);H.callbacks.onShareInviteCode(En);C.reply(Oz_);return YM.yield(VP(H,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return YM.return();case 10:if(_.Gt(C.data,FJn,13,o4)){YM.jumpTo(35);break}return YM.yield(H.callbacks.onShowMiniAppAd(2),36);case 36:return So=YM.yieldResult,C.reply(fo(Gj(1),WJ1(So))),YM.yield(VP(H,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return YM.return();case 35:LP=_.n5(C.data,FJn,13,o4);a:switch(_.p5(LP,1)){case 1:LP={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:LP={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:LP={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}qi=LP;H3=qi.adType;I2=qi.sdkApi;LP=YM.yield;yO=H.callbacks;lY=yO.onShowMiniAppAd;Gd=_.n5(C.data,FJn,13,o4);Gd=_.$v(Gd,2);return LP.call(YM,lY.call(yO,H3,Gd||void 0),38);case 38:return RV=YM.yieldResult,C.reply(fo(Gj(1),WJ1(RV))),YM.yield(VP(H,I2),39);case 39:return YM.return()}})})};
var lc=function(H,C){_.z(function(S){H.channel.send(C);_.oT(S)})},BQ=function(H,C,S){this.callbacks=H;
var w=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;H=I4E(C,(new URL(S.toString())).origin);this.gameSnacks=new Q01(H);this.gameSnacks.page.onReady(function(){w.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){w.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var A,J;(J=(A=w.callbacks).onGameReady)==null||J.call(A)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(A,J){try{w.callbacks.onSendHighScore(J)}catch(c){r$(c,w.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(A,J){var c;return _.z(function(Y){if(Y.nextAddress==1)return _.en(Y,2),Y.yield(w.callbacks.onSave(w.decoder.decode(J)),4);if(Y.nextAddress!=2)return _.xB(Y,0);c=_.Vx(Y);r$(c,w.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return Y.return()})});
this.gameSnacks.storage.onLoad(function(){var A,J;return _.z(function(c){if(c.nextAddress==1)return _.en(c,2),c.yield(w.callbacks.onLoad(),4);if(c.nextAddress!=2)return A=c.yieldResult,c.return(w.encoder.encode(A));J=_.Vx(c);r$(J,w.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return c.return(w.encoder.encode(""))})});
this.gameSnacks.init()};
_.G(BQ,vy);BQ.prototype.onAudioToggled=function(H,C){vy.prototype.onAudioToggled.call(this,H,C===void 0?!0:C);var S;(S=this.gameSnacks)==null||S.audio.update(H)};
BQ.prototype.onPause=function(){vy.prototype.onPause.call(this);var H;(H=this.gameSnacks)==null||H.game.pause()};
BQ.prototype.onResume=function(){vy.prototype.onResume.call(this);var H;(H=this.gameSnacks)==null||H.game.resume()};var Qf1=fcU,dXW=_.n(function(H){var C=H.data;var S=H.loadingProgress;var w=H.forPaused;H=_.Z(_.mB("",void 0,"LYYTdd"));var A=H.next().value,J=H.next().value;H=_.Z(_.mB(!1,void 0,"K0waae"));var c=H.next().value,Y=H.next().value,M=[],m=function(){return"transform: scaleX("+(_.ps(S)||0)+")"},W=null,y=function(){return C()&&W!==null&&W!==void 0?W:W=C().showAnniversaryAnimation?6:Qf1()};
_.d6(function(){var O;if(C().timeOutMessages&&((O=C().timeOutMessages)==null?0:O.length)){W=null;O=_.Z(M);for(var d=O.next();!d.done;d=O.next())clearTimeout(d.value);M.length=0;vk$(C().timeOutMessages,M,J,Y)}},"BNu9j");
var N=function(){return!!C().persistentErrorMessageTitle},b=function(){return S!==void 0},u=function(){return C().title};
return _.q("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.q("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.q("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.q("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var O,d=(O=C().backgroundImage)==null?void 0:O.sources,p;return(d==null?0:d.length)?"background-image: url("+((p=d[0])==null?void 0:p.url)+")":""}}),_.q("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.q(_.T,{cond:function(){return!N()&&!(w==null?0:w())},
then:function(){var O={};return _.q("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.q("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.q(_.UA,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+y()},
data:function(){var d="loading_animation_"+y();return{animationConfig:{name:d,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+d+".json",loop:!0,autoplay:!0}}}})),_.q("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.q(_.T,{cond:u,
then:function(){return _.q("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},u)}}),_.q("p",{class:_.eJ("miniAppSplashScreenViewModelTimeoutMessage",(O.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return c()},O)),
"aria-live":"polite"},A),_.q(_.T,{cond:b,then:function(){return _.q("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.q("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:m}))}})))}}),_.q(_.T,{cond:N,
then:function(){return _.q("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.q("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return C().persistentErrorMessageTitle}),_.q(_.T,{cond:function(){return!!C().persistentErrorMessageDescription},
then:function(){return _.q("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return C().persistentErrorMessageDescription})}}))}}),_.q(_.T,{cond:w,
then:function(){return _.q("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.q("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.q("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},u))}})))},"De");var Pn1=new _.W4("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var $X1=SI;SI=function(H){function C(S){if(S){var w,A;(w=S.__spec)==null||(A=w.didUnmount)==null||A.call(w);for(w=0;w<S.childNodes.length;w++)C(S.childNodes[w])}}
$X1==null||$X1(H);hx(function(){for(var S=0;S<H.length;S++)C(H[S])})};var pp1=_.n(function(H){var C=H.data;var S=H.score;var w=H.formattedScore;var A=H.onScoreChanged;var J=H.isEmbeddedInWebview;var c=_.ja("yt-mini-app-score-button-view-model"),Y=function(){var b;return _.e(C==null?void 0:(b=C())==null?void 0:b.buttonViewModel,_.qc)},M=function(){var b;
return(S==null?void 0:S())||Number(C==null?void 0:(b=C())==null?void 0:b.lastScore)||0},m=function(){var b;
return(w==null?void 0:w())||((b=Y())==null?void 0:b.title)||""},W,y=1;
if(H=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))H=Number(H),y=isNaN(H)?1:H/100;_.d6(function(){A==null||A(M());var b;var u=_.L7((b=Y())==null?void 0:b.onTap);if(u){b=_.e(u,$b7);var O,d,p;b=_.e(b==null?void 0:(O=b.panelLoadingStrategy)==null?void 0:(d=O.inlineContent)==null?void 0:(p=d.dialogViewModel)==null?void 0:p.customContent,jFW)}else b=void 0;if(O=b)O.score=m()},"Aekez");
H=_.um(function(){var b,u,O=C==null?void 0:(b=C())==null?void 0:(u=b.loggingDirectives)==null?void 0:u.trackingParams;O&&_.Bg(_.JA().resolve(_.Av),O);return!1});
_.$T(function(){if(c.value){var b=c.value.querySelector("button"),u=Y();b&&u&&lcu(b,u);_.Fy("yt-share-playable-with-high-score",function(){var O=M().toString(),d=C==null?void 0:C().onShareHighScoreCommand,p=C==null?void 0:C().highScoreShareClientParamIdentifier,k=J==null?void 0:J();d&&(k?(p=new elb,O=_.XA(p,2,O),nN(d,O.JSC$12384_serializeBinary())):p&&(_.JA().resolve(Pn1).clientParams.set(p,{miniAppClientParams:{highScore:O}}),Z_0(d,!1)))})}});
var N=function(){var b=Y();b&&(S==null?0:S())&&b.accessibilityText&&(b.accessibilityText=b.accessibilityText.replace(W,m()));W=m();return{numberValue:M(),numberText:m(),heightPx:36,fontSizeMultiplier:y,shouldAnimate:!(S==null||!S())&&!0}};
return _.q("yt-mini-app-score-button-view-model",{class:function(){var b={};return _.pn("miniAppScoreButtonViewModelHost",(b.miniAppScoreButtonViewModelIsVisible=M()!==0,b))},
el:c,"on:click":H},ftZ(!1,function(){return _.q("span",{style:"display:none;"},M)}),_.q(_.V4,{data:function(){var b;
return C==null?void 0:(b=C())==null?void 0:b.buttonViewModel}},{buttonViewModel:function(b){return _.q(_.rc,{data:b.data,
animatedTextProps:N})}}))},"Ee");var Bbd=_.n(function(H){var C,S=(C=_.BU("yt-mini-app-is-theater-mode-enabled"))!=null?C:!1,w=_.E("enable_playable_container_save_button"),A=_.E("enable_play_next_destination_page_in_toolbar");C={};return _.q("ytm-mini-app-top-bar-view-model",null,_.q("div",{class:_.eJ("yt-mini-app-top-bar-view-model",(C["yt-mini-app-top-bar-view-model--mobile"]=!1,C["yt-mini-app-top-bar-view-model--desktop"]=!0,C))},_.q("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.q(_.T,{cond:function(){var J;return!!H.data().backButtonEdu&&
!((J=H.isExitMiniAppSeen)==null?0:J.call(H))},
then:function(){return _.q(_.V4,{data:function(){return H.data().backButtonEdu}},{buttonViewModel:_.rc})},
else:function(){return _.q(_.V4,{data:function(){return H.data().backButton}},{buttonViewModel:_.rc})}}),_.q(_.T,{cond:function(){return H.data().viewAllButton&&!0},
then:function(){return _.q(_.V4,{data:function(){return H.data().viewAllButton}},{buttonViewModel:_.rc})}}),_.q(_.T,{cond:function(){return H.data().title&&!0},
then:function(){return _.q("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return H.data().title})}})),_.q("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.q(_.T,{cond:function(){var J;
return(J=H.isDesktopPlayPage)==null?void 0:J.call(H)},
then:function(){return _.q(_.F9,null,_.q(kBd,{highScoreButton:function(){return H.data().highScoreButton},
score:H.score,formattedScore:H.formattedScore,onScoreChanged:H.onScoreChanged,isEmbeddedInWebview:H.isEmbeddedInWebview}),_.q(hVV,{enableSaveButton:function(){return _.ps(w)},
saveButton:function(){return H.data().saveButton},
isSaved:H.isSaved,onSaveToggled:function(){return H.onSaveToggled}}),_.q(nOW,{menuButton:function(){return H.data().menuButton}}))},
else:function(){return _.q(_.T,{cond:function(){return!1},
then:function(){return _.q(_.V4,{data:function(){return H.data().playPageButton}},{buttonViewModel:function(J){return _.q(_.rc,{data:J.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.q(kBd,{highScoreButton:function(){return H.data().highScoreButton},
score:H.score,formattedScore:H.formattedScore,onScoreChanged:H.onScoreChanged,isEmbeddedInWebview:H.isEmbeddedInWebview})}})}})),_.q("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.q(_.V4,{data:function(){return H.data().muteButton}},{toggleButtonViewModel:function(J){var c=J.data;
return _.q(_.Jv,{data:function(){var Y,M;return Object.assign({},c(),{isToggled:(M=(Y=H.isAudioEnabled)==null?void 0:Y.call(H))!=null?M:!0})},
onToggle:H.onAudioToggled,useOutlinedIcon:!0})}}),_.q(_.V4,{data:function(){return H.data().theatreModeButton}},{toggleButtonViewModel:function(J){var c=J.data;
return _.q("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.q(_.Jv,{data:function(){return Object.assign({},c(),{isToggled:S})},
useOutlinedIcon:!0}))}}),_.q(rFP,{fullscreenButton:function(){return H.data().fullscreenButton}}),_.q(_.T,{cond:function(){return _.ps(A)&&H.data().viewAllButton&&!1},
then:function(){return _.q(_.V4,{data:function(){return H.data().viewAllButton}},{buttonViewModel:_.rc})}}),_.q(_.T,{cond:function(){var J;
return!((J=H.isDesktopPlayPage)==null?0:J.call(H))},
then:function(){return _.q(_.F9,null,_.q(hVV,{enableSaveButton:function(){return _.ps(w)},
saveButton:function(){return H.data().saveButton},
isSaved:H.isSaved,onSaveToggled:function(){return H.onSaveToggled}}),_.q(nOW,{menuButton:function(){return H.data().menuButton}}))}}))))},"Fe");
Bbd.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var nOW=_.n(function(H){return _.q(_.V4,{data:H.menuButton},{buttonViewModel:_.rc})},"Ge"),hVV=_.n(function(H){var C=H.enableSaveButton;
var S=H.saveButton;var w=H.isSaved;var A=H.onSaveToggled;return _.q(_.T,{cond:function(){return C()&&!(S==null||!S())},
then:function(){return _.q(_.V4,{data:function(){var J=_.e(S==null?void 0:S(),_.mk),c;return{toggleButtonViewModel:Object.assign({},J,{isToggled:(c=w==null?void 0:w())!=null?c:!(J==null||!J.isToggled)})}}},{toggleButtonViewModel:function(J){return _.q(_.Jv,{data:J.data,
onToggle:A})}})}})},"He"),kBd=_.n(function(H){var C=H.highScoreButton;
var S=H.score;var w=H.formattedScore;var A=H.onScoreChanged;var J=H.isEmbeddedInWebview;return _.q(_.V4,{data:C},{miniAppScoreButtonViewModel:function(c){return _.q(pp1,{data:c.data,score:S,formattedScore:w,onScoreChanged:A,isEmbeddedInWebview:J})}})},"Ie"),rFP=_.n(function(H){H=H.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.q(_.F9,null):_.q(_.V4,{data:H},{buttonViewModel:_.rc})},"Je");_.DXM=new _.W4("DESKTOP_CURRENT_PAGE");var RV1=_.n(function(H){var C=H.data;var S=_.E("force_active_time_logging_webview"),w=!1,A=new mXd,J=void 0,c=void 0,Y=_.JA().resolve(Tbi),M=new YBi,m=void 0,W=void 0,y=[],N=void 0,b=void 0,u=!1,O=!1,d=!1,p=!1,k=new _.N5,R=_.JA().resolve(Pn1),L=_.JA().resolve(_.Eh),t=_.JA().resolve(_.AA(II)),g,ii=(g=_.JA().resolve(_.AA(_.DXM)))==null?void 0:g.getCurrentPage(),FW=!1,cZ=0,eZ=function(gu){gu.preventDefault();return gu.returnValue=""},ND;
H=_.Z(_.mB(!((ND=_.BU("yt-mini-app-is-audio-enabled"))!=null&&!ND),void 0,"WhYQTd"));var bi=H.next().value,pU=H.next().value,O$;ND=_.Z(_.mB(!((O$=_.BU("exit-mini-app-seen-state"))==null||!O$),void 0,"jxhCJb"));var R0=ND.next().value,m1=ND.next().value;O$=_.Z(_.mB(!1,void 0,"MuvDfe"));var c7=O$.next().value,tV=O$.next().value;O$=_.Z(_.mB(void 0,void 0,"u9DLoc"));var Td=O$.next().value,Mi=O$.next().value;O$=_.Z(_.mB(void 0,void 0,"rykyJb"));var fP=O$.next().value,eo=O$.next().value;O$=_.Z(_.mB(!0,void 0,
"d8FUvf"));var Cr=O$.next().value,wu=O$.next().value;O$=_.Z(_.mB(!1,void 0,"x9XwUb"));var xE=O$.next().value,En=O$.next().value;O$=_.Z(_.mB(!1,void 0,"bcquyc"));var So=O$.next().value,qi=O$.next().value;O$=_.Z(_.mB(void 0,void 0,"FMAC5b"));var H3=O$.next().value,I2=O$.next().value;O$=_.Z(_.mB(0,void 0,"HUGJEb"));var RV=O$.next().value,YM=O$.next().value,LP=_.sW("mini-app-container-view-model"),yO=function(){return C().isEmbeddedInWebview},lY=function(){return C().hasPlayNextShelf};
_.Fy("yt-page-type-changed",function(gu){if(_.E("enable_is_mini_app_page_active_bugfix"))gu.detail.newPageSubtype==="mini_app"&&gu.detail.newPageType==="ytd-browse"||!Cr()||sM();else if(gu=_.Cxp()==="mini_app",gu!==Cr())if(wu(gu),gu){var N9;gu=(N9=C().playableId)==null?void 0:N9.toString();gu!==void 0&&window.location.href.includes(gu)&&!O&&(p=!0,Gd(),bB.value&&VX(bB.value))}else gu||sM()});
_.Fy("yt-action",function(gu){gu.detail.actionName==="yt-engagement-panel-visible-changed"&&gu.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&gu.detail.args[2]==="PAmini_app_panel"&&sM();_.E("enable_is_mini_app_page_active_bugfix")?gu.detail.actionName==="yt-history-load"&&!Cr()&&(ii==null?0:ii.active)?(wu(!0),Gd(),bB.value&&VX(bB.value)):gu.detail.actionName==="yt-history-load"&&Cr()&&!C().isEmbeddedInWebview&&nP():Cr()&&gu.detail.actionName==="yt-history-load"&&(p?p=!1:C().isEmbeddedInWebview||
nP())});
_.PN(function(){W3()});
_.d6(function(){Gd()},"bLMzme");
var Gd=function(){var gu=C().playableId,N9=C().localReleaseId,ri=C().derivedDeviceInterface;if(O)_.Bn(new _.X0("[MiniAppContainerViewModel] onEnter was called more than once"));else{O=!0;J=new Hz_(gu,N9,ri,document.visibilityState==="visible");sfM(J);c=new eV7(gu);KfW(Y,gu);zVi(M,{showMiniAppAdCommand:C().showMiniAppAdCommand,isEmbeddedInWebview:C().isEmbeddedInWebview,playLogger:J});BBU()&&(b=document.body.style.backgroundColor,_.Io(document.body,"background-color","black"));I8();di();k=new _.N5;
if(C().isEmbeddedInWebview){if(gu=(new URLSearchParams(window.location.search)).get("postPlayNonce"))Cni(J,gu),FW=!0;A.initialize({onAudioStateLoaded:function(J9){P5(J9)},
onMuteMiniApp:function(){P5(!1)},
onUnmuteMiniApp:function(){P5(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(J9){FW||(Cni(J,J9),FW=!0)},
confirmExitMiniApp:function(){var J9,Yl,Rp;return _.z(function(Da){if(Da.nextAddress==1)return C().confirmExitMiniAppCommand?Da.yield(Promise.race([k.promise,Promise.resolve(!1)]),2):Da.return();(J9=Da.yieldResult)?!C().confirmExitMiniAppCommandEdu||(Rp=(Yl=R0)==null?void 0:Yl())!=null&&Rp?bR(C().confirmExitMiniAppCommand):(bR(C().confirmExitMiniAppCommandEdu),_.rm("exit-mini-app-seen-state","true",2592E6)):bR(C().closeMiniAppCommand);_.oT(Da)})},
onNativeBenchmarkingMessageReceived:function(J9){J9=Al7(_.FM$(J9));if(_.Gt(J9,_.kQ,3,sod)){var Yl=_.n5(J9,_.kQ,3,sod),Rp=cLD();var Da=rS(Rp.getSeconds())-rS(Yl.getSeconds());Yl=_.YJ(Rp,2)-_.YJ(Yl,2);Da<0&&Yl>0?(Da+=1,Yl-=1E9):Da>0&&Yl<0&&(--Da,Yl+=1E9);Da=(new AS).setSeconds(Da);Da=_.iB(Da,2,_.jo(Yl),0);_.f9(J9,1,Da)}var Hb;(Hb=W)==null||Hb.returnNativeBenchmarkingMessage(J9)},
multiplayer3pAckStateLoaded:function(J9){nP(J9)},
exitMiniAppSeenStateLoaded:function(J9){C().confirmExitMiniAppCommandEdu&&m1(J9)},
onNavigateToNewMiniApp:function(){bR(C().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(J9){J9=new URLSearchParams(J9);var Yl=void 0;J9.has("invite_code")&&(Yl=new MMU,J9=J9.get("invite_code"),Yl=_.XA(Yl,1,J9));if(J9=Yl){var Rp;(Rp=W)==null||Rp.sendGameData(J9)}},
onPauseMiniApp:function(){w=!0;M9()},
onResumeMiniApp:function(){w=!0;QX()},
onAdFinished:function(J9){M.onAdFinished(J9)}});
C().showMultiplayer3pConsentDialogCommand||k.resolve(!0);bR(C().onContainerReadyCommand)}else Cni(J),k.resolve(!0);u5P(c,iz1(J));iz1(J).then(function(J9){J9={miniAppPlayData:{postPlayNonce:J9}};var Yl,Rp=(Yl=C().loggingDirectives)==null?void 0:Yl.trackingParams;Rp&&_.lJ().stateChanged(Rp,J9)});
gu=C().showSignInDialogCommand;!qJE()&&gu&&(_.rm("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),bR(gu));C().confirmExitMiniAppCommand&&t&&(gu=JL$(C().confirmExitMiniAppCommand))&&(t.customConfirmationCommand=gu)}},W3=function(){b&&_.Io(document.body,"background-color",b);
u=!1;N&&N.release();c.flush().catch(function(gu){_.Bn(gu)});
Y.flush().catch(function(gu){_.Bn(gu)});
wp1(J);xj();W=void 0;tWn(R)},sM=function(){wu(!1);
W3();tV(!1);I2(void 0);Mi(void 0);eo(void 0);cZ=0;YM(0);O=!1},M9=function(){var gu;
(gu=W)==null||gu.onPause();N&&N.release();c.flush().catch(function(N9){_.Bn(N9)});
Y.flush().catch(function(N9){_.Bn(N9)});
jfn(J);En(!0)},QX=function(){var gu;
(gu=W)==null||gu.onResume();di();gu=J;gu.isForeground=!0;uc(gu,"PLAY_EVENT_TYPE_PLAY_RESUME");En(!1)},P5=function(gu){var N9;
(N9=W)==null||N9.onAudioToggled(gu);pU(gu)},nP=function(gu){C().showMultiplayer3pConsentDialogCommand&&(C().isEmbeddedInWebview&&gu!==void 0&&k.resolve(gu),!gu&&_.Cxp()==="mini_app"&&bR(C().showMultiplayer3pConsentDialogCommand))},Kr=function(){var gu,N9,ri,J9;
return _.z(function(Yl){if(Yl.nextAddress==1){!C().isLivestream||C().disableVideoCapture||(gu=W)!=null&&gu.sendStartGameFrameCapture();N9=(new URL(window.location.href)).searchParams;if(N9.has("invite_code")){var Rp=new MMU,Da=N9.get("invite_code");ri=_.XA(Rp,1,Da);(J9=W)==null||J9.sendGameData(ri)}c7()||(tV(!0),Rp=J,Rp.state!==1?_.Bn(new _.X0("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+ad1[Rp.state])):(_.mC("mini_app_ids_without_game_ready").includes(Rp.JSC$16938_miniAppId)&&(Rp.gameReady=
!0),Rp.state=2,Rp.beforeReady=!1,ez(Rp,"ma_ffr"),uc(Rp,"PLAY_EVENT_TYPE_PLAY_READY")));return Yl.yield(k.promise,2)}bR(C().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();C().isEmbeddedInWebview||nP();_.oT(Yl)})},U_=function(){var gu=J;
gu.gameReady=!0;ez(gu,"ma_gr")},Nr=function(gu){var N9;
return _.z(function(ri){if(ri.nextAddress==1)return _.en(ri,2),ri.yield(fG1(c,gu),4);if(ri.nextAddress!=2)return _.xB(ri,0);N9=_.Vx(ri);bR(C().showSavingErrorPopupCommand);throw N9;})},ME=function(){var gu,N9;
return _.z(function(ri){if(ri.nextAddress==1)return _.en(ri,2),ri.yield(GBd(c),4);if(ri.nextAddress!=2)return gu=ri.yieldResult,ri.return(gu);N9=_.Vx(ri);bR(C().showLoadingErrorDialogCommand);throw N9;})},yX=function(gu){J.logError(gu)},Mz=function(gu,N9,ri){JF7(J,gu,N9,ri)},qE=function(gu,N9){Zzi(J,gu,N9)},NH=function(){!S&&C().isEmbeddedInWebview||_.ZZ();
AF7(J,!0);u||(window.addEventListener("beforeunload",eZ,{capture:!0}),u=!0)},X6=function(gu){var N9,ri,J9,Yl,Rp,Da,Hb;
return _.z(function(o$){if(o$.nextAddress==1)return Y&&(!m||m<gu)&&gu>0?o$.yield(LfY(Y,gu),3):o$.jumpTo(0);N9=o$.yieldResult;ri=_.Z(N9);J9=ri.next().value;Yl=ri.next().value;Rp=J9;Da=Yl;((Hb=Rp)==null?0:Hb.displayString)&&Da&&(Mi(Da),eo(Rp.displayString));_.oT(o$)})},V7=function(gu){var N9=C().onBenchmarkingMessageReceivedCommand;
if(N9){var ri=cLD();_.vV(gu,3,sod,ri);nN(N9,JlV(gu))}},kE=function(gu){var N9=C().onGameFrameReceivedCommand;
if(N9){var ri=new xH;var J9=new HHd;var Yl=dO(gu,1);J9=_.o8(J9,1,Yl);gu=_.$v(gu,2);gu=_.XA(J9,2,gu);ri=_.f9(ri,2,gu);nN(N9,sFW(ri))}},LU=function(gu){var N9=C().onGameAudioDataReceivedCommand;
if(N9){var ri=new xH;var J9=new CkY;gu=_.$v(gu,1);J9=_.XA(J9,1,gu);ri=_.f9(ri,4,J9);nN(N9,sFW(ri))}},Ni=function(){var gu=new URLSearchParams(window.location.search);
if(C().isEmbeddedInWebview&&gu&&gu.get("override_hl")==="true"&&gu.get("hl"))return gu.get("hl");gu=document.documentElement.lang;return gu!==""?gu:Iu},TK=function(gu){var N9=C().onShareInviteCodeCommand;
if(N9)if(C().isEmbeddedInWebview){var ri=new elb;gu=_.XA(ri,1,gu);nN(N9,Gmb(gu))}else ri=C().inviteCodeShareClientParamIdentifier,R.clientParams.set(ri,{miniAppClientParams:{inviteCode:gu}}),bR(N9)},XT=function(gu){var N9,ri,J9;
return _.z(function(Yl){if(Yl.nextAddress==1)return N9=C().onMiniAppOpenYtContentRequested,Y&&_.E("enable_open_yt_content")&&N9?Yl.yield(gOV(Y,gu),3):Yl.jumpTo(0);ri=Yl.yieldResult;if(ri==="OK")if(C().isEmbeddedInWebview){var Rp=new RqM;J9=er(Rp,2,a4,bp(gu));nN(N9,xg7(J9))}else L.clientData.set("video_id",gu),bR(N9);_.oT(Yl)})},GK=function(gu){cZ+=_.YJ(gu,3);
gu=Math.min(Math.log(1+cZ/15E6*9)/Math.log(10),.99);YM(gu);uY(gu)},uY=_.P8(function(gu){var N9=C().updateLoadingProgressCommand;
if(N9){var ri=new RqM;gu=er(ri,3,a4,_.t_(gu));nN(N9,xg7(gu))}},100),e7=function(gu){return qB_(M,gu)},di=function(){var gu,N9;
((gu=_.n8E())==null?void 0:(N9=gu.wakeLock)==null?void 0:N9.request)!=null&&_.n8E().wakeLock.request("screen").then(function(ri){N=ri}).catch(function(){})},bB=_.ja("iframe");
_.d6(function(){C().isSupportedCountry&&(qJE()||_.E("enable_sign_in_promo")||!C().showSignInDialogCommand?bB.value&&VX(bB.value):bR(C().onMiniAppReadyCommand))},"ASuFde");
var yb=function(){return _.q("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return c7()?0:-1},
el:bB})},VX=function(gu,N9){N9=N9===void 0?!1:N9;
var ri=dS();ri&&(N9||ri.toString()!==gu.getAttribute("src"))&&(W=EkU(C().source,{isAudioEnabled:bi,onFirstFrameReady:Kr,onGameReady:U_,onSave:Nr,onLoad:ME,onError:yX,onSdkCalled:Mz,onSdkPerformanceUpdate:qE,onClick:NH,onSendHighScore:X6,onBenchmarkingMessageReceived:V7,getLanguage:Ni,onShareInviteCode:TK,onResourceLoaded:GK,onOpenYTContent:XT,onShowMiniAppAd:e7,onGameFrameReceived:kE,onGameAudioReceived:LU},gu,ri),O4(gu,"load",function(){ez(J,"ma_il");O4(gu,"load",function(){VX(gu,!0)})}),_.He(gu,
ri))},dS=function(){var gu=C().url;
if(gu&&(gu=_.B9(gu),gu!==null)){if(C().source&&C().source==="MINI_APP_SOURCE_GAMESNACKS")gu=_.TV(gu,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.E("enable_origin_query_parameter_bugfix")){var N9=_.Vn(_.a_7(gu.toString()));N9=new URLSearchParams(N9||"");N9.set("origin",window.location.origin);N9=N9.toString();gu=_.Qv(gu).toString();gu=_.Ot(Zr1.exec(gu)[0]+(N9.trim()?"#"+N9:""))}return gu}},rP=function(){var gu={};
gu=_.eJ("yt-mini-app-container-view-model__loading-screen",(gu["yt-mini-app-container-view-model__loading-screen--fade-out"]=c7,gu));var N9=function(){return c7()?1:RV()};
return _.q("div",{class:gu},_.q(_.V4,{data:function(){return C().splashScreen}},{miniAppSplashScreenViewModel:function(ri){return _.q(dXW,{data:ri.data,
loadingProgress:N9})}}))},Ks=function(){var gu={};
return _.q("div",{class:_.eJ("yt-mini-app-container-view-model__pause-interstitial",(gu["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!xE()},gu["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=xE,gu))},_.q(_.V4,{data:function(){return C().splashScreen}},{miniAppSplashScreenViewModel:function(N9){return _.q(dXW,{data:N9.data,
forPaused:!0})}}))},I8=function(){y=[];
y.push(_.PI(window,"visibilitychange",function(){d||w&&yO()||(document.visibilityState==="visible"?QX():M9())}));
y.push(_.PI(window,"pagehide",function(){W3()}));
y.push(_.PI(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&LP.value.dispatchEvent(new Event("tap"))},0)}));
y.push(_.PI(LP.value,"pointerdown",function(){AF7(J,!1)},!0));
y.push(_.PI(LP.value,"pause",function(){d=!0;M9()}));
y.push(_.PI(LP.value,"play",function(){d=!1;QX()}));
y.push(_.PI(LP.value,"exit",function(){W3()}));
var gu=navigator.keyboard,N9=gu&&gu.lock;y.push(_.PI(window,eKW,function(){qi(Gzd());Gzd()?(C().hasPlayNextShelf&&Vw("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),jK("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),N9&&gu.lock(["Escape"])):(C().hasPlayNextShelf&&jK("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),Vw("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),N9&&gu.unlock())}));
C().showMultiplayer3pConsentDialogCommand&&y.push(_.PI(window,"yt-playables-ack-3p-data-usage",function(){UX7(Y)}));
C().confirmExitMiniAppCommandEdu&&y.push(_.PI(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.rm("exit-mini-app-seen-state","true",2592E6)}));
C().onGameAudioDataReceivedCommand&&y.push(_.PI(window,"message",function(ri){ri=ri.event_;var J9,Yl=(J9=bB.value)==null?void 0:J9.src;if(Yl&&ri.origin===(new URL(Yl)).origin&&ri.data&&ri.data.type==="GAME_AUDIO"&&ri.data.audio&&ri.data.audio.length>0)if(_.E("enable_sending_unwrapped_game_audio_as_serialized_metadata"))z7Z(C().onGameAudioDataReceivedCommand,ri.data.audio);else{var Rp=new FileReader;Rp.onload=function(){var Da=new xH;var Hb=new CkY;Hb=_.XA(Hb,1,Rp.result);Da=_.f9(Da,4,Hb);nN(C().onGameAudioDataReceivedCommand,
sFW(Da))};
Rp.readAsDataURL(new Blob([ri.data.audio]))}}))},xj=function(){y.forEach(function(gu){XH(gu)});
window.removeEventListener("beforeunload",eZ,{capture:!0})},bR=function(gu){gu&&Z_0(gu,C().isEmbeddedInWebview||!1)},jK=function(gu,N9){gu=_.Z(LP.value.getElementsByClassName(gu));
for(var ri=gu.next();!ri.done;ri=gu.next())ri.value.classList.add(N9)},Vw=function(gu,N9){gu=_.Z(LP.value.getElementsByClassName(gu));
for(var ri=gu.next();!ri.done;ri=gu.next())ri.value.classList.remove(N9)};
return function(){var gu={};gu=_.eJ("yt-mini-app-container-view-model",(gu["yt-mini-app-container-view-model--desktop"]=!0,gu["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return C().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},gu["yt-mini-app-container-view-model--ios-web-view"]=BBU(),gu["yt-mini-app-container-view-model--no-top-bar"]=function(){return!C().topBar},gu["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return C().hasPlayNextShelf},gu["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return C().hasPlayNextShelf},gu["yt-mini-app-container-view-model--show-peek-below"]=function(){return!So()&&C().hasPlayNextShelf},gu));
var N9={};N9=_.eJ("yt-mini-app-container-view-model__content",(N9["yt-mini-app-container-view-model__content--desktop-content"]=!0,N9["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return C().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},N9["yt-mini-app-container-view-model--desktop-play-page"]=function(){return C().hasPlayNextShelf},N9));
return _.q("mini-app-container-view-model",{el:LP},_.q("div",{class:gu},_.q(_.T,{cond:function(){return C().topBar&&!So()},
then:function(){return _.q(_.V4,{data:function(){return C().topBar}},{miniAppTopBarViewModel:function(ri){return _.q(Bbd,{data:ri.data,
isAudioEnabled:bi,onAudioToggled:function(J9){P5(J9)},
score:Td,formattedScore:fP,onScoreChanged:function(J9){m=J9},
isEmbeddedInWebview:yO,isSaved:H3,onSaveToggled:function(J9){I2(J9)},
isExitMiniAppSeen:R0,isDesktopPlayPage:lY})}})}}),_.q("div",{class:N9},_.q(_.T,{cond:Cr,
then:function(){return yb()}}),_.q(_.T,{cond:function(){return C().isLivestream},
then:function(){return Ks()}}),_.q(_.T,{cond:function(){return!C().isEmbeddedInWebview},
then:function(){return rP()}}))))}()},"Ke");
RV1.idomCompat=!0;_.qs(RV1,"mini-app-container-view-model",{props:{data:_.GH}});var IGn=_.n(function(H){var C=H.data;return _.q("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.q("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.um(function(){var S=C().onTap;S&&_.Im(S)})},_.q(_.T,{cond:function(){return C().icon},
then:function(S){return _.q(_.lm,{icon:function(){return S().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.q("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return C().title})))},"Le");
IGn.idomCompat=!0;var aG1=_.n(function(H){var C=_.sW("div"),S=_.Z(_.mB(void 0,void 0,"dg3xff")),w=S.next().value,A=S.next().value;S=_.Z(_.mB(void 0,void 0,"AgHNfc"));var J=S.next().value,c=S.next().value;S=_.Z(_.mB(void 0,void 0,"fuTKCc"));var Y=S.next().value,M=S.next().value,m=function(){var p=w();return p!==void 0?Math.abs(p):void 0},W=function(){var p=m();
return p===void 0||p<=3},y=function(){var p=m();
var k=J(),R=Y();p=p!==void 0&&k!==void 0&&R!==void 0?k-R-p:void 0;return p===void 0||p<=3},N=function(p){C.value&&C.value.scrollBy({top:0,
left:(_.rh("HTML_DIR")==="rtl"?-1:1)*p*C.value.clientWidth,behavior:"smooth"})},b=function(){var p;
A((p=C.value)==null?void 0:p.scrollLeft);var k;c((k=C.value)==null?void 0:k.scrollWidth);var R;M((R=C.value)==null?void 0:R.clientWidth)},u=function(){N(-.5)},O=function(){N(.5)};
S=_.um(function(){b()});
_.Ph(function(){b();if(C.value&&window.ResizeObserver){var p=new ResizeObserver(b);p.observe(C.value);_.PN(function(){p.disconnect()})}});
var d={};return _.q("yt-sponsorships-scrollable-shelf",{class:_.eJ("ytdSponsorshipsScrollableShelfHost",H.className)},_.q("div",{class:_.eJ("ytdSponsorshipsScrollableShelfContent",(d.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return H.data().previousButton&&H.data().nextButton&&!W()&&!y()},d.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return H.data().previousButton&&!W()&&y()},d.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return H.data().nextButton&&
W()&&!y()},d)),
el:C,"on:scroll":S},H.children),_.q(_.T,{cond:function(){return!W()},
then:function(){return _.q(_.V4,{data:function(){return H.data().previousButton}},{buttonViewModel:function(p){return _.q(_.rc,{data:p.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:u})}})}}),_.q(_.T,{cond:function(){return!y()},
then:function(){return _.q(_.V4,{data:function(){return H.data().nextButton}},{buttonViewModel:function(p){return _.q(_.rc,{data:p.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:O})}})}}))},"Me");
aG1.idomCompat=!0;var HU9=_.n(function(H){var C=H.data;H={};return _.q("yt-sponsorships-hub",{class:_.eJ("ytdSponsorshipsHubHost",(H.ytdSponsorshipsHubHostIndented=function(){return C().indented},H))},_.q("div",{class:"ytdSponsorshipsHubHeader"},_.q("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.q("div",{class:"ytdSponsorshipsHubAvatar"},_.q(_.V4,{data:function(){return C().avatar}},{avatarViewModel:_.ZT})),_.q(_.T,{cond:function(){return C().badgeImage},
then:function(S){return _.q("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.q("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.q("div",{class:"ytdSponsorshipsHubBadge"},_.q(_.Jg,{data:S,targetWidth:24,targetHeight:24,alt:""}))))}})),_.q("div",{class:"ytdSponsorshipsHubDetails"},_.q("div",{class:"ytdSponsorshipsHubTierName"},function(){return C().tierName}),_.q("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return C().membershipType}),_.q("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return C().membershipDurationOrExpiry})),_.q("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.q(_.V4,{data:function(){return C().manageButton}},{buttonViewModel:function(S){return _.q(_.rc,{data:S.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.q(_.V4,{data:function(){return C().actionMenuButton}},{buttonViewModel:function(S){return _.q(_.rc,{data:S.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.q("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return C().perksTitle}),_.q(aG1,{data:function(){return{previousButton:C().previousPerkButton,
nextButton:C().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.q("div",{class:"ytdSponsorshipsHubPerkCards"},_.q(_.V4,{data:function(){return C().perkCards}},{sponsorshipsHubPerkCardViewModel:IGn}),_.q(_.T,{cond:function(){return C().viewAllPerksButton},
then:function(S){return _.q(xXV,{data:S})}}))))},"Ne");
HU9.idomCompat=!0;var xXV=_.n(function(H){var C=H.data;return _.q("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.q(_.V4,{data:function(){return C().button}},{buttonViewModel:_.rc}),_.q("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.q("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return C().title}),_.q("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return C().subtitle})))},"Oe");
xXV.idomCompat=!0;_.qs(HU9,"yt-sponsorships-hub",{props:{data:_.GH}});_.iUr=_.n(function(H){var C=H.data;return _.q("yt-dual-avatar-view-model",{class:_.eJ("ytDualAvatarViewModelHost",H.className),style:_.vb({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var S;return((S=C().badgeCutoutRadius)!=null?S:14)+"px"}})},_.q("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.q(_.V4,{data:function(){return C().startAvatar}},{avatarViewModel:_.ZT}),_.q(_.V4,{data:function(){return C().endAvatar}},{avatarViewModel:_.ZT})),_.q(_.V4,{data:function(){return C().badge}},
{contentPreviewImageViewModel:function(S){return _.q("div",{class:"ytDualAvatarViewModelBadge"},_.q(_.$n,{data:S.data}))}}))},"Pe");
_.iUr.idomCompat=!0;var S$R=_.n(function(H){var C=H.data;var S,w=!((S=_.JA().resolve(_.AA(_.sU)))==null||!S());H=_.EF(function(){var W,y,N=w?(W=C().header)==null?void 0:W.backgroundColorDarkMode:(y=C().header)==null?void 0:y.backgroundColorLightMode;if(N!==void 0)return _.aw(N)},void 0,"TDdh7d");
S=_.EF(function(){var W,y;return w?(W=C().header)==null?void 0:W.backgroundImagePart1Dark:(y=C().header)==null?void 0:y.backgroundImagePart1Light},void 0,"X0peMe");
var A=_.EF(function(){var W,y;return w?(W=C().header)==null?void 0:W.backgroundImagePart2Dark:(y=C().header)==null?void 0:y.backgroundImagePart2Light},void 0,"an0Hzd"),J=_.EF(function(){return _.rh("HTML_DIR")==="rtl"},void 0,"BltEgb"),c=_.sW("yt-sponsorships-perks-list"),Y=!1,M=function(){var W=c.value;
if(W&&!Y){var y,N=(y=W.parentElement)==null?void 0:y.parentElement;if(N)for(W=W.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),y=0;y<W.length;++y){var b=W[y];if(b instanceof HTMLElement){N.scrollTo({top:b.offsetTop+b.clientHeight/2-N.clientHeight/2,behavior:"smooth"});Y=!0;break}}}};
_.$T(function(){var W=c.value;if(W&&window.ResizeObserver){var y=new ResizeObserver(M);y.observe(W);_.PN(function(){y.disconnect()})}});
var m={};return _.q("yt-sponsorships-perks-list",{el:c,class:_.eJ("ytdSponsorshipsPerksListHost",(m.ytdSponsorshipsPerksListHorizontalPadding=function(){return C().horizontalPaddingEnabled},m))},_.q("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.q("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.vb({"background-color":H})},_.q("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.q(_.T,{cond:S,then:function(W){var y={};return _.q("div",{class:_.eJ((y.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=w,y.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!w,y.ytdSponsorshipsPerksListFlipped=J,y))},_.q(_.Jg,{data:W,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.q("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.q(_.T,{cond:A,
then:function(W){var y={};return _.q("div",{class:_.eJ((y.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=w,y.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!w,y.ytdSponsorshipsPerksListFlipped=J,y))},_.q(_.Jg,{data:W,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.q("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.q(_.V4,{data:function(){var W;
return(W=C().header)==null?void 0:W.dualAvatar}},{dualAvatarViewModel:_.iUr})))),_.q("div",{class:"ytdSponsorshipsPerksListBody"},_.q("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return C().title}),_.q(_.T,{cond:function(){return C().perks},
then:function(W){return _.q(_.Vq,{each:W},function(y,N){var b={};return _.q("div",{class:_.eJ("ytdSponsorshipsPerksListPerkContainer",(b.ytdSponsorshipsPerksListSelectedPerk=function(){var u=N(),O=C().selectedPerkIndex;return u===O},b))},_.q(_.T,{cond:function(){return N()>0},
then:function(){return _.q("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.q("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.q(_.T,{cond:function(){return y.icon},
then:function(u){return _.q(_.lm,{icon:function(){return u().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.q("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.q("div",{class:"ytdSponsorshipsPerksListPerkTitle"},y.title),_.q("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.q(_.uZ,{text:y.description})),_.q(_.T,{cond:function(){return y.instructions},
then:function(){var u,O;return _.q("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.q("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(u=y.instructions)==null?void 0:u.title),_.q("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.q(_.uZ,{text:(O=y.instructions)==null?void 0:O.text})))}}))),_.q(_.T,{cond:function(){return y.emoji},
then:function(u){return _.q("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.q(_.Vq,{each:function(){return u()}},function(O){return _.q(_.Jg,{data:O,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.q(CiK,{data:y}))})}})))},"Qe");
S$R.idomCompat=!0;var CiK=_.n(function(H){var C=H.data;var S=function(c,Y){return c===Y},w=function(){var c=C();
c=_.e(c==null?void 0:c.badgesShelf,V81);return c!==void 0&&c!==null?c:{previousButton:{},nextButton:{}}},A=_.ja("div"),J=function(){var c=A.value;
if(c){var Y=c.parentElement;if(Y){c=c.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var M=0;M<c.length;++M){var m=c[M];if(m instanceof HTMLElement){Y.scrollTo({left:m.offsetLeft+m.clientWidth/2-Y.clientWidth/2,behavior:"instant"});break}}}}};
_.$T(function(){var c=A.value;if(c){var Y=new ResizeObserver(J);Y.observe(c);_.PN(function(){Y.disconnect()})}});
return _.q("div",null,_.q(_.T,{cond:function(){return C().badges},
then:function(c){return _.q(aG1,{data:w},_.q("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:A},_.q(_.Vq,{each:function(){return c()}},function(Y,M){var m={},W={},y={};
return _.q("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.q(_.T,{cond:function(){return M()>0},
then:function(){return _.q("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.q("div",{class:_.eJ("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(m.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return S(M(),C().currentBadgeIndex)},m.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!S(M(),C().currentBadgeIndex)},m))},_.q("div",{class:_.eJ("ytdSponsorshipsPerksListLoyaltyBadge",(W.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return S(M(),
C().currentBadgeIndex)},W.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!S(M(),C().currentBadgeIndex)},W))},_.q(_.T,{cond:function(){return Y.image},
then:function(N){var b={};return _.q("div",{class:_.eJ((b.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return S(M(),C().currentBadgeIndex)},b.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!S(M(),C().currentBadgeIndex)},b))},_.q(_.Jg,{data:N,
alt:""}))}})),_.q("div",{class:_.eJ("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(y.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return S(M(),C().currentBadgeIndex)},y))},Y.title)))})))}}))},"Re");
CiK.idomCompat=!0;_.qs(S$R,"yt-sponsorships-perks-list",{props:{data:_.GH}});_.qs(_.n(function(H){return _.q("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.q(_.T,{cond:function(){return H.data().image},
then:function(C){return _.q(_.Jg,{className:"ytwFantasyEmptyStateViewModelImage",data:C,ariaHidden:!0,alt:""})}}),_.q(_.uZ,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return H.data().title}}),_.q(_.uZ,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return H.data().subtitle}}),_.q(_.V4,{data:function(){return H.data().primaryButton}},{buttonViewModel:function(C){return _.q(_.rc,{data:C.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"Se"),"ytw-fantasy-empty-state-view-model",{props:{data:_.GH}});var s0i;var j0p=_.n(function(H){var C=H.data;var S=H.uniqueId;var w=H.overrides;H=_.EF(function(){var A,J=((A=C().timedAnimationData)==null?void 0:A.animationTiming)||[];return{uniqueId:S(),timings:J,experimentEnabled:J.length>0,enabled:J.length>0}},void 0,"hiuXI");
return _.q("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.q(D7i,{settings:H},_.q(_.V4,{data:function(){return C().buttonRenderer}},{buttonRenderer:function(A){return _.q(_.ft,{data:A.data,
buttonOverrides:w})}})))},"Te");
j0p.idomCompat=!0;_.qs(j0p,"timed-animation-button-renderer",{props:{data:_.GH,uniqueId:_.GH,overrides:_.GH}});var oD=function(){var H=_.X.apply(this,arguments)||this;H.hideJoinButtonBeforeSubscribed=_.E("hide_join_button_before_subscribed");H.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return H};
_.G(oD,_.X);_.F=oD.prototype;_.F.hasShowDialogCommand=function(H){return!!_.e(H,$b7)};
_.F.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"}}}};
_.F.updateJoinButtonOverrides=function(){var H,C;(H=_.mY(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(C=H.polymerController)==null||C.set("overrides",this.joinButtonOverrides);if(H=_.mY(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))H.overrides=this.joinButtonOverrides};
_.F.handleButtonRefreshAction=function(H){if(H=_.e(H,qwP))this.set("data.membershipButton",H.membershipButton),this.notifyPath("data.membershipButton")};
_.F.onYtServiceRequestError=function(H){_.HQ(this.hostElement,H.detail.error.message)};
_.F.onKeydown=function(H){if(H.key==="Enter"){var C;(C=this.data)!=null&&C.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.F.handleUnsubscribeAction=function(){var H,C,S;((H=this.data)==null?void 0:(C=H.membershipButton)==null?void 0:(S=C.buttonRenderer)==null?void 0:S.style)==="STYLE_PRIMARY"&&_.mY(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.JJ.Object.defineProperties(oD.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.subscriptionStateEntity)==null||!H.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var H,C=(H=this.data)==null?void 0:H.membershipButton,S;H=(C==null?void 0:C.buttonRenderer)||_.e(C==null?void 0:(S=C.timedAnimationButtonRenderer)==null?void 0:S.buttonRenderer,_.cg);return(H==null?void 0:H.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(H==null?void 0:H.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(H==null?void 0:H.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var H;if(this.hasShowDialogCommand((H=this.data)==null?void 0:H.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var H;if(this.hasShowDialogCommand((H=this.data)==null?void 0:H.navigationEndpoint))return"button"}},
hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.attributedTitle)}}});
oD.prototype.onYtServiceRequestError=oD.prototype.onYtServiceRequestError;oD.prototype.updateJoinButtonOverrides=oD.prototype.updateJoinButtonOverrides;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],oD.prototype,"actionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],oD.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],oD.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.v(_.q$),_.K("design:type",Object)],oD.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],oD.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.xA),_.K("design:type",Object)],oD.prototype,"ironButtonState",void 0);_.D([_.V(),_.K("design:type",Object)],oD.prototype,"data",void 0);_.D([_.l("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.K("design:type",Object),_.K("design:paramtypes",[])],oD.prototype,"hideJoin",null);
_.D([_.V(),_.K("design:type",String)],oD.prototype,"subscribeKey",void 0);_.D([_.V({selectorArgs:["subscribeKey"],selector:T0Z}),_.K("design:type",Object)],oD.prototype,"subscriptionStateEntity",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],oD.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.D([_.l("subscriptionStateEntity"),_.V({reflectToAttribute:!0}),_.K("design:type",Object),_.K("design:paramtypes",[])],oD.prototype,"subscribed",null);
_.D([_.l("subscribed","data.membershipButton"),_.K("design:type",Object),_.K("design:paramtypes",[])],oD.prototype,"joinButtonOverrides",null);_.D([_.l("data.navigationEndpoint"),_.K("design:type",Object),_.K("design:paramtypes",[])],oD.prototype,"channelNameTabIndex",null);_.D([_.l("data.navigationEndpoint"),_.K("design:type",Object),_.K("design:paramtypes",[])],oD.prototype,"channelNameRole",null);
_.D([_.l("data.attributedTitle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],oD.prototype,"hasAttributedTitle",null);_.D([_.fx("joinButtonOverrides"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],oD.prototype,"updateJoinButtonOverrides",null);_.D([_.Gz("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],oD.prototype,"onYtServiceRequestError",null);
_.D([_.h({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],oD);
var wZO=_.Tp()(oD,"ytd-video-owner-renderer",function(){if(s0i===void 0){var H=document.createElement("template");_.f(H,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><yt-attributed-string id="attributed-channel-name" data="[[data.attributedTitle]]" hidden$="[[!hasAttributedTitle]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></yt-attributed-string><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" hidden="[[hasAttributedTitle]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);s0i=H}H=s0i;return H},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.qs(_.n(function(H){var C=H.data;var S;H=_.Z(_.mB(!((S=_.BU("yt-mini-app-is-theater-mode-enabled"))==null||!S),void 0,"i2pjVd"));var w=H.next().value,A=H.next().value;S=_.Z(_.mB(!1,void 0,"ga7V5c"));var J=S.next().value,c=S.next().value;_.$T(function(){var m=_.PI(window,eKW,function(){c(Gzd())});
_.PN(function(){XH(m)})});
var Y;S=(Y=_.JA().resolve(_.AA(VF1)))!=null?Y:function(){return _.q("div",null)};
_.iy("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){A(!0);_.rm("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.iy("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){A(!1);_.rm("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
Y={};H={};var M={};return _.q("mini-app-play-page-renderer",{class:_.eJ("miniAppPlayPageRendererHost",(Y.miniAppPlayPageRendererHostDetailsView=function(){return!w()},Y))},_.q("div",{class:_.eJ("miniAppPlayPageRendererGameContainer",(H.miniAppPlayPageRendererGameContainerDetailsView=function(){return!w()},H))},_.q(_.V4,{data:function(){return C().containerViewModel}},{miniAppContainerViewModel:RV1}),_.q(_.T,{cond:function(){return C().channel&&C().subscribeButton},
then:function(){var m={};return _.q("div",{class:_.eJ("miniAppPlayPageRendererChannelContainer",(m.miniAppPlayPageRendererHideVisibility=function(){return J()},m))},_.q(_.V4,{data:function(){return C().channel}},{videoOwnerRenderer:function(W){return _.q(wZO,{data:W.data})}}),_.q(_.V4,{data:function(){return C().subscribeButton}},{subscribeButtonViewModel:function(W){return _.q(_.Zk,{data:W.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.q(_.T,{cond:function(){return!w()&&C().description},
then:function(){var m={};return _.q("div",{class:_.eJ("miniAppPlayPageRendererMiniAppDescriptionWrapper",(m.miniAppPlayPageRendererHideVisibility=function(){return J()},m))},_.q("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return C().description}))}})),_.q("div",{class:_.eJ("miniAppPlayPageRendererPlayNextContainer",(M.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!w()},M.miniAppPlayPageRendererHideVisibility=function(){return J()},M))},_.q(_.V4,{data:function(){return C().sectionList}},
{sectionListRenderer:S})))},"Ue"),"mini-app-play-page-renderer",{props:{data:_.GH}});var Oh=function(){var H=_.X.apply(this,arguments)||this;H.isSearch=!1;H.isConstrainedList=!1;H.hasChipsBar=!1;H.inReplyPanel=!1;H.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"}};H.monitorScroll=!0;H.SCROLL_ANIMATION_DURATION_MS=300;H.nextContinuation={continuationType:"sectionListContinuation"};return H};
_.G(Oh,_.X);_.F=Oh.prototype;
_.F.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(H){switch(H.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},flowRootRenderer:{component:"ytd-flow-root-renderer",
noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",
noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",
noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},
liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},
creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.E("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.E("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.F.created=function(){var H=this;this.JSC$17077_scrollAnimation=new _.bc(function(C){H.hostElement.scrollTop=C})};
_.F.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.F.getItemsPath=function(){return"data.contents"};
_.F.replacePrimaryContent=function(H){this.set("data.contents",H)};
_.F.computeHasSortFilter=function(H){return!!H&&!!H.sortFilterSubMenuRenderer};
_.F.computeShouldScrollInPanel=function(H){var C;return!!(H==null?0:(C=H.scrollPaneStyle)==null?0:C.scrollable)};
_.F.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.yQ(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.F.scrollToTop=function(){this.hostElement.scrollTop=0};
_.F.scrollToItemSection=function(H){if(H=this.getItemByIdentifier(H))H=this.getScrollPositionForItem(H),this.hostElement.scrollTop!==H&&this.JSC$17077_scrollAnimation.start(this.hostElement.scrollTop,H,this.SCROLL_ANIMATION_DURATION_MS)};
_.F.getItemByIdentifier=function(H){var C=this.contents.querySelectorAll("ytd-item-section-renderer");if(C&&C.length!==0){var S=Array.from(C).findIndex(function(w){return w.sectionIdentifier===H});
return C[S===-1?0:S]}};
_.F.getScrollPositionForItem=function(H){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===H)return 0;H=_.KX(H).y+this.hostElement.scrollTop-_.KX(this.hostElement).y;return Math.min(H,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.JJ.Object.defineProperties(Oh.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.targetId)==="browse-feedFEclips"}}});
Oh.prototype.onScroll=Oh.prototype.onScroll;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Oh.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Oh.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.$o.YtLazyListBehavior),_.K("design:type",Object)],Oh.prototype,"ytLazyListBehavior",void 0);_.D([_.v(_.eu.YtNextContinuationBehavior),_.K("design:type",Object)],Oh.prototype,"ytNextContinuationBehavior",void 0);
_.D([_.v(_.LVd),_.K("design:type",Object)],Oh.prototype,"ytBooleanLogicBehavior",void 0);_.D([_.v(_.EH),_.K("design:type",Object)],Oh.prototype,"ytContinuationHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Oh.prototype,"data",void 0);_.D([_.V({value:2}),_.K("design:type",Number)],Oh.prototype,"initialCount",void 0);_.D([_.V({value:!0}),_.K("design:type",Boolean)],Oh.prototype,"autoFill",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.K("design:type",Boolean)],Oh.prototype,"hasSortFilter",void 0);_.D([_.V({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.K("design:type",Boolean)],Oh.prototype,"hideBottomSeparator",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.K("design:type",Boolean)],Oh.prototype,"shouldScrollInPanel",void 0);
_.D([_.V(),_.K("design:type",Object)],Oh.prototype,"isSearch",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Oh.prototype,"isConstrainedList",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",String)],Oh.prototype,"responsiveSizing",void 0);_.D([_.V(),_.K("design:type",Object)],Oh.prototype,"hasChipsBar",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",String)],Oh.prototype,"pageSubtype",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],Oh.prototype,"engagementPanel",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],Oh.prototype,"liveChatEngagementPanel",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Oh.prototype,"inReplyPanel",void 0);_.D([_.lA("#action-button"),_.K("design:type",HTMLElement)],Oh.prototype,"actionButton",void 0);_.D([_.V(),_.K("design:type",Object)],Oh.prototype,"scrollUpButtonData",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],Oh.prototype,"engagementPanelDropdown",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],Oh.prototype,"engagementPanelDialog",void 0);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Oh.prototype,"isClipList",null);_.D([_.lA("#contents"),_.K("design:type",HTMLElement)],Oh.prototype,"monitorScrollElement",void 0);_.D([_.lA("#contents"),_.K("design:type",HTMLElement)],Oh.prototype,"contents",void 0);
_.D([_.Gz("scroll"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Oh.prototype,"onScroll",null);_.D([_.h({is:"ytd-section-list-renderer",disableElementRegistration:!0})],Oh);
var AVK=_.Tp()(Oh,"ytd-section-list-renderer",function(){if(lu1===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);lu1=H}H=lu1;return H},{mode:1});var JV_;var FE3;var ZUi;var cVi;var Xm=function(){return _.X.apply(this,arguments)||this};
_.G(Xm,_.X);Xm.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
Xm.prototype.onLikeButtonClick=function(H){H.stopPropagation();H.preventDefault()};
_.JJ.Object.defineProperties(Xm.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.data)!=null&&H.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)})}}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Xm.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Xm.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],Xm.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Xm.prototype,"ytRendererStamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Xm.prototype,"data",void 0);
_.D([_.V({selectorArgs:["data.likeStatusEntityKey"],selector:gW}),_.K("design:type",Object)],Xm.prototype,"likeStatusEntity",void 0);_.D([_.l("data","likeStatusEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],Xm.prototype,"likeButtonRenderer",null);_.D([_.h({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],Xm);
_.B(Xm,"ytd-slim-metadata-toggle-button-renderer",function(){if(cVi!==void 0)return cVi;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);
return cVi=H},{mode:1});var QP=function(){var H=_.X.apply(this,arguments)||this;H.minimizePipBreakages=_.E("web_pip_minimize_breakages");H.showEqualizer=_.E("web_enable_playlist_video_lockup_equalizer");H.watchColorUpdate=_.E("kevlar_watch_color_update");H.actionMap={};return H};
_.G(QP,_.X);_.F=QP.prototype;_.F.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"}}}};
_.F.computeEditableClass=function(H){return H&&H.menu?"editable":""};
_.F.computeSelected=function(H){return!(H==null||!H.selected)};
_.F.computeUseColorPalette=function(H){return!!((H==null?0:H.lightColorPalette)&&(H==null?0:H.darkColorPalette))};
_.F.computeLargerPlaylistThumbs=function(H,C){return _.E("web_enable_playlist_bigger_thumbnails")&&!C};
_.F.computeShowPlayIcon=function(H){return!!H&&_.E("web_use_play_icon_for_playlist_panel_video_renderer")};
_.F.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.F.onYtServiceRequestSent=function(H,C){C.endpoint&&this.isHideEnclosingAction(C.endpoint)&&!this.selected&&FzU(_.Nb(),this.data.videoId)};
_.F.isHideEnclosingAction=function(H){var C=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",H);H=this.get("likeEndpoint.status",H)==="INDIFFERENT";return C||H};
_.F.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.F.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.JJ.Object.defineProperties(QP.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.E("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.E("enable_web_delhi_icons")?"play":"play_arrow"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var H;return!!(this.withinMiniplayer&&((H=this.data)==null?0:H.actionButtons))}}});
QP.prototype.onYtServiceRequestSent=QP.prototype.onYtServiceRequestSent;QP.prototype.canReorderChanged=QP.prototype.canReorderChanged;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],QP.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],QP.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],QP.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.uU),_.K("design:type",Object)],QP.prototype,"ytdLockupBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],QP.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],QP.prototype,"withinMiniplayer",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],QP.prototype,"minimizePipBreakages",void 0);_.D([_.V({computed:"computeSelected(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],QP.prototype,"selected",void 0);
_.D([_.V({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],QP.prototype,"useColorPalette",void 0);_.D([_.V({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.K("design:type",Boolean)],QP.prototype,"largerPlaylistThumbs",void 0);_.D([_.V(),_.K("design:type",Object)],QP.prototype,"showEqualizer",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],QP.prototype,"canReorder",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],QP.prototype,"touchPersistentDragHandle",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],QP.prototype,"handleIsHovered",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],QP.prototype,"watchColorUpdate",void 0);_.D([_.V(),_.K("design:type",String),_.K("design:paramtypes",[])],QP.prototype,"reorderIcon",null);
_.D([_.V({computed:"computeShowPlayIcon(selected)",reflectToAttribute:!0}),_.K("design:type",Boolean)],QP.prototype,"showPlayIcon",void 0);_.D([_.V(),_.K("design:type",String),_.K("design:paramtypes",[])],QP.prototype,"playIcon",null);_.D([_.l("largerPlaylistThumbs"),_.K("design:type",Number),_.K("design:paramtypes",[])],QP.prototype,"thumbnailWidth",null);_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],QP.prototype,"showActionButtons",null);
_.D([_.XJ("canReorder"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],QP.prototype,"canReorderChanged",null);_.D([_.Gz("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.IW]),_.K("design:returntype")],QP.prototype,"onYtServiceRequestSent",null);_.D([_.h({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],QP);
_.B(QP,"ytd-playlist-panel-video-renderer",function(){if(ZUi!==void 0)return ZUi;var H=document.createElement("template");_.f(H,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n      <template is="dom-if" if="[[showPlayIcon]]" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="play-icon" class="style-scope ytd-playlist-panel-video-renderer">\n          <yt-icon default-to-filled="true" icon="[[playIcon]]" size="12" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n        </span>\n      </template>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return ZUi=H},{mode:2});var dY=function(){return _.X.apply(this,arguments)||this};
_.G(dY,_.X);dY.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],dY.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],dY.prototype,"data",void 0);_.D([_.h({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],dY);
_.B(dY,"ytd-playlist-panel-supported-items",function(){if(FE3!==void 0)return FE3;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return FE3=
H},{mode:1});vjn=!0;tAV("\\P{N}");var okE;var Y$O=_.fL("END_OF_PLAYLIST",void 0,"End of playlist"),zp9=_.fL("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),Py=function(){var H=_.X.apply(this,arguments)||this;H.minimizePipBreakages=_.E("web_pip_minimize_breakages");H.hideHeaderText=!1;H.useColorPalette=!1;H.collapsed=!1;H.collapsedPreServerOverride="not_tracked";H.isHovered=!1;H.modernPanels=_.E("kevlar_watch_modern_panels");H.expandLabel=_.fL("MINIPLAYER_EXPAND_LABEL");H.collapseLabel=_.fL("MINIPLAYER_COLLAPSE_LABEL");
H.isFloating=!1;H.metaPanel=!1;H.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};H.currentIndex=void 0;return H};
_.G(Py,_.X);_.F=Py.prototype;
_.F.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"}}}};
_.F.created=function(){this.scrollThrottle=new _.I$(this.onThrottledScroll,1E3,this)};
_.F.onMouseEnter=function(){this.isHovered=!0};
_.F.onMouseLeave=function(){this.isHovered=!1};
_.F.computeOverflowMenuData=function(H){return H&&H.menu?H.menu:null};
_.F.computeCollapsible=function(H){return!H};
_.F.computeHasPlaylistButtons=function(H){return!(!H||!H.playlistButtons)};
_.F.computeHasSeparateSaveButton=function(H){return!(!H||!H.saveButton)};
_.F.computeHasToolbarButton=function(H,C){return!(!H||!(C||H.saveButton||H.menu))};
_.F.computePlaylistType=function(H){if(H&&H.playlistId)return H.playlistId.substring(0,4)};
_.F.computeCanReorder=function(H){return H?H.playlistId&&H.playlistId.startsWith("TLPQ")?!0:!!H.isEditable&&!H.isInfinite:!1};
_.F.attached=function(){var H=this;try{_.JA().resolve(_.qb).setPlaylistComponent(this.hostElement)}catch(C){if(_.E("kevlar_park_on_playlist_token_killswitch"))throw C;_.mN().parkOrScheduleJob(function(){_.JA().resolve(_.qb).setPlaylistComponent(H.hostElement)},2,"ci")}_.YR(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.F.detached=function(){_.zo(this.hostElement)};
_.F.computeTrailingIcon=function(H,C,S){return S?C?"yt-icons:collapse":"yt-icons:close":C?"yt-icons:expand":_.E("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.F.computeIndexMessage=function(H,C){return Q5u(H+1)+" / "+Q5u(C)};
_.F.onRenderStamperFinished=function(){if(this.scrollForStampDom){var H=!0;this.isHovered&&(H=!1);if(this.collapsed||this.hidden)H=!1;H&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.F.collapseChanged=function(){var H=this;this.collapsed||(_.mx(this.ytTaskEmitterBehavior.getTaskManager(),function(){H.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.F.hiddenChanged=function(){var H=this;this.hidden||_.mx(this.ytTaskEmitterBehavior.getTaskManager(),function(){H.scrollToCurrentVideo()})};
_.F.setupReordering=function(){var H=_.mY(this.hostElement).querySelector("#items");pLb?_.os_(this.ytReorderableBehavior,H,H,"playlist-drag-handle"):_.os_(this.ytReorderableBehavior,H,H)};
_.F.scrollToCurrentVideo=function(){var H=this;_.rT.addJob(function(){var C=_.mY(H.hostElement).querySelector("#items");if(C){C.style.setProperty("padding-bottom","");var S=_.mY(H.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(S){C=S.parentElement||_.ni(document);var w=C||_.ni(document);var A=_.KX(S),J=_.KX(w),c=_.i9Y(w);if(w==_.ni(document)){var Y=A.x-w.scrollLeft;A=A.y-w.scrollTop}else Y=A.x-J.x-c.left,A=A.y-J.y-c.top;S=Iqb(S);J=w.clientHeight-
S.height;c=w.scrollLeft;var M=w.scrollTop;c+=Y-(w.clientWidth-S.width)/2;w=new _.rx(c,M+(A-J/2));C.scrollLeft=w.x;C.scrollTop=w.y}}},8)};
_.F.dataChanged=function(){var H=this;_.VXM(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.wM(this,function(){_.X2(H.ytTaskEmitterBehavior.getTaskManager(),function(){H.ytRendererBehavior.markDirty();H.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.F.onFullBleedPlayerChanged=function(){_.E("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.F.onFullscreenChanged=function(){_.E("web_watch_imax_theater_mode")||_.E("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.F.updateNowPlayingOverlay=function(){_.E("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.F.onPlaylistLockupNowPlaying=function(H,C){C&&(this.activeNowPlayingRenderer=C);this.updateNowPlayingOverlay()};
_.F.onScroll=function(){this.scrollThrottle.fire()};
_.F.onThrottledScroll=function(){var H=this;_.X2(this.ytTaskEmitterBehavior.getTaskManager(),function(){H.ytRendererBehavior.markDirty()})};
_.F.onToggleExpanded=function(H){!this.collapsible||H&&(_.Jr(H).tagName==="A"||_.ww(_.Ar(H),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.F.setCollapsed=function(H){this.collapsible&&(this.collapsed=H,_.m7(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.F.handleCollapsedFromData=function(H){if(H){var C=H.playlistPanelCollapseState;C==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||C==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),C=C==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==C&&this.setCollapsed(C)):this.currentPlaylistId!==H.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(C=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==C&&this.setCollapsed(C),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=H.playlistId}};
_.F.handleDrop=function(H){var C=H.currDragItem;H=C.data.playlistSetVideoId;var S=_.hV(C.parentNode.childNodes,C),w=void 0;S>0&&(w=C.parentNode.childNodes[S-1].data.playlistSetVideoId);C=_.Nb();if(C.responsePlaylistData&&C.responsePlaylistData.contents){var A=PQu(H,C.responsePlaylistData);C.responsePlaylistData=(0,_.hb.unsafeClone)(C.responsePlaylistData);k6$(C.responsePlaylistData.contents,A,S);C.queueProxy?kJi(C.queueProxy,A,S,H,w):C.playlistProxy&&kJi(C.playlistProxy,A,S,H,w);_.bo(C,_.Ee(C,C.response?
C.response.autoplayRenderer:void 0))}};
_.F.handleDarkModeChange=function(H){H!==this.isDarkTheme&&(this.isDarkTheme=H)};
_.F.colorPaletteChanged=function(){var H,C=((H=this.data)==null?void 0:H.contents)||[],S;H=_.Z(C);for(C=H.next();!C.done;C=H.next()){C=C.value;var w=void 0;if((w=C.playlistPanelVideoRenderer)==null?0:w.selected){H=C.playlistPanelVideoRenderer;w=C=void 0;(S=this.isDarkTheme?(C=H)==null?void 0:C.darkColorPalette:(w=H)==null?void 0:w.lightColorPalette)&&_.pu(this.hostElement,S);break}}this.useColorPalette=!!S};
_.JJ.Object.defineProperties(Py.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.moveThreeDotsMenuToMainHeader)&&_.E("course_hide_playlist_panel_shuffle_and_loop_buttons")}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var H=_.JA().resolve(_.AA(_.qb)),C;if(((C=this.data)==null?0:C.contents)&&(H==null?0:H.hasAutoplayData())){var S;if(((S=this.playlistLoopStateEntity)==null?void 0:S.state)==="PLAYLIST_LOOP_STATE_ONE"){if(H=this.data.currentIndex,H!==void 0){var w,A;var J=(w=this.data.contents[H])==null?void 0:(A=w.playlistPanelVideoRenderer)==null?void 0:A.title}}else{var c,Y=(c=_.e(H.getAutoplayEndpoint(),_.sX))==null?void 0:c.videoId,M,m;J=(M=this.data.contents.find(function(W){var y;
return((y=W.playlistPanelVideoRenderer)==null?void 0:y.videoId)===Y}))==null?void 0:(m=M.playlistPanelVideoRenderer)==null?void 0:m.title}return J}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)!=null&&H.nextVideoLabel?this.nextVideoTitle?_.jt(this.data.nextVideoLabel)+":":Y$O:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var H;if(((H=this.data)==null?0:H.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.E("web_mix_long_byline_from_data"))return _.sx(zp9);var C;return(C=this.data)==null?void 0:C.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var H,C,S,w=(H=this.data)==null?void 0:(C=H.playlistButtons)==null?void 0:(S=C.menuRenderer)==null?void 0:S.topLevelButtons;if(w)for(H=_.Z(w),C=H.next();!C.done;C=H.next())if(C=C.value,C.playlistLoopButtonRenderer)return C.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var H;return!!(this.collapsed&&((H=this.data)==null?0:H.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.E("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
Py.prototype.colorPaletteChanged=Py.prototype.colorPaletteChanged;Py.prototype.onPlaylistLockupNowPlaying=Py.prototype.onPlaylistLockupNowPlaying;Py.prototype.updateNowPlayingOverlay=Py.prototype.updateNowPlayingOverlay;Py.prototype.onFullscreenChanged=Py.prototype.onFullscreenChanged;Py.prototype.onFullBleedPlayerChanged=Py.prototype.onFullBleedPlayerChanged;Py.prototype.dataChanged=Py.prototype.dataChanged;Py.prototype.hiddenChanged=Py.prototype.hiddenChanged;Py.prototype.collapseChanged=Py.prototype.collapseChanged;
Py.prototype.onRenderStamperFinished=Py.prototype.onRenderStamperFinished;Py.prototype.onMouseLeave=Py.prototype.onMouseLeave;Py.prototype.onMouseEnter=Py.prototype.onMouseEnter;_.D([_.v(_.Ix),_.K("design:type",Object)],Py.prototype,"ironResizableBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Py.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Py.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.v(vsb.YtPlaylistPanelBehavior),_.K("design:type",Object)],Py.prototype,"ytPlaylistPanelBehavior",void 0);_.D([_.v(_.o_.YtTaskEmitterBehavior),_.K("design:type",Object)],Py.prototype,"ytTaskEmitterBehavior",void 0);_.D([_.v(_.OR7),_.K("design:type",Object)],Py.prototype,"ytReorderableBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Py.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],Py.prototype,"ytdReduxBehavior",void 0);
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],Py.prototype,"actionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Py.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],Py.prototype,"autoplayData",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],Py.prototype,"withinMiniplayer",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Py.prototype,"minimizePipBreakages",void 0);
_.D([_.V({computed:"setMenuData_(data)"}),_.K("design:type",Object)],Py.prototype,"menuRendererData",void 0);_.D([_.V({computed:"computeOverflowMenuData(data)"}),_.K("design:type",Object)],Py.prototype,"overflowMenuDataTopRow",void 0);_.D([_.V({computed:"computeOverflowMenuData(data)"}),_.K("design:type",Object)],Py.prototype,"overflowMenuData",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Py.prototype,"hideHeaderText",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Py.prototype,"useColorPalette",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.K("design:type",Boolean)],Py.prototype,"collapsible",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Py.prototype,"collapsed",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],Py.prototype,"hidden",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.K("design:type",Boolean)],Py.prototype,"hasPlaylistButtons",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.K("design:type",Boolean)],Py.prototype,"hasSeparateSaveButton",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.K("design:type",Boolean)],Py.prototype,"hasToolbar",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.K("design:type",String)],Py.prototype,"playlistType",void 0);_.D([_.V(),_.K("design:type",Object)],Py.prototype,"isHovered",void 0);_.D([_.V({selectorArgs:["playlistLoopStateEntityKey"],selector:_.EsZ}),_.K("design:type",Object)],Py.prototype,"playlistLoopStateEntity",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Py.prototype,"modernPanels",void 0);
_.D([_.V({value:56}),_.K("design:type",Number)],Py.prototype,"scrollMargin",void 0);_.D([_.V({computed:"computeCanReorder(data)"}),_.K("design:type",Boolean)],Py.prototype,"canReorder",void 0);_.D([_.V(),_.K("design:type",Object)],Py.prototype,"expandLabel",void 0);_.D([_.V(),_.K("design:type",Object)],Py.prototype,"collapseLabel",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Py.prototype,"isFloating",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Py.prototype,"metaPanel",void 0);_.D([_.V({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.K("design:type",String)],Py.prototype,"trailingIcon",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Py.prototype,"isDarkTheme",void 0);_.D([_.V({selector:_.Dy}),_.K("design:type",Boolean)],Py.prototype,"miniplayerIsActive",void 0);_.D([_.V({selector:function(H){return H.watch.playerState}}),
_.K("design:type",Number)],Py.prototype,"playerState",void 0);_.D([_.V({selector:_.Ku}),_.K("design:type",Boolean)],Py.prototype,"isFullscreen",void 0);_.D([_.V({selector:_.Dl}),_.K("design:type",Boolean)],Py.prototype,"isTheaterMode",void 0);_.D([_.V(),_.K("design:type",Object)],Py.prototype,"activeNowPlayingRenderer",void 0);_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Py.prototype,"moveThreeDotMenuToTopRow",null);
_.D([_.l("data","autoplayData","playlistLoopStateEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],Py.prototype,"nextVideoTitle",null);_.D([_.l("data","nextVideoTitle"),_.K("design:type",String),_.K("design:paramtypes",[])],Py.prototype,"nextVideoLabel",null);_.D([_.l("collapsed"),_.K("design:type",String),_.K("design:paramtypes",[])],Py.prototype,"buttonAriaLabel",null);
_.D([_.l("data","playlistId","longBylineText"),_.K("design:type",Object),_.K("design:paramtypes",[])],Py.prototype,"mixLongByLine",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Py.prototype,"playlistLoopStateEntityKey",null);_.D([_.Gz("mouseenter"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Py.prototype,"onMouseEnter",null);
_.D([_.Gz("mouseleave"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Py.prototype,"onMouseLeave",null);_.D([_.V({reflectToAttribute:!0}),_.l("data","collapsed"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Py.prototype,"showNextVideoHeader",null);_.D([_.Gz("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Py.prototype,"onRenderStamperFinished",null);
_.D([_.fx("collapsed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Py.prototype,"collapseChanged",null);_.D([_.fx("hidden"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Py.prototype,"hiddenChanged",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Py.prototype,"dataChanged",null);
_.D([_.l("isTheaterMode","isFullscreen"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Py.prototype,"isFullBleedPlayer",null);_.D([_.fx("isTheaterMode","isFullscreen"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Py.prototype,"onFullBleedPlayerChanged",null);_.D([_.fx("isFullscreen"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Py.prototype,"onFullscreenChanged",null);
_.D([_.fx("playerState","miniplayerIsActive"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Py.prototype,"updateNowPlayingOverlay",null);_.D([_.Gz("yt-playlist-lockup-now-playing-active"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],Py.prototype,"onPlaylistLockupNowPlaying",null);
_.D([_.fx("data","isDarkTheme"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Py.prototype,"colorPaletteChanged",null);_.D([_.h({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],Py);
_.MZq=_.Tp()(Py,"ytd-playlist-panel-renderer",function(){if(JV_===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);JV_=H}H=JV_;return H},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var q$t;var $N=function(){var H=_.X.apply(this,arguments)||this;H.modern=_.E("web_button_rework");return H};
_.G($N,_.X);$N.prototype.computeShouldButtonBeVertical=function(H,C){return H||C};
$N.prototype.onYtServiceRequestSent=function(H,C){(H=_.e(C.endpoint,_.DB))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.O5("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:H.status})):this.handleLikeEndpoint(H))};
$N.prototype.computelikeStatusEntityKey=function(H){return H==null?void 0:H.likeStatusEntityKey};
$N.prototype.handleLikeEndpoint=function(H){H.status==="LIKE"?this.JSC$17103_ytdDislikeToggleButtonRenderer.toggle(!1):H.status==="DISLIKE"?this.JSC$17103_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$17103_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$17103_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.JJ.Object.defineProperties($N.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var H;return pRU(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(H=this.likeStatusEntity)==null?void 0:H.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var H;if(this.data&&((H=this.data)==null||!H.hideDislikeButton)){var C;return pRU(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(C=this.likeStatusEntity)==null?void 0:C.likeStatus)}}}});
$N.prototype.onYtServiceRequestSent=$N.prototype.onYtServiceRequestSent;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],$N.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],$N.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],$N.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],$N.prototype,"vertical",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",String)],$N.prototype,"textTransform",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],$N.prototype,"useShortsIcon",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],$N.prototype,"underIconLabel",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],$N.prototype,"modern",void 0);_.D([_.V({value:"left"}),_.K("design:type",String)],$N.prototype,"buttonTooltipPosition",void 0);
_.D([_.V(),_.K("design:type",Object)],$N.prototype,"overrides",void 0);_.D([_.lA("#like-button"),_.K("design:type",Object)],$N.prototype,"JSC$17103_ytdLikeToggleButtonRenderer",void 0);_.D([_.lA("#dislike-button"),_.K("design:type",Object)],$N.prototype,"JSC$17103_ytdDislikeToggleButtonRenderer",void 0);_.D([_.l("data","likeStatusEntity.likeStatus","useShortsIcon"),_.K("design:type",Object),_.K("design:paramtypes",[])],$N.prototype,"likeButton",null);
_.D([_.l("data","likeStatusEntity.likeStatus","useShortsIcon"),_.K("design:type",Object),_.K("design:paramtypes",[])],$N.prototype,"dislikeButton",null);_.D([_.V({computed:"computelikeStatusEntityKey(data)"}),_.K("design:type",String)],$N.prototype,"likeStatusEntityKey",void 0);_.D([_.V({selectorArgs:["likeStatusEntityKey"],selector:gW}),_.K("design:type",Object)],$N.prototype,"likeStatusEntity",void 0);
_.D([_.Gz("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.IW]),_.K("design:returntype")],$N.prototype,"onYtServiceRequestSent",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],$N);
var Tuq=_.Tp()($N,"ytd-like-button-renderer",function(){if(q$t===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);q$t=H}H=q$t;return H},{mode:1});_.mDR={};
_.mDR.YtConditionalRendererBehavior=[_.I.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(H,C){var S=this,w,A;return _.z(function(J){switch(J.nextAddress){case 1:if(!C)return S.hidden=!0,S.showSpinner=!1,J.return();if((w=H)==null?0:(A=w.visibilityCondition)==null?0:A.mode)switch(H.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return J.jumpTo(5);default:return J.jumpTo(6)}S.showSpinner=
!1;S.hidden=!0;return J.yield(S.shouldShow_(H),4);case 4:S.hidden=!J.yieldResult;J.jumpTo(0);break;case 5:return J.yield(S.shouldShow_(H),8);case 8:S.showSpinner=J.yieldResult;S.hidden=!1;J.jumpTo(0);break;case 6:return S.showSpinner=!1,J.yield(S.shouldShow_(H),9);case 9:S.hidden=!J.yieldResult,_.oT(J)}})},
shouldShow_:function(H){return H&&H.supportedDatas&&H.supportedDatas.rendererVisibilityConditionData&&H.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(H.supportedDatas.rendererVisibilityConditionData.showIf):H&&H.visibilityCondition&&H.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(H.visibilityCondition.showIf):H&&H.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(H.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(H){switch(H){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(H){switch(H){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var H=_.q3(this.hostElement,"yt-get-mdx-status");return H.length==1&&H[0].connected},
isLocationPermissionGranted_:function(){var H;return _.z(function(C){return C.nextAddress==1?navigator.permissions?C.yield(navigator.permissions.query({name:"geolocation"}),3):C.jumpTo(2):C.nextAddress!=2?(H=C.yieldResult,C.return(Promise.resolve(H.state==="granted"))):C.return(Promise.resolve(!1))})}}];var WE9=Xvp("yt-icon",{callbackProps:["onKeydown"]}),yVr=_.E("kevlar_use_wil_icons")?_.n(function(H){var C=H.icon;var S=H.active;var w=H.className;var A=H.style;var J=H.dataSelected;var c=H.dataDisabled;var Y=H.role;var M=H.themeOverride;var m=H.animateIcon;var W=H.ariaHidden;var y=H.ariaExpanded;var N=H.ariaLabel;var b=H.tabindex;var u=H.id;var O=H.iconFilter;var d=H.onKeydown;var p=function(){var L=C==null?void 0:C(),t=null,g=void 0;L&&(L=wO7(L),L=wdw(L),L.length&&(t=L[1],g=L[0]));return{iconName:t,
iconSetName:g}},k=function(){return As7(p().iconName,S==null?void 0:S(),void 0,void 0,p().iconSetName,_.JA().resolve(_.E4))},R=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:O==null?void 0:O()}};
return _.q(_.T,{cond:m,then:function(){return _.q(WE9,{icon:C,active:S,className:w,style:A,dataSelected:J,dataDisabled:c,role:Y,themeOverride:M,ariaHidden:W,ariaExpanded:y,ariaLabel:N,tabindex:b,id:u,iconFilter:O,onKeydown:d})},
else:function(){return _.q(_.T,{cond:k,then:function(L){return _.q("span",{class:_.eJ("ytIconWrapperHost",w),role:Y,"aria-label":N,"aria-hidden":W,tabindex:function(){return isNaN(Number(b==null?void 0:b()))?void 0:Number(b==null?void 0:b())},
id:u,style:A,"on:keydown":_.um(function(t){return void(d==null?void 0:d(t))})},_.q(ow7,{data:L,
options:R}))}})}})},"Ve"):WE9;var NuO=function(H){var C=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];cgW();_.AO("ytglobal.ytUtilActivityCallback_",function(){_.m7(H,"yt-user-activity")});
new F2(function(){return C.JSC$17119_onMouseMove});
document.addEventListener("scroll",function(){return C.onScroll});
window.addEventListener("resize",function(){return C.onResize})},bUo=function(H,C,S){C in H.eventJobIds||(S=_.oh().addLowPriorityJob(function(){_.ZZ();
delete H.eventJobIds[C]},S),H.eventJobIds[C]=S)};
NuO.prototype.onScroll=function(H){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):H.target===document&&bUo(this,"scroll",200)};
NuO.prototype.onResize=function(){bUo(this,"resize",200)};
NuO.prototype.JSC$17119_onMouseMove=function(){bUo(this,"mousemove",100)};
_.Qz=function(H){H.scrollEventsToIgnore+=1;H.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){H.scrollEventsToIgnore--},500))};var EE3=function(H){this.element=H;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
EE3.prototype.showFeedbackDialog=function(H,C,S,w){var A=ep3();if(!A)return!1;var J=U2D();J.productId=A;C&&(J.flow="submit",J.report={description:C});S&&(ep3()==="59"?J.callback=_.Lp(function(){_.kI("userFeedbackEvent",{});S()}):J.callback=_.Lp(S));
J.bucket=w||_.rh("GOOGLE_FEEDBACK_BUCKET","Other");uWi(J);H=G6t(this,"GFEEDBACK",H);try{_.sY7(J,H)}catch(c){return _.tE(c),!1}return!0};
EE3.prototype.showHelpDialog=function(H,C,S){var w=this,A=ep3();if(!A)return!1;var J={helpCenterPath:"/youtube",productData:G6t(this,"GUIDED_HELP",S)};uWi(J);var c=U2D();c.context=H||J.productData.context||"default";c.defaultHelpArticleId=C;c.enableSendFeedback=!0;(_.gh("gapi.load")||function(Y,M){return M()})("client",function(){try{var Y=VLW(A,J);
if(_.E("web_always_load_chat_support")&&!w.chatSupportLoaded)try{Y.JSC$9988_loadChatSupport(c),w.chatSupportLoaded=!0}catch(M){}Y.startHelp(c)}catch(M){_.tE(M)}})};
var ep3=function(){var H=_.rh("GOOGLE_FEEDBACK_PRODUCT_ID");H||_.tE(Error("li"));return H},uWi=function(H){H&&(H.locale=_.E("kevlar_help_use_locale")?_.rh("INNERTUBE_CONTEXT_HL","en"):_.rh("HTML_LANG","en"))},G6t=function(H,C,S){var w=H.productData;
delete w.origin;w.device=_.WZ();var A;a:{if(A=document.createElement("canvas")){var J=A.getContext("experimental-webgl",{stencil:!0});if(J){var c=J.getExtension("WEBGL_debug_renderer_info");if(c){A=J.getParameter(c.UNMASKED_RENDERER_WEBGL);break a}}if(J=A.getContext("webgl")){A=J.getParameter(J.RENDERER);break a}}A=null}w.gpu=A;w.isSDC=!!_.rh("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(A=_.rh("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.hb.extend(w,A);_.LOZ(C,w);_.gkp(w);(H=_.m7(H.element,"yt-get-autonav-pause-debug-state"))&&
H.length&&(w.autonav_pause_state=H[0]);H=_.lR();w.browser_resolution=H.width+"\u00d7"+H.height+"@"+(window.devicePixelRatio||1)+"x";S&&_.hb.extend(w,S);return w};
EE3.prototype.resetProductData=function(){this.productData={}};var fwO=function(H){this.feedbackManager=new EE3(H)};
fwO.prototype.showFeedbackDialog=function(H,C,S,w){return this.feedbackManager.showFeedbackDialog(H,C,S,w)};
fwO.prototype.showHelpDialog=function(H,C,S){return this.feedbackManager.showHelpDialog(H,C,S)};var vER=function(){this.baseUrl="";this.aTag=document.createElement("a")},dFb=function(H,C,S){S=S===void 0?{}:S;
S.pbj||(S.pbj=1);S=_.UpZ(C,S);H.baseUrl&&S&&!_.Cv(S)[1]&&!_.S$(S)&&(C=H.baseUrl,JV(C,"/")&&(C=C.slice(0,-1)),_.AV(S,"/")&&(S=S.slice(1)),S=C+"/"+S);gP(H.aTag,_.n9(S||""));return H.aTag.href};
vER.prototype.fetchData=function(H){return _.nku(H)};
vER.prototype.postData=function(H,C){var S={method:"POST"};if(C){for(var w=_.Z(Object.keys(C)),A=w.next();!A.done;A=w.next()){A=A.value;var J=C[A];_.U$(J)&&(C[A]=JSON.stringify(J))}S.postParams=C}return _.nku(H,S)};
_.P__=function(H,C,S,w,A){H=dFb(H,C,S);if(!H)throw w=Error("mi"),Object.assign(w,{params:C}),w;return _.nku(H,A,w)};
vER.prototype.requestDataForServiceEndpoint=function(H,C){if(_.e(H,_.ZY0))return this.fetchData("/getAccountSwitcherEndpoint");C=C||{};var S=_.e(H,siU);S?C.se=S.base64EncodedServiceEndpoint:C.sej=JSON.stringify(H);(S=_.Dg())&&_.E("enable_service_ajax_csn")&&(C.csn=S);C.theme=_.$F();_.e(H,JRw)&&_.rh("DELEGATION_CONTEXT")&&(C.delegation_context=JSON.stringify(_.rh("DELEGATION_CONTEXT")));S=null;for(var w in H)if(JV(w,"Endpoint")||JV(w,"Command")){S=w;break}if(!S){var A=Error("ni");Object.assign(A,{params:H});
_.t4p(A,"WARNING");return new _.Es(function(c,Y){Y(A)})}w={name:S};
var J;(S=(J=_.e(H,_.eR))==null?void 0:J.signal)&&(w.signal=S);(J=_.xT(window.location.href))&&J.internalcountrycode&&(w.internalcountrycode=J.internalcountrycode);J="/service_ajax";_.E("debug_forward_web_query_parameters")&&(J=_.AfE(J,window.location.search));J=_.i5(J,w);H.clickTrackingParams&&_.JM(J,{itct:H.clickTrackingParams});return this.postData(J,C)};_.lw3=new _.W4("GFEEDBACK_TOKEN");var VZ9;var oE9;var OUR;var XZp;var py=function(){var H=_.X.apply(this,arguments)||this;H.compact=!1;H.dismissButtonDisabled=!1;return H};
_.G(py,_.X);py.prototype.computeHasIcon_=function(H){return!!H};
py.prototype.isSignInIcon_=function(H){return H=="yt-icons:prompted_sign_in"};
py.prototype.onDismissButtonClick=function(){var H;this.data.disableOnClick&&!this.dismissButtonDisabled&&(H=this.data.dismissButton)!=null&&H.buttonRenderer&&(this.dismissButtonDisabled=!0)};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],py.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mDR.YtConditionalRendererBehavior),_.K("design:type",Object)],py.prototype,"ytConditionalRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],py.prototype,"data",void 0);_.D([_.V({computed:"computeIcon_(data.icon)"}),_.K("design:type",Object)],py.prototype,"icon_",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.K("design:type",Boolean)],py.prototype,"hasIcon_",void 0);_.D([_.V({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.K("design:type",Boolean)],py.prototype,"signInIcon_",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],py.prototype,"compact",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],py.prototype,"dismissButtonDisabled",void 0);
_.D([_.Lx({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],py);
_.B(py,"yt-player-error-message-renderer",function(){if(XZp===void 0){var H=document.createElement("template");_.f(H,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e\n<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" disabled$="[[dismissButtonDisabled]]" on-tap="onDismissButtonClick" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="button" data="[[data.proceedButton.buttonRenderer]]" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;OUR===void 0&&(OUR=document.createElement("template"));var w=OUR;S.call(C,w.content.cloneNode(!0),H.content.firstChild);XZp=H}H=XZp;return H},{mode:2});var Q0j;var dDK;var kN=function(){return _.X.apply(this,arguments)||this};
_.G(kN,_.X);kN.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
kN.prototype.computeIcon_=function(H){return H?"yt-icons:"+H.iconType.toLowerCase():"error_outline"};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],kN.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],kN.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],kN.prototype,"data",void 0);_.D([_.V({computed:"computeIcon_(data.icon)"}),_.K("design:type",Object)],kN.prototype,"icon_",void 0);_.D([_.Lx({is:"yt-player-kav-renderer",disableElementRegistration:!0})],kN);
_.B(kN,"yt-player-kav-renderer",function(){if(dDK===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;Q0j===void 0&&(Q0j=document.createElement("template"));var w=Q0j;S.call(C,w.content.cloneNode(!0),H.content.firstChild);dDK=H}H=dDK;return H},{mode:2});var ac0=_.xC(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.qs(_.n(function(H){var C=_.sW("div"),S=_.Z(_.mB(0,void 0,"jxh75d")),w=S.next().value,A=S.next().value;S=_.Z(_.mB(null,void 0,"F5Zm8"));var J=S.next().value,c=S.next().value;_.$T(function(){x2$(C.value,A,c);C.value.scrollIntoView()});
S=Hai.bind(null,H.data,w);_.Fy("resize",function(){var Y=J();if(w()===1&&Y!==null){var M;(M=window.grecaptcha)==null||M.reset(Y)}});
return _.q("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.q("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.q("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var Y,M;return(Y=H.data().accessibility)==null?void 0:(M=Y.accessibilityData)==null?void 0:M.label}),_.q(_.uZ,{text:S,
className:_.eJ("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.q("div",{el:C,class:"ytwPlayerCaptchaViewModelGridItem"})))},"We"),"yt-player-captcha-view-model",{props:{data:_.Yb}});var iau=!1;_.Piq=_.n(function(H){var C=H.data;return _.q("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.q(_.T,{cond:function(){return C().icon},
then:function(S){return _.q("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.q(_.Jg,{data:S,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.q(_.T,{cond:function(){return C().title},
then:function(S){return _.q("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.q(_.uZ,{text:S}))}}),_.q(_.T,{cond:function(){return C().description},
then:function(S){return _.q("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.q(_.uZ,{text:S}))}}),_.q(_.V4,{data:function(){return C().primaryButton}},{buttonViewModel:function(S){return _.q(_.rc,{data:S.data,
className:"interstitialViewModelFlexItem"})}}),_.q(_.V4,{data:function(){return C().secondaryButton}},{buttonViewModel:function(S){return _.q(_.rc,{data:S.data,
className:"interstitialViewModelFlexItem"})}}))},"Xe");
_.Piq.idomCompat=!0;var $Dq=_.n(function(H){var C=H.data;_.g$();return _.q("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.q("div",{class:"playerInterstitialRendererScrim"},_.q(_.V4,{data:function(){return C().content}},{interstitialViewModel:_.Piq})))},"Ye");
$Dq.idomCompat=!0;_.qs($Dq,"yt-player-interstitial-renderer",{props:{data:_.GH}});var h2=function(){var H=_.X.apply(this,arguments)||this;H.noBackground=!1;H.compact=!1;H.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return H};
_.G(h2,_.X);h2.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"}}}};
h2.prototype.onUpdatePlayerErrorMessageCommand_=function(H){if(_.e(H,mcU)){var C;if(H=(C=_.e(H,mcU))==null?void 0:C.newPlayerErrorMessageRenderer)this.data=H}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],h2.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],h2.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],h2.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],h2.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],h2.prototype,"status",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],h2.prototype,"noBackground",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],h2.prototype,"compact",void 0);_.D([_.Lx({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],h2);
var pZ_=_.Tp()(h2,"yt-playability-error-supported-renderers",function(){if(oE9===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;VZ9===void 0&&(VZ9=document.createElement("template"));var w=VZ9;S.call(C,w.content.cloneNode(!0),H.content.firstChild);oE9=H}H=oE9;return H},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var k6_=Xvp("ytd-button-renderer");var CO7=void 0,sHW=void 0;var AuE=new MLd;var hpj=function(H){this.store=H;this.xxR=new _.mjP},kCi=function(H,C,S){var w,A;
if(!(A=((w=C.playabilityStatus)==null?void 0:w.status)!=="OK")){H=H.store;var J;A=C.offlineState&&((J=C.videoDetails)==null?0:J.videoId)?_.E("enable_pl_r_c_cd")?f3$(H.getState().entities,C.videoDetails.videoId):!!H$W(H.getState().entities,C.videoDetails.videoId):!1}if(A)return!0;A=Yi7(C);if(A===1){if(_.E("ab_v_vid_sig")){var c,Y=(c=C.videoDetails)==null?void 0:c.videoId;if(!Y||!S||Y!==S){var M;C=new _.X0("282054944_vid",{pQg:S,e40:(M=C.videoDetails)==null?void 0:M.videoId});_.nC(C)}}return!0}W4Z=
0;var m,W;M=(Y=C.auxiliaryUi)==null?void 0:(m=Y.messageRenderers)==null?void 0:(W=m.bkaEnforcementMessageViewModel)==null?void 0:W.displayType;if(A!==3&&(M==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||M==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;M={reason:_.cF(_.fL("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.E("ks_something_wrong_learn_more")?fOE("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.cF(_.fL("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:_.cF("282054944")};nE_(C,{playerErrorMessageRenderer:M});return!1},hSw=function(H,C){if(PUV(C)){_.u4(1,!0);
var S=(S=PUV(C))&&_.SiW()?S:void 0;S?(nE_(C,{enforcementMessageViewModel:S}),H.xxR.increment("IN_PLAYER"),_.u4(5)):(H.xxR.increment("SKIP_DISPLAY"),_.u4(2))}},nE_=function(H,C){H.playabilityStatus=Object.assign({},H.playabilityStatus,{status:"ERROR",
errorScreen:C});H.videoDetails=void 0};
hpj.prototype.handleResponse=function(H,C){if(H.playabilityStatus){var S,w,A,J=(C==null?void 0:(S=C.innerTubeRequest)==null?void 0:S.videoId)||(C==null?void 0:(w=C.innerTubeRequest)==null?void 0:(A=w.playerRequest)==null?void 0:A.videoId);kCi(this,H,J)&&hSw(this,H)}};
hpj[F0]=[Fn];var $CV=new _.W4("ADBLOCK_DETECTION_SERVICE_TOKEN");var aJ=function(H){this.kfR=H};
aJ.prototype.bindInnertubeChallengeFetcher=function(H){this.kfR.bicf(H)};
aJ.prototype.registerChallengeFetchedCallback=function(H){this.kfR.bcr(H)};
aJ.prototype.getLatestChallengeResponse=function(){return this.kfR.blc()};var rV_;rV_=_.xC(["https://static.doubleclick.net/instream/ad_status.js"]);_.BuO=_.qH(rV_);var LEi;_.ny=function(H,C,S){var w=this;this.network=H;this.options=C;this.networkStatusManager=S;this.ag=null;if(C.useBotguardEverywhere){var A=new _.N5;this.ag=A.promise;_.s$.ytAtRC&&_.dw(_.rT,function(){var J,c;return _.z(function(Y){if(Y.nextAddress==1){if(!_.s$.ytAtRC)return Y.return();J=DD3(null);return Y.yield(w.ou(J),2)}c=Y.yieldResult;_.s$.ytAtRC&&_.s$.ytAtRC(JSON.stringify(c));_.oT(Y)})});
m0p().then(function(J){var c,Y,M,m;return _.z(function(W){if(W.nextAddress==1)return J.bindInnertubeChallengeFetcher(function(y){return w.ou(DD3(y))}),W.yield(phU(),2);
c=W.yieldResult;Y=J.getLatestChallengeResponse();M=Y.challenge;if(!M)throw Error("oi");m={challenge:M,i4:IJ(M),vm:c,bgChallenge:new Uj};A.resolve(m);J.registerChallengeFetchedCallback(function(y){y=y.challenge;if(!y)throw Error("pi");y={challenge:y,i4:IJ(y),vm:c,bgChallenge:new Uj};w.ag=Promise.resolve(y)});
_.oT(W)})})}else C.preload&&KER(this,new Promise(function(J){_.X2(_.rT,function(){J(tZi(w))},0)}))};
LEi=function(H){var C={preload:!0,useBotguardEverywhere:!0},S=!1;if(typeof C==="boolean")var w={preload:C};else typeof C==="undefined"?w={preload:!0}:(w=C,S=!!C.lCX);C=S?void 0:new _.Hn;_.ny.instance=new _.ny(H,w,C);return _.ny.instance};
_.ny.prototype.z34=function(){var H=this;return _.z(function(C){return C.nextAddress==1?C.yield(Promise.race([H.ag,null]),2):C.return(!!C.yieldResult)})};
_.ny.prototype.b6W=function(H,C,S){var w=this,A,J,c;return _.z(function(Y){w.ag===null&&KER(w,tZi(w));A=!1;J={};c=function(){var M,m,W;return _.z(function(y){switch(y.nextAddress){case 1:return y.yield(w.ag,2);case 2:M=y.yieldResult;J.challenge=M.challenge;if(!M.vm){"c1a"in M.i4&&(J.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");y.jumpTo(3);break}m=Object.assign({},{c:M.challenge,e:H},C);_.en(y,4);A=!0;return y.yield(M.vm.snapshot({v5:m}),6);case 6:(W=y.yieldResult)?J.webResponse=W:J.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.xB(y,3);break;case 4:_.Vx(y),J.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(H==="ENGAGEMENT_TYPE_PLAYBACK"){var N=M.i4,b={};if(N.c6a){var u=Number(_.rh("DCLKSTAT",0));b.reportingStatus=String(Number(N.c)^(isNaN(u)?0:u))}N.c6b&&(b.broadSpectrumDetectionResult=String(Number(N.c)^Number(_.rh("CATSTAT",0))));J.adblockReporting=b}return y.return(J)}})};
return Y.return(Promise.race([c(),gE_(S,function(){var M=Object.assign({},J);A&&(M.error="ATTESTATION_ERROR_VM_TIMEOUT");return M})]))})};
var DD3=function(H){var C={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};H&&(C.interpreterHash=H);return C},tZi=function(H,C){C=C===void 0?0:C;
var S,w,A,J,c,Y,M,m,W,y,N,b;return _.z(function(u){switch(u.nextAddress){case 1:S=DD3(Wm1().kuD);if(_.E("att_fet_ks"))return _.en(u,7),u.yield(H.ou(S),9);_.en(u,4);return u.yield(UDt(H,S),6);case 6:c=u.yieldResult;A=c.jyl;J=c.qS0;w=c;_.xB(u,3);break;case 4:return _.Vx(u),_.Bn(Error("qi`"+C)),Rpo(H,864E5),u.return({challenge:"",i4:{},vm:void 0,bgChallenge:void 0});case 9:w=u.yieldResult;if(!w)throw Error("ri");if(!w.challenge)throw Error("si");A=w.challenge;J=IJ(A);if("c1a"in J&&(!w.bgChallenge||!w.bgChallenge.program))throw Error("ti");
_.xB(u,3);break;case 7:Y=_.Vx(u);_.Bn(Y);C++;if(C>=5)return _.Bn(Error("qi`"+C)),Rpo(H,864E5),u.return({challenge:"",i4:{},vm:void 0,bgChallenge:void 0});M=1E3*Math.pow(2,C-1)+Math.random()*1E3;return u.return(new Promise(function(O){_.X2(_.rT,function(){O(tZi(H,C))},M)}));
case 3:m=TN0(J);Rpo(H,m*1E3);W=void 0;if(!("c1a"in J&&w.bgChallenge)){u.jumpTo(10);break}y=qii(w.bgChallenge);_.en(u,11);return u.yield(NSW(Wm1(),y),13);case 13:_.xB(u,12);break;case 11:return N=_.Vx(u),_.Bn(N),u.return({challenge:A,i4:J,vm:W,bgChallenge:y});case 12:return _.en(u,14),W=new _.RY({challenge:y,hbK:{gs:"aGIf"}}),u.yield(W.zaT,16);case 16:_.xB(u,10);break;case 14:b=_.Vx(u),_.Bn(b),W=void 0;case 10:return u.return({challenge:A,i4:J,vm:W,bgChallenge:y})}})};
_.ny.prototype.ou=function(H){var C=this,S;return _.z(function(w){S=C.networkStatusManager;if(!S||S.isNetworkAvailable())return w.return(C.network.ou(H));_.tM("att_pna",void 0,"attestation_challenge_fetch");return w.return(new Promise(function(A){S.listenOnce("publicytnetworkstatus-online",function(){C.network.ou(H).then(A)})}))})};
var Iwp=function(H){if(!H)throw Error("ri");if(!H.challenge)throw Error("si");var C=H.challenge,S=IJ(C);if("c1a"in S&&(!H.bgChallenge||!H.bgChallenge.program))throw Error("ti");return Object.assign({},H,{jyl:C,qS0:S})},UDt=function(H,C){var S,w,A,J,c;
return _.z(function(Y){switch(Y.nextAddress){case 1:S=void 0,w=0,A={};case 2:if(!(w<5)){Y.jumpTo(4);break}if(!(w>0)){Y.jumpTo(5);break}A.vyy=1E3*Math.pow(2,w-1)+Math.random()*1E3;return Y.yield(new Promise(function(M){return function(m){_.X2(_.rT,function(){m(void 0)},M.vyy)}}(A)),5);
case 5:return _.en(Y,7),Y.yield(H.ou(C),9);case 9:return J=Y.yieldResult,Y.return(Iwp(J));case 7:S=c=_.Vx(Y),c instanceof Error&&_.Bn(c);case 8:w++;A={vyy:void 0};Y.jumpTo(2);break;case 4:throw S;}})},KER=function(H,C){H.ag=C},awj=function(H){var C,S,w;
return _.z(function(A){if(A.nextAddress==1)return A.yield(Promise.race([H.ag,null]),2);C=A.yieldResult;var J=tZi(H);H.ag=J;(S=C)==null||(w=S.vm)==null||w.dispose();_.oT(A)})},Rpo=function(H,C){var S=Date.now()+C,w=function(){var A;
return _.z(function(J){A=S-Date.now();return A<1E3?J.yield(awj(H),0):(_.X2(_.rT,w,Math.min(A,6E4)),J.jumpTo(0))})};
w()},gE_=function(H,C){return new Promise(function(S){_.X2(_.rT,function(){S(C())},H)})};var xD3=function(){};
xD3.prototype.processContext=function(H){var C=_.ny.instance;if(!C)return _.Ef();var S=eYD(H);return S?new b3(C.b6W(S,NN$(H),500).then(function(w){var A;(H==null?0:(A=H.innerTubeRequest)==null?0:A.context)||(H.innerTubeRequest.context={});A=H.innerTubeRequest.context;A.request||(A.request={});A.request.attestationResponseData=w})):_.Ef()};var HPK=function(H){this.innertubeTransportService=H};
HPK.prototype.ou=function(H){_.tM("att_fsr",void 0,"attestation_challenge_fetch");return _.Mb(this.innertubeTransportService,H,_.JG(_.bTn)).then(function(C){_.tM("att_frr",void 0,"attestation_challenge_fetch");return C})};_.iPj=function(H){this.innertubeTransportService=H};var CY9=new _.W4("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var SnO=function(){},jVq=function(H,C,S,w,A){var J=_.rh("YPC_MB_URL");
_.J3V(J).then(function(){sV3(J,H,C,S,w,A)})},sV3=function(H,C,S,w,A,J){try{var c=_.s6.payments.business.integration,Y=_.s6.payments.business.integration.Style.create().withMaterialDesignStyle(),M=c.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.E("enable_window_constrained_buy_flow_dialog")&&(M=M.usingPopupStyle("windowConstrained"));J&&(M=M.usingCloseCallback(J));var m=S?S:_.rh("YPC_GB_LANGUAGE"),W=_.rh("SESSION_INDEX");c.bootstrap.fromPaymentsUrl(H);c.bootstrap.asMashupMode(M).usingGaiaIndex(W).usingLocale(m).usingStyle(Y).usingDefaultActivityStatusChangeHandler().inStandaloneContext(c.standaloneContextAuthId.forGaia()).purchaseManager(C,function(y){w&&w(y)}).load(void 0,A)}catch(y){throw A&&A(y),_.nC(y),y;
}};var w7i=new _.W4("PURCHASE_MANAGER_TOKEN");var A_i=function(){var H=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return H.videos},
getContinuationsPresent:function(){return H.continuationsPresent},
setVideos:function(C){H.videos=C},
getRecommendedVideos:function(){return H.recommendedVideos},
setRecommendedVideos:function(C){H.recommendedVideos=C}}};
A_i.prototype.addVideos=function(H){H&&(this.videos=H.filter(function(C){return!!_.G1E(C)}).map(function(C){var S=_.G1E(C);
a:{var w;if(C.playlistVideoRenderer&&((w=C.playlistVideoRenderer)==null?0:w.voteSortTiebreaker))var A=C.playlistVideoRenderer.voteSortTiebreaker;else{if(_.e(C,Hf)){var J;if(w=(A=_.e(C,Hf))==null?void 0:(J=A.playlistItemData)==null?void 0:J.voteSortTiebreaker){A=w;break a}}A=""}}return{itemId:S,videoId:_.lnU(C),voteCount:_.VT0(C),voteSortTiebreaker:A}}),this.continuationsPresent=!!_.e(H[H.length-1],_.S9))};
var J_t=function(H,C){return H.videos.findIndex(function(S){return S.itemId===C})},F1_=function(H,C){return H.recommendedVideos.findIndex(function(S){return S.itemId===C})},ZPO=function(H){H={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:H}}}}};_.JA().resolve(_.ZQ).resolveCommand(H)};var c_3=function(){A_i.apply(this,arguments)};
_.G(c_3,A_i);
var oKi=function(H,C,S,w){if(!H.parentElem)throw Error("yi");var A=J_t(H,C);A===-1&&(A=F1_(H,C),A=A!==-1?A+H.videos.length:-1);if(A===-1)throw Error("zi");var J=A>=H.videos.length?H.recommendedVideos[A-H.videos.length]:H.videos[A];J.voteCount=S;J.voteSortTiebreaker=Date.now().toString();A>=H.videos.length?H.recommendedVideos.splice(A-H.videos.length,1):H.videos.splice(A,1);var c=H.videos;for(var Y=0,M=c.length-1;Y<=M;){var m=Math.floor((Y+M)/2);if(c[m].voteCount<J.voteCount)M=m-1;else if(c[m].voteCount>J.voteCount)Y=
m+1;else{a:{var W=J.voteSortTiebreaker;var y=c[m].voteSortTiebreaker;if(W.length!==y.length)W=W.length>y.length;else{for(var N=0;N<W.length;N++){var b=W.charCodeAt(N),u=y.charCodeAt(N);if(b>u){W=!0;break a}if(b<u)break}W=!1}}W?M=m-1:Y=m+1}}c=Y;if(c===-1)throw Error("Ai");H.videos.splice(c,0,J);A!==c&&Yni(H,A,c,C,S,w)},Yni=function(H,C,S,w,A,J){var c,Y=(c=H.parentElem)==null?void 0:c.children,M=Math.min(C,S),m=Math.max(C,S);
if(Y)for(c=M;c<=m;c++)Y[c].style.viewTransitionName="item-"+String(c);document.startViewTransition(function(){if(H.parentElem){var W=H.parentElem.children;if(!(!W||C<0||C>=W.length||S<0||S>=W.length)){var y=W[C];if(y){y.remove();H.showRefreshPill=S>=H.videos.length-1&&H.continuationsPresent;if(!H.showRefreshPill){W=W[S]||null;var N;(N=H.parentElem)==null||N.insertBefore(y,W)}_.M3(H.parentElem,"yt-update-video-data-voting-animation",{toIdx:S,itemId:w,newVoteCount:A,voteStatus:J,hideItem:H.showRefreshPill})}}}}).finished.then(function(){if(Y)for(var W=
M;W<=m;W++)Y[W].style.viewTransitionName="";
if(H.showRefreshPill)ZPO(_.fL("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var y;if(y=W=(y=H.parentElem)==null?void 0:y.children[S])y=W.getBoundingClientRect(),W=y.bottom,y=!(y.top>=0&&W<=H.clientHeight);y&&(y=_.vH(C>S?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(C-S)),ZPO(y))}})};var qn9=function(H,C){var S=this;H?this.innertubeTransportServicePromise=Promise.resolve(H):C&&(this.innertubeTransportServicePromise=C(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new GQ(3E3,function(w){return zWq(S,w)},0);
this.validateMiniAppVideoIdRateLimiter=new GQ(3E3,function(w){return M7r(S,w)},1)},KfW=function(H,C){H.JSC$17231_miniAppId=C;
H.reportMiniAppValueRateLimiter=new GQ(3E3,function(S){return zWq(H,S)},0);
H.validateMiniAppVideoIdRateLimiter=new GQ(3E3,function(S){return M7r(H,S)},1)},LfY=function(H,C){var S;
return _.z(function(w){if(w.nextAddress==1)return w.yield(H.reportMiniAppValueRateLimiter.call(C),2);S=w.yieldResult;return w.return([S,C])})},zWq=function(H,C){var S,w,A,J,c,Y,M;
return _.z(function(m){switch(m.nextAddress){case 1:return m.yield(H.innertubeTransportServicePromise,2);case 2:return S=m.yieldResult,w=_.JG(vm_),A=Date.now(),J={externalPostId:H.JSC$17231_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(A/1E3),nanos:Math.round(A%1E3*1E6)},intValue:""+C}},_.en(m,3),m.yield(_.Mb(S,J,w),5);case 5:c=m.yieldResult;_.xB(m,4);break;case 3:throw Y=_.Vx(m),Y;case 4:if(c){if("error"in c&&c.error)throw c.error;if(c.errorMetadata)throw Error("Bi`"+
c.errorMetadata.status);if(M=c.userStatResult)return m.return(M);throw Error("Ci");}throw Error("Di");}})},UX7=function(H){var C,S,w,A,J;
_.z(function(c){switch(c.nextAddress){case 1:return c.yield(H.innertubeTransportServicePromise,2);case 2:return C=c.yieldResult,S=_.JG(vm_),w={externalPostId:H.JSC$17231_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.en(c,3),c.yield(_.Mb(C,w,S),5);case 5:A=c.yieldResult;_.xB(c,4);break;case 3:throw J=_.Vx(c),J;case 4:if(A==null)throw Error("Di");if("error"in A&&A.error)throw A.error;if(A.errorMetadata)throw Error("Bi`"+A.errorMetadata.status);_.oT(c)}})};
qn9.prototype.flush=function(){var H=this;return _.z(function(C){return C.nextAddress==1?C.yield(H.reportMiniAppValueRateLimiter.flush(),2):C.yield(H.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var gOV=function(H,C){return _.z(function(S){return S.nextAddress==1?S.yield(H.validateMiniAppVideoIdRateLimiter.call(C),2):S.return(S.yieldResult)})},M7r=function(H,C){var S,w,A,J,c,Y;
return _.z(function(M){switch(M.nextAddress){case 1:return M.yield(H.innertubeTransportServicePromise,2);case 2:return S=M.yieldResult,w=_.JG(yTM),A={videoId:C},_.en(M,3),M.yield(_.Mb(S,A,w),5);case 5:J=M.yieldResult;_.xB(M,4);break;case 3:throw c=_.Vx(M),c;case 4:if(J){if("error"in J&&J.error)throw J.error;if(J.errorMetadata)throw Error("Bi`"+J.errorMetadata.status);if(Y=J.playabilityStatus)return M.return(Y.status);throw Error("Ei");}throw Error("Di");}})};
qn9[F0]=[_.AA(_.Lf),_.AA(HEb)];var TUo=function(){this.clientData=new Map};
TUo.prototype.getData=function(H){return this.clientData.get(H)};var miq=function(H){this.store=H};
miq.prototype.handleResponse=function(H){(H=_.e(H.frameworkUpdates,s5))&&_.vF(H,this.store)};
miq[F0]=[_.MU];var W19=new _.W4("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var y_i={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 NUo=new _.W4("ICON_SET_TOKEN"),bPj=new _.W4("ICON_URL_PROVIDER_TOKEN"),EMi=new _.W4("PREFETCH_ICONS_TOKEN"),eW_=new _.W4("ICON_MAP_FN_TOKEN");var rY={},ud3=(rY.ACCESS_TIME="clock",rY.ACCOUNT_BOX="person_account",rY.ACCOUNT_BOX_CAIRO="person_account_cairo",rY.ACCOUNT_CIRCLE="person_circle",rY.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",rY.ACCOUNT_LINKED="account_link_success",rY.ACCOUNT_UNLINKED="account_link",rY.ADD_FRIEND="people",rY.ADD_MODERATOR="shield_add",rY.ADD_TO_LIBRARY="bookmark",rY.ADD_TO_PLAYLIST="add",rY.ADD_TO_QUEUE_TAIL="list_queue",rY.ADD_TO_REMOTE_QUEUE="list_music",rY.ADD_TO_WATCH_LATER="clock",rY.ADD_VIDEO_LINK="film_strip_add",
rY.ALERT_WARN_RED="alert_triangle",rY.ARROW_BACK="arrow_left",rY.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",rY.ARROW_DROP_DOWN="chevron_down",rY.ARROW_DROP_UP="chevron_up",rY.ARROW_FORWARD="arrow_right",rY.AUDIOTRACK="audio",rY.AUTO_AWESOME="sparkle",rY.AVATAR_ANONYMOUS="person_circle",rY.AVATAR_LOGGED_OUT="person_circle",rY.BACK="arrow_left",rY.BAR_CHART="bar_graph",rY.BLOCK="slash_circle_left",rY.BLOCK_USER="slash_circle_left",rY.BOOKMARK_BORDER="bookmark",rY.BREAKING_NEWS_ALT_1="article_alert",
rY.BROADCAST_CAIRO="podcast_cairo",rY.BUG_REPORT="bug",rY.CAMERA_ALT="camera",rY.CAMPAIGN="megaphone",rY.CANCEL="x_circle",rY.CAPTIONS="closed_caption",rY.CAST_OUTLINE="chromecast",rY.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",rY.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",rY.CHAT="message_bubble_left",rY.CHAT_BUBBLE="message_bubble_empty",rY.CHAT_SPARK="spark_message_bubble_left",rY.CHECK_BOX_OUTLINE_BLANK="box_empty",rY.CHECK_CIRCLE_OUTLINE="check_circle",rY.CHECK_CIRCLE_THICK="check_circle",rY.CLARIFY=
"article_clarify",rY.CLOSED_CAPTION_SELECTED="closed_caption",rY.CLOSE="x_mark",rY.CLOUD_UPLOAD="cloud_arrow_up",rY.COLLAPSE="chevron_up",rY.COLLAPSE_CAIRO="chevron_up_cairo",rY.COLLECTION="layers",rY.COLOR_LENS="palette",rY.COMMENT="message_bubble_right",rY.CONSENT_SHIELD="person_shield",rY.CONTENT_CUT="scissors",rY.CONTENT_CUT_CAIRO="scissors_cairo",rY.COURSE=_.E("web_enable_course_icon_update")?"creator_academy":"lightbulb",rY.COURSE_CAIRO=_.E("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",rY.CREATION_LIVE="radar_live",rY.CREATION_POST="box_pencil",rY.CREATION_UPLOAD="my_videos",rY.CREATION_UPLOAD_RED="upload",rY.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",rY.CREATOR_STUDIO="youtube_studio",rY.DASHBOARD="grid_asymmetrical",rY.DELETE="trash_can",rY.DELETE_SWEEP="trash_can",rY.DESKTOP="laptop",rY.DISLIKE="thumb_down",rY.DISLIKE_SELECTED="thumb_down",rY.DISMISSAL="x_mark",rY.DISMISS_QUEUE="list_remove",rY.DONE_ALL="check_double",rY.DOWN_ARROW="arrow_down",rY.DO_NOT_DISTURB=
"slash_circle_left",rY.DRAFT="paper_corner_folded",rY.DRAG_HANDLE="bars_2",rY.EDIT="pencil",rY.EMOJI="face_very_happy",rY.EMOJI_FLAGS="flag",rY.EMOJI_OBJECTS="lightbulb",rY.EMOJI_PEOPLE="face_very_happy",rY.EMOJI_RECENT="clock",rY.EMPTY_HEART="heart",rY.EMPTY_LIKE="thumb_up",rY.ERROR_BLACK="alert_circle",rY.ERROR_OUTLINE="alert_circle",rY.EXIT_APP="arrow_in",rY.EXIT_TO_APP="arrow_in",rY.EXPAND="chevron_down",rY.EXPAND_ALL="chevron_expand",rY.EXPAND_CAIRO="chevron_down_cairo",rY.EXPAND_LESS="chevron_up",
rY.EXPAND_MORE="chevron_down",rY.EXPLORE="compass",rY.EXPLORE_DESTINATION="compass",rY.EXTERNAL_LINK="open_new",rY.FAB_UPLOAD="upload",rY.FACE_HAPPY_OUTLINE="face_happy",rY.FACT_CHECK="article_check",rY.FASHION_LOGO="fashion",rY.FASHION_LOGO_CAIRO="fashion_cairo",rY.FAVORITE="heart",rY.FEEDBACK="message_bubble_alert",rY.FEEDBACK_CAIRO="message_bubble_alert_cairo",rY.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",rY.FILL_ARROW_SOLID_UP_16="arrow_solid_up",rY.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
rY.FILTER="menu_filter",rY.FIRST_PAGE="chevron_first",rY.FLAG="flag",rY.FULL_HEART="heart",rY.GAME_CONSOLE_DPAD="game_console_dpad",rY.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",rY.GAMING_LOGO="gaming",rY.GAMING_LOGO_CAIRO="gaming_cairo",rY.GO_TO_PAGE="arrow_right",rY.GROUPS="people_group",rY.HAPPY="face_happy",rY.HEALTH_AND_SAFETY="shield_plus",rY.HELP="question_circle",rY.HELP_CAIRO="question_circle_cairo",rY.HELP_OUTLINE="question_circle",rY.HIDE="slash_circle_left",rY.IMAGE="image",
rY.INFINITY_ICON="infinity",rY.INFO="info_circle",rY.INFO_OUTLINE="info_circle",rY.INSERT_CHART="bar_graph_box_vertical",rY.INSERT_CHART_OUTLINED="bar_graph_box_vertical",rY.INSERT_PHOTO="image",rY.KEEP="pin",rY.KEEP_OFF="pin_off",rY.KEYBOARD="keyboard",rY.KEYBOARD_ARROW_DOWN="chevron_down",rY.KEYBOARD_ARROW_UP="chevron_up",rY.KIDS_BLOCK="slash_circle_left",rY.LANGUAGE="globe",rY.LAST_PAGE="chevron_last",rY.LAUNCH="open_new",rY.LEARNING="lightbulb",rY.LEARNING_CAIRO="lightbulb_cairo",rY.LIBRARY_ADD=
QHW("library_add"),rY.LIBRARY_OUTLINE="library",rY.LIBRARY_REMOVE=QHW(),rY.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",rY.LIKES_PLAYLIST="thumb_up",rY.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",rY.LIKE="thumb_up",rY.LIKE_SELECTED="thumb_up",rY.LIVE="radar_live",rY.LIVE_CAIRO="radar_live_cairo",rY.LIVE_UNLISTED="link",rY.LOCATION_ON="location_point",rY.LOCATION_PIN="location_point",rY.LOOP="arrow_repeat",rY.LOOP_ACTIVE="arrow_repeat",rY.LOOP_ONE="arrow_repeat_1",rY.LOOP_ONE_ACTIVE="arrow_repeat_1",rY.MEH=
"face_meh",rY.MEMBERS_ONLY_MODE_OFF="message_bubble_left",rY.MESSAGE="message_bubble_left",rY.MICROPHONE_ON="mic",rY.MIX="youtube_mix",rY.MONETIZATION_ON="dollar_sign_circle",rY.MONEY_FILL="dollar_sign_container",rY.MONEY_FILL_JPY="yen_sign_container",rY.MONEY_HEART="dollar_sign_heart",rY.MORE_HORIZ="overflow_horizontal",rY.MORE_VERT="overflow_vertical",rY.MUSIC="audio",rY.MUSIC_CAIRO="audio_cairo",rY.MUSIC_NOTE_SYMBOL="music",rY.MUSIC_SHUFFLE="arrow_shuffle",rY.MY_CHANNEL="person_circle",rY.MY_LOCATION=
"location_point",rY.NEWS_STORY="news",rY.NEXT="chevron_right",rY.NOTIFICATIONS="bell",rY.NOTIFICATIONS_ACTIVE="bell_on",rY.NOTIFICATIONS_CAIRO="bell_cairo",rY.NOTIFICATIONS_DONE_CHECKMARK="check",rY.NOTIFICATIONS_INBOX="bell",rY.NOTIFICATIONS_NONE="bell",rY.NOTIFICATIONS_OFF="bell_off",rY.NOT_INTERESTED="slash_circle_left",rY.OFFICIAL_ARTIST_BADGE="audio",rY.OFFLINE_CLOUD="cloud_off",rY.OFFLINE_DOWNLOAD="download",rY.OFFLINE_DOWNLOAD_CAIRO="download_cairo",rY.OFFLINE_PAUSE="pause",rY.OPEN_IN_NEW=
"open_new",rY.OUTLINE_ADJUST="adjust",rY.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",rY.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",rY.OUTLINE_BAG="bag",rY.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",rY.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",rY.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",rY.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",rY.PAID="dollar_sign",rY.PAUSE_OUTLINED="pause",rY.PAYMENT="credit_card",rY.PERSON_RADAR_FILLED="person_radar",rY.PHONE_DOWNLOAD="mobile_download",
rY.PLAYABLES_LOGO="tic_tac_toe",rY.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",rY.PLAYLISTS="list_play_arrow",rY.PLAYLISTS_CAIRO="list_play_arrow_cairo",rY.PLAYLIST_ADD=QHW("list_add"),rY.PLAYLIST_ADD_CHECK=QHW("list_check"),rY.PLAYLIST_PLAY="list_play_arrow",rY.PLAY_ALL="play_arrow",rY.PLAY_CIRCLE="play_arrow_circle",rY.PLAY_OUTLINED="play_arrow_circle",rY.PRIVACY_INFO="shield",rY.PRIVACY_PRIVATE="lock",rY.PRIVACY_PUBLIC="earth",rY.PRIVACY_UNLISTED="link",rY.PROMOTE="megaphone",rY.PURCHASES="price_tag",
rY.PURCHASE_SUPER_CHAT="super_chat",rY.PURCHASE_SUPER_STICKER="super_sticker",rY.QUESTION_ANSWER="message_bubble_question",rY.QUEUE_PLAY_LAST="list_queue_last",rY.QUEUE_PLAY_NEXT="list_play_arrow",rY.REMIX_FILLED="youtube_shorts_remix",rY.REMOVE="bar_circle",rY.REMOVE_CIRCLE="bar_circle",rY.REMOVE_CIRCLE_OUTLINE="bar_circle",rY.REMOVE_DONE="check_double_off",rY.REMOVE_FROM_HISTORY="bar_circle",rY.REMOVE_FROM_PLAYLIST="bar_circle",rY.REMOVE_MODERATOR="shield_off",rY.REPLAY="arrow_circle",rY.REPLAY_10=
"skip_back_10",rY.REPORT_PROBLEM="alert_triangle",rY.SAD="face_sad",rY.SAVE_PLAYLIST="bookmark",rY.SCHEDULE="clock",rY.SCHOOL="creator_academy",rY.SCREEN_FULLSCREEN="screen_full",rY.SEARCH_HISTORY="arrow_time",rY.SELL="price_tag",rY.SETTINGS="gear",rY.SETTINGS_CAIRO="gear_cairo",rY.SETTINGS_LIGHT="gear",rY.SETTINGS_MATERIAL="gear",rY.SHARE_ARROW="share",rY.SHIELD_WITH_AVATAR="person_shield",rY.SHOPPING_BAG="bag",rY.SHOPPING_BAG_CAIRO="bag_cairo",rY.SHOPPING_CART="cart",rY.SHORTS_COMMENT="youtube_shorts_message_bubble_right",
rY.SHORTS_DISLIKE="youtube_shorts_thumb_down",rY.SHORTS_LIKE="youtube_shorts_thumb_up",rY.SHORTS_SHARE="youtube_shorts_share",rY.SHUFFLE="arrow_shuffle",rY.SLOW_MODE_OFF="message_bubble_left",rY.SOCIAL="people",rY.SORT="menu_sort",rY.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",rY.SPEED_1X="1x",rY.SPEED_1_POINT_2X="1_point_2x",rY.SPEED_1_POINT_5X="1_point_5x",rY.SPEED_1_POINT_8X="1_point_8x",rY.SPEED_2X="2x",rY.SPEED_POINT_2X="point_2x",rY.SPEED_POINT_8X="point_8x",rY.SPONSORSHIP_STAR="star_circle",
rY.STAFF_PICK="spotlight",rY.START_DVR="add",rY.STAR_BORDER="star",rY.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",rY.STICKER_EMOTICON="face_happy",rY.STOP_DVR="stop",rY.SUBSCRIBE="youtube_logo_icon",rY.SUBSCRIBE_PLUS="add_cairo",rY.SUBSCRIPTION_MANAGER="gear",rY.SUPERVISOR_ACCOUNT="people",rY.SUPER_CHAT_FOR_GOOD="hands_heart",rY.SWAP_HORIZ="arrow_swap_horizontal",rY.SWITCH_ACCOUNTS="person_account",rY.TAB_ACCOUNT="person",rY.TAB_ACTIVITY="bell",rY.TAB_BOOKMARK="bookmark",rY.TAB_EXPLORE="compass",
rY.TAB_HOME="home",rY.TAB_HOME_CAIRO="home_cairo",rY.TAB_INBOX="mail",rY.TAB_LIKED="thumb_up",rY.TAB_MUSIC_PREMIUM="youtube_music",rY.TAB_SHORTS="youtube_shorts",rY.TAB_SHORTS_CAIRO="youtube_shorts_cairo",rY.TAB_SUBSCRIPTIONS="subscriptions",rY.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",rY.TAB_TRENDING="fire",rY.TIMER="stopwatch",rY.TRAILER="youtube_originals",rY.TRENDING="fire",rY.TRENDING_CAIRO="fire_cairo",rY.TRENDING_UP="rating_up",rY.TROPHY="trophy",rY.TROPHY_CELEBRATIONS="fireworks",rY.TUNE=
"adjust",rY.UNBLOCK_USER="bar_circle",rY.UNLIMITED="youtube_logo_icon",rY.UNPLUGGED_LIVE_GUIDE="radar_live",rY.UNPLUGGED_SPORTS="eye_off",rY.UPLOADS="library",rY.UP_ARROW="arrow_up",rY.VERTICAL_ALIGN_BOTTOM="download",rY.VERY_HAPPY="face_very_happy",rY.VERY_SAD="face_very_sad",rY.VIDEOGAME_ASSET="gaming",rY.VIDEOS="play_arrow_circle",rY.VIDEO_CALL="video_camera_add",rY.VIDEO_LIBRARY_WHITE="library",rY.VIDEO_YOUTUBE="youtube_logo_icon",rY.VIEW_LIST="list_view",rY.VIEW_LIST_CAIRO="list_view_cairo",
rY.VISIBILITY="eye",rY.VISIBILITY_OFF="eye_off",rY.VOLUME_MUTE="volume_off",rY.VOLUME_UP="volume_on",rY.WALLPAPER="image",rY.WARNING="alert_triangle",rY.WATCH_HISTORY="arrow_time",rY.WATCH_HISTORY_CAIRO="arrow_time_cairo",rY.WATCH_LATER="clock",rY.WATCH_LATER_CAIRO="clock_cairo",rY.WATCH_RELATED_MIX="youtube_mix",rY.WHAT_TO_WATCH="home",rY.YOUTUBE_MUSIC_MONOCHROME="youtube_music",rY.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",rY.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",
rY.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",rY.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",rY.YT_OUTLINE_MUSIC_24="music",rY);var By={},Gd3=(By.ACCESS_TIME="clock",By.ACCOUNT_BOX="person_square",By.ACCOUNT_BOX_CAIRO="person_square",By.ACCOUNT_CIRCLE="person_circle",By.ACCOUNT_CIRCLE_CAIRO="person_circle",By.ACCOUNT_LINKED="account_link",By.ACCOUNT_UNLINKED="account_link",By.ADD_CIRCLE="add_circle",By.ADD_CIRCLE_OUTLINE="add_circle",By.ADD_FRIEND="person_child",By.ADD_MODERATOR="shield_add",By.ADD_TO_LIBRARY="bookmark",By.ADD_TO_PLAYLIST="add",By.ADD_TO_QUEUE_TAIL="queue",By.ADD_TO_REMOTE_QUEUE="playlist_audio",By.ADD_TO_WATCH_LATER=
"clock",By.ADD_VIDEO_LINK="film_strip_add",By.ADMIN_PANEL_SETTINGS="person_gear",By.ALERT_WARN_RED="alert_triangle",By.ALIGN_LEFT="text_align_left",By.ARROWS_ALERT="arrow_split_alert",By.ARROW_BACK="arrow_left",By.ARROW_CIRCLE="arrow_counterclockwise",By.ARROW_CIRCLE_PLAY="replay",By.ARROW_CIRCLE_RIGHT="arrow_clockwise",By.ARROW_DIAGONAL="arrow_up_left",By.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",By.ARROW_DROP_DOWN="triangle_down",By.ARROW_DROP_UP="triangle_up",By.ARROW_FORWARD="arrow_right",By.ARROW_PAUSE=
"pause_history",By.ARROW_UNDO="undo",By.ARTICLE="text_page",By.ARTICLE_ALERT="text_page_alert",By.ARTICLE_CHECK="text_page_check",By.ARTICLE_CLARIFY="text_page_info",By.AUDIOTRACK="audio",By.AUDIO_BADGE="audio_badge",By.AUDIO_SURROUND="surround_sound",By.AUTO_AWESOME="sparkles",By.AVATAR_ANONYMOUS="person_circle",By.AVATAR_LOGGED_OUT="person_circle",By.BACK="arrow_left",By.BAR_CHART="chart_bar",By.BAR_CIRCLE="minus_circle",By.BAR_HORIZONTAL="minus",By.BLOCK="circle_slash",By.BLOCK_USER="circle_slash",
By.BOOKMARK_BORDER="bookmark",By.BOX_OPEN_CHECK="quiz",By.BOX_PENCIL="square_pencil",By.BOX_STACK_3="square3_stack",By.BREAKING_NEWS_ALT_1="text_page_alert",By.BROADCAST="podcast",By.BROADCAST_CAIRO="podcast",By.BUG_REPORT="bug",By.CAMERA_ALT="camera",By.CAMPAIGN="megaphone",By.CANCEL="x_circle",By.CAPTIONS="closed_captions",By.CAST_ICON="chromecast",By.CAST_OUTLINE="chromecast",By.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",By.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",By.CHAT="text_bubble",
By.CHAT_BUBBLE="bubble",By.CHECK_BOX="check_square",By.CHECK_BOX_OUTLINE_BLANK="square",By.CHECK_CIRCLE_FILLED="check_circle",By.CHECK_CIRCLE_OUTLINE="check_circle",By.CHECK_CIRCLE_THICK="check_circle",By.CHECK_DOUBLE="check_done",By.CHECK_DOUBLE_OFF="check_done_slash",By.CHEVRON_LEFT="chevron_left",By.CHEVRON_RIGHT="chevron_right",By.CHEVRON_RIGHT_CAIRO="chevron_right",By.CIRCLES_OVERLAP="account_link",By.CLAPPERBOARD_CAIRO="clapperboard",By.CLARIFY="text_page_info",By.CLOCK_ARROWS="clock_split",
By.CLOCK_ARROWS_ALERT="clock_split_alert",By.CLOSED_CAPTION="closed_captions",By.CLOSED_CAPTION_SELECTED="closed_captions",By.CLOSE="x",By.CLOUD_UPLOAD="cloud_arrow_up",By.COLLAPSE="chevron_up",By.COLLAPSE_CAIRO="chevron_up",By.COLLECTION="square3d_stack",By.COLOR_LENS="paint_palette",By.COMMENT="text_bubble",By.CONSENT_SHIELD="person_shield",By.CONTENT_CUT="scissors",By.CONTENT_CUT_CAIRO="scissors",By.COURSE="graduation_cap",By.COURSE_CAIRO="graduation_cap",By.CREATION_LIVE="live",By.CREATION_POST=
"square_pencil",By.CREATION_UPLOAD="video",By.CREATION_UPLOAD_RED="upload",By.CREATOR_ACADEMY="graduation_cap",By.CREATOR_STUDIO="youtube_studio",By.DARK_THEME="theme",By.DELETE="trash_can",By.DELETE_SWEEP="trash_can",By.DESKTOP="laptop",By.DISLIKE="thumb_down",By.DISLIKE_SELECTED="thumb_down",By.DISMISSAL="x",By.DISMISS_QUEUE="playlist_x",By.DOGFOOD="pawprint",By.DOLLAR_SIGN="dollar_sign_circle",By.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",By.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",By.DOWN_ARROW=
"arrow_down",By.DO_NOT_DISTURB="circle_slash",By.DRAFT="document",By.DRAG_HANDLE="equal",By.EARTH="globe",By.EDIT="pencil",By.EMOJI="face_very_happy",By.EMOJI_FLAGS="flag",By.EMOJI_OBJECTS="lightbulb",By.EMOJI_PEOPLE="face_very_happy",By.EMOJI_RECENT="clock",By.EMPTY_HEART="heart",By.EMPTY_LIKE="thumb_up",By.ERROR_BLACK="alert_circle",By.ERROR_OUTLINE="alert_circle",By.ERROR_WHITE="alert_circle",By.EXIT_APP="arrow_in",By.EXIT_TO_APP="arrow_in",By.EXPAND="chevron_down",By.EXPAND_ALL="chevron_expand",
By.EXPAND_CAIRO="chevron_down",By.EXPAND_LESS="chevron_up",By.EXPAND_MORE="chevron_down",By.EXPLORE="compass",By.EXPLORE_DESTINATION="compass",By.EXTERNAL_LINK="arrow_up_right",By.EYE_OFF="eye_slash",By.FAB_UPLOAD="upload",By.FACE_HAPPY_OUTLINE="face_happy",By.FACE_MEH="face_neutral",By.FACT_CHECK="text_page_check",By.FASHION_LOGO="fashion",By.FASHION_LOGO_CAIRO="fashion",By.FAVORITE="thumb_up",By.FEEDBACK="alert_bubble",By.FEEDBACK_CAIRO="alert_bubble",By.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",
By.FILL_ARROW_SOLID_UP_16="arrow_solid_up",By.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",By.FLAG_CAIRO="flag",By.FLASH_OFF="flash_slash",By.FLASH_ON="flash",By.FULL_HEART="heart",By.GAMING_LOGO="gaming",By.GAMING_LOGO_CAIRO="gaming",By.GO_TO_PAGE="arrow_right",By.GROUPS="person3",By.HAND_SWIPE_LEFT="gesture_swipe_left",By.HAND_SWIPE_RIGHT="gesture_swipe_right",By.HAPPY="face_happy",By.HEALTH_AND_SAFETY="shield_health",By.HEART_BOX="heart_cube",By.HELP="help_circle",By.HELP_CAIRO="help_circle",
By.HELP_OUTLINE="help_circle",By.HIDE="circle_slash",By.INCOGNITO_CAIRO="incognito",By.INFINITY_ICON="infinity",By.INFO="info_circle",By.INFO_OUTLINE="info_circle",By.INSERT_CHART="chart_bar_square",By.INSERT_CHART_OUTLINED="chart_bar_square",By.INSERT_PHOTO="image",By.KEEP="pin",By.KEEP_OFF="pin_slash",By.KEYBOARD="keyboard",By.KEYBOARD_ARROW_DOWN="chevron_down",By.KEYBOARD_ARROW_UP="chevron_up",By.KIDS_BLOCK="circle_slash",By.LANGUAGE="globe",By.LAUNCH="arrow_up_right",By.LEARNING="lightbulb",By.LEARNING_CAIRO=
"lightbulb",By.LIBRARY_ADD="bookmark",By.LIBRARY_IMAGE="image_stack",By.LIBRARY_MUSIC="audio_square_stack",By.LIBRARY_OUTLINE="play_square_stack",By.LIBRARY_REMOVE="bookmark",By.LIBRARY_SAVED="check_square_stack",By.LIKES_PLAYLIST="thumb_up",By.LIKES_PLAYLIST_CAIRO="thumb_up",By.LIKE="thumb_up",By.LIKE_SELECTED="thumb_up",By.LIST_QUEUE="queue",By.LIVE_CAIRO="live",By.LIVE_UNLISTED="link",By.LOCATION_ON="location_pin",By.LOCATION_PIN="location_pin",By.LOCATION_POINT="location_pin",By.LOOP="repeat",
By.LOOP_ACTIVE="repeat",By.LOOP_ONE="repeat1",By.LOOP_ONE_ACTIVE="repeat1",By.MEET="google_meet",By.MEH="face_neutral",By.MEMBERSHIPS="memberships",By.MEMBERS_ONLY_MODE_OFF="text_bubble",By.MENU_FILTER="filter",By.MESSAGE="text_bubble",By.MESSAGE_BUBBLE_GEAR="bubble_gear",By.MESSAGE_BUBBLE_LEFT="text_bubble",By.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",By.MESSAGE_BUBBLE_OVERLAP="bubble_stack",By.MESSAGE_BUBBLE_QUESTION="help_bubble",By.MICROPHONE_ON="mic",By.MONETIZATION_ON="dollar_sign_circle",
By.MONEY_FILL="dollar_sign_rectangle",By.MONEY_FILL_JPY="yen_sign_rectangle",By.MONEY_HAND="dollar_sign_circle_hand",By.MONEY_HEART="dollar_sign_heart",By.MOON_Z="sleep_timer",By.MORE_HORIZ="overflow_horizontal",By.MORE_VERT="overflow_vertical",By.MUSIC="audio",By.MUSIC_CAIRO="audio",By.MUSIC_EXPLICIT_BADGE="explicit",By.MUSIC_NEW_RELEASE="audio_badge",By.MUSIC_NOTE_SYMBOL="audio",By.MUSIC_SCISSORS="audio_scissors",By.MUSIC_SHUFFLE="shuffle",By.MY_CHANNEL="person_circle",By.MY_LOCATION="location_pin",
By.MY_VIDEOS="video",By.MY_VIDEOS_CAIRO="video",By.NEWS_CAIRO="news",By.NEWS_STORY="news",By.NEXT="chevron_right",By.NOTE_ADD="bubble_pencil",By.NOTIFICATIONS="bell",By.NOTIFICATIONS_ACTIVE="bell_waves",By.NOTIFICATIONS_CAIRO="bell",By.NOTIFICATIONS_DONE_CHECKMARK="check",By.NOTIFICATIONS_INBOX="bell",By.NOTIFICATIONS_NONE="bell",By.NOTIFICATIONS_OFF="bell_slash",By.NOT_INTERESTED="circle_slash",By.OFFICIAL_ARTIST_BADGE="audio",By.OFFLINE_CLOUD="cloud_slash",By.OFFLINE_DOWNLOAD="download",By.OFFLINE_DOWNLOAD_CAIRO=
"download",By.OFFLINE_PAUSE="pause",By.OPEN_IN_NEW="arrow_up_right",By.OUTLINE_ADJUST="adjust",By.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",By.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",By.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",By.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",By.OUTLINE_BAG="bag",By.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",By.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",By.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",By.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",By.PAID=
"dollar_sign_circle",By.PAUSE_OUTLINED="pause",By.PAYMENT="credit_card",By.PEOPLE="person_child",By.PEOPLE_2="person2_rectangle",By.PEOPLE_GROUP="person3",By.PEOPLE_NOTE="bubble_asterisk",By.PERSON_2="person2",By.PERSON_ACCOUNT="person_square_stack",By.PERSON_MINUS="person_x",By.PERSON_MUSIC="person_audio",By.PERSON_RADAR="person_waves",By.PERSON_RADAR_FILLED="person_waves",By.PERSON_SETTING="person_gear",By.PHONE="phone",By.PHONE_DOWNLOAD="mobile_arrow_down",By.PICTURE_IN_PICTURE="picture_in_picture",
By.PLAYABLES_LOGO="playables",By.PLAYABLES_LOGO_CAIRO="playables",By.PLAYLISTS="playlist",By.PLAYLISTS_CAIRO="playlist",By.PLAYLIST_ADD_CHECK="bookmark",By.PLAY_ALL="play",By.PLAY_ARROW="play",By.PLAY_ARROW_CIRCLE="play_circle",By.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",By.PLAY_CIRCLE="play_circle",By.PLAY_OUTLINED="play_circle",By.PODCAST_ADD="podcast_add",By.PODCAST_CHECK="podcast_check",By.PRIVACY_INFO="shield_x",By.PRIVACY_PRIVATE="lock",By.PRIVACY_PUBLIC="globe",By.PRIVACY_UNLISTED=
"link",By.PROMOTE="megaphone",By.PURCHASES="price_tag",By.PURCHASE_SUPER_CHAT="super_chat",By.PURCHASE_SUPER_STICKER="super_sticker",By.QUESTION_ANSWER="help_bubble",By.QUESTION_CIRCLE="help_circle",By.QUEUE_PLAY_LAST="queue_last",By.QUEUE_PLAY_NEXT="queue_next",By.QUOTATION_MARK="quote",By.RADAR_LIVE="live",By.REMOVE="minus_circle",By.REMOVE_CIRCLE="minus_circle",By.REMOVE_CIRCLE_OUTLINE="minus_circle",By.REMOVE_FROM_HISTORY="minus_circle",By.REMOVE_FROM_PLAYLIST="minus_circle",By.REMOVE_MODERATOR=
"shield_slash",By.REPLAY="arrow_counterclockwise",By.REPLAY_10="skip10_back",By.REPLAY_ARROW="replay",By.REPORT_PROBLEM="alert_triangle",By.RSS_OFF="rss_slash",By.SAD="face_sad",By.SAVE_PLAYLIST="bookmark",By.SCHEDULE="clock",By.SCHOOL="graduation_cap",By.SCREEN_DEFAULT="player_default",By.SCREEN_FULLSCREEN="player_full_enter",By.SCREEN_LIGHT="ambient_mode",By.SCREEN_ROTATION="rotate_portrait",By.SCREEN_SWITCH="player_switch",By.SCREEN_THEATRE="player_theater",By.SEARCH_CAIRO="search",By.SEARCH_HISTORY=
"history",By.SELL="price_tag",By.SETTINGS="gear",By.SETTINGS_CAIRO="gear",By.SETTINGS_LIGHT="gear",By.SETTINGS_MATERIAL="gear",By.SETTINGS_REMOTE="remote_waves",By.SHARE="share",By.SHARE_ARROW="share",By.SHARE_CAIRO="share",By.SHIELD="shield_x",By.SHIELD_OFF="shield_slash",By.SHIELD_WITH_AVATAR="person_shield",By.SHOPPING_BAG="bag",By.SHOPPING_BAG_CAIRO="bag",By.SHOPPING_CART="cart",By.SHORTS_COMMENT="text_bubble",By.SHORTS_DISLIKE="thumb_down",By.SHORTS_LIKE="thumb_up",By.SHORTS_SHARE="share",By.SKIP_FORWARD_30=
"skip30_forward",By.SLASH_CIRCLE_RIGHT="circle_slash",By.SLOW_MODE="bubble_slow",By.SLOW_MODE_OFF="text_bubble",By.SOCIAL="person_child",By.SPARKLE="sparkles",By.SPARK_IMAGE="image_spark",By.SPARK_RADAR="spark_waves",By.SPARK_VIDEO="video_spark",By.SPEAKER_GROUP="speaker_stack",By.SPEAKER_OFF="speaker_slash",By.SPEED_1X="n1x",By.SPEED_1_POINT_2X="n1point2x",By.SPEED_1_POINT_5X="n1point5x",By.SPEED_1_POINT_8X="n1point8x",By.SPEED_2X="n2x",By.SPONSORSHIP_STAR="star_circle",By.SPORTS="basketball",By.SPOTLIGHT=
"spotlight",By.STAFF_PICK="spotlight",By.START_DVR="add",By.STAR_BORDER="star",By.STAR_CIRCLE_RIBBON="memberships_gift",By.STAR_HALF="star_half_filled",By.STAR_SHOOTING="hype",By.STICKER="sticker",By.STICKER_EMOTICON="face_happy",By.STOP_DVR="stop",By.SUBSCRIBE="youtube",By.SUBSCRIBE_PLUS="add",By.SUBSCRIPTION_MANAGER="gear",By.SUPERSTAR="super_star",By.SUPERVISOR_ACCOUNT="person_child",By.SUPER_CHAT_FOR_GOOD="hands_heart",By.SWAP_HORIZ="arrow_swap_horizontal",By.SWITCH_ACCOUNTS="person_square_stack",
By.TAB_ACCOUNT="person",By.TAB_ACTIVITY="bell",By.TAB_BOOKMARK="bookmark",By.TAB_EXPLORE="compass",By.TAB_HOME="home",By.TAB_HOME_CAIRO="home",By.TAB_INBOX="mail",By.TAB_LIKED="thumb_up",By.TAB_MUSIC_PREMIUM="youtube_music",By.TAB_SHORTS="shorts",By.TAB_SHORTS_CAIRO="shorts",By.TAB_SUBSCRIPTIONS="subscriptions",By.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",By.TAB_TRENDING="trending",By.TARGET="target",By.TARGET_ADD="target_add",By.TEMPLATE_ADD="template_add",By.TEXT="font",By.TIMER="stopwatch",By.TRENDING_CAIRO=
"trending",By.TRENDING_UP="arrow_trend_up",By.TROPHY_CAIRO="trophy",By.TROPHY_CELEBRATIONS="fireworks",By.TROPHY_STAR="star_trophy",By.TUNE="adjust",By.TV_OFF="tv_slash",By.UNBLOCK_USER="minus_circle",By.UNFAVORITE="thumb_down",By.UNLIMITED="youtube",By.UNPLUGGED_LIVE_GUIDE="live",By.UNPLUGGED_SPORTS="eye_slash",By.UPLOADS="play_square_stack",By.UP_ARROW="arrow_up",By.VERTICAL_ALIGN_BOTTOM="chevron_down_end",By.VERTICAL_ALIGN_TOP="chevron_up_end",By.VERY_HAPPY="face_very_happy",By.VERY_SAD="face_very_sad",
By.VIDEOS="play_circle",By.VIDEO_CALL="video_camera_add",By.VIDEO_LIBRARY_WHITE="play_square_stack",By.VIDEO_QUALITY_4K="n4k",By.VIDEO_QUALITY_8K="n8k",By.VIDEO_YOUTUBE="youtube",By.VIEW_LIST_CAIRO="view_list",By.VIEW_MODULE="view_column3_row2",By.VISIBILITY="eye",By.VISIBILITY_OFF="eye_slash",By.VOLUME_DOWN="volume_min",By.VOLUME_MUTE="volume_mute",By.VOLUME_OFF="volume_mute",By.VOLUME_STABLE="stable_volume",By.VOLUME_UP="volume_max",By.WALLPAPER="image",By.WARNING="alert_triangle",By.WATCH_HISTORY=
"history",By.WATCH_HISTORY_CAIRO="history",By.WATCH_LATER="clock",By.WATCH_LATER_CAIRO="clock",By.WATCH_RELATED_MIX="mix",By.WHAT_TO_WATCH="home",By.YOUTUBE_LINKED_TV="tv_mobile",By.YOUTUBE_MUSIC_MONOCHROME="youtube_music",By.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",By.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",By.YOUTUBE_SHORTS_ARROW_UP="arrow_up",By.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",By.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",By.YOUTUBE_SHORTS_OUTLINE_24="shorts",
By);var f1j={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,3,24],[1,3,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,8,24],[1,8,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,8,24],[1,8,24]],arrow_left:[[1,
8,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,14,12],[0,14,16],[0,14,18],[0,14,24],[1,14,18],[1,14,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,
1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,9,24],[1,9,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,8,16],[1,8,18],[1,8,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,7,24],[1,7,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
6,24],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,11,16],[0,11,24],[1,11,16],[1,11,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,
24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[0,
9,36],[1,9,24],[1,9,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],film_strip:[[0,7,24],
[1,7,24]],film_strip_add:[[1,2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,4,16],[0,4,24],[1,
4,24]],football:[[0,4,24],[1,4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,9,24],[1,9,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,
3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,
2,24],[1,2,24]],hourglass:[[1,3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],
library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,
3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,
3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,5,16],[1,5,24]],menu_filter:[[0,1,24],[1,
1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,
13,24],[1,13,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,
3,24]],music_video:[[1,4,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,13,24]],overflow_vertical_cairo:[[1,1,
24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,9,16],[1,9,18],[1,9,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,6,12],[0,6,13],[0,6,16],[0,6,24],[0,6,48],[1,6,13],[1,6,16],[1,6,24]],person_2:[[1,
1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,7,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_waveform:[[1,2,24]],phone:[[0,3,24],[1,3,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,
1,24]],pin:[[0,7,12],[0,7,24],[1,7,16],[1,7,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,
2,24]],presentation_remove:[[1,1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,
1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,
1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,
2,24]],shadow_soft:[[0,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[0,12,32,!0],[1,12,16,!0],[1,12,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,
1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,
1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,16],[0,9,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,
2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,6,12],[0,6,16],[0,6,24],[1,6,12],[1,6,16],[1,6,24]],star_circle:[[0,6,12],[0,6,16],[0,6,18],[0,6,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],
[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,4,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,11,24],[1,11,18],[1,11,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,
1,24]],tablet:[[1,1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,
1,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,3,24],[1,3,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],
transition:[[0,5,24],[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,10,16],[1,10,18],[1,10,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,
24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],
[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],x:[[1,11,18],[1,11,24]],x_cairo:[[1,1,24]],x_circle:[[0,9,24],[1,9,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],
youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],
[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,2,24],[1,2,24]]};var vMj={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,8,24],[1,8,18],[1,8,24],[1,8,48]],alert_bubble:[[1,2,18],[1,2,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,
2,24],[1,2,24]],alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,2,24],[1,2,48]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,8,18],[1,8,24]],arrow_left:[[1,8,24,!0],[1,8,36,!0]],arrow_merge:[[1,2,24]],
arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,
2,18],[1,2,24],[1,2,36]],audio:[[0,14,12],[0,14,18],[0,14,24],[1,14,12],[1,14,18],[1,14,24],[1,14,48]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,
10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,9,18],[0,9,24],[1,9,18],[1,9,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,
24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],
card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,3,24],[1,3,18],[1,3,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13,36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,
1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,2,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,8,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,10,24],[1,10,18],[1,10,24],[1,10,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,3,24],[1,3,18],[1,3,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,
2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,6,24],[1,6,18],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,
3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,11,24],
[1,11,18],[1,11,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,1,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,2,18],[1,2,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,
1,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,
9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,18],[1,9,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,
1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_strikethrough:[[1,1,24]],font_style:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,9,24],[1,9,18],[1,9,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,
1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,
1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,2,18],[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,
2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,
4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,
1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,5,24]],menu:[[1,1,24]],mic:[[0,
13,18],[0,13,24],[0,13,48],[1,13,18],[1,13,24],[1,13,48]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,3,24],[1,3,18],[1,3,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,4,24],[1,4,18],[1,4,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,
1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,18],[0,1,24],[1,1,18],[1,1,24]],note_spark:[[0,2,18],[0,2,24],[1,2,18],[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,
6,24],[1,6,36]],overflow_vertical:[[1,13,18],[1,13,24],[1,13,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,9,18],[1,9,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,6,24],[1,6,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,2,24],[1,2,18],[1,2,24]],person_add:[[0,
7,24],[1,7,18],[1,7,24]],person_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,2,24],[1,2,18],[1,2,24]],person_square_stack:[[0,2,24],[1,2,18],[1,2,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,3,24],[1,3,12],
[1,3,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,7,24],[1,7,18],[1,7,24]],pin_slash:[[0,2,24],[1,2,18],[1,2,24]],play:[[0,4,18],[0,4,24],[0,4,36],[0,4,48],[1,4,24]],play_circle:[[0,2,24],[0,2,48],[1,2,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,
1,24]],player_full_enter_alt:[[1,1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,5,12],[1,5,18],[1,5,24],[1,5,48]],playlist_add:[[1,3,18],[1,3,24]],playlist_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],
playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,3,18],[1,3,24]],podcast:[[0,6,12],[0,6,24],[1,6,12],[1,6,18],[1,6,24],[1,6,48]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,
2,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,2,24],[1,2,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,
24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,18],[1,15,24],[1,15,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[1,12,18,!0],[1,12,24,!0]],share_android:[[0,2,
24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,3,24],[1,3,18],[1,3,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,24]],shuffle:[[0,4,24],[1,4,18],[1,4,24]],skip10_back:[[1,2,24],[1,2,36]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,
2,24],[1,2,36]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,2,18],[1,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,24],[1,9,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,
2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[1,1,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,24]],stable_volume:[[0,2,24],[1,
2,24]],star:[[0,5,24],[1,5,24]],star_circle:[[0,6,12],[0,6,18],[0,6,24],[0,6,36],[1,6,24]],star_half_filled:[[1,1,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,4,24],[0,4,36],[1,4,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],stopwatch10:[[0,1,24]],stopwatch3:[[0,1,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,
8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],template_play_spark:[[1,1,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,3,24],[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],
text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,3,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],timestamp_add:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,
5,24],[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,10,24],[1,10,18],[1,10,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,
48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],
[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,3,24],[1,3,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,11,18],[1,11,24],[1,11,36]],x_circle:[[0,9,24],[1,9,18],[1,9,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,
8,24],[1,8,24]],zoom_auto:[[1,2,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var l1t={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"},DW=function(H){this.iconUrlProvider=H};
DW.prototype.resolveIcon=function(H,C){var S=l1t[H.iconName.toUpperCase()];S&&(H.iconName=S);var w=H.iconName;w=w.replace(/-/g,"_");H=Object.assign({},H,{iconName:this.mapIconTypeToStandardName(w,!!S)||w.toLowerCase()});if(_.E("enable_web_delhi_icons")||S){var A;return OaU(vMj,H,((A=this.iconUrlProvider)==null?void 0:A.getYtStandardUrl)||POU,C)}var J;return OaU(f1j,H,((J=this.iconUrlProvider)==null?void 0:J.getYtStandardUrl)||d06,C)};
DW.prototype.mapIconTypeToStandardName=function(H,C){return _.E("enable_web_delhi_icons")||C?Gd3[H.toUpperCase()]:ud3[H.toUpperCase()]};
DW[F0]=[_.AA(bPj)];var V7j=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),oMR=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),OPt=function(H){this.urlProvider=this.iconUrlProvider=H};
_.G(OPt,DW);
OPt.prototype.resolveIcon=function(H,C){H.iconName==="youtube_logo"&&(H.iconName="yt-logo-updated");if(H.iconName==="youtube_premium_logo"||H.iconName==="youtube_red_logo")H.iconName="yt-logo-red-updated";var S=Object.assign({},H);H.iconName==="menu"&&(_.E("enable_web_delhi_icons")||(S.iconName="bars_3"),S.iconStyle="youtube_outline");H.iconSetName==="socialNetworksRound"&&(H.iconName==="mail"&&(S.iconName="email"),H.iconName==="embed"&&(S.iconSize=60));H.iconName==="more"&&(S.iconName="overflow_horizontal");
H.iconName==="fullscreen"&&(S.iconName="screen_full");H.iconName==="premium_standalone"&&(S.iconName="premium_standalone_cairo");_.E("enable_connect_icon_update_web")&&H.iconName==="account_linked"&&(S.iconName="circles_overlap_check",S.iconStyle="youtube_fill");_.E("enable_connect_icon_update_web")&&H.iconName==="account_unlinked"&&(S.iconName="circles_overlap",S.iconStyle="youtube_outline");V7j.has(H.iconName)&&(S.iconStyle="youtube_fill");_.E("enable_web_delhi_icons")&&(H.iconName==="playlist_add"&&
(S.iconName="bookmark"),H.iconName==="offline_pin"&&(S.iconName="arrow_down_circle",S.iconStyle="youtube_fill"),oMR.has(H.iconName)&&(S.iconName+="_updated"));H=Object.assign({},S,{iconName:(DW.prototype.mapIconTypeToStandardName.call(this,S.iconName)||S.iconName).toLowerCase()});var w;return(H=OaU(y_i,H,((w=this.urlProvider)==null?void 0:w.getUrl)||$06,C))?H:DW.prototype.resolveIcon.call(this,S,C)};
OPt[F0]=[_.AA(bPj)];_.X7j=1;var Ky=function(H,C){this.JSC$17262_commandHandler=H;this.innertubeTransportService=C};
_.G(Ky,WB);Ky.prototype.resolveCommand=function(H,C){var S=this,w,A,J;return _.z(function(c){return(w=_.e(H,JSU))?c.return(QVR(S,w,(A=C)==null?void 0:(J=A.form)==null?void 0:J.element)):c.return()})};
var QVR=function(H,C,S){C={profileCardContext:C.profileCardContext,profileOwnerExternalChannelId:C.profileOwnerExternalChannelId};var w=_.JG(SuY);return _.Mb(H.innertubeTransportService,C,w).then(function(A){if(!A)throw new _.X0("GetProfileCard failed");if(A=A.popupCommand){H.JSC$17262_commandHandler.resolveCommand(A,{form:{element:S}});_.kP(_.lJ(),66557);A=A==null?void 0:A.clickTrackingParams;var J=_.BM();A&&J&&_.lJ().graftServerVe(A,J)}})};
Ky[F0]=[_.ZQ,_.Lf];var t2=function(){};
_.G(t2,WB);t2.prototype.resolveCommand=function(H){var C,S;return _.z(function(w){C=_.e(H,TLn);if(!C)return w.return();S=Number(C.enableDelayedPacfLoggingTvMs);if(isNaN(S)){var A=tU();VEM(A,C,0)}else VEM(tU(),C,S);_.oT(w)})};_.Ly=function(){};
_.G(_.Ly,WB);
_.Ly.prototype.resolveCommand=function(H,C){var S=this,w,A,J,c,Y,M,m;return _.z(function(W){w=_.e(H,mRU);J=(A=C.form)==null?void 0:A.element;Y=(c=J)==null?void 0:c.closest("ytd-enforcement-message-view-model");if(!w||!Y)return W.return();S.allowAdsAction||(M=w.fundingChoiceInstructionPageUrl,S.allowAdsAction=new Q61(window,_.B9(M)));var y=S.allowAdsAction;y.wallElement=Y;y.allowAdsPopup.style.setProperty("display","flex","important");var N=y.scrollManager;N.originalBodyOverflow=N.JSC$10013_domHelper.JSC$9339_document_.body.style.overflow;N.JSC$10013_domHelper.JSC$9339_document_.body.style.overflow=
"hidden";y.wallElement.style.setProperty("display","none","important");KBW(y.accessibilityManager,y.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((m=S.allowAdsAction.allowAdsPopup)&&m instanceof HTMLElement)for(y=_.Z(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),N=y.next();!N.done;N=y.next()){var b=_.Z(N.value);N=b.next().value;b=b.next().value;m.style.setProperty(N,b)}_.oT(W)})};
_.Ly.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var gY=function(){};
_.G(gY,WB);gY.prototype.resolveCommand=function(H){var C;return _.z(function(S){C=_.e(H,zlU);if(!C)return S.return();zGZ(H);_.oT(S)})};var Uh=function(H){this.JSC$17277_commandHandler=H};
_.G(Uh,WB);
Uh.prototype.resolveCommand=function(H){var C=this,S,w,A,J,c,Y,M,m;return _.z(function(W){if(W.nextAddress==1){S=_.e(H,roU);if((w=S)==null||!w.text||!navigator.clipboard)return W.return();_.en(W,2);return W.yield(navigator.clipboard.writeText(S.text),4)}if(W.nextAddress!=2){if(!S.successActions||S.successActions.length===0)return W.return();A=_.Z(S.successActions);for(J=A.next();!J.done;J=A.next())c=J.value,C.JSC$17277_commandHandler.resolveCommand(c);return _.xB(W,0)}_.Vx(W);if(!S.failureActions||S.failureActions.length===
0)return W.return();Y=_.Z(S.failureActions);for(M=Y.next();!M.done;M=Y.next())m=M.value,C.JSC$17277_commandHandler.resolveCommand(m);_.oT(W)})};
Uh[F0]=[_.ZQ];var RD=function(H){this.JSC$17281_commandHandler=H};
_.G(RD,WB);
RD.prototype.resolveCommand=function(H,C){var S=this,w,A,J,c,Y,M,m,W,y,N;return _.z(function(b){switch(b.nextAddress){case 1:w=_.e(H,NQ_);if(!w)return b.return();_.en(b,2);if(!w.imageBytes&&!w.imageUrl)throw Error("Fi");if(!w.imageUrl){if(w.imageBytes){J=w.imageBytes;c=J.replace(/-/g,"+").replace(/_/g,"/");var u=hYZ(c);A=_.K9(u)}b.jumpTo(4);break}return b.yield(fetch(w.imageUrl),5);case 5:return Y=b.yieldResult,b.yield(Y.blob(),6);case 6:M=b.yieldResult,A=_.K9(M);case 4:y=(m=C)==null?void 0:(W=m.form)==
null?void 0:W.element;N=document.createElement("a");gP(N,A);y.appendChild(N);N.download="";N.click();y.removeChild(N);URL.revokeObjectURL(_.kD(A));w.successCommand&&S.JSC$17281_commandHandler.resolveCommand(w.successCommand);_.xB(b,0);break;case 2:_.Vx(b),w.errorCommand&&S.JSC$17281_commandHandler.resolveCommand(w.errorCommand),_.oT(b)}})};
RD[F0]=[_.ZQ];var ID=function(H){this.store=H};
_.G(ID,WB);ID.prototype.resolveCommand=function(H){var C=this,S,w,A;return _.z(function(J){w=(S=_.e(H,_.fxd))==null?void 0:S.entityBatchUpdate;if(!w)return J.jumpTo(0);A=Object.assign({},w,{mutations:[].concat(_.k$(w.mutations||[]))});return J.yield(_.vF(A,C.store),0)})};var dio=function(H){this.JSC$17288_commandHandler=H;this.feedbackDialogMap=new Map};
dio.prototype.openDialog=function(H,C){(H=this.feedbackDialogMap.get(H))&&this.JSC$17288_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:H}},C)};
dio[F0]=[_.ZQ];var aD=new _.W4("FEEDBACK_CONTROLLER_TOKEN");var xN=new _.W4("APP_STORE_TOKEN");var HO=function(H,C){this.store=H;this.controller=C};
_.G(HO,WB);HO.prototype.resolveCommand=function(H,C){var S=this,w,A,J,c,Y,M,m,W,y,N,b,u,O,d,p,k,R,L;return _.z(function(t){if(t.nextAddress==1){w=_.e(H,_.dR);if(J=(A=w)==null?void 0:A.contentId)for(Y=_.Z(((c=w)==null?void 0:c.actions)||[]),M=Y.next();!M.done;M=Y.next())m=M.value,PYo(S,m,J);N=(W=C)==null?void 0:(y=W.form)==null?void 0:y.element;return t.yield(_.WH(N,[H,{impression:(b=C)==null?void 0:b.disableClickTracking}]).catch(function(){}),2)}u=t.yieldResult;
((O=u)==null?0:(d=O.data)==null?0:(p=d.feedbackResponses)==null?0:p.length)&&(R=(k=u.data.feedbackResponses[0])==null?void 0:k.followUpDialog)&&J&&(L=S.controller)!=null&&L.feedbackDialogMap.set(J,R);_.oT(t)})};
var PYo=function(H,C,S){var w=_.e(C,_.b9);if(w){w=_.Z(w.commands||[]);for(var A=w.next();!A.done;A=w.next())PYo(H,A.value,S)}_.e(C,_.Ko)&&H.store.dispatch(_.O5("commandEntity",Qt6(S),{key:S,command:C}));_.e(C,MQn)&&H.store.dispatch(_.O5("commandEntity",Qt6(S),{key:S,command:C}))};
HO[F0]=[xN,aD];var iS=function(H){this.controller=H};
_.G(iS,WB);iS.prototype.resolveCommand=function(H,C){var S=this,w,A,J,c;return _.z(function(Y){w=_.e(H,_.gv);J=(A=w)==null?void 0:A.targetId;if(((c=w)==null?void 0:c.signal)!=="TELL_US_WHY"||!J)return Y.return();S.controller.openDialog(J,C);_.oT(Y)})};
iS[F0]=[aD];var CB=function(H){this.store=H};
_.G(CB,WB);CB.prototype.resolveCommand=function(H,C){var S=this,w,A,J,c,Y,M,m;return _.z(function(W){w=_.e(H,Grw);J=(A=w)==null?void 0:A.contentId;M=(c=C)==null?void 0:(Y=c.form)==null?void 0:Y.element;m=_.WH(M,[H]);J&&S.undo(J);return W.yield(m,0)})};
CB.prototype.undo=function(H){this.store.dispatch(_.O5("commandEntity",Qt6(H),{key:H,command:void 0}))};
CB[F0]=[xN];var SY=function(H){this.JSC$17303_commandHandler=H};
_.G(SY,WB);SY.prototype.resolveCommand=function(H){var C=this,S,w,A,J,c,Y,M,m;return _.z(function(W){S=_.e(H,B51);w=S.flowStateKey;A=S.validationFailureCommand;J=S.submitValidFormCommand;c=BGp(_.iz,[w||""]);Y=_.e(c,Kib);((M=Y)==null?0:M.isValid)&&J&&C.JSC$17303_commandHandler.resolveCommand(J);((m=Y)==null?0:m.isValid)||!A||C.JSC$17303_commandHandler.resolveCommand(A);_.oT(W)})};
SY[F0]=[_.ZQ];var s0=function(H){this.innertubeTransportService=H};
_.G(s0,WB);s0.prototype.resolveCommand=function(H,C){var S=this,w;return _.z(function(A){return A.yield(_.ir(S.innertubeTransportService,H,(w=C)==null?void 0:w.form).then(function(J){var c,Y;C==null||(c=C.commandController)==null||(Y=c.onSuccess)==null||Y.call(c,H,J)},function(J){var c,Y;
C==null||(c=C.commandController)==null||(Y=c.onServerError)==null||Y.call(c,H,J)}),0)})};
s0[F0]=[_.Lf];var jY=function(){};
_.G(jY,WB);jY.prototype.resolveCommand=function(H){var C,S,w,A;return _.z(function(J){if(C=_.e(H,_.Qnd)){if(S=C.gtmId)w=_.rh("GL",""),_.jx(S,w);(A=C.gtmData)&&_.wc(A)}_.oT(J)})};var w8=function(H,C,S){this.innertubeTransportService=H;this.JSC$17314_actionRouter=C;this.JSC$17314_screenManager=S};
_.G(w8,WB);w8.prototype.resolveCommand=function(H){var C=this,S,w;return _.z(function(A){S=_.e(H,hwn);if(!S)return A.return();w=S.command;if(!w)return A.return();C.JSC$17314_actionRouter.triggerAction("yt-insert-rich-section-action",S);return A.yield(_.ir(C.innertubeTransportService,w,{disableCache:!0}).then(function(J){H.clickTrackingParams&&(J==null?0:J.trackingParams)&&C.JSC$17314_screenManager.graftServerVe(J.trackingParams,_.Qh(H.clickTrackingParams))}),0)})};
w8[F0]=[_.Lf,vg,_.Av];ruD.bind(null,yu);var $ip=ruD.bind(null,tGP);D0u.bind(null,yu);var p7t=D0u.bind(null,tGP);tT$.bind(null,yu);var kdo=tT$.bind(null,tGP);var As=function(){};
_.G(As,WB);
As.prototype.resolveCommand=function(H){var C,S,w,A,J,c,Y,M,m,W;return _.z(function(y){C=_.e(H,us1);if(!C)return y.return();w=((S=C.operations)==null?void 0:S.operations)||[];A=_.Z(w);for(J=A.next();!J.done;J=A.next())if(c=J.value,c.insertItemSectionContent){var N=c.insertItemSectionContent,b=N.contents||[];N.insertByPositionInSection?$ip(N.insertByPositionInSection.sectionTargetId,b,N.insertByPositionInSection.position):N.insertByRelativePositionInSection&&N.insertByRelativePositionInSection.sectionTargetId&&N.insertByRelativePositionInSection.itemTargetId&&
p7t(N.insertByRelativePositionInSection.sectionTargetId,N.insertByRelativePositionInSection.itemTargetId,b,N.insertByRelativePositionInSection.relativePosition)}else c.replaceSection?(N=c.replaceSection,b={},N.replaceByTargetId?b=N.replaceByTargetId:N.replaceByGroupId&&(b={targetId:N.replaceByGroupId.groupId,newContent:N.replaceByGroupId.newContent,undoKey:""}),b.newContent&&UBd(b.targetId,{continuationItems:[b.newContent]})):c.removeItem?(N=c.removeItem,N.removeByTargetId&&N.sectionTargetId&&kdo(N.sectionTargetId,
N.removeByTargetId.targetIds||[])):c.removeSection&&(c.removeSection.removeByTargetId?(Y=void 0,hWK(((Y=c.removeSection)==null?void 0:Y.removeByTargetId.targetIds)||[])):c.removeSection.removeByGroupId&&(M=void 0,hWK(((M=c.removeSection)==null?void 0:M.removeByGroupId.groupIds)||[])));W=((m=C.operations)==null?void 0:m.scrollConfig)||{};nM_(W);_.oT(y)})};
var hWK=function(H){H=_.Z(H);for(var C=H.next();!C.done;C=H.next())UBd(C.value,{continuationItems:[]})},nM_=function(H){if(H.scrollToItem){var C=H.scrollToItem.item||{},S=C.itemTargetId;
C=C.sectionTargetId;if(S&&C){var w=document.querySelector("[data-target-id="+C+"]"),A=w==null?void 0:w.querySelector("[data-target-id="+S+"]");w&&A&&setTimeout(function(){var J=A.offsetTop-w.offsetTop,c;if(((c=H.scrollToItem)==null?void 0:c.scrollPosition)==="SCROLL_POSITION_CENTER")J-=w.offsetHeight/2,J+=A.offsetHeight/2;else{var Y;((Y=H.scrollToItem)==null?void 0:Y.scrollPosition)==="SCROLL_POSITION_END"&&(J-=w.offsetHeight,J+=A.offsetHeight)}w.scroll({top:J,behavior:"smooth"})},100)}}};var Js=new _.W4("CLIENT_NAME_TOKEN");var r_O=new _.W4("DEFAULT_STORE_EXPIRATION_TOKEN");var pKu=new _.W4("CLIENT_LOCATION_SERVICE_TOKEN");var FI=function(H,C,S){this.clientName=H||_.rh("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=C||_.hG.getInstance();this.JSC$17342_commandHandler=S||_.eU.instance};
_.G(FI,WB);FI.prototype.resolveCommand=function(H){var C=this,S,w;return _.z(function(A){w=(S=_.e(H,CDU))==null?void 0:S.onComplete;C.clientLocationService.clearLocationPlayabilityToken(C.clientName);w&&C.JSC$17342_commandHandler.resolveCommand(w);_.oT(A)})};
FI[F0]=[Js,pKu,_.ZQ];var ZH=function(H){this.innertubeTransportService=H};
_.G(ZH,WB);ZH.prototype.resolveCommand=function(H,C){var S=this,w,A,J,c;return _.z(function(Y){J=(w=C)==null?void 0:(A=w.form)==null?void 0:A.element;return Y.yield(_.ir(S.innertubeTransportService,H,(c=C)==null?void 0:c.form).then(function(M){HbE(J,new CustomEvent("yt-service-request-completed"),{data:M},_.rh("openPopupConfig"))}),0)})};
ZH[F0]=[_.Lf];var cO=function(){};
_.G(cO,WB);cO.prototype.resolveCommand=function(H){var C,S;return _.z(function(w){C=_.e(H,UgM);S=document.querySelector("mini-app-container-view-model");if(!C||!S)return w.return();C.isPlaying?S.dispatchEvent(new Event("play")):S.dispatchEvent(new Event("pause"));_.oT(w)})};var YZ=function(){};
_.G(YZ,WB);YZ.prototype.resolveCommand=function(H){var C,S,w,A,J,c,Y;return _.z(function(M){C=_.e(H,vr1);if((S=C)==null||!S.paramKeys)return M.return();w=C.paramKeys;A=_.I7(window.location.href);J=_.Z(w);for(c=J.next();!c.done;c=J.next())Y=c.value,A.JSC$10045_queryData_.remove(Y);window.history.replaceState(window.history.state,document.title,A.toString());_.oT(M)})};var BUi=function(){this.dropdownMap=new Map};_.Dip=new _.W4("DROPDOWN_CONTROLLER_TOKEN");var zE=function(H){this.controller=H};
_.G(zE,WB);zE.prototype.resolveCommand=function(H){var C=this,S,w,A,J;return _.z(function(c){S=_.e(H,wmU);if(!S)return c.return();w=S;A=w.dropdownId;J=w.selectedOptionIndex;if(A===void 0||J===void 0)return c.return();var Y=C.controller.dropdownMap.get(A);Y&&Y(J);_.oT(c)})};
zE[F0]=[_.Dip];var MG=function(H){this.controller=H};
_.G(MG,WB);MG.prototype.resolveCommand=function(H){var C=this,S;return _.z(function(w){return(S=_.e(H,TA1))?w.yield(C.controller.closeDialog(),0):w.return()})};
MG[F0]=[_.AT];var qG=function(H){this.controller=H};
_.G(qG,WB);qG.prototype.resolveCommand=function(H){var C=this,S,w;return _.z(function(A){S=_.e(H,xf1);if(!S)return A.return();var J,c=S.panelIdentifier||((J=S.identifier)==null?void 0:J.tag);if(!c)throw Error("Gi");return(w=c)?A.yield(C.controller.hidePanel(w),0):A.jumpTo(0)})};
qG[F0]=[_.jD];var TE=function(H){this.controller=H};
_.G(TE,WB);TE.prototype.resolveCommand=function(H){var C=this,S;return _.z(function(w){return(S=_.e(H,db1))?w.yield(C.controller.closeSheet(),0):w.return()})};
TE[F0]=[_.wz];var ms=function(H,C){this.innertubeTransportService=H;this.controller=C};
_.G(ms,WB);ms.prototype.resolveCommand=function(H){var C=this,S,w,A,J;return _.z(function(c){if(c.nextAddress==1)return S=_.e(H,Ho1),(w=S)!=null&&w.panelId?c.yield(C.controller.getReloadContinuation(S.panelId),2):c.return();if(c.nextAddress!=3)return(A=c.yieldResult)?c.yield(_.ir(C.innertubeTransportService,H,{continuation:A}),3):c.return();J=c.yieldResult;return c.yield(C.controller.updatePanel(S.panelId,J.content,!1),0)})};
ms[F0]=[_.Lf,_.jD];var WO=function(H,C,S){this.innertubeTransportService=H;this.JSC$17382_screenManager=C;this.JSC$17382_commandHandler=S};
_.G(WO,WB);
WO.prototype.resolveCommand=function(H){var C=this,S,w,A,J,c,Y;return _.z(function(M){if(M.nextAddress==1){S=_.e(H,_.KyU);if(!S)return M.return();if(S.commands)for(w=_.Z(S.commands),A=w.next();!A.done;A=w.next())J=A.value,C.JSC$17382_commandHandler.resolveCommand(J,{disableClickTracking:!0});c=_.Qh(H.clickTrackingParams);_.kP(C.JSC$17382_screenManager,21760,c,{layer:7,parentLayer:0});return M.yield(_.ir(C.innertubeTransportService,H),2)}Y=M.yieldResult;if(!Y)return M.return();C.JSC$17382_screenManager.graftServerVe(Y.trackingParams,c,
7);_.oT(M)})};
WO[F0]=[_.Lf,_.Av,_.ZQ];var yw=new _.W4("PANEL_LOADING_STRATEGY_TOKEN");var NG=function(H,C){this.controller=H;this.panelLoadingStrategy=C};
_.G(NG,WB);
NG.prototype.resolveCommand=function(H,C){var S=this,w,A,J;return _.z(function(c){w=_.e(H,$b7);if((A=w)==null||!A.panelLoadingStrategy)return c.return();J=function(Y){var M,m,W,y,N,b,u,O,d,p;return _.z(function(k){m=_.e((M=Y.dialogViewModel)==null?void 0:M.header,Avb);W={viewModel:Y.dialogViewModel};y={};if(u=_.E("web_enable_dialog_header_label")?(N=m)==null?void 0:(b=N.headline)==null?void 0:b.content:void 0)y.ariaLabel=u;w.dismissOnBackgroundTap===!1&&(y.isModal=!0);return Y.dialogViewModel?k.yield(S.controller.openDialog(W,
(p=(O=C)==null?void 0:(d=O.form)==null?void 0:d.element)!=null?p:document.body,y),0):k.return()})};
return c.yield(S.panelLoadingStrategy.execute({command:H,data:w.panelLoadingStrategy,renderFn:J,createScreenConfig:{layer:4}}),0)})};
NG[F0]=[_.AT,yw];var bS=function(H,C,S){this.innertubeTransportService=H;this.controller=C;this.JSC$17402_screenManager=S};
_.G(bS,WB);
bS.prototype.resolveCommand=function(H,C){var S=this,w,A,J,c,Y,M,m,W,y,N,b,u;return _.z(function(O){switch(O.nextAddress){case 1:w=_.e(H,_.Qn);if(!w)return O.return();var d,p=w.panelIdentifier||((d=w.identifier)==null?void 0:d.tag);if(!p)throw Error("Gi");A=p;return O.yield(S.controller.isVisible(A,!0),2);case 2:if((J=O.yieldResult)&&w.blockIfPanelOpen)return O.return();M=(Y=(c=S.controller).getPanelContent)==null?void 0:Y.call(c,A);if(!(d=M))if(w){var k;d=((k=w.globalConfiguration)==null?void 0:
k.initialState)||w.engagementPanel;if(k=!d)k=!!(w==null?0:(p=w.engagementPanelPresentationConfigs)==null?0:p.engagementPanelPopupPresentationConfig);k&&(d=_.LM$(w.panelIdentifier,w.identifier))}else d=void 0;m=d;W=w.engagementPanelPresentationConfigs;y=w.engagementPanelExtras;return O.yield(S.controller.showPanel(A,m,W,y,(N=C)==null?void 0:(b=N.form)==null?void 0:b.element),3);case 3:if(!w.globalConfiguration){O.jumpTo(0);break}_.kP(S.JSC$17402_screenManager,32633);return O.yield(_.ir(S.innertubeTransportService,
H),5);case 5:return u=O.yieldResult,S.JSC$17402_screenManager.graftServerVe(u.trackingParams),O.yield(S.controller.updatePanel(A,u.content,!0,y,void 0,u.updatePanelContinuationData),0)}})};
bS[F0]=[_.Lf,_.jD,_.Av];var E0=function(H,C){this.controller=H;this.panelLoadingStrategy=C};
_.G(E0,WB);E0.prototype.resolveCommand=function(H,C){var S=this,w,A,J,c,Y,M;return _.z(function(m){w=_.e(H,_.X1);if((A=w)==null||!A.panelLoadingStrategy)return m.return();Y=K1o(S.controller,(J=C)==null?void 0:(c=J.form)==null?void 0:c.element);M=function(W){return _.z(function(y){return W.sheetViewModel?y.yield(S.controller.openSheet({viewModel:W.sheetViewModel},Y),0):y.return()})};
return m.yield(S.panelLoadingStrategy.execute({command:H,data:w.panelLoadingStrategy,renderFn:M,createScreenConfig:{layer:0}}),0)})};
E0[F0]=[_.wz,yw];var eY=function(H,C){this.controller=H;this.JSC$17409_commandHandler=C};
_.G(eY,WB);eY.prototype.resolveCommand=function(H,C){var S=this,w,A,J;return _.z(function(c){if(c.nextAddress==1){w=_.e(H,s4P);var Y=_.e(w.showCommand,_.Qn),M,m,W=(m=Y==null?void 0:Y.panelIdentifier)!=null?m:Y==null?void 0:(M=Y.identifier)==null?void 0:M.tag;if(!W)throw Error("Hi");A=W;return c.yield(S.controller.isVisible(A),2)}return(J=c.yieldResult)?c.yield(S.controller.hidePanel(A),0):c.yield(S.JSC$17409_commandHandler.resolveCommand(w.showCommand,C),0)})};
eY[F0]=[_.jD,_.ZQ];var uS=function(H,C,S){this.innertubeTransportService=H;this.controller=C;this.JSC$17412_screenManager=S};
_.G(uS,WB);
uS.prototype.resolveCommand=function(H){var C=this,S,w,A,J,c,Y,M,m,W,y,N,b,u,O,d,p,k,R,L,t,g,ii;return _.z(function(FW){switch(FW.nextAddress){case 1:return w=S=_.e(H,wgW),A=w.targetPanelIdentifier,J=w.contentSourcePanelIdentifier,c=w.globalConfiguration,((Y=A)==null?0:Y.tag)&&((M=J)==null?0:M.tag)?c?FW.yield(C.controller.showPanel(A.tag,_.LM$(A.tag,A),void 0,void 0,void 0),5):FW.yield((N=(y=C.controller).getPanel)==null?void 0:N.call(y,J.tag),4):FW.return();case 4:b=FW.yieldResult;m=(u=b)==null?
void 0:(d=(O=u).getPanelContent)==null?void 0:d.call(O);FW.jumpTo(3);break;case 5:return FW.yield(_.ir(C.innertubeTransportService,H),6);case 6:p=FW.yieldResult,((k=p)==null?0:k.trackingParams)&&C.JSC$17412_screenManager.graftServerVe(p.trackingParams),m=(R=p)==null?void 0:R.content,W=(L=p)==null?void 0:L.updatePanelContinuationData;case 3:if(g=(t=m)==null?void 0:t.engagementPanelSectionListRenderer)return FW.yield(C.controller.showPanel(A.tag,void 0,void 0,void 0,void 0,{content:g.content,secondaryHeaderContent:(ii=
g.header)!=null?ii:{},targetId:g.targetId},W),0);FW.jumpTo(0)}})};
uS[F0]=[_.Lf,_.jD,_.Av];var GE=function(){};
_.G(GE,WB);GE.prototype.resolveCommand=function(H){var C,S,w;return _.z(function(A){if(A.nextAddress==1)return(C=_.e(H,YQb))?A.yield(_.Np(),2):A.return();S=A.yieldResult;if(!S)return A.return();var J=S,c=(w=C)==null?void 0:w.languageCode,Y;(J==null?0:(Y=J.isReady)==null?0:Y.call(J))&&(c=gGu(J,c))&&J.setAudioTrack(c);_.oT(A)})};var fB=function(){};
_.G(fB,WB);var t7j=function(H){var C;return _.z(function(S){C=_.rh("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;H.JSC$17421_mainAppPlayer=new lU(C);document.addEventListener("yt-page-data-updated",H.JSC$17421_pauseOnNavigation.bind(H));_.oT(S)})};
fB.prototype.JSC$17421_pauseOnNavigation=function(){var H=this,C,S;return _.z(function(w){if(w.nextAddress==1)return C=H.JSC$17421_mainAppPlayer,w.yield(C.api,2);S=w.yieldResult;S.pauseVideo();_.oT(w)})};
var L1K=function(H,C,S){var w;return _.z(function(A){w=H.JSC$17421_mainAppPlayer;return A.yield(w.loadVideoWithPlayerVars({videoId:C,audio_only:"1",player_params:S}),0)})};
fB.prototype.pauseVideo=function(){var H=this,C,S;return _.z(function(w){if(w.nextAddress==1)return C=H.JSC$17421_mainAppPlayer,w.yield(C.api,2);S=w.yieldResult;S.pauseVideo();_.oT(w)})};
fB.prototype.playVideo=function(){var H=this,C,S;return _.z(function(w){if(w.nextAddress==1)return C=H.JSC$17421_mainAppPlayer,w.yield(C.api,2);S=w.yieldResult;S.playVideo();_.oT(w)})};
var gMp=function(H){var C,S;return _.z(function(w){if(w.nextAddress==1)return C=H.JSC$17421_mainAppPlayer,w.yield(C.api,2);S=w.yieldResult;S.mute();_.oT(w)})},Ui_=function(H){var C,S;
return _.z(function(w){if(w.nextAddress==1)return C=H.JSC$17421_mainAppPlayer,w.yield(C.api,2);S=w.yieldResult;S.unMute();_.oT(w)})},RWi=function(H,C){return _.z(function(S){switch(S.nextAddress){case 1:switch(C){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return S.jumpTo(2);
case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return S.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return S.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return S.jumpTo(5)}S.jumpTo(0);break;case 2:return S.yield(H.playVideo(),7);case 7:S.jumpTo(0);break;case 3:return S.yield(H.pauseVideo(),8);case 8:S.jumpTo(0);break;case 4:return S.yield(gMp(H),9);case 9:S.jumpTo(0);break;case 5:return S.yield(Ui_(H),10);case 10:S.jumpTo(0)}})};
fB.prototype.resolveCommand=function(H){var C=this,S,w,A,J,c,Y,M,m,W,y,N;return _.z(function(b){return b.nextAddress==1?(S=_.e(H,Bai),((w=S)==null?0:w.newPlaybackParams)||((A=S)==null?0:A.controlAction)?C.JSC$17421_mainAppPlayer?b.jumpTo(2):b.yield(t7j(C),2):b.return()):((J=S)==null?0:J.newPlaybackParams)?(M=(c=S)==null?void 0:(Y=c.newPlaybackParams)==null?void 0:Y.externalVideoId,N=(y=(m=S)==null?void 0:(W=m.newPlaybackParams)==null?void 0:W.playerParams)!=null?y:"",M?b.yield(L1K(C,M,N),0):b.return()):
b.yield(RWi(C,S.controlAction),0)})};var vO=function(H){this.JSC$17428_commandHandler=H};
_.G(vO,WB);
vO.prototype.resolveCommand=function(H){var C=this,S,w,A,J,c,Y;return _.z(function(M){if(M.nextAddress==1)return(S=_.e(H,zZb))?M.yield(_.Np(),2):M.return();w=M.yieldResult;if(!w)return M.return();var m=w,W=(A=S)==null?void 0:A.languageCode,y=(J=S)==null?void 0:J.isAutoTranslated;m.getVideoData&&_.RY$(m).length&&((W=anD(m,W,y))?m.setOption("captions","track",W):(m.setOption("captions","stickyLoading",{}),m.setOption("captions","track",{})));c=w.isSubtitlesOn()?_.fL("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.fL("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");Y=_.Zo(c);C.JSC$17428_commandHandler.resolveCommand(Y);_.oT(M)})};
vO[F0]=[_.ZQ];var lS=function(H,C){this.shortsPlayerPromise=H;this.JSC$17432_commandHandler=C};
_.G(lS,WB);
lS.prototype.resolveCommand=function(H){var C=this,S,w,A,J,c,Y,M,m;return _.z(function(W){if(W.nextAddress==1)return(S=_.e(H,XJ_))?W.yield(C.shortsPlayerPromise,2):W.return();w=W.yieldResult;var y=x00(w);y!=null&&y.length||(w.loadModule("captions"),y=x00(w));A=y;if((J=A)==null||!J.length)return c=_.fL("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),Y=_.Zo(c),C.JSC$17432_commandHandler.resolveCommand(Y),W.return();w.toggleSubtitles();M=w.isSubtitlesOn()?_.fL("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.fL("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");m=_.Zo(M);C.JSC$17432_commandHandler.resolveCommand(m);_.oT(W)})};
lS[F0]=[_.uXd,_.ZQ];var o3=function(H){this.JSC$17435_actionRouter=H;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(C,S){C.triggerAction("yt-dismiss-shopping-timely-shelf-action",S)}]])};
_.G(o3,WB);o3.prototype.resolveCommand=function(H){var C=this,S,w,A;return _.z(function(J){S=_.e(H,mf1);if((w=S)==null||!w.overlayId)return J.return();A=C.dismissPlayerOverlayActions.get(S.overlayId);if(!A)throw Error("Ii`"+S.overlayId);A(C.JSC$17435_actionRouter,S);_.oT(J)})};
o3[F0]=[vg];var O0=function(H){this.JSC$17439_playerPromise=H};
_.G(O0,WB);O0.prototype.resolveCommand=function(H){var C=this,S,w,A,J;return _.z(function(c){if(c.nextAddress==1)return(S=_.e(H,Ctb))?c.yield(C.JSC$17439_playerPromise,2):c.return();w=c.yieldResult;A=w.getVideoData().video_id;S.videoId===A&&(J=Number(S.offsetFromVideoStartMilliseconds),J>=0&&w.seekTo(J/1E3));_.oT(c)})};
O0[F0]=[_.qp];var I19=_.ba("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),XI=function(H){this.store=H};
_.G(XI,WB);
var a1o=function(H){var C,S,w,A;return _.z(function(J){if(J.nextAddress==1)return C=_.rh("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,S=_.rh("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,w=C||S,H.JSC$17443_mainAppPlayer=new lU(w),J.yield(H.JSC$17443_mainAppPlayer.api,2);A=J.yieldResult;A.addEventListener("onStateChange",H.JSC$17443_playerStateChangeListener.bind(H));document.addEventListener("yt-page-data-updated",H.JSC$17443_pauseOnNavigation.bind(H));window.addEventListener("state-navigatestart",
H.JSC$17443_pauseOnNavigation.bind(H));_.oT(J)})};
XI.prototype.JSC$17443_playerStateChangeListener=function(H){switch(H){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"}xii(this)};
var xii=function(H){H.store.dispatch(_.O5("sfvAudioItemCurrentlyPlayingEntity",I19,{key:I19,externalVideoId:H.externalVideoId,sfvAudioItemPlaybackState:H.playbackState,nowPlayingEntityValue:H.nowPlayingEntityValue}))};
XI.prototype.JSC$17443_pauseOnNavigation=function(){var H=this,C,S,w,A;return _.z(function(J){if(J.nextAddress==1){if(!H.JSC$17443_mainAppPlayer){var c=new _.X0("Error: mainAppPlayer is unavailable",H.JSC$17443_mainAppPlayer);_.nC(c);return J.return()}return J.yield(H.JSC$17443_mainAppPlayer.api,2)}C=J.yieldResult;w=(S=C)==null?void 0:S.getPlayerState();w!==1||(A=C)!=null&&A.pauseVideo();_.oT(J)})};
XI.prototype.playVideo=function(H,C,S){var w=this,A,J;return _.z(function(c){if(c.nextAddress==1)return c.yield((A=w.JSC$17443_mainAppPlayer)==null?void 0:A.api,2);J=c.yieldResult;if(!w.JSC$17443_mainAppPlayer||!J){var Y=new _.X0("Error: mainAppPlayer is unavailable",w.JSC$17443_mainAppPlayer);_.nC(Y);return c.return()}return c.yield(w.JSC$17443_mainAppPlayer.loadVideoWithPlayerVars({videoId:w.externalVideoId,audio_only:"1",start:H/1E3,end:H/1E3+C,player_params:S}),0)})};
XI.prototype.pauseVideo=function(){var H=this,C,S;return _.z(function(w){if(w.nextAddress==1){if(!H.JSC$17443_mainAppPlayer){var A=new _.X0("Error: mainAppPlayer is unavailable",H.JSC$17443_mainAppPlayer);_.nC(A);return w.return()}return w.yield(H.JSC$17443_mainAppPlayer.api,2)}C=w.yieldResult;(S=C)==null||S.pauseVideo();_.oT(w)})};
XI.prototype.resolveCommand=function(H){var C=this,S,w,A,J,c,Y,M,m,W,y,N,b,u,O,d,p,k,R,L;return _.z(function(t){if(t.nextAddress==1)return S=_.e(H,l3M),A=(w=S)==null?void 0:w.nowPlayingEntityValue,c=(J=S)==null?void 0:J.externalVideoId,y=Number((W=(Y=S)==null?void 0:(M=Y.defaultStartPoints)==null?void 0:(m=M[0])==null?void 0:m.offsetMs)!=null?W:"0"),p=Number((d=(N=S)==null?void 0:(b=N.defaultStartPoints)==null?void 0:(u=b[0])==null?void 0:(O=u.duration)==null?void 0:O.seconds)!=null?d:"15"),L=(R=
(k=S)==null?void 0:k.playerParams)!=null?R:"",A&&c?C.JSC$17443_mainAppPlayer?t.jumpTo(2):t.yield(a1o(C),2):t.return();if(t.nextAddress!=6){if(C.nowPlayingEntityValue&&A===C.nowPlayingEntityValue)return C.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?t.yield(C.pauseVideo(),0):t.yield(C.playVideo(y,p,L),0);C.externalVideoId=c;C.nowPlayingEntityValue=A;C.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return t.yield(C.playVideo(y,p,L),6)}xii(C);return t.jumpTo(0)})};
XI[F0]=[Fn];var Qw=function(H){this.JSC$17461_commandHandler=H};
_.G(Qw,WB);Qw.prototype.resolveCommand=function(H,C){var S=this,w,A,J;return _.z(function(c){if(c.nextAddress==1)return(w=_.e(H,McV))?c.yield(_.Np(),2):c.return();A=c.yieldResult;if(!A)return c.return();(J=H2u(A))&&S.JSC$17461_commandHandler.resolveCommand(J,C);_.oT(c)})};
Qw[F0]=[_.ZQ];var d8=function(H){this.JSC$17467_commandHandler=H};
_.G(d8,WB);d8.prototype.resolveCommand=function(H,C){var S=this,w,A,J,c,Y;return _.z(function(M){if(M.nextAddress==1)return(w=_.e(H,qQb))?M.yield(_.Np(),2):M.return();A=M.yieldResult;if(!A)return M.return();(J=jdi(A))?S.JSC$17467_commandHandler.resolveCommand(J,C):(c=_.fL("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),Y=_.Zo(c),S.JSC$17467_commandHandler.resolveCommand(Y));_.oT(M)})};
d8[F0]=[_.ZQ];var PO=function(H){this.JSC$17470_playerPromise=H};
_.G(PO,WB);PO.prototype.resolveCommand=function(H){var C=this,S,w,A,J,c;return _.z(function(Y){if(Y.nextAddress==1){S=_.e(H,SyU);if(!S)return Y.return();w=S.overlayRenderer;return w?(A=_.e(w,Er_))?Y.yield(C.JSC$17470_playerPromise,3):Y.jumpTo(0):Y.return()}J=Y.yieldResult;J.renderChapterSeekingAnimation(1,_.jt(A.text),(c=A.icon)==null?void 0:c.iconType);_.oT(Y)})};
PO[F0]=[_.qp];var $Z=function(H){this.store=H};
_.G($Z,WB);
$Z.prototype.resolveCommand=function(H){var C=this,S,w,A;return _.z(function(J){if(J.nextAddress==1){S=_.e(H,DLd);if(!S)return J.return();w="";(A=C.store.getState().collabInviteLink)&&S.id===A.playlistId?w=A.inviteLinkURL:S.shortUrl&&(w=S.shortUrl);return w?J.yield(navigator.clipboard.writeText(w),3):J.jumpTo(0)}var c={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.fL("COPY_LINK_SUCCESS_TOAST")}}}}};_.JA().resolve(_.ZQ).resolveCommand(c);_.oT(J)})};
$Z[F0]=[xN];var pB=function(H,C){this.innertubeTransportService=H;this.JSC$17480_commandHandler=C};
_.G(pB,WB);pB.prototype.resolveCommand=function(H,C){var S=this,w,A,J,c,Y,M,m,W,y,N;return _.z(function(b){if(b.nextAddress==1)return(w=_.e(H,_.Mc))?b.yield(_.ir(S.innertubeTransportService,H,(A=C)==null?void 0:A.form),2):b.return();(J=b.yieldResult)&&J.errorMetadata&&(c=J,Y=_.Zo(c.error.message),S.JSC$17480_commandHandler.resolveCommand(Y));M=J;if((m=M)==null?0:m.actions)for(W=_.Z(M.actions),y=W.next();!y.done;y=W.next())N=y.value,S.JSC$17480_commandHandler.resolveCommand(N);_.oT(b)})};
pB[F0]=[_.Lf,_.ZQ];var kZ=function(){};
_.G(kZ,WB);kZ.prototype.resolveCommand=function(H){var C;return _.z(function(S){C=_.e(H,QBU);if(!C)return S.return();(new b1d(C)).show();_.oT(S)})};_.hs=new _.W4("PLAYLIST_EDIT_CONTROLLER_TOKEN");var nB=function(H,C,S,w){this.store=H;this.innertubeTransportService=C;this.controller=S;this.JSC$17488_commandHandler=w};
_.G(nB,WB);
nB.prototype.resolveCommand=function(H,C){var S=this,w,A,J,c,Y,M,m,W,y,N,b,u,O,d,p,k,R,L,t,g,ii,FW,cZ,eZ,ND,bi;return _.z(function(pU){if(pU.nextAddress==1){w=_.e(H,_.Jd);if(!w)return pU.return();if(w.clientActions){A=_.Z(w.clientActions);for(J=A.next();!J.done;J=A.next())c=J.value,S.JSC$17488_commandHandler.resolveCommand(c);var O$,R0=C==null?void 0:(O$=C.form)==null?void 0:O$.element;R0&&_.M3(R0,"yt-dismissible-item-action",w.clientActions)}return pU.yield(_.ir(S.innertubeTransportService,H,(Y=
C)==null?void 0:Y.form),2)}if(M=pU.yieldResult)M.errorMetadata?(m=M,W=_.Zo(m.error.message),S.JSC$17488_commandHandler.resolveCommand(W),"error"in M&&((y=C)==null?0:(N=y.commandController)==null?0:N.onServerError)&&((b=C)==null||(u=b.commandController)==null||u.onServerError(H,M))):(O=C)==null||(d=O.commandController)==null||(k=(p=d).onSuccess)==null||k.call(p,H,M);R=M;((L=R)==null?0:L.collaborationInviteLink)&&w.playlistId&&(_.E("web_enable_invite_collaborators_link")||_.E("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
S.store.dispatch(_.Md({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:w.playlistId,inviteLinkUrl:R.collaborationInviteLink}}));((t=R)==null?0:t.redirectEndpoint)&&S.JSC$17488_commandHandler.resolveCommand(R.redirectEndpoint);((g=R)==null?0:(ii=g.newHeader)==null?0:ii.playlistHeaderRenderer)?HrO(S.controller,R.newHeader.playlistHeaderRenderer):((FW=R)==null?0:(cZ=FW.newHeader)==null?0:cZ.musicEditablePlaylistDetailHeaderRenderer)&&HrO(S.controller,R.newHeader.musicEditablePlaylistDetailHeaderRenderer);
S.controller.playlistVideoListElement&&((eZ=R)==null?0:(ND=eZ.playlistEditResults)==null?0:(bi=ND[0])==null?0:bi.playlistEditVideoAddedResultData)&&((R0=S.controller.playlistVideoListElement)==null||R0.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:R.playlistEditResults[0].playlistEditVideoAddedResultData})));_.oT(pU)})};
nB[F0]=[xN,_.Lf,_.hs,_.ZQ];var r8=function(H,C){this.controller=H;this.JSC$17498_commandHandler=C};
_.G(r8,WB);r8.prototype.resolveCommand=function(H,C){var S=this,w,A,J;return _.z(function(c){w=_.e(H,KhM);S.controller.showRefreshPill&&((A=w)==null?0:A.command)&&(S.JSC$17498_commandHandler.resolveCommand((J=w)==null?void 0:J.command,C),S.controller.showRefreshPill=!1);_.oT(c)})};
r8[F0]=[_.h6,_.ZQ];var BO=function(H,C){this.store=H;this.JSC$17502_commandHandler=C||_.eU.instance};
_.G(BO,WB);BO.prototype.resolveCommand=function(H,C){var S=this,w,A,J,c,Y,M,m,W,y,N;return _.z(function(b){w=_.e(H,jS7);A=S.store.getState().radioButtonGroup;if((J=w)==null?0:J.command)S.JSC$17502_commandHandler.resolveCommand((c=w)==null?void 0:c.command,C);else if(A&&((Y=w)==null?void 0:Y.formId)===A.currentFormId)for(M=Object.values(A.commandsMap),m=_.Z(M),W=m.next();!W.done;W=m.next())y=W.value,(N=_.L7(y))&&S.JSC$17502_commandHandler.resolveCommand(N,C);_.oT(b)})};
BO[F0]=[_.MU];var DH=new _.W4("USER_PREFS");var KB=function(H){this.JSC$17507_prefCookie=H};
_.G(KB,WB);KB.prototype.resolveCommand=function(H){var C=this,S;return _.z(function(w){(S=_.e(H,Ga7))&&typeof S.useListView==="boolean"&&(_.ok(0,155,S.useListView),C.JSC$17507_prefCookie.save());_.oT(w)})};
KB[F0]=[DH];var ts=function(H){this.JSC$17511_prefCookie=H};
_.G(ts,WB);ts.prototype.resolveCommand=function(H){var C=this,S,w,A,J,c;return _.z(function(Y){S=_.e(H,P0P);if((w=S)==null||!w.gl)return Y.return();A=S.gl;J={persist_gl:"1",gl:A};C.JSC$17511_prefCookie.set("gl",A);C.JSC$17511_prefCookie.save();c=b9M(J);_.Cx(c);_.oT(Y)})};
ts[F0]=[DH];var LB=function(H){this.JSC$17515_prefCookie=H};
_.G(LB,WB);LB.prototype.resolveCommand=function(H){var C=this,S,w;return _.z(function(A){S=_.e(H,LhP);if(!S)return A.return();w=!1;S.flagNum&&typeof S.value==="boolean"?(_.ok(0,S.flagNum,S.value),w=!0):S.key&&typeof S.stringValue==="string"&&(C.JSC$17515_prefCookie.set(S.key,S.stringValue),w=!0);w&&C.JSC$17515_prefCookie.save();_.oT(A)})};
LB[F0]=[DH];var g8=new _.W4("PREF_STORAGE_PROMISE_TOKEN");var U0=function(H){this.JSC$17519_prefStoragePromise=H};
_.G(U0,WB);U0.prototype.resolveCommand=function(H){var C=this,S,w;return _.z(function(A){if(A.nextAddress==1)return(S=_.e(H,ULM))?A.yield(C.JSC$17519_prefStoragePromise,2):A.return();w=A.yieldResult;return w===void 0||S.key===void 0||S.value===void 0?A.return():A.yield(w.set(S.key,S.value),0)})};
U0[F0]=[g8];var iro=function(H){this.innertubeTransportService=H};
_.G(iro,WB);iro.prototype.resolveCommand=function(H,C){var S=this,w,A;return _.z(function(J){(w=_.e(H,_.a3n))&&w&&w.isFirstRequest&&(_.BH("search_overview_answer"),_.DR("so_rq",void 0,"search_overview_answer"));return J.yield(_.ir(S.innertubeTransportService,H,(A=C)==null?void 0:A.form),0)})};
iro[F0]=[_.Lf];var Cpi=function(){};
_.G(Cpi,WB);
Cpi.prototype.resolveCommand=function(H){var C,S,w,A,J,c,Y,M,m;return _.z(function(W){C=_.e(H,ioW);if((S=C)==null?0:S.sectionIdentifier){if(C.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(A=(w=document.getElementsByTagName(C.sectionIdentifier))==null?void 0:w.item(0))A.scrollIntoView({behavior:"smooth"}),(J=CmD(A))&&J.focus({preventScroll:!0});return W.return()}c=document.querySelector("[section-identifier="+C.sectionIdentifier+"]");Y=document.querySelector("[section-identifier="+C.referenceSectionIdentifier+
"]");if(!c)return W.return();M=C.verticalScrollOffsetDp?C.verticalScrollOffsetDp:0;Y&&(M-=Y.offsetTop);window.scrollTo({top:c.offsetTop+M,behavior:"smooth"});(m=CmD(c))&&m.focus({preventScroll:!0})}_.oT(W)})};var R3=function(H){this.JSC$17531_commandHandler=H};
_.G(R3,WB);
R3.prototype.resolveCommand=function(H){var C=this,S,w,A,J,c,Y,M;return _.z(function(m){if(m.nextAddress==1){S=_.e(H,b$V);if(!S||!S.imageBytes||!navigator.clipboard)return m.return();if(S.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.nC(Error("Ki")),m.return();_.en(m,2);A=(w=S)==null?void 0:w.imageBytes;J=A.replace(/-/g,"+").replace(/_/g,"/");c=hYZ(J);Y={};M=[new ClipboardItem((Y[c.type]=c,Y))];return m.yield(navigator.clipboard.write(M),4)}if(m.nextAddress!=2)return S.successCommand&&
C.JSC$17531_commandHandler.resolveCommand(S.successCommand),_.xB(m,0);_.Vx(m);S.errorCommand&&C.JSC$17531_commandHandler.resolveCommand(S.errorCommand);_.oT(m)})};
R3[F0]=[_.ZQ];var I3=function(H,C){this.innertubeTransportService=H;this.JSC$17535_commandHandler=C};
_.G(I3,WB);I3.prototype.resolveCommand=function(H,C){var S=this,w,A,J,c,Y;return _.z(function(M){if(M.nextAddress==1)return(w=_.e(H,Ee_))?M.yield(_.ir(S.innertubeTransportService,H,(A=C)==null?void 0:A.form),2):M.return();(J=M.yieldResult)&&J.errorMetadata&&w.onFailureCommand&&S.JSC$17535_commandHandler.resolveCommand(w.onFailureCommand);c=J;((Y=c)==null?0:Y.shareCommand)&&S.JSC$17535_commandHandler.resolveCommand(c.shareCommand,C);_.oT(M)})};
I3[F0]=[_.Lf,_.ZQ];var a3=function(){};
_.G(a3,WB);a3.prototype.resolveCommand=function(H){var C,S;return _.z(function(w){C=_.e(H,ryV);if(!C||!navigator.share)return w.return();S={url:C.url};try{return w.return(navigator.share(S))}catch(A){}_.oT(w)})};var xZ=function(){};
_.G(xZ,WB);xZ.prototype.resolveCommand=function(){return _.z(function(H){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.oT(H)})};var Hk=function(H){this.JSC$17545_navigationConfirmationService=H};
_.G(Hk,WB);Hk.prototype.resolveCommand=function(){var H=this;return _.z(function(C){H.JSC$17545_navigationConfirmationService.cancelPendingNavigation();_.oT(C)})};
Hk[F0]=[II];var i_=function(H){this.JSC$17548_screenManager=H};
_.G(i_,WB);i_.prototype.resolveCommand=function(H,C){var S=this,w,A,J,c,Y,M,m;return _.z(function(W){A=(w=C.form)==null?void 0:w.event;c=(J=C.form)==null?void 0:J.element;if(!A)throw new _.X0("Event not passed in when resolving command");Y=_.Z(A.composedPath());for(M=Y.next();!M.done;M=Y.next())if(m=M.value,m.tagName==="YT-COPY-LINK-RENDERER")return m.copyUrlToClipboard(),c&&_.aW(S.JSC$17548_screenManager,c),W.return();_.oT(W)})};
i_[F0]=[_.Av];var CA=function(){this.JSC$17552_miniAppClientDataProvider=_.JA().resolve(_.Eh)};
_.G(CA,WB);CA.prototype.resolveCommand=function(){var H=this,C,S;return _.z(function(w){if(H.JSC$17552_miniAppClientDataProvider.clientData.has("video_id")){var A=H.JSC$17552_miniAppClientDataProvider,J=A.clientData.get("video_id");J&&A.clientData.delete("video_id");C="https://youtube.com/watch?v="+J;S=_.n9(C);if(S===void 0)throw Error("Li`"+C);_.CM(window,S)}_.oT(w)})};var S0=function(){};
_.G(S0,WB);S0.prototype.resolveCommand=function(){return _.z(function(H){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.oT(H)})};var sG=function(){};
_.G(sG,WB);sG.prototype.resolveCommand=function(){var H;return _.z(function(C){if(C.nextAddress==1)return C.yield(_.kT6(window.document.documentElement),2);(H=document.querySelector("mini-app-container-view-model iframe"))&&H.focus();_.oT(C)})};var j0=function(H){this.JSC$17559_navigationConfirmationService=H};
_.G(j0,WB);
j0.prototype.resolveCommand=function(){var H=this;return _.z(function(C){var S=H.JSC$17559_navigationConfirmationService,w=_.JA().resolve(_.HS),A;if(((A=S.navigateParams)==null?void 0:A.data)!==void 0){var J;_.G0b(w,S.navigateParams.endpoint,S.navigateParams.data,(J=S.navigateParams.navigationType)!=null?J:1,S.navigateParams.tempData,S.navigateParams.isMiniplayer,void 0,!0);S.navigateParams=void 0;S.customConfirmationCommand=void 0}else S.navigateParams&&(w.navigate(S.navigateParams.endpoint,S.navigateParams.reload,
S.navigateParams.params,S.navigateParams.tempData,S.navigateParams.requestType,S.navigateParams.createScreenConfig,!0),S.navigateParams=void 0,S.customConfirmationCommand=void 0);_.oT(C)})};
j0[F0]=[II];var wf=function(){};
_.G(wf,WB);wf.prototype.resolveCommand=function(){return _.z(function(H){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.oT(H)})};var Az=function(H){this.JSC$17564_prefStorage=H};
_.G(Az,WB);Az.prototype.resolveCommand=function(){var H=this,C,S;return _.z(function(w){switch(w.nextAddress){case 1:return w.yield(H.JSC$17564_prefStorage,2);case 2:return(C=w.yieldResult)?w.yield(C.set("sfvle",!1),3):w.return();case 3:return w.yield(C.set("sfvles",!0),4);case 4:S=_.VN(),_.ok(0,203,!1),_.ok(0,204,!0),S.save(),_.oT(w)}})};
Az[F0]=[g8];var Jz=function(H){this.JSC$17567_prefStorage=H};
_.G(Jz,WB);Jz.prototype.resolveCommand=function(){var H=this,C,S;return _.z(function(w){switch(w.nextAddress){case 1:return w.yield(H.JSC$17567_prefStorage,2);case 2:return(C=w.yieldResult)?w.yield(C.set("sfvle",!0),3):w.return();case 3:return w.yield(C.set("sfvles",!0),4);case 4:S=_.VN(),_.ok(0,203,!0),_.ok(0,204,!0),S.save(),_.oT(w)}})};
Jz[F0]=[g8];_.S_3=new _.W4("SNACKBAR_CONTROLLER_TOKEN");_.sOi=new _.W4("SHOULD_SHOW_PIVOT_BAR_TOKEN");var Fk=function(H){this.controller=H};
_.G(Fk,WB);Fk.prototype.resolveCommand=function(H){var C=this,S;return _.z(function(w){S=_.e(H,Pod);if(!S)return w.return();var A=C.controller;A.closeSnackbarFn&&A.closeSnackbarFn();_.oT(w)})};
Fk[F0]=[_.S_3];var ZE=function(H,C){this.controller=H;this.sheetController=C};
_.G(ZE,WB);ZE.prototype.resolveCommand=function(H,C){var S=this,w,A,J,c,Y,M;return _.z(function(m){w=_.e(H,pPb);if(!w)return m.return();c=K1o(S.sheetController,(A=C)==null?void 0:(J=A.form)==null?void 0:J.element);Y=_.e(w.content,CQV);if(!Y)return m.return();var W=S.controller,y=Y,N=(M=w.animationStyle)!=null?M:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(W.showSnackbarFn)W.showSnackbarFn({snackbarViewModel:y,animationStyle:N,durationMs:w.durationSeconds*1E3,target:c});else throw Error("uj");_.oT(m)})};
ZE[F0]=[_.S_3,_.wz];var ck=function(){};
_.G(ck,WB);ck.prototype.resolveCommand=function(H){var C;return _.z(function(S){C=_.e(H,gVd);if(!C||typeof C.key!=="string"||typeof C.value!=="string")return S.return();window.localStorage.setItem(C.key,C.value);_.oT(S)})};var Yh=function(H){this.store=H};
_.G(Yh,WB);Yh.prototype.resolveCommand=function(H){var C=this,S;return _.z(function(w){S=_.e(H,uaZ);if(!S||!S.stepId||!S.token)return w.return();C.store.dispatch(vdd({stepId:S.stepId,token:S.token,isSelected:!1}));_.oT(w)})};
Yh[F0]=[xN];var z3=function(H,C,S){this.innertubeTransportService=H;this.store=C;this.JSC$17586_screenManager=S};
_.G(z3,WB);
z3.prototype.resolveCommand=function(H){var C=this,S,w,A,J,c,Y,M,m,W,y,N,b,u,O,d,p,k,R,L,t,g,ii,FW,cZ;return _.z(function(eZ){S=_.e(H,ncb);if(!S||(w=S.stepIds)==null||!w.length)return eZ.return();A=C.store.getState().talkToRecs;J=[];c=[];Y=_.Z(S.stepIds);for(M=Y.next();!M.done;M=Y.next())for(m=M.value,W=void 0,(y=(W=A.stepStates[m])==null?void 0:W.userQuery)&&c.push({userQuery:y.userQuery,userQueryToken:y.token}),b=N=void 0,u=(b=(N=A.stepStates[m])==null?void 0:N.selectionStates)!=null?b:{},O=_.Z(Object.entries(u)),
d=O.next();!d.done;d=O.next())p=d.value,k=_.Z(p),R=k.next().value,L=k.next().value,t=R,g=L,g.isSelected&&J.push(t);ii={selectedChipTokens:J,userQueries:c,submittedStepIds:S.stepIds};FW={browseTalk2recsFormData:ii};S.browseEndpoint?(cZ=H,_.rC(cZ,_.vU,S.browseEndpoint)):S.command&&(cZ=S.command);return cZ?eZ.yield(_.ir(C.innertubeTransportService,cZ,{formData:FW,disableCache:!0}).then(function(ND){(ND==null?0:ND.trackingParams)&&C.JSC$17586_screenManager.graftServerVe(ND==null?void 0:ND.trackingParams)}),
0):eZ.return()})};
z3[F0]=[_.Lf,xN,_.Av];var MF=function(H){this.store=H};
_.G(MF,WB);MF.prototype.resolveCommand=function(H){var C=this,S;return _.z(function(w){S=_.e(H,eED);if(!S||!S.stepId||!S.token)return w.return();C.store.dispatch(vdd({stepId:S.stepId,token:S.token,isSelected:!0}));_.oT(w)})};
MF[F0]=[xN];var qF=function(H){this.store=H};
_.G(qF,WB);qF.prototype.resolveCommand=function(H,C){var S=this,w,A,J,c,Y;return _.z(function(M){w=_.e(H,rSd);if(!w||!w.stepId||!w.userQueryToken)return M.return();Y=(c=(A=C)==null?void 0:(J=A.form)==null?void 0:J.userQuery)!=null?c:"";S.store.dispatch(_.Md({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:w.stepId,userQueryToken:w.userQueryToken,userQuery:Y}}));_.oT(M)})};
qF[F0]=[xN];_.jO9=new _.W4("TIMELY_ACTIONS_CONTROLLER_TOKEN");var T3=function(H){this.controller=H};
_.G(T3,WB);T3.prototype.resolveCommand=function(H){var C=this,S,w,A,J;return _.z(function(c){S=_.e(H,aCb);if(!S)return c.return();w=S;A=w.id;J=w.isVisible;if(A===void 0||J===void 0)return c.return();var Y;(Y=C.controller.timelyActionsMap.get(A))==null||Y(A,J);_.oT(c)})};
T3[F0]=[_.jO9];var w39=function(){this.timelyActionsMap=new Map};var mX=function(H){this.JSC$17612_commandHandler=H};
_.G(mX,WB);mX.prototype.resolveCommand=function(H){var C=this,S,w,A,J,c;return _.z(function(Y){S=_.e(H,_.D6);if(!S)return Y.return();J=(w=S.item)==null?void 0:(A=w.notificationTextRenderer)==null?void 0:A.successResponseText;if(!J)return Y.return();c=_.FG(J);C.JSC$17612_commandHandler.resolveCommand(c);_.oT(Y)})};
mX[F0]=[_.ZQ];var Wk=function(H,C){this.innertubeTransportService=H;this.JSC$17617_playerApiPromise=C};
_.G(Wk,WB);
Wk.prototype.resolveCommand=function(H){var C=this,S,w,A,J,c,Y,M,m,W;return _.z(function(y){if(y.nextAddress==1)return y.yield(C.JSC$17617_playerApiPromise,2);S=y.yieldResult;w=S.getOption("captions","track");A=Object.assign({},_.e(H,_.T5b));(c=(J=S.getVideoData())==null?void 0:J.video_id)?A.externalVideoId=c:_.Ug(Error("Mi"));if((Y=w)==null?0:Y.languageCode)A.languageCode=w.languageCode;if((M=w)==null?0:M.kind)A.kind=w.kind;if((m=w)==null?0:m.name)A.name=w.name;W=Object.assign({},H,{getTranscriptEndpoint:A});return y.yield(_.ir(C.innertubeTransportService,
W),0)})};
Wk[F0]=[_.Lf,_.qp];var yJ=function(){};
_.G(yJ,WB);yJ.prototype.resolveCommand=function(H){var C,S,w,A,J,c,Y,M;return _.z(function(m){C=_.e(H,sSn);if((S=C)==null||!S.paramKeyValuePairs)return m.return();w=window.location.href;A=_.Z(C.paramKeyValuePairs);for(J=A.next();!J.done;J=A.next())c=J.value,c.key&&c.value&&(Y={},w=_.HA(w,(Y[c.key]=c.value,Y)));M=_.JA().resolve(_.g9);_.LT(M,w);_.oT(m)})};var NF=function(H,C){this.JSC$17624_commandHandler=H;this.innertubeTransportService=C};
_.G(NF,WB);
NF.prototype.resolveCommand=function(H,C){var S=this,w,A,J,c,Y,M,m,W,y,N,b,u,O,d,p,k,R;return _.z(function(L){switch(L.nextAddress){case 1:return(J=(w=C)==null?void 0:(A=w.form)==null?void 0:A.element)&&_.th(J),c=_.VN().get("hl"),Y="",_.en(L,2),L.yield(FIw(c),4);case 4:Y=L.yieldResult;_.xB(L,3);break;case 2:return _.Vx(L),J&&_.LN(J),_.nC(Error("Oi"),"ERROR"),L.return();case 3:M=_.e(H,orU);if(!M)return J&&_.LN(J),L.return();(y=(m=M.commerceActionConfig)==null?void 0:(W=m.commandLifeCycleConfig)==null?
void 0:W.onStartCommand)&&S.JSC$17624_commandHandler.resolveCommand(y);return L.yield(_.ir(S.innertubeTransportService,H,{client_data:{paymentsClientToken:{token:Y}}}),5);case 5:(N=L.yieldResult)?(J&&_.LN(J),((d=N)==null?0:d.command)&&S.JSC$17624_commandHandler.resolveCommand(N.command),(R=(p=M.commerceActionConfig)==null?void 0:(k=p.commandLifeCycleConfig)==null?void 0:k.onSuccessCommand)&&S.JSC$17624_commandHandler.resolveCommand(R)):(J&&_.LN(J),_.nC(Error("Pi")),(O=(b=M.commerceActionConfig)==
null?void 0:(u=b.commandLifeCycleConfig)==null?void 0:u.onFailureCommand)&&S.JSC$17624_commandHandler.resolveCommand(O)),_.oT(L)}})};
NF[F0]=[_.ZQ,_.Lf];var b_=function(H,C,S){this.store=H;this.JSC$17640_commandHandler=C;this.innertubeTransportService=S};
_.G(b_,WB);
b_.prototype.resolveCommand=function(H,C){var S=this,w,A,J,c,Y,M,m,W,y;return _.z(function(N){w=_.e(H,O4V);A=w.googlePaymentPayload;w.onStartCommand&&S.JSC$17640_commandHandler.resolveCommand(w.onStartCommand);J=A.encryptedPurchaseParams;c=A.ypcLogWalletAnalyticDataEndpoint;Y=w.serializedTransactionFlowLoggingParams;M=A.serializedPaymentsClientParams;m=w.ypcCujContext;y=Y7D(S.innertubeTransportService,(W=C)==null?void 0:W.form,J,c,Y,M,m);return N.return(y.then(function(b){Z2$(C==null?void 0:C.form,
!1);var u=S.store,O=S.JSC$17640_commandHandler,d=b.integratorData;d==null||d===""||b.error!=null?(String(b.error)==="-1"&&w.onDismissCommand?O.resolveCommand(w.onDismissCommand):String(b.error)!=="-1"&&w.onFailureCommand&&O.resolveCommand(w.onFailureCommand),String(b.error)!=="-1"&&String(b.error)!=="132"&&_.nC(Error("Qi"),"ERROR")):(w.googlePaymentEntityKey&&u.dispatch(_.O5("commerceAcquisitionClientPayloadEntity",w.googlePaymentEntityKey,{key:w.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:d,
fundsGuaranteeCallbackClientData:b.integratorClientCallbackData}}})),w.onSuccessCommand&&O.resolveCommand(w.onSuccessCommand));_.N3()},function(b){Z2$(C==null?void 0:C.form,!1);
_.nC(b,"ERROR");w.onFailureCommand&&S.JSC$17640_commandHandler.resolveCommand(w.onFailureCommand)}))})};
b_[F0]=[Fn,_.ZQ,_.Lf];var EG=function(H,C){this.JSC$17644_commandHandler=H;this.purchaseManager=C};
_.G(EG,WB);
EG.prototype.resolveCommand=function(H){var C=this,S,w,A,J,c,Y,M,m,W;return _.z(function(y){S=_.e(H,XmP);((w=S)==null?0:(A=w.commandLifeCycleConfig)==null?0:A.onStartCommand)&&C.JSC$17644_commandHandler.resolveCommand(S.commandLifeCycleConfig.onStartCommand);if(!((J=S)==null?0:(c=J.googlePaymentPurchaseManagerPayload)==null?0:c.securePayloadBytes))return _.nC(Error("Ri"),"ERROR"),y.return();Y=ao7(_.iY(S.googlePaymentPurchaseManagerPayload.securePayloadBytes));M=_.VN().get("hl");m=_.Cn();jVq(Y.serialize(),
M,function(N){m.resolve(N)},function(N){m.reject(N)},m.resolve);
W=m.promise;return y.return(W.then(function(N){if(N)if(N==null?0:N.errorCode){_.nC(Error("Si`"+N.errorCode),"ERROR");var b,u;((b=S)==null?0:(u=b.commandLifeCycleConfig)==null?0:u.onFailureCommand)&&C.JSC$17644_commandHandler.resolveCommand(S.commandLifeCycleConfig.onFailureCommand)}else if(N==null?0:N.isCancelled){var O,d;((O=S)==null?0:(d=O.commandLifeCycleConfig)==null?0:d.onCancelCommand)&&C.JSC$17644_commandHandler.resolveCommand(S.commandLifeCycleConfig.onCancelCommand)}else{var p,k;((p=S)==
null?0:(k=p.commandLifeCycleConfig)==null?0:k.onSuccessCommand)&&C.JSC$17644_commandHandler.resolveCommand(S.commandLifeCycleConfig.onSuccessCommand)}},function(N){_.nC(N,"ERROR");
var b,u;((b=S)==null?0:(u=b.commandLifeCycleConfig)==null?0:u.onFailureCommand)&&C.JSC$17644_commandHandler.resolveCommand(S.commandLifeCycleConfig.onFailureCommand)}))})};
EG[F0]=[_.ZQ,w7i];var A9j=function(H,C){this.JSC$17652_commandHandler=H;this.commandAllowlistOverride=C;var S;this.commandAllowlist=(S=this.commandAllowlistOverride)!=null?S:S4};
A9j.prototype.handleResponse=function(H,C,S){var w,A=C==null?void 0:(w=C.config)==null?void 0:w.command;if(!A||this.commandAllowlist.some(function(J){return!!_.e(A,J)})){C=void 0;
S!==void 0&&(C={form:{element:S}});H.onResponseReceivedCommand&&this.JSC$17652_commandHandler.resolveCommand(H.onResponseReceivedCommand,C);H.onResponseReceivedAction&&this.JSC$17652_commandHandler.resolveCommand(H.onResponseReceivedAction,C);H.onResponseReceivedEndpoint&&this.JSC$17652_commandHandler.resolveCommand(H.onResponseReceivedEndpoint,C);H.command&&this.JSC$17652_commandHandler.resolveCommand(H.command,C);if(H.onResponseReceivedCommands)for(S=_.Z(H.onResponseReceivedCommands),w=S.next();!w.done;w=
S.next())this.JSC$17652_commandHandler.resolveCommand(w.value,C);if(H.onResponseReceivedActions)for(S=_.Z(H.onResponseReceivedActions),w=S.next();!w.done;w=S.next())this.JSC$17652_commandHandler.resolveCommand(w.value,C);if(H.onResponseReceivedEndpoints)for(S=_.Z(H.onResponseReceivedEndpoints),w=S.next();!w.done;w=S.next())this.JSC$17652_commandHandler.resolveCommand(w.value,C);if(H.actions)for(H=_.Z(H.actions),S=H.next();!S.done;S=H.next())this.JSC$17652_commandHandler.resolveCommand(S.value,C)}};
A9j[F0]=[_.ZQ,_.AA(MP$)];var J9K=new _.W4("INNERTUBE_TOKEN_SERVICE");var FjO=new _.W4("SCHEDULER_TOKEN");var Zrj=function(H){this.scheduler=H;H={};this.tokenMap=(H.app={},H.user={},H)};
Zrj.prototype.handleResponse=function(H,C){if(!C)throw Error("Ti");var S;if(H=(S=H.responseContext)==null?void 0:S.innertubeTokenJar){if(H.appTokens){var w,A,J;S=(w=C.innerTubeRequest.context)==null?void 0:(A=w.request)==null?void 0:(J=A.innertubeTokenJar)==null?void 0:J.appTokens;c9i(this,H.appTokens,this.tokenMap.app,S)}if(H.userTokens){var c,Y,M;C=(c=C.innerTubeRequest.context)==null?void 0:(Y=c.request)==null?void 0:(M=Y.innertubeTokenJar)==null?void 0:M.userTokens;c9i(this,H.userTokens,this.tokenMap.user,
C)}}};
Zrj.prototype.processContext=function(H){H.request||(H.request={});var C=Object.keys(this.tokenMap.app).length,S=Object.keys(this.tokenMap.user).length;if(C||S)H.request.innertubeTokenJar={},C&&(H.request.innertubeTokenJar.appTokens=[].concat(_.k$(Object.values(this.tokenMap.app).flat()))),S&&(H.request.innertubeTokenJar.userTokens=[].concat(_.k$(Object.values(this.tokenMap.user).flat())))};
var c9i=function(H,C,S,w){C=_.Z(C);for(var A=C.next(),J={};!A.done;J={token$jscomp$139:void 0},A=C.next()){J.token$jscomp$139=A.value;if(J.token$jscomp$139.type===void 0)throw new _.X0("InnerTube token has no type",J.token$jscomp$139);if(J.token$jscomp$139.clearTokens)S[J.token$jscomp$139.type]=[];else if(J.token$jscomp$139.value!==void 0){S[J.token$jscomp$139.type]||(S[J.token$jscomp$139.type]=[]);if(w!==void 0&&w.length){A=_.Z(w);for(var c=A.next(),Y={};!c.done;Y={requestToken:void 0},c=A.next())Y.requestToken=
c.value,c=S[J.token$jscomp$139.type].findIndex(function(M){return function(m){return m===M.requestToken||(0,_.hb.equals)(m,M.requestToken)}}(Y)),c>-1&&S[J.token$jscomp$139.type].splice(c,1)}S[J.token$jscomp$139.type].push(J.token$jscomp$139);
J.token$jscomp$139.maxAgeSeconds&&Number(J.token$jscomp$139.maxAgeSeconds)>0&&H.scheduler.addLowPriorityJob(function(M){return function(){var m=S[M.token$jscomp$139.type].indexOf(M.token$jscomp$139);m>-1&&S[M.token$jscomp$139.type].splice(m,1)}}(J),Number(J.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.X0("InnerTube token has no value",J.token$jscomp$139);
}};
Zrj[F0]=[FjO];var Y_i=new _.W4("LOCAL_INNERTUBE_ROUTER_TOKEN"),ziO=new _.W4("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var e0=function(H){this.serviceMap=H};
e0.prototype.shouldPreferLocalResponse=function(H,C){return(H=Moi(this,H))?H.shouldPreferLocalResponse(C):!1};
e0.prototype.localInnertubeResponse=function(H,C){var S=this,w;return _.z(function(A){return(w=Moi(S,H))?A.return(w.localInnertubeResponse(C)):A.return(Promise.reject(Error("Ui")))})};
e0.prototype.canProvideFallbackResponse=function(H,C){return(H=Moi(this,H))?H.canProvideFallbackResponse(C):!1};
e0.prototype.localFallbackInnertubeResponse=function(H,C){var S=this,w;return _.z(function(A){return(w=Moi(S,H))?A.return(w.localFallbackInnertubeResponse(C)):A.return(Promise.reject(Error("Ui")))})};
var Moi=function(H,C){C=_.EE(C);return C?(H=H.serviceMap[C])?H:null:null};
e0[F0]=[ziO];var GX=function(){};
GX.prototype.shouldPreferLocalResponse=function(){return!1};
GX.prototype.localInnertubeResponse=function(){return _.z(function(H){return H.return(Promise.reject(Error("Vi")))})};
GX.prototype.canProvideFallbackResponse=function(){return!0};
GX.prototype.localFallbackInnertubeResponse=function(){var H,C,S;return _.z(function(w){H=eA("CLOSE_POPUP");C={openPopupAction:Myi()};S={actions:[H,C]};return w.return(S)})};var Md7=function(H,C){this.JSC$17702_upliftPromise=H;this.store=C};
_.F=Md7.prototype;_.F.shouldPreferLocalResponse=function(H){var C=H.videoId,S;if(S=C)S=f3$(this.store.getState().entities,H.videoId);return S&&vP7(this.store.getState().entities,C)?Tj0(this.store.getState().entities,H.playlistId):!1};
_.F.localInnertubeResponse=function(H){var C=this,S;return _.z(function(w){return(S=C.getPlayerResponse(H))?w.return(Promise.resolve(S)):w.return(Promise.reject(Error("Wi")))})};
_.F.canProvideFallbackResponse=function(H){return!!H.videoId};
_.F.localFallbackInnertubeResponse=function(H){var C=this,S;return _.z(function(w){if(w.nextAddress==1)return w.yield(C.JSC$17702_upliftPromise,2);S=C.getPlayerResponse(H);var A;S?A=w.return(Promise.resolve(S)):A=dB(C.store.getState().entities,H.videoId)?w.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.cF(_.fL("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:v3V()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
w.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.cF(_.fL("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:fOE()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return A})};
_.F.getPlayerResponse=function(H){return H$W(this.store.getState().entities,H.videoId)};var uz=function(H,C){this.localPlayerService=H;this.localWatchNextService=C};
uz.prototype.shouldPreferLocalResponse=function(H){var C=H.playerRequest;H=H.watchNextRequest;return!!(C&&this.localPlayerService.shouldPreferLocalResponse(C)&&H&&this.localWatchNextService.shouldPreferLocalResponse(H))};
uz.prototype.localInnertubeResponse=function(H){var C=this,S,w,A,J;return _.z(function(c){if(c.nextAddress==1){S=H.playerRequest;w=H.watchNextRequest;if(!S||!w)throw new _.X0("Missing streaming request",H);return c.yield(C.localPlayerService.localInnertubeResponse(S),2)}if(c.nextAddress!=3)return A=c.yieldResult,c.yield(C.localWatchNextService.localInnertubeResponse(w),3);J=c.yieldResult;return c.return({playerResponse:A,watchNextResponse:J})})};
uz.prototype.canProvideFallbackResponse=function(H){var C=H.playerRequest;H=H.watchNextRequest;return!!(C&&this.localPlayerService.canProvideFallbackResponse(C)&&H&&this.localWatchNextService.canProvideFallbackResponse(H))};
uz.prototype.localFallbackInnertubeResponse=function(H){var C=this,S,w,A,J;return _.z(function(c){if(c.nextAddress==1)return S=H.playerRequest,w=H.watchNextRequest,S&&w?c.yield(C.localPlayerService.localFallbackInnertubeResponse(S),2):c.return(Promise.reject(new _.X0("Missing streaming request",H)));if(c.nextAddress!=3)return A=c.yieldResult,c.yield(C.localWatchNextService.localFallbackInnertubeResponse(w),3);J=c.yieldResult;return c.return({playerResponse:A,watchNextResponse:J})})};var bz=function(H){this.JSC$17712_persistentStorePromiseAccessor=H};
bz.prototype.shouldPreferLocalResponse=function(){return!1};
bz.prototype.localInnertubeResponse=function(){return _.z(function(H){return H.return(Promise.reject(Error("Xi")))})};
bz.prototype.canProvideFallbackResponse=function(){return!0};
bz.prototype.localFallbackInnertubeResponse=function(){var H=this,C,S;return _.z(function(w){return w.nextAddress==1?w.yield(H.JSC$17712_persistentStorePromiseAccessor(),2):w.nextAddress!=3?(C=w.yieldResult)?w.yield(C.get("service:guide:fallback"),3):w.return(Promise.reject(Error("Yi"))):(S=w.yieldResult)&&_.AN(S)?w.return(maZ(_.AN(S))):w.return(Promise.reject(Error("Zi")))})};var fd=function(){};
fd.prototype.shouldPreferLocalResponse=function(){return!1};
fd.prototype.localInnertubeResponse=function(){return _.z(function(H){return H.return(Promise.reject(Error("$i")))})};
fd.prototype.canProvideFallbackResponse=function(){return!0};
fd.prototype.localFallbackInnertubeResponse=function(){var H,C,S;return _.z(function(w){H=eA("CLOSE_POPUP");C={openPopupAction:Myi()};S={actions:[H,C]};return w.return(S)})};var NI=function(){this.urlMap=q_t;this.fallbackCommand=_.gH};
NI.prototype.shouldPreferLocalResponse=function(H){return(H=H.url)?!!Tit(this,H):!1};
NI.prototype.localInnertubeResponse=function(H){var C=this,S;return _.z(function(w){return(S=H.url)?w.return(m9p(H,Tit(C,S))):w.return(Promise.reject(Error("aj")))})};
NI.prototype.canProvideFallbackResponse=function(){return!0};
NI.prototype.localFallbackInnertubeResponse=function(H){var C=this,S,w,A,J,c,Y,M;return _.z(function(m){S=H.url;if(!S)return m.return(m9p(H,C.fallbackCommand));if(w=Tit(C,S))return m.return(m9p(H,w));A=void 0;J=_.EE(S);J==="/watch"&&(c=_.Up(S,"v"))&&(M=(Y=_.Up(S,"list"))!=null?Y:void 0,A=_.Zy(c,M));A||(A=C.fallbackCommand);return m.return(m9p(H,A))})};
var Tit=function(H,C){if(C)return H.urlMap[_.x_(C)]},m9p=function(H,C){C&&H.parentTrackingParams&&(C.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:H.parentTrackingParams}},C.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:C})};var E6=function(H,C,S){this.JSC$17722_upliftPromise=H;this.store=C;this.JSC$17722_persistentStorePromiseAccessor=S};
E6.prototype.shouldPreferLocalResponse=function(){return!1};
E6.prototype.localInnertubeResponse=function(){return _.z(function(H){return H.return(Promise.reject(Error("bj")))})};
E6.prototype.canProvideFallbackResponse=function(){return!0};
E6.prototype.localFallbackInnertubeResponse=function(){var H=this;return _.z(function(C){return C.return(Wj3(H))})};
var Wj3=function(H){var C,S;return _.z(function(w){if(w.nextAddress==1)return w.yield(wR(H.JSC$17722_upliftPromise,H.store),2);C=w.yieldResult;S={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[q76(C)]}}}};return w.return(y9r(H,S))})},y9r=function(H,C){var S,w;
return _.z(function(A){if(A.nextAddress==1)return A.yield(H.JSC$17722_persistentStorePromiseAccessor(),2);if(A.nextAddress!=3)return S=A.yieldResult,A.yield(JN(S),3);w=A.yieldResult;return A.return({responseContext:{},contents:C,topbar:w})})};var Wf=function(H,C,S){this.JSC$17729_upliftPromise=H;this.store=C;this.JSC$17729_persistentStorePromiseAccessor=S};
Wf.prototype.shouldPreferLocalResponse=function(H){var C=H.videoId;return C&&f3$(this.store.getState().entities,C)&&vP7(this.store.getState().entities,C)?Tj0(this.store.getState().entities,H.playlistId):!1};
Wf.prototype.localInnertubeResponse=function(H){var C=this,S,w;return _.z(function(A){if(A.nextAddress==1)return(S=H.videoId)?A.yield(C.JSC$17729_upliftPromise,2):A.return(Promise.reject(Error("cj")));if(A.nextAddress!=3)return A.yield(Nij(C,H,S),3);w=A.yieldResult;return A.return(bri(C,w,S))})};
Wf.prototype.canProvideFallbackResponse=function(H){return H.videoId?!0:!1};
Wf.prototype.localFallbackInnertubeResponse=function(H){var C=this,S,w,A,J;return _.z(function(c){switch(c.nextAddress){case 1:return(S=H.videoId)?c.yield(C.JSC$17729_upliftPromise,2):c.return(Promise.reject(Error("cj")));case 2:return c.yield(Nij(C,H,S),3);case 3:w=c.yieldResult;if(dB(C.store.getState().entities,S)){c.jumpTo(4);break}return c.yield(wR(C.JSC$17729_upliftPromise,C.store),5);case 5:return A=c.yieldResult,c.return(EtO(w,A));case 4:return f3$(C.store.getState().entities,S)&&vP7(C.store.getState().entities,
S)?c.return(bri(C,w,S)):(J={title:_.cF(_.fL("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:v3V()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},c.return(EtO(w,J)))}})};
var Nij=function(H,C,S){var w,A,J,c,Y;return _.z(function(M){if(M.nextAddress==1)return w=C.playlistId,A=_.Zy(S,w),M.yield(H.JSC$17729_persistentStorePromiseAccessor(),2);if(M.nextAddress!=3)return J=M.yieldResult,M.yield(JN(J),3);c=M.yieldResult;Y={responseContext:{},currentVideoEndpoint:A,topbar:c};return M.return(Y)})},bri=function(H,C,S){if(H=dB(H.store.getState().entities,S)){var w;
S=H.videoEntity;var A,J={title:Y6(S.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.zn((w=S.localizedStrings)==null?void 0:w.viewCount),viewCount:_.zn((A=S.localizedStrings)==null?void 0:A.viewCount)}}};S.publishedTimestampMillis&&(J.dateText=_.zn(UbE(new Date(Number(S.publishedTimestampMillis)))));w={videoPrimaryInfoRenderer:J};A=H.videoEntity;H=H.channelEntity;H={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:Y6(_.fL("SHOW_MORE",void 0,"Show more")),
showLessText:Y6(_.fL("SHOW_LESS",void 0,"Show less")),description:A.formattedDescription,owner:{videoOwnerRenderer:{title:Y6(H.title),thumbnail:H.avatar}}}};C.contents={twoColumnWatchNextResults:{results:{results:{contents:[w,H]}}}}}return C},EtO=function(H,C){H.contents={singleColumnWatchNextResults:{results:{results:{contents:[q76(C)]}}}};
return H};var e9=function(H,C,S){this.JSC$17734_upliftPromise=H;this.store=C;this.JSC$17734_persistentStorePromiseAccessor=S};
e9.prototype.shouldPreferLocalResponse=function(){return!1};
e9.prototype.localInnertubeResponse=function(){return _.z(function(H){return H.return(Promise.reject(Error("dj")))})};
e9.prototype.canProvideFallbackResponse=function(){return!0};
e9.prototype.localFallbackInnertubeResponse=function(){var H=this,C,S,w,A;return _.z(function(J){switch(J.nextAddress){case 1:return J.yield(H.JSC$17734_persistentStorePromiseAccessor(),2);case 2:return C=J.yieldResult,J.yield(JN(C),3);case 3:return S=J.yieldResult,w={responseContext:{},topbar:S},J.yield(H.JSC$17734_upliftPromise,4);case 4:return J.yield(wR(H.JSC$17734_upliftPromise,H.store),5);case 5:return A=J.yieldResult,w.watchStatus={backgroundPromoRenderer:A},J.return(w)}})};_.eir=new _.W4("ENDPOINT_MAP");var uRi=function(){var H=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return H.sequenceMap}}},Nf_=function(H,C,S){var w,A=(w=C.config)==null?void 0:w.sequenceStrategy;
if(!A)return S();H.sequenceMap.has(A.sequenceKey)||H.sequenceMap.set(A.sequenceKey,[]);H=H.sequenceMap.get(A.sequenceKey);switch(A.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return GKr(H,C,S);case "REQUEST_SEQUENCE_TYPE_REPLACE":return fq_(H,C,S);default:throw new _.X0("Request could not be sequenced",C);}},GKr=function(H,C,S){var w,A,J;
return _.z(function(c){H.length>0?(A=H[H.length-1],w=A.responsePromise.then(function(){return S()})):w=S();
J={request:C,responsePromise:w};H.push(J);vtO(H,J);return c.return(J.responsePromise)})},fq_=function(H,C,S){S=S();
if(H.length>0)for(var w=_.Z(H),A=w.next();!A.done;A=w.next())A.value.responsePromise=S;var J={request:C,responsePromise:S};H.push(J);vtO(H,J);return Promise.resolve().then(function(){return H.indexOf(J)>0?J.responsePromise.then(function(c){return Object.assign({},c,{sequenceMetaData:{skipProcessing:!0}})}):J.responsePromise})},vtO=function(H,C){C.responsePromise.then(function(){var S=H.indexOf(C);
S>-1&&H.splice(S,1)})};var lqr=new _.W4("REQUEST_SEQUENCING");var u_=function(){};
_.G(u_,Db);u_.prototype.getApiPaths=function(){return[]};
u_.prototype.getExtension=function(H){return _.e(H,wC_)};
u_.prototype.JSC$13127_buildRequest=function(H,C){H.recaptchaToken=C.recaptchaToken};
u_.prototype.getApiUrl=function(){return"/das_captcha"};var G3=function(){};
_.G(G3,Db);G3.prototype.getApiPaths=function(){return lLd};
G3.prototype.getExtension=function(H){return _.e(H,PwY)};
G3.prototype.JSC$13127_buildRequest=function(H,C,S){S=S===void 0?{}:S;C.createBackstagePostParams&&(H.createBackstagePostParams=C.createBackstagePostParams);S.comment_text&&(H.commentText=S.comment_text);if(S.attached_video_id)H.videoAttachment={videoId:S.attached_video_id};else if(S.image_poll_options)H.pollAttachmentData={options:S.image_poll_options};else if(S.poll_options)H.pollAttachment={choices:S.poll_options};else if(S.quiz_options)H.quizAttachmentData={options:S.quiz_options};else if(S.image_blob_id)H.imageAttachment=
{encryptedBlobId:S.image_blob_id},S.source_video_id&&(H.imageAttachment.sourceExternalVideoId=S.source_video_id),S.image_preview_coordinates&&(H.imageAttachment.previewCoordinates=JSON.parse(S.image_preview_coordinates));else if(S.images_data)H.imagesAttachment={imagesData:S.images_data};else if(S.clip_external_video_id!==void 0||S.clip_offset_ms!==void 0||S.clip_duration_ms!==void 0){var w,A,J,c,Y;H.clipAttachment={externalVideoId:(J=S.clip_external_video_id)!=null?J:"",offsetMs:(c=(w=S.clip_offset_ms)==
null?void 0:w.toString())!=null?c:"",durationMs:(Y=(A=S.clip_duration_ms)==null?void 0:A.toString())!=null?Y:""}}else S.shared_post_id&&(H.sharedPostAttachment={postId:S.shared_post_id});S.tagged_video_id&&(H.postCreationData={taggedVideoId:S.tagged_video_id});S.access_restrictions&&(typeof S.access_restrictions==="number"&&(C=S.access_restrictions,H.accessRestrictions={restriction:C!==1&&C===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof S.access_restrictions==="string"&&
(H.accessRestrictionsParams=S.access_restrictions));S.scheduled_publish_time_sec&&(H.scheduledPublishTimeSec=S.scheduled_publish_time_sec.toString())};var fA=function(){};
_.G(fA,Db);fA.prototype.getApiPaths=function(){return PU_};
fA.prototype.getExtension=function(H){return _.e(H,f3n)};
fA.prototype.JSC$13127_buildRequest=function(H,C,S){S=S===void 0?{}:S;C.decorateMessageParams&&(H.params=C.decorateMessageParams);S.text&&(H.text=S.text)};var vk=function(){};
_.G(vk,Db);vk.prototype.getApiPaths=function(){return Cqd};
vk.prototype.getExtension=function(H){return _.e(H,$R_)};
vk.prototype.JSC$13127_buildRequest=function(H,C,S){S=S===void 0?{}:S;S.video_id&&(H.videoId=S.video_id)};var l_=function(){};
_.G(l_,Db);l_.prototype.getApiPaths=function(){return AT7};
l_.prototype.getExtension=function(H){return _.e(H,_.eR)};
l_.prototype.JSC$13127_buildRequest=function(H,C,S){S.suggestions_query&&(H.input=S.suggestions_query)};var VJ=function(){};
_.G(VJ,Db);VJ.prototype.getApiPaths=function(){return nmd};
VJ.prototype.getExtension=function(H){return _.e(H,pCd)};
VJ.prototype.JSC$13127_buildRequest=function(H,C,S){S.comment_text!==void 0&&(H.commentText=S.comment_text);S.scheduled_publish_time_sec&&(H.scheduledPublishTimeSec=S.scheduled_publish_time_sec.toString());H.updateBackstagePostParams=C.updateBackstagePostParams};var og=function(){};
_.G(og,Db);og.prototype.getApiPaths=function(){return xQ};
og.prototype.getExtension=function(H){return _.e(H,_.UU)};
og.prototype.JSC$13127_buildRequest=function(H,C,S){S.formData&&(H.formData=S.formData);C.token?H.continuation=C.token:C.continuationTokenKey&&(S=_.AG().getState(),C=_.Ea(S.entities,"continuationTokenEntity",C.continuationTokenKey))&&(H.continuation=String(C.continuationToken))};
var Voj=function(){};
_.G(Voj,Db);_.F=Voj.prototype;_.F.getApiPaths=function(){return xQ};
_.F.getExtension=function(H){return _.e(H,_.vU)};
_.F.isNavigationCommand=function(){return!0};
_.F.JSC$13134_getStoreKey=function(H){if((H=this.getExtension(H))&&H.browseId){var C={browseId:H.browseId};H.browseEndpointContextSupportedConfigs&&(C.browseEndpointContextSupportedConfigs=JSON.stringify(H.browseEndpointContextSupportedConfigs));H.params&&(C.params=H.params);H.query&&(C.query=H.query);return _.SR("browse",C)}};
_.F.JSC$13127_buildRequest=function(H,C,S){C.browseId&&(H.browseId=C.browseId);C.params&&(H.params=C.params);C.query&&(H.query=C.query);S.formData?H.formData=S.formData:C.formData&&(H.formData=C.formData);C.browseId==="FEsubscriptions"&&_.VN().getFlag(155)&&(H.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");C.browseId==="SPaccount_playback"&&(S=_.VN(),H.formData||(H.formData={}),H.formData.accountSettingsFormData={flagCaptionsDefaultOff:S.getFlag(65),flagAutoCaptionsDefaultOn:S.getFlag(66),
flagDisableInlinePreview:S.getFlag(186),flagAudioDescriptionDefaultOn:S.getFlag(198)});if(C.browseId==="FEwhat_to_watch"){S=_.VN();var w=S.getFlag(196);S.getFlag(197)&&(H.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:w}}})}C.browseId==="FEwhat_to_watch"&&(C=_.VN().getFlag(186),H.inlineSettingStatus=C?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.F.getRequestConfig=function(H,C){C=C===void 0?{}:C;var S={};if(H=this.JSC$13134_getStoreKey(H,C))S.storeStrategy={storeKey:H,disableCache:C.disableCache};_.E("web_log_browse_ticks_ks")||(S.requestTick="br_s",S.responseTick="br_r");return S};var OG=function(){};
_.G(OG,Db);OG.prototype.getApiPaths=function(){return Eoi};
OG.prototype.getExtension=function(H){return _.e(H,zqn)};
OG.prototype.JSC$13127_buildRequest=function(H,C,S){H.legacyYoutubeChannelUsername=S.legacyYouTubeChannelUsername||"";H.legacyYoutubeChannelPassword=S.legacyYouTubeChannelPassword||""};var Xk=function(){};
_.G(Xk,Db);Xk.prototype.getApiPaths=function(){return VDW};
Xk.prototype.getExtension=function(H){return _.e(H,tQ_)};
Xk.prototype.JSC$13127_buildRequest=function(H,C,S){S.recaptcha_response_token&&(H.recaptchaResponseToken=S.recaptcha_response_token);S.channel_id&&(H.channelId=S.channel_id)};var QJ=function(){};
_.G(QJ,Db);QJ.prototype.getApiPaths=function(){return rTb};
QJ.prototype.getExtension=function(H){return _.e(H,aN7)};
QJ.prototype.JSC$13127_buildRequest=function(H,C,S){C.externalChannelId&&(H.externalChannelId=C.externalChannelId);S.handle&&(H.handleUpdate={handle:S.handle},C.handleEditSource&&(H.handleUpdate.handleEditSource=C.handleEditSource))};var df=function(){};
_.G(df,Db);df.prototype.getApiPaths=function(){return tDW};
df.prototype.getExtension=function(H){return _.e(H,Nad)};
df.prototype.JSC$13127_buildRequest=function(H,C,S){C.request&&(H.channelId=C.request.channelId);var w;if(S==null?0:(w=S.uploadDefaults)==null?0:w.emojiReactionSet)H.uploadDefaultsRequest||(H.uploadDefaultsRequest={}),H.uploadDefaultsRequest.emojiReactionSet=S.uploadDefaults.emojiReactionSet};var Pk=function(){};
_.G(Pk,Db);Pk.prototype.getApiPaths=function(){return UvM};
Pk.prototype.getExtension=function(H){return _.e(H,LaY)};
Pk.prototype.JSC$13127_buildRequest=function(H,C,S){C.externalChannelId&&(H.externalChannelId=C.externalChannelId);C.channelHandleEntityKey&&(H.channelHandleEntityKey=C.channelHandleEntityKey);C.handleEditSource&&(H.handleEditSource=C.handleEditSource);S.handle?H.handle=S.handle:S.name&&(H.name=S.name)};var $h=function(){};
_.G($h,Db);$h.prototype.getApiPaths=function(){return GxP};
$h.prototype.getExtension=function(H){return _.e(H,A$i)};
$h.prototype.JSC$13127_buildRequest=function(H,C){C.actions?H.actions=C.actions:C.action&&(H.actions=[C.action])};var pA=function(){};
_.G(pA,Db);pA.prototype.getApiPaths=function(){return fLW};
pA.prototype.getExtension=function(H){return _.e(H,_.UU)};
pA.prototype.JSC$13127_buildRequest=function(H,C){C.token&&(H.continuation=C.token)};var kh=function(){};
_.G(kh,Db);kh.prototype.getApiPaths=function(){return HJ7};
kh.prototype.getExtension=function(H){return _.e(H,_.UU)};
kh.prototype.JSC$13127_buildRequest=function(H,C){H.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";C.token&&(H.fetchCommentsParams={continuation:C.token})};var hz=function(){};
_.G(hz,Db);hz.prototype.getApiPaths=function(){return OTd};
hz.prototype.getExtension=function(H){return _.e(H,wP1)};
hz.prototype.JSC$13127_buildRequest=function(H,C,S){S=S===void 0?{}:S;C.createReplyParams&&(H.createReplyParams=C.createReplyParams);C.commentText&&(H.commentText=_.jt(C.commentText));S.comment_text&&(H.commentText=S.comment_text);S.image_blob_id&&(H.imageAttachment={encryptedBlobId:S.image_blob_id});S.botguard_response&&(H.botguardResponse=S.botguard_response)};
_.JJ.Object.defineProperties(hz.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var nA=function(){};
_.G(nA,Db);nA.prototype.getApiPaths=function(){return X_1};
nA.prototype.getExtension=function(H){return _.e(H,_.ji7)};
nA.prototype.JSC$13127_buildRequest=function(H,C,S){S=S===void 0?{}:S;C.createCommentParams&&(H.createCommentParams=C.createCommentParams);C.commentText&&(H.commentText=_.jt(C.commentText));C.videoPositionMention&&(H.videoPositionMention=C.videoPositionMention);C.sources&&(H.sources=C.sources);S.comment_text&&(H.commentText=S.comment_text);S.attached_video_id?H.videoAttachment={videoId:S.attached_video_id}:S.poll_options?H.pollAttachment={choices:S.poll_options}:S.image_blob_id?H.imageAttachment=
{encryptedBlobId:S.image_blob_id}:S.shared_post_id&&(H.sharedPostAttachment={postId:S.shared_post_id});S.access_restrictions&&typeof S.access_restrictions==="number"&&(C=S.access_restrictions,H.accessRestrictions={restriction:C!==1&&C===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});S.botguard_response&&(H.botguardResponse=S.botguard_response)};
_.JJ.Object.defineProperties(nA.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var rf=function(){};
_.G(rf,Db);rf.prototype.getApiPaths=function(){return Bz_};
rf.prototype.getExtension=function(H){return _.e(H,FNY)};
rf.prototype.JSC$13127_buildRequest=function(H,C,S){C.commentText&&(H.replyText=_.jt(C.commentText));S.comment_text&&(H.replyText=S.comment_text);H.updateReplyParams=C.updateReplyParams};
_.JJ.Object.defineProperties(rf.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Bk=function(){};
_.G(Bk,Db);Bk.prototype.getApiPaths=function(){return Dv_};
Bk.prototype.getExtension=function(H){return _.e(H,J$7)};
Bk.prototype.JSC$13127_buildRequest=function(H,C,S){C.commentText&&(H.commentText=_.jt(C.commentText));S.comment_text&&(H.commentText=S.comment_text);H.updateCommentParams=C.updateCommentParams};
_.JJ.Object.defineProperties(Bk.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var DE=function(){};
_.G(DE,Db);DE.prototype.getApiPaths=function(){return K$b};
DE.prototype.getExtension=function(H){return _.e(H,TaY)};
DE.prototype.JSC$13127_buildRequest=function(H,C){C.settings&&(H.settings=C.settings)};var KA=function(){};
_.G(KA,Db);KA.prototype.getApiPaths=function(){return L47};
KA.prototype.getExtension=function(H){return _.e(H,gcP)};
KA.prototype.JSC$13127_buildRequest=function(H,C){C.channelCreationToken&&(H.channelCreationToken=C.channelCreationToken);C.source&&(H.source=C.source)};var tz=function(){};
_.G(tz,Db);tz.prototype.getApiPaths=function(){return ooY};
tz.prototype.getExtension=function(H){return _.e(H,IN1)};
tz.prototype.JSC$13127_buildRequest=function(H,C,S){S=S===void 0?{}:S;if(S.name&&(S.given_name||S.family_name))H=new _.X0("channel creation cannot set both GAIA and YouTube names",C),_.nC(H);else{if(C.zeroStepChannelCreationParams){if(!S.comment_text){H=new _.X0("zero_step_create_comment_params but no zero_step_texts",C);_.nC(H);return}H.zeroStepChannelCreationParams=C.zeroStepChannelCreationParams;H.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(H.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
S.comment_text,S.botguard_response&&(H.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=S.botguard_response))}H.channelCreationToken=C.channelCreationToken;S.given_name&&(H.givenName=S.given_name);S.family_name&&(H.familyName=S.family_name);C.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(H.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(S.name||S.handle||S.avatar_url||S.encryptedBlobId||S.isNameChanged!==void 0||S.isHandleChanged!==void 0||S.isDefaultProfilePhoto!==
void 0||S.obakeImageSource)H.overrideChannelCreationParams={},S.name&&(H.overrideChannelCreationParams.name=S.name),S.handle&&(H.overrideChannelCreationParams.handle=S.handle),S.avatar_url&&(H.overrideChannelCreationParams.avatarUrl=S.avatar_url),S.encryptedBlobId&&(H.overrideChannelCreationParams.blobEncryptionId=S.encryptedBlobId),S.enableIdentityForAllChannelCreationDialog&&(S.encryptedBlobId?H.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
S.isDefaultProfilePhoto!==void 0&&(H.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=S.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),S.isNameChanged!==void 0&&(H.overrideChannelCreationParams.identityForAllChannelCreationNameTag=S.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),S.isHandleChanged!==
void 0&&(H.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=S.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),S.obakeImageSource&&(H.overrideChannelCreationParams.obakeImageSourceType=S.obakeImageSource))}};var LA=function(){};
_.G(LA,Db);LA.prototype.getApiPaths=function(H){return(H=this.getExtension(H))&&H.status==="DISLIKE"?hsn:H&&H.status==="INDIFFERENT"?uQd:Yud};
LA.prototype.getExtension=function(H){return _.e(H,_.DB)};
LA.prototype.JSC$13127_buildRequest=function(H,C){C.target&&(H.target=C.target);if(C=this.getParams(C))H.params=C};
LA.prototype.getParams=function(H){switch(H==null?void 0:H.status){case "DISLIKE":return H.dislikeParams;case "INDIFFERENT":return H.removeLikeParams;default:return H==null?void 0:H.likeParams}};var gf=function(){};
_.G(gf,Db);gf.prototype.getApiPaths=function(){return dvi};
gf.prototype.getExtension=function(H){return _.e(H,qei)};
gf.prototype.JSC$13127_buildRequest=function(H,C){C.settingItemId&&(H.settingItemId=C.settingItemId);C.stringValue!=null&&C.stringValue!==void 0?H.newValue={stringValue:C.stringValue}:C.intValue?H.newValue={intValue:C.intValue}:C.boolValue!==null&&C.boolValue!==void 0?H.newValue={boolValue:C.boolValue}:(H=new _.X0("Unknown value type for SetSettingEndpoint.",C),_.nC(H))};var UG=function(){};
_.G(UG,Db);UG.prototype.getApiPaths=function(){return pqP};
UG.prototype.getExtension=function(H){return _.e(H,XP_)||void 0};
UG.prototype.JSC$13127_buildRequest=function(H,C,S){S=S===void 0?{}:S;C.channelIds&&(H.channelIds=C.channelIds);C.siloName&&(H.siloName=C.siloName);C.params&&(H.params=C.params);S.botguardResponse&&(H.botguardResponse=S.botguardResponse);S.feature&&(H.clientFeature=S.feature)};
_.JJ.Object.defineProperties(UG.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Rg=function(){};
_.G(Rg,Db);Rg.prototype.getApiPaths=function(){return hod};
Rg.prototype.getExtension=function(H){return _.e(H,TQW)||void 0};
Rg.prototype.JSC$13127_buildRequest=function(H,C){C.channelIds&&(H.channelIds=C.channelIds);C.siloName&&(H.siloName=C.siloName);C.params&&(H.params=C.params)};
_.JJ.Object.defineProperties(Rg.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ig=function(H){this.shareClientParamsProvider=H};
_.G(Ig,Db);Ig.prototype.getApiPaths=function(){return baE};
Ig.prototype.getExtension=function(H){return _.e(H,DJn)||_.e(H,_.KyU)||_.e(H,BZd)};
Ig.prototype.JSC$13127_buildRequest=function(H,C){C.serializedShareEntity&&(H.serializedSharedEntity=C.serializedShareEntity);if(C.clientParamIdentifier){var S;if((S=this.shareClientParamsProvider)==null?0:S.clientParams.has(C.clientParamIdentifier)){S=this.shareClientParamsProvider;C=C.clientParamIdentifier;var w=S.clientParams.get(C);w&&S.clientParams.delete(C);H.clientParams=w}}};
Ig[F0]=[Pn1];var ag=function(){};
_.G(ag,Db);ag.prototype.getApiPaths=function(){return y1d};
ag.prototype.getExtension=function(H){return _.e(H,eq1)};
ag.prototype.JSC$13127_buildRequest=function(H,C){C.params&&(H.params=C.params)};var xh=function(){};
_.G(xh,Db);xh.prototype.getApiPaths=function(){return noU};
xh.prototype.getExtension=function(H){return _.e(H,N5V)};
xh.prototype.JSC$13127_buildRequest=function(H,C){C.dismissal&&(H.items=[C.dismissal])};
_.JJ.Object.defineProperties(xh.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Hs=function(){};
_.G(Hs,Db);Hs.prototype.getApiPaths=function(){return ZJi};
Hs.prototype.getExtension=function(H){return _.e(H,_.dR)||void 0};
Hs.prototype.JSC$13127_buildRequest=function(H,C,S){H.feedbackTokens=[];C.feedbackToken&&H.feedbackTokens.push(C.feedbackToken);if(C=C.cpn||S.cpn)H.feedbackContext={cpn:C};H.isFeedbackTokenUnencrypted=!!S.is_feedback_token_unencrypted;H.shouldMerge=!1;S.extra_feedback_tokens&&(H.shouldMerge=!0,H.feedbackTokens=H.feedbackTokens.concat(S.extra_feedback_tokens))};
_.JJ.Object.defineProperties(Hs.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var i8=function(){};
_.G(i8,Db);i8.prototype.getApiPaths=function(){return ZJi};
i8.prototype.getExtension=function(H){return _.e(H,_.eR)};
i8.prototype.JSC$13127_buildRequest=function(H,C,S){S.feedback_tokens&&(H.feedbackTokens=S.feedback_tokens,H.shouldMerge=!0)};
_.JJ.Object.defineProperties(i8.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Cb=function(){};
_.G(Cb,Db);Cb.prototype.getApiPaths=function(){return ZJi};
Cb.prototype.getExtension=function(H){return _.e(H,Grw)};
Cb.prototype.JSC$13127_buildRequest=function(H,C){C.undoToken&&(H.feedbackTokens=[C.undoToken]);C.isUndoTokenUnencrypted&&(H.isFeedbackTokenUnencrypted=C.isUndoTokenUnencrypted)};
_.JJ.Object.defineProperties(Cb.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var SN=function(){};
_.G(SN,Db);SN.prototype.getApiPaths=function(){return Ro1};
SN.prototype.getExtension=function(H){return _.e(H,mgd)};
SN.prototype.JSC$13127_buildRequest=function(H,C){C.nextEndpoint&&_.e(C.nextEndpoint,_.R8)?H.nextEndpoint={urlEndpoint:_.e(C.nextEndpoint,_.R8)}:C.nextEndpoint&&_.e(C.nextEndpoint,_.sX)&&(H.nextEndpoint={watchEndpoint:_.e(C.nextEndpoint,_.sX)});C.setRacy&&(H.setRacy=C.setRacy);C.setControvercy&&(H.setControvercy=C.setControvercy)};var sz=function(H){this.JSC$17915_storeWithEntities=H};
_.G(sz,Db);sz.prototype.getApiPaths=function(){return B9d};
sz.prototype.getExtension=function(H){return _.e(H,r7d)};
sz.prototype.JSC$13127_buildRequest=function(H,C){C.flowId&&(H.flowId=C.flowId);C.targetId&&(H.targetId=C.targetId);C.continuation&&(H.continuation=C.continuation);var S=C.flowStateEntityKey;if(C.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&S&&this.JSC$17915_storeWithEntities){var w;if(C=(w=this.JSC$17915_storeWithEntities.getState())==null?void 0:w.entities)if(w=_.Tn(S).entityType,w=_.Ea(C,w,S))H.flowState=w,H.flowStateEntityKey=S}};
_.JJ.Object.defineProperties(sz.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
sz[F0]=[Fn];var otr=function(){};
_.G(otr,Db);_.F=otr.prototype;_.F.getApiPaths=function(){return F$Y};
_.F.JSC$13134_getStoreKey=function(){return _.SR("guide")};
_.F.getRequestConfig=function(){var H=this.JSC$13134_getStoreKey(),C;H&&(C={storeStrategy:{storeKey:H}});return C};
_.F.isNavigationCommand=function(){return!0};
_.F.getExtension=function(H){return _.e(H,_.eR)};
_.F.JSC$13127_buildRequest=function(H){H.fetchLiveState=!0};var jN=function(){};
_.G(jN,Db);jN.prototype.getApiPaths=function(){return esb};
jN.prototype.getExtension=function(H){return _.e(H,Co_)};
jN.prototype.JSC$13127_buildRequest=function(){};var wk=function(){};
_.G(wk,Db);wk.prototype.getApiPaths=function(){return u$U};
wk.prototype.getExtension=function(H){return _.e(H,Se1)};
wk.prototype.JSC$13127_buildRequest=function(){};var AH=function(){};
_.G(AH,Db);AH.prototype.getApiPaths=function(){return W47};
AH.prototype.getExtension=function(H){return _.e(H,_.UU)};
AH.prototype.JSC$13127_buildRequest=function(H,C){C.token&&(H.continuation=C.token);var S,w;H==null||(S=H.context)==null||(w=S.user)==null||delete w.onBehalfOfUser};
AH.prototype.getRequestConfig=function(H){var C={},S;if(((S=this.getExtension(H))==null?void 0:S.sessionIndex)!==void 0){var w;C={authStrategy:{sessionIndex:(w=this.getExtension(H))==null?void 0:w.sessionIndex}}}return C};var JH=function(){};
_.G(JH,Db);JH.prototype.JSC$13127_getRequest=function(H){var C=this.getExtension(H),S=H="";if(C==null?0:C.popup)H="true";if(C==null?0:C.disableSignout)S="true";C={};return{input:"/getAccountSwitcherEndpoint",requestShell:CL("/getAccountSwitcherEndpoint","GET",(C["X-YouTube-Delegation-Context"]=_.rh("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),C["X-YouTube-Account-Switcher-Popup"]=H,C["X-YouTube-Account-Switcher-Disable-Signout"]=S,C)),innerTubeRequest:{}}};
JH.prototype.getApiPaths=function(){return[]};
JH.prototype.getExtension=function(H){return _.e(H,_.ZY0)};
JH.prototype.JSC$13127_buildRequest=function(){};var Fu=function(){};
_.G(Fu,Db);Fu.prototype.JSC$13127_getRequest=function(H){var C="/cross_account_channel_transfer";(H=this.getExtension(H))&&(C=$3i(C,{target_session:H.targetSessionIndex,source_rapt:H.sourceRapt,rapt:H.targetRapt}));return{input:C,requestShell:CL(C,"GET"),innerTubeRequest:{}}};
Fu.prototype.getApiPaths=function(){return[]};
Fu.prototype.getExtension=function(H){return _.e(H,Ywi)};
Fu.prototype.JSC$13127_buildRequest=function(){};var ZF=function(){};
_.G(ZF,Db);ZF.prototype.getApiPaths=function(){return D$U};
ZF.prototype.isNavigationCommand=function(){return!0};
ZF.prototype.getExtension=function(H){return _.e(H,_.eR)};
ZF.prototype.JSC$13127_buildRequest=function(H){var C=_.VN().get("gsml","");C&&(H.safetyModeLockerObfuscatedGaiaId=C);H.userInterfaceTheme=_.$F(!0);_.pf()?H.deviceTheme="DEVICE_THEME_SELECTED":_.CqW()?H.deviceTheme="DEVICE_THEME_SUPPORTED":H.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var cs=function(){};
_.G(cs,Db);cs.prototype.getApiPaths=function(){return W47};
cs.prototype.getExtension=function(H){return _.e(H,zwW)};
cs.prototype.JSC$13127_buildRequest=function(H,C){if(C&&C.requestType&&(H.requestType=C.requestType,C.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||C.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var S=C.nextUrl;S&&(_.kou(S)||j$(S))&&(H.nextNavendpoint={urlEndpoint:{url:S}})}C&&C.channelSwitcherQuery&&(H.channelSwitcherQuery=C.channelSwitcherQuery);C&&C.triggerChannelCreation&&(H.triggerChannelCreation=C.triggerChannelCreation);var w;if(C==null?0:(w=C.contentOwnerConfig)==
null?0:w.externalContentOwnerId)H.contentOwnerConfig=C.contentOwnerConfig;H.callCircumstance=C&&C.requestType&&C.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var A,J;C=H==null?void 0:(A=H.context)==null?void 0:(J=A.user)==null?void 0:J.onBehalfOfUser;if(C!==void 0){H.obfuscatedSelectedGaiaId=C;var c,Y;H==null||(c=H.context)==null||(Y=c.user)==null||delete Y.onBehalfOfUser}var M,m;if(A=H==null?void 0:(M=H.context)==null?void 0:(m=M.user)==null?
void 0:m.serializedDelegationContext)H.selectedSerializedDelegationContext=A};var Yw=function(){};
_.G(Yw,Db);Yw.prototype.getApiPaths=function(){return N9V};
Yw.prototype.getExtension=function(H){return _.e(H,tBU)};
Yw.prototype.JSC$13127_buildRequest=function(H,C){C.params&&(H.params=C.params)};var zi=function(){};
_.G(zi,Db);zi.prototype.getApiPaths=function(){return VwW};
zi.prototype.getExtension=function(H){return _.e(H,_.j47)};
zi.prototype.JSC$13127_buildRequest=function(H,C){if(C=C.createBroadcastRequest)H.useMasks=C.useMasks,H.broadcastType=C.broadcastType,H.broadcastSource=C.broadcastSource,H.broadcastMetadata=C.broadcastMetadata,H.broadcastMetadataMask=C.broadcastMetadataMask,H.videoMetadata=C.videoMetadata,H.videoMetadataMask=C.videoMetadataMask,H.liveChatSettingsUpdate=C.liveChatSettingsUpdate,H.liveChatSettingsUpdateMask=C.liveChatSettingsUpdateMask,H.cloneVideoId=C.cloneVideoId,H.cloneWithOverrides=C.cloneWithOverrides,
H.targetEntity=C.targetEntity,H.scheduledRedirectMetadata=C.scheduledRedirectMetadata};var Mo=function(){};
_.G(Mo,Db);Mo.prototype.getApiPaths=function(){return QI1};
Mo.prototype.getExtension=function(H){return _.e(H,IJ7)};
Mo.prototype.JSC$13127_buildRequest=function(H,C,S){S=S===void 0?{}:S;C.params&&(H.params=C.params);S.questionText&&(H.questionText=S.questionText);S.optionText&&S.optionText.length>0&&(H.optionText=S.optionText)};var qo=function(){};
_.G(qo,Db);qo.prototype.getApiPaths=function(){return $$M};
qo.prototype.getExtension=function(H){return _.e(H,UZV)};
qo.prototype.JSC$13127_buildRequest=function(H,C){C.params&&(H.params=C.params)};var Ti=function(){};
_.G(Ti,Db);Ti.prototype.getApiPaths=function(){return U$7};
Ti.prototype.getExtension=function(H){return _.e(H,K9U)};
Ti.prototype.JSC$13127_buildRequest=function(H,C){C.params&&(H.params=C.params)};var mt=function(){};
_.G(mt,Db);mt.prototype.getApiPaths=function(){return ILi};
mt.prototype.getExtension=function(H){return _.e(H,tv_)};
mt.prototype.JSC$13127_buildRequest=function(H,C,S){C.params&&(H.params=C.params);C.continuation&&(H.continuation=C.continuation);S.currentPlayerState&&S.currentPlayerState.playerOffsetMs&&(H.currentPlayerState={playerOffsetMs:S.currentPlayerState.playerOffsetMs.toString()})};var Ws=function(){};
_.G(Ws,Db);Ws.prototype.getApiPaths=function(){return aL1};
Ws.prototype.getExtension=function(H){return _.e(H,DZV)};
Ws.prototype.JSC$13127_buildRequest=function(H,C,S){C.params&&(H.params=C.params);S.continuation&&(H.continuation=S.continuation);"hidden"in S&&(H.webClientInfo={isDocumentHidden:S.hidden});S.isInvalidationTimeoutRequest&&(H.isInvalidationTimeoutRequest=S.isInvalidationTimeoutRequest);S.invalidationPayload&&(C=Be1(_.iY(w4(S.invalidationPayload))),H.invalidationPayloadLastPublishAtUsec=kv(C,2));S.reloadActionPanel&&(H.reloadActionPanel=S.reloadActionPanel);S.fullReload&&(H.fullReload=S.fullReload);
S.currentPlayerState&&(H.currentPlayerState=S.currentPlayerState)};var yR=function(){};
_.G(yR,Db);yR.prototype.getApiPaths=function(){return zo7};
yR.prototype.getExtension=function(H){return _.e(H,RJV)};
yR.prototype.JSC$13127_buildRequest=function(H,C){H.params=C.params};var No=function(){};
_.G(No,Db);No.prototype.getApiPaths=function(){return RsY};
No.prototype.getExtension=function(H){return _.e(H,Jdd)};
No.prototype.JSC$13127_buildRequest=function(H,C){C.params&&(H.params=C.params)};var b8=function(){};
_.G(b8,Db);b8.prototype.getApiPaths=function(){return x$7};
b8.prototype.getExtension=function(H){return _.e(H,Fkb)};
b8.prototype.JSC$13127_buildRequest=function(H,C){C.params&&(H.params=C.params)};var Ez=function(){};
_.G(Ez,Db);Ez.prototype.getApiPaths=function(){return MDb};
Ez.prototype.getExtension=function(H){return _.e(H,aJn)};
Ez.prototype.JSC$13127_buildRequest=function(H,C){C.params&&(H.params=C.params)};var eN=function(){};
_.G(eN,Db);eN.prototype.getApiPaths=function(){return TzU};
eN.prototype.getExtension=function(H){return _.e(H,xZb)};
eN.prototype.JSC$13127_buildRequest=function(H,C){C.params&&(H.params=C.params)};var Oz=function(){};
_.G(Oz,Db);Oz.prototype.getApiPaths=function(){return Gu7};
Oz.prototype.getExtension=function(H){return _.e(H,UJi)};
Oz.prototype.JSC$13127_buildRequest=function(H,C){C.params&&(H.params=C.params)};var Xu=function(){};
_.G(Xu,Db);Xu.prototype.getApiPaths=function(){return XqM};
Xu.prototype.getExtension=function(H){return _.e(H,_.HlV)};
Xu.prototype.JSC$13127_buildRequest=function(H,C,S){S=S===void 0?{}:S;C.params&&(H.params=C.params);S.client_message_id&&(H.clientMessageId=S.client_message_id);S.recaptcha_token&&(H.recaptchaToken=S.recaptcha_token);S.rich_message&&S.rich_message.text_segments?(C=S.rich_message.text_segments.map(function(w){var A={};w.text&&(A.text=w.text);w.emoji_id&&(A.emojiId=w.emoji_id);return A}),H.richMessage={textSegments:C}):S.message&&(H.message=S.message);
S.currentPlayerState&&(H.currentPlayerState=S.currentPlayerState)};var QR=function(){};
_.G(QR,Db);QR.prototype.getApiPaths=function(){return QNV};
QR.prototype.getExtension=function(H){return _.e(H,il_)};
QR.prototype.JSC$13127_buildRequest=function(H,C){C.params&&(H.params=C.params)};var dk=function(){};
_.G(dk,Db);dk.prototype.getApiPaths=function(){return kuY};
dk.prototype.getExtension=function(H){return _.e(H,SQW)};
dk.prototype.JSC$13127_buildRequest=function(H,C,S){C.isUserInitiated&&(H.isUserInitiated=C.isUserInitiated);C.initiationSource&&(H.initiationSource=C.initiationSource);S.locationInfo&&(H.context.client.locationInfo=S.locationInfo)};var Ps=function(){};
_.G(Ps,Db);Ps.prototype.getApiPaths=function(){return qub};
Ps.prototype.getExtension=function(H){return _.e(H,wJY)};
Ps.prototype.JSC$13127_buildRequest=function(H,C,S){C.metadataUpdateRequest&&(C=C.metadataUpdateRequest,H.encryptedVideoId=C.encryptedVideoId,C.liveChat&&(C=C.liveChat,H.liveChat||(H.liveChat={}),C.performAsExternalChannelId&&(H.liveChat.performAsExternalChannelId=C.performAsExternalChannelId),C.source&&(H.liveChat.source=C.source)));var w;if(S==null?0:(w=S.liveChat)==null?0:w.liveChatSettings)H.liveChat||(H.liveChat={}),S=S.liveChat.liveChatSettings,H.liveChat.newLiveChatSettings=S,H.liveChat.newLiveChatSettingsMask||
(H.liveChat.newLiveChatSettingsMask={}),S.emojiReactionSet&&(H.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var $w=function(){};
_.G($w,Db);$w.prototype.getApiPaths=function(){return gmM};
$w.prototype.getExtension=function(H){return _.e(H,_.mbW)};
$w.prototype.JSC$13127_buildRequest=function(H,C,S){S.continuation?H.continuation=S.continuation:C.videoId&&(H.videoId=C.videoId);S.clientParams&&(H.clientParams=S.clientParams)};var pb=function(){};
_.G(pb,Db);pb.prototype.getApiPaths=function(){return HJ7};
pb.prototype.getExtension=function(H){return _.e(H,_.Ad)};
pb.prototype.JSC$13127_buildRequest=function(H,C){H.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";H.fetchCommentsParams={};C.videoId&&(H.fetchCommentsParams.encryptedVideoId=C.videoId);C.postId&&(H.fetchCommentsParams.postId=C.postId);C.externalChannelId&&(H.fetchCommentsParams.externalChannelId=C.externalChannelId);C.linkedCommentId&&(H.fetchCommentsParams.linkedCommentId=C.linkedCommentId);(0,_.hb.isEmpty)(H.fetchCommentsParams)&&delete H.fetchCommentsParams};var kw=function(){};
_.G(kw,Db);kw.prototype.getApiPaths=function(){return xQ};
kw.prototype.JSC$13127_buildRequest=function(H){H.browseId="FEnotifications_inbox"};
kw.prototype.getExtension=function(H){return _.e(H,_.eR)};var hH=function(){};
_.G(hH,Db);hH.prototype.getApiPaths=function(){return HJ7};
hH.prototype.JSC$13127_buildRequest=function(H,C){C.signal==="GET_NOTIFICATIONS_MENU"&&(H.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");C.ctoken&&(H.ctoken=C.ctoken)};
var Orp=function(){};
_.G(Orp,hH);Orp.prototype.getExtension=function(H){return _.e(H,_.eR)};
var X3j=function(){};
_.G(X3j,hH);X3j.prototype.getExtension=function(H){return _.e(H,Mii)};var nb=function(){};
_.G(nb,Db);nb.prototype.getApiPaths=function(){return wqY};
nb.prototype.getExtension=function(H){return _.e(H,_.eR)};
nb.prototype.JSC$13127_buildRequest=function(){};var rk=function(){};
_.G(rk,Db);rk.prototype.getApiPaths=function(){return mvb};
rk.prototype.getExtension=function(H){return _.e(H,Ye_)||void 0};
rk.prototype.JSC$13127_buildRequest=function(H,C){C.params&&(H.params=C.params);C.secondaryParams&&(H.secondaryParams=C.secondaryParams)};var Bs=function(){};
_.G(Bs,Db);Bs.prototype.getApiPaths=function(){return W$b};
Bs.prototype.getExtension=function(H){return _.e(H,Ly_)};
Bs.prototype.JSC$13127_buildRequest=function(H,C){C.undo&&(H.undo=C.undo);C.serializedOptOut&&(H.serializedOptOut=C.serializedOptOut);C.serializedRecordInteractionsRequest&&(H.serializedRecordInteractionsRequest=C.serializedRecordInteractionsRequest)};var DF=function(){};
_.G(DF,Db);DF.prototype.getApiPaths=function(){return bJb};
DF.prototype.getExtension=function(H){return _.e(H,gHP)};
DF.prototype.JSC$13127_buildRequest=function(H,C){C.serializedInteractionsRequest&&(H.serializedRecordNotificationInteractionsRequest=C.serializedInteractionsRequest)};var Kb=function(){};
_.G(Kb,Db);Kb.prototype.getApiPaths=function(){return EG0};
Kb.prototype.getExtension=function(H){return _.e(H,WZp)};
Kb.prototype.JSC$13127_buildRequest=function(H,C,S){C=C===void 0?{}:C;S=S===void 0?{}:S;C.videoId?H.videoId=C.videoId:C.playlistId&&(H.playlistId=C.playlistId);var w,A=(w=C.offlineWebClientEligibility)!=null?w:S.offlineWebClientEligibility;A&&(H.offlineWebClientEligibility=A);var J;if(w=(J=C.preferredFormatType)!=null?J:S.preferredFormatType)H.preferredFormatType=w;var c;if(J=(c=C.lastOfflineQualitySettingsSavedMs)!=null?c:S.lastOfflineQualitySettingsSavedMs)H.lastOfflineQualitySettingsSavedMs=J;
C.params&&(H.params=C.params)};var tH=function(){};
_.G(tH,Db);tH.prototype.getApiPaths=function(){return fO};
tH.prototype.getExtension=function(H){return _.e(H,_.UU)};
tH.prototype.JSC$13127_buildRequest=function(H,C,S){S=S===void 0?{}:S;C.token&&(H.continuation=C.token);S.formData&&(H.formData=S.formData)};var Lb=function(){};
_.G(Lb,Db);Lb.prototype.getApiPaths=function(){return fO};
Lb.prototype.getExtension=function(H){return _.e(H,Ho1)};
Lb.prototype.JSC$13127_buildRequest=function(H,C,S){S=S===void 0?{}:S;H.continuation=S.continuation};var gk=function(){};
_.G(gk,Db);gk.prototype.getApiPaths=function(){return fO};
gk.prototype.getExtension=function(H){return _.e(H,_.Qn)};
gk.prototype.JSC$13127_buildRequest=function(H,C){var S,w=C.panelIdentifier||((S=C.identifier)==null?void 0:S.tag);w&&(H.panelId=w);var A;if((A=C.globalConfiguration)==null?0:A.params){var J;H.params=(J=C.globalConfiguration)==null?void 0:J.params}};
_.JJ.Object.defineProperties(gk.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Uz=function(){};
_.G(Uz,Db);Uz.prototype.getApiPaths=function(){return fO};
Uz.prototype.getExtension=function(H){return _.e(H,$b7)};
Uz.prototype.JSC$13127_buildRequest=function(H,C){C.panelLoadingStrategy&&b2V(H,C.panelLoadingStrategy)};var R1=function(){};
_.G(R1,Db);R1.prototype.getApiPaths=function(){return fO};
R1.prototype.getExtension=function(H){return _.e(H,jyd)};
R1.prototype.JSC$13127_buildRequest=function(H,C){C.loadingStrategy&&b2V(H,C.loadingStrategy)};var I1=function(){};
_.G(I1,Db);I1.prototype.getApiPaths=function(){return fO};
I1.prototype.getExtension=function(H){return _.e(H,_.X1)};
I1.prototype.JSC$13127_buildRequest=function(H,C){C.panelLoadingStrategy&&b2V(H,C.panelLoadingStrategy)};var a1=function(){};
_.G(a1,Db);a1.prototype.getApiPaths=function(){return fO};
a1.prototype.getExtension=function(H){return _.e(H,wgW)};
a1.prototype.JSC$13127_buildRequest=function(H,C){var S,w=(S=C.contentSourcePanelIdentifier)==null?void 0:S.tag;w&&(H.panelId=w);var A;if((A=C.globalConfiguration)==null?0:A.params){var J;H.params=(J=C.globalConfiguration)==null?void 0:J.params}};var xw=function(){};
_.G(xw,Db);xw.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
xw.prototype.getExtension=function(H){return _.e(H,Ad7)};
xw.prototype.JSC$13127_buildRequest=function(H,C){C.params&&(H.params=C.params)};var H0=function(){};
_.G(H0,Db);H0.prototype.getApiPaths=function(){return L$M};
H0.prototype.getExtension=function(H){return _.e(H,ZO1)};
H0.prototype.JSC$13127_buildRequest=function(H,C){C.externalChannelId&&(H.externalChannelId=C.externalChannelId);C.superChatAction&&(H.superChatAction=C.superChatAction);C.superStickersAction&&(H.superStickersAction=C.superStickersAction)};var i$=function(){};
_.G(i$,Db);i$.prototype.getApiPaths=function(){return K4_};
i$.prototype.getExtension=function(H){return _.e(H,i$1)||_.e(H,Nq0)};
i$.prototype.JSC$13127_buildRequest=function(H,C){C.videoIds?H.videoIds=C.videoIds:C.videoId&&(H.videoIds=[C.videoId]);C.playlistId&&(H.playlistId=C.playlistId);C.params&&(H.params=C.params);H.excludeWatchLater=!1};var CY=function(){};
_.G(CY,Db);CY.prototype.getApiPaths=function(){return d$1};
CY.prototype.getExtension=function(H){return _.e(H,_.Mc)};
CY.prototype.JSC$13127_buildRequest=function(H,C,S){S.create_playlist_title?H.title=S.create_playlist_title:C.title&&(H.title=C.title);if(S.create_playlist_privacy_status&&typeof S.create_playlist_privacy_status==="number"){a:{var w=S.create_playlist_privacy_status;if(w!==0){if(w===1){w="PUBLIC";break a}if(w===2){w="UNLISTED";break a}}w="PRIVATE"}H.privacyStatus=w}else C.privacyStatus&&(H.privacyStatus=C.privacyStatus);S.create_playlist_description&&(H.description=S.create_playlist_description);C.videoIds&&
(H.videoIds=C.videoIds);C.params&&(H.params=C.params);C.sourcePlaylistId&&(H.sourcePlaylistId=C.sourcePlaylistId)};var SP=function(){};
_.G(SP,Db);SP.prototype.getApiPaths=function(){return p_U};
SP.prototype.getExtension=function(H){return _.e(H,Z$_)};
SP.prototype.JSC$13127_buildRequest=function(H,C){H.playlistId=C.playlistId};var sm=function(){};
_.G(sm,Db);sm.prototype.getApiPaths=function(){return iJV};
sm.prototype.getExtension=function(H){return _.e(H,nHY)};
sm.prototype.JSC$13127_buildRequest=function(H,C){C.playlistId&&(H.playlistId=C.playlistId);C.params&&(H.params=C.params)};var jP=function(){};
_.G(jP,Db);jP.prototype.getApiPaths=function(){return NzU};
jP.prototype.getExtension=function(H){return _.e(H,_.Jd)||void 0};
jP.prototype.JSC$13127_buildRequest=function(H,C){C.actions&&(H.actions=C.actions);C.params&&(H.params=C.params);C.playlistId&&(H.playlistId=C.playlistId)};var wq=function(){};
_.G(wq,Db);_.F=wq.prototype;_.F.getApiPaths=function(){return EmY};
_.F.getExtension=function(H){return _.e(H,_.Ox)};
_.F.JSC$13127_buildRequest=function(H,C){C.videoId&&(H.playerRequest={videoId:C.videoId},C.playerParams&&(H.playerRequest.params=C.playerParams),C.racyCheckOk&&(H.playerRequest.racyCheckOk=!!C.racyCheckOk),C.contentCheckOk&&(H.playerRequest.contentCheckOk=!!C.contentCheckOk));C.params&&(H.params=C.params);C.inputType&&(H.inputType=C.inputType);H.disablePlayerResponse=!0};
_.F.getRequestConfig=function(H){var C;(H=this.JSC$13134_getStoreKey(H))&&(C={storeStrategy:{storeKey:H}});_.E("web_log_reels_ticks")&&(C=C||{},C.requestTick="r_wrs",C.responseTick="r_wrr");return C};
_.F.JSC$13134_getStoreKey=function(H){H=this.getExtension(H);if(H!=null&&H.videoId){var C={videoId:H.videoId};H.params&&(C.params=H.params);return _.SR("reel_item_watch",C)}};var AR=function(){};
_.G(AR,Db);_.F=AR.prototype;_.F.getApiPaths=function(){return eo1};
_.F.getExtension=function(H){return _.e(H,_.Ox)};
_.F.JSC$13127_buildRequest=function(H,C,S){S=S===void 0?{}:S;H.sequenceParams=C.sequenceParams;var w;((w=S)==null?0:w.contentPlaybackContext)&&_.E("web_shorts_prefetch_service_enabled")&&(H.playbackContext={contentPlaybackContext:S.contentPlaybackContext})};
_.F.JSC$13134_getStoreKey=function(H){if(_.E("web_enable_delay_shorts_sequence_call")||_.E("shorts_controller_retrieve_seedless_sequence_v2"))if(H=this.getExtension(H),H==null?0:H.sequenceParams)return _.SR("reel_watch_sequence",{sequenceParams:H.sequenceParams})};
_.F.getRequestConfig=function(H){H=this.JSC$13134_getStoreKey(H);var C;H&&(C={storeStrategy:{storeKey:H}});C=C||{};C.requestTick="r_wsrs";C.responseTick="r_wsrr";C.processorTick="r_wsrp";return C};
var JR=function(){};
_.G(JR,Db);JR.prototype.getApiPaths=function(){return eo1};
JR.prototype.getExtension=function(H){return _.e(H,_.UU)};
JR.prototype.JSC$13127_buildRequest=function(H,C,S){S=S===void 0?{}:S;C.token&&(H.continuation=C.token);var w;((w=S)==null?0:w.contentPlaybackContext)&&_.E("web_shorts_prefetch_service_enabled")&&(H.playbackContext={contentPlaybackContext:S.contentPlaybackContext})};
JR.prototype.getRequestConfig=function(H){H=this.JSC$13134_getStoreKey(H);var C;H&&(C={storeStrategy:{storeKey:H}});C=C||{};C.requestTick="r_wsrs";C.responseTick="r_wsrr";C.processorTick="r_wsrp";return C};var FS=function(){};
_.G(FS,Db);FS.prototype.getApiPaths=function(){return r1U};
FS.prototype.getExtension=function(H){return _.e(H,_.nUn)};
FS.prototype.JSC$13127_buildRequest=function(H,C,S){S=S===void 0?{}:S;C.flagAction&&(H.action=C.flagAction);C.flagRequestType&&(H.flagRequestType=C.flagRequestType);C.additionalDetailCheckboxChecked&&(H.additionalDetailCheckboxChecked=C.additionalDetailCheckboxChecked);C.legalCheckboxChecked&&(H.legalCheckboxChecked=C.legalCheckboxChecked);C={};S.flag_issue_type!==void 0&&(C.issue=S.flag_issue_type);S.flag_affiliation!==void 0&&(C.affiliation=S.flag_affiliation);S.flag_full_name&&(C.fullName=S.flag_full_name);
Object.keys(C).length&&(H.legalReportDetails=C);if(S.flag_description||S.text)H.userComments=S.flag_description||S.text;C={};S.minutes!==void 0&&S.seconds!==void 0&&(C.minutes=S.minutes,C.seconds=S.seconds);S.vss_id&&(C.vssId=S.vss_id);Object.keys(C).length&&(H.videoReportDetails=C);C={};S.video_ids&&(C.videoIds=S.video_ids);S.impersonated_channel_url&&(C.impersonatedChannelUrl=S.impersonated_channel_url);Object.keys(C).length&&(H.channelAbuseReportDetails=C)};
_.JJ.Object.defineProperties(FS.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Z_=function(){};
_.G(Z_,Db);Z_.prototype.getApiPaths=function(){return god};
Z_.prototype.getExtension=function(H){return _.e(H,YSd)};
Z_.prototype.JSC$13127_buildRequest=function(H,C){C.blockedForKidsContent&&(H.blockedForKidsContent=C.blockedForKidsContent)};var c0=function(){};
_.G(c0,Db);c0.prototype.getApiPaths=function(){return fkn};
c0.prototype.getExtension=function(H){return _.e(H,yRw)};
c0.prototype.JSC$13127_buildRequest=function(H,C,S){H.params=C.params;S.impersonated_channel_url&&(H.impersonatedChannelUrl=S.impersonated_channel_url)};var Y0=function(){};
_.G(Y0,Db);Y0.prototype.getApiPaths=function(){return cTM};
Y0.prototype.getExtension=function(H){return _.e(H,_.zJd)};
Y0.prototype.JSC$13127_buildRequest=function(H,C){C.items&&(H.items=C.items);C.kidGaiaId&&(H.kidGaiaId=C.kidGaiaId)};var zW=function(){};
_.G(zW,Db);zW.prototype.getApiPaths=function(){return twW};
zW.prototype.getExtension=function(H){return _.e(H,_.a3n)};
zW.prototype.JSC$13127_buildRequest=function(H,C){C.params&&(H.params=C.params);C.targetId&&(H.targetId=C.targetId)};var MM=function(){};
_.G(MM,Db);MM.prototype.getApiPaths=function(){return omW};
MM.prototype.getExtension=function(H){return _.e(H,qN7)};
MM.prototype.JSC$13127_buildRequest=function(H,C){C.externalVideoId&&(H.externalVideoId=C.externalVideoId);C.query&&(H.query=C.query);C.sourceTimelines&&(H.sourceTimelines=C.sourceTimelines)};var qM=function(){};
_.G(qM,Db);qM.prototype.getApiPaths=function(){return OJM};
qM.prototype.getExtension=function(H){return _.e(H,_.UU)||void 0};
qM.prototype.JSC$13127_buildRequest=function(H,C){C.token&&(H.continuation=C.token)};
_.QOp=function(){};
_.G(_.QOp,Db);_.F=_.QOp.prototype;_.F.getApiPaths=function(){return OJM};
_.F.getExtension=function(H){return _.e(H,_.l4)||void 0};
_.F.isNavigationCommand=function(){return!0};
_.F.JSC$13134_getStoreKey=function(H,C){C=C===void 0?{}:C;if(!C.disableCache&&(H=this.getExtension(H))&&H.query)return C={query:H.query},H.params&&(C.params=H.params),_.SR("search",C)};
_.F.JSC$13127_buildRequest=function(H,C,S){C.query&&(H.query=C.query);C.params&&(H.params=C.params);if(!_.E("web_forward_suggest_stats_killswitch")){var w=_.e(C,Q4U);w&&(H.suggestStats=w)}var A;!_.E("kevlar_searchbox_stats_killswitch")&&((A=S.tempData)==null?0:A.gs_l)&&!_.e(C,Q4U)&&(H.webSearchboxStatsUrl="/search?oq="+(S.tempData.oq||"")+"&gs_l="+S.tempData.gs_l);var J;if((J=S.tempData)==null?0:J.entityMid)C=H.suggestionSearchParams||{},C.entityMid=S.tempData.entityMid,H.suggestionSearchParams=C;
if(_.E("enable_desktop_vdcbg_components")||_.E("enable_inline_muted_playback_on_web_search"))S=_.VN().getFlag(186),H.inlineSettingStatus=S?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON"};
_.F.getRequestConfig=function(H,C){C=C===void 0?{}:C;H=this.JSC$13134_getStoreKey(H,C);var S;H&&(S={storeStrategy:{storeKey:H}});_.E("web_log_search_ticks_ks")||(S=S||{},S.requestTick="sr_s",S.responseTick="sr_r");return S};var TW=function(){};
_.G(TW,Db);TW.prototype.getApiPaths=function(){return sN7};
TW.prototype.getExtension=function(H){return _.e(H,Ee_)};
TW.prototype.JSC$13127_buildRequest=function(H,C){C.serializedGetSharingProviderDataParams&&(H.serializedGetSharingProviderDataParams=C.serializedGetSharingProviderDataParams)};var mZ=function(){};
_.G(mZ,Db);mZ.prototype.getApiPaths=function(){return jNb};
mZ.prototype.getExtension=function(H){return _.e(H,PMb)};
mZ.prototype.JSC$13127_buildRequest=function(H,C){C.endpoint&&(H.endpoint=C.endpoint);C.action&&(H.action=C.action)};var W0=function(){};
_.G(W0,Db);W0.prototype.getApiPaths=function(){return kxd};
W0.prototype.getExtension=function(H){return _.e(H,c$P)};
W0.prototype.JSC$13127_buildRequest=function(H,C){H.videoId=C.videoId;C.scheduledRedirectMetadataSourceVideoId&&(H.scheduledRedirectMetadata={sourceVideoId:C.scheduledRedirectMetadataSourceVideoId})};var yT=function(){};
_.G(yT,Db);yT.prototype.getApiPaths=function(){return Pqd};
yT.prototype.getExtension=function(H){return _.e(H,_.YYU)};
yT.prototype.JSC$13127_buildRequest=function(H,C){H.params=C.params;H.correctionText=C.correctionText};var NM=function(){};
_.G(NM,Db);NM.prototype.getApiPaths=function(){return yuV};
NM.prototype.getExtension=function(H){return _.e(H,_.T5b)};
NM.prototype.JSC$13127_buildRequest=function(H,C){C.params&&(H.params=C.params);H.searchQuery=C.searchQuery;H.languageCode=C.languageCode;H.kind=C.kind;H.name=C.name;H.externalVideoId=C.externalVideoId};var b$=function(){};
_.G(b$,Db);b$.prototype.getApiPaths=function(){return akU};
b$.prototype.getExtension=function(H){return _.e(H,f$U)};
b$.prototype.JSC$13127_buildRequest=function(H,C){C.params&&(H.params=C.params)};var Em=function(H){this.JSC$18186_storeWithEntities=H};
_.G(Em,Db);Em.prototype.getApiPaths=function(){return vob};
Em.prototype.getExtension=function(H){return _.e(H,l$7)||_.e(H,orU)};
Em.prototype.JSC$13127_buildRequest=function(H,C,S){S.client_data&&(H.clientData=S.client_data);if(C.commerceActionConfig){var w=C.commerceActionConfig;C=w.actionId;w=w.commerceActionParams;C&&(H.actionId=C);w&&(H.commerceActionParams=w)}else{var A=C.actionId,J=C.commerceActionParams;S=C.entityKeys;A&&(H.actionId=A);J&&(H.commerceActionParams=J);var c;C=(w=this.JSC$18186_storeWithEntities)==null?void 0:(c=w.getState())==null?void 0:c.entities;if(S&&C){w=[];c=_.Z(S);for(S=c.next();!S.done;S=c.next())if(A=
S.value,S=_.Tn(A).entityType,A=_.Ea(C,S,A))J={},w.push((J[S]=A,J));H.entityMutationPayloads=w}}};
Em.prototype.getRequestConfig=function(H){var C,S=(C=_.e(H,l$7))==null?void 0:C.requestSequenceType;if(S&&H.clickTrackingParams&&S!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:H.clickTrackingParams,sequenceType:S}}};
Em[F0]=[Fn];var eP=function(){};
_.G(eP,Db);eP.prototype.getApiPaths=function(){return xv7};
eP.prototype.getExtension=function(H){return _.e(H,_.Uhb)};
eP.prototype.JSC$13127_buildRequest=function(H,C){C.feedbackData&&(H.feedbackData=C.feedbackData);C.params&&(H.itemParams=C.params)};
_.JJ.Object.defineProperties(eP.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var u$=function(){};
_.G(u$,Db);u$.prototype.getApiPaths=function(){return Ht7};
u$.prototype.getExtension=function(H){return _.e(H,Rv7)};
u$.prototype.JSC$13127_buildRequest=function(H,C,S){S.payments_payload&&(H.paymentsPayload=S.payments_payload);S.offer_params&&(H.offerParams=S.offer_params);C.transactionParams&&(H.transactionParams=C.transactionParams)};var GW=function(){};
_.G(GW,Db);GW.prototype.getApiPaths=function(){return itY};
GW.prototype.getExtension=function(H){return _.e(H,_.I$n)};
GW.prototype.JSC$13127_buildRequest=function(H,C,S){S=S===void 0?{}:S;C.buybucketParams&&(H.buybucketData={params:C.buybucketParams},C.stickerParams?H.buybucketData.stickerParams=C.stickerParams:(S.rich_chat_message?H.buybucketData.richChatMessage=S.rich_chat_message:S.chat_message_text&&(H.buybucketData.chatMessageText=S.chat_message_text),S.purchase_price_micros&&(H.buybucketData.purchasePriceMicros=S.purchase_price_micros.toString())));C.donationAmountMicros&&(H.tipAmountMicros=C.donationAmountMicros,
C.tipParams&&(H.tipParams=C.tipParams));C.offerParams&&(H.offerParams=C.offerParams);C.productData&&(H.productData=C.productData);C.transactionParams&&(H.transactionParams=C.transactionParams)};var fY=function(){};
_.G(fY,Db);fY.prototype.getApiPaths=function(){return Ce7};
fY.prototype.getExtension=function(H){return _.e(H,HT7)};
fY.prototype.JSC$13127_buildRequest=function(H,C){C.updateFopParams&&(H.updateFopParams=C.updateFopParams)};var v0=function(){};
_.G(v0,Db);v0.prototype.getApiPaths=function(){return Sr1};
v0.prototype.getExtension=function(H){return _.e(H,_.SA)};
v0.prototype.JSC$13127_buildRequest=function(H,C){C.couponCode&&(H.couponCode=C.couponCode);C.params&&(H.itemParams=C.params)};var l$=function(){};
_.G(l$,Db);l$.prototype.getApiPaths=function(){return sbU};
l$.prototype.getExtension=function(H){return _.e(H,_.V3b)};
l$.prototype.JSC$13127_buildRequest=function(H,C,S){S=S===void 0?{}:S;C.params&&(H.params=C.params);S.ctk&&(H.clientToken=S.ctk)};var VT=function(H){this.JSC$18221_storeWithEntities=H};
_.G(VT,Db);VT.prototype.getApiPaths=function(){return jbM};
VT.prototype.getExtension=function(H){return _.e(H,_.Wg)};
VT.prototype.JSC$13127_buildRequest=function(H,C,S){S.purchase_price_micros&&(H.productData={pdgData:{purchasePriceMicros:S.purchase_price_micros.toString()}},S.rich_chat_message&&(H.productData.pdgData.richChatMessage=S.rich_chat_message),S.currency_code&&(H.productData.pdgData.currencyCode=S.currency_code));C.transactionParams&&(H.transactionParams=C.transactionParams);C.clientLocationContext&&(H.clientLocationContext=C.clientLocationContext);S.payments_payload&&(H.paymentsPayload=S.payments_payload);
S.funds_guarantee_callback_client_data&&(H.fundsGuaranteeCallbackClientData=S.funds_guarantee_callback_client_data);var w,A;S=(w=this.JSC$18221_storeWithEntities)==null?void 0:(A=w.getState())==null?void 0:A.entities;if(C.entityKeys&&S){w=[];C=_.Z(C.entityKeys);for(A=C.next();!A.done;A=C.next()){var J=A.value;A=_.Tn(J).entityType;if(J=_.Ea(S,A,J)){var c={};w.push((c[A]=J,c))}}H.entityMutationPayloads=w}};
VT[F0]=[Fn];var oz=function(){};
_.G(oz,Db);oz.prototype.getApiPaths=function(){return wG1};
oz.prototype.getExtension=function(H){return _.e(H,a$i)};
oz.prototype.JSC$13127_buildRequest=function(H,C,S){S=S===void 0?{}:S;S.backend_analytics&&(H.serializedBackendAnalyticsEvent=S.backend_analytics);C.offerParams&&(H.offerParams=C.offerParams)};var Om=function(){};
_.G(Om,Db);Om.prototype.getApiPaths=function(){return Sr1};
Om.prototype.getExtension=function(H){return _.e(H,iZi)};
Om.prototype.JSC$13127_buildRequest=function(H,C){C.params&&(H.itemParams=C.params)};var XS=function(){};
_.G(XS,Db);XS.prototype.getApiPaths=function(){return AKU};
XS.prototype.getExtension=function(H){return _.e(H,_.PQU)};
XS.prototype.JSC$13127_buildRequest=function(H,C,S){S.resume_time_ms&&(H.resumeTimeMs=S.resume_time_ms);C.pauseParams&&(H.pauseParams=C.pauseParams)};var QT=function(){};
_.G(QT,Db);QT.prototype.getApiPaths=function(){return JKb};
QT.prototype.getExtension=function(H){return _.e(H,_.xhd)};
QT.prototype.JSC$13127_buildRequest=function(H,C,S){S=S===void 0?{}:S;S.c&&(H.redeemCode=S.c);S.rd&&(H.riskData=S.rd);S.ctk&&(H.clientToken=S.ctk)};var dq=function(){};
_.G(dq,Db);dq.prototype.getApiPaths=function(){return FSM};
dq.prototype.getExtension=function(H){return _.e(H,_.$hd)};
dq.prototype.JSC$13127_buildRequest=function(H,C){C.resumeParams&&(H.resumeParams=C.resumeParams)};var P0=function(H,C){this.clientName=H;this.defaultExpirationDelayMs=C};
P0.prototype.put=function(H,C){var S=this,w;return _.z(function(A){w=Object.assign({},C.data);w.key=H;w.clientName=S.clientName;w.expireTimestampMs===void 0&&(w.expireTimestampMs=(Math.round((0,_.Zt)())+S.defaultExpirationDelayMs).toString());return A.return(S.putInternal(H,w))})};
P0[F0]=[Js,r_O];var d9r=function(){P0.apply(this,arguments);this.JSC$18251_responseStore=new Map};
_.G(d9r,P0);_.F=d9r.prototype;_.F.get=function(H){var C=this;return _.z(function(S){return S.return(KT(C,H))})};
_.F.putInternal=function(H,C){var S=this,w,A,J;return _.z(function(c){w=S.defaultExpirationDelayMs;C.expireTimestampMs&&(w=Number(C.expireTimestampMs)-Math.round((0,_.Zt)()),A=_.YB("mweb_override_response_store_expiration_ms"),A>0&&A<w&&(w=A));J=setTimeout(function(){S.remove(H)},w);
S.JSC$18251_responseStore.set(H,{entryData:C,timer:J});_.oT(c)})};
_.F.remove=function(H){var C=this;return _.z(function(S){Ppq(C,H);_.oT(S)})};
_.F.removeAll=function(){var H=this;return _.z(function(C){H.JSC$18251_responseStore.forEach(function(S){clearTimeout(S.timer)});
H.JSC$18251_responseStore.clear();_.oT(C)})};
_.F.has=function(H){return!!this.JSC$18251_responseStore.get(H)};
_.F.getKeys=function(){return this.JSC$18251_responseStore.keys()};
var KT=function(H,C){if(H=H.JSC$18251_responseStore.get(C))return new _.DL(H.entryData)},Ppq=function(H,C){var S=H.JSC$18251_responseStore.get(C);
S&&(clearTimeout(S.timer),H.JSC$18251_responseStore.delete(C))};var E86;var GS$=function(H,C,S){P0.call(this,H,C);this.token=S};
_.G(GS$,P0);_.F=GS$.prototype;_.F.get=function(H){var C=this,S,w;return _.z(function(A){return A.nextAddress==1?A.yield(u46(C.token),2):A.nextAddress!=3?(S=A.yieldResult,A.yield(S.get("ResponseStore",[H,C.clientName]),3)):(w=A.yieldResult)?A.return(new _.DL(w)):A.return(void 0)})};
_.F.putInternal=function(H,C){var S=this,w;return _.z(function(A){if(A.nextAddress==1)return A.yield(u46(S.token),2);w=A.yieldResult;return A.yield(w.put("ResponseStore",C),0)})};
_.F.remove=function(H){var C=this,S;return _.z(function(w){if(w.nextAddress==1)return w.yield(u46(C.token),2);S=w.yieldResult;return w.return(S.delete("ResponseStore",[H,C.clientName]))})};
_.F.removeAll=function(){var H=this,C;return _.z(function(S){if(S.nextAddress==1)return S.yield(u46(H.token),2);C=S.yieldResult;return S.yield(gf7(C,IDBKeyRange.only(H.clientName)),0)})};
_.F.has=function(){throw Error("ej");};_.$0=new _.W4("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var $9O=function(H){var C;this.stateTagsData=(C=H.responseContext)==null?void 0:C.stateTags},p3i=function(H){var C;
return((C=H.stateTagsData)==null?void 0:C.stateTagsModified)||[]};var kKp;kKp=function(H){this.JSC$18264_responseStore=H};
_.gR=function(H,C,S){if(!_.E("state_tags_killswitch")){var w=new $9O(C);if(p3i(w).length>0){var A=H.JSC$18264_responseStore.getKeys();A=_.Z(A);for(var J=A.next();!J.done;J=A.next()){J=J.value;var c=KT(H.JSC$18264_responseStore,J);if(c){var Y=_.AN(c);a:{var M=void 0;c=p3i(w);Y=((M=(new $9O(Y)).stateTagsData)==null?void 0:M.relevantStateTags)||[];M=_.Z(Y);for(Y=M.next();!Y.done;Y=M.next())if(Y=Y.value,Y.stateTag!=null&&c.includes(Y.stateTag)&&Y.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){c=
!0;break a}c=!1}c&&Ppq(H.JSC$18264_responseStore,J)}}}}var m;w=(m=C.responseContext)==null?void 0:m.maxAgeSeconds;S&&w&&Number(w)>0&&(C=m_(C,w),H.JSC$18264_responseStore.put(S,new _.DL(C)))};
kKp.prototype.handleResponse=function(H,C){if(!C)throw Error("fj");var S,w;C=(S=C.config)==null?void 0:(w=S.storeStrategy)==null?void 0:w.storeKey;_.gR(this,H,C)};
kKp[F0]=[_.B_];_.QRp=new _.W4("STORE_RESPONSE_PROCESSOR_TOKEN");var hii=function(H){this.JSC$18267_responseStore=H};
hii.prototype.handleResponse=function(H,C){if(C.input.match(_.JG(eo1))){var S;if(H==null?0:(S=H.entries)==null?0:S.length)for(H=_.Z(H.entries),C=H.next();!C.done;C=H.next()){S=C.value.command;var w=void 0;C=(w=_.e(S,_.Ox))==null?void 0:w.unserializedPrefetchData;if(!S||!C)break;w=(new wq).JSC$13134_getStoreKey(S);var A=_.e(C,P31),J=void 0,c=void 0,Y=void 0,M=void 0,m=void 0,W=void 0,y=((J=A)==null?0:(c=J.responseContext)==null?0:c.maxAgeSeconds)&&Number((Y=A)==null?void 0:(M=Y.responseContext)==null?
void 0:M.maxAgeSeconds)>0?Number((m=A)==null?void 0:(W=m.responseContext)==null?void 0:W.maxAgeSeconds):600;w&&y>0&&(A=m_(A,y),this.JSC$18267_responseStore.put(w,new _.DL(A)));S=(new t$).JSC$13134_getStoreKey(S);C=_.e(C,ydd);M=Y=c=J=A=w=void 0;m=((w=C)==null?0:(A=w.responseContext)==null?0:A.maxAgeSeconds)&&Number((J=C)==null?void 0:(c=J.responseContext)==null?void 0:c.maxAgeSeconds)>0?Number((Y=C)==null?void 0:(M=Y.responseContext)==null?void 0:M.maxAgeSeconds):600;S&&m>0&&(C=m_(C,m),this.JSC$18267_responseStore.put(S,
new _.DL(C)))}}};
hii[F0]=[_.B_];var ntt=function(H,C){this.innertubeTransportService=H;this.JSC$18270_commandHandler=C};
ntt.prototype.submitForm=function(H,C,S,w,A){var J=this,c,Y,M,m,W,y;return _.z(function(N){if(N.nextAddress==1)return c={submitId:H,formData:C,submitBehavior:S,params:w},Y=_.JG($v1),N.yield(_.Mb(J.innertubeTransportService,c,Y,A),2);M=N.yieldResult;if(!M)return N.return(Promise.reject(new _.X0("Submit API returned an undefined response. Submit ID: "+H)));m=M;(y=(W=m)==null?void 0:W.onResponseReceived)&&J.JSC$18270_commandHandler.resolveCommand(y);return N.return(m)})};
ntt[F0]=[_.Lf,_.ZQ];var pY=function(){this.scheduler=_.oh()},r9j;
pY.prototype.pause=function(){throw Error("gj");};
pY.prototype.resume=function(){throw Error("gj");};
pY.prototype.queue=function(H){var C=this,S=_.Cn(),w=_.X2(this.scheduler,function(){try{var A;if(_.eU.instance)var J=_.eU.instance;else{var c=new _.X0("Error: Unexpected uninitialized CommandHandler.");_.nC(c);J=void 0}(A=J)==null||A.resolveCommand(H.command);S.resolve()}catch(Y){S.reject(Y)}});
S.promise.thenCatch(function(A){A instanceof _.KN&&C.scheduler.cancelJob(w)});
return S.promise};
pY.prototype.queueAll=function(H){var C=new Map;H=_.Z(H);for(var S=H.next();!S.done;S=H.next())S=S.value,C.set(S.id,this.queue(S));return C};var D9_=function(H,C){var S=this;this.taskModel=H;this.onTaskCancelledCallback=C;this.resolver=_.Cn();H=H.proto.prefetchConfig;if(!H)throw Error("hj");if(!H.prefetchAction)throw Error("ij");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(w){w instanceof _.KN&&(Bii(S,S.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),S.onTaskCancelledCallback(S.taskModel.id,S.jobId),S.tick("pcc"));
throw w;});
this.timerName=this.taskModel.id;_.BH(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
D9_.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 Bii=function(H,C){_.nL({prefetchInfo:{cancellationReason:C}},H.timerName)};
D9_.prototype.tick=function(H){_.DR(H,void 0,this.timerName)};var hR=function(){var H=this;this.scheduler=_.oh();this.maxInflightTasks=_.YB("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.YB("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new flb;this.onTaskCancelled=function(C,S){S&&H.scheduler.cancelJob(S);Kj9(H,C);k0(H,3)}},to3=function(){hR.instance||(hR.instance=new hR);
return hR.instance};
hR.prototype.pause=function(){this.prefetchCoordinatorState=0};
hR.prototype.resume=function(){k0(this,0)};
hR.prototype.queue=function(H){H=Ljo(this,H);k0(this,1);return H};
hR.prototype.queueAll=function(H){var C=new Map;H=_.Z(H);for(var S=H.next();!S.done;S=H.next())S=S.value,C.set(S.id,Ljo(this,S));k0(this,1);return C};
var Ljo=function(H,C){var S=H.allPrefetchTasks.get(C.id);if(S)return S.cancellablePromise;try{var w=new D9_(C,H.onTaskCancelled)}catch(J){return _.kj(J)}S=w;S.tick("pcq");var A={prefetchInfo:{taskId:S.taskModel.id,isPrefetch:!0,fetchAction:S.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:S.taskModel.command.clickTrackingParams}};S.taskModel.csn&&(A.clientScreenNonce=S.taskModel.csn);_.nL(A,S.timerName);H.allPrefetchTasks.set(C.id,w);H.drainingHeap.insert(-w.getPriority(),w);return w.cancellablePromise},
k0=function(H,C){H.prefetchCoordinatorState===C&&(H.prefetchCoordinatorState=2,gtO(H))},gtO=function(H){for(var C={};H.prefetchCoordinatorState!==0;C={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(H.inflightPrefetchTasks.size>=H.maxInflightTasks){H.prefetchCoordinatorState=3;break}C.prefetchTask$jscomp$1=H.drainingHeap.remove();if(!C.prefetchTask$jscomp$1){H.prefetchCoordinatorState=1;break}C.taskId$jscomp$3=C.prefetchTask$jscomp$1.taskModel.id;if(H.allPrefetchTasks.has(C.taskId$jscomp$3)){var S=-1;H.coordinatorTimeoutMs>0&&(S=_.X2(H.scheduler,function(w){return function(){nY(H,w.taskId$jscomp$3,Error("jj"))}}(C),H.coordinatorTimeoutMs));
H.inflightPrefetchTasks.set(C.taskId$jscomp$3,S);if(!H.JSC$18287_commandHandler){if(!_.eU.instance){nY(H,C.taskId$jscomp$3,Error("kj"));continue}H.JSC$18287_commandHandler=_.eU.instance}a:switch(C.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":S=1;break a;default:S=0}C.prefetchTask$jscomp$1.jobId=H.scheduler.addJob(function(w){return function(){w.prefetchTask$jscomp$1.tick("pcr");try{H.JSC$18287_commandHandler.resolveCommand(w.prefetchTask$jscomp$1.taskModel.command)||
nY(H,w.taskId$jscomp$3,Error("lj"))}catch(A){nY(H,w.taskId$jscomp$3,A)}}}(C),S,0)}}},U9j=function(H,C){(C=Kj9(H,C))!=null&&(C.resolver.resolve(),C.tick("pce"));
k0(H,3)},nY=function(H,C,S){(C=Kj9(H,C,S))!=null&&(C.resolver.reject(S),C.tick("pcc"),Bii(C,"CANCELLATION_REASON_ERROR"),Math.random()<=_.YB("prefetch_coordinator_error_logging_sampling_rate")&&(S=new _.X0("Prefetch Command failed.",C.taskModel.id,S.message),_.nC(S)));
k0(H,3)},Kj9=function(H,C,S){var w=H.allPrefetchTasks.get(C);
w?((S=H.inflightPrefetchTasks.get(C))&&S!==-1&&H.scheduler.cancelJob(S),H.inflightPrefetchTasks.delete(C),H.allPrefetchTasks.delete(C)):_.Bn(new _.X0("Unexpected missing prefetch task when deleting task.",C,S==null?void 0:S.message));return w};var Rio=function(H,C,S,w,A){this.id=H;this.triggerOn=C;this.cancelOn=S;this.command=w;this.proto=A};
_.JJ.Object.defineProperties(Rio.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var IqO=function(){this.JSC$18292_prefetchCoordinator=to3();r9j||(r9j=new pY);this.defaultCoordinator=r9j},aqt;
IqO.getInstance=function(){aqt||(aqt=new IqO);return aqt};
IqO.prototype.get=function(H){switch(H){case 0:return this.JSC$18292_prefetchCoordinator;default:return this.defaultCoordinator}};var rq=function(){this.coordinatorSupplier=IqO.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},i9p=function(H){var C=_.Dg()||void 0,S=Object.keys(x9O)[0];
if(S){var w=H.taskIdByTriggerId.get(S);if(w!=null){H.taskIdByTriggerId.delete(S);S=[];w=_.Z(w);for(var A=w.next();!A.done;A=w.next())if(A=H.tasks.get(A.value))C!=="UNDEFINED_CSN"&&(A.csn=C),S.push(A);S=liZ(S);C=[];S=_.Z(S);for(w=S.next();!w.done;w=S.next()){A=_.Z(w.value);w=A.next().value;A=A.next().value;w=H.coordinatorSupplier.get(w).queueAll(A);w=_.Z(w);var J=w.next();for(A={};!J.done;A={taskId$jscomp$9:void 0},J=w.next()){var c=_.Z(J.value);J=c.next().value;c=c.next().value;A.taskId$jscomp$9=
J;J=c;C.push(A.taskId$jscomp$9);H.queuedPromisesByTask.set(A.taskId$jscomp$9,_.rL(J,function(Y){return function(){H9O(H,Y.taskId$jscomp$9)}}(A)))}}}}else _.Bn(new _.X0("Unexpected malformed TriggerEvent."))};
rq.prototype.trigger=function(H,C){var S=this,w=this.tasks.get(H);if(!w||this.queuedPromisesByTask.has(H))return!1;CBj(this,H,w.triggerOn);C!=="UNDEFINED_CSN"&&(w.csn=C);C=this.coordinatorSupplier.get(w.taskType).queue(w);this.queuedPromisesByTask.set(H,_.rL(C,function(){H9O(S,H)}));
return!0};
rq.prototype.cancel=function(H){var C=this.queuedPromisesByTask.get(H);if(C)C.cancel();else return H9O(this,H)};
var H9O=function(H,C){H.queuedPromisesByTask.delete(C);var S=H.tasks.get(C);if(!S)return!1;H.tasks.delete(C);CBj(H,C,S.triggerOn);(S=v8Z(S.cancelOn))&&(H=H.taskIdByCancelId.get(S))&&H.delete(C);return!0},CBj=function(H,C,S){(S=Object.keys(S)[0])&&(H=H.taskIdByTriggerId.get(S))&&H.delete(C)};var x9O={taskRegistered:{}},B0=function(){rq.instance||(rq.instance=new rq);this.JSC$18301_taskManager=rq.instance};
_.G(B0,WB);
B0.prototype.resolveCommand=function(H){var C=this,S,w;return _.z(function(A){S=_.e(H,QiM);if((w=S)==null||!w.tasks){var J=new _.X0("RegisterTasksCommand is missing tasks.");_.nC(J);return A.return()}J=C.JSC$18301_taskManager;for(var c=_.Z(S.tasks),Y=c.next();!Y.done;Y=c.next())if(Y=Y.value,Y=Y.id&&Y.triggerOn&&Y.cancelOn&&Y.command?new Rio(Y.id,Y.triggerOn,Y.cancelOn,Y.command,Y):void 0,Y){var M=Object.keys(Y.triggerOn)[0];if(M){var m=v8Z(Y.cancelOn);m?(J.tasks.set(Y.id,Y),J.taskIdByTriggerId.has(M)||J.taskIdByTriggerId.set(M,
new Set),J.taskIdByTriggerId.get(M).add(Y.id),J.taskIdByCancelId.has(m)||J.taskIdByCancelId.set(m,new Set),J.taskIdByCancelId.get(m).add(Y.id)):_.Bn(new _.X0("Unexpected malformed cancelOn field."))}else _.Bn(new _.X0("Unexpected malformed triggerOn field."))}else _.Bn(new _.X0("Unexpected malformed Task proto."));i9p(C.JSC$18301_taskManager);_.oT(A)})};var Sti={},s2_=(Sti.rendered={priority:_.E("web_adaptive_early_init")?8:0,callback:function(){var H={};H.numCpu=navigator.hardwareConcurrency;var C={};C.ramGb=_.s$.navigator.deviceMemory;var S={staticContext:{}};C.ramGb&&iRZ(C.ramGb)&&(S.staticContext.memoryTotalKbytes=(C.ramGb*1048576).toString());H.numCpu&&iRZ(H.numCpu)&&(S.staticContext.cpuCores=H.numCpu);if(_.E("web_enable_adaptive_appl_signal")){H={};C=jxE();C=C.length>0?C[0]:void 0;var w,A=(w=_.LL("rses_dpj"))!=null?w:C==null?void 0:C.tick.rses_dpj,
J;w=(J=_.LL("rsef_dpj"))!=null?J:C==null?void 0:C.tick.rsef_dpj;A&&Number(A)>0&&w&&Number(w)>0&&(J=Math.ceil(Number(w)-Number(A)),J>0&&(H.loadLatency=J));H.loadLatency&&iRZ(H.loadLatency)&&(S.appL=H.loadLatency.toString())}_.kI("applicationStarted",S);CVZ=S;_.E("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",STu)}},Sti);var j23=new _.W4("WINDOW_ON_ERROR"),wV3=new _.W4("ERROR_WEIGHT_MAPS"),Ac3=new _.W4("INIT_ERROR");var JcK={},FTr=(JcK.initialized={priority:10,callback:function(H){H.injector.resolve(Ac3)()}},JcK);var Z9j=function(){},cc3=function(){var H=_.gh("meta_logger_impl");
H||(H=new Z9j,_.AO("meta_logger_impl",H));return H},Yti=function(){cc3().csiSubscriptionKey=XYW("meta_logging_csi_event",function(H){var C=H.timerName;
if(H=H.timelineData){_.BH(C,{startTime:H.startTime},C);H.infos&&_.nL(H.infos,C);for(var S=_.Z(Object.keys(H.ticks)),w=S.next();!w.done;w=S.next())w=w.value,_.DR(w,H.ticks[w],C)}})};
Z9j.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&PAp(this.csiSubscriptionKey)};var zBr={},MhO=(zBr.initialized={priority:10,callback:function(){Yti()}},zBr);var qtK=function(H,C){this.innertubeClientName=H;this.JSC$18312_prefCookie=C};
qtK.prototype.record=function(){if(_.E("web_li_record_binary_eval_tick")){var H=_.LL("rsef_dpj");var C=_.LL("rses_dpj");H=H!==void 0&&C!==void 0?Math.round(H-C):void 0;if(H!==void 0&&H>0){C=_.BU(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var S=this.poolSize;if(!(C.valuesSeen>=1E9)){if(C.valuesSample.length<S)C.valuesSample.push(H);else{var w=Math.floor(Math.random()*(C.valuesSeen+1));w<S&&(C.valuesSample[w]=H)}C.valuesSeen+=1}_.rm(this.storagePrefix+"-"+this.innertubeClientName,
C,2592E3);H=C.valuesSample;C=VyZ(H);H=H.length<this.poolSize?void 0:C<400?1:C<1700?2:3;H!==void 0&&(this.JSC$18312_prefCookie.set(this.cookiePrefix+this.innertubeClientName,H),this.JSC$18312_prefCookie.save())}}else _.Do(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18312_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18312_prefCookie.save()};
qtK[F0]=[Js,DH];var TPo=function(){qtK.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.G(TPo,qtK);var mrO=new _.W4("PAGE_LOAD_TIME_TOKEN");var WTR=function(H){this.signal=H;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;H.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.X2(_.rT,this.disableLoggingAndSendPayload,1E4)};
WTR.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.rT.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),yct(this))};
var yct=function(H){var C=_.BM();if(C){var S={webClientComponentsData:{components:Array.from(H.ids,function(w){return{id:w}})}};
H.ids.clear();_.lJ().visualElementStateChanged(C,S)}};var NPt=_.rW({a11y:_.To_});_.b9t=_.Bb(NPt)(NPt.a11y,{ephemeralActionSelector:function(H){return H.ephemeralAction||null}});var EDO=_.rW({continuation:_.yUd});var eBr=_.Bb(EDO)(EDO.continuation,{continuationCommandSelector:function(H){return H.continuationCommand}});var uT9=new _.W4("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var D_=function(H,C){this.JSC$18341_storeWithEntities=H;this.JSC$18341_commandHandler=C;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
D_.prototype.start=function(){this.JSC$18341_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
D_.prototype.observeDownloadingEntities=function(){var H=_.bO0(this.JSC$18341_storeWithEntities.getState().entities).map(function(w){return EP0(w)});
if(H.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var C={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:lOp()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.cF(_.fL("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18341_commandHandler.resolveCommand(C)}this.downloadingEntities=H}else if(this.downloadingEntities.length){var S=NH0(this.JSC$18341_storeWithEntities.getState().entities).map(function(w){return EP0(w)});
this.downloadingEntities.filter(function(w){return S.includes(w)}).length&&(H={openPopupAction:zhV()},this.JSC$18341_commandHandler.resolveCommand(H));
this.downloadingEntities=[]}};
D_[F0]=[Fn,_.ZQ];var G7o;_.KY=function(H,C,S,w,A,J,c,Y){this.JSC$18344_playerApiPromise=H;this.JSC$18344_commandHandler=C;this.JSC$18344_screenManager=S;this.offlineWebClientEligibility=w;this.JSC$18344_prefStorage=A;this.JSC$18344_actionRouter=J;this.entityTypeMap=c;this.JSC$18344_persistentStorePromiseAccessor=Y;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
G7o=function(){var H=_.JA().resolve(_.KY),C;_.z(function(S){if(S.nextAddress==1)return H.downloadFailureListenerBound?S.return():S.yield(H.JSC$18344_playerApiPromise,2);C=S.yieldResult;C.addEventListener("onOfflineOperationFailure",function(w){if(w.failureReason&&w.entityKey&&w.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(w.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var A=_.Tn(w.entityKey).entityId;A&&H.JSC$18344_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
A)}else if(_.E("kevlar_woffle")){A=H.JSC$18344_commandHandler;var J=A.resolveCommand;w=w.failureReason;var c=_.fL("TRANSFER_FAILED",void 0,"Download failed");w==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(c=_.fL("STORAGE_FULL",void 0,"Storage full"));J.call(A,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.cF(c),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
H.downloadFailureListenerBound=!0;_.oT(S)})};
_.KY.prototype.deleteVideo=function(H,C){var S=this,w,A,J;return _.z(function(c){if(c.nextAddress==1)return c.yield(S.JSC$18344_playerApiPromise,2);w=c.yieldResult;J={offlineLoggingData:{offlineDeleteReason:(A=C)!=null?A:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return c.yield(w.queueOfflineAction(H,S.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",J),0)})};
_.KY.prototype.pauseVideoDownload=function(H){var C=this,S;return _.z(function(w){if(w.nextAddress==1)return w.yield(C.JSC$18344_playerApiPromise,2);S=w.yieldResult;S.pauseVideoDownload(H);_.oT(w)})};
_.KY.prototype.resumeVideoDownload=function(H){var C=this,S;return _.z(function(w){if(w.nextAddress==1)return w.yield(C.JSC$18344_playerApiPromise,2);S=w.yieldResult;return w.yield(S.resumeVideoDownload(H),0)})};
_.KY[F0]=[_.qp,_.ZQ,_.Av,uT9,g8,vg,zRM,K$];var f4t=new _.W4("DOWNLOAD_STATE_STORE_TOKEN");var vDq=function(H,C){this.JSC$18364_persistentStorePromiseAccessor=H;this.store=C;this.upliftCompletionResolver=new _.N5},oDK=function(){var H=_.JA().resolve(l4O),C;
_.z(function(S){switch(S.nextAddress){case 1:if(H.upliftImplPromise)return S.return(H.upliftImplPromise);_.en(S,2);H.upliftImplPromise=Vho(H);return S.yield(H.upliftImplPromise,4);case 4:H.upliftCompletionResolver.resolve();_.xB(S,3);break;case 2:throw C=_.Vx(S),H.upliftCompletionResolver.reject(C),C;case 3:return S.return(H.upliftImplPromise)}})},Vho=function(H){var C,S,w;
return _.z(function(A){switch(A.nextAddress){case 1:return _.Bh("LOGGED_IN")?A.yield(H.JSC$18364_persistentStorePromiseAccessor(),2):A.return();case 2:C=A.yieldResult;if(!C)return _.DR("vdeur"),A.return();_.DR("vdeus");_.en(A,3);return A.yield(O9O(C),5);case 5:S=A.yieldResult;H.store.dispatch(wgp(S));C.observe(function(J){AdZ(H.store,J)});
_.xB(A,4);break;case 3:throw w=_.Vx(A),_.DR("vdeur"),w;case 4:_.DR("vdeuc"),_.oT(A)}})},O9O=function(H){var C;
return _.z(function(S){if(S.nextAddress==1)return S.yield(PLu(H),2);C=S.yieldResult;return S.return(C.reduce(function(w,A){if(!A.data||!A.key||!A.entityType)return w;w[A.entityType]||(w[A.entityType]={});w[A.entityType][A.key]=A.data;return w},{}))})};
vDq[F0]=[K$,_.MU];var l4O;l4O=new _.W4("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.tR=new _.W4("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var LY=function(H,C){this.JSC$18367_persistentStorePromiseAccessor=H;this.transportService=C};
LY.prototype.refresh=function(){var H=this,C,S,w,A;return _.z(function(J){if(J.nextAddress==1)return _.Bh("LOGGED_IN")?J.yield(H.JSC$18367_persistentStorePromiseAccessor(),2):J.return();if(J.nextAddress!=3)return(C=J.yieldResult)?J.yield(y3u(C),3):J.return();if((S=J.yieldResult)&&!(Number(S.data.refreshTimestampMs||0)<(0,_.Zt)()))return J.return();w={browseId:"SPaccount_downloads"};A=_.JG(xQ);_.Mb(H.transportService,w,A).then(function(c){var Y;if(C&&(c==null?void 0:(Y=c.responseContext)==null?void 0:
Y.maxAgeSeconds)!==0){var M;Y=(c==null?void 0:(M=c.responseContext)==null?void 0:M.maxAgeSeconds)||604800;M=String(Math.floor((0,_.Zt)())+Y*1E3);C.put("service:downloads_settings:fallback",new _.DL({innertubeResponse:c,refreshTimestampMs:M}))}});
_.oT(J)})};
LY[F0]=[_.$0,_.Lf];var gq=function(H,C){this.JSC$18371_playerPromise=H;this.store=C;this.started=!1};
gq.prototype.start=function(){var H=this,C;return _.z(function(S){if(S.nextAddress==1)return H.started?S.return():S.yield(H.JSC$18371_playerPromise,2);C=S.yieldResult;C.addEventListener("onOrchestrationBecameLeader",H.updateIsLeader.bind(H,!0));C.addEventListener("onOrchestrationLostLeader",H.updateIsLeader.bind(H,!1));if(C.isOrchestrationLeader)H.updateIsLeader(C.isOrchestrationLeader());else{var w=new _.X0("Function isOrchestrationLeader is undefined",{"player.isReady":C.isReady(),"player.playVideo":C.playVideo?
"defined":"undefined"});_.nC(w);H.updateIsLeader(!1)}H.started=!0;_.oT(S)})};
gq.prototype.updateIsLeader=function(H){this.store.dispatch(_.Md({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:H}}))};
gq[F0]=[_.qp,_.MU];var XVq=function(H,C){this.networkStatusManager=H;this.JSC$18374_prefStoragePromise=C;this.redirectsToPreload=["https://youtube.com"]},Q29=function(){var H=_.JA().resolve(XVq),C,S,w,A,J,c;
_.z(function(Y){switch(Y.nextAddress){case 1:return Y.yield(H.JSC$18374_prefStoragePromise,2);case 2:C=Y.yieldResult;if(!(S=C)){Y.jumpTo(3);break}return Y.yield(C.get("yt-redirect-prefetch-id"),4);case 4:S=Y.yieldResult;case 3:if(S||!H.networkStatusManager.isNetworkAvailable())return Y.return();w={cache:"reload",redirect:"manual"};A=_.Z(H.redirectsToPreload);J=A.next();case 5:if(J.done){if(!C){Y.jumpTo(0);break}return Y.yield(C.set("yt-redirect-prefetch-id",!0,86400),0)}c=J.value;_.en(Y,8);return Y.yield(_.s$.fetch(c,
w),10);case 10:_.xB(Y,6);break;case 8:_.Vx(Y);case 6:J=A.next(),Y.jumpTo(5)}})};var dri=function(){};_.PBj=new _.W4("PAGE_CONTENT_EXTRACTOR_TOKEN");var Um=function(H){H?(this.container=H,this.containerWasInjected=!0):this.containerWasInjected=!1};
Um.prototype.openDialog=function(H,C,S){var w=this,A;return _.z(function(J){(A=w.container)==null||A.openDialog(H,C,S);_.oT(J)})};
Um.prototype.closeDialog=function(){var H=this,C;return _.z(function(S){(C=H.container)==null||C.closeDialog();_.oT(S)})};
Um.prototype.isDialogOpen=function(){var H=this,C,S;return _.z(function(w){return w.return((S=(C=H.container)==null?void 0:C.isDialogOpen())!=null?S:!1)})};
Um[F0]=[_.AA(U71)];_.$ri=new _.W4("POPUP_CONTROLLER_TOKEN");var pVi=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
pVi.prototype.registerPanel=function(H,C){if(H){this.panelMap.set(H,C);var S=this.pendingPanelResolvers.get(H);S&&(S.resolve(C),this.pendingPanelResolvers.delete(H))}};
pVi.prototype.getPanel=function(H){var C=this,S;return _.z(function(w){return(S=C.panelMap.get(H))?w.return(S):w.return(k7i(C,H))})};
var k7i=function(H,C){var S,w;return _.z(function(A){if(S=H.pendingPanelResolvers.get(C))return A.return(S.promise);w=new _.N5;H.pendingPanelResolvers.set(C,w);return A.return(w.promise)})},hBj=function(H,C){pVi.call(this);
var S=this;this.popupController=H;this.persistentPanelController=C;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return S.panelMap.size}}};
_.G(hBj,pVi);_.F=hBj.prototype;_.F.getReloadContinuation=function(H){var C=this,S;return _.z(function(w){if(w.nextAddress==1)return w.yield(C.getPanel(H),2);S=w.yieldResult;return w.return(S.getReloadContinuation())})};
_.F.showPanel=function(H,C,S,w,A,J,c){var Y=this,M,m,W,y;return _.z(function(N){if(N.nextAddress==1){c&&Y.updatePanelContinuationDatas.set(H,c);if((M=S)==null?0:(m=M.engagementPanelPopupPresentationConfig)==null?0:m.popupType)if(W=S.engagementPanelPopupPresentationConfig.popupType,A===void 0&&(A=document.body),W==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!Y.persistentPanelController)return _.Bn(new _.X0("Persistent panel controller is not available.")),N.return();var b=Y.persistentPanelController;
b.persistentPanelIdentifiers.has(H)||(b.persistentPanelWrapper.appendChild(b.engagementPanelElement({panelIdentifier:H},{isPersistentPanel:!0})),b.persistentPanelIdentifiers.add(H));a:switch(_.R$.currentPageSubTypeSelector(b.store.getState())){case "watch":var u="WATCH";break a;default:u="APP"}_.nDO(b,u);b.store.dispatch(mli(!0))}else{if(W==="PANEL_POPUP_TYPE_DIALOG"||W==="PANEL_POPUP_TYPE_DROPDOWN"){b=N.return;u=Y.popupController;var O=u.openPopup;a:switch(W){case "PANEL_POPUP_TYPE_DIALOG":var d=
"DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":d="DROPDOWN";break a;default:throw Error("nj`"+W);}return b.call(N,O.call(u,H,C,d,A))}_.Bn(new _.X0("Popup type "+W+" not supported in PanelController."))}return N.yield(Y.getPanel(H),2)}y=N.yieldResult;(C||J)&&y.updatePanel(C,!1,w,J);y.showPanel(w);_.oT(N)})};
_.F.hidePanel=function(H){var C=this,S,w;return _.z(function(A){if(A.nextAddress==1)return A.yield(C.getPanel(H),2);S=A.yieldResult;S.hidePanel();C.popupController.closePopup(H);(w=C.persistentPanelController)!=null&&w.persistentPanelIdentifiers.has(H)&&w.store.dispatch(mli(!1));_.oT(A)})};
_.F.isVisible=function(H,C){var S=this,w;return _.z(function(A){if(A.nextAddress==1)return C&&!S.panelMap.has(H)?A.return(!1):A.yield(S.getPanel(H),2);w=A.yieldResult;return A.return(w.isVisible())})};
_.F.updatePanel=function(H,C,S,w,A,J){S=S===void 0?!1:S;var c=this,Y;return _.z(function(M){if(M.nextAddress==1){if(!C&&!A)return M.return();J&&c.updatePanelContinuationDatas.set(H,J);return M.yield(c.getPanel(H),2)}Y=M.yieldResult;Y.updatePanel(C,S,w,A);_.oT(M)})};
_.F.registerPanelContent=function(H,C){H&&this.panelContentMap.set(H,C)};
_.F.unregisterPanelContent=function(H){this.panelContentMap.delete(H)};
_.F.getPanelContent=function(H){return this.panelContentMap.get(H)};
_.F.getUpdatePanelContinuationData=function(H){return this.updatePanelContinuationDatas.get(H)};
hBj[F0]=[_.$ri,_.AA(_.JT)];var Rz=function(H,C){this.innertubeTransportService=H;this.JSC$18396_screenManager=C},rct=function(H){var C;
return!((C=H.panelLoadingStrategy)==null||!C.requestTemplate)};
Rz.prototype.makeRequest=function(H){var C=this,S,w;return _.z(function(A){switch(A.nextAddress){case 1:if(!rct(C)){A.jumpTo(2);break}_.en(A,3);return A.yield(_.ir(C.innertubeTransportService,H),5);case 5:return S=A.yieldResult,S?A.return(S.content):(_.nC(Error("oj")),A.return(void 0));case 3:w=_.Vx(A),_.nC(w);case 2:return A.return(void 0)}})};
Rz.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
Rz.prototype.execute=function(H){var C=this,S,w,A,J,c,Y,M,m,W,y;return _.z(function(N){if(N.nextAddress==1){S=H;w=S.data;A=S.fallbackVe;J=S.parentVe;c=S.createScreenConfig;Y=S.renderFn;M=S.command;C.panelLoadingStrategy=w;var b,u,O=((b=C.panelLoadingStrategy)==null?0:b.screenVe)?(u=C.panelLoadingStrategy)==null?void 0:u.screenVe:A;O&&_.kP(C.JSC$18396_screenManager,O,J,c);return(m=C.getContent())?N.yield(Y(m),2):N.jumpTo(2)}return N.nextAddress!=4?rct(C)?N.yield(C.makeRequest(M),4):N.return():(y=W=
N.yieldResult)?N.yield(Y(y),0):N.return()})};
Rz[F0]=[_.Lf,_.Av];var BPj;BPj=function(H,C){this.engagementPanelElement=H;this.store=C;this.persistentPanelContainerMap=new Map;this.persistentPanelIdentifiers=new Set;this.persistentPanelWrapper=document.createElement("div");this.persistentPanelWrapper.classList.add("persistent-panel-wrapper");this.persistentPanelWrapper.style.display="flex";this.persistentPanelWrapper.style.height="100%"};
_.nDO=function(H,C){var S=H.persistentPanelContainerMap.get(C);S?(H=H.persistentPanelWrapper,_.zG=!0,_.Ms.set(H,!0),S.insertBefore(H,null),_.Ms.delete(H),_.zG=!1):_.Bn(new _.X0("Persistent panel container not found for surface "+C+"."))};
BPj[F0]=[RFW,_.MU];var Iz=function(){};
Iz.prototype.getContainer=function(){return _.ZR()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
Iz.prototype.openSheet=function(H,C){var S=this,w,A,J,c,Y,M;return _.z(function(m){switch(m.nextAddress){case 1:return w={stack:[],error:void 0,hasError:!1},_.en(m,2,3),A=sF,m.yield(S.isSheetOpen(),5);case 5:J=m.yieldResult;y8$(w,X9Z(A));if(J){if(_.E("web_close_sheet_if_same_target_killswitch")&&C&&S.currentTarget===C)return(c=S.getContainer())==null||c.closeSheet(),m.return();S.pendingData={data:H,target:K1o(S,C)};return m.return()}H.viewModel&&(H={viewModel:H.viewModel});(Y=S.getContainer())==null||
Y.openSheet(H,C);S.currentTarget=C;case 3:_.Gv(m);NFZ(w);_.lf(m,0);break;case 2:M=_.Vx(m),w.error=M,w.hasError=!0,m.jumpTo(3)}})};
Iz.prototype.closeSheet=function(){var H=this,C;return _.z(function(S){if(S.nextAddress==1)return S.yield((C=H.getContainer())==null?void 0:C.closeSheet(),2);if(S.nextAddress!=4)return H.currentTarget=void 0,H.pendingData?S.yield(H.openSheet(H.pendingData.data,H.pendingData.target),4):S.jumpTo(0);H.pendingData=void 0;_.oT(S)})};
Iz.prototype.isSheetOpen=function(){var H=this,C,S;return _.z(function(w){return w.return((S=(C=H.getContainer())==null?void 0:C.isSheetOpen())!=null?S:!1)})};
var K1o=function(H,C){if(!_.E("web_parent_target_for_sheets"))return C;var S,w;return(w=(S=H.getContainer())==null?void 0:S.getParentTarget(C))!=null?w:C};var Zf=window.documentPictureInPicture;var g8Z=_.xC(["dark"]),UaW=_.xC(["system-icons"]),Rhp=_.xC(["typography"]),Ii6=_.xC(["lang"]),aip=_.xC(["style"]),Dau=_.xC(["dir"]),KIw=_.xC(["rounded-container"]),tyE=_.xC(["style"]),HjV=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],az=function(H){this.JSC$18413_clientRoot=H;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
az.prototype.openWindow=function(H){var C=this,S,w;return _.z(function(A){switch(A.nextAddress){case 1:if(!window.documentPictureInPicture||!_.li()||C.currentPipWindow)return A.return(!1);_.en(A,2);return A.yield((w=Zf?Zf:null)==null?void 0:w.requestWindow(H),4);case 4:S=A.yieldResult;_.xB(A,3);break;case 2:return _.Vx(A),A.return(!1);case 3:if(!S)return A.return(!1);S.addEventListener("pagehide",function(){Dr3(C)});
S.addEventListener("resize",C.handlePipWindowResize);xaV(S);CHW(S);F36(S);return A.yield(BjZ(S),5);case 5:if(!hh6())return A.return(!1);C.currentPipWindow=S;C.JSC$18413_eventForwarder=ij0(S,C.JSC$18413_clientRoot);C.pipWindowResizeDelay=new _.cM(function(){C.currentPipWindow&&_.q3(C.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.vj(C.currentPipWindow.innerWidth,C.currentPipWindow.innerHeight)])},S);
C.pipWindowResizeDelay.start();return A.return(!0)}})};
az.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var Dr3=function(H){if(H.currentPipWindow){var C,S;(C=Zf?Zf:null)==null||(S=C.window)==null||S.close();H.currentPipWindow.removeEventListener("resize",H.handlePipWindowResize);var w;(w=H.pipWindowResizeDelay)==null||w.dispose();H.pipWindowResizeDelay=void 0;var A;(A=H.JSC$18413_eventForwarder)==null||A.stop();H.JSC$18413_eventForwarder=void 0;C=_.Z(H.onCloseCallbacks);for(S=C.next();!S.done;S=C.next())S=S.value,S();H.onCloseCallbacks=[];H.currentPipWindow=null}};
az.prototype.getWindow=function(){return this.currentPipWindow};
var KT9=function(H,C){var S;(S=H.onCloseCallbacks)==null||S.push(C)};
az.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.li()};
_.JJ.Object.defineProperties(az.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
az[F0]=[YKb];var thi=new _.W4("PICTURE_IN_PICTURE_CONTROLLER");var S1p=function(H,C){this.lengthY=this.lengthX=0;this.lengthX=C.x-H.x;this.lengthY=C.y-H.y};var LTK=function(){},HrO=function(H,C){var S;
(S=H.headerElement)==null||S.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:C}))};var gDp=function(){};
gDp.prototype.openPopup=function(H,C,S,w){var A=this,J;return _.z(function(c){if(!A.container)return c.return();J={openPopupAction:{popup:C,popupType:S,uniqueId:H}};return c.return(A.container.handleOpenPopupAction(J,w))})};
gDp.prototype.closePopup=function(H){this.container&&this.container.closePopup(H)};var Ur_=function(){this.openTunnels=new Map},Aqw=function(H,C,S){if(F5V(S)){var w=_.Up(S,"gclid");
S={handleEvent:function(Y){C&&!C.closed&&typeof C.postMessage==="function"&&Y&&Y.origin&&Y.source===C&&Y.data&&Y.data.action==="gcl_setup"&&C.postMessage(Object.assign({},{action:"gcl_transfer"},w&&{gclid:w},{gadSource:2}),Y.origin)}};
for(var A=_.Z(H.openTunnels),J=A.next();!J.done;J=A.next()){var c=_.Z(J.value);J=c.next().value;c=c.next().value;if(J.closed)try{window.removeEventListener("message",c),H.openTunnels.delete(J)}catch(Y){_.nC(Y)}}C&&H.openTunnels.size<15&&(H.openTunnels.set(C,S),window.addEventListener("message",S))}};var RBK=function(){this.clientParams=new Map},tWn=function(H){for(var C=_.Z(H.clientParams.keys()),S=C.next();!S.done;S=C.next())S=S.value,S.startsWith("yt-mini-app-share")&&H.clientParams.delete(S)};var I4j=function(H,C){_.Op.call(this);var S=this;this.shortsController=H;this.storeWithShorts=C;H=_.Uf(this.storeWithShorts,_.vWw,function(w){if(w){var A,J=(A=S.shortsController.getRoot())==null?void 0:A.getPlayer(),c;(A=(c=S.shortsController.alternativePlayerContainerElement)==null?void 0:c.getPlayerContainer())&&(J==null||J.appendTo(A))}else{var Y;c=(Y=S.shortsController.alternativePlayerContainerElement)==null?void 0:Y.getPlayerContainer().querySelector("#player");A=S.shortsController.activeIndex;
(Y=(J=S.shortsController.getRoot())==null?void 0:J.querySelector('ytd-reel-video-renderer[id="'+A+'"] #player-container'))&&(c==null||c.appendTo(Y,void 0,!0))}});
this.addOnDisposeCallback(H)};
_.G(I4j,_.Op);var x0=function(H,C,S,w){var A=this;this.storeWithShorts=H;this.ephemeralResponseStore=C;this.innertubeTransportService=S;this.innertubeTransportLoader=w;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.Lu(_.YQ);this.isShortsPipActive=_.Lu(_.z_);this.nextReelVe=_.y4(56921);this.prevReelVe=_.y4(56922);this.backButtonVe=_.y4(22156);this.TEST_ONLY={getActiveModules:function(){return A.activeModules}}},a4O=function(H){H.unsubscribeFromStore=
_.Uf(H.storeWithShorts,_.f80,function(C){H.initOrDisposeActiveModules(C);
!C&&H.storeWithShorts.getState().shorts.isFullscreen&&(_.cH(document.documentElement),H.storeWithShorts.dispatch(_.NoV(!1)))});
H.initOrDisposeActiveModules(_.f80(H.storeWithShorts.getState()))},mwU,W01,xrr;
x0.prototype.initOrDisposeActiveModules=function(H){H?this.activeModules.push(new I4j(this,this.storeWithShorts)):(_.Jk(this.activeModules),this.activeModules.length=0)};
x0.prototype.registerRootElement=function(H){this.rootElement=H;a4O(this)};
x0.prototype.getRoot=function(){return this.rootElement};
x0.prototype.setActiveIndex=function(H){this.activeIndex=H};
_.cjY=function(H,C){var S,w,A,J,c,Y,M;return _.z(function(m){switch(m.nextAddress){case 1:return S=new wq,(w=S.JSC$13134_getStoreKey(C))&&H.ephemeralResponseStore.has(w)?m.yield(H.ephemeralResponseStore.get(w),7):m.yield(xrr(H,C),4);case 4:A=m.yieldResult;if(!w){m.jumpTo(3);break}J=m_(A,3600);return m.yield(H.ephemeralResponseStore.put(w,new _.DL(J)),3);case 7:A=(c=m.yieldResult)==null?void 0:_.AN(c);case 3:return((Y=A)==null?0:Y.replacementEndpoint)&&(M=_.e(A.replacementEndpoint,_.Ox))&&A.sequenceContinuation&&
(M.sequenceParams=A.sequenceContinuation),m.return(A)}})};
mwU=function(H,C){C=(new AR).JSC$13134_getStoreKey(C);return!!C&&H.ephemeralResponseStore.has(C)};
W01=function(H,C,S){var w,A,J,c,Y;_.z(function(M){if(M.nextAddress==1){w=new AR;A=w.JSC$13134_getStoreKey(C);if(!A)return M.return();if(S.reelWatchSequenceResponse)return J=m_(S.reelWatchSequenceResponse,3600),H.ephemeralResponseStore.put(A,new _.DL(J)),M.jumpTo(0);if(!H.ephemeralResponseStore.has(A))return M.jumpTo(0);Y=S;return M.yield(H.ephemeralResponseStore.get(A),4)}Y.reelWatchSequenceResponse=(c=M.yieldResult)==null?void 0:_.AN(c);_.oT(M)})};
xrr=function(H,C){var S=S===void 0?{}:S;var w,A,J;return _.z(function(c){switch(c.nextAddress){case 1:if(H.innertubeTransportService){w=H.innertubeTransportService;c.jumpTo(2);break}if(!H.innertubeTransportLoader){_.tE(Error("qj"));c.jumpTo(2);break}return c.yield(H.innertubeTransportLoader(),4);case 4:w=c.yieldResult;case 2:return c.yield((A=w)==null?void 0:_.ir(A,C,S),5);case 5:return J=c.yieldResult,c.return(J)}})};
_.JJ.Object.defineProperties(x0.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
x0[F0]=[CTn,_.B_,_.AA(_.Lf),_.AA(HEb)];_.HMr=new _.W4("STORAGE_MANAGER_TOKEN");var bju=["touchmove","scroll"];var iMp=!1;var q1Z=!1;var EK0={onSpanEnd:function(H){H.parentId==null&&(iMp||(zjw(),setInterval(zjw,6E5),iMp=!0),T76(H,"web_tracing_action"))}};var Cfq=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},SMj;
Cfq.prototype.enqueue=function(H,C){C===1?this.currentPersistentToast=H:this.queue.push(H);this.openToast()};
Cfq.prototype.openToast=function(){var H;(H=this.currentToast)!=null&&H.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.HT=new _.W4("TOAST_MANAGER_TOKEN");var sTK=new _.W4("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var jTj=new _.W4("VIEW_TRANSITION_COORDINATOR_TOKEN");var weo=function(H){this.config=H;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;H=_.Z(H.transitionConfigs);for(var C=H.next();!C.done;C=H.next())C=_.Z(C.value).next().value,this.transitionTasksMap.set(C,[])};
weo.prototype.registerElement=function(H,C,S){S=S===void 0?!1:S;for(var w=_.Z(Object.keys(C)),A=w.next(),J={};!A.done;J={viewTransitionName:void 0},A=w.next()){A=A.value;J.viewTransitionName=C[A];var c=this.elementTasksMap.get(H),Y=void 0;if((Y=c)==null?0:Y.has(A)){_.rv(new _.X0("Element already registered for transition",H.tagName,A));break}c=c||new Map;c.set(A,{beforeTransition:function(M){return function(){H.style.viewTransitionName=M.viewTransitionName}}(J),
afterTransition:function(){H.style.viewTransitionName&&(H.style.viewTransitionName="")},
runOnce:S});this.elementTasksMap.set(H,c)}};
_.tB=function(H,C){var S=H.elementTasksMap.get(C);S&&(S.clear(),S.size===0&&H.elementTasksMap.delete(C))};
weo[F0]=[sTK];var JYK=_.n(function(H){var C=_.sW("yt-expandable-metadata-header-view-model"),S=_.um(function(w){if(!_.hB(_.ki(w),C.value,["A".toString(),"BUTTON".toString()])){var A;(A=H.expandedCallback)==null||A.call(H,!1)}});
return _.q("yt-expandable-metadata-header-view-model",{el:C,class:"ytExpandableMetadataHeaderViewModelHost"},_.q(_.T,{cond:function(){return H.expanded()},
then:function(){return _.q("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":S},_.q("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.q(_.T,{cond:function(){return H.data().expandedTitleImage},
then:function(w){return _.q("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.q(_.Jg,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:w}))}}),_.q("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.q("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.q(_.uZ,{text:function(){return H.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.q(_.uZ,{text:function(){return H.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.q(_.uZ,{text:function(){return H.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.q("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.q(_.V4,{data:function(){return H.data().infoButton}},{buttonViewModel:_.rc}),_.q(_.V4,{data:function(){return H.data().collapseButton}},{buttonViewModel:function(w){return _.q(_.rc,{data:w.data,
onClick:function(){var A;(A=H.expandedCallback)==null||A.call(H,!1)}})}})))},
else:function(){return _.q(AYp,Object.assign({},H))}}))},"Ze"),F23=_.n(function(H){return _.q("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.q(_.T,{cond:function(){return H.data().collapsedLabelImage},
then:function(C){return _.q("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.q(_.Jg,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:C,alt:""}))}}),_.q(_.uZ,{text:function(){return H.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"$e"),AYp=_.n(function(H){return _.q("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.um(function(){var C;return void((C=H.expandedCallback)==null?void 0:C.call(H,!0))})},_.q("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.q(_.T,{cond:function(){return H.data().collapsedImage},
then:function(C){return _.q("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.q(_.Jg,{height:20,preserveHeight:!0,preserveWidth:!0,data:C,alt:""}))}}),_.q(_.T,{cond:function(){return H.data().showLeadingCollapsedLabel},
then:function(){return _.q(F23,Object.assign({},H))}}),_.q("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.q(_.uZ,{text:function(){return H.data().collapsedTitle}}))),_.q("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.q(_.T,{cond:function(){return!H.data().showLeadingCollapsedLabel},
then:function(){return _.q(F23,Object.assign({},H))}}),_.q(_.V4,{data:function(){return H.data().infoButton}},{buttonViewModel:_.rc}),_.q(_.V4,{data:function(){return H.data().expandButton}},{buttonViewModel:function(C){return _.q(_.rc,{data:C.data,
onClick:function(){var S;(S=H.expandedCallback)==null||S.call(H,!0)}})}})))},"af");_.ZMO=_.n(function(H){var C=_.Z(_.fu(function(){return H.data().initiallyExpanded})),S=C.next().value,w=C.next().value,A,J=(A=_.JA().resolve(_.AA(_.sU)))==null?void 0:A(),c=function(){var Y=H.data().colorData;
if(Y)return J?Y==null?void 0:Y.darkColorPalette:Y==null?void 0:Y.lightColorPalette};
return _.q("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.vb({"background-color":function(){var Y=c();return(Y==null?0:Y.section2Color)?_.aw(Y.section2Color):""}})},_.q(_.V4,{data:function(){return H.data().header}},{expandableMetadataHeaderViewModel:function(Y){return _.q(JYK,{data:Y.data,
expanded:function(){return!!S()},
expandedCallback:function(M){w(M)}})}}),_.q(_.T,{cond:function(){return S()},
then:function(){return _.q("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.q(_.V4,{data:function(){return H.data().expandedContent}},{horizontalShelfViewModel:function(Y){return _.q(_.TP,{data:Y.data,
includeMargin:!0,forceNarrowLayout:!0,palette:c})},
videoSummaryContentViewModel:function(Y){return _.q(LHU,{data:Y.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(Y){return _.q(_.BG,{data:Y.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(Y){return _.q(_.HcP,{data:Y.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.q(_.V4,{data:function(){return H.data().expandedBottomButtons}},{buttonViewModel:function(Y){return _.q("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.q(_.rc,{data:Y.data}))}}))}}))},"bf");var cY9=_.n(function(H){var C=H.text;var S=H.marqueeSpacing;var w=H.scrollDelay;var A=H.scrollDuration;var J=H.enableMarqueeScroll;H=H.large;var c=_.Z(_.mB(!1,void 0,"WyNYFf")),Y=c.next().value,M=c.next().value,m=_.Z(_.mB(0,void 0,"OoTdhe"));c=m.next().value;var W=m.next().value,y=_.sW("marquee-scroll");m=_.sW("div");var N=_.sW("span"),b=_.JA().resolve(_.wW);_.d6(function(){if(J()){var d=N.value.getBoundingClientRect().width,p=y.value.getBoundingClientRect().width;if(d>p){var k=(b==="ltr"?-1:1)*(d+
(S?S():16));Promise.resolve().then(function(){M(!0);W(k)})}}},"dv0Anf");
var u={},O={};return _.q("marquee-scroll",{class:_.eJ("ytMarqueeScrollHost",(u.ytMarqueeScrollHostLarge=H,u)),el:y},_.q("div",{id:"marquee-scroll-inner-container",class:_.eJ("ytMarqueeScrollInnerContainer",(O.ytMarqueeScrollAnimationEnabled=function(){return Y()},O)),
el:m,style:_.vb({gap:S?(0,_.cd)(S):"16px","animation-duration":A?L8M(A):"16s","animation-delay":w?L8M(w):"3s","--marquee-translate":(0,_.cd)(c)})},_.q("span",{el:N,dir:"auto"},_.q(_.uZ,{text:C,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.q(_.T,{cond:Y,then:function(){return _.q("span",{"aria-hidden":"true",dir:"auto"},_.q(_.uZ,{text:C,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"cf");_.YMp=_.n(function(H){var C=H.data;var S=H.overlayDensity;H=_.um(function(){C().onTapCommand&&_.Im(C().onTapCommand);return!1});
var w=_.NI7(),A=function(){return(S==null?void 0:S())===1?22:16},J={};
return _.q("reel-sound-metadata-view-model",{class:_.eJ("ytReelSoundMetadataViewModelHost",(J.ytReelSoundMetadataViewModelHostLarge=function(){return(S==null?void 0:S())===1},J)),
"on:click":H,tabindex:0,role:"button","on:keydown":w},_.q("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.q(_.T,{cond:function(){return C().musicIcon},
then:function(c){return _.q(_.Jg,{data:c,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:A})}}),_.q("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.q(cY9,{text:function(){return C().soundMetadata},
enableMarqueeScroll:function(){return!!C().enableMarqueeScroll},
large:function(){return(S==null?void 0:S())===1}}))))},"df");var z9R,MnR,iV,W2_,NsK,mOr,e9r,E$i;z9R=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];MnR=_.YB("wil_icon_max_concurrent_fetches",Infinity);
iV=function(H,C,S){var w=this;this.iconSet=H;this.appDirection=C;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.s$.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.E("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.E("wil_icon_network_first");this.renderWhenIdle=_.E("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.E("wil_icon_load_immediately");this.isPurging=!1;H=function(){w.cacheStorageAvailable&&(w.cacheStorageAsync=_.s$.caches.open("yt-icons").then(function(J){return w.cacheStorageSync=J}).catch(function(){w.cacheStorageAvailable=!1}))};
S=(S==null?void 0:S())||{};S=_.Z(Object.entries(S));for(C=S.next();!C.done;C=S.next()){var A=_.Z(C.value);C=A.next().value;A=A.next().value;A=eI(A);qMi(A);this.iconCache[C]=A.cloneNode(!0)}this.isPurging=Tsr(this);this.isPurging instanceof Promise?this.isPurging.then(H):H()};
_.lF7=function(H,C){var S=H.resolveIcon(C);return S?H.renderingMode===1?mOr(H,S,H.renderingMode):(C=H.iconCache[S.url])?(C=C.cloneNode(!0),W2_(H,C),mOr(H,S,H.renderingMode,C)):_.yYq(H,S).then(function(w){var A=w?0:1;W2_(H,w);return mOr(H,S,A,w)}):(_.rv(new _.X0("Icon not found",{iconShape:C})),function(){})};
W2_=function(H,C){if(C){H.counter+=1;H="_yt"+H.counter;C=[C].concat(_.k$(C.getElementsByTagName("*")));C=_.Z(C);for(var S=C.next();!S.done;S=C.next())if(S=S.value,S.tagName==="style"&&S.textContent)S.textContent=NsK(S.textContent,H,!0);else for(var w=_.Z(S.attributes),A=w.next();!A.done;A=w.next()){A=A.value;A.name==="id"&&(A.value+=H);["mask","fill","clip-path"].includes(A.name)&&(A.value=NsK(A.value,H));if(A.name==="style"){var J=S.style;try{J.cssText=NsK(J.cssText,H,!0)}catch(W){var c=void 0,Y=
void 0,M=void 0,m=void 0;CR({error:((c=W)==null?void 0:(M=(Y=c).toString)==null?void 0:M.call(Y))||"",el:S.outerHTML,style:!!J,cssText:(m=J)==null?void 0:m.cssText})}}A.name==="xlink:href"&&(A.value=A.value.replace(/#(.*)/,"#$1"+H))}}};
NsK=function(H,C,S){var w=/url\(["']?#(.*?)["']?\)/;(S===void 0?0:S)&&(w=/url\(["']?#(.*?)["']?\)/g);return H.replace(w,"url(#$1"+C+")")};
mOr=function(H,C,S,w){return function(A,J){var c=Object.assign({},{iconColor:"currentcolor",iconWidth:C.size+"px",iconHeight:C.size+"px",iconDisplay:"block"},J);J=_.GZ("DIV");var Y=c.iconColor,M=c.iconFilter;c="width: "+c.iconWidth+"; height: "+c.iconHeight+"; display: "+c.iconDisplay+";";M&&(c+=" filter: "+M+";");S===0&&(c+=" fill: "+Y+";");S===1&&(M=C.url,c+=" -webkit-mask: url("+M+") no-repeat center / cover; mask: url("+(M+") no-repeat center / cover; background-color: ")+Y);C.allowMirroring&&
H.appDirection==="rtl"&&(c+=" transform: scale(-1, 1); transform-origin: center center;");J.setAttribute("style",c);S===0&&w&&J.appendChild(w);A.appendChild(J)}};
_.yYq=function(H,C){var S,w,A;return _.z(function(J){S=function(c){return R2(c)};
w=C.url;if(!bMi(w))throw Error("sj");A=E$i(H,w);return J.return(A.then(function(c){return c.clone().text()}).then(function(c){var Y=S(c);
c=C.size;var M=_.GZ("DIV");_.FN(M,Y);Y=_.f6(M.firstElementChild!==void 0?M.firstElementChild:_.otP(M.firstChild,!0));c=qMi(Y,c);H.iconCache[w]=c.cloneNode(!0);delete H.responsePromises[w];return c}).catch(function(){}))})};
e9r=function(H){var C,S=(C=H.requestAninmationFrameResolver)==null?void 0:C.promise;S||(H.requestAninmationFrameResolver=new _.N5,S=H.requestAninmationFrameResolver.promise,_.s$.requestAnimationFrame(function(){var w;(w=H.requestAninmationFrameResolver)==null||w.resolve();H.requestAninmationFrameResolver=null}));
return S};
E$i=function(H,C){var S,w;return _.z(function(A){if(A.nextAddress==1)return H.waitForAnimationFrame?A.yield(e9r(H),2):A.jumpTo(2);S=H.responsePromises[C];S||(w=function(){var J,c,Y;return _.z(function(M){switch(M.nextAddress){case 1:if(!H.cacheStorageAvailable){J=void 0;M.jumpTo(2);break}if(c=H.cacheStorageSync){M.jumpTo(3);break}return M.yield(H.cacheStorageAsync,4);case 4:c=M.yieldResult;case 3:J=c;case 2:return Y=J,H.isNetworkFirstStrategy?M.return(H.fetchAndUpdateCache(C,Y).catch(H.getCacheStorageResponse.bind(H,
C,Y))):M.return(H.getCacheStorageResponse(C,Y).catch(H.fetchAndUpdateCache.bind(H,C,Y)))}})},S=H.renderWhenIdle?new Promise(function(J,c){_.X2(_.rT,function(){w().then(J).catch(c)},10)}):w(),H.responsePromises[C]=S);
return A.return(S.catch(function(J){delete H.responsePromises[C];CR({error:(J==null?0:J.toString)?J.toString():"",url:C});throw J;}))})};
iV.prototype.fetchAndUpdateCache=function(H,C){var S=this;return _.z(function(w){return w.return(uNK(S,H).then(function(A){Gvo(S,H,A,C);return A}))})};
var uNK=function(H,C){var S;return _.z(function(w){if(H.numFetches<MnR)return H.numFetches+=1,w.return(fAr(H,C).finally(function(){--H.numFetches;if(Object.keys(H.queuedResponseResolvers).length){var A=Object.keys(H.queuedResponseResolvers)[0],J=H.queuedResponseResolvers[A];delete H.queuedResponseResolvers[A];J.resolve(uNK(H,A))}}));
S=new _.N5;H.queuedResponseResolvers[C]=S;return w.return(S.promise)})},fAr=function(H,C,S){S=S===void 0?2:S;
var w;return _.z(function(A){w={credentials:"same-origin",priority:"low"};return A.return(_.s$.fetch(C,w).then(function(J){return J.ok?J:Promise.reject(Error("tj`"+J.status+"`"+J.statusText))}).catch(function(J){if(S>0)return fAr(H,C,S-1);
throw J;}))})},Gvo=function(H,C,S,w){_.z(function(A){return w?A.return(new Promise(function(J){_.X2(_.rT,function(){var c,Y;
return _.z(function(M){switch(M.nextAddress){case 1:if(!H.isNetworkFirstStrategy){c=void 0;M.jumpTo(2);break}return M.yield(w.match(C).catch(function(){}),3);
case 3:c=M.yieldResult;case 2:if(Y=c){M.jumpTo(4);break}return M.yield(w.put(C,S.clone()).catch(function(m){CR({error:(m==null?0:m.toString)?m.toString():"",url:C})}),4);
case 4:J(),_.oT(M)}})},50)})):A.return()})};
iV.prototype.getCacheStorageResponse=function(H,C){return _.z(function(S){return C?S.return(C.match(H).then(function(w){return w&&w.ok?w:Promise.reject()})):S.return(Promise.reject())})};
var qMi=function(H,C){C===void 0||H.getAttribute("viewBox")||H.setAttribute("viewBox","0 0 "+C+" "+C);H.setAttribute("focusable","false");H.setAttribute("aria-hidden","true");try{H.style.pointerEvents="none",H.style.display="inherit",H.style.width="100%",H.style.height="100%"}catch(A){var S;CR({error:((S=A)==null?0:S.toString)?A.toString():""});try{H.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(J){var w;CR({error:((w=J)==null?0:w.toString)?J.toString():
""})}}return H},bMi=function(H){for(var C=_.Z(z9R),S=C.next();!S.done;S=C.next())if(H.startsWith(S.value)&&H.endsWith(".svg"))return!0;
return!1};
iV.prototype.resolveIcon=function(H){return this.iconSet.resolveIcon(H)};
var CR=function(H){_.Bn(new _.X0("Error in IconManager",H))},Tsr=function(H){if(_.E("wil_icons_cache_purge_killswitch"))return!1;
try{var C=_.s$.localStorage}catch(J){return!1}if(!C||!H.cacheStorageAvailable)return!1;var S=function(J){try{var c;(c=C)==null||c.setItem("yt-icons-last-purged",J.toString())}catch(M){var Y;CR({error:((Y=M)==null?0:Y.toString)?M.toString():""})}},w=Number(C.getItem("yt-icons-last-purged"));
if(!w)return w=new Date,w=w.setDate(w.getDate()-Math.floor(Math.random()*90+1)),S(w),!1;if(function(J,c){J=new Date(J);c=new Date(c);return c.getMonth()-J.getMonth()+12*(c.getFullYear()-J.getFullYear())}(w,Date.now())<3)return!1;
try{return _.s$.caches.delete("yt-icons").then(function(J){J&&S(Date.now());return J}).catch(function(){return!1}).finally(function(){H.isPurging=!1})}catch(J){var A;
CR({error:((A=J)==null?0:A.toString)?J.toString():""});return!1}};
iV[F0]=[NUo,_.wW,_.AA(eW_)];_.SX=function(H,C){this.iconManager=H;this.iconsToFetch=C};
_.SX[F0]=[_.E4,_.AA(EMi)];var v$R=function(){};var lAr=function(H,C,S){this.requestKey=H;this.kKE=C;this.kpL=S;this.rR3=function(){return new XMLHttpRequest};
this.lWQ=void 0;this.jik=[]};
lAr.prototype.getLatestChallengeResponse=function(){return this.kpL};
var Q7M=function(H,C,S){var w,A,J,c;return _.z(function(Y){if(Y.nextAddress==1){_.BH("attestation_challenge_fetch");_.DR("att_fs",void 0,"attestation_challenge_fetch");if(!H.lWQ)throw new _.DN(9,"Missing fetcher");return Y.yield(H.lWQ(C,S),2)}w=Y.yieldResult;J=(A=w)==null?void 0:A.bgChallenge;if(!J)throw new _.DN(15,"Missing field");H.kpL=w;H.jik.forEach(function(M){M(w)});
c=qii(J);_.DR("att_fc",void 0,"attestation_challenge_fetch");rV("attestation_challenge_fetch");return Y.return(c)})},CW_=function(H,C){var S,w,A,J,c;
return _.z(function(Y){switch(Y.nextAddress){case 1:S=new mm(100,3E5,.25,2),w=void 0;case 2:if(!(S.currBackoffCount_<10)){Y.jumpTo(4);break}_.en(Y,5);if(!(S.currBackoffCount_>0)){Y.jumpTo(7);break}return Y.yield(upE(S.getValue()),7);case 7:return Y.yield(Vn9(H,C),9);case 9:return A=Y.yieldResult,Y.return(A);case 5:J=_.Vx(Y);J instanceof _.DN?w=J:(c=J instanceof Error?J.message:"Unknown",w=new _.DN(9,c));DOi(S);Y.jumpTo(2);break;case 4:if(w)throw w;throw new _.DN(9,"Unknown error");}})},Vn9=function(H,
C){C=EJW(ezn(new b67,C),H.requestKey);
var S=new _.N5,w=H.rR3();w.open("POST",H.kKE);w.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");w.setRequestHeader("Content-Type","application/json+protobuf");w.onload=function(){if(_.x36(w)){var A=Os_(w.responseText);S.resolve(A)}else S.reject(new _.DN(_.saV(_.WA(w)),w.statusText))};
w.onerror=function(){S.reject(new _.DN(_.saV(_.WA(w)),w.statusText))};
w.send(C.serialize());return S.promise};var OMO=function(H){this.networkStatusManager=H;this.isDownloaded=NjU===void 0?function(){return!1}:NjU;
this.isReady=!1;this.mgt=o$o(this)},o$o=function(H){var C;
return _.z(function(S){if(S.nextAddress==1)return S.yield(phU(),2);if(S.nextAddress!=3)return C=S.yieldResult,S.yield(LTd(C),3);H.nT=S.yieldResult;fvV(H.nT).then(function(){H.isReady=!0});
return S.return(H.nT)})},XeO=function(H,C,S){H.nT?(H=H.nT.n2R({v5:S,
tvK:!0,w80:!0}),C.serviceIntegrityDimensions={poToken:H}):_.nC(Error("vj"))};
OMO.prototype.processContext=function(H){var C=this;if(!H.input.match(_.JG(yTM)))return _.Ef();var S=H.innerTubeRequest,w=S.videoId;return!w||this.isDownloaded(S)||this.networkStatusManager&&!this.nT&&!this.networkStatusManager.isNetworkAvailable()?_.Ef():this.nT?this.isReady?(XeO(this,S,w),_.Ef()):new b3(fvV(this.nT).then(function(){XeO(C,S,w)})):new b3(this.mgt.then(function(A){return _.z(function(J){if(J.nextAddress==1)return J.yield(fvV(A),2);
XeO(C,S,w);_.oT(J)})}))};var QTR=new _.W4("WEB_PO_CONTEXT_PROCESSOR");var dOO=function(H,C){var S=this;this.iqQ=0;var w;this.xdS=(w=C==null?void 0:C.xdS)!=null?w:window;this.networkStatusManagerPromise=C==null?void 0:C.networkStatusManagerPromise;var A;this.requestKey=(A=C==null?void 0:C.requestKey)!=null?A:_.z9("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var J;this.mj4=(J=C==null?void 0:C.mj4)!=null?J:function(M){return new IY(M)};
var c;w=(c=C==null?void 0:C.gXX)!=null?c:function(M,m,W){return new lAr(M,m,W)};
this.bgChallenge=qii(H.bgChallenge);this.ttlSeconds=TN0(IJ(H.challenge||""));this.bU=w(this.requestKey,_.E("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.s$.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",H);this.crn=C==null?void 0:C.crn;G2w(this.bU);var Y;this.zMf=(Y=C==null?void 0:C.zMf)!=null?Y:function(M){_.PI(S.xdS.document,"visibilitychange",
function(){S.xdS.document.visibilityState==="visible"&&M()})}},$O3=function(H){if(!H.vm){var C={maxAttempts:5,
mDn:H.ttlSeconds*1E3};vK6(H.xdS);H.vm=H.mj4({bU:H.bU,hbK:{disable:_.E("html5_web_po_disable_remote_logging"),gs:"aGIf",bfE:gR6("html5_web_po_experiment_ids"),wek:_.E("wpo_dis_lfdms")?0:1E3,dqm:function(w){var A=NtW.get(w);A||(A=new y0d(w),A=new Ep(A),NtW.set(w,A));return A}},
rqW:C,h7f:H.bgChallenge,urg:lv$});H.iqQ=Date.now();la1(H.vm,function(){H.iqQ=Date.now()});
rEE(H.vm,function(){return _.z(function(w){return w.return(Pft(H))})});
var S=H.uLf.bind(H);H.networkStatusManagerPromise&&H.ttlSeconds>0&&H.networkStatusManagerPromise.then(function(w){w.listen("publicytnetworkstatus-online",S)});
H.zMf(S)}};
dOO.prototype.uLf=function(){if(Date.now()>this.iqQ+this.ttlSeconds*1E3){var H;(H=this.vm)==null||vJV(H)}};
var Pft=function(H){if(H.bUM)return H.bUM;if(!H.vm)throw Error("wj");H.bUM=new i0({vm:H.vm,bU:H.bU,sZD:!0,onError:lv$,rqW:H.crn});return H.bUM},oKD=function(H,C){H=new dOO(H,C);
$O3(H);Pft(H)};var peo=_.b9t.ephemeralActionSelector,sT=function(H,C){this.store=H;this.queue=[];C==null||C.addEventListener("yt-navigate-start",this.reset.bind(this))};
sT.prototype.enqueue=function(H){var C=H.command,S=H.durationMs,w=H.elementToFocus;var A=H.label;var J=H.elementToFocus;H.command?A=_.fL("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:A,shortcut:_.fL("SHIFT_PLUS_ENTER")}):J&&(H=A+". "+_.fL("SHIFT_PLUS_ENTER")+" for more information.",A=_.fL("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:A,shortcut:_.fL("SHIFT_PLUS_ENTER")},H));S={announcement:A,durationMs:S!=null?S:8E3};C?S.command=C:w&&(w.classList.add("ephemeral-action-focusable-element"),S.selector=w.tagName+
".ephemeral-action-focusable-element");this.queue.push(S);kvi(this)};
sT.prototype.activate=function(H){var C=peo(this.store.getState());if(C){if(C==null?0:C.command)_.gC(C.command),this.store.dispatch(qH1(null));if(C==null?0:C.selector)C=document.querySelector(C.selector),_.h37(C);H.preventDefault()}};
var kvi=function(H){if(!peo(H.store.getState())&&H.queue.length){var C=H.queue.shift();C&&(H.previousAnnouncement===C.announcement&&(C.announcement+="\u00a0"),H.store.dispatch(qH1(C)),H.previousAnnouncement=C.announcement,H.timeoutId=setTimeout(function(){if(C.selector){var S;(S=document.querySelector(C.selector))==null||S.classList.remove("ephemeral-action-focusable-element")}H.store.dispatch(qH1(null));kvi(H)},C.durationMs))}};
sT.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(qH1(null));this.queue.length=0;this.timeoutId=void 0};
sT[F0]=[_.MU,_.AA(_.HS)];_.jX=new _.W4("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var h9t=window.AbortController||$N7;var n$i=new _.W4("AUTH_SERVICE_TOKEN");var QAZ=_.xC(["about:blank"]),X6p;var rYi=new _.W4("API_IFRAME_TOKEN"),Bsr=new _.W4("FETCH_FN_TOKEN"),DO9=new _.W4("PARSE_FN_TOKEN"),K2o=new _.W4("WINDOW_REQUEST_TOKEN"),tni=new _.W4("TEXT_DECODER_TOKEN");var djU;djU=new _.W4("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.L2i=new _.W4("MISC_UI_SHARED_FLAGS_TOKEN");var g$j=function(){};
g$j.prototype.getFlag=function(H){if(H.configType!==2)throw Error("xj");return UO9(H)};
var UO9=function(H){switch(H.flagType){case "bool":return _.E(H.flagName);case "int":return _.P7(_.YB(H.flagName));case "double":return _.YB(H.flagName);case "string":return _.z9(H.flagName);case "int32_list":return gR6(H.flagName);case "int64_list":return gR6(H.flagName).map(function(C){return _.P7(C)});
case "string_list":return _.mC(H.flagName);default:throw Error("yj");}};var w0=function(H,C,S){C=C===void 0?{}:C;aS.call(this,S===void 0?"uninitialized":S);this.env=H;this.transitions=[{from:"uninitialized",to:"initialized",action:this.init},{from:"initialized",to:"rendering",action:this.initialRender},{from:"rendering",to:"rendered",action:this.afterRenderImmediate},{from:"rendered",to:"after-render-deferred",action:this.afterRenderDeferred}];C.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=C.shouldWaitOnAsyncImmediate)};
_.G(w0,aS);w0.prototype.init=function(H){var C=this,S;return _.z(function(w){if(w.nextAddress==1)return C.processPluginOptions.shouldWaitOnAsyncImmediate?w.yield(H(C.env),2):(H(C.env),w.jumpTo(2));if(w.nextAddress!=4)return C.jobSet?w.yield(C.jobSet.completedResolver.promise,4):w.jumpTo(4);S=_.mN();S.parkOrScheduleJob(function(){C.transition("rendering")},10,"ci");
_.oT(w)})};
w0.prototype.initialRender=function(H){var C=this,S;return _.z(function(w){if(w.nextAddress==1)return C.processPluginOptions.shouldWaitOnAsyncImmediate?w.yield(H(C.env),2):(H(C.env),w.jumpTo(2));if(w.nextAddress!=4)return C.jobSet?w.yield(C.jobSet.completedResolver.promise,4):w.jumpTo(4);S=_.mN();S.parkOrScheduleJob(function(){C.transition("rendered")},10,"cr");
_.oT(w)})};
w0.prototype.afterRenderImmediate=function(H){var C=this,S;return _.z(function(w){if(w.nextAddress==1)return C.processPluginOptions.shouldWaitOnAsyncImmediate?w.yield(H(C.env),2):(H(C.env),w.jumpTo(2));if(w.nextAddress!=4)return C.jobSet?w.yield(C.jobSet.completedResolver.promise,4):w.jumpTo(4);S=_.mN();S.parkOrScheduleJob(function(){C.transition("after-render-deferred")},10,"carml");
_.oT(w)})};
w0.prototype.afterRenderDeferred=function(H){var C=this;return _.z(function(S){H(C.env);_.oT(S)})};_.np("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var R9r={},IAR=(R9r.rendered={priority:0,callback:function(H){Mj7(H.injector.resolve(Qm))}},R9r);var V6u=new _.W4("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),aA_=new _.W4("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var xO9=function(H){this.callbackFnMap=H;this.configMap={}};
xO9.prototype.handleResponse=function(H){var C;if(H=(C=H.responseContext)==null?void 0:C.serviceTrackingParams)for(C=_.Z(H),H=C.next();!H.done;H=C.next()){H=H.value;var S=H.params,w=H.service;if(S&&w){this.configMap[w]||(this.configMap[w]=new Lzi);H=this.configMap[w];var A=void 0,J=(A=this.callbackFnMap)==null?void 0:A[w];S=_.Z(S);for(w=S.next();!w.done;w=S.next())A=w.value,w=A.key,A=A.value,w&&A&&(H.set(w,A),J&&J(w,A))}}};
xO9.prototype.getConfig=function(H){return this.configMap[H]||void 0};
xO9[F0]=[_.AA(aA_)];var HXt=!1,K5Z=0,nKD=null,DVD=null;var iXj=new _.W4("NETWORK_SLI_TOKEN");var CR9=function(H,C,S,w,A){this.networkSli=H;this.fetchFn=C;this.parseFn=S;this.requestFn=w;this.JSC$18540_textDecoder=A};
CR9.prototype.fetch=function(H,C,S){var w=this,A,J,c;return _.z(function(Y){A=Sli(w,H,C);c=(J=w.fetchFn)!=null?J:fetch;return Y.return(c(A).then(function(M){return w.handleResponse(M,S)}).catch(function(M){_.Bn(M);
if((S==null?0:S.expectJsonStrict)&&M instanceof Ii&&M.errorType===1)return Promise.reject(M)}))})};
var yzd=function(H,C,S,w){var A,J,c,Y,M,m,W;return _.z(function(y){switch(y.nextAddress){case 1:return A=Sli(H,C,S),_.en(y,2),y.yield(fetch(A),4);case 4:J=y.yieldResult;_.xB(y,3);break;case 2:throw _.Vx(y),new Ii(2,"Failed to parse streaming response",A.url);case 3:if(!J.redirected&&!J.ok)throw(c=H.networkSli)==null||c.failure(),new _.X0("Streaming fetch request not ok",A.url);if(!J.body)throw new _.X0("No response body in streaming response",A.url);Y={};if(_.E("web_streaming_fast"))return M=J.body.getReader(),
y.return(spo(H,M,Y,w));m=J.body.pipeThrough(new TextDecoderStream).getReader();W=new _.fl;return y.return(jp9(H,m,W,xoE,Y,w))}})},Sli=function(H,C,S){if(H.networkSli){var w=_.EE(_.Fw(C,"key"))||"/UNKNOWN_PATH";
H.networkSli.start(w)}w=S;_.E("wug_networking_gzip_request")&&(w=wIw(S));var A;return new ((A=H.requestFn)!=null?A:window.Request)(C,w)},spo=function(H,C,S,w){var A,J,c,Y,M,m,W,y,N,b,u,O,d,p,k,R,L,t,g,ii,FW,cZ,eZ,ND;
return _.z(function(bi){switch(bi.nextAddress){case 1:A=H.JSC$18540_textDecoder?new H.JSC$18540_textDecoder("utf-8"):new TextDecoder("utf-8"),J=[],c=0,Y=function(){if(J.length===1)return J[0];for(var pU=new Uint8Array(c),O$=0,R0=_.Z(J),m1=R0.next();!m1.done;m1=R0.next())m1=m1.value,pU.set(m1,O$),O$+=m1.length;return pU},_.en(bi,2,3);
case 5:return bi.yield(C.read(),8);case 8:M=bi.yieldResult;m=M.value;if(W=M.done)return c>0&&(y=Y(),N=y.indexOf(123),b=y.lastIndexOf(125),N!==-1&&b!==-1&&b>N&&(u=y.subarray(N,b+1),O=JSON.parse(A.decode(u)),xoE(S,O),d=void 0,(d=w)==null||d(S,O))),p=void 0,(p=H.networkSli)==null||p.success(),bi.return(S);J.push(m);c+=m.length;k=Y();for(R=void 0;(R=k.indexOf(10))!==-1;){L=k.subarray(0,R);t=L.indexOf(123);g=L.lastIndexOf(125);if(t!==-1&&g!==-1&&g>t){ii=L.subarray(t,g+1);try{FW=JSON.parse(A.decode(ii)),
xoE(S,FW),cZ=void 0,(cZ=w)==null||cZ(S,FW)}catch(pU){throw new Ii(1,"Failed to parse streaming response object",A.decode(ii));}}eZ=k.subarray(R+1);J=[eZ];c=eZ.length;k=eZ}bi.jumpTo(5);break;case 3:_.Gv(bi);C.releaseLock();_.lf(bi,0);break;case 2:ND=_.Vx(bi);if(ND instanceof Ii)throw ND;throw new Ii(1,"Failed to process streaming response");}})},jp9=function(H,C,S,w,A,J){var c,Y,M,m,W,y,N,b,u;
return _.z(function(O){if(O.nextAddress==1)return O.yield(C.read(),2);c=O.yieldResult;Y=c.value;if(M=c.done)return(m=H.networkSli)==null||m.success(),O.return(A);try{W=S.parse(Y)}catch(d){throw new Ii(1,"Failed to parse streaming response",Y);}if(W!=null)for(y=_.Z(W),N=y.next();!N.done;N=y.next())b=N.value,w(A,b),u=void 0,(u=J)==null||u(A,b);return O.return(jp9(H,C,S,w,A,J))})};
CR9.prototype.handleResponse=function(H,C){var S,w=(S=this.parseFn)!=null?S:JSON.parse;S=H.text().then(function(A){if((C==null?0:C.jspbResponseCtor)&&H.ok)return LT6(C.jspbResponseCtor,A);A=A.replace(")]}'","");if((C==null?0:C.expectJsonStrict)&&A)try{var J=w(A)}catch(Y){throw new Ii(1,"JSON parsing failed after fetch");}var c;return(c=J)!=null?c:w(A)});
H.redirected||H.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),S=S.then(function(A){_.Bn(new _.X0("Error: API fetch failed",H.status,H.url,A));return Object.assign({},A,{errorMetadata:{status:H.status}})}));
return S};
CR9[F0]=[_.AA(iXj),_.AA(Bsr),_.AA(DO9),_.AA(K2o),_.AA(tni)];var wji=new _.W4("NETWORK_MANAGER_TOKEN");var Abj=[1,2,4,8,16,30],FDK=function(H){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=H.maxTimeMs;this.maxFrameCount=H.maxFrameCount===void 0?Math.ceil(60*H.maxTimeMs/1E3):H.maxFrameCount;H=_.Z(Abj);for(var C=H.next();!C.done;C=H.next())this.brokenFrameSummarizers.push(new Jbp(C.value/60*1E3))},ZXR=function(H){var C=H.frameCountInternal>=H.maxFrameCount;
return H.elapsedTimeMs>=H.maxTimeMs||C};
FDK.prototype.summarize=function(){for(var H=[],C=_.Z(this.brokenFrameSummarizers),S=C.next();!S.done;S=C.next())S=S.value,S=S.brokenFrameCount!==0?{severityMs:Math.round(S.targetFrameTimeMs),eventCount:S.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(S.averageDurationBetweenEventsMs)}:void 0,S&&H.push(S);return{summaries:H,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.JJ.Object.defineProperties(FDK.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 Jbp=function(H){this.targetFrameTimeMs=H;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.JJ.Object.defineProperties(Jbp.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var cb3=function(){};
cb3.prototype.start=function(H,C){var S=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var w=new FDK({maxTimeMs:H});this.monitor=w;this.lastSummaryInternal=void 0;this.metadataToLog=C;return new Promise(function(A){var J=function(c){if(c===void 0)S.stop(),A(void 0);else if(S.monitor!==w)c=Object.assign({},w.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),A(c);else{var Y=S.monitor;if(!ZXR(Y)){Y.frameCountInternal++;if(Y.prevTime===
void 0)Y.startTime=c;else for(var M=c-Y.prevTime,m=_.Z(Y.brokenFrameSummarizers),W=m.next();!W.done;W=m.next()){W=W.value;var y=W.currTimeMs;W.currTimeMs+=M;M>W.targetFrameTimeMs+2&&(W.brokenFrameCount++,W.timeOfFirstBrokenFrameMs===void 0&&(W.timeOfFirstBrokenFrameMs=y),W.timeOfLastBrokenFrameMs=y)}Y.prevTime=c}ZXR(S.monitor)?A(S.stop()):_.rT.addJob(J,5,0)}};
_.rT.addJob(J,5,0)})};
cb3.prototype.stop=function(H){if(!this.monitor)return this.lastSummaryInternal;var C=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(C.monitoringDurationMs){H=H!=null?H:this.metadataToLog;var S={droppedFramesSummary:C,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};H&&(S[H.type]=H.data);_.kI("manualSmoothnessMeasurement",S)}this.monitor=void 0;this.lastSummaryInternal=C;this.metadataToLog=void 0;return C};_.Yl_=new _.W4("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var z_r;z_r=function(H){this.JSC$18562_expiringStorage=new d4(H)};
_.M2j=function(H){if(_.tHW()&&(H=_.$dE(_.oa()+"::"+H)))return new z_r(H)};
z_r.prototype.set=function(H,C,S){S=S!==void 0?Date.now()+S:void 0;this.JSC$18562_expiringStorage.set(H,C,S)};
z_r.prototype.get=function(H){return this.JSC$18562_expiringStorage.get(H)};
z_r.prototype.remove=function(H){this.JSC$18562_expiringStorage.remove(H)};var qlR=new _.W4("SESSION_STORAGE");_.Aq=function(){};
_.Aq.getInstance=function(){var H=_.gh("ytglobal.storage_");H||(H=new _.Aq,_.AO("ytglobal.storage_",H));return H};
_.Aq.prototype.estimate=function(){var H,C,S;return _.z(function(w){H=navigator;return((C=H.storage)==null?0:C.estimate)?w.return(H.storage.estimate()):((S=H.webkitTemporaryStorage)==null?0:S.queryUsageAndQuota)?w.return(L5E()):w.return()})};
_.AO("ytglobal.storageClass_",_.Aq);var HGU=0;var AIp=!1;var Txr=_.xC(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),mHq=_.xC(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var q_t={"/":_.gH,"/?feature=ytca":_.gH,"/feed/downloads":_.uDi};var WDO=eBr.continuationCommandSelector,yn=function(H,C,S){this.JSC$18578_upliftPromise=H;this.store=C;this.JSC$18578_persistentStorePromiseAccessor=S};
yn.prototype.shouldPreferLocalResponse=function(H){return H.browseId==="FEdownloads"||H.browseId==="FEsmart_downloads"&&_.E("kevlar_modern_downloads_page")?!0:!1};
yn.prototype.localInnertubeResponse=function(H){var C=this;return _.z(function(S){return H.browseId==="FEdownloads"?_.E("kevlar_modern_downloads_page")?S.return(yb_(C)):S.return(Nxp(C)):H.browseId==="FEsmart_downloads"&&_.E("kevlar_modern_downloads_page")?S.return(bXr(C)):S.return(Promise.reject(Error("Aj")))})};
yn.prototype.canProvideFallbackResponse=function(){return!0};
yn.prototype.localFallbackInnertubeResponse=function(H){var C=this,S,w,A;return _.z(function(J){switch(J.nextAddress){case 1:return J.yield(C.JSC$18578_persistentStorePromiseAccessor(),2);case 2:S=J.yieldResult;if(H.browseId!=="SPaccount_downloads"||!S){J.jumpTo(3);break}return J.yield(y3u(S),4);case 4:if(w=J.yieldResult)return J.return(_.AN(w));case 3:return H.browseId==="FEwhat_to_watch"?J.return(El9(C)):(A=_.E("web_offline_continuation_automatic_retry")||_.E("web_offline_continuation_retry_button"))&&
H.continuation?J.return(e__(C)):J.return(uAr(C))}})};
var El9=function(H){var C;return _.z(function(S){if(S.nextAddress==1)return S.yield(H.JSC$18578_upliftPromise,2);C=_.xc6(H.store.getState().entities);return C.length?S.return(GV9(H,C)):S.return(uAr(H))})},Nxp=function(H){var C,S;
return _.z(function(w){if(w.nextAddress==1)return w.yield(H.JSC$18578_upliftPromise,2);if(w.nextAddress!=3)return C=f99([{offlineItemSectionRenderer:{}}]),w.yield(vli(H,C),3);S=w.yieldResult;S.onResponseReceivedActions=[eA("REFRESH_DOWNLOADS")];return w.return(S)})},yb_=function(H){var C,S,w,A,J,c,Y,M,m,W,y,N,b,u,O,d;
return _.z(function(p){if(p.nextAddress==1)return p.yield(H.JSC$18578_upliftPromise,2);if(p.nextAddress!=3)return C=H.store.getState(),S=C.entities,w=_.k6(S),A=_.hf(S),J=_.oeU(C),c=_.V8E(C),Y=_.O$D(C),M=_.CoV(S),m=_.X_(w),W=_.n8(S),y=_.wPw(S),N=_.QiE(C),b=_.tf(C),u={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.hyV(w,A,M,y,J,c,m,W,Y,N,b),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},O="",_.E("kevlar_modern_downloads_skip_downloads_title")||
(O=_.fL("DOWNLOADS",void 0,"Downloads")),p.yield(l99(H,u,O),3);d=p.yieldResult;d.onResponseReceivedActions=[eA("REFRESH_DOWNLOADS")];return p.return(d)})},bXr=function(H){var C,S,w,A,J,c,Y,M,m;
return _.z(function(W){if(W.nextAddress==1)return W.yield(H.JSC$18578_upliftPromise,2);if(W.nextAddress!=3)return C=H.store.getState(),S=C.entities,w=_.k6(S),A=_.X_(w),J=_.n8(S),c={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.reE(w),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},Y=_.fL("SMART_DOWNLOADS",void 0,"Smart downloads"),M=pzW(A,J),W.yield(l99(H,c,Y,M),3);m=W.yieldResult;m.onResponseReceivedActions=
[eA("REFRESH_DOWNLOADS")];return W.return(m)})},uAr=function(H){var C,S;
return _.z(function(w){if(w.nextAddress==1)return w.yield(wR(H.JSC$18578_upliftPromise,H.store),2);C=w.yieldResult;S=f99([q76(C)]);return w.return(vli(H,S))})},e__=function(H){var C,S,w,A;
return _.z(function(J){if(J.nextAddress==1)return C={},S=WDO(H.store.getState()),_.rC(C,_.UU,S),J.yield(wR(H.JSC$18578_upliftPromise,H.store,C,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);w=J.yieldResult;A={};_.rC(A,_.bq7,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:w}}}],targetId:"browse-feedFEwhat_to_watch"});return J.return({responseContext:{},onResponseReceivedActions:[A]})})},f99=function(H){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:H}}}}]}}},GV9=function(H,C){var S,w;
return _.z(function(A){var J={contents:uK(C)};S=J&&J.contents?J:{};_.E("kevlar_modern_downloads_page")&&(S=Object.assign({},_.BrW(C),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));w={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:S}}}]}};return A.return(vli(H,w))})},vli=function(H,C){var S,w;
return _.z(function(A){if(A.nextAddress==1)return A.yield(H.JSC$18578_persistentStorePromiseAccessor(),2);if(A.nextAddress!=3)return S=A.yieldResult,A.yield(JN(S),3);w=A.yieldResult;return A.return({responseContext:{},contents:C,topbar:w})})},l99=function(H,C,S,w){var A,J;
return _.z(function(c){if(c.nextAddress==1)return c.yield(H.JSC$18578_persistentStorePromiseAccessor(),2);if(c.nextAddress!=3)return A=c.yieldResult,c.yield(JN(A),3);J=c.yieldResult;var Y=c.return;var M=S;var m=w;M=M===void 0?"":M;m=m===void 0?"":m;M={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:M}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.fL("SETTINGS",void 0,"Settings"),accessibilityText:_.fL("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:_.F_("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:m}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:M};
return Y.call(c,{responseContext:{},contents:C,topbar:J,header:{pageHeaderRenderer:M}})})};var V2p=function(){this.moduleRegistry={};this.fetchCount=0};
V2p.prototype.isFetching=function(){return this.fetchCount>0};
var Kd=function(H,C){H.moduleRegistry[C.toString()]={asyncId:C,isFetching:!1};return H};
V2p.prototype.JSC$18589_loadModules=function(){for(var H=this,C=new Map,S=[],w=_.Z(_.tc.apply(0,arguments)),A=w.next();!A.done;A=w.next()){A=A.value;var J=this.moduleRegistry[A];J?J.resolver?C.set(A,J.resolver):(J.resolver=new _.N5,C.set(A,J.resolver),S.push(J.asyncId),J.isFetching=!0):(J=new _.N5,C.set(A,J),J.resolve(void 0))}S.length&&(this.fetchCount+=1,_.rL(_.n$.getMultipleAsync.apply(_.n$,_.k$(S)).then(function(c){for(var Y=0;Y<S.length;Y++){var M=c[Y],m=H.moduleRegistry[S[Y].toString()];m.isFetching=
!1;m.resolver.resolve(M)}}).catch(function(c){for(var Y=_.Z(S),M=Y.next();!M.done;M=Y.next()){M=M.value;
var m=H.moduleRegistry[M.toString()];m.resolver=void 0;m.isFetching=!1;C.get(M.toString()).reject(c)}}),function(){--H.fetchCount}));
return Promise.all([].concat(_.k$(C.values())).map(function(c){return c.promise}))};_.tN=new _.W4("MODULE_REGISTRY_TOKEN");var ol_={},OXt=(ol_.rendered={priority:0,callback:function(H){a:{var C=void 0;try{var S;b:{if(_.BzV()){var w=_.Pai(_.oa()+"::pom");if(w){var A=new Sx(w);break b}}A=void 0}var J=(S=A)==null?void 0:S.get("role_text");if(!J)break a;C={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:J}]}}}}}}catch(M){}C&&H.injector.resolve(_.ZQ).resolveCommand(C)}try{var c=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(c){var Y=JSON.parse(c);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
Y&&H.injector.resolve(_.ZQ).resolveCommand(Y)}}catch(M){}}},ol_);var Xjp,Qpo={},dHO=(Qpo.initialized={priority:10,callback:function(){Xjp=lz()}},Qpo.rendering={callback:function(H){var C;
return _.z(function(S){if(S.nextAddress==1)return S.yield(Xjp,2);C=S.yieldResult;if(!C.endpoint)throw Error("Cj`"+_.s$.location.href);Xn(H,C);_.oT(S)})}},Qpo);var PRK={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/rq-implicit-test-rule-widget/,weight:0},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.k$(_.E("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(H){var C=H.stack;if(C.includes("chrome://")||C.includes("chrome-extension://")||H.message.includes("chrome-extension://")||C.includes("moz-extension://")||C.includes("local.adguard.org")||C.includes("auctioneer3.50million.club")||C.includes("youtubedownloader")||
C.includes("youtube_home_page")||C.includes("is_youtube_video_no_longer_available")||C.includes("switchScreenSizeHack")||C.includes("yt_main_big_banner.js")||C.includes("YouTubeCenter.js")||C.includes("/mytube.js")||C.includes("JSON.parseWrapper")||C.includes("/inj_js/common.js")||C.includes("firebug-lite")||C.includes(".repl.co/")||C.includes("linkfix")||C.includes("playAfterAd")||H.message.includes("Access is denied for this document")&&C.includes("<anonymous>")||H.fileName==="user-script"||H.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
C.includes("<anonymous>"))return!0;if(C.includes("https://www.youtube.com"))return!1;H=C.split("\n");if(!H.length)return!1;if(H.length<=3&&C.includes("s.onloadeddata"))return!0;C=0;for(var S=_.Z(H),w=S.next();!w.done;w=S.next())w=w.value,(w.includes("https://")||w.includes("http://"))&&C++;return C/H.length>.95},
weight:0},{callback:function(H){return H.message==="Unknown Error"&&H.name.indexOf("NS_")===0},
weight:100},{callback:function(H){if(!_.My)return!1;var C=H.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||H.message.includes("available to complete this operation"),S=H.stack.includes("webcomponents")&&H.message==="Object doesn't support this action";H=H.message.includes("object that does not implement interface Element");return C||S||H},
weight:0},{callback:function(H){return H.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(H){return H.message==="Operation is not supported"&&(H.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(H){return H.stack.includes("eval code (eval (code:1:1)")||H.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(H){return H.message.includes("Permission denied")&&H.stack.includes("this.domHandler")?!0:H.name.includes("TypeError")&&H.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(H){if(!H.stack)return!1;var C=H.stack.trim().split("\n");C.length&&C[0].endsWith("Error: "+H.message)&&C.shift();C.length&&C[C.length-1].includes("at window.onerror (")&&C.pop();if(!C.length)return!0;if(H.message==="Script error.")return C[0].includes("www.youtube.com")||C.length>=2&&C[0].startsWith("at new")&&C[1].startsWith("at window.onerror");if(H.message==="Unexpected token")return!0;H=_.Z(C);for(C=H.next();!C.done;C=H.next())if(C=C.value,!(C.includes("<anonymous>")||
C.startsWith("load@")||C.startsWith("global code@")||C.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(H){return H.message==="Cannot read property 'experiments'"&&H.stack.includes("/s/player/")},
weight:500},{callback:function(H){return H.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(H){return H.stack.includes("/embed.js")?(H.params&&H.params&&(H.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.E("use_error_suppression"))var H=_.rh("SUPPRESS_CLIENT_ERRORS",!1);else{if(H=_.yK)H=/Chrome\/(\d+)/.exec(_.WZ()),H=(H?parseFloat(H[1]):NaN)>=66;H=!(H||_.Wu&&_.mU(65)||_.tA&&_.mU(12.1)||jk&&_.mU(79))}return H},
weight:500}]};var $Hr={},pj3=($Hr.initialized={priority:10,callback:function(H){H.injector.addProvider({provide:YKb,useValue:H.root});H.injector.addProvider({provide:j23,useValue:OnU});H.injector.addProvider({provide:wV3,useValue:PRK});var C={};H.injector.addProvider((C.provide=Ac3,C.useFactory=function(S,w){return function(){XDD(S,w)}},C[F0]=[j23,
wV3],C));H.injector.addProvider({provide:UI,useClass:UI})}},$Hr);var kVR={},h_p=(kVR.initialized={priority:3,callback:function(){var H;if(H=lyE()){H=H.replace("/",".");var C=_.VN();C.set("tz",H);C.save();H=!0}else H=!1;H||(H=_.VN(),H.set("utco",-Math.floor((new Date).getTimezoneOffset())),H.save())}},kVR);var nlq={},rb9=(nlq.initialized={priority:10,callback:function(H){H.injector.resolve(UI).start();H=_.Ss();var C=_.Bh("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.Bh("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.Bh("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.Bh("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.MI(_.ciZ(),{mainAppWeb:Object.assign({},H,{pageType:C})});_.MI(zJ6(),{mainAppWeb:Object.assign({},H,{pageType:C})});
_.MI(MvE(),{mainAppWeb:H});_.MI(qS$(),{mainAppWeb:H});fVW(function(){_.qI(MvE(),"FAILURE");_.qI(qS$(),"FAILURE")});
bG0();ExV();XqE()}},nlq);var Bxo={},DHr=(Bxo.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.DR("dl"),_.mN().processSignal("pcl");else{var H=function(){_.DR("dl");_.mN().processSignal("pcl");window.removeEventListener("load",H)};
window.addEventListener("load",H)}}},Bxo);var KDq={},t2R=(KDq.rendering={priority:0,callback:function(){var H=_.mN();H.parkOrScheduleJob(function(){H.processSignal("eocs")},10,"eor",5E3)}},KDq);var LD3=function(){};
_.G(LD3,WB);
LD3.prototype.resolveCommand=function(H,C){var S,w,A,J,c,Y,M,m;return _.z(function(W){A=(S=_.e(H,_.$J_))==null?void 0:(w=S.dialog)==null?void 0:w.commentReplyDialogRenderer;if(!A)throw new _.X0("No dialog in createCommentReplyDialogEndpoint");c=(J=C.form)==null?void 0:J.event;if(!c)throw new _.X0("Event not passed in when resolving command");Y=_.Z(c.composedPath());for(M=Y.next();!M.done;M=Y.next())if(m=M.value,m.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||m.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return m.showReplyDialog(A),W.return();
_.oT(W)})};var Jq=function(){};
_.G(Jq,WB);Jq.prototype.resolveCommand=function(H){var C,S,w;return _.z(function(A){if(A.nextAddress==1)return C=_.e(H,i37),(S=C)!=null&&S.externalChannelId?A.yield((0,_.LRE)("NSzT5"),2):A.return();w=_.glR;return A.yield(w(C.externalChannelId),0)})};var Ff=function(H){this.pageRequestService=H;this.JSC$18607_prefetchCoordinator=to3()};
_.G(Ff,WB);Ff.prototype.resolveCommand=function(H){var C=this,S,w,A,J;return _.z(function(c){if(c.nextAddress==1){S=_.e(H,TH1);if((w=S)==null||!w.taskId)throw Error("Dj");A=S.taskId;_.en(c,2);return c.yield(_.qRU(C.pageRequestService,H,{},"").then(function(Y){if(!Y)throw Error("Ej");},function(Y){throw Error("Fj`"+Y);
}),4)}if(c.nextAddress!=2)return U9j(C.JSC$18607_prefetchCoordinator,A),_.xB(c,0);
J=_.Vx(c);nY(C.JSC$18607_prefetchCoordinator,A,J);_.oT(c)})};
Ff[F0]=[vf];var ZP=function(H,C){this.innertubeTransportService=H;this.JSC$18611_commandHandler=C};
_.G(ZP,WB);ZP.prototype.resolveCommand=function(H){var C=this,S,w,A;return _.z(function(J){if(J.nextAddress==1){S=_.e(H,qei);if(S.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||S.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")w=S.boolValue?2:1,_.l3.getInstance().setState(w,!0,!0);return J.yield(_.ir(C.innertubeTransportService,H),2)}A=J.yieldResult;UHi(C,A);_.oT(J)})};
var UHi=function(H,C){C.actions&&C.actions.forEach(function(S){H.JSC$18611_commandHandler.resolveCommand(S)})};
ZP[F0]=[_.Lf,_.ZQ];var cT={},R_i=(cT.addToPlaylistEndpoint=Jf(ZH),cT.addToToastAction=Jf(mX),cT.adsControlFlowOpportunityReceivedCommand=Jf(t2),cT.audioTrackSelectActionCommand=Jf(GE),cT.backgroundAudioPlaybackCommand=Jf(fB),cT.captionLanguageSelectActionCommand=Jf(vO),cT.captionPickerEndpoint=Jf(lS),cT.changeMiniAppPlayStateCommand=Jf(cO),cT.changeTimelyActionVisibilityCommand=Jf(T3),cT.channelCreationFormEndpoint=Jf(s0),cT.clearLocationCommand=Jf(FI),cT.clearUrlParamCommand=Jf(YZ),cT.copyLinkCommand=Jf($Z),cT.copyTextEndpoint=
Jf(Uh),cT.createCommentReplyDialogEndpoint=MB$(LD3),cT.createPlaylistServiceEndpoint=Jf(pB),cT.dismissDialogEndpoint=Jf(MG),cT.dismissPlayerOverlayCommand=Jf(o3),cT.entityUpdateCommand=Jf(ID),cT.feedbackEndpoint=Jf(HO),cT.getAnswerCommand=Jf(iro),cT.getPaymentsClientTokenCommand=Jf(NF),cT.getTranscriptEndpoint=Jf(Wk),cT.googlePaymentBillingCommand=Jf(b_),cT.googlePaymentPurchaseManagerCommand=Jf(EG),cT.hideEngagementPanelEndpoint=Jf(qG),cT.hideSheetCommand=Jf(TE),cT.hideSnackbarCommand=Jf(Fk),cT.insertRichSectionCommand=
Jf(w8),cT.listMutationCommand=Jf(As),cT.logGtmCommand=Jf(jY),cT.notifyDropdownOptionSelectedCommand=Jf(zE),cT.openAdAllowlistInstructionCommand=Jf(_.Ly),cT.openOnePickAddVideoModalCommand=Jf(kZ),cT.persistSubscriptionsDisplayPreferencesCommand=Jf(KB),cT.pingingEndpoint=Jf(gY),cT.playlistEditEndpoint=Jf(nB),cT.playlistVotingRefreshPopupCommand=Jf(r8),cT.profileCardCommand=Jf(Ky),cT.refreshPanelEndpoint=Jf(ms),cT.saveImageToDeviceEndpoint=Jf(RD),cT.scrollToSectionEndpoint=MB$(Cpi),cT.seekToVideoTimestampCommand=
Jf(O0),cT.selectCountryCommand=Jf(ts),cT.setCookieCommand=Jf(LB),cT.setLocalStorageCommand=Jf(ck),cT.setPrefStorageEntryCommand=Jf(U0),cT.setSettingEndpoint=Jf(ZP),cT.sfvAudioItemPlaybackCommand=Jf(XI),cT.shareImageCommand=Jf(R3),cT.sharingProviderDataCommand=Jf(I3),cT.showAudioTrackPickerActionCommand=Jf(Qw),cT.showCaptionLanguageSelectActionCommand=Jf(d8),cT.showCreatorChatbotEngagementPanelCommand=Jf(Jq),cT.showDialogCommand=Jf(NG),cT.showEngagementPanelEndpoint=Jf(bS),cT.showSheetCommand=Jf(E0),
cT.showSnackbarCommand=Jf(ZE),cT.showTransientPlayerScrimOverlayCommand=Jf(PO),cT.submitFormWithValidationFlowCommand=Jf(SY),cT.talkToRecsDeselectCommand=Jf(Yh),cT.talkToRecsNextCommand=Jf(z3),cT.talkToRecsSelectCommand=Jf(MF),cT.talkToRecsUpdateTextCommand=Jf(qF),cT.toggleEngagementPanelCommand=Jf(eY),cT.undoFeedbackEndpoint=Jf(CB),cT.updateEngagementPanelContentCommand=Jf(uS),cT.updateUrlParamCommand=Jf(yJ),cT.verifyCommand=Jf(s0),cT.webNativeShareCommand=Jf(a3),cT.webSubmitFormCommand=Jf(BO),cT.ACK_PLAYABLES_3P_DATA_CONSENT=
Jf(xZ),cT.CANCEL_NAVIGATION=Jf(Hk),cT.COPY_SHARE_URL=Jf(i_),cT.MINI_APP_EXIT_DIALOG_SEEN=Jf(S0),cT.MINI_APP_OPEN_URL=Jf(CA),cT.REQUEST_MINI_APP_FULLSCREEN=Jf(sG),cT.RESUME_NAVIGATION=Jf(j0),cT.SHARE_PLAYABLE_WITH_HIGH_SCORE=Jf(wf),cT.TELL_US_WHY=Jf(iS),cT);_.E("web_enable_prefetching_videos_on_home")&&(R_i.prefetchWatchCommand=Jf(Ff),R_i.registerTasksCommand=Jf(B0));_.E("enable_share_panel_navigation_logging_fix_on_web")&&(R_i.shareEntityServiceEndpoint=Jf(WO));var fTP=Object.assign({},R_i);var I9t={},a9i=(I9t.initialized={priority:10,callback:vxi},I9t);var xHi={},H6r=(xHi.initialized={callback:function(H){var C={},S={};DMu().install((C.document_disposed={callback:function(){_.E("finalize_all_timelines")?Qxp():hM();rDZ("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.sc7();var w=H.injector.resolve(UI);w.intervalId!==void 0&&(w.intervalId&&_.rT.cancelJob(w.intervalId),w.intervalId=void 0,--w.currentPartitionIndex,w=iIP(w),w>0&&ZT7({mainAppWeb:_.Ss(),survivalSli:{partitionMinute:w,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));CUM(ye);Nc!=null&&
Nc.flush();q5&&q5.snapshotAndFlush();w=_.Z(NtW.values());for(var A=w.next();!A.done;A=w.next())A.value.snapshotAndFlush()}},C),(S.flush_logs={callback:function(){_.ht()}},S))}},xHi);var i6R={},CdO=(i6R.rendered={priority:0,callback:function(){var H=new YF7;H.increment("STARTED");if(_.rh("LOGGED_IN")&&!_.rh("IS_DBSC",!1)&&_.rh("SERVER_VERSION")!=="test"&&_.rh("SERVER_VERSION")!=="dev"&&!L1d()&&!t71()){H.increment("EXECUTING");var C=document.createElement("iframe");C.style.display="none";_.YMi(C,2,_.D4("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.rh("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(C);H.increment("DONE")}}},
i6R);var SpO={},s7i=(SpO.rendered={callback:function(){to3().resume()}},SpO);var j7O={acknowledgeChannelTouStrikeCommand:XG(ag),addToPlaylistServiceEndpoint:XG(i$),addToPlaylistEndpoint:XG(i$),addUpcomingEventReminderEndpoint:XG(Yw),browseEndpoint:XG(Voj),channelCreationFormEndpoint:XG(KA),channelCreationServiceEndpoint:XG(tz),claimLegacyYoutubeChannelEndpoint:XG(OG),clearSearchHistoryEndpoint:XG(jN),clearWatchHistoryEndpoint:XG(wk),commerceActionCommand:QL(Em),createBackstagePostEndpoint:XG(G3),createBroadcastCommand:XG(zi),createCommentEndpoint:XG(nA),createCommentReplyEndpoint:XG(hz),
createLiveChatPollEndpoint:XG(Mo),createPlaylistServiceEndpoint:XG(CY),crossAccountChannelTransferEndpoint:XG(Fu),deleteLiveChatMessageCommand:XG(qo),deletePlaylistEndpoint:XG(SP),deleteVideoEndpoint:XG(W0),dismissalEndpoint:XG(xh),feedbackEndpoint:XG(Hs),flagEndpoint:XG(FS),getAccountSwitcherEndpoint:XG(JH),verifyCommand:XG(u_),getAccountsListInnertubeEndpoint:XG(cs),getCommentsFromInboxCommand:XG(pb),getDownloadActionCommand:XG(Kb),getFlowCommand:QL(sz),getKidsBlocklistPickerCommand:XG(Z_),getNotificationMenuEndpoint:XG(X3j),
getPaymentInstrumentsParamsCommand:XG(l$),getPaymentsClientTokenCommand:QL(Em),getPdgBuyFlowCommand:XG(xw),getReportFormEndpoint:XG(c0),getSearchInVideoCommand:XG(MM),getAnswerCommand:XG(zW),getSurveyCommand:XG(mZ),getTranscriptEndpoint:XG(NM),getPostVideoPreviewEndpoint:XG(vk),decorateMessageEndpoint:XG(fA),likeEndpoint:XG(LA),liveChatActionEndpoint:XG(yR),liveChatEndpoint:XG(Ws),liveChatItemContextMenuEndpoint:XG(Ti),liveChatPurchaseMessageEndpoint:XG(No),liveChatReplayEndpoint:XG(mt),manageLiveChatUserEndpoint:XG(Ez),
metadataUpdateCommand:XG(Ps),moderateLiveChatEndpoint:XG(eN),modifyChannelNotificationPreferenceEndpoint:XG(rk),notificationOptOutEndpoint:XG(Bs),openSuperStickerBuyFlowCommand:XG(b8),performCommentActionEndpoint:XG($h),playlistEditEndpoint:XG(jP),playlistEditorEndpoint:XG(sm),recordNotificationInteractionsEndpoint:XG(DF),reelWatchEndpoint:XG(wq),refreshPanelEndpoint:XG(Lb),removeUpcomingEventReminderEndpoint:XG(Oz),resolveLocationCommand:XG(dk),revealBusinessEmailCommand:XG(Xk),searchEndpoint:XG(_.QOp),
sendLiveChatMessageEndpoint:XG(Xu),sendLiveChatVoteEndpoint:XG(QR),setSettingEndpoint:XG(gf),shareEntityServiceEndpoint:QL(Ig),sharingProviderDataCommand:XG(TW),showEngagementPanelEndpoint:XG(gk),showMoreDrawerCommand:XG(R1),showSheetCommand:XG(I1),showDialogCommand:XG(Uz),subscribeEndpoint:XG(UG),transcriptSubmitCaptionCorrectionCommand:XG(yT),undoFeedbackEndpoint:XG(Cb),unsubscribeEndpoint:XG(Rg),updateBackstagePostEndpoint:XG(VJ),updateCommentEndpoint:XG(Bk),updateCommentReplyEndpoint:XG(rf),updateCommentsSettingsEndpoint:XG(DE),
updateCreatorChannelInnertubeCommand:XG(df),updateKidsBlacklistEndpoint:XG(Y0),updateEngagementPanelContentCommand:XG(a1),updatePdgFeatureEnablementCommand:XG(H0),updatedMetadataEndpoint:XG($w),validateChannelHandleCommand:XG(Pk),updateChannelPageSettingsEndpoint:XG(QJ),verifyAgeEndpoint:XG(SN),watchEndpoint:QL(t$),whitelistEditEndpoint:XG(b$),ypcCancelRecurrenceEndpoint:XG(eP),ypcCompleteTransactionEndpoint:XG(u$),ypcFixInstrumentEndpoint:XG(fY),ypcGetCartEndpoint:XG(GW),ypcGetOffersEndpoint:XG(v0),
ypcHandleTransactionEndpoint:QL(VT),ypcLogWalletAnalyticDataEndpoint:XG(oz),ypcOffersEndpoint:XG(Om),ypcPauseSubscriptionCommand:XG(XS),ypcRedeemCodeEndpoint:XG(QT),ypcResumeSubscriptionCommand:XG(dq),ypcUpdateFopEndpoint:XG(fY)},Ys={},wli=(Ys.GET_ACCOUNT_MENU=XG(ZF),Ys.GET_NOTIFICATIONS_MENU=XG(Orp),Ys.GET_NOTIFICATIONS_INBOX=XG(kw),Ys.GET_UNSEEN_NOTIFICATION_COUNT=XG(nb),Ys.GET_USER_MENTION_SUGGESTIONS=XG(l_),Ys.LOAD_GUIDE=XG(otr),Ys.SUBMIT_FEEDBACK=XG(i8),Ys),zw={},Aki=(zw.CONTINUATION_REQUEST_TYPE_BROWSE=
XG(og),zw.CONTINUATION_REQUEST_TYPE_SEARCH=XG(qM),zw.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=XG(gQ),zw.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=XG(AH),zw.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=XG(kh),zw.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=XG(pA),zw.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=XG(JR),zw.CONTINUATION_REQUEST_TYPE_GET_PANEL=XG(tH),zw),JkO={player:QL(t$),watchNext:XG(L$)},Fmj={player:QL(t$),reelItemWatch:XG(wq),reelWatchSequence:XG(AR)},Z6O={watchEndpoint:QL(Ue)},ckO=
{commandEndpointMap:j7O,signalEndpointMap:wli,continuationEndpointMap:Aki,watchEndpointMap:JkO,reelWatchEndpointMap:Fmj,streamingEndpointMap:Z6O};var Yp_,zz9,MmO;_.qpO=((zz9=(Yp_=window).matchMedia)==null?void 0:(MmO=zz9.call(Yp_,"(prefers-reduced-motion: reduce)"))==null?void 0:MmO.matches)||!document.startViewTransition;var TS_={},mxO={disableAllTransitions:_.qpO,ignoredErrors:(TS_.DOCUMENT_HIDDEN=!0,TS_.WINDOW_SIZE_CHANGED=!0,TS_.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,TS_),transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["lockup-to-watch",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["watch-next-appears",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:200}}],["learning-journey",{defaultViewTransitionOptions:{shouldWrap:!0,
skipTransitionTimeoutMs:600}}]])};var Wmj=_.xC("\n          :root {\n            --ytd-vtm-exit-ms: ,ms;\n            --ytd-vtm-wait-ms: ,ms;\n            --ytd-vtm-enter-ms: ,ms;\n            --ytd-vtm-watch-exit-ms: ,ms;\n            --ytd-vtm-watch-wait-ms: ,ms;\n            --ytd-vtm-watch-enter-ms: ,ms;\n          }\n      ".split(",")),yki=function(H){this.viewTransitionCoordinator=H;this.isBrowseTransitionEnabled=_.z9("web_page_transition_type")==="slide";this.isLockupToWatchTransitionEnabled=_.E("web_thumbnail_to_watch_transition");
this.isLockupThumbnailRegistrationEnabled=_.E("web_thumbnail_to_watch_transition_register_thumbnail");this.isLearningJourneyTransitionEnabled=_.E("enable_plj_landing_page");this.lockupToWatchPlayerTransitionType=_.z9("web_thumbnail_to_watch_player_transition_type");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;this.registerRootElement();if(this.isAnyTransitionEnabled){H=
_.YB("web_page_transition_exit_ms");var C=_.YB("web_page_transition_wait_ms"),S=_.YB("web_page_transition_enter_ms"),w=_.YB("web_page_transition_watch_exit_ms"),A=_.YB("web_page_transition_watch_wait_ms"),J=_.YB("web_page_transition_watch_enter_ms");if(!isNaN(H)||!isNaN(C)||!isNaN(S))if(H=h_i(Wmj,H,C,S,w,A,J))C=document.createElement("style"),C.textContent=mOU(H),document.head.appendChild(C)}};
yki.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var H={};this.viewTransitionCoordinator.registerElement(document.documentElement,(H.slide="root-slide",H["lockup-to-watch"]="root-lockup-to-watch",H["learning-journey"]="root-learning-journey",H))}};
_.o8Y=function(H,C){H.isLockupToWatchTransitionEnabled&&H.isLockupThumbnailRegistrationEnabled&&(H.registeredLockupThumbnail?H.lockupThumbnailRegisteredFromWatchEndpoint?_.Bn(new _.X0("Lockup thumbnail registration order is incorrect.")):_.Bn(new _.X0("Lockup thumbnail already registered.")):(H.registeredLockupThumbnail=C,_.NSi(H,C)))};
_.NSi=function(H,C){var S={};H.viewTransitionCoordinator.registerElement(C,(S["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",S),!0)};
yki[F0]=[jTj];var lmZ={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 oxW=["videoPrimaryInfoRenderer","title"],OGi=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var b63;b63=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.EJi=_.n(function(H){H=_.FH(H,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var C=H.data,S=H.playlistData,w=H.expanded,A=H.onExpandClick,J=H.isReadyToResume,c=function(){var W;return!((W=S())==null||!W.contents)},Y=function(){var W=S();
return W&&W.totalVideos&&W.currentIndex!==void 0?W.currentIndex+1+" / "+W.totalVideos:""};
H=_.um(function(){_.Mm(_.JA().resolve(_.Df));return!1});
var M=_.um(function(){c()&&A&&A()}),m={};
return _.q("ytd-miniplayer-info-bar",{class:_.eJ("ytdMiniplayerInfoBarHost",(m.ytdMiniplayerInfoBarHasPlaylistData=c,m)),"on:click":M},_.q("div",{class:"ytdMiniplayerInfoBarContent"},_.q("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":H},_.q(_.uZ,{text:function(){var W=C();var y=S();if(y==null?0:y.contents){var N;W=(N=_.khE(y))==null?void 0:N.title}else W=W==null?void 0:W.miniplayerTitle;return X2u(W)},
noEndpoints:!0,ellipsisTruncate:!0})),_.q("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.q(_.T,{cond:J,then:function(){return _.q(MqW,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:b63})}}),_.q("h1",null,_.q(_.uZ,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var W=C();var y=S();W=J()?{simpleText:_.fL("CONTINUE_WATCHING",void 0,"Continue watching")}:(y==null?0:y.contents)?y.titleText:W==null?void 0:W.miniplayerSubtitle;return X2u(W)},
noEndpoints:!0,ellipsisTruncate:!0})),_.q(_.T,{cond:function(){return!!Y()&&!J()},
then:function(){return _.q("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.q("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.q("span",null,Y))}}))),_.q(_.T,{cond:c,
then:function(){return _.q("div",{class:"ytdMiniplayerInfoBarExpand"},_.q(_.nw,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(W){A&&(A(),W.stopPropagation())}}},
iconName:function(){return w()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"ef");var ez_;ez_=_.n(function(H){return _.q("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.q(_.nw,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:H.onTap}},
iconName:"yt-icons:close"}))},"ff");
_.uvi=_.n(function(H){H=_.FH(H,{playabilityStatus:void 0,isDisabled:!1});var C=H.size,S=H.playabilityStatus,w=H.isDisabled,A=_.sW("div");H=_.Z(_.mB(void 0,void 0,"y6THVb"));var J=H.next().value,c=H.next().value;H=_.Lu(_.z_);var Y=!1,M=function(){return C().height<=0};
_.d6(function(){var N=C(),b=M(),u=J();u&&!b&&u.setInternalSize(N.width,N.height)},"qu2eI");
_.Ph(function(){var N,b,u;return _.z(function(O){if(O.nextAddress==1){N=_.JA().resolve(_.Df);b=N.getPlayerElement();if(!N.isMiniplayerActive()||!b||!A.value)return O.return();b.appendTo(A.value);return O.yield(b.getPlayerPromise(),2)}u=O.yieldResult;u.setSizeStyle(!1,!0);c(u);_.oT(O)})});
_.PN(function(){m()});
_.d6(function(){var N=J();if(N)if(w()){var b=N.getPlayerState();(Y=b===-1||b===1||b===3)&&N.pauseVideo()}else m()},"mCtQKc");
var m=function(){if(Y){Y=!1;var N;(N=J())==null||N.playVideo()}},W=_.um(function(){_.Mm(_.JA().resolve(_.Df))}),y={};
return _.q("ytd-miniplayer-player-container",{class:_.eJ("ytdMiniplayerPlayerContainerHost",(y.ytdMiniplayerPlayerContainerHidden=M,y.ytdMiniplayerPlayerContainerHostShortsPip=H,y)),style:_.vb({width:function(){return C().width+"px"},
height:function(){return C().height+"px"}})},_.q("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:A}),_.q(_.T,{cond:function(){return!!S()&&!_.w6U(S())},
then:function(){return _.q(pZ_,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var N;return((N=S())==null?void 0:N.errorScreen)||null},
status:function(){var N;return((N=S())==null?void 0:N.status)||null}})}}),_.q(_.T,{cond:w,
then:function(){return _.q("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":W},_.q(ez_,{onTap:function(){_.JA().resolve(_.Df).close()}}))}}))},"gf");_.GZp=_.n(function(H){var C=H.toastData;var S=_.sW("ytd-miniplayer-toast");H=_.Z(_.fu(function(){return!!C()}));
var w=H.next().value,A=H.next().value;H=_.Z(_.mB(!1,void 0,"BvfNQe"));var J=H.next().value,c=H.next().value,Y=function(){var W;return _.jt((W=C())==null?void 0:W.data.title)};
_.$T(function(){_.Ao.requestAvailability();C()&&A(!1)});
var M,m;_.d6(function(){w()&&(_.M3(S.value,"iron-announce",{text:C().label+" "+Y()}),M&&_.rT.cancelJob(M),M=_.rT.addLowPriorityJob(function(){c(!0)},2500))},"no1dZb");
_.d6(function(){J()&&(m&&_.rT.cancelJob(m),m=_.rT.addLowPriorityJob(function(){A(!1);c(!1)},300))},"G3yPNe");
H={};return _.q("ytd-miniplayer-toast",{el:S,class:_.eJ("ytdMiniplayerToastHost",(H.ytdMiniplayerToastOpening=function(){return w()},H.ytdMiniplayerToastClosing=function(){return J()},H))},_.q(_.T,{cond:function(){var W;
return(W=C())==null?void 0:W.data},
then:function(W){return _.q(eQb,{className:"ytdMiniplayerToastThumbnail",data:W,width:78})}}),_.q("div",{class:"ytdMiniplayerToastInfo"},_.q("div",{class:"ytdMiniplayerToastLabel"},function(){var W;
return(W=C())==null?void 0:W.label}),_.q("div",{class:"ytdMiniplayerToastTitle"},Y)))},"hf");var ByV;var td7=null;var vJO=_.n(function(H){var C=H.progressState;var S=H.multiMarkersPlayerBarRenderer;var w=H.progressBarWidth;var A=function(){return REV(S())},J=function(){return xtp(C())},c=function(){return w()*(C().playedTime/C().videoDuration)};
return _.q("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.q(_.Vq,{each:A},function(Y,M){return _.q(fa9,{modifiedProps:J,chapters:A,index:M,playedProgressWidth:c,backgroundGradientPosition:function(){var m=J(),W=A(),y=M(),N=c();return(m.playedTime-kC(_.e(W[y],pd)))/m.playedTime*N}})}))},"jf"),fa9=_.n(function(H){var C=H.modifiedProps;
var S=H.chapters;var w=H.index;var A=H.playedProgressWidth;var J=H.backgroundGradientPosition;H={};H=_.eJ("ytChapteredProgressBarChapteredPlayerBarChapter",(H.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return c().isScrubbing},H.ytChapteredProgressBarHoveredMacroMarker=function(){return c().scrubberHovering},H.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return c().videoPosition==="seen"},H));
var c=function(){return HcU(C(),S(),w())},Y=function(){var M=C();
var m=S(),W=w();if(HcU(M,m,W).videoPosition!=="active")M=0;else{var y=kC(_.e(m[W],pd));M=(M.playedTime-y)/((kC(_.e(m[W+1],pd))||M.videoDuration)-y)}return M};
return _.q("div",{class:H,style:_.vb({width:function(){var M=C(),m=S(),W=w(),y=_.e(m[W],pd);m=_.e(m[W+1],pd);return(m?kC(m)-kC(y):M.videoDuration-kC(y))/M.videoDuration*100+"%"},
"background-color":function(){a:{var M=c();switch(M.videoPosition){case "pending":M=M.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":M=M.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:M=""}}return M},
"background-size":function(){return(icu(c())?A():"")+"px"},
"background-position-x":function(){return(icu(c())?J():"")+"px"}})},_.q("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var M=C(),m=S(),W=w();if(HcU(M,m,W).videoPosition==="seen")var y=0;else y=kC(_.e(m[W],pd)),m=kC(_.e(m[W+1],pd))||M.videoDuration,M=M.videoDuration*M.percentLoaded,y=m<=M?1:y>=M?0:(M-y)/(m-y);return"width: "+y*100+"%"}}),_.q("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.vb({width:function(){return Y()*100+"%"},
"background-size":function(){return(icu(c(),Y())?A():"")+"px"},
"background-position-x":function(){return(icu(c(),Y())?J():"")+"px"}})}))},"kf");var laj=function(H,C){C=C===void 0?K_M:C;var S,w=[],A,J=!1;return function(){var c=_.tc.apply(0,arguments);if(J&&S===this&&C(c,w))return A;A=H.apply(this,c);J=!0;S=this;w=c;return A}}(function(H){var C=H.heatMarkers,S=H.minHeightDp===void 0?0:H.minHeightDp,w=H.maxHeightDp===void 0?60:H.maxHeightDp;
var A=A===void 0?!1:A;var J=1E3/C.length;H=[];H.push({x:0,y:100});for(var c=0;c<C.length;c++){var Y=void 0,M=((Y=_.e(C[c],b4P))==null?void 0:Y.heatMarkerIntensityScoreNormalized)||0;Y=(c+.5)*J;M=100-_.$C(M*100,S/321*100,w/321*100);c!==0||A||H.push({x:0,y:M});H.push({x:Y,y:M});c===C.length-1&&H.push({x:1E3,y:M})}H.push({x:1E3,y:100});C="";for(S=0;S<H.length;S++)A=H[S],S===0?A="M "+A.x.toFixed(1)+","+A.y.toFixed(1):(w=sAw(H[S-1],H[S-2],A),J=sAw(A,H[S-1],H[S+1],!0),A=" C "+(w.x.toFixed(1)+","+w.y.toFixed(1)+
" "+J.x.toFixed(1)+","+J.y.toFixed(1)+" "+A.x.toFixed(1)+","+A.y.toFixed(1))),C+=A;return C});var Vmr=_.n(function(H){var C=H.progressBarProps;var S=H.config;var w={};H=_.eJ("ytHeatSeekerHost",(w.ytHeatSeekerHighContrast=H.highContrast,w));var A=function(){return p27(S().chapterData)};
return _.q("yt-progress-bar-heatseeker",{class:H,style:function(){var J;return"height: 320px; display: "+(C().isDragging&&((J=A())==null?0:J.heatMarkers)?"block":"none")}},_.q(_.T,{cond:A,
then:function(J){return _.q(_.T,{cond:function(){return J().heatMarkers},
then:function(){return _.q("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.q("path",{d:function(){return laj(J())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"lf");var oJo=_.n(function(H){var C=H.progressBarProps;var S=H.config;H={};H=_.eJ("ytProgressBarLineProgressBarLine",(H.ytProgressBarLineProgressBarLineRounded=function(){return S().rounded},H.ytProgressBarLineProgressBarLineBottomInset=function(){return S().position===2},H));
return _.q("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.q("div",{class:H},_.q("div",{class:"ytProgressBarLineProgressBarBackground"}),_.q("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+C().percentLoaded*100+"%"}}),_.q("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var w=C();return"width: "+(w.videoDuration?_.$C(w.hoveredTime/w.videoDuration,0,1):0)*100+"%"}}),_.q("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+dtw(C())*100+"%"}})))},"mf");
oJo.idomCompat=!0;var O6p=_.n(function(H){var C=H.progressBarProps;var S=H.playheadData;var w=H.interpolateDotPosition;var A=H.hidePlayhead;H={};var J=_.eJ("ytProgressBarPlayheadProgressBarPlayheadDot",(H.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return C().isDragging},H.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!C().isDragging&&A()},H));
return _.q("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.vb({"margin-left":function(){return Pgi(C())*100+"%"},
transform:function(){return"translateX(-"+(w()?Pgi(C())*12:6)+"px)"}})},_.q(_.T,{cond:function(){var c;
return(c=_.Jx(S)())==null?void 0:c.playheadImage},
then:function(c){var Y={};return _.q("div",{class:_.eJ("ytProgressBarPlayheadProgressBarPlayheadCustom",(Y.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return C().isDragging},Y.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!C().isDragging&&A()},Y)),
style:_.vb({"transform-origin":function(){return(w()?Pgi(C())*20:10)+"px center"}})},_.q(_.Jg,{data:c,
alt:"","aria-hidden":"true"}))},
else:function(){return _.q("div",{class:J,style:_.vb({"transform-origin":function(){return(w()?Pgi(C())*12:6)+"px center"}})})}}))},"nf");
O6p.idomCompat=!0;var qm=function(H,C,S,w,A,J){this.getProgressBarRect=H;this.updateProgressBarRect=C;this.getFilmstripYPosition=S;this.setFineScrubbingDraggedTime=w;this.updateFilmStripDraggedYDistance=A;this.resetFilmStripYOffset=J;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.I$(this.onThrottledSeek,100,this)},Xl_=function(H,C,S){return function(w){H.handleClick(w,C(),S())}},Pd3=function(H,C){return function(S){Q7t(H,
S,dx9(S),C())}},$xR=function(H,C){return function(S){Q7t(H,S,{x:S.clientX,
y:S.clientY},C())}},kZO=function(H,C,S){return function(w){var A=C(),J=S();
pl9(H,w,dx9(w),A,J,!0);if(J.onTouchMove)J.onTouchMove(A)}},nJ9=function(H,C,S){return function(w){hzO(H,w,C(),S())}},rkO=function(H,C){return function(){H.handleMouseLeave(C())}},BSq=function(H,C,S){return function(){var w=C(),A=S();
Tw(H,w,A);if(A.onTouchEnd)A.onTouchEnd(w)}},Dxj=function(H,C,S){return function(){var w=C(),A=S();
Tw(H,w,A);if(A.onTouchEnd)A.onTouchEnd(w)}},Kmq=function(H,C,S){return function(){Tw(H,C(),S())}},tmi=function(H){return function(C){if(C.keyCode===39||C.keyCode===38){var S,w;
(S=H())==null||(w=S.playerApi)==null||w.seekBy(5,void 0,void 0,72)}else if(C.keyCode===37||C.keyCode===40){var A,J;(A=H())==null||(J=A.playerApi)==null||J.seekBy(-5,void 0,void 0,71)}}},Lmi=function(H,C,S){return function(w){!S().disableScrubbing&&H.startPosition&&hzO(H,w,C(),S())}},gJq=function(H,C,S){return function(){if(!S().disableScrubbing)if(H.startPosition){var w=C(),A=S();
Tw(H,C(),S());if(A.onTouchEnd)A.onTouchEnd(w)}else C().setState({isDragging:!1})}},dx9=function(H){H=H.touches[0];
return{x:H.clientX,y:H.clientY}},hzO=function(H,C,S,w){if(C.buttons!==1){if(C.movementX||C.movementY)C.preventDefault(),C.stopPropagation(),H=UxO(H,S,C.clientX),S.setState({isHovering:!0,
hoveredTime:H*S.videoDuration})}else Rz_(S),pl9(H,C,{x:C.clientX,y:C.clientY},S,w,!1)};
qm.prototype.handleMouseLeave=function(H){Rz_(H)};
var Rz_=function(H){H.isHovering&&H.setState({isHovering:!1,hoveredTime:0})},Q7t=function(H,C,S,w){H.startPosition||(H.startPosition=S,H.updateProgressBarRect(),H.controlsWereVisibleBeforeDragging=w.controlsVisible,C.stopPropagation(),_.E("medium_progress_bar_modification")||C.preventDefault())},pl9=function(H,C,S,w,A,J){if(H.startPosition)if(J&&A.isInlinePlayback&&H.startPosition&&!H.hasDraggedTheMinimumDistance&&Math.abs(S.y-H.startPosition.y)>Math.abs(S.x-H.startPosition.x))Tw(H,w,A);
else if(C.preventDefault(),C.stopPropagation(),w.videoDuration&&(H.startPosition&&!H.hasDraggedTheMinimumDistance&&(H.hasDraggedTheMinimumDistance=Math.abs(S.x-H.startPosition.x)>=1),A.enableFineScrubbing&&(H.startPosition&&(H.isDraggedForFineScrubbing=-(S.y-H.startPosition.y)>=60),!H.startPosition||S.y>=H.startPosition.y||(w.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:CXW(w.draggedTime,w,A.chapterData)}),H.setFineScrubbingDraggedTime(w.draggedTime),H.updateFilmStripDraggedYDistance(H.startPosition.y,
S.y,w))),H.hasDraggedTheMinimumDistance)){C=UxO(H,w,S.x);if(H.isDraggedForFineScrubbing){var c;(c=w.playerApi)==null||c.pauseVideo();w.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:w.draggedTime,filmStripXDistance:CXW(C*w.videoDuration,w,A.chapterData)})}A.enableFineScrubbing&&(!A.enableFineScrubbing||H.getFilmstripYPosition(w)<68)||w.setState({draggedTime:C*w.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:H.controlsWereVisibleBeforeDragging});var Y;(Y=
A.cancelAutohideControlsFn)==null||Y.call(A)}},Tw=function(H,C,S){var w=S.enableFineScrubbing&&C.fineScrubbingActiveState!=="off";
if(C.isDragging||w){w={isDragging:!1,playedTime:C.draggedTime,controlsVisible:H.controlsWereVisibleBeforeDragging};S.enableFineScrubbing&&C.fineScrubbingActiveState!=="on"&&(H.resetFilmStripYOffset(),w.fineScrubbingActiveState="off");var A=A===void 0?td7:A;var J=_.Dg(0);if(J&&A){var c=Math.round(C.playedTime*1E3),Y=Math.round(C.draggedTime*1E3);c>2147483647||Y>2147483647||_.sa(J,A,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(c),endMediaTimeMs:String(Y),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}C.setState(w);
H.seekThrottle.fire(C.draggedTime,C,7);_.E("mweb_new_progress_bar_play_on_seek")&&H.resumeVideo(C);S.unmuteOnSeek&&(S=C.playerApi,C.volumeMuted&&(S==null||S.unMute()))}else C.setState({controlsVisible:!C.controlsVisible}),(J=S.triggerAutohideControlsAfterDelayFn)==null||J.call(S);H.startPosition=null;H.hasDraggedTheMinimumDistance=!1;H.isDraggedForFineScrubbing=!1;H.controlsWereVisibleBeforeDragging=!1};
qm.prototype.handleClick=function(H,C,S){this.updateProgressBarRect();H.stopPropagation();H=UxO(this,C,H.clientX)*C.videoDuration;C.setState({playedTime:H});if(C.playerState!==2){var w;(w=S.triggerAutohideControlsAfterDelayFn)==null||w.call(S)}this.seekThrottle.fire(H,C,7)};
var UxO=function(H,C,S){H=H.getProgressBarRect(C);return _.$C(0,(S-H.left)/H.width,1)};
qm.prototype.resumeVideo=function(H){if(H.draggedTime<H.videoDuration){var C;(C=H.playerApi)==null||C.playVideo()}};
qm.prototype.onThrottledSeek=function(H,C,S){if(C=C.playerApi){var w;if((w=C.getVideoData())==null?0:w.isLive)w=this.getProgressState(C),H+=(w==null?void 0:w.seekableStart)||0;C.seekTo(H,void 0,void 0,void 0,S)}};
qm.prototype.getProgressState=function(H){var C=H==null?void 0:H.getPresentingPlayerType();return H==null?void 0:H.getProgressState(C)};var xxO,aap,HsR,CW9,Iat,SFq,sE3,jEr,wNt;xxO=_.n(function(H){var C=H.progressBarProps;var S=H.config;var w=H.progressBarWidthPx;var A=H.chapterData;var J=AWW(C,function(){return S().isShortsPage}),c=function(){return!C().isHovering&&!S().isShortsPage};
H={};var Y=_.eJ("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(H.ytPlayerStoryboardHostMwebShorts=function(){return S().isShortsPage&&!1},H));
return _.q("yt-player-storyboard",null,_.q(_.T,{cond:function(){return C().isDragging||C().isHovering},
then:function(){return _.q(_.T,{cond:J,then:function(M){return _.q(_.T,{cond:c,then:function(){return _.q("div",{class:Y,"aria-hidden":"true"},_.q(Iat,{props:C,config:S,isBigboard:!0,chapterData:A}))},
else:function(){return _.q(aap,{props:C,frame:M,config:S,progressBarWidthPx:w,chapterData:A})}})}})}}))},"of");
_.is3=_.n(function(H){var C=H.progressBarProps;var S=AWW(C,H.isShortsPage);return _.q("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.q(_.T,{cond:function(){return C().isDragging||C().isHovering},
then:function(){return _.q(_.T,{cond:S,then:function(w){return _.q(HsR,{frame:w,props:C,isBigboard:!0})}})}}))},"pf");
aap=_.n(function(H){var C=H.props;var S=H.frame;var w=H.config;var A=H.progressBarWidthPx;H=H.chapterData;var J={};J=_.eJ("ytPlayerStoryboardHost",(J.ytPlayerStoryboardHostMwebShorts=function(){return w().isShortsPage&&!1},J.ytPlayerStoryboardHostInlinePlayer=function(){return w().isInlinePlayer},J.ytPlayerStoryboardHostFadeIn=function(){return w().useFadeInAnimation},J));
return _.q("div",{class:J,"aria-hidden":"true",style:function(){var c=C(),Y=SPp(S()),M=A();c=sRZ(c)/c.videoDuration;var m=M*c,W=Y/2+6;Y=M-(Y/2+6);return"left: "+(m<=W?W/M*100:m>=Y?Y/M*100:c*100)+"%"}},_.q(_.T,{cond:function(){var c=C();
return!(w().isShortsPage&&c.videoDuration<15)},
then:function(){return _.q(HsR,{frame:S,props:C,isBigboard:!1})}}),_.q(Iat,{props:C,
config:w,isBigboard:!1,chapterData:H}))},"qf");
HsR=_.n(function(H){var C=H.frame;var S=H.props;var w=H.isBigboard;var A=function(){var Y,M;return(M=(Y=S().playerApi)==null?void 0:Y.getVideoContentRect())!=null?M:{width:0,height:0}},J=function(){return SPp(C())},c=function(){var Y=C();
return Y?Y.height/Y.rows:0};
H={};H=_.eJ((H.ytPlayerStoryboardBigboardImageWrapper=w,H.ytPlayerStoryboardStoryboardImageWrapper=function(){return!w()},H));
return _.q("div",{class:H,style:function(){return"width: "+(w()?A().width:J())+"px; height: "+(w()?A().height:c())+"px;"}},_.q(CW9,{frame:C,
storyboardWidth:J,storyboardHeight:c,storyboardScale:function(){return(w()?A().width:J())/J()}}))},"rf");
CW9=_.n(function(H){var C=H.frame;var S=H.storyboardWidth;var w=H.storyboardHeight;var A=H.storyboardScale;var J=function(){var c=C().row,Y=C().column,M=S(),m=w(),W=A();return{left:-Y*M*W,top:-c*m*W}};
return _.q("img",{src:function(){return C().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+J().left+"px; top: "+J().top+"px; width: "+C().width*A()+"px; height: "+C().height*A()+"px;"}})},"sf");
Iat=_.n(function(H){var C=H.props;var S=H.config;var w=H.isBigboard;var A=H.chapterData;H={};H=_.eJ("ytPlayerStoryboardMetadata",(H.ytPlayerStoryboardMetadataBigboard=w,H));return _.q("div",{class:H},_.q(_.T,{cond:w,then:function(){return _.q(_.F9,null,_.q(SFq,{props:C,config:S}),_.q(_.T,{cond:function(){a:{var J=C();var c=S(),Y=A(),M;if((c==null?0:c.activeChapter)&&((M=_.e(c==null?void 0:c.activeChapter,pd))==null?0:M.title))J=!0;else{c=_.Z(krZ(Y));for(c=c.next();!c.done;c=c.next()){J=(c=_.e(c.value,
evP))&&jRZ(J,c);break a}J=!1}}return J},
then:function(){return _.q(sE3,{props:C,config:S,isBigboard:!0,chapterData:A})}}))},
else:function(){return _.q(_.F9,null,_.q(sE3,{props:C,config:S,isBigboard:!0,chapterData:A}),_.q(SFq,{props:C,config:S}))}}))},"tf");
SFq=_.n(function(H){var C=H.props;var S=H.config;H={};H=_.eJ("ytPlayerStoryboardTimestamp",(H.ytPlayerStoryboardTimestampShorts=function(){return S().isShortsPage},H.ytPlayerStoryboardTimestampIsHovering=function(){return C().isHovering||S().isShortsPage&&!0},H));
return _.q("div",{class:H},_.q(_.F9,null,function(){return _.wK7(sRZ(C()))}))},"uf");
sE3=_.n(function(H){var C=H.props;var S=H.config;var w=H.isBigboard;var A=H.chapterData;H={};w=_.eJ("ytPlayerStoryboardTitle",(H.ytPlayerStoryboardTitleBigboard=w,H));return _.q("div",{class:w},_.q(_.T,{cond:function(){return!S().isShortsPage},
then:function(){return _.q(jEr,{props:C,activeChapter:function(){return S().activeChapter},
chapterData:A})}}))},"vf");
jEr=_.n(function(H){var C=H.props;var S=H.activeChapter;var w=H.chapterData;return _.q(_.F9,null,_.q(_.Vq,{each:function(){return krZ(w())},
keyBy:"INDEX"},function(A){return _.q(_.F9,null,_.q(_.T,{cond:function(){return _.e(A(),evP)&&jRZ(C(),_.e(A(),evP))},
then:function(){return _.q(wNt,{timedMarker:function(){return _.e(A(),evP)}})}}))}),_.q(_.T,{cond:function(){var A;
return S()&&((A=_.e(S(),pd))==null?void 0:A.title)},
then:function(A){return _.q(_.uZ,{text:A,noPreWrap:!0})}}))},"wf");
wNt=_.n(function(H){var C=H.timedMarker;return _.q(_.F9,null,_.q("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.q(_.lm,{icon:function(){return C().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.q(_.uZ,{text:function(){return C().label},
noPreWrap:!0}))},"xf");_.Aat=_.n(function(H){var C=H.progressBarProps;var S=H.playheadData;var w=H.config;H=_.sW("yt-progress-bar");var A=_.sW("div"),J=_.sW("div"),c=_.Z(_.mB({width:0,left:0},void 0,"WloVn")),Y=c.next().value,M=c.next().value,m=function(){J.value&&M(J.value.getBoundingClientRect())},W=function(){Y().width<=0&&m();
return Y()};
_.Fy("resize",m);var y=new qm(W,function(){},function(){return 0},function(){},function(){},function(){}),N=function(){return C()};
c=_.Z(_.mB(!1,void 0,"u8BZZb"));var b=c.next().value,u=c.next().value;c=_.um(function(){u(!0);w().position===2?setTimeout(function(){m()},100):m()});
var O=_.um(function(){u(!1);rkO(y,N)()}),d=_.um(function(O$){w().doSeekOnClick&&Xl_(y,N,w)(O$);
return!1}),p=_.um(function(O$){Pd3(y,N)(O$);
return!1}),k=_.um(function(O$){$xR(y,N)(O$);
return!1}),R=_.um(function(O$){kZO(y,N,w)(O$);
return!1}),L=_.um(function(O$){nJ9(y,N,w)(O$);
return!1}),t=_.um(function(){BSq(y,N,w)();
return!1}),g=_.um(function(){Dxj(y,N,w)();
return!1}),ii=_.um(function(){Kmq(y,N,w)();
return!1}),FW=_.um(function(O$){tmi(N)(O$);
return!1});
_.Fy("mousemove",Lmi(y,N,w));_.Fy("mouseup",gJq(y,N,w));_.$T(function(){L8E(A.value);u(!1);m();gJq(y,N,w)()});
var cZ={};cZ=_.eJ("ytPlayerProgressBarHost",function(){return w().className},(cZ.ytPlayerProgressBarHostReadOnly=function(){return w().disableScrubbing},cZ.ytPlayerProgressBarHostHidden=function(){return w().hideProgressBar&&!b()},cZ.ytPlayerProgressBarHostLowerPlayer=function(){return w().position===0},cZ.ytPlayerProgressBarHostBottomEdge=function(){return w().position===1},cZ.ytPlayerProgressBarHostBottomInset=function(){return w().position===2},cZ.ytPlayerProgressBarHostCustom=function(){return w().position===
3},cZ));
var eZ={},ND=_.eJ("ytPlayerProgressBarBackground",(eZ.ytPlayerProgressBarBackgroundHide=function(){return w().position===2&&!b()&&!C().isDragging},eZ));
eZ={};eZ=_.eJ("ytPlayerProgressBarDragContainer",(eZ.ytPlayerProgressBarDragContainerBottomEdge=function(){return w().position===1},eZ));
var bi={};bi=_.eJ("ytPlayerProgressBarProgressBar",(bi.ytPlayerProgressBarProgressBarInset=function(){return w().position===2},bi.ytPlayerProgressBarProgressBarInsetMinimized=function(){return w().position===2&&!b()&&!C().isDragging},bi));
var pU=function(){return Math.floor(dtw(C())*100)};
return _.q("yt-progress-bar",{el:H,class:cZ},_.q(_.T,{cond:function(){return w().position===2},
then:function(){return _.q("div",{class:ND})}}),_.q("div",{el:A,
"on:click":d,"on:touchstart":p,"on:touchmove":R,"on:mouseenter":c,"on:mousedown":k,"on:mouseleave":O,"on:mousemove":L,"on:mouseup":g,"on:touchend":t,"on:touchcancel":ii,"on:keydown":FW,class:eZ,role:"slider","aria-valuenow":pU,"aria-valuetext":function(){return pU()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return C().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.fL("SEEK_SLIDER")},_.q("div",{el:J,class:bi},_.q(Vmr,{progressBarProps:C,config:w,highContrast:function(){return!!w().isInlinePlayback}}),_.q(_.T,{cond:function(){return w().chapterData&&hEE(w().chapterData)},
then:function(){return _.q(vJO,{progressState:C,multiMarkersPlayerBarRenderer:function(){return w().chapterData},
progressBarWidth:function(){return Y().width}})},
else:function(){return _.q(oJo,{progressBarProps:C,config:w})}}),_.q(O6p,{progressBarProps:C,
playheadData:S,interpolateDotPosition:function(){return w().position!==2},
hidePlayhead:function(){return w().playheadDotBehavior===1&&!b()}}))),_.q(xxO,{progressBarProps:C,
config:function(){return{activeChapter:amu(C(),w().chapterData),getProgressBarWidthPx:function(){return W().width},
isShortsPage:!!w().isShortsPage,isInlinePlayer:!!w().isInlinePlayback,useFadeInAnimation:!!w().isInlinePlayback}},
progressBarWidthPx:function(){return Y().width},
chapterData:function(){return w().chapterData}}))},"yf");
_.Aat.idomCompat=!0;Object.assign({},_.nxD(),{setState:function(){},
domMeasurements:{},appApi:_.QPE(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var Ja9;
_.FBo=_.n(function(){var H,C=(H=_.hN(JWD().playerApi))!=null?H:void 0;H=_.Z(_.mB(!1,void 0,"Z9NQ1b"));var S=H.next().value,w=H.next().value;H=_.Z(_.mB(!1,void 0,"HoVJXe"));var A=H.next().value,J=H.next().value;H=_.Z(_.mB(!1,void 0,"DWCY3"));var c=H.next().value,Y=H.next().value;H=_.Z(_.mB(!1,void 0,"g4C2Zd"));var M=H.next().value,m=H.next().value;H=_.Z(_.mB(0,void 0,"lmVfFb"));var W=H.next().value,y=H.next().value;H=_.Z(_.mB(0,void 0,"mFLbzb"));var N=H.next().value,b=H.next().value;H=_.Z(_.mB(!1,void 0,
"hQN4Wb"));var u=H.next().value,O=H.next().value;H=_.Z(_.mB(0,void 0,"WWU0fb"));var d=H.next().value,p=H.next().value;H=_.Z(_.mB(0,void 0,"MJ7LMd"));var k=H.next().value,R=H.next().value;H=_.Z(_.mB("",void 0,"hnomOe"));var L=H.next().value,t=H.next().value;H=_.Z(_.mB(-1,void 0,"ARe3pf"));var g=H.next().value,ii=H.next().value,FW=_.EF(function(){var cZ={controlsVisible:S(),isOverlayHidden:A(),shouldWaitToHideControls:c(),isDragging:M(),isHovering:u(),videoDuration:d(),playedTime:k(),videoId:L(),draggedTime:N(),
hoveredTime:W(),playerState:g()};return Object.assign({},_.nxD(),cZ,{domMeasurements:{},setState:function(eZ){eZ.controlsVisible!==void 0&&w(eZ.controlsVisible);eZ.isOverlayHidden!==void 0&&J(eZ.isOverlayHidden);eZ.shouldWaitToHideControls!==void 0&&Y(eZ.shouldWaitToHideControls);eZ.isDragging!==void 0&&m(eZ.isDragging);eZ.isHovering!==void 0&&O(eZ.isHovering);eZ.draggedTime!==void 0&&b(eZ.draggedTime);eZ.hoveredTime!==void 0&&y(eZ.hoveredTime);eZ.videoDuration!==void 0&&p(eZ.videoDuration);eZ.playedTime!==
void 0&&R(eZ.playedTime);eZ.videoId!==void 0&&t(eZ.videoId);eZ.playerState!==void 0&&ii(eZ.playerState)},
appApi:_.QPE(),playerApi:C})},void 0,"Au4PIf");
_.Ph(function(){C==null||C.addEventListener("onVideoProgress",K8$(FW));C==null||C.addEventListener("onVideoDataChange",Dt0(FW));C==null||C.addEventListener("onStateChange",rIw(FW))});
_.PN(function(){if(C==null?0:C.isReady())C==null||C.removeEventListener("onVideoProgress",K8$(FW)),C==null||C.removeEventListener("onVideoDataChange",Dt0(FW)),C==null||C.removeEventListener("onStateChange",rIw(FW))});
return _.q("desktop-shorts-player-controls",null,_.q(Ja9,{playerControlsProps:FW}))},"zf");
Ja9=_.n(function(H){var C=H.playerControlsProps;return _.q("div",{class:"desktopShortsPlayerControlsHost"},_.q(_.Aat,{progressBarProps:C,config:function(){return{isShortsPage:!0,hideProgressBar:C().videoDuration<30&&C().playerState!==2&&!C().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"Af");_.Zsi=_.n(function(H){function C(cZ){cZ!==0||y()?cZ>50&&(y()||!b())?(N(!1),u(!0)):cZ<=50&&(y()||b())&&(N(!1),u(!1)):N(!0)}
function S(cZ,eZ){var ND;return _.z(function(bi){if(bi.nextAddress==1)return bi.yield(_.Np(),2);ND=bi.yieldResult;eZ&&ND?(ND.unMute(!0),cZ&&(Zcu(cZ,ND.getVolume()),d(ND.getVolume()))):ND&&(ND.mute(!0),cZ&&Zcu(cZ,0));_.oT(bi)})}
function w(cZ){var eZ,ND;return _.z(function(bi){if(bi.nextAddress==1)return bi.yield(_.Np(),2);eZ=bi.yieldResult;ND=50;eZ&&(ND=eZ.getVolume(),eZ.isMuted()?Zcu(cZ,0):Zcu(cZ,ND));d(ND);_.oT(bi)})}
var A=H.orientation;H=_.sW("desktop-shorts-volume-controls");var J=_.sW("button"),c=_.ja("input"),Y=_.Z(_.mB(!1,void 0,"MvN0Tc")),M=Y.next().value,m=Y.next().value,W=_.Z(_.mB(!1,void 0,"aSjsEb"));Y=W.next().value;W=W.next().value;var y=Y,N=W;W=_.Z(_.mB(!0,void 0,"FUh46d"));Y=W.next().value;W=W.next().value;var b=Y,u=W;Y=_.Z(_.mB(50,void 0,"yPke4d"));var O=Y.next().value,d=Y.next().value;Y=_.EF(function(){var cZ=y();return _.E("web_shorts_keyboard_enable_mute_shortcut")?cZ?_.fL("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.fL("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):cZ?_.fL("UNMUTE_VOLUME",void 0,"Unmute"):_.fL("MUTE_VOLUME",void 0,"Mute")},void 0,"SHO4Df");
W=_.EF(function(){var cZ=y(),eZ=b();return{sources:[{clientResource:{imageName:cZ?_.E("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":eZ?_.E("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.E("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"lfsRWd");
var p=_.EF(function(){var cZ=O();return y()?cZ+"% volume muted":cZ+"% volume"},void 0,"xZsRmc"),k=_.EF(function(){return A()==="vertical_down"},void 0,"FVqYmb");
_.$T(function(){function cZ(){m(!0)}
function eZ(){m(!1)}
c&&c.value&&(c.value.addEventListener("focus",cZ),c.value.addEventListener("focusout",eZ),w(c.value).then(function(){C(Number(cW7(c.value)))}));
J&&J.value&&(J.value.addEventListener("focus",cZ),J.value.addEventListener("focusout",eZ));_.PN(function(){var ND;c==null||(ND=c.value)==null||ND.removeEventListener("focus",cZ);var bi;c==null||(bi=c.value)==null||bi.removeEventListener("focusout",eZ);var pU;J==null||(pU=J.value)==null||pU.removeEventListener("focus",cZ);var O$;J==null||(O$=J.value)==null||O$.removeEventListener("focusout",eZ)})});
var R=_.um(function(){if(c&&c.value){var cZ=Number(cW7(c.value));Fqp(cZ);d(cZ);c.value.style.setProperty("--gradient-percent",cZ+"%");C(cZ)}return!1}),L=_.um(function(){m(!0)}),t=_.um(function(){c&&c.value&&(S(c.value,y()),N(!y()));
return!1}),g={},ii={},FW={};
return _.q("desktop-shorts-volume-controls",{"on:pointerleave":_.um(function(){m(!1)}),
class:_.eJ("ytdDesktopShortsVolumeControlsHost",(g.ytdDesktopShortsVolumeControlsHostVertical=k,g.ytdDesktopShortsVolumeControlsHostExpanded=M,g)),el:H},_.q(_.T,{cond:function(){return!k()},
then:function(){var cZ={};return _.q("div",{class:_.eJ("ytdDesktopShortsVolumeControlsBackgroundScrim",(cZ.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=M,cZ))})}}),_.q("div",{class:_.eJ((ii.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=k,ii))},_.q("button",{"aria-label":Y,
title:Y,el:J,"on:click":t,"on:pointerenter":L,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},W?_.q(_.Jg,{data:W,alt:Y,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.q("div",{class:_.eJ("ytdDesktopShortsVolumeControlsSliderContainer",(FW.ytdDesktopShortsVolumeControlsSliderContainerExpanded=M,FW.ytdDesktopShortsVolumeControlsSliderContainerVertical=k,FW.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=k,FW.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=
function(){return M()&&k()},FW))},_.q("input",{"aria-label":_.fL("VOLUME"),
title:_.fL("VOLUME"),el:c,"on:input":R,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":O,"aria-valuetext":p,"aria-valuemin":0,"aria-valuemax":100})))},"Bf");_.car=_.n(function(H){var C=H.data;var S=H.extractOverlay;H={};return _.q("player-disclosure-view-model",{class:_.eJ("ytwPlayerDisclosureViewModelHost",(H.ytwPlayerDisclosureViewModelExtractOverlay=function(){return S==null?void 0:S()},H))},_.q(_.$4,{command:function(){return C().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.q(_.T,{cond:function(){return C().iconName},
then:function(w){return _.q(_.lm,{icon:w})}}),_.q("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return C().text}),_.q(_.T,{cond:function(){return C().showEndChevron},
then:function(){return _.q(_.lm,{icon:"CHEVRON_RIGHT"})}})))},"Cf");var YFo=_.n(function(H){var C=H.data;var S=H.overlayDensity;H={};return _.q("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.q(_.V4,{data:function(){return C().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(w){var A=w.data;
return _.q(_.cG,{data:function(){return(S==null?void 0:S())===1?Object.assign({},A(),{avatar:{avatarViewModel:Object.assign({},_.e(A().avatar,_.Dz),{avatarImageSize:"AVATAR_SIZE_M"})}}):A()}})}}),_.q(_.V4,{data:function(){return C().avatarStackViewModel}},{avatarStackViewModel:function(w){return _.q(_.Yn,{data:w.data})}}),_.q(_.uZ,{className:_.eJ("ytReelChannelBarViewModelChannelName",(H.ytReelChannelBarViewModelChannelNameLarge=function(){return(S==null?void 0:S())===1},H)),
text:function(){return C().channelName},
linkInheritColor:!0,userInput:!0}),_.q("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.q(_.V4,{data:function(){return C().subscribeButtonViewModel}},{subscribeButtonViewModel:function(w){var A=w.data;
return _.q(_.Zk,{data:function(){return(S==null?void 0:S())===1?Object.assign({},A(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},A().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):A()},
isOverlay:!1})},
buttonViewModel:_.rc})),_.q("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.q(_.V4,{data:function(){var w,A;return(A=_.e((w=C())==null?void 0:w.sponsorButtonViewModel,dcP))==null?void 0:A.sponsorButton}},{buttonViewModel:function(w){return _.q(_.rc,{data:w.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"Df");var zUR=_.n(function(H){var C=function(){var w;return(H==null?void 0:(w=H.overlayDensity)==null?void 0:w.call(H))===1?22:16},S={};
return _.q("yt-reel-multi-format-link-view-model",{class:_.eJ("ytReelMultiFormatLinkViewModelHost",(S.ytReelMultiFormatLinkViewModelHostTall=!0,S.ytReelMultiFormatLinkViewModelHostLarge=function(){var w;return((w=H.overlayDensity)==null?void 0:w.call(H))===1},S))},_.q(_.$4,{ariaLabel:function(){return H.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return H.data().command}},_.q("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.q(_.T,{cond:function(){return H.data().icon},
then:function(w){return _.q(_.Jg,{data:w,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:C})}}),_.q(_.uZ,{text:function(){return H.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Ef");
zUR.idomCompat=!0;var MLK=_.n(function(H){var C=H.data;var S=H.overlayDensity;var w=H.extractOverlay;var A=_.sW("yt-shorts-suggested-action-view-model");H=_.Z(_.mB(!1,void 0,"S60Hzc"));var J=H.next().value,c=H.next().value;H=_.Z(_.mB(!1,void 0,"O76chf"));var Y=H.next().value,M=H.next().value,m=function(){return C().isMultiLineSa},W=_.fn(Tk$,function(){var t,g;
return(g=(t=C().toggleableContent)==null?void 0:t.entityKey)!=null?g:""}),y=function(){var t,g,ii;
return(ii=C().toggleableContent)!=null&&ii.entityKey?(g=(t=W())==null?void 0:t.value)!=null?g:!1:!1},N=function(){var t,g,ii,FW,cZ,eZ,ND,bi,pU,O$,R0;
return C().toggleableContent?y()?(t=C().toggleableContent)==null?void 0:t.toggledData:(g=C().toggleableContent)==null?void 0:g.untoggledData:{primaryText:(bi=(ii=C().defaultContent)==null?void 0:ii.primaryText)!=null?bi:C().text,secondaryText:(FW=C().defaultContent)==null?void 0:FW.secondaryText,onTapCommand:(pU=(cZ=C().defaultContent)==null?void 0:cZ.onTapCommand)!=null?pU:C().onTapCommand,icon:(O$=(eZ=C().defaultContent)==null?void 0:eZ.icon)!=null?O$:C().icon,image:(R0=(ND=C().defaultContent)==
null?void 0:ND.image)!=null?R0:C().image}},b=function(){return m()?C().trailingTapTarget:void 0},u=function(t,g){return function(){return J()?g:t}},O=function(){return{leadingSection:u("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(S==null?void 0:S())===1?u("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):u("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:u("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),trailingSectionExtractOverlay:u("ytShortsSuggestedActionViewModelExtractOverlayCollapsedTrailingSection",
"ytShortsSuggestedActionViewModelExtractOverlayExpandedTrailingSection"),leadingIcon:u("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
H={};H=_.eJ((H.ytShortsSuggestedActionViewModelStaticHost=function(){return!m()},H.ytShortsSuggestedActionViewModelDynamicHost=m,H.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return m()&&Y()},H.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return m()&&!Y()},H.ytShortsSuggestedActionViewModelExtractOverlay=function(){return w==null?void 0:w()},H));
_.$T(function(){if(m()){var t=0,g;if((g=C().animationParams)==null?0:g.shouldExpand){var ii,FW;t=((FW=(ii=C().animationParams)==null?void 0:ii.expansionDelaySecs)!=null?FW:0)*1E3}var cZ,eZ=((cZ=C().animationParams)==null?0:cZ.shouldExpand)?setTimeout(function(){c(!0)},t):void 0,ND,bi;
t=((ND=C().animationParams)==null?0:ND.visibilityDelaySecs)?((bi=C().animationParams)==null?NaN:bi.visibilityDelaySecs)*1E3:0;var pU=setTimeout(function(){M(!0)},t);
_.PN(function(){eZ&&clearTimeout(eZ);clearTimeout(pU)})}});
var d=function(t){_.Im(t,Object.assign({},{form:{element:A.value}}))},p=_.um(function(){var t,g=(t=N())==null?void 0:t.onTapCommand;
g&&d(g)}),k=_.um(function(){var t,g;
if(t=(g=b())==null?void 0:g.onTapCommand)return d(t),!1}),R=_.vb({"vertical-align":"bottom",
"border-radius":function(){var t;return m()?((t=C().defaultContent)==null?0:t.isCircleImage)?"50%":"4px":"0px"},
width:function(){var t,g,ii;return m()&&((t=C().defaultContent)==null?0:t.imageSize)?((ii=(g=C().defaultContent)==null?void 0:g.imageSize)!=null?ii:24)+"px":null},
height:function(){var t,g,ii;return m()&&((t=C().defaultContent)==null?0:t.imageSize)?((ii=(g=C().defaultContent)==null?void 0:g.imageSize)!=null?ii:24)+"px":null}}),L={};
return _.q("yt-shorts-suggested-action-view-model",{class:H,el:A},_.q("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.q("button",{class:_.eJ(function(){return m()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var t;
return(t=C().useFullRoundedBorder)!=null&&t?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!b()&&m()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":m()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var t;
return(t=C().disableFixedHeight)!=null&&t?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(L.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(S==null?void 0:S())===1},L.ytShortsSuggestedActionViewModelExtractOverlayContainer=function(){return w==null?void 0:w()},L)),
"on:click":p},_.q(_.pw,{model:{color:4}}),_.q("div",{class:_.eJ(function(){return m()?O().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.q(_.T,{cond:function(){var t;
return(t=N())==null?void 0:t.image},
then:function(t){return _.q(_.Jg,{data:t,alt:"",className:function(){return m()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:R})}}),_.q(_.T,{cond:function(){var t,g;
return(t=N())==null?void 0:(g=t.icon)==null?void 0:g.iconType},
then:function(t){return _.q(_.lm,{icon:t,active:y,className:function(){return m()?J()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.q("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.q(_.T,{cond:function(){var t;
return(t=N())==null?void 0:t.primaryText},
then:function(t){return _.q("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.q(_.uZ,{text:t}))}}),_.q(_.T,{cond:function(){var t;
return(t=N())==null?void 0:t.secondaryText},
then:function(t){return _.q("div",{class:function(){return O().secondaryText()}},_.q(_.uZ,{text:t}))}}))),_.q(_.T,{cond:b,
then:function(t){return _.q("div",{class:_.eJ(function(){return O().trailingSection()},function(){var g,ii;
return(w==null?void 0:w())&&((ii=(g=O()).trailingSectionExtractOverlay)==null?void 0:ii.call(g))||""}),
"aria-label":function(){var g;return(g=t().a11yLabel)!=null?g:""},
"on:click":k,role:"button",tabindex:0},_.q(_.pw,{model:{color:4}}),_.q(_.lm,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"Ff");var qF9=_.n(function(H){var C=H.data;var S=H.overlayDensity;var w=_.sW("yt-shorts-video-title-view-model");H=_.um(function(c){if(_.hB(_.ki(c),w.value,["A".toString()]))return!1;(c=C().truncatedTextOnTapCommand)&&_.Im(c);return!1});
var A={},J={};return _.q("yt-shorts-video-title-view-model",{el:w,class:_.eJ("ytShortsVideoTitleViewModelHost",(A.ytShortsVideoTitleViewModelHostClickable=function(){return!!C().truncatedTextOnTapCommand},A)),
"on:click":H},_.q("h2",{class:_.eJ("ytShortsVideoTitleViewModelShortsVideoTitle",(J.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(S==null?void 0:S())===1},J))},_.q(_.uZ,{text:function(){return C().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0,isHeadline:function(){return(S==null?void 0:S())===1}})))},"Gf");_.T6q=_.n(function(H){var C=H.data;var S=H.overlayDensity;var w=H.extractOverlay;var A=function(){return(S==null?void 0:S())===1};
return _.q("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.q(_.V4,{data:function(){return C().metadataItems}},{badgeViewModel:function(J){J=J.data;
return _.q("div",{class:_.eJ(function(){return A()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.q(_.PG,{data:J}))},
playerDisclosureViewModel:function(J){J=J.data;return _.q("div",{class:_.eJ(function(){return A()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.q(_.car,{data:J,
extractOverlay:w}))},
shortsSuggestedActionViewModel:function(J){J=J.data;return _.q("div",{class:_.eJ(function(){return A()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.q(MLK,{data:J,
overlayDensity:S,extractOverlay:w}))},
reelChannelBarViewModel:function(J){J=J.data;var c={};return _.q("div",{class:_.eJ("ytReelMetapanelViewModelMetapanelItem",(c.ytReelMetapanelViewModelExpansive=function(){return A()},c))},_.q(YFo,{data:J,
overlayDensity:S}))},
reelMultiFormatLinkViewModel:function(J){J=J.data;var c={};return _.q("div",{class:_.eJ("ytReelMetapanelViewModelMetapanelItem",(c.ytReelMetapanelViewModelExpansive=function(){return A()},c))},_.q(zUR,{data:J,
overlayDensity:S}))},
shortsVideoTitleViewModel:function(J){J=J.data;var c={};return _.q("div",{class:_.eJ("ytReelMetapanelViewModelMetapanelItem",(c.ytReelMetapanelViewModelExpansive=function(){return A()},c))},_.q(qF9,{data:J,
overlayDensity:S}))},
reelSoundMetadataViewModel:function(J){J=J.data;var c={};return _.q("div",{class:_.eJ("ytReelMetapanelViewModelMetapanelItem",(c.ytReelMetapanelViewModelExpansive=function(){return A()},c))},_.q(_.YMp,{data:J,
overlayDensity:S}))},
toggleButtonViewModel:function(J){J=J.data;var c={};return _.q("div",{class:_.eJ("ytReelMetapanelViewModelMetapanelItem",(c.ytReelMetapanelViewModelExpansive=function(){return A()},c))},_.q(_.Jv,{data:J}))}}))},"Hf");var mjr=_.n(function(H){var C=_.FH(H,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),S=C.size,w=C.onTap,A=C.disabled,J=C.tooltipText;return _.q("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.q(_.nw,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:S(),disabled:A(),tooltipText:J(),onTap:w}},
iconName:H.iconType}))},"If"),WBO=_.n(function(H){function C(W){W.stopPropagation();
W.code==="ArrowUp"?(W.preventDefault(),M6Z(Y.value)):W.code==="ArrowDown"?(W.preventDefault(),qPD(Y.value)):W.code==="KeyM"?YPp():(W.code==="KeyK"||W.code==="Space")&&zSE(M())}
var S=_.FH(H,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});H=S.previousButtonDisabled;var w=S.nextButtonDisabled,A=S.data,J=S.playabilityStatus,c=S.previewThumbnail,Y=_.sW("ytd-shorts-miniplayer-overlay"),M=_.Lu(_.WNZ),m;_.Ph(function(){(m=_.D9(Y.value))&&m.addEventListener("keydown",C)});
_.PN(function(){var W;(W=m)==null||W.removeEventListener("keydown",C)});
S=function(){var W,y,N;return(W=A())==null?void 0:(y=W.reelPlayerOverlayRenderer)==null?void 0:(N=y.likeButton)==null?void 0:N.likeButtonRenderer};
return _.q("ytd-shorts-miniplayer-overlay",{el:Y,class:"ytdShortsMiniplayerOverlayHost"},_.q("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.vb({"background-image":function(){var W=c();return W?'url("'+_.m3(W.thumbnails)+'")':""}})}),_.q("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.q("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.q(mjr,{iconType:function(){var W=M();
return W===2||W===-1||W===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){zSE(M())},
tooltipText:function(){var W=M();return W===1||W===3?_.fL("PLAYER_LABEL_PAUSE"):_.fL("PLAYER_LABEL_PLAY")}}),_.q(_.Zsi,{orientation:"horizontal_right"})),_.q("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.q(mjr,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:H,onTap:function(){M6Z(Y.value)},
tooltipText:_.fL("PREVIOUS_VIDEO_LABEL")}),_.q(mjr,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:w,onTap:function(){qPD(Y.value)},
tooltipText:_.fL("NEXT_VIDEO_LABEL")}),_.E("web_shorts_pip_like_button")?_.q("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.q(Tuq,{buttonTooltipPosition:"left",data:S,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.q("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.q(_.T,{cond:function(){var W,y;return _.e((W=A())==null?void 0:(y=W.reelPlayerOverlayRenderer)==null?void 0:y.metapanel,
_.oPb)},
then:function(W){return _.q("div",{class:_.eJ("ytdShortsMiniplayerOverlayInteractive")},_.q(_.T6q,{data:W}))}})),_.q("div",{class:_.eJ("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var W;return!((W=A())==null||!W.adsOverlay)||J()&&!jAE(J())}},_.q("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.q(_.FBo,null)))),_.q(_.T,{cond:function(){var W=A(),y,N;
W=_.e(W==null?void 0:(y=W.adsOverlay)==null?void 0:(N=y.fulfillmentContent)==null?void 0:N.fulfilledLayout,bh1);return _.e(W==null?void 0:W.renderingContent,vc1)},
then:function(W){return _.q("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.q(U1i,{data:W}))}}))},"Jf");var T_0=_.n(function(){var H=_.Z(_.mB(new _.vj(NaN,NaN),void 0,"hq9Bjf")),C=H.next().value,S=H.next().value;H=_.Z(_.mB(!1,void 0,"Mu3aZc"));var w=H.next().value,A=H.next().value,J=_.Z(_.mB(!1,void 0,"LGtoFb"));H=J.next().value;var c=J.next().value,Y=_.JA().resolve(_.Df).miniplayerPropSignalMap[0],M=Y.data,m=Y.shortsData,W=Y.nextButtonDisabled,y=Y.shortsPreviewThumbnail,N=Y.previousButtonDisabled,b=Y.externalPlaylistData;J=Y.toastData;var u=Y.playabilityStatus,O=Y.isDisabled,d=Y.playerVe,p=Y.closeVe;
Y=_.Lu(_.z_);_.iy("yt-pip-window-resized",function(t){S(t)});
_.iy("yt-activate-pip-miniplayer",function(){return _.z(function(t){c(!0);_.oT(t)})});
var k=function(){var t;return!((t=b())==null||!t.contents)&&w()},R=function(){var t=C(),g=!!M(),ii=k();
t=t.clone();g&&(t.height-=76);ii&&(t.height-=285);return t},L=function(){A(!w())};
_.d6(function(){var t=d(),g=_.Dg(11),ii=_.BM(11);g&&ii&&t&&(_.ak(g,ii,t),ii=p())&&(_.xR(g,t,[ii]),_.ia(g,[ii]))},"fHkmfb");
return _.q("ytd-pip-container",{class:"ytdPipContainerHost"},_.q(_.T,{cond:H,then:function(){return _.q(_.uvi,{isDisabled:O,playabilityStatus:u,size:R})}}),_.q(_.T,{cond:M,
then:function(){return _.q(_.EJi,{data:M,expanded:w,onExpandClick:L,playlistData:b})}}),_.q(_.T,{cond:k,
then:function(){return _.q("div",{class:"ytdPipContainerPlaylistPanel"},_.q(_.MZq,{data:b,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.q(_.T,{cond:Y,
then:function(){return _.q(WBO,{data:m,nextButtonDisabled:W,previousButtonDisabled:N,playabilityStatus:u,previewThumbnail:y})}}),_.q("div",{class:"ytdPipContainerToast"},_.q(_.GZp,{toastData:J})))},"Kf");var mc=function(H,C){var S=this;this.pipController=H;this.JSC$18747_clientRoot=C;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=VdU();this.watchPipEnabled=_.E("web_watch_pip");this.shortsPipEnabled=_.E("web_shorts_pip");this.JSC$18747_watchWhileEnabled=_.E("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;_.Uf(_.AG(),zlu,function(w){S.isSingleOptionSurveyActive=w});
this.JSC$18747_onPlayerPlayVideo=this.JSC$18747_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);_.xI(_.a8.getInstance(),this.miniplayerServiceActionMap,this.JSC$18747_clientRoot);H.pictureInPictureSupported()&&_.kI("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},m7V,lpt,ub9,VLi,o1O,X6W;
mc.prototype.handleMediaSessionPipActivation=function(){var H=this,C;return _.z(function(S){_.LO().mediaSessionPipActivation=!0;C=_.JA().resolve(_.JB);return C.isOnWatch()&&H.watchPipEnabled?(_.LO().watchPipActivation=!0,_.yaO(H,C.data),S.jumpTo(0)):C.isOnShorts()&&H.shortsPipEnabled?(_.LO().shortsPipActivation=!0,_.N6_(H),S.jumpTo(0)):H.isMiniplayerActive()&&H.watchPipEnabled&&!H.watchWhileMode?S.yield(bsr(H),0):S.jumpTo(0)})};
var bsr=function(H){var C,S,w,A;return _.z(function(J){if(J.nextAddress==1)return C=!H.miniplayerToPipMode,S=H.playerElement,w=H.miniplayerData,A=H.watchResponse,J.yield(H.deactivate(),2);if(J.nextAddress!=3)return C?(_.LO().mediaSessionPipActivation=!0,_.LO().watchPipActivation=!0):_.LO().miniplayerButtonActivation=!0,J.yield(H.activate(S,w,A),3);H.miniplayerToPipMode=C;_.oT(J)})};
mc.prototype.onDownloadedVideoDeleted=function(H){var C,S=_.e((C=this.miniplayerData)==null?void 0:C.watchEndpoint,_.sX),w,A;S&&((w=this.watchResponse)==null?void 0:(A=w.playerResponse)==null?void 0:A.offlineState)!==void 0&&(C=S.videoId)&&H&&C===H&&this.close()};
mc.prototype.onShowMiniplayerCommand=function(H){var C=this,S,w,A,J,c,Y,M,m,W,y,N;return _.z(function(b){switch(b.nextAddress){case 1:return S=_.e(H,ynU),A=(w=S)==null?void 0:w.miniplayerCommand,J=_.e(A,_.sX),A&&J&&!C.active?b.yield(_.C$.getInstance(),2):b.return();case 2:return c=b.yieldResult,b.yield((Y=c)==null?void 0:Y.get("yt-miniplayer-shown-video-id"),3);case 3:M=b.yieldResult;m=J.videoId;if(!m||M===m)return b.return();W=_.JA().resolve(_.JB);if(W.isOnWatch())return _.Bn(Error("Oj")),b.return();
y={channelItem:{externalId:btoa(m)}};C.readyToResumeVe=_.y4(121253,void 0,void 0,y);_.LO().showMiniplayerCommandActivation=!0;return b.yield(_.QA7(C,A,!0),4);case 4:return C.active&&(_.WT(C,{readyToResumeVe:C.readyToResumeVe,isReadyToResume:!0}),C.isReadyToResume=!0),b.yield((N=c)==null?void 0:N.set("yt-miniplayer-shown-video-id",J.videoId),5);case 5:C.readyToResumeVe=void 0,_.oT(b)}})};
mc.prototype.init=function(H){this.miniplayerEl?_.Bn(new _.X0("MiniplayerService already initialized.")):this.miniplayerEl=H};
mc.prototype.isInitialized=function(){var H=!!this.miniplayerEl;H||_.Bn(new _.X0("MiniplayerService used before initialized."));return H};
_.yaO=function(H,C){if(H.isInitialized()){var S=_.Pf(C.response,!1,C.playerResponse),w=_.JA().resolve(_.JB).getPlayerFromWatch();_.LO().currentEndpoint=S.watchEndpoint||null;H.activate(w,S,C)}};
_.N6_=function(H){if(H.isInitialized()){var C=_.JA().resolve(_.JB).getPlayerFromShorts();H.activate(C)}};
m7V=function(H,C){var S;(S=!H.isInitialized())||(S=_.JA().resolve(_.JB).isOnWatch()&&H.watchPipMode,S=!(H.isMiniplayerActive()&&(_.LO().userActivation||_.LO().lockupActivation||S)));if(S)return!1;E1O(H,C)?_.Mm(H):X6W(H,C);return H.watchPipMode?!_.JA().resolve(_.JB).isOnWatch():!0};
mc.prototype.isMiniplayerActive=function(){return this.active};
var E1O=function(H,C){var S;C=(S=_.e(C,_.sX))==null?void 0:S.videoId;var w,A;H=(A=_.e((w=H.miniplayerData)==null?void 0:w.watchEndpoint,_.sX))==null?void 0:A.videoId;return C!=null&&C===H};
mc.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.M3(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.q3(this.miniplayerEl,"yt-navigate-home-action"))};
_.QA7=function(H,C,S,w){S=S===void 0?!1:S;var A,J,c;return _.z(function(Y){switch(Y.nextAddress){case 1:if(H.active){Y.jumpTo(2);break}A=_.JA().resolve(_.JB);if(c=(J=H.playerElement)!=null?J:A.getPlayerFromWatch()){Y.jumpTo(3);break}return Y.yield(_.JA().resolve(_.qp),4);case 4:c=A.getPlayerFromWatch();case 3:if(!c){_.Bn(Error("Qj"));Y.jumpTo(2);break}return Y.yield(H.activate(c,w),2);case 2:return H.active?Y.yield(X6W(H,C,S),0):Y.return()}})};
mc.prototype.activate=function(H,C,S){var w=this,A,J,c,Y,M,m,W,y,N;return _.z(function(b){switch(b.nextAddress){case 1:if(!w.isInitialized())return b.return();if(!H)return _.Bn(Error("Qj")),b.return();if(_.PeW()||w.isMiniplayerActive())var u=!0;else u=_.LO().watchPipActivation||_.LO().watchWhileActivation,_.JA().resolve(_.JB).isOnWatch()&&!u?(_.Bn(new _.X0("miniplayer activated on watch page")),u=!0):u=_.LO().watchWhileActivation?w.userDeactivatedWatchWhile||!!document.pictureInPictureElement||hh6():
!1;if(u)return dqP(),b.return();A=_.LO().mediaSessionPipActivation;J=_.LO().shortsPipActivation;c=_.LO().watchPipActivation;M=(Y=_.LO().watchWhileActivation)||c;m=c||J;if(!w.pictureInPictureEnabled()||!m){b.jumpTo(2);break}return b.yield(eUo(w,A),3);case 3:if(!b.yieldResult)return _.Bn(Error("Pj")),dqP(),b.return();case 2:return w.setActive(!0),w.watchResponse=S,w.playerElement=H,w.updateMiniplayerData(C),b.yield(ub9(w,H),4);case 4:if(!w.active)return _.Bn(new _.X0("miniplayer deactivated during activation")),
w.removePlayerListeners(),b.return();u=_.JA().resolve(_.qb);u.addEventListener("yt-navigate",_.uA(w,w.onPlaylistNavigate));u.addEventListener("yt-playlist-data-updated",_.uA(w,w.JSC$18747_onPlaylistDataUpdated));w.JSC$18747_onPlaylistDataUpdated();dqP();w.JSC$18747_watchWhileEnabled&&_.GRO(w,Y);w.pictureInPictureEnabled()&&w.shortsPipEnabled&&(w.shortsPipMode=J,_.AG().dispatch(bgi(w.shortsPipMode)));w.pictureInPictureEnabled()&&w.watchPipEnabled&&(w.watchPipMode=c,_.r3Z(w.handleMediaSessionPipActivation));
w.player&&(W=w.player.getPlayerState(),y=W===1,_.AG().dispatch(od7(W)),_.m7(w.miniplayerEl,"yt-miniplayer-play-state-changed",[y]),_.LO().isVideoPlaying=y);_.m7(w.miniplayerEl,"yt-miniplayer-endpoint-changed");fp9(w);_.v1j(w);if(w.shortsPipMode||w.watchPipMode)b=b.yield(_.q3(w.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{u=b.yield;var O=_.q3(w.miniplayerEl,"yt-activate-miniplayer",[M])[0];b=u.call(b,O,6)}return b;case 6:if(w.watchResponse){u=w.getScreenLayer();O=_.Dg(0);var d=IxE(0);O&&d&&
(_.tJ(O,d,u),u===0&&UgE(void 0,0))}lpt(w);VLi(w,!0);(N=w.getPlayerElement())==null||N.focusOnPlayer();_.oT(b)}})};
mc.prototype.updateMiniplayerData=function(H){this.miniplayerData=H;_.WT(this,{data:H})};
_.v1j=function(H){var C,S,w=((C=H.miniplayerData)==null?void 0:(S=C.miniplayerRenderer)==null?void 0:S.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";C=H.watchWhileMode||H.watchPipMode?w&&!_.JA().resolve(_.JB).isOnWatch():w;_.WT(H,{isDisabled:C});var A,J;S=_.e((A=H.miniplayerData)==null?void 0:(J=A.miniplayerRenderer)==null?void 0:J.minimizedEndpoint,_.Uy);C&&S&&_.JA().resolve(_.wz).openSheet({openPopupActionCommand:{openPopupAction:S}},H.miniplayerEl)};
lpt=function(H){if(H.watchResponse&&!o1O(H)){var C,S=(C=H.watchResponse.playerResponse)==null?void 0:C.trackingParams;S&&(_.WT(H,{expandVe:_.y4(35989),closeVe:_.y4(34699),readyToResumeCloseVe:_.y4(131070),repositionVe:_.y4(226204),resizeVe:_.y4(226205)}),_.WT(H,{playerVe:_.Qh(S)}))}};
ub9=function(H,C){return _.z(function(S){if(S.nextAddress==1)return C.preparePlayer(),S.yield(C.getPlayerPromise(),2);H.player=S.yieldResult;H.player&&(H.player.addEventListener("onPlayVideo",H.JSC$18747_onPlayerPlayVideo),H.player.addEventListener("onCloseMiniplayer",H.onPlayerCloseMiniplayer),H.player.addEventListener("onExpandMiniplayer",H.onPlayerExpandMiniplayer),H.player.addEventListener("onStateChange",H.onPlayerStateChange));_.oT(S)})};
_.F=mc.prototype;_.F.JSC$18747_onPlayerPlayVideo=function(H){var C=H.sessionData&&"autonav"in H.sessionData,S;H.sessionData&&H.sessionData.itct&&(S=H.sessionData.itct);var w=H.watchEndpoint;C=w&&C?_.v0w(w,S):_.Zy(H.videoId,H.listId||void 0,S);H.sessionData&&_.JM(_.e(C.commandMetadata,_.u9).url,H.sessionData);X6W(this,C)};
_.F.onPlayerExpandMiniplayer=function(){_.Mm(this)};
_.F.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.F.onPlayerStateChange=function(){if(this.player){var H=this.player.getPlayerState(),C=H===1;_.AG().dispatch(od7(H));_.AG().dispatch(_.Qv_(H));_.m7(this.miniplayerEl,"yt-miniplayer-play-state-changed",[C]);_.LO().isVideoPlaying=C;if(H===0){C=!_.l3.getInstance().isAutoplaySetExplicitly();var S,w,A,J,c,Y,M=(S=this.watchResponse.response)==null?void 0:(w=S.contents)==null?void 0:(A=w.twoColumnWatchNextResults)==null?void 0:(J=A.autoplay)==null?void 0:(c=J.autoplay)==null?void 0:(Y=c.autoplayExplicitChoiceDialogRenderer)==
null?void 0:Y.confirmDialogRenderer;C&&M&&this.player.setAutonavState(1)}H===0&&this.watchWhileMode&&this.deactivate()}};
_.F.onPlaylistNavigate=function(H,C){var S=this,w,A,J,c,Y,M,m;return _.z(function(W){if(W.nextAddress==1){if(!_.e(C.endpoint,_.sX))return W.return();_.LO().currentEndpoint=C.endpoint;_.m7(S.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.JA().resolve(_.JB).isOnWatch()&&(S.watchWhileMode||S.watchPipMode))return W.return();H.stopPropagation();(J=(A=_.e((w=C.endpoint)==null?void 0:w.commandMetadata,_.u9))==null?void 0:A.url)&&C.tempData&&!_.hb.isEmpty(C.tempData)&&_.JM(J,C.tempData);c={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};Y=new Qj7(function(){return S.getPlayerElement()},c,{layer:S.getScreenLayer()});
M=function(y){Y.processChunk({endpoint:C.endpoint,data:y})};
Os9(S);S.miniplayerFetchRequest=XN9(S,C.endpoint,M);_.en(W,2);return W.yield(S.miniplayerFetchRequest,4)}if(W.nextAddress!=2)return m=W.yieldResult,QE_(S,m),_.xB(W,0);_.Vx(W);_.oT(W)})};
_.F.JSC$18747_onPlaylistDataUpdated=function(){var H=_.JA().resolve(_.qb).getPlaylistData();this.hasPlaylistData=!!H;_.WT(this,{externalPlaylistData:H||{}})};
_.F.close=function(H){if(this.isInitialized())if(H){if(!((this.watchWhileMode||this.watchPipMode)&&_.JA().resolve(_.JB).isOnWatch()||this.shortsPipMode)){var C;(C=this.getPlayerElement())==null||C.stop()}this.deactivate()}else _.Nb().closeMiniplayer(this.miniplayerEl)};
_.F.deactivate=function(H){var C=this,S,w,A,J;return _.z(function(c){if(c.nextAddress==1){if(!C.isInitialized()||!C.active)return c.return();C.setActive(!1);Os9(C);(S=!!H&&E1O(C,H))&&C.isSingleOptionSurveyActive&&_.q3(C.miniplayerEl,"yt-show-watch-page-survey",[C.isSingleOptionSurveyActive]);return c.yield(dji(C),2)}if(c.nextAddress!=3){VLi(C,!1);C.isReadyToResume=!1;C.watchResponse=void 0;C.updateMiniplayerData(void 0);C.shortsPipMode&&(C.shortsPipMode=!1,_.AG().dispatch(bgi(C.shortsPipMode)),Dr3(C.pipController),
(w=C.player)==null||w.setInternalSize(NaN,NaN));C.watchPipMode&&(C.watchPipMode=!1,Dr3(C.pipController));(A=C.watchWhileMode)&&_.GRO(C,!1);C.removePlayerListeners();var Y=_.JA().resolve(_.qb);Y.removeEventListener("yt-navigate",_.uA(C,C.onPlaylistNavigate));Y.removeEventListener("yt-playlist-data-updated",_.uA(C,C.JSC$18747_onPlaylistDataUpdated));_.LO().currentEndpoint=null;_.m7(C.miniplayerEl,"yt-miniplayer-endpoint-changed");C.playerElement=null;dqP();if(C.shortsPipMode||C.watchPipMode)c=c.jumpTo(3);
else{Y=c.yield;var M=_.q3(C.miniplayerEl,"yt-deactivate-miniplayer",[S,A])[0];c=Y.call(c,M,3)}return c}(J=C.player)==null||J.setInternalSize(NaN,NaN);C.player=null;_.oT(c)})};
var dji=function(H){var C;return _.z(function(S){C=_.JA().resolve(_.JB);return H.shortsPipMode?S.yield(C.movePlayerToShorts(H.playerElement),0):S.yield(C.movePlayerToWatch(H.playerElement),0)})};
mc.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$18747_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
mc.prototype.setActive=function(H){this.active=H;this.isSingleOptionSurveyActive?_.q3(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.q3(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.AG().dispatch(_.Md({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.GRO=function(H,C){H.watchWhileMode=C;_.WT(H,{watchWhile:C})};
VLi=function(H,C){if(!o1O(H))if(H.shortsPipMode||H.watchPipMode){var S;(S=H.player)==null||S.setDocumentPictureInPicture(C)}else{var w;(w=H.player)==null||w.setMinimized(C)}};
o1O=function(H){return H.watchWhileMode&&_.E("kevlar_watch_while_counterfactual")};
_.Mm=function(H){var C;return _.z(function(S){switch(S.nextAddress){case 1:if(!H.isInitialized())return S.return();_.en(S,2);return S.yield(H.miniplayerFetchRequest,4);case 4:_.xB(S,3);break;case 2:_.Vx(S);case 3:H.watchResponse&&H.miniplayerData&&H.miniplayerData.watchEndpoint?(C={url:H.watchResponse.url,endpoint:H.miniplayerData.watchEndpoint,data:H.watchResponse,miniplayer:!0},_.M3(H.miniplayerEl,"yt-navigate-cache",C)):H.miniplayerData&&H.miniplayerData.watchEndpoint&&_.M3(H.miniplayerEl,"yt-navigate",
{endpoint:H.miniplayerData.watchEndpoint}),_.oT(S)}})};
X6W=function(H,C,S){var w,A,J,c;return _.z(function(Y){if(Y.nextAddress==1){if(E1O(H,C))return Y.return();_.LO().currentEndpoint=C;_.m7(H.miniplayerEl,"yt-miniplayer-endpoint-changed");_.m7(H.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.LO().isVideoPlaying=!1;w={clientParams:{miniplayer:!0,autoSaveToQueue:!S}};A=new Qj7(function(){return H.getPlayerElement()},w,{layer:H.getScreenLayer(),
parentLayer:0},void 0,H.readyToResumeVe);J=function(M){var m,W,y=Object.assign({},(m=M.playerResponse)==null?void 0:(W=m.playerConfig)==null?void 0:W.playbackStartConfig,{startPaused:!0}),N;S&&((N=M.playerResponse)==null?0:N.playerConfig)&&(M.playerResponse.playerConfig.playbackStartConfig=y);A.processChunk({endpoint:C,data:M})};
Os9(H);H.miniplayerFetchRequest=XN9(H,C,J);_.en(Y,2);return Y.yield(H.miniplayerFetchRequest,4)}if(Y.nextAddress!=2)return c=Y.yieldResult,QE_(H,c),_.xB(Y,0);_.Vx(Y);_.oT(Y)})};
mc.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var Os9=function(H){H.miniplayerFetchRequest&&(H.miniplayerFetchRequest.cancel&&H.miniplayerFetchRequest.cancel("Active request obsolete"),H.miniplayerFetchRequest=null)},XN9=function(H,C,S){var w=_.ai.instance,A,J=(A=_.e(C.commandMetadata,_.u9))==null?void 0:A.url,c;
A=!J||_.E("disable_miniplayer_tempdata")?{}:(c=$Zp(J))!=null?c:{};return Ld(w,C,A,window.location.href,"watch",function(Y,M){S(M)},function(Y){return Y!==H.miniplayerFetchRequest})},QE_=function(H,C){var S;
_.z(function(w){if(!C)return w.return();H.watchResponse=C;lpt(H);fp9(H);S=_.Pf(C.response,!1,C.playerResponse);if(H.isMiniplayerActive()){C.response&&(H.playerElement.watchNextData=C.response);var A=_.hb.getValueByKeys.apply(_.hb,[C].concat(_.k$(Dl7)));_.hb.getValueByKeys.apply(_.hb,[C].concat(_.k$(UlV)))&&A&&_.JA().resolve(_.qb).setAutoplayRenderer(A);if(A)if(_.E("kevlar_is_pupi_enabled")){var J,c,Y,M,m,W=((J=C.response)==null?0:(c=J.playerOverlays)==null?0:(Y=c.playerOverlayRenderer)==null?0:(M=
Y.autonavToggle)==null?0:(m=M.autoplaySwitchButtonRenderer)==null?0:m.enabled)?2:1;_.l3.getInstance().setState(W,!1,!1)}else J=RJ0()?2:1,(W=H.player)==null||W.setAutonavState(J);H.updateMiniplayerData(S);_.v1j(H)}_.oT(w)})},fp9=function(H){var C,S,w=(C=H.watchResponse)==null?void 0:(S=C.playerResponse)==null?void 0:S.playabilityStatus,A;
C=w==null?void 0:(A=w.miniplayer)==null?void 0:A.miniplayerRenderer;(C==null?void 0:C.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&C.minimizedEndpoint&&_.WH(H.miniplayerEl,[C.minimizedEndpoint]);_.WT(H,{playabilityStatus:w})};
mc.prototype.openToast=function(H,C){_.WT(this,{toastData:{data:H,label:C}})};
_.WT=function(H,C){(0,H.miniplayerPropSignalMap[1])(C)};
mc.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var H;return this.playerElement?this.playerElement:(H=_.mY(this.miniplayerEl).querySelector("#player-container"))==null?void 0:H.firstElementChild};
mc.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var eUo=function(H,C){C=C===void 0?!1:C;var S,w,A,J,c,Y,M;return _.z(function(m){if(m.nextAddress==1){S=navigator.userActivation.isActive||C;if(!S||!H.pictureInPictureSupported())return m.return(!1);w=PWq(H);A=w.width;J=w.height;return m.yield(H.pipController.openWindow({width:A,height:J}),2)}c=m.yieldResult;Y=H.pipController.getWindow();if(!Y||!c)return m.return(!1);Y.document.body.style.overflow="hidden";M=mCD(Y);KT9(H.pipController,function(){$j3(H);M()});
return m.return(!0)})},PWq=function(H){var C=_.LO().shortsPipActivation,S,w;
H=C?.5625:(w=(S=H.player)==null?void 0:S.getVideoAspectRatio())!=null?w:16/9;S=Math.min(window.innerWidth,window.innerHeight)/2;C=C?0:76;return H>1?new _.vj(S,C+S/H):new _.vj(S*H,C+S)},$j3=function(H){var C;
_.z(function(S){C=_.JA().resolve(_.JB);return C.isOnWatch()&&H.watchPipMode||C.isOnShorts()&&H.shortsPipMode?S.yield(H.deactivate(),0):H.miniplayerToPipMode?S.yield(bsr(H),0):H.watchPipMode?S.yield(_.Mm(H),0):S.jumpTo(0)})};
mc.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.JJ.Object.defineProperties(mc.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
mc[F0]=[thi,YKb];var pNr="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(" "),
kRj="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(" "),hU9="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
n13="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var rao=null;var B6R={},Djt=(B6R.initialized={priority:10,callback:function(H){var C=_.JA();C.addProvider({provide:djU,useClass:g$j});C.addProvider({provide:_.L2i,useFactory:function(){return new PW1}});
C.addProvider({provide:Js,useValue:_.rh("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});C.addProvider({provide:r_O,useValue:5184E6});C.addProvider({provide:FjO,useValue:_.oh()});C.addProvider({provide:mrO,useClass:Mz_});C.addProvider({provide:Nl,useClass:Nl});C.addProvider({provide:_.qp,useFactory:function(){return Ed_.promise}});
C.addProvider({provide:_.uXd,useFactory:function(){return _.eR7.promise}});
C.addProvider({provide:vs7,useValue:function(){var M;return((M=_.Zz())==null?void 0:M.getPlayer())||null}});
var S={};C.addProvider((S.provide=_.$0,S.useFactory=function(M,m){return function(){return fii(M,m)}},S[F0]=[Js,
r_O],S));S={};C.addProvider((S.provide=_.B_,S.useClass=d9r,S[F0]=[Js,r_O],S));S={};C.addProvider((S.provide=_.QRp,S.useClass=kKp,S[F0]=[_.B_],S));C.addProvider({provide:xN,useFactory:_.AG});C.addProvider({provide:Fn,useFactory:_.AG});C.addProvider({provide:f4t,useFactory:_.AG});C.addProvider({provide:CTn,useFactory:_.AG});C.addProvider({provide:_.MU,useFactory:_.AG});C.addProvider({provide:K$,useValue:_.Gn});C.addProvider({provide:n$i,useClass:hu$});C.addProvider({provide:W19,useClass:miq});C.addProvider({provide:Em,
useClass:Em});C.addProvider({provide:t$,useClass:t$});C.addProvider({provide:L$,useClass:L$});C.addProvider({provide:Ue,useClass:Ue});C.addProvider({provide:VT,useClass:VT});C.addProvider({provide:sz,useClass:sz});C.addProvider({provide:Ig,useClass:Ig});C.addProvider({provide:_.eir,useValue:ckO});C.addProvider({provide:_.Av,useFactory:_.lJ});C.addProvider({provide:DH,useFactory:_.VN});S={};C.addProvider((S.provide=W8u,S.useFactory=function(M){return function(m){var W=W===void 0?{}:W;var y,N,b=(N=
_.e((y=m.endpoint)==null?void 0:y.commandMetadata,_.u9))==null?void 0:N.rootVe;if(b){var u,O;if(y=m.previousCsn||((O=_.e((u=m.endpoint)==null?void 0:u.commandMetadata,R$V))==null?void 0:O.parentCsn)){var d=d===void 0?{}:d;if(y!==_.Dg(d.layer)||b!==IxE(d.layer))Cki(y,d.cttAuthInfo,d.layer||0),UgE(y,d.layer||0),u=d.layer||0,_.np(RqE(u===void 0?0:u),b);W.parentCsn=y}m.endpoint&&y?mqM(M,m.endpoint,W):_.kP(M,b,void 0,W);var p;((p=m.response)==null?0:p.trackingParams)&&M.graftServerVe(m.response.trackingParams);
var k;((k=m.playerResponse)==null?0:k.trackingParams)&&M.graftServerVe(m.playerResponse.trackingParams);var R;((R=m.reelWatchSequenceResponse)==null?0:R.trackingParams)&&M.graftServerVe(m.reelWatchSequenceResponse.trackingParams)}}},S[F0]=[_.Av],S));
S={};C.addProvider((S.provide=l4O,S.useClass=vDq,S[F0]=[K$,_.MU],S));S={};C.addProvider((S.provide=gq,S.useClass=gq,S[F0]=[_.qp,_.MU],S));S={};C.addProvider((S.provide=D_,S.useClass=D_,S[F0]=[Fn,_.ZQ],S));C.addProvider({provide:_.$ri,useClass:gDp});S={};C.addProvider((S.provide=_.jD,S.useClass=hBj,S[F0]=[_.$ri,_.AA(_.JT)],S));C.addProvider({provide:_.wz,useClass:Iz});C.addProvider({provide:_.S_3,useClass:v$R});C.addProvider({provide:_.AT,useClass:Um});_.E("enable_ai_companion")&&(C.addProvider({provide:_.JT,
useClass:BPj}),C.addProvider({provide:_.ZI7,useClass:v3_}),C.addProvider({provide:_.PBj,useClass:dri}));S={};C.addProvider((S.provide=_.hs,S.useClass=LTK,S[F0]=[_.hs],S));C.addProvider({provide:_.h6,useClass:c_3});C.addProvider({provide:s0,useClass:s0});C.addProvider({provide:fB,useClass:fB});C.addProvider({provide:ZH,useClass:ZH});S={};C.addProvider((S.provide=Ky,S.useClass=Ky,S[F0]=[_.ZQ,_.Lf],S));C.addProvider({provide:yw,useClass:Rz});S={};C.addProvider((S.provide=E0,S.useClass=E0,S[F0]=[_.wz,
yw],S));S={};C.addProvider((S.provide=TE,S.useClass=TE,S[F0]=[_.wz],S));_.E("web_enable_feedback_endpoint_resolver")&&(S={},C.addProvider((S.provide=HO,S.useClass=HO,S[F0]=[xN,aD],S)),C.addProvider({provide:aD,useClass:dio}));_.E("web_enable_feedback_endpoint_resolver_batch_2")&&(S={},C.addProvider((S.provide=CB,S.useClass=CB,S[F0]=[xN],S)),S={},C.addProvider((S.provide=iS,S.useClass=iS,S[F0]=[aD],S)));S={};C.addProvider((S.provide=NG,S.useClass=NG,S[F0]=[_.AT,yw],S));S={};C.addProvider((S.provide=
MG,S.useClass=MG,S[F0]=[_.AT],S));S={};C.addProvider((S.provide=bS,S.useClass=bS,S[F0]=[_.Lf,_.jD],S));S={};C.addProvider((S.provide=WO,S.useClass=WO,S[F0]=[_.Lf,_.Av],S));C.addProvider({provide:R3,useClass:R3});S={};C.addProvider((S.provide=BO,S.useClass=BO,S[F0]=[xN],S));C.addProvider({provide:ZE,useClass:ZE});C.addProvider({provide:Fk,useClass:Fk});S={};C.addProvider((S.provide=Yh,S.useClass=Yh,S[F0]=[xN],S));S={};C.addProvider((S.provide=z3,S.useClass=z3,S[F0]=[_.Lf,xN],S));S={};C.addProvider((S.provide=
MF,S.useClass=MF,S[F0]=[xN],S));S={};C.addProvider((S.provide=qF,S.useClass=qF,S[F0]=[xN],S));S={};C.addProvider((S.provide=qG,S.useClass=qG,S[F0]=[_.jD],S));S={};C.addProvider((S.provide=i_,S.useClass=i_,S[F0]=[_.Av],S));S={};C.addProvider((S.provide=Az,S.useClass=Az,S[F0]=[g8],S));S={};C.addProvider((S.provide=Jz,S.useClass=Jz,S[F0]=[g8],S));C.addProvider({provide:sG,useClass:sG});C.addProvider({provide:j0,useClass:j0});C.addProvider({provide:Hk,useClass:Hk});S={};C.addProvider((S.provide=eY,S.useClass=
eY,S[F0]=[_.jD,_.ZQ],S));C.addProvider({provide:As,useClass:As});S={};C.addProvider((S.provide=ms,S.useClass=ms,S[F0]=[_.Lf,_.jD],S));C.addProvider({provide:cO,useClass:cO});S={};C.addProvider((S.provide=nB,S.useClass=nB,S[F0]=[xN,_.Lf,_.hs],S));S={};C.addProvider((S.provide=pB,S.useClass=pB,S[F0]=[_.Lf,_.ZQ],S));C.addProvider({provide:jlP,useValue:k1V});C.addProvider({provide:cw7,useValue:nZW});C.addProvider({provide:kZ,useClass:kZ});S={};C.addProvider((S.provide=$Z,S.useClass=$Z,S[F0]=[xN],S));
S={};C.addProvider((S.provide=r8,S.useClass=r8,S[F0]=[_.h6,_.ZQ],S));S={};C.addProvider((S.provide=SY,S.useClass=SY,S[F0]=[_.ZQ],S));C.addProvider({provide:ID,useFactory:function(){return new ID(_.AG())}});
C.addProvider({provide:pKu,useFactory:_.hG.getInstance});S={};C.addProvider((S.provide=FI,S.useClass=FI,S[F0]=[Js,pKu,_.ZQ],S));C.addProvider({provide:jY,useClass:jY});C.addProvider({provide:t2,useClass:t2});C.addProvider({provide:gY,useClass:gY});C.addProvider({provide:_.Ly,useClass:_.Ly});C.addProvider({provide:Wk,useClass:Wk});S={};C.addProvider((S.provide=XI,S.useClass=XI,S[F0]=[Fn],S));S={};C.addProvider((S.provide=GE,S.useClass=GE,S[F0]=[_.ZQ],S));S={};C.addProvider((S.provide=Qw,S.useClass=
Qw,S[F0]=[_.ZQ],S));S={};C.addProvider((S.provide=d8,S.useClass=d8,S[F0]=[_.ZQ],S));_.E("web_enable_prefetching_videos_on_home")&&(C.addProvider({provide:B0,useClass:B0}),C.addProvider({provide:Ff,useClass:Ff}));S={};C.addProvider((S.provide=mX,S.useClass=mX,S[F0]=[_.ZQ],S));C.addProvider({provide:Uh,useClass:Uh});S={};C.addProvider((S.provide=I3,S.useClass=I3,S[F0]=[_.Lf,_.ZQ],S));S={};C.addProvider((S.provide=RD,S.useClass=RD,S[F0]=[_.ZQ],S));S={};C.addProvider((S.provide=ZP,S.useClass=ZP,S[F0]=
[_.Lf,_.ZQ],S));C.addProvider({provide:Jq,useClass:Jq});C.addProvider({provide:lS,useClass:lS});S={};C.addProvider((S.provide=vO,S.useClass=vO,S[F0]=[Fn,_.ZQ],S));C.addProvider({provide:o3,useClass:o3});S={};C.addProvider((S.provide=b_,S.useClass=b_,S[F0]=[Fn,_.ZQ,_.Lf],S));S={};C.addProvider((S.provide=EG,S.useClass=EG,S[F0]=[_.ZQ],S));S={};C.addProvider((S.provide=NF,S.useClass=NF,S[F0]=[_.ZQ,_.Lf],S));S={};C.addProvider((S.provide=PO,S.useClass=PO,S[F0]=[_.qp],S));S={};C.addProvider((S.provide=
O0,S.useClass=O0,S[F0]=[_.qp],S));C.addProvider({provide:LB,useClass:LB});C.addProvider({provide:U0,useClass:U0});C.addProvider({provide:ck,useClass:ck});C.addProvider({provide:a3,useClass:a3});C.addProvider({provide:ts,useClass:ts});C.addProvider({provide:YZ,useClass:YZ});C.addProvider({provide:KB,useClass:KB});_.E("kevlar_enable_mss_lazy_load")&&C.addProvider({provide:_.tN,useClass:V2p});C.addProvider({provide:_.Ri,useClass:x0});C.addProvider({provide:vg,useFactory:function(){return _.a8.getInstance()}});
C.addProvider({provide:uT9,useFactory:kS7});C.addProvider({provide:g8,useFactory:function(){return _.C$.getInstance()}});
C.addProvider({provide:zRM,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});S={};C.addProvider((S.provide=_.KY,S.useClass=_.KY,S[F0]=[_.qp,_.ZQ,_.Av,uT9,g8,vg,zRM,K$],S));C.addProvider({provide:_.g9,useClass:IPM});C.addProvider({provide:_.Dip,useClass:BUi});S={};C.addProvider((S.provide=zE,S.useClass=zE,S[F0]=[_.Dip],S));S={};C.addProvider((S.provide=_.tR,S.useFactory=function(M){return M.upliftCompletionResolver.promise},S[F0]=[l4O],S));
S=_.Bh("IS_SHELL_LOAD")?"aa":"eocs";var w=_.Bh("IS_SHELL_LOAD")?3:2;_.mN().parkOrScheduleJob(function(){oDK()},w,S);
_.mN().parkOrScheduleJob(function(){_.JA().resolve(gq).start()},2,"eocs");
_.mN().parkOrScheduleJob(function(){G7o()},2,"eocs");
_.mN().parkOrScheduleJob(function(){_.JA().resolve(D_).start()},2,"eocs");
_.E("kevlar_debug_data_app_registration_ks")||RgZ();C.addProvider({provide:_.Qi,useValue:new NuO(H.root)});C.addProvider({provide:Us,useValue:new sJW});C.addProvider({provide:_.lw3,useValue:new fwO(H.root)});C.addProvider({provide:_.tG,useValue:new vER});C.addProvider({provide:_.HS,useClass:aI});C.addProvider({provide:thi,useClass:az});_.E("kevlar_network_sli_killswitch")||C.addProvider({provide:iXj,useValue:iS_});C.addProvider({provide:rYi,useFactory:dVE});_.E("web_bind_fetch")&&(S={},C.addProvider((S.provide=
Bsr,S.useFactory=PH7,S[F0]=[_.AA(rYi)],S)));_.E("web_bind_window_request")&&(S={},C.addProvider((S.provide=K2o,S.useFactory=$Vp,S[F0]=[_.AA(rYi)],S)));_.E("web_bind_text_decoder")&&(S={},C.addProvider((S.provide=tni,S.useFactory=p6p,S[F0]=[_.AA(rYi)],S)));S={};C.addProvider((S.provide=ziO,S.useFactory=qL$,S[F0]=[_.tR,xN,_.$0],S));S={};C.addProvider((S.provide=Y_i,S.useClass=e0,S[F0]=[ziO],S));C.addProvider({provide:lqr,useClass:uRi});C.addProvider({provide:J9K,useClass:Zrj});S=[].concat(_.k$(S4));
_.E("web_continuation_response_processing")&&S.push(_.UU);S.push(l$7);_.E("enable_share_panel_navigation_logging_fix_on_web")&&S.push(_.KyU);C.addProvider({provide:MP$,useValue:S});C.addProvider({provide:n2$,useClass:A9j});C.addProvider({provide:wji,useClass:CR9});S={};C.addProvider((S.provide=$CV,S.useClass=hpj,S[F0]=[Fn],S));_.rT.addLowPriorityJob(function(){wXp()});
S={};C.addProvider((S.provide=jCd,S.useFactory=function(M){return function(m){var W,y=(W=_.e(m.commandMetadata,_.u9))==null?void 0:W.url;if(!y)throw new _.X0("No URL for PBJ Command",m);y=$3i(y,{pbj:"1"});W=Sap(y,{})||{};W=Object.assign({},W,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.rh("STS").toString()});m=_.u5({command:JSON.stringify(m),session_token:_.rh("XSRF_TOKEN")});return M.fetch(y,{method:"POST",headers:W,body:m})}},S[F0]=[wji],S));
C.addProvider({provide:aA_,useFactory:function(){var M={};return M.CSI=hjU(),M.ECATCHER=k2$(),M}});
C.addProvider({provide:V6u,useClass:xO9});S=[];S.push(C.resolve(J9K));w={};w=(w.client_location=_.hG.getInstance(),w.consistency=_.wqi(),w.entities=C.resolve(W19),w.response_received_commands=C.resolve(n2$),w.store=C.resolve(_.QRp),w.tokens=C.resolve(J9K),w.service_params=C.resolve(V6u),w);if(_.E("web_shorts_prefetch_service_enabled")){var A=new hii(C.resolve(_.B_));w.shorts_prefetch=A}w.adblock_detection=C.resolve($CV);C.addProvider({provide:_.Hn,useClass:_.Hn});A=C.resolve(_.eir);var J=[];_.E("PremiumClientSharedConfig__enable_att_context_processor")&&
(C.addProvider({provide:CY9,useClass:xD3}),J.push(C.resolve(CY9)));if(_.E("owl_pl_await")){var c={};C.addProvider((c.provide=QTR,c.useFactory=function(M){return new OMO(M)},c[F0]=[_.Hn],c));
J.push(C.resolve(QTR))}qG7(A,C.resolve(wji),C.resolve(n$i),w,C.resolve(_.B_),S,J,C.resolve(Y_i),C.resolve(lqr));C.addProvider({provide:_.Lf,useValue:_.xb.instance});_.E("start_client_gcf")&&C.addProvider({provide:Qm,useValue:cJ7()});C.addProvider({provide:XVq,useFactory:function(){return new XVq(_.JA().resolve(_.Hn),_.C$.getInstance())}});
_.mN().parkOrScheduleJob(function(){Q29()},1,"eocs");
S={};C.addProvider((S.provide=LY,S.useClass=LY,S[F0]=[_.$0,_.Lf],S));C.addProvider({provide:_.HMr,useFactory:_.Aq.getInstance});_.mN().parkOrScheduleJob(function(){_.JA().resolve(LY).refresh()},0,"eocs");
wL7(ckO.watchEndpointMap||{},A.reelWatchEndpointMap||{},H.injector.resolve(_.Lf));C.addProvider({provide:vf,useValue:_.ai.instance});_.E("kevlar_signal_collection_killswitch")||(S={},C.addProvider((S.provide=TPo,S.useClass=TPo,S[F0]=[Js,DH],S)),_.mN().parkOrScheduleJob(function(){_.JA().resolve(TPo).record()},1,"eocs"));
_.E("web_debug_handler_registration_killswitch")||_.mN().parkOrScheduleJob(function(){g0W("DOWNLOAD_PES",pD7);_.E("offline_client_state_export_ks")||g0W("OFFLINE_CLIENT_STATE",daU)},0,"eocs");
_.E("kevlar_prevent_polymer_dynamic_font_load")&&_.mN().parkOrScheduleJob(function(){var M=[_.qH(Txr),_.qH(mHq)];M=_.Z(M);for(var m=M.next();!m.done;m=M.next()){m=m.value;var W=document.createElement("link");_.ce(W,m,"stylesheet");document.head.appendChild(W)}},1,"eocs");
S=H.injector.resolve(_.Lf);_.iPj.instance=new _.iPj(S);WMZ(LEi(new HPK(S)));S={};H.injector.addProvider((S.provide=ZV,S.useFactory=function(M){(M=M==null?void 0:M.getCurrentPage())?M=M.visibilityObserver:(rao||(rao=YuW()),M=rao);return M},S[F0]=[_.AA(_.JB)],S.skipCache=!0,S));
C.addProvider({provide:_.Df,useClass:mc});C.addProvider({provide:II,useClass:sU1});H.injector.addProvider({provide:Hy7,useValue:yVr});C.addProvider({provide:DP1,useValue:d2W});_.E("web_cow_button_renderer_wiz_token")&&C.addProvider({provide:BDb,useValue:k6_});C.addProvider({provide:RFW,useValue:Ve$});C.addProvider({provide:_.sU,useValue:teZ});H=C.addProvider;SMj||(SMj=new Cfq);H.call(C,{provide:_.HT,useValue:SMj});C.addProvider({provide:_.wW,useValue:_.rh("HTML_DIR")==="rtl"?"rtl":"ltr"});C.addProvider({provide:NUo,
useClass:OPt});C.addProvider({provide:_.E4,useClass:iV});_.JA().addProvider({provide:EMi,useValue:_.E("enable_web_delhi_icons")?kRj.concat(n13):pNr.concat(hU9)});C.addProvider({provide:_.SX,useClass:_.SX});C.addProvider({provide:_.Yl_,useValue:new cb3});C.addProvider({provide:Tbi,useClass:qn9});C.addProvider({provide:xZ,useClass:xZ});C.addProvider({provide:CA,useClass:CA});H={};C.addProvider((H.provide=uS,H.useClass=uS,H[F0]=[_.Lf,_.jD],H));C.addProvider({provide:yJ,useClass:yJ});C.addProvider({provide:Pn1,
useClass:RBK});C.addProvider({provide:wf,useClass:wf});C.addProvider({provide:LIV,useValue:O2P});C.addProvider({provide:_.Eh,useClass:TUo});_.E("enable_payments_purchase_manager")&&C.addProvider({provide:w7i,useClass:SnO});C.addProvider({provide:qlR,useFactory:function(){return function(M){return _.M2j(M)}}});
C.addProvider({provide:_.jO9,useClass:w39});H={};C.addProvider((H.provide=T3,H.useClass=T3,H[F0]=[_.jO9],H));C.addProvider({provide:S0,useClass:S0});C.addProvider({provide:VF1,useValue:AVK});C.addProvider({provide:Npb,useValue:_.ZMO});C.addProvider({provide:JqZ,useClass:Ur_});C.addProvider({provide:sTK,useValue:mxO});H={};C.addProvider((H.provide=jTj,H.useClass=weo,H[F0]=[sTK],H));H={};C.addProvider((H.provide=_.IC,H.useClass=yki,H[F0]=[jTj],H));H={};C.addProvider((H.provide=_.jX,H.useClass=sT,H[F0]=
[_.MU,_.HS],H));if(_.E("web_explore_hub_on_hover")||_.E("web_client_explore_hub_on_hover"))H={},C.addProvider((H.provide=w8,H.useClass=w8,H[F0]=[_.Lf,vg],H));if(_.E("web_enable_renderer_logger")){var Y=new h9t;ri6(function(){Y.abort()});
C.addProvider({provide:eFZ,useValue:new WTR(Y.signal)})}C.addProvider({provide:CSb,useValue:NkE});C.addProvider({provide:Ap7,useClass:ntt})}},B6R);var KBi={},tLp=(KBi.initialized={priority:10,callback:function(){if(!HXt){cgW();rDZ("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.NE(_.l9(rDZ,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.E("log_heartbeat_with_lifecycles")){var H={};OI.instance||(OI.instance=new OI);OI.instance.install((H.document_visible={callback:B76,priority:10},H.document_hidden={callback:B76,priority:10},H))}else _.Jt(document,"visibilitychange",B76);HXt=!0}(H=_.Dg())&&H!=="UNDEFINED_CSN"&&LiZ(H)}},KBi);var LBo={},g1q=(LBo.initialized={callback:function(H){var C=_.y4(232091),S=H.injector.resolve(_.Av);_.hd(S,C);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?Wqi()&&_.rH(S,C):(H=H.injector.resolve(qlR)("refresh_detector"))&&(H.get("first_tab_load")?_.rH(S,C):H.set("first_tab_load","1"))}},LBo);var Uj_={},RU9=(Uj_.initialized={priority:10,callback:fjW},Uj_);var IpO={},app=(IpO.initialized={priority:0,callback:function(){var H=new caP,C="other";_.yK?C="chrome":_.Wu?C="firefox":_.tA?C="safari":jk&&(C="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(S){H.increment(_.VD(),S,C)}).catch(function(){H.increment(_.VD(),!1,C)}):H.increment(_.VD(),!1,C)}},IpO);var xjO={},Hp9=(xjO.rendering={priority:8,callback:v20},xjO);var ipi={},CEi=(ipi.rendering={priority:10,callback:B_0},ipi.rendered={callback:rWE},ipi),Sgt={},s6t=(Sgt.rendering={callback:B_0},Sgt.rendered={callback:rWE},Sgt);var j6p=!1,who={},AE9=(who.initialized={priority:10,callback:function(){j6p||($Qi({didPatch:function(H){H.el&&xVV(H.el,H.props)},
didUnmount:function(H){IvW(H.el)}}),j6p=!0)}},who);var JEK=/^\/shorts\/?$/;_.np("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:{}}}}}}});_.E("kevlar_enable_mss")&&(_.B4Z(new i87),gQ$());
(function(){var H=document.querySelector("ytd-app");if(!H)throw Error("Rj");H=new w0({root:H,injector:_.JA()});H.install(tLp);var C={};H.install((C.initialized={priority:10,callback:SrE},C));_.E("wp_lat_b")&&(C={},H.install((C.initialized={priority:10,callback:function(){OjV()}},C)));
C={};H.install((C.rendered={priority:0,callback:HtZ},C));C={};H.install((C.rendered={priority:0,callback:function(){_.rT.addLowPriorityJob(function(){_.X7j>1&&(L$E(),aku())},4E4)}},C));
H.install(DHr);H.install(g1q);H.install(AE9);ZGZ();H.install(H6r);H.install(pj3);H.install(rb9);H.install(FTr);H.install(MhO);H.install(a9i);H.install(Djt);_.E("kevlar_enable_mss_lazy_load")&&H.install(RU9);H.install(h_p);H.install(app);if(!_.Bh("IS_SHELL_LOAD")||_.E("kevlar_fetch_initial_data_promise_client")||_.E("sw_nav_preload_pbj")){var S=_.EE(window.location.href);C=S&&S==="/watch";S=S&&S.match(JEK);C?H.install(s6t):S?H.install(Hp9):H.install(CEi)}else H.install(dHO);H.install(t2R);_.E("web_enable_prefetching_videos_on_home")&&
H.install(s7i);_.E("start_client_gcf")&&H.install(IAR);H.install(s2_);(new YF7).increment("INSTALLED");H.install(CdO);H.install(OXt);H.transition("initialized");ej$()})();
_.yL=[[["amtpbmQjNTEyOTVnN3ZvYzQ=","YWx1ZSNoaTFrcDV2MjloNmp2"],"TUVOVF9LSU5EX01JTExJU0VDT05EUyNpcGp2NnJvejZnN2pBRF9QTEFDRQ=="]];_.WU=["enFmcmdsN2dsb2JhbENhbGxiYWNrcyMxdGd1bw==","aG9uQWJub3JtYWxpdHlEZXRlY3RlZCNoNndudHZweGxzcg==","cCNyMW80MTRjMzVtNmtvbkFkU2tp","OTd1cmF3X3BsYXllcl9yZXNwb25zZSNrcnA1NjNhaXk=","I3B0N2xqYjE5czl2bnBsYXllckFkcw=="];_.e8="enFmcmdsN2dsb2JhbENhbGxiYWNrcyMxdGd1bw== aG9uQWJub3JtYWxpdHlEZXRlY3RlZCNoNndudHZweGxzcg== cCNyMW80MTRjMzVtNmtvbkFkU2tp OTd1cmF3X3BsYXllcl9yZXNwb25zZSNrcnA1NjNhaXk= dWV1ZV9tdWx0aXBsZV9za2lwc19rcyMzOG91Y2l2aWc1Y3N3ZWJfcGxheWxpc3RfcQ== ZiNkeXJ1MmptbzRvc25hYl9zYV9l I3B0N2xqYjE5czl2bnBsYXllckFkcw==".split(" ");
_._ModuleManager_initialize=function(H,C){if(!_.$J){if(!_.p6)return;_.B4Z(_.p6())}_.$J.setAllModuleInfoString(H,C)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5:2,3/sy6/sy7/sy8/sy9/NSzT5/syb/syc/kevlar_main_module:1,4,5,6,7,8,9/sye:2/syd:5,b,e/syf:f/syg/syh:6/syi/h8y2qb:4,g,h,i,j/syj/JzFVk:e,i,j,l/syk:8/xwEKAe:3,9,h,j,n/syl:f/sym:1,c,f,h,l,n/syn:q/nmfa2d:j,p,r/syo:7,q/syp:i,j,r,t/CF909:p,u/Tm0L3c:u/L3n37:g,i,j,p,t/iuT5Oc',['sy2','sy3','sy8','sye','syb','sy5','syk','syj','syg','syd','syc','sy1','sym','sy7','sy6','syo','syn','syi','syh','syl','syf','syp','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module','NSzT5']);
}catch(e){_._DumpException(e)}
try{
_.ET=function(H,C,S,w,A){var J={};C&&(J[C]=S);w?J.errorType=w:A&&(J.errorReason=A);_.kI(H,J);_.ht()};
_.eX=function(H){var C=_.mN();return _.CjM(C,H,1)};
_.hr({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 H=this.query;H&&(this.full||H[0]==="("||(H="("+H+")"),this._mq=window.matchMedia(H),this._add(),this.queryHandler(this._mq))},
queryHandler:function(H){this._setQueryMatches(H.matches)}});var Nhq;var bpi;var ETO=function(){};
_.F=ETO.prototype;_.F.addOwnKeyBinding=function(){};
_.F.removeOwnKeyBindings=function(){};
_.F.keyboardEventMatchesKeys=function(){};
_.F._collectKeyBindings=function(){};
_.F._prepKeyBindings=function(){};
_.F._addKeyBinding=function(){};
_.F._resetKeyEventListeners=function(){};
_.F._listenKeyEventListeners=function(){};
_.F._unlistenKeyEventListeners=function(){};
_.F._onKeyBindingEvent=function(){};
_.F._triggerKeyHandler=function(){};
_.F._tapHandler=function(){};
_.F._focusChanged=function(){};
_.F._detectKeyboardFocus=function(){};
_.F._userActivate=function(){};
_.F._upHandler=function(){};
_.F._spaceKeyDownHandler=function(){};
_.F._spaceKeyUpHandler=function(){};
_.F._asyncClick=function(){};
_.F._pressedChanged=function(){};
_.F._ariaActiveAttributeChanged=function(){};
_.F._activeChanged=function(){};
_.F._controlStateChanged=function(){};
_.F._changedButtonState=function(){};
_.F._focusBlurHandler=function(){};
_.F._disabledChanged=function(){};
_.F._changedControlState=function(){};
_.F._downHandler=function(){};
_.F.ensureRipple=function(){};
_.F.getRipple=function(){};
_.F.hasRipple=function(){};
_.F._noinkChanged=function(){};
_.F._focusedChanged=function(){};
_.F._createRipple=function(){};
_.F.registered=function(){};
_.F._invalidChanged=function(){};
_.F.hasValidator=function(){};
_.F.validate=function(){};
_.F._getValidity=function(){};
_.F._requiredChanged=function(){};
_.F._valueChanged=function(){};
_.F._checkedChanged=function(){};
_.F._buttonStateChanged=function(){};
_.F._setPressed=function(){};
_.F._setPointerDown=function(){};
_.F._setReceivedFocusFromKeyboard=function(){};
_.F._setFocused=function(){};
ETO=_.hr({is:"tp-yt-paper-radio-button",_template:function(){if(bpi!==void 0)return bpi;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;Nhq===void 0&&(Nhq=document.createElement("template"));var w=Nhq;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return bpi=H},
behaviors:[_.t9d],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(){_.wM(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var H=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),C=Math.floor(3*H);C%2!==H%2&&C++;this.updateStyles({"--paper-radio-button-ink-size":C+"px"})}})}});var ett;var u9o;_.hr({_template:function(){if(u9o!==void 0)return u9o;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;ett===void 0&&(ett=document.createElement("template"));var w=ett;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return u9o=H},
is:"tp-yt-paper-radio-group",behaviors:[_.jJ7],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(H){var C=this._valueToItem(H);if(!C||!C.hasAttribute("disabled")){if(this.selected){C=this._valueToItem(this.selected);if(this.selected==H)if(this.allowEmptySelection)H="";else{C&&(C.checked=!0);return}C&&
(C.checked=!1)}_.SU.select.apply(this,[H]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(H){this._focusPrevious();H.preventDefault();this._activateFocusedItem()},
_onDownKey:function(H){this._focusNext();H.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(H){_.sJd._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(H){_.sJd._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.SU._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.Rx._resetTabindices.apply(this,arguments);this.items.forEach(function(H){H.removeAttribute("aria-selected")},this)}});var GAj;_.hg("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var uV=function(){return _.X.apply(this,arguments)||this};
_.G(uV,_.X);_.F=uV.prototype;_.F.computeHasPrimaryIcon=function(H){return!(!H.icon&&!H.thumbnail)};
_.F.computeHasSecondary=function(H){return!(!H.secondaryIcon&&!H.secondaryNotificationText)};
_.F.computeHideSecondaryString=function(H){return!_.E("disable_hide_empty_secondary_string")&&!H.secondaryNotificationText};
_.F.computeCompactLinkStyle=function(H){return H?H.toLowerCase().replace(/_/g,"-"):""};
_.F.computeHasFitHeight=function(H){return H==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.F.isActiveEndpoint=function(H){return(H=this.get("commandMetadata.webCommandMetadata.url",H))?_.EE(window.location.href)!=="/account_transfer_channel"&&_.EE(window.location.href)!=="/gaia_link"&&_.EE(window.location.href)!=="/channel_switcher"||H!=="/account"?_.EE(window.location.href)===H:!0:!1};
_.F.onTap=function(){var H;((H=this.data)==null?0:H.serviceEndpoint)&&_.WH(this.hostElement,[this.data.serviceEndpoint])};
uV.prototype.onTap=uV.prototype.onTap;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],uV.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],uV.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.K("design:type",Boolean)],uV.prototype,"active",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.K("design:type",String)],uV.prototype,"compactLinkStyle",void 0);
_.D([_.V({computed:"computeIcon_(data.icon)"}),_.K("design:type",Object)],uV.prototype,"icon",void 0);_.D([_.V({computed:"computeIcon_(data.secondaryIcon)"}),_.K("design:type",Object)],uV.prototype,"secondaryIcon",void 0);_.D([_.V({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],uV.prototype,"hasSecondary",void 0);_.D([_.V({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],uV.prototype,"hideSecondaryString",void 0);
_.D([_.Gz("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],uV.prototype,"onTap",null);_.D([_.h({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],uV);
_.B(uV,"ytd-compact-link-renderer",function(){if(GAj!==void 0)return GAj;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return GAj=H},{mode:1});var fYR;_.hg("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var Gw=function(){var H=_.X.apply(this,arguments)||this;H.role="link";H.tabindex="0";H.actionMap=_.E("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 H};
_.G(Gw,_.X);_.F=Gw.prototype;_.F.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.$F()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.F.getCurrentTheme=function(){return _.pf()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.$F()};
_.F.onThemeSelected=function(H,C){var S=H||C?H:_.PU(),w=(S&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!S&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.Sui(_.EE(window.location.href));_.ok(0,165,H);_.ok(0,174,C);this.prefs.save();w&&_.q3(this.hostElement,"yt-dark-mode-toggled-action",[S]);_.q3(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.F.onTap=function(){this.data.serviceEndpoint&&_.WH(this.hostElement,[this.data.serviceEndpoint])};
_.F.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.F.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.F.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
Gw.prototype.onTap=Gw.prototype.onTap;Gw.prototype.dataChanged=Gw.prototype.dataChanged;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],Gw.prototype,"actionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Gw.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.Tj),_.K("design:type",Object)],Gw.prototype,"paperItemBehaviors",void 0);_.D([_.V(),_.K("design:type",Object)],Gw.prototype,"data",void 0);_.D([_.V({value:function(){return _.VN()}}),
_.K("design:type",_.Ng)],Gw.prototype,"prefs",void 0);_.D([_.V(),_.K("design:type",Object)],Gw.prototype,"label",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Gw.prototype,"role",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Gw.prototype,"tabindex",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Gw.prototype,"dataChanged",null);
_.D([_.Gz("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Gw.prototype,"onTap",null);_.D([_.h({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],Gw);
_.Tp()(Gw,"ytd-toggle-theme-compact-link-renderer",function(){if(fYR===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);fYR=H}H=fYR;return H},{allowedProps:["data"],
mode:1});
}catch(e){_._DumpException(e)}
try{
var lYR,VIO;_.fR=function(H){return!!H.getOptions("captions")};
_.vT3=function(H){return(H=H.getOption("captions","track"))?!!H.displayName:!1};
_.vT=function(H,C){_.Oj(C,H,function(){return lYR[C]},function(S){lYR[C]=S;
if(!_.E("mweb_player_ve_show_ks")){var w=_.Dg(0);w&&S&&_.HF(w,S)}})};
_.lV=function(H){(H=lYR[H])&&_.rH(_.lJ(),H)};
lYR={};var oTO;/*

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
*/
_.hr({_template:function(){if(oTO!==void 0)return oTO;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;VIO===void 0&&(VIO=document.createElement("template"));var w=VIO;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return oTO=H},
is:"tp-yt-paper-checkbox",behaviors:[_.t9d],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.wM(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var H=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),C="px",S=H.match(/[A-Za-z]+$/);S!==null&&(C=S[0]);H=parseFloat(H);S=8/3*H;C==="px"&&(S=Math.floor(S),S%2!==H%2&&S++);this.updateStyles({"--paper-checkbox-ink-size":S+
C})}})},
_computeCheckboxClass:function(H,C){var S="";H&&(S+="checked ");C&&(S+="invalid");return S},
_computeCheckmarkClass:function(H){return H?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.DI1._createRipple.call(this)}});var Op9=new _.mi("radioButtonSurveyOptionRenderer"),Xhj=new _.mi("checkboxSurveyOptionRenderer");var Q6j;var dnj;var PEr=0,Vj=function(){var H=_.X.call(this)||this;H.selected=!1;H.isOverlay=!1;H.inputId="toggle-option-"+PEr;PEr++;return H};
_.G(Vj,_.X);Vj.prototype.onTap=function(){_.M3(this.hostElement,"ytd-toggle-option-clicked")};
_.D([_.V(),_.K("design:type",String)],Vj.prototype,"label",void 0);_.D([_.V(),_.K("design:type",String)],Vj.prototype,"inputId",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Vj.prototype,"selected",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Vj.prototype,"isOverlay",void 0);_.D([_.h({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.K("design:paramtypes",[])],Vj);
_.B(Vj,"ytd-toggle-option-renderer",function(){if(dnj!==void 0)return dnj;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return dnj=H},{mode:1});var oc=function(){var H=_.X.apply(this,arguments)||this;H.isToggleOption=!1;H.isOverlay=!1;return H};
_.G(oc,_.X);oc.prototype.onTap=function(H){H.preventDefault();this.data&&(H=!this.data.checked,this.set("data.checked",H),_.M3(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:H,value:this.data.value}))};
_.JJ.Object.defineProperties(oc.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
oc.prototype.onTap=oc.prototype.onTap;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],oc.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],oc.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],oc.prototype,"isToggleOption",void 0);_.D([_.V(),_.K("design:type",Object)],oc.prototype,"isOverlay",void 0);_.D([_.l("data.responseText"),_.K("design:type",String),_.K("design:paramtypes",[])],oc.prototype,"label",null);
_.D([_.Gz("ytd-toggle-option-clicked"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],oc.prototype,"onTap",null);_.D([_.h({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],oc);
_.B(oc,"ytd-checkbox-survey-option-renderer",function(){if(Q6j!==void 0)return Q6j;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Q6j=H},{mode:1});var $nK;var phr;var OT=function(){var H=_.X.apply(this,arguments)||this;H.checked=!1;H.isToggleOption=!1;return H};
_.G(OT,_.X);OT.prototype.onTap=function(){this.data&&(this.checked?_.q3(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.q3(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
OT.prototype.onTap=OT.prototype.onTap;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],OT.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],OT.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],OT.prototype,"checked",void 0);_.D([_.V(),_.K("design:type",Object)],OT.prototype,"isToggleOption",void 0);_.D([_.Gz("ytd-toggle-option-clicked"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],OT.prototype,"onTap",null);
_.D([_.h({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],OT);
_.B(OT,"ytd-radio-button-survey-option-renderer",function(){if(phr!==void 0)return phr;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return phr=H},{mode:1});var Xf=function(){var H=_.X.apply(this,arguments)||this;H.disableAnimation=!1;H.isToggleOption=!0;H.followUpSurveyCommand=null;H.selectedRatingEndpoint=null;H.isSlimlineSurveyFollowUp=!1;H.isShortsStyle=!1;H.styleOverrideAttribute=!0;H.isDarkMode=!1;H.isSubmitted=!1;H.roundedContainer=!0;H.improveShortsResponseRate=_.E("web_improve_shorts_response_rate");H.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 H};
_.G(Xf,_.X);_.F=Xf.prototype;
_.F.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"}}}}};
_.F.attached=function(){var H=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(S){var w;if((w=S[0])!=null&&w.isIntersecting){_.f7().reportShown(H.hostElement);var A;(A=H.intersectionObserver)==null||A.unobserve(H.hostElement)}},{rootMargin:"0px",
threshold:.6});var C;(C=this.intersectionObserver)==null||C.observe(this.hostElement)};
_.F.onDarkModeToggledAction=function(H){this.isDarkMode=H};
_.F.dataChanged=function(){var H;if(((H=this.data)==null?void 0:H.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var C;((C=this.data)==null?void 0:C.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var S,w,A,J;this.darkColorPalette=(S=this.data)==null?void 0:(w=S.inlineContent)==null?void 0:(A=w.compactVideoRenderer)==null?void 0:(J=A.thumbnail)==null?
void 0:J.darkColorPalette;var c,Y,M,m;this.lightColorPalette=(c=this.data)==null?void 0:(Y=c.inlineContent)==null?void 0:(M=Y.compactVideoRenderer)==null?void 0:(m=M.thumbnail)==null?void 0:m.lightColorPalette;var W,y;if(((W=this.data)==null?0:(y=W.inlineContent)==null?0:y.compactVideoRenderer)&&this.isShortsStyle){var N,b,u,O;H=_.m3((N=this.data)==null?void 0:(b=N.inlineContent)==null?void 0:(u=b.compactVideoRenderer)==null?void 0:(O=u.thumbnail)==null?void 0:O.thumbnails);_.Ed(this.hostElement,
{"--yt-background-url":"url("+H+")"})}};
_.F.handleRequestCompletion=function(){this.hostElement.hidden&&_.M3(this.hostElement,"yt-dismissible-item-dismissed")};
_.F.onPopupClosed=function(H){var C;((C=H.detail)==null?void 0:C.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.q3(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.F.handleInlineSurveyRatingSelect=function(H,C){var S=this;this.selectedRatingEndpoint=H;this.followUpSurveyCommand=C;this.expanded=!!H;this.getOptionRenderers().forEach(function(w,A){S.notifyPath("followUpSurveyCommand.followUpOptions."+A+".checkboxSurveyOptionRenderer.checked");S.set("followUpSurveyCommand.followUpOptions."+A+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),H=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.q3(this.hostElement,"yt-reel-non-video-content-dismissal-command",[H]))};
_.F.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.q3(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var H,C=(H=this.data)==null?void 0:H.dismissalEndpoint;C&&this.ytComponentBehavior.resolveCommand(C)}};
_.F.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.q3(this.hostElement,"yt-close-popup-action"))};
_.F.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var H=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{H=this.getOptionRenderers().filter(function(w){return w.checked});
if(H.length===0)return;H=H.map(function(w){return w.responseEndpoint})}var C=[];
H.forEach(function(w,A){A!==0&&(w=_.e(w,_.dR))&&w.feedbackToken&&C.push(w.feedbackToken)});
if(H=H[0]){var S={};C.length>0&&(S.extra_feedback_tokens=C);this.ytComponentBehavior.resolveCommand(H,{form:S})}}};
_.F.getOptionRenderers=function(){var H=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(C){H.isSingleSelect=!!_.e(C,Op9);return H.isSingleSelect?_.e(C,Op9):_.e(C,Xhj)}):[]};
_.F.handleInlineSurveyOptionSelect=function(H){H=this.optionSelector.indexOf(H);H!==-1&&this.optionSelector.selectIndex(H)};
_.F.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.F.maybeGetBackgroundColor=function(H){return this.isDarkMode?H.section2Color:H.section3Color};
_.F.colorPaletteChanged=function(){var H=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;H=H&&this.maybeGetBackgroundColor(H);this.dismissibleEl.style.backgroundColor=!H||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.Iw(H)};
_.JJ.Object.defineProperties(Xf.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
Xf.prototype.colorPaletteChanged=Xf.prototype.colorPaletteChanged;Xf.prototype.onPopupClosed=Xf.prototype.onPopupClosed;Xf.prototype.handleRequestCompletion=Xf.prototype.handleRequestCompletion;Xf.prototype.dataChanged=Xf.prototype.dataChanged;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Xf.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],Xf.prototype,"actionHandlerBehavior",void 0);
_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Xf.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Xf.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.m4),_.K("design:type",Object)],Xf.prototype,"ytdDismissibleItemBehavior",void 0);_.D([_.lA("#follow-up-survey-options"),_.K("design:type",Object)],Xf.prototype,"optionSelector",void 0);_.D([_.V(),_.K("design:type",Object)],Xf.prototype,"data",void 0);
_.D([_.V(),_.K("design:type",Object)],Xf.prototype,"disableAnimation",void 0);_.D([_.V(),_.K("design:type",Object)],Xf.prototype,"isToggleOption",void 0);_.D([_.V(),_.K("design:type",Object)],Xf.prototype,"followUpSurveyCommand",void 0);_.D([_.V(),_.K("design:type",Object)],Xf.prototype,"selectedRatingEndpoint",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Xf.prototype,"expanded",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Xf.prototype,"isSlimlineSurveyFollowUp",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Xf.prototype,"isShortsStyle",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Xf.prototype,"styleOverrideAttribute",void 0);_.D([_.V(),_.K("design:type",Boolean)],Xf.prototype,"isSingleSelect",void 0);_.D([_.V(),_.K("design:type",Object)],Xf.prototype,"isDarkMode",void 0);
_.D([_.V(),_.K("design:type",Object)],Xf.prototype,"lightColorPalette",void 0);_.D([_.V(),_.K("design:type",Object)],Xf.prototype,"darkColorPalette",void 0);_.D([_.l("selectedRatingEndpoint","isShortsStyle"),_.V({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Xf.prototype,"isOptionSelected",null);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Xf.prototype,"roundedContainer",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Xf.prototype,"improveShortsResponseRate",void 0);_.D([_.lA("#dismissible"),_.K("design:type",HTMLElement)],Xf.prototype,"dismissibleEl",void 0);_.D([_.lA("#dismiss-button yt-icon-button"),_.K("design:type",HTMLElement)],Xf.prototype,"dismissButtonEl",void 0);_.D([_.lA("#inline-survey-header yt-icon-button"),_.K("design:type",HTMLElement)],Xf.prototype,"inlineHeaderDismissButtonEl",void 0);
_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Xf.prototype,"dataChanged",null);_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Xf.prototype,"handleRequestCompletion",null);_.D([_.Gz("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Xf.prototype,"onPopupClosed",null);
_.D([_.fx("darkColorPalette","lightColorPalette","isDarkMode"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Xf.prototype,"colorPaletteChanged",null);_.D([_.h({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],Xf);
_.B(Xf,"ytd-inline-survey-renderer",function(){if($nK!==void 0)return $nK;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return $nK=H},{mode:1});var kAi=["en-CA","en","es-MX","fr-CA"];_.ht9=_.n(function(H){var C=_.FH(H,{isOverlay:!1,isModern:!1}),S=C.captionIconType,w=C.onClick;H=C.ariaLabel;var A=C.ariaPressed,J=C.isOverlay,c=C.isModern;C=_.sW("button",function(m){_.vT(m,127299)});
var Y=_.um(function(m){_.lV(127299);w==null||w(m);return!1}),M={};
return _.q("ytm-closed-captioning-button",{class:_.eJ("ytmClosedCaptioningButtonHost",(M.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return S()===-1&&J()},M.ytmClosedCaptioningButtonIconDisabled=function(){return S()===-1&&!J()},M))},_.q("button",{el:C,
class:"ytmClosedCaptioningButtonButton",title:H,"aria-label":H,"aria-pressed":A,"on:click":Y},_.q(_.lm,{icon:function(){var m="",W=c();var y=W?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";W=W?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var N=_.VN().get("hl");y=!N||kAi.includes(N)?y:W;W=S();switch(W){case -1:case 0:m=y;break;case 1:m=y+"_FILLED";break;default:_.KP(W)}return m}})))},"Mf");
_.ht9.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.DS=function(H){return function(C,S){var w=H||S.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(C,S,{get:function(){var A;return this.$?this.$[w]:(A=_.vY(this))==null?void 0:A.querySelector("#"+w)},
enumerable:!0,configurable:!0})}};_.KI=function(H){H=H===void 0?!1:H;_.Op.call(this);this.pubSub_=new _.G9(H);_.Nx(this,this.pubSub_)};
_.Zh(_.KI,_.Op);_.KI.prototype.subscribe=function(H,C,S){return this.isDisposed()?0:this.pubSub_.subscribe(H,C,S)};
_.KI.prototype.unsubscribe=function(H,C,S){return this.isDisposed()?!1:this.pubSub_.unsubscribe(H,C,S)};
_.KI.prototype.unsubscribeByKey=function(H){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(H)};
_.KI.prototype.publish=function(H,C){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var YPi=function(){_.ET("ypcRedeemFlowStarted")},Dv=function(H){_.ET("ypcRedeemFlowFailed",void 0,void 0,void 0,H)},zSt=function(H,C,S){C&&S&&(H.videos.forEach(function(w){w.videoId===C&&(w.itemId=S)}),H.recommendedVideos.forEach(function(w){w.videoId===C&&(w.itemId=S)}))};var M6o;var qP9;/*

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
*/
_.hr({_template:function(){if(qP9!==void 0)return qP9;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;M6o===void 0&&(M6o=document.createElement("template"));var w=M6o;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return qP9=H},
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(H,C){var S=this._resolveSrc(H);S!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",H===""||C?this._setLoading(!1):(this._resolvedSrc=S,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 H=this.$.sizedImgDiv.style,C=this.$.placeholder.style;H.backgroundSize=C.backgroundSize=this.sizing;H.backgroundPosition=C.backgroundPosition=this.sizing?this.position:"";H.backgroundRepeat=C.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(H){H=_.q_(H,this.$.baseURIAnchor.href);H.length>=2&&H[0]==="/"&&H[1]!=="/"&&(H=(location.origin||location.protocol+"//"+location.host)+H);return H}});var T_O;var mC9;_.hr({_template:function(){if(mC9!==void 0)return mC9;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;T_O===void 0&&(T_O=document.createElement("template"));var w=T_O;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return mC9=H},
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(H){return H?"false":"true"},
_headingChanged:function(H){var C=this.getAttribute("heading"),S=this.getAttribute("aria-label");typeof S==="string"&&S!==C||this.setAttribute("aria-label",H)},
_computeHeadingClass:function(H){return H?" over-image":""},
_computeAnimated:function(H){return H}});var Wqp=new _.mi("addRendererToItemSectionAction");var yWi;var Kj=function(){return _.X.apply(this,arguments)||this};
_.G(Kj,_.X);Kj.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Kj.prototype,"rendererBehavior",void 0);_.D([_.v(_.m4),_.K("design:type",Object)],Kj.prototype,"dismissibleItemBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Kj.prototype,"rendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Kj.prototype,"data",void 0);_.D([_.h({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],Kj);
_.B(Kj,"ytd-comment-history-entry-renderer",function(){if(yWi!==void 0)return yWi;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return yWi=H},{mode:1});var N_R;_.hg("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.hg("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var tD=function(){return _.X.apply(this,arguments)||this};
_.G(tD,_.X);_.F=tD.prototype;_.F.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.F.onKeyUp=function(H){if(H.keyCode===13)this.onTap()};
_.F.onTap=function(){this.data.recordClickEndpoint&&_.JA().resolve(_.ZQ).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var H=this.data.navigationEndpoint;H&&_.e(H,_.Ad)&&_.JA().resolve(_.ZQ).resolveCommand(H,{form:{element:this.hostElement}})};
_.F.readChanged=function(){var H;_.yQ(this.hostElement,"unread",!((H=this.data)==null?0:H.read))};
_.F.dataChanged=function(){this.data&&_.yQ(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.F.computeThumbnailSize=function(){var H;return((H=this.data)==null?0:H.highPriorityNotification)?32:48};
_.F.getEndpointURL=function(H){return H&&!_.e(H,_.Ad)?this.componentBehavior.computeHref_(H):null};
_.F.getEndpointData=function(H){return H&&!_.e(H,_.Ad)?H:null};
tD.prototype.computeThumbnailSize=tD.prototype.computeThumbnailSize;tD.prototype.dataChanged=tD.prototype.dataChanged;tD.prototype.readChanged=tD.prototype.readChanged;tD.prototype.onKeyUp=tD.prototype.onKeyUp;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],tD.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],tD.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],tD.prototype,"componentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],tD.prototype,"data",void 0);_.D([_.V({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.K("design:type",Number)],tD.prototype,"thumbnailSize",void 0);_.D([_.Gz("keyup"),_.K("design:type",Function),_.K("design:paramtypes",[KeyboardEvent]),_.K("design:returntype")],tD.prototype,"onKeyUp",null);
_.D([_.fx("data.read"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],tD.prototype,"readChanged",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],tD.prototype,"dataChanged",null);_.D([_.fx("data.highPriorityNotification"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],tD.prototype,"computeThumbnailSize",null);
_.D([_.h({is:"ytd-notification-renderer",disableElementRegistration:!0})],tD);
_.B(tD,"ytd-notification-renderer",function(){if(N_R!==void 0)return N_R;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return N_R=H},{mode:1});var bcj;var Lj=function(){return _.X.apply(this,arguments)||this};
_.G(Lj,_.X);Lj.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"}}}};
Lj.prototype.computeActionButtonClass=function(H){return!H.actionButtons||H.actionButtons.length<=1?"single-button":H.description?"vertical-buttons":"horizontal-buttons"};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Lj.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Lj.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Lj.prototype,"data",void 0);_.D([_.h({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],Lj);
_.B(Lj,"ytd-playlist-show-metadata-renderer",function(){if(bcj!==void 0)return bcj;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return bcj=H},{mode:1});var E2o;_.hg("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var g7=function(){return _.X.apply(this,arguments)||this};
_.G(g7,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],g7.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],g7.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],g7.prototype,"data",void 0);_.D([_.h({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],g7);
_.B(g7,"ytd-purchase-item-renderer",function(){if(E2o!==void 0)return E2o;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return E2o=H},{mode:1});var eSO;var ulO={};ulO.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(H){if(H)return H.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(H){if(H==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.hg("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var U1=function(){return _.X.apply(this,arguments)||this};
_.G(U1,_.X);U1.prototype.onYtNavigate=function(H){var C=this.openPopupBehavior.getNavigationEndpointPopupAction(H.detail.endpoint);C&&(H.stopPropagation(),this.openPopupBehavior.openPopup(C))};
U1.prototype.onYtNavigate=U1.prototype.onYtNavigate;_.D([_.v(ulO.YtSimpleTextSectionBehavior),_.K("design:type",Object)],U1.prototype,"ytSimpleTextSectionBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],U1.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.OY),_.K("design:type",Object)],U1.prototype,"openPopupBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],U1.prototype,"data",void 0);
_.D([_.Gz("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],U1.prototype,"onYtNavigate",null);_.D([_.h({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],U1);
_.B(U1,"ytd-simple-text-section-renderer",function(){if(eSO!==void 0)return eSO;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return eSO=H},{mode:1});var GCt;_.hg("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var RA=function(){return _.X.apply(this,arguments)||this};
_.G(RA,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],RA.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],RA.prototype,"data",void 0);_.D([_.h({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],RA);
_.B(RA,"ytd-unlimited-page-feature-info-renderer",function(){if(GCt!==void 0)return GCt;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return GCt=H},{mode:1});var fjR;var v2O;var IA=function(){return _.X.apply(this,arguments)||this};
_.G(IA,_.X);IA.prototype.dataChanged=function(){if(this.data){var H=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);H&&(H=_.TG(H,screen.width),this.hostElement.style.backgroundImage="url("+H+")")}};
IA.prototype.dataChanged=IA.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],IA.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],IA.prototype,"data",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],IA.prototype,"dataChanged",null);_.D([_.h({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],IA);
_.B(IA,"ytd-post-redemption-section-renderer",function(){if(v2O!==void 0)return v2O;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return v2O=H},{mode:1});var ljR;var aA=function(){return _.X.apply(this,arguments)||this};
_.G(aA,_.X);aA.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],aA.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],aA.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],aA.prototype,"data",void 0);_.D([_.h({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],aA);
_.B(aA,"ytd-ypc-post-redemption-renderer",function(){if(ljR!==void 0)return ljR;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return ljR=H},{mode:1});_.hg("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var xK=function(){var H=_.X.apply(this,arguments)||this;H.MIN_CODE_LENGTH=12;H.MAX_CODE_LENGTH=24;return H};
_.G(xK,_.X);_.F=xK.prototype;_.F.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.F.created=function(){this.riskService=new _.wDD;this.loadPaymentThenable=_.J3V(_.rh("YPC_MB_URL"))};
_.F.ready=function(){var H=this;this.code.addEventListener("keypress",function(C){H.onCodeInputKeypress(C)})};
_.F.dataChanged=function(){var H=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(C){C=_.Z(C);for(var S=C.next();!S.done;S=C.next())S=S.value,S.type==="attributes"&&S.attributeName==="dark"&&H.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.F.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var H=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+H+")")}};
_.F.computeRedeemButton=function(H){(H=this.get("redeemButton.buttonRenderer",H))&&(H=Object.assign({},H,{serviceEndpoint:void 0}));return H};
_.F.onRedeemButtonTap=function(H){H.stopPropagation();YPi();this.redeemCode()};
_.F.redeemCode=function(){var H=this;this.isLoading=!0;var C=this.riskService.init();_.nh([C,this.loadPaymentThenable]).then(function(){var S=H.data.redeemButton.buttonRenderer.serviceEndpoint,w=_.A37(),A=_.s6.payments.business.integration.ClientTokenFactory.createClientToken(_.e(S,_.xhd).countryCode,w);w={c:H.code.value.trim(),rd:window.btoa(w),ctk:A};S&&_.JA().resolve(_.ZQ).resolveCommand(S,{form:Object.assign({},w,{element:H.hostElement})})},function(){H.showGenericError();
Dv("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.tE(Error("Eo"))})};
_.F.onYtServiceRequestCompleted=function(H){H.stopPropagation();this.isLoading=!1;var C,S;this.errorMessage=(C=H.detail)==null?void 0:(S=C.data)==null?void 0:S.errorMessage;var w,A;this.postRedemptionRenderer=(w=H.detail)==null?void 0:(A=w.data)==null?void 0:A.renderer;var J,c;if(H=(J=H.detail)==null?void 0:(c=J.data)==null?void 0:c.redirectEndpoint)this.isLoading=!0,_.M3(this.hostElement,"yt-navigate",{endpoint:H});this.errorMessage?Dv("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
H)&&_.ET("ypcRedeemFlowSucceeded")};
_.F.onYtServiceRequestError=function(H){H.stopPropagation();this.isLoading=!1;if(H=this.get("detail.error.message",H))this.errorMessage=_.sx(H);Dv("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.F.onInvokeInstrumentManagerActionCompleted=function(H){H.stopPropagation();this.redeemCode()};
_.F.onInvokeInstrumentManagerActionError=function(H){H.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",H)){case "instrumentManagerLoadError":this.showGenericError();Dv("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();Dv("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.ET("ypcRedeemFlowCancelled")}};
_.F.onInput=function(){var H=this;_.iJ(this,"onInput",function(){var C=H.code.value.trim();H.redeemButtonDisabled=C.length<H.MIN_CODE_LENGTH||C.length>H.MAX_CODE_LENGTH},200)};
_.F.onCodeInputKeypress=function(H){H.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(YPi(),this.redeemCode())};
_.F.computeImageUrl=function(H){return H?_.TG(H.thumbnails,600):null};
_.F.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
xK.prototype.onInvokeInstrumentManagerActionError=xK.prototype.onInvokeInstrumentManagerActionError;xK.prototype.onInvokeInstrumentManagerActionCompleted=xK.prototype.onInvokeInstrumentManagerActionCompleted;xK.prototype.onYtServiceRequestError=xK.prototype.onYtServiceRequestError;xK.prototype.onYtServiceRequestCompleted=xK.prototype.onYtServiceRequestCompleted;xK.prototype.dataChanged=xK.prototype.dataChanged;
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],xK.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],xK.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],xK.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],xK.prototype,"isLoading",void 0);_.D([_.V(),_.K("design:type",Boolean)],xK.prototype,"redeemButtonDisabled",void 0);
_.D([_.V(),_.K("design:type",Object)],xK.prototype,"errorMessage",void 0);_.D([_.V(),_.K("design:type",Object)],xK.prototype,"postRedemptionRenderer",void 0);_.D([_.V(),_.K("design:type",Object)],xK.prototype,"observer",void 0);_.D([_.lA("#code"),_.K("design:type",HTMLInputElement)],xK.prototype,"code",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xK.prototype,"dataChanged",null);
_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],xK.prototype,"onYtServiceRequestCompleted",null);_.D([_.Gz("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],xK.prototype,"onYtServiceRequestError",null);
_.D([_.Gz("yt-invoke-instrument-manager-action-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],xK.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.D([_.Gz("yt-invoke-instrument-manager-action-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],xK.prototype,"onInvokeInstrumentManagerActionError",null);_.D([_.h({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],xK);
_.B(xK,"ytd-redeem-code-renderer",function(){if(fjR!==void 0)return fjR;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return fjR=H},{mode:1});var V6i;_.hg("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var H2=function(){var H=_.X.apply(this,arguments)||this;H.businessEmailDisplayState="HIDE_SECTION";return H};
_.G(H2,_.X);_.F=H2.prototype;_.F.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}}}}}};
_.F.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"};
_.F.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.F.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Ie(_.ijV),this.businessEmailDisplayState="CAPTCHA"))};
_.F.onYtServiceRequestCompleted=function(H){var C;if((C=H.detail.data)==null?0:C.businessEmail)this.businessEmail=H.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var S;if((S=H.detail.data)==null?0:S.errorMessage)this.businessEmailErrorMessage=H.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.F.computeEmailHref=function(H){return"mailto:"+H};
_.F.computeSafeUrl=function(H){if(H)return _.D4(H)};
_.F.onBusinessEmailCaptchaSubmit=function(){var H;(H=this.data)!=null&&H.onBusinessEmailRevealClickCommand&&(H=this.JSC$21778_captchaTextarea.value)&&(H={recaptcha_response_token:H,channel_id:this.data.channelId},_.JA().resolve(_.ZQ).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},H,{element:this.hostElement})}))};
_.F.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.JJ.Object.defineProperties(H2.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 H,C;return!((H=this.data)==null||!H.primaryLinks)&&!((C=this.data)==null?0:C.links)&&this.data.primaryLinks.every(function(S){return S.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var H,C;return!((H=this.data)==null||!H.primaryLinks)&&!((C=this.data)==null?0:C.links)&&!this.shouldShowNewLinks}}});
H2.prototype.onYtServiceRequestCompleted=H2.prototype.onYtServiceRequestCompleted;H2.prototype.dataChanged=H2.prototype.dataChanged;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],H2.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],H2.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],H2.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.lA("#g-recaptcha-response"),_.K("design:type",HTMLTextAreaElement)],H2.prototype,"JSC$21778_captchaTextarea",void 0);_.D([_.V(),_.K("design:type",Object)],H2.prototype,"data",void 0);_.D([_.V(),_.K("design:type",String)],H2.prototype,"businessEmailDisplayState",void 0);_.D([_.V(),_.K("design:type",String)],H2.prototype,"businessEmail",void 0);_.D([_.V(),_.K("design:type",String)],H2.prototype,"businessEmailErrorMessage",void 0);
_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],H2.prototype,"hideDetailsSection",null);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],H2.prototype,"dataChanged",null);_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],H2.prototype,"shouldShowNewLinks",null);_.D([_.l("data","shouldShowLinks"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],H2.prototype,"shouldShowLegacyLinks",null);
_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],H2.prototype,"onYtServiceRequestCompleted",null);_.D([_.h({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],H2);
_.B(H2,"ytd-channel-about-metadata-renderer",function(){if(V6i!==void 0)return V6i;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return V6i=H},{mode:1});var o2O;_.hg("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var ig=function(){return _.X.apply(this,arguments)||this};
_.G(ig,_.X);ig.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]]"}}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],ig.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],ig.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],ig.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Number)],ig.prototype,"lockupContainerType",void 0);_.D([_.V(),_.K("design:type",String)],ig.prototype,"thumbnailFixedWidth",void 0);
_.D([_.h({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],ig);
_.B(ig,"ytd-channel-featured-content-renderer",function(){if(o2O!==void 0)return o2O;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return o2O=H},{mode:1});var OcK;_.hg("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var CG=function(){var H=_.X.apply(this,arguments)||this;H.roundContainer=!0;H.amsterdamEnabled=_.E("enable_desktop_amsterdam_info_panels");return H};
_.G(CG,_.X);_.F=CG.prototype;_.F.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.F.dataChanged=function(){this.imageWidth=this.imageHeight=24;var H=this.data;H.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!H.style&&H.image&&H.image.thumbnails.length&&(H=H.image.thumbnails[0],this.imageWidth=H.width||0,this.imageHeight=H.height||0)};
_.F.computeSource=function(H){return H.secondarySource?_.jt(H.secondarySource):_.jt(H.source)};
_.F.computeClarifyStyle=function(H){return H?H.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.F.isLargeStyle=function(H){return H==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.F.computeBackgroundStyle=function(H){return H?H.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.F.computeHasActionButton=function(H){return!!H.actionButton};
_.F.computeHasBottomSection=function(H){return!!H.ctaHasBottomSection};
_.F.computeIsSourceMissing=function(H){return H.ctaHasBottomSection===!1?!0:H&&this.computeSource(H)?!1:!0};
_.F.computeSecondaryEndpoint=function(H){return H.secondaryEndpoint||H.endpoint};
CG.prototype.dataChanged=CG.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],CG.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],CG.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],CG.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Number)],CG.prototype,"imageWidth",void 0);_.D([_.V(),_.K("design:type",Number)],CG.prototype,"imageHeight",void 0);
_.D([_.V({computed:"computeSecondaryEndpoint(data)"}),_.K("design:type",Object)],CG.prototype,"secondaryEndpoint",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.K("design:type",Boolean)],CG.prototype,"hasActionButton",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.K("design:type",Boolean)],CG.prototype,"hasBottomSection",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.K("design:type",Boolean)],CG.prototype,"missingSource",void 0);_.D([_.V({computed:"computeIcon_(data.icon)"}),_.K("design:type",String)],CG.prototype,"icon",void 0);_.D([_.V({computed:"computeIcon_(data.secondaryIcon)"}),_.K("design:type",String)],CG.prototype,"secondaryIcon",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.K("design:type",String)],CG.prototype,"clarifyStyle",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.K("design:type",String)],CG.prototype,"backgroundStyle",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],CG.prototype,"roundContainer",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],CG.prototype,"amsterdamEnabled",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],CG.prototype,"dataChanged",null);
_.D([_.h({is:"ytd-clarification-renderer",disableElementRegistration:!0})],CG);
_.B(CG,"ytd-clarification-renderer",function(){if(OcK!==void 0)return OcK;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return OcK=H},{mode:1});var XKt;var QRi;var Sd=function(){var H=_.X.apply(this,arguments)||this;H.amsterdamEnabled=_.E("enable_desktop_amsterdam_info_panels");return H};
_.G(Sd,_.X);_.F=Sd.prototype;_.F.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.F.computeIcon=function(H){return H?"yt-icons:"+H.toLowerCase():null};
_.F.computeUseContacts=function(H){return!!H.contacts&&H.contacts.length>0};
_.F.computePhoneContact=function(H){var C,S;return(C=H.contacts)==null?void 0:(S=C.find(function(w){var A;return(w==null?void 0:(A=w.icon)==null?void 0:A.iconType)==="PHONE"}))==null?void 0:S.actionText};
_.F.computeSmsContact=function(H){var C,S;return(C=H.contacts)==null?void 0:(S=C.find(function(w){var A;return(w==null?void 0:(A=w.icon)==null?void 0:A.iconType)==="SMS"}))==null?void 0:S.actionText};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Sd.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Sd.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Sd.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],Sd.prototype,"amsterdamEnabled",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.K("design:type",Boolean)],Sd.prototype,"useContacts",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.K("design:type",String)],Sd.prototype,"phoneContact",void 0);_.D([_.h({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],Sd);
_.B(Sd,"ytd-single-action-emergency-support-renderer",function(){if(QRi!==void 0)return QRi;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return QRi=H},{mode:1});_.hg("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var sL=function(){var H=_.X.apply(this,arguments)||this;H.roundedContainer=!0;H.amsterdamEnabled=_.E("enable_desktop_amsterdam_info_panels");return H};
_.G(sL,_.X);sL.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"}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],sL.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],sL.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],sL.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],sL.prototype,"roundedContainer",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],sL.prototype,"amsterdamEnabled",void 0);
_.D([_.h({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],sL);
_.B(sL,"ytd-emergency-onebox-renderer",function(){if(XKt!==void 0)return XKt;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return XKt=H},{mode:1});var dCO;_.hg("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var jd=function(){return _.X.apply(this,arguments)||this};
_.G(jd,_.X);jd.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"}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],jd.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],jd.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],jd.prototype,"data",void 0);_.D([_.h({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],jd);
_.B(jd,"ytd-exploratory-results-renderer",function(){if(dCO!==void 0)return dCO;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return dCO=H},{mode:1});var PX_;_.hg("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var wy=function(){var H=_.X.apply(this,arguments)||this;H.messageData=null;return H};
_.G(wy,_.X);_.F=wy.prototype;_.F.onServiceRequestCompleted=function(H,C){H=C.actions||[];C=0;for(var S=H.length;C<S;C++){var w=H[C],A=void 0,J=void 0;if((A=_.e(w,_.Ko))==null?0:(J=A.item)==null?0:J.messageRenderer)this.messageData=_.e(w,_.Ko).item.messageRenderer}};
_.F.dataChanged=function(){var H=this.data;this.hostElement.hidden=!1;_.yQ(this.hostElement,"is-channel",H&&!H.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.F.computeThumbnailWidth=function(H){return H?126:56};
_.F.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.F.onSubmitTap=function(){var H=this.data,C=this.selectedResponseIndex;H!==void 0&&C!==void 0&&(H=H.responses[C],H.responseData&&_.JA().resolve(_.ZQ).resolveCommand(H.responseData,{form:{element:this.hostElement}}))};
_.F.onDismissTap=function(){this.hostElement.hidden=!0;var H=this.data;H!==void 0&&H.dismissalEndpoint&&_.JA().resolve(_.ZQ).resolveCommand(H.dismissalEndpoint,{form:{element:this.hostElement}})};
_.F.updateSelectedResponseIndexFromBinding=function(H){this.selectedResponseIndex=H.detail.value};
wy.prototype.onSelectedResponseIndexChange=wy.prototype.onSelectedResponseIndexChange;wy.prototype.dataChanged=wy.prototype.dataChanged;wy.prototype.onServiceRequestCompleted=wy.prototype.onServiceRequestCompleted;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],wy.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],wy.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],wy.prototype,"messageData",void 0);
_.D([_.V(),_.K("design:type",Number)],wy.prototype,"selectedResponseIndex",void 0);_.D([_.lA("#submit-button"),_.K("design:type",HTMLButtonElement)],wy.prototype,"submitButton",void 0);_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.j4]),_.K("design:returntype")],wy.prototype,"onServiceRequestCompleted",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wy.prototype,"dataChanged",null);
_.D([_.fx("selectedResponseIndex"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wy.prototype,"onSelectedResponseIndexChange",null);_.D([_.h({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],wy);
_.B(wy,"ytd-feedback-elicitation-single-question-renderer",function(){if(PX_!==void 0)return PX_;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return PX_=H},{mode:1});var $C9;var AI=function(){return _.X.apply(this,arguments)||this};
_.G(AI,_.X);AI.prototype.computeThumbnailWidth=function(H){return H?602:428};
AI.prototype.updateWideFromBinding=function(H){this.wide=H.detail.value};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],AI.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],AI.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Boolean)],AI.prototype,"wide",void 0);_.D([_.h({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],AI);
_.B(AI,"ytd-newspaper-hero-video-renderer",function(){if($C9!==void 0)return $C9;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return $C9=H},{mode:1});var pKi;var JI=function(){return _.X.apply(this,arguments)||this};
_.G(JI,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],JI.prototype,"rendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],JI.prototype,"data",void 0);_.D([_.h({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],JI);
_.B(JI,"ytd-newspaper-mini-video-renderer",function(){if(pKi!==void 0)return pKi;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return pKi=H},{mode:1});var kCp;_.hg("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var Fa=function(){return _.X.apply(this,arguments)||this};
_.G(Fa,_.X);Fa.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"}}}};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Fa.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Fa.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Fa.prototype,"data",void 0);_.D([_.h({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],Fa);
_.B(Fa,"ytd-newspaper-renderer",function(){if(kCp!==void 0)return kCp;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return kCp=H},{mode:1});var hSq;_.hg("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var Zm=function(){var H=_.X.apply(this,arguments)||this;H.isSegment=!1;H.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};H.nextContinuation={continuationType:"playlistVideoListContinuation"};return H};
_.G(Zm,_.X);_.F=Zm.prototype;_.F.attached=function(){_.JA();var H;(H=_.JA().resolve(_.AA(_.hs)))!=null&&(H.playlistVideoListElement=this.hostElement)};
_.F.detached=function(){var H;(H=_.JA().resolve(_.AA(_.hs)))!=null&&(H.playlistVideoListElement=void 0);H=_.JA().resolve(_.AA(_.h6));_.E("web_enable_voting_animation")&&H&&(H.parentElem=void 0,H.videos=[],H.continuationsPresent=!1,H.showRefreshPill=!1)};
_.F.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"}}}}}};
_.F.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.F.dataChanged=function(){var H=_.JA().resolve(_.AA(_.h6));if(_.E("web_enable_voting_animation")&&this.data&&H){var C=_.mY(this.hostElement).querySelector("#contents");C&&(H.parentElem=C);H.addVideos(this.data.contents)}_.VXM(this.ytReorderableBehavior)};
_.F.onRendererstamperFinished=function(){this.canReorder&&_.os_(this.ytReorderableBehavior,_.mY(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.F.onPlaylistReloading=function(){this.isReloading=!0};
_.F.onUpdateSetVideoId=function(H){if(H.detail&&this.data&&this.data.contents){var C=H.detail;H=this.data.contents.findIndex(function(A){var J;return((J=A.playlistVideoRenderer)==null?void 0:J.videoId)===C.videoId});
if(!(H<0)&&C.setVideoId&&(this.set("data.contents."+H+".playlistVideoRenderer.setVideoId",C.setVideoId),_.E("web_enable_voting_animation"))){var S;if(H=_.e((S=this.data.contents[H].playlistVideoRenderer)==null?void 0:S.engagementBar,_.fn7)){var w;(w=H.actions)==null||w.forEach(function(A){if(A=_.e(A,_.vGZ))A.itemId=C.setVideoId})}(S=_.JA().resolve(_.AA(_.h6)))&&zSt(S,C.videoId,C.setVideoId)}}};
_.F.computeContentsClass=function(H){return H?"reloading":""};
_.F.computeIsSortable=function(H,C){return H&&C>0&&!this.isSegment&&!_.E("shorts_in_playlists_web")};
_.F.computeIsEditable=function(H){return H};
_.F.computeCanReorder=function(H){return H};
_.F.handlePlaylistRemoveVideosAction=function(H){if(this.get("playlistRemoveVideosAction.setVideoIds",H)&&this.data&&this.data.contents){H=_.e(H,_.fKi).setVideoIds;for(var C=this.data.contents.length-1;C>=0;){var S=this.data.contents[C].playlistVideoRenderer;S&&S.setVideoId&&H.includes(S.setVideoId)&&this.splice("data.contents",C,1);C--}_.q3(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.F.updateIndices=function(){if(this.data&&this.data.contents)for(var H=0;H<this.data.contents.length;H++)this.set("data.contents."+H+".playlistVideoRenderer.index",_.sx(String(H+1)))};
_.F.handleDrop=function(H){H=H.currDragItem;var C=_.hV(H.parentNode.childNodes,H),S=this.data.contents.splice(Number(_.jt(H.data.index))-1,1)[0];this.data.contents.splice(C,0,S);C=C?this.get("contents."+(C-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();H=this.buildReorderServiceEndpoint(H.data.setVideoId,C);this.ytComponentBehavior.resolveCommand(H)};
_.F.buildReorderServiceEndpoint=function(H,C){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",H),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",C),this.data.onReorderEndpoint):null};
_.F.handleUpdatePlaylistAction=function(H){var C;(H=_.e((C=_.e(H,_.vVM))==null?void 0:C.updatedRenderer,_.bOV))&&this.canReorder!==H.canReorder&&this.set("data.canReorder",H.canReorder);H&&H.contents&&(this.set("data.contents",H.contents),this.isReloading=!1);H&&H.continuations&&this.set("data.continuations",H.continuations)};
_.F.handleAddRendererToItemSectionAction=function(H){var C,S=(C=_.e(H,Wqp))==null?void 0:C.renderer,w;S&&((w=_.e(H,Wqp))==null?void 0:w.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,S),H=_.JA().resolve(_.AA(_.h6)),_.E("web_enable_voting_animation")&&H&&(S&&(C=_.G1E(S))&&H.recommendedVideos.push({itemId:C,videoId:_.lnU(S),voteCount:_.VT0(S),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.F.isVotingEnabledOnPlaylist=function(H){if(!H)return!1;H=_.Z(H);for(H=H.next();!H.done;H=H.next()){var C=void 0;return!!_.e((C=H.value.playlistVideoRenderer)==null?void 0:C.engagementBar,_.fn7)}return!1};
_.F.onAppendContinuationItemsActionFinished=function(){var H;this.isVotingEnabledOnPlaylist((H=this.data)==null?void 0:H.contents)&&(this.updateIndices(),H=_.JA().resolve(_.AA(_.h6)),_.E("web_enable_voting_animation")&&H&&this.data&&H.addVideos(this.data.contents))};
_.F.updateVideoData=function(H){if(H.detail&&this.data&&this.data.contents){var C=H.detail;H=C.toIdx;var S=C.itemId,w=C.newVoteCount,A=C.voteStatus;C=C.hideItem;var J,c,Y=(J=this.data)==null?void 0:(c=J.contents)==null?void 0:c.findIndex(function(y){return _.G1E(y)===S});
if(!(Y<0)){J=this.data.contents[Y];var M;if((M=J.playlistVideoRenderer)==null?0:M.voteCount)J.playlistVideoRenderer.voteCount=w;var m;if(M=_.e((m=J.playlistVideoRenderer)==null?void 0:m.engagementBar,_.fn7)){var W;(W=M.actions)==null||W.forEach(function(y){(y=_.e(y,_.vGZ))&&y.initialState&&(y.initialState.votes=w,y.initialState.status=A)})}this.data.contents.splice(Y,1);
C||this.data.contents.splice(H,0,J);this.updateIndices()}}};
Zm.prototype.updateVideoData=Zm.prototype.updateVideoData;Zm.prototype.onAppendContinuationItemsActionFinished=Zm.prototype.onAppendContinuationItemsActionFinished;Zm.prototype.onUpdateSetVideoId=Zm.prototype.onUpdateSetVideoId;Zm.prototype.onPlaylistReloading=Zm.prototype.onPlaylistReloading;Zm.prototype.onRendererstamperFinished=Zm.prototype.onRendererstamperFinished;Zm.prototype.dataChanged=Zm.prototype.dataChanged;
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Zm.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Zm.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],Zm.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.eu.YtNextContinuationBehavior),_.K("design:type",Object)],Zm.prototype,"ytNextContinuationBehavior",void 0);
_.D([_.v(_.OR7),_.K("design:type",Object)],Zm.prototype,"ytReorderableBehavior",void 0);_.D([_.v(_.EH),_.K("design:type",Object)],Zm.prototype,"ytContinuationHandlerBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Zm.prototype,"ytComponentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Zm.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Boolean)],Zm.prototype,"isReloading",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Zm.prototype,"isSegment",void 0);_.D([_.V({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.K("design:type",Boolean)],Zm.prototype,"isSortable",void 0);_.D([_.V({computed:"computeIsEditable(data.isEditable)"}),_.K("design:type",Boolean)],Zm.prototype,"isEditable",void 0);_.D([_.V({computed:"computeCanReorder(data.canReorder)"}),_.K("design:type",Boolean)],Zm.prototype,"canReorder",void 0);
_.D([_.V({value:101}),_.K("design:type",Number)],Zm.prototype,"scrollMargin",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Zm.prototype,"dataChanged",null);_.D([_.Gz("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Zm.prototype,"onRendererstamperFinished",null);
_.D([_.Gz("yt-playlist-reloading"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Zm.prototype,"onPlaylistReloading",null);_.D([_.Gz("yt-update-set-video-id"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Zm.prototype,"onUpdateSetVideoId",null);
_.D([_.Gz("yt-append-continuation-items-action-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Zm.prototype,"onAppendContinuationItemsActionFinished",null);_.D([_.Gz("yt-update-video-data-voting-animation"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Zm.prototype,"updateVideoData",null);_.D([_.h({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],Zm);
_.B(Zm,"ytd-playlist-video-list-renderer",function(){if(hSq!==void 0)return hSq;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return hSq=H},{mode:_.mn("kevlar_poly_si_batch_j047")?1:2});var n2_;var c2=function(){return _.X.apply(this,arguments)||this};
_.G(c2,_.X);c2.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"}}}}};
c2.prototype.onTextWrapperTap=function(H){var C=this.data&&this.data.navigationEndpoint;C&&!_.ww(_.Ar(H),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.M3(this.hostElement,"yt-navigate",{endpoint:C})};
c2.prototype.dataChanged=function(){var H=this.get("data.offerButton.buttonRenderer.serviceEndpoint");H&&H.commandMetadata&&_.e(H.commandMetadata,_.R4)&&_.e(H.commandMetadata,_.R4).fireAutomatically&&_.JA().resolve(_.ZQ).resolveCommand(H,{form:{element:this.hostElement}})};
c2.prototype.dataChanged=c2.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],c2.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],c2.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.uU),_.K("design:type",Object)],c2.prototype,"ytdLockupBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],c2.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,value:function(){return _.E("enable_desktop_search_bigger_thumbs")}}),
_.K("design:type",Boolean)],c2.prototype,"useBiggerThumbs",void 0);_.D([_.V({reflectToAttribute:!0,value:function(){return _.z9("desktop_search_bigger_thumbs_style")}}),
_.K("design:type",String)],c2.prototype,"biggerThumbsStyle",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],c2.prototype,"leftAligned",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],c2.prototype,"dataChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-movie-renderer"})],c2);
_.B(c2,"ytd-movie-renderer",function(){if(n2_!==void 0)return n2_;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return n2_=H},{mode:1});var rWj;var Yx=function(){var H=_.X.apply(this,arguments)||this;H.rounded=!0;H.pageAttachedTo=void 0;H.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return H};
_.G(Yx,_.X);Yx.prototype.attached=function(){this.pageAttachedTo=_.JA().resolve(_.JB).getCurrentPage();_.M3(this.hostElement,"yt-player-attached",this.player)};
Yx.prototype.detached=function(){var H;if((H=this.pageAttachedTo)==null?0:H.hostElement)_.M3(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
Yx.prototype.dataChanged=function(){var H;if((H=this.data)==null?0:H.videoId)H={video_id:this.data.videoId,autoplay:!0},!_.E("miniplayer_stop_channel_video_autoplay_killswitch")&&_.JA().resolve(_.Df).isMiniplayerActive()&&(H.pause_at_start=!0,H.autoplay=!1),this.player.loadVideoWithPlayerVars(H)};
Yx.prototype.handleSignalActionPausePlayer=function(){_.ct().pause()};
Yx.prototype.dataChanged=Yx.prototype.dataChanged;_.D([_.V(),_.K("design:type",Object)],Yx.prototype,"data",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Yx.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],Yx.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Yx.prototype,"rounded",void 0);_.D([_.lA("#player"),_.K("design:type",Object)],Yx.prototype,"player",void 0);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Yx.prototype,"dataChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],Yx);
_.B(Yx,"ytd-channel-video-player-renderer",function(){if(rWj!==void 0)return rWj;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return rWj=H},{mode:1});var B_O;var DCR;var Kqi;var zr=function(){var H=_.X.apply(this,arguments)||this;H.playing=!1;H.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.I0(H);H.active=!1;return H};
_.G(zr,_.X);_.F=zr.prototype;_.F.detached=function(){this.stop()};
_.F.play=function(){var H=this,C,S,w,A,J;return _.z(function(c){if(c.nextAddress==1)return H.active=!0,C=H.get("data.inlinePlaybackEndpoint.watchEndpoint"),S=C.videoId||H.data.videoId,w=C.startTimeSeconds||0,A=C.playerParams||null,_.E("kevlar_player_update_killswitch")?c.yield(H.playerEl.update({args:{video_id:S,startSeconds:w,player_params:A}}),2):(H.playerEl.loadVideoWithPlayerVars({video_id:S,startSeconds:w,player_params:A,autoplay:!0}),c.jumpTo(2));if(c.nextAddress!=4)return c.yield(H.playerEl.getPlayerPromise(),
4);J=c.yieldResult;J.unloadModule("annotations_module");J.addEventListener("onStateChange",function(Y){H.onPlayerStateChange(Y)});
_.oT(c)})};
_.F.onPlayerStateChange=function(H){if(this.active)switch(this.playing=H===1,H){case 1:_.M3(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.M3(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.F.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.F.resize=function(){var H=this,C;return _.z(function(S){if(S.nextAddress==1)return S.yield(H.playerEl.getPlayerPromise(),2);C=S.yieldResult;C.setSize(NaN,NaN);_.oT(S)})};
_.D([_.V(),_.K("design:type",Object)],zr.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],zr.prototype,"playing",void 0);_.D([_.V(),_.K("design:type",Object)],zr.prototype,"playerId",void 0);_.D([_.lA("#player"),_.K("design:type",Object)],zr.prototype,"playerEl",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],zr);
_.B(zr,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(Kqi!==void 0)return Kqi;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return Kqi=H},{mode:1});var t6O;var LqO;var Mt=function(){var H=_.X.apply(this,arguments)||this;H.width=0;return H};
_.G(Mt,_.X);_.F=Mt.prototype;_.F.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.uA(this,this.onEnded));this.mp4El.addEventListener("error",_.uA(this,this.onError))};
_.F.detached=function(){this.videoEl.removeEventListener("ended",_.uA(this,this.onEnded));this.mp4El.removeEventListener("error",_.uA(this,this.onError))};
_.F.play=function(){var H=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var C=this.videoEl.play();C?C.then(function(){H.handleVideoStartPlaying()}).catch(function(){_.M3(H.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.M3(this.hostElement,"yt-video-thumbnail-not-playing")};
_.F.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.F.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.F.dataChanged=function(){var H;if((H=this.data)==null?0:H.thumbnailPlaceholder)H=_.TG(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+H+")";this.stop();this.autoplay&&this.play()};
_.F.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.F.onEnded=function(){this.stop();_.M3(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.F.onError=function(){_.M3(this.hostElement,"yt-video-thumbnail-error")};
_.F.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.F.getVideoThumbnail=function(H){if(H&&H.length)return H[0]};
Mt.prototype.dataChanged=Mt.prototype.dataChanged;_.D([_.V(),_.K("design:type",Object)],Mt.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],Mt.prototype,"animatePlaceholderOnEntrance",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],Mt.prototype,"autoplay",void 0);_.D([_.V({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.K("design:type",Object)],Mt.prototype,"videoThumbnail",void 0);
_.D([_.V(),_.K("design:type",Boolean)],Mt.prototype,"loop",void 0);_.D([_.V(),_.K("design:type",Boolean)],Mt.prototype,"isVideoPlaying",void 0);_.D([_.V(),_.K("design:type",Object)],Mt.prototype,"width",void 0);_.D([_.lA("#mp4"),_.K("design:type",HTMLElement)],Mt.prototype,"mp4El",void 0);_.D([_.lA("#placeholder"),_.K("design:type",HTMLElement)],Mt.prototype,"placeholderEl",void 0);_.D([_.lA("#video"),_.K("design:type",HTMLVideoElement)],Mt.prototype,"videoEl",void 0);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Mt.prototype,"dataChanged",null);_.D([_.Lx({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],Mt);
_.B(Mt,"yt-video-as-thumbnail-details",function(){if(LqO===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;t6O===void 0&&(t6O=document.createElement("template"));var w=t6O;S.call(C,w.content.cloneNode(!0),H.content.firstChild);LqO=H}H=LqO;return H},{mode:2});var qt=function(){var H=_.X.apply(this,arguments)||this;H.disableGridStateAware=!1;H.animationEnabled=_.E("enable_web_ketchup_hero_animation");H.transitioningOut=!1;H.narrow=!1;H.narrower=!1;H.isCarouselInFeed=!1;H.videoTimeoutJobId=0;H.panelTimeoutJobId=0;H.panelTimeoutJobStartMs=0;H.actionMap={"yt-window-resized":"onWindowResized"};return H};
_.G(qt,_.X);_.F=qt.prototype;_.F.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.F.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.F.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var H;this.player&&((H=this.data)==null?0:H.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.F.attached=function(){this.onWindowResized()};
_.F.detached=function(){this.clearTimeouts()};
_.F.onWindowResized=function(){this.updateSize()};
_.F.computePanelLayout=function(H){return H&&H.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.F.playVideo=function(){var H;this.video&&((H=this.data)==null?0:H.videoThumbnail)&&this.video.play();var C;this.player&&((C=this.data)==null?0:C.inlinePlaybackRenderer)&&this.player.play()};
_.F.stopVideo=function(){var H;this.video&&((H=this.data)==null?0:H.videoThumbnail)&&this.video.stop();var C;this.player&&((C=this.data)==null?0:C.inlinePlaybackRenderer)&&this.player.stop()};
_.F.transitionOut=function(){var H=this;this.transitioningOut=!0;return new Promise(function(C){var S=function(){_.mY(H.hostElement).querySelector("#action-button").removeEventListener("animationend",S);_.rT.cancelJob(w);C();H.transitioningOut=!1};
var w=_.X2(_.rT,S,1E3);_.mY(H.hostElement).querySelector("#action-button").addEventListener("animationend",S);H.player&&(H.player.playing=!1)})};
_.F.computeMetadataOrder=function(H){return H&&H.metadataOrder&&H.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?H.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.F.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.F.computeAvatarSize=function(H){return H&&H.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.F.onContentClick=function(H){if(!_.ww(_.Ar(H),this.hostElement,["A".toString(),"BUTTON".toString()])){var C;if((C=this.data)==null?0:C.navigationEndpoint){var S;this.componentBehavior.resolveCommand((S=this.data)==null?void 0:S.navigationEndpoint)}}};
_.F.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.F.setBackgroundImage=function(H){if(H=this.getBackgroundImageUrl(H))_.mY(this.hostElement).querySelector("#hero").style.backgroundImage="url("+H+")"};
_.F.setScrimLayer=function(H){var C=this.getScrimLayerColorStops(H);H=((H==null?void 0:H.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(H=180);_.rh("HTML_DIR")==="rtl"&&(H=-H);C&&(_.mY(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+H+"deg, "+C+")")};
_.F.isNarrower=function(){return this.hostElement.clientWidth<qt.NARROW_VERSION_SIZE};
_.F.getScrimLayerColorStops=function(){var H,C=(H=this.data)==null?void 0:H.scrimColorValues;if(!C)return null;if(C.length===1)return H=_.aw(C[0]),H+" 0%, "+H+" 100%";if(C.length===3){var S=[0,72,98];return C.map(function(w,A){return _.aw(w)+" "+S[A]+"%"}).join(",")}return null};
_.F.getBackgroundImageUrl=function(H){return H&&H.largeFormFactorBackgroundThumbnail?_.TG((H.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||H.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.F.onPlaying=function(){this.startVideoTimeout()};
_.F.onEnded=function(){this.rotate()};
_.F.startPanelTimeout=function(){var H=this;if(!this.panelTimeoutJobId){var C=this.get("data.minPanelDisplayDurationMs");C&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.X2(_.rT,function(){H.rotate()},C))}};
_.F.startVideoTimeout=function(){var H=this;if(!this.videoTimeoutJobId){_.rT.cancelJob(this.panelTimeoutJobId);var C=Date.now()-this.panelTimeoutJobStartMs;C=Math.max(0,this.get("data.minPanelDisplayDurationMs")-C);C=Math.max(this.get("data.minVideoPlayDurationMs")||0,C);this.videoTimeoutJobId=_.X2(_.rT,function(){H.rotate()},C)}};
_.F.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.rT.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.rT.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.F.rotate=function(){this.clearTimeouts();_.M3(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.JJ.Object.defineProperties(qt.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.mY(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.mY(this.hostElement).querySelector("#video")}}});
_.JJ.Object.defineProperties(qt,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
qt.prototype.onEnded=qt.prototype.onEnded;qt.prototype.onPlaying=qt.prototype.onPlaying;qt.prototype.dataChanged=qt.prototype.dataChanged;_.D([_.v(_.yz),_.K("design:type",Object)],qt.prototype,"ytdGridStateAwareBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],qt.prototype,"componentBehavior",void 0);_.D([_.v(_.bU.YtdGuideStateAwareBehavior),_.K("design:type",Object)],qt.prototype,"ytdGuideStateAwareBehavior",void 0);
_.D([_.v(_.LVd),_.K("design:type",Object)],qt.prototype,"ytBooleanLogicBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],qt.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],qt.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],qt.prototype,"ytRendererBehavior",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],qt.prototype,"disableGridStateAware",void 0);_.D([_.V(),_.K("design:type",Object)],qt.prototype,"data",void 0);_.D([_.V({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.K("design:type",String)],qt.prototype,"panelLayout",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],qt.prototype,"animationEnabled",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],qt.prototype,"transitioningOut",void 0);
_.D([_.V({computed:"computeMetadataOrder(data)"}),_.K("design:type",Boolean)],qt.prototype,"metadataOrder",void 0);_.D([_.V({computed:"computeByline(data)"}),_.K("design:type",Object)],qt.prototype,"byline",void 0);_.D([_.V({computed:"computeAvatarSize(data)"}),_.K("design:type",Number)],qt.prototype,"avatarSize",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],qt.prototype,"narrow",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],qt.prototype,"narrower",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],qt.prototype,"layoutStyle",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],qt.prototype,"isCarouselInFeed",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qt.prototype,"dataChanged",null);_.D([_.Gz("yt-default-promo-panel-renderer-playing"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qt.prototype,"onPlaying",null);
_.D([_.Gz("yt-default-promo-panel-renderer-ended"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qt.prototype,"onEnded",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],qt);
_.B(qt,"ytd-default-promo-panel-renderer",function(){if(DCR!==void 0)return DCR;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return DCR=H},{mode:1});_.hg("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var Tr=function(){var H=_.X.apply(this,arguments)||this;H.narrower=!1;H.dotMenuVisible=!1;H.paginationThumbnailsVisible=!1;H.active=!0;H.disableGridStateAware=!1;H.actionMap={"yt-window-resized":"onWindowResized"};return H};
_.G(Tr,_.X);_.F=Tr.prototype;_.F.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]]"}}}}}};
_.F.attached=function(){document.addEventListener("yt-page-type-changed",_.uA(this,this.onPageTypeChange));this.currentPageSubtype=_.B96(location.pathname);this.onWindowResized()};
_.F.detached=function(){this.jobId&&_.rT.cancelJob(this.jobId);this.updateSizeJobId&&_.rT.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.uA(this,this.onPageTypeChange))};
_.F.onPageTypeChange=function(H){this.active=H.detail.newPageSubtype===this.currentPageSubtype};
_.F.onWindowResized=function(){this.updateSize()};
_.F.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.F.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.F.setCarouselItem=function(H){H>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.rT.cancelJob(this.jobId);var C=this.getCurrentPanelElement();C&&C.stopVideo();this.currentItemIndex=H%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(C||(C=this.getCurrentPanelElement()),C.playVideo()):this.startRotationJob()};
_.F.scrollThumbnails=function(H){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var C=this.getCurrentPaginationElement();if(C){var S=_.mY(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?S.style.transform="translateX(0)":(C=C.offsetWidth+8,S.style.transform="translateX(-"+C*(H-Math.ceil(Math.floor(this.overlay.offsetWidth/C)/2)+1)+"px)")}}};
_.F.onDataChanged=function(){var H=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.mx(_.rT,function(){var C;(C=H.getCurrentPanelElement())==null||C.updateSize();H.updateSize()}))};
_.F.getCurrentPanelElement=function(){return _.mY(_.mY(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.F.getCurrentPaginationElement=function(){return _.mY(_.mY(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.F.getNavigationClass=function(H,C){return H===C?"selected":""};
_.F.getNavigationDurationStyle=function(H){return"animation-duration:"+(this.get("data.carouselItems."+H+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.F.onNavigationTap=function(H){var C=this,S=H.model.index;S!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){C.setCarouselItem(S)}),this.autorotateActive=!1)};
_.F.onVideoThumbnailEnded=function(){var H=this;if(this.shouldRotate()){var C=this.getCurrentPaginationElement();C&&(C.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){C.classList.remove("finished");H.setNextCarouselItem()}))}};
_.F.onVideoThumbnailError=function(){this.startRotationJob()};
_.F.onVideoNotPlaying=function(){this.startRotationJob()};
_.F.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.F.startRotationJob=function(){var H=this;_.rT.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.rT.addLowPriorityJob(function(){H.getCurrentPanelElement().transitionOut().then(function(){H.setNextCarouselItem()})},this.rotationTimeout))};
_.F.computeDotMenuVisible=function(H,C){return!!H&&!!H.carouselItems&&H.carouselItems.length>1&&!H.paginationThumbnails||!!C};
_.F.computePaginationThumbnailsVisible=function(H,C){var S,w;return((w=H==null?void 0:(S=H.paginationThumbnails)==null?void 0:S.length)!=null?w:0)>1&&!C};
_.F.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.F.computePaginatorAlignment=function(H){return(H==null?void 0:H.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.F.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.F.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.F.isNarrower=function(H){return(H!=null?H:0)<qt.NARROW_VERSION_SIZE};
Tr.prototype.activeChanged=Tr.prototype.activeChanged;Tr.prototype.onVideoNotPlaying=Tr.prototype.onVideoNotPlaying;Tr.prototype.onVideoThumbnailError=Tr.prototype.onVideoThumbnailError;Tr.prototype.onVideoThumbnailEnded=Tr.prototype.onVideoThumbnailEnded;Tr.prototype.onDataChanged=Tr.prototype.onDataChanged;_.D([_.v(_.yz),_.K("design:type",Object)],Tr.prototype,"ytdGridStateAwareBehavior",void 0);
_.D([_.v(_.bU.YtdGuideStateAwareBehavior),_.K("design:type",Object)],Tr.prototype,"ytdGuideStateAwareBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Tr.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Tr.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Tr.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],Tr.prototype,"currentItem",void 0);
_.D([_.V(),_.K("design:type",Number)],Tr.prototype,"currentItemIndex",void 0);_.D([_.V(),_.K("design:type",Number)],Tr.prototype,"rotationTimeout",void 0);_.D([_.V(),_.K("design:type",Number)],Tr.prototype,"loopCount",void 0);_.D([_.V({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.K("design:type",String)],Tr.prototype,"paginatorAlignment",void 0);_.D([_.V(),_.K("design:type",Number)],Tr.prototype,"jobId",void 0);
_.D([_.V(),_.K("design:type",Number)],Tr.prototype,"updateSizeJobId",void 0);_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],Tr.prototype,"isCarouselInFeed",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Tr.prototype,"narrower",void 0);_.D([_.V({computed:"computeDotMenuVisible(data, narrower)"}),_.K("design:type",Object)],Tr.prototype,"dotMenuVisible",void 0);
_.D([_.V({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.K("design:type",Object)],Tr.prototype,"paginationThumbnailsVisible",void 0);_.D([_.V({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.K("design:type",String)],Tr.prototype,"layoutType",void 0);_.D([_.V({value:!0,reflectToAttribute:!0}),_.K("design:type",Boolean)],Tr.prototype,"autorotateActive",void 0);_.D([_.V(),_.K("design:type",Object)],Tr.prototype,"active",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Tr.prototype,"disableGridStateAware",void 0);_.D([_.lA("#overlay"),_.K("design:type",HTMLElement)],Tr.prototype,"overlay",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Tr.prototype,"onDataChanged",null);
_.D([_.Gz("yt-video-thumbnail-ended"),_.Gz("yt-default-promo-panel-renderer-rotate"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Tr.prototype,"onVideoThumbnailEnded",null);_.D([_.Gz("yt-video-thumbnail-error"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Tr.prototype,"onVideoThumbnailError",null);
_.D([_.Gz("yt-video-thumbnail-not-playing"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Tr.prototype,"onVideoNotPlaying",null);_.D([_.XJ("active"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Tr.prototype,"activeChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],Tr);
_.B(Tr,"ytd-carousel-item-renderer",function(){if(B_O!==void 0)return B_O;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return B_O=H},{mode:2});var g2O;var UCr;var RSO;var Ij9;var m8=function(){var H=_.X.apply(this,arguments)||this;H.originalQuery=null;H.originalEndpoint=null;return H};
_.G(m8,_.X);m8.prototype.computeShowOriginalQueryWithoutEndpoint_=function(H,C){return!(!H||C)};
_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],m8.prototype,"ytComponentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],m8.prototype,"correctedText",void 0);_.D([_.V(),_.K("design:type",Object)],m8.prototype,"correctedQuery",void 0);_.D([_.V(),_.K("design:type",Object)],m8.prototype,"correctedEndpoint",void 0);_.D([_.V(),_.K("design:type",Object)],m8.prototype,"originalText",void 0);_.D([_.V(),_.K("design:type",Object)],m8.prototype,"originalQuery",void 0);
_.D([_.V(),_.K("design:type",Object)],m8.prototype,"originalEndpoint",void 0);_.D([_.V({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.K("design:type",Boolean)],m8.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.D([_.Lx({is:"yt-search-query-correction",disableElementRegistration:!0})],m8);
_.B(m8,"yt-search-query-correction",function(){if(Ij9===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;RSO===void 0&&(RSO=document.createElement("template"));var w=RSO;S.call(C,w.content.cloneNode(!0),H.content.firstChild);Ij9=H}H=Ij9;return H},{mode:2});_.hg("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var W2=function(){return _.X.apply(this,arguments)||this};
_.G(W2,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],W2.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],W2.prototype,"data",void 0);_.D([_.Lx({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],W2);
_.B(W2,"yt-did-you-mean-renderer",function(){if(UCr===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;g2O===void 0&&(g2O=document.createElement("template"));var w=g2O;S.call(C,w.content.cloneNode(!0),H.content.firstChild);UCr=H}H=UCr;return H},{mode:2});var aji;var xCp;_.hg("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var yA=function(){return _.X.apply(this,arguments)||this};
_.G(yA,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],yA.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],yA.prototype,"data",void 0);_.D([_.Lx({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],yA);
_.B(yA,"yt-including-results-for-renderer",function(){if(xCp===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;aji===void 0&&(aji=document.createElement("template"));var w=aji;S.call(C,w.content.cloneNode(!0),H.content.firstChild);xCp=H}H=xCp;return H},{mode:2});var HWr;var iWj;_.hg("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var Nt=function(){return _.X.apply(this,arguments)||this};
_.G(Nt,_.X);Nt.prototype.computeExtraClasses_=function(H,C){var S="";H&&(S+=" "+H.toLowerCase().replace(/_/g,"-"));C&&(S+=" "+C.toLowerCase().replace(/_/g,"-"));return S};
Nt.prototype.computeUrlImg_=function(){var H=this.data;H.image&&(_.mY(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.TG(H.image.thumbnails,Number.MAX_VALUE)+")")};
Nt.prototype.computeUrlImg_=Nt.prototype.computeUrlImg_;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Nt.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Nt.prototype,"data",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Nt.prototype,"computeUrlImg_",null);_.D([_.Lx({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],Nt);
_.B(Nt,"yt-music-pass-feature-info-renderer",function(){if(iWj===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;HWr===void 0&&(HWr=document.createElement("template"));var w=HWr;S.call(C,w.content.cloneNode(!0),H.content.firstChild);iWj=H}H=iWj;return H},{mode:2});var Cvp;var S3q;_.hg("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var bg=function(){return _.X.apply(this,arguments)||this};
_.G(bg,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],bg.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],bg.prototype,"data",void 0);_.D([_.Lx({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],bg);
_.B(bg,"yt-no-results-found-showing-results-for-renderer",function(){if(S3q===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;Cvp===void 0&&(Cvp=document.createElement("template"));var w=Cvp;S.call(C,w.content.cloneNode(!0),H.content.firstChild);S3q=H}H=S3q;return H},{mode:2});var srt;var jrt;_.hg("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var EL=function(){return _.X.apply(this,arguments)||this};
_.G(EL,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],EL.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],EL.prototype,"data",void 0);_.D([_.Lx({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],EL);
_.B(EL,"yt-results-without-quotes-renderer",function(){if(jrt===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;srt===void 0&&(srt=document.createElement("template"));var w=srt;S.call(C,w.content.cloneNode(!0),H.content.firstChild);jrt=H}H=jrt;return H},{mode:2});var w1j;var A8o;_.hg("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var J8O=function(){return _.X.apply(this,arguments)||this};
_.G(J8O,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],J8O.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],J8O.prototype,"data",void 0);_.D([_.Lx({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],J8O);
_.B(J8O,"yt-search-no-results-renderer",function(){if(A8o===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;w1j===void 0&&(w1j=document.createElement("template"));var w=w1j;S.call(C,w.content.cloneNode(!0),H.content.firstChild);A8o=H}H=A8o;return H},{mode:2});var FpR;var ZWj;_.hg("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var c8j=function(){return _.X.apply(this,arguments)||this};
_.G(c8j,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],c8j.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],c8j.prototype,"data",void 0);_.D([_.Lx({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],c8j);
_.B(c8j,"yt-showing-results-for-renderer",function(){if(ZWj===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;FpR===void 0&&(FpR=document.createElement("template"));var w=FpR;S.call(C,w.content.cloneNode(!0),H.content.firstChild);ZWj=H}H=ZWj;return H},{mode:2});var Y3O;var zmi;var MFp;var q33;var ed=function(){var H=_.X.apply(this,arguments)||this;H.answerExpanded=!1;return H};
_.G(ed,_.X);ed.prototype.toggleAnswer_=function(H){var C=_.Jr(H);C&&C.classList.contains("yt-simple-endpoint")||(H.preventDefault(),H.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
ed.prototype.toggleAnswer_=ed.prototype.toggleAnswer_;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],ed.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],ed.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],ed.prototype,"answerExpanded",void 0);_.D([_.Gz("tap"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],ed.prototype,"toggleAnswer_",null);
_.D([_.Lx({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],ed);
_.B(ed,"yt-generic-faq-question-renderer",function(){if(q33===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;MFp===void 0&&(MFp=document.createElement("template"));var w=MFp;S.call(C,w.content.cloneNode(!0),H.content.firstChild);q33=H}H=q33;return H},{mode:2});_.hg("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var ug=function(){return _.X.apply(this,arguments)||this};
_.G(ug,_.X);ug.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],ug.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],ug.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],ug.prototype,"data",void 0);_.D([_.Lx({is:"yt-faq-section-renderer",disableElementRegistration:!0})],ug);
_.B(ug,"yt-faq-section-renderer",function(){if(zmi===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;Y3O===void 0&&(Y3O=document.createElement("template"));var w=Y3O;S.call(C,w.content.cloneNode(!0),H.content.firstChild);zmi=H}H=zmi;return H},{mode:2});var TFi;var mY_;_.hg("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var Gr=function(){return _.X.apply(this,arguments)||this};
_.G(Gr,_.X);
Gr.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"}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Gr.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Gr.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Gr.prototype,"data",void 0);_.D([_.Lx({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],Gr);
_.B(Gr,"yt-offer-item-expanded-renderer",function(){if(mY_===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;TFi===void 0&&(TFi=document.createElement("template"));var w=TFi;S.call(C,w.content.cloneNode(!0),H.content.firstChild);mY_=H}H=mY_;return H},{mode:2});var Wpp;var y8_;_.hg("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var fG=function(){return _.X.apply(this,arguments)||this};
_.G(fG,_.X);
fG.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"}}}}};
fG.prototype.computeFullWidthMode=function(H){return!(!H||!H.fullWidthMode)};
fG.prototype.computeBorderlessMode=function(H){return!(!H||!H.borderlessMode)};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],fG.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],fG.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],fG.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.K("design:type",Boolean)],fG.prototype,"fullWidthMode",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.K("design:type",Boolean)],fG.prototype,"borderlessMode",void 0);_.D([_.Lx({is:"yt-offer-item-renderer",disableElementRegistration:!0})],fG);
_.B(fG,"yt-offer-item-renderer",function(){if(y8_===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;Wpp===void 0&&(Wpp=document.createElement("template"));var w=Wpp;S.call(C,w.content.cloneNode(!0),H.content.firstChild);y8_=H}H=y8_;return H},{mode:2});var NFo;var bW3;_.hg("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var v2=function(){return _.X.apply(this,arguments)||this};
_.G(v2,_.X);v2.prototype.computeAriaLevel_=function(H){return this.getLevelID_(H)};
v2.prototype.getLevelID_=function(H){return(H=H.match(/[0-9]+$/))&&H.length==1?H[0]:"1"};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],v2.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],v2.prototype,"data",void 0);_.D([_.V({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.K("design:type",String)],v2.prototype,"ariaLevel",void 0);_.D([_.V({value:"heading",reflectToAttribute:!0}),_.K("design:type",String)],v2.prototype,"role",void 0);
_.D([_.V({value:-1,reflectToAttribute:!0}),_.K("design:type",Number)],v2.prototype,"tabindex",void 0);_.D([_.Lx({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],v2);
_.B(v2,"yt-subscription-product-header-renderer",function(){if(bW3===void 0){var H=document.createElement("template");_.f(H,"\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");H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;NFo===void 0&&(NFo=document.createElement("template"));var w=NFo;S.call(C,w.content.cloneNode(!0),H.content.firstChild);bW3=H}H=bW3;return H},{mode:2});var EXR;var emj;_.hg("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var lg=function(){return _.X.apply(this,arguments)||this};
_.G(lg,_.X);lg.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:_.nu("menuRenderer"),events:!0}}};
lg.prototype.onStampFinished_=function(){_.mY(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
lg.prototype.onStampFinished_=lg.prototype.onStampFinished_;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],lg.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],lg.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],lg.prototype,"data",void 0);_.D([_.Gz("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lg.prototype,"onStampFinished_",null);
_.D([_.Lx({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],lg);
_.B(lg,"yt-subscription-product-renderer",function(){if(emj===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;EXR===void 0&&(EXR=document.createElement("template"));var w=EXR;S.call(C,w.content.cloneNode(!0),H.content.firstChild);emj=H}H=emj;return H},{mode:2});var uCj;var GDK;_.hg("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var VA=function(){return _.X.apply(this,arguments)||this};
_.G(VA,_.X);VA.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
VA.prototype.imageScrimColorValuesChanged_=function(){var H,C=(H=this.data)==null?void 0:H.imageScrimColorValues;_.mY(this.hostElement).querySelector("#scrim").style.backgroundColor=C?_.aw(C[0]):"transparent"};
VA.prototype.imageScrimColorValuesChanged_=VA.prototype.imageScrimColorValuesChanged_;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],VA.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],VA.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],VA.prototype,"data",void 0);
_.D([_.fx("data.imageScrimColorValues"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],VA.prototype,"imageScrimColorValuesChanged_",null);_.D([_.Lx({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],VA);
_.B(VA,"yt-subscription-product-upsell-offer-renderer",function(){if(GDK===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;uCj===void 0&&(uCj=document.createElement("template"));var w=uCj;S.call(C,w.content.cloneNode(!0),H.content.firstChild);GDK=H}H=GDK;return H},{mode:2});var fut;var vXO;var luq;var VFj;var oXR;var OWr;var oP=function(){return _.X.apply(this,arguments)||this};
_.G(oP,_.X);oP.prototype.onYtServiceRequestError_=function(H){_.HQ(this.hostElement,H.detail.error.message)};
oP.prototype.onYtServiceRequestError_=oP.prototype.onYtServiceRequestError_;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],oP.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],oP.prototype,"data",void 0);_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],oP.prototype,"collapsible",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],oP.prototype,"isManageRed",void 0);
_.D([_.Gz("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],oP.prototype,"onYtServiceRequestError_",null);_.D([_.Lx({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],oP);
_.B(oP,"yt-single-ypc-offer-renderer",function(){if(OWr===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;oXR===void 0&&(oXR=document.createElement("template"));var w=oXR;S.call(C,w.content.cloneNode(!0),H.content.firstChild);OWr=H}H=OWr;return H},{mode:2});var OL=function(){return _.X.apply(this,arguments)||this};
_.G(OL,_.X);OL.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],OL.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],OL.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],OL.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],OL.prototype,"isManageRed",void 0);_.D([_.Lx({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],OL);
_.B(OL,"yt-single-ypc-offer-list-renderer",function(){if(VFj===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;luq===void 0&&(luq=document.createElement("template"));var w=luq;S.call(C,w.content.cloneNode(!0),H.content.firstChild);VFj=H}H=VFj;return H},{mode:2});var X19;var QrR;_.hg("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var Xa=function(){return _.X.apply(this,arguments)||this};
_.G(Xa,_.X);Xa.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Xa.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Xa.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Xa.prototype,"data",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],Xa.prototype,"isManageRed",void 0);_.D([_.Lx({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],Xa);
_.B(Xa,"yt-ypc-offers-list-renderer",function(){if(QrR===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;X19===void 0&&(X19=document.createElement("template"));var w=X19;S.call(C,w.content.cloneNode(!0),H.content.firstChild);QrR=H}H=QrR;return H},{mode:2});_.hg("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var QA=function(){return _.X.apply(this,arguments)||this};
_.G(QA,_.X);
QA.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}}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],QA.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],QA.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],QA.prototype,"data",void 0);_.D([_.Lx({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],QA);
_.B(QA,"yt-unlimited-manage-subscription-page-renderer",function(){if(vXO===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;fut===void 0&&(fut=document.createElement("template"));var w=fut;S.call(C,w.content.cloneNode(!0),H.content.firstChild);vXO=H}H=vXO;return H},{mode:2});var dYi;var Pvi;var dy=function(){return _.X.apply(this,arguments)||this};
_.G(dy,_.X);_.F=dy.prototype;_.F.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.F.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.F.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.F.onKeypress_=function(H){H.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.F.handleHeaderTap_=function(H){H.preventDefault();H.stopPropagation();this.expandOffers_()};
_.F.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.F.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
dy.prototype.dataChanged_=dy.prototype.dataChanged_;_.D([_.v(_.rA),_.K("design:type",Object)],dy.prototype,"ironA11yKeysBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],dy.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],dy.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],dy.prototype,"data",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],dy.prototype,"offersVisible_",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dy.prototype,"dataChanged_",null);_.D([_.Lx({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],dy);
_.B(dy,"yt-collapsible-ypc-offer-renderer",function(){if(Pvi===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;dYi===void 0&&(dYi=document.createElement("template"));var w=dYi;S.call(C,w.content.cloneNode(!0),H.content.firstChild);Pvi=H}H=Pvi;return H},{mode:2});var $YO;var p19;_.hg("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var P2=function(){return _.X.apply(this,arguments)||this};
_.G(P2,_.X);_.F=P2.prototype;_.F.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.F.dataChanged_=function(){if(this.data.backgroundImage){var H=_.TG(this.data.backgroundImage.thumbnails,screen.width),C=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=C?"linear-gradient(180deg, "+C+"), url("+H+")":"url("+H+")";this.data.gtmId&&_.jx(this.data.gtmId,_.rh("GL",""))}};
_.F.onYtServiceRequestError_=function(H){_.HQ(this.hostElement,H.detail.error.message)};
_.F.getScrimLayerColorStops_=function(){var H,C,S=(H=this.data.unlimitedHeaderV2Data)==null?void 0:(C=H.unlimitedHeaderV2Data)==null?void 0:C.scrimLayerColors;if(!S)return null;var w=100/S.length;return S.map(function(A,J){J*=w;return _.aw(A)+" "+J+"%"}).join(",")};
_.F.computeLogoWithPadding=function(H){var C,S,w;return(H=(C=H.unlimitedLogoImage)==null?void 0:(S=C.thumbnails)==null?void 0:(w=S[0])==null?void 0:w.height)&&H%31===0?!0:!1};
P2.prototype.onYtServiceRequestError_=P2.prototype.onYtServiceRequestError_;P2.prototype.dataChanged_=P2.prototype.dataChanged_;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],P2.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],P2.prototype,"ytRendererBehavior",void 0);_.D([_.V({computed:"computeLogoWithPadding(data)"}),_.K("design:type",Boolean)],P2.prototype,"logoWithPadding",void 0);
_.D([_.V(),_.K("design:type",Object)],P2.prototype,"data",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],P2.prototype,"dataChanged_",null);_.D([_.Gz("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],P2.prototype,"onYtServiceRequestError_",null);_.D([_.Lx({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],P2);
_.B(P2,"yt-unlimited-page-header-renderer",function(){if(p19===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;$YO===void 0&&($YO=document.createElement("template"));var w=$YO;S.call(C,w.content.cloneNode(!0),H.content.firstChild);p19=H}H=p19;return H},{mode:2});var kD9;var hmj;_.hg("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var $x=function(){return _.X.apply(this,arguments)||this};
_.G($x,_.X);$x.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],$x.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],$x.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],$x.prototype,"data",void 0);_.D([_.Lx({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],$x);
_.B($x,"yt-unlimited-user-notification-renderer",function(){if(hmj===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;kD9===void 0&&(kD9=document.createElement("template"));var w=kD9;S.call(C,w.content.cloneNode(!0),H.content.firstChild);hmj=H}H=hmj;return H},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.fRt=_.n(function(H){var C=_.FH(H,{numberOfChips:5}).numberOfChips;return _.q("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.q(_.Vq,{each:function(){return Array(C==null?void 0:C())}},function(){return _.q("div",{class:"ytGhostChipShelfChip"})}))},"ph");_.vR_=_.n(function(H){var C=function(){var J;return((J=H.data)==null?void 0:J.call(H).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},S=_.E5(),w=_.JA().resolve(_.wW);
_.Ph(function(){requestAnimationFrame(function(){var J;(J=S.lottieEl)==null||J.addEventListener("DOMLoaded",function(){var c;(c=H.onLottieLoaded)==null||c.call(H)})})});
var A={};return _.q("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var J;return((J=H.data)==null?void 0:J.call(H).targetId)||""}},_.q(_.UA,{className:_.eJ((A.ytChatLoadingViewModelRtl=w==="rtl",A)),
animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:C()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||C()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:C()}}},
animationRef:S}))},"qh");
}catch(e){_._DumpException(e)}
try{
var T4t,mE_,WCq,N4R,bvO,EBO,e3i,u0r,G9_,XAi,tq,OvO,vBt,oBi,V$O,lQR,fQR,Qap,dEt,P5p,$Er,LR,pAr,k99,rAK,UT,h3O,ac,g0,Rc,nBO,Ic,B4o,DEp,KCq,t$K,LC_,gBi,UE_,IQq,aQj,xE_,HVp,iVt,CCi,Scr,sMt,w9O,AOi,JO_,ZV9,Ycq,Mki,qco,TTi,mzK,yO3,NTr,bV9,Eur,e0O,u6j,Gfo,vui,OVp,out,ltK,X9o,Vk_,QMo,p9p,$zt,dz9,PCt,H$,kf_,nuq,rOR,BTr,Uzp,R09,It9,atr,xzi,HCt,iCi,Cbr,Ss3,s8i,wnt,Ati,JtO,ZC_,ct3,tkq;
_.DP=function(H){var C=new _.X0("Error accessing DB");return _.mv7().then(function(S){return new Promise(function(w,A){try{var J=S.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(H);J.onsuccess=function(){var c=J.result;w(c?c.value:null)};
J.onerror=function(){C.params={key:H,source:"onerror"};A(C)}}catch(c){C.params={key:H,
thrownError:String(c)},A(C)}})},function(){return null})};
_.qEp=function(H,C){var S=_.JY6(C);S!=="javascript:"&&S!=="data:"&&H.setAttribute("href",C)};
T4t=function(H,C){return _.Ea(H.entities,"flowStateEntity",C)};
mE_=function(H,C){return _.Ea(H.entities,"contextNoteUserRatingEntityPayload",C)};
WCq=function(H,C){if(H&&C){var S=_.vt();S().set(H,C);_.w$6(S())}};
_.yAq=function(H,C){if(H&&C){var S=_.vt();S().set(H,C);_.w$6(S())}};
N4R=function(H){return _.PZ(H,function(C){return C.languageCode==="en"})};
bvO=function(H){var C=KR;if(_.vT3(H))H.setOption("captions","stickyLoading",{}),H.setOption("captions","track",{});else{var S=_.PZ(_.RY$(H),function(w){return w.displayName===C});
H.setOption("captions","track",S)}};
EBO=function(H){if(!H)return 0;var C=H.getPresentingPlayerType(),S=H.getVideoData();return S&&S.isLive?(H=H.getProgressState(C),H.seekableEnd-H.seekableStart):H.getDuration(C)};
e3i=function(H,C){for(var S=_.Z(Object.keys(H)),w=S.next();!w.done;w=S.next())if(w=w.value,H[w]!==C[w])return!1;return!0};
u0r=function(){return document.getElementById("player-control-overlay")};
G9_=function(H){H!==-1&&!_.E("player_controls_log_creation_killswitch")&&u0r()&&(_.DR("pcu_cs",H),_.DR("pcu_ce"))};
XAi=function(H,C){var S=_.Jx(H,{}),w=fQR("top",C),A=fQR("bottom",C),J=fQR("left",C),c=fQR("right",C);return _.vb({top:function(){return tq(S().position,w)},
bottom:function(){return tq(S().position,A)},
left:function(){return tq(S().position,J)},
right:function(){return tq(S().position,c)},
position:function(){return tq(S().positionType,vBt)},
height:function(){return tq(S().height,LR)},
width:function(){return tq(S().width,LR)},
"min-width":function(){return tq(S().minWidth,LR)},
"min-height":function(){return tq(S().minHeight,LR)},
"max-width":function(){return tq(S().maxWidth,LR)},
"max-height":function(){return tq(S().maxHeight,LR)},
"aspect-ratio":function(){return tq(S().aspectRatio,String)},
"margin-top":function(){return tq(S().margin,w)},
"margin-bottom":function(){return tq(S().margin,A)},
"margin-left":function(){return tq(S().margin,J)},
"margin-right":function(){return tq(S().margin,c)},
"padding-top":function(){return tq(S().padding,w)},
"padding-bottom":function(){return tq(S().padding,A)},
"padding-left":function(){return tq(S().padding,J)},
"padding-right":function(){return tq(S().padding,c)},
"flex-direction":function(){return tq(S().flexDirection,lQR)},
"justify-content":function(){return tq(S().justifyContent,V$O)},
"align-items":function(){return tq(S().alignItems,oBi)},
"flex-grow":function(){return tq(S().flexGrow,String)},
"flex-shrink":function(){return tq(S().flexShrink,String)},
"flex-basis":function(){return tq(S().flexBasis,LR)},
"align-self":function(){return tq(S().alignSelf,oBi)},
"flex-wrap":function(){return tq(S().flexWrap,OvO)},
"align-content":function(){return tq(S().alignContent,oBi)}})};
tq=function(H,C){return H!==void 0?C(H):void 0};
OvO=function(H){switch(H){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
vBt=function(H){switch(H){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
oBi=function(H){switch(H){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"}};
V$O=function(H){switch(H){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"}};
lQR=function(H){switch(H){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"}};
fQR=function(H,C){var S=C==="rtl";switch(H){case "top":var w=Qap;break;case "bottom":w=dEt;break;case "left":w=P5p;break;default:w=$Er}return function(A){return tq(w(A,S),LR)}};
Qap=function(H){var C=H.top;var S=H.vertical;H=H.all;var w;return(w=C!=null?C:S)!=null?w:H};
dEt=function(H){var C=H.bottom;var S=H.vertical;H=H.all;var w;return(w=C!=null?C:S)!=null?w:H};
P5p=function(H,C){var S=H.left;var w=H.end;var A=H.start;var J=H.horizontal;H=H.all;var c,Y;return(Y=(c=S!=null?S:C?w:A)!=null?c:J)!=null?Y:H};
$Er=function(H,C){var S=H.right;var w=H.end;var A=H.start;var J=H.horizontal;H=H.all;var c,Y;return(Y=(c=S!=null?S:C?A:w)!=null?c:J)!=null?Y:H};
LR=function(H){var C=H.value;switch(H.unit){case "YPC_DIMENSION_UNIT_POINT":return C+"px";case "YPC_DIMENSION_UNIT_FRACTION":return C+"%";default:return""+C}};
pAr=function(H){switch(H){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"}};
k99=function(H){var C=H!=null?H:{};H=C.fontRole;var S=C.fontSize;C=C.fontWeight;if(H!==null&&S!==null)switch(H){case "YPC_FONT_ROLE_DISPLAY":switch(S){case "YPC_FONT_SIZE_L":return C==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return C==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return C==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return C==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(S){case "YPC_FONT_SIZE_L":return C==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return C==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return C===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return C==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(S){case "YPC_FONT_SIZE_XL":return C==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return C==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return C==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return C==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return C==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
rAK=function(H,C,S){function w(y){return Object.values(y).map(function(N){var b=N.productId;N=N.pricingOptionIndex;return g0(A(b).pricingOptions,N).pricingOptionId})}
function A(y){return M().get(y)}
function J(y){y=w(y);S(y)}
function c(y,N){return Array.from(UT(y.pricingOptions)).filter(function(b){b=_.Z(b);b.next();b=b.next().value;return Rc(b.pricingGroupAttributes,N)}).map(function(b){return _.Z(b).next().value})}
var Y=Ic([H,C],function(y,N){var b=y==null?void 0:y.selectedPricingOptions;y={};var u=!0;if(b&&N.length)for(var O=_.Z(N),d=O.next();!d.done;d=O.next()){d=d.value;var p=h3O(d.pricingOptions,function(L){a:{L=L.pricingOptionId;for(var t=_.Z(b),g=t.next();!g.done;g=t.next())if(g.value===L){L=!0;break a}L=!1}return L});
if(p>=0){u=!1;var k=g0(d.pricingOptions,p),R=void 0;y[d.groupId]={productId:d.productId,pricingOptionIndex:p,pricingGroupAttributes:(R=k)==null?void 0:R.pricingGroupAttributes}}}u&&N.length&&(u=g0(N[0].pricingOptions,0),y[N[0].groupId]={productId:N[0].productId,pricingOptionIndex:0,pricingGroupAttributes:u==null?void 0:u.pricingGroupAttributes});return y}),M=Ic([C],function(y){return new Map(y.map(function(N){return[N.productId,
N]}))}),m=Ic([C],function(y){var N=new Map;
y=_.Z(y);for(var b=y.next();!b.done;b=y.next()){var u=b.value;b=u.groupId;var O=u.productId;u=_.Z(UT(u.pricingOptions));for(var d=u.next();!d.done;d=u.next()){var p=_.Z(d.value);d=p.next().value;p=p.next().value;N.set(p.pricingOptionId,{groupId:b,productId:O,index:d,pricingOption:p,pricingGroupAttributes:p.pricingGroupAttributes})}}return N}),W=Ic([C],function(y){var N=new Map;
y=_.Z(y);for(var b=y.next();!b.done;b=y.next()){var u=b.value;b=u.groupId;var O=u.productId,d=void 0;u=_.Z(UT((d=u.pricingGroups)!=null?d:[]));for(d=u.next();!d.done;d=u.next()){var p=_.Z(d.value);d=p.next().value;p=p.next().value;N.set(p.pricingGroupId,{groupId:b,productId:O,index:d,pricingGroup:p,pricingGroupAttributes:p.pricingGroupAttributes})}}return N});
return{getProductById:A,isProductSelected:function(y){var N=A(y);if(!N)return!1;var b;return((b=Y()[N.groupId])==null?void 0:b.productId)===y},
getSelectedPricingOptions:function(){return Object.values(Y()).map(function(y){var N=y.productId;y=y.pricingOptionIndex;return g0(A(N).pricingOptions,y)})},
getSelectedPricingGroupAttributesByGroupId:function(y){var N;return(y=(N=Y()[y])==null?void 0:N.pricingGroupAttributes)?Array.from(y):void 0},
getSelectedProductByGroupId:function(y){var N;return(y=(N=Y()[y])==null?void 0:N.productId)?A(y):void 0},
onProductSelected:function(y){var N=A(y);if(N){var b=Y(),u;if(((u=b[N.groupId])==null?void 0:u.productId)!==y){var O=(u=(O=b[N.groupId])==null?void 0:O.productId)?A(u):void 0;var d;u=(d=b[N.groupId])==null?void 0:d.pricingGroupAttributes;var p;d=(p=b[N.groupId])==null?void 0:p.pricingOptionIndex;if(O&&u&&d!==void 0){p=c(O,u).indexOf(d);if(p===-1)throw Error("Sj`"+d+"`"+O.productId);d=c(N,u);p=p<d.length?d[p]:d.length>0?d[0]:0}else p=0;ac(N.pricingOptions)<=p&&(p=0);d=g0(N.pricingOptions,p);var k;
O={};J(Object.assign({},b,(O[N.groupId]={productId:y,pricingOptionIndex:p,pricingGroupAttributes:(k=d==null?void 0:d.pricingGroupAttributes)!=null?k:[]},O)))}}},
onPricingOptionSelected:function(y){var N=m().get(y);if(N){y=N.groupId;var b=N.productId;N=N.index;var u=Y(),O,d;if(((O=u[y])==null?void 0:O.productId)!==b||((d=u[y])==null?void 0:d.pricingOptionIndex)!==N){var p,k;O={};J(Object.assign({},u,(O[y]={productId:b,pricingOptionIndex:N,pricingGroupAttributes:(k=(p=u[y])==null?void 0:p.pricingGroupAttributes)!=null?k:[]},O)))}}},
onPricingGroupSelected:function(y){var N=W().get(y);if(N){y=N.groupId;var b=N.productId,u=N.pricingGroup.pricingGroupAttributes,O=A(b);if(O){N=Y();var d=N[y].pricingGroupAttributes,p;if(((p=N[y])==null?void 0:p.productId)!==b||!Rc(nBO(d,ac(u)),u)){p=Array.from(u);for(u=ac(u);u<ac(d);u++){var k="",R=!1,L=Array.from(p);L.push(g0(d,u));for(var t=_.Z(O.pricingGroups),g=t.next();!g.done;g=t.next())if(g=g.value,Rc(g.pricingGroupAttributes,L)){p.push(g0(d,u));R=!0;break}else k===""&&ac(g.pricingGroupAttributes)===
L.length&&Rc(nBO(g.pricingGroupAttributes,p.length),p)&&(k=g0(g.pricingGroupAttributes,u));R||p.push(k)}k=N[y].pricingOptionIndex;u=[];R=new Map;L=0;O=_.Z(UT(O.pricingOptions));for(t=O.next();!t.done;t=O.next())g=_.Z(t.value),t=g.next().value,g=g.next().value,Rc(g.pricingGroupAttributes,p)&&u.push(t),Rc(g.pricingGroupAttributes,d)&&R.set(t,L++);u.length===0?d=0:(d=R.get(k),d=d!==void 0&&d<u.length?u[d]:u[0]);O={};J(Object.assign({},N,(O[y]={productId:b,pricingOptionIndex:d,pricingGroupAttributes:p},
O)))}}}},
onClearGroupSelected:function(y){var N=Y();N[y]&&(N=Object.fromEntries(Object.entries(N).filter(function(b){return _.Z(b).next().value!==y})),J(N))}}};
UT=function(H){return function S(){var w,A,J,c,Y;return _.YC(S,function(M){switch(M.nextAddress){case 1:_.fM(M,2),w=0,A=_.Z(H),J=A.next();case 4:if(J.done){M.jumpTo(2);break}c=J.value;Y=_.zX;return M.yield([w++,c],7);case 7:Y(M.yieldResult);J=A.next();M.jumpTo(4);break;case 2:_.Gv(M),_.lf(M,0)}})}()};
h3O=function(H,C){H=_.Z(UT(H));for(var S=H.next();!S.done;S=H.next()){var w=_.Z(S.value);S=w.next().value;w=w.next().value;if(C(w))return S}return-1};
ac=function(H){var C=0;for(H=H[Symbol.iterator]();!H.next().done;)++C;return C};
g0=function(H,C){H=_.Z(UT(H));for(var S=H.next();!S.done;S=H.next()){var w=_.Z(S.value);S=w.next().value;w=w.next().value;if(S===C)return w}};
Rc=function(H,C){if(!H&&!C)return!0;if(!H||!C)return!1;H=Array.from(H);C=Array.from(C);if(H.length!==C.length)return!1;for(var S=0;S<H.length;S++)if(H[S]!==C[S])return!1;return!0};
nBO=function(H,C){C=C===void 0?Infinity:C;var S=[];H=_.Z(UT(H));for(var w=H.next();!w.done;w=H.next()){var A=_.Z(w.value);w=A.next().value;A=A.next().value;if(w>=C)break;w>=0&&S.push(A)}return S};
Ic=function(H,C){var S,w;return function(){for(var A=H.map(function(c){return c()}),J=0;J<A.length;J++)if(!S||A[J]!==S[J]){S=A;
w=C.apply(null,_.k$(A));break}return w}};
B4o=function(H,C,S){var w=[];H=_.Z(H);for(var A=H.next();!A.done;A=H.next()){A=A.value;var J=void 0;((J=C)==null?0:J.length)&&!Rc(A.pricingGroupAttributes,C)||w.push({pricingOption:A,isSelected:S.includes(A.pricingOptionId)})}return w};
DEp=function(H,C){return _.Ea(H.entities,"pdpStateEntity",C)};
KCq=function(H){var C,S;return!!(H.productId&&H.groupId&&((C=H.pricingOptions)==null?0:C.length)&&H.pricingOptions.every(function(w){return w.pricingOptionId})&&((S=H.pricingGroups)==null||!S.length||Array.isArray(H.pricingGroups)&&H.pricingGroups.every(function(w){return w.pricingGroupId&&w.pricingGroupAttributes&&w.pricingGroupAttributes.length>0})))};
t$K=function(H,C,S){return rAK(H,Ic([C],function(w){return w.filter(KCq)}),S)};
LC_=function(H){var C=void 0,S;for(S in H)if(H.hasOwnProperty(S)){C=S;break}return C};
gBi=function(H,C){return C.length===0?[H]:[H.slice(0,C[0]),H.slice(C[0])].filter(function(S){return S.length>0})};
UE_=function(H){switch(H){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""}};
IQq=function(H,C,S,w){w=Object.assign({},w);_.rC(w,R3K,{selectedOptionId:H,primaryButtonOverride:S});_.wC().dispatch(_.O5("flowStateEntity",C,w))};
aQj=function(H){switch(H){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleContentFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleContentFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleContentFontSizeM";default:return"ytLandingPageViewModelHeaderTitleContentFontSizeL"}};
xE_=function(H){switch(H){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeM";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_L":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XL":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXL";
default:return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL"}};
HVp=function(H,C){C.includes(H)?C=C.filter(function(S){return S!==H}):C.push(H);
return[].concat(_.k$(C))};
iVt=function(H,C){return _.Ea(H.entities,"contextNoteFeedEntityPayload",C)};
CCi=function(H,C){switch(H){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return C==null?void 0:C.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return C==null?void 0:C.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return C==null?void 0:C.ratingNotHelpfulText}};
Scr=function(H,C){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:H.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:H.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:H.deleteDialogTitle}]},dialogMessages:[{runs:[{text:H.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:H.deleteActionText}]},command:{performCommentActionEndpoint:{action:C}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:H.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
sMt=function(H,C,S){var w;if(H&&((w=C())==null?0:w.includes(H))){var A;S((A=C())==null?void 0:A.filter(function(J){return J!==H}))}else S([].concat(_.k$(C()||[]),[H]))};
w9O=function(H,C){if(H){var S=[];C=_.Z((C==null?void 0:C.checkboxes)||[]);for(var w=C.next();!w.done;w=C.next()){w=_.e(w.value,jMR);var A=void 0;((A=w)==null?0:A.value)&&H.includes(w.key||"")&&S.push(w.value)}return S}};
AOi=function(H){H.style.height="auto";H.style.height=H.scrollHeight+"px"};
JO_=function(H){return[H.syncStep,H.asyncStep].filter(function(C){return C!==void 0})};
ZV9=function(H){var C,S,w;if(H=(C=H.structuredContextNoteFormSchema)==null?void 0:(S=C.fieldSchemas)==null?void 0:(w=S.noteBody)==null?void 0:w.validationSchema)for(C=_.Z(JO_(H)),S=C.next();!S.done;S=C.next()){S=S.value.rules;if(!S)break;S=_.Z(S);for(S=S.next();!S.done;S=S.next())return _.e(S.value,_.FQK)}};
Ycq=function(H){if(H){H=_.Z(JO_(H));for(var C=H.next();!C.done;C=H.next()){C=C.value.rules;if(!C)break;C=_.Z(C);for(C=C.next();!C.done;C=C.next())return _.e(C.value,cO_)}}};
Mki=function(H){if(H){H=_.Z(JO_(H));for(var C=H.next();!C.done;C=H.next()){C=C.value.rules;if(!C)break;C=_.Z(C);for(C=C.next();!C.done;C=C.next())return _.e(C.value,z09)}}};
qco=function(H){H=/^https?:\/\//.test(H)?H:"http://"+H;try{var C=_.I7(H)}catch(S){return!1}if(C.toString()!==H)return!1;H=C.JSC$10045_domain_.split(".");return H.length>1&&H.every(function(S){return!!S})};
TTi=function(H,C,S,w){var A;w=(A=w.structuredContextNoteData)==null?void 0:A.createCommentEndpoint;if(A=_.e(w,_.ji7))return A.commentText=_.sx(H),A.videoPositionMention=C,A.sources=S,w};
mzK=function(H){return H==null?void 0:H.stringValue};
yO3=function(H,C,S){H=H.map(function(w,A){return{listItemViewModel:{title:w.title,subtitle:w.subtitle,leadingImage:w.leadingImage,trailingImage:A===C?WQq:void 0,rendererContext:{commandContext:{onTap:w.onTap}}}}});
return Object.assign({},S&&{header:{panelHeaderViewModel:{title:S}}},{content:{listViewModel:{listItems:H}}})};
NTr=function(H,C){if(H&&C)switch(C){case "SELECTION_TYPE_BOOL":return H.boolValue;case "SELECTION_TYPE_INT":return H.intValue;case "SELECTION_TYPE_STRING":return H.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return H.privacyStatusValue}};
bV9=function(H){var C;H=(C=H.options)==null?void 0:C.findIndex(function(S){return S.isSelected});
return H===void 0?-1:H};
Eur=function(H,C,S){var w=function(){return H().label},A={},J=_.eJ("ytDropdownViewModelLabel",(A.ytDropdownViewModelLabelError=C,A));
return _.q(_.T,{cond:function(){return H().label&&!(S()===-1&&H().label&&!H().placeholderText)},
then:function(){return _.q("div",{class:J},_.q(_.uZ,{text:w}))}})};
e0O=function(H,C){var S={};S=_.eJ("ytDropdownViewModelTitle",(S.ytDropdownViewModelTitlePlaceholder=function(){return C()===-1},S));
return _.q("div",{class:S},_.q(_.uZ,{text:function(){var w=H();var A=C();if(A===-1)w=w.placeholderText?w.placeholderText:w.label;else{var J,c;w=(J=w.options)==null?void 0:(c=J[A])==null?void 0:c.title}return w}}))};
u6j=function(H,C){var S=function(){return H().hint};
return _.q(_.F9,null,_.q(_.T,{cond:function(){return S()&&!C()},
then:function(){return _.q("div",{class:_.eJ("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.q(_.uZ,{text:S,className:"ytDropdownViewModelSupportText"}))}}),_.q(_.T,{cond:C,
then:function(){return _.q("div",{id:"dropdown-view-model-error",role:"alert",class:_.eJ("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.q(_.lm,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.q(_.uZ,{text:C,className:"ytDropdownViewModelSupportText"}))}}))};
Gfo=function(H,C){var S=_.JA().resolve(_.Dip);_.$T(function(){var w=H().id;w&&S!=null&&S.dropdownMap.set(w,C)})};
vui=function(H){H=_.e(H.scheduleButton,ft3);H=_.e(H==null?void 0:H.primaryButton,_.qc);H=_.e(H==null?void 0:H.onTap,_.tx);var C,S,w=((S=_.e(H,_.b9))==null?void 0:S.commands)||[H];S=_.Z(w);for(H=S.next();!H.done&&!(C=_.e(H.value,_.j47));H=S.next());var A;C=(A=C)==null?void 0:A.createBroadcastRequest;if(!C)throw Error("Zj");return C};
OVp=function(H,C,S){S=S===void 0?{}:S;var w,A;return _.z(function(J){if(w=ltK(C))return J.return(w);(A=Vk_(H,C,S))&&out(C,A);return J.return(A)})};
out=function(H,C){var S=X9o(H);S&&C.then(function(w){_.JA().resolve(_.B_).put(S,new _.DL({innertubeResponse:w}))})};
ltK=function(H){if(H=X9o(H)){var C=_.JA().resolve(_.B_);if(C.has(H))return C.get(H).then(function(S){return S==null?void 0:_.AN(S)})}return null};
X9o=function(H){var C=_.e(H.endpoint,_.sX);if(C!=null&&C.videoId)return C={videoId:C.videoId},_.E("web_imp_player_mute_params")&&(C.mutedAtStart=H.startPlaybackInMutedState),_.SR("inline_playback",C)};
Vk_=function(H,C,S){H=_.ir(H,C.endpoint,QMo(C,S)).then(function(w){return w});
return Promise.resolve(H)};
QMo=function(H,C){C=_.E("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!H.startPlaybackInMutedState},C):Object.assign({},{vis:5,autonav:"1"},C);var S;C={contentPlaybackContext:_.dm(C,(S=_.e(H.endpoint.commandMetadata,_.u9))==null?void 0:S.url,window.location.href)};_.E("web_imp_player_mute_params")&&(C.overrideMutedAtStart=!H.startPlaybackInMutedState);return C};
p9p=function(H,C){var S=window.MutationObserver;S&&(xs=new S(function(w,A){w=_.Z(w);for(var J=w.next();!J.done;J=w.next()){J=J.value;var c;if(c=J.type==="childList"&&J.target)a:{c=H;J=dz9(J.target);c=dz9(c);for(var Y=null,M=0;M<J.length;M++)if(c.includes(J[M])){if(M===0){c=!1;break a}Y=J[M];break}Y?(J=PCt(J,Y),c=PCt(c,Y),c=J<c):c=!1}if(c){C();A.disconnect();break}}}),(S=$zt())&&xs.observe(S,{childList:!0,
subtree:!0}))};
$zt=function(){var H=document.getElementsByTagName("ytd-rich-grid-renderer");if(H.length>0)return H[0];H=document.getElementsByTagName("ytd-section-list-renderer");return H.length>0?H[0]:null};
dz9=function(H){for(var C=[];H;)C.push(H),H=H.parentElement;return C};
PCt=function(H,C){var S=Array.from(C.children);C=H.indexOf(C);return C>0?S.indexOf(H[C-1]):-1};
H$=function(H,C,S){S=S===void 0?{}:S;return _.fL(H,S,C)};
kf_=function(H){switch(H){case "MUSIC":return!0;default:return!1}};
nuq=function(H){if(H=H==null?void 0:H.find(function(w){var A,J;return((A=_.e(w,h03))==null?void 0:(J=A.inlinePlaybackBadgeData)==null?void 0:J.replicateAsTimestamp)===!0}))if(H=_.e(H,h03),H==null?0:H.icon){var C,S;
if((H=(C=_.U4i(H.icon))==null?void 0:(S=C.clientResource)==null?void 0:S.imageName)&&kf_(H))return H}};
rOR=function(H){return H==null?void 0:H.filter(function(C){return C.premiereTrailerBadgeRenderer})};
BTr=function(H){var C,S=H==null?void 0:(C=H.find(function(M){return M.thumbnailOverlayTimeStatusRenderer}))==null?void 0:C.thumbnailOverlayTimeStatusRenderer,w,A;
if((S==null?0:(w=S.icon)==null?0:w.iconType)&&kf_(S==null?void 0:(A=S.icon)==null?void 0:A.iconType)){var J;return{icon:S==null?void 0:(J=S.icon)==null?void 0:J.iconType}}var c;if(C=H==null?void 0:(c=H.find(function(M){return M.thumbnailOverlayBadgeViewModel}))==null?void 0:c.thumbnailOverlayBadgeViewModel)if(c=nuq(C.thumbnailBadges))return{icon:c};
var Y;if(H=H==null?void 0:(Y=H.find(function(M){return M.thumbnailBottomOverlayViewModel}))==null?void 0:Y.thumbnailBottomOverlayViewModel)if(Y=nuq(H.badges))return{icon:Y};
return{}};
Uzp=function(H,C){var S=Dzq,w=_.Z(_.mB(KQt(new tkq(function(){},S,C)),void 0,"PAnyd")),A=w.next().value,J=w.next().value,c=new tkq(function(Y){J(Y)},S,C);
_.d6(function(){Promise.resolve().then(function(){var Y,M=(Y=H())!=null?Y:{};c.playerControlsData=M;_.E("player_controls_skip_double_signal_old")&&(c.lastSeenPlayerApi=_.hN(M.playerApi));_.E("player_controls_skip_double_signal_old")||(c.lastSeenPlayerApi=_.hN(M.playerApi));LQt(c)});
_.PN(function(){guO(c)})},"HikUP");
_.PN(function(){guO(c)});
return function(){return A()}};
R09=function(H){return function(C){var S=H(),w={playerState:C};if(C===1){var A;(A=S.playerApi)==null||A.loadModule("captions")}if(C===0){var J;(J=S.playerApi)==null||J.unloadModule("captions")}C!==-1&&S.setState(w)}};
It9=function(H){return function(C){H().setState({playbackRate:C})}};
atr=function(H){return function(C){var S=H(),w=S.playerApi,A=w==null?void 0:w.getVideoData(),J=(A==null?void 0:A.isLive)||!1;A=A==null?void 0:A.video_id;J={videoDuration:EBO(w||void 0),isLive:J,videoId:A};J.videoId!==S.videoId&&(J=Object.assign({},_.nxD(w),J));if(C==null?0:C.playertype)J.playerType=C.playertype;if(w){J.captionsAvailable=_.fR(w);C=J;var c;A=(c=w.getStoryboardLevel(w.getNumberOfStoryboardLevels()-1))==null?void 0:c.intervalMs;C.storyboardInterval=A?A/1E3:void 0;J.captionsAvailable&&
(J.captionsEnabled=_.vT3(w))}J.volumeMuted=!(w==null||!w.isMuted());S.setState(J)}};
xzi=function(H){return function(C){var S=H(),w=S.playerApi;if(w){var A=w.getPresentingPlayerType();C={playedTime:C||0,percentLoaded:w.getVideoLoadedFraction(),playerType:A};S.playerState===0&&(C.playedTime=S.videoDuration);S.isLive&&(A=w.getProgressState(A),C.playedTime-=A.seekableStart,C.videoDuration=EBO(w));if(S.playerType===1)w=!1;else{var J;if((J=S.uxConfig)==null?0:J.showCuedOverlay){var c;w=!((c=S.playerApi)==null?0:c.getPlayerStateObject(S.playerType).isDomPaused)}else w=!0}w&&delete C.playedTime;
S.setState(C)}}};
HCt=function(H){return function(){var C=H(),S,w,A,J={volume:(A=(S=C.playerApi)==null?void 0:S.getVolume())!=null?A:0,volumeMuted:!((w=C.playerApi)==null||!w.isMuted())};C.setState(J)}};
iCi=function(H){return function(){var C=H(),S=C.playerApi;if(S){var w={captionsAvailable:_.fR(S)};w.captionsAvailable&&(w.captionsEnabled=_.vT3(S));C.setState(w)}}};
Cbr=function(H){return function(){var C=H();if(C.playerApi&&!(C.volumeMuted||C.controlsVisible&&C.isProbablyAScreenreaderUser)){C.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var S;(S=document.querySelector(".player-control-play-pause-icon"))==null||S.focus()}}};
Ss3=function(H){return{appApi:Object.assign({},_.QPE(),{showCaptionsToggleToast:function(C){var S,w;(w=(S=H()).showCaptionsToggleToast)==null||w.call(S,C)},
openInMiniplayer:function(){var C,S;(S=(C=H()).openInMiniplayer)==null||S.call(C)}})}};
s8i=function(H,C){var S,w,A;return!!(H==null?0:(S=H.playerResponse)==null?0:(w=S.playerConfig)==null?0:(A=w.inlinePlaybackConfig)==null?0:A.showScrubbingControls)&&!(C==null?0:C.hideScrubbingControls)};
_.j8t=function(H){var C=!H.miniplayerIsActive;return[5,2,0].includes(H.miniplayerPlaybackState)||C};
wnt={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};Ati=function(H,C){var S,w,A,J,c;_.z(function(Y){if(!C.length)return Y.return([]);S=[];w=_.Z(C);for(A=w.next();!A.done;A=w.next())J=A.value,(c=H.resolveIcon(J))&&!H.iconCache[c.url]&&S.push(_.yYq(H,c).then(function(){}).catch(function(){}));
return Y.return(Promise.all(S))})};
JtO=function(H,C){var S=[];C=(new Set(C)).values();C=_.Z(C);for(var w=C.next();!w.done;w=C.next()){w=w.value;for(var A=_.Z(Object.values(wnt)),J=A.next();!J.done;J=A.next())S.push({iconName:w,iconStyle:J.value})}Ati(H.iconManager,S)};
_.Fvp=function(H,C,S){var w=S!=null?S:H.iconsToFetch;w!=null&&w.length?C!==void 0&&C>=0?_.X2(_.rT,function(){JtO(H,w)},C):JtO(H,w):Promise.resolve()};
ZC_={sharedUi:_.WbW,a11y:_.To_,entities:{}};ct3=function(){return _.Md({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})};
tkq=function(H,C,S){var w=this;this.renderFn=H;this.listeners=C;this.context=S;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var A;this.lastSeenPlayerApi=_.hN((A=this.playerControlsData)==null?void 0:A.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.nxD(),void 0);_.E("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){KQt(w).setState({playerState:-1});w.resetRecentlyNavigatedJobId&&_.rT.cancelJob(w.resetRecentlyNavigatedJobId);
w.recentlyNavigated=!0;w.resetRecentlyNavigatedJobId=_.rT.addJob(function(){w.recentlyNavigated=!1},8,1E4)})};
tkq.prototype.setState=function(H){if(!_.E("mweb_player_skip_no_op_state_changes")||!e3i(H,this.state))if(this.state=Object.assign({},this.state,H),!_.E("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)H=-1,_.E("player_controls_log_creation_killswitch")||u0r()||(H=(0,_.Zt)()),_.DR("pcu_s"),_.DR("pcu_se"),_.DR("pcu_rs"),this.renderFn(KQt(this)),_.DR("pcu_re"),G9_(H),_.rT.addJob(function(){_.DR("pcu_ap")},8)};
var KQt=function(H){var C;var S=_.hN((C=H.playerControlsData)==null?void 0:C.playerApi);return Object.assign({},H.state,{setState:H.boundSetState,domMeasurements:{progressBarLineRect:H.progressBarLineRect},playerApi:S,appApi:H.context.appApi,playerContainer:H.context.playerContainer,playerControlContainer:H.context.playerControlContainer,uxConfig:H.context.uxConfig})},LQt=function(H){H.listeners.forEach(function(C){H.eventListenerCleanupFunctions.push(C.register(function(){return KQt(H)},function(){return H.getData()}))})},
guO=function(H){H.eventListenerCleanupFunctions.forEach(function(C){C()});
H.eventListenerCleanupFunctions.length=0};
tkq.prototype.getData=function(){return this.playerControlsData};
var Ysi=new _.mi("crowdsourcedContextUserRatingFormFlowState");var zbi=new _.mi("noteViewModel");var i2=new _.mi("abuseReportFlowState");var Mr9=new _.mi("feedbackFormFlowState");var qso=new _.mi("inputBoxViewModel");var Tvp=new _.mi("flowNextStepCommand");var mKi=new _.mi("flowPrevStepCommand");var Wvi=new _.mi("updateFlowCommand");_.ytR=new _.mi("flowStepRenderer");_.FQK=new _.mi("lengthValidationRule");var cO_=new _.mi("regexValidationRule");var z09=new _.mi("selectedValidationRule");var Nvq=new _.mi("talkToRecsViewModel");var bC9=new _.mi("creatorGoalSetUpFlowDropdownItemViewModel");var EI_=new _.mi("creatorGoalSetUpFlowDropdownViewModel");var h03=new _.mi("thumbnailBadgeViewModel");var ebi=new _.mi("checkboxGroupViewModel");var jMR=new _.mi("checkboxItemViewModel");_.CI=new _.mi("radioButtonGroupViewModel");var u23=new _.mi("radioButtonItemViewModel");var ft3=new _.mi("panelFooterViewModel");var G8R=new _.mi("ypcCancelRecurrenceCommand");var fZK=new _.mi("cancellationFlowState");var R3K=new _.mi("premiumPurchaseFlowState");var vIK=new _.mi("surveyAnswerCardRenderer");var lZ9=new _.mi("showMoreButtonRenderer");var Vrj;var oIp,OCi=function(){if(oIp!==void 0)return oIp;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;Vrj===void 0&&(Vrj=document.createElement("template"));var w=Vrj;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return oIp=H};var S1=function(){var H=_.X.apply(this,arguments)||this;H.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";H.goalDescription="";H.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";H.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";H.startButtonId="start-button";H.exampleButtonId="example-button";return H};
_.G(S1,_.X);_.F=S1.prototype;_.F.getGoalDropdownItems=function(){var H,C;return(C=_.e((H=this.data)==null?void 0:H.purchaseTargetDropdown,EI_))==null?void 0:C.dropdownItems};
_.F.getTimerDropdownItems=function(){var H,C;return(C=_.e((H=this.data)==null?void 0:H.timerDropdown,EI_))==null?void 0:C.dropdownItems};
_.F.getColorDropdownItems=function(){var H,C;return(C=_.e((H=this.data)==null?void 0:H.colorDropdown,EI_))==null?void 0:C.dropdownItems};
_.F.getDropdownItemText=function(H){var C;return(C=_.e(H,bC9))==null?void 0:C.itemLabel};
_.F.getDropdownItemValue=function(H){H=_.e(H,bC9);return(H==null?void 0:H.timeLimit)||(H==null?void 0:H.purchaseTarget)||(H==null?void 0:H.eligiblePurchaseType)};
_.F.updateFlowState=function(H){_.q3(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:H}])};
_.F.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.F.updateGoalValue=function(H){this.goal=H.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.F.onTextValueChanged=function(H){this.goalDescription=H.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.F.updateTimerValue=function(H){this.timer=H.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.F.updateTierValue=function(H){this.tier=H.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.F.getButtonViewModel=function(H){H=(H==null?void 0:H.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var C,S=_.e((C=this.data)==null?void 0:C.startGoalButton,_.qc);return Object.assign({},S,{state:H})};
_.JJ.Object.defineProperties(S1,{template:{configurable:!0,enumerable:!0,get:function(){return OCi()}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],S1.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],S1.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],S1.prototype,"goal",void 0);_.D([_.V(),_.K("design:type",Object)],S1.prototype,"goalDescription",void 0);_.D([_.V(),_.K("design:type",Object)],S1.prototype,"timer",void 0);_.D([_.V(),_.K("design:type",Object)],S1.prototype,"tier",void 0);
_.D([_.V(),_.K("design:type",Object)],S1.prototype,"startButtonId",void 0);_.D([_.V(),_.K("design:type",Object)],S1.prototype,"exampleButtonId",void 0);_.D([_.Lx({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],S1);_.B(S1,"yt-creator-goal-set-up-flow-view-model",function(){return OCi()},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var XnO;XnO=Object.assign({},{continuation:_.yUd,download:_.MuV,canvas:_.bw0,reportChannelAbuse:_.GJi,ui:_.ec7,share:_.f0W,talkToRecs:_.l0d,watch:_.FK,ypc:_.dl7,radioButtonGroup:_.yZW,collabInviteLink:_.mU$},ZC_,{voiceSearch:_.SY$,shorts:_.J$});_.sK=_.rW(XnO);_.Q8p=_.Bb(_.sK);var dKK;var Pbo;var $Kt;var pnp=function(){return _.X.apply(this,arguments)||this};
_.G(pnp,_.X);_.D([_.V(),_.K("design:type",Object)],pnp.prototype,"data",void 0);_.D([_.Lx({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],pnp);
_.B(pnp,"yt-survey-answer-card-renderer",function(){if($Kt===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;Pbo===void 0&&(Pbo=document.createElement("template"));var w=Pbo;S.call(C,w.content.cloneNode(!0),H.content.firstChild);$Kt=H}H=$Kt;return H},{mode:2});var k89;var hbO;var j1=function(){return _.X.apply(this,arguments)||this};
_.G(j1,_.X);_.F=j1.prototype;_.F.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.F.selectedItemChanged=function(H){_.q3(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[H.feedbackToken||""]}])};
_.F.surveyAnswerCardRendererClicked=function(H){if(H.target&&_.e(H.model.item,vIK)){var C=H.target;H=_.e(H.model.item,vIK);H.onTapCommand?_.yN(C,[H.onTapCommand],C):this.data.onTapCommand&&_.yN(C,[this.data.onTapCommand],C);this.selectedItemChanged(H)}};
_.F.checkIsCancellationStyle=function(H){return H==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.F.updateSelectedItemFromBinding=function(H){this.selectedItem=H.detail.value};
j1.prototype.onSelectedItemChanged=j1.prototype.onSelectedItemChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],j1.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],j1.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],j1.prototype,"selectedItem",void 0);_.D([_.V({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.K("design:type",Boolean)],j1.prototype,"isCancellationStyle",void 0);
_.D([_.fx("selectedItem"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],j1.prototype,"onSelectedItemChanged",null);_.D([_.Lx({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],j1);
_.B(j1,"yt-survey-flow-step-renderer",function(){if(hbO===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;k89===void 0&&(k89=document.createElement("template"));var w=k89;S.call(C,w.content.cloneNode(!0),H.content.firstChild);hbO=H}H=hbO;return H},{mode:2});var wl=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return H};
_.G(wl,_.X);wl.prototype.handleSurveyFlowStepOptionChanged=function(H){this.ytdReduxBehavior.dispatch(_.Md({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:H}));_.q3(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:H}}])};
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],wl.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],wl.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],wl.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],wl);
_.B(wl,"ytd-survey-flow-step-renderer",function(){if(dKK!==void 0)return dKK;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return dKK=H},{mode:1});_.DKO=_.n(function(H){var C=H.data;var S=H.hideDivider;var w=H.isChannelInfoCard;H={};return _.q("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.q("div",{class:_.eJ("yt-profile-identity-info-view-model__frame",(H["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!C().channelBanner},H))},_.q(nIo,{profileIdentityInfoData:C}),_.q("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.q("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.q(_.V4,{data:function(){return C().avatar}},{avatarViewModel:_.ZT})),_.q(rto,{profileIdentityInfoData:C})),_.q(_.T,{cond:function(){return C().channelDescription},
then:function(A){var J={};return _.q("div",{class:_.eJ((J["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(w==null||!w())},J["yt-profile-identity-info-view-model__channel-description"]=function(){return!(w==null?0:w())},J))},A)}}),_.q(Bvr,{profileIdentityInfoData:C}),_.q(_.T,{cond:function(){return!(S==null?0:S())},
then:function(){return _.q("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"Nf");
_.DKO.idomCompat=!0;var Bvr=_.n(function(H){var C=H.profileIdentityInfoData;return _.q("div",{class:"yt-profile-identity-info-view-model__buttons"},_.q(_.Vq,{each:function(){return C().subscribeButton?[C().subscribeButton,C().channelAccess]:[C().channelAccess]}},function(S){return _.q("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.q("div",{class:"yt-profile-identity-info-view-model--button"},_.q(_.V4,{data:function(){return S}},{buttonViewModel:_.rc,
subscribeButtonViewModel:_.Zk})))}))},"Of"),rto=_.n(function(H){var C=H.profileIdentityInfoData;
return _.q("div",{class:"yt-profile-identity-info-view-model__trio"},_.q("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.q(Kvp,{profileIdentityInfoData:C}),_.q(_.V4,{data:function(){return C().threeDotMenu}},{buttonViewModel:_.rc})),_.q(trO,{profileIdentityInfoData:C}))},"Pf"),Kvp=_.n(function(H){var C=H.profileIdentityInfoData;
return _.q("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.q("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return C().channelDisplayName}),_.q(_.T,{cond:function(){return C().verifiedOrOacBadge},
then:function(S){return _.q("div",{class:"yt-profile-identity-info-view-model__badge"},_.q(_.Jg,{data:function(){return{thumbnails:[{url:S().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"Qf"),nIo=_.n(function(H){var C=H.profileIdentityInfoData;
return _.q("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.q(_.V4,{data:function(){var S=C().channelBanner;if(S)return{imageBannerViewModel:{image:S.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(S){return _.q("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.q(_.md,{data:S.data,
isPositionRelative:!0}))}}))},"Rf"),trO=_.n(function(H){var C=H.profileIdentityInfoData;
return _.q("div",{class:"yt-profile-identity-info-view-model__metadata"},_.q("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.q("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return C().channelHandle}),_.q(_.T,{cond:function(){return C().channelPronouns&&C().channelHandle},
then:function(){return _.q("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.q("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return C().channelPronouns})),_.q("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.q("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return C().leftOfBulletInfo}),_.q(_.T,{cond:function(){return C().leftOfBulletInfo&&C().rightOfBulletInfo},
then:function(){return _.q("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.q("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return C().rightOfBulletInfo})))},"Sf");var Lvi;var Ap=function(){return _.X.apply(this,arguments)||this};
_.G(Ap,_.X);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Ap.prototype,"ytComponentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Ap.prototype,"data",void 0);_.D([_.h({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],Ap);
_.B(Ap,"ytd-channel-history-renderer",function(){if(Lvi!==void 0)return Lvi;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Lvi=H},{mode:1});var gIt;var UKp=function(){return _.X.apply(this,arguments)||this};
_.G(UKp,_.X);_.D([_.V(),_.K("design:type",Object)],UKp.prototype,"data",void 0);_.D([_.h({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],UKp);
_.B(UKp,"ytd-feature-enablement-info-renderer",function(){if(gIt!==void 0)return gIt;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return gIt=H},{mode:1});var Rbp;var IZK;var Jp=function(){var H=_.X.apply(this,arguments)||this;H.textBoxMaxLength=_.E("enable_tvod_campaign_code_integration")?15:12;return H};
_.G(Jp,_.X);_.F=Jp.prototype;_.F.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.F.onSubmit=function(){var H=this.data.serviceEndpoint,C=_.e(H,_.SA);C&&H&&(C.couponCode=this.userInput,_.JA().resolve(_.ZQ).resolveCommand(H,{form:{element:this.hostElement}}))};
_.F.validate=function(){var H=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=H&&!this.data.errorMessage;this.showErrorMessage=H&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.E("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.F.computeStyle=function(H){return H};
_.F.computeShowValidationBelowInput=function(H){return H!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.F.updateUserInputFromBinding=function(H){this.userInput=H.currentTarget.value};
_.F.updateShowErrorMessageFromBinding=function(H){this.showErrorMessage=H.detail.value};
_.JJ.Object.defineProperties(Jp.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
Jp.prototype.dataChanged=Jp.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Jp.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Jp.prototype,"data",void 0);_.D([_.V(),_.K("design:type",String)],Jp.prototype,"userInput",void 0);_.D([_.V(),_.K("design:type",Boolean)],Jp.prototype,"disableApplyButton",void 0);_.D([_.V(),_.K("design:type",Boolean)],Jp.prototype,"hideApplyButton",void 0);
_.D([_.V(),_.K("design:type",Boolean)],Jp.prototype,"hideErrorMessage",void 0);_.D([_.V(),_.K("design:type",Boolean)],Jp.prototype,"showTick",void 0);_.D([_.V(),_.K("design:type",Boolean)],Jp.prototype,"showErrorMessage",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.K("design:type",String)],Jp.prototype,"couponStyle",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.K("design:type",Boolean)],Jp.prototype,"showValidationBelowInput",void 0);_.D([_.V(),_.K("design:type",Object)],Jp.prototype,"textBoxMaxLength",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Jp.prototype,"dataChanged",null);
_.D([_.l("showTick","showErrorMessage","userInput"),_.K("design:type",String),_.K("design:paramtypes",[])],Jp.prototype,"validationState",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],Jp);
_.B(Jp,"ytd-ypc-coupon-renderer",function(){if(IZK!==void 0)return IZK;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return IZK=H},{mode:1});var Ft=function(){return _.X.apply(this,arguments)||this};
_.G(Ft,_.X);Ft.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.couponRenderer":{id:"coupon-renderer",mapping:{ypcCouponRenderer:"ytd-ypc-coupon-renderer"}}}};
Ft.prototype.computeStyle=function(H){return H};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Ft.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Ft.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Ft.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.K("design:type",String)],Ft.prototype,"buttonStyle",void 0);_.D([_.h({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],Ft);
_.B(Ft,"ytd-flow-bottom-bar-renderer",function(){if(Rbp!==void 0)return Rbp;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return Rbp=H},{mode:1});var aZp;var xKq;var Hmj;var ZS=function(){return _.X.apply(this,arguments)||this};
_.G(ZS,_.X);ZS.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
ZS.prototype.focus=function(H){this.title&&_.Sr(this.title,H)};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],ZS.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],ZS.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],ZS.prototype,"data",void 0);_.D([_.lA("#title"),_.K("design:type",HTMLElement)],ZS.prototype,"title",void 0);_.D([_.h({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],ZS);
_.B(ZS,"ytd-flow-top-bar-renderer",function(){if(Hmj!==void 0)return Hmj;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return Hmj=H},{mode:1});var imi;var Cy3;var SWR;var c$=function(){return _.X.apply(this,arguments)||this};
_.G(c$,_.X);c$.prototype.freeTextValueChanged=function(){_.q3(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
c$.prototype.updateFreeTextValueFromBinding=function(H){this.freeTextValue=H.detail.value};
_.JJ.Object.defineProperties(c$.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var H,C,S=(C=(H=this.data)==null?void 0:H.responseMaxLength)!=null?C:500,w;return((w=this.freeTextValue)!=null?w:"").length>=S?"maxed-out":""}}});
c$.prototype.freeTextValueChanged=c$.prototype.freeTextValueChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],c$.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],c$.prototype,"data",void 0);_.D([_.V(),_.K("design:type",String)],c$.prototype,"freeTextValue",void 0);_.D([_.lA("#user-input"),_.K("design:type",HTMLTextAreaElement)],c$.prototype,"input",void 0);
_.D([_.l("freeTextValue"),_.K("design:type",Object),_.K("design:paramtypes",[])],c$.prototype,"characterLimitClass",null);_.D([_.fx("freeTextValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],c$.prototype,"freeTextValueChanged",null);_.D([_.Lx({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],c$);
_.B(c$,"yt-free-text-input-flow-step-renderer",function(){if(SWR===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;Cy3===void 0&&(Cy3=document.createElement("template"));var w=Cy3;S.call(C,w.content.cloneNode(!0),H.content.firstChild);SWR=H}H=SWR;return H},{mode:2});var Y9=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return H};
_.G(Y9,_.X);Y9.prototype.handleFreeTextFlowStepInputChanged=function(H){_.q3(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:H}}])};
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],Y9.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],Y9.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Y9.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],Y9);
_.B(Y9,"ytd-free-text-input-flow-step-renderer",function(){if(imi!==void 0)return imi;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return imi=H},{mode:1});var sqo;var jq3;var w5j=function(){return _.X.apply(this,arguments)||this};
_.G(w5j,_.X);_.D([_.V(),_.K("design:type",Object)],w5j.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],w5j);
_.B(w5j,"ytd-metadata-line-renderer",function(){if(jq3!==void 0)return jq3;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return jq3=H},{mode:1});var z0=function(){return _.X.apply(this,arguments)||this};
_.G(z0,_.X);z0.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],z0.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],z0.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],z0.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],z0.prototype,"isMasthead",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],z0);
_.B(z0,"ytd-media-product-renderer",function(){if(sqo!==void 0)return sqo;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return sqo=H},{mode:1});var APt;var M7=function(){return _.X.apply(this,arguments)||this};
_.G(M7,_.X);M7.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
M7.prototype.onBillboardImageLoaded=function(){_.M3(this.hostElement,"yt-refit")};
M7.prototype.onBillboardImageLoaded=M7.prototype.onBillboardImageLoaded;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],M7.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],M7.prototype,"data",void 0);_.D([_.lA("#billboardImage"),_.K("design:type",Object)],M7.prototype,"billboardImage",void 0);_.D([_.Gz("yt-img-shadow-loaded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],M7.prototype,"onBillboardImageLoaded",null);
_.D([_.h({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],M7);
_.B(M7,"ytd-billboard-masthead-renderer",function(){if(APt!==void 0)return APt;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return APt=H},{mode:1});var JPi;var q7=function(){var H=_.X.apply(this,arguments)||this;H.smallSize=!1;return H};
_.G(q7,_.X);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],q7.prototype,"ytComponentBehaviorType",void 0);_.D([_.V(),_.K("design:type",Object)],q7.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],q7.prototype,"smallSize",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],q7);
_.B(q7,"ytd-bullet-formatted-string",function(){if(JPi!==void 0)return JPi;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return JPi=H},{mode:1});var Fri;var T0=function(){return _.X.apply(this,arguments)||this};
_.G(T0,_.X);T0.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],T0.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],T0.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],T0.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],T0);
_.B(T0,"ytd-offer-detail-renderer",function(){if(Fri!==void 0)return Fri;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Fri=H},{mode:1});var ZmR;var mg=function(){return _.X.apply(this,arguments)||this};
_.G(mg,_.X);mg.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"}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],mg.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],mg.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],mg.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],mg);
_.B(mg,"ytd-offer-detail-step-renderer",function(){if(ZmR!==void 0)return ZmR;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return ZmR=H},{mode:1});var cPK;var W$=function(){var H=_.X.apply(this,arguments)||this;H.isInOfferModule=!1;return H};
_.G(W$,_.X);_.F=W$.prototype;_.F.computeHasEndpoint=function(){var H;return!((H=this.data)==null||!H.onClickCommand)};
_.F.dataChanged=function(){var H;if((H=this.data)==null?0:H.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")};
_.F.detached=function(){var H;if((H=this.data)==null?0:H.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.F.handleClickEvent=function(){var H;if((H=this.data)==null?0:H.onClickCommand){var C;this.componentBehavior.resolveCommand((C=this.data)==null?void 0:C.onClickCommand)}};
_.F.onContentKeyDown=function(H){H.key==="Enter"?this.handleClickEvent(H):H.key===" "&&H.preventDefault()};
_.F.onContentKeyUp=function(H){H.key===" "&&this.handleClickEvent(H)};
W$.prototype.dataChanged=W$.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],W$.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],W$.prototype,"componentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],W$.prototype,"data",void 0);_.D([_.V({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],W$.prototype,"hasEndpoint",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],W$.prototype,"isInOfferModule",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],W$.prototype,"dataChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],W$);
_.B(W$,"ytd-channel-masthead-renderer",function(){if(cPK!==void 0)return cPK;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return cPK=H},{mode:1});var YWO;var yZ=function(){var H=_.X.apply(this,arguments)||this;H.thumbnailObjectFit="CONTAIN";H.thumbnailObjectPosition="LEFT";H.isExpanded=!1;return H};
_.G(yZ,_.X);_.F=yZ.prototype;_.F.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.F.dataChanged=function(){this.resetStates()};
_.F.computeisTapOnOfferInfoContainerEnabled=function(){var H;return((H=this.data)==null?void 0:H.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.F.onExpandBtnClick=function(){var H,C=_.e((H=this.data)==null?void 0:H.showMoreButtonRenderer,lZ9);C&&_.Bg(_.lJ(),C.trackingParams);this.isExpanded=!this.isExpanded};
_.F.onOfferInfoClick=function(H){this.isTapOnOfferInfoContainerEnabled&&(_.ww(_.Ar(H)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.AB(_.Ar(H)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.F.onBottomBarClick=function(){this.executeTapCommand()};
_.F.executeTapCommand=function(){var H,C=(H=this.data)==null?void 0:H.tapCommand;C&&this.ytComponentBehavior.resolveCommand(C)};
_.F.resetStates=function(){this.isExpanded=!1};
_.JJ.Object.defineProperties(yZ.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var H=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),C,S,w;return((C=this.data)==null?void 0:C.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&H&&!!((S=this.data)==null?0:(w=S.benefits)==null?0:w.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var H,C,S;return((C=_.e((H=this.data)==null?void 0:H.showMoreButtonRenderer,lZ9))==null?void 0:C.showMoreButtonTitle)||((S=this.data)==null?void 0:S.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var H,C,S;return((C=_.e((H=this.data)==null?void 0:H.showMoreButtonRenderer,lZ9))==null?void 0:C.showLessButtonTitle)||((S=this.data)==null?void 0:S.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var H;return(H=this.showLessButtonTitle)!=null?H:""}var C;return(C=this.showMoreButtonTitle)!=null?C:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var H,C,S;return((H=this.data)==null?void 0:H.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((C=this.data)==null?0:C.footerTitle)||((S=this.data)==null?0:S.footerSubtitle))}}});
yZ.prototype.dataChanged=yZ.prototype.dataChanged;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],yZ.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],yZ.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],yZ.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",String)],yZ.prototype,"thumbnailObjectFit",void 0);
_.D([_.V(),_.K("design:type",String)],yZ.prototype,"thumbnailObjectPosition",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.K("design:type",Boolean)],yZ.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.D([_.V(),_.K("design:type",Object)],yZ.prototype,"isExpanded",void 0);_.D([_.V(),_.K("design:type",Object)],yZ.prototype,"data",void 0);_.D([_.V({computed:"computeIcon_(data.footerIcon)"}),_.K("design:type",String)],yZ.prototype,"icon",void 0);
_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],yZ.prototype,"dataChanged",null);_.D([_.l("data.thumbnail"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],yZ.prototype,"hasThumbnail",null);_.D([_.l("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],yZ.prototype,"enableExpandButton",null);
_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],yZ.prototype,"enableOfferContentIcon",null);_.D([_.l("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.K("design:type",Object),_.K("design:paramtypes",[])],yZ.prototype,"showMoreButtonTitle",null);_.D([_.l("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.K("design:type",Object),_.K("design:paramtypes",[])],yZ.prototype,"showLessButtonTitle",null);
_.D([_.l("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.K("design:type",String),_.K("design:paramtypes",[])],yZ.prototype,"expandedBtnText",null);_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],yZ.prototype,"enableBottomBar",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],yZ);
_.B(yZ,"ytd-offer-card-renderer",function(){if(YWO!==void 0)return YWO;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return YWO=H},{mode:1});var zrR;var N7=function(){return _.X.apply(this,arguments)||this};
_.G(N7,_.X);N7.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"}}}};
N7.prototype.onClick=function(H){if(!_.ww(H.composedPath()||[],this.hostElement,["A".toString()])){var C,S;if((H=(S=_.e((C=this.data)==null?void 0:C.actionButton,_.cg))==null?void 0:S.command)&&!this.ytComponentBehavior.resolveCommand(H)){var w;(w=_.lJ())==null||w.clickCommand(H);_.JA().resolve(_.ZQ).resolveCommand(H,{form:{element:this.hostElement}})}}};
_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],N7.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],N7.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],N7.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],N7.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],N7);
_.B(N7,"ytd-offer-content-renderer",function(){if(zrR!==void 0)return zrR;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return zrR=H},{mode:1});var Ma_;var b2=function(){return _.X.apply(this,arguments)||this};
_.G(b2,_.X);b2.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.JJ.Object.defineProperties(b2.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var H,C;return!((H=this.data)==null||!H.title)||!((C=this.data)==null||!C.description)}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],b2.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],b2.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],b2.prototype,"data",void 0);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],b2.prototype,"hasHeaderData",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],b2);
_.B(b2,"ytd-offer-section-renderer",function(){if(Ma_!==void 0)return Ma_;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return Ma_=H},{mode:1});var qWo;var EK=function(){return _.X.apply(this,arguments)||this};
_.G(EK,_.X);
EK.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"}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],EK.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],EK.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],EK.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],EK);
_.B(EK,"ytd-offer-selection-step-renderer",function(){if(qWo!==void 0)return qWo;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return qWo=H},{mode:1});var TdO;var e1=function(){return _.X.apply(this,arguments)||this};
_.G(e1,_.X);e1.prototype.computeStyle=function(H){return H};
e1.prototype.computeImageWidth=function(H){return H==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.D([_.V({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.K("design:type",String)],e1.prototype,"containerStyle",void 0);_.D([_.V({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.K("design:type",String)],e1.prototype,"imageWidth",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],e1.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],e1.prototype,"data",void 0);
_.D([_.h({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],e1);
_.B(e1,"ytd-confirmation-masthead-renderer",function(){if(TdO!==void 0)return TdO;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return TdO=H},{mode:1});var m_9;var u2=function(){return _.X.apply(this,arguments)||this};
_.G(u2,_.X);u2.prototype.computeStyle=function(H){return H};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],u2.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],u2.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.K("design:type",String)],u2.prototype,"containerStyle",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],u2);
_.B(u2,"ytd-purchase-complete-detail-renderer",function(){if(m_9!==void 0)return m_9;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return m_9=H},{mode:1});var WrR;var G0=function(){var H=_.X.apply(this,arguments)||this;H.scriptsAppended=!1;return H};
_.G(G0,_.X);G0.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"}}}};
G0.prototype.onDataChanged=function(){var H=this.get("data.gtmId");H&&(_.jx(H,_.rh("GL","")),this.setupConversionTracking())};
G0.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var H=document.createElement("noscript");H.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(H);this.scriptsAppended=!0}};
G0.prototype.onDataChanged=G0.prototype.onDataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],G0.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],G0.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],G0.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],G0.prototype,"scriptsAppended",void 0);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],G0.prototype,"onDataChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],G0);
_.B(G0,"ytd-purchase-complete-step-renderer",function(){if(WrR!==void 0)return WrR;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return WrR=H},{mode:1});var yPO;var fI=function(){var H=_.X.apply(this,arguments)||this;H.darkerDarkTheme=_.E("web_darker_dark_theme");return H};
_.G(fI,_.X);fI.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],fI.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],fI.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],fI.prototype,"darkerDarkTheme",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],fI);
_.B(fI,"ytd-ypc-transaction-error-message-renderer",function(){if(yPO!==void 0)return yPO;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return yPO=H},{mode:1});var Ndj;var bmR;var v$=function(){var H=_.X.apply(this,arguments)||this;H.handlePhoneVerificationSuccess=function(C){if(H.isValidPhoneVerificationCompletionMessageEvent(C)){var S;((S=H.data)==null?0:S.nextStepCommand)&&H.ytComponentBehavior.resolveCommand(H.data.nextStepCommand)}};
return H};
_.G(v$,_.X);v$.prototype.isValidPhoneVerificationCompletionMessageEvent=function(H){if(H.data!=="yt-phone-verification-complete")return!1;H=_.S$(H.origin);return H!==null&&H.includes("youtube.com")};
v$.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
v$.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],v$.prototype,"ytComponentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],v$.prototype,"data",void 0);_.D([_.Lx({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],v$);
_.B(v$,"yt-feature-enablement-soft-entry-renderer",function(){if(bmR===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;Ndj===void 0&&(Ndj=document.createElement("template"));var w=Ndj;S.call(C,w.content.cloneNode(!0),H.content.firstChild);bmR=H}H=bmR;return H},{mode:1});var Ef_;var erq;var uy9;var Gqi;var fVi=function(){return _.X.apply(this,arguments)||this};
_.G(fVi,_.X);_.D([_.V(),_.K("design:type",Object)],fVi.prototype,"data",void 0);_.D([_.Lx({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],fVi);
_.B(fVi,"yt-benefits-item-renderer",function(){if(Gqi===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;uy9===void 0&&(uy9=document.createElement("template"));var w=uy9;S.call(C,w.content.cloneNode(!0),H.content.firstChild);Gqi=H}H=Gqi;return H},{mode:2});var vfr;var lV_;var l2=function(){return _.X.apply(this,arguments)||this};
_.G(l2,_.X);l2.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
l2.prototype.computeisWithoutPadding=function(){var H;return((H=this.data)==null?void 0:H.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],l2.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],l2.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.K("design:type",Boolean)],l2.prototype,"isWithoutPadding",void 0);_.D([_.Lx({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],l2);
_.B(l2,"yt-benefits-section-renderer",function(){if(lV_===void 0){var H=document.createElement("template");_.f(H,'\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>');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;vfr===void 0&&(vfr=document.createElement("template"));var w=vfr;S.call(C,w.content.cloneNode(!0),H.content.firstChild);lV_=H}H=lV_;return H},{mode:2});var VZ=function(){return _.X.apply(this,arguments)||this};
_.G(VZ,_.X);VZ.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
VZ.prototype.computeisUsingLargeWidth=function(){var H;return((H=this.data)==null?void 0:H.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],VZ.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],VZ.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.K("design:type",Boolean)],VZ.prototype,"isUsingLargeWidth",void 0);_.D([_.Lx({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],VZ);
_.B(VZ,"yt-benefits-flow-step-renderer",function(){if(erq===void 0){var H=document.createElement("template");_.f(H,'\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>');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;Ef_===void 0&&(Ef_=document.createElement("template"));var w=Ef_;S.call(C,w.content.cloneNode(!0),H.content.firstChild);erq=H}H=erq;return H},{mode:2});var Vap;var ofj;var oU=function(){return _.X.apply(this,arguments)||this};
_.G(oU,_.X);oU.prototype.checkIsUsingLargeWidth=function(){var H;return((H=this.data)==null?void 0:H.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.D([_.V(),_.K("design:type",Object)],oU.prototype,"data",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],oU.prototype,"ytRendererBehavior",void 0);_.D([_.V({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.K("design:type",Boolean)],oU.prototype,"isUsingLargeWidth",void 0);_.D([_.Lx({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],oU);
_.B(oU,"yt-confirmation-flow-step-renderer",function(){if(ofj===void 0){var H=document.createElement("template");_.f(H,'\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>');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;Vap===void 0&&(Vap=document.createElement("template"));var w=Vap;S.call(C,w.content.cloneNode(!0),H.content.firstChild);ofj=H}H=ofj;return H},{mode:2});var Omt;var X5R;var Qqi=function(){return _.X.apply(this,arguments)||this};
_.G(Qqi,_.X);_.D([_.V(),_.K("design:type",Object)],Qqi.prototype,"data",void 0);_.D([_.Lx({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],Qqi);
_.B(Qqi,"yt-info-flow-step-renderer",function(){if(X5R===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;Omt===void 0&&(Omt=document.createElement("template"));var w=Omt;S.call(C,w.content.cloneNode(!0),H.content.firstChild);X5R=H}H=X5R;return H},{mode:2});var d_i;var PyO;var $_i=function(){return _.X.apply(this,arguments)||this};
_.G($_i,_.X);_.D([_.V(),_.K("design:type",Object)],$_i.prototype,"data",void 0);_.D([_.Lx({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],$_i);
_.B($_i,"yt-info-list-flow-step-renderer",function(){if(PyO===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;d_i===void 0&&(d_i=document.createElement("template"));var w=d_i;S.call(C,w.content.cloneNode(!0),H.content.firstChild);PyO=H}H=PyO;return H},{mode:2});var p5_=_.n(function(H){var C=H.data;return _.q("styled-text-view-model",{class:_.eJ("ytStyledTextViewModelHost",function(){return k99(C().fontAttributes)},function(){return pAr(C().color)})},_.q(_.uZ,{text:function(){return C().text},
ariaLabel:function(){var S,w,A;return(A=(S=C().accessibility)==null?void 0:(w=S.accessibilityData)==null?void 0:w.label)!=null?A:""}}))},"Tf");
p5_.idomCompat=!0;var kqi=_.n(function(H){var C=function(){var A,J,c,Y;return(Y=(c=(A=H.alt)==null?void 0:A.call(H))!=null?c:(J=H.data().accessibilityData)==null?void 0:J.label)!=null?Y:""},S=function(){return H.data().imageWidth},w=function(){return H.data().imageHeight};
return _.q("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.q(_.T,{cond:function(){var A=H.data();if(A){var J,c,Y;var M=((J=_.JA().resolve(_.AA(_.sU)))==null?0:J())?(c=A.imageDark)!=null?c:A.imageLight:(Y=A.imageLight)!=null?Y:A.imageDark}else M=void 0;return M},
then:function(A){return _.q(_.Jg,Object.assign({},H,{data:A,alt:C,targetWidth:S,targetHeight:w,preserveHeight:!0,preserveWidth:!0}))}}))},"Uf");
kqi.idomCompat=!0;var OK=_.n(function(H){var C=H.data;H=_.Jx(function(){return C().slots},[]);
var S=_.Jx(function(){return C().layoutProperties},{}),w=_.JA().resolve(_.wW);
return _.q("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:XAi(S,w)},_.q(_.Vq,{each:H,keyBy:"INDEX"},function(A){return _.q("div",{class:"ytContainerLayoutViewModelSlot",style:XAi(function(){return A().layoutProperties},w)},_.q(_.V4,{data:function(){return A().contents}},{containerLayoutViewModel:OK,
badgeViewModel:_.PG,buttonViewModel:_.rc,styledTextViewModel:p5_,contentPreviewImageViewModel:function(J){return _.q(_.$n,{data:J.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(J){return _.q(kqi,{data:J.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"Vf");
OK.idomCompat=!0;var hrt=_.n(function(H){var C=H.data;var S=H.stateFns;var w=function(){var m=C(),W=m.productId;return!(!m.clearGroupId&&!W)},A=function(){var m=C(),W=m.clearGroupId;
return(m=m.productId)?S().isProductSelected(m):W?S().getSelectedProductByGroupId(W)==null:!1},J=function(m){var W=C(),y=W.clearGroupId;
if(W=W.productId)S().onProductSelected(W),m==null||m.forEach(function(N){_.Im(N)});
else if(y)S().onClearGroupSelected(y)},c=function(){var m=C(),W=m.clearGroupId;
if(m=m.productId){var y;return"group:"+(((y=S().getProductById(m))==null?void 0:y.groupId)||"")}return W?"group:"+W:""},Y=_.Jx(function(){return C().header},[]),M=_.Jx(function(){return C().body},[]);
return _.q("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.q(_.T,{cond:function(){return Y().length>0||w()},
then:function(){return _.q("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.q("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.q(_.V4,{data:Y},{containerLayoutViewModel:function(m){return _.q("div",{class:"ytPdpCardSectionViewModelContentItem"},_.q(OK,{data:m.data}))},
styledTextViewModel:function(m){return _.q("div",{class:"ytPdpCardSectionViewModelContentItem"},_.q(p5_,{data:m.data}))}})),_.q(_.T,{cond:w,
then:function(){return _.q("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.q(_.zP,{checked:A,name:c,onChange:function(){J(C().onSelect)}}))}}))}}),_.q(_.T,{cond:function(){return M().length>0},
then:function(){return _.q("div",null,_.q(_.V4,{data:M},{containerLayoutViewModel:function(m){return _.q("div",{class:"ytPdpCardSectionViewModelContentItem"},_.q(OK,{data:m.data}))}}))}}))},"Wf");
hrt.idomCompat=!0;var nfp=_.n(function(H){var C=H.data;var S=H.stateFns;return _.q("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.q(_.T,{cond:function(){return C().banner},
then:function(w){return _.q("div",{class:"ytPdpCardViewModelBanner"},_.q(_.uZ,{text:w}))}}),_.q(_.V4,{data:function(){return C().sections}},{pdpCardSectionViewModel:function(w){w=w.data;
var A={};return _.q("div",{class:_.eJ("ytPdpCardViewModelSectionContainer",(A.ytPdpCardViewModelShowDividers=function(){return C().showDividers},A))},_.q(hrt,{data:w,
stateFns:S}))}}))},"Xf");
nfp.idomCompat=!0;var rPR=_.n(function(H){var C=H.data;var S=H.isOverlay;H={};return _.q("pdp-masthead-view-model",{class:_.eJ("ytPdpMastheadViewModelHost",(H.ytPdpMastheadViewModelIsOverlay=S,H))},_.q(_.V4,{data:function(){return C().image}},{contentPreviewImageViewModel:_.$n,
themedImageViewModel:function(w){return _.q(kqi,{data:w.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.q(_.T,{cond:function(){return C().title},
then:function(w){return _.q("h1",{class:"ytPdpMastheadViewModelHeading"},_.q(_.uZ,{text:w,isOverlay:S}))}}),_.q(_.Vq,{each:function(){var w;
return(w=C().finePrint)!=null?w:[]}},function(w){return _.q("div",{class:"ytPdpMastheadViewModelFinePrint"},_.q(_.uZ,{text:w,
isOverlay:S}))}))},"Yf");
rPR.idomCompat=!0;var Bdr=_.n(function(H){var C=H.data;var S=H.stateFns;var w=function(){return"pdp-pricing-group-selector-"+C().pricingGroupAttributeIds},A=_.Jx(function(){return C().pricingGroupSelectorSectionHeader});
return _.q("pdp-pricing-group-selector-view-model",null,_.q(_.T,{cond:function(){return!!A()},
then:function(){return _.q(_.V4,{data:A},{sectionHeaderViewModel:function(J){J=J.data;var c={};return _.q("div",{class:_.eJ("ytPdpPricingGroupSelectorViewModelSectionHeader",(c.ytPdpPricingGroupSelectorViewModelFullBleed=!0,c.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,c))},_.q(_.KS,{data:J}))}})}}),_.q("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.q(_.Vq,{each:function(){var J=S().getSelectedProductByGroupId(C().groupId);
if(!J)return _.rv(Error("Tj`"+C().groupId)),[];var c,Y=(c=C().pricingGroupAttributeIds)!=null?c:[],M;if((M=J.pricingGroups)==null||!M.length||!Y.length)return[];c=J.pricingGroups.filter(function(N){return Y.length?N.pricingGroupAttributes.every(function(b){return Y.includes(b)}):!1});
J=[];if(Y.length>0){c=[].concat(_.k$(c));M=_.Z(Y);for(var m=M.next(),W={};!m.done;W={targetAttrId:void 0},m=M.next())W.targetAttrId=m.value,m=c.findIndex(function(N){return function(b){return b.pricingGroupAttributes.includes(N.targetAttrId)}}(W)),m!==-1&&(J.push(c[m]),c.splice(m,1))}var y=S().getSelectedPricingGroupAttributesByGroupId(C().groupId);
return J.map(function(N){var b=!1;y&&N.pricingGroupAttributes&&(b=Rc(N.pricingGroupAttributes,y));return{pricingGroup:N,isSelected:b}})},
keyBy:function(J){return J.pricingGroup.pricingGroupId}},function(J){return _.q("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.q("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.q(_.V4,{data:function(){return J().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:OK})),_.q("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.q(_.zP,{checked:function(){return J().isSelected},
name:w,onClick:function(){var c=J().pricingGroup;S().onPricingGroupSelected(c.pricingGroupId);if(c=_.L7(c.onSelectPricingGroup)){var Y;(Y=_.JA().resolve(_.ZQ))==null||Y.resolveCommand(c)}}})))})))},"Zf");
Bdr.idomCompat=!0;var D__=_.n(function(H){var C=H.data;var S=H.stateFns;var w=function(){var c=S().getSelectedPricingOptions().map(function(m){return m.pricingOptionId}),Y=S().getSelectedProductByGroupId(C().groupId);
if(!Y)return _.rv(Error("Uj`"+C().groupId)),[];var M=S().getSelectedPricingGroupAttributesByGroupId(C().groupId);return B4o(Y.pricingOptions,M,c)},A=_.Jx(function(){return C().pricingOptionSelectorSectionHeader}),J=function(){return w().length>1};
return _.q("pdp-pricing-option-selector-view-model",null,_.q(_.T,{cond:function(){return!!A()&&J()},
then:function(){return _.q(_.V4,{data:A},{sectionHeaderViewModel:function(c){c=c.data;var Y={};return _.q("div",{class:_.eJ("ytPdpPricingOptionSelectorViewModelSectionHeader",(Y.ytPdpPricingOptionSelectorViewModelFullBleed=!0,Y.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,Y))},_.q(_.KS,{data:c}))}})}}),_.q(_.T,{cond:J,
then:function(){return _.q("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.q(_.Vq,{each:w,keyBy:"INDEX"},function(c){return _.q("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.q("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.q(_.V4,{data:function(){return c().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:OK})),_.q("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.q(_.zP,{checked:function(){return c().isSelected},
onClick:function(){S().onPricingOptionSelected(c().pricingOption.pricingOptionId);var Y=c().pricingOption.onSelectPricingOption;if(Y=_.L7(Y)){var M;(M=_.JA().resolve(_.ZQ))==null||M.resolveCommand(Y)}}})))}))}}))},"$f");
D__.idomCompat=!0;var KrK=_.n(function(H){var C=H.data;var S=H.stateFns;return _.q("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.q(_.V4,{data:function(){var w,A;return(A=(w=S().getSelectedPricingOptions()[0])==null?void 0:w.primaryButton)!=null?A:C().emptyStateButton}},{buttonViewModel:_.rc}))},"ag");
KrK.idomCompat=!0;var taO=_.n(function(H){var C=H.stateFns;return _.q("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.q(_.V4,{data:function(){return C().getSelectedPricingOptions().flatMap(function(S){return S.summaryLines}).filter(function(S){return!!S})}},{containerLayoutViewModel:function(S){return _.q("div",{class:"ytPdpSummaryViewModelLineItem"},_.q(OK,{data:S.data}))}}))},"bg");
taO.idomCompat=!0;var Lrq=_.n(function(H){function C(d){var p=c();_.Ax(_.pN("pdpStateEntity",p,{key:p,selectedPricingOptions:d}))}
var S=H.data;var w=H.internalScrolling;var A=H.stateFnsForTesting;var J=_.Jx(function(){return S().allProducts},[]),c=_.Jx(function(){return S().pdpStateEntityKey},""),Y=_.fn(DEp,c),M=_.EF(function(){_.ps(!0);
var d;return(d=A==null?void 0:A())!=null?d:t$K(Y,J,C)},void 0,"tAB69c"),m=_.Jx(function(){return S().body},[]),W=_.Jx(function(){return S().columnBreakHints},[]),y=function(){return S().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},N=function(){return y()||S().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},b=_.EF(function(){var d=_.U5(S().background),p;
if(d==null?0:(p=d.sources)==null?0:p.length){var k=k===void 0?!0:k;d=_.aWu(void 0,d.sources,void 0,k,k?1E3:void 0,k?void 0:1E3)}else d=null;return d},void 0,"bHjkUb");
H=_.vb({"--pdp-view-model-background":function(){return b()?"url("+b()+")":void 0}});
var u={};w=_.eJ("ytPdpViewModelHost",(u.ytPdpViewModelHasBackground=function(){return N()||!!b()},u.ytPdpViewModelHasDarkBackground=N,u.ytPdpViewModelHasScrim=y,u.ytPdpViewModelInternalScrolling=_.Jx(w,!1),u));
var O=function(d){var p={};return _.eJ("ytPdpViewModelItem",(p.ytPdpViewModelFullBleed=function(){return LC_(d())==="dividerViewModel"||LC_(d())==="sectionHeaderViewModel"},p.ytPdpViewModelNoVerticalPadding=function(){return LC_(d())==="sectionHeaderViewModel"},p))};
_.$T(function(){var d=S().onStartCommand;if(d&&(d=_.L7(d))){var p;(p=_.JA().resolve(_.ZQ))==null||p.resolveCommand(d)}});
return _.q("pdp-view-model",{class:w,style:H},_.q("div",{class:"ytPdpViewModelColumnContainer"},_.q(_.Vq,{each:function(){return gBi(m(),W())},
keyBy:"INDEX"},function(d){return _.q("div",{class:"ytPdpViewModelColumn"},_.q(_.V4,{data:d},{containerLayoutViewModel:function(p,k){p=p.data;return _.q("div",{class:O(function(){return d()[k()]})},_.q(OK,{data:p}))},
dividerViewModel:function(p,k){p=p.data;return _.q("div",{class:O(function(){return d()[k()]})},_.q(_.K8n,{data:p}))},
pdpCardViewModel:function(p,k){p=p.data;return _.q("div",{class:O(function(){return d()[k()]})},_.q(nfp,{data:p,
stateFns:M}))},
pdpMastheadViewModel:function(p,k){p=p.data;return _.q("div",{class:O(function(){return d()[k()]})},_.q(rPR,{data:p,
isOverlay:N}))},
pdpPricingGroupSelectorViewModel:function(p,k){p=p.data;return _.q("div",{class:O(function(){return d()[k()]})},_.q(Bdr,{data:p,
stateFns:M}))},
pdpPricingOptionSelectorViewModel:function(p,k){p=p.data;return _.q("div",{class:O(function(){return d()[k()]})},_.q(D__,{data:p,
stateFns:M}))},
pdpPrimaryButtonViewModel:function(p,k){p=p.data;return _.q("div",{class:O(function(){return d()[k()]})},_.q(KrK,{data:p,
stateFns:M}))},
pdpSummaryViewModel:function(p,k){p=p.data;return _.q("div",{class:O(function(){return d()[k()]})},_.q(taO,{data:p,
stateFns:M}))},
sectionHeaderViewModel:function(p,k){p=p.data;return _.q("div",{class:O(function(){return d()[k()]})},_.q(_.KS,{data:p}))}}))})))},"cg");
Lrq.idomCompat=!0;_.qs(Lrq,"pdp-view-model",{props:{data:_.GH,stateFnsForTesting:_.Yb,internalScrolling:_.Yb}});var gf3=_.n(function(H){var C=H.data;var S=H.className;var w=_.fn(_.iz,function(){return C().flowStateEntityKey});
return _.q("ytm-premium-purchase-button-renderer",{class:_.eJ("ytPremiumPurchaseButtonRendererHost",S)},_.q(_.V4,{data:function(){var A;return(A=_.e(w(),R3K))==null?void 0:A.primaryButtonOverride}},{buttonRenderer:function(A){return _.q(_.ft,{data:A.data,
className:S})},
buttonViewModel:function(A){return _.q(_.rc,{data:A.data,className:S})}}))},"dg");
gf3.idomCompat=!0;var U_p=_.n(function(H){var C=H.data;H=H.className;var S=function(){return UE_(C().style)},w=_.eJ("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",S),A=_.eJ("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",S);
return _.q("yt-flow-bottom-bar-renderer",{class:_.eJ("yt-flow-bottom-bar-renderer",H,S)},_.q(_.V4,{data:function(){return C().secondaryButton}},{buttonRenderer:function(J){return _.q(_.ft,{data:J.data,
className:A})},
buttonViewModel:function(J){return _.q(_.rc,{data:J.data,className:A})},
premiumPurchaseButtonRenderer:function(J){return _.q(gf3,{data:J.data,className:A})}}),_.q(_.V4,{data:function(){return C().primaryButton}},{buttonRenderer:function(J){return _.q(_.ft,{data:J.data,
className:w})},
buttonViewModel:function(J){return _.q(_.rc,{data:J.data,className:w})},
premiumPurchaseButtonRenderer:function(J){return _.q(gf3,{data:J.data,className:w})}}))},"eg");
U_p.idomCompat=!0;_.qs(U_p,"yt-flow-bottom-bar-renderer",{props:{data:_.GH,className:_.GH}});var Rr9=_.n(function(H){var C=_.eJ(H.className,"ytOfferSummaryRendererHost");return _.q("yt-offer-summary-renderer",{class:C},_.q("div",{class:"ytOfferSummaryRendererTextContainer"},_.q("div",{class:"ytOfferSummaryRendererEyebrowText"},_.q(_.uZ,{text:function(){return H.data().eyebrowText}})),_.q("div",{class:"ytOfferSummaryRendererTitle"},_.q(_.uZ,{text:function(){return H.data().title}})),_.q("div",{class:"ytOfferSummaryRendererSubtitle"},_.q(_.uZ,{text:function(){return H.data().subtitle}})),_.q("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.q(_.Vq,{each:function(){var S;
return(S=H.data().featureListData)!=null?S:[]}},function(S){var w;
return _.q("div",{class:"ytOfferSummaryRendererFeatureList"},_.q(_.lm,{icon:(w=S.icon)==null?void 0:w.iconType,active:function(){return S.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(S.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"}}}),_.q("div",{class:"ytOfferSummaryRendererFeatureListText"},_.q(_.uZ,{text:S.text,
className:function(){return S.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.q("div",{class:"ytOfferSummaryRendererDescription"},_.q(_.uZ,{text:function(){return H.data().description}}))))},"fg");_.qs(_.n(function(H){var C={};C=_.eJ("ytOfferSummaryFlowStepRendererHost",(C.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=H.shouldDisableHeaderTopMargin,C));return _.q("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:C},_.q("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.q("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.q(_.uZ,{text:function(){return H.data().header}})),_.q("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.q(_.uZ,{text:function(){return H.data().subtitle}}))),_.q("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.q(_.V4,{data:function(){return H.data().offerSummary}},{offerSummaryRenderer:function(S){return _.q(Rr9,{data:S.data,
className:H.flowClassName})}})))},"gg"),"yt-offer-summary-flow-step-renderer",{props:{data:_.Yb,
flowClassName:_.Yb,flowStateEntityKey:_.Yb,shouldDisableHeaderTopMargin:_.Yb}});var IV_=_.n(function(H){var C=H.data;var S=H.className;var w=H.flowStateEntityKey;var A=H.selectionStepStyle;H=_.um(function(M){var m=C(),W=w==null?void 0:w();M.target&&(M.stopPropagation(),M=W||"",W=_.iz(_.wC().getState(),M),m=Object.assign({},W,{premiumPurchaseFlowState:{selectedOptionId:m.optionId,primaryButtonOverride:m.primaryButtonOverride}}),_.wC().dispatch(_.O5("flowStateEntity",M,m)));return!1});
var J=function(){return(w==null?void 0:w())||""},c=_.fn(_.iz,J);
_.$T(function(){var M=C(),m=J(),W=c();M.defaultSelected&&m!==""&&M.primaryButtonOverride&&IQq(M.optionId||"",m,M.primaryButtonOverride,W)});
var Y={};return _.q("ytm-option-item-renderer",{"on:click":H,class:_.eJ(S,"ytm-option-item-renderer",(Y["ytm-option-item-renderer--lp2-style"]=function(){return(A==null?void 0:A())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},Y))},_.q("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.q("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var M=C(),m=J(),W=c();W=_.e(W,R3K);return(W?(W==null?void 0:W.selectedOptionId)||"":M.defaultSelected&&m!==""?(M==null?void 0:M.optionId)||"":"")===C().optionId},
name:("input"+_.IB(_.ZD)).toString()})),_.q("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.q(_.V4,{data:function(){return C().titleBadge}},{badgeViewModel:function(M){return _.q(_.PG,{data:M.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.q(_.T,{cond:function(){return C().eyebrowText},
then:function(){return _.q("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.q(_.uZ,{text:function(){return C().eyebrowText}}))}}),_.q("div",{class:"ytm-option-item-renderer__option-item-title"},_.q(_.uZ,{text:function(){return C().title}})),_.q("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.q(_.uZ,{text:function(){return C().subtitle}})),_.q(_.T,{cond:function(){return C().featureListData},
then:function(){return _.q("div",{class:"ytm-option-item-renderer__feature-list-data"},_.q(_.Vq,{each:function(){return C().featureListData||[]}},function(M){var m,W=(m=M.icon)==null?void 0:m.iconType;
a:switch(M.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":m="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":m="ytm-option-item-renderer__feature-list-icon-small";break a;default:m="ytm-option-item-renderer__feature-list-icon-default"}return _.q("div",{class:"ytm-option-item-renderer__feature-list"},_.q(_.lm,{icon:W,className:m,active:function(){return M.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.q("div",{class:"ytm-option-item-renderer__feature-list-text"},_.q(_.uZ,{text:M.text,
className:function(){return M.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.q("div",{class:"ytm-option-item-renderer__option-item-description"},_.q(_.uZ,{text:function(){return C().description}}))))},"hg");var aVi=_.n(function(H){var C=H.data;var S=H.flowClassName;var w=H.flowStateEntityKey;var A=H.selectionStepStyle;return _.q("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.q("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.q("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.q(_.uZ,{text:function(){return C().title}}),_.q(_.V4,{data:function(){return C().titleBadge}},{badgeViewModel:function(J){return _.q(_.PG,{data:J.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.q(_.T,{cond:function(){return C().subtitle},
then:function(){return _.q("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.q(_.uZ,{text:function(){return C().subtitle}}))}}),_.q(_.T,{cond:function(){return C().featureListData},
then:function(J){return _.q("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.q(_.Vq,{each:J},function(c){var Y;return _.q("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.q(_.lm,{icon:(Y=c.icon)==null?void 0:Y.iconType,active:function(){return c.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(c.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconSmall";default:return"ytOptionSectionRendererOptionSectionFeatureItemIconDefault"}}}),_.q("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.q(_.uZ,{text:c.text,
className:function(){return c.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.q(_.T,{cond:function(){return C().secondaryTitle},
then:function(){return _.q("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.q(_.uZ,{text:function(){return C().secondaryTitle}}))}}),_.q(_.Vq,{each:function(){return C().sectionDisclaimers||[]}},function(J){return _.q("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.q(_.uZ,{text:J}))})),_.q(_.V4,{data:function(){return C().optionItems}},{optionItemRenderer:function(J){return _.q("div",{class:"ytOptionSectionRendererOptionItem"},_.q(IV_,{data:J.data,
className:S,flowStateEntityKey:w,selectionStepStyle:A}))}}),_.q(_.T,{cond:function(){return C().offerText},
then:function(){return _.q("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.q(_.uZ,{text:function(){return C().offerText}}))}}))},"ig");
aVi.idomCompat=!0;var x_O=_.n(function(H){var C=H.data;var S=H.flowClassName;var w=H.flowStateEntityKey;H=H.isDesktop;var A=function(){var m;return(m=C().flowStateEntityKey)!=null?m:w==null?void 0:w()},J=function(){return(A==null?void 0:A())||""},c=function(){return C().style},Y=_.fn(_.iz,J);
_.$T(function(){var m=C(),W=J(),y=Y();!_.e(y,R3K)&&m.noPreselect&&W!==""&&m.defaultButtonOverride&&IQq("default",W,m.defaultButtonOverride,y)});
var M={};return _.q("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.eJ("ytm-option-selection-flow-step-renderer",(M["ytm-option-selection-flow-step-renderer--desktop"]=H,M["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return C().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},M))},_.q("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"},
_.q("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.q(_.uZ,{text:function(){return C().header}})),_.q("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.q(_.uZ,{text:function(){return C().subtitle}}))),_.q(_.V4,{data:function(){return C().optionItems||[]}},{optionItemRenderer:function(m){return _.q("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.q(IV_,{data:m.data,
className:S,flowStateEntityKey:A,selectionStepStyle:c}))},
optionSectionRenderer:function(m){return _.q("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.q(aVi,{data:m.data,flowClassName:S,flowStateEntityKey:A,selectionStepStyle:c}))}}))},"jg");
x_O.idomCompat=!0;_.qs(x_O,"yt-option-selection-flow-step-renderer",{props:{data:_.GH,flowClassName:_.GH,flowStateEntityKey:_.GH,isDesktop:_.GH}});_.Xt=_.n(function(H){var C=_.FH(H,{type:1,disablePadding:!1,disablePrimaryButton:!1}),S=C.data,w=C.type;H=C.disablePadding;var A=C.disablePrimaryButton,J=C.onClickPrimaryButton,c=function(){return S().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},Y=function(){return{disabled:A(),
state:A()?"disabled":"active"}},M=function(){return S().leadingLabel||S().trailingLabel};
C={};return _.q("yt-panel-footer-view-model",{class:_.eJ("yt-panel-footer-view-model",(C["yt-panel-footer-view-model--hide-divider"]=function(){return S().shouldHideDivider},C["yt-panel-footer-view-model--disable-padding"]=H,C))},_.q(_.T,{cond:M,
then:function(){var m={},W={};return _.q("div",{class:_.eJ("yt-panel-footer-view-model__text-row",(m["yt-panel-footer-view-model--row-bottom-padding"]=function(){var y=S();return!(!y.leadingLabel&&!y.trailingLabel||!y.primaryButton&&!y.secondaryButton)},m))},_.q(_.uZ,{text:function(){return S().leadingLabel},
className:_.eJ((W["yt-panel-footer-view-model--text-padding"]=M,W))}),_.q(_.uZ,{text:function(){return S().trailingLabel}}))}}),_.q(_.T,{cond:c,
then:function(){var m={};return _.q("div",{class:"yt-panel-footer-view-model__button-stack"},_.q("div",{class:_.eJ("yt-panel-footer-view-model__primary-button",(m["yt-panel-footer-view-model__button-stack--top-button"]=function(){return S().secondaryButton},m))},_.q(_.V4,{data:function(){return S().primaryButton}},{buttonViewModel:function(W){return _.q(_.rc,{data:W.data,
buttonOverrides:Y,onClick:J})}})),_.q(_.V4,{data:function(){return S().secondaryButton}},{buttonViewModel:_.rc}))}}),_.q(_.T,{cond:function(){return!c()},
then:function(){var m={},W={},y={};return _.q("div",{class:_.eJ("yt-panel-footer-view-model__button-row",(m["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===w()},m))},_.q("div",{class:_.eJ("yt-panel-footer-view-model__button-row--left-button",(W["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===w()},W["yt-panel-footer-view-model__button-row--hidden"]=function(){return!S().secondaryButton||0===w()},W["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===w()},W))},_.q(_.V4,{data:function(){return S().secondaryButton}},{buttonViewModel:_.rc})),_.q("div",{class:_.eJ("yt-panel-footer-view-model__primary-button",(y["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===w()||1===w()},y["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===w()},y))},_.q(_.V4,{data:function(){return S().primaryButton}},{buttonViewModel:function(N){return _.q(_.rc,{data:N.data,
buttonOverrides:Y,onClick:J})}})))}}))},"kg");
_.Xt.idomCompat=!0;_.HDR=_.n(function(H){H=_.FH(H,{disablePadding:!1});var C=H.data,S=H.disablePadding;H=_.SK0(function(){return C().formId});
var w=H.submitForm,A=H.isValid,J=H.isSubmitting;return _.q("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.q(_.V4,{data:function(){return C().panelFooter}},{panelFooterViewModel:function(c){return _.q(_.Xt,{data:c.data,
onClickPrimaryButton:function(){w()},
disablePrimaryButton:function(){return!A()||J()},
disablePadding:S})}}))},"lg");_.qs(_.HDR,"yt-form-footer-view-model",{props:{data:_.GH,disablePadding:_.GH}});var iDj=_.n(function(H){var C=_.E("enable_user_rating_web");return _.q("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.q("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.q(_.T,{cond:function(){var S;return(S=H.data())==null?void 0:S.image},
then:function(S){return _.q(_.Jg,{data:S,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.q("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.q(_.uZ,{text:function(){var S;
return(S=H.data())==null?void 0:S.title}})),_.q("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.q(_.uZ,{text:function(){var S;
return(S=H.data())==null?void 0:S.subtitle}})),_.q(_.T,{cond:function(){return!C},
then:function(){return _.q(_.V4,{data:function(){var S;return(S=H.data())==null?void 0:S.viewTipsButton}},{buttonViewModel:function(S){return _.q(_.rc,{data:S.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"mg");_.qs(iDj,"yt-contributor-zero-state-view-model",{props:{data:_.GH}});var CsO=_.n(function(H){var C=function(){var S;return(S=H.data())==null?void 0:S.image};
return _.q("yt-featured-content-item-view-model",{class:_.eJ("ytFeaturedContentItemViewModelHost")},_.q("div",{class:_.eJ(function(){return C()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.q("div",{class:function(){return C()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.q(_.T,{cond:C,
then:function(){return _.q("div",{class:"ytFeaturedContentItemViewModelImage"},_.q(_.V4,{data:function(){return H.data().image}},{themedImageViewModel:function(S){return _.q(kqi,{data:S.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.q(_.T,{cond:function(){var S;
return!C()&&((S=H.data())==null?void 0:S.iconName)},
then:function(){return _.q("div",{class:"ytFeaturedContentItemViewModelIcon"},_.q(_.lm,{icon:function(){return H.data().iconName}}))}}),_.q("div",{class:"ytFeaturedContentItemViewModelContent"},_.q(_.T,{cond:function(){var S;
return(S=H.data())==null?void 0:S.title},
then:function(){return _.q("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.q(_.uZ,{text:function(){return H.data().title}}))}}),_.q(_.T,{cond:function(){var S;
return(S=H.data())==null?void 0:S.body},
then:function(){return _.q("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.q(_.uZ,{text:function(){return H.data().body}}))}})))))},"ng");var Skr=_.n(function(H){var C=function(){var A;return aQj((A=H.data())==null?void 0:A.titleFontSize)},S=function(){var A;
return xE_((A=H.data())==null?void 0:A.descriptionFontSize)},w=function(){var A;
return((A=H.data())==null?void 0:A.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.q("yt-landing-page-view-model",{class:_.eJ("ytLandingPageViewModelHost",H.className)},_.q("div",{class:"ytLandingPageViewModelHeader"},_.q(_.T,{cond:function(){var A;return(A=H.data())==null?void 0:A.bannerImage},
then:function(A){return _.q("div",{class:"ytLandingPageViewModelHeaderImage"},_.q(_.V4,{data:function(){return A()}},{imageBannerViewModel:function(J){return _.q(_.md,{data:J.data,
isPositionRelative:!0})}}))}}),_.q(_.T,{cond:function(){var A;
return(A=H.data())==null?void 0:A.bannerAnimation},
then:function(A){return _.q(_.UA,{data:function(){var J=A();if(J==null?0:J.url){var c;J={path:(c=J==null?void 0:J.url)!=null?c:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(J==null?0:J.payload){var Y;J={animationData:JSON.parse((Y=J==null?void 0:J.payload)!=null?Y:""),autoplay:!0,loop:!0,renderer:"svg"}}else J=void 0;return{animationConfig:J}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.q("div",{class:"ytLandingPageViewModelHeaderTitle"},_.q(_.T,{cond:function(){var A;
return(A=H.data())==null?void 0:A.title},
then:function(A){return _.q("div",{class:_.eJ("ytLandingPageViewModelHeaderTitleContent",C)},_.q(_.uZ,{text:function(){return A()}}))}}),_.q(_.T,{cond:function(){var A;
return(A=H.data())==null?void 0:A.description},
then:function(A){var J={};return _.q(_.uZ,{className:_.eJ("ytLandingPageViewModelHeaderTitleDescription",S,(J.ytLandingPageViewModelHeaderTitleDescriptionMargin=w,J)),text:function(){return A()}})}}))),_.q(_.T,{cond:function(){var A,J;
return(A=H.data())==null?void 0:(J=A.featuredContentList)==null?void 0:J.length},
then:function(){return _.q("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.q(_.V4,{data:function(){return H.data().featuredContentList}},{featuredContentItemViewModel:function(A){return _.q(CsO,{data:A.data})}}))}}),_.q(_.T,{cond:function(){var A,J;
return(A=H.data())==null?void 0:(J=A.expandableContentList)==null?void 0:J.length},
then:function(){return _.q("div",{class:"ytLandingPageViewModelFaqSection"},_.q(_.V4,{data:function(){return H.data().expandableContentList}},{faqEntryViewModel:function(A){return _.q("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.q(_.vxY,{data:A.data}))}}))}}),_.q("div",{class:"ytLandingPageViewModelFooter"},_.q(_.T,{cond:function(){var A;
return(A=H.data())==null?void 0:A.legalCopy},
then:function(A){return _.q("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.q(_.uZ,{text:function(){return A()}}))}}),_.q(_.T,{cond:function(){var A;
return(A=H.data())==null?void 0:A.actions},
then:function(A){return _.q("div",null,_.q(_.V4,{data:function(){return A()}},{flexibleActionsViewModel:function(J){return _.q(_.Ym,{data:J.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"og");_.qs(_.n(function(H){return _.q("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.q("div",{class:"ytLpSectionGroupViewModelContainer"},_.q(_.V4,{data:function(){return H.data().sections}},{landingPageViewModel:function(C){return _.q(Skr,{data:C.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"pg"),"yt-lp-section-group-view-model",{props:{data:_.GH}});var seq=_.n(function(H){var C=H.data;var S=H.selectedKey;var w=H.onSelected;var A=H.groupName;var J=function(){return C().text},c=function(){return C().attributedText},Y=function(){return C().subtext},M=function(){return C().attributedSubtext},m=_.q("div",{class:"ytRadioButtonItemViewModelLabel"},_.q(_.T,{cond:J,
then:function(){return _.q("div",null,J)}}),_.q(_.T,{cond:c,
then:function(){return _.q(_.uZ,{text:c})}}),_.q(_.T,{cond:Y,
then:function(){return _.q("div",{class:"ytRadioButtonItemViewModelSubText"},Y)}}),_.q(_.T,{cond:M,
then:function(){return _.q("div",{class:"ytRadioButtonItemViewModelSubText"},_.q(_.uZ,{text:M}))}})),W=function(){if(c()){var N;
return(N=c())==null?void 0:N.content}return J()},y=function(){if(M()){var N;
return(N=M())==null?void 0:N.content}return Y()};
H={};return _.q("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.q(_.zP,{name:A,checked:function(){return!(S==null||!S()||C().key!==(S==null?void 0:S()))},
onChange:function(N){w==null||w(N.target,C(),A==null?void 0:A())},
labelRenderable:function(){return m},
ariaLabel:function(){return y()?W()+", "+y():W()},
className:_.eJ((H.ytRadioButtonItemViewModelSubTitle=function(){return!!C().subtext},H))}))},"qg");_.jep=_.n(function(H){var C=H.data;var S=H.onSelected;var w=H.selectedKey;var A=H.groupName;var J=function(){return(A==null?void 0:A())||C().key};
return _.q("yt-radio-button-group-view-model",{class:"ytRadioButtonGroupViewModelHost"},_.q("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.q(_.V4,{data:function(){return C().radioButtons}},{radioButtonItemViewModel:function(c){return _.q(seq,{data:c.data,
onSelected:S,selectedKey:w,groupName:J})}})))},"rg");var wMj=_.n(function(H){_.$T(function(){if(H.controlledMode()&&H.data().defaultSelected)_.nC(Error("Vj"));else{var J;!H.controlledMode()&&((J=H.selected)==null?0:J.call(H))&&_.nC(Error("Wj"))}});
var C=_.Z(_.fu(function(){if(!H.controlledMode())return H.data().defaultSelected})),S=C.next().value,w=C.next().value,A=function(){if(!H.controlledMode())return S();
var J;return(J=H.selected)==null?void 0:J.call(H)};
return _.q("yt-checkbox-item-view-model",{class:_.eJ("ytCheckboxItemViewModelHost",H.className)},_.q(_.MA,{data:function(){var J=H.data(),c=A();return{title:J.text,subtitle:J.subtext,superlabel:J.superlabel,isSelected:!!c,isDisabled:J.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(J){J.preventDefault();!H.controlledMode()&&w(!S());var c,Y;(Y=H.onTap)==null||Y.call(H,!!A(),H.data(),(c=H.groupName)==null?void 0:c.call(H))},
isCompact:H.isCompact}))},"sg");var AJ9=_.n(function(H){var C=H.data;var S=H.controlledMode;var w=H.selectedKeys;var A=H.onItemTap;var J=H.groupName;var c=function(){return(J==null?void 0:J())||C().key};
_.$T(function(){S()&&C().defaultSelectedKeys?_.nC(Error("Xj")):!S()&&(w==null?0:w())&&_.nC(Error("Yj"))});
H=_.Z(_.fu(function(){if(!S())return C().defaultSelectedKeys}));
var Y=H.next().value,M=H.next().value,m=function(W,y,N){W=[];!S()&&y.key&&(W=HVp(y.key,Y()||[]),M(W));A==null||A(y,W,N)};
return _.q("yt-checkbox-group-view-model",{class:_.eJ("ytCheckboxGroupViewModelHost")},_.q("fieldset",{class:_.eJ("ytCheckboxGroupViewModelFieldset")},_.q(_.V4,{data:function(){return C().checkboxes}},{checkboxItemViewModel:function(W){var y=W.data;
return _.q(wMj,{data:y,controlledMode:!0,selected:function(){var N=S()?(w==null?void 0:w())||[]:Y()||[],b=y().key;return b?N.includes(b):!1},
onTap:m,groupName:c})}})))},"tg");var QZ=_.n(function(H){var C=_.fn(iVt,_.Jx(function(){var Y;return(Y=H.data())==null?void 0:Y.noteFeedEntityKey},"")),S=_.fn(mE_,_.Jx(function(){var Y;
return(Y=H.data())==null?void 0:Y.userRatingEntityKey},"")),w=_.E("enable_user_rating_web"),A=function(){var Y,M,m;
return((Y=C())==null?0:Y.contributorNote)?(M=C())==null?void 0:M.contributorNote:(m=H.data())==null?void 0:m.existingNote},J=function(){var Y,M;
return!!S()&&!!CCi((Y=S())==null?void 0:Y.helpfulnessValue,(M=H.data())==null?void 0:M.noteData)};
if(w){var c={};return _.q("yt-note-view-model",{class:_.eJ("ytNoteViewModelHostUserRating",(c.ytNoteViewModelHostUserRatingPublishedNote=function(){var Y,M,m,W;return((Y=H.data())==null?void 0:(M=Y.noteData)==null?void 0:M.isPublished)&&!((m=H.data())==null?0:(W=m.noteData)==null?0:W.isUserRatingForm)},c))},_.q("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.q("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.q(_.T,{cond:function(){var Y,M;
return(Y=H.data())==null?void 0:(M=Y.noteData)==null?void 0:M.isPinned},
then:function(){return _.q(_.lm,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.q(_.T,{cond:function(){var Y,M;return(Y=H.data())==null?void 0:(M=Y.noteData)==null?void 0:M.isPublished},
then:function(){return _.q(_.lm,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.q(_.V4,{data:function(){var Y;
return(Y=H.data())==null?void 0:Y.metadata}},{contentMetadataViewModel:_.pt}),_.q("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var Y,M;
return(M=_.e((Y=H.data())==null?void 0:Y.metadata,_.xUb))==null?void 0:M.delimiter}),_.q(_.uZ,{text:function(){var Y;
return(Y=A())==null?void 0:Y.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.q(_.T,{cond:function(){var Y,M;return!((Y=H.data())==null?0:(M=Y.noteData)==null?0:M.isUserRatingForm)},
then:function(){return _.q(_.V4,{data:function(){var Y,M,m,W,y,N,b,u=!!((Y=H.data())==null?0:(M=Y.noteData)==null?0:M.isPinned);Y=J();M=(m=H.data())==null?void 0:m.noteData;m=(W=C())==null?void 0:(y=W.contributorNote)==null?void 0:y.deleteAction;W=(N=H.data())==null?void 0:N.overflowButtonNoteWithRatingOnTapOverride;N=(b=H.data())==null?void 0:b.overflowButton;return u?Scr(M,m):Y?{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",
buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",onTap:W}}:N}},{buttonViewModel:function(Y){return _.q(_.rc,{data:Y.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.q("div",{class:"ytNoteViewModelNoteContent"},_.q(_.uZ,{text:function(){var Y;
return(Y=A())==null?void 0:Y.text}})),_.q(_.T,{cond:function(){var Y,M,m,W;
return!((Y=H.data())==null?0:(M=Y.noteData)==null?0:M.isPinned)&&!((m=H.data())==null?0:(W=m.noteData)==null?0:W.isUserRatingForm)},
then:function(){return _.q(_.T,{cond:J,then:function(){return _.q("div",{class:"ytNoteViewModelUserRatingContainer"},_.q(_.uZ,{text:function(){var Y,M;return CCi((Y=S())==null?void 0:Y.helpfulnessValue,(M=H.data())==null?void 0:M.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.q(_.V4,{data:function(){var Y;return(Y=H.data())==null?void 0:Y.userRatingButton}},{buttonViewModel:function(Y){return _.q(_.rc,{data:Y.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.q(_.T,{cond:function(){var Y,M,m,W;
return!((Y=H.data())==null?0:(M=Y.noteData)==null?0:M.ignoreDivider)&&!((m=H.data())==null?0:(W=m.noteData)==null?0:W.isUserRatingForm)},
then:function(){return _.q("div",{class:"ytNoteViewModelDivider"},_.q(_.V4,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(Y){return _.q(_.K8n,{data:Y.data})}}))}}))}return _.q("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.q("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.q("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.q(_.T,{cond:function(){var Y,M;return(Y=H.data())==null?void 0:(M=Y.noteData)==null?void 0:M.isPinned},
then:function(){return _.q(_.lm,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.q(_.T,{cond:function(){var Y,M;return(Y=H.data())==null?void 0:(M=Y.noteData)==null?void 0:M.isPublished},
then:function(){return _.q(_.lm,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.q(_.T,{cond:function(){return w},
then:function(){return _.q(_.V4,{data:function(){var Y;return(Y=H.data())==null?void 0:Y.metadata}},{contentMetadataViewModel:function(Y){return _.q(_.pt,{data:Y.data})}})}}),_.q(_.uZ,{text:function(){var Y,M;
return(Y=H.data())==null?void 0:(M=Y.noteData)==null?void 0:M.headerText}}),_.q("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.q(_.uZ,{text:function(){var Y,M;
return(Y=H.data())==null?void 0:(M=Y.noteData)==null?void 0:M.delimiter}})),_.q(_.uZ,{text:function(){var Y,M;
return(Y=C())==null?void 0:(M=Y.contributorNote)==null?void 0:M.publishedTimeText}})),_.q(_.V4,{data:function(){var Y,M,m;
return Scr((Y=H.data())==null?void 0:Y.noteData,(M=C())==null?void 0:(m=M.contributorNote)==null?void 0:m.deleteAction)}},{buttonViewModel:function(Y){return _.q(_.rc,{data:Y.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.q("div",{class:"ytNoteViewModelNoteContent"},_.q(_.uZ,{text:function(){var Y,M;
return(Y=C())==null?void 0:(M=Y.contributorNote)==null?void 0:M.text}})))},"ug");
QZ.idomCompat=!0;_.qs(_.n(function(H){var C=_.Jx(function(){var k;return(k=H.data())==null?void 0:k.flowStateEntityKey},""),S=_.fn(_.iz,C),w=_.fn(iVt,_.Jx(function(){var k;
return(k=H.data())==null?void 0:k.noteFeedEntityKey},"")),A=_.Z(_.fu(function(){var k;
return(k=_.e(H.data().helpfulnessValue,_.CI))==null?void 0:k.defaultSelectedKey})),J=A.next().value,c=A.next().value;
A=_.Z(_.fu(function(){var k,R,L;return(L=_.e((k=_.e(H.data().helpfulnessValue,_.CI))==null?void 0:(R=k.radioButtons)==null?void 0:R.find(function(t){var g;return((g=_.e(t,u23))==null?void 0:g.key)===J()}),u23))==null?void 0:L.value}));
var Y=A.next().value,M=A.next().value,m=function(k,R){c(R.key);M(R.value)},W=function(){var k,R;
return((k=Y())==null?void 0:k.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((R=Y())==null?void 0:R.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},y=function(){var k,R;
return((k=Y())==null?void 0:k.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((R=Y())==null?void 0:R.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"};
A=_.Z(_.fu(function(){var k;return(k=_.e(H.data().helpfulReasons,ebi))==null?void 0:k.defaultSelectedKeys}));
var N=A.next().value,b=A.next().value,u=function(k){sMt(k.key,N,b)};
A=_.Z(_.fu(function(){var k;return(k=_.e(H.data().notHelpfulReasons,ebi))==null?void 0:k.defaultSelectedKeys}));
var O=A.next().value,d=A.next().value,p=function(k){sMt(k.key,O,d)};
_.$T(function(){var k,R,L;WCq((k=H.data())==null?void 0:(R=k.userRatingFormSchema)==null?void 0:R.id,{isValid:function(){return!!J()},
formData:function(){var t=Y(),g=w9O(N(),_.e(H.data().helpfulReasons,ebi)),ii=w9O(O(),_.e(H.data().notHelpfulReasons,ebi));t={helpfulnessValue:t==null?void 0:t.noteHelpfulnessValue};if(g){t.helpfulReasons=[];g=_.Z(g);for(var FW=g.next();!FW.done;FW=g.next()){FW=FW.value;var cZ=void 0;if((cZ=FW)==null?0:cZ.noteHelpfulReason)cZ=void 0,t.helpfulReasons.push((cZ=FW)==null?void 0:cZ.noteHelpfulReason)}}if(ii)for(t.notHelpfulReasons=[],ii=_.Z(ii),g=ii.next();!g.done;g=ii.next())if(g=g.value,FW=void 0,(FW=
g)==null?0:FW.noteNotHelpfulReason)FW=void 0,t.notHelpfulReasons.push((FW=g)==null?void 0:FW.noteNotHelpfulReason);return{userRatingFormData:t}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(L=_.e(S(),Ysi))==null?void 0:L.submitFormParams},onSubmitResult:function(){var t,g=(t=_.e(S(),Ysi))==null?void 0:t.userRatingEntityKey,ii;t={key:g,helpfulnessValue:(ii=Y())==null?void 0:ii.noteHelpfulnessValue};g&&_.Ax(_.O5("contextNoteUserRatingEntityPayload",g,t));var FW;g=(FW=H.data())==null?void 0:FW.viewNoteFlowStepId;var cZ;if((cZ=w())==null||!cZ.contributorNote){var eZ;g=(eZ=H.data())==null?void 0:eZ.zeroStateFlowStepId}(FW=
Object.assign({},S()))&&g&&(FW.currentStepId=g,FW.stepIdStack=[g],_.Ax(_.O5("flowStateEntity",C(),FW)));FW=_.JA().resolve(_.ZQ);var ND;(cZ=(ND=H.data())==null?void 0:ND.ratingSubmittedSnackbarCommand)&&FW&&FW.resolveCommand(cZ)},
disableDuringSubmission:!0})});
return _.q("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.q(_.V4,{data:function(){var k=_.e(S(),Ysi);if(k){var R;var L={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:k==null?void 0:(R=k.note)==null?void 0:R.headerText}]}],delimiter:"\u2022"}},existingNote:k.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else L=void 0;return L}},{noteViewModel:function(k){return _.q("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.q(QZ,{data:k.data}))}}),_.q(_.V4,{data:function(){var k;
return(k=H.data())==null?void 0:k.helpfulnessValue}},{radioButtonGroupViewModel:function(k){return _.q("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.q(_.jep,{data:k.data,
onSelected:m,selectedKey:J}))}}),_.q(_.T,{cond:W,
then:function(){return _.q("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.q("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.q(_.uZ,{text:function(){var k;return(k=H.data())==null?void 0:k.helpfulReasonQuestion}})),_.q(_.V4,{data:function(){var k;
return(k=H.data())==null?void 0:k.helpfulReasons}},{checkboxGroupViewModel:function(k){return _.q(AJ9,{data:k.data,
onItemTap:u,selectedKeys:N,controlledMode:!0})}}))}}),_.q(_.T,{cond:y,
then:function(){return _.q("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.q("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.q(_.uZ,{text:function(){var k;return(k=H.data())==null?void 0:k.notHelpfulReasonQuestion}})),_.q(_.V4,{data:function(){var k;
return(k=H.data())==null?void 0:k.notHelpfulReasons}},{checkboxGroupViewModel:function(k){return _.q(AJ9,{data:k.data,
onItemTap:p,selectedKeys:O,controlledMode:!0})}}))}}),_.q(_.T,{cond:function(){return!W()&&!y()},
then:function(){return _.q(_.V4,{data:function(){var k;return(k=H.data())==null?void 0:k.helpfulNoteFeatures}},{alertBannerViewModel:function(k){return _.q("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.q(_.amU,{data:k.data}))}})}}))},"vg"),"yt-note-user-rating-view-model",{props:{data:_.GH}});_.qs(QZ,"yt-note-view-model",{props:{data:_.GH}});_.qs(_.n(function(H){var C=_.fn(iVt,_.Jx(function(){var S;return(S=H.data())==null?void 0:S.noteFeedEntityKey},""));
return _.q("yt-notes-wrapper-view-model",{class:_.eJ("ytNotesWrapperViewModelHost")},_.q(_.T,{cond:function(){var S,w,A;return!((S=H.data())==null||!S.existingNotes)||!((w=H.data())==null||!w.currentNote)&&!((A=C())==null||!A.contributorNote)},
then:function(){return _.q(_.F9,null,_.q(_.V4,{data:function(){var S,w,A,J;return((w=_.e((S=H.data())==null?void 0:S.currentNote,zbi))==null?0:(A=w.noteData)==null?0:A.isPublished)?(J=H.data())==null?void 0:J.currentNote:void 0}},{noteViewModel:function(S){return _.q(QZ,{data:S.data})}}),_.q(_.V4,{data:function(){var S;
return(S=H.data())==null?void 0:S.existingNotes}},{noteViewModel:function(S){var w=S.data;
return _.q(_.T,{cond:function(){var A,J;return(A=w())==null?void 0:(J=A.noteData)==null?void 0:J.isPublished},
then:function(){return _.q(QZ,{data:w})}})}}),_.q(_.V4,{data:function(){var S,w,A,J;
return((w=_.e((S=H.data())==null?void 0:S.currentNote,zbi))==null?0:(A=w.noteData)==null?0:A.isPublished)?void 0:(J=H.data())==null?void 0:J.currentNote}},{noteViewModel:function(S){return _.q(QZ,{data:S.data})}}),_.q(_.V4,{data:function(){var S;
return(S=H.data())==null?void 0:S.existingNotes}},{noteViewModel:function(S){var w=S.data;
return _.q(_.T,{cond:function(){var A,J;return!((A=w())==null?0:(J=A.noteData)==null?0:J.isPublished)},
then:function(){return _.q(QZ,{data:w})}})}}))},
else:function(){return _.q(_.V4,{data:function(){var S;return(S=H.data())==null?void 0:S.zeroStateData}},{contributorZeroStateViewModel:iDj})}}))},"wg"),"yt-notes-wrapper-view-model",{props:{data:_.GH}});var dl=_.n(function(H){var C=_.FH(H,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),S=C.label,w=C.text,A=C.placeholder,J=C.hint;H=C.rows;var c=C.overflowStyle,Y=C.outline,M=C.disabled,m=C.disableNewLines,W=C.characterLimit,y=C.validation,N=C.onInput,b=_.sW("textarea");C=_.Z(_.fu(function(){return w()}));
var u=C.next().value,O=C.next().value;C=_.Z(_.mB(!1,void 0,"u9PDq"));var d=C.next().value,p=C.next().value,k=function(){p(!0)},R=function(){p(!1)};
_.$T(function(){var pU=b.value,O$=c(),R0=u();O$==="expand-vertically"&&R0&&AOi(pU);b.value.addEventListener("focusin",k);b.value.addEventListener("focusout",R)});
_.PN(function(){b.value.removeEventListener("focusin",k);b.value.removeEventListener("focusout",R)});
var L=function(){var pU;return(pU=y())==null?void 0:pU.validate(u())},t=function(){return W()&&!L()&&u().length>W().maxChars},g=function(){return!!L()||t()};
C=_.um(function(pU){if(!pU.currentTarget)return!1;pU=pU.currentTarget;O(pU.value);c()==="expand-vertically"&&AOi(pU);N==null||N(pU.value);return!0});
var ii=_.um(function(pU){m()&&pU.key==="Enter"&&pU.preventDefault();return!1}),FW=_.um(function(){b.value.focus()}),cZ=function(){return A()||S()},eZ={},ND={},bi={};
return _.q("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.q("div",{class:_.eJ("ytStandardsTextareaShapeTextareaContainer",(eZ.ytStandardsTextareaShapeTextareaContainerOutline=Y,eZ.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=M,eZ.ytStandardsTextareaShapeTextareaContainerOutlineError=g,eZ)),"on:click":FW},_.q("label",{class:_.eJ("ytStandardsTextareaShapeLabel",(ND.ytStandardsTextareaShapeLabelFocused=d,ND.ytStandardsTextareaShapeLabelDisabled=M,ND.ytStandardsTextareaShapeLabelError=
function(){return g()&&!M()},ND.ytStandardsTextareaShapeLabelHidden=function(){return!d()&&!u()&&!!cZ()},ND))},S),_.q("div",{class:_.eJ("ytStandardsTextareaShapePlaceholder",(bi.ytStandardsTextareaShapePlaceholderVisible=function(){return!d()&&!u()},bi)),
"aria-hidden":"true"},cZ),_.q("textarea",{el:b,class:"ytStandardsTextareaShapeTextarea",rows:H,disabled:M,placeholder:cZ,"on:input":C,"on:keydown":ii},u)),_.q(_.T,{cond:function(){return J()&&!g()},
then:function(){var pU={};return _.q("div",{class:_.eJ("ytStandardsTextareaShapeHint",(pU.ytStandardsTextareaShapeHintDisabled=M,pU))},_.q("div",{class:"ytStandardsTextareaShapeHintHintMessage"},J))}}),_.q(_.T,{cond:L,
then:function(){return _.q(JJq,{disabled:M},_.q("div",{class:"ytStandardsTextareaShapeErrorMessage"},L))}}),_.q(_.T,{cond:W,
then:function(pU){return _.q(_.T,{cond:t,then:function(){return _.q(JJq,{disabled:M},_.q("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return pU().errorMessage}),_.q("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return u().length+"/"+pU().maxChars}))}})}}))},"xg");
dl.idomCompat={callbacks:{onInput:!0}};var JJq=_.n(function(H){var C={};return _.q("div",{class:_.eJ("ytStandardsTextareaShapeError",(C.ytStandardsTextareaShapeErrorDisabled=H.disabled,C)),role:"alert"},_.q(_.lm,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),H.children)},"yg");_.FP3=_.n(function(H){var C=H.data;return _.q("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.q(dl,{text:H.text,label:function(){var S;return(S=C().contentProperties)==null?void 0:S.labelText},
placeholder:function(){var S;return(S=C().contentProperties)==null?void 0:S.placeholderText},
hint:function(){var S;return(S=C().contentProperties)==null?void 0:S.hintText},
outline:function(){var S;return!((S=C().displayProperties)==null?0:S.hideBorder)},
overflowStyle:function(){var S;return((S=C().displayProperties)==null?0:S.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:H.disabled,disableNewLines:function(){var S;return(S=C().displayProperties)==null?void 0:S.disableNewLines},
onInput:H.onInput,characterLimit:H.characterLimit,validation:H.validation,rows:function(){var S;return(S=C().displayProperties)==null?void 0:S.rows}}))},"zg");_.ZDi=_.n(function(H){var C=H.data;return _.q("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.q(dl,{text:H.text,label:function(){var S;return(S=C().contentProperties)==null?void 0:S.labelText},
placeholder:function(){var S;return(S=C().contentProperties)==null?void 0:S.placeholderText},
hint:function(){var S;return(S=C().contentProperties)==null?void 0:S.hintText},
outline:function(){var S;return!((S=C().displayProperties)==null?0:S.hideBorder)},
overflowStyle:function(){var S;return((S=C().displayProperties)==null?0:S.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var S;return(S=C().displayProperties)==null?void 0:S.disableNewLines},
onInput:H.onInput,characterLimit:H.characterLimit,validation:H.validation,rows:function(){var S;return(S=C().displayProperties)==null?void 0:S.rows}}))},"Ag");var cJ3=_.n(function(H){var C=_.Z(_.fu(function(){var cZ,eZ;return((cZ=H.data().structuredContextNoteFormSchema)==null?0:(eZ=cZ.initialValues)==null?0:eZ.noteBody)?H.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),S=C.next().value,w=C.next().value;
C=_.Z(_.fu(function(){H.data();return!1}));
var A=C.next().value,J=C.next().value;C=_.Z(_.fu(function(){H.data();return!1}));
var c=C.next().value,Y=C.next().value;C=_.Z(_.fu(function(){var cZ,eZ;return((cZ=H.data().structuredContextNoteFormSchema)==null?0:(eZ=cZ.initialValues)==null?0:eZ.timestamp)?H.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var M=C.next().value,m=C.next().value;C=_.Z(_.fu(function(){H.data();return!1}));
var W=C.next().value,y=C.next().value;C=_.Z(_.fu(function(){var cZ,eZ;return((cZ=H.data().structuredContextNoteFormSchema)==null?0:(eZ=cZ.initialValues)==null?0:eZ.sources)?[H.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var N=C.next().value,b=C.next().value;C=_.Z(_.fu(function(){H.data();return!1}));
var u=C.next().value,O=C.next().value;C=_.Z(_.fu(function(){return!1}));
var d=C.next().value,p=C.next().value;_.$T(function(){var cZ;_.yAq((cZ=H.data().structuredContextNoteFormSchema)==null?void 0:cZ.id,{isSubmitting:d,onSubmit:function(){p(!0);var eZ=TTi(S(),M(),N(),H.data()),ND=_.JA().resolve(_.ZQ);eZ&&ND&&ND.resolveCommand(eZ,{commandController:{onSuccess:function(){p(!1)}}})},
isValid:function(){return A()&&!c()&&!W()&&!u()}})});
var k=function(cZ){if(cZ!==void 0&&(w(cZ),!A()&&cZ.length>0&&J(!0),A())){var eZ=ZV9(H.data());if(eZ){var ND=eZ.minLength;eZ=eZ.maxLength;ND&&cZ.length<ND?Y(!0):eZ&&cZ.length>eZ?Y(!0):Y(!1)}}},R=function(cZ){if(cZ!==void 0){m(cZ);
if(cZ.length>0){var eZ,ND,bi,pU,O$=Ycq((eZ=H.data())==null?void 0:(ND=eZ.structuredContextNoteFormSchema)==null?void 0:(bi=ND.fieldSchemas)==null?void 0:(pU=bi.timestamp)==null?void 0:pU.validationSchema);if(O$&&(eZ=O$.regex)&&!(new RegExp(eZ)).test(cZ)){y(!0);return}}y(!1)}},L=function(cZ){if(cZ!==void 0){var eZ=cZ.split(/[ \n]/).map(function(ND){return ND.trim()});
b(eZ);if(cZ.length>0)for(cZ=_.Z(eZ),eZ=cZ.next();!eZ.done;eZ=cZ.next())if(!qco(eZ.value)){O(!0);return}O(!1)}},t=function(){return{validate:function(cZ){if(A()){var eZ=ZV9(H.data());
if(eZ){var ND=eZ.minLength;eZ=eZ.translations;if(ND&&cZ.length<ND)return eZ==null?void 0:eZ.minLengthErrorMessage}}}}},g=function(){var cZ=ZV9(H.data()),eZ=cZ==null?void 0:cZ.maxLength,ND;
cZ=cZ==null?void 0:(ND=cZ.translations)==null?void 0:ND.maxLengthErrorMessage;if(eZ&&cZ)return{maxChars:eZ,errorMessage:cZ}},ii=function(){return{validate:function(cZ){if(cZ){var eZ,ND,bi,pU,O$=Ycq((eZ=H.data())==null?void 0:(ND=eZ.structuredContextNoteFormSchema)==null?void 0:(bi=ND.fieldSchemas)==null?void 0:(pU=bi.timestamp)==null?void 0:pU.validationSchema);
if(O$&&(eZ=O$.regex,O$=O$.translations,eZ&&!(new RegExp(eZ)).test(cZ)))return O$==null?void 0:O$.regexErrorMessage}}}},FW=function(){return{validate:function(cZ){if(cZ){var eZ,ND,bi,pU,O$=Mki((eZ=H.data())==null?void 0:(ND=eZ.structuredContextNoteFormSchema)==null?void 0:(bi=ND.fieldSchemas)==null?void 0:(pU=bi.sources)==null?void 0:pU.validationSchema);
if(O$&&(eZ=O$.translations,eZ==null?0:eZ.selectedErrorMessage))for(cZ=cZ.split(/[ \n]/).map(function(R0){return R0.trim()}),cZ=_.Z(cZ),ND=cZ.next();!ND.done;ND=cZ.next())if(!qco(ND.value))return cZ=void 0,(cZ=eZ)==null?void 0:cZ.selectedErrorMessage}}}};
return _.q("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.q("div",{class:"ytStructuredContextNoteViewModelTextField"},_.q(_.V4,{data:function(){var cZ;return(cZ=H.data())==null?void 0:cZ.noteContents}},{textFormFieldViewModel:function(cZ){return _.q(_.ZDi,{data:cZ.data,
onInput:k,validation:t,characterLimit:g})},
textFieldViewModel:function(cZ){return _.q(_.FP3,{data:cZ.data,onInput:k,validation:t,characterLimit:g})}})),_.q("div",{class:"ytStructuredContextNoteViewModelTextField"},_.q(_.V4,{data:function(){var cZ;
return(cZ=H.data())==null?void 0:cZ.noteTimestamp}},{textFormFieldViewModel:function(cZ){return _.q(_.ZDi,{data:cZ.data,
onInput:R,validation:ii})},
textFieldViewModel:function(cZ){return _.q(_.FP3,{data:cZ.data,onInput:R,validation:ii})}})),_.q("div",{class:"ytStructuredContextNoteViewModelTextField"},_.q(_.V4,{data:function(){var cZ;
return(cZ=H.data())==null?void 0:cZ.noteSources}},{textFormFieldViewModel:function(cZ){return _.q(_.ZDi,{data:cZ.data,
onInput:L,validation:FW})},
textFieldViewModel:function(cZ){return _.q(_.FP3,{data:cZ.data,onInput:L,validation:FW})}})))},"Bg");
cJ3.idomCompat=!0;_.qs(cJ3,"yt-structured-context-note-view-model",{props:{data:_.GH}});var Ykj=_.n(function(H){var C=_.Z(_.fu(function(){var J;if((J=H.controlled)==null?0:J.call(H))return[];var c;return(((c=H.data())==null?void 0:c.chips)||[]).map(function(Y){Y=_.e(Y,_.TN);if(Y==null?0:Y.selected)return mzK(Y.chipValue)}).filter(function(Y){return Y!==void 0})})),S=C.next().value,w=C.next().value,A=function(J){var c=mzK(J.chipValue);
if(c!==void 0){var Y;if((Y=H.controlled)==null?0:Y.call(H))return void H.controlled().onTap(c);J=S().includes(c)?[].concat(_.k$(S().filter(function(m){return m!==c}))):[].concat(_.k$(S()),[c]);
w(J);var M;if((M=H.uncontrolled)==null?0:M.call(H))H.uncontrolled().onUpdate(J)}};
return _.q("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.q(_.Vq,{each:function(){return H.data().chips||[]}},function(J){return _.q("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.q(_.By_,{data:function(){return _.e(J,_.TN)},
selected:function(){var c;if(c=_.e(J,_.TN)){var Y=mzK(c.chipValue);if(Y!==void 0){var M;c=((M=H.controlled)==null?0:M.call(H))?H.controlled().selectedValues.includes(Y):S().includes(Y)}else c=void 0}else c=!1;return c},
callback:A}))}))},"Cg");var zko=_.n(function(H){var C=H.data;var S=function(){var Y;return((Y=C())==null?void 0:Y.flowStateKey)||""},w=_.fn(_.iz,S),A=function(){var Y;
return(Y=_.e(w(),Mr9))==null?void 0:Y.chips},J=function(Y){if(Y!==void 0){var M=A()||[];
M=M.find(function(m){return m===Y})?M.filter(function(m){return m!==Y}):[].concat(_.k$(M),[Y]);
M=Object.assign({},w(),{feedbackFormFlowState:Object.assign({},_.e(w(),Mr9),{chips:M})});_.Ax(_.O5("flowStateEntity",S(),M))}},c=function(){var Y;
return _.e((Y=C())==null?void 0:Y.inputBox,qso)};
H=_.P8(function(Y){var M=c();M=!(M==null?0:M.maxChars)||Y.length<=M.maxChars;Y=Object.assign({},w(),{feedbackFormFlowState:Object.assign({},_.e(w(),Mr9),{detail:Y}),abuseReportFlowState:Object.assign({},_.e(w(),i2),{navigationEnabled:M})});_.Ax(_.O5("flowStateEntity",S(),Y))},150);
return _.q("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.q("div",{class:"ytFeedbackFormViewModelChips"},_.q(_.V4,{data:function(){var Y;return(Y=C())==null?void 0:Y.chipSelection}},{chipSelectionFormFieldViewModel:function(Y){return _.q(Ykj,{data:Y.data,
controlled:function(){return{selectedValues:A()||[],onTap:J}}})}})),_.q("div",{class:"ytFeedbackFormViewModelInputBox"},_.q(dl,{text:function(){var Y;
return(Y=_.e(w(),Mr9))==null?void 0:Y.detail},
placeholder:function(){var Y;return((Y=c())==null?void 0:Y.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var Y=c();if(Y&&Y.maxChars)return{maxChars:Y.maxChars,errorMessage:Y.maxCharsExceededErrorMessage||""}},
onInput:H})),_.q("div",{class:"ytFeedbackFormViewModelFooterText"},_.q(_.uZ,{text:function(){return C().footerText}})))},"Dg");
zko.idomCompat=!0;_.qs(zko,"yt-feedback-form-view-model",{props:{data:_.GH}});var Mj3=_.n(function(H){var C=H.data;var S=function(){return C().flowStateKey||""},w=_.fn(T4t,S),A=function(){return _.e(w(),i2)},J=function(){if(_.E("enable_gff_accessibility_fix")){var c=!0,Y;
if((Y=A())==null?0:Y.navigationEnabled){var M;_.Im((M=A())==null?void 0:M.navigationCommand);c=!1}Y=Object.assign({},w(),{abuseReportFlowState:Object.assign({},A(),{isReportFormDirty:c})});_.Ax(_.O5("flowStateEntity",S(),Y))}else _.Im((c=A())==null?void 0:c.navigationCommand)};
return _.q("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.q("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.q(_.V4,{data:function(){return C().cancelButton}},{buttonViewModel:function(c){return _.q(_.rc,{data:c.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:J})}}),_.q(_.V4,{data:function(){var c;
if(C().navButton){var Y=Object;var M=Y.assign,m=_.e(C().navButton,_.qc),W=((c=A())==null?0:c.navigationEnabled)||_.E("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",y,N;c=_.e((y=A())==null?void 0:y.navigationCommand,_.tx);y=(N=_.e(c,_.R8))==null?void 0:N.url;Y={buttonViewModel:M.call(Y,{},m,{state:W,iconName:y?"OPEN_IN_NEW":""})}}else Y=void 0;return Y}},{buttonViewModel:function(c){return _.q(_.rc,{data:c.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:J})}})))},"Eg");
Mj3.idomCompat=!0;_.qs(Mj3,"yt-report-form-bottom-bar-view-model",{props:{data:_.GH}});var qki=_.n(function(H){var C=H.nextStep;return _.q("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.q("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.q(_.lm,{icon:function(){return C().iconName||""}})),_.q("div",null,_.q(_.uZ,{text:function(){return C().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Fg"),TMO=_.n(function(H){var C=H.data;
var S,w=(S=_.JA().resolve(_.AA(_.sU)))==null?void 0:S(),A=_.fn(_.iz,function(){return C().flowStateKey||""});
return _.q("yt-report-form-confirmation-page-view-model",{class:function(){var J;return((J=_.e(A(),i2))==null?void 0:J.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.q("div",{class:function(){var J;
return((J=_.e(A(),i2))==null?void 0:J.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.q(_.Jg,{data:function(){return w&&C().imageDark?C().imageDark:C().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.q("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.q("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return C().confirmationHeader}),_.q("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.q(_.uZ,{text:function(){return C().confirmationText}})),_.q("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.q(_.uZ,{text:function(){return C().lawEnforcementText}})),
_.q("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return C().whatToExpectHeader}),_.q(_.T,{cond:function(){return C().nextSteps},
then:function(J){return _.q("div",null,_.q(_.Vq,{each:J},function(c){return _.q(qki,{nextStep:c})}))}}),_.q(_.T,{cond:function(){return C().legalReportText},
then:function(J){return _.q("div",null,_.q(_.uZ,{text:J,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Gg");
TMO.idomCompat=!0;_.qs(TMO,"yt-report-form-confirmation-page-view-model",{props:{data:_.GH}});var mQj=_.n(function(H){var C=H.data;var S=function(){var J;return((J=_.e(C().inputBox,qso))==null?void 0:J.maxChars)||500},w=function(){return C().flowStateKey||""},A=_.fn(_.iz,w);
H=_.P8(function(J){J=Object.assign({},A(),{flowFormState:{isValid:J.length<=S()},abuseReportFlowState:{userComments:J,navigationEnabled:!(J.length>S()),isReportFormDirty:!0}});_.wC().dispatch(_.pN("flowStateEntity",w(),J))},150);
_.$T(function(){var J=Object.assign({},A(),{flowFormState:{isValid:!0}});_.wC().dispatch(_.pN("flowStateEntity",w(),J))});
return _.q("yt-report-form-details-page-view-model",{class:function(){var J;return((J=_.e(A(),i2))==null?void 0:J.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.q("h1",{class:function(){var J;
return((J=_.e(A(),i2))==null?void 0:J.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return C().detailsPageHeader}),_.q("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.q(_.uZ,{text:function(){return C().bodyText}})),_.q("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.q(dl,{label:function(){var J;
return((J=_.e(C().inputBox,qso))==null?void 0:J.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var J;return{errorMessage:((J=_.e(C().inputBox,qso))==null?void 0:J.maxCharsExceededErrorMessage)||"",maxChars:S()}},
onInput:H})))},"Hg");
mQj.idomCompat=!0;_.qs(mQj,"yt-report-form-details-page-view-model",{props:{data:_.GH}});var WPO=_.n(function(H){var C=H.data;var S=_.ja("div"),w=function(){return C().flowStateKey||""},A=_.fn(_.iz,w),J=function(){return _.e(A(),i2)};
_.d6(function(){var c,Y;if(((c=J())==null?0:c.isReportFormDirty)&&((Y=J())==null||!Y.navigationEnabled)&&_.E("enable_gff_accessibility_fix")){var M;if(((M=J())==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var m;(m=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||m.scrollIntoView()}else{var W;(W=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||W.scrollIntoView()}}},"nktJfe");
return _.q("yt-report-form-reason-select-page-view-model",{class:function(){var c;return((c=J())==null?void 0:c.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.q("h1",{class:function(){var c;
return((c=J())==null?void 0:c.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return C().pageHeader}),_.q("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.q(_.uZ,{text:function(){return C().bodyText}})),_.q("div",{class:function(){var c;
return((c=J())==null?void 0:c.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.q(_.T,{cond:function(){var c,Y;
return((c=J())==null?void 0:c.isReportFormDirty)&&!((Y=J())==null?0:Y.navigationEnabled)&&_.E("enable_gff_accessibility_fix")},
then:function(){return _.q("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:S},_.q(_.lm,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.q("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return C().emptyReasonSelectErrorMessage}))}}),_.q(_.jep,{data:function(){return _.e(C().radioButtonGroup,_.CI)},
onSelected:function(c,Y){c=Object.assign({},A(),{abuseReportFlowState:Object.assign({},J(),{reasonKey:Y.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:Y.command})});_.Ax(_.O5("flowStateEntity",w(),c))},
selectedKey:function(){var c;return(c=J())==null?void 0:c.reasonKey},
groupName:"report-form-reason-select-page"})))},"Ig");
WPO.idomCompat=!0;_.qs(WPO,"yt-report-form-reason-select-page-view-model",{props:{data:_.GH}});var yJj=_.n(function(H){var C=H.data;var S,w=(S=_.JA().resolve(_.AA(_.sU)))==null?void 0:S();return _.q("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.q("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.q(_.Jg,{data:function(){return w&&C().imageDark?C().imageDark:C().image},
alt:""})),_.q("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.q("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return C().header}),_.q(_.uZ,{text:function(){return C().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"Jg");
yJj.idomCompat=!0;_.qs(yJj,"yt-report-form-sign-in-page-view-model",{props:{data:_.GH}});_.NMo=(0,_.Q8p)(_.sK.talkToRecs,{talkToRecsStateSelector:function(H){return H}});_.qs(_.n(function(H){var C=H.data;var S=_.Lu(_.NMo.talkToRecsStateSelector),w=function(){return C().titleSuperscript},A=function(){return C().answersShelf},J=function(){return C().videoShelf},c=function(){var FW;
return(FW=C().textInputPlaceholder)==null?void 0:FW.content},Y=function(){return C().showOpenTextInput},M=function(){var FW;
return(FW=C().textInputValue)==null?void 0:FW.content},m=function(){return C().isMultiTurnFlow?C().resetButtonViewModel:void 0},W="",y=function(){return C().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_ALLOW_DESELECTION"?2:1};
H=_.Z(_.mB("",void 0,"d5Wa4d"));var N=H.next().value,b=H.next().value;H=_.Z(_.mB(!1,void 0,"aIzK3e"));var u=H.next().value,O=H.next().value,d=function(){return{state:u()||N()?"active":"disabled",disabled:!(u()||N())}};
_.Ph(function(){if(Y()){M()&&b(M());var FW;if(!m()&&((FW=S())==null?0:FW.stepStates)){var cZ;FW=Object.keys((cZ=S())==null?void 0:cZ.stepStates);cZ=FW[FW.length-1];var eZ,ND;(cZ=(eZ=S().stepStates[cZ])==null?void 0:(ND=eZ.userQuery)==null?void 0:ND.userQuery)&&b(cZ);_.Ax(ct3())}}});
_.PN(function(){_.Ax(ct3())});
var p=function(FW){var cZ=C().onUpdateText;cZ&&_.Im(cZ,{form:{userQuery:FW}});b(FW)},k=_.P8(function(FW){p(FW.target.value.trim())},150),R=_.um(function(FW){var cZ;
W=(cZ=FW.target.value)==null?void 0:cZ.trim();k(FW);return!1}),L=_.um(function(FW){FW.key==="Enter"&&(u()||N())&&(p(FW.target.value.trim()),g());
return!1}),t=function(FW,cZ){O(cZ);
if(cZ){if(C().isMultiTurnFlow&&!W){var eZ;p((eZ=FW==null?void 0:FW.text)!=null?eZ:"")}C().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&g()}else b(W)},g=function(){var FW=void 0,cZ=_.e(C().nextButtonViewModel,_.qc),eZ,ND;
if(cZ==null?0:(eZ=cZ.loggingDirectives)==null?0:(ND=eZ.clientVeSpec)==null?0:ND.uiType){var bi,pU;FW=_.y4((bi=cZ.loggingDirectives)==null?void 0:(pU=bi.clientVeSpec)==null?void 0:pU.uiType)}(cZ=C().onNextStepCommand)&&_.Im(cZ,{clickedVisualElement:FW})};
H=_.sW("yt-talk-to-recs-view-model");var ii={};return _.q("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:H},_.q("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.q(_.V4,{data:function(){return C().topCornerButton}},{buttonViewModel:_.rc})),_.q("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.q("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.q(_.uZ,{text:function(){return C().title}}),_.q(_.T,{cond:w,
then:function(){return _.q("sup",{class:"ytwTalkToRecsSuperScript"},_.q(_.uZ,{text:w}))}})),_.q("div",{class:"ytwTalkToRecsSubtitle"},_.q(_.uZ,{text:function(){return C().subtitle}})),_.q("div",{class:"ytwTalkToRecsResultsShelf"},_.q(_.T,{cond:A,
then:function(){return _.q(_.V4,{data:A},{chipsShelfViewModel:function(FW){return _.q("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.q(_.Y7,{data:FW.data,callback:t,selectionBehavior:y}))}})}}),_.q(_.T,{cond:J,
then:function(){return _.q(_.V4,{data:J},{horizontalShelfViewModel:function(FW){return _.q("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.q(_.TP,{data:FW.data,thumbnailAspectRatio:0}))}})}})),_.q("div",{class:_.eJ("ytwTalkToRecsRefinementContainer",(ii.ytwTalkToRecsBottomMargin=function(){return C().isMultiTurnFlow},ii))},_.q(_.T,{cond:Y,
then:function(){return _.q("div",{class:"ytwTalkToRecsUserInputBox"},_.q("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:c,value:N,"on:input":R,"on:keyup":L,maxlength:200}))}}),_.q(_.V4,{data:function(){return C().isMultiTurnFlow?C().nextButtonViewModel:void 0}},{buttonViewModel:function(FW){return _.q("div",{class:"ytwTalkToRecsFlowControlButtons"},_.q(_.rc,{data:FW.data,
buttonOverrides:d}))}}),_.q(_.V4,{data:m},{buttonViewModel:function(FW){return _.q("div",{class:"ytwTalkToRecsFlowControlButtons"},_.q(_.rc,{data:FW.data,
onClick:function(){var cZ=_.e(C().resetButtonViewModel,_.qc);p(N());(cZ=cZ==null?void 0:cZ.onTap)&&_.Im(cZ)}}))}}))))},"Kg"),"yt-talk-to-recs-view-model",{props:{data:_.GH}});var WQq={sources:[{clientResource:{imageName:"CHECK"}}]};_.bDO=_.n(function(H){var C=_.sW("div");H=_.FH(H,{error:void 0});var S=H.data,w=H.error,A=H.onSelected;H=_.Z(_.fu(function(){return bV9(S())}));
var J=H.next().value,c=H.next().value;Gfo(S,function(N){c(N);var b,u,O=NTr((b=S().options)==null?void 0:(u=b[N])==null?void 0:u.value,S().type);A==null||A(O);C.value.focus()});
H=_.um(function(){if(!S().disabled){var N=S(),b=J(),u=C.value;N.options&&(N=yO3(N.options,b,N.label),_.JA().resolve(_.wz).openSheet({viewModel:N},u))}});
var Y=_.bkV(),M=function(){return!!w()},m=function(){return!!S().disabled},W={},y={};
return _.q("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.q("div",{class:_.eJ("ytDropdownViewModelDropdownContainer",(W.ytDropdownViewModelDropdownContainerErrorBorder=M,W.ytDropdownViewModelDropdownContainerDisabled=m,W)),"on:click":H,el:C,role:"combobox",tabindex:0,"on:keydown":Y,"aria-invalid":M,"aria-disabled":m,"aria-describedby":function(){return M()?"dropdown-view-model-error":void 0}},_.q("div",{class:"ytDropdownViewModelText"},Eur(S,M,J),e0O(S,J)),_.q("div",{class:_.eJ("ytDropdownViewModelChevronDown",
(y.ytDropdownViewModelChevronDownDisabled=m,y))},_.q(_.lm,{icon:"CHEVRON_DOWN"}))),u6j(S,w))},"Lg");_.qs(_.n(function(H){var C=H.data;var S=function(A){var J=vui(C());J.videoMetadata||(J.videoMetadata={});J.videoMetadata.sponsorshipsMetadata||(J.videoMetadata.sponsorshipsMetadata={});J.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(A)},w=function(A){var J=vui(C());
J.scheduledRedirectMetadata||(J.scheduledRedirectMetadata={});J.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(A)};
return _.q("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.q("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.q("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.q(_.uZ,{text:function(){return C().title}}),_.q(_.lm,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.q(_.uZ,{text:function(){return C().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.q(_.V4,{data:function(){return C().tierChoices}},{dropdownViewModel:function(A){return _.q("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.q(_.bDO,{data:A.data,
onSelected:S}))}}),_.q(_.V4,{data:function(){return C().startTimeChoices}},{dropdownViewModel:function(A){return _.q("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.q(_.bDO,{data:A.data,
onSelected:w}))}}),_.q(_.uZ,{text:function(){return C().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.q("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.q(_.V4,{data:function(){return C().scheduleButton}},{panelFooterViewModel:_.Xt})))},"Mg"),"ytfz-schedule-fanzone-view-model",{props:{data:_.GH}});_.qs(_.n(function(H){var C=H.data;H=H.className===void 0?"":H.className;var S=_.fn(T4t,function(){return C().flowStateEntityKey||""}),w={};
w=_.eJ("ytFlowBottomBarViewModelFlowBottomBarButtons",(w.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return C().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||C().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},w));
var A={},J=_.eJ("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",w,(A.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return C().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},A.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return C().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},A));
A={};var c=_.eJ("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",w,(A.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return C().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},A.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return C().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},A));
w={};w=_.eJ("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(w.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return C().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},w.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return C().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},w.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return C().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
w));
H=_.eJ("ytFlowBottomBarViewModelHost",H);return _.q("yt-flow-bottom-bar-view-model",{class:H},_.q(_.T,{cond:function(){var Y;return(Y=C())==null?void 0:Y.textSection},
then:function(Y){return _.q("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.q(_.uZ,{text:Y}))}}),_.q("div",{class:w},_.q(_.V4,{data:function(){return C().secondaryButton}},{buttonViewModel:function(Y){return _.q(_.rc,{data:Y.data,
className:c})}}),_.q(_.V4,{data:function(){return C().primaryButton}},{buttonViewModel:function(Y){return _.q(_.rc,{data:Y.data,
className:J,buttonOverrides:function(){var M;return{disabled:!((M=S())==null||!M.primaryButtonDisabled)}}})}})))},"Ng"),"yt-flow-bottom-bar-view-model",{props:{data:_.GH,
className:_.Yb}});var E_o="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),P$=function(){var H=_.X.apply(this,arguments)||this;H.enableScrollingFix=!0;H.bottomBar=!1;H.fitContent=!1;return H};
_.G(P$,_.X);_.F=P$.prototype;_.F.ready=function(){_.E("enable_pdp_icon_prefetch")&&_.Fvp(_.JA().resolve(_.SX),0,E_o)};
_.F.focus=function(H){this.topBar?_.Sr(this.topBar,H):this.paperDialog.focus(H)};
_.F.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$19132_scroller&&(this.JSC$19132_scroller.dialogElement=this.paperDialog,this.JSC$19132_scroller.attached&&typeof this.JSC$19132_scroller.attached==="function"&&this.JSC$19132_scroller.attached())};
_.F.onDataChanged=function(){var H;this.fitContent=!((H=this.data)==null||!H.fitContent);var C;this.bottomBar=!((C=this.data)==null||!C.bottomBar)};
_.F.onProgressChanged=function(){var H,C,S=((C=(H=this.data)==null?void 0:H.progress)!=null?C:0)*100;this.progressElement.style.width=S+"%"};
_.F.isProgressHidden=function(){var H;return!((H=this.data)==null?0:H.progress)};
_.F.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",lpSectionGroupViewModel:"yt-lp-section-group-view-model",noteUserRatingViewModel:"yt-note-user-rating-view-model",noteViewModel:"yt-note-view-model",
notesWrapperViewModel:"yt-notes-wrapper-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",
reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",
params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},
flowBottomBarRenderer:{matcher:function(H){return H&&!H.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
P$.prototype.onProgressChanged=P$.prototype.onProgressChanged;P$.prototype.onDataChanged=P$.prototype.onDataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],P$.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],P$.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],P$.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],P$.prototype,"enableScrollingFix",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],P$.prototype,"bottomBar",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],P$.prototype,"fitContent",void 0);_.D([_.lA("#progress"),_.K("design:type",HTMLElement)],P$.prototype,"progressElement",void 0);_.D([_.lA("#scroller"),_.K("design:type",Object)],P$.prototype,"JSC$19132_scroller",void 0);_.D([_.lA("ytd-flow-top-bar-renderer"),_.K("design:type",HTMLElement)],P$.prototype,"topBar",void 0);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],P$.prototype,"onDataChanged",null);_.D([_.fx("data.progress"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],P$.prototype,"onProgressChanged",null);_.D([_.h({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],P$);
_.B(P$,"ytd-flow-step-renderer",function(){if(xKq!==void 0)return xKq;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return xKq=H},{mode:1});var $9=function(H){this.resolveCommand=H;this.steps={}},ekr=function(H,C){C=_.Z(C||[]);
for(var S=C.next();!S.done;S=C.next()){S=S.value;var w=Object.values(S)[0],A=void 0;if((A=w)==null?0:A.stepId)H.steps[w.stepId]=S}},fg3=function(H,C){var S,w,A,J,c;
return _.z(function(Y){if((S=H.state)==null||!S.currentStepId)return Y.return(void 0);w=ujp(H);if(!w)return Y.return(GcO(H));if(A=_.e(w,_.ytR)){var M;((M=A.screenLoggingData)==null?0:M.screenVeType)&&_.kP(_.lJ(),A.screenLoggingData.screenVeType);((J=A)==null?0:J.onStepStartCommand)&&H.resolveCommand((c=A)==null?void 0:c.onStepStartCommand,{})}if(A&&C){M=A;var m,W,y,N;((m=C.flowLoggingData)==null?0:m.eventNamespace)&&((W=M.flowEventData)==null?0:W.eventType)&&((y=M.flowEventData)==null?0:y.eventMetadata)&&
((N=C.flowLoggingData)==null?0:N.flowType)&&(m=_.b4(C.flowLoggingData.eventNamespace,M.flowEventData.eventType,M.flowEventData.eventMetadata),_.Ex(_.et(),m,C.flowLoggingData.flowType));C.steps&&!C.steps.includes(w)&&C.steps.push(w)}return Y.return(w)})};
$9.prototype.back=function(){var H;(H=this.state)!=null&&H.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
$9.prototype.handleUpdateFlowCommand=function(H){H.steps&&ekr(this,H.steps);H.entityUpdateCommand&&this.resolveCommand(H.entityUpdateCommand,{});H.flowContinuationCommand&&(H=H.flowContinuationCommand)&&(this.getFlowContinuationCommand=H);this.awaitFlowContinuation&&(this.awaitFlowContinuation(ujp(this)),this.awaitFlowContinuation=void 0)};
$9.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var GcO=function(H){return _.z(function(C){return H.getFlowContinuationCommand?C.return(new Promise(function(S){H.awaitFlowContinuation=S;H.getFlowContinuationCommand&&H.resolveCommand(H.getFlowContinuationCommand,{flow_state:H.state})})):C.return(Promise.resolve(void 0))})},ujp=function(H){var C;
if((C=H.state)!=null&&C.currentStepId)return H.steps[H.state.currentStepId]};
_.JJ.Object.defineProperties($9.prototype,{currentStepId:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.state)==null?void 0:H.currentStepId}},
nextStepIdOverride:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.state)!=null&&H.nextStepIdOverride)return this.state.nextStepIdOverride.reduce(function(C,S){S.key&&S.value&&(C[S.key]=S.value);return C},{})}}});var pI=function(){var H=_.X.apply(this,arguments)||this;H.flowState=new $9(function(C,S){S=S===void 0?{}:S;_.eU.instance.resolveCommand(C,{form:{form:S,element:H.hostElement}})});
H.initialState=!0;H.isLoading=!1;H.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"};H.containsTalkToRecs=!1;return H};
_.G(pI,_.X);_.F=pI.prototype;_.F.onPopupClosed=function(H){H&&this.hostElement!==H.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.F.configureRendererStamper=function(){return{"data.topBar":{id:"root-top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.F.focus=function(H){var C=this;_.HI(function(){var S=_.mY(C.hostElement).querySelector("ytd-flow-step-renderer");(S==null?0:S.topBar)?S.focus(H):C.topBar&&_.Sr(C.topBar,H)},1)};
_.F.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.F.computeTopBarHidden=function(H){var C;return!((C=_.e(H,_.ytR))==null||!C.topBarOverride)};
_.F.dataChanged=function(){var H=this,C,S;return _.z(function(w){if(w.nextAddress==1){((C=H.data)==null?0:C.steps)&&ekr(H.flowState,H.data.steps);if((S=H.data)==null?0:S.flowContinuationCommand){var A=H.flowState,J=H.data.flowContinuationCommand;J&&(A.getFlowContinuationCommand=J)}return w.yield(fg3(H.flowState,H.data),2)}H.currentFlowStep=w.yieldResult;_.oT(w)})};
_.F.flowChanged=function(){var H=this,C;return _.z(function(S){if(S.nextAddress==1){if(!H.flow)return S.return();H.flowState.state=H.flow;H.isLoading=!0;return S.yield(fg3(H.flowState,H.data),2)}C=S.yieldResult;if(!C||H.flow.isLoading)return S.return();H.currentFlowStep=C;H.initialState=!1;H.isLoading=!1;H.autofocusAndRefit();H.updateContainsTalkToRecs();_.oT(S)})};
_.F.updateContainsTalkToRecs=function(){var H,C=(H=_.e(this.currentFlowStep,_.ytR))==null?void 0:H.content;this.containsTalkToRecs=!!C&&!!_.e(C,Nvq)};
_.F.autofocusAndRefit=function(){var H=this,C=_.JA().resolve(_.AA(_.PS)),S=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),w=document.querySelector("yt-report-form-confirmation-page-view-model"),A=document.querySelector("yt-report-form-details-page-view-model"),J=document.querySelector("yt-report-form-reason-select-page-view-model"),c=document.querySelector("yt-contributor-zero-state-view-model"),
Y=document.querySelector("yt-structured-context-note-view-model"),M=document.querySelector("yt-note-view-model");(!S&&C&&C.isKeyBoardInUse()||w||!S&&A||!S&&J||c||Y||M)&&_.ss(this.hostElement);_.wM(this,function(){_.M3(H.hostElement,"yt-refit")})};
_.F.handleUpdateFlowCommand=function(H){this.data&&(H=_.e(H,Wvi),H.targetId===this.data.targetId&&(H.flowContinuationCommand&&(this.data.flowContinuationCommand=H.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(H),this.autofocusAndRefit()))};
_.F.handleFlowNextStepCommand=function(H){this.data&&this.flow&&this.flow.key&&(H=_.e(H,Tvp),H.targetId===this.data.targetId&&(H=H.stepId||"",this.ytdReduxBehavior.dispatch(_.pN("flowStateEntity",this.flow.key,{currentStepId:H,stepIdStack:(this.flow.stepIdStack||[]).concat(H)}))))};
_.F.handleFlowPrevStepCommand=function(H){if(this.data&&this.flow&&this.flow.key&&(H=_.e(H,mKi),H.targetId===this.data.targetId)){var C=[].concat(_.k$(this.flow.stepIdStack||[]));C.length>1?(C.pop(),this.ytdReduxBehavior.dispatch(_.pN("flowStateEntity",this.flow.key,{currentStepId:C[C.length-1],stepIdStack:C}))):H.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(H.onFirstStepCommand)}};
_.F.handleYpcCancelRecurrenceCommand=function(H){if(this.data&&this.flow&&this.flow.key&&(H=_.e(H,G8R),H.targetId===this.data.targetId&&H.endpointCommand)){var C=_.e(this.flow,fZK);C&&_.e(H.endpointCommand,_.Uhb)&&(_.e(H.endpointCommand,_.Uhb).feedbackData=C.surveyFeedback);this.ytComponentBehavior.resolveCommand(H.endpointCommand)}};
_.F.handlePartialUpdateFlowStateEntity=function(H){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.pN("flowStateEntity",this.flow.key,H,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
pI.prototype.flowChanged=pI.prototype.flowChanged;pI.prototype.dataChanged=pI.prototype.dataChanged;pI.prototype.onPopupClosed=pI.prototype.onPopupClosed;_.D([_.v(_.q$),_.K("design:type",Object)],pI.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],pI.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],pI.prototype,"ytComponentBehavior",void 0);
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],pI.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],pI.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],pI.prototype,"initialState",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],pI.prototype,"isLoading",void 0);_.D([_.V(),_.K("design:type",Object)],pI.prototype,"data",void 0);
_.D([_.V(),_.K("design:type",Object)],pI.prototype,"currentFlowStep",void 0);_.D([_.Gz("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],pI.prototype,"onPopupClosed",null);_.D([_.V({selectorArgs:["data.flowStateEntityKey"],selector:T4t}),_.K("design:type",Object)],pI.prototype,"flow",void 0);_.D([_.lA("ytd-flow-top-bar-renderer"),_.K("design:type",HTMLElement)],pI.prototype,"topBar",void 0);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype",Promise)],pI.prototype,"dataChanged",null);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],pI.prototype,"containsTalkToRecs",void 0);_.D([_.XJ("flow"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype",Promise)],pI.prototype,"flowChanged",null);_.D([_.h({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],pI);
_.v_q=_.Tp()(pI,"ytd-flow-root-renderer",function(){if(aZp!==void 0)return aZp;var H=document.createElement("template");_.f(H,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return aZp=H},{mode:_.mn("kevlar_poly_si_batch_j025")?1:2});var lgK;var xs=null;_.qs(_.n(function(H){return _.q("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.q("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.q(_.uZ,{text:function(){return H.data().text}}),_.q("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Og"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.GH}});var Vjr=_.n(function(H){var C=H.playerControlsProps;var S=H.isShortsPage;return _.q("yt-bigboard",null,_.q(_.T,{cond:function(){return C().isDragging},
then:function(){return _.q("div",{class:"ytBigboardStoryboardHost"},_.q(_.is3,{progressBarProps:C,isShortsPage:S}))}}))},"Pg");
Vjr.idomCompat=!0;_.k9={ACCOUNT_LABEL:H$("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:H$("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:H$("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:H$("AD_BADGE_HINT"),AD_BADGE_TEXT:H$("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:H$("ALL_CHANNELS_LABEL"),AMBIENT_MODE:H$("AMBIENT_MODE"),AMBIENT_MODE_OFF:H$("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:H$("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:H$("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:H$("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:H$("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:H$("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:H$("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:H$("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:H$("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:H$("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:H$("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:H$("AUTO_ZOOM","Auto zoom"),BACK:H$("BACK"),CANCEL:H$("CANCEL"),CHANNEL_SWITCHER_LABEL:H$("CHANNEL_SWITCHER_LABEL"),CLOSE:H$("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:H$("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:H$("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:H$("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:H$("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:H$("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:H$("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:H$("COMMENT_MODAL_CONTENT"),CONFIRM_OK:H$("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:H$("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:H$("COPIED_TO_CLIPBOARD"),COPY:H$("COPY"),COPY_DEBUG_INFO:H$("COPY_DEBUG_INFO"),COPY_EMBED_CODE:H$("COPY_EMBED_CODE"),
COPY_LINK_LABEL:H$("COPY_LINK_LABEL"),COPY_VIDEO_URL:H$("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:H$("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:H$("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:H$("DELETE_FROM_DOWNLOADS"),DIALOG:H$("DIALOG"),DONE:H$("DONE"),DOWNLOAD:H$("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:H$("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:H$("FLAG_CONFIRM"),FLAG_CONTENT:H$("FLAG_CONTENT"),FLAG_LABEL:H$("FLAG_LABEL"),FLAG_TITLE:H$("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:H$("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:H$("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:H$("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:H$("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:H$("HIDE_SEARCH_FILTERS_LABEL"),HOME:H$("HOME","Home"),INVALID_RESPONSE_RECEIVED:H$("INVALID_RESPONSE_RECEIVED"),LIBRARY:H$("LIBRARY","Library"),LISTENING:H$("LISTENING"),LOADING:H$("LOADING"),LONG_PRESS_MIC_TO_SPEAK:H$("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:H$("LOOP"),MENU_DESKTOP:H$("MENU_DESKTOP"),
MENU_EXIT:H$("MENU_EXIT"),MENU_FEEDBACK:H$("MENU_FEEDBACK"),MENU_HELP:H$("MENU_HELP"),MENU_IMPRESSUM:H$("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:H$("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:H$("MENU_SETTINGS"),MENU_SIGN_IN:H$("MENU_SIGN_IN"),MENU_TITLE:H$("MENU_TITLE"),MENU_YOUR_DATA:H$("MENU_YOUR_DATA"),MORE_INFO:H$("MORE_INFO"),MORE_OPTIONS:H$("MORE_OPTIONS"),MUTE_VOLUME:H$("MUTE_VOLUME"),NEW_PLAYLIST:H$("NEW_PLAYLIST"),NEXT_VIDEO:H$("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:H$("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:H$("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:H$("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:H$("NOT_FOUND_TITLE"),NO_DOWNLOADS:H$("NO_DOWNLOADS"),NO_MIC_INPUT:H$("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:H$("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:H$("OOPS_MESSAGE"),OPEN_APP:H$("OPEN_APP"),OPEN_YOUTUBE:H$("OPEN_YOUTUBE"),PAUSE:H$("PAUSE"),PLAY:H$("PLAY"),PLAYER_CAPTION:H$("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:H$("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:H$("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:H$("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:H$("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:H$("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:H$("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:H$("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:H$("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:H$("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:H$("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:H$("PLAYER_MINIMIZE"),PLAYER_NEXT:H$("PLAYER_NEXT"),PLAYER_PAUSE:H$("PLAYER_PAUSE"),PLAYER_PLAY:H$("PLAYER_PLAY"),
PLAYER_PREVIOUS:H$("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:H$("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:H$("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:H$("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:H$("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:H$("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:H$("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:H$("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:H$("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:H$("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:H$("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:H$("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:H$("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:H$("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:H$("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:H$("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:H$("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:H$("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:H$("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:H$("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:H$("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:H$("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:H$("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:H$("PLAY_ALL"),PLEASE_FIX_ERRORS:H$("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:H$("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:H$("PREVIOUS_VIDEO"),PRIVACY_POLICY:H$("PRIVACY_POLICY"),RELOAD:H$("RELOAD"),REQUIRED_LABEL:H$("REQUIRED_LABEL"),SAVE_PLAYLIST:H$("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:H$("SCRUB_SLIDE_USER_EDU"),SEARCH:H$("SEARCH","Search"),
SEARCH_APPEND_LABEL:H$("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:H$("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:H$("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:H$("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:H$("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:H$("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:H$("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:H$("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:H$("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:H$("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:H$("SEEK_SLIDER"),SETTINGS_LABEL:H$("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:H$("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:H$("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:H$("SHOW_LESS"),SHOW_MORE:H$("SHOW_MORE"),SHOW_PLAYER_CONTROLS:H$("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:H$("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:H$("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:H$("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:H$("SIGN_IN_ON_WEB"),STABLE_VOLUME:H$("STABLE_VOLUME"),STABLE_VOLUME_OFF:H$("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:H$("STABLE_VOLUME_ON"),STATS_FOR_NERDS:H$("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:H$("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:H$("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:H$("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:H$("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:H$("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:H$("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:H$("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:H$("TIMESTAMP_SECONDS"),TOGGLE_OFF:H$("TOGGLE_OFF"),TOGGLE_ON:H$("TOGGLE_ON"),TRENDING:H$("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:H$("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:H$("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:H$("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:H$("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:H$("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:H$("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:H$("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:H$("VIDEO_LINK_LABEL")};var o_R=_.n(function(H){var C=H.playerApi;H=_.sW("button",function(w){_.vT(w,36843)});
var S=H$("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.q("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.q("button",{el:H,class:"ytPlayerControlsJumpForwardButtonButton",title:S,"aria-label":S,"on:click":_.um(function(){_.lV(36843);C&&C().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.q("span",null,_.q(_.lm,{icon:"FAST_FORWARD"}))))},"Qg");var ODp=_.n(function(H){var C=H.appApi;H=_.sW("button",function(w){_.vT(w,62946)});
var S=H$("OPEN_IN_MINIPLAYER");return _.q("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.q("button",{el:H,class:"ytMiniplayerButtonButton",title:S,"aria-label":S,"on:click":_.um(function(){_.lV(62946);var w,A;(A=(w=C()).openInMiniplayer)==null||A.call(w);return!1})},_.q(_.lm,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Rg");var XM9=_.n(function(H){var C=H.playerApi;H=_.sW("button",function(J){_.vT(J,142812)});
var S=_.Z(_.mB(!1,void 0,"eOMRAb")),w=S.next().value,A=S.next().value;S=function(){return H$("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(w()?1:2)})};
return _.q("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.q("button",{el:H,class:"ytPlaybackSpeedButtonButton",title:S,"aria-label":S,"on:click":_.um(function(){_.lV(142812);if(C){var J=C(),c=w();J.setPlaybackRate(c?1:2);A(!w())}return!1})},_.q("span",null,_.q(_.lm,{icon:function(){return w()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Sg");var Qe9=_.n(function(H){var C=H.title;var S=H.ariaLabel;var w=H.icon;var A=H.command;var J=H.veType;H=_.sW("button",function(c){J&&_.vT(c,J())});
return _.q("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.q("button",{el:H,class:"ytdThumbnailOverlayButtonButton",title:C,"aria-label":S,"on:click":_.um(function(){J&&_.lV(J());A&&_.JA().resolve(_.ZQ).resolveCommand(A())})},_.q(_.lm,{icon:w})))},"Tg");var KR="";var dQ3=_.n(function(H){var C=H.playerControlsProps,S=H.onClickFn;H=_.EF(function(){var J=C(),c=-1;J.captionsAvailable&&(c=J.captionsEnabled?1:0);return c},void 0,"MZ0Wqe");
var w=_.EF(function(){var J=C();return J.captionsAvailable?_.fL(J.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.fL("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),A=_.EF(function(){var J=C();
J=J.captionsAvailable?J.captionsEnabled:void 0;return J},void 0,"fhuQRe");
return _.q("yt-closed-captions-toggle-button",null,_.q(_.ht9,{captionIconType:H,ariaLabel:w,ariaPressed:A,onClick:function(J){var c=C();if(c.captionsAvailable){var Y=c.playerApi;if(Y){var M=c.playerApi;if(M){var m=KR;if(m){M=M.getOption("captions","track");var W;KR=(W=M?M.displayName:null)!=null?W:m}else _.fR(M)?(m=_.RY$(M),KR=m.length?(W=N4R(m))?W.displayName:m[0].displayName:""):KR=""}bvO(Y);_.E("mweb_disable_set_state_captions_killswitch")&&c.setState({captionsEnabled:!c.captionsEnabled})}}var y,
N;(N=(y=c.appApi).showCaptionsToggleToast)==null||N.call(y,c);S==null||S(J)},
isOverlay:!0}))},"Ug");var Psi=_.n(function(H){var C=H.data;return _.q("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.q(_.Tu,{data:function(){return{type:17,text:_.mB6(C().label)}}}))},"Vg");var $Qp=_.n(function(H){var C=_.eJ("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return H.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return H.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return H.size()==="small"?H.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
H.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.q("animated-seek-arrows",{class:_.eJ("ytPlayerControlsAnimatedSeekArrowsHost")},_.q("span",{class:C}),_.q("span",{class:C}),_.q("span",{class:C}))},"Wg");
$Qp.idomCompat=!0;var pMp=_.n(function(){var H=_.fL("PLAYER_SECONDS",{seconds_placeholder:"30"}),C=_.Z(_.mB(!1,void 0,"iRJu8c")),S=C.next().value,w=C.next().value,A=_.Z(_.mB(!1,void 0,"MPnizf"));C=A.next().value;var J=A.next().value;A={};var c=_.eJ("jumpForwardOverlayOverlay",(A.jumpForwardOverlayOverlayHidden=C,A));_.$T(function(){var Y=null,M=null,m=function(){Y!==null&&_.oh().cancelJob(Y);M!==null&&_.oh().cancelJob(M);J(!0);w(!0);_.Ns(_.oh(),function(){J(!1)});
Y=_.Ns(_.oh(),function(){J(!0);M=_.Ns(_.oh(),function(){w(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",m);_.PN(function(){window.removeEventListener("jump-forward-clicked",m)})});
return _.q("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.q(_.T,{cond:S,then:function(){return _.q("div",{class:c},_.q($Qp,{direction:1,size:"large"}),_.q("div",null,H))}}))},"Xg");var kcR=_.k9.MUTE_VOLUME,hkt=_.k9.UNMUTE_VOLUME,n_O=_.n(function(H){var C=H.muteIconType;var S=H.onClick;var w=H.useOutlineIcon;var A=H.useDelhiIcons;H=_.sW("button",function(Y){_.vT(Y,28662)});
var J=function(){var Y=C(),M=w==null?void 0:w(),m=A==null?void 0:A(),W="",y="";switch(Y){case -1:case 0:W=M?"VOLUME_OFF":m?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";y=hkt;break;case 1:W=M?"VOLUME_UP_OUTLINE":m?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";y=kcR;break;case 2:W=M?"VOLUME_DOWN_OUTLINE":m?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";y=kcR;break;default:_.KP(Y)}return{iconName:W,ariaLabel:y}},c=function(){return J().ariaLabel};
return _.q("ytm-mute-button",{class:"ytmMuteButtonHost"},_.q("button",{el:H,class:"ytmMuteButtonButton",title:c,"aria-label":c,"on:click":_.um(function(Y){_.lV(28662);S==null||S(Y);return!1})},_.q("span",null,_.q(_.lm,{icon:function(){return J().iconName}}))))},"Yg");var rJK=_.n(function(H){var C=H.volumeProps;var S=H.onClickFn;var w=H.useOutlineIcon;var A=H.useDelhiIcons;return _.q("yt-mute-toggle-button",null,_.q(n_O,{muteIconType:function(){var J=C();return J.volumeMuted||J.volume===0?0:J.volume>50?1:2},
onClick:function(J){var c=C().playerApi;c&&(c.isMuted()?c.unMute():c.mute(!1));S==null||S(J)},
useOutlineIcon:function(){return!(w==null||!w())},
useDelhiIcons:function(){return!(A==null||!A())}}))},"Zg");
rJK.idomCompat=!0;var BM3=_.n(function(H){var C=H.data;var S=_.sW("ytm-paid-content-overlay-renderer");return _.q("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:S,"on:animationend":_.um(function(){S.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.q(_.$4,{command:function(){return C().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.q(_.T,{cond:function(){var w;return(w=C().icon)==null?void 0:w.iconType},
then:function(){return _.q("span",null,_.q(_.lm,{icon:function(){var w;return(w=C().icon)==null?void 0:w.iconType}}))}}),_.q("div",{class:"ytmPaidContentOverlayText"},_.q(_.uZ,{text:function(){return C().text}})),_.q(_.T,{cond:function(){return C().navigationEndpoint},
then:function(){return _.q(_.lm,{icon:"CHEVRON_RIGHT"})}})))},"$g");
BM3.idomCompat=!0;var Dzq=[].concat(_.k$([{register:function(H){var C=HCt(H),S;(S=H().playerApi)==null||S.addEventListener("onVolumeChange",C);return function(){}}},
{register:function(H){var C=iCi(H);H=H().playerApi;H==null||H.addEventListener("captionschanged",C);H==null||H.addEventListener("captionssettingschanged",C);H==null||H.addEventListener("onCaptionsTrackListChanged",C);return function(){}}},
{register:function(H){if(!_.E("mweb_screenreader_accessible_player"))return function(){};
var C=Cbr(H),S=document.querySelector("video");S==null||S.addEventListener("touchend",C);return function(){S==null||S.removeEventListener("touchend",C)}}},
{register:function(H){if(!_.E("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var C=Cbr(H),S=document.querySelector("video");S==null||S.addEventListener("focus",C);return function(){S==null||S.removeEventListener("focus",C)}}}]),[{register:function(H){var C=R09(H),S;
(S=H().playerApi)==null||S.addEventListener("onStateChange",C);return function(){}}},
{register:function(H){var C=It9(H),S;(S=H().playerApi)==null||S.addEventListener("onPlaybackRateChange",C);return function(){}}},
{register:function(H){var C=atr(H),S;(S=H().playerApi)==null||S.addEventListener("onVideoDataChange",C);return function(){}}},
{register:function(H){var C=xzi(H),S,w;(S=H())==null||(w=S.playerApi)==null||w.addEventListener("onVideoProgress",C);return function(){}}}]);var DQi=_.n(function(H){var C=H.data;var S=function(){return _.fL("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+C().playbackRate})};
return _.q(_.T,{cond:function(){return C().playbackRate&&C().playbackRate!==1},
then:function(){return _.q("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.q("div",{class:"ytPlaybackRateOverlayOverlay"},_.q($Qp,{direction:1,size:"small"}),_.q("div",{class:"ytPlaybackRateOverlayLabel"},S)))}})},"ah");var KP_=_.n(function(H){var C=H.data;return _.q("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.q(_.T,{cond:function(){var S,w=(S=C())==null?void 0:S.playerResponse,A;return w==null?void 0:(A=w.paidContentOverlay)==null?void 0:A.paidContentOverlayRenderer},
then:function(S){return _.q(BM3,{data:S})}}))},"ch"),tjo=_.n(function(H){var C=H.props;
var S=H.data;var w=H.options;var A=function(){var m,W,y,N;return(m=S())==null?void 0:(W=m.playerResponse)==null?void 0:(y=W.playerConfig)==null?void 0:(N=y.inlinePlaybackConfig)==null?void 0:N.showAudioControls},J=function(){var m,W;
if(A()&&((m=w())==null?void 0:(W=m.additionalButton)==null?void 0:W.button)!==void 0){var y,N,b;m=(y=S())==null?void 0:(N=y.playerApi)==null?void 0:(b=N.getSize())==null?void 0:b.height;if(!(m===void 0||m<180)){var u,O;return(u=w())==null?void 0:(O=u.additionalButton)==null?void 0:O.button}}},c=function(){var m,W;
return(m=w())==null?void 0:(W=m.additionalButton)==null?void 0:W.thumbnailOverlayButtonRenderers},Y=function(){var m,W;
return(m=w())==null?void 0:(W=m.additionalButton)==null?void 0:W.thumbnailOverlayButtonViewModels},M=function(){var m=[_.q(rJK,{volumeProps:C}),
_.q(dQ3,{playerControlsProps:C})];J()===1&&m.push(_.q(o_R,{playerApi:function(){return C().playerApi}}));
J()===2&&m.push(_.q(ODp,{appApi:function(){return C().appApi}}));
J()===3&&m.push(_.q(XM9,{playerApi:function(){return C().playerApi}}));
var W=c();if(J()===4&&W){W=_.Z(W);for(var y=W.next(),N={};!y.done;N={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$51:void 0,command$jscomp$591:void 0},y=W.next()){y=y.value;N.tooltip$jscomp$2=y.tooltip;var b=void 0,u=void 0;N.ariaLabel$jscomp$20=((b=y.accessibility)==null?void 0:(u=b.accessibilityData)==null?void 0:u.label)||N.tooltip$jscomp$2;b=void 0;N.icon$jscomp$51=(b=y.icon)==null?void 0:b.iconType;N.command$jscomp$591=y.command;N.tooltip$jscomp$2&&N.ariaLabel$jscomp$20&&N.icon$jscomp$51&&
m.push(_.q(Qe9,{title:function(O){return function(){return O.tooltip$jscomp$2}}(N),
ariaLabel:function(O){return function(){return O.ariaLabel$jscomp$20}}(N),
icon:function(O){return function(){return O.icon$jscomp$51}}(N),
command:function(O){return function(){return O.command$jscomp$591}}(N)}))}}W=Y();
if(J()===4&&W)for(W=_.Z(W),y=W.next(),N={};!y.done;N={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$52:void 0,command$jscomp$592:void 0},y=W.next())y=y.value,N.tooltip$jscomp$3=y.title,N.ariaLabel$jscomp$21=y.accessibilityText||N.tooltip$jscomp$3,N.icon$jscomp$52=y.iconName,N.command$jscomp$592=_.L7(y.onTap),N.tooltip$jscomp$3&&N.ariaLabel$jscomp$21&&N.icon$jscomp$52&&m.push(_.q(Qe9,{title:function(O){return function(){return O.tooltip$jscomp$3}}(N),
ariaLabel:function(O){return function(){return O.ariaLabel$jscomp$21}}(N),
icon:function(O){return function(){return O.icon$jscomp$52}}(N),
command:function(O){return function(){return O.command$jscomp$592}}(N)}));
return m};
return _.q(_.T,{cond:A,then:function(){return _.q("div",{class:"ytInlinePlayerControlsTopRightControls"},_.q(_.Vq,{each:M},function(m){return _.q("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.q("div",{class:"ytInlinePlayerControlsButtonIcon"},m))}))}})},"dh"),UQ9=_.n(function(H){var C=H.props;
var S=H.data;var w=H.options;H={};H=_.eJ("ytInlinePlayerControlsBottomRightControls",(H.ytInlinePlayerControlsBottomRightControlsHidden=function(){var A;return s8i(S(),w())&&((A=w())==null?void 0:A.insetProgressBar)&&(C().isHovering||C().isDragging)},H));
return _.q("div",{class:H},_.q(LP3,{data:S}),_.q(_.T,{cond:function(){var A;return!((A=w())==null?0:A.hideTimeDisplay)},
then:function(){return _.q(g_R,{props:C,data:S})}}))},"eh"),LP3=_.n(function(H){var C=H.data;
return _.q(_.V4,{data:function(){var S;return rOR((S=C())==null?void 0:S.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:Psi})},"fh"),g_R=_.n(function(H){var C=H.props;
var S=H.data;return _.q(_.T,{cond:function(){return C().isLive},
then:function(){return _.q(Rk3,null)},
else:function(){return _.q(Igq,{props:C,data:S})}})},"gh"),Igq=_.n(function(H){var C=H.props;
var S=H.data;var w=_.EF(function(){var A;return BTr((A=S())==null?void 0:A.thumbnailOverlays)},void 0,"tLs0gd");
return _.q("div",{class:_.eJ("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.k9.PLAYER_TIME_ELAPSED+" "+_.wK7(C().playedTime)}},_.q(_.Tu,{data:function(){var A=_.wK7(C().videoDuration-C().playedTime);
return Object.assign({},{type:17,text:A},w())}}))},"hh"),Rk3=_.n(function(){var H=_.eJ("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge");
return _.q("div",{class:H},_.q(_.Tu,{data:{type:18,text:_.k9.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"ih"),agt=_.n(function(H){var C=H.props;
var S=H.data;var w=H.options;return _.q(_.Aat,{progressBarProps:C,config:function(){var A,J=_.e((A=S())==null?void 0:A.multiMarkersPlayerBar,_.N21),c;A=((c=w())==null?0:c.insetProgressBar)?2:1;var Y;c=(Y=w())==null?void 0:Y.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:A,chapterData:J,isInlinePlayback:!0,doSeekOnClick:c,playheadDotBehavior:c?1:0}}})},"jh");_.qs(_.n(function(H){var C=H.data;var S=H.appApi;var w=H.options;var A=Uzp(C,Ss3(S));H={};S={};return _.q("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.q("div",{class:_.eJ("ytInlinePlayerControlsDarkenedOverlay",(H.ytInlinePlayerControlsDarkenedOverlayShow=function(){return A().isHovering},H))}),_.q(pMp,null),_.q(DQi,{data:A}),_.q(KP_,{data:C}),_.q(Vjr,{playerControlsProps:A,
isShortsPage:!1}),_.q("div",{class:_.eJ((S.ytInlinePlayerControlsControlsHidden=function(){return A().isDragging},S))},_.q(tjo,{props:A,
data:C,options:w}),_.q(UQ9,{props:A,data:C,options:w})),_.q(_.T,{cond:function(){return s8i(C(),w())},
then:function(){return _.q(agt,{props:A,data:C,options:w})}}))},"bh"),"yt-inline-player-controls",{props:{data:_.GH,
appApi:_.Yb,options:_.GH}});var hp=function(){var H=_.X.apply(this,arguments)||this;H.opts=null;H.playerControlsData=null;H.playerControlsAppApi={openInMiniplayer:function(){H.openInMiniplayer()}};
H.playerControlsOptions={};H.noAnimation=!1;H.playbackIntentTriggered=!1;H.positionData=null;H.hidden=!0;H.active=!1;H.playing=!1;H.videoPreviewDataIndex=0;H.JSC$19190_playerPromise=null;H.player=null;H.enableAudioControls=!1;H.hasBeenUnmuted=!1;H.captionsHaveBeenTurnedOff=!1;H.JSC$19190_playerEvents=new Map;H.videoPreviewFetchRequest=null;H.scheduledPreviewEndJobId=null;H.JSC$19190_preventProgressSaveTimer=null;H.watchEndpointStartTimeUpdaterInterval=null;H.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};H.windowOnBlurFn=function(){H.deactivate()};
return H};
_.G(hp,_.X);_.F=hp.prototype;
_.F.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model"}}}};
_.F.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$19190_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19190_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$19190_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$19190_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.uA(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.uA(this,this.onScroll))};
_.F.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.uA(this,this.onScroll))};
_.F.onPageTypeChange=function(){this.deactivate()};
_.F.onWindowResized=function(){this.deactivate()};
_.F.onCaptionsChanged=function(H){H=!!H.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!H);this.setCaptionSize()};
_.F.setCaptionSize=function(){var H;if(this.active&&!this.captionsHaveBeenTurnedOff&&((H=this.player)==null?0:H.getCaptionWindowContainerId())){var C;(C=this.player)==null||C.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.F.currentPageAllowed=function(){return!this.isWatchPage};
_.F.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||!_.E("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var H=this.positionData,C=H.initialTopPosition,S=H.initialHorizontalPosition;_.Ed(this.hostElement,{"--ytd-video-preview-translate-left":H.finalHorizontalPosition-S+"px","--ytd-video-preview-translate-top":H.finalTopPosition-C+"px","--ytd-video-preview-original-top-position":C+
"px","--ytd-video-preview-original-horizontal-position":S+"px","--ytd-video-preview-initial-scale":"scale("+H.initialScale+")","--ytd-video-preview-width":H.videoPreviewWidth+"px","--ytd-video-preview-height":H.videoPreviewHeight+"px"});return!0};
_.F.isOutOfBounds=function(H){var C=H.initialHorizontalPosition+12;H=C+H.videoPreviewWidth>window.innerWidth;return C<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&C<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&C<72||H};
_.F.handleOpenVideoPreviewAction=function(H){var C=this,S;return _.z(function(w){if(!C.currentPageAllowed())return w.return(0);C.opts=H;return(S=C.alignVideoPreviewForAnimation(H.thumbnail))?w.return(C.activate()):w.return(0)})};
_.F.onMouseLeave=function(H){var C,S;(C=this.opts)==null||(S=C.mouseleaveCallback)==null||S.call(C);this.shouldDeactivateOnMouseLeave(H)&&this.deactivate()};
_.F.onScroll=function(){var H,C;((H=this.opts)==null?0:H.isAutoplay)&&((C=this.opts)==null?0:C.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.F.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.rT.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.F.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.F.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",hp.JSC$19189_DEFAULT_CLICK_LOCATION_BEHAVIOR,hp.JSC$19189_CLICK_LOCATION_ID_MAP)};
_.F.shouldDeactivateOnMouseLeave=function(H){H=H.relatedTarget;if(!H)return!0;var C;return(C=this.opts)!=null&&C.mediaRenderer?!_.WY(this.opts.mediaRenderer).contains(H):!0};
_.F.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.F.onPlaybackStart=function(){var H=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$19190_preventProgressSaveTimer=
_.Ns(_.rT,function(){H.resetPreventProgressSaveTimer()},1E4);
var C;if((C=this.opts)==null?0:C.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.Ns(_.rT,function(){H.hasMultipleVideoPreviews()?H.startPlaybackForNextVideo():H.deactivate()},this.opts.videoPreviewDurationMs);
var S;this.player.setGlobalCrop(((S=this.opts)==null?0:S.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.F.getRoundedCornersSize=function(){var H;if((H=this.opts)==null?0:H.roundedCornersSize){var C;return(C=this.opts)==null?void 0:C.roundedCornersSize}var S;if((S=this.opts)==null?0:S.enableRounding){var w;if(((w=this.opts)==null?void 0:w.thumbnailSize)==="small")return 1;var A;if(((A=this.opts)==null?void 0:A.thumbnailSize)==="medium")return 2;var J;if(((J=this.opts)==null?void 0:J.thumbnailSize)==="large")return 3}return _.E("web_imp_inset_progress_bar")?3:0};
_.F.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.F.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.F.onMediaContainerClick=function(H){this.isShortcutClick(H)||(this.navigateToWatch(H),H.preventDefault(),H.stopPropagation())};
_.F.activate=function(){var H=this,C,S,w,A,J,c,Y,M,m;return _.z(function(W){switch(W.nextAddress){case 1:if(!H.currentPageAllowed())return W.return(0);S=(C=H.videoPreviewData)==null?void 0:C.inlinePlaybackEndpoint;w=_.xb.instance;if(!S||!w)return W.return(0);H.playbackIntentTriggered=!0;((A=H.opts)==null?0:A.mediaRenderer)&&((J=H.opts)==null||!J.isAutoplay)&&p9p(H.opts.mediaRenderer,function(){H.deactivate()});
_.wM(H,function(){H.revealPreviewUi()});
c={};_.E("enable_unknown_lact_fix_on_html5")&&(_.JA().resolve(_.Qi),c.lact=_.cn());H.videoPreviewFetchRequest=OVp(w,H.getInlinePlaybackRequestData(H.videoPreviewData),c);_.en(W,2);return W.yield(H.videoPreviewFetchRequest,4);case 4:Y=W.yieldResult;if(((M=Y)==null?void 0:(m=M.playabilityStatus)==null?void 0:m.status)==="OK")return W.return(H.handlePlayerResponse(Y));throw Error("$j");case 2:_.Vx(W),H.deactivate();case 3:return W.return(1)}})};
_.F.getInlinePlaybackRequestData=function(H){var C,S=_.E("web_imp_player_mute_params")?((C=this.opts)==null?void 0:C.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:H.inlinePlaybackEndpoint,startPlaybackInMutedState:S}};
_.F.handlePlayerResponse=function(H){var C=this,S,w,A,J,c,Y,M,m,W,y,N;return _.z(function(b){if(b.nextAddress==1){S=C.getInlinePlaybackVideoId();if(!(((w=H)==null?0:(A=w.videoDetails)==null?0:A.videoId)&&C.currentPageAllowed()&&C.playbackIntentTriggered&&C.opts&&S))return C.deactivate(),b.return(0);if(H.videoDetails.videoId!==S)return b.return(0);C.enableAudioControls=!!((J=H.playerConfig)==null?0:(c=J.inlinePlaybackConfig)==null?0:c.showAudioControls);H.trackingParams=C.getInlinePlaybackTrackingParams();
if(!C.inlinePlayer)return b.return(0);Y={};if(m=_.e((M=C.videoPreviewData)==null?void 0:M.inlinePlaybackEndpoint,_.sX))Y.watch_endpoint=m;if(C.videoPreviewData){var u,O=(u=_.e(C.videoPreviewData.inlinePlaybackEndpoint,_.sX))==null?void 0:u.startTimeSeconds;O!==void 0&&(H.playerConfig||(H.playerConfig={}),H.playerConfig.playbackStartConfig||(H.playerConfig.playbackStartConfig={}),H.playerConfig.playbackStartConfig.startPosition||(H.playerConfig.playbackStartConfig.startPosition={}),H.playerConfig.playbackStartConfig.startSeconds=
O,H.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(O*1E3))}C.inlinePlayer.loadVideoWithPlayerResponse(H,Y);if(C.JSC$19190_playerPromise)return b.jumpTo(2);C.JSC$19190_playerPromise=C.inlinePlayer.getPlayerPromise();return b.yield(C.JSC$19190_playerPromise,3)}b.nextAddress!=2&&(W=b.yieldResult,W.setInlinePreview(!0),y=!_.E("web_imp_theater_bugfix"),W.setSizeStyle(!1,y),C.ytPlayerListenerBehavior.listenToPlayerEvents(W,C.JSC$19190_playerEvents),C.player=W,_.M3(C.hostElement,
"player-api-ready"));((N=C.opts)==null?0:N.showPlayerControls)&&C.videoPreviewData&&C.player&&(C.playerControlsData={playerResponse:H,isInlinePlayback:!0,thumbnailOverlays:C.videoPreviewData.thumbnailOverlays,playerApi:C.player},C.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!C.unroundCornersForPlayback,additionalButton:C.getAdditionalButtonType(C.videoPreviewData.thumbnailOverlays)});return b.return(2)})};
_.F.revealPreviewUi=function(){var H=this;this.playbackIntentTriggered&&_.w80(this,function(){H.hasThumbnailPositionChangedSinceTriggered()||(H.updateActiveState(!0),H.noAnimation=!1)})};
_.F.hasThumbnailPositionChangedSinceTriggered=function(){var H=this.positionData,C=this.getThumbnailPositionData();return(H==null?void 0:H.initialTopPosition)!==(C==null?void 0:C.initialTopPosition)||(H==null?void 0:H.initialHorizontalPosition)!==(C==null?void 0:C.initialHorizontalPosition)};
_.F.getThumbnailPositionData=function(){var H,C;if((C=this.opts)==null||!C.thumbnail)return null;C=this.opts.thumbnail;var S=((H=this.opts)==null?0:H.cropPlayerToFillThumbnailHorizontally)?!1:!0;var w=C.getBoundingClientRect();H=w.width;C=w.height;var A=w.top+window.scrollY;w=w.left+window.scrollX;var J=S?Math.ceil(H):H;S=S?Math.ceil(C):C;var c=H/J;H={initialScale:c,initialTopPosition:A-12*c,finalTopPosition:A-12-(S-C)/2,initialHorizontalPosition:w-(12+(J-H)/2),finalHorizontalPosition:w-12-(J-H)/
2,videoPreviewWidth:J,videoPreviewHeight:S};return H};
_.F.updateActiveState=function(H){this.active=H;this.ytdReduxBehavior.dispatch(_.Md({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:H}))};
_.F.stopPlayer=function(H){H=H.resetWatchEndpointStartTime===void 0?!1:H.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(H)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.rT.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.F.deactivate=function(H){H=H===void 0?{}:H;H=H.resetWatchEndpointStartTime===void 0?!1:H.resetWatchEndpointStartTime;xs&&(xs.disconnect(),xs=null);this.stopPlayer({resetWatchEndpointStartTime:H});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.F.isValidThumbnailOverlayButton=function(H,C){H=H.thumbnailOverlayButtonRenderer;var S;return!!H&&!!H.tooltip&&!((S=H.icon)==null||!S.iconType)&&C.includes(H.icon.iconType)};
_.F.isValidThumbnailOverlayButtonViewModel=function(H,C){var S;H=_.e((S=H.thumbnailOverlayButtonViewModel)==null?void 0:S.overlayButton,_.qc);return!!H&&!!H.title&&!!H.iconName&&C.includes(H.iconName)};
_.F.getAdditionalButtonType=function(H){var C=this;if(_.E("web_imp_fastforward_button"))return{button:1};if(_.E("web_imp_miniplayer_button"))return{button:2};if(_.E("web_imp_playback_speed_button"))return{button:3};var S=["BOX_STACK_3"],w=(H||[]).filter(function(J){return C.isValidThumbnailOverlayButton(J,S)}).map(function(J){return J.thumbnailOverlayButtonRenderer});
if(w.length)return{button:4,thumbnailOverlayButtonRenderers:w};var A=["BOX_STACK_3"];H=(H||[]).filter(function(J){return C.isValidThumbnailOverlayButtonViewModel(J,A)}).map(function(J){return _.e(J.thumbnailOverlayButtonViewModel.overlayButton,_.qc)});
if(H.length)return{button:4,thumbnailOverlayButtonViewModels:H}};
_.F.allowCaptions=function(){var H;return!((H=this.opts)==null?0:H.forceCaptionsOff)};
_.F.allowUnmuting=function(){var H;return this.enableAudioControls&&!((H=this.opts)==null?0:H.forceMutedVolume)};
_.F.beginStartTimeUpdater=function(){var H=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.NE(function(){H.updateWatchEndpointStartTime()},1E3)};
_.F.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.F.resetPreventProgressSaveTimer=function(){this.JSC$19190_preventProgressSaveTimer!==null&&(_.rT.cancelJob(this.JSC$19190_preventProgressSaveTimer),this.JSC$19190_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.F.updateWatchEndpointStartTime=function(H){var C=this.videoPreviewData;if(this.player&&C!=null&&C.inlinePlaybackEndpoint&&!this.JSC$19190_preventProgressSaveTimer){H=H?0:Math.floor(this.player.getCurrentTime());var S=_.e(C.navigationEndpoint,_.sX);S&&(S.startTimeSeconds=H);if(C=_.e(C.inlinePlaybackEndpoint,_.sX))C.startTimeSeconds=H}};
_.F.isShortcutClick=function(H){return!!H&&(H.ctrlKey||H.shiftKey||H.metaKey)};
_.F.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.F.openInMiniplayer=function(){var H=this,C,S;return _.z(function(w){if(w.nextAddress==1){S=(C=H.videoPreviewData)==null?void 0:C.navigationEndpoint;if(!S)return w.return();_.LO().lockupActivation=!0;return w.yield(_.QA7(_.JA().resolve(_.Df),S),2)}_.LO().userActivation=!0;_.oT(w)})};
_.F.navigateToWatch=function(H){var C,S=(C=this.videoPreviewData)==null?void 0:C.navigationEndpoint;if(S){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(S,H,!0);else{var w;_.E("web_thumbnail_to_watch_transition")&&((w=this.opts)==null?0:w.thumbnail)&&_.o8Y(_.JA().resolve(_.IC),this.opts.thumbnail);_.M3(this.hostElement,"yt-navigate",{endpoint:S})}this.deactivate()}};
_.F.getInlinePlaybackVideoId=function(){var H,C;return(C=_.e((H=this.videoPreviewData)==null?void 0:H.inlinePlaybackEndpoint,_.sX))==null?void 0:C.videoId};
_.F.getInlinePlaybackTrackingParams=function(){var H,C;return(H=this.videoPreviewData)==null?void 0:(C=H.inlinePlaybackEndpoint)==null?void 0:C.clickTrackingParams};
_.F.hasMultipleVideoPreviews=function(){var H;return!!(((H=this.opts)==null?0:H.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.F.startPlaybackForNextVideo=function(){var H;(H=this.opts)!=null&&H.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())};
_.JJ.Object.defineProperties(hp.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.opts)==null?0:H.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.opts)==null||!H.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 H;if(Array.isArray((H=this.opts)==null?void 0:H.videoPreviewData)){var C;return(C=this.opts)==null?void 0:C.videoPreviewData[this.videoPreviewDataIndex]}var S;return(S=this.opts)==null?void 0:S.videoPreviewData}}});
hp.prototype.onIsAdsVideoChange=hp.prototype.onIsAdsVideoChange;hp.prototype.onInlinePreviewIsEnabledChange=hp.prototype.onInlinePreviewIsEnabledChange;hp.prototype.optsChanged=hp.prototype.optsChanged;hp.prototype.onMouseLeave=hp.prototype.onMouseLeave;hp.JSC$19189_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);hp.JSC$19189_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"}];
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],hp.prototype,"actionHandlerBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],hp.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.fT.YtPlayerListenerBehavior),_.K("design:type",_.v_)],hp.prototype,"ytPlayerListenerBehavior",void 0);_.D([_.v(_.bU.YtdGuideStateAwareBehavior),_.K("design:type",Object)],hp.prototype,"ytdGuideStateAwareBehavior",void 0);
_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],hp.prototype,"componentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],hp.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],hp.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.P_.YtSparklesClickLocationBehavior),_.K("design:type",Object)],hp.prototype,"ytSparklesClickLocationBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],hp.prototype,"opts",void 0);
_.D([_.V(),_.K("design:type",Object)],hp.prototype,"playerControlsData",void 0);_.D([_.V(),_.K("design:type",Object)],hp.prototype,"playerControlsAppApi",void 0);_.D([_.V(),_.K("design:type",Object)],hp.prototype,"playerControlsOptions",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],hp.prototype,"noAnimation",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],hp.prototype,"hidden",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],hp.prototype,"active",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],hp.prototype,"playing",void 0);_.D([_.V({selector:_.mbp}),_.K("design:type",Boolean)],hp.prototype,"inlinePreviewIsEnabled",void 0);_.D([_.V(),_.K("design:type",String)],hp.prototype,"pagePath",void 0);_.D([_.V({selector:_.M8$}),_.K("design:type",Boolean)],hp.prototype,"isWatchPage",void 0);
_.D([_.l("videoPreviewData"),_.K("design:type",Object),_.K("design:paramtypes",[])],hp.prototype,"thumbnailData",null);_.D([_.l("opts","active"),_.V({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],hp.prototype,"hidePlayerControls",null);_.D([_.l("opts"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],hp.prototype,"isAdsVideo",null);
_.D([_.l("opts"),_.V({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],hp.prototype,"roundedCornersSmall",null);_.D([_.l("opts"),_.V({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],hp.prototype,"roundedCornersMedium",null);_.D([_.l("opts"),_.V({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],hp.prototype,"roundedCornersLarge",null);
_.D([_.l("opts"),_.V({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],hp.prototype,"unroundCornersForPlayback",null);_.D([_.l("opts","videoPreviewDataIndex"),_.K("design:type",Object),_.K("design:paramtypes",[])],hp.prototype,"videoPreviewData",null);_.D([_.V(),_.K("design:type",Object)],hp.prototype,"videoPreviewDataIndex",void 0);_.D([_.lA("#inline-player"),_.K("design:type",Object)],hp.prototype,"inlinePlayer",void 0);
_.D([_.Gz("mouseleave"),_.K("design:type",Function),_.K("design:paramtypes",[MouseEvent]),_.K("design:returntype")],hp.prototype,"onMouseLeave",null);_.D([_.XJ("opts"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hp.prototype,"optsChanged",null);_.D([_.XJ("inlinePreviewIsEnabled"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hp.prototype,"onInlinePreviewIsEnabledChange",null);
_.D([_.fx("isAdsVideo"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hp.prototype,"onIsAdsVideoChange",null);_.D([_.h({is:"ytd-video-preview",disableElementRegistration:!0})],hp);
_.B(hp,"ytd-video-preview",function(){if(lgK!==void 0)return lgK;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return lgK=H},{mode:2});
}catch(e){_._DumpException(e)}
try{
var PYh,$iB,p7D;PYh=function(H){return _.E("kevlar_watch_cinematics_invisible")||H.fullscreen&&_.E("kevlar_watch_cinematics_invisible_in_fullscreen")||H.theater&&!H.fullscreen&&_.E("kevlar_watch_cinematics_invisible_in_theater")};
$iB=function(){var H=document.createElement("canvas"),C=H.getContext("2d");if(!C)throw Error("Io");_.Io(H,{position:"absolute",width:"100%",height:"100%"});return{element:H,context:C}};
p7D=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.E("kevlar_watch_cinematics_css_blur")};
_.kdh=function(H,C,S){return Math.abs(H-C)<=(S||1E-6)};
_.hW7=function(H,C){return H==C?!0:H&&C?H.width==C.width&&H.height==C.height:!1};_.nMt=new _.mi("notificationActionRenderer");var r_v=function(H){var C=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.N5;this.element.addEventListener("load",function(){C.loaded=!0;C.resolver.resolve(C.element)});
this.element.addEventListener("error",function(){C.failed=!0});
this.element.src=H};var BUP=function(H,C){this.image=H;this.frame=C};
BUP.prototype.drawToCanvas=function(H,C){var S=this.frame.width/this.frame.columns,w=this.frame.height/this.frame.rows,A=C.offsetX,J=C.offsetY;PYh(C)?(H.fillStyle=C.fullscreen?"#000":"#0f0f0f",H.fillRect(A,J,(C==null?void 0:C.width)||S,(C==null?void 0:C.height)||w)):H.drawImage(this.image,this.frame.column*S,this.frame.row*w,S,w,A,J,(C==null?void 0:C.width)||S,(C==null?void 0:C.height)||w)};
var DiB=function(H){this.color=H};
DiB.prototype.drawToCanvas=function(H,C){var S=C.offsetX,w=C.offsetY,A=C.width,J=C.height;H.fillStyle=PYh(C)?C.fullscreen?"#000":"#0f0f0f":this.color;H.fillRect(S,w,A,J)};var mp=function(H,C){_.KI.call(this);this.playerApi=C;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.vj(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();K1h(this,H);t7T(this);this.update()};
_.G(mp,_.KI);mp.prototype.addEventListeners=function(){var H=this,C=function(){H.update()},S=function(A){H.paused||(A.type==="newdata"&&(H.mosaics.clear(),L17(H),W1(H)),t7T(H),H.update())},w=function(){H.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",C);this.playerApi.addEventListener("onVideoDataChange",S);this.playerApi.addEventListener("onStateChange",w);this.addOnDisposeCallback(function(){H.playerApi.removeEventListener("onVideoProgress",C);H.playerApi.removeEventListener("onVideoDataChange",S);H.playerApi.removeEventListener("onStateChange",w)})};
var K1h=function(H,C){H.cinematicContainerRenderer!==C&&(H.cinematicContainerRenderer=C,L17(H),W1(H),H.colorStoreUpdateJobId=_.rT.addLowPriorityJob(function(){var S;if((S=H.cinematicContainerRenderer.colorStore)!=null&&S.sampledColors){S=Infinity;for(var w=_.Z(H.cinematicContainerRenderer.colorStore.sampledColors),A=w.next();!A.done;A=w.next()){A=A.value;var J=Number(A.key);J!==0&&J<S&&(S=J);J=_.aw(A.value);H.colorStore.set(A.key,J)}H.colorStoreTimeInterval=S}}))},L17=function(H){H.colorStoreUpdateJobId&&
(_.rT.cancelJob(H.colorStoreUpdateJobId),H.colorStoreUpdateJobId=void 0);
H.colorStore.clear();H.currentStoryboardColor=void 0},gMB=function(H,C){var S;
return(S=H.getStoryboardFrame(C))==null?void 0:S.url};
mp.prototype.onPlayerStateChange=function(){this.update()};
mp.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var t7T=function(H){var C=H.getStoryboardFrame(0);C&&(C=new _.vj(C.width/C.columns,C.height/C.rows),_.hW7(H.currentStoryboardSize,C)||(H.currentStoryboardSize=C,H.publish("STORYBOARD_SIZE_CHANGED",H.currentStoryboardSize)))},Uit=function(H,C){H.currentStoryboardIndex=C;
H.pendingStoryboardIndex=NaN;C=H.getStoryboardFrame(H.currentStoryboardIndex);H.currentStoryboard=new BUP(H.mosaics.get(C.url).element,C);H.publish("STORYBOARD_CHANGED",H.currentStoryboard);H.lastUpdateTime=(0,_.Zt)()};
mp.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var W1=function(H){H.currentStoryboardIndex=NaN;H.pendingStoryboardIndex=NaN;H.currentStoryboard&&(H.currentStoryboard=void 0,H.publish("STORYBOARD_CHANGED",void 0));H.lastUpdateTime=NaN};
mp.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)W1(this);else{var H=this.playerApi.getPlayerState(1);if(H===-1||H===5||H===0)W1(this);else if(isNaN(this.lastUpdateTime)||!((0,_.Zt)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(H=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){H=""+Math.round(H*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var C=this.colorStore.get(H);C?C!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=C,this.currentStoryboard=new DiB(C),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.Zt)()):(_.Bn(new _.X0("Could not find color for timestamp: "+H,this.cinematicContainerRenderer)),W1(this))}else W1(this);else RWP(this,H)}};
var RWP=function(H,C){var S=H.getStoryboardFrameIndex(C);if(S!==H.currentStoryboardIndex&&S!==H.pendingStoryboardIndex){C=gMB(H,S);var w=H.mosaics.get(C);w?w.loaded&&Uit(H,S):(H.pendingStoryboardIndex=S,S=new r_v(C),H.mosaics.set(C,S),S.resolver.promise.then(function(){if(!H.isDisposed()&&!H.paused&&!isNaN(H.pendingStoryboardIndex)){var A=gMB(H,H.pendingStoryboardIndex);if(A){var J;(J=H.mosaics.get(A))!=null&&J.loaded&&Uit(H,H.pendingStoryboardIndex)}else W1(H)}}))}};
mp.prototype.getStoryboardFrameIndex=function(H){var C=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(H,C)};
mp.prototype.getStoryboardFrame=function(H){var C=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,S,w;return((w=(S=this.playerApi).getStoryboardFrame)==null?void 0:w.call(S,H,C))||null};
mp.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var NY=function(H,C,S,w){w=w===void 0?!1:w;_.Op.call(this);this.cinematicContainerRenderer=C;this.playerApi=S;this.theater=this.fullscreen=!1;var A;this.ambientLightThemeEnabled=!w&&!!(C==null?0:(A=C.config)==null?0:A.enableInLightTheme);this.ambientFullscreenEnabled=w&&_.E("web_cinematic_fullscreen");this.ambientTheaterModeEnabled=w&&_.E("web_cinematic_theater_mode");this.container=document.createElement("div");H.appendChild(this.container);var J;if(_.E("web_cinematic_theater_mode")||_.E("web_cinematic_fullscreen")||
(C==null?0:(J=C.config)==null?0:J.enableInLightTheme))this.ambientV2Container=document.createElement("div"),this.container.appendChild(this.ambientV2Container);I1c(this);H=this.ambientV2Container||this.container;this.backCanvas=$iB();this.frontCanvas=$iB();H.appendChild(this.backCanvas.element);H.appendChild(this.frontCanvas.element);this.storyboardManager=new mp(C,this.playerApi);_.Nx(this,this.storyboardManager);this.addEventListeners();a1h(this)?xiB(this,100+yc(this)*3*2,100+yc(this)*3*2):Hrv(this);
irh(this,this.storyboardManager.currentStoryboard)};
_.G(NY,_.Op);var I1c=function(H){H.ambientV2Container?CpB(H):(_.Io(H.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+S_V(H)+", "+sOB(H)+")"}),p7D()&&_.Io(H.container,"filter","blur("+_.YB("cinematic_watch_css_filter_blur_strength",40)+"px)"))},CpB=function(H){if(H.ambientV2Container){var C=H.playerApi.getVideoAspectRatio();
_.Io(H.container,{"aspect-ratio":""+C,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.Io(H.ambientV2Container,{"aspect-ratio":""+C,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+S_V(H)+", "+sOB(H)+")"});p7D()&&_.Io(H.ambientV2Container,"filter","blur("+_.YB("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
NY.prototype.setFullscreen=function(H,C){this.fullscreen=H;this.theater=!!C;I1c(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),H=this.storyboardManager.currentStoryboard,jOc(this),H&&w3r(this,H)};
NY.prototype.addEventListeners=function(){var H=this,C=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(A){irh(H,A)}),S=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){Hrv(H)});
this.addOnDisposeCallback(function(){H.storyboardManager.unsubscribeByKey(C);H.storyboardManager.unsubscribeByKey(S)});
if(this.ambientV2Container){var w=function(){CpB(H)};
this.playerApi.addEventListener("onVideoDataChange",w);this.addOnDisposeCallback(function(){H.playerApi.removeEventListener("onVideoDataChange",w)})}};
var Hrv=function(H){if(!a1h(H)){var C=H.storyboardManager.currentStoryboardSize;isNaN(C.width)||isNaN(C.height)||xiB(H,Number(C.width)+yc(H)*3*2,Number(C.height)+yc(H)*3*2)}},xiB=function(H,C,S){H.backCanvas.element.width=C;
H.backCanvas.element.height=S;H.frontCanvas.element.width=C;H.frontCanvas.element.height=S},a1h=function(H){return H.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},irh=function(H,C,S){S=S===void 0?!1:S;
var w=H.frontCanvas.element.getAnimations()[0];w?(w.pause(),H.backCanvas.context.globalAlpha=Number(getComputedStyle(H.frontCanvas.element).opacity),H.frontCanvas.element.style.opacity="0",w.finish()):H.backCanvas.context.globalAlpha=1;H.backCanvas.context.drawImage(H.frontCanvas.element,0,0,H.backCanvas.element.width,H.backCanvas.element.height);jOc(H);C&&w3r(H,C);C=C?H.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.YB("cinematic_watch_fade_out_duration",500);w=_.YB("cinematic_watch_transition_frame_rate")/
1E3;var A={};w&&(A={easing:"steps("+Math.round(C*w)+")"});(S===void 0?0:S)||H.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:C,iterations:1},A));H.frontCanvas.element.style.opacity="1"},jOc=function(H){var C=H.ambientLightThemeEnabled||H.ambientTheaterModeEnabled,S=H.ambientLightThemeEnabled||H.ambientFullscreenEnabled;
H.frontCanvas.context.fillStyle=H.theater&&C||H.fullscreen&&S?"#000":"#0f0f0f";p7D()||(H.frontCanvas.context.filter="blur(0)");H.frontCanvas.context.fillRect(0,0,H.frontCanvas.element.width,H.frontCanvas.element.height)},w3r=function(H,C){p7D()||(H.frontCanvas.context.filter="blur("+yc(H)+"px)");
H.frontCanvas.context.globalAlpha=H.fullscreen&&H.ambientFullscreenEnabled||H.theater&&H.ambientTheaterModeEnabled?_.YB("cinematic_watch_effect_letterbox_opacity",.4):_.YB("cinematic_watch_effect_opacity",.4);var S={offsetX:yc(H)*3,offsetY:yc(H)*3,theater:H.theater,fullscreen:H.fullscreen};a1h(H)&&(S.width=100,S.height=100);C.drawToCanvas(H.frontCanvas.context,S);H.frontCanvas.context.globalAlpha=1},yc=function(H){var C;
return(C=H.cinematicContainerRenderer.config.blurStrength)!=null?C:5},S_V=function(H){var C,S;
if((H.fullscreen||H.theater)&&((C=H.cinematicContainerRenderer.config)==null?0:(S=C.watchFullscreenConfig)==null?0:S.colorSourceWidthMultiplier))return H.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var w;return(w=H.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?w:H.cinematicContainerRenderer.config.colorSourceSizeMultiplier},sOB=function(H){var C,S;
if((H.fullscreen||H.theater)&&((C=H.cinematicContainerRenderer.config)==null?0:(S=C.watchFullscreenConfig)==null?0:S.colorSourceHeightMultiplier))return H.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var w;return(w=H.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?w:H.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
NY.prototype.disposeInternal=function(){_.Op.prototype.disposeInternal.call(this);this.container.remove()};
NY.prototype.clear=function(){irh(this,void 0,!0)};
NY.prototype.pause=function(){this.storyboardManager.pause()};var A9T;A9T=_.d1(function(){var H,C,S=!((C=(H=document.createElement("canvas")).getContext)==null||!C.call(H,"2d")),w;H=!((w=CSS)==null||!w.supports("filter: blur(0)"));w=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var A;return S&&H&&w&&!((A=CSS)==null||!A.supports("aspect-ratio: 1 / 1"))});
_.bv=function(H,C){_.KI.call(this);this.container=H;this.playerApi=C;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=J97(this);this.update()};
_.G(_.bv,_.KI);_.Fjv=function(H){var C=document.documentElement.hasAttribute("dark");H.isDarkModeEnabled=C;H.update()};
_.ZrT=function(H,C){H.settingEnabled=C;H.update()};
_.bv.prototype.setFullscreen=function(H,C){this.fullscreen=H;this.theater=!!C;this.update()};
_.c9B=function(H,C){H.cinematicContainerRenderer=C;H.cinematicContainerRenderer&&(H.cinematicsVe=_.y4(H.isShorts()?227858:159022),_.hd(_.lJ(),H.cinematicsVe),H.loggingClientData={watchCinematicContainerData:{presentationStyle:H.cinematicContainerRenderer.presentationStyle}});H.update()};
_.bv.prototype.isShorts=function(){var H,C;return((H=this.cinematicContainerRenderer)==null?void 0:(C=H.config)==null?void 0:C.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.bv.prototype.isAllowed=function(){var H;if(H=A9T()){var C,S,w;H=((S=this.cinematicContainerRenderer)==null?void 0:S.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((w=this.cinematicContainerRenderer)==null||!w.colorStore)||((C=this.cinematicContainerRenderer)==null?void 0:C.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(H)if(_.E("web_cinematics_pausing")){var A,J;H=this.isDarkModeEnabled||!!((A=this.cinematicContainerRenderer)==
null?0:(J=A.config)==null?0:J.enableInLightTheme)}else{var c,Y;A=!!((c=this.cinematicContainerRenderer)==null?0:(Y=c.config)==null?0:Y.enableInLightTheme)&&(_.rh("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);H=this.isDarkModeEnabled||A}if(c=H){var M,m;c=!((m=(M=this.prefersReducedMotionQuery)==null?void 0:M.matches)!=null&&m)}return c};
_.Y_P=function(H){(H=H.currentCinematicEffect)!=null&&(H=H.storyboardManager,H.paused=!1,t7T(H),H.update())};
_.bv.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var J97=function(H){if(!_.E("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var C=window.matchMedia("(prefers-reduced-motion: reduce)"),S=function(){H.update()};
C.addListener(S);H.addOnDisposeCallback(function(){C.removeListener(S)});
return C}};
_.bv.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var H=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new NY(this.container,H,this.playerApi,this.isDarkModeEnabled),_.Nx(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var C=this.currentCinematicEffect;C.cinematicContainerRenderer!==
H&&(C.cinematicContainerRenderer=H,K1h(C.storyboardManager,H),I1c(C));H=_.VN();_.ok(0,194,!0);H.save();H=_.Dg();this.cinematicsVe&&H&&_.ia(H,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(H=_.Dg(),this.cinematicsVe&&H&&_.C8(H,[this.cinematicsVe],!1,this.loggingClientData),_.Ak(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.JJ.Object.defineProperties(_.bv.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var J_D;var F1t;_.hr({_template:function(){if(F1t!==void 0)return F1t;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=
H.content,S=C.insertBefore;J_D===void 0&&(J_D=document.createElement("template"));var w=J_D;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return F1t=H},
is:"tp-yt-iron-pages",behaviors:[_.Ix,_.SU],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var AF3;_.JF3=function(){if(_.E("kevlar_home_skeleton")&&!AF3){var H=document.querySelector("#home-page-skeleton");H&&(_.DR("hgcr"),_.f6(H),AF3=!0)}};
AF3=!1;_.Cc=new _.mi("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var r8r,DYi,Kp9,tFp,LpO,gXo,UYR,RmO,auo,xYK,CGK,sLK,wEi,S89,Heo,ie9,FVo;_.nXO=function(H,C,S){C=C===void 0?5:C;if(C!==0){var w=typeof H==="function"?H():document.querySelector(H);w?(S==null?0:S.enableSmartFocus)?_.h37(w):w.focus():setTimeout(function(){_.nXO(H,C-1,S)},500)}};
r8r=function(H){return String.raw.apply(String,[{raw:H}].concat(_.k$(_.tc.apply(1,arguments).map(function(C){return C instanceof Array?C.join(""):C}))))};
DYi=function(H){var C=_.tc.apply(1,arguments),S=C.length;if(!Array.isArray(H)||!Array.isArray(H.raw)||H.length!==H.raw.length||!_.gEn&&H===H.raw||!(_.gEn&&!_.UDM||_.dP(H))||S+1!==H.length)throw new TypeError("$");return new BFr(Object.freeze({strings:Object.freeze(H),args:Object.freeze(C)}))};
Kp9=function(H){return _.rT7(_.nmW(H&16777215))<.5};
tFp=function(H,C,S){var w=S.minimumRowsOfVideosBetweenSections===void 0?1:S.minimumRowsOfVideosBetweenSections;return H<(S.minimumRowsOfVideosAtStart===void 0?2:S.minimumRowsOfVideosAtStart)||C!==null&&H-C<=w?!1:!0};
LpO=function(H,C){var S=0,w=0;H=_.Z(H);for(var A=H.next();!A.done;A=H.next()){var J=A.value;if(J.richItemRenderer)J.richItemRenderer.rowIndex=w,J.richItemRenderer.colIndex=S++,S===C&&(S=0,w++);else if(J.richGroupRenderer&&J.richGroupRenderer.numColumns!==void 0)J.richGroupRenderer.rowIndex=w,J.richGroupRenderer.colIndex=S,S+=J.richGroupRenderer.numColumns,S===C&&(S=0,w++);else if(J.richSectionRenderer){var c=A=void 0;if(J=_.e((A=J)==null?void 0:(c=A.richSectionRenderer)==null?void 0:c.content,_.Fib))J.rowIndex=
w++}}};
gXo=function(H,C){var S=C.contentElement;C=C.rendererToTagNameMap;if(S&&C&&C.size!==0){for(var w=new Map,A=_.Z(S.children),J=A.next();!J.done;J=A.next()){J=J.value;var c=J.tagName.toLowerCase(),Y=w.get(c);Y||(Y=[],w.set(c,Y));Y.push(J)}if(w.size!==0)for(A=Math.min(H.length,S.children.length),J=new Map,c=0;c<A;c++){Y=Object.keys(H[c])[0];Y=C.get(Y);if(!Y)break;var M=J.get(Y);M===void 0&&(M=0,J.set(Y,M));var m=w.get(Y);if(!m||M>=m.length)break;J.set(Y,M+1);Y=m[M];M=S.children[c];M!==Y&&(_.zG=!0,_.Ms.set(Y,
!0),S.insertBefore(Y,M),_.Ms.delete(Y),_.zG=!1)}}};
UYR=function(H,C,S,w,A,J,c){w=w===void 0?{}:w;if(!H||!H.length)return{orderedContent:[]};H=H.slice();var Y=[],M=[];A=null;for(var m=0,W=function(R){M.sort(function(g,ii){return ii.skippedOnRow-g.skippedOnRow});
for(var L,t=(L=M.shift())==null?void 0:L.content;t;)!t.richSectionRenderer&&R||Y.push(t),L=void 0,t=(L=M.shift())==null?void 0:L.content},y=void 0,N=void 0,b=new Set;H.length>0||M.length>0;){for(var u=[],O=C;O>0;){var d=void 0,p=void 0,k=(p=M[0]&&M[0].skippedOnRow<m?(d=M.shift())==null?void 0:d.content:void 0)!=null?p:H.shift();
if(!k)break;if(k.richItemRenderer)d=k.richItemRenderer.targetId,p=void 0,d&&((p=c)==null?0:p.has(d))&&(p=c.get(d),!y||p&&p.timestamp>y.timestamp)&&(y=p,N&&b.add(N),N=d),u.push(k),O--;else if(k.richGroupRenderer&&k.richGroupRenderer.numColumns!==void 0)k.richGroupRenderer.numColumns<=O?(u.push(k),O-=k.richGroupRenderer.numColumns):O===C&&k.richGroupRenderer.numColumns>C?(u.push({richGroupRenderer:Object.assign({},k.richGroupRenderer,{numColumns:C})}),O=0):M.push({content:k,skippedOnRow:m});else if(k.richSectionRenderer)if(tFp(m,
A,w)&&O===C){Y.push(k);A=m;m++;continue}else M.push({content:k,skippedOnRow:m});else if(k.continuationItemRenderer){W(!0);Y.push(k);O=0;break}if(O===0)Y.push.apply(Y,_.k$(u));else if(!S&&H.length===0){W(!1);Y.push.apply(Y,_.k$(u));O=0;break}}m++;y&&(Y.push(y.content),m++);N=y=void 0}LpO(Y,C);J&&gXo(Y,J);return{orderedContent:Y,pinnedContentNotShownTargetIds:b}};
RmO=function(){return _.tc.apply(0,arguments).flat().filter(function(H){return H}).join(";")};
auo=function(){return DYi(IuO,RmO.apply(null,_.k$(_.tc.apply(0,arguments))))};
xYK=function(H){switch(H){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
CGK=function(H,C){if(C){var S=_.AG().getState().entities.flowStateEntity,w=Heo(H),A=[C];w&&w!==C&&A.push(w);var J=!0,c;if(S&&H.flowStateEntityKey&&((c=S[H.flowStateEntityKey])==null?void 0:c.primaryButtonDisabled)!==void 0){var Y;J=!((Y=S[H.flowStateEntityKey])==null||!Y.primaryButtonDisabled)}ie9(H,w!=null?w:C,A,J)}};
sLK=function(H){return _.Uf(_.AG(),function(C){return C.entities.flowStateEntity},function(C,S){if(H.flowStateEntityKey){var w,A=C==null?void 0:(w=C[H.flowStateEntityKey])==null?void 0:w.currentStepId,J;
S=S==null?void 0:(J=S[H.flowStateEntityKey])==null?void 0:J.currentStepId;J=_.AG().getState().talkToRecs;if(A&&A!==S){var c;C=(C==null?void 0:(c=C[H.flowStateEntityKey])==null?void 0:c.stepIdStack)||Object.keys(J.stepStates);c=!S89(J==null?void 0:J.stepStates[A]);ie9(H,A,C,c)}}})};
wEi=function(H){return _.Uf(_.AG(),jLO,function(C){var S=Heo(H);if(S){var w=Object.keys(C.stepStates);C=!S89(C==null?void 0:C.stepStates[S]);ie9(H,S,w,C)}})};
S89=function(H){var C=Object.keys((H==null?void 0:H.selectionStates)||{}).reduce(function(J,c){return J||(H==null?void 0:H.selectionStates[c].isSelected)},!1),S,w,A=!!(H==null?0:(S=H.userQuery)==null?0:(w=S.userQuery)==null?0:w.trim());
return C||A};
Heo=function(H){if(H.flowStateEntityKey){var C,S,w=(C=_.AG().getState().entities.flowStateEntity)==null?void 0:(S=C[H.flowStateEntityKey])==null?void 0:S.currentStepId;if(w)return w}};
ie9=function(H,C,S,w){_.AG().dispatch(_.O5("flowStateEntity",H.flowStateEntityKey,{currentStepId:C,stepIdStack:S,key:H.flowStateEntityKey,primaryButtonDisabled:w}))};
_.A4p=function(H,C){return _.Ea(H.entities,"youchatPendingResponseEntity",C)};
_.J4i=function(H){return function(C){_.Ax(_.O5("youchatPendingResponseEntity",H,{entityKey:H,isPendingResponse:C}))}};
FVo=function(H){H==null||H.addEventListener("DOMLoaded",function(){H.goToAndPlay(H.totalFrames-48,!0)})};
_.wh=function(H){this.__isSoyCss=!0;this.css=r8r.apply(null,[H.strings].concat(_.k$(H.args)))};
_.wh.prototype.toString=function(){return this.css};
var BFr=function(){_.wh.apply(this,arguments)};
_.G(BFr,_.wh);var IuO=_.xC(["",""]);var Ze_;var c4o;_.hr({_template:function(){if(c4o!==void 0)return c4o;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);
var C=H.content,S=C.insertBefore;Ze_===void 0&&(Ze_=document.createElement("template"));var w=Ze_;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return c4o=H},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var Y8t=new _.mi("flowRootRenderer");var zO_=new _.mi("chipsShelfViewModel");var MlR=new _.mi("responsiveContainerConfiguration");_.q8O=new _.mi("engagementPanelSectionListRenderer");var TK_=function(){this.horizontal=!1},mS9=function(H,C){H.horizontal=C};
TK_.prototype.position=function(H,C,S,w){w=w===void 0?1:w;H=this.delta(H)*w+C;w=Math.max(C,S);return H>=Math.min(C,S)&&H<=w?H:S};
TK_.prototype.axis=function(H){H=this.direction(H);return H==="up"||H==="down"?"Y":"X"};var pG=function(H,C,S){C=C===void 0?_.Cw():C;this.target=H;this.manager=C;this.touchAction=S;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
pG.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(_.k$(this.events)));for(var H=_.Z(this.events),C=H.next();!C.done;C=H.next())this.listen(C.value)}};
pG.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.k$(this.events)));for(var H=_.Z(this.events),C=H.next();!C.done;C=H.next())this.unlisten(C.value)}};
pG.prototype.listen=function(H){this.eventMap[H]&&this.target.addEventListener(H,this.eventMap[H])};
pG.prototype.unlisten=function(H){this.eventMap[H]&&this.target.removeEventListener(H,this.eventMap[H])};var kx=function(){TK_.apply(this,arguments)};
_.G(kx,TK_);kx.prototype.direction=function(H){var C=H.detail;H=C.deltaY;C=C.deltaX;return H&&!this.horizontal?H>0?"down":"up":C&&this.horizontal?C>0?"right":"left":"none"};
kx.prototype.distance=function(H){return Math.abs(this.delta(H))};
kx.prototype.delta=function(H){var C=this.direction(H),S=H.detail;H=S.deltaX;S=S.deltaY;return C==="up"||C==="down"?S||0:H||0};
kx.prototype.velocity=function(H){var C=this.direction(H),S=H.detail;H=S.velocityX;S=S.velocityY;return Math.abs(C==="up"||C==="down"?S||0:H||0)};_.hI=function(H,C,S,w,A,J){A=A===void 0?new kx:A;J=J===void 0?_.Cw():J;pG.call(this,C,J,w);var c=this;this.element=H;this.target=C;this.config=S;this.input=A;this.manager=J;this.events=["panstart","panmove","panend"];this.onPanStart=function(){c.config.draggingClass&&c.element.classList.add(c.config.draggingClass);c.config.startAction&&c.config.startAction()};
this.onPanMove=function(Y){var M=WVi(c,Y);if(M){c.move(Y,M);M.fade&&c.fade(Y,M);var m=c.input.direction(Y);M.moveAction&&M.moveAction(y4t(c,Y,M),m)}};
this.onPanEnd=function(Y){var M,m,W,y,N,b;return _.z(function(u){if(u.nextAddress==1){c.animationRequestId&&cancelAnimationFrame(c.animationRequestId);c.animationRequestId=void 0;M=WVi(c,Y);if(!M)return u.return();m=M;W=m.triggerAction;y=m.fade;N=m.disableFinish;b=m.translateBack;var O=c.input.velocity(Y),d=c.input.distance(Y),p=c.threshold(M);return O>.3&&d>10||d>p?N?u.jumpTo(6):y?u.yield(NKp(c,Y),6):u.yield(bei(c,Y,M),6):b?u.yield(c.translateBack(Y),3):u.jumpTo(3)}u.nextAddress!=3&&W&&W();c.config.draggingClass&&
c.element.classList.remove(c.config.draggingClass);c.reset();_.oT(u)})};
H=Object.keys(S.triggers);this.directions=new Set(H);mS9(this.input,this.directions.has("right")||this.directions.has("left"))};
_.G(_.hI,pG);_.hI.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var WVi=function(H,C){C=H.input.direction(C);return H.config.triggers[C]};
_.hI.prototype.move=function(H,C){var S=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var w=S.input.axis(H),A=S.input.position(H,S.config.startPosition,C.endPosition,C.moveRatio||1);S.element.style.transform="translate"+w+"("+A+"px)";S.animationRequestId=void 0}))};
var y4t=function(H,C,S){var w=S.moveRatio||1;S=Math.abs(H.config.startPosition-S.endPosition);return Math.min(H.input.distance(C)*w,S)/S};
_.hI.prototype.fade=function(H,C){var S=C.endOpacity;H=y4t(this,H,C);H>0&&(this.element.style.opacity=""+(((S||0)-1)*H+1))};
_.hI.prototype.threshold=function(H){return H.threshold?H.threshold:Math.abs(H.endPosition-this.config.startPosition)/3};
var bei=function(H,C,S){var w,A,J,c,Y,M,m;return _.z(function(W){if(W.nextAddress==1)return w=H.input.delta(C)+H.config.startPosition,A=H.input.axis(C),J=S,c=J.endPosition,Y=J.transitionEndPosition,m=(M=Y)!=null?M:c,W.yield(H.element.animate([{transform:"translate"+A+"("+w+"px)"},{transform:"translate"+A+"("+m+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);H.element.style.transform="translate"+A+"("+m+"px)";_.oT(W)})};
_.hI.prototype.translateBack=function(H){var C=this,S,w;return _.z(function(A){if(A.nextAddress==1){if(!C.element.style.transform)return A.return();S=C.input.axis(H);w=C.config.startPosition;return A.yield(C.element.animate([{transform:C.element.style.transform},{transform:"translate"+S+"("+w+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}C.element.style.transform="translate"+S+"("+w+"px)";_.oT(A)})};
var NKp=function(H,C){var S,w,A,J;return _.z(function(c){if(c.nextAddress==1)return S=H.input.delta(C)+H.config.startPosition,w=H.input.axis(C),A=S+70,J=H.element.style.opacity===""?1:H.element.style.opacity,c.yield(H.element.animate([{transform:"translate"+w+"("+S+"px)",opacity:J},{transform:"translate"+w+"("+A+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);H.element.style.transform="translate"+w+"("+A+"px)";H.element.style.opacity="0";_.oT(c)})};var nG=function(){var H=_.oZ.apply(this,arguments)||this;H._noAccessors=!0;H.scrollRate=3;H.autoScrollAnimationStart=0;H.autoScrollPaused=!1;H.autoScrollRafId=0;return H};
_.G(nG,_.oZ);_.F=nG.prototype;_.F.created=function(){var H=this;this.boundAutoScrollHandler=function(C){H.autoScroll(C)}};
_.F.detached=function(){this.hostElement.removeEventListener("mouseout",_.uA(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.uA(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.uA(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.F.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.uA(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.uA(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.uA(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.uA(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.uA(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.uA(this,this.endAutoScroll)),this.endAutoScroll())};
_.F.autoScroll=function(H){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=H);var C;if(C=!this.autoScrollPaused&&this.scrollTarget)C=this.scrollTarget,C=C.scrollHeight-C.scrollTop!==C.clientHeight;C&&(C=1E3/this.scrollRate,H-=this.autoScrollAnimationStart,H>C&&(this.scrollTarget.scrollTop+=Math.ceil(H/C),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.F.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.F.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
nG.prototype.autoScrollEnabledChanged=nG.prototype.autoScrollEnabledChanged;_.D([_.V(),_.K("design:type",Object)],nG.prototype,"scrollRate",void 0);_.D([_.V(),_.K("design:type",Object)],nG.prototype,"scrollTarget",void 0);_.D([_.V(),_.K("design:type",Boolean)],nG.prototype,"autoScrollEnabled",void 0);_.D([_.fx("autoScrollEnabled"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],nG.prototype,"autoScrollEnabledChanged",null);_.D([_.Od()],nG);_.E5o=[nG.prototype];var eOi;var ry=function(){var H=_.X.apply(this,arguments)||this;H.buttonUpdate=_.E("web_button_rework");H.dismissButtonOverrides=_.E("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;H.forceDarkTheme=!1;H.forceLightTheme=!1;H.dynamicTextHeight=94;H.hasOverflowButton=!1;H.isInfeedModernization=!1;return H};
_.G(ry,_.X);_.F=ry.prototype;_.F.computeUrlImg=function(H){if(H)return _.m3(H.thumbnails)};
_.F.getLogoHeight=function(H){return this.logoWithPadding(H)?"31":"24"};
_.F.getLogoClassName=function(H){return this.logoWithPadding(H)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.F.logoWithPadding=function(H){var C,S;return(H=(C=H.thumbnails)==null?void 0:(S=C[0])==null?void 0:S.height)&&H%31===0?!0:!1};
_.F.sendImpressionEndpoints=function(H){H.impressionEndpoints&&_.WH(this.hostElement,H.impressionEndpoints)};
_.F.observeBasicPalette=function(){var H,C,S=(H=this.data)==null?void 0:(C=H.colorData)==null?void 0:C.basicColorPaletteData;S?_.pu(this.hostElement,S):_.pu(this.hostElement,{})};
_.F.observeDataChanged=function(){var H;this.dynamicTextHeight=((H=this.data)==null?0:H.supplementalText)?74:94;var C;this.hasSupplementalText=!((C=this.data)==null||!C.supplementalText);if(_.E("web_button_rework")){var S,w,A,J;H=(S=this.data)==null?void 0:(w=S.actionButton)==null?void 0:(A=w.buttonRenderer)==null?void 0:(J=A.colorData)==null?void 0:J.basicColorPaletteData;var c,Y,M;if(!((c=this.data)==null?0:(Y=c.actionButton)==null?0:(M=Y.buttonRenderer)==null?0:M.style)&&H){this.computeIsInfeedModernization(this.data)||
(H.borderColor=H.foregroundTitleColor);var m,W;this.set("data.actionButton.buttonRenderer",_.hb.unsafeClone((m=this.data)==null?void 0:(W=m.actionButton)==null?void 0:W.buttonRenderer))}}};
_.F.observeDataForCounterfactual=function(){if(_.E("kevlar_banner_cf_extra_logging")){var H;((H=this.data)==null?0:H.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.F.computeSupplementalStyle=function(){var H;if((H=this.data)!=null&&H.supplementalText){var C,S,w;if((C=this.data)==null?0:(S=C.colorData)==null?0:(w=S.basicColorPaletteData)==null?0:w.foregroundActivatedColor)return H=_.Iw(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+H+"; --yt-endpoint-hover-color:"+H+"; --yt-endpoint-visited-color:"+H+"; --yt-formatted-string-bold-font-weight:700;"}};
_.F.computeForcedDarkTheme=function(){var H,C,S,w=(H=this.data)==null?void 0:(C=H.actionButton)==null?void 0:(S=C.buttonRenderer)==null?void 0:S.style,A,J,c;H=Kp9(((A=this.data)==null?void 0:(J=A.colorData)==null?void 0:(c=J.basicColorPaletteData)==null?void 0:c.backgroundColor)||0);return w&&H};
_.F.computeForcedLightTheme=function(){var H,C,S,w=(H=this.data)==null?void 0:(C=H.actionButton)==null?void 0:(S=C.buttonRenderer)==null?void 0:S.style,A,J,c;H=!Kp9(((A=this.data)==null?void 0:(J=A.colorData)==null?void 0:(c=J.basicColorPaletteData)==null?void 0:c.backgroundColor)||0);return w&&H};
_.F.computeHasOverflowButton=function(H){return!!H.overflowButton};
_.F.computeHasTitle=function(H){return!!H.title};
_.F.computeTitleMaxFontSize=function(H){return this.computeHasOverflowButton(H)?28:64};
_.F.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.F.computeIsInfeedModernization=function(){var H,C,S,w,A=(H=this.data)==null?void 0:(C=H.actionButton)==null?void 0:(S=C.buttonRenderer)==null?void 0:(w=S.colorData)==null?void 0:w.basicColorPaletteData;return(A==null?void 0:A.backgroundColor)===452984831||(A==null?void 0:A.backgroundColor)===218103808};
ry.prototype.observeDataForCounterfactual=ry.prototype.observeDataForCounterfactual;ry.prototype.observeDataChanged=ry.prototype.observeDataChanged;ry.prototype.observeBasicPalette=ry.prototype.observeBasicPalette;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],ry.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.m4),_.K("design:type",Object)],ry.prototype,"ytdDismissibleItemBehavior",void 0);
_.D([_.v(_.bU.YtdGuideStateAwareBehavior),_.K("design:type",Object)],ry.prototype,"ytdGuideStateAwareBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],ry.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],ry.prototype,"buttonUpdate",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],ry.prototype,"hasSupplementalText",void 0);_.D([_.V(),_.K("design:type",Object)],ry.prototype,"dismissButtonOverrides",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.K("design:type",Boolean)],ry.prototype,"hasTitle",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.K("design:type",Object)],ry.prototype,"forceDarkTheme",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.K("design:type",Object)],ry.prototype,"forceLightTheme",void 0);_.D([_.V(),_.K("design:type",Object)],ry.prototype,"dynamicTextHeight",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.K("design:type",Object)],ry.prototype,"hasOverflowButton",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.K("design:type",Object)],ry.prototype,"isInfeedModernization",void 0);_.D([_.fx("data.colorData.basicColorPaletteData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ry.prototype,"observeBasicPalette",null);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ry.prototype,"observeDataChanged",null);_.D([_.fx("data.isVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ry.prototype,"observeDataForCounterfactual",null);_.D([_.h({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],ry);
_.B(ry,"ytd-banner-promo-renderer",function(){if(eOi!==void 0)return eOi;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return eOi=H},{mode:1});var ugi;var Gso;var fdK;var v59=function(){return _.X.apply(this,arguments)||this};
_.G(v59,_.X);_.D([_.V(),_.K("design:type",Object)],v59.prototype,"data",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],v59.prototype,"ytRendererBehavior",void 0);_.D([_.h({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],v59);
_.B(v59,"ytd-hashtag-grid-tile-renderer",function(){if(fdK!==void 0)return fdK;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return fdK=H},{mode:1});var B2=function(){return _.X.apply(this,arguments)||this};
_.G(B2,_.X);B2.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
B2.prototype.updateRichGridTrendingHashtagsVisibility=function(){var H,C;if(((H=this.data)==null||!H.isExpanded)&&(C=this.data)!=null&&C.tiles){H=this.data.tiles.length;C=H>this.richGridItemsPerRow?this.richGridItemsPerRow+1:H;var S=Math.ceil(H/C);this.fullyVisibleRows=H%C===1&&S===2?1:Math.min(S,2);this.isShowMoreVisible=this.fullyVisibleRows<S}};
B2.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
B2.prototype.updateRichGridTrendingHashtagsVisibility=B2.prototype.updateRichGridTrendingHashtagsVisibility;_.D([_.V(),_.K("design:type",Object)],B2.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Number)],B2.prototype,"fullyVisibleRows",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],B2.prototype,"isShowMoreVisible",void 0);_.D([_.V({selector:_.BF,value:0}),_.K("design:type",Number)],B2.prototype,"richGridItemsPerRow",void 0);
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],B2.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],B2.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],B2.prototype,"ytdReduxBehavior",void 0);_.D([_.fx("data","richGridItemsPerRow"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],B2.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.D([_.h({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],B2);
_.B(B2,"ytd-hashtag-grid-shelf-renderer",function(){if(Gso!==void 0)return Gso;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Gso=H},{mode:1});var ldK;var Vlo;var Dm=function(){var H=_.X.apply(this,arguments)||this;H.visibleVideos=[];H.hiddenVideos=[];H.modern=_.E("web_modern_buttons");H.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return H};
_.G(Dm,_.X);_.F=Dm.prototype;_.F.attached=function(){var H=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",H);this.onDarkModeToggledAction(H)};
_.F.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"}}}};
_.F.dataChanged=function(){var H=this;this.requestElementsPerRow();var C,S;this.currentColorPalette=this.isDarkTheme?(C=this.data)==null?void 0:C.darkColorData:(S=this.data)==null?void 0:S.lightColorData;var w;if((w=this.currentColorPalette)==null?0:w.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.wM(this,function(){H.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.F.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.F.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.F.computeIsFirstFeedItem=function(H){return H};
_.F.onDarkModeToggledAction=function(H){H!==this.isDarkTheme&&this.set("isDarkTheme",H);this.data&&(this.currentColorPalette=H?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.F.getCurrentLogo=function(H,C){if(H)return C?H.darkLogoImage:H.lightLogoImage};
_.F.computeTitleStyle=function(H){var C;if((C=this.data)!=null&&C.title&&H&&H.textPrimary!==void 0)return"color:"+_.Iw(H.textPrimary)+";"};
_.F.computeSubtitleStyle=function(H){var C;if((C=this.data)!=null&&C.subtitle&&H&&H.textSecondary!==void 0)return"color:"+_.Iw(H.textSecondary)+";"};
_.F.computeDismissIconStyle=function(H){if(this.data&&this.data.dismissButton&&H&&H.textPrimary!==void 0)return"--yt-button-color:"+_.Iw(H.textPrimary)+";"};
_.F.computeOverflowButtonStyle=function(H){if(this.data&&this.data.overflowButton&&H&&H.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.Iw(H.textPrimary)+";--yt-spec-icon-active-other:"+_.Iw(H.textPrimary)+";"};
_.F.computeBackgroundStyle=function(H){if(H&&this.data){var C="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var S=_.m3((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);S&&(C+='background-image:url("'+S+'");')}H.backgroundColor!==void 0&&(C+="background-color:"+_.aw(H.backgroundColor)+";");return C}};
_.F.computeButton=function(){var H,C=Object.assign({},_.e((H=this.data)==null?void 0:H.showMoreButton,_.cg));if(this.modern&&C){C.style="STYLE_MONO_OUTLINE";var S;if(H=(S=this.currentColorPalette)==null?void 0:S.textPrimary)C.colorData={basicColorPaletteData:{foregroundTitleColor:H,borderColor:H}}}return C};
_.F.shouldShowBottomButton=function(H,C){return!(H==null?0:H.header)&&!(H==null||!H.primaryButton)&&C<3};
_.F.checkExpanded=function(H){this.isExpanded=H&&H.content?this.hiddenVideos.length===0:!0};
_.F.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.F.getLogoHeight=function(H){return this.logoWithPadding(H)?"26":"20"};
_.F.getLogoImageId=function(H){return this.logoWithPadding(H)?"logo-image-with-padding":"logo-image"};
_.F.computeHasSectionHeader=function(H){return!!H.header};
_.F.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var H;if((H=this.data.primaryButton)==null?0:H.buttonRenderer)this.currentColorPalette.primaryButtonColorData?(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorPalette.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",Object.assign({},this.data.primaryButton.buttonRenderer));var C;((C=this.data.dismissButton)==null?0:C.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var S,w;((S=this.data)==null?0:(w=S.primaryButton)==null?0:w.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.F.setVisibleVideos=function(H){if(this.data&&this.data.content)if(this.data.content.length){var C=this.data.content.length;this.data.header?H?(this.visibleVideos=this.data.content.slice(0,Math.min(C,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(C,this.slimItemsPerRow),C)):(this.visibleVideos=this.data.content.slice(0,Math.min(C,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(C,this.elementsPerRow),C)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(C,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(C,this.elementsPerRow),C)):(this.visibleVideos=this.data.content.slice(0,Math.min(C,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(C,this.elementsPerRow-1),C))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.F.setHasMovieRenderer=function(){var H;if((H=this.data)!=null&&H.content){var C;this.hasMovieRenderer=!!_.e((C=this.data)==null?void 0:C.content[0],_.z1P)}else this.hasMovieRenderer=!1};
_.F.requestElementsPerRow=function(){_.M3(this.hostElement,"yt-request-elements-per-row")};
_.F.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var H=_.Z(this.hiddenMediaRenderers),C=H.next();!C.done;C=H.next())C.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(H=_.mY(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&H.focus()}};
_.F.updateTitleSpec=function(){var H;(H=this.data)!=null&&H.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.F.logoWithPadding=function(H){var C,S,w;return(H=(C=this.getCurrentLogo(H,this.isDarkTheme))==null?void 0:(S=C.thumbnails)==null?void 0:(w=S[0])==null?void 0:w.height)&&H%31===0?!0:!1};
_.F.onUpdateElementsPerRowAction=function(H,C,S){H&&this.elementsPerRow!==H&&(this.elementsPerRow=H);S&&this.slimItemsPerRow!==S&&(this.slimItemsPerRow=S)};
Dm.prototype.slimItemsPerRowChanged=Dm.prototype.slimItemsPerRowChanged;Dm.prototype.elementsPerRowChanged=Dm.prototype.elementsPerRowChanged;Dm.prototype.dataChanged=Dm.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Dm.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Dm.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.m4),_.K("design:type",Object)],Dm.prototype,"ytdDismissibleItemBehavior",void 0);
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],Dm.prototype,"actionHandlerBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],Dm.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Dm.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],Dm.prototype,"currentColorPalette",void 0);_.D([_.V(),_.K("design:type",Array)],Dm.prototype,"visibleVideos",void 0);_.D([_.V(),_.K("design:type",Array)],Dm.prototype,"hiddenVideos",void 0);
_.D([_.V(),_.K("design:type",Object)],Dm.prototype,"primaryButton",void 0);_.D([_.V({reflectToAttribute:!0,value:3}),_.K("design:type",Number)],Dm.prototype,"elementsPerRow",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Dm.prototype,"isDarkTheme",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Dm.prototype,"isExpanded",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Dm.prototype,"largeTitle",void 0);
_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Dm.prototype,"hasMovieRenderer",void 0);_.D([_.V(),_.K("design:type",Number)],Dm.prototype,"slimItemsPerRow",void 0);_.D([_.V(),_.K("design:type",Boolean)],Dm.prototype,"showLightVideoMetadata",void 0);_.D([_.V(),_.K("design:type",Boolean)],Dm.prototype,"showDarkVideoMetadata",void 0);_.D([_.V(),_.K("design:type",Number)],Dm.prototype,"videoMetadataColor",void 0);
_.D([_.V({reflectToAttribute:!0,selector:_.rB}),_.K("design:type",Boolean)],Dm.prototype,"miniMode",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.K("design:type",Boolean)],Dm.prototype,"isFirstFeedItem",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.K("design:type",Boolean)],Dm.prototype,"hasSectionHeader",void 0);
_.D([_.V({reflectToAttribute:!0,value:!0}),_.K("design:type",Boolean)],Dm.prototype,"roundedContainer",void 0);_.D([_.VQ("#visible-video-container ytd-rich-grid-media"),_.K("design:type",Array)],Dm.prototype,"visibleMediaRenderers",void 0);_.D([_.VQ("#hidden-video-container ytd-rich-grid-media"),_.K("design:type",Array)],Dm.prototype,"hiddenMediaRenderers",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Dm.prototype,"modern",void 0);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Dm.prototype,"dataChanged",null);_.D([_.fx("elementsPerRow"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Dm.prototype,"elementsPerRowChanged",null);_.D([_.fx("slimItemsPerRow"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Dm.prototype,"slimItemsPerRowChanged",null);
_.D([_.h({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],Dm);
_.B(Dm,"ytd-brand-video-shelf-renderer",function(){if(Vlo!==void 0)return Vlo;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Vlo=H},{mode:1});var o5_;var KG=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return H};
_.G(KG,_.X);_.F=KG.prototype;_.F.attached=function(){var H=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",H);this.onDarkModeToggledAction(H)};
_.F.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"}}}};
_.F.dataChanged=function(){this.requestElementsPerRow();var H,C;this.currentColorPalette=this.isDarkTheme?(H=this.data)==null?void 0:H.darkColorData:(C=this.data)==null?void 0:C.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.F.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.F.computeIsFirstFeedItem=function(H){return H};
_.F.onDarkModeToggledAction=function(H){H!==this.isDarkTheme&&this.set("isDarkTheme",H);this.data&&(this.currentColorPalette=H?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(H),this.updateButtonPalette())};
_.F.shouldShowThumbnailInMetadata=function(H){return H<=1};
_.F.computeVideoMetadataColor=function(){if(this.data){var H;if((H=this.currentColorPalette)==null?0:H.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.F.computeTitleStyle=function(H){var C;if((C=this.data)!=null&&C.title&&H&&H.textPrimary!==void 0)return"color:"+_.Iw(H.textPrimary)+";"};
_.F.computeSubtitleStyle=function(H){var C;if((C=this.data)!=null&&C.subtitle&&H&&H.textSecondary!==void 0)return"color:"+_.Iw(H.textSecondary)+";"};
_.F.computeOverflowButtonStyle=function(H){if(this.data&&this.data.overflowButton&&H.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.Iw(H.textPrimary)+";--yt-spec-icon-active-other:"+_.Iw(H.textPrimary)+";"};
_.F.computeBackgroundStyle=function(H){if(H&&this.data){var C="";H.backgroundColor!==void 0&&(C+="background-color:"+_.aw(H.backgroundColor)+";");return C}};
_.F.computeHasOverflowButton=function(H){return!!H.overflowButton};
_.F.updateButtonPalette=function(){if(this.data){var H;if((H=this.data.primaryButton)==null?0:H.buttonRenderer){var C;if((C=this.currentColorPalette)==null?0:C.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var S;((S=this.currentColorPalette)==null?0:S.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)})}}};
_.F.requestElementsPerRow=function(){_.M3(this.hostElement,"yt-request-elements-per-row")};
_.F.updateTitleSpec=function(){var H;(H=this.data)!=null&&H.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")};
_.F.onUpdateElementsPerRowAction=function(H){H&&this.elementsPerRow!==H&&(this.elementsPerRow=H)};
KG.prototype.elementsPerRowChanged=KG.prototype.elementsPerRowChanged;KG.prototype.dataChanged=KG.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],KG.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],KG.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.m4),_.K("design:type",Object)],KG.prototype,"ytdDismissibleItemBehavior",void 0);
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],KG.prototype,"actionHandlerBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],KG.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],KG.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],KG.prototype,"currentColorPalette",void 0);_.D([_.V(),_.K("design:type",Object)],KG.prototype,"primaryButton",void 0);
_.D([_.V({reflectToAttribute:!0,value:3}),_.K("design:type",Number)],KG.prototype,"elementsPerRow",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],KG.prototype,"isDarkTheme",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",String)],KG.prototype,"titleSize",void 0);_.D([_.V(),_.K("design:type",Number)],KG.prototype,"videoMetadataColor",void 0);_.D([_.V({reflectToAttribute:!0,selector:_.rB}),_.K("design:type",Boolean)],KG.prototype,"miniMode",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.K("design:type",Boolean)],KG.prototype,"isFirstFeedItem",void 0);_.D([_.V({reflectToAttribute:!0,value:!0}),_.K("design:type",Boolean)],KG.prototype,"roundedContainer",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.K("design:type",Boolean)],KG.prototype,"hasOverflowButton",void 0);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],KG.prototype,"dataChanged",null);_.D([_.fx("elementsPerRow"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],KG.prototype,"elementsPerRowChanged",null);_.D([_.h({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],KG);
_.B(KG,"ytd-brand-video-singleton-renderer",function(){if(o5_!==void 0)return o5_;var H=document.createElement("template");_.f(H,'\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>');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return o5_=H},{mode:_.mn("kevlar_poly_si_batch_j070")?1:2});var Oe9;var XEK=_.n(function(H){var C=H.data;return _.q(_.Jg,{data:function(){return C().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(C().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var S=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":S=88;break a;default:S=88}return S},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return C().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"ik"),dSr=_.n(function(H){var C=H.metadataRow;
var S=H.delimiter;return _.q(_.Vq,{each:function(){return C().textParts||[]},
keyBy:"INDEX"},function(w,A){return _.q(_.F9,null,_.q(_.uZ,{text:w,noWrap:!0,userInput:!0}),_.q(QL9,{delimiter:S,max:function(){return C().textParts.length},
index:A}))})},"jk"),QL9=_.n(function(H){var C=H.delimiter;
var S=H.max;var w=H.index;return _.q(_.T,{cond:function(){return(C==null?void 0:C())&&S()-1>w()},
then:function(){return _.q("span",null,C)}})},"kk"),PGp=_.n(function(H){var C=H.data;
H={};return _.q("yt-profile-page-header-information-view-model",{class:_.eJ("profilePageHeaderInformationViewModelHost",(H.profilePageHeaderInformationViewModelMobile=!1,H))},_.q(_.T,{cond:function(){return C().onTap},
then:function(){return _.q(_.$4,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.L7(C().onTap)}},_.q(_.V4,{data:function(){return C().thumbnail}},{profilePageHeaderThumbnailViewModel:XEK}))},
else:function(){return _.q("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.q(_.V4,{data:function(){return C().thumbnail}},{profilePageHeaderThumbnailViewModel:XEK}))}}),_.q("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.q(_.T,{cond:function(){return C().onTap},
then:function(){return _.q(_.V4,{data:function(){return C().title}},{profilePageHeaderTitleViewModel:function(S){var w=S.data;
return _.q(_.$4,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.L7(w().onTap)}},_.q(_.uZ,{text:function(){return w().title}}))}})},
else:function(){return _.q(_.V4,{data:function(){return C().title}},{profilePageHeaderTitleViewModel:function(S){var w=S.data;
return _.q(_.uZ,{text:function(){return w().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.q(_.V4,{data:function(){return C().metadata}},{profilePageHeaderMetadataViewModel:function(S){var w=S.data;
return _.q(_.T,{cond:function(){return w().metadataRows},
then:function(A){return _.q("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.q(_.Vq,{each:A,keyBy:"INDEX"},function(J,c){return _.q(_.F9,null,_.q(dSr,{metadataRow:J,delimiter:" \u2022 "}),_.q(QL9,{delimiter:" \u2022 ",max:function(){return A().length},
index:c}))}))}})}})))},"lk");
PGp.idomCompat=!0;_.qs(PGp,"yt-profile-page-header-information-view-model",{props:{data:_.GH}});var tI=function(){return _.X.apply(this,arguments)||this};
_.G(tI,_.X);tI.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],tI.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],tI.prototype,"data",void 0);_.D([_.h({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],tI);
_.B(tI,"ytd-effect-pivot-header-view-model",function(){if(Oe9!==void 0)return Oe9;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return Oe9=
H},{mode:1});var $SO;var LG=function(){return _.X.apply(this,arguments)||this};
_.G(LG,_.X);LG.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],LG.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],LG.prototype,"data",void 0);_.D([_.h({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],LG);
_.B(LG,"ytd-source-pivot-header-renderer",function(){if($SO!==void 0)return $SO;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return $SO=H},{mode:1});_.pEO=_.n(function(H){var C=H.data;var S=function(){var w;return _.rw((w=C())==null?void 0:w.rendererContext)};
H={};return _.q("content-list-item-view-model",{el:_.Zl(_.Bt(function(){return C().rendererContext})),
class:_.eJ("ytContentListItemViewModelHost",(H.ytContentListItemViewModelTappable=S,H)),role:function(){return S()?"listitem":void 0},
tabindex:function(){return S()?0:void 0}},_.q("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.q("div",{class:"ytContentListItemViewModelImageContainer"},_.q(_.T,{cond:function(){return C().image},
then:function(w){return _.q(_.Jg,{data:w,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.q(_.V4,{data:function(){var w;
return(w=C())==null?void 0:w.avatar}},{avatarViewModel:_.ZT})),_.q("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.q("div",{class:_.eJ("ytContentListItemViewModelTitle",function(){a:{switch(C().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var w="ytContentListItemViewModelProminentTitle";
break a}w=void 0}return w})},_.q(_.uZ,{text:function(){return C().title}})),_.q("div",{class:"ytContentListItemViewModelMetadata"},_.q(_.V4,{data:function(){return C().metadata}},{contentMetadataViewModel:function(w){return _.q(_.pt,{data:w.data,
layout:1})}})))),_.q("div",{class:"ytContentListItemViewModelActionButton"},_.q(_.V4,{data:function(){var w;
return(w=C())==null?void 0:w.actionButton}},{buttonViewModel:_.rc,
toggleButtonViewModel:_.Jv})))},"mk");var ks9=_.n(function(H){var C=function(){return H.data().background},S=function(){return H.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},w=function(){return H.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"};
return _.q("yt-card-view-model",{el:_.Zl(_.Bt(function(){return H.data().rendererContext})),
class:_.eJ("ytCardViewModelHost",H.className)},_.q(_.kn,{contentId:function(){return H.data().contentId}},function(){return _.q("div",{class:_.eJ("ytCardViewModelCardViewModelInner",function(){return xYK(H.data().cardStyle)},function(){var A;
a:{switch((A=H.data().cardState)==null?void 0:A.selectionState){case "CARD_SELECTION_STATE_SELECTED":A="ytCardViewModelSelected";break a}A=void 0}return A})},_.q(_.V4,{data:C},{cinematicContainerViewModel:function(A){return _.q(_.B_V,{data:A.data})}}),_.q("div",{class:"ytCardViewModelContentWrapper"},_.q(_.T,{cond:function(){return!S()},
then:function(){var A={};return _.q("div",{class:"ytCardViewModelTopContentContainer"},_.q("div",{class:"ytCardViewModelTopContent"},_.q(_.V4,{data:function(){return H.data().topContent}},{contentListItemViewModel:function(J){return _.q(_.pEO,{data:J.data})}})),_.q("div",{class:_.eJ("ytCardViewModelInlineTrailingAction",(A.ytCardViewModelInlineCenterTrailingAction=w,A))},_.q(_.V4,{data:function(){return H.data().trailingAction}},{buttonViewModel:function(J){return _.q(_.rc,{data:J.data})}})))}}),
_.q("div",{class:"ytCardViewModelBodyContent"},_.q(_.V4,{data:function(){return H.data().bodyContent}},{contentListItemViewModel:_.pEO,
listItemViewModel:_.MA,linearLayoutViewModel:_.icU,descriptionPreviewViewModel:_.Dr}))),_.q(_.T,{cond:function(){return S()},
then:function(){return _.q("div",{class:"ytCardViewModelOverlayTrailingAction"},_.q(_.V4,{data:function(){return H.data().trailingAction}},{buttonViewModel:function(A){return _.q(_.rc,{data:A.data})}}))}}))}))},"nk");_.qs(ks9,"yt-card-view-model",{props:{data:_.GH,className:_.GH}});var jLO=_.NMo.talkToRecsStateSelector;_.qs(_.n(function(H){var C=function(){return _.e(H.data().flowRoot,Y8t)};
_.$T(function(){var S=C(),w=function(){},A=function(){};
if(S){var J,c,Y,M=((Y=_.e((J=C())==null?void 0:(c=J.steps)==null?void 0:c[0],_.ytR))==null?void 0:Y.stepId)||"";CGK(S,M);w=sLK(S);A=wEi(S)}_.PN(function(){var m=C();m&&_.AG().dispatch(_.O5("flowStateEntity",m.flowStateEntityKey));w();w=function(){};
A();A=function(){}})});
return _.q("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.q(_.kn,{contentId:function(){return H.data().contentId}},function(){return _.q("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.q(_.T,{cond:C,
then:function(S){return _.q(_.v_q,{data:S})}}))}))},"ok"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.GH}});_.qs(_.n(function(){return _.q("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.q("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.q("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.q(_.fRt,null)),_.q(_.hy_,{data:{rows:1},isExploreHub:!0}))},"pk"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.qs(_.n(function(H){var C=H.data;var S=H.standardUnitMinWidth;H=_.Z((0,_.DBi)(C));var w=H.next().value,A=H.next().value,J=function(){var Y,M=(Y=w())==null?void 0:Y.contents;return M==null||M.length===0},c=function(){A(Object.assign({},w(),{contents:[]}))};
return _.q("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.Zl(_.c5({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var Y=_.e(C().chipsShelf,zO_);if(Y!=null&&Y!=null&&Y.autoselectChipOnVisible){var M,m,W=_.e(Y==null?void 0:(M=Y.contents)==null?void 0:M[(m=Y.autoselectedChipIndex)!=null?m:0],_.TN);W&&W.tapCommand&&_.Im(W.tapCommand)}}}))},_.q(_.kn,{contentId:function(){return C().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.q("div",null,_.q("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.q(_.V4,{data:function(){return C().header}},{sectionHeaderViewModel:function(Y){return _.q(_.KS,{data:Y.data,
disableHorizontalPadding:!0})}})),_.q("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.q(_.V4,{data:function(){return C().chipsShelf}},{chipsShelfViewModel:function(Y){return _.q(_.Y7,{data:Y.data,
callback:c,selectionBehavior:1})}})),_.q("div",null,_.q(_.T,{cond:J,
then:function(){return _.q("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.q(_.hy_,{data:{rows:1},isExploreHub:!0}))}}),_.q(_.V4,{data:function(){var Y;
return(Y=w())==null?void 0:Y.contents}},{richShelfRenderer:function(Y){return _.q(_.RhW,{data:Y.data,
isInnerShelf:!0,standardUnitMinWidth:S})}})))}))},"qk"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.GH,
standardUnitMinWidth:_.GH}});var gy=function(){return _.X.apply(this,arguments)||this};
_.G(gy,_.X);
gy.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}}};
gy.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.D([_.v(_.q$),_.K("design:type",Object)],gy.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],gy.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.EH),_.K("design:type",Object)],gy.prototype,"ytContinuationHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],gy.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],gy.prototype,"data",void 0);
_.D([_.V(),_.K("design:type",Number)],gy.prototype,"standardUnitMinWidth",void 0);_.D([_.h({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],gy);
_.B(gy,"ytd-rich-section-renderer",function(){if(ldK!==void 0)return ldK;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return ldK=H},{mode:_.mn("kevlar_poly_si_batch_j029")?
1:2});_.qs(_.DKO,"yt-profile-identity-info-view-model",{props:{data:_.GH,hideDivider:_.GH,isChannelInfoCard:_.GH}});_.qs(_.Ij_,"yt-page-header-view-model",{props:{data:_.GH,noPadding:_.GH,enableBanner:_.GH,cinematicContainerTopbarOffset:_.GH,allowCinematicContainerOverflow:_.GH,displayAsSidebar:_.GH,displayAsPanel:_.GH,alwaysUseMediumTextDescription:_.GH}});_.qs(_.n(function(H){var C=H.data;var S=function(){var A;return(A=C().numColumns)!=null?A:2},w=function(){return S()>1?3:2};
H={};return _.q("ytd-rich-grid-group",{class:_.eJ("ytdRichGridGroupHost",(H.ytdRichGridGroupHostFirstColumn=function(){return C().colIndex===0},H)),
style:_.vb({"--ytd-rich-grid-group-num-columns":S,"--ytd-rich-grid-items-per-group":w})},_.q("div",{class:"ytdRichGridGroupContents"},_.q(_.V4,{data:function(){var A;return(A=C().contents)==null?void 0:A.slice(0,w())}},{richItemRenderer:function(A){return _.q(_.g87,{data:A.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"rk"),"ytd-rich-grid-group",{props:{data:_.GH}});var hOr=_.R$.persistentPanelVisibleSelector,UL=function(){var H=_.X.apply(this,arguments)||this;H.resizeOnObserverInit=!1;H.isInlinePreviewDisabled=_.E("web_disable_inline_preview");H.disableStickyFilterBar=!1;H.transparentBackgroundChipsBar=!1;H.hideChipsBar=!1;H.isWatchDefaultLayout=!0;H.continuationShowButton=!1;H.rowReducedHorizontalMargin=!1;H.useCompactList=!1;H.manualDownloadsPresent=!1;H.smartDownloadsPresent=!1;H.isOnline=!1;H.shouldRenderDownloadsBanner=!1;H.shouldRenderDownloadsBannerUpsell=
!1;H.hasOptedIntoSmartDownloads=!1;H.elementsPerRow=4;H.typographyBump=!1;H.slimItemsPerRow=1;H.pageLoadingFromNavigation=!1;H.resizeObserver=null;H.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"};H.rendererToTagNameMap=
new Map(Object.entries(H.contentMapping()).map(function(C){var S=_.Z(C);C=S.next().value;S=S.next().value;return[C,S.component]}));
H.insertedContent=new Map;return H};
_.G(UL,_.X);_.F=UL.prototype;_.F.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var H=_.Z(_.mY(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),C=H.next();!C.done;C=H.next())C.value.useCompactList=this.useCompactList};
_.F.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var H=_.Z(_.mY(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),C=H.next();!C.done;C=H.next())C=C.value,C.sizing=this.sizing,C.typographyBump=this.typographyBump};
_.F.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.F.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]]"}}}};
_.F.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}}};
_.F.attached=function(){document.addEventListener("yt-page-type-changed",_.uA(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$21969_throttledOnResize=new _.I$(this.resizeObserved,_.YB("rich_grid_resize_delay_ms",50),this)};
_.F.detached=function(){var H;(H=this.resizeObserver)==null||H.disconnect();document.removeEventListener("yt-page-type-changed",_.uA(this,this.onPageChange))};
_.F.insertRichSection=function(H){var C=H.richItemTargetId;H=H.richSectionRendererToInsert;C&&H&&(this.insertedContent.set(C,{content:H,timestamp:Date.now()}),this.reflowContent())};
_.F.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.F.computeIsInlinePreviewEnabled=function(H,C,S){return _.E("web_disable_inline_preview")?!1:!S&&_.j8t({miniplayerIsActive:H,miniplayerPlaybackState:C})};
_.F.computeSizing=function(){var H=_.TDw(this.data);if(H||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return H?this.useCompactList?"COMPACT":H:this.miniMode?"COMPACT":"STANDARD"};
_.F.updateItemMinAndMaxWidth=function(){var H=_.YB("rich_grid_max_item_width",500);H>0&&_.Ed(this.hostElement,{"--ytd-rich-grid-item-max-width":H+"px"});var C;H=this.getRichItemMinWidth((C=this.hostElement)==null?void 0:C.clientWidth);H>0&&_.Ed(this.hostElement,{"--ytd-rich-grid-item-min-width":H+"px"})};
_.F.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.F.resizeObserved=function(){_.m7(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.F.onPageChange=function(){var H=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.m7(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.rT.addJob(function(){H.pageLoadingFromNavigation=!1;H.setMasthead();H.maybeSetBigYoodle();H.forceRefreshAndLog();H.terminateVideoPreview()},8)):this.mastheadData&&(this.mastheadData=void 0)};
_.F.dataChanged=function(){var H=this;_.m7(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.wM(this,function(){H.updateRichItemGridPositions();H.contentsElement&&_.Ed(H.hostElement,{"--ytd-rich-grid-content-offset-top":H.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.F.initResizeObserver=function(){var H=this;if(window.ResizeObserver){var C;(C=this.resizeObserver)==null||C.disconnect();var S=!1;this.resizeObserver=new ResizeObserver(function(){if(S){var w;(w=H.resizeObserver)==null||w.disconnect();var A;(A=H.JSC$21969_throttledOnResize)==null||A.fire();requestAnimationFrame(function(){var c;(c=H.JSC$21969_throttledOnResize)==null||c.fire();H.initResizeObserver()})}else if(S=!0,H.resizeOnObserverInit){var J;
(J=H.JSC$21969_throttledOnResize)==null||J.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.F.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.m7(this.hostElement,"ytd-rich-item-index-update-action")};
_.F.updateElementsPerRow=function(){_.m7(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.Md({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.Md({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.F.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.F.onRichShelfRendererCollapse=function(H){if(this.shownItems){var C=H.detail;H=this.shownItems.findIndex(function(w){var A,J;return((J=_.e(w==null?void 0:(A=w.richSectionRenderer)==null?void 0:A.content,_.Fib))==null?void 0:J.trackingParams)===C});
var S=H+1;H<0||S>=this.contentsElement.children.length||!this.shownItems[S].richItemRenderer||this.contentsElement.children[S].scrollIntoView({behavior:"smooth",block:"start"})}};
_.F.onSoftReloadPage=function(){this.scrollUpToTop()};
_.F.handleRerenderDownloadsData=function(){_.E("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.F.handlePlaylistRemoveVideosAction=function(H){var C;if(((C=_.e(H,_.fKi))==null?0:C.setVideoIds)&&this.data&&this.data.contents){H=_.e(H,_.fKi).setVideoIds;for(C=this.data.contents.length-1;C>=0;){var S=_.e(this.data.contents[C],_.I4);(S=S&&_.e(S.content,_.Z3))&&S.setVideoId&&H.includes(S.setVideoId)&&this.splice("data.contents",C,1);C--}this.updateIndices()}};
_.F.updateIndices=function(){if(this.data&&this.data.contents)for(var H=0;H<this.data.contents.length;H++)this.set("data.contents."+H+".richItemRenderer.index",_.sx(String(H+1)))};
_.F.hasTopRowInlinePlayableVideoWithEndorsement=function(H){var C;return!((C=H.slice(0,this.getItemsPerRow()))==null||!C.some(function(S){var w;S=_.e(S==null?void 0:(w=S.richItemRenderer)==null?void 0:w.content,_.zN);var A;return(S==null?void 0:S.inlinePlaybackEndpoint)&&(S==null?void 0:(A=S.thumbnailOverlays)==null?void 0:A.some(function(J){return J.thumbnailOverlayEndorsementRenderer}))}))};
_.F.refreshGridLayoutNew=function(H,C,S,w){var A=w.postsPerRow;var J=w.slimItemsPerRow;var c=w.gameCardsPerRow;w=w.miniGameCardsPerRow;var Y;if((Y=this.data)==null||!Y.contents||!this.containerWidth)return!1;var M;if((M=this.data.responsiveContainerConfiguration)==null?0:M.responsiveSize){var m=_.LKZ(this.data.responsiveContainerConfiguration,this.containerWidth),W;Y=_.gw(Object.assign({},m,{standardUnitMinWidth:(W=this.data)==null?void 0:W.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&m.isCompactList)}else Y=_.gw({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(m=this.data)==null?void 0:m.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=Y.typographyBump;W=!1;if(H||this.elementsPerRow!==Y.numItems||this.postsPerRow!==A||this.slimItemsPerRow!==J||this.gameCardsPerRow!==
c||this.miniGameCardsPerRow!==w||this.gutter!==Y.gutter)W=this.elementsPerRow!==Y.numItems,this.elementsPerRow=Y.numItems,this.postsPerRow=A,this.slimItemsPerRow=J,this.gameCardsPerRow=c,this.miniGameCardsPerRow=w,this.gutter=Y.gutter,this.itemWidth=Y.itemWidth,this.reflowContent(C),_.Ed(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":Y.gutter+"px","--ytd-rich-grid-posts-per-row":""+this.postsPerRow,"--ytd-rich-grid-slim-items-per-row":""+this.slimItemsPerRow,
"--ytd-rich-grid-game-cards-per-row":""+this.gameCardsPerRow,"--ytd-rich-grid-mini-game-cards-per-row":""+this.miniGameCardsPerRow}),this.updateElementsPerRow(),this.updateMiniMode(S);this.ytdReduxBehavior.dispatch(_.Md({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:Y.maxContainerWidth}));return W};
_.F.refreshGridLayout=function(H,C){var S,w=(S=this.hostElement)==null?void 0:S.clientWidth;this.containerWidth=this.adjustRichGridWidth(w,!0);var A;if((A=this.data)==null||!A.contents||!this.containerWidth)return H&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(H=!0,this.pendingForceReflow=!1);S=this.getRichItemMinWidth(w);var J=this.isShortsPanel?146:194,c=this.getMiniGameCardMinWidth(),Y=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;w=S=this.calcElementsPerRow(S,
Y);(A=S<=3&&this.miniModeAllowed())&&(S=this.calcElementsPerRow(240,4));var M=this.calcMaxSlimElementsPerRow(S,Y,this.isDefaultGrid);Y=this.calcElementsPerRow(J,M);var m=this.calcElementsPerRow(this.isCompactGrid?J:154,M);J=this.calcElementsPerRow(this.isCompactGrid?J:c,M);c=!1;if(this.sizing)return this.refreshGridLayoutNew(H,C,A,{postsPerRow:w,slimItemsPerRow:Y,gameCardsPerRow:m,miniGameCardsPerRow:J});if(H||this.elementsPerRow!==S||this.postsPerRow!==w||this.slimItemsPerRow!==Y||this.gameCardsPerRow!==
m||this.miniGameCardsPerRow!==J)c=this.elementsPerRow!==S,this.elementsPerRow=S,this.postsPerRow=w,this.slimItemsPerRow=Y,this.gameCardsPerRow=m,this.miniGameCardsPerRow=J,this.reflowContent(C),this.updateElementsPerRow(),_.Ed(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)&&_.Ed(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(A);_.m7(this.hostElement,"yt-rich-grid-layout-refreshed");return c};
_.F.getRichItemMinWidth=function(H){var C=_.YB("rich_grid_min_item_width",310);if(!_.E("kevlar_disable_min_width_override")){var S,w;C=(w=(S=this.data)==null?void 0:S.minItemWidth)!=null?w:C}return C+_.FGi(H)};
_.F.calcMaxSlimElementsPerRow=function(H,C,S){return(S===void 0?0:S)?H===1?2:H%2===0?H/2*3:H+2:C*2};
_.F.adjustRichGridWidth=function(H,C){var S=_.E("disable_rich_grid_guide_compensation");if(!this.isWatch&&!S){S=_.JA().resolve(_.AA(_.N$));var w=S==null?void 0:S.guideElement;if(!(!S||S.getData()||w!=null&&w.opened||S.getMiniGuideVisible()))if(S.canFitPersistentGuide(H)&&S.getGuideExpandsAutomatically()){var A,J,c=Number((A=window.getComputedStyle(this.hostElement))==null?void 0:(J=A.getPropertyValue("--app-drawer-width"))==null?void 0:J.replace("px",""));H-=c||0}else if(S.canFitMiniGuide(H)){var Y;
A=Number((c=window.getComputedStyle(this.hostElement))==null?void 0:(Y=c.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:Y.replace("px",""));H-=A||0}}H-=this.persistentPanelVisible?400:0;H>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(H-=C?32:48));return H};
_.F.calcElementsPerRow=function(H,C){var S=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),w=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((S+w)/(H+w))||1,C)};
_.F.reflowContent=function(H){var C=this;if(!this.isReflowing){this.isReflowing=!0;var S,w,A=!!((S=this.data)==null?0:(w=S.contents)==null?0:w.some(function(Y){return _.e(Y,_.S9)}));
S=this.getItemsPerRow();var J;w=(J=this.data)==null?void 0:J.reflowOptions;H&&(_.DR("rgr_s"),_.wM(this,function(){_.DR("rgr_nrf")}));
H={};(J=_.mY(this.hostElement).querySelector("#contents"))&&(H={contentElement:J,rendererToTagNameMap:this.rendererToTagNameMap});J=(J=this.data.contents)?J.slice():[];A=UYR(J,S,A,w,this.getRichGridStyle(),H,this.insertedContent);var c=A.orderedContent;if(A=A.pinnedContentNotShownTargetIds)for(A=_.Z(A),S=A.next();!S.done;S=A.next())this.insertedContent.delete(S.value);A=function(){C.shownItems=c;C.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(c),_.wM(this,A)):A()}};
_.F.getFirstRowItems=function(H){for(var C=[],S=0;S<H.length;S++){var w=void 0,A=void 0,J=void 0,c=void 0,Y=void 0,M=void 0;if(((w=H[S])==null?void 0:(A=w.richItemRenderer)==null?void 0:A.rowIndex)===0||((J=H[S])==null?void 0:(c=J.richGroupRenderer)==null?void 0:c.rowIndex)===0||((Y=H[S])==null?void 0:(M=Y.richSectionRenderer)==null?void 0:M.rowIndex)===0)C.push(H[S]);else break}return C};
_.F.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.F.resetInsertedContentIfNeeded=function(){(_.E("web_explore_hub_on_hover")||_.E("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.F.handleChipCloudChipSelectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed()};
_.F.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.F.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.F.terminateVideoPreview=function(){_.m7(this.hostElement,"yt-terminate-video-preview-action")};
_.F.updateRichItemGridPositions=function(){var H={gridData:{gridColumnCount:this.elementsPerRow}},C;((C=this.data)==null?0:C.trackingParams)&&(C=_.Dg())&&_.jp(C,_.Qh(this.data.trackingParams),H);_.m7(this.hostElement,"ytd-rich-item-index-update-action")};
_.F.miniModeAllowed=function(){return this.isChannelPage};
_.F.getMiniGameCardMinWidth=function(){return 154};
_.F.updateMiniMode=function(H){this.miniMode=this.miniModeAllowed()&&H;this.ytdReduxBehavior.dispatch(_.Md({type:"SET_RICH_GRID_MINI_MODE",payload:H}))};
_.F.isCurrentPage=function(){return location.pathname===this.pagePath};
_.F.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var H=_.JA().resolve(_.JB).getCurrentPage();H&&H.setScrollTop(0)}};
_.F.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.F.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.F.maybeSetBigYoodle=function(){var H,C=(H=this.data)==null?void 0:H.bigYoodle;this.bigYoodleData!==C&&(this.bigYoodleData=C)};
_.F.setMasthead=function(){var H;((H=this.data)==null?0:H.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.F.getRichGridStyle=function(){var H,C;return(C=(H=this.data)==null?void 0:H.style)!=null?C:"RICH_GRID_STYLE_UNKNOWN"};
_.F.onIsShortsGridChange=function(){var H=this.ytdReduxBehavior,C=H.dispatch,S=this.getRichGridStyle();C.call(H,_.Md({type:"SET_RICH_GRID_STYLE",payload:S}))};
_.JJ.Object.defineProperties(UL.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var H;return(((H=this.data)==null?void 0:H.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var H;return(((H=this.data)==null?void 0:H.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var H=_.JA().resolve(_.JB).getCurrentPage(),C,S,w;return(((C=this.data)==null?void 0:C.targetId)==="browse-feedFEsfv_audio_pivot"||_.E("web_enable_channel_pivot_panel")&&((S=this.data)==null?void 0:S.targetId)==="browse-feedFEsfv_channel_pivot"||_.E("web_enable_effect_pivot_panel")&&((w=this.data)==null?void 0:w.targetId)==="browse-feedFEsfv_effect_pivot")&&(H==null?void 0:H.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.E("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 H;return!((H=this.data)==null?0:H.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var H;return((H=_.JA().resolve(_.JB).getCurrentPage())==null?void 0:H.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var H;return((H=_.JA().resolve(_.JB).getCurrentPage())==null?void 0:H.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var H;return(((H=this.data)==null?void 0:H.targetId)||"")==="watch-next-feed"&&!_.E("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var H,C,S;return((H=this.data)==null?0:H.enableContentSpecificAspectRatio)||((C=this.data)==null?0:(S=C.responsiveContainerConfiguration)==null?0:S.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.YB("web_continuation_handler_margin",0):0}}});
UL.prototype.onIsShortsGridChange=UL.prototype.onIsShortsGridChange;UL.prototype.onReloadContinuationFinish=UL.prototype.onReloadContinuationFinish;UL.prototype.reflowContent=UL.prototype.reflowContent;UL.prototype.handleRerenderDownloadsData=UL.prototype.handleRerenderDownloadsData;UL.prototype.onRichShelfRendererCollapse=UL.prototype.onRichShelfRendererCollapse;UL.prototype.onRequestElementsPerRow=UL.prototype.onRequestElementsPerRow;UL.prototype.contentLengthChanged=UL.prototype.contentLengthChanged;
UL.prototype.dataChanged=UL.prototype.dataChanged;UL.prototype.onSizingChange=UL.prototype.onSizingChange;UL.prototype.onUseCompactListChange=UL.prototype.onUseCompactListChange;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],UL.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],UL.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.Ix),_.K("design:type",Object)],UL.prototype,"ironResizableBehavior",void 0);
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],UL.prototype,"actionHandlerBehavior",void 0);_.D([_.v(_.EH),_.K("design:type",Object)],UL.prototype,"ytContinuationHandlerBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],UL.prototype,"componentBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],UL.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],UL.prototype,"data",void 0);
_.D([_.V({reflectToAttribute:!0,selector:_.rB}),_.K("design:type",Boolean)],UL.prototype,"miniMode",void 0);_.D([_.V({value:[]}),_.K("design:type",Array)],UL.prototype,"shownItems",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],UL.prototype,"isReflowing",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],UL.prototype,"isFilteredFeed",void 0);_.D([_.V({selector:_.YeV}),_.K("design:type",Boolean)],UL.prototype,"guideIsExpanded",void 0);
_.D([_.V({selectorArgs:["entitySelectorType"],selector:function(H,C){if(_.E("kevlar_modern_downloads_page")&&C&&C!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(C){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":C=H.entities;var S=_.k6(C),w=_.hf(C),A=_.oeU(H),J=_.V8E(H),c=_.O$D(H),Y=_.CoV(C),M=_.X_(S),m=_.n8(C);return _.hyV(S,w,Y,_.wPw(C),A,J,M,m,c,_.QiE(H),_.tf(H));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return H=_.k6(H.entities),_.reE(H);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return H=
_.xc6(H.entities),_.BrW(H);default:_.Bn(new _.X0("Error: entitySelectorType defined but not matched in selector.",H,C))}}}),
_.K("design:type",Object)],UL.prototype,"entityDrivenRichGridData",void 0);_.D([_.V(),_.K("design:type",Object)],UL.prototype,"resizeOnObserverInit",void 0);_.D([_.V(),_.K("design:type",Object)],UL.prototype,"bigYoodleData",void 0);_.D([_.V(),_.K("design:type",Object)],UL.prototype,"mastheadData",void 0);_.D([_.V(),_.K("design:type",Boolean)],UL.prototype,"isInlinePreviewDisabled",void 0);_.D([_.V(),_.K("design:type",Object)],UL.prototype,"disableStickyFilterBar",void 0);
_.D([_.V(),_.K("design:type",Object)],UL.prototype,"transparentBackgroundChipsBar",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],UL.prototype,"hideChipsBar",void 0);_.D([_.V(),_.K("design:type",Object)],UL.prototype,"isWatchDefaultLayout",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],UL.prototype,"continuationShowButton",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],UL.prototype,"rowReducedHorizontalMargin",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],UL.prototype,"useCompactList",void 0);_.D([_.V({selector:function(H){return _.hf(H.entities).length>0}}),
_.K("design:type",Object)],UL.prototype,"manualDownloadsPresent",void 0);_.D([_.V({selector:function(H){return _.k6(H.entities).length>0}}),
_.K("design:type",Object)],UL.prototype,"smartDownloadsPresent",void 0);_.D([_.V({selector:_.tf}),_.K("design:type",Object)],UL.prototype,"isOnline",void 0);_.D([_.V({selector:_.V8E}),_.K("design:type",Object)],UL.prototype,"shouldRenderDownloadsBanner",void 0);_.D([_.V({selector:_.QiE}),_.K("design:type",Object)],UL.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.D([_.V({selector:_.oeU}),_.K("design:type",Object)],UL.prototype,"hasOptedIntoSmartDownloads",void 0);
_.D([_.V({selector:hOr}),_.K("design:type",Boolean)],UL.prototype,"persistentPanelVisible",void 0);_.D([_.fx("useCompactList"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],UL.prototype,"onUseCompactListChange",null);_.D([_.fx("sizing","typographyBump"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],UL.prototype,"onSizingChange",null);
_.D([_.V({selector:_.WNZ}),_.K("design:type",Number)],UL.prototype,"miniplayerPlaybackState",void 0);_.D([_.V({selector:_.Dy}),_.K("design:type",Boolean)],UL.prototype,"miniplayerIsActive",void 0);_.D([_.V({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.K("design:type",Boolean)],UL.prototype,"isInlinePreviewEnabled",void 0);
_.D([_.V({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.K("design:type",String)],UL.prototype,"sizing",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],UL.prototype,"elementsPerRow",void 0);_.D([_.V(),_.K("design:type",Object)],UL.prototype,"typographyBump",void 0);_.D([_.V(),_.K("design:type",Number)],UL.prototype,"itemWidth",void 0);
_.D([_.lA("#header"),_.K("design:type",HTMLElement)],UL.prototype,"headerElement",void 0);_.D([_.lA("#contents"),_.K("design:type",HTMLElement)],UL.prototype,"contentsElement",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],UL.prototype,"dataChanged",null);_.D([_.XJ("data.contents.length"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],UL.prototype,"contentLengthChanged",null);
_.D([_.Gz("yt-request-elements-per-row"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],UL.prototype,"onRequestElementsPerRow",null);_.D([_.Gz("yt-rich-shelf-renderer-collapse"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],UL.prototype,"onRichShelfRendererCollapse",null);
_.D([_.XJ("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],UL.prototype,"handleRerenderDownloadsData",null);_.D([_.l("data"),_.K("design:type",String),_.K("design:paramtypes",[])],UL.prototype,"entitySelectorType",null);
_.D([_.V({reflectToAttribute:!0}),_.l("data.targetId"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],UL.prototype,"isSub",null);_.D([_.V({reflectToAttribute:!0}),_.l("data.targetId"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],UL.prototype,"isWatch",null);_.D([_.V({reflectToAttribute:!0}),_.l("data.targetId"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],UL.prototype,"isShortsPanel",null);
_.D([_.V({reflectToAttribute:!0}),_.l("isWatch"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],UL.prototype,"reducedTopMargin",null);_.D([_.V({reflectToAttribute:!0}),_.l("data","isWatch","isWatchDefaultLayout"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],UL.prototype,"noTopMargin",null);_.D([_.V({reflectToAttribute:!0}),_.l("isInlinePreviewEnabled","shownItems"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],UL.prototype,"topRowEndorsement",null);
_.D([_.l("data.header"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],UL.prototype,"hideHeader",null);_.D([_.Gz("yt-rich-grid-reflow"),_.K("design:type",Function),_.K("design:paramtypes",[Boolean]),_.K("design:returntype")],UL.prototype,"reflowContent",null);_.D([_.Gz("yt-reload-continuation-finish"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],UL.prototype,"onReloadContinuationFinish",null);
_.D([_.l("data"),_.V({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],UL.prototype,"isSlimGrid",null);_.D([_.l("data"),_.V({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],UL.prototype,"isShortsGrid",null);_.D([_.l("data","isSlimGrid","isShortsGrid"),_.V(),_.K("design:type",Boolean),_.K("design:paramtypes",[])],UL.prototype,"noRichItemGutterMargins",null);
_.D([_.l("data"),_.V({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],UL.prototype,"isShortsGridSlim",null);_.D([_.l("data"),_.V({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],UL.prototype,"isCompactGrid",null);_.D([_.l("data"),_.V({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],UL.prototype,"isDefaultGrid",null);
_.D([_.l("data.targetId"),_.V({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],UL.prototype,"hideChipsBarOnWatch",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],UL.prototype,"onIsShortsGridChange",null);_.D([_.l("data.enableContentSpecificAspectRatio"),_.V(),_.K("design:type",Boolean),_.K("design:paramtypes",[])],UL.prototype,"force16By9ThumbnailAspectRatio",null);
_.D([_.l("data"),_.K("design:type",Number),_.K("design:paramtypes",[])],UL.prototype,"continuationTriggerOffset",null);_.D([_.h({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],UL);
_.B(UL,"ytd-rich-grid-renderer",function(){if(ugi!==void 0)return ugi;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return ugi=H},{mode:2});var n5O=_.n(function(H){return _.q("yt-feedback-prompt-view-model",{class:_.eJ("ytFeedbackPromptViewModelHost",H.className)},_.q(_.T,{cond:function(){return H.data().text},
then:function(C){return _.q(_.uZ,{text:C})}}),_.q("div",{class:"ytFeedbackPromptViewModelButtons"},_.q(_.V4,{data:function(){return H.data().likeButton}},{likeButtonViewModel:_.Mv}),_.q(_.V4,{data:function(){return H.data().dislikeButton}},{dislikeButtonViewModel:_.zu})))},"sk");var r4t=_.n(function(H){var C=H.thumbsUp,S=H.thumbsDown,w=H.rightAlignThumbs;H=_.Z(_.mB(!1,void 0,"OxPsH"));var A=H.next().value,J=H.next().value;H=_.Z(_.mB(!1,void 0,"V5vWne"));var c=H.next().value,Y=H.next().value;H={};return _.q("div",{class:_.eJ("ytwThumbsUpDownThumbs",(H.ytwThumbsUpDownRightAlign=function(){return w==null?void 0:w()},H))},_.q(_.Jv,{data:C,
onToggle:function(M){J(M);c()&&Y(!1)},
buttonShapeOverrides:function(){return{toggled:A()}}}),_.q(_.Jv,{data:S,
onToggle:function(M){Y(M);A()&&J(!1)},
buttonShapeOverrides:function(){return{toggled:c()}}}))},"tk");
r4t.idomCompat=!0;var DS9=_.n(function(H){var C=function(){return H.data().pendingStateEntityKey||""},S=_.fn(_.A4p,C),w=function(){var Y;
if(!(Y=H.disabled())){var M;Y=!((M=S())==null||!M.isPendingResponse)}return Y},A=_.Z(_.mB(auo(""),void 0,"NwQXfe")),J=A.next().value,c=A.next().value;
_.Ph(function(){requestAnimationFrame(function(){var Y=H.data().onShowAnimationMs||0;Y=Y>0?auo("--chip-animation-duration: "+Y+"ms;"):auo("");c(Y)})});
return _.q("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:J},_.q(_.Vq,{each:function(){return H.data().chipData||[]},
keyBy:"REFERENCE"},function(Y){return _.q(BKO,{data:Y,disabled:w,pendingStateKey:C,onError:H.onError})}))},"uk"),BKO=_.n(function(H){var C=_.ja("button"),S=_.Z(_.mB(!0,void 0,"G4GPGe")),w=S.next().value,A=S.next().value,J=function(){return H.data().text.content},c=function(){return H.data().transparentWhenLoading},Y=_.um(function(M){var m,W,y,N,b,u,O,d;
return _.z(function(p){switch(p.nextAddress){case 1:M.stopPropagation();if(H.disabled())return p.return();W=String(Math.floor(((m=_.br())==null?void 0:m.getCurrentTime())||0)*1E3);y="youchat-"+Date.now();N=function(){_.gC(H.data().onClick||{});var k={continuationCommand:{token:H.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},R={inputComposerFormData:{clientMessageId:y,playerOffsetMs:W}};return new Promise(function(L,t){_.gC(k,{form:{formData:R},commandController:{onSuccess:function(g,
ii){L(ii)},
onServerError:function(g,ii){t(ii.error)}}})})};
b=_.J4i(H.pendingStateKey());b(!0);_.nXO("#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");A(!1);_.en(p,2);return p.yield(N(),4);case 4:_.xB(p,3);break;case 2:u=_.Vx(p),(d=(O=H).onError)==null||d.call(O,u);case 3:b(!1),_.oT(p)}})});
return _.q(_.T,{cond:w,then:function(){return _.q("div",{class:"ytwYouChatChipsDataChipWrapper"},_.q("button",{el:C,class:"ytwYouChatChipsDataChip","data-disabled":H.disabled,"data-transparent-loading":c,"on:click":Y,tabindex:0},J))}})},"vk");var KVO=_.n(function(H){var C=H.data;var S=H.initiallyExpanded;var w=function(){var m;return(m=C().conversationResourceData)==null?void 0:m.learningGuideData};
H=_.Z(_.fu(function(){var m;return(m=S==null?void 0:S())!=null?m:!1}));
var A=H.next().value,J=H.next().value,c=function(){J(!0)},Y=_.EF(function(){var m,W;
return(W=(m=w())==null?void 0:m.sections)!=null?W:[]},void 0,"aPRmH"),M=_.EF(function(){return Y().length>4},void 0,"PUPDyc");
H=_.EF(function(){var m;return!A()&&M()&&(m=w())!=null&&m.expandButton?Y().slice(0,4):Y()},void 0,"wUz4Ud");
return _.q("yt-conversation-resource-view-model",{class:_.eJ("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.q(_.V4,{data:H},{expandableMetadataViewModel:_.ZMO}),_.q(_.T,{cond:function(){return M()&&!A()},
then:function(){return _.q("div",{id:"showMoreButton"},_.q(_.V4,{data:function(){var m;return(m=w())==null?void 0:m.expandButton}},{buttonViewModel:function(m){return _.q(_.rc,{data:m.data,
onClick:c})}}))}}))},"wk");var tlq=_.n(function(H){var C=function(){var k;return(k=H.data().text)==null?void 0:k.content},S=function(){var k,R;
return(k=H.data().webData)==null?void 0:(R=k.textResult)==null?void 0:R.content},w=_.JA().resolve(_.wW),A=_.E5(),J=function(){return H.data().chatResponseStyle},c=function(){return!H.data().transparentBackground},Y=function(){return H.data().rightAlignThumbs},M=function(){return H.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||H.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},m=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:M()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:H.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},W=function(){var k;
return H.data().webData||((k=H.data().text)==null?void 0:k.content)||H.data().videoResultsData||H.data().conversationResourceViewModel||H.data().quiz||H.data().richContent},y=function(){return!!H.data().sectionHeader||W()},N=function(){var k;
return(k=H.data().videoResultsData)==null?void 0:k.videoShelf},b=function(){var k;
return(k=H.data().webData)==null?void 0:k.sourcesShelf},u=function(){return J()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||J()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:H.data().thumbsDownViewModel&&H.data().thumbsUpViewModel},O=function(){return _.e(H.data().thumbsUpViewModel,_.mk)},d=function(){return _.e(H.data().thumbsDownViewModel,_.mk)};
_.Ph(function(){requestAnimationFrame(function(){var k;(k=H.shouldAnimateIcon)!=null&&k.call(H)&&FVo(A.lottieEl)})});
var p={};return _.q("you-chat-item-view-model",{class:_.eJ("ytwYouChatItemViewModelYouChatItemViewModel",(p.ytwYouChatItemViewModelColumnLayout=function(){return M()},p)),
"data-target-id":function(){return H.data().id||""}},_.q(_.T,{cond:function(){return H.data().removeIcon?!1:y()},
then:function(){var k={};return _.q("div",{"aria-hidden":"true"},_.q(_.UA,{className:_.eJ("ytwYouChatItemViewModelIcon",(k.ytwYouChatItemViewModelRtl=w==="rtl",k.ytwYouChatItemViewModelHidden=function(){return!(H.data().hideIcon||J()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||J()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:y())},k)),
animationName:"YOUCHAT_ICON",data:m,animationRef:A}))}}),_.q(_.T,{cond:y,
then:function(){var k={};return _.q("div",{class:_.eJ("ytwYouChatItemViewModelHost",(k.ytwYouChatItemViewModelHostNoPadding=function(){return!!H.data().sectionHeader&&!W()},k.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return J()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},k.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return J()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},k.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return J()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
k.ytwYouChatItemViewModelGradientBackground=c,k)),
role:"alert"},_.q(_.T,{cond:C,then:function(R){return _.q(_.Wd,{text:R,wrapCodeBlocks:!0})}}),_.q(_.V4,{data:function(){return H.data().sectionHeader}},{sectionHeaderViewModel:function(R){var L={};
return _.q(_.KS,{data:R.data,className:_.eJ("ytwYouChatItemViewModelSectionHeader",(L.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!H.data().sectionHeader&&!W()},L))})}}),_.q(_.T,{cond:S,
then:function(R){return _.q(_.Wd,{text:R,wrapCodeBlocks:!0})}}),_.q(_.T,{cond:N,
then:function(){return _.q("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.q(_.V4,{data:function(){var R;return(R=H.data().videoResultsData)==null?void 0:R.videoShelf}},{horizontalShelfViewModel:function(R){return _.q(_.TP,{data:R.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.q(_.T,{cond:b,
then:function(){return _.q("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.q(_.V4,{data:function(){var R;return(R=H.data().webData)==null?void 0:R.sourcesShelf}},{horizontalShelfViewModel:function(R){return _.q(_.TP,{data:R.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.q(_.V4,{data:function(){return H.data().conversationResourceViewModel}},{conversationResourceViewModel:KVO}),_.q(_.V4,{data:function(){return H.data().quiz}},{learningJourneyQuizViewModel:_.ljd}),_.q(_.V4,{data:function(){return H.data().richContent}},{cardViewModel:ks9,
linearLayoutViewModel:_.icU}),_.q(_.T,{cond:u,then:function(){return _.q(r4t,{thumbsUp:O,thumbsDown:d,rightAlignThumbs:Y})}}))}}),_.q(_.T,{cond:function(){return H.data().chipsData},
then:function(k){return _.q(DS9,{data:k,disabled:H.pending,onError:H.onError})}}))},"xk");
tlq.idomCompat={callbacks:{onError:!0,onSend:!0}};var LVR=_.n(function(H){var C=function(){return H.data().choiceSelectedText},S=function(){return H.data().hasGradientBackground},w={};
return _.q("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.q(_.T,{cond:C,then:function(){return _.q("div",{class:"ytYouChatUserTurnChoiceSelected"},_.q(_.uZ,{text:C}))}}),_.q("div",{class:_.eJ("ytYouChatUserTurnUserMessage",(w.ytYouChatUserTurnGradientContainer=S,w.ytYouChatUserTurnDefaultContainer=function(){return!S()},w))},function(){return H.data().text}))},"yk");var g5R=_.n(function(H){var C=_.Z((0,_.LK7)(H.data)).next().value;return _.q("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return H.data().targetId||""}},_.q(_.V4,{data:function(){return H.data().header}},{chipBarViewModel:_.DtV}),_.q(_.V4,{data:function(){return C().contents}},{accordionViewModel:_.XKM,
alertBannerViewModel:_.amU,chatLoadingViewModel:_.vR_,chatUserTurnViewModel:LVR,feedbackPromptViewModel:n5O,gridShelfViewModel:function(S){return _.q(_.RE_,{data:S.data,shouldUseOwnContainerSize:!0})},
learningJourneyLoaderViewModel:_.ulV,linearLayoutViewModel:_.icU,lockupViewModel:function(S){return _.q(_.BG,{data:S.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:H.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
sectionHeaderViewModel:_.KS,videoOverviewViewModel:_.rW1,youChatItemViewModel:function(S){return _.q(tlq,{data:S.data,pending:!1})}}))},"zk");_.qs(_.n(function(H){var C=_.Z((0,_.LK7)(H.data)).next().value,S=_.sW("yt-section-list-renderer"),w=_.Z(_.mB(void 0,void 0,"boqAXd")),A=w.next().value,J=w.next().value,c=function(){var Y;return _.e((Y=H.data().sectionListLayoutConfiguration)==null?void 0:Y.layoutConfiguration,MlR)};
_.$T(function(){var Y,M=(Y=S.value)==null?void 0:Y.clientWidth;if(c()){Y=c();var m=Y.responsiveSize;M=M<528?"CONTAINER_SIZE_NARROW":M<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var W=_.Z(Y.responsiveMap||[]);for(var y=W.next();!y.done;y=W.next())if(y=y.value,y.containerSize===M){W=y.containerType;break b}W=void 0}if(W&&m){b:{if(W==="CONTAINER_TYPE_VERTICAL_LIST")if(m==="RESPONSIVE_SIZE_STANDARD"){if(M!=="CONTAINER_SIZE_NARROW"){y="50%";break b}}else{y=M==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}y=void 0}Y={responsiveSize:m,containerSize:M,containerType:W,force16By9ThumbnailAspectRatio:!Y.enableContentSpecificAspectRatio,contentPreviewWidth:y,fullbleed:(W==="CONTAINER_TYPE_VERTICAL_LIST"||W==="CONTAINER_TYPE_GRID")&&M==="CONTAINER_SIZE_NARROW"&&!1}}else Y=void 0}else Y=void 0;J(Y)});
return _.q("yt-section-list-renderer",{class:_.eJ("ytSectionListRendererHost",H.className),el:S,"data-target-id":function(){return H.data().targetId||""}},_.q(_.V4,{data:function(){return C().contents}},{itemSectionRenderer:function(Y){return _.q(g5R,{data:Y.data,
containerLayoutConfig:A})}}))},"Ak"),"yt-section-list-renderer",{props:{data:_.GH,
className:_.Yb}});var USR;var ROq;var Idt=function(){return _.X.apply(this,arguments)||this};
_.G(Idt,_.X);_.D([_.V(),_.K("design:type",Object)],Idt.prototype,"data",void 0);_.D([_.Lx({is:"yt-alert-renderer",disableElementRegistration:!0})],Idt);
_.B(Idt,"yt-alert-renderer",function(){if(ROq===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;USR===void 0&&(USR=document.createElement("template"));var w=USR;S.call(C,w.content.cloneNode(!0),H.content.firstChild);ROq=H}H=ROq;return H},{mode:2});
}catch(e){_._DumpException(e)}
try{
var ztp;ztp=function(H,C,S,w){S||(H?w&&(w.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||w.WINDOW_SIZE_CHANGED&&(C.width!==window.innerWidth||C.height!==window.innerHeight)||w.SAFARI_ABORTED_BY_NEW_TRANSITION&&H instanceof DOMException&&H.name==="AbortError"&&H.message.includes("Old view transition aborted by new view transition"))||_.nC(H):_.nC(Error("rj")))};
_.MIp=function(H,C){C=C===void 0?{}:C;var S,w,A,J,c,Y,M,m,W,y,N,b,u;return _.z(function(O){switch(O.nextAddress){case 1:S=C;w=S.shouldWrap===void 0?!0:S.shouldWrap;A=S.skipTransitionTimeoutMs===void 0?300:S.skipTransitionTimeoutMs;J=S.beforeTransition;c=S.afterTransition;if(!w||!document.startViewTransition||document.visibilityState==="hidden")return O.return(H());Y={width:window.innerWidth,height:window.innerHeight};M=!1;(m=J)==null||m();_.en(O,2);W=document.startViewTransition(H);y=setTimeout(function(){W.skipTransition();
M=!0},A);
return O.yield(W.ready,4);case 4:return clearTimeout(y),O.yield(W.finished,5);case 5:clearTimeout(y);(N=c)==null||N();_.xB(O,0);break;case 2:b=_.Vx(O),(u=c)==null||u(),ztp(b,Y,M,C.ignoredErrors),_.oT(O)}})};
_.qg_=function(H,C,S){H.persistentPanelContainerMap.set(S,C)};
_.yj=function(){for(var H=Array(36),C=0,S,w=0;w<36;w++)w==8||w==13||w==18||w==23?H[w]="-":w==14?H[w]="4":(C<=2&&(C=33554432+Math.random()*16777216|0),S=C&15,C>>=4,H[w]=_.zMM[w==19?S&3|8:S]);return H.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 Th9=_.xC(['<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>']),
mnR=_.RDb(Th9);mnR.setAttribute("style","display: none;");document.head.appendChild(mnR.content);_.Nm=_.GfZ(function(H){var C=_.GZ("DIV");H&&(C.className=H);C.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";H=_.GZ("DIV");_.gtb(H,"200px","200px");C.appendChild(H);document.body.appendChild(C);H=C.offsetWidth-C.clientWidth;_.f6(C);return H});var Wlr;var yEt;var bV=function(){var H=_.X.apply(this,arguments)||this;H.icon=null;return H};
_.G(bV,_.X);bV.prototype.dismiss=function(){_.M3(this.hostElement,"yt-live-chat-error-message-dismiss")};
bV.prototype.computeIcon=function(H){return H&&H.iconType?"yt-icons:"+H.iconType.toLowerCase():"yt-icons:close"};
_.D([_.V(),_.K("design:type",Object)],bV.prototype,"data",void 0);_.D([_.V({computed:"computeIcon(data.icon)"}),_.K("design:type",Object)],bV.prototype,"icon",void 0);_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],bV);
_.B(bV,"yt-live-chat-error-message-renderer",function(){if(yEt===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;Wlr===void 0&&(Wlr=document.createElement("template"));var w=Wlr;S.call(C,w.content.cloneNode(!0),H.content.firstChild);yEt=H}H=yEt;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var ycD,NPD,b9D,EDv,eB9,vD4,oD7,O9v,XV4,Q2c,drB,PBT,h8,$rB,pVB,k7P,hBT,nDv,rcD,BPT,DrV,KTr,thB,LT7,gDB,Urt,RB7,I4T,a4v,xr9,HM9,iMB,Cf4,SMT,sT7,jTT,JY7,ZMv,YMB,z9T,MnT,qMB,weh,AYB,W2t,yY4,Ns7,bMP,E$B,e99,uN7,Ts9,fA9;
ycD=function(H,C,S,w){var A=!1,J={contentId:void 0,contentType:"video"};C=_.Z(Object.entries(C));for(var c=C.next();!c.done;c=C.next()){var Y=_.Z(c.value);c=Y.next().value;Y=Y.next().value;H.includes(c)&&!S.has(Y)?(J.contentId=Y,S.add(Y),A=!0):c==="contentType"?Y==="LOCKUP_CONTENT_TYPE_PLAYLIST"&&(J.contentType="playlist"):typeof Y==="object"&&Y!==null&&ycD(H,Y,S,w)}A&&w.push(J)};
NPD=function(H,C){return _.Ea(H.entities,"liveReactionsDataEntity",C)};
b9D=function(H,C){H=_.Ea(H.entities,"booleanEntity",C);return!(!H||!H.value)};
EDv=function(H,C){var S=_.Dg();S&&H&&_.ak(S,_.Qh(H),C)};
eB9=function(H,C){return _.Ea(H.entities,"timedMarkersListSyncEntity",C)};
_.uTc=function(H){return H.watch.isWatchActive};
_.G7h=function(H){return _.Dl(H)||_.Ku(H)||_.DoE(H)};
_.f4D=function(H){return!_.G7h(H)};
_.kX=function(H){return H.watch.watchScrollTop};
vD4=function(H){return H.watch.isLiveChatCollapsed};
_.l4v=function(){_.E("web_watch_log_theater_mode")&&_.JXE("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.Vhh=function(H,C,S){if(!H.includes("START_TIME_PLACEHOLDER")||!H.includes("END_TIME_PLACEHOLDER"))return H;var w=new Date(0),A=new Date(0);w.setUTCMilliseconds(C);A.setUTCMilliseconds(S);return H.replace("START_TIME_PLACEHOLDER",_.i4(w,7)).replace("END_TIME_PLACEHOLDER",_.i4(A,7))};
oD7=function(H,C){return _.Ea(H.entities,"booleanEntity",C)};
O9v=function(){return function(H){_.Ax(_.O5("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:H}))}};
XV4=function(H){switch(H){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}};
Q2c=function(H,C,S){var w=_.L7(S);H&&C&&w&&H.getPlayerPromise().then(function(A){_.qTE(w)&&_.ht();(new _.ju(A)).executeCommand(w,C);_.E("continue_playback_on_desktop_companion_click")||A.pauseVideo()})};
drB=function(H){var C=_.Zz(),S;if(S=_.gh("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var w;S=(w=S())==null?void 0:w.layoutId}else S=null;Q2c(C,S,H)};
PBT=function(H){var C=_.Zz(),S;if(S=_.gh("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var w;S=(w=S())==null?void 0:w.layoutId}else S=null;Q2c(C,S,H)};
h8=function(H,C){var S=H<0?"-":"";H=Math.abs(H);var w=Math.floor(H/3600),A=Math.floor(H)%3600,J=Math.floor(A/60);A=Math.floor(A)%60;var c="";(C===void 0?0:C)&&(c="."+Math.round((H-Math.floor(H))*10));return w>0?S+w+":"+(J<10?"0"+J:""+J)+":"+(A<10?"0"+A:""+A)+c:S+J+":"+(A<10?"0"+A:""+A)+c};
$rB=function(H){var C=H.match(/[^0-9:\.]/g);if(C&&C.length>0)return null;H=H.split(":");if(H.length===0||H.length>3)return null;C=1;for(var S=0;H.length>0;){var w=H.pop();if(w===void 0)break;var A=Number(w);if(w===""||isNaN(A))return null;S+=A*C;C*=60}return S};
pVB=function(H,C,S,w){H=Math.max(S,H);C=Math.min(C,w-S);H+C>w?(S=w,H=S-C):S=H+C;return{start:H,end:S}};
k7P=function(H,C,S,w,A,J){H<S?H=S:H+A>w&&(H=w-A);C>w&&(C=w);C=Math.min(H+J,Math.max(H+A,C));return{start:H,end:C}};
hBT=function(H,C,S,w,A,J){C>w?C=w:C-A<S&&(C=S+A);H<S&&(H=S);H=Math.min(C-A,Math.max(C-J,H));return{start:H,end:C}};
nDv=function(H){return _.E("web_transcript_cue_id_killswitch")?String(H):"ytd-transcript-renderer_"+H};
rcD=function(H){return _.E("web_transcript_cue_id_killswitch")?!0:H.startsWith("ytd-transcript-renderer")};
BPT=function(H){var C=_.Zz(),S;if(S=_.gh("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var w;S=(w=S())==null?void 0:w.layoutId}else S=null;Q2c(C,S,H)};
DrV=function(H){H.style.height="auto";H.style.height=Math.min(H.scrollHeight||20,80)+"px"};
KTr=function(H,C,S){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:C,hasGradientBackground:S}}],insertByPositionInSection:{sectionTargetId:H,position:"INSERTION_POSITION_LAST"}}}]}}}};
thB=function(H){var C=_.Zz(),S;S=(S=_.gh("yt.www.ads.eventcache.getLastCompanionData"))?(S=S())&&S.layoutId:null;Q2c(C,S,H)};
LT7=function(H){var C=_.Zz(),S;S=(S=_.gh("yt.www.ads.eventcache.getLastCompanionData"))?(S=S())&&S.layoutId:null;Q2c(C,S,H)};
gDB=function(H){if(H.simpleText)return[{text:H.simpleText}];var C;return(C=H.runs)!=null?C:[]};
Urt=function(H){var C=H.startEndTimeTemplate,S=H.startTimeUtcMillis;H=H.endTimeUtcMillis;if(C&&S&&H)return _.sx(_.Vhh(_.jt(C),Number(S),Number(H)))};
RB7=function(H,C){var S,w,A=H==null?void 0:(S=H.viewCount)==null?void 0:(w=S.videoViewCountRenderer)==null?void 0:w.shortViewCount;if(!C&&A)return A;var J,c;return H==null?void 0:(J=H.viewCount)==null?void 0:(c=J.videoViewCountRenderer)==null?void 0:c.viewCount};
I4T=function(H,C){var S=H==null?void 0:H.relativeDateText;return!C&&S?[S,!0]:[H==null?void 0:H.dateText,!1]};
a4v=function(H,C,S,w){w=w===void 0?"":w;var A=RB7(H,C),J=_.Z(I4T(H,C)),c=J.next().value;J=J.next().value;C=C?H==null?void 0:H.sponsorsOnlyFirstTimeLongText:H==null?void 0:H.sponsorsOnlyFirstTimeShortText;var Y=[];S&&A&&Y.push(A);!S&&J||!c||Y.push(c);H=[H==null?void 0:H.subtitle].concat(_.k$(Y),[C,H==null?void 0:H.stationName,H==null?void 0:H.rating,H?Urt(H):void 0,H==null?void 0:H.upNextProgramText,H==null?void 0:H.superTitleLink]).filter(function(M){return!!M});
S={runs:[]};for(A=0;A<H.length;A++)S.runs.push.apply(S.runs,_.k$(gDB(H[A]))),A<H.length-1&&S.runs.push({text:" "+w+" "});return S};
xr9=function(H){return H.filter(function(C){return!_.e(C,_.jf)})};
HM9=function(H){var C,S,w,A;if(H=H==null?void 0:(C=H.contents)==null?void 0:(S=C.twoColumnWatchNextResults)==null?void 0:(w=S.results)==null?void 0:(A=w.results)==null?void 0:A.contents){var J,c;return(c=(J=H.find(function(Y){return!!Y.videoPrimaryInfoRenderer}))==null?void 0:J.videoPrimaryInfoRenderer)==null?void 0:c.updatedMetadataEndpoint}};
iMB=function(H,C){var S;return(S=H.sourceConfigs)==null?void 0:S.find(function(w){return w.videoId===C})};
Cf4=function(H){return H==="End of video"||H==="End of playlist"};
SMT=function(H){var C,S,w,A;return(C=H.getWatchNextResponse())==null?void 0:(S=C.contents)==null?void 0:(w=S.twoColumnWatchNextResults)==null?void 0:(A=w.playlist)==null?void 0:A.playlist};
sT7=function(H){var C,S,w,A,J,c;return(C=SMT(H))==null?void 0:(S=C.playlistButtons)==null?void 0:(w=S.menuRenderer)==null?void 0:(A=w.topLevelButtons)==null?void 0:(J=A[0])==null?void 0:(c=J.playlistLoopButtonRenderer)==null?void 0:c.playlistLoopStateEntityKey};
jTT=function(H){var C=_.JA().resolve(_.qb),S;return(C=(S=_.e(C.getAutoplayEndpoint(),_.sX))==null?void 0:S.playlistId)&&C===H};
JY7=function(H,C,S,w,A){function J(){_.rT.cancelJob(nW);var c=weh(C,S/H.getPlaybackRate()),Y=c.hours,M=c.minutes;c=(c.seconds*1E3||6E4)/H.getPlaybackRate();H.setVideoTimeLeft(AYB(Y,M));w&&H.getPlayerState()!==0&&H.setSleepTimerTimeLeft(AYB(Y,M,!0));(Y>0||M>0)&&!A&&(nW=_.dw(_.rT,J,c))}
_.rT.cancelJob(nW);nW=_.dw(_.rT,J)};
ZMv=function(H,C,S){function w(){_.rT.cancelJob(F2V);var A=weh(C,S),J=A.hours;A=A.minutes;var c=6E4/H.getPlaybackRate();if(J>0||A>0)H.setSleepTimerTimeLeft(AYB(J,A,!0)),F2V=_.dw(_.rT,w,c)}
_.rT.cancelJob(F2V);F2V=_.dw(_.rT,w)};
YMB=function(H,C){var S=H.getVolume()/(C/500),w=function(A){_.rT.cancelJob(cYr);var J=Math.floor(A-S);H.setVolume(J,!1);J>0&&(cYr=_.dw(_.rT,function(){w(J)},500))};
_.rT.cancelJob(cYr);cYr=_.dw(_.rT,function(){w(H.getVolume())})};
z9T=function(H,C){_.rT.cancelJob(cYr);C&&H.syncVolume()};
MnT=function(){var H={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.fL("SLEEP_TIMER_DISRUPTED")}}}}};_.JA().resolve(_.ZQ).resolveCommand(H)};
qMB=function(H){return(H.getDuration()-H.getProgressState().current)*1E3};
weh=function(H,C){H=H+C-(0,_.Zt)();if(H<=0)return{hours:0,minutes:0,seconds:0};var S=new Ts9(0,0,0,0,0,0,H);H=S.getHours();C=S.getMinutes();S=S.getSeconds();S!==0&&C++;C!==0&&C%60===0&&(H++,C=0);return{hours:H,minutes:C,seconds:S}};
AYB=function(H,C,S){return H>0&&C>0?S?_.fL("TIME_LEFT_HOURS_MINUTES",{hours:H.toString(),minutes:C.toString()}):_.fL("TIME_HOURS_MINUTES",{hours:H.toString(),minutes:C.toString()}):H>0?S?_.vH("TIME_LEFT_HOURS",H):_.vH("TIME_HOURS",H):S?_.fL("TIME_LEFT_MINUTES",{minutes:C.toString()}):_.fL("TIME_MINUTES",{minutes:C.toString()})};
W2t=function(H,C){if(H.timelyActions)return H.timelyActions.find(function(S){var w;return((w=_.e(S,mO9))==null?void 0:w.cueRangeId)===C})};
yY4=function(H){var C=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.Ga(H);H.keyMap_.forEach(function(S,w){_.nU(C,w)||this.remove(w)},H)};
Ns7=function(H,C){H.reloadContinuationItemsCommandMatcher=C};
bMP=function(){var H=_.JA().resolve(_.JB),C=[];ycD(["videoId","contentId"],H.data,new Set,C);return C};
E$B=function(){return bMP().filter(function(H){return H.contentType==="video"}).map(function(H){return H.contentId}).filter(function(H){return H!==void 0})};
_.rF=function(H,C){H.insertBefore(C,H.childNodes[0]||null)};
e99=function(H){if(H>=48&&H<=57||H>=96&&H<=106||H>=65&&H<=90||_.Tt&&H==0)return!0;switch(H){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 _.qy;default:return!1}};
uN7=function(H){if(H.altKey&&!H.ctrlKey||H.metaKey||H.keyCode>=112&&H.keyCode<=123)return!1;if(e99(H.keyCode))return!0;switch(H.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!_.qy;default:return H.keyCode<166||H.keyCode>183}};
Ts9=function(H,C,S,w,A,J,c){this.date=typeof H==="number"?new Date(H,C||0,S||1,w||0,A||0,J||0,c||0):new Date(H&&H.getTime?H.getTime():_.FF())};
_.Zh(Ts9,_.DJ);_.F=Ts9.prototype;_.F.getHours=function(){return this.date.getHours()};
_.F.getMinutes=function(){return this.date.getMinutes()};
_.F.getSeconds=function(){return this.date.getSeconds()};
_.F.getMilliseconds=function(){return this.date.getMilliseconds()};
_.F.getUTCDay=function(){return this.date.getUTCDay()};
_.F.getUTCHours=function(){return this.date.getUTCHours()};
_.F.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.F.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.F.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.F.setHours=function(H){this.date.setHours(H)};
_.F.setMinutes=function(H){this.date.setMinutes(H)};
_.F.setSeconds=function(H){this.date.setSeconds(H)};
_.F.setMilliseconds=function(H){this.date.setMilliseconds(H)};
_.F.setUTCHours=function(H){this.date.setUTCHours(H)};
_.F.setUTCMinutes=function(H){this.date.setUTCMinutes(H)};
_.F.setUTCSeconds=function(H){this.date.setUTCSeconds(H)};
_.F.setUTCMilliseconds=function(H){this.date.setUTCMilliseconds(H)};
_.F.add=function(H){_.DJ.prototype.add.call(this,H);H.hours&&this.setUTCHours(this.date.getUTCHours()+H.hours);H.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+H.minutes);H.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+H.seconds)};
_.F.JSC$11343_toIsoString=function(H){var C=_.DJ.prototype.JSC$11343_toIsoString.call(this,H);return H?C+"T"+_.Tl(this.getHours(),2)+":"+_.Tl(this.getMinutes(),2)+":"+_.Tl(this.getSeconds(),2):C+"T"+_.Tl(this.getHours(),2)+_.Tl(this.getMinutes(),2)+_.Tl(this.getSeconds(),2)};
_.F.equals=function(H){return this.getTime()==H.getTime()};
_.F.toString=function(){return this.JSC$11343_toIsoString()};
_.F.clone=function(){var H=new Ts9(this.date);H.firstDayOfWeek_=this.firstDayOfWeek_;H.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return H};
_.Gvh=function(H){return _.Md({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:H}})};
fA9=new _.mi("imageTileRenderer");var v$T=new _.mi("adGridCardCollectionViewModel");var lA9=new _.mi("carouselTitleViewModel");var Vnr=new _.mi("ctaCarouselItemViewModel");var o$h=new _.mi("textFieldViewModel");_.OMv=new _.mi("engagementPanelHeaderShowNavigationButtonCommand");var Xev=new _.mi("hideEngagementPanelScrimAction");var QTT=new _.mi("setActivePanelItemAction");var dOv=new _.mi("showEngagementPanelScrimAction");var PfD=new _.mi("updateEngagementPanelAction");var $OV=new _.mi("updateSearchInVideoResultsAction");var peh=new _.mi("transcriptCueGroupRenderer");var kvB=new _.mi("transcriptCueRenderer");var h9D=new _.mi("transcriptFooterRenderer");var n$B=new _.mi("engagementPanelAdSubtitleRenderer");var rYP=new _.mi("videoDescriptionFantasySectionViewModel");var Bs9=new _.mi("deleteClipEngagementPanelCommand");var DOr=new _.mi("loopCommand");var K2h=new _.mi("changeCreatorEndscreenVisibilityCommand");var tnP=new _.mi("liveChatCallForQuestionsRenderer");var L2B=new _.mi("updateTimedMarkersSyncObserverCommand");var mO9=new _.mi("timelyActionViewModel");var g$T=new _.mi("timelyActionsOverlayViewModel");var UOc=new _.mi("repeatChapterCommand");var R99=new _.mi("watchPlayerOverflowMenuCommand");var IAT=new _.mi("compositeVideoOverlayRenderer");var aAt=new _.mi("sortFilterSubMenuRenderer");var xOc=new _.mi("switchListItemViewModel");var HXD=new _.mi("inputComposerViewModel");var iXT=new _.mi("transcriptEditSegmentCommand");var CRc=new _.mi("transcriptUpdateSegmentTextCommand");var SlB=new _.mi("transcriptSearchBoxRenderer");var sph=new _.mi("transcriptSegmentListRenderer");var jpc=new _.mi("transcriptSegmentRenderer");_.wjB=new _.mi("updateDateTextAction");var AbT=new _.mi("updateTitleAction");var JbB=new _.mi("updateViewershipAction");var FD7=new _.mi("carouselLockupRenderer");var B1=new _.mi("expandableVideoDescriptionBodyRenderer");var ZXT=new _.mi("videoDescriptionHeaderRenderer");var cbV=new _.mi("videoDescriptionYouchatSectionViewModel");_.Du=_.YB("kevlar_watch_page_horizontal_margin",24);_.Ylt=_.YB("kevlar_watch_page_columns_top_padding",24);_.z_9=426+_.Du*2;_.KW=_.YB("kevlar_watch_two_column_width_threshold",1E3);_.M2T=_.Du*2;_.qlT=_.YB("kevlar_watch_secondary_width",402);_.Tx9=_.YB("kevlar_watch_max_player_width",1280);_.mH4=_.YB("kevlar_watch_flexy_metadata_height",136);_.WD2=_.M2T+310+_.Du;_.ybt=_.M2T+360+_.Du;var NxB={PAUSE_CHAT:18};var bX9;var Elc;var t8=function(){return _.X.apply(this,arguments)||this};
_.G(t8,_.X);t8.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
t8.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var H=_.e(this.data.button,_.qc);H&&(H.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.JJ.Object.defineProperties(t8,{template:{configurable:!0,enumerable:!0,get:function(){if(Elc===void 0){var H=document.createElement("template");_.f(H,'\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>');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;bX9===void 0&&(bX9=document.createElement("template"));var w=bX9;S.call(C,w.content.cloneNode(!0),H.content.firstChild);Elc=H}H=Elc;return H}}});
_.D([_.v(_.qU),_.K("design:type",Object)],t8.prototype,"ytLiveChatReduxBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],t8.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V({selectorArgs:["data.enabledEntityKey"],selector:b9D,observer:"onEnabledChange"}),_.K("design:type",Boolean)],t8.prototype,"enabled",void 0);_.D([_.V(),_.K("design:type",Object)],t8.prototype,"data",void 0);_.D([_.Lx({is:"yt-disableable-button-view-model",noInjection:!0})],t8);var e_t;var uA9;var GVr=["transVert01","transVert02","transVert03"],f9c="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),LW=function(){var H=_.X.apply(this,arguments)||this;H.emojiManager=_.Nh;H.isDarkTheme=document.documentElement.hasAttribute("dark");H.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};H.reactionBuckets=[];H.noEmojiIdentifier="NO_EMOJI";return H};
_.G(LW,_.X);_.F=LW.prototype;_.F.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.F.desktopFountainEmojiSizePxChanged=function(){_.Ed(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.F.createUserReactionAnimation=function(H){this.createEmojiAnimation(H,!0)};
_.F.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var H;((H=this.data)==null?0:H.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.O5("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.k$(this.emojiContainer.children)).forEach(function(C){C.remove()})};
_.F.detached=function(){this.cleanupFountain()};
_.F.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var H;this.reactionBuckets=_.hb.unsafeClone((H=this.emojiFountainData)==null?void 0:H.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.F.processEmojiBucket=function(H){var C=this;if(this.reactionBuckets&&!(H>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var S=this.reactionBuckets[H];this.generateEmojiAnimations(S);if(H<this.reactionBuckets.length-1){var w;if(S==null?0:(w=S.duration)==null?0:w.seconds)this.emojiBucketTimerId=setTimeout(function(){C.processEmojiBucket(H+1)},Number(S.duration.seconds)*1E3)}}};
_.F.generateEmojiAnimations=function(H){var C=this,S=this.getRandomEmojiIdFromBucketWithOverride(H);if(S&&S!==this.noEmojiIdentifier){var w=0;H.targetEps?(w=this.linearInterpolateBounded(1,20,100,12,H.emojiSizeIndex||0),this.createEmojiAnimation(S,!1,H.emojiAnimationMs,w),w=this.getEmojiDelayMsFromTargetEps(H.targetEps)):(this.createEmojiAnimation(S),w=this.getEmojiDelayMsFromDistribution(H.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){C.generateEmojiAnimations(H)},w)}};
_.F.getRandomEmojiIdFromBucketWithOverride=function(H){if(!(H&&H.reactionsData&&H.reactionsData.length&&H.totalReactions))return this.noEmojiIdentifier;for(var C=H.totalReactions,S=1,w=_.Z(H.reactionsData),A=w.next();!A.done;A=w.next())A=A.value,(A.reactionWeightOverride||A.reactionWeightOverride===0)&&A.reactionCount&&(C-=A.reactionCount,S-=A.reactionWeightOverride);w=!0;S<0&&(w=!1,C=H.totalReactions,S=1);if(w&&S>0&&C===0)if(S===1){A=0;for(var J=_.Z(H.reactionsData),c=J.next();!c.done;c=J.next())c=
c.value,c.reactionCount&&c.reactionCount>0&&A++;A=1/A;J=_.Z(H.reactionsData);for(c=J.next();!c.done;c=J.next())c.value.reactionWeightOverride=A}else for(A=1/(1-S),J=_.Z(H.reactionsData),c=J.next();!c.done;c=J.next())c=c.value,c.reactionWeightOverride&&(c.reactionWeightOverride*=A);A=Math.random();J=0;c=_.Z(H.reactionsData);for(var Y=c.next();!Y.done;Y=c.next())if(Y=Y.value,Y.reactionCount&&(J=(Y.reactionWeightOverride||Y.reactionWeightOverride===0)&&w?J+Y.reactionWeightOverride:J+S*Y.reactionCount/
C,J>A&&(Y.reactionCount--,H.totalReactions--,Y=this.reactionItemToEmojiString(Y),Y!==this.noEmojiIdentifier)))return Y;return this.noEmojiIdentifier};
_.F.reactionItemToEmojiString=function(H){if(H.unicodeEmojiId)return H.unicodeEmojiId;if(H.emoteId)return H.emoteId;if(H.videoReactionType)switch(H.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.F.createEmojiAnimation=function(H,C,S,w){C=C===void 0?!1:C;this.lastEmojiRequestedForTesting=H;var A=H.startsWith("yt-icons:"),J=_.Wm(this.emojiManager,H);if(J||A){var c=document.createElement("emoji");c.classList.add("yt-emoji-fountain-view-model");c.classList.add(GVr[Math.floor(Math.random()*GVr.length)]);var Y=document.createElement("div");Y.classList.add("yt-emoji-fountain-view-model");Y.classList.add("horizontal-container");Y.classList.add(f9c[Math.floor(Math.random()*f9c.length)]);C?(S=document.createElement("div"),
S.classList.add("user-reaction-bubble"),S.classList.add("yt-emoji-fountain-view-model"),Y.appendChild(S)):(S&&(c.style.animationDuration=S+"ms",Y.style.animationDuration=S+"ms"),w&&(c.style.width=w+"px",c.style.height=w+"px"));A?(A=document.createElement("yt-icon"),A.polymerController.icon=H,w&&(A.style.width=w+"px",A.style.height=w+"px"),H=A):H=this.emojiManager.createEmoji(J,!1);H.classList.add("yt-emoji-fountain-view-model");Y.appendChild(H);c.appendChild(Y);this.emojiContainer.appendChild(c);
c.addEventListener("animationend",function(){c.remove()});
var M,m;if((M=this.data)==null?0:(m=M.loggingDirectives)==null?0:m.trackingParams)C=C?_.y4(183501):_.y4(183500),EDv(this.data.loggingDirectives.trackingParams,C),_.Rd6(C);setTimeout(function(){c&&c.remove()},2E3)}};
_.F.getEmojiDelayMsFromDistribution=function(H){return Math.random()*(H||1)*1E3};
_.F.getEmojiDelayMsFromTargetEps=function(H){return Math.random()*2*(1/H)*1E3};
_.F.linearInterpolateBounded=function(H,C,S,w,A){A=Math.min(Math.max(A,H),S);return(C*(S-A)+w*(A-H))/(S-H)};
LW.prototype.onEmojiFountainDataEntityUpdate=LW.prototype.onEmojiFountainDataEntityUpdate;LW.prototype.desktopFountainEmojiSizePxChanged=LW.prototype.desktopFountainEmojiSizePxChanged;LW.prototype.isActiveChanged=LW.prototype.isActiveChanged;_.D([_.V(),_.K("design:type",_.mw)],LW.prototype,"emojiManager",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],LW.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.qU),_.K("design:type",Object)],LW.prototype,"ytLiveChatReduxBehavior",void 0);
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],LW.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],LW.prototype,"data",void 0);_.D([_.V({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(H,C){return _.Ea(H.entities,"emojiFountainDataEntity",C)}}),
_.K("design:type",Object)],LW.prototype,"emojiFountainData",void 0);_.D([_.V(),_.K("design:type",Boolean)],LW.prototype,"isActive",void 0);_.D([_.fx("isActive"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],LW.prototype,"isActiveChanged",null);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],LW.prototype,"isDarkTheme",void 0);_.D([_.V(),_.K("design:type",String)],LW.prototype,"lastEmojiRequestedForTesting",void 0);
_.D([_.V({value:function(){return _.YB("desktop_fountain_emoji_size_px",20)}}),
_.K("design:type",Number)],LW.prototype,"desktopFountainEmojiSizePx",void 0);_.D([_.fx("desktopFountainEmojiSizePx"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],LW.prototype,"desktopFountainEmojiSizePxChanged",null);_.D([_.lA("#emoji-container"),_.K("design:type",HTMLElement)],LW.prototype,"emojiContainer",void 0);
_.D([_.fx("emojiFountainData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],LW.prototype,"onEmojiFountainDataEntityUpdate",null);_.D([_.Lx({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],LW);
_.B(LW,"yt-emoji-fountain-view-model",function(){if(uA9===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;e_t===void 0&&(e_t=document.createElement("template"));var w=e_t;S.call(C,w.content.cloneNode(!0),H.content.firstChild);uA9=H}H=uA9;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var vlP;var l9r;var gF=function(){return _.X.apply(this,arguments)||this};
_.G(gF,_.X);gF.prototype.onChoiceChanged=function(){this.data&&_.Ed(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
gF.prototype.onChoiceChanged=gF.prototype.onChoiceChanged;_.D([_.V(),_.K("design:type",Object)],gF.prototype,"data",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],gF.prototype,"onChoiceChanged",null);_.D([_.h({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],gF);
_.B(gF,"yt-live-chat-banner-poll-choice",function(){if(l9r===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;vlP===void 0&&(vlP=document.createElement("template"));var w=vlP;S.call(C,w.content.cloneNode(!0),H.content.firstChild);l9r=H}H=l9r;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var V2B;var olt;var U3=function(){var H=_.X.apply(this,arguments)||this;H.modern=_.E("web_button_rework_with_live");H.small=!1;return H};
_.G(U3,_.X);U3.prototype.computeIsSmall=function(){var H;return((H=this.buttonOverrides)==null?void 0:H.size)==="S"};
U3.prototype.computeId=function(){return this.data&&this.data.targetId};
_.D([_.v(_.TH.YtLiveChatTooltipTargetingBehavior),_.K("design:type",Object)],U3.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.D([_.V({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.K("design:type",String)],U3.prototype,"id",void 0);_.D([_.V(),_.K("design:type",Object)],U3.prototype,"buttonOverrides",void 0);_.D([_.V(),_.K("design:type",Object)],U3.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],U3.prototype,"modern",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.K("design:type",Object)],U3.prototype,"small",void 0);_.D([_.h({disableElementRegistration:!0,is:"yt-live-chat-button"})],U3);
_.B(U3,"yt-live-chat-button",function(){if(olt===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;V2B===void 0&&(V2B=document.createElement("template"));var w=V2B;S.call(C,w.content.cloneNode(!0),H.content.firstChild);olt=H}H=olt;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var OXD;var XjB;var Rr=function(){var H=_.X.apply(this,arguments)||this;H.inCollapsedBanner=!1;H.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};H.questionButtonOverrides={style:"mono",type:"filled"};return H};
_.G(Rr,_.X);_.F=Rr.prototype;_.F.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]]"}}}}}};
_.F.onContextMenuButtonClick=function(H){this.ytLiveChatItemBehavior.showContextMenu(H)};
_.F.onYtRendererstamperFinished=function(){this.menuButton=_.mY(this.hostElement).querySelector("#menu-button")};
_.F.dataChanged=function(){var H,C;if((C=_.e((H=this.data)==null?void 0:H.overflowMenuButton,_.cg))==null?0:C.command)this.data.contextMenuEndpoint=_.e(this.data.overflowMenuButton,_.cg).command};
_.F.onButtonClick=function(){var H,C=_.e((H=this.data)==null?void 0:H.askQuestionButton,_.cg);if(C){if(C.trackingParams&&(H=_.Qh(C.trackingParams))){var S=_.Dg();S&&_.Sp(S,H)}_.M3(this.hostElement,"innertube-command",C.command)}};
Rr.prototype.onYtRendererstamperFinished=Rr.prototype.onYtRendererstamperFinished;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Rr.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.qU),_.K("design:type",Object)],Rr.prototype,"ytLiveChatReduxBehavior",void 0);_.D([_.v(_.bQ.YtLiveChatItemBehavior),_.K("design:type",_.EY)],Rr.prototype,"ytLiveChatItemBehavior",void 0);_.D([_.V({observer:"dataChanged"}),_.K("design:type",Object)],Rr.prototype,"data",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Rr.prototype,"inCollapsedBanner",void 0);_.D([_.V(),_.K("design:type",Object)],Rr.prototype,"buttonOverrides",void 0);_.D([_.V(),_.K("design:type",Object)],Rr.prototype,"questionButtonOverrides",void 0);_.D([_.Gz("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Rr.prototype,"onYtRendererstamperFinished",null);
_.D([_.h({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],Rr);
_.B(Rr,"yt-live-chat-call-for-questions-renderer",function(){if(XjB===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;OXD===void 0&&(OXD=document.createElement("template"));var w=OXD;S.call(C,w.content.cloneNode(!0),H.content.firstChild);XjB=H}H=XjB;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var Qph={};Qph.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 H=this;window.requestAnimationFrame(function(){H.restoreFocusNode_||(H.restoreFocusNode_=document.activeElement);var C=_.un7(H.hostElement);C.length&&C[C.length-1].focus()})},
isAttachedChanged_:function(H,C){H?this.focusChild_():C&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(H){this.hidden||_.Ar(H).indexOf(this.hostElement)!==-1||(H.stopPropagation(),this.focusChild_())}};var dHv;var PR7;var Ir=function(){return _.X.apply(this,arguments)||this};
_.G(Ir,_.X);Ir.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Ir.prototype.onClick=function(H){H.target!==this.confirmButton&&H.target!==this.cancelButton&&(this.hidden=!0)};
_.D([_.lA("#confirm_button"),_.K("design:type",Object)],Ir.prototype,"confirmButton",void 0);_.D([_.lA("#cancel_button"),_.K("design:type",Object)],Ir.prototype,"cancelButton",void 0);_.D([_.V(),_.K("design:type",$H9)],Ir.prototype,"data",void 0);_.D([_.V({value:!0,reflectToAttribute:!0}),_.K("design:type",Boolean)],Ir.prototype,"hidden",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Ir.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.v(Qph.YtLiveChatDialogBehavior),_.K("design:type",Object)],Ir.prototype,"ytLiveChatDialogBehavior",void 0);_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],Ir);
var $H9=_.B(Ir,"yt-live-chat-dialog-renderer",function(){if(PR7===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;dHv===void 0&&(dHv=document.createElement("template"));var w=dHv;S.call(C,w.content.cloneNode(!0),H.content.firstChild);PR7=H}H=PR7;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var pjV;var kVT,h_B=function(){if(kVT!==void 0)return kVT;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;pjV===void 0&&(pjV=document.createElement("template"));var w=pjV;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return kVT=H};var nl4;var rbr;var ar=function(){var H=_.X.apply(this,arguments)||this;H.tooltip=null;H.data=null;H.id="";H.active=!1;H.icon="";H.disabled=!1;H.showTooltip=!1;H.useToggledActiveState=!0;H.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return H};
_.G(ar,_.X);_.F=ar.prototype;
_.F.dataChanged=function(){var H;((H=this.data)==null?0:H.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,_.bA)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var C;if((C=this.data)==null?0:C.disabled)this.disabled=!0};
_.F.computeId=function(H){return H};
_.F.computeIcon=function(H,C){if(!H)return"";if(this.useToggledActiveState)return"yt-icons:"+H.toLowerCase();var S,w;return C&&((S=this.data)==null?0:(w=S.toggledIcon)==null?0:w.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+H.toLowerCase()};
_.F.logPDGEntryPoint=function(){_.kxW(_.b4("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")};
_.F.immediatelyShowTooltip=function(){var H=_.mY(this.hostElement).querySelector("#tooltip");H.animationDelay=0;H.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};H.show()};
_.F.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.F.onClick=function(H){var C;((C=this.data)==null?0:C.disabled)?this.showTooltip&&this.immediatelyShowTooltip():(this.active=!this.active,this.tooltip&&(this.tooltip.hide(),this.maybeUpdateTooltipText()),this.active&&this.data&&(this.ytRendererBehavior.logExplicitClick(this.data),this.id==="product-picker"&&(this.logPDGEntryPoint(),H.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.M3(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.F.computeShowTooltip=function(H,C){return!!(H&&H.tooltip&&C)};
_.F.maybeUpdateTooltipText=function(){var H=this,C;if((C=this.data)==null?0:C.tooltip){var S=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.bA)(H.tooltip).textContent=S},250)}};
_.F.handleLiveChatActions=function(H){var C=this;H.length&&(this.id!=="creator"&&this.id!=="product-picker"||H.forEach(function(S){(S=C.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",S))&&S.durationSec===S.fullDurationSec&&C.startBubble(C.colorFromDecimal(S.startBackgroundColor))}))};
_.F.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.F.startBubble=function(H){_.Ed(this.hostElement,{"--yt-live-chat-monetization-button-glow":H});this.hostElement.setAttribute("bubble","")};
_.F.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.F.colorFromDecimal=function(H){typeof H==="string"&&(H=Number(H));return"rgba("+[H>>16&255,H>>8&255,H&255,(H>>24&255)/255].join()+")"};
ar.prototype.onAnimationEnd=ar.prototype.onAnimationEnd;ar.prototype.disabledChanged=ar.prototype.disabledChanged;ar.prototype.dataChanged=ar.prototype.dataChanged;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],ar.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],ar.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.TH.YtLiveChatTooltipTargetingBehavior),_.K("design:type",Object)],ar.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],ar.prototype,"data",void 0);_.D([_.V({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.K("design:type",Object)],ar.prototype,"id",void 0);_.D([_.V({notify:!0,reflectToAttribute:!0}),_.K("design:type",Object)],ar.prototype,"active",void 0);
_.D([_.V({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.K("design:type",Object)],ar.prototype,"icon",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],ar.prototype,"disabled",void 0);_.D([_.V({computed:"computeShowTooltip(data, disabled)"}),_.K("design:type",Object)],ar.prototype,"showTooltip",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],ar.prototype,"useToggledActiveState",void 0);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ar.prototype,"dataChanged",null);_.D([_.fx("disabled"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ar.prototype,"disabledChanged",null);_.D([_.Gz("animationend"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],ar.prototype,"onAnimationEnd",null);
_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],ar);
_.B(ar,"yt-live-chat-icon-toggle-button-renderer",function(){if(rbr===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;nl4===void 0&&(nl4=document.createElement("template"));var w=nl4;S.call(C,w.content.cloneNode(!0),H.content.firstChild);rbr=H}H=rbr;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var Bxh;var DH9;var xX=function(){return _.X.apply(this,arguments)||this};
_.G(xX,_.X);xX.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.D([_.V(),_.K("design:type",Object)],xX.prototype,"data",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],xX.prototype,"ytRendererstamperBehavior",void 0);_.D([_.h({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],xX);
_.B(xX,"yt-live-chat-message-input-prompt-header-renderer",function(){if(DH9===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;Bxh===void 0&&(Bxh=document.createElement("template"));var w=Bxh;S.call(C,w.content.cloneNode(!0),H.content.firstChild);DH9=H}H=DH9;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var KD4;var t2T;var LDV;var glT;var UHB;var R_B;var I9D=function(){return _.X.apply(this,arguments)||this};
_.G(I9D,_.X);_.D([_.V(),_.K("design:type",Object)],I9D.prototype,"data",void 0);_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],I9D);
_.B(I9D,"yt-live-chat-message-subtext-renderer",function(){if(R_B===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;UHB===void 0&&(UHB=document.createElement("template"));var w=UHB;S.call(C,w.content.cloneNode(!0),H.content.firstChild);R_B=H}H=R_B;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var HE=function(){var H=_.X.apply(this,arguments)||this;H.subtextOnBottom=!1;H.buttonOverrides={style:"mono",type:"tonal"};return H};
_.G(HE,_.X);HE.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"}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],HE.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],HE.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],HE.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],HE.prototype,"subtextOnBottom",void 0);_.D([_.V(),_.K("design:type",Object)],HE.prototype,"buttonOverrides",void 0);
_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],HE);
_.B(HE,"yt-live-chat-message-renderer",function(){if(glT===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;LDV===void 0&&(LDV=document.createElement("template"));var w=LDV;S.call(C,w.content.cloneNode(!0),H.content.firstChild);glT=H}H=glT;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var a9P;var xHB;var iG=function(){var H=_.X.apply(this,arguments)||this;H.isRemovable=!1;H.hasPrefilledText=!1;H.isInputDirty=!1;H.overCharacterLimit=!1;H.underCharacterLimit=!1;H.showErrorMessage=!1;return H};
_.G(iG,_.X);_.F=iG.prototype;_.F.computeId=function(){return this.data.id};
_.F.computeInputData=function(){return this.data.inputData};
_.F.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.F.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.F.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.F.getLiveChatRichMessageInput=function(){return _.mY(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.F.clearInput=function(){_.mY(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.F.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.F.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.F.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.F.handleTextInputCharCountChanged=function(H){H=H.detail&&H.detail.characterCount;H!==void 0&&(this.characterCount=H,H!==0&&(this.isInputDirty=!0))};
_.F.onInputFocusOut=function(){this.isInputDirty=!0};
_.F.onClickCloseButton=function(){_.M3(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
iG.prototype.handleTextInputCharCountChanged=iG.prototype.handleTextInputCharCountChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],iG.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],iG.prototype,"data",void 0);_.D([_.V({computed:"computeId(data.id)"}),_.K("design:type",String)],iG.prototype,"id",void 0);_.D([_.V({computed:"computeInputData(data.inputData)"}),_.K("design:type",Object)],iG.prototype,"inputData",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.K("design:type",Object)],iG.prototype,"isRemovable",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.K("design:type",Object)],iG.prototype,"hasPrefilledText",void 0);_.D([_.V({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.K("design:type",Number)],iG.prototype,"charactersRemaining",void 0);
_.D([_.V(),_.K("design:type",Number)],iG.prototype,"characterCount",void 0);_.D([_.V(),_.K("design:type",Object)],iG.prototype,"isInputDirty",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.K("design:type",Object)],iG.prototype,"overCharacterLimit",void 0);_.D([_.V({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.K("design:type",Object)],iG.prototype,"underCharacterLimit",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.K("design:type",Object)],iG.prototype,"showErrorMessage",void 0);_.D([_.Gz("yt-live-chat-text-input-field-renderer-character-count-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],iG.prototype,"handleTextInputCharCountChanged",null);
_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],iG);
_.B(iG,"yt-live-chat-poll-editor-input",function(){if(xHB===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;a9P===void 0&&(a9P=document.createElement("template"));var w=a9P;S.call(C,w.content.cloneNode(!0),H.content.firstChild);xHB=H}H=xHB;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var H69;var i6T;var Cdv={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},Ce=function(){var H=_.X.apply(this,arguments)||this;H.modern=_.E("web_button_rework_with_live");H.closeButtonOverrides={iconPosition:"icon-only"};H.startButtonOverrides={style:"mono",type:"filled"};H.addOptionButtonOverrides={style:"mono",type:"text"};return H};
_.G(Ce,_.X);_.F=Ce.prototype;
_.F.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"}}}}};
_.F.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var H;_.e((H=this.data)==null?void 0:H.startButton,_.cg)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.F.computeId=function(){return this.data&&this.data.id||""};
_.F.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.F.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.F.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.F.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.F.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var H=0;H<this.pollEditorInfoWithDefaults.minPollOptions;H++)this.addPollOptionData()};
_.F.getIsValidPoll=function(){var H=this;if(!this.pollEditorInfoWithDefaults)return!1;var C=this.pollEditorInfoWithDefaults,S=C.minPollOptionChars,w=C.maxPollOptionChars,A=C.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>C.maxPollQuestionChars)return!1;C=_.mY(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(C).every(function(J,c){J=J.characterCount;!J&&A[c]&&(J=H.ytRendererBehavior.getSimpleString(A[c]).length);return J!==void 0&&J>=S&&J<=w})};
_.F.isValidPollChanged=function(){var H;_.e((H=this.data)==null?void 0:H.startButton,_.cg)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.F.addPollOptionData=function(){var H=this.pollEditorInfoWithDefaults,C=H.maxPollOptionChars,S=H.optionPlaceholderText,w=H.customOptionPlaceholderText,A=H.pollOptionData;this.currentNumPollOptions>=H.maxPollOptions||(H={liveChatPollOptionInput:{inputData:{placeholder:w[this.currentNumPollOptions]||S,maxCharacterLimit:C},maxCharacterLimit:C,minCharacterLimit:H.minPollOptionChars,hasPrefilledText:!!w[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=H.minPollOptions}},A.charCountErrorText&&
(H.liveChatPollOptionInput.charCountErrorText=A.charCountErrorText),A.charsRemainingAltLabel&&(H.liveChatPollOptionInput.charsRemainingAltLabel=A.charsRemainingAltLabel),A.removeOptionAltText&&(H.liveChatPollOptionInput.removeOptionAltText=A.removeOptionAltText),this.push("pollOptionsData",H),A=Array.from(_.mY(_.mY(this.hostElement).querySelector("#poll-options")).children),A.forEach(function(J,c){J.polymerController.set("data.id",c)}),_.mY(A[A.length-1]).querySelector("#input").focus())};
_.F.getPollOptionInputValues=function(){var H=this,C=[],S=_.mY(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),w=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(S).forEach(function(A,J){var c=null;A=A.getLiveChatRichMessageInput();var Y;(A==null?0:(Y=A.textSegments)==null?0:Y.length)?c=_.RW(A):w[J]&&(c=H.formattedStringToLiveChatRichMessageInput(w[J]));C.push(c)});
return C};
_.F.requestCreateAndStartPoll=function(H){var C=this.getPollOptionInputValues();if(!C.some(function(w){return!w})){C={optionText:C};
var S=_.mY(_.mY(this.hostElement).querySelector("#poll-question")).firstChild;S&&S.liveChatRichMessageInput&&(C.questionText=_.RW(S.liveChatRichMessageInput));_.WH(this.hostElement,[H,C])}};
_.F.selectedChanged=function(){if(this.selected){var H=_.mY(_.mY(this.hostElement).querySelector("#start-button")).firstElementChild;if(H){var C;(C=_.mY(H).querySelector("#button")||_.WY(H).querySelector("button"))==null||C.focus()}}};
_.F.handleTextInputChanged=function(H){var C;((C=H.target)==null?void 0:C.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=H.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.F.handleStartButtonAction=function(H){H.detail.actionName==="yt-service-request"&&(H.stopPropagation(),(H=H.detail.args[1])&&this.requestCreateAndStartPoll(H))};
_.F.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.F.handleServiceRequestCompleted=function(H){this.createPollRequestInFlight=!1;(H=H.detail&&H.detail.data)&&H.success&&(_.M3(this.hostElement,"picker-cancelled"),_.q3(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.F.onCloseClick=function(){_.M3(this.hostElement,"picker-cancelled");_.q3(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.F.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.F.handlePollEditorInputClosed=function(H){var C=this.pollOptionsData.findIndex(function(S){return S.liveChatPollOptionInput.id===H.detail.id});
this.splice("pollOptionsData",C,1);this.isValidPoll=this.getIsValidPoll()};
_.F.onPickerCancelled=function(){this.reset()};
_.F.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var H=_.mY(_.mY(this.hostElement).querySelector("#poll-question")).firstChild;H&&H.setLiveChatRichMessageInput(null);if(H=_.mY(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){H=_.Z(Array.from(H));for(var C=H.next();!C.done;C=H.next())C.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.F.formattedStringToLiveChatRichMessageInput=function(H){return H.simpleText?{text_segments:[H.simpleText]}:{text_segments:H.runs}};
_.JJ.Object.defineProperties(Ce.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(Cdv,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
Ce.prototype.onPickerCancelled=Ce.prototype.onPickerCancelled;Ce.prototype.handlePollEditorInputClosed=Ce.prototype.handlePollEditorInputClosed;Ce.prototype.handleServiceRequestCompleted=Ce.prototype.handleServiceRequestCompleted;Ce.prototype.handleServiceRequestSent=Ce.prototype.handleServiceRequestSent;Ce.prototype.handleTextInputChanged=Ce.prototype.handleTextInputChanged;Ce.prototype.selectedChanged=Ce.prototype.selectedChanged;Ce.prototype.isValidPollChanged=Ce.prototype.isValidPollChanged;
Ce.prototype.shouldInitializePollChanged=Ce.prototype.shouldInitializePollChanged;Ce.prototype.dataChanged=Ce.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Ce.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Ce.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Ce.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Ce.prototype,"modern",void 0);
_.D([_.V(),_.K("design:type",Object)],Ce.prototype,"closeButtonOverrides",void 0);_.D([_.V(),_.K("design:type",Object)],Ce.prototype,"startButtonOverrides",void 0);_.D([_.V(),_.K("design:type",Object)],Ce.prototype,"addOptionButtonOverrides",void 0);_.D([_.V({computed:"computeId(data.id)",reflectToAttribute:!0}),_.K("design:type",String)],Ce.prototype,"id",void 0);_.D([_.V({value:function(){return[]}}),
_.K("design:type",Array)],Ce.prototype,"pollOptionsData",void 0);_.D([_.l("pollEditorInfoWithDefaults"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ce.prototype,"pollQuestionData",null);_.D([_.V({value:0}),_.K("design:type",Number)],Ce.prototype,"pollQuestionCharacterCount",void 0);_.D([_.l("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ce.prototype,"pollQuestionCharactersRemaining",null);
_.D([_.V({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.K("design:type",Boolean)],Ce.prototype,"overQuestionCharacterLimit",void 0);_.D([_.l("data.pollEditorInfo"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ce.prototype,"pollEditorInfoWithDefaults",null);_.D([_.V({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.K("design:type",Number)],Ce.prototype,"currentNumPollOptions",void 0);
_.D([_.V({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Ce.prototype,"hasMaxNumPollOptions",void 0);_.D([_.l("pollEditorInfoWithDefaults","pollOptionsData"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Ce.prototype,"shouldInitializePoll",null);_.D([_.V(),_.K("design:type",Object)],Ce.prototype,"isValidPoll",void 0);
_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],Ce.prototype,"createPollRequestInFlight",void 0);_.D([_.V(),_.K("design:type",Object)],Ce.prototype,"selected",void 0);_.D([_.V({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.K("design:type",Boolean)],Ce.prototype,"showQuestionErrorMessage",void 0);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ce.prototype,"dataChanged",null);_.D([_.fx("shouldInitializePoll"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ce.prototype,"shouldInitializePollChanged",null);_.D([_.fx("isValidPoll"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ce.prototype,"isValidPollChanged",null);
_.D([_.fx("selected"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ce.prototype,"selectedChanged",null);_.D([_.Gz("yt-live-chat-text-input-field-renderer-character-count-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Ce.prototype,"handleTextInputChanged",null);
_.D([_.Gz("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ce.prototype,"handleServiceRequestSent",null);_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Ce.prototype,"handleServiceRequestCompleted",null);
_.D([_.Gz("yt-live-chat-poll-editor-input-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Ce.prototype,"handlePollEditorInputClosed",null);_.D([_.Gz("picker-cancelled"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ce.prototype,"onPickerCancelled",null);_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],Ce);
_.B(Ce,"yt-live-chat-poll-editor-panel-renderer",function(){if(i6T===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;H69===void 0&&(H69=document.createElement("template"));var w=H69;S.call(C,w.content.cloneNode(!0),H.content.firstChild);i6T=H}H=i6T;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var Spv;var s7P;var Sl=function(){return _.X.apply(this,arguments)||this};
_.G(Sl,_.X);Sl.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
Sl.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.JJ.Object.defineProperties(Sl.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var H,C;return(H=this.data)==null?void 0:(C=H.title)==null?void 0:C.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var H;return _.L7((H=this.data)==null?void 0:H.onTapCommand)}}});
_.D([_.v(_.tZ.YtEndpointBehavior),_.K("design:type",Object)],Sl.prototype,"ytEndpointBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Sl.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Sl.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Sl.prototype,"itemId",null);
_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Sl.prototype,"hasPromotion",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Sl.prototype,"innertubeCommand",null);_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],Sl);
_.B(Sl,"yt-live-chat-product-picker-panel-item-view-model",function(){if(s7P===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;Spv===void 0&&(Spv=document.createElement("template"));var w=Spv;S.call(C,w.content.cloneNode(!0),H.content.firstChild);s7P=H}H=s7P;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var j7v;var wlB;var s8=function(){var H=_.X.apply(this,arguments)||this;H.id="product-picker";H.selected=!1;H.closeButtonId="close-button";H.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return H};
_.G(s8,_.X);_.F=s8.prototype;_.F.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.F.observeSelected=function(){this.selected&&this.hostElement.focus();var H=_.mY(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");H.length&&H[0].focus()};
_.F.onCloseBuyFlow=function(){_.M3(this.hostElement,"picker-cancelled")};
_.F.onCloseClick=function(){_.M3(this.hostElement,"picker-cancelled");var H;((H=this.data)==null?0:H.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.e(this.data.closeButton,_.qc))};
_.F.onCloseEngageWithAudienceEditorPanels=function(){_.M3(this.hostElement,"picker-cancelled")};
s8.prototype.observeSelected=s8.prototype.observeSelected;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],s8.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],s8.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],s8.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],s8.prototype,"data",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],s8.prototype,"id",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],s8.prototype,"selected",void 0);_.D([_.V(),_.K("design:type",Object)],s8.prototype,"closeButtonId",void 0);_.D([_.fx("selected"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],s8.prototype,"observeSelected",null);
_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],s8);
_.B(s8,"yt-live-chat-product-picker-panel-view-model",function(){if(wlB===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;j7v===void 0&&(j7v=document.createElement("template"));var w=j7v;S.call(C,w.content.cloneNode(!0),H.content.firstChild);wlB=H}H=wlB;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var AkB;var Jk2;var jl=function(){var H=_.X.apply(this,arguments)||this;H.iconId="";H.icon="";H.disabled=!1;H.systemIcons=_.E("kevlar_system_icons");return H};
_.G(jl,_.X);_.F=jl.prototype;_.F.computeIconId=function(H){return H&&H.icon&&H.icon.iconType?H.icon.iconType.toLowerCase():""};
_.F.computeIcon=function(H){return H&&H.icon&&H.icon.iconType?(H=H.icon.iconType.toLowerCase(),(H.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+H):""};
_.F.computeDisabled=function(H){return!!H};
_.F.computeCommand=function(H,C){return C?void 0:H};
_.F.computeTooltip=function(H,C){return C&&H?H:""};
_.F.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.JJ.Object.defineProperties(jl.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var H="",C,S,w;if((C=this.data)==null?0:(S=C.text)==null?0:(w=S.runs)==null?0:w.length)H=this.data.text.runs[0].text||"";else{var A,J;if((A=this.data)==null?0:(J=A.text)==null?0:J.simpleText)H=this.data.text.simpleText}var c,Y,M;if((c=this.data)==null?0:(Y=c.subtext)==null?0:(M=Y.runs)==null?0:M.length)H&&(H+=". "),H+=this.data.subtext.runs[0].text||"";else{var m,W;if((m=this.data)==null?0:(W=m.subtext)==
null?0:W.simpleText)H&&(H+=". "),H+=this.data.subtext.simpleText}return H}}});
_.D([_.v(_.tZ.YtEndpointBehavior),_.K("design:type",Object)],jl.prototype,"ytEndpointBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],jl.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],jl.prototype,"data",void 0);_.D([_.V({computed:"computeIconId(data)",reflectToAttribute:!0}),_.K("design:type",Object)],jl.prototype,"iconId",void 0);
_.D([_.V({computed:"computeIcon(data)",reflectToAttribute:!0}),_.K("design:type",Object)],jl.prototype,"icon",void 0);_.D([_.V({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.K("design:type",Object)],jl.prototype,"disabled",void 0);_.D([_.V({computed:"computeCommand(data.command, disabled)"}),_.K("design:type",Object)],jl.prototype,"command",void 0);_.D([_.V({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.K("design:type",String)],jl.prototype,"tooltip",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],jl.prototype,"systemIcons",void 0);_.D([_.l("data.text","data.subtext"),_.V(),_.K("design:type",String),_.K("design:paramtypes",[])],jl.prototype,"ariaLabel",null);_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],jl);
_.B(jl,"yt-live-chat-product-button-renderer",function(){if(Jk2===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;AkB===void 0&&(AkB=document.createElement("template"));var w=AkB;S.call(C,w.content.cloneNode(!0),H.content.firstChild);Jk2=H}H=Jk2;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var FmT;var Z6v;var wK=function(){var H=_.X.apply(this,arguments)||this;H.selected=!1;H.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 H};
_.G(wK,_.X);_.F=wK.prototype;_.F.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"}}}};
_.F.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.F.computeId=function(H){return H.id||""};
_.F.onCloseClick=function(){_.M3(this.hostElement,"picker-cancelled")};
_.F.observeSelected=function(){this.selected&&this.hostElement.focus();var H=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");H.length&&H[0].focus()};
_.F.onCloseBuyFlow=function(){_.M3(this.hostElement,"picker-cancelled")};
_.F.onCloseEngageWithAudienceEditorPanels=function(){_.M3(this.hostElement,"picker-cancelled")};
wK.prototype.observeSelected=wK.prototype.observeSelected;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],wK.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],wK.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],wK.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],wK.prototype,"data",void 0);
_.D([_.V({computed:"computeId(data)",reflectToAttribute:!0}),_.K("design:type",String)],wK.prototype,"id",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],wK.prototype,"selected",void 0);_.D([_.fx("selected"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wK.prototype,"observeSelected",null);_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],wK);
_.B(wK,"yt-live-chat-product-picker-renderer",function(){if(Z6v===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;FmT===void 0&&(FmT=document.createElement("template"));var w=FmT;S.call(C,w.content.cloneNode(!0),H.content.firstChild);Z6v=H}H=Z6v;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var ckv;var Ypt;var zzc;var Mm2;var A4=function(){return _.X.apply(this,arguments)||this};
_.G(A4,_.X);A4.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()};
A4.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
A4.prototype.created=function(){this.ids={background:_.yj(),maskOne:_.yj(),maskTwo:_.yj(),gradient:_.yj(),largeBackground:_.yj(),largeGradientOne:_.yj(),largeGradientTwo:_.yj(),largeGradientPath:_.yj()}};
A4.prototype.maybeLoadAnimationBackground=A4.prototype.maybeLoadAnimationBackground;_.D([_.V({value:!1}),_.K("design:type",Boolean)],A4.prototype,"useLargeBackground",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],A4.prototype,"useAnimationBackground",void 0);_.D([_.V({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.K("design:type",Boolean)],A4.prototype,"useRegularBackground",void 0);
_.D([_.V(),_.K("design:type",Object)],A4.prototype,"ids",void 0);_.D([_.V(),_.K("design:type",Object)],A4.prototype,"lottieAnimation",void 0);_.D([_.lA("#animation-background"),_.K("design:type",HTMLDivElement)],A4.prototype,"animationBackground",void 0);_.D([_.fx("useAnimationBackground"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],A4.prototype,"maybeLoadAnimationBackground",null);
_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],A4);
_.B(A4,"yt-live-interactivity-component-background",function(){if(Mm2===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;zzc===void 0&&(zzc=document.createElement("template"));var w=zzc;S.call(C,w.content.cloneNode(!0),H.content.firstChild);Mm2=H}H=Mm2;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var J4=function(){var H=_.X.apply(this,arguments)||this;H.characterCount=0;H.showInputErrorMessage=!1;H.startQnaRequestInFlight=!1;H.modern=_.E("web_button_rework_with_live");H.buttonOverrides={style:"mono",type:"filled"};H.closeButtonOverrides={iconPosition:"icon-only"};H.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return H};
_.G(J4,_.X);_.F=J4.prototype;
_.F.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]]"}}}}}};
_.F.onCharacterCountChanged=function(H){var C,S,w,A,J=(S=_.e(this==null?void 0:(C=this.data)==null?void 0:C.creatorCallForQuestions,tnP))==null?void 0:(w=S.inputField)==null?void 0:(A=w.liveChatTextInputFieldRenderer)==null?void 0:A.maxCharacterLimit,c,Y;J!=null&&(H==null?void 0:(c=H.detail)==null?void 0:c.characterCount)!=null&&_.e(this==null?void 0:(Y=this.data)==null?void 0:Y.startButton,_.cg)&&(C=H.detail.characterCount>J,this.set("data.startButton.buttonRenderer.isDisabled",H.detail.characterCount===
0||C),this.showInputErrorMessage=C)};
_.F.onCloseClick=function(){_.M3(this.hostElement,"picker-cancelled");_.q3(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.F.onPickerCancelled=function(){var H=_.mY(this.hostElement).querySelector("#qna-creator-text-input-field");H&&H.setLiveChatRichMessageInput(null)};
_.F.handleOpenQnaStartPanel=function(){var H=_.mY(this.hostElement).querySelector("#qna-creator-text-input-field");H&&H.focus()};
_.F.handleStartButtonAction=function(H){var C=this;if(H.detail.actionName==="yt-service-request"&&(H.stopPropagation(),H=H.detail.args[1])){var S=_.mY(this.hostElement).querySelector("#qna-creator-text-input-field"),w;(S==null?0:(w=S.liveChatRichMessageInput)==null?0:w.textSegments)&&S.liveChatRichMessageInput.textSegments.length!==0&&(w={rich_message:_.RW(S.liveChatRichMessageInput)},_.WH(this.hostElement,[H,w]).then(function(){_.M3(C.hostElement,"picker-cancelled")}))}};
_.F.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.F.handleServiceRequestCompleted=function(H){var C;H=H==null?void 0:(C=H.detail)==null?void 0:C.data;(H==null?0:H.actions)&&H.actions.length>0?this.startQnaRequestInFlight=!1:_.q3(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.F.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
J4.prototype.handleServiceRequestError=J4.prototype.handleServiceRequestError;J4.prototype.handleServiceRequestCompleted=J4.prototype.handleServiceRequestCompleted;J4.prototype.handleServiceRequestSent=J4.prototype.handleServiceRequestSent;J4.prototype.onPickerCancelled=J4.prototype.onPickerCancelled;J4.prototype.onCharacterCountChanged=J4.prototype.onCharacterCountChanged;_.D([_.V(),_.K("design:type",Object)],J4.prototype,"characterCount",void 0);
_.D([_.V(),_.K("design:type",Object)],J4.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],J4.prototype,"showInputErrorMessage",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],J4.prototype,"startQnaRequestInFlight",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],J4.prototype,"modern",void 0);_.D([_.V(),_.K("design:type",Object)],J4.prototype,"buttonOverrides",void 0);
_.D([_.V(),_.K("design:type",Object)],J4.prototype,"closeButtonOverrides",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],J4.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.qU),_.K("design:type",Object)],J4.prototype,"ytLiveChatReduxBehavior",void 0);_.D([_.v(_.bQ.YtLiveChatItemBehavior),_.K("design:type",_.EY)],J4.prototype,"ytLiveChatItemBehavior",void 0);
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],J4.prototype,"ytActionHandlerBehavior",void 0);_.D([_.Gz("yt-live-chat-text-input-field-renderer-character-count-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],J4.prototype,"onCharacterCountChanged",null);_.D([_.Gz("picker-cancelled"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],J4.prototype,"onPickerCancelled",null);
_.D([_.Gz("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],J4.prototype,"handleServiceRequestSent",null);_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],J4.prototype,"handleServiceRequestCompleted",null);
_.D([_.Gz("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],J4.prototype,"handleServiceRequestError",null);_.D([_.h({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],J4);
_.B(J4,"yt-live-chat-qna-start-panel-renderer",function(){if(Ypt===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;ckv===void 0&&(ckv=document.createElement("template"));var w=ckv;S.call(C,w.content.cloneNode(!0),H.content.firstChild);Ypt=H}H=Ypt;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var qp2;var TSt;var Fg=function(){return _.X.apply(this,arguments)||this};
_.G(Fg,_.X);Fg.prototype.dismiss=function(){_.M3(this.hostElement,"yt-live-chat-error-message-dismiss")};
Fg.prototype.edit=function(){_.M3(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.D([_.V(),_.K("design:type",Object)],Fg.prototype,"data",void 0);_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],Fg);
_.B(Fg,"yt-live-chat-text-actions-error-message-renderer",function(){if(TSt===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;qp2===void 0&&(qp2=document.createElement("template"));var w=qp2;S.call(C,w.content.cloneNode(!0),H.content.firstChild);TSt=H}H=TSt;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var mxv;var WmT;var ykP;var NSB;var Zd=function(){var H=_.X.apply(this,arguments)||this;H.isDarkTheme=document.documentElement.hasAttribute("dark");H.newnessDotEligible=!1;return H};
_.G(Zd,_.X);Zd.prototype.sendReaction=function(){var H,C,S=((H=this.data)==null?void 0:H.emojiId)||((C=this.data)==null?void 0:C.emoteId),w;S&&((w=this.data)==null?0:w.shouldTriggerAnimation)&&_.q3(this.hostElement,"yt-create-user-reaction-animation",[S]);var A;(H=_.L7((A=this.data)==null?void 0:A.onTap))&&_.uJ(H,this.hostElement);this.showNewnessDot&&_.q3(this.hostElement,"yt-hide-newness-dot")};
Zd.prototype.onClick=function(H){(!H||H.clientX||H.clientY)&&this.sendReaction()};
Zd.prototype.onKeyDown=function(H){H.key!=="Enter"&&H.key!==" "||H.repeat||this.sendReaction()};
_.JJ.Object.defineProperties(Zd.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var H,C;return!!(((H=this.data)==null?0:H.emojiId)||((C=this.data)==null?0:C.emoteId))}}});
_.D([_.V(),_.K("design:type",Object)],Zd.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Zd.prototype,"isDarkTheme",void 0);_.D([_.V(),_.K("design:type",Object)],Zd.prototype,"newnessDotEligible",void 0);_.D([_.l("data.maybeShowNewnessDot"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Zd.prototype,"showNewnessDot",null);_.D([_.l("data.emojiId","data.emoteId"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Zd.prototype,"useYtImage",null);
_.D([_.Lx({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],Zd);
_.B(Zd,"yt-reaction-control-panel-button-view-model",function(){if(NSB===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;ykP===void 0&&(ykP=document.createElement("template"));var w=ykP;S.call(C,w.content.cloneNode(!0),H.content.firstChild);NSB=H}H=NSB;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var b6V;var EJB;var cE=function(){var H=_.X.apply(this,arguments)||this;H.reactionControlPanelExpanded=!1;H.isDarkTheme=document.documentElement.hasAttribute("dark");H.newnessDotEligible=!1;return H};
_.G(cE,_.X);_.F=cE.prototype;_.F.expandedButtonsChanged=function(){var H,C;_.Ed(this.hostElement,{"--expanded-buttons-height":((C=(H=this.expandedButtonsData)==null?void 0:H.length)!=null?C:0)*36+"px"})};
_.F.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}}};
_.F.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.F.onMouseLeave=function(){var H=this;this.collapseTimer=setTimeout(function(){H.reactionControlPanelExpanded=!1},500)};
_.F.onFocusIn=function(){this.onMouseEnter()};
_.F.onFocusOut=function(){this.onMouseLeave()};
_.F.onCollapsedButtonFocusIn=function(){var H=this;setTimeout(function(){var C;(C=H.expandedButtons.querySelector("button"))==null||C.focus()},100)};
_.F.onCollapsedButtonFocusOut=function(H){H.stopPropagation()};
_.JJ.Object.defineProperties(cE.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var H,C;return _.hb.unsafeClone((H=this.liveReactionsData)==null?void 0:H.emojiButtonData)||((C=this.data)==null?void 0:C.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var H;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((H=this.data)==null||!H.maybeShowNewnessDot)}}});
cE.prototype.expandedButtonsChanged=cE.prototype.expandedButtonsChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],cE.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],cE.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.qU),_.K("design:type",Object)],cE.prototype,"ytLiveChatReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],cE.prototype,"data",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],cE.prototype,"reactionControlPanelExpanded",void 0);_.D([_.V({selectorArgs:["data.liveReactionsDataEntityKey"],selector:NPD}),_.K("design:type",Object)],cE.prototype,"liveReactionsData",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],cE.prototype,"isDarkTheme",void 0);_.D([_.V(),_.K("design:type",Object)],cE.prototype,"newnessDotEligible",void 0);
_.D([_.l("liveReactionsData","data.expandedButtons"),_.K("design:type",Object),_.K("design:paramtypes",[])],cE.prototype,"expandedButtonsData",null);_.D([_.l("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.V({reflectToAttribute:!0}),_.K("design:type",Object),_.K("design:paramtypes",[])],cE.prototype,"showNewnessDot",null);_.D([_.lA("#expanded-buttons"),_.K("design:type",HTMLElement)],cE.prototype,"expandedButtons",void 0);
_.D([_.fx("expandedButtonsData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cE.prototype,"expandedButtonsChanged",null);_.D([_.Lx({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],cE);
_.B(cE,"yt-reaction-control-panel-view-model",function(){if(EJB===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;b6V===void 0&&(b6V=document.createElement("template"));var w=b6V;S.call(C,w.content.cloneNode(!0),H.content.firstChild);EJB=H}H=EJB;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var Y5=new _.LV("yt-live-chat"),ezt=Date.parse("2024-7-24"),zs=function(){var H=_.X.apply(this,arguments)||this;H.emojiManager=_.Nh;H.newnessDotEligible=!1;H.newnessDotImpressionCounted=!1;H.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return H};
_.G(zs,_.X);_.F=zs.prototype;_.F.emojiCustomizationEnabledChanged=function(){var H;((H=this.data)==null?0:H.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((H=Y5.getCreationTime("emoji-customization-count"))&&H<ezt&&Y5.set("emoji-customization-count","0"),H=Number(Y5.get("emoji-customization-count"))||0,H<3&&(this.newnessDotEligible=!0,Y5.set("emoji-customization-count",(H+1).toString())),this.newnessDotImpressionCounted=!0)};
_.F.hideNewnessDot=function(){this.newnessDotEligible=!1;Y5.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.F.handleReactionsMute=function(H){var C=_.Dg(),S=_.y4(206221),w={checkboxData:{state:H?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};C&&_.Sp(C,S,w);this.reactionsMuted=H};
_.F.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.F.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}}};
_.JJ.Object.defineProperties(zs.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var H;return(!((H=this.liveReactionsData)==null||!H.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
zs.prototype.liveReactionsSettingChanged=zs.prototype.liveReactionsSettingChanged;zs.prototype.emojiCustomizationEnabledChanged=zs.prototype.emojiCustomizationEnabledChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],zs.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],zs.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.qU),_.K("design:type",Object)],zs.prototype,"ytLiveChatReduxBehavior",void 0);
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],zs.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],zs.prototype,"data",void 0);_.D([_.V(),_.K("design:type",_.mw)],zs.prototype,"emojiManager",void 0);_.D([_.V(),_.K("design:type",Object)],zs.prototype,"newnessDotEligible",void 0);_.D([_.V(),_.K("design:type",Object)],zs.prototype,"newnessDotImpressionCounted",void 0);
_.D([_.V({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:b9D}),_.K("design:type",Boolean)],zs.prototype,"liveReactionsSetting",void 0);_.D([_.V({selectorArgs:["data.liveReactionsDataEntityKey"],selector:NPD}),_.K("design:type",Object)],zs.prototype,"liveReactionsData",void 0);_.D([_.V({value:function(){var H=_.E("enable_lwe_web_mute"),C=Y5.get("allow-reactions");return C===void 0?!1:!C&&H}}),
_.K("design:type",Boolean)],zs.prototype,"reactionsMuted",void 0);_.D([_.V({reflectToAttribute:!0}),_.l("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],zs.prototype,"liveReactionsEnabled",null);_.D([_.fx("data.emojiCustomizationEnabled"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],zs.prototype,"emojiCustomizationEnabledChanged",null);
_.D([_.fx("liveReactionsEnabled"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],zs.prototype,"liveReactionsSettingChanged",null);_.D([_.Lx({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],zs);
_.B(zs,"yt-reaction-control-panel-overlay-view-model",function(){if(WmT===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;mxv===void 0&&(mxv=document.createElement("template"));var w=mxv;S.call(C,w.content.cloneNode(!0),H.content.firstChild);WmT=H}H=WmT;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var uvB={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(H){var C=this.$.pickers.selected;if(C){_.mY(this.hostElement).removeAttribute(C+"-open");var S="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(S="#picker-buttons",C==="emoji"&&_.mY(this.hostElement).querySelector("#emoji-picker-button")&&(S="#emoji-picker-button"));if(S=_.mY(this.hostElement).querySelector(S).querySelector("#"+C))S.active=!1}S=H;C==H&&(S=null);C!=
H&&_.mY(this.hostElement).setAttribute(H+"-open","");this.$.pickers.selected=S;_.q3(this.hostElement,"yt-live-chat-picker-changed",[S])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var MS=function(){var H=_.X.apply(this,arguments)||this;H.numSentMessages=0;H.timeoutDurationMs=0;H.timeoutMs=0;H.lastTimeoutTimeMs=0;H.pendingMessageId="";H.hasFiredInitialFocusActions=!1;H.isBeforeFocusEnabled=!0;H.id="";H.characterCount=0;H.maxCharacterLimit=0;H.remainingCharacterCount=0;H.inputExpanded=!1;H.buttonOverrides={iconPosition:"icon-only"};H.inReplyPanel=!1;H.countdownRatio=0;H.isTooltipVisible=!1;H.tooltipTimeout=1E4;H.systemIcons=_.E("kevlar_system_icons");H.tallerEmojiPicker=_.E("live_chat_taller_emoji_picker");
H.sendReplyMessageInFlight=!1;H.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"};H.onResize=function(){H.maybeToggleCharacterCount()};
return H};
_.G(MS,_.X);_.F=MS.prototype;
_.F.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"}}}};
_.F.attached=function(){window.addEventListener("resize",this.onResize)};
_.F.detached=function(){window.removeEventListener("resize",this.onResize)};
_.F.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.F.sendMessage=function(){var H=this,C,S,w,A;return _.z(function(J){if(H.sendDisabled)return J.return();H.isTooltipVisible&&_.q3(H.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(H.data.sendButton&&H.data.sendButton.buttonRenderer){H.input.completeEmojis();C=H.data.sendButton.buttonRenderer.serviceEndpoint;if(!C)return J.return();w=((S=_.e(C,_.HlV))==null?void 0:S.clientIdPrefix)||"";A={client_message_id:w+String(H.numSentMessages++),rich_message:_.RW(H.input.liveChatRichMessageInput)};
H.pendingMessageId=A.client_message_id;H.inReplyPanel&&(H.sendReplyMessageInFlight=!0);_.WH(H.hostElement,[C,A]);H.input.setLiveChatRichMessageInput(null)}_.oT(J)})};
_.F.handleSendButtonAction=function(H){H.detail.actionName==="yt-service-request"&&(H.stopPropagation(),this.sendMessage())};
_.F.onSendCompleted=function(H,C){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(H=this.get("timeoutDurationUsec",C.data))&&this.handleTimeout(Number(H)/1E3);this.errorMessage=this.get("errorMessage",C.data);this.pendingMessageId=""};
_.F.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.q3(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.F.handlePickerButtonToggle=function(H){H=H.detail.targetId;this.ytPickerBehavior.togglePicker_(H);if(H==="emoji")this.input.focus();else if(H==="qna-start-panel"){var C,S;(C=_.mY(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(S=C.querySelector("#qna-creator-text-input-field"))==null||S.focus()}};
_.F.onComponentReplaced=function(H){var C,S;H.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((C=H.replacement.liveChatMessageInputRenderer)==null?0:(S=C.headerRenderer)==null?0:S.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.F.onEmojiSelect=function(H){this.input.focus();this.input.insertEmoji(H.detail)};
_.F.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.F.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.q3(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.q3(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.F.onOpenPopupAction=function(H,C){var S=this;C===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.q3(S.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.F.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.F.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.F.focusChanged=function(){this.maybeToggleCharacterCount()};
_.F.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var H=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",H>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.F.computeId=function(){return this.data&&this.data.targetId||""};
_.F.computeSendDisabled=function(H,C,S,w){H=!!(!H||C&&H>C||w);(C=_.mY(this.hostElement).querySelector("#send-button"))&&C.children.length&&(C.children[0].disabled=H);return H};
_.F.handleTimeout=function(H){this.timeoutDurationMs=this.timeoutMs=H;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.F.updateTimeout=function(H){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(H-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=H,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.F.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.F.onErrorMessageEdit=function(H){this.input.setLiveChatRichMessageInput(H.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.F.errorMessageChanged=function(){var H=this;_.HI(function(){_.q3(H.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.F.computeAuthorNameColor=function(H){var C;if(_.E("live_chat_author_name_color_usernames")&&(H==null?0:(C=H.authorName)==null?0:C.simpleText))return _.s90(_.j90(H.authorName.simpleText));if(_.E("live_chat_seed_color_usernames")&&(H==null?0:H.authorSeedColorArgb))return _.s90(_.yh(H.authorSeedColorArgb));if(_.E("live_chat_colored_usernames"))return"#cc0000";var S;return _.E("live_chat_simple_color_usernames")&&(H==null?0:(S=H.authorName)==null?0:S.simpleText)&&(H==null?0:H.authorUsernameColorLight)&&
(H==null?0:H.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.yh(H.authorUsernameColorDark):_.yh(H.authorUsernameColorLight):""};
_.F.onIsTooltipVisibleChanged=function(){var H=_.mY(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){H.hidden=!1;H.setAttribute("role","alert")},0):(H.hidden=!0,H.removeAttribute("role"))};
_.F.onFocusedChanged=function(H){this.inputFocused=H.detail.value};
_.JJ.Object.defineProperties(MS.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 H;return!((H=this.data)==null||!H.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var H,C;return((H=this.data)==null?void 0:(C=H.pickers)==null?void 0:C.find(function(S){return S.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var H=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return H?this.ytRendererBehavior.getSimpleString(H):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
MS.prototype.onIsTooltipVisibleChanged=MS.prototype.onIsTooltipVisibleChanged;MS.prototype.errorMessageChanged=MS.prototype.errorMessageChanged;MS.prototype.onErrorMessageEdit=MS.prototype.onErrorMessageEdit;MS.prototype.onErrorMessageDismiss=MS.prototype.onErrorMessageDismiss;MS.prototype.focusChanged=MS.prototype.focusChanged;MS.prototype.characterCountChanged=MS.prototype.characterCountChanged;MS.prototype.onEmojiSelect=MS.prototype.onEmojiSelect;MS.prototype.handlePickerButtonToggle=MS.prototype.handlePickerButtonToggle;
MS.prototype.onSendError=MS.prototype.onSendError;MS.prototype.onSendCompleted=MS.prototype.onSendCompleted;MS.prototype.sendMessage=MS.prototype.sendMessage;MS.prototype.dataChanged=MS.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],MS.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],MS.prototype,"ytActionHandlerBehavior",void 0);
_.D([_.v(uvB.YtPickerBehavior),_.K("design:type",Object)],MS.prototype,"ytPickerBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],MS.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.TH.YtLiveChatTooltipTargetingBehavior),_.K("design:type",Object)],MS.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],MS.prototype,"hasFiredInitialFocusActions",void 0);
_.D([_.V(),_.K("design:type",Object)],MS.prototype,"isBeforeFocusEnabled",void 0);_.D([_.V(),_.K("design:type",Object)],MS.prototype,"data",void 0);_.D([_.V({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.K("design:type",Object)],MS.prototype,"id",void 0);_.D([_.V(),_.K("design:type",Object)],MS.prototype,"characterCount",void 0);_.D([_.V(),_.K("design:type",Object)],MS.prototype,"maxCharacterLimit",void 0);
_.D([_.V(),_.K("design:type",Object)],MS.prototype,"remainingCharacterCount",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],MS.prototype,"inputExpanded",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],MS.prototype,"inputFocused",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],MS.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.D([_.V(),_.K("design:type",_.Gh)],MS.prototype,"participantsManager",void 0);
_.D([_.V(),_.K("design:type",Object)],MS.prototype,"buttonOverrides",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],MS.prototype,"inReplyPanel",void 0);_.D([_.l("characterCount, maxCharacterLimit, countdownActive"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],MS.prototype,"sendDisabled",null);_.D([_.V(),_.K("design:type",Object)],MS.prototype,"countdownRatio",void 0);
_.D([_.l("countdownRatio"),_.K("design:type",Number),_.K("design:paramtypes",[])],MS.prototype,"countdownStrokeDashOffset",null);_.D([_.l("countdownRatio"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],MS.prototype,"countdownActive",null);_.D([_.l("data.interactionMessage"),_.V({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],MS.prototype,"hasInteractionMessage",null);
_.D([_.l("data.emojiPickerButton"),_.V({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],MS.prototype,"hasEmojiPickerButton",null);_.D([_.l("data, characterCount"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],MS.prototype,"showAvatar",null);_.D([_.l("data.pickers"),_.V({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],MS.prototype,"hasProductPickerPanelViewModel",null);
_.D([_.V(),_.K("design:type",Object)],MS.prototype,"errorMessage",void 0);_.D([_.V(),_.K("design:type",Object)],MS.prototype,"genericErrorMessage",void 0);_.D([_.V(),_.K("design:type",Object)],MS.prototype,"isTooltipVisible",void 0);_.D([_.V(),_.K("design:type",Object)],MS.prototype,"tooltipTimeout",void 0);_.D([_.l("data.onInitialFocusCommand"),_.K("design:type",String),_.K("design:paramtypes",[])],MS.prototype,"tooltipMessage",null);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],MS.prototype,"systemIcons",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],MS.prototype,"tallerEmojiPicker",void 0);_.D([_.l("data"),_.K("design:type",String),_.K("design:paramtypes",[])],MS.prototype,"authorNameColor",null);_.D([_.V(),_.K("design:type",Object)],MS.prototype,"sendReplyMessageInFlight",void 0);_.D([_.lA("#input"),_.K("design:type",_.KX7)],MS.prototype,"input",void 0);
_.D([_.lA("#count"),_.K("design:type",HTMLElement)],MS.prototype,"count",void 0);_.D([_.lA("#input-container"),_.K("design:type",HTMLElement)],MS.prototype,"inputContainer",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],MS.prototype,"dataChanged",null);_.D([_.Gz("yt-live-chat-send-message"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype",Promise)],MS.prototype,"sendMessage",null);
_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[Event,_.j4]),_.K("design:returntype")],MS.prototype,"onSendCompleted",null);_.D([_.Gz("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],MS.prototype,"onSendError",null);
_.D([_.Gz("yt-live-chat-icon-toggle-button-renderer-toggle"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],MS.prototype,"handlePickerButtonToggle",null);_.D([_.Gz("yt-emoji-select"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],MS.prototype,"onEmojiSelect",null);
_.D([_.fx("characterCount"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],MS.prototype,"characterCountChanged",null);_.D([_.fx("inputFocused"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],MS.prototype,"focusChanged",null);_.D([_.Gz("yt-live-chat-error-message-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],MS.prototype,"onErrorMessageDismiss",null);
_.D([_.Gz("yt-live-chat-error-message-edit"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],MS.prototype,"onErrorMessageEdit",null);_.D([_.fx("errorMessage"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],MS.prototype,"errorMessageChanged",null);_.D([_.fx("isTooltipVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],MS.prototype,"onIsTooltipVisibleChanged",null);
_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],MS);
_.B(MS,"yt-live-chat-message-input-renderer",function(){if(t2T===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;KD4===void 0&&(KD4=document.createElement("template"));var w=KD4;S.call(C,w.content.cloneNode(!0),H.content.firstChild);t2T=H}H=t2T;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var GZB;var fac;var qS=function(){var H=_.X.apply(this,arguments)||this;H.systemIcons=_.E("kevlar_system_icons");H.firedOnClickCommand=!1;H.inReplyPanel=!1;return H};
_.G(qS,_.X);
qS.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"}}}};
qS.prototype.onButtonToggle=function(H){H.target.disabled||this.ytPickerBehavior.togglePicker_(H.detail.targetId)};
qS.prototype.onClick=function(){var H=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.q3(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return H.firedOnClickCommand=!1},5E3))};
_.JJ.Object.defineProperties(qS.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var H,C;return((H=this.data)==null?void 0:(C=H.panels)==null?void 0:C.find(function(S){return S.liveChatProductPickerPanelViewModel}))!==void 0}}});
qS.prototype.onButtonToggle=qS.prototype.onButtonToggle;_.D([_.v(uvB.YtPickerBehavior),_.K("design:type",Object)],qS.prototype,"ytPickerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],qS.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],qS.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],qS.prototype,"data",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],qS.prototype,"systemIcons",void 0);_.D([_.V({reflectToAttribute:!1}),_.K("design:type",Object)],qS.prototype,"firedOnClickCommand",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],qS.prototype,"inReplyPanel",void 0);_.D([_.l("data.pickers"),_.V({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],qS.prototype,"hasProductPickerPanelViewModel",null);
_.D([_.Gz("yt-live-chat-icon-toggle-button-renderer-toggle"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],qS.prototype,"onButtonToggle",null);_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],qS);
_.B(qS,"yt-live-chat-restricted-participation-renderer",function(){if(fac===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;GZB===void 0&&(GZB=document.createElement("template"));var w=GZB;S.call(C,w.content.cloneNode(!0),H.content.firstChild);fac=H}H=fac;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var Ts=function(){var H=_.X.apply(this,arguments)||this;H.genericErrorMessage=_.sx("Error, try again.");H.inReplyPanel=!1;H.hideBorder=!1;return H};
_.G(Ts,_.X);Ts.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}}}}}};
_.JJ.Object.defineProperties(Ts,{template:{configurable:!0,enumerable:!0,get:function(){return h_B()}}});
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Ts.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Ts.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],Ts.prototype,"genericErrorMessage",void 0);_.D([_.V(),_.K("design:type",Object)],Ts.prototype,"inReplyPanel",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Ts.prototype,"hideBorder",void 0);
_.D([_.Lx({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],Ts);_.B(Ts,"yt-live-chat-engagement-panel-input-renderer",function(){return h_B()},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var vJ2,laT;vJ2=_.y4(115994);laT=_.y4(115993);_.mV=function(H,C,S){var w=this;var A=S.dragDownAction;this.layer=0;this.JSC$22616_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return w.dragDownAction()}}}};
this.JSC$22616_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return w.dragDownAction()}}}};
this.fullscreen=!1;var J=_.lJ();_.nO(J,vJ2,this.layer);_.nO(J,laT,this.layer);this.dragDownAction=function(){A();_.aW(J,{visualElement:w.fullscreen?vJ2:laT})};
this.gesture=new _.hI(H,C,this.getConfig(!1),"pandown");this.attach()};
_.mV.prototype.attach=function(){this.gesture.attach()};
_.mV.prototype.detach=function(){this.gesture.detach()};
_.mV.prototype.update=function(H){this.fullscreen=H;var C=this.gesture;H=this.getConfig(H);C.config=H};
_.mV.prototype.getConfig=function(H){return H?this.JSC$22616_watchFullScreenConfig:this.JSC$22616_watchConfig};var Vm9={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(H){if(H&&H.length==1&&Array.isArray(H[0].loggingUrls)){H=_.hb.unsafeClone(H[0]);var C=this.macros||{},S=this.getAdModuleClient_();if(!S)return _.N3();H.loggingUrls.forEach(function(w){if(w.baseUrl){var A=w.baseUrl;var J=C;J=J===void 0?{}:J;A=S.getOptions().includes("replaceUrlMacros")?_.ZFP(S,"replaceUrlMacros",{url:A,additionalMapping:J}):A;w.baseUrl=A}},this);
H=[H]}return _.WH(this.hostElement,H)},
getAdModuleClient_:function(){var H=_.Zz(this);return H?(H=H.getPlayer())?new _.ju(H):null:null}}]};var oJh;var WE=function(){var H=_.X.apply(this,arguments)||this;H.isCollapsed=!1;H.modernPanels=_.E("kevlar_watch_modern_panels");H.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return H};
_.G(WE,_.X);_.F=WE.prototype;_.F.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.F.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.F.onDonateTap=function(){var H=this.get("data.donateButton.buttonRenderer.command");if(H){var C=_.Dg(),S=this.get("data.donateButton.buttonRenderer.trackingParams");C&&S&&_.Sp(C,_.Qh(S));this.ytOpenPopupBehavior.openPopup(H)}};
_.F.onShowMore=function(){this.isCollapsed=!1;var H=_.Dg(),C=this.get("data.expandButton.buttonRenderer.trackingParams");H&&C&&_.Sp(H,_.Qh(C))};
_.F.onShowLess=function(){this.isCollapsed=!0};
_.F.dataChanged=function(){_.Ed(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.F.onDarkModeToggledAction=function(H){this.isDarkTheme=H};
_.F.handleUpdate=function(H){if(H=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",H))this.set("data.startLabel",H.startLabel),this.set("data.endLabel",H.endLabel),this.set("data.progress",H.progress),this.set("data.amountRaisedLabel",H.amountRaisedLabel),this.dataChanged()};
_.F.handleOpenPopupAction=function(H){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",H)&&_.q3(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.F.computeHeaderBackgroundUrl=function(H,C){if(H)return C?H.headerBackgroundDarkUrl:H.headerBackgroundUrl};
_.F.isProgressBarVisible=function(H){return!(!H||H.progress===void 0)};
_.F.headerBackgroundClass=function(){return _.rh("HTML_DIR")==="rtl"?"flip":""};
WE.prototype.dataChanged=WE.prototype.dataChanged;_.D([_.v(_.Kw.YtOpenPopupBehavior),_.K("design:type",Object)],WE.prototype,"ytOpenPopupBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],WE.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],WE.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],WE.prototype,"ytActionHandlerBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],WE.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],WE.prototype,"isCollapsed",void 0);_.D([_.V({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.K("design:type",String)],WE.prototype,"headerBackgroundUrl",void 0);_.D([_.V(),_.K("design:type",Boolean)],WE.prototype,"isDarkTheme",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],WE.prototype,"modernPanels",void 0);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],WE.prototype,"dataChanged",null);_.D([_.h({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],WE);
_.B(WE,"ytd-donation-shelf-renderer",function(){if(oJh!==void 0)return oJh;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return oJh=H},{mode:1});var O6B;var Xlt=function(){return _.X.apply(this,arguments)||this};
_.G(Xlt,_.X);_.D([_.V(),_.K("design:type",Object)],Xlt.prototype,"data",void 0);_.D([_.h({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],Xlt);
_.B(Xlt,"ytd-donation-unavailable-renderer",function(){if(O6B!==void 0)return O6B;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return O6B=H},{mode:1});var Q7D;var yp=function(){return _.X.apply(this,arguments)||this};
_.G(yp,_.X);yp.prototype.computeIconType=function(H){return H?"yt-icons:"+H.toLowerCase():null};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],yp.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],yp.prototype,"data",void 0);_.D([_.h({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],yp);
_.B(yp,"ytd-limited-state-message-renderer",function(){if(Q7D!==void 0)return Q7D;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Q7D=H},{mode:1});var dxr;var NS=function(){return _.X.apply(this,arguments)||this};
_.G(NS,_.X);NS.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
NS.prototype.onTap=function(H){var C=this.data&&this.data.endpoint;C&&!_.ww(_.Ar(H),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.M3(this.hostElement,"yt-navigate",{endpoint:C})};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],NS.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],NS.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],NS.prototype,"data",void 0);_.D([_.h({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],NS);
_.B(NS,"ytd-autotagging-metadata-renderer",function(){if(dxr!==void 0)return dxr;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return dxr=H},{mode:1});var PdV;var bG=function(){return _.X.apply(this,arguments)||this};
_.G(bG,_.X);bG.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],bG.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],bG.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],bG.prototype,"data",void 0);_.D([_.h({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],bG);
_.B(bG,"ytd-autotagging-metadata-row-renderer",function(){if(PdV!==void 0)return PdV;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return PdV=H},{mode:1});var $xT;var plr;var E8=function(){var H=_.X.apply(this,arguments)||this;H.engagementPanelContent=!1;return H};
_.G(E8,_.X);E8.prototype.computeHasDividerLine=function(H,C){return H&&!C};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],E8.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],E8.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.K("design:type",Boolean)],E8.prototype,"hasDividerLine",void 0);_.D([_.V(),_.K("design:type",Object)],E8.prototype,"engagementPanelContent",void 0);
_.D([_.h({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],E8);
_.B(E8,"ytd-metadata-row-header-renderer",function(){if(plr!==void 0)return plr;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return plr=H},{mode:1});var kZv;var el=function(){return _.X.apply(this,arguments)||this};
_.G(el,_.X);el.prototype.computeHasDividerLine=function(H){return H};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],el.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],el.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.K("design:type",Boolean)],el.prototype,"hasDividerLine",void 0);_.D([_.h({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],el);
_.B(el,"ytd-metadata-row-renderer",function(){if(kZv!==void 0)return kZv;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return kZv=H},{mode:1});var hzv;var nJc=function(){return _.X.apply(this,arguments)||this};
_.G(nJc,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],nJc.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],nJc.prototype,"data",void 0);_.D([_.h({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],nJc);
_.B(nJc,"ytd-metadata-with-image-row-renderer",function(){if(hzv!==void 0)return hzv;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return hzv=H},{mode:1});var rkv;var uG=function(){var H=_.X.apply(this,arguments)||this;H.rounded=!0;H.fixie=!1;H.fullWidth=!1;return H};
_.G(uG,_.X);_.F=uG.prototype;_.F.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.F.onDataChanged=function(){var H=this;this.data&&!this.endpointHref&&(this.endpointLink.classList.add("button-mode"),this.endpointLink.setAttribute("tabindex","0"),this.endpointLink.setAttribute("role","button"),this.endpointLink.addEventListener("keypress",function(C){H.onEndpointLinkKeyPress(C)}))};
_.F.onEndpointLinkKeyPress=function(H){H.target===this.endpointLink&&H.keyCode===13&&_.M3(this.hostElement,"click")};
_.F.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var H;if((H=this.data)==null?0:H.endpoint)_.yN(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.F.onYtNavigate=function(H){this.endpointHref||(H.stopPropagation(),H.preventDefault())};
_.F.onInformationButtonContainerClick=function(H){H.target.id!=="information-button-container"&&(H.stopPropagation(),H.preventDefault())};
_.F.computeStyle=function(H){return H};
_.F.computeIsThumbnailStyle=function(H){return H==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.F.computeThumbnailWidth=function(H){switch(H){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}};
_.F.computeThumbnailObjectFit=function(H){switch(H){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.JJ.Object.defineProperties(uG.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?0:H.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
uG.prototype.onYtNavigate=uG.prototype.onYtNavigate;uG.prototype.onClick=uG.prototype.onClick;uG.prototype.onDataChanged=uG.prototype.onDataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],uG.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],uG.prototype,"componentBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],uG.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],uG.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.K("design:type",String)],uG.prototype,"componentStyle",void 0);_.D([_.V({computed:"computeIsThumbnailStyle(data.style)"}),_.K("design:type",Boolean)],uG.prototype,"isThumbnailStyle",void 0);_.D([_.V({computed:"computeThumbnailObjectFit(data.style)"}),_.K("design:type",String)],uG.prototype,"thumbnailObjectFit",void 0);
_.D([_.V({computed:"computeThumbnailWidth(data.style)"}),_.K("design:type",Number)],uG.prototype,"thumbnailWidth",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],uG.prototype,"rounded",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],uG.prototype,"fixie",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],uG.prototype,"fullWidth",void 0);_.D([_.lA("#endpoint-link"),_.K("design:type",HTMLAnchorElement)],uG.prototype,"endpointLink",void 0);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],uG.prototype,"onDataChanged",null);_.D([_.l("data.endpoint"),_.K("design:type",Object),_.K("design:paramtypes",[])],uG.prototype,"endpointHref",null);_.D([_.Gz("click"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],uG.prototype,"onClick",null);
_.D([_.Gz("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],uG.prototype,"onYtNavigate",null);_.D([_.h({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],uG);
_.B(uG,"ytd-rich-metadata-renderer",function(){if(rkv!==void 0)return rkv;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return rkv=H},{mode:_.mn("kevlar_poly_si_batch_j075")?1:2});var BS4;var Gs=function(){var H=_.X.apply(this,arguments)||this;H.fixie=!1;H.fullWidth=!1;return H};
_.G(Gs,_.X);Gs.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
Gs.prototype.computeHasDividerLine=function(H){return H};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Gs.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Gs.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.K("design:type",Boolean)],Gs.prototype,"hasDividerLine",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Gs.prototype,"fixie",void 0);_.D([_.V(),_.K("design:type",Object)],Gs.prototype,"fullWidth",void 0);
_.D([_.h({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],Gs);
_.B(Gs,"ytd-rich-metadata-row-renderer",function(){if(BS4!==void 0)return BS4;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return BS4=H},{mode:1});var fe=function(){var H=_.X.apply(this,arguments)||this;H.engagementPanelContent=!1;H.fixie=!1;H.fullWidth=!1;return H};
_.G(fe,_.X);
fe.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"}}}};
fe.prototype.computeCollapsibleItems=function(H,C,S){return H===void 0||C===void 0||S===void 0||S?[]:H.slice(C)};
fe.prototype.computeAlwaysShownItems=function(H,C){return H&&H.length?H.slice(0,C):[]};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],fe.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],fe.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],fe.prototype,"data",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],fe.prototype,"collapsed",void 0);
_.D([_.V({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.K("design:type",Array)],fe.prototype,"alwaysShownItems",void 0);_.D([_.V({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.K("design:type",Array)],fe.prototype,"collapsibleItems",void 0);_.D([_.V(),_.K("design:type",Object)],fe.prototype,"engagementPanelContent",void 0);_.D([_.V(),_.K("design:type",Object)],fe.prototype,"fixie",void 0);
_.D([_.V(),_.K("design:type",Object)],fe.prototype,"fullWidth",void 0);_.D([_.h({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],fe);
_.B(fe,"ytd-metadata-row-container-renderer",function(){if($xT!==void 0)return $xT;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return $xT=H},{mode:1});var DxT;var vE=function(){var H=_.X.apply(this,arguments)||this;H.currentPageUrl="";H.baseUrl="";H.isHiddenByUser=null;H.hidden=!1;H.showAboveScrim=!1;H.watchNextGrid=_.E("kevlar_watch_grid");H.modernButtons=_.E("web_modern_buttons");H.roundedContainer=!0;H.noBorder=!1;H.roundBackground=!_.E("live_chat_round_background_killswitch");H.overflowHideChat=_.E("live_chat_overflow_hide_chat");H.forceDarkTheme=!1;H.theaterWatchWhile=!1;H.isListeningForPlayerProgress=!1;H.JSC$22652_playerEvents=new Map;H.isFrameReady=
!1;H.player=null;H.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 H};
_.G(vE,_.X);_.F=vE.prototype;_.F.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.m7(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.F.created=function(){var H=this;this.handleIframeEventListener=function(C){H.handleIframeEvent(C)};
this.handleKeyboardEventListener=function(C){H.handleKeyboardEvent(C)};
this.JSC$22652_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22652_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22652_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22652_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22652_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.F.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()};
_.F.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};
_.F.computeBaseUrl=function(H){var C="/live_chat";this.isChatReplay()&&(C="/live_chat_replay");return _.NL(_.yS(_.Ww(_.I7(H),C),null),"").toString()};
_.F.dataChanged=function(){_.E("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.F.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var H=this.url;if(this.isChatReplay()&&this.player){var C=Math.floor(this.player.getProgressState().current*1E3);H=_.xJ(_.I7(H),"playerOffsetMs",C.toString()).toString()}C=this.chatframe;try{var S=H==="about:blank"?_.Rp7:_.D4(H),w=C.contentDocument.location,A=_.L9(S);A!==void 0&&w.replace(A)}catch(J){C.src=H}}};
_.F.collapsedChanged=function(){_.M3(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.F.handleIframeEvent=function(H){if(H&&this.baseUrl.startsWith(H.origin)&&H.source===this.chatframe.contentWindow&&_.U$(H.data))if(H.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(H);else if(H.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(H.data["yt-show-feedback-dialog"]){var C=_.JA().resolve(_.AA(_.lw3));if(C){var S=H.ports,w;S&&S.length&&(w=function(){S[0].postMessage({})});
H=H.data["yt-show-feedback-dialog"];C.showFeedbackDialog(H.customProductData,H.feedbackContent,w,H.bucket)}}else if(H.data["yt-show-survey"])_.M3(this.hostElement,"yt-show-survey",H.data["yt-show-survey"]);else if(H.data["yt-purchase-membership"])_.JA().resolve(_.ZQ).resolveCommand(H.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(H.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(H.data["yt-tunnel-out-live-service-request"]);else if(H.data["yt-user-activity"])_.ZZ();
else if(H.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(H.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(H.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(H.data["yt-open-popup"]);else if(H.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(H.data["yt-log-flow-logging-event-command"]);else if(H.data["yt-hide-live-chat"])this.onShowHideChat();else H.data["yt-report-moderation-state-log"]&&
this.player&&(C={cpn:this.player.getVideoData().cpn},_.kI("liveChatBeingModerated",C))};
_.F.attachLiveChatResponseVeTrackingParams=function(H){H=_.Qh(H);var C=_.Dg(),S=_.gh("liveChatRenderer.trackingParams",this.data);C&&S&&_.ak(C,_.Qh(S),H)};
_.F.handleBuyflowMessages=function(H){var C=H.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,S=H.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,w=H.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.c3W(_.j9(_.wE),C.replace(/-/g,"+").replace(/_/g,"/"),function(A){H.ports[0].postMessage({success:!0,buyFlowResponse:A})},void 0,function(A){H.ports[0].postMessage({success:!1,
error:A&&A.message||"Buyflow rejected without error."})},_.VN().get("hl"),void 0,function(){H.ports[0].postMessage({closed:!0})},S,w)};
_.F.setupPlayerProgressRelay=function(){var H=this;if(!this.isListeningForPlayerProgress){var C=_.ct();C!=null&&C.getPlayerPromise&&(C.getPlayerPromise().then(function(S){H.playerApiReady(S)}),this.isListeningForPlayerProgress=!0)}};
_.F.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.F.playerApiReady=function(H){this.setPlayer(H)};
_.F.playerProgressHandler=function(){if(this.player){var H=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":H.current})}};
_.F.playerAdStartHandler=function(H){this.postToContentWindow({"yt-player-ad-start":H})};
_.F.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.F.playerStateChangeHandler=function(H){this.postToContentWindow({"yt-player-state-change":H})};
_.F.setPlayer=function(H){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22652_playerEvents);H&&(this.player=H,this.ytPlayerListenerBehavior.listenToPlayerEvents(H,this.JSC$22652_playerEvents),_.M3(this.hostElement,"player-api-ready"))};
_.F.liveChatPageUrl=function(H,C,S,w){return!S||C?"about:blank":S.liveChatRenderer?(C=_.I7(this.currentPageUrl).JSC$10045_queryData_,yY4(C),H=_.I7(H),C.add("continuation",S.liveChatRenderer.continuations[0].reloadContinuationData.continuation),S=_.$F()==="USER_INTERFACE_THEME_DARK",(w||S)&&C.add("dark_theme","true"),_.yS(H,C),w=_.I7(H.toString()),S=w.JSC$10045_queryData_,"SESSION_INDEX"in _.hE&&(S.add("authuser",_.rh("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.hE&&S.add("pageId",_.rh("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.hE&&S.add("sdc",_.rh("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),w.toString()):""};
_.F.isCollapsed=function(H,C){return C!==null?C:this.isChatReplay()||H&&H.conversationBarRenderer&&H.conversationBarRenderer.availabilityMessage?!0:H?H.liveChatRenderer?H.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.E("live_chat_hide_premiere_replay_message")||H.conversationBarRenderer&&H.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.F.isHidden=function(H,C,S){var w=C&&C.conversationBarRenderer&&C.conversationBarRenderer.availabilityMessage,A=C&&C.liveChatRenderer&&C.liveChatRenderer.showHideButton,J=C&&C.liveChatRenderer&&C.liveChatRenderer.showButton;return S&&H&&!w&&!J||!S&&H&&!w&&!A?!0:C&&C.liveChatRenderer&&C.liveChatRenderer.initialDisplayState?C.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.F.computeButtonOverride=function(H,C){if(H&&C)return{type:"outline"}};
_.F.setCollapsedState=function(H){_.e(H,_.mZd)&&((this.isHiddenByUser=!!_.e(H,_.mZd).collapsed)||_.q3(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.F.forwardReduxActionToIframe=function(H){this.postToContentWindow({"yt-live-chat-forward-redux-action":H})};
_.F.onLoopRangeChange=function(H){this.showAboveScrim=!(H==null||!H.postId)};
_.F.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.F.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.F.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.F.sendDarkThemePostMessage=function(H){this.postToContentWindow({"yt-live-chat-set-dark-theme":H})};
_.F.onLiveChatBuyFlowCallback=function(H){this.postToContentWindow({"yt-live-chat-buy-flow-callback":H})};
_.F.handleKeyboardEvent=function(H){(0,_.hb.containsValue)(NxB,H.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:H.type,keyCode:H.keyCode}})};
_.F.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.F.postToContentWindow=function(H){if(this.isFrameReady)try{var C=window.location.protocol+"//"+window.location.host,S;(S=this.chatframe)!=null&&S.contentWindow?this.chatframe.contentWindow.postMessage(H,C):_.Bn(new _.X0("Tried posting a message to an iframe with no content window",H))}catch(w){_.nC(w)}};
_.F.shouldHideChatFrame=function(H){return H&&_.E("hide_live_chat_button_when_collapsed")};
_.JJ.Object.defineProperties(vE.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.E("live_chat_overflow_hide_chat")||_.E("web_watch_chat_hide_button_killswitch"))return _.E("live_chat_overflow_hide_chat");var H,C,S,w;return!!((H=this.data)==null?0:(C=H.liveChatRenderer)==null?0:(S=C.header)==null?0:(w=S.liveChatHeaderRenderer)==null?0:w.collapseButton)}}});
vE.prototype.collapsedChanged=vE.prototype.collapsedChanged;vE.prototype.urlChanged=vE.prototype.urlChanged;vE.prototype.dataChanged=vE.prototype.dataChanged;vE.prototype.onShowHideChat=vE.prototype.onShowHideChat;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],vE.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],vE.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],vE.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.fT.YtPlayerListenerBehavior),_.K("design:type",_.v_)],vE.prototype,"ytPlayerListenerBehavior",void 0);_.D([_.v(_.Kw.YtOpenPopupBehavior),_.K("design:type",Object)],vE.prototype,"ytOpenPopupBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],vE.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],vE.prototype,"currentPageUrl",void 0);
_.D([_.V({computed:"computeBaseUrl(currentPageUrl,data)"}),_.K("design:type",Object)],vE.prototype,"baseUrl",void 0);_.D([_.V({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.K("design:type",String)],vE.prototype,"url",void 0);_.D([_.V(),_.K("design:type",Object)],vE.prototype,"isHiddenByUser",void 0);_.D([_.V({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.K("design:type",Object)],vE.prototype,"hidden",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.K("design:type",Boolean)],vE.prototype,"collapsed",void 0);_.D([_.V({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.K("design:type",Boolean)],vE.prototype,"hideChatFrame",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],vE.prototype,"showAboveScrim",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],vE.prototype,"watchNextGrid",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],vE.prototype,"modernButtons",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],vE.prototype,"roundedContainer",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],vE.prototype,"noBorder",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],vE.prototype,"roundBackground",void 0);
_.D([_.V({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.K("design:type",Object)],vE.prototype,"toggleButtonOverride",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],vE.prototype,"overflowHideChat",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],vE.prototype,"forceDarkTheme",void 0);_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],vE.prototype,"enableShowWithoutHideChatButton",null);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],vE.prototype,"theaterWatchWhile",void 0);_.D([_.lA("#chatframe"),_.K("design:type",HTMLIFrameElement)],vE.prototype,"chatframe",void 0);_.D([_.Gz("yt-toggle-button"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vE.prototype,"onShowHideChat",null);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vE.prototype,"dataChanged",null);
_.D([_.fx("url"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vE.prototype,"urlChanged",null);_.D([_.fx("collapsed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vE.prototype,"collapsedChanged",null);_.D([_.h({is:"ytd-live-chat-frame",disableElementRegistration:!0})],vE);
_.B(vE,"ytd-live-chat-frame",function(){if(DxT!==void 0)return DxT;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return DxT=H},{mode:1});var Km4;var lG=function(){var H=_.X.apply(this,arguments)||this;H.modern=_.E("web_modern_buttons");H.buttonOverrides={style:"call-to-action",type:"filled"};return H};
_.G(lG,_.X);lG.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=_.Iw(this.data.backgroundColor)))};
lG.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var H=this.getFormattedStringLoggingDirectives(this.data.headline);H&&this.rendererBehavior.logExplicitClick(H)}};
lG.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var H=this.getFormattedStringLoggingDirectives(this.data.description);H&&this.rendererBehavior.logExplicitClick(H)}};
lG.prototype.getFormattedStringLoggingDirectives=function(H){return H&&H.runs&&H.runs.length>0&&H.runs[0]&&H.runs[0].loggingDirectives?H.runs[0].loggingDirectives:null};
lG.prototype.dataChanged=lG.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],lG.prototype,"rendererBehavior",void 0);_.D([_.v(Vm9.YtMacroReplacementBehavior),_.K("design:type",Object)],lG.prototype,"macroReplacementBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],lG.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],lG.prototype,"navigationEndpoint",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],lG.prototype,"enableColors",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],lG.prototype,"modern",void 0);_.D([_.V(),_.K("design:type",Object)],lG.prototype,"buttonOverrides",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lG.prototype,"dataChanged",null);_.D([_.h({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],lG);
_.B(lG,"ytd-action-basic-immersive-content-renderer",function(){if(Km4!==void 0)return Km4;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return Km4=H},{mode:1});var tmB;var LmB;var Vp=function(){return _.X.apply(this,arguments)||this};
_.G(Vp,_.X);Vp.prototype.dataChanged=function(){var H;((H=this.data)==null?void 0:H.backgroundColor)!==void 0&&_.Ed(this.hostElement,{"--bgu-color":_.Iw(this.data.backgroundColor)})};
Vp.prototype.onImageTileClick=function(){var H;((H=this.data)==null?0:H.navigationEndpoint)&&_.M3(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var C;((C=this.data)==null?0:C.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.JJ.Object.defineProperties(Vp.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var H;if(((H=this.data)==null?void 0:H.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 H;return((H=this.data)==null?void 0:H.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var H,C,S;if(((H=this.data)==null?void 0:(C=H.detailsLine)==null?void 0:C.texts)!=null&&((S=this.data)==null?void 0:S.detailsLine.texts.length)>0){var w;return(w=this.data)==null?void 0:w.detailsLine.texts.map(function(A){return A.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var H,C,S;if(((H=this.data)==null?void 0:(C=H.optionalDetailsLine)==null?void 0:C.texts)!=null&&((S=this.data)==null?void 0:S.optionalDetailsLine.texts.length)>0){var w;return(w=this.data)==null?void 0:w.optionalDetailsLine.texts.map(function(A){return A.text}).join("")}return null}}});
Vp.prototype.dataChanged=Vp.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Vp.prototype,"rendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Vp.prototype,"componentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Vp.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.l("data.backgroundColor"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Vp.prototype,"hasBackgroundColor",null);
_.D([_.l("data.objectFit"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vp.prototype,"getObjectFit",null);_.D([_.V({reflectToAttribute:!0}),_.l("data.tileRenderingStyle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Vp.prototype,"hasTileMetadata",null);_.D([_.l("data.detailsLine"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vp.prototype,"getSecondaryDetails",null);
_.D([_.l("data.optionalDetailsLine"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vp.prototype,"getOptionalDetails",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Vp.prototype,"dataChanged",null);_.D([_.h({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],Vp);
_.B(Vp,"ytd-image-tile-renderer",function(){if(LmB!==void 0)return LmB;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return LmB=H},{mode:1});var gJ4;var oL=function(){return _.X.apply(this,arguments)||this};
_.G(oL,_.X);oL.prototype.getOpenLinkIcon=function(){return _.E("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
oL.prototype.onSitelinkTap=function(){_.M3(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.E("kevlar_command_handler_migration_killswitch"))_.yN(this.hostElement,this.data.clickCommands,this.hostElement);else for(var H=_.Z(this.data.clickCommands),C=H.next();!C.done;C=H.next())this.ytComponentBehavior.resolveCommand(C.value)};
_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],oL.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],oL.prototype,"rendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],oL.prototype,"data",void 0);_.D([_.h({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],oL);
_.B(oL,"ytd-sitelink-renderer",function(){if(gJ4!==void 0)return gJ4;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return gJ4=H},{mode:1});var O8=function(){var H=_.X.apply(this,arguments)||this;H.paddingFix=_.E("enable_ads_web_ep_buenos_aires_and_padding_fix");return H};
_.G(O8,_.X);O8.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"}}}};
O8.prototype.dataChanged=function(){var H=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(C){C.clickTrackingParams&&delete C.clickTrackingParams;H.ytMacroReplacementBehavior.sendServiceRequestAction([C])})};
O8.prototype.shouldHideFooter=function(H){return!(H&&_.E("use_ads_engagement_panel_desktop_footer_cta"))};
_.JJ.Object.defineProperties(O8.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var H,C;return((H=this.data)==null?void 0:H.imageTileRenderers)===void 0||((C=this.data)==null?void 0:C.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(S){var w;return(w=_.e(S,fA9))==null?void 0:w.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var H,C;return((H=this.data)==null?void 0:H.imageTileRenderers)===void 0||((C=this.data)==null?void 0:C.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(S){var w;return((w=_.e(S,fA9))==null?void 0:w.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
O8.prototype.dataChanged=O8.prototype.dataChanged;_.D([_.v(Vm9.YtMacroReplacementBehavior),_.K("design:type",Object)],O8.prototype,"ytMacroReplacementBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],O8.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],O8.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],O8.prototype,"data",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],O8.prototype,"paddingFix",void 0);_.D([_.V({reflectToAttribute:!0}),_.l("data.imageTileRenderers"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],O8.prototype,"removeBorderFromImageTiles",null);_.D([_.V({reflectToAttribute:!0}),_.l("data.imageTileRenderers"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],O8.prototype,"useFooteredMetadataRenderingStyle",null);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],O8.prototype,"dataChanged",null);_.D([_.h({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],O8);
_.B(O8,"ytd-action-engagement-panel-content-renderer",function(){if(tmB!==void 0)return tmB;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return tmB=H},{mode:1});var Uxv;var Rzt=_.n(function(H){var C=H.data;var S=H.customCommandResolver;return _.q("ad-grid-card-image-full-metadata-view-model",{class:function(){var w;return((w=C().interaction)==null?0:w.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.Zl(_.c5({visibilityCallback:function(w){var A,J=(A=C().interaction)==null?void 0:A.onFirstVisible;w&&J&&_.Im(J)},
showOption:_.Xx}),_.Ln(function(){return C().interaction},S)),
"aria-label":function(){var w,A;return(w=C().interaction)==null?void 0:(A=w.accessibility)==null?void 0:A.label}},_.q("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.q(_.V4,{data:function(){return C().adImage}},{adImageViewModel:function(w){return _.q(_.UH,{data:w.data,
customCommandResolver:S})}})),_.q("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.q(_.T,{cond:function(){return C().headline},
then:function(w){return _.q(_.uZ,{text:w,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.q(_.T,{cond:function(){return C().detailsLine},
then:function(w){return _.q("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.q(_.V4,{data:w},{adDetailsLineViewModel:function(A){return _.q(_.nt,{data:A.data,customCommandResolver:S,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.q(_.T,{cond:function(){return C().secondaryDetailsLine},
then:function(w){return _.q("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.q(_.V4,{data:w},{adDetailsLineViewModel:function(A){return _.q(_.nt,{data:A.data,customCommandResolver:S,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Kk");var IaD=_.n(function(H){var C=H.data;var S=H.customCommandResolver;return _.q("ad-grid-card-image-view-model",{class:function(){var w;return((w=C().interaction)==null?0:w.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.Zl(_.c5({visibilityCallback:function(w){var A,J=(A=C().interaction)==null?void 0:A.onFirstVisible;w&&J&&_.Im(J)},
showOption:_.Xx}),_.Ln(function(){return C().interaction},S)),
"aria-label":function(){var w,A;return(w=C().interaction)==null?void 0:(A=w.accessibility)==null?void 0:A.label}},_.q(_.V4,{data:function(){return C().adImage}},{adImageViewModel:function(w){return _.q(_.UH,{data:w.data,
customCommandResolver:S})}}),_.q("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.q(_.V4,{data:function(){return C().adCardBadge}},{adCardBadgeViewModel:_.pi7})))},"Lk");var aaB=_.n(function(H){var C=H.data;var S=H.customCommandResolver;return _.q("ad-grid-card-text-view-model",{class:function(){var w;return((w=C().interaction)==null?0:w.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.Zl(_.c5({visibilityCallback:function(w){var A,J=(A=C().interaction)==null?void 0:A.onFirstVisible;w&&J&&_.Im(J)},
showOption:_.Xx}),_.Ln(function(){return C().interaction},S)),
"aria-label":function(){var w,A;return(w=C().interaction)==null?void 0:(A=w.accessibility)==null?void 0:A.label}},_.q("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.q(_.T,{cond:function(){return C().title},
then:function(w){return _.q(_.uZ,{text:w,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.q("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},_.q(_.Vq,{each:function(){var w;
return((w=C())==null?void 0:w.descriptions)||[]},
keyBy:"INDEX"},function(w){return _.q(_.uZ,{text:w,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),_.q("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.q(_.V4,{data:function(){return C().moreInfoButton}},{adButtonViewModel:function(w){return _.q(_.dn,{data:w.data,
customCommandResolver:S})}})))},"Mk");var xxv=_.n(function(H){var C=H.data;var S=H.customCommandResolver;var w=H.adGridCardCollectionStyle;return _.q("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.Zl(_.c5({visibilityCallback:function(A){var J,c=(J=C().interaction)==null?void 0:J.onFirstVisible;A&&c&&_.Im(c)},
showOption:_.Xx})),style:function(){return"grid-template-columns: repeat("+XV4(w?w():C().style)+", minmax(0, 1fr));"}},_.q(_.V4,{data:function(){var A;
return(A=C())==null?void 0:A.gridCards}},{adGridCardImageViewModel:function(A){return _.q(IaD,{data:A.data,
customCommandResolver:S})},
adGridCardImageFullMetadataViewModel:function(A){return _.q(Rzt,{data:A.data,customCommandResolver:S})},
adGridCardTextViewModel:function(A){return _.q(aaB,{data:A.data,customCommandResolver:S})}}))},"Nk");_.qs(_.n(function(H){var C=H.data;return _.q("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.Zl(_.c5({visibilityCallback:function(S){var w,A=(w=C().interaction)==null?void 0:w.onFirstVisible;S&&A&&_.Im(A)},
showOption:_.Xx}),_.Ln(function(){return C().interaction},drB))},_.q("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.q(_.T,{cond:_.BJU("(min-width: "+((0,_.Nm)()+_.KW)+"px)"),
then:function(){return _.q(_.V4,{data:function(){return C().adGridCardCollection}},{adGridCardCollectionViewModel:function(S){return _.q(xxv,{data:S.data,
customCommandResolver:drB})}})},
else:function(){return _.q(_.V4,{data:function(){return C().adGridCardCollection}},{adGridCardCollectionViewModel:function(S){return _.q(xxv,{data:S.data,
customCommandResolver:drB,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.q("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.q(_.V4,{data:function(){return C().adButton}},{adButtonViewModel:function(S){return _.q(_.dn,{data:S.data,
customCommandResolver:drB})}})))},"Ok"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.GH}});_.qs(_.n(function(H){var C=H.data;return _.q("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.Zl(_.c5({visibilityCallback:function(S){var w,A=(w=C().interaction)==null?void 0:w.onFirstVisible;S&&A&&_.Im(A)},
showOption:_.Xx}),_.Ln(function(){return C().interaction},PBT))},_.q("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.q(_.V4,{data:function(){if(_.BJU("(min-width: "+((0,_.Nm)()+_.KW)+"px)")())var S=C().adGridCardCollection;
else{S=Object.assign({},_.e(C().adGridCardCollection,v$T));var w;S.gridCards!==void 0&&((w=S.gridCards)==null?void 0:w.length)>1?S.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":S.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";S={adGridCardCollectionViewModel:S}}return S}},{adGridCardCollectionViewModel:function(S){return _.q(xxv,{data:S.data,
customCommandResolver:PBT})}})),_.q("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.q(_.V4,{data:function(){return C().adButton}},{adButtonViewModel:function(S){return _.q(_.dn,{data:S.data,
customCommandResolver:PBT})}})))},"Pk"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.GH}});var Xg=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return H};
_.G(Xg,_.X);_.F=Xg.prototype;_.F.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"}}}};
_.F.attached=function(){this.getDataFromPlayerAndRender()};
_.F.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.F.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.F.getDataFromPlayerAndRender=function(){var H=this,C=_.Zz(this.hostElement);C&&C.getPlayerPromise().then(function(S){H.getCachedDataAndListen(S)})};
_.F.getCachedDataAndListen=function(H){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(H,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(H,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=H)};
_.F.resolveCachedActions=function(){var H=_.gh("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(H=H&&H())&&!_.hb.isEmpty(H)&&this.sendUpdateEngagementPanelAction(H);(H=(H=_.gh("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&H())&&!_.hb.isEmpty(H)&&this.sendChangeEngagementPanelVisibilityAction(H);(H=(H=_.gh("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&H())&&!_.hb.isEmpty(H)&&this.sendScrollToEngagementPanelCommand(H)};
_.F.sendUpdateEngagementPanelAction=function(H){var C;_.q3(this.hostElement,"yt-update-engagement-panel-action",[(C=_.hb.get(H,"action"))!=null?C:H])};
_.F.sendChangeEngagementPanelVisibilityAction=function(H){_.q3(this.hostElement,"yt-change-engagement-panel-visibility-action",[H])};
_.F.sendScrollToEngagementPanelCommand=function(H){_.q3(this.hostElement,"yt-scroll-to-engagement-panel-command",[H])};
_.F.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.E("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.Bn(Error("So"))};
Xg.prototype.dataChanged=Xg.prototype.dataChanged;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],Xg.prototype,"actionHandlerBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Xg.prototype,"componentBehavior",void 0);_.D([_.v(_.fT.YtPlayerListenerBehavior),_.K("design:type",_.v_)],Xg.prototype,"ytPlayerListenerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Xg.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Xg.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Xg.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],Xg.prototype,"player",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Xg.prototype,"dataChanged",null);_.D([_.h({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],Xg);
_.B(Xg,"ytd-ads-engagement-panel-content-renderer",function(){if(Uxv!==void 0)return Uxv;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);
return Uxv=H},{mode:1});var HsT;var Qp=function(){var H=_.X.apply(this,arguments)||this;H.player=null;H.JSC$22689_playerEvents=new Map;H.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return H};
_.G(Qp,_.X);_.F=Qp.prototype;_.F.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]]"}}}}}};
_.F.created=function(){this.player=null;this.JSC$22689_playerEvents=new Map;this.JSC$22689_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$22689_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22689_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22689_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.F.attached=function(){var H=this,C=_.Zz();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));C&&C.getPlayerPromise().then(function(S){H.setPlayer(S);H.set("isPageLoad",!1)})};
_.F.setPlayer=function(H){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22689_playerEvents);this.set("player",H);H&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(H,this.JSC$22689_playerEvents),H.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.F.onLoopRangeChange=function(H){var C=_.JA().resolve(_.AA(_.JB));if((!C||C.isOnWatch())&&this.hostElement.clientHeight){var S;!H&&((S=this.data)==null?0:S.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.F.onVideoProgress=function(H){var C,S,w=((C=this.player)==null?void 0:(S=C.getPresentingPlayerType)==null?void 0:S.call(C))===2;this.isAdPlaying!==w&&this.set("isAdPlaying",w);var A;if(!w&&(A=this.player)!=null&&A.getLoopRange()){S=this.player.getLoopRange();C=S.startTimeMs;S=S.endTimeMs;w=this.player.getProgressState(1).seekableStart;var J;C<w*1E3&&((J=this.data)==null?0:J.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
H=S<H*1E3;var c;((c=this.player)==null?0:c.getLoopRange())&&H&&this.player.seekTo(C/1E3)}};
_.F.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.F.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.F.onYtDeleteClipEngagementPanelCommand=function(H){_.e(H,Bs9).command&&this.ytComponentBehavior.resolveCommand(_.e(H,Bs9).command)};
_.JJ.Object.defineProperties(Qp.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.voteCount)||_.sx("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Qp.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Qp.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],Qp.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Qp.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.fT.YtPlayerListenerBehavior),_.K("design:type",_.v_)],Qp.prototype,"ytPlayerListenerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Qp.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Qp.prototype,"isAdPlaying",void 0);_.D([_.V({reflectToAttribute:!0,value:!0}),_.K("design:type",Boolean)],Qp.prototype,"isPageLoad",void 0);_.D([_.V({reflectToAttribute:!0,value:!0}),_.K("design:type",Boolean)],Qp.prototype,"isDarkTheme",void 0);
_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Qp.prototype,"voteCount",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Qp.prototype,"channelEndpoint",null);_.D([_.l("channelEndpoint"),_.K("design:type",Object),_.K("design:paramtypes",[])],Qp.prototype,"channelHref",null);_.D([_.h({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],Qp);
_.B(Qp,"ytd-clip-attribution-renderer",function(){if(HsT!==void 0)return HsT;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return HsT=H},{mode:1});var isV;var dK=function(){var H=_.X.apply(this,arguments)||this;H.player=null;H.JSC$22694_playerEvents=new Map;return H};
_.G(dK,_.X);_.F=dK.prototype;_.F.created=function(){this.player=null;this.JSC$22694_playerEvents=new Map;this.JSC$22694_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22694_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22694_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.F.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.F.attached=function(){var H=this,C=_.Zz();C&&C.getPlayerPromise().then(function(S){H.setPlayer(S);H.set("isPageLoad",!1)})};
_.F.setPlayer=function(H){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22694_playerEvents);this.set("player",H);if(H){this.ytPlayerListenerBehavior.listenToPlayerEvents(H,this.JSC$22694_playerEvents);var C;(H==null?void 0:(C=H.getPresentingPlayerType)==null?void 0:C.call(H))===2&&this.playerAdStartHandler()}};
_.F.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.F.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.F.onVideoProgress=function(){var H,C,S=((H=this.player)==null?void 0:(C=H.getPresentingPlayerType)==null?void 0:C.call(H))===2;this.isAdPlaying!==S&&this.set("isAdPlaying",S)};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],dK.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],dK.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.fT.YtPlayerListenerBehavior),_.K("design:type",_.v_)],dK.prototype,"ytPlayerListenerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],dK.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],dK.prototype,"isAdPlaying",void 0);
_.D([_.V({reflectToAttribute:!0,value:!0}),_.K("design:type",Boolean)],dK.prototype,"isPageLoad",void 0);_.D([_.h({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],dK);
_.B(dK,"ytd-clip-section-footer-renderer",function(){if(isV!==void 0)return isV;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return isV=H},{mode:1});var CWc;var SF4;var sEV=function(){return _.X.apply(this,arguments)||this};
_.G(sEV,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],sEV.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],sEV.prototype,"data",void 0);_.D([_.h({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],sEV);
_.B(sEV,"ytd-clip-ad-state-renderer",function(){if(SF4!==void 0)return SF4;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return SF4=H},{mode:1});var jE9;var PE=function(){var H=_.X.apply(this,arguments)||this;H.value="";H.valid=!1;H.userChangedValue=!1;H.disabled=!1;H.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return H};
_.G(PE,_.X);_.F=PE.prototype;_.F.detached=function(){this.userChangedValue=!1};
_.F.handleKeyDown=function(H){if(_.qy)var C=13;else _.Rm7&&_.Tt?C=13:C=13;H.keyCode===C&&H.preventDefault()};
_.F.handleInput=function(){var H=_.mY(this.hostElement).querySelector("#title");if(H){var C=(H.value||"").replace(/\r|\n/g," ");this.set("value",C);H.value=C;this.valid=H.validate();this.userChangedValue=!0}};
_.F.handleBlur=function(){this.valid=_.mY(this.hostElement).querySelector("#title").validate()};
_.F.onValueChanged=function(){_.M3(this.hostElement,"title-changed",{title:this.value})};
_.F.onValidChanged=function(){_.M3(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.F.setInput=function(H,C){var S=_.mY(this.hostElement).querySelector("#title");S&&(S.value=H,this.handleInput(),C&&(S.invalid=!1,this.valid=!0))};
_.F.onClipCreationDisable=function(){this.set("disabled",!0)};
_.F.onClipCreationEnable=function(){this.set("disabled",!1)};
_.F.onClipCreationVisibilityChange=function(H){var C=this;H.visible?requestAnimationFrame(function(){var S;((S=_.mY(C.hostElement).querySelector("#title"))==null?void 0:S.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
PE.prototype.onValidChanged=PE.prototype.onValidChanged;PE.prototype.onValueChanged=PE.prototype.onValueChanged;PE.prototype.handleBlur=PE.prototype.handleBlur;PE.prototype.handleInput=PE.prototype.handleInput;PE.prototype.handleKeyDown=PE.prototype.handleKeyDown;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],PE.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],PE.prototype,"ytActionHandlerBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],PE.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],PE.prototype,"value",void 0);_.D([_.V(),_.K("design:type",Object)],PE.prototype,"valid",void 0);_.D([_.V(),_.K("design:type",Object)],PE.prototype,"userChangedValue",void 0);_.D([_.V(),_.K("design:type",Object)],PE.prototype,"disabled",void 0);_.D([_.Gz("keydown"),_.K("design:type",Function),_.K("design:paramtypes",[KeyboardEvent]),_.K("design:returntype")],PE.prototype,"handleKeyDown",null);
_.D([_.Gz("input"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],PE.prototype,"handleInput",null);_.D([_.Gz("blur"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],PE.prototype,"handleBlur",null);_.D([_.fx("value"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],PE.prototype,"onValueChanged",null);
_.D([_.fx("valid"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],PE.prototype,"onValidChanged",null);_.D([_.h({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],PE);
_.B(PE,"ytd-clip-creation-text-input-renderer",function(){if(jE9!==void 0)return jE9;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return jE9=H},{mode:1});var wND;var AaD;var Jac;var FBh;var ZsP;var $5=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};H.pendingStoryboardImages_={};H.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];H.tickLabelInterval=30;H.mediumTickInterval=5;H.largeTickInterval=15;H.aboveRulerHeight=32;H.rulerHeight=50;H.smallTickHeight=4;H.mediumTickHeight=8;H.largeTickHeight=16;H.mediaListeners_=
{};return H};
_.G($5,_.X);_.F=$5.prototype;_.F.attached=function(){var H=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(C){C=_.Z(["screen and (min-resolution: "+C+")","screen and (max-resolution: "+C+")"]);for(var S=C.next();!S.done;S=C.next()){S=S.value;var w=window.matchMedia(S);w&&(H.mediaListeners_[S]=H.updatePixelRatio_.bind(H),w.addEventListener?w.addEventListener("change",H.mediaListeners_[S]):w.addListener?w.addListener(H.mediaListeners_[S]):delete H.mediaListeners_[S])}})};
_.F.detached=function(){this.setPlayer(null);for(var H=_.Z(Object.keys(this.mediaListeners_)),C=H.next();!C.done;C=H.next()){var S=C.value;C=this.mediaListeners_[S];(S=window.matchMedia(S))&&(S.removeEventListener?S.removeEventListener("change",C):S.removeListener&&S.removeListener(C))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.F.onVisibilityChangedAction_=function(H){var C=this;H.visible&&!this.player_&&(H=_.Zz())&&H.getPlayerPromise().then(function(S){C.setPlayer(S)})};
_.F.setPlayer=function(H){H&&this.set("player_",H)};
_.F.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.F.setUpCanvas_=function(){var H=this.rulerWidth,C=this.devicePixelRatio_,S=this.visible;this.set("canvasReady_",!1);if(S&&C!==0){S=this.aboveRulerHeight+this.rulerHeight;var w=_.mY(this.hostElement).querySelector("#ticks");w.width=H*C;w.height=S*C;w.style.width=H+"px";w.style.height=S+"px";w.getContext("2d").scale(C,C);this.set("canvasReady_",!0)}};
_.F.drawRuler_=function(H,C,S,w,A,J,c,Y,M,m,W,y){H&&S&&C&&(H=_.mY(this.hostElement).querySelector("#ticks"),C=H.getContext("2d"),C.clearRect(0,0,H.width,H.height),C.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),C.lineWidth=2,C.beginPath(),C.moveTo(0,this.aboveRulerHeight),C.lineTo(H.width,this.aboveRulerHeight),C.moveTo(0,H.height),C.lineTo(H.width,H.height),C.stroke(),this.drawRulerTicks_(H,J,A,w),this.drawStoryboardImages_(H,S,J,A,w),C.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
C.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(c-J,w,!1),this.rulerHeight),S=this.timeToPixels_(Y-J,w,!1),C.fillRect(S,this.aboveRulerHeight,H.width-S,this.rulerHeight),this.drawSpeedLines_(H,J,y))};
_.F.drawRulerTicks_=function(H,C,S,w){var A=H.getContext("2d");A.save();A.lineWidth=1;for(var J=Math.floor(Math.max(0,C-this.tickLabelInterval));J<C+S;J++){A.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var c=(J-C)*w;A.beginPath();A.moveTo(c,H.height);var Y=this.smallTickHeight;J%this.largeTickInterval===0?Y=this.largeTickHeight:J%this.mediumTickInterval===0&&(Y=this.mediumTickHeight);A.lineTo(c,H.height-Y);A.stroke();J%this.tickLabelInterval===0&&(A.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),A.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),A.fillText(h8(J),c+4,12),A.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),A.moveTo(c,0),A.lineTo(c,this.aboveRulerHeight),A.stroke())}A.restore()};
_.F.percentToHex_=function(H){H=Math.round(H*255).toString(16);H.length<2&&(H="0"+H);return H};
_.F.drawSpeedLines_=function(H,C,S){var w=H.getContext("2d");w.save();var A=Math.min(25,Math.abs(S)-15)/25,J=H.width*.3*A,c=H.width*-.3,Y=H.width*1.3,M=this.aboveRulerHeight;H=H.height;var m=Math.round(4*A),W=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");W.length<7&&(W="#"+W.substring(1,4).repeat(2));var y=this.percentToHex_(.5+A/2);y=W+y;W+="00";if(A>0)for(A=0;A<m;A++){var N=c+Math.random()*(Y-c),b=M+Math.random()*(H-M),u=J+C%J,O=w.createLinearGradient(N,b,N+u,b);
S<0?(O.addColorStop(0,y),O.addColorStop(.4,y),O.addColorStop(.9,W)):(O.addColorStop(.1,W),O.addColorStop(.6,y),O.addColorStop(1,y));w.strokeStyle=O;w.lineWidth=1;w.beginPath();w.moveTo(N,b);w.lineTo(N+u,b);w.stroke()}w.restore()};
_.F.getStoryboardForTime_=function(H,C,S){S===void 0&&(S=C.getNumberOfStoryboardLevels()-1);H=C.getStoryboardFrameIndex(H,S);return C.getStoryboardFrame(H,S)};
_.F.drawStoryboardImages_=function(H,C,S,w,A){if(!this.disabled){H=H.getContext("2d");var J=this.getStoryboardForTime_(0,C);if(J){var c=J.width/J.columns;J=J.height/J.rows;var Y=c/J,M=this.rulerHeight*Y;M=this.tickLabelInterval*(Y<this.tickLabelInterval*A/this.rulerHeight?1/Math.floor(this.tickLabelInterval*A/M):Math.round(M/(this.tickLabelInterval*A)));var m=M*A,W=this.rulerHeight,y=m/this.rulerHeight,N=Math.floor(Math.max(0,S-M));for(N-=N%M;N<S+w;N+=M){var b=this.getStoryboardForTime_(N,C),u=this.getPreloadedStoryboard_(b.url);
if(u){var O=(N-S)*A,d=this.aboveRulerHeight,p=b.column*c,k=b.row*J;if(Y<y){var R=W/(m/Y);b=c;R*=J;k+=(J-R)/2}else b=m/(W*Y)*c,R=J,p+=(c-b)/2;H.drawImage(u,p,k,b,R,O,d,m,W)}else this.fetchStoryboardImage_(b)}}}};
_.F.getPreloadedStoryboard_=function(H){return this.storyboardImages_.find(function(C){if(C.src==H)return!0;var S=C.src.indexOf(H);return S!=-1&&S==C.src.length-H.length})};
_.F.fetchStoryboardImage_=function(H){var C=this,S=this.getPreloadedStoryboard_(H.url),w=this.pendingStoryboardImages_[H.url];S||w!==void 0||(S=new Promise(function(A){var J=new Image(H.width,H.height);J.src=H.url;J.onload=function(){A(J)};
J.onerror=function(){A(null)}}),this.pendingStoryboardImages_[H.url]=S,S.then(function(A){A&&C.push("storyboardImages_",A);
return A}).finally(function(){delete C.pendingStoryboardImages_[H.url]}))};
_.F.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.F.timeToPixels_=function(H,C,S){H*=C;return S===void 0||S?H+"px":H};
_.F.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
$5.prototype.drawRuler_=$5.prototype.drawRuler_;$5.prototype.setUpCanvas_=$5.prototype.setUpCanvas_;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],$5.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],$5.prototype,"ytRendererBehavior",void 0);_.D([_.V({value:0}),_.K("design:type",Number)],$5.prototype,"start",void 0);_.D([_.V({value:30}),_.K("design:type",Number)],$5.prototype,"end",void 0);
_.D([_.V({value:!1}),_.K("design:type",Boolean)],$5.prototype,"visible",void 0);_.D([_.V(),_.K("design:type",Object)],$5.prototype,"player_",void 0);_.D([_.V(),_.K("design:type",Number)],$5.prototype,"tickSpacing",void 0);_.D([_.V(),_.K("design:type",Number)],$5.prototype,"windowSizeSec",void 0);_.D([_.V({value:0}),_.K("design:type",Number)],$5.prototype,"rulerWidth",void 0);_.D([_.V({value:0}),_.K("design:type",Number)],$5.prototype,"rulerShift",void 0);
_.D([_.V({value:!1}),_.K("design:type",Boolean)],$5.prototype,"canvasReady_",void 0);_.D([_.V({value:function(){return[]}}),
_.K("design:type",Array)],$5.prototype,"storyboardImages_",void 0);_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],$5.prototype,"disabled",void 0);_.D([_.V({value:0}),_.K("design:type",Number)],$5.prototype,"forceRender_",void 0);_.D([_.V({value:1}),_.K("design:type",Number)],$5.prototype,"devicePixelRatio_",void 0);_.D([_.V({value:0}),_.K("design:type",Number)],$5.prototype,"windowSpeed",void 0);
_.D([_.fx("visible","devicePixelRatio_","rulerWidth"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$5.prototype,"setUpCanvas_",null);
_.D([_.fx("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.K("design:type",Function),_.K("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.K("design:returntype")],$5.prototype,"drawRuler_",null);_.D([_.Lx({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],$5);
_.B($5,"yt-clip-creation-scrubber-canvas",function(){if(ZsP===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);ZsP=H}H=ZsP;return H},
{mode:2});var ca9;var YFh;var pe=function(){var H=_.X.apply(this,arguments)||this;H.start=0;H.end=30;H.visible=!1;H.draggingLeft_=!1;H.draggingRight_=!1;H.draggingRuler_=!1;H.draggingWindow_=!1;H.seekableStart=0;H.seekableEnd=0;H.rulerWidth_=0;H.rulerShift_=0;H.windowSlideSpeed=0;H.disabled=!1;H.initialized=!1;H.durationAccessibilityLabel="";H.activeLoopRange_=!1;H.rulerDragMouseStart_=0;H.rulerDragRulerStart_=0;H.rulerDragStartTime_=0;H.rulerDragEndTime_=0;H.dragMouseLastX_=0;H.scrollInterval_=null;H.scrubberVe_=null;H.boundHandlers_=
{};H.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return H};
_.G(pe,_.X);_.F=pe.prototype;
_.F.created=function(){var H=this;this.JSC$22707_playerEvents=new Map;this.JSC$22707_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$22707_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$22707_playerEvents.set("onStateChange",this.onStateChange_);var C={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(C).forEach(function(S){H.boundHandlers_[S]=C[S].bind(H)})};
_.F.attached=function(){this.activeLoopRange_=!1;_.mY(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.mY(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.y4(156731)};
_.F.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.mY(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.mY(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.F.onVisibilityChangedAction_=function(H){var C=this;H.visible&&!this.player_&&(H=_.Zz())&&H.getPlayerPromise().then(function(S){C.setPlayer(S)})};
_.F.setPlayer=function(H){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22707_playerEvents);H&&(this.set("player_",H),this.ytPlayerListenerBehavior.listenToPlayerEvents(H,this.JSC$22707_playerEvents))};
_.F.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.F.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.F.beginHandleDrag_=function(H){this.disabled||(H.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=H.clientX,H.target===_.mY(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():H.target===_.mY(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.F.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.F.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.F.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.F.beginRulerDrag_=function(H){this.disabled||(H.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=H.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.F.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.F.beginWindowScroll_=function(){var H=this;this.scrollInterval_=setInterval(function(){var C=H.windowSlideSpeed;if(C=_.kdh(H.start,H.boundedRulerStartLimit_())?C-.1:_.kdh(H.end,H.boundedRulerEndLimit_())?C+.1:0){var S=H.capRulerOffset_(H.rulerShift_+C);S==H.rulerShift_?C=0:(H.set("rulerShift_",S),_.M3(H.hostElement,"set-fixed-length-range",{start:H.start+C,duration:H.end-H.start}))}H.set("windowSlideSpeed",C)},33)};
_.F.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.F.endDrag_=function(){this.logClick();var H=void 0;this.draggingRight_?H=this.end-1:this.draggingLeft_&&(H=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,H);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))};
_.F.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.F.updateRulerSize_=function(){this.set("rulerWidth_",_.mY(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.F.handleMouseDrag_=function(H){H.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(H):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(H):this.draggingWindow_&&this.handleWindowDrag_(H))};
_.F.handleRulerDrag_=function(H){H=this.pixelsToTime_(H.clientX-this.rulerDragMouseStart_);H=this.capRulerOffset_(this.rulerDragRulerStart_-H);this.set("rulerShift_",H);var C=this.rulerDragStartTime_-(this.rulerDragRulerStart_-H);_.M3(this.hostElement,"set-fixed-length-range",{start:C,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-H)-C})};
_.F.handleWindowDrag_=function(H){var C=H.clientX-this.dragMouseLastX_;this.dragMouseLastX_=H.clientX;H=this.pixelsToTime_(C);_.M3(this.hostElement,"set-fixed-length-range",{start:this.start+H,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.F.capRulerOffset_=function(H){var C=this.seekableStart-this.pixelsToTime_(16),S=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(C,H),S)};
_.F.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.F.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.F.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.F.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.F.handleWindowHandleDrag_=function(H){var C=H.clientX-this.dragMouseLastX_;this.dragMouseLastX_=H.clientX;H=this.pixelsToTime_(C);if(this.draggingLeft_){var S=this.start+H;var w=this.end}else this.draggingRight_&&(S=this.start,w=this.end+H);_.M3(this.hostElement,"set-range",{start:S,end:w,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.F.onVideoProgress_=function(H){this.disabled||(H=this.timeToPixels_(H-this.rulerShift_,this.tickSpacing_),_.mY(this.hostElement).querySelector("#playhead").style.transform="translateX("+H+")")};
_.F.onClipCreationDisable_=function(){this.endDrag_()};
_.F.timeToPixels_=function(H,C,S){H*=C;return S===void 0||S?H+"px":H};
_.F.pixelsToTime_=function(H){return H/this.tickSpacing_};
_.F.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.F.centerRuler_=function(H,C,S){this.set("rulerShift_",this.capRulerOffset_(H+(C-H)/2-S/2))};
_.F.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.F.updateLoopRange_=function(H,C,S,w,A,J,c){H&&(C&&w&&!S?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(H.pauseVideo(),H.seekTo(A,!1,void 0,void 0,50)):this.draggingRight_?(H.pauseVideo(),H.seekTo(J-.1,!1,void 0,void 0,50)):(c!==void 0?H.seekTo(c,!0,void 0,void 0,50):(C=H.getCurrentTime(),C<A||C>J?H.seekTo(A,!0,void 0,void 0,50):H.seekTo(C,!0,void 0,void 0,50)),H.playVideo()),H.setLoopRange({startTimeMs:A*1E3,endTimeMs:J*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(H.getCurrentTime())):
this.activeLoopRange_&&(H.setLoopRange(null),this.activeLoopRange_=!1))};
_.F.updateHandles_=function(){_.mY(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.mY(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.F.updateRuler_=function(){var H=this.end,C=this.start,S=this.draggableStartLimit_(),w=this.draggableEndLimit_();(C<S-.001||H>w+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.F.computeDurationLabel_=function(H,C){return H?H.replace("$clip_length",parseFloat(C).toFixed(1)):""};
_.F.computeDuration_=function(H,C){return this.isValidTime_(H)&&this.isValidTime_(C)&&H<C?C-H:0};
_.F.isValidTime_=function(H){return isNaN(parseFloat(H))||H<0?!1:this.player_?H>=this.seekableStart&&H<=this.seekableEnd:!0};
_.F.computeWindowSizeSec_=function(H,C,S){return Math.min((H||12E4)/1E3,S-C)};
_.F.computeTickSpacing_=function(H,C){return C?C/H:1};
_.F.onDragStateChanged_=function(){_.M3(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.F.centerRangeOnTime_=function(H){var C=this.duration;H=pVB(H-C/2,C,this.seekableStart,this.seekableEnd);_.M3(this.hostElement,"set-fixed-length-range",{start:H.start,duration:H.end-H.start})};
_.F.nearlyLessThan_=function(H,C,S){return H+(S===void 0?1E-6:S)<C};
_.F.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var H=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(H,this.start)||this.nearlyLessThan_(this.end,H))&&this.centerRangeOnTime_(H)}};
_.F.onStateChange_=function(H){this.visible&&!this.disabled&&H==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.F.computeDragState_=function(H,C,S,w){return H?"left":C?"right":S?"ruler":w?"window":"none"};
_.F.logClick=function(){var H=_.Dg(),C=_.BM();H&&C&&this.scrubberVe_&&(_.E("combine_ve_grafts")?_.hd(_.lJ(),this.scrubberVe_,C):_.ak(H,C,this.scrubberVe_),_.Sp(H,this.scrubberVe_))};
pe.prototype.onDragStateChanged_=pe.prototype.onDragStateChanged_;pe.prototype.updateRuler_=pe.prototype.updateRuler_;pe.prototype.updateHandles_=pe.prototype.updateHandles_;pe.prototype.onUpdateLoopRange=pe.prototype.onUpdateLoopRange;pe.prototype.onInitializedChanged_=pe.prototype.onInitializedChanged_;pe.prototype.onVisibleChanged_=pe.prototype.onVisibleChanged_;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],pe.prototype,"ytActionHandlerBehavior",void 0);
_.D([_.v(_.fT.YtPlayerListenerBehavior),_.K("design:type",Object)],pe.prototype,"ytPlayerListenerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],pe.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],pe.prototype,"start",void 0);_.D([_.V(),_.K("design:type",Object)],pe.prototype,"end",void 0);_.D([_.V({computed:"computeDuration_(start, end)"}),_.K("design:type",Number)],pe.prototype,"duration",void 0);
_.D([_.V(),_.K("design:type",String)],pe.prototype,"lengthTemplate",void 0);_.D([_.V({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.K("design:type",String)],pe.prototype,"durationLabel",void 0);_.D([_.V(),_.K("design:type",Object)],pe.prototype,"visible",void 0);_.D([_.V(),_.K("design:type",Object)],pe.prototype,"player_",void 0);_.D([_.V(),_.K("design:type",Object)],pe.prototype,"draggingLeft_",void 0);_.D([_.V(),_.K("design:type",Object)],pe.prototype,"draggingRight_",void 0);
_.D([_.V(),_.K("design:type",Object)],pe.prototype,"draggingRuler_",void 0);_.D([_.V({value:!1}),_.K("design:type",Object)],pe.prototype,"draggingWindow_",void 0);_.D([_.V({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.K("design:type",Number)],pe.prototype,"tickSpacing_",void 0);_.D([_.V(),_.K("design:type",Object)],pe.prototype,"seekableStart",void 0);_.D([_.V(),_.K("design:type",Object)],pe.prototype,"seekableEnd",void 0);
_.D([_.V(),_.K("design:type",Number)],pe.prototype,"windowSizeMs",void 0);_.D([_.V({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.K("design:type",Number)],pe.prototype,"windowSizeSec_",void 0);_.D([_.V(),_.K("design:type",Object)],pe.prototype,"rulerWidth_",void 0);_.D([_.V(),_.K("design:type",Object)],pe.prototype,"rulerShift_",void 0);_.D([_.V(),_.K("design:type",Object)],pe.prototype,"windowSlideSpeed",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],pe.prototype,"disabled",void 0);_.D([_.V(),_.K("design:type",Object)],pe.prototype,"initialized",void 0);_.D([_.V(),_.K("design:type",Object)],pe.prototype,"durationAccessibilityLabel",void 0);_.D([_.V({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.K("design:type",String)],pe.prototype,"dragState",void 0);
_.D([_.fx("visible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pe.prototype,"onVisibleChanged_",null);_.D([_.fx("initialized"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pe.prototype,"onInitializedChanged_",null);_.D([_.fx("player_","visible","disabled","initialized","start","end"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pe.prototype,"onUpdateLoopRange",null);
_.D([_.fx("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pe.prototype,"updateHandles_",null);_.D([_.fx("start","end"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pe.prototype,"updateRuler_",null);
_.D([_.fx("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pe.prototype,"onDragStateChanged_",null);_.D([_.Lx({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],pe);
_.B(pe,"yt-clip-creation-scrubber-view",function(){if(YFh===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;ca9===void 0&&(ca9=document.createElement("template"));var w=ca9;S.call(C,w.content.cloneNode(!0),H.content.firstChild);YFh=H}H=YFh;return H},{mode:2});var k5=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};H.startHighlightTimeout=0;H.endHighlightTimeout=0;return H};
_.G(k5,_.X);_.F=k5.prototype;_.F.attached=function(){var H=this;this.startInput.addEventListener("input",function(C){return H.handleStartInput_(C)});
this.endInput.addEventListener("input",function(C){return H.handleEndInput_(C)});
this.startInput.addEventListener("focusout",function(C){return H.handleStartBlur_(C)});
this.endInput.addEventListener("focusout",function(C){return H.handleEndBlur_(C)})};
_.F.setPlayer=function(H){this.set("player_",H)};
_.F.onSetFixedLengthRange_=function(H){var C=H.detail;H=C.start;var S=C.duration,w=C.startLimit;C=C.endLimit;w||(w=this.seekableStart_);C||(C=this.seekableEnd_);H=pVB(H,S,w,C);this.start=H.start;this.end=H.end};
_.F.onSetRange_=function(H){var C=H.detail;H=C.start;var S=C.end,w=C.startLimit;C=C.endLimit;w||(w=this.seekableStart_);C||(C=this.seekableEnd_);if(H=k7P(H,S,w,C,this.minLengthSec,this.maxLengthSec))this.start=H.start,this.end=H.end};
_.F.updateInputs_=function(){var H=this.end,C=this.start;this.startInput.focused||(this.startInput.value=h8(C,!0));this.endInput.focused||(this.endInput.value=h8(H,!0))};
_.F.handleStartInput_=function(H){H=$rB(H.target.value);if(H===null)this.set("startValid",!1);else{var C=this.end,S=k7P(H,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);S?(this.set("endWillUpdate",S.end!==C),this.set("startValid",S.start===H)):this.set("startValid",!1)}};
_.F.handleEndInput_=function(H){H=$rB(H.target.value);if(H===null)this.set("endValid",!1);else{var C=this.start,S=hBT(this.start,H,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);S?(this.set("startWillUpdate",S.start!==C),this.set("endValid",S.end===H)):this.set("endValid",!1)}};
_.F.handleStartBlur_=function(H){H=$rB(H.target.value);H===null?this.startInput.value=h8(this.start,!0):this.forceUpdateInputs_(k7P(H,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.F.handleEndBlur_=function(H){H=$rB(H.target.value);H===null?this.endInput.value=h8(this.end,!0):this.forceUpdateInputs_(hBT(this.start,H,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.F.forceUpdateInputs_=function(H){H&&(this.start=H.start,this.end=H.end);this.startInput.value=h8(this.start,!0);this.endInput.value=h8(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.F.initializeClipRange_=function(){var H=this.seekableEnd_,C=this.seekableStart_,S=this.visible_,w=this.player_;if(!w||!S||C===null||!H)this.set("initialized",!1);else if(!this.initialized){var A=w.getCurrentTime(),J=this.getDefaultLengthSec_();S=w.getVideoData();var c=w.getPlayerState()==1,Y=S.isLive;J=Math.min(J,H-C);A=Math.max(0,A);H=Y?hBT(A-J,A,C,H,this.minLengthSec,this.maxLengthSec):c?pVB(A-J/2,J,C,H):pVB(A,J,C,H);this.start=H.start;this.end=H.end;this.set("initialized",!0);S.isLive&&w.seekTo(H.start);
this.startInput.value=h8(this.start,!0);this.endInput.value=h8(this.end,!0)}};
_.F.onStartChanged_=function(){var H=this;_.M3(this.hostElement,"start-changed",{start:this.start});var C;isNaN((C=this.oldStart)!=null?C:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){H.set("highlightStart",!1);H.startHighlightTimeout=0;H.oldStart=H.start},3E3))};
_.F.onEndChanged_=function(){var H=this;_.M3(this.hostElement,"end-changed",{end:this.end});var C;isNaN((C=this.oldEnd)!=null?C:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){H.set("highlightEnd",!1);H.endHighlightTimeout=0;H.oldEnd=H.end},3E3))};
_.F.onVisibilityChangedAction_=function(H){var C=this;this.set("visible_",H.visible);this.visible_&&!this.player_&&(H=_.Zz())&&H.getPlayerPromise().then(function(S){C.setPlayer(S)})};
_.F.computeMinLengthSec_=function(H){return H/1E3||5};
_.F.computeMaxLengthSec_=function(H){return H/1E3||60};
_.F.computeDefaultLengthSec_=function(H){return H/1E3};
_.F.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.F.computeSeekableStart_=function(H,C){return H&&C?H.getProgressState(1).seekableStart:0};
_.F.computeSeekableEnd_=function(H,C){return H&&C?H.getProgressState(1).seekableEnd:0};
_.F.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.F.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.F.onDragState_=function(H){this.set("highlightStart",H.detail.startChanging);this.set("highlightEnd",H.detail.endChanging)};
k5.prototype.onDragState_=k5.prototype.onDragState_;k5.prototype.onEndChanged_=k5.prototype.onEndChanged_;k5.prototype.onStartChanged_=k5.prototype.onStartChanged_;k5.prototype.initializeClipRange_=k5.prototype.initializeClipRange_;k5.prototype.updateInputs_=k5.prototype.updateInputs_;k5.prototype.onSetRange_=k5.prototype.onSetRange_;k5.prototype.onSetFixedLengthRange_=k5.prototype.onSetFixedLengthRange_;
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],k5.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],k5.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],k5.prototype,"data",void 0);_.D([_.V({value:0}),_.K("design:type",Number)],k5.prototype,"start",void 0);_.D([_.V({value:!0}),_.K("design:type",Boolean)],k5.prototype,"startValid",void 0);
_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],k5.prototype,"startWillUpdate",void 0);_.D([_.V({value:30}),_.K("design:type",Number)],k5.prototype,"end",void 0);_.D([_.V({value:!0}),_.K("design:type",Boolean)],k5.prototype,"endValid",void 0);_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],k5.prototype,"endWillUpdate",void 0);_.D([_.V({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.K("design:type",Number)],k5.prototype,"minLengthSec",void 0);
_.D([_.V({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.K("design:type",Number)],k5.prototype,"maxLengthSec",void 0);_.D([_.V({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.K("design:type",Number)],k5.prototype,"defaultLengthSec",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],k5.prototype,"visible_",void 0);_.D([_.V(),_.K("design:type",Object)],k5.prototype,"player_",void 0);
_.D([_.V({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.K("design:type",Number)],k5.prototype,"seekableStart_",void 0);_.D([_.V({computed:"computeSeekableEnd_(player_, visible_)"}),_.K("design:type",Number)],k5.prototype,"seekableEnd_",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],k5.prototype,"initialized",void 0);_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],k5.prototype,"disabled",void 0);
_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],k5.prototype,"highlightStart",void 0);_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],k5.prototype,"highlightEnd",void 0);_.D([_.lA("#start"),_.K("design:type",HTMLInputElement)],k5.prototype,"startInput",void 0);_.D([_.lA("#end"),_.K("design:type",HTMLInputElement)],k5.prototype,"endInput",void 0);
_.D([_.Gz("set-fixed-length-range"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],k5.prototype,"onSetFixedLengthRange_",null);_.D([_.Gz("set-range"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],k5.prototype,"onSetRange_",null);_.D([_.fx("start","end"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],k5.prototype,"updateInputs_",null);
_.D([_.fx("player_","visible_","seekableStart_","seekableEnd_"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],k5.prototype,"initializeClipRange_",null);_.D([_.fx("start"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],k5.prototype,"onStartChanged_",null);_.D([_.fx("end"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],k5.prototype,"onEndChanged_",null);
_.D([_.Gz("clips-drag-state"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],k5.prototype,"onDragState_",null);_.D([_.Lx({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],k5);
_.B(k5,"yt-clip-creation-scrubber-renderer",function(){if(FBh===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;Jac===void 0&&(Jac=document.createElement("template"));var w=Jac;S.call(C,w.content.cloneNode(!0),H.content.firstChild);FBh=H}H=FBh;return H},{mode:2});var h4=function(){var H=_.X.apply(this,arguments)||this;H.player_=null;H.JSC$22721_playerEvents=new Map;H.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return H};
_.G(h4,_.X);_.F=h4.prototype;_.F.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"}}}};
_.F.created=function(){this.JSC$22721_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$22721_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$22721_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$22721_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.F.detached=function(){this.setPlayer(null)};
_.F.onVisibilityChangedAction_=function(H){var C=this,S;if((S=this.data)==null?0:S.externalVideoId){var w;this.videoId=(w=this.data)==null?void 0:w.externalVideoId}this.getPlayer().then(function(A){if(H.visible)C.returnTime=A.getCurrentTime(),C.isAtLiveHead=A.getProgressState().isAtLiveHead;else{var J=C.returnTime;C.isAtLiveHead&&(J=Number.POSITIVE_INFINITY);A.seekTo(J,void 0,void 0,void 0,51)}})};
_.F.getPlayer=function(){var H=this;if(!this.player_){var C=_.Zz();if(C)return C.getPlayerPromise().then(function(S){H.setPlayer(S);return S})}return Promise.resolve(this.player_)};
_.F.setPlayer=function(H){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22721_playerEvents);if(H){this.player_=H;var C;((C=this.data)==null?0:C.externalVideoId)||this.set("videoId",H.getVideoData().video_id||"");var S;(H==null?void 0:(S=H.getPresentingPlayerType)==null?void 0:S.call(H))===2&&(this.set("isAdPlaying",!0),_.q3(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(H,this.JSC$22721_playerEvents)}};
_.F.ready=function(){_.mY(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.F.onTitleChanged_=function(H){this.set("titleValue",H.detail.title)};
_.F.onStartChanged_=function(H){this.set("start",H.detail.start)};
_.F.onEndChanged_=function(H){this.set("end",H.detail.end)};
_.F.onTitleValidChanged_=function(H){this.set("titleValid",H.detail.valid)};
_.F.onStartValidChanged_=function(H){this.set("startValid",H.detail.valid)};
_.F.onEndValidChanged_=function(H){this.set("endValid",H.detail.valid)};
_.F.onVideoDataChange_=function(){var H;if((H=this.data)==null||!H.externalVideoId){var C;this.set("videoId",((C=this.player_)==null?void 0:C.getVideoData().video_id)||"")}};
_.F.computeFormValid_=function(H,C,S,w){return!!(H&&C&&S&&w)};
_.F.computeCancelButton_=function(H,C,S){return H&&_.e(H,_.cg)?{buttonRenderer:Object.assign({},_.e(H,_.cg),{isDisabled:C||S})}:null};
_.F.computeSubmitButton_=function(H,C,S){return H&&_.e(H,_.cg)?{buttonRenderer:Object.assign({},_.e(H,_.cg),{command:void 0,isDisabled:!this.formValid||C||S})}:null};
_.F.computeSubmitCommand_=function(H){return H||null};
_.F.onSubmit_=function(H){var C=this;H.stopPropagation();H.preventDefault();this.submitCommand_&&(H={},H.comment_text=this.titleValue,H.clip_external_video_id=this.videoId,H.clip_offset_ms=parseInt(this.start*1E3,10),H.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.WH(this.hostElement,[this.submitCommand_,H]).then(function(){C.set("isLoading_",!1)},function(){C.set("isLoading_",!1)}))};
_.F.playerAdStartHandler_=function(){_.q3(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.F.playerAdEndHandler_=function(){_.q3(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.F.onVideoProgress_=function(){var H=this;this.getPlayer().then(function(C){var S,w=(C==null?void 0:(S=C.getPresentingPlayerType)==null?void 0:S.call(C))===2;H.isAdPlaying!==w&&(w?H.playerAdStartHandler_():H.playerAdEndHandler_())})};
h4.prototype.onEndValidChanged_=h4.prototype.onEndValidChanged_;h4.prototype.onStartValidChanged_=h4.prototype.onStartValidChanged_;h4.prototype.onTitleValidChanged_=h4.prototype.onTitleValidChanged_;h4.prototype.onEndChanged_=h4.prototype.onEndChanged_;h4.prototype.onStartChanged_=h4.prototype.onStartChanged_;h4.prototype.onTitleChanged_=h4.prototype.onTitleChanged_;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],h4.prototype,"ytActionHandlerBehavior",void 0);
_.D([_.v(_.fT.YtPlayerListenerBehavior),_.K("design:type",Object)],h4.prototype,"ytPlayerListenerBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],h4.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],h4.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],h4.prototype,"data",void 0);_.D([_.V({value:""}),_.K("design:type",String)],h4.prototype,"titleValue",void 0);
_.D([_.V({value:!1}),_.K("design:type",Boolean)],h4.prototype,"titleValid",void 0);_.D([_.V({value:0}),_.K("design:type",Number)],h4.prototype,"start",void 0);_.D([_.V({value:!0}),_.K("design:type",Boolean)],h4.prototype,"startValid",void 0);_.D([_.V({value:0}),_.K("design:type",Number)],h4.prototype,"end",void 0);_.D([_.V({value:!0}),_.K("design:type",Boolean)],h4.prototype,"endValid",void 0);_.D([_.V({value:""}),_.K("design:type",String)],h4.prototype,"videoId",void 0);
_.D([_.V({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.K("design:type",Boolean)],h4.prototype,"formValid",void 0);_.D([_.V({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.K("design:type",Object)],h4.prototype,"submitButton_",void 0);_.D([_.V({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.K("design:type",Object)],h4.prototype,"submitCommand_",void 0);
_.D([_.V({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.K("design:type",Object)],h4.prototype,"cancelButton_",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],h4.prototype,"isLoading_",void 0);_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],h4.prototype,"isAdPlaying",void 0);_.D([_.V({value:0}),_.K("design:type",Number)],h4.prototype,"returnTime",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],h4.prototype,"isAtLiveHead",void 0);
_.D([_.Gz("title-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],h4.prototype,"onTitleChanged_",null);_.D([_.Gz("start-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],h4.prototype,"onStartChanged_",null);_.D([_.Gz("end-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],h4.prototype,"onEndChanged_",null);
_.D([_.Gz("title-valid-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],h4.prototype,"onTitleValidChanged_",null);_.D([_.Gz("start-valid-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],h4.prototype,"onStartValidChanged_",null);_.D([_.Gz("end-valid-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],h4.prototype,"onEndValidChanged_",null);
_.D([_.Lx({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],h4);
_.B(h4,"yt-clip-creation-renderer",function(){if(AaD===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;wND===void 0&&(wND=document.createElement("template"));var w=wND;S.call(C,w.content.cloneNode(!0),H.content.firstChild);AaD=H}H=AaD;return H},{mode:2});var ne=function(){return _.X.apply(this,arguments)||this};
_.G(ne,_.X);ne.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"}}}};
ne.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(H){return H.hasOwnProperty("clipCreationRenderer")})&&_.q3(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
ne.prototype.onPanelContentVisibleChanged=ne.prototype.onPanelContentVisibleChanged;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],ne.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],ne.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.NU.YtVisibilityBehavior),_.K("design:type",Object)],ne.prototype,"ytVisibilityBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],ne.prototype,"ytdReduxBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],ne.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],ne.prototype,"panelContentVisible",void 0);_.D([_.fx("panelContentVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ne.prototype,"onPanelContentVisibleChanged",null);_.D([_.h({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],ne);
_.B(ne,"ytd-clip-section-renderer",function(){if(CWc!==void 0)return CWc;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return CWc=H},{mode:1});var zUT;var rK=function(){return _.X.apply(this,arguments)||this};
_.G(rK,_.X);_.F=rK.prototype;
_.F.onKeyDown=function(H){if(this.snippetElements.length!==0&&(H=H.keyCode,H===38||H===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);H===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.$C(this.highlightedIndex,-1,this.snippetElements.length);H=this.snippetElements.length;var C=this.highlightedIndex%H;this.highlightedIndex=C*H<0?C+H:C;H=this.snippetElements[this.highlightedIndex];this.highlightSnippet(H);this.ensureVisible(H)}};
_.F.onKeyUp=function(H){var C=this;uN7(H)&&(H.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.rT.cancelJob(this.inputTimerId),this.inputTimerId=_.rT.addLowPriorityJob(function(){C.typedValue&&(C.fetchSnippets(C.typedValue),C.logInputGesture(C.data))},1E3))};
_.F.onClick=function(H){(H=_.D9n(H.target,null,"snippet-item"))&&this.selectSnippet(H)};
_.F.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.F.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.F.ready=function(){var H=this;this.inputElement.addEventListener("focus",function(){H.snippetsWrapper.style.removeProperty("display")})};
_.F.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.F.getSourceTimelines=function(){if(!this.data)return[];var H=[];if(this.data.searchInVideoSources)for(var C=_.Z(this.data.searchInVideoSources),S=C.next();!S.done;S=C.next())S=S.value,S==="SEARCH_IN_VIDEO_SOURCE_ASR"?H.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):S==="SEARCH_IN_VIDEO_SOURCE_OCR"&&H.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return H};
_.F.fetchSnippets=function(H){var C=_.q3(this.hostElement,"yt-get-current-video-id-action")[0],S=this.getSourceTimelines();H={getSearchInVideoCommand:{externalVideoId:C,query:H!=null?H:"",sourceTimelines:S},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.JA().resolve(_.ZQ).resolveCommand(H,{form:{element:this.hostElement}})};
_.F.filterSnippets=function(H,C){var S=this;if(C){this.filteredSnippets=(0,_.hb.unsafeClone)(H);var w=RegExp(_.MK7(C),"i");this.filteredSnippets=this.filteredSnippets.filter(function(c){return w.test(S.ytRendererBehavior.getSimpleString(c.snippet))});
H=_.Z(this.filteredSnippets);for(var A=H.next();!A.done;A=H.next()){A=A.value;var J=this.ytRendererBehavior.getSimpleString(A.snippet);A.snippet={runs:[{text:J.substring(0,J.toLowerCase().indexOf(C))},{text:J.substring(J.toLowerCase().indexOf(C),J.toLowerCase().indexOf(C)+C.length),bold:!0},{text:J.substring(J.toLowerCase().indexOf(C)+C.length,J.length)}]}}}else this.filteredSnippets=H};
_.F.onUpdateSearchInVideoResults=function(H){if(!(this.snippets.length>0)){var C,S,w;if((w=(C=_.e(H,$OV))==null?void 0:(S=C.results)==null?void 0:S.length)!=null&&w){var A;this.filteredSnippets=this.snippets=((A=_.e(H,$OV))==null?void 0:A.results).map(function(J){var c,Y,M;return{startMs:J==null?void 0:(c=J.searchInVideoResultRenderer)==null?void 0:c.startMs,startTimeText:J==null?void 0:(Y=J.searchInVideoResultRenderer)==null?void 0:Y.startTimeText,snippet:J==null?void 0:(M=J.searchInVideoResultRenderer)==
null?void 0:M.snippet}})}}};
_.F.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};
_.F.highlightSnippet=function(H){H.classList.add("highlighted")};
_.F.removeSnippetHighlight=function(H){H.classList.remove("highlighted")};
_.F.selectSnippet=function(H){this.typedValue=String(H.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(H);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.F.ensureVisible=function(H){var C=this.snippetsWrapper.scrollTop,S=C+this.snippetsWrapper.clientHeight,w=H.offsetTop-this.snippetsWrapper.offsetTop;H=w+H.clientHeight;w<C?this.snippetsWrapper.scrollTop-=C-w:H>S&&(this.snippetsWrapper.scrollTop+=H-S)};
_.F.seekPlayer=function(H){var C,S;return _.z(function(w){if(w.nextAddress==1){if(!H)return w.jumpTo(0);C=Number(H.dataset.startOffset);return w.yield(_.ct().getPlayerPromise(),3)}S=w.yieldResult;S.seekTo(C/1E3,!0);S.wakeUpControls();_.oT(w)})};
_.F.logInputGesture=function(H){var C=_.Dg();C&&(H==null?0:H.trackingParams)&&_.sa(C,_.Qh(H.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.F.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uQ("typed-value-changed",this.typedValue))};
_.F.updateTypedValueFromBinding=function(H){this.typedValue=H.currentTarget.value};
rK.prototype.typedValueChangedForBinding=rK.prototype.typedValueChangedForBinding;rK.prototype.dataChanged=rK.prototype.dataChanged;rK.prototype.panelContentVisibleChanged=rK.prototype.panelContentVisibleChanged;rK.prototype.onClick=rK.prototype.onClick;rK.prototype.onKeyUp=rK.prototype.onKeyUp;rK.prototype.onKeyDown=rK.prototype.onKeyDown;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],rK.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],rK.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],rK.prototype,"data",void 0);_.D([_.V({value:[]}),_.K("design:type",Array)],rK.prototype,"snippets",void 0);_.D([_.V({value:[]}),_.K("design:type",Array)],rK.prototype,"filteredSnippets",void 0);_.D([_.V({value:[]}),_.K("design:type",Array)],rK.prototype,"snippetElements",void 0);
_.D([_.lA("#siv-input"),_.K("design:type",HTMLElement)],rK.prototype,"inputElement",void 0);_.D([_.lA("#siv-snippets-wrapper"),_.K("design:type",HTMLElement)],rK.prototype,"snippetsWrapper",void 0);_.D([_.V(),_.K("design:type",String)],rK.prototype,"typedValue",void 0);_.D([_.V({value:-1}),_.K("design:type",Number)],rK.prototype,"highlightedIndex",void 0);_.D([_.Gz("keydown"),_.K("design:type",Function),_.K("design:paramtypes",[_.Q0]),_.K("design:returntype")],rK.prototype,"onKeyDown",null);
_.D([_.Gz("keyup"),_.K("design:type",Function),_.K("design:paramtypes",[_.Q0]),_.K("design:returntype")],rK.prototype,"onKeyUp",null);_.D([_.Gz("click"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],rK.prototype,"onClick",null);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],rK.prototype,"panelContentVisible",void 0);
_.D([_.fx("panelContentVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rK.prototype,"panelContentVisibleChanged",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rK.prototype,"dataChanged",null);_.D([_.fx("typedValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rK.prototype,"typedValueChangedForBinding",null);
_.D([_.h({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],rK);
_.B(rK,"ytd-search-in-video-renderer",function(){if(zUT!==void 0)return zUT;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return zUT=H},{mode:1});var ML7;var BE=function(){return _.X.apply(this,arguments)||this};
_.G(BE,_.X);BE.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
BE.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]]"}}}}}};
BE.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var H,C,S,w,A=(C=_.e((H=this.data)==null?void 0:H.onClickCommand,_.D6))==null?void 0:(S=C.item)==null?void 0:(w=S.notificationTextRenderer)==null?void 0:w.successResponseText;A&&_.UPZ(this.hostElement,A)}};
_.JJ.Object.defineProperties(BE.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var H,C,S,w;return this.isProductPlaceholder&&((H=this.data)==null?void 0:(C=H.hiddenProductOptions)==null?void 0:C.showDropCountdown)&&!!((S=this.data)==null?0:(w=S.hiddenProductOptions)==null?0:w.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var H;return!this.isProductPlaceholder&&!((H=this.data)==null?0:H.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var H,C;return!((H=this.data)==null?0:H.priceReplacementText)&&!((C=this.data)==null||!C.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],BE.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],BE.prototype,"componentBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],BE.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],BE.prototype,"data",void 0);
_.D([_.V({reflectToAttribute:!0}),_.l("isProductPlaceholder"),_.K("design:type",Object),_.K("design:paramtypes",[])],BE.prototype,"useCenterLayoutContainer",null);_.D([_.V({computed:"computeButtonOverride(data)"}),_.K("design:type",Object)],BE.prototype,"buttonOverride",void 0);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],BE.prototype,"isProductPlaceholder",null);
_.D([_.l("isProductPlaceholder"),_.K("design:type",Object),_.K("design:paramtypes",[])],BE.prototype,"showDropCountdown",null);_.D([_.l("isProductPlaceholder","data"),_.K("design:type",Object),_.K("design:paramtypes",[])],BE.prototype,"showBrandName",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],BE.prototype,"showPriceReplacementText",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],BE.prototype,"showPrice",null);
_.D([_.l("isProductPlaceholder"),_.K("design:type",Object),_.K("design:paramtypes",[])],BE.prototype,"showMetadata",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],BE);
_.B(BE,"ytd-product-list-item-renderer",function(){if(ML7!==void 0)return ML7;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return ML7=H},{mode:1});var qFr;var Dd=function(){return _.X.apply(this,arguments)||this};
_.G(Dd,_.X);Dd.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
Dd.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
Dd.prototype.panelContentVisibleChanged=function(){var H=this,C;return _.z(function(S){if(S.nextAddress==1)return H.playerApi?S.jumpTo(2):S.yield(_.ct().getPlayerPromise(),3);S.nextAddress!=2&&(H.playerApi=S.yieldResult);(C=H.playerApi)==null||C.productsInVideoVisibilityUpdated(!!H.panelContentVisible);_.oT(S)})};
Dd.prototype.panelContentVisibleChanged=Dd.prototype.panelContentVisibleChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Dd.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Dd.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],Dd.prototype,"panelContentVisible",void 0);_.D([_.V(),_.K("design:type",Object)],Dd.prototype,"data",void 0);
_.D([_.fx("panelContentVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype",Promise)],Dd.prototype,"panelContentVisibleChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],Dd);
_.B(Dd,"ytd-product-list-renderer",function(){if(qFr!==void 0)return qFr;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return qFr=H},{mode:1});var T64;var Ke=function(){var H=_.X.apply(this,arguments)||this;H.hideTimestamps=!!_.BU("hide-transcript-timestamps");H.currentCueIndex=-1;H.flatCues=[];H.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};H.TEST_ONLY={getFlatCues:function(){return H.flatCues}};
return H};
_.G(Ke,_.X);_.F=Ke.prototype;_.F.hideTimestampsChanged=function(){_.rm("hide-transcript-timestamps",this.hideTimestamps)};
_.F.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.F.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.F.dataChanged=function(){var H;if((H=this.data)!=null&&H.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;H=_.Z(this.data.cueGroups);for(var C=H.next();!C.done;C=H.next()){C=_.Z(_.e(C.value,peh).cues);for(var S=C.next();!S.done;S=C.next())this.flatCues.push(Number(_.e(S.value,kvB).startOffsetMs))}}};
_.F.onYtPlayerTimeChanged=function(H){if(!(H<0)){for(var C=this.currentCueIndex,S=C;;){var w=S>=0?this.flatCues[S]/1E3:-1;if(H+.5<w)--S;else if(w=S+1<this.flatCues.length?this.flatCues[S+1]/1E3:Infinity,H+.5>w)S+=1;else break}S!==C&&(C>=0&&((H=this.getCueElement(C))&&H.classList.remove("active"),(C=this.getCueGroupElement(C))&&C.classList.remove("active")),(C=this.getCueElement(S))&&C.classList.add("active"),(C=this.getCueGroupElement(S))&&C.classList.add("active"),this.currentCueIndex=S,this.isHovered||
this.scrollElementToTop(S))}};
_.F.scrollElementToTop=function(H){H=this.getCueElement(H>=3?H-3:0);this.hostElement.scrollTop=Math.min(H.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.F.getCueElement=function(H){return _.mY(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[H]+'"]')};
_.F.getCueGroupElement=function(H){return(H=this.getCueElement(H))&&H.parentElement?H.parentElement.parentElement:null};
_.F.onTap=function(H){var C=_.Jr(H);H.target.classList.contains("cue")&&this.seekCueElement(C)};
_.F.onKeyPress=function(H){H.keyCode==13&&(H=_.D9n(H.target,null,"cue"))&&this.seekCueElement(H)};
_.F.seekCueElement=function(H){H=Number(H.getAttribute("start-offset"));_.q3(this.hostElement,"yt-transcript-player-seek",[H/1E3])};
_.F.onMouseEnter=function(){this.isHovered=!0};
_.F.onMouseLeave=function(){this.isHovered=!1};
Ke.prototype.onMouseLeave=Ke.prototype.onMouseLeave;Ke.prototype.onMouseEnter=Ke.prototype.onMouseEnter;Ke.prototype.onKeyPress=Ke.prototype.onKeyPress;Ke.prototype.onTap=Ke.prototype.onTap;Ke.prototype.dataChanged=Ke.prototype.dataChanged;Ke.prototype.hideTimestampsChanged=Ke.prototype.hideTimestampsChanged;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],Ke.prototype,"ytActionHandlerBehavior",void 0);
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Ke.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Ke.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Ke.prototype,"hideTimestamps",void 0);_.D([_.V(),_.K("design:type",Boolean)],Ke.prototype,"isHovered",void 0);_.D([_.fx("hideTimestamps"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ke.prototype,"hideTimestampsChanged",null);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ke.prototype,"dataChanged",null);_.D([_.Gz("tap"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],Ke.prototype,"onTap",null);_.D([_.Gz("keypress"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],Ke.prototype,"onKeyPress",null);
_.D([_.Gz("mouseenter"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ke.prototype,"onMouseEnter",null);_.D([_.Gz("mouseleave"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ke.prototype,"onMouseLeave",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],Ke);
_.B(Ke,"ytd-transcript-body-renderer",function(){if(T64!==void 0)return T64;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return T64=H},{mode:1});var mj9;var t4=function(){var H=_.X.apply(this,arguments)||this;H.darkerPanels=_.E("web_watch_darker_panels");return H};
_.G(t4,_.X);t4.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],t4.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],t4.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],t4.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],t4.prototype,"darkerPanels",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],t4);
_.B(t4,"ytd-transcript-footer-renderer",function(){if(mj9!==void 0)return mj9;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return mj9=H},{mode:1});var WBv;var yav;var Le=function(){var H=_.X.apply(this,arguments)||this;H.systemIcons=_.E("kevlar_system_icons");H.showClearButton=!1;return H};
_.G(Le,_.X);_.F=Le.prototype;_.F.handleInput=function(H){var C=this;H.target.value.length?_.iJ(this,"ytdTranscriptSearchBoxSearch",function(){C.emitSearchEvent(H)},500):(_.Z17(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=H.target.value.length>0};
_.F.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.F.handleClick=function(){var H,C=(H=this.data)==null?void 0:H.trackingParams;C&&_.Bg(_.lJ(),C)};
_.F.handleClear=function(){_.Z17(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var H,C,S=(C=_.e((H=this.data)==null?void 0:H.clearButton,_.cg))==null?void 0:C.trackingParams;S&&_.Bg(_.lJ(),S);this.clear()};
_.F.emitSearchEvent=function(H){_.M3(this.hostElement,"yt-transcript-search-box-search",{query:H.target.value});var C,S;(H=(S=_.e((C=this.data)==null?void 0:C.searchButton,_.cg))==null?void 0:S.trackingParams)&&_.Bg(_.lJ(),H)};
_.F.emitClearEvent=function(){_.M3(this.hostElement,"yt-transcript-search-box-clear")};
_.JJ.Object.defineProperties(Le.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.mY(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Le.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Le.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Le.prototype,"systemIcons",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],Le);
_.B(Le,"ytd-transcript-search-box-renderer",function(){if(yav!==void 0)return yav;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return yav=H},{mode:1});var N6t;var bs9;var gK=function(){return _.X.apply(this,arguments)||this};
_.G(gK,_.X);gK.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var H,C;this.sectionHeaderAriaLabel=(H=this.data)==null?void 0:(C=H.accessibility)==null?void 0:C.accessibilityData.label}};
gK.prototype.fireSelectedEvent=function(H){_.M3(this.hostElement,"ytd-transcript-section-header",{startMs:H})};
gK.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
gK.prototype.handleKeyPress=function(H){this.data&&H.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.JJ.Object.defineProperties(gK.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var H,C;return(C=(H=this.data)==null?void 0:H.enableTappableTranscriptHeader)!=null?C:!1}}});
gK.prototype.dataChanged=gK.prototype.dataChanged;_.D([_.V(),_.K("design:type",Object)],gK.prototype,"data",void 0);_.D([_.V(),_.K("design:type",String)],gK.prototype,"sectionHeaderAriaLabel",void 0);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],gK.prototype,"enableTappableTranscriptHeader",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],gK.prototype,"dataChanged",null);
_.D([_.h({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],gK);
_.B(gK,"ytd-transcript-section-header-renderer",function(){if(bs9!==void 0)return bs9;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return bs9=H},{mode:1});var E1v;var eUh;var U8=function(){var H=_.X.apply(this,arguments)||this;H.isEditMode=!1;H.touchCaptionsEnabled=!1;H.deleteCaptionCorrectionPopupCommand=null;H.voteCaptionCorrectionPopupCommand=null;H.roundedContainer=!0;H.mouseOver=!1;H.textChanged=!1;H.messages={suggest_correction:_.fL("suggest_correction",void 0,"Edit caption"),suggested_caption:_.fL("suggested_caption",void 0,"Suggested caption"),submit_correction:_.fL("submit_correction",void 0,"Submit for review"),cancel_correction:_.fL("cancel_correction",
void 0,"Cancel"),replay_segment:_.fL("replay_segment",void 0,"Re-play segment"),delete_correction:_.fL("delete_correction",void 0,"Delete correction")};H.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return H};
_.G(U8,_.X);_.F=U8.prototype;_.F.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)};
_.F.handleDelete=function(H){if(this.deleteCaptionCorrectionPopupCommand){var C=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);C&&this.ytdOpenPopupBehavior.openPopup(C);H.stopPropagation()}};
_.F.handleSubmit=function(H){if(this.data&&this.data.submitCaptionCorrectionCommand&&(H.stopPropagation(),this.textChanged)){var C;H=(C=_.e(this.data.submitCaptionCorrectionCommand,_.YYU))==null?void 0:C.params;C=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:H,correctionText:String(this.ironTextAreaElement.value),originalText:_.jt(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(C);this.isEditMode=!1}};
_.F.handleUpdateSegmentText=function(H){(H=_.e(H,CRc))&&H.targetId&&this.data&&H.targetId===this.data.targetId&&(H.userCorrection&&(this.editedText=H.userCorrection),H.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.jt(this.data.snippet)),H.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=H.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=H.voteCaptionCorrectionPopupCommand?
H.voteCaptionCorrectionPopupCommand:null,H.accessibility&&(this.segmentAriaLabel=H.accessibility.accessibilityData.label))};
_.F.handleCancel=function(H){this.isEditMode=!1;H.stopPropagation();this.logClientVe(159409)};
_.F.handleEditSegmentCommand=function(H){(H=_.e(H,iXT))&&H.targetId&&this.data&&H.targetId===this.data.targetId&&this.handleEdit()};
_.F.handleEditButtonClick=function(H){this.data&&(this.handleEdit(),H.stopPropagation())};
_.F.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var H;(H=this.ironTextAreaElement.textarea)==null||H.focus();this.logClientVe(159407)}};
_.F.handleMouseEnter=function(){this.mouseOver=!0};
_.F.handleMouseLeave=function(){this.mouseOver=!1};
_.F.handleReplay=function(H){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),H.stopPropagation(),this.logClientVe(159408))};
_.F.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()))};
_.F.handleKeypress=function(H){this.data&&(this.isEditMode?H.stopPropagation():this.isEnterPress(H)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(H)&&this.logClientVe(138758))};
_.F.handleTextboxClick=function(H){H.stopPropagation()};
_.F.handleTextboxKeydown=function(H){this.isControlEnterPress(H)?this.handleSubmit(H):H.key==="Escape"&&this.handleCancel(H)};
_.F.handleTextboxKeyup=function(){this.textChanged=_.jt(this.latestText)!==String(this.ironTextAreaElement.value)};
_.F.fireSelectedEvent=function(H){_.M3(this.hostElement,"yt-transcript-segment-selected",{startMs:H})};
_.F.fireReplayEvent=function(H,C){_.M3(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(H-100,0),endMs:C})};
_.F.fireEditEvent=function(H,C){_.M3(this.hostElement,"yt-transcript-segment-edit",{startMs:H,endMs:C})};
_.F.isEnterPress=function(H){return H.key==="Enter"||H.code==="Enter"||H.code==="NumpadEnter"||H.keyCode===13?!0:!1};
_.F.isControlEnterPress=function(H){var C=H.key==="Enter"||H.code==="Enter"||H.code==="NumpadEnter"||H.keyCode===13;return(H.ctrlKey||H.metaKey)&&C};
_.F.isCopyPress=function(H){var C=H.ctrlKey;return H.key==="c"&&C};
_.F.logClick=function(){var H,C=(H=this.data)==null?void 0:H.trackingParams;C&&_.Bg(_.lJ(),C)};
_.F.logClientVe=function(H){_.rH(_.lJ(),_.y4(H))};
_.JJ.Object.defineProperties(U8.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}}});
U8.prototype.handleMouseLeave=U8.prototype.handleMouseLeave;U8.prototype.handleMouseEnter=U8.prototype.handleMouseEnter;U8.prototype.dataChanged=U8.prototype.dataChanged;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],U8.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.OY),_.K("design:type",Object)],U8.prototype,"ytdOpenPopupBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],U8.prototype,"ytRendererBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],U8.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],U8.prototype,"isEditMode",void 0);_.D([_.V(),_.K("design:type",Object)],U8.prototype,"touchCaptionsEnabled",void 0);_.D([_.V(),_.K("design:type",Object)],U8.prototype,"editedText",void 0);_.D([_.V(),_.K("design:type",Object)],U8.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.D([_.V(),_.K("design:type",Object)],U8.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.D([_.V(),_.K("design:type",String)],U8.prototype,"segmentAriaLabel",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],U8.prototype,"roundedContainer",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],U8.prototype,"mouseOver",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],U8.prototype,"textChanged",void 0);_.D([_.V(),_.K("design:type",Object)],U8.prototype,"messages",void 0);
_.D([_.lA("#suggestion"),_.K("design:type",Object)],U8.prototype,"ironTextAreaElement",void 0);_.D([_.l("data","editedText"),_.K("design:type",Object),_.K("design:paramtypes",[])],U8.prototype,"latestText",null);_.D([_.l("touchCaptionsEnabled","isEditMode"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],U8.prototype,"enableEditButton",null);
_.D([_.l("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],U8.prototype,"enableUndoButton",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],U8.prototype,"dataChanged",null);_.D([_.Gz("mouseenter"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],U8.prototype,"handleMouseEnter",null);
_.D([_.Gz("mouseleave"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],U8.prototype,"handleMouseLeave",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],U8);
_.B(U8,"ytd-transcript-segment-renderer",function(){if(eUh!==void 0)return eUh;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return eUh=H},{mode:1});var RL=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};H.isError=!1;H.darkerPanels=_.E("web_watch_darker_panels");H.useParentMaxHeight=_.E("web_watch_transscript_use_parent_max_height");H.segmentOffsets=[];H.segmentIndex=-1;return H};
_.G(RL,_.X);_.F=RL.prototype;_.F.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"}}}}};
_.F.segmentsChanged=function(){this.updateOffsets()};
_.F.onYtPlayerTimeChanged=function(H){for(var C=this.segmentIndex,S=C;;){if(S>=0){var w=this.segmentOffsets[S].start;var A=this.segmentOffsets[S].isAutoScrollable}else w=-1,A=!0;var J=H+.5;if(!A){w=S+1<this.segmentOffsets.length?this.segmentOffsets[S+1].start:Infinity;if(J>=w){S+=1;continue}S=-1;break}if(J<w)w=S-1>=0&&this.segmentOffsets[S-1].isAutoScrollable,A=S===0||w?1:2,S-=A;else if(A=S+1<this.segmentOffsets.length&&this.segmentOffsets[S+1].isAutoScrollable?1:2,w=S+A<this.segmentOffsets.length?
this.segmentOffsets[S+A].start:Infinity,J>w)S+=A;else{if(S<0)break;S<this.segmentOffsets.length&&J>this.segmentOffsets[S].end&&(S=-1);break}}if(C!==S){if(C>=0){var c;(c=this.getSegmentElement(C))==null||c.classList.remove("active")}this.segmentIndex=S;if(!(S<0)){var Y;(Y=this.getSegmentElement(S))==null||Y.classList.add("active");this.isHovered||this.scrollElementToTop(S)}}};
_.F.handleSegmentEdit=function(H){H.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=H.target,_.q3(this.hostElement,"yt-transcript-player-edit",[H.detail.startMs/1E3,H.detail.endMs/1E3]))};
_.F.handleSegmentSelected=function(H){_.q3(this.hostElement,"yt-transcript-player-seek",[H.detail.startMs/1E3])};
_.F.handleSegmentReplay=function(H){_.q3(this.hostElement,"yt-transcript-player-replay",[H.detail.startMs/1E3,H.detail.endMs/1E3])};
_.F.handleSectionHeaderSelected=function(H){_.q3(this.hostElement,"yt-transcript-player-seek",[H.detail.startMs/1E3])};
_.F.onMouseEnter=function(){this.isHovered=!0};
_.F.onMouseLeave=function(){this.isHovered=!1};
_.F.onRetryButtonClick=function(){_.M3(this.hostElement,"transcript-retry-button-click")};
_.F.getSegmentElement=function(H){return _.mY(this.hostElement).querySelector(":nth-child("+(H+1)+")")};
_.F.scrollElementToTop=function(H){H=this.getSegmentElement(H>=2?H-2:0);this.hostElement.scrollTop=Math.min(H.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.F.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(H){var C,S=(C=H.transcriptSegmentRenderer)!=null?C:H.transcriptSectionHeaderRenderer;return{start:Number(S.startMs)/1E3,end:Number(S.endMs)/1E3,isAutoScrollable:H.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.F.clearHighlightedSegments=function(){var H=_.mY(this.hostElement);H=_.Z(H.querySelectorAll("ytd-transcript-segment-renderer"));for(var C=H.next();!C.done;C=H.next())C.value.classList.remove("active")};
_.JJ.Object.defineProperties(RL.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var H,C;return((H=this.data)==null?void 0:H.searchResultSegments)||((C=this.data)==null?void 0:C.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
RL.prototype.onMouseLeave=RL.prototype.onMouseLeave;RL.prototype.onMouseEnter=RL.prototype.onMouseEnter;RL.prototype.handleSectionHeaderSelected=RL.prototype.handleSectionHeaderSelected;RL.prototype.handleSegmentReplay=RL.prototype.handleSegmentReplay;RL.prototype.handleSegmentSelected=RL.prototype.handleSegmentSelected;RL.prototype.handleSegmentEdit=RL.prototype.handleSegmentEdit;RL.prototype.segmentsChanged=RL.prototype.segmentsChanged;
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],RL.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],RL.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],RL.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],RL.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],RL.prototype,"isError",void 0);
_.D([_.V(),_.K("design:type",Object)],RL.prototype,"noResultLabel",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],RL.prototype,"darkerPanels",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],RL.prototype,"useParentMaxHeight",void 0);_.D([_.l("data"),_.K("design:type",Array),_.K("design:paramtypes",[])],RL.prototype,"segments",null);
_.D([_.l("segments","noResultLabel"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],RL.prototype,"displayNoResults",null);_.D([_.fx("segments"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],RL.prototype,"segmentsChanged",null);_.D([_.Gz("yt-transcript-segment-edit"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],RL.prototype,"handleSegmentEdit",null);
_.D([_.Gz("yt-transcript-segment-selected"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],RL.prototype,"handleSegmentSelected",null);_.D([_.Gz("yt-transcript-segment-replay"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],RL.prototype,"handleSegmentReplay",null);
_.D([_.Gz("ytd-transcript-section-header"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],RL.prototype,"handleSectionHeaderSelected",null);_.D([_.Gz("mouseenter"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],RL.prototype,"onMouseEnter",null);_.D([_.Gz("mouseleave"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],RL.prototype,"onMouseLeave",null);
_.D([_.h({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],RL);
_.B(RL,"ytd-transcript-segment-list-renderer",function(){if(E1v!==void 0)return E1v;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return E1v=H},{mode:1});var IL=function(){var H=_.X.apply(this,arguments)||this;H.hideTimestamps=!!_.BU("hide-transcript-timestamps");H.isLoadingTranscripts=!1;H.darkerPanels=_.E("web_watch_darker_panels");H.isError=!1;H.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return H};
_.G(IL,_.X);_.F=IL.prototype;_.F.headerChanged=function(){var H,C;this.baseGetTranscriptsCommand=(C=_.e((H=this.data)==null?void 0:H.header,SlB))==null?void 0:C.onTextChangeCommand};
_.F.bodyChanged=function(){var H=this.getBodyRenderer();H&&(H.initialSegments&&(this.initialTranscriptsRenderer=H),H.noResultLabel&&(this.noResultLabel=H.noResultLabel),H.retryLabel&&(this.retryLabel=H.retryLabel))};
_.F.detached=function(){this.clearSearchBoxText()};
_.F.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.F.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"}}}};
_.F.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.F.fireSearch=function(H){var C=this;if(H){var S=H.detail.query;if(this.baseGetTranscriptsCommand){var w;H=(w=_.e(this.baseGetTranscriptsCommand,_.T5b))==null?void 0:w.params;var A;w=_.e((A=this.data)==null?void 0:A.footer,h9D);var J;if((A=(J=_.e(w==null?void 0:w.languageMenu,aAt))==null?void 0:J.subMenuItems)&&A.length>0&&(J=A.find(function(M){return M.selected}))){var c,Y;
H=(c=J.continuation)==null?void 0:(Y=c.reloadContinuationData)==null?void 0:Y.continuation}c=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:H,searchQuery:S}});this.ytComponentBehavior.resolveCommand(c,{commandController:{onServerError:function(){C.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});Ns7(this.ytContinuationHandlerBehavior,function(){return S===C.getCurrentSearchBoxText()})}}};
_.F.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.F.onRetryButtonClick=function(){this.isError=!1;var H={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:H}))};
_.F.hideTimestampsChanged=function(){_.rm("hide-transcript-timestamps",this.hideTimestamps)};
_.F.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.F.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.F.handleSignalActionCopyTranscript=function(){var H=this,C=this.getBodyRenderer();C&&(C=((C==null?void 0:C.searchResultSegments)||(C==null?void 0:C.initialSegments)||[]).map(function(S){return _.e(S,jpc)}).filter(function(S){return!!S}).map(function(S){return{snippet:S.snippet||{runs:[{text:""}]},
startTimeText:S.startTimeText||{simpleText:""}}}).map(function(S){var w=(S.snippet.runs||[]).reduce(function(A,J){return A+J.text},"");
return H.hideTimestamps?w:S.startTimeText.simpleText+" "+w}).join("\n"),this.copyToClipboard(C))};
_.F.copyToClipboard=function(H){navigator.clipboard&&navigator.clipboard.writeText(H)};
_.F.getCurrentSearchBoxText=function(){var H;return(H=this.searchBox)==null?void 0:H.value};
_.F.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.F.getBodyRenderer=function(){var H;return _.e((H=this.data)==null?void 0:H.body,sph)};
_.F.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.JJ.Object.defineProperties(IL.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.mY(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
IL.prototype.hideTimestampsChanged=IL.prototype.hideTimestampsChanged;IL.prototype.searchCleared=IL.prototype.searchCleared;IL.prototype.fireSearch=IL.prototype.fireSearch;IL.prototype.onReloadContinuationFinish=IL.prototype.onReloadContinuationFinish;IL.prototype.bodyChanged=IL.prototype.bodyChanged;IL.prototype.headerChanged=IL.prototype.headerChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],IL.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],IL.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],IL.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.EH),_.K("design:type",Object)],IL.prototype,"ytContinuationHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],IL.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],IL.prototype,"hideTimestamps",void 0);
_.D([_.V(),_.K("design:type",Object)],IL.prototype,"isLoadingTranscripts",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],IL.prototype,"darkerPanels",void 0);_.D([_.V(),_.K("design:type",Object)],IL.prototype,"isError",void 0);_.D([_.fx("data.header"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],IL.prototype,"headerChanged",null);
_.D([_.XJ("data.body"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],IL.prototype,"bodyChanged",null);_.D([_.Gz("yt-reload-continuation-finish"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],IL.prototype,"onReloadContinuationFinish",null);_.D([_.Gz("yt-transcript-search-box-search"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],IL.prototype,"fireSearch",null);
_.D([_.Gz("yt-transcript-search-box-clear"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],IL.prototype,"searchCleared",null);_.D([_.fx("hideTimestamps"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],IL.prototype,"hideTimestampsChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],IL);
_.B(IL,"ytd-transcript-search-panel-renderer",function(){if(N6t!==void 0)return N6t;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return N6t=H},{mode:1});var aL=function(){var H=_.X.apply(this,arguments)||this;H.player=null;H.playerPollJobId=0;return H};
_.G(aL,_.X);_.F=aL.prototype;_.F.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.F.onLoadReloadContinuation=function(H){_.E("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:H.target.data.continuation}}):(H={clickTrackingParams:H.target.data.clickTrackingParams,getTranscriptEndpoint:{params:H.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.JA().resolve(_.ZQ).resolveCommand(H,{form:{element:this.hostElement}}))};
_.F.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"}}}};
_.F.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.F.attached=function(){this.updatePlayerListening()};
_.F.detached=function(){this.updatePlayerListening()};
_.F.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.F.startPlayerListening=function(){var H=this,C;return _.z(function(S){if(S.nextAddress==1)return(C=_.Zz())?S.yield(C.getPlayerPromise(),2):S.return();H.player=S.yieldResult;H.playerPollJobId=_.rT.addLowPriorityJob(function(){H.getPlayerVideoProgress()},1E3);
H.player.addEventListener("onCueRangeEnter",function(w){H.onCueRangeEnter(w)});
H.player.addEventListener("onCueRangeExit",function(w){H.onCueRangeExit(w)});
H.player.addEventListener("onStateChange",function(w){H.onPlayerStateChange(w)});
H.player.addEventListener("SEEK_TO",function(w){H.onPlayerSeek(w)});
_.oT(S)})};
_.F.getPlayerVideoProgress=function(){var H=this;_.rT.cancelJob(this.playerPollJobId);if(this.player){var C=this.player.getCurrentTime();_.q3(this.hostElement,"yt-player-time-changed",[C])}this.playerPollJobId=_.rT.addLowPriorityJob(function(){H.getPlayerVideoProgress()},1E3)};
_.F.stopPlayerListening=function(){this.player=null;_.rT.cancelJob(this.playerPollJobId)};
_.F.onPlayerStateChange=function(H){H===2&&this.removePendingCue()};
_.F.onPlayerSeek=function(H){var C;if(C=this.pendingReplayCueId)C=this.pendingReplayCueId,C=H===(_.E("web_transcript_cue_id_killswitch")?Number(C):Number(C.split("_")[1]));C||this.removePendingCue()};
_.F.onCueRangeEnter=function(H){rcD(H)&&(this.pendingReplayCueId=H)};
_.F.onCueRangeExit=function(H){rcD(H)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.F.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.F.onYtTranscriptPlayerSeek=function(H){this.player&&this.player.seekTo(H,!0)};
_.F.onYtTranscriptPlayerReplay=function(H,C){this.player&&(this.player.addCueRange(nDv(H),H,C),this.player.seekTo(H,!0),this.player.playVideo())};
_.F.onYtTranscriptPlayerEdit=function(H,C){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(nDv(H),H,C),this.player.seekTo(H,!0))};
aL.prototype.onLoadReloadContinuation=aL.prototype.onLoadReloadContinuation;aL.prototype.panelContentVisibleChanged=aL.prototype.panelContentVisibleChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],aL.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],aL.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],aL.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],aL.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],aL.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],aL.prototype,"panelContentVisible",void 0);_.D([_.fx("panelContentVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],aL.prototype,"panelContentVisibleChanged",null);
_.D([_.Gz("yt-load-reload-continuation"),_.K("design:type",Function),_.K("design:paramtypes",[Object]),_.K("design:returntype")],aL.prototype,"onLoadReloadContinuation",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],aL);
_.B(aL,"ytd-transcript-renderer",function(){if(WBv!==void 0)return WBv;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return WBv=H},{mode:1});var ubc;var GR2;var x5=function(){return _.X.apply(this,arguments)||this};
_.G(x5,_.X);x5.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.M3(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.yN(this.hostElement,[this.data.clickCommand],this.hostElement))};
x5.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.Nm)()+_.KW)+"px)"};
x5.prototype.updateShouldHideFromBinding=function(H){this.shouldHide=H.detail.value};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],x5.prototype,"rendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],x5.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Boolean)],x5.prototype,"shouldHide",void 0);_.D([_.h({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],x5);
_.B(x5,"ytd-ad-engagement-panel-banner-renderer",function(){if(GR2!==void 0)return GR2;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return GR2=H},{mode:_.mn("kevlar_poly_si_batch_j070")?1:2});var fpc;var Hp=function(){var H=_.X.apply(this,arguments)||this;H.modernPanels=_.E("kevlar_watch_modern_panels");H.buttonUpdate=_.E("web_modern_buttons");H.adsSemanticText=_.E("enable_ads_web_ep_buenos_aires_and_padding_fix");return H};
_.G(Hp,_.X);Hp.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.D([_.V(),_.K("design:type",Object)],Hp.prototype,"data",void 0);_.D([_.V({computed:"computeHideDefaultAdBadge(data)"}),_.K("design:type",Boolean)],Hp.prototype,"hideDefaultAdBadge",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Hp.prototype,"modernPanels",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Hp.prototype,"buttonUpdate",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Hp.prototype,"adsSemanticText",void 0);
_.D([_.h({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],Hp);
_.B(Hp,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(fpc!==void 0)return fpc;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return fpc=H},{mode:1});var v1T;var Cz=function(){var H=_.X.apply(this,arguments)||this;H.darkerPanels=_.E("web_watch_darker_panels");H.enableSqueezebackPanels=_.E("web_shorts_enable_squeezeback_panels");H.enableAnchoredPanel=_.E("desktop_shorts_v2_anchored_panel");H.modernPanels=_.E("kevlar_watch_modern_panels");H.headerClickListener=function(C){H.onHeaderClick(C)};
H.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return H};
_.G(Cz,_.X);_.F=Cz.prototype;_.F.computeAdsInfoButton=function(){if(_.E("web_modern_buttons")){var H,C;return(C=_.e((H=this.data)==null?void 0:H.subtitleComplex,n$B))==null?void 0:C.adInfoRenderer}};
_.F.updateHeaderClickListener=function(){var H,C,S;((H=this.data)==null?0:H.navigationEndpoint)||((C=this.data)==null?0:C.onClickCommand)||_.e((S=this.data)==null?void 0:S.visibilityButton,_.YP)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.F.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}}}}}};
_.F.collapsedChanged=function(){var H;(H=this.data)!=null&&H.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.E("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.F.focus=function(H){var C=this;this.titleElement&&_.rT.addJob(function(){_.Sr(C.titleElement,H)},0,500)};
_.F.computeTitleAriaLabel=function(H){var C=[];if(H.title){var S,w;C.push(this.ytRendererBehavior.getSimpleString(H.title)||((S=H.title.accessibility)==null?void 0:(w=S.accessibilityData)==null?void 0:w.label))}H.contextualInfo&&C.push(this.ytRendererBehavior.getSimpleString(H.contextualInfo));return C.join(" ")};
_.F.onHeaderClick=function(H){this.shouldTriggerHeaderClick(H)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.M3(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.yN(this.hostElement,[this.data.onClickCommand],this.hostElement)):(H=this.getVisibilityToggleButton())&&H.click())};
_.F.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var H=_.e(this.data.visibilityButton,_.cg)||_.e(this.data.visibilityButton,_.YP);H&&this.ytRendererBehavior.logExplicitClick(H)}};
_.F.getVisibilityToggleButton=function(){var H=_.mY(this.hostElement).querySelector("#visibility-button").firstElementChild;return(H==null?void 0:H.is)==="ytd-toggle-button-renderer"?H:null};
_.F.shouldTriggerHeaderClick=function(H){return!_.ww(_.Ar(H),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.F.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(H){H=_.e(H,_.OMv);this.targetId&&(H==null?void 0:H.targetId)===this.targetId&&(H=H.navigationButton)&&this.set("data.navigationButton",H)};
_.JJ.Object.defineProperties(Cz.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.E("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var H;return!!(((H=this.entity)==null?0:H.isActionButtonHidden)||this.hideActionButton)}}});
Cz.prototype.collapsedChanged=Cz.prototype.collapsedChanged;Cz.prototype.updateHeaderClickListener=Cz.prototype.updateHeaderClickListener;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],Cz.prototype,"actionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Cz.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Cz.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.v(_.q$),_.K("design:type",Object)],Cz.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Cz.prototype,"data",void 0);_.D([_.V(),_.K("design:type",String)],Cz.prototype,"targetId",void 0);_.D([_.V(),_.K("design:type",Boolean)],Cz.prototype,"collapsed",void 0);_.D([_.V(),_.K("design:type",Boolean)],Cz.prototype,"hideActionButton",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],Cz.prototype,"shortsPanel",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],Cz.prototype,"liveChatEngagementPanel",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],Cz.prototype,"learningChatEngagementPanel",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Cz.prototype,"darkerPanels",void 0);_.D([_.lA("#title"),_.K("design:type",HTMLElement)],Cz.prototype,"titleElement",void 0);_.D([_.lA("#header"),_.K("design:type",HTMLElement)],Cz.prototype,"headerElement",void 0);
_.D([_.V({computed:"computeAdsInfoButton(data)"}),_.K("design:type",Object)],Cz.prototype,"adsInfoButton",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Cz.prototype,"enableSqueezebackPanels",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Cz.prototype,"enableAnchoredPanel",void 0);_.D([_.V({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(H,C){return _.Ea(H.entities,"engagementPanelTitleHeaderEntity",C)}}),
_.K("design:type",Object)],Cz.prototype,"entity",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Cz.prototype,"modernPanels",void 0);_.D([_.V({reflectToAttribute:!0}),_.l("targetId"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Cz.prototype,"adsSemanticText",null);_.D([_.fx("data","data.navigationEndpoint","data.onClickCommand"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Cz.prototype,"updateHeaderClickListener",null);
_.D([_.XJ("collapsed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Cz.prototype,"collapsedChanged",null);_.D([_.l("entity","hideActionButton"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Cz.prototype,"isActionButtonHidden",null);_.D([_.h({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],Cz);
_.B(Cz,"ytd-engagement-panel-title-header-renderer",function(){if(v1T!==void 0)return v1T;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return v1T=H},{mode:1});var lpD;var SW=function(){return _.X.apply(this,arguments)||this};
_.G(SW,_.X);SW.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],SW.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],SW.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],SW.prototype,"data",void 0);_.D([_.h({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],SW);
_.B(SW,"ytd-macro-markers-info-item-renderer",function(){if(lpD!==void 0)return lpD;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return lpD=H},{mode:1});var VLB;var sB=function(H,C,S,w,A,J){_.Op.call(this);var c=this;this.JSC$22823_containerElement=H;this.hostElement=C;this.supportedSyncItems=S;this.syncEntityKey=w;this.options=A;this.renderLazyListItems=J;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;o1v(this);Osc(this);this.JSC$22823_scrollAnimation=new _.bc(function(Y){H.scrollTop=Y});
_.Nx(this,this.JSC$22823_scrollAnimation);this.addOnDisposeCallback(function(){XNc(c,!1);c.activeItem&&c.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.G(sB,_.Op);var o1v=function(H){var C=_.Uf(_.JA().resolve(_.MU),function(S){return S.entities.markersEngagementPanelSyncEntity||{}},function(S,w){var A;
if(S[H.syncEntityKey]!==w[H.syncEntityKey]&&((A=S[H.syncEntityKey])==null?void 0:A.activeItemIndex)!==void 0)if(w=S[H.syncEntityKey].activeItemIndex,S=H.getItemByIndex(w)){if(QEt(H,S),H.contentVisible)if(H.browsingMode){var J;((J=H.options)==null?void 0:J.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(J=djP(H),S.offsetTop<H.JSC$22823_containerElement.clientHeight+H.JSC$22823_containerElement.scrollTop&&J&&!H.activeItemBelowSyncPosition&&XNc(H,!1));PW4(H)}else H.scrollToItem(S)}else _.Bn(new _.X0("Could not find "+
H.supportedSyncItems+" sync child to set active.",w,H.JSC$22823_containerElement.querySelectorAll(H.supportedSyncItems).length))});
H.unsubscribeFromTimedMarkersListSyncEntity=C;H.addOnDisposeCallback(C);$jV(H)},$jV=function(H){var C=_.JA().resolve(_.MU);
C=_.cH7(C.getState(),H.syncEntityKey);(C==null?void 0:C.activeItemIndex)!==void 0&&(C=H.getItemByIndex(C.activeItemIndex))&&QEt(H,C)},Osc=function(H){var C=new _.I$(H.onScroll,50,H);
_.Nx(H,C);var S=function(){C.fire()};
H.JSC$22823_containerElement.addEventListener("scroll",S);H.addOnDisposeCallback(function(){H.JSC$22823_containerElement.removeEventListener("scroll",S)})};
sB.prototype.getItemByIndex=function(H){var C;(C=this.renderLazyListItems)==null||C.call(this,H);C=this.JSC$22823_containerElement.querySelectorAll(this.supportedSyncItems);if(C.length>H)return C[H]};
var QEt=function(H,C){H.activeItem&&H.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));C.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));H.activeItem=C};
sB.prototype.scrollToItem=function(H){H=this.getScrollPositionForItem(H);this.JSC$22823_containerElement.scrollTop!==H&&this.JSC$22823_scrollAnimation.start(this.JSC$22823_containerElement.scrollTop,H,300)};
sB.prototype.getScrollPositionForItem=function(H){if(this.JSC$22823_containerElement.querySelectorAll(this.supportedSyncItems)[0]===H)return 0;var C,S=((C=this.options)==null?0:C.percentOffset)?this.JSC$22823_containerElement.clientHeight*this.options.percentOffset:0;H=_.KX(H).y+this.JSC$22823_containerElement.scrollTop-(_.KX(this.JSC$22823_containerElement).y+S);return Math.max(0,Math.min(H,this.JSC$22823_containerElement.scrollHeight-this.JSC$22823_containerElement.offsetHeight))};
sB.prototype.onScroll=function(){this.activeItemBelowSyncPosition=djP(this);if(this.activeItem&&!this.JSC$22823_scrollAnimation.isAnimating()&&Math.abs(this.JSC$22823_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var H;switch((H=this.options)==null?void 0:H.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":pN9(this,!kRT(this));PW4(this);break;default:pN9(this,!0)}}};
var pN9=function(H,C){var S,w;_.z(function(A){if(A.nextAddress==1){if(H.browsingMode)return A.return();H.browsingMode=!0;C&&H.hostElement.classList.add("browsing-mode");H.playerExitBrowsingModeListener=function(){XNc(H,!1)};
return A.yield(_.Np(),2)}S=A.yieldResult;(w=S)==null||w.addEventListener("SEEK_TO",H.playerExitBrowsingModeListener);_.oT(A)})},XNc=function(H,C){C=C===void 0?!0:C;
H.browsingMode&&(H.browsingMode=!1,H.hostElement.classList.remove("browsing-mode"),C&&H.scrollToItem(H.activeItem),hUr(H))},hUr=function(H){var C,S;
_.z(function(w){if(w.nextAddress==1)return H.playerExitBrowsingModeListener?w.yield(_.Np(),3):w.jumpTo(0);C=w.yieldResult;(S=C)==null||S.removeEventListener("SEEK_TO",H.playerExitBrowsingModeListener);H.playerExitBrowsingModeListener=void 0;_.oT(w)})},PW4=function(H){var C;
((C=H.options)==null?void 0:C.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(kRT(H)?H.hostElement.classList.remove("browsing-mode"):H.activeItem&&H.hostElement.classList.add("browsing-mode"))},djP=function(H){if(!H.activeItem)return!1;
var C,S=((C=H.options)==null?0:C.percentOffset)?H.JSC$22823_containerElement.clientHeight*H.options.percentOffset:0;return H.activeItem.offsetTop>=H.JSC$22823_containerElement.scrollTop+S},kRT=function(H){if(!H.activeItem)return!1;
var C=H.activeItem.offsetTop+14<=H.JSC$22823_containerElement.scrollTop+H.JSC$22823_containerElement.clientHeight;return H.activeItem.offsetTop+H.activeItem.clientHeight-14>=H.JSC$22823_containerElement.scrollTop&&C};
sB.prototype.panelContentVisibleChanged=function(H){(this.contentVisible=H)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var n1V=function(H,C){H.syncEntityKey=C;var S;(S=H.unsubscribeFromTimedMarkersListSyncEntity)==null||S.call(H);o1v(H)},rah=function(H,C){H.options=C};var jW=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return H};
_.G(jW,_.X);_.F=jW.prototype;_.F.detached=function(){var H;(H=this.scrollController)==null||H.dispose();this.scrollController=void 0};
_.F.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"}}}};
_.F.dataChanged=function(){var H=this;_.wM(this,function(){if(H.scrollController){var C;(C=H.scrollController)==null||XNc(C,!1);var S,w,A;(w=H.scrollController)==null||n1V(w,(A=(S=H.data)==null?void 0:S.syncModelEntityKey)!=null?A:"default-macro-markers-list-renderer-entity-key");var J,c,Y;(Y=H.scrollController)==null||rah(Y,{percentOffset:(J=H.data)==null?void 0:J.selectedItemAlignmentPercentOffset,floatingPillType:(c=H.data)==null?void 0:c.floatingPillType})}else{var M,m,W,y;H.scrollController=
new sB(H.contents,H.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(y=(M=H.data)==null?void 0:M.syncModelEntityKey)!=null?y:"default-macro-markers-list-renderer-entity-key",{percentOffset:(m=H.data)==null?void 0:m.selectedItemAlignmentPercentOffset,floatingPillType:(W=H.data)==null?void 0:W.floatingPillType},function(N){H.renderLazyListItems(N)})}H.scrollController.panelContentVisibleChanged(!!H.panelContentVisible)})};
_.F.computeButtonShape=function(){var H=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){H.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.F.renderLazyListItems=function(H){for(var C=this.contents.children,S=0,w=0;w<C.length;w++){var A=void 0;(A=C[w].ytLazyListBehavior)==null||A.fillRemainingListItems();var J=void 0,c=void 0;A=_.e((J=this.data)==null?void 0:(c=J.contents)==null?void 0:c[w],_.LkV);c=J=void 0;if((J=A)==null?0:(c=J.contents)==null?0:c.length)S+=A.contents.length;if(S>=H)break}};
_.F.handleSetActivePanelItemAction=function(H){if((H=_.e(H,QTT))&&this.panelTargetId===H.panelTargetId){H=H.itemIndex;var C,S,w=(S=(C=this.data)==null?void 0:C.syncModelEntityKey)!=null?S:"default-macro-markers-list-renderer-entity-key",A;((A=this.syncEntity)==null?void 0:A.activeItemIndex)!==H&&this.ytdReduxBehavior.dispatch(_.O5("markersEngagementPanelSyncEntity",w,{key:w,activeItemIndex:H}))}};
_.F.onSyncClick=function(){var H;(H=this.scrollController)==null||XNc(H)};
_.F.panelContentVisibleChanged=function(){var H;(H=this.scrollController)==null||H.panelContentVisibleChanged(!!this.panelContentVisible)};
jW.prototype.panelContentVisibleChanged=jW.prototype.panelContentVisibleChanged;jW.prototype.dataChanged=jW.prototype.dataChanged;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],jW.prototype,"actionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],jW.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],jW.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.v(_.q$),_.K("design:type",Object)],jW.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],jW.prototype,"data",void 0);_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],jW.prototype,"useCustomColors",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",String)],jW.prototype,"panelTargetId",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],jW.prototype,"panelContentVisible",void 0);
_.D([_.lA("#contents"),_.K("design:type",HTMLElement)],jW.prototype,"contents",void 0);_.D([_.V({selectorArgs:["data.syncModelEntityKey"],selector:_.cH7}),_.K("design:type",Object)],jW.prototype,"syncEntity",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],jW.prototype,"dataChanged",null);
_.D([_.fx("panelContentVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],jW.prototype,"panelContentVisibleChanged",null);_.D([_.h({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],jW);
_.B(jW,"ytd-macro-markers-list-renderer",function(){if(VLB!==void 0)return VLB;var H=document.createElement("template");_.f(H,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" class="style-scope ytd-macro-markers-list-renderer">\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return VLB=H},{mode:1});var B6T;var wb=function(){return _.X.apply(this,arguments)||this};
_.G(wb,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],wb.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],wb.prototype,"ytComponentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],wb.prototype,"data",void 0);_.D([_.h({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],wb);
_.B(wb,"ytd-error-corrections-section-item-renderer",function(){if(B6T!==void 0)return B6T;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return B6T=H},{mode:1});var DjD;var AF=function(){return _.X.apply(this,arguments)||this};
_.G(AF,_.X);AF.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],AF.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],AF.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],AF.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],AF.prototype,"data",void 0);_.D([_.h({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],AF);
_.B(AF,"ytd-error-corrections-section-renderer",function(){if(DjD!==void 0)return DjD;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return DjD=H},{mode:1});var KBB;var JF=function(){return _.X.apply(this,arguments)||this};
_.G(JF,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],JF.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],JF.prototype,"componentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],JF.prototype,"data",void 0);_.D([_.h({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],JF);
_.B(JF,"ytd-topic-link-renderer",function(){if(KBB!==void 0)return KBB;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return KBB=H},{mode:1});var tLB;var F5=function(){var H=_.X.apply(this,arguments)||this;H.modern=_.E("kevlar_modern_sd_v2");H.modernLockupV2=_.E("modernize_structured_description_playlist_lockups_v2");return H};
_.G(F5,_.X);F5.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"}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],F5.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],F5.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],F5.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],F5.prototype,"modern",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],F5.prototype,"modernLockupV2",void 0);
_.D([_.h({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],F5);
_.B(F5,"ytd-video-description-course-section-renderer",function(){if(tLB!==void 0)return tLB;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return tLB=H},{mode:1});var LBh;var ZG=function(){var H=_.X.apply(this,arguments)||this;H.modern=_.E("kevlar_modern_sd_v2");return H};
_.G(ZG,_.X);ZG.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"}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],ZG.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],ZG.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],ZG.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],ZG.prototype,"modern",void 0);_.D([_.h({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],ZG);
_.B(ZG,"ytd-video-description-files-section-renderer",function(){if(LBh!==void 0)return LBh;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return LBh=H},{mode:1});var g14;var cp=function(){return _.X.apply(this,arguments)||this};
_.G(cp,_.X);cp.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"}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],cp.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],cp.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],cp.prototype,"data",void 0);_.D([_.h({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],cp);
_.B(cp,"ytd-video-description-gaming-section-renderer",function(){if(g14!==void 0)return g14;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return g14=H},{mode:1});var Ujt;var YO=function(){var H=_.X.apply(this,arguments)||this;H.isExpanded=!1;return H};
_.G(YO,_.X);YO.prototype.computeHasDefaultMetadataEndpoint=function(H){var C;H=H==null?void 0:(C=H.defaultMetadata)==null?void 0:C.runs;return!(!H||H.length!==1||!H[0].navigationEndpoint)};
YO.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.JJ.Object.defineProperties(YO.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],YO.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],YO.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],YO.prototype,"isExpanded",void 0);_.D([_.V({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],YO.prototype,"hasDefaultMetadataEndpoint",void 0);
_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],YO.prototype,"isExpandable",null);_.D([_.l("data","isExpandable","isExpanded"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],YO.prototype,"showExpandedMetadata",null);_.D([_.h({is:"ytd-info-row-renderer",disableElementRegistration:!0})],YO);
_.B(YO,"ytd-info-row-renderer",function(){if(Ujt!==void 0)return Ujt;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Ujt=H},{mode:1});var RUc;var zB=function(){var H=_.X.apply(this,arguments)||this;H.currentIndex=0;H.supportComponentResize=!0;H.modern=_.E("kevlar_modern_sd_v2");H.JSC$22853_lastScrollContainerWidth=NaN;return H};
_.G(zB,_.X);_.F=zB.prototype;
_.F.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"}}}};
_.F.getItemsPath=function(){return"videoLockups"};
_.F.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.F.onIronResize=function(){this.updateVideoLockupStyles()};
_.F.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.F.updateVideoLockupStyles=function(){var H;this.JSC$22853_scrollContainer!==void 0&&(H=this.videoLockups)!=null&&H.length&&(H=this.JSC$22853_scrollContainer.clientWidth,H!==this.JSC$22853_lastScrollContainerWidth&&(this.JSC$22853_lastScrollContainerWidth=H,_.Ed(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(H*.8,415)+"px"}),_.M3(this.hostElement,"iron-resize")))};
_.JJ.Object.defineProperties(zB.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var H=[],C;if((C=this.data)==null||!C.carouselLockups)return H;C=_.Z(this.data.carouselLockups);for(var S=C.next();!S.done;S=C.next()){S=S.value;var w=void 0;((w=_.e(S,FD7))==null?0:w.videoLockup)&&H.push(_.e(S,FD7).videoLockup)}return H}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.videoLockups)==null||!H.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var H=[],C;if((C=this.data)==null||!C.carouselLockups)return H;var S;return(S=_.e(this.data.carouselLockups[this.scrollCount],FD7))==null?void 0:S.infoRows}}});
zB.prototype.dataChanged=zB.prototype.dataChanged;zB.prototype.onIronResize=zB.prototype.onIronResize;zB.prototype.hiddenChanged=zB.prototype.hiddenChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],zB.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],zB.prototype,"componentBehavior",void 0);_.D([_.v(_.pT.YtdHorizontalListBehavior),_.K("design:type",Object)],zB.prototype,"ytdHorizontalListBehavior",void 0);
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],zB.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],zB.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],zB.prototype,"inlineStructuredDescription",void 0);_.D([_.V({value:2}),_.K("design:type",Number)],zB.prototype,"initialCount",void 0);_.D([_.V(),_.K("design:type",Object)],zB.prototype,"currentIndex",void 0);
_.D([_.V(),_.K("design:type",Number)],zB.prototype,"scrollCount",void 0);_.D([_.V(),_.K("design:type",Object)],zB.prototype,"supportComponentResize",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],zB.prototype,"contentHidden",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],zB.prototype,"modern",void 0);_.D([_.lA("#scroll-container"),_.K("design:type",HTMLDivElement)],zB.prototype,"JSC$22853_scrollContainer",void 0);
_.D([_.fx("contentHidden"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],zB.prototype,"hiddenChanged",null);_.D([_.l("data"),_.K("design:type",Array),_.K("design:paramtypes",[])],zB.prototype,"videoLockups",null);_.D([_.l("videoLockups"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],zB.prototype,"hasVideoLockups",null);
_.D([_.Gz("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],zB.prototype,"onIronResize",null);_.D([_.l("data","scrollCount"),_.K("design:type",Object),_.K("design:paramtypes",[])],zB.prototype,"infoRows",null);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],zB.prototype,"dataChanged",null);_.D([_.h({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],zB);
_.B(zB,"ytd-video-description-music-section-renderer",function(){if(RUc!==void 0)return RUc;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return RUc=H},{mode:_.mn("kevlar_poly_si_batch_j081")?1:2});var Ip2;var MX=function(){var H=_.X.apply(this,arguments)||this;H.modern=_.E("kevlar_modern_sd_v2");return H};
_.G(MX,_.X);MX.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],MX.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],MX.prototype,"ytRendererBehavior",void 0);_.D([_.V({}),_.K("design:type",Object)],MX.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],MX.prototype,"modern",void 0);_.D([_.h({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],MX);
_.B(MX,"ytd-video-description-transcript-section-renderer",function(){if(Ip2!==void 0)return Ip2;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return Ip2=H},{mode:1});var apB;_.qs(_.n(function(H){var C=_.fn(_.Hk0,function(){return H.data().firstProviderLinkStatusEntityKey}),S=_.fn(_.Hk0,function(){return H.data().secondProviderLinkStatusEntityKey}),w=function(){var A,J;
return((A=C())==null?void 0:A.linked)||((J=S())==null?void 0:J.linked)};
return _.q("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.q(_.uZ,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return H.data().sectionTitle}}),_.q(_.uZ,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return w()?H.data().connectedMessage:H.data().notConnectedMessage}}),_.q(_.T,{cond:w,
then:function(){return _.q(_.V4,{data:function(){return H.data().connectedButton}},{buttonViewModel:function(A){return _.q(_.rc,{data:A.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.q(_.T,{cond:function(){return!w()},
then:function(){return _.q(_.V4,{data:function(){return H.data().notConnectedButton}},{buttonViewModel:function(A){return _.q(_.rc,{data:A.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Qk"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.GH}});_.qs(_.n(function(H){var C=H.data;return _.q("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.q("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.q(_.uZ,{text:function(){return C().sectionTitle}})),_.q("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.q(_.uZ,{text:function(){return C().bodyHeader}})),_.q("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.q(_.uZ,{text:function(){return C().bodyText}})),_.q(_.T,{cond:function(){return C().attributionText},
then:function(){return _.q("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.q(_.uZ,{text:function(){return C().attributionText}}))}}))},"Rk"),"how-this-was-made-section-view-model",{props:{data:_.GH}});_.qs(_.n(function(H){return _.q("yt-video-description-youchat-section-view-model",{class:_.eJ("ytVideoDescriptionYouchatSectionViewModelHost")},_.q("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.q(_.uZ,{text:function(){return H.data().sectionTitle}})),_.q("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.q(_.uZ,{text:function(){return H.data().subHeaderText}})),_.q("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.q(_.rc,{data:function(){return _.e(H.data().primaryButton,
_.qc)}})))},"Sk"),"yt-video-description-youchat-section-view-model",{props:{data:_.GH}});var qX=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return H};
_.G(qX,_.X);_.F=qX.prototype;
_.F.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}}}}}};
_.F.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.F.dataChanged=function(){var H,C;this.hasDescriptionOnly=!(((H=this.data)==null?void 0:(C=H.items)==null?void 0:C.length)!==1||!_.e(this.data.items[0],B1))};
_.F.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.F.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.F.autoFocusDescription=function(){var H;((H=_.JA().resolve(_.AA(_.PS)))==null?0:H.isKeyBoardInUse())&&this.description&&_.ss(this.description)};
_.F.resize=function(){if(_.E("kevlar_disable_sd_resize"))this.JSC$22862_cardList&&_.M3(this.JSC$22862_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.M3(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.M3(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.F.scrollToSection=function(H){if(H=this.getSectionElement(H))_.q3(this.hostElement,"yt-scroll-to-watch-element",[H]),H.focus()};
_.F.getSectionElement=function(H){switch(H){case "infocards-item-section":var C;return(C=this.infocardsSection)!=null?C:null;case "transcript-item-section":var S;return(S=this.transcriptSection)!=null?S:null;case "how-this-was-made-section-item-section":var w;return(w=this.howThisWasMadeSection)!=null?w:null;case "files-item-section":var A;return(A=this.filesSection)!=null?A:null;default:return null}};
_.F.handleSetActiveItemAction=function(H){var C=_.e(H,QTT),S=C&&(C==null?void 0:C.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$22862_cardList;if(C&&S){H=this.currentActiveChapter;var w=this.currentActiveProblem;C=S==null?void 0:S.getItemByIndex(C.itemIndex);var A=S=!0;C&&(C.active=!0,C.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(S=H!==C,A=!1,this.currentActiveChapter=C):(C==null?void 0:C.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(S=!1,A=w!==C,this.currentActiveProblem=C));H&&S&&(H.active=!1);w&&A&&(w.active=!1)}};
_.JJ.Object.defineProperties(qX.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.E("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
qX.prototype.onYtExpanderMoreTapped=qX.prototype.onYtExpanderMoreTapped;qX.prototype.onHiddenChanged=qX.prototype.onHiddenChanged;qX.prototype.dataChanged=qX.prototype.dataChanged;qX.prototype.panelContentVisibleChanged=qX.prototype.panelContentVisibleChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],qX.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],qX.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],qX.prototype,"actionHandlerBehavior",void 0);_.D([_.v(_.Ix),_.K("design:type",Object)],qX.prototype,"ironResizableBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],qX.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Boolean)],qX.prototype,"panelContentVisible",void 0);_.D([_.V(),_.K("design:type",Boolean)],qX.prototype,"hasDescriptionOnly",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],qX.prototype,"inlineStructuredDescription",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],qX.prototype,"hidden",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],qX.prototype,"shortsPanel",void 0);_.D([_.V(),_.K("design:type",Object)],qX.prototype,"videoSummary",void 0);_.D([_.V(),_.K("design:type",Object)],qX.prototype,"merchShelf",void 0);
_.D([_.l("videoSummary"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],qX.prototype,"showVideoSummary",null);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],qX.prototype,"engagementPanel",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],qX.prototype,"watchWhileSdp",void 0);_.D([_.lA("ytd-expandable-video-description-body-renderer"),_.K("design:type",Object)],qX.prototype,"description",void 0);
_.D([_.lA("ytd-horizontal-card-list-renderer"),_.K("design:type",Object)],qX.prototype,"JSC$22862_cardList",void 0);_.D([_.lA("ytd-horizontal-card-list-renderer[center-items]"),_.K("design:type",Object)],qX.prototype,"problemWalkthroughCardList",void 0);_.D([_.lA("ytd-shelf-renderer"),_.K("design:type",Object)],qX.prototype,"shelfSection",void 0);_.D([_.lA("ytd-video-description-music-section-renderer"),_.K("design:type",Object)],qX.prototype,"musicMetadataSection",void 0);
_.D([_.lA("ytd-video-description-infocards-section-renderer"),_.K("design:type",Object)],qX.prototype,"infocardsSection",void 0);_.D([_.lA("ytd-video-description-transcript-section-renderer"),_.K("design:type",Object)],qX.prototype,"transcriptSection",void 0);_.D([_.lA("how-this-was-made-section-view-model"),_.K("design:type",Object)],qX.prototype,"howThisWasMadeSection",void 0);_.D([_.lA("ytd-video-description-files-section-renderer"),_.K("design:type",Object)],qX.prototype,"filesSection",void 0);
_.D([_.fx("panelContentVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qX.prototype,"panelContentVisibleChanged",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qX.prototype,"dataChanged",null);_.D([_.fx("hidden"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qX.prototype,"onHiddenChanged",null);
_.D([_.Gz("yt-expander-more-tapped"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qX.prototype,"onYtExpanderMoreTapped",null);_.D([_.h({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],qX);
_.B(qX,"ytd-structured-description-content-renderer",function(){if(apB!==void 0)return apB;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return apB=H},{mode:2});var xjv;var Hpc;var TB=function(){return _.X.apply(this,arguments)||this};
_.G(TB,_.X);TB.prototype.computeAriaLabel=function(H){var C,S;return(H==null?void 0:(C=H.accessibility)==null?void 0:(S=C.accessibilityData)==null?void 0:S.label)||_.fL("LOADING",void 0,"Loading")};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],TB.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],TB.prototype,"data",void 0);_.D([_.V({computed:"computeAriaLabel(data)"}),_.K("design:type",String)],TB.prototype,"ariaLabel",void 0);_.D([_.Lx({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],TB);
_.B(TB,"yt-content-loading-renderer",function(){if(Hpc===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;xjv===void 0&&(xjv=document.createElement("template"));var w=xjv;S.call(C,w.content.cloneNode(!0),H.content.firstChild);Hpc=H}H=Hpc;return H},{mode:_.mn("kevlar_poly_si_batch_j043")?1:2});_.qs(_.n(function(H){var C=_.Z(_.mB(!1,void 0,"OZMtVb")),S=C.next().value,w=C.next().value;C=_.Z(_.mB(!1,void 0,"qWERsf"));var A=C.next().value,J=C.next().value;_.$T(function(){var M=_.e(H.data().collaboratePlaylistCollaborationSetting,xOc);M&&w(M.switchedOnByDefault);var m=_.e(H.data().allowNewCollaboratorsPlaylistCollaborationSetting,xOc);m&&J(m.switchedOnByDefault);if(!M&&!m||!M&&H.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")w(!0),J(!0)});
var c=function(M){w(M);J(M);var m=H.data().playlistCollaborationEntityKey||"";var W=_.wC().getState();(W=_.Ea(W.entities,"playlistCollaborationEntity",m))&&(W==null?void 0:W.isCollaborative)===M||_.wC().dispatch(_.O5("playlistCollaborationEntity",m,Object.assign({},W,{isCollaborative:M})))},Y=function(M){J(M)};
return _.q("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.q("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.q(_.V4,{data:function(){return H.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(M){return _.q(_.cWb,{data:M.data,
onSwitch:c})}})),_.q(_.T,{cond:S,
then:function(){return _.q(_.F9,null,_.q("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.q(_.V4,{data:function(){return H.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(M){return _.q(_.cWb,{data:M.data,
onSwitch:Y,overrideDisabled:!1})}})),_.q(_.T,{cond:A,
then:function(){return _.q("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.q(_.V4,{data:function(){return H.data().copyLinkButton}},{buttonViewModel:_.rc}))}}),_.q("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.q(_.V4,{data:function(){return H.data().playlistCollaborators}},{contentListItemViewModel:_.pEO})))}}))},"Tk"),"playlist-collaboration-view-model",{props:{data:_.GH}});var ipP=_.n(function(H){var C=H.data;var S=H.customCommandResolver;return _.q(_.F9,null,_.q("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.q(_.V4,{data:function(){return C().adAvatar}},{adAvatarViewModel:function(w){return _.q(_.$ud,{data:w.data,
customCommandResolver:S})}})),_.q("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.q(_.T,{cond:function(){return C().headline},
then:function(w){return _.q(_.uZ,{text:w,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.q("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.q(_.V4,{data:function(){return C().adBadge}},{adBadgeViewModel:function(w){return _.q(_.hK,{data:w.data,
hasDot:function(){return C().primaryDetailsLine!==void 0},
customCommandResolver:S,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.q(_.V4,{data:function(){return C().primaryDetailsLine}},{adDetailsLineViewModel:function(w){return _.q(_.nt,{data:w.data,
customCommandResolver:S,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Uk"),CEB=_.n(function(H){var C=H.data;
var S=H.customCommandResolver;return _.q("ad-avatar-lockup-view-model",{class:function(){var w;return((w=C().interaction)==null?0:w.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.Zl(_.c5({visibilityCallback:function(w){var A,J=(A=C().interaction)==null?void 0:A.onFirstVisible;w&&J&&_.Im(J)},
showOption:_.Xx}),_.Ln(function(){return C().interaction},S)),
"aria-label":function(){var w,A;return(w=C().interaction)==null?void 0:(A=w.accessibility)==null?void 0:A.label}},_.q(_.X9,null,_.q(_.o6,{when:function(){return C().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.q(ipP,{data:C,
customCommandResolver:S})}),_.q(_.Og,null,function(){return null})))},"Vk");_.qs(_.n(function(H){var C=H.data;var S=H.panelContentVisibility;H=_.c5({visibilityCallback:function(J){var c,Y=(c=C().interaction)==null?void 0:c.onFirstVisible;J&&Y&&_.Im(Y)},
showOption:_.Xx});var w=_.Ln(function(){return C().interaction},BPT);
_.k1(function(){var J,c;if(c=_.gh("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var Y;c=(Y=c())==null?void 0:Y.onLayoutVisibleCallback}else c=null;(J=c)==null||J()});
var A=function(){return S()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.q("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.Zl(H,w)},_.q("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.q("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.q(_.T,{cond:_.BJU("(min-width: "+((0,_.Nm)()+_.KW)+"px) or (max-width: 600px)"),then:function(){return _.q(_.V4,{data:function(){return C().adImage}},{adImageViewModel:function(J){return _.q(_.UH,{data:J.data,
targetHeight:80,customCommandResolver:BPT})}})}})),_.q("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.q("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.q(_.V4,{data:function(){return C().adAvatarLockup}},{adAvatarLockupViewModel:function(J){return _.q(CEB,{data:J.data,
customCommandResolver:BPT})}})),_.q(_.T,{cond:A,
then:function(){return _.q(_.V4,{data:function(){return C().adButton}},{adButtonViewModel:function(J){return _.q(_.dn,{data:J.data,
customCommandResolver:BPT})}})},
else:function(){return _.q(_.V4,{data:function(){return C().menu}},{buttonViewModel:_.rc})}}),_.q("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.q(_.V4,{data:function(){var J=_.e(C().toggleButton,_.mk);
return{toggleButtonViewModel:Object.assign({},J,{isTogglingDisabled:!0,isToggled:A()})}}},{toggleButtonViewModel:_.Jv})))))},"Wk"),"panel-ad-header-image-lockup-view-model",{props:{data:_.GH,
panelContentVisibility:_.GH}});_.qs(_.n(function(H){var C=function(){return _.e(H.data().inputComposerViewModel,HXD)},S=function(){var O;
return((O=C())==null?void 0:O.youchatPendingResponseEntityKey)||""},w=_.fn(_.A4p,S),A=function(){var O;
return!((O=w())==null||!O.isPendingResponse)},J=_.Z(_.mB(!0,void 0,"K8vnC")),c=J.next().value,Y=J.next().value,M=function(){return C().sectionTargetId||"youchat_messages_section"};
J=_.ja("yt-chat-input-view-model");var m=_.sW("textarea"),W=_.fn(oD7,"chat_input_view_model_state"),y=O9v(),N=function(){var O;return!((O=W())==null||!O.value)},b=_.Lu(_.R$.currentPageSubTypeSelector);
_.$T(function(){var O;if(!N()&&((O=C())==null?0:O.welcomeFeatureContinuation)){var d;((d=C())==null?0:d.setPendingResponseOnWelcome)&&_.J4i(S())(!0);O={continuationCommand:{token:C().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var p;d=String(Math.floor(((p=_.br())==null?void 0:p.getCurrentTime())||0)*1E3);p={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:d}};_.gC(O,{form:{formData:p}});y(!0)}var k=M(),R;(R=_.JA().resolve(_.AA(_.HS)))==null||
R.addEventListener("yt-navigate-start",function(){_.lr.remove(k);y(!1)},{once:!0})});
var u=function(){var O=m.value.value;m.value.value="";DrV(m.value);var d,p=((d=C())==null?void 0:d.enableGradientColorBg)||!1;d=KTr(M(),O,p);_.gC(d);var k=_.J4i(S()),R;_.Im(((R=C())==null?void 0:R.onSubmitCommand)||{});k(!0);var L;R=String(Math.floor(((L=_.br())==null?void 0:L.getCurrentTime())||0)*1E3);var t;L={continuationCommand:{token:(t=C())==null?void 0:t.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};O={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:O,
playerOffsetMs:R,pageContext:function(){if(_.E("enable_ai_companion")){var g=_.JA().resolve(_.AA(_.PBj));switch(b()){case "watch":var ii,FW;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(ii=_.br())==null?void 0:(FW=ii.getVideoData())==null?void 0:FW.video_id};case "search":var cZ,eZ;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(cZ=g==null?void 0:E$B())!=null?cZ:[],entityId:(eZ=(new URLSearchParams(window.location.search)).get("search_query"))!=null?eZ:void 0};case "companion-canvas":var ND;
return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(ND=g==null?void 0:E$B())!=null?ND:[]}}}}()}};
_.gC(L,{form:{formData:O},commandController:{onSuccess:function(){k(!1)},
onServerError:function(){var g=M();_.gC({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:g}}]}}});k(!1)}}})};
return _.q("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:J},_.q("div",{class:"chatInputViewModelChatInputWrapper"},_.q("form",{class:"chatInputViewModelChatInputForm"},_.q("textarea",{class:"chatInputViewModelChatInput",el:m,"on:keydown":_.um(function(O){var d=A()||!1;DrV(m.value);d||O.key!=="Enter"||O.shiftKey||(O.preventDefault(),u());return!1}),
"on:keyup":_.um(function(){Y(m.value.value.length===0);return!1}),
placeholder:function(){var O,d;var p=_.e((d=C())==null?void 0:d.inputFormField,o$h);return p==null?void 0:(O=p.contentProperties)==null?void 0:O.placeholderText},
rows:1}),_.q(_.rc,{data:function(){return _.e(H.data().sendButton,_.qc)},
onClick:function(O){O.preventDefault();u();Y(m.value.value.length===0)},
buttonOverrides:function(){return{disabled:c()||A()}}})),_.q(_.uZ,{className:"chatInputViewModelChatDisclaimer",
text:function(){var O;return(O=_.e(H.data().disclaimer,_.gPY))==null?void 0:O.text}})))},"Xk"),"yt-chat-input-view-model",{props:{data:_.GH}});var SgD=["engagement-panel-clip-create","engagement-panel-clip-view"],s6D=0,mf=function(){var H=_.X.apply(this,arguments)||this;var C;H.headerData=(C=H.data)==null?void 0:C.header;H.darkerPanels=_.E("web_watch_darker_panels");H.matchContentTheme=_.E("web_watch_panel_content_match_theme");H.disableAutoFill=!1;H.isFullscreen=!1;H.isTheaterMode=!1;H.modernPanels=_.E("kevlar_watch_modern_panels");H.liveChatReplyPanel=!1;H.enableAnchoredPanel=_.E("desktop_shorts_v2_anchored_panel");H.disableBackdropFilter=
_.E("web_disable_backdrop_filter");H.isPersistentPanel=!1;H.trackEngagementPanelVisibility=_.E("web_watch_track_engagement_panel_visibility");H.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 H};
_.G(mf,_.X);_.F=mf.prototype;
_.F.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(H){var C;return(H==null?void 0:(C=H.webComponentHint)==null?void 0:C.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"}}}};
_.F.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var H;if((H=this.hostElement.parentElement)==null?0:H.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.F.detached=function(){this.updateTheaterDisablement()};
_.F.showPanel=function(){var H=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.rT.addJob(function(){H.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.F.maybeScrollToItemSection=function(H){var C=this,S,w=H==null?void 0:(S=H.sectionListEngagementPanelExtras)==null?void 0:S.scrollToItemSectionIdentifier;w&&_.rT.addJob(function(){var A;(A=C.sectionListRendererElement)==null||A.scrollToItemSection(w)},8)};
_.F.hidePanel=function(){var H=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.rT.addJob(function(){H.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.F.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.F.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.F.updatePanel=function(H,C,S,w){var A=this;if((H=H==null?void 0:H.engagementPanelSectionListRenderer)||w){if(H){w=H.header;var J=H.content,c=H.footer;(H=H.targetId)&&this.set("data.targetId",H);w&&this.set("data.header",w);J&&this.set("data.content",J);c&&this.set("data.footer",c)}else w&&(H=w.content,J=w.secondaryHeaderContent,(w=w.targetId)&&this.set("data.targetId",w),H&&this.set("data.content",H),J&&(this.secondaryHeaderData=J));this.updateChildVisibilityProperties();if(C){var Y;_.E("kevlar_update_panel_focus_scroll_killswitch")||
(Y={preventScroll:!0});this.focus(Y)}_.wM(this,function(){_.M3(A.hostElement,"yt-refit");A.maybeScrollToItemSection(S)})}};
_.F.computeHeaderData=function(){var H,C=(0,_.hb.unsafeClone)((H=this.data)==null?void 0:H.header);if(C){H=new _.mi(Object.keys(C)[0]);var S=_.e(C,H),w=_.e(this.secondaryHeaderData,H);w&&_.rC(C,H,Object.assign({},w,S))}return C};
_.F.getReloadContinuation=function(){var H,C,S,w=_.Z(((H=this.data)==null?void 0:(C=H.content)==null?void 0:(S=C.sectionListRenderer)==null?void 0:S.continuations)||[]);for(H=w.next();!H.done;H=w.next())if(H=H.value,H.reloadContinuationData)return H.reloadContinuationData.continuation};
_.F.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var H;((H=this.data)==null?0:H.targetId)&&(H=this.contentElement.firstElementChild)&&H.setAttribute("panel-target-id",this.data.targetId)};
_.F.forwardPopupClosedToFlowRootRenderer=function(){var H=_.mY(this.hostElement).querySelector("ytd-flow-root-renderer");if(H)H.onPopupClosed()};
_.F.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var H;if(!SgD.includes((H=this.theaterDisablementPanelIdentifier)!=null?H:""))if(H=_.E("web_watch_imax_theater_mode")&&this.isTheaterMode,H=_.E("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||H,_.E("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||H){var C;this.visibility=(C=this.data)==null?void 0:C.visibility;var S;this.trackEngagementPanelVisibility&&((S=this.data)==null?void 0:S.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var w,A,J,c;this.contentEmpty=!!(((w=this.data)==null?0:(A=w.content)==null?0:A.structuredDescriptionContentRenderer)&&Object.keys((J=this.data)==null?void 0:(c=J.content)==null?void 0:
c.structuredDescriptionContentRenderer).length===0);(C=_.JA().resolve(_.jD))&&C.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.F.isTheaterModeChanged=function(){_.E("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.F.isFullscreenChanged=function(){_.E("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.F.focus=function(H){if(this.header)this.header.focus(H);else{var C;(C=_.mY(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||C.focus(H)}};
_.F.visibilityChanged=function(){if(!_.E("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var H=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",C=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",S=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",w=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",A=w||!this.lastVisibility,J,c,Y,M=((J=this.data)==null?void 0:(c=J.identifier)==null?void 0:
c.tag)||((Y=this.data)==null?void 0:Y.panelIdentifier);if(H&&A){var m;((m=this.data)==null?0:m.onShowCommands)&&_.yN(this.hostElement,this.data.onShowCommands,this.hostElement);M&&_.AG().dispatch(_.Md({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:M}}))}else if(C&&S){var W;((W=this.data)==null?0:W.onHideCommands)&&_.yN(this.hostElement,this.data.onHideCommands,this.hostElement);M&&_.AG().dispatch(_.Md({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:M}}))}H&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*s6D++));_.E("kevlar_watch_focus_on_engagement_panels")&&H&&w&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.F.notifyVisibilityChanged=function(H){var C;_.m7(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,H,(C=this.data)==null?void 0:C.targetId])};
_.F.updateTheaterDisablement=function(){if(!_.E("kevlar_watch_theater_disablement_killswitch")){var H=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&SgD.includes(H)&&!_.E("watch_next_grid_ignore_disallowed_panels")){var C=_.Dl(_.AG().getState()),S=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";H!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():S?(this.originalTheaterState===void 0&&(this.originalTheaterState=C,this.theaterDisablementPanelIdentifier=
H),C&&_.q3(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.F.clearTheaterDisablement=function(){_.q3(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.F.updateChildVisibilityProperties=function(){this.hostElement||_.E("kevlar_panel_property_init_killswitch")||this._enableProperties();var H=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=H);var C,S=(C=this.headerElement)==null?void 0:C.firstElementChild;if(S&&!this.adHeaderImageLockupViewModel){C=H==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";S.collapsed=C;S=_.mY(S).querySelector("#visibility-button");if(!S)return;(S=S.firstElementChild)&&
S.polymerController.is==="ytd-toggle-button-renderer"&&S.polymerController.data.isToggled!==C&&S.polymerController.set("data.isToggled",C)}var w;if(C=(w=this.contentElement)==null?void 0:w.firstElementChild)if(H&&H!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")C.removeAttribute("panel-content-visible");else{C.setAttribute("panel-content-visible","");var A;(A=C.markDirty)==null||A.call(C)}};
_.F.onYtChangeEngagementPanelVisibilityAction=function(H){var C=this,S,w=(S=this.data)==null?void 0:S.targetId,A,J,c;S=((A=this.data)==null?void 0:(J=A.identifier)==null?void 0:J.tag)||((c=this.data)==null?void 0:c.panelIdentifier);var Y=_.e(H,_.EVd),M;H=w&&(Y==null?void 0:Y.targetId)===w||S&&(Y==null?void 0:(M=Y.panelIdentifier)==null?void 0:M.tag)===S;this.dialog&&H&&(Y==null?void 0:Y.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(w==="engagement-panel-comments-section"?_.q3(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.q3(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",S]));!_.E("kevlar_use_engagement_panel_management_component")&&H&&(w=Y.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!w?_.rT.addJob(function(){C.visibility=Y.visibility},2,this.hideDelayMs):this.visibility=Y.visibility,Y.visibility&&this.notifyVisibilityChanged(Y.visibility))};
_.F.onYtScrollToEngagementPanelCommand=function(H){var C,S=(C=this.data)==null?void 0:C.targetId,w,A,J;C=((w=this.data)==null?void 0:(A=w.identifier)==null?void 0:A.tag)||((J=this.data)==null?void 0:J.panelIdentifier);H=_.e(H,_.dL_);var c;(S&&(H==null?void 0:H.targetId)===S||C&&(H==null?void 0:(c=H.panelIdentifier)==null?void 0:c.tag)===C)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.q3(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.F.attachVEs=function(H){var C,S;(H==null?0:(C=H.content)==null?0:(S=C.productListRenderer)==null?0:S.trackingParams)&&_.lJ().graftServerVe(H.content.productListRenderer.trackingParams);var w,A;(H==null?0:(w=H.content)==null?0:(A=w.transcriptRenderer)==null?0:A.trackingParams)&&_.lJ().graftServerVe(H.content.transcriptRenderer.trackingParams)};
_.F.onYtUpdateEngagementPanelAction=function(H){var C,S=(C=this.data)==null?void 0:C.targetId;H=_.e(H,PfD);S&&(H==null?void 0:H.targetId)===S&&(this.updatePanel({engagementPanelSectionListRenderer:{header:H==null?void 0:H.header,content:H==null?void 0:H.content}},!1),this.attachVEs(H))};
_.F.onYtShowEngagementPanelScrimAction=function(H){var C,S=(C=this.data)==null?void 0:C.targetId;H=_.e(H,dOv);S&&(H==null?void 0:H.engagementPanelTargetId)===S&&(this.scrimmed=!0)};
_.F.onYtHideEngagementPanelScrimAction=function(H){var C,S=(C=this.data)==null?void 0:C.targetId;H=_.e(H,Xev);S&&(H==null?void 0:H.engagementPanelTargetId)===S&&(this.scrimmed=!1)};
_.F.getIdentifier=function(){var H,C,S;return((H=this.data)==null?void 0:H.panelIdentifier)||((C=this.data)==null?void 0:(S=C.identifier)==null?void 0:S.tag)};
_.F.getSurface=function(){var H,C;return(H=this.data)==null?void 0:(C=H.identifier)==null?void 0:C.surface};
_.JJ.Object.defineProperties(mf.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var H=this.getIdentifier();return H==="engagement-panel-youchat"||H==="PAyouchat"}}});
mf.prototype.visibilityChanged=mf.prototype.visibilityChanged;mf.prototype.isFullscreenChanged=mf.prototype.isFullscreenChanged;mf.prototype.isTheaterModeChanged=mf.prototype.isTheaterModeChanged;mf.prototype.dataChanged=mf.prototype.dataChanged;mf.prototype.forwardPopupClosedToFlowRootRenderer=mf.prototype.forwardPopupClosedToFlowRootRenderer;mf.prototype.onYtRendererstamperFinished=mf.prototype.onYtRendererstamperFinished;
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],mf.prototype,"actionHandlerBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],mf.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],mf.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.ie.YtEventForwardingBehavior),_.K("design:type",Object)],mf.prototype,"ytEventForwardingBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],mf.prototype,"data",void 0);
_.D([_.V({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.K("design:type",Object)],mf.prototype,"headerData",void 0);_.D([_.V(),_.K("design:type",Object)],mf.prototype,"secondaryHeaderData",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],mf.prototype,"visibility",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],mf.prototype,"contentEmpty",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],mf.prototype,"scrimmed",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],mf.prototype,"dialog",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],mf.prototype,"dropdown",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],mf.prototype,"darkerPanels",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],mf.prototype,"matchContentTheme",void 0);_.D([_.V(),_.K("design:type",Object)],mf.prototype,"disableAutoFill",void 0);
_.D([_.V({reflectToAttribute:!0,value:_.E("optimal_reading_width_comments_ep")}),_.K("design:type",Boolean)],mf.prototype,"optimalReadingWidthComments",void 0);_.D([_.V(),_.K("design:type",Number)],mf.prototype,"hideDelayMs",void 0);_.D([_.V({selector:_.Ku,reflectToAttribute:!0}),_.K("design:type",Object)],mf.prototype,"isFullscreen",void 0);_.D([_.V({selector:_.Dl,reflectToAttribute:!0}),_.K("design:type",Object)],mf.prototype,"isTheaterMode",void 0);
_.D([_.V(),_.K("design:type",Number)],mf.prototype,"showDelayMs",void 0);_.D([_.V({reflectToAttribute:!0}),_.l("data.targetId"),_.K("design:type",Object),_.K("design:paramtypes",[])],mf.prototype,"targetId",null);_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],mf.prototype,"webSize",null);_.D([_.V(),_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],mf.prototype,"hideFooterBorder",null);
_.D([_.V(),_.K("design:type",Object)],mf.prototype,"isWatch",void 0);_.D([_.V(),_.K("design:type",Object)],mf.prototype,"originalTheaterState",void 0);_.D([_.V(),_.K("design:type",Object)],mf.prototype,"theaterDisablementPanelIdentifier",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],mf.prototype,"modernPanels",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],mf.prototype,"isWatchWhilePanel",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],mf.prototype,"shortsPanel",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],mf.prototype,"liveChatEngagementPanel",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],mf.prototype,"learningChatEngagementPanel",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],mf.prototype,"liveChatReplyPanel",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],mf.prototype,"enableAnchoredPanel",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],mf.prototype,"disableBackdropFilter",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],mf.prototype,"isPersistentPanel",void 0);_.D([_.V(),_.K("design:type",Object)],mf.prototype,"trackEngagementPanelVisibility",void 0);_.D([_.lA("#header"),_.K("design:type",HTMLElement)],mf.prototype,"headerElement",void 0);
_.D([_.lA("#header > *"),_.K("design:type",HTMLElement)],mf.prototype,"header",void 0);_.D([_.lA("ytd-section-list-renderer"),_.K("design:type",Object)],mf.prototype,"sectionListRendererElement",void 0);_.D([_.lA("panel-ad-header-image-lockup-view-model"),_.K("design:type",HTMLElement)],mf.prototype,"adHeaderImageLockupViewModel",void 0);_.D([_.lA("#content"),_.K("design:type",HTMLElement)],mf.prototype,"contentElement",void 0);
_.D([_.Gz("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mf.prototype,"onYtRendererstamperFinished",null);_.D([_.Gz("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mf.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.D([_.XJ("data","isFullscreen","isTheaterMode"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mf.prototype,"dataChanged",null);
_.D([_.fx("isTheaterMode"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mf.prototype,"isTheaterModeChanged",null);_.D([_.fx("isFullscreen"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mf.prototype,"isFullscreenChanged",null);_.D([_.fx("visibility"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mf.prototype,"visibilityChanged",null);
_.D([_.h({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],mf);
_.B(mf,"ytd-engagement-panel-section-list-renderer",function(){if(ubc!==void 0)return ubc;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return ubc=H},{mode:_.mn("kevlar_poly_si_batch_j028")?1:2});var j6B;var Wp=function(){var H=_.X.apply(this,arguments)||this;H.lastRenderedPanelIds=new Set;H.visiblePanels=[];H.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return H};
_.G(Wp,_.X);_.F=Wp.prototype;_.F.dataChanged=function(){if(this.data){for(var H=[],C=_.Z(this.data),S=C.next();!S.done;S=C.next()){S=S.value;var w=void 0,A=void 0,J=(w=S)==null?void 0:(A=w.engagementPanelSectionListRenderer)==null?void 0:A.visibility;A=w=void 0;((w=S)==null?0:(A=w.engagementPanelSectionListRenderer)==null?0:A.targetId)&&J!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&H.push(S)}this.visiblePanels=H}else this.visiblePanels=[]};
_.F.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}}};
_.F.withoutVisiblePanelById=function(H){return this.visiblePanels.filter(function(C){var S;return((S=C.engagementPanelSectionListRenderer)==null?void 0:S.targetId)!==H})};
_.F.onYtChangeEngagementPanelVisibilityAction=function(H){var C=this,S=_.e(H,_.EVd);if(this.data&&(S==null?0:S.targetId)&&(S==null?0:S.visibility)){var w,A=(w=this.data.find(function(c){var Y;return((Y=c.engagementPanelSectionListRenderer)==null?void 0:Y.targetId)===S.targetId}))==null?void 0:w.engagementPanelSectionListRenderer;
if(A){var J=this.withoutVisiblePanelById(S.targetId);S.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(H=this.data.find(function(c){var Y;return((Y=c.engagementPanelSectionListRenderer)==null?void 0:Y.targetId)===S.targetId}))&&(J=[H].concat(_.k$(J)));
this.hideDelayMs&&S.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&J.length===0?_.rT.addJob(function(){A.visibility=S.visibility;C.visiblePanels=J},10,this.hideDelayMs):(A.visibility=S.visibility,this.visiblePanels=J);
_.m7(this.hostElement,"yt-engagement-panels-visible-changed",[J])}}};
_.F.onRendererstamperFinished=function(){var H=new Set(this.visiblePanels.map(function(C){var S;return(S=C.engagementPanelSectionListRenderer)==null?void 0:S.targetId}));
this.handlePanelVisibilityChange(H,this.lastRenderedPanelIds);this.lastRenderedPanelIds=H};
_.F.handlePanelVisibilityChange=function(H,C){H=H===void 0?new Set:H;C=C===void 0?new Set:C;if(this.data)for(var S=_.Z(this.data),w=S.next();!w.done;w=S.next()){w=w.value;var A=void 0,J=void 0,c=(A=w)==null?void 0:(J=A.engagementPanelSectionListRenderer)==null?void 0:J.targetId;if(c&&(A=C.has(c),J=H.has(c),c=void 0,!A&&J?(J=A=void 0,c=(A=w)==null?void 0:(J=A.engagementPanelSectionListRenderer)==null?void 0:J.onShowCommands):A&&!J&&(J=A=void 0,c=(A=w)==null?void 0:(J=A.engagementPanelSectionListRenderer)==
null?void 0:J.onHideCommands),c))for(w=_.Z(c),c=w.next();!c.done;c=w.next())this.ytComponentBehavior.resolveCommand(c.value)}};
Wp.prototype.onRendererstamperFinished=Wp.prototype.onRendererstamperFinished;Wp.prototype.dataChanged=Wp.prototype.dataChanged;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Wp.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],Wp.prototype,"actionHandlerBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Wp.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Wp.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Wp.prototype,"lastRenderedPanelIds",void 0);_.D([_.V(),_.K("design:type",Number)],Wp.prototype,"hideDelayMs",void 0);_.D([_.V(),_.K("design:type",Array)],Wp.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Array)],Wp.prototype,"visiblePanels",void 0);_.D([_.V(),_.K("design:type",Boolean)],Wp.prototype,"isWatchWhilePanel",void 0);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Wp.prototype,"dataChanged",null);_.D([_.Gz("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Wp.prototype,"onRendererstamperFinished",null);_.D([_.h({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],Wp);
_.B(Wp,"ytd-watch-engagement-panels",function(){if(j6B!==void 0)return j6B;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return j6B=H},{mode:1});var whh;var yr=function(){return _.X.apply(this,arguments)||this};
_.G(yr,_.X);yr.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.FN(_.mY(this.hostElement).querySelector("#text"),_.sOW(_.A91,this.data.companionLegalText))};
yr.prototype.computeAutoScrollEnabled=function(H,C){return H&&!C};
yr.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
yr.prototype.onToggleTap=function(){this.expanded=!this.expanded};
yr.prototype.expandedChanged=yr.prototype.expandedChanged;yr.prototype.dataChanged=yr.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],yr.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.E5o),_.K("design:type",Object)],yr.prototype,"ytdAutoScrollBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],yr.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],yr.prototype,"expanded",void 0);
_.D([_.V({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.K("design:type",Boolean)],yr.prototype,"autoScrollEnabled",void 0);_.D([_.V(),_.K("design:type",String)],yr.prototype,"expanderIcon",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],yr.prototype,"dataChanged",null);
_.D([_.fx("expanded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],yr.prototype,"expandedChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],yr);
_.B(yr,"ytd-companion-legal-text-renderer",function(){if(whh!==void 0)return whh;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return whh=H},{mode:1});var AEr;var NX=function(){var H=_.X.apply(this,arguments)||this;H.buttonUpdate=_.E("web_modern_buttons");H.kevlarWatchGrid=_.E("kevlar_watch_grid");H.centerAlignDescription=_.E("action_companion_center_align_description");H.truncateDomain=_.E("action_companion_truncate_domain");H.enableMonoStyle=_.E("enable_default_mono_cta_migration_web_client");return H};
_.G(NX,_.X);_.F=NX.prototype;_.F.computeButtonOverride=function(){if(this.buttonUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:"filled"}};
_.F.getOnLayoutVisibleCallback=function(){var H=_.gh("yt.www.ads.eventcache.getLastCompanionData");return H?(H=H())&&H.onLayoutVisibleCallback:null};
_.F.getLayoutId=function(){var H=_.gh("yt.www.ads.eventcache.getLastCompanionData");return H?(H=H())&&H.layoutId:null};
_.F.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",NX.JSC$22911_DEFAULT_AD_BADGE_RENDERER);var H=this.getOnLayoutVisibleCallback();H&&H()}};
_.F.getButtonRenderer=function(H){return H.actionButton&&_.e(H.actionButton,_.cg)?(delete _.e(H.actionButton,_.cg).navigationEndpoint,_.e(H.actionButton,_.cg)):{}};
_.F.onClick=function(H){var C=this;if((!_.E("web_modern_buttons")||!_.ww(_.Ar(H),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){H=_.Zz();var S=this.getLayoutId();H&&S&&_.E("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?H.getPlayerPromise().then(function(w){(new _.ju(w)).executeCommand(C.data.navigationEndpoint,S)}):_.E("kevlar_companion_resolve_command_killswitch")?_.M3(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.q3(this.hostElement,"yt-companion-ad-clicked",["action-companion",S])}};
_.JJ.Object.defineProperties(NX.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var H,C,S;return((H=this.data)==null?0:(C=H.detailsLine)==null?0:(S=C.adRating)==null?0:S.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 H,C,S,w;return((H=this.data)==null?0:(C=H.detailsLine)==null?0:(S=C.adRating)==null?0:(w=S.ratingIcon)==null?0:w.iconType)?_.bJ(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var H,C,S,w;return((H=this.data)==null?0:(C=H.detailsLine)==null?0:(S=C.texts)==null?0:(w=S[0])==null?0:w.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 H,C;return((H=this.data)==null?0:(C=H.description)==null?0:C.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var H=_.gh("yt.www.ads.eventcache.getLastCompanionData");return H?(H=H())&&H.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var H=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return H?H.indexOf("/default_banner")!==-1:!0}}});
NX.prototype.onClick=NX.prototype.onClick;NX.prototype.dataChanged=NX.prototype.dataChanged;NX.JSC$22911_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.fL("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],NX.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],NX.prototype,"rendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],NX.prototype,"data",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],NX.prototype,"buttonUpdate",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],NX.prototype,"kevlarWatchGrid",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],NX.prototype,"centerAlignDescription",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],NX.prototype,"truncateDomain",void 0);
_.D([_.V({computed:"computeButtonOverride(buttonUpdate)"}),_.K("design:type",Object)],NX.prototype,"buttonOverride",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],NX.prototype,"enableMonoStyle",void 0);_.D([_.l("data.detailsLine.adRating.ratingText"),_.K("design:type",Object),_.K("design:paramtypes",[])],NX.prototype,"getRating",null);_.D([_.l("getRating"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],NX.prototype,"computeRatingHidden",null);
_.D([_.l("data.detailsLine.adRating.ratingIcon.iconType"),_.K("design:type",Object),_.K("design:paramtypes",[])],NX.prototype,"iconType",null);_.D([_.l("data.detailsLine.texts.0.text"),_.K("design:type",Object),_.K("design:paramtypes",[])],NX.prototype,"getDetailsLine",null);_.D([_.l("getDetailsLine"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],NX.prototype,"computeDetailsLineHidden",null);
_.D([_.l("data.description.text"),_.K("design:type",Object),_.K("design:paramtypes",[])],NX.prototype,"getDescriptionText",null);_.D([_.l("getDescriptionText"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],NX.prototype,"computeDescriptionTextHidden",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],NX.prototype,"interactionLoggingClientData",null);
_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],NX.prototype,"hideBanner",null);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],NX.prototype,"dataChanged",null);_.D([_.Gz("click"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],NX.prototype,"onClick",null);_.D([_.h({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],NX);
_.B(NX,"ytd-action-companion-ad-renderer",function(){if(AEr!==void 0)return AEr;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return AEr=H},{mode:_.mn("kevlar_poly_si_batch_j067")?1:2});var JE7;var FlB;var bn=function(){var H=_.X.apply(this,arguments)||this;H.buttonUpdate=_.E("web_modern_buttons");H.hideLegacyBanner=_.E("enable_dsa_one_click_ata_translators_infeed_elements");H.adInfoButtonStyle="mono";H.adInfoButtonType="text";H.noDotAdBadge=!0;return H};
_.G(bn,_.X);_.F=bn.prototype;_.F.getOnLayoutVisibleCallback=function(){var H=_.gh("yt.www.ads.eventcache.getLastCompanionData");return H?(H=H())&&H.onLayoutVisibleCallback:null};
_.F.getLayoutId=function(){var H=_.gh("yt.www.ads.eventcache.getLastCompanionData");return H?(H=H())&&H.layoutId:null};
_.F.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 H=this.data.image.thumbnail.thumbnails[0];this.imageSrc=H.url?_.D4(H.url):void 0;this.imageWidth=H.width||0;this.imageHeight=H.height||0}this.data.clickthroughEndpoint&&_.e(this.data.clickthroughEndpoint,_.R8)&&(H=_.e(this.data.clickthroughEndpoint,_.R8).url,_.E("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
H||"":H?(H=_.D4(H),this.clickThroughUrl=_.kD(H)):this.clickThroughUrl=void 0);(H=this.getOnLayoutVisibleCallback())&&H()}};
_.F.onClick=function(H){_.ww(_.Ar(H),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(H)};
_.F.handleClick=function(){var H=this;this.data&&this.data.clickthroughEndpoint&&(_.M3(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(C){H.macroReplacementBehavior.sendServiceRequestAction([C])}),_.q3(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.F.onLoad=function(){_.m7(this.hostElement,"yt-refit-popups-action")};
_.JJ.Object.defineProperties(bn.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var H=_.gh("yt.www.ads.eventcache.getLastCompanionData");return H?(H=H())&&H.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var H=_.gh("yt.www.ads.eventcache.getLastCompanionData");return H?(H=H())&&H.interactionLoggingClientData:null}}});
bn.prototype.onLoad=bn.prototype.onLoad;bn.prototype.onClick=bn.prototype.onClick;bn.prototype.dataChanged=bn.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],bn.prototype,"rendererBehavior",void 0);_.D([_.v(Vm9.YtMacroReplacementBehavior),_.K("design:type",Object)],bn.prototype,"macroReplacementBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],bn.prototype,"data",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],bn.prototype,"buttonUpdate",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],bn.prototype,"hideLegacyBanner",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],bn.prototype,"adInfoButtonStyle",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],bn.prototype,"adInfoButtonType",void 0);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],bn.prototype,"macros",null);
_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],bn.prototype,"interactionLoggingClientData",null);_.D([_.V(),_.K("design:type",String)],bn.prototype,"clickThroughUrl",void 0);_.D([_.V(),_.K("design:type",_.PV)],bn.prototype,"imageSrc",void 0);_.D([_.V(),_.K("design:type",Number)],bn.prototype,"imageWidth",void 0);_.D([_.V(),_.K("design:type",Number)],bn.prototype,"imageHeight",void 0);_.D([_.V(),_.K("design:type",Object)],bn.prototype,"noDotAdBadge",void 0);
_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bn.prototype,"dataChanged",null);_.D([_.Gz("click"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],bn.prototype,"onClick",null);_.D([_.Gz("load"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bn.prototype,"onLoad",null);_.D([_.h({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],bn);
_.B(bn,"ytd-image-companion-renderer",function(){if(FlB!==void 0)return FlB;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return FlB=H},{mode:_.mn("kevlar_poly_si_batch_j067")?1:2});var Zp9;var EB=function(){return _.X.apply(this,arguments)||this};
_.G(EB,_.X);_.F=EB.prototype;_.F.dataChanged=function(){this.set("data.adBadge",EB.JSC$22920_DEFAULT_AD_BADGE_RENDERER);if(this.data){var H=this.getOnLayoutVisibleCallback();H&&H()}};
_.F.getOnLayoutVisibleCallback=function(){var H=_.gh("yt.www.ads.eventcache.getLastCompanionData");return H?(H=H())&&H.onLayoutVisibleCallback:null};
_.F.getLayoutId=function(){var H=_.gh("yt.www.ads.eventcache.getLastCompanionData");return H?(H=H())&&H.layoutId:null};
_.F.onCompanionClicked=function(H){this.data&&(H.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.q3(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.F.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var H=_.Zz(),C=this.getLayoutId(),S=this.data.clickToAdvSiteEndpoint;H&&C&&_.E("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?H.getPlayerPromise().then(function(w){(new _.ju(w)).executeCommand(S,C)}):_.M3(this.hostElement,"yt-navigate",{endpoint:S})}};
_.F.sendTrackingPings=function(H){if(H&&H.length!==0&&H[0].loggingUrls&&(H=H[0].loggingUrls.map(this.getBaseUrl)))for(var C=0;C<H.length;C++)_.aM(H[C])};
_.F.getBaseUrl=function(H){return H.baseUrl||""};
_.JJ.Object.defineProperties(EB.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var H=_.gh("yt.www.ads.eventcache.getLastCompanionData");return H?(H=H())&&H.interactionLoggingClientData:null}}});
EB.prototype.onCompanionClicked=EB.prototype.onCompanionClicked;EB.prototype.dataChanged=EB.prototype.dataChanged;EB.JSC$22920_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.fL("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],EB.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],EB.prototype,"data",void 0);_.D([_.lA("#title"),_.K("design:type",HTMLElement)],EB.prototype,"shopTitle",void 0);
_.D([_.XJ("data.impressionEndpoints"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],EB.prototype,"dataChanged",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],EB.prototype,"interactionLoggingClientData",null);_.D([_.Gz("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],EB.prototype,"onCompanionClicked",null);
_.D([_.h({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],EB);
_.B(EB,"ytd-shopping-companion-renderer",function(){if(Zp9!==void 0)return Zp9;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Zp9=H},{mode:1});_.qs(_.n(function(H){var C=H.data;H=_.c5({visibilityCallback:function(w){var A,J=(A=C().interaction)==null?void 0:A.onFirstVisible;w&&J&&_.Im(J)},
showOption:_.Xx});var S=_.Ln(function(){return C().interaction},thB);
_.k1(function(){var w,A;A=(A=_.gh("yt.www.ads.eventcache.getLastCompanionData"))?(A=A())&&A.onLayoutVisibleCallback:null;(w=A)==null||w()});
return _.q("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.um(function(w){_.m7(w.currentTarget,"yt-refit-popups-action")}),
el:_.Zl(H,S),"aria-label":function(){var w,A;return(w=C().interaction)==null?void 0:(A=w.accessibility)==null?void 0:A.label}},_.q("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.q(_.V4,{data:function(){return C().adImage}},{adImageViewModel:function(w){return _.q(_.UH,{data:w.data,
targetHeight:80,customCommandResolver:thB})}})),_.q("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.q("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.q(_.V4,{data:function(){return C().adBadge}},{adBadgeViewModel:function(w){return _.q(_.hK,{data:w.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.q("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.q(_.V4,{data:function(){return C().menu}},{buttonViewModel:_.rc}))))},"Yk"),"banner-image-layout-view-model",{props:{data:_.GH}});_.qs(_.n(function(H){var C=H.data;H=_.c5({visibilityCallback:function(w){var A,J=(A=C().interaction)==null?void 0:A.onFirstVisible;w&&J&&_.Im(J)},
showOption:_.Xx});var S=_.Ln(function(){return C().interaction},LT7);
_.k1(function(){var w,A;A=(A=_.gh("yt.www.ads.eventcache.getLastCompanionData"))?(A=A())&&A.onLayoutVisibleCallback:null;(w=A)==null||w()});
return _.q("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.Zl(H,S)},_.q("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.q(_.V4,{data:function(){return C().adImage}},{adImageViewModel:function(w){return _.q(_.UH,{data:w.data,
targetHeight:80,customCommandResolver:LT7})}})),_.q("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.q("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.q(_.V4,{data:function(){return C().adAvatarLockup}},{adAvatarLockupViewModel:function(w){return _.q(CEB,{data:w.data,
customCommandResolver:LT7})}})),_.q(_.V4,{data:function(){return C().adButton}},{adButtonViewModel:function(w){return _.q(_.dn,{data:w.data,
customCommandResolver:LT7})}}),_.q("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.q(_.V4,{data:function(){return C().menu}},{buttonViewModel:_.rc}))))},"Zk"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.GH}});var cEP={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"},eW=function(){var H=_.X.apply(this,arguments)||this;H.updateCompanionDataJobId=0;H.contentVideoId=null;H.player=null;H.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return H};
_.G(eW,_.X);_.F=eW.prototype;_.F.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:cEP}}};
_.F.attached=function(){var H=this,C=_.Zz();C&&C.getPlayerPromise().then(function(S){H.getCachedDataAndListen(S)})};
_.F.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.F.updateRendererStamper=function(){var H={};if(this.data)for(var C in cEP)if(this.data[C]){H[C]=this.data[C];break}if(this.oneofRenderer!=void 0||Object.keys(H).length)this.oneofRenderer=H};
_.F.getCachedDataAndListen=function(H){var C=this.retrieveCachedCompanionData();C&&Object.keys(C).length&&this.receiveCompanionData(C);this.ytPlayerListenerBehavior.listenToPlayerEvent(H,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=H};
_.F.retrieveCachedCompanionData=function(){return _.s$.yt&&_.s$.yt.www&&_.s$.yt.www.ads&&_.s$.yt.www.ads.eventcache&&_.s$.yt.www.ads.eventcache.getLastCompanionData?_.s$.yt.www.ads.eventcache.getLastCompanionData():null};
_.F.receiveCompanionData=function(H){H&&Object.keys(H).length?(this.contentVideoId=H.contentVideoId,this.setCompanionData(H)):this.setCompanionData(H)};
_.F.setCompanionData=function(H){this.cancelPendingCompanionAdJobs();if(H){this.updateCompanionDataJobId=0;for(var C in cEP)cEP.hasOwnProperty(C)&&(this.data[C]=void 0);H.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",H.shoppingCompanionCarouselRenderer):H.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",H.imageCompanionAdRenderer):H.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",H.actionCompanionAdRenderer),_.m7(this.hostElement,
"yt-hide-unlimited-offer-module"),_.m7(this.hostElement,"yt-hide-tvfilm-offer-module")):H.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",H.bannerImageLayoutViewModel):H.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",H.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.F.dataChanged=function(){var H=this,C=_.Zz();C?C.getPlayerPromise().then(function(S){H.contentVideoId&&S.getVideoUrl().includes("v="+H.contentVideoId)||(H.cancelPendingCompanionAdJobs(),H.updateRendererStamper())}):_.Ug(Error("To"))};
_.F.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.rT.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.F.handleCompanionAdClicked=function(H,C){this.player.onAdUxClicked(H,C);this.player.pauseVideo()};
eW.prototype.dataChanged=eW.prototype.dataChanged;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],eW.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],eW.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],eW.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],eW.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.v(_.fT.YtPlayerListenerBehavior),_.K("design:type",_.v_)],eW.prototype,"ytPlayerListenerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],eW.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],eW.prototype,"oneofRenderer",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],eW.prototype,"dataChanged",null);_.D([_.h({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],eW);
_.B(eW,"ytd-companion-slot-renderer",function(){if(JE7!==void 0)return JE7;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return JE7=H},{mode:_.mn("kevlar_poly_si_batch_j067")?
1:2});var Ygv;var un=function(){return _.X.apply(this,arguments)||this};
_.G(un,_.X);un.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
un.prototype.dataChanged=un.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],un.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],un.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],un.prototype,"companionSlotData",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],un.prototype,"dataChanged",null);
_.D([_.h({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],un);
_.B(un,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(Ygv!==void 0)return Ygv;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Ygv=H},{mode:1});var ztB;var GB=function(){var H=_.X.apply(this,arguments)||this;H.skinnyMode=!1;H.COMPACT_EVENT_COUNT=4;H.onShelfToggleButtonTap=function(){H.logTap(H.data);H.showingMore=!H.showingMore};
H.onShelfToggleButtonFocus=function(){H.showingMore||(H.logTap(H.data),H.showingMore=!0,_.wM(H,function(){var C=H.COMPACT_EVENT_COUNT-1,S;(S=_.mY(H.hostElement).querySelector("#event-"+C))==null||S.focus()}))};
return H};
_.G(GB,_.X);_.F=GB.prototype;_.F.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.F.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.F.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.uA(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.uA(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.uA(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.uA(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.uA(this.infoTooltip,this.infoTooltip.hide))};
_.F.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.uA(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.uA(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.uA(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.uA(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.uA(this.infoTooltip,this.infoTooltip.hide))};
_.F.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)};
_.F.onShowingMoreChanged=function(){var H;this.showingMoreChanged((H=this.showingMore)!=null?H:!1)};
_.F.showingMoreChanged=function(H){var C=this.get("data.events")||[];this.set("restEvents",C.slice(1,H?C.length:this.COMPACT_EVENT_COUNT).map(function(S){return S.ticketEventRenderer}));
C.slice(0,H?C.length:this.COMPACT_EVENT_COUNT).forEach(function(S){var w=_.Dg();S=S.ticketEventRenderer.trackingParams;_.BM()&&w&&S&&(S=_.Qh(S),w&&_.HF(w,S))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.F.computeAriaLabel=function(H){return H.subtitle1+", "+H.subtitle2};
_.F.logTap=function(H){_.BM()&&this.ytRendererBehavior.logExplicitClick(H)};
_.F.isKeyboardAction=function(H){return this.get("detail.x",H)===0&&this.get("detail.y",H)===0};
_.F.onFirstEventTap=function(H){H.target&&this.handleTap(H.target,this.firstEvent,this.isKeyboardAction(H))};
_.F.onTicketLinkTap=function(H){H.target&&this.handleTap(H.target,H.model.item,this.isKeyboardAction(H))};
_.F.handleTap=function(H,C,S){if(C.buttonCommand)if(C.hasMultipleOffers)Object.assign(_.e(C.buttonCommand,_.Uy),{properties:{source:S?"keyboard":"tap"}}),this.logTap(C),this.popupPositionTarget=H,_.yN(this.hostElement,[C.buttonCommand],this.hostElement);else{var w;if((w=_.e(C.buttonCommand,_.R8))==null?0:w.url)this.logTap(C),_.CM(window,_.e(C.buttonCommand,_.R8).url)}};
GB.prototype.onShowingMoreChanged=GB.prototype.onShowingMoreChanged;GB.prototype.dataChanged=GB.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],GB.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],GB.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],GB.prototype,"firstEvent",void 0);_.D([_.V(),_.K("design:type",Object)],GB.prototype,"restEvents",void 0);_.D([_.V(),_.K("design:type",String)],GB.prototype,"imageUrl",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],GB.prototype,"showingMore",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],GB.prototype,"canShowMore",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],GB.prototype,"skinnyMode",void 0);_.D([_.V(),_.K("design:type",HTMLElement)],GB.prototype,"popupPositionTarget",void 0);_.D([_.lA("#banner-info-tooltip"),_.K("design:type",Object)],GB.prototype,"infoTooltip",void 0);
_.D([_.lA("#info-container"),_.K("design:type",HTMLElement)],GB.prototype,"infoContainer",void 0);_.D([_.lA("#shelf-toggler"),_.K("design:type",HTMLElement)],GB.prototype,"shelfToggleButton",void 0);_.D([_.lA("#separator"),_.K("design:type",HTMLDivElement)],GB.prototype,"separator",void 0);_.D([_.V(),_.K("design:type",String)],GB.prototype,"shelfTogglerLabelText",void 0);_.D([_.V(),_.K("design:type",String)],GB.prototype,"shelfTogglerIcon",void 0);
_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],GB.prototype,"dataChanged",null);_.D([_.XJ("showingMore"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],GB.prototype,"onShowingMoreChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],GB);
_.B(GB,"ytd-ticket-shelf-renderer",function(){if(ztB!==void 0)return ztB;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return ztB=H},{mode:1});var MIB;var qgt;var Thc=function(){return _.X.apply(this,arguments)||this};
_.G(Thc,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Thc.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Thc.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],Thc);
_.B(Thc,"ytd-comments-entry-point-message-renderer",function(){if(qgt!==void 0)return qgt;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return qgt=H},{mode:1});var mnT;var fz=function(){return _.X.apply(this,arguments)||this};
_.G(fz,_.X);_.JJ.Object.defineProperties(fz.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.teaserAvatar)}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],fz.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],fz.prototype,"data",void 0);_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],fz.prototype,"hasAvatar",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],fz);
_.B(fz,"ytd-comments-entry-point-teaser-renderer",function(){if(mnT!==void 0)return mnT;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return mnT=H},{mode:1});var Wl9;var yED=function(){return _.X.apply(this,arguments)||this};
_.G(yED,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],yED.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],yED.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],yED);
_.B(yED,"ytd-comments-simplebox-renderer",function(){if(Wl9!==void 0)return Wl9;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Wl9=H},{mode:1});var vp=function(){var H=_.X.apply(this,arguments)||this;H.fullHeight=!_.E("comment_teaser_full_height_kill_switch")&&_.E("kevlar_watch_grid");return H};
_.G(vp,_.X);vp.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"}}}};
vp.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
vp.prototype.onTap=function(){var H=this.tapCommand;H&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(H))};
vp.prototype.onKeyUp=function(H){if(H.keyCode===13)this.onTap()};
_.JJ.Object.defineProperties(vp.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.data)==null?0:H.onTap)return this.data.onTap;var C,S;if(((C=this.data)==null?0:C.teaserContent)||((S=this.data)==null?0:S.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)!=null&&H.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
vp.prototype.onKeyUp=vp.prototype.onKeyUp;vp.prototype.onTap=vp.prototype.onTap;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],vp.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],vp.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],vp.prototype,"ytComponentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],vp.prototype,"data",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],vp.prototype,"fullHeight",void 0);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],vp.prototype,"tapCommand",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],vp.prototype,"simpleboxPlaceholder",null);_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],vp.prototype,"hasSimpleboxPlaceholder",null);
_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],vp.prototype,"simpleboxAvatar",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],vp.prototype,"teaserContent",null);_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],vp.prototype,"hasTeaserContent",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],vp.prototype,"teaserAvatar",null);
_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],vp.prototype,"hasTeaserAvatar",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],vp.prototype,"messageText",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],vp.prototype,"contentRenderer",null);_.D([_.l("data"),_.V({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],vp.prototype,"hasContents",null);
_.D([_.l("data"),_.V({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],vp.prototype,"hasContentRenderer",null);_.D([_.Gz("click"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vp.prototype,"onTap",null);_.D([_.Gz("keypress"),_.K("design:type",Function),_.K("design:paramtypes",[_.Q0]),_.K("design:returntype")],vp.prototype,"onKeyUp",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],vp);
_.B(vp,"ytd-comments-entry-point-header-renderer",function(){if(MIB!==void 0)return MIB;var H=document.createElement("template");_.f(H,'\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>');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return MIB=H},{mode:1});var Nh4;_.qs(_.$4i,"yt-animated-rolling-number",{props:{numberText:_.GH,numberValue:_.GH,heightPx:_.GH,fontSizeMultiplier:_.GH,shouldAnimate:_.GH,forceRollUp:_.GH}});var bpB=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),ETv={numberText:"",heightPx:2*bpB,shouldAnimate:!1},ln=function(){var H=_.X.apply(this,arguments)||this;H.usingAnimatedComponents=!0;H.wasDetailed=!1;H.JSC$22957_browserSupportsAnimation=_.E("web_supports_animations_api");H.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};H.detailed=!1;H.shouldAnimate=!1;H.viewCountProps=ETv;H.dateTextProps=
ETv;H.metadataBadgesInDescription=_.E("web_metadata_badges_in_description");return H};
_.G(ln,_.X);_.F=ln.prototype;_.F.resetAnimationState=function(){this.shouldAnimate=!1};
_.F.updateDynamicMetadata=function(){if(this.JSC$22957_browserSupportsAnimation){if(!this.detailed){var H,C,S,w;var A=(H=this.videoPrimaryInfoRenderer)==null?void 0:(C=H.viewCount)==null?void 0:(S=C.videoViewCountRenderer)==null?void 0:(w=S.extraShortViewCount)==null?void 0:w.simpleText;var J,c,Y,M;var m=(J=this.videoPrimaryInfoRenderer)==null?void 0:(c=J.viewCount)==null?void 0:(Y=c.videoViewCountRenderer)==null?void 0:(M=Y.shortViewCount)==null?void 0:M.simpleText}if(!m){var W,y,N,b;A=(W=this.videoPrimaryInfoRenderer)==
null?void 0:(y=W.viewCount)==null?void 0:(N=y.videoViewCountRenderer)==null?void 0:(b=N.unlabeledViewCountValue)==null?void 0:b.simpleText;var u,O,d,p;m=(u=this.videoPrimaryInfoRenderer)==null?void 0:(O=u.viewCount)==null?void 0:(d=O.videoViewCountRenderer)==null?void 0:(p=d.viewCount)==null?void 0:p.simpleText}var k,R,L;H=Number((k=this.videoPrimaryInfoRenderer)==null?void 0:(R=k.viewCount)==null?void 0:(L=R.videoViewCountRenderer)==null?void 0:L.originalViewCount);var t,g;k=(t=this.videoPrimaryInfoRenderer)==
null?void 0:(g=t.relativeDateText)==null?void 0:g.simpleText;var ii;t=!((ii=this.videoPrimaryInfoRenderer)==null||!ii.relativeDateText);if(A&&m&&H&&(k||!t)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;ii=m.split(new RegExp("("+A+")"));A=_.sx(ii[0]);var FW;m={numberText:(FW=ii[1])!=null?FW:"",numberValue:H,heightPx:2*bpB,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var cZ;FW=((cZ=ii[2])!=null?cZ:"")+"  ";this.setViewCount(m,A,_.sx(FW));
if(!this.detailed&&t){A=k.split(/(\d+)/);cZ=_.sx(A[0]);var eZ;FW={numberText:(eZ=A[1])!=null?eZ:"",heightPx:2*bpB,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var ND;eZ=((ND=A[2])!=null?ND:"")+"  ";this.setDateText(FW,cZ,_.sx(eZ))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.F.setViewCount=function(H,C,S){_.jt(C)!==_.jt(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=C);this.viewCountProps.numberText!==(H==null?void 0:H.numberText)&&(this.viewCountProps=H||ETv);_.jt(S)!==_.jt(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=S)};
_.F.setDateText=function(H,C,S){_.jt(C)!==_.jt(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=C);this.dateTextProps.numberText!==(H==null?void 0:H.numberText)&&(this.dateTextProps=H||ETv);_.jt(S)!==_.jt(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=S)};
_.F.onYtUpdateViewershipAction=function(H){this.videoPrimaryInfoRenderer&&(_.e(H,JbB).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.e(H,JbB).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.e(H,JbB).viewCount)))};
_.F.onYtUpdateDateTextAction=function(H){if(this.videoPrimaryInfoRenderer){H=_.e(H,_.wjB).dateText;this.shouldAnimate=!0;var C;((C=this.videoPrimaryInfoRenderer)==null?0:C.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",H):this.set("videoPrimaryInfoRenderer.dateText",H)}};
_.JJ.Object.defineProperties(ln.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return a4v(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.jt(a4v(this.videoPrimaryInfoRenderer,!0,!0,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.jt(this.viewCountPreNumberText),this.viewCountProps.numberText,_.jt(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.jt(this.dateTextPreNumberText),this.dateTextProps.numberText,_.jt(this.dateTextPostNumberText)].join("")}}});
ln.prototype.updateDynamicMetadata=ln.prototype.updateDynamicMetadata;ln.prototype.resetAnimationState=ln.prototype.resetAnimationState;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],ln.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],ln.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],ln.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],ln.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],ln.prototype,"videoPrimaryInfoRenderer",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],ln.prototype,"detailed",void 0);_.D([_.V(),_.K("design:type",Object)],ln.prototype,"shouldAnimate",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],ln.prototype,"viewCountPreNumberText",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],ln.prototype,"viewCountProps",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],ln.prototype,"viewCountPostNumberText",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],ln.prototype,"dateTextPreNumberText",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],ln.prototype,"dateTextProps",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],ln.prototype,"dateTextPostNumberText",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],ln.prototype,"metadataBadgesInDescription",void 0);_.D([_.l("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.K("design:type",Object),_.K("design:paramtypes",[])],ln.prototype,"infoText",null);
_.D([_.l("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.K("design:type",String),_.K("design:paramtypes",[])],ln.prototype,"descriptionInfoTooltipText",null);_.D([_.l("detailed"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ln.prototype,"showDescriptionInfoTooltip",null);
_.D([_.l("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.K("design:type",String),_.K("design:paramtypes",[])],ln.prototype,"animatedViewCountAccessibilityLabel",null);_.D([_.l("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.K("design:type",String),_.K("design:paramtypes",[])],ln.prototype,"animatedDateTextAccessibilityLabel",null);
_.D([_.fx("videoPrimaryInfoRenderer"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ln.prototype,"resetAnimationState",null);_.D([_.fx("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ln.prototype,"updateDynamicMetadata",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-watch-info-text"})],ln);
_.B(ln,"ytd-watch-info-text",function(){if(Nh4!==void 0)return Nh4;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return Nh4=H},{mode:1});var etD;var u9h="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var GAT=_.n(function(H){var C=H.data;var S=H.setTapCommand;_.d6(function(){var w=_.L7(C().onTap);S(w)},"Hj6Srd");
return _.q("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.q(_.V4,{data:function(){return C().avatar}},{avatarViewModel:_.ZT}),_.q("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.q("span",null,function(){return C().simpleboxText})))},"$k");var fYT=_.n(function(H){return _.q("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.q(_.T,{cond:function(){return _.e(H.data().avatar,_.Dz)},
then:function(C){return _.q(_.ZT,{data:C,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.q("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.q(_.uZ,{text:function(){return H.data().teaserText}})))},"al");var vTV=_.n(function(H){var C=H.data;var S=H.setTapCommand;_.d6(function(){var w=_.L7(C().onTap);S(w)},"IlZFqc");
return _.q("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.q(_.V4,{data:function(){return C().teasers}},{commentsEntryPointTeaserViewModel:fYT}))},"bl");var lYT=_.n(function(H){var C=H.data;var S=H.setTapCommand;_.d6(function(){var w=_.L7(C().onTap);S(w)},"sYe8ye");
return _.q("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.q(_.uZ,{text:function(){return C().messageText}}))},"cl");var VIv=_.n(function(H){var C=H.data;var S=H.setTapCommand;var w=H.isDisabled;_.d6(function(){var A=(w==null?0:w())?void 0:_.L7(C().onTap);S(A)},"GZxRqd");
return _.q("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.q(_.lm,{icon:function(){return C().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.q(_.T,{cond:function(){return C().image},
then:function(A){return _.q(_.Jg,{data:A,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.q(_.uZ,{text:function(){return C().text},
className:function(){return C().image||C().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.q(_.V4,{data:function(){return C().button}},{buttonViewModel:function(A){return _.q(_.rc,{data:A.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:w==null?void 0:w()}}})}}))},"dl");var oTv=_.n(function(H){var C=H.data;var S=H.itemIndex;var w=H.selectedIndex;var A=H.indexUpdatedCallback;var J=H.observer;H=H.title;var c=_.sW("yt-carousel-item-view-model",function(y){J&&J().observe(y)}),Y=function(y){S()===w()&&A(y)},M=_.Lu(vD4),m=_.Lu(_.Kti),W=function(){var y,N,b;
return((y=C())==null?void 0:y.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!M()||((N=C())==null?void 0:N.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&m().includes("PAposts_by_host")||((b=C())==null?void 0:b.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&m().includes("PAyouchat")};
return _.q("yt-carousel-item-view-model",{el:c,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":H},_.q(_.V4,{data:function(){var y,N;return(N=(y=_.e(C().carouselItem,Vnr))==null?void 0:y.textCarousel)!=null?N:C().carouselItem}},{textCarouselItemViewModel:function(y){return _.q(VIv,{data:y.data,
setTapCommand:Y,isDisabled:W})},
commentTeaserCarouselItemViewModel:function(y){return _.q(vTV,{data:y.data,setTapCommand:Y})},
commentInputBoxCarouselItemViewModel:function(y){return _.q(GAT,{data:y.data,setTapCommand:Y})},
commentsEntryPointMessageViewModel:function(y){return _.q(lYT,{data:y.data,setTapCommand:Y})}}))},"el");var Opr=_.n(function(H){var C=H.numDots;var S=H.activeIndex;return _.q("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.q(_.Vq,{each:function(){return Array.from({length:C()})},
keyBy:"INDEX"},function(w,A){return _.q("div",{class:function(){var J={};return _.pn("ytCarouselDotsShapeDot",(J.ytCarouselDotsShapeDotActive=A===S(),J))}})}))},"fl");var XhT=_.n(function(H){var C=H.data;var S=H.handleCarouselNavigation;var w=H.numItems;var A=H.selectedIndex;var J=function(){return{disabled:A()===0}},c=function(){return{disabled:A()===w()-1}};
return _.q("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.q("div",null,_.q("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return C().title}),_.q(_.T,{cond:function(){return C().subtitle},
then:function(Y){return _.q("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return C().subtitleAccessibilityText}},Y)}})),_.q(_.T,{cond:function(){return w()>1},
then:function(){return _.q("div",{class:"ytCarouselTitleViewModelNavigation"},_.q(Opr,{numDots:w,activeIndex:A}),_.q(_.T,{cond:function(){return C().previousButton},
then:function(Y){return _.q(_.V4,{data:Y},{buttonViewModel:function(M){return _.q(_.rc,{data:M.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return S(-1)},
buttonOverrides:J})}})}}),_.q(_.T,{cond:function(){return C().nextButton},
then:function(Y){return _.q(_.V4,{data:Y},{buttonViewModel:function(M){return _.q(_.rc,{data:M.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return S(1)},
buttonOverrides:c})}})}}))}}))},"gl");_.qs(_.n(function(H){var C=H.data;var S,w=_.sW("yt-video-metadata-carousel-view-model"),A=_.sW("div",function(t){var g=function(){var ii=t.offsetWidth*O(),FW=24*(O()-1);N(ii+FW)};
g();window.ResizeObserver&&(S=new ResizeObserver(g),S.observe(t))}),J=_.rh("HTML_DIR")==="rtl",c=!1,Y=0,M=0;
H=_.Z(_.mB(0,void 0,"M49TDf"));var m=H.next().value,W=H.next().value;H=_.Z(_.mB(0,void 0,"zLIok"));var y=H.next().value,N=H.next().value;H=_.Z(_.mB(!1,void 0,"bhelhc"));var b=H.next().value,u=H.next().value,O=function(){var t,g,ii;return(ii=(t=C())==null?void 0:(g=t.carouselTitles)==null?void 0:g.length)!=null?ii:0},d=function(){A.value&&A.value.scrollLeft!==Y&&W((J?A.value.scrollLeft<Y:A.value.scrollLeft>Y)?Math.min(m()+1,O()-1):Math.max(m()-1,0))},p;
window.IntersectionObserver&&(p=new IntersectionObserver(function(t){t=_.Z(t);for(var g=t.next();!g.done;g=t.next())if(g.value.isIntersecting){if(c){c=!1;break}d()}else W(M)},{threshold:.2}));
_.d6(function(){if(A.value){var t=(J?-1:1)*(y()/O()+12)*(b()&&p?M:m());typeof A.value.scrollTo==="function"?A.value.scrollTo({left:t,behavior:"smooth"}):A.value.scrollLeft=t;Y=t;M=b()&&p?M:m()}},"s9rbgc");
var k,R=function(t){k=t};
_.PN(function(){var t;(t=S)==null||t.disconnect();var g;(g=p)==null||g.disconnect()});
var L=function(t){t=m()+t;t>=0&&t<O()&&(c=!0,W(t))};
return _.q("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:w,"on:click":_.um(function(t){if(_.hB(_.ki(t),w.value,["BUTTON".toString()])||!k)return!1;_.JA().resolve(_.ZQ).resolveCommand(k,{forceClickLogging:!0});return!1}),
"on:touchstart":_.um(function(){u(!0);return!1}),
"on:touchend":_.um(function(){p||d();u(!1);return!1}),
hidden:function(){var t,g;return!((t=C())==null?0:(g=t.carouselItems)==null?0:g.length)}},_.q("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.q(_.T,{cond:function(){return C().carouselTitles},
then:function(t){return _.q(_.V4,{data:function(){return t()[b()&&p?M:m()]}},{carouselTitleViewModel:function(g){return _.q(XhT,{data:g.data,
handleCarouselNavigation:L,numItems:O,selectedIndex:m})}})}})),_.q("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:A},_.q("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+y()+"px;"}},_.q(_.T,{cond:function(){return C().carouselItems},
then:function(t){return _.q(_.Vq,{each:t},function(g,ii){return _.q(_.V4,{data:function(){return g}},{carouselItemViewModel:function(FW){return _.q(oTv,{data:FW.data,
itemIndex:ii,selectedIndex:m,indexUpdatedCallback:R,observer:p,title:function(){a:{var cZ=ii();var eZ,ND=(eZ=C())==null?void 0:eZ.carouselTitles;if(ND&&(cZ=ND[cZ])){var bi;cZ=(bi=_.e(cZ,lA9))==null?void 0:bi.title;break a}cZ=void 0}return cZ}})}})})}}))))},"hl"),"yt-video-metadata-carousel-view-model",{props:{data:_.GH}});var Q6T=_.E("web_action_buttons_update_owner_width")?32:12,Vr=function(){var H=_.X.apply(this,arguments)||this;H.isHovering=!1;H.enableColorSampling=_.E("web_delhi_colorful_sd");H.metadataBadgesInDescription=_.E("web_metadata_badges_in_description");H.descriptionCollapsed=!0;H.useFadedScrimDescription=_.E("kevlar_enable_faded_scrim_on_description");H.skinnyMode=!1;H.playlist=!1;H.isDark=document.documentElement.hasAttribute("dark");H.disableVideoOwnerOnTap=_.E("swatchie_video_owner_on_tap_ks");H.swatcherooDelayLoad=
_.E("swatcheroo_enable_ghost_cards");H.primaryMenuWidth=0;H.videoId="";H.titleHeadlineXs=_.E("web_watch_typography_title_headline_xs");H.titleHeadlineS=_.E("web_watch_typography_title_headline_s");H.titleHeadlineM=_.E("web_watch_typography_title_headline_m");H.titleHashtagBlackLinkified=_.E("web_title_hashtag_black_linkified");H.titleHashtagGreyLinkified=_.E("web_title_hashtag_grey_linkified");H.actionButtonsUpdateOwnerWidth=_.E("web_action_buttons_update_owner_width");H.shouldForceIconOnly=!1;H.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};H.isFullscreen=!1;H.isTheaterMode=!1;return H};
_.G(Vr,_.X);_.F=Vr.prototype;_.F.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.F.updateOwnerAndDescriptionPosition=function(){_.E("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.rF(this.bottomRowElement,this.ownerElement)):(_.rF(this.bottomRowElement,this.descriptionElement),_.rF(this.topRowElement,this.ownerElement)))};
_.F.titleOnTap=function(H){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.ww(_.Ar(H)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var C;((C=window.getSelection())==null?0:C.toString().length)||this.handleExpandDescriptionCommands()}};
_.F.videoOwnerOnTap=function(H){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.ww(_.Ar(H)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.F.detached=function(){var H=this,C;return _.z(function(S){(C=H.resizeObserver)==null||C.disconnect();_.oT(S)})};
_.F.maybeAttachResizeObserver=function(){var H=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.I$(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){H.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.F.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var H=this.hostElement.clientWidth,C=Math.max(this.largerItemWrap?400:350,H/2-Q6T);_.E("web_action_buttons_update_owner_width")&&(C=this.ownerElement.clientWidth+Q6T);this.actionsOnSeparateLine=this.primaryMenuWidth>H-C?!0:!1}};
_.F.stripAttributedDescription=function(H){return{content:H.content.replace(/[\r\n]{2,}/g,"\n")}};
_.F.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.E("web_modern_buttons"),forceIconButton:!_.E("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:_.E("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"}}}};
_.F.videoPrimaryInfoRendererChanged=function(){var H;if((H=this.videoPrimaryInfoRenderer)==null?0:H.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.F.videoSecondaryInfoRendererChanged=function(){var H,C;(C=(H=this.descriptionInlineExpander).collapse)==null||C.call(H);this.descriptionExpandClientVe=_.y4(110509);this.descriptionCollapseClientVe=_.y4(110510);H=_.Dg();C=_.BM();H&&C&&(_.E("combine_ve_grafts")?(_.hd(_.lJ(),this.descriptionExpandClientVe,C),_.hd(_.lJ(),this.descriptionCollapseClientVe,C)):_.xR(H,C,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.F.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.F.updateTopLevelIconsOnly=function(){var H=this;_.E("top_level_update_killswitch")||this.menu&&_.rT.addLowPriorityJob(function(){H.menu.topLevelIconsOnly=H.skinnyMode},_.YB("swathceroo_delay_flexible_menu_update",100))};
_.F.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.E("web_action_buttons_minimize_subscribe")};
_.F.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.F.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.F.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.F.onYtTextInlineExpanderExpandedChanged=function(){if(!_.E("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var H,C;(C=(H=this.structuredDescriptionContentRendererElement).resize)==null||C.call(H)}};
_.F.onRenderStamperFinished=function(H){(H==null?void 0:H.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.F.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.F.onYtExpanderLessTapped=function(){var H,C=(H=this.videoSecondaryInfoRenderer)==null?void 0:H.showLessCommand;C&&this.ytComponentBehavior.resolveCommand(C)};
_.F.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.F.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.F.onDescriptionClick=function(H){if(!_.ww(_.Ar(H)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var C;((C=window.getSelection())==null?0:C.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.E("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.F.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.F.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.F.logCollapseClick=function(){var H=_.Dg();H&&this.descriptionCollapseClientVe&&_.Sp(H,this.descriptionCollapseClientVe)};
_.F.logExpandClick=function(){var H=_.Dg();H&&this.descriptionExpandClientVe&&_.Sp(H,this.descriptionExpandClientVe)};
_.F.collapseDescription=function(){this.descriptionCollapsed=!0};
_.F.scrollToTopOfContainer=function(){_.q3(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.F.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.F.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.F.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.F.resize=function(){if(this.descriptionInlineExpander){var H,C;(C=(H=this.descriptionInlineExpander).resize)==null||C.call(H)}else _.Bn(new _.X0("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var S;(S=this.menu)==null||S.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.F.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var H,C,S,w,A=_.E("web_action_buttons_update_owner_width")?(S=(H=_.mY(this.menu).querySelector("#button-shape"))==null?void 0:H.clientWidth)!=null?S:0:(w=(C=_.mY(this.menu).querySelector("#button"))==null?void 0:C.clientWidth)!=null?w:0,J,c;H=((c=(J=_.mY(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:J.clientWidth)!=null?c:0)+8+A;var Y,M;A=(M=(Y=_.mY(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:Y.children.length)!=null?M:2;H<=8*A||(this.primaryMenuWidth=H)}};
_.F.onYtUpdateTitleAction=function(H){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.e(H,AbT).title)};
_.F.onYtUpdateDescriptionAction=function(H){if(H=_.e(H,_.mhn)){var C,S=!((C=this.videoSecondaryInfoRenderer)==null||!C.attributedDescription);H.isEmpty||!H.description&&!H.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):H.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",H.attributedDescription):H.description&&(S?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.BI(H.description)):this.set("videoSecondaryInfoRenderer.description",H.description))}};
_.F.onYtDarkModeToggledAction=function(H){this.isDark=H};
_.F.registerPanel=function(){if(!_.E("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var H=_.E("web_watch_imax_theater_mode")&&this.isTheaterMode;H=_.E("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||H;var C=_.JA().resolve(_.jD);C&&!H&&C.registerPanel("engagement-panel-structured-description",this)}};
_.F.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.F.parseColorSamplingData=function(){var H;if(_.E("web_delhi_colorful_sd")&&((H=this.structuredDescriptionContentRenderer)==null?0:H.items)&&(H=this.structuredDescriptionContentRenderer.items.find(function(A){return!!_.e(A,B1)}))){var C,S;
this.hoverColor={lightTheme:(C=_.e(H,B1))==null?void 0:C.lightThemeColorPalette,darkTheme:(S=_.e(H,B1))==null?void 0:S.darkThemeColorPalette};var w;this.hoverText=(w=_.e(H,B1))==null?void 0:w.colorSampledDescriptionBodyText}};
_.F.updateHoverColor=function(){if(_.E("web_delhi_colorful_sd")){var H=this.hoverColor,C={},S;H=(S=this.isDark?H==null?void 0:H.darkTheme:H==null?void 0:H.lightTheme)!=null?S:{};S=_.Z(u9h);for(var w=S.next();!w.done;w=S.next()){w=w.value;var A=H[w];C["--yt-saturated-"+_.vM(w)]=A?_.aw(A):"initial"}_.Ed(this.hostElement,C)}};
_.F.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.F.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.F.showPanel=function(H){this.expandDescription();var C=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;C.resize();var S,w=H==null?void 0:(S=H.sectionListEngagementPanelExtras)==null?void 0:S.scrollToItemSectionIdentifier;w?_.rT.addJob(function(){C==null||C.scrollToSection(w)},8):this.scrollToTopOfContainer()};
_.F.isVisible=function(){return!this.descriptionCollapsed};
_.F.getReloadContinuation=function(){};
_.F.hidePanel=function(){};
_.F.updatePanel=function(){};
_.JJ.Object.defineProperties(Vr.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var H;return _.E("web_delhi_colorful_sd")&&(H=this.structuredDescriptionContentRenderer)!=null&&H.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(C){return!_.e(C,B1)&&!_.e(C,ZXT)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.structuredDescriptionContentRendererComputed)!=null&&H.items){var C;H=_.Z((C=this.structuredDescriptionContentRendererComputed)==null?void 0:C.items);for(C=H.next();!C.done;C=H.next())if(C=_.e(C.value,_.Zod))return C}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.videoPrimaryInfoRenderer)==null?0:H.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var H,C,S;return!!((H=this.videoSecondaryInfoRenderer)==null?0:(C=H.owner)==null?0:(S=C.videoOwnerRenderer)==null?0:S.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var H,C;if((H=this.videoSecondaryInfoRenderer)==null?0:(C=H.attributedDescription)==null?0:C.content){var S,w;return(w=this.stripAttributedDescription((S=this.videoSecondaryInfoRenderer)==null?void 0:S.attributedDescription))!=null?w:{runs:[]}}}if(_.E("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var A,J,c,Y;return(Y=(c=(A=this.videoSecondaryInfoRenderer)==
null?void 0:A.description)!=null?c:(J=this.videoSecondaryInfoRenderer)==null?void 0:J.attributedDescription)!=null?Y:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var H,C;return(C=(H=this.videoSecondaryInfoRenderer)==null?void 0:H.headerRuns)!=null?C:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.commentsEntryPointHeaderRenderer)==null||!H.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.videoMetadataCarousel)==null||!H.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.YB("swatchie_desc_lines",3):this.hasTeaserCarousel?2:3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var H,C,S=Object.assign({},(H=this.videoSecondaryInfoRenderer)==null?void 0:(C=H.metadataRowContainer)==null?void 0:C.metadataRowContainerRenderer);if(S&&S.rows&&S.collapsedItemCount!==void 0&&!(S.rows.length<=S.collapsedItemCount))return S.rows=S.rows.slice(S.collapsedItemCount),S.collapsedItemCount=0,S}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var H,C,S=Object.assign({},(H=this.videoSecondaryInfoRenderer)==null?void 0:(C=H.metadataRowContainer)==null?void 0:C.metadataRowContainerRenderer);if(S&&S.rows&&S.collapsedItemCount!==void 0)return S.rows=S.rows.slice(0,S.collapsedItemCount),S.collapsedItemCount=S.rows.length,S}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var H,C;return!!((H=this.structuredDescriptionContentRendererComputed)==null?0:(C=H.items)==null?0:C.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRendererComputed)return null;var H;return(H=this.videoSecondaryInfoRenderer)==null?void 0:H.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var H,C,S;return((H=this.videoSecondaryInfoRenderer)==null?0:(C=H.owner)==null?0:(S=C.videoOwnerRenderer)==null?0:S.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var H,C,S,w;return!!((H=this.videoPrimaryInfoRenderer)==null?0:(C=H.videoActions)==null?0:(S=C.menuRenderer)==null?0:(w=S.flexibleItems)==null?0:w.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.jJ(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.jJ(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var H=this;if(_.E("web_title_hashtag_grey_delinkified")){var C,S=_.hb.unsafeClone((C=this.videoPrimaryInfoRenderer)==null?void 0:C.title);(C=S==null?void 0:S.runs)&&C.forEach(function(w){if(w==null?0:w.navigationEndpoint)w.textColor=4284506208,H.isDark&&(w.textColor=4289374890)});
return S}return(S=this.videoPrimaryInfoRenderer)==null?void 0:S.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.E("web_title_hashtag_black_delinkified")||_.E("web_title_hashtag_grey_delinkified")}}});
Vr.prototype.updateHoverColor=Vr.prototype.updateHoverColor;Vr.prototype.parseColorSamplingData=Vr.prototype.parseColorSamplingData;Vr.prototype.resetDescriptionState=Vr.prototype.resetDescriptionState;Vr.prototype.registerPanel=Vr.prototype.registerPanel;Vr.prototype.onYtExpanderLessTapped=Vr.prototype.onYtExpanderLessTapped;Vr.prototype.onYtExpanderMoreTapped=Vr.prototype.onYtExpanderMoreTapped;Vr.prototype.onRenderStamperFinished=Vr.prototype.onRenderStamperFinished;
Vr.prototype.onYtTextInlineExpanderExpandedChanged=Vr.prototype.onYtTextInlineExpanderExpandedChanged;Vr.prototype.onYtTextInlineExpanderCollapseClicked=Vr.prototype.onYtTextInlineExpanderCollapseClicked;Vr.prototype.onYtTextInlineExpanderExpandClicked=Vr.prototype.onYtTextInlineExpanderExpandClicked;Vr.prototype.moveActionsElement=Vr.prototype.moveActionsElement;Vr.prototype.updateShouldForceIconOnly=Vr.prototype.updateShouldForceIconOnly;Vr.prototype.updateTopLevelIconsOnly=Vr.prototype.updateTopLevelIconsOnly;
Vr.prototype.structuredDescriptionContentRendererChanged=Vr.prototype.structuredDescriptionContentRendererChanged;Vr.prototype.videoSecondaryInfoRendererChanged=Vr.prototype.videoSecondaryInfoRendererChanged;Vr.prototype.videoPrimaryInfoRendererChanged=Vr.prototype.videoPrimaryInfoRendererChanged;Vr.prototype.maybeUpdateActionsOnSeparateLine=Vr.prototype.maybeUpdateActionsOnSeparateLine;Vr.prototype.updateOwnerAndDescriptionPosition=Vr.prototype.updateOwnerAndDescriptionPosition;
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],Vr.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Vr.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Vr.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Vr.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.v(_.q$),_.K("design:type",Object)],Vr.prototype,"ytdReduxBehavior",void 0);_.D([_.lA("#above-the-fold"),_.K("design:type",HTMLElement)],Vr.prototype,"aboveTheFoldContainer",void 0);_.D([_.lA("#menu ytd-menu-renderer"),_.K("design:type",Object)],Vr.prototype,"menu",void 0);_.D([_.lA("#description-inline-expander"),_.K("design:type",Object)],Vr.prototype,"descriptionInlineExpander",void 0);
_.D([_.lA("#faded-structured-description"),_.K("design:type",Object)],Vr.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.D([_.lA("#structured-description"),_.K("design:type",Object)],Vr.prototype,"structuredDescriptionContentRendererElement",void 0);_.D([_.lA("#title"),_.K("design:type",HTMLElement)],Vr.prototype,"titleElement",void 0);_.D([_.lA("#description"),_.K("design:type",HTMLElement)],Vr.prototype,"descriptionElement",void 0);
_.D([_.lA("#description-interaction"),_.K("design:type",Object)],Vr.prototype,"descriptionInteraction",void 0);_.D([_.lA("#owner"),_.K("design:type",HTMLElement)],Vr.prototype,"ownerElement",void 0);_.D([_.lA("#top-row"),_.K("design:type",HTMLElement)],Vr.prototype,"topRowElement",void 0);_.D([_.lA("#bottom-row"),_.K("design:type",HTMLElement)],Vr.prototype,"bottomRowElement",void 0);_.D([_.lA("#actions"),_.K("design:type",HTMLElement)],Vr.prototype,"actionsElement",void 0);
_.D([_.lA("#bottom-actions"),_.K("design:type",HTMLElement)],Vr.prototype,"bottomActionsElement",void 0);_.D([_.lA("#ytd-watch-info-text"),_.K("design:type",Object)],Vr.prototype,"watchInfoTextElement",void 0);_.D([_.V(),_.K("design:type",Object)],Vr.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],Vr.prototype,"videoPrimaryInfoRenderer",void 0);_.D([_.V(),_.K("design:type",Object)],Vr.prototype,"videoSecondaryInfoRenderer",void 0);
_.D([_.V(),_.K("design:type",Object)],Vr.prototype,"commentsEntryPointHeaderRenderer",void 0);_.D([_.V(),_.K("design:type",Object)],Vr.prototype,"videoMetadataCarousel",void 0);_.D([_.V(),_.K("design:type",Object)],Vr.prototype,"structuredDescriptionContentRenderer",void 0);_.D([_.l("structuredDescriptionContentRenderer"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vr.prototype,"structuredDescriptionContentRendererComputed",null);
_.D([_.V(),_.K("design:type",Object)],Vr.prototype,"videoSummary",void 0);_.D([_.V(),_.K("design:type",Object)],Vr.prototype,"merchShelf",void 0);_.D([_.V(),_.K("design:type",Object)],Vr.prototype,"infoPanelBelowMetadata",void 0);_.D([_.V(),_.K("design:type",Object)],Vr.prototype,"hoverColor",void 0);_.D([_.V(),_.K("design:type",Object)],Vr.prototype,"hoverText",void 0);_.D([_.V(),_.K("design:type",Object)],Vr.prototype,"isHovering",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Vr.prototype,"enableColorSampling",void 0);_.D([_.l("structuredDescriptionContentRendererComputed"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vr.prototype,"productShelf",null);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Vr.prototype,"metadataBadgesInDescription",void 0);_.D([_.l("videoPrimaryInfoRenderer"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vr.prototype,"shouldHideBadges",null);
_.D([_.l("productShelf","descriptionCollapsed"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Vr.prototype,"shouldShowProductShelf",null);_.D([_.V(),_.K("design:type",Boolean)],Vr.prototype,"isWatchFlexy",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Vr.prototype,"descriptionCollapsed",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],Vr.prototype,"useFadedScrimDescription",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Vr.prototype,"skinnyMode",void 0);_.D([_.V({reflectToAttribute:!0}),_.l("videoSecondaryInfoRenderer"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vr.prototype,"largerItemWrap",null);_.D([_.V(),_.K("design:type",Object)],Vr.prototype,"playlist",void 0);_.D([_.V(),_.K("design:type",Object)],Vr.prototype,"clarifyBox",void 0);_.D([_.V(),_.K("design:type",Object)],Vr.prototype,"playerAds",void 0);
_.D([_.V(),_.K("design:type",Boolean)],Vr.prototype,"isDark",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],Vr.prototype,"actionsOnSeparateLine",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Vr.prototype,"disableVideoOwnerOnTap",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Vr.prototype,"swatcherooDelayLoad",void 0);_.D([_.V(),_.K("design:type",Boolean)],Vr.prototype,"suppressTopLevelMetadataRows",void 0);
_.D([_.V(),_.K("design:type",Object)],Vr.prototype,"primaryMenuWidth",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Vr.prototype,"videoId",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Vr.prototype,"titleHeadlineXs",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Vr.prototype,"titleHeadlineS",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Vr.prototype,"titleHeadlineM",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Vr.prototype,"titleHashtagBlackLinkified",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Vr.prototype,"titleHashtagGreyLinkified",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Vr.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.D([_.V(),_.K("design:type",Object)],Vr.prototype,"shouldForceIconOnly",void 0);
_.D([_.XJ("skinnyMode"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Vr.prototype,"updateOwnerAndDescriptionPosition",null);_.D([_.XJ("skinnyMode"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Vr.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.D([_.l("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vr.prototype,"descriptionText",null);_.D([_.l("videoSecondaryInfoRenderer.headerRuns"),_.K("design:type",Array),_.K("design:paramtypes",[])],Vr.prototype,"headerRuns",null);
_.D([_.V({value:!1}),_.l("commentsEntryPointHeaderRenderer"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vr.prototype,"hasTeaser",null);_.D([_.V({value:!1,reflectToAttribute:!0}),_.l("videoMetadataCarousel"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vr.prototype,"hasTeaserCarousel",null);_.D([_.V({value:3}),_.l("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vr.prototype,"descriptionMaxLines",null);
_.D([_.l("videoSecondaryInfoRenderer.metadataRowContainer"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vr.prototype,"collapsibleMetadataRows",null);_.D([_.l("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vr.prototype,"alwaysVisibleMetadataRows",null);
_.D([_.l("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Vr.prototype,"hasInlineStructuredDescription",null);_.D([_.l("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Vr.prototype,"showInlineStructuredDescription",null);
_.D([_.l("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vr.prototype,"descriptionExpandCommand",null);_.D([_.l("videoSecondaryInfoRenderer.owner"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vr.prototype,"videoOwnerCommand",null);_.D([_.V({reflectToAttribute:!0}),_.l("videoPrimaryInfoRenderer.videoActions"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Vr.prototype,"flexMenuEnabled",null);
_.D([_.V({selector:_.Ku,reflectToAttribute:!0}),_.K("design:type",Object)],Vr.prototype,"isFullscreen",void 0);_.D([_.V({selector:_.Dl,reflectToAttribute:!0}),_.K("design:type",Object)],Vr.prototype,"isTheaterMode",void 0);_.D([_.l("descriptionText","useFadedScrimDescription"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Vr.prototype,"showAttributedStringDescription",null);
_.D([_.l("descriptionText","useFadedScrimDescription"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Vr.prototype,"showFormattedStringDescription",null);_.D([_.l("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Vr.prototype,"showFadedStructuredDescription",null);
_.D([_.XJ("videoPrimaryInfoRenderer"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Vr.prototype,"videoPrimaryInfoRendererChanged",null);_.D([_.l("videoPrimaryInfoRenderer.title"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vr.prototype,"videoTitle",null);_.D([_.l("videoPrimaryInfoRenderer"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vr.prototype,"noEndpoints",null);
_.D([_.XJ("videoSecondaryInfoRenderer"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Vr.prototype,"videoSecondaryInfoRendererChanged",null);_.D([_.fx("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Vr.prototype,"structuredDescriptionContentRendererChanged",null);
_.D([_.fx("skinnyMode"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Vr.prototype,"updateTopLevelIconsOnly",null);_.D([_.fx("skinnyMode"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Vr.prototype,"updateShouldForceIconOnly",null);_.D([_.fx("skinnyMode"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Vr.prototype,"moveActionsElement",null);
_.D([_.Gz("yt-text-inline-expander-expand-clicked"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Vr.prototype,"onYtTextInlineExpanderExpandClicked",null);_.D([_.Gz("yt-text-inline-expander-collapse-clicked"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Vr.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.D([_.Gz("yt-text-inline-expander-expanded-changed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Vr.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.D([_.Gz("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],Vr.prototype,"onRenderStamperFinished",null);
_.D([_.Gz("yt-expander-more-tapped"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Vr.prototype,"onYtExpanderMoreTapped",null);_.D([_.Gz("yt-expander-less-tapped"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Vr.prototype,"onYtExpanderLessTapped",null);
_.D([_.fx("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Vr.prototype,"registerPanel",null);_.D([_.fx("videoSecondaryInfoRenderer"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Vr.prototype,"resetDescriptionState",null);
_.D([_.fx("structuredDescriptionContentRenderer"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Vr.prototype,"parseColorSamplingData",null);_.D([_.fx("hoverColor","isDark"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Vr.prototype,"updateHoverColor",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-watch-metadata"})],Vr);
_.B(Vr,"ytd-watch-metadata",function(){if(etD!==void 0)return etD;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return etD=H},{mode:2});_.rET=function(H){_.Op.call(this);this.JSC$22982_watchApi=H;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;dnT(this);PE9(this);$n7(this);ph9(this);kAP(this);htc(this);nTt(this)};
_.G(_.rET,_.Op);var $n7=function(H){var C=function(){_.E("kevlar_is_pupi_enabled")||of(H)};
H.JSC$22982_watchApi.getRoot().addEventListener("yt-player-updated",C);H.addOnDisposeCallback(function(){H.JSC$22982_watchApi.getRoot().removeEventListener("yt-player-updated",C)})},kAP=function(H){if(_.E("kevlar_endscreen_auto_theater_mode")){var C=H.JSC$22982_watchApi.subscribeToActiveChanged(function(){BhT(H)},!1);
H.addOnDisposeCallback(C)}},dnT=function(H){var C,S,w,A,J;
_.z(function(c){if(c.nextAddress==1)return c.yield(H.JSC$22982_watchApi.playerApi,2);C=c.yieldResult;S=function(Y){Y=!!Y;DnB(H)&&(Y=Y?2:1,_.l3.getInstance().setState(Y,!0,!1))};
w=function(Y){Y&&_.f4D(_.AG().getState())&&(_.q3(H.JSC$22982_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),H.temporaryTheaterMode=!0)};
A=function(Y){_.E("kevlar_player_update_autonav_on_new_data")&&Y.type==="newdata"&&(_.E("kevlar_is_pupi_enabled")||of(H))};
J=function(Y){H.onPlayerStateChange(Y)};
_.E("kevlar_endscreen_auto_theater_mode")&&C.addEventListener("onAutonavCancelled",w);C.addEventListener("onAutonavChangeRequest",S);C.addEventListener("onVideoDataChange",A);C.addEventListener("onStateChange",J);H.addOnDisposeCallback(function(){C.removeEventListener("onAutonavChangeRequest",S);C.removeEventListener("onVideoDataChange",A);C.removeEventListener("onStateChange",J);_.E("kevlar_endscreen_auto_theater_mode")&&C.removeEventListener("onAutonavCancelled",w)});
_.oT(c)})},PE9=function(H){H.JSC$22982_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){H.autonavCancelledBySignal=!0;
_.E("kevlar_is_pupi_enabled")||of(H)});
H.JSC$22982_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(C,S,w){S&&of(H,w)});
H.JSC$22982_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){DnB(H)&&_.l3.getInstance().setState(2,!0,!0)});
H.JSC$22982_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){DnB(H)&&_.l3.getInstance().setState(1,!0,!0)});
H.addOnDisposeCallback(function(){H.JSC$22982_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");H.JSC$22982_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");H.JSC$22982_watchApi.unregisterActionHandler("yt-enable-autoplay-command");H.JSC$22982_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},ph9=function(H){var C=H.JSC$22982_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){nTt(H)}),S=H.JSC$22982_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){htc(H)});
H.addOnDisposeCallback(function(){H.JSC$22982_watchApi.unsubscribeByKey(C);H.JSC$22982_watchApi.unsubscribeByKey(S)})},nTt=function(H){H.autonavCancelledBySignal=!1;
_.E("kevlar_is_pupi_enabled")||of(H)},htc=function(H){var C=H.JSC$22982_watchApi.getWatchNextResponse(),S,w;
var A=(C=(w=_.e(C==null?void 0:(A=C.playerOverlays)==null?void 0:(S=A.playerOverlayRenderer)==null?void 0:S.autonavToggle,_.yv1))==null?void 0:w.enabled)?2:1;_.E("kevlar_is_pupi_enabled")?_.l3.getInstance().setState(A,!1,!1):of(H);_.E("web_persist_server_autonav_state_on_client")&&typeof C==="boolean"&&_.IJZ(A===2)},DnB=function(H){if(H.autonavCancelledBySignal)return!1;
var C,S,w,A;return!!((C=H.JSC$22982_watchApi.getWatchNextResponse())==null?0:(S=C.contents)==null?0:(w=S.twoColumnWatchNextResults)==null?0:(A=w.autoplay)==null?0:A.autoplay)};
_.rET.prototype.onPlayerStateChange=function(H){if(H===0){H=!_.l3.getInstance().isAutoplaySetExplicitly();var C=this.JSC$22982_watchApi.getWatchNextResponse(),S,w,A,J;C=_.e(C==null?void 0:(S=C.contents)==null?void 0:(w=S.twoColumnWatchNextResults)==null?void 0:(A=w.autoplay)==null?void 0:(J=A.autoplay)==null?void 0:J.autoplayExplicitChoiceDialogRenderer,_.pgV);DnB(this)&&H&&C&&_.eU.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:C},popupType:"DIALOG"}})}else BhT(this)};
var BhT=function(H){H.temporaryTheaterMode&&(H.temporaryTheaterMode=!1,_.q3(H.JSC$22982_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},of=function(H,C){C=C===void 0?!1:C;
var S;_.z(function(w){if(w.nextAddress==1)return w.yield(H.JSC$22982_watchApi.playerApi,2);S=w.yieldResult;DnB(H)?S.setAutonavState(_.l3.getInstance().getState(),C):S.setAutonavState(1,C);_.oT(w)})};var Klc={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"};_.LlD=function(H){_.Op.call(this);var C=this;this.JSC$22987_watchApi=H;var S=this.JSC$22987_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){tI9(C)});
this.addOnDisposeCallback(function(){C.JSC$22987_watchApi.unsubscribeByKey(S)});
tI9(this)};
_.G(_.LlD,_.Op);var tI9=function(H){var C=H.JSC$22987_watchApi.getPlayerResponse(),S=H.JSC$22987_watchApi.getWatchNextResponse();if(!_.w6U(C==null?void 0:C.playabilityStatus,S==null?void 0:S.playerOverlays)){var w;var A=C==null?void 0:(w=C.playabilityStatus)==null?void 0:w.errorScreen}H.JSC$22987_watchApi.provideRenderingData("ERROR_SCREEN",A)};var gT2=_.n(function(H){var C=H.data;H=_.E("web_watch_video_details_hide_subtitle");var S=_.E("web_watch_video_details_single_line_title"),w=_.um(function(){var Y=C().onTap;Y&&_.JA().resolve(_.ZQ).resolveCommand(Y)}),A={},J={},c={};
return _.q("yt-player-overlay-video-details-renderer",{class:_.eJ("ytPlayerOverlayVideoDetailsRendererHost",(A.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.E("web_watch_video_details_transparent_background"),A)),"on:click":w,role:"button"},_.q("h2",{class:_.eJ("ytPlayerOverlayVideoDetailsRendererTitle",(J.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return S},J))},_.q(_.uZ,{text:function(){return C().title}})),_.q("div",{class:_.eJ("ytPlayerOverlayVideoDetailsRendererSubtitle",
(c.ytPlayerOverlayVideoDetailsRendererHideSubtitle=H,c))},_.q(_.uZ,{text:function(){return C().subtitle}})))},"il");var OB={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},UnT=_.n(function(H){var C=H.data;var S=_.Lu(_.Ku),w=_.E("web_watch_action_bar_resize_buttons"),A=_.E("web_watch_video_action_dsdvb"),J=_.E("delhi_modern_web_player_icons")&&!_.E("enable_web_delhi_icons");H=_.E("delhi_modern_web_player_disable_frosted_glass");var c=_.E("delhi_modern_web_player_compact_controls"),Y=function(){return c?
{size:"S",iconPosition:"icon-only"}:w&&!S()?{size:"M"}:void 0},M={};
return _.q("yt-player-quick-action-buttons",{class:_.eJ("ytPlayerQuickActionButtonsHost",(M.ytPlayerQuickActionButtonsHostCompactControls=function(){return!S()||c},M.ytPlayerQuickActionButtonsHostDisableBackdropFilter=H,M))},_.q(_.Vq,{each:function(){var m=C();
if(J){m=JSON.parse(JSON.stringify(m));for(var W=_.Z(m),y=W.next();!y.done;y=W.next()){var N=y.value,b=void 0;y=_.e((b=_.e(N,_.wH))==null?void 0:b.toggleButtonViewModel,_.mk);var u=void 0;b=_.e((u=_.e(N,_.jf))==null?void 0:u.toggleButtonViewModel,_.mk);u=_.e(N,_.qc);N=_.e(N,_.mk);if(y)b=_.e(y.defaultButtonViewModel,_.qc),y=_.e(y.toggledButtonViewModel,_.qc),b&&b.iconName&&(b.iconName=OB[b.iconName]),y&&y.iconName&&(y.iconName=OB[y.iconName]);else if(b)y=_.e(b.defaultButtonViewModel,_.qc),b=_.e(b.toggledButtonViewModel,
_.qc),y&&y.iconName&&(y.iconName=OB[y.iconName]),b&&b.iconName&&(b.iconName=OB[b.iconName]);else if(u)u.iconName&&(u.iconName=OB[u.iconName]);else if(N){y=_.e(N.defaultButtonViewModel,_.qc);b=_.e(N.toggledButtonViewModel,_.qc);N=void 0;if((N=y)==null?0:N.iconName)y.iconName=OB[y.iconName];y=void 0;if((y=b)==null?0:y.iconName)b.iconName=OB[b.iconName]}}}A&&(m=xr9(m));return m}},function(m){return _.q(_.V4,{data:function(){return m}},{buttonViewModel:function(W){return _.q(_.rc,{data:W.data,
buttonOverrides:Y})},
likeButtonViewModel:function(W){return _.q(_.Mv,{data:W.data,buttonShapeOverrideables:Y})},
dislikeButtonViewModel:function(W){return _.q(_.zu,{data:W.data,buttonShapeOverrideables:Y})},
toggleButtonViewModel:function(W){return _.q(_.Jv,{data:W.data,buttonShapeOverrides:Y})}})}))},"jl");_.IYc=function(H){_.Op.call(this);var C=this;this.JSC$22991_watchApi=H;H=_.Z(_.mB({},void 0,"n9wCVe"));this.quickActionsViewModel=H.next().value;this.setQuickActionsViewModel=H.next().value;H=_.Z(_.mB({},void 0,"JD2YUd"));this.playerOverlayVideoDetailsRenderer=H.next().value;this.setPlayerOverlayVideoDetailsRenderer=H.next().value;var S=this.JSC$22991_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){RtT(C)});
this.addOnDisposeCallback(function(){C.JSC$22991_watchApi.unsubscribeByKey(S)});
RtT(this)};
_.G(_.IYc,_.Op);
var RtT=function(H){var C,S,w,A,J,c,Y,M,m,W,y,N,b,u;_.z(function(O){if(O.nextAddress==1)return O.yield(H.JSC$22991_watchApi.playerApi,2);C=O.yieldResult;S=H.JSC$22991_watchApi.getWatchNextResponse();J=(w=S)==null?void 0:(A=w.playerOverlays)==null?void 0:A.playerOverlayRenderer;Y=_.e((c=J)==null?void 0:c.fullscreenQuickActionsBar,_.WkP);(m=(M=H).setQuickActionsViewModel)==null||m.call(M,Y||{});Y&&aYB(H,C);N=(W=J)==null?void 0:(y=W.videoDetails)==null?void 0:y.playerOverlayVideoDetailsRenderer;(u=(b=
H).setPlayerOverlayVideoDetailsRenderer)==null||u.call(b,N||{});N&&xnv(H,C);_.oT(O)})},aYB=function(H,C){if(!H.quickActionButtonsContainer)if(C.setFullscreenQuickActions){H.quickActionButtonsContainer=document.createElement("div");
C.setFullscreenQuickActions(H.quickActionButtonsContainer);var S=function(){return H.quickActionsViewModel().quickActionButtons||[]},w=_.dh(H.quickActionButtonsContainer,function(){return _.q(UnT,{data:S})},"kl");
H.addOnDisposeCallback(function(){C.setFullscreenQuickActions(void 0);w()})}else _.Bn(new _.X0("setFullscreenQuickActions not defined",{playerApi:Object.keys(C),
isReady:C.isReady(),appState:C.getAppState()}))},xnv=function(H,C){if(!H.playerOverlayVideoDetailsRendererContainer)if(C.setPlayerOverlayVideoDetailsRenderer){H.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
C.setPlayerOverlayVideoDetailsRenderer(H.playerOverlayVideoDetailsRendererContainer);var S=_.dh(H.playerOverlayVideoDetailsRendererContainer,function(){return _.q(gT2,{data:H.playerOverlayVideoDetailsRenderer})},"ll");
H.addOnDisposeCallback(function(){C.setPlayerOverlayVideoDetailsRenderer(void 0);S()})}else _.Bn(new _.X0("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(C),
isReady:C.isReady(),appState:C.getAppState()}))};_.X5=function(H){_.Op.call(this);var C=this;this.JSC$22997_watchApi=H;this.JSC$22997_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;H=_.Uf(_.AG(),_.Ku,function(S){C.onFullscreenChanged(S)});
this.addOnDisposeCallback(H);H=_.Uf(_.AG(),_.kX,function(S){C.onWatchScroll(S)});
this.addOnDisposeCallback(H);_.E("kevlar_watch_while_v2")&&(H=_.Uf(_.AG(),_.Dy,function(S){Hv4(C,S)}),this.addOnDisposeCallback(H));
iv4(this);C5P(this);SEt();this.onWatchScroll(_.kX(_.AG().getState()));_.Bh("START_IN_FULL_WINDOW_MODE")&&this.JSC$22997_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.G(_.X5,_.Op);var iv4=function(H){H.JSC$22997_watchApi.registerActionHandler("yt-fullscreen-change-action",function(C){var S=H.JSC$22997_watchApi.isActive();C&&!S||_.AG().dispatch(_.Md({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!C}}))});
H.addOnDisposeCallback(function(){H.JSC$22997_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},C5P=function(H){var C,S;
_.z(function(w){if(w.nextAddress==1)return w.yield(H.JSC$22997_watchApi.playerApi,2);C=w.yieldResult;S=function(){H.onFullerscreenEduClicked()};
C.addEventListener("onFullerscreenEduClicked",S);H.addOnDisposeCallback(function(){C.removeEventListener("onFullerscreenEduClicked",S)});
_.oT(w)})};
_.X5.prototype.onFullscreenChanged=function(H){var C=this,S;return _.z(function(w){if(w.nextAddress==1)return C.isFullscreen=!!_.ZR(),w.yield(C.JSC$22997_watchApi.playerApi,2);S=w.yieldResult;C.JSC$22997_miniplayerActive||S.setFauxFullscreen(C.isFullscreen);if(H&&(C.JSC$22997_watchApi.focusOnPlayer(),!C.fullerscreenEduButtonShownThisPlayback)){C.fullerscreenEduButtonShownThisPlayback=!0;var A=_.BU("yt-fullerscreen-edu-button-shown-count")||0;_.rm("yt-fullerscreen-edu-button-shown-count",A+1,31536E3);
C.updateFullerscreenEduButtonSubtleModeState()}_.oT(w)})};
var Hv4=function(H,C){var S;_.z(function(w){if(w.nextAddress==1)return H.JSC$22997_miniplayerActive=C,w.yield(H.JSC$22997_watchApi.playerApi,2);S=w.yieldResult;S.setFauxFullscreen(!H.JSC$22997_miniplayerActive&&H.isFullscreen);_.oT(w)})};
_.X5.prototype.onWatchScroll=function(H){var C=this,S,w;return _.z(function(A){if(A.nextAddress==1)return _.E("external_fullscreen_with_edu")?A.yield(C.JSC$22997_watchApi.playerApi,2):A.return();S=A.yieldResult;w=H<=0;C.shouldShowFullerscreenEdu!==w&&(C.shouldShowFullerscreenEdu=w,S.updateFullerscreenEduButtonVisibility(!C.shouldShowFullerscreenEdu));_.oT(A)})};
_.X5.prototype.onFullerscreenEduClicked=function(){this.JSC$22997_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var H=_.BU("yt-fullerscreen-edu-button-click-count")||0;_.rm("yt-fullerscreen-edu-button-click-count",H+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.X5.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var H=this,C,S,w,A,J,c;return _.z(function(Y){if(Y.nextAddress==1)return C=_.BU("yt-fullerscreen-edu-button-click-count")||0,S=_.BU("yt-fullerscreen-edu-button-shown-count")||0,w=_.YB("external_fullscreen_button_click_threshold"),A=_.YB("external_fullscreen_button_shown_threshold"),J=C>=w||S>=A,Y.yield(H.JSC$22997_watchApi.playerApi,2);c=Y.yieldResult;c.updateFullerscreenEduButtonSubtleModeState(J);_.oT(Y)})};
_.X5.prototype.disposeInternal=function(){_.Op.prototype.disposeInternal.call(this);var H=_.ZR();_.E("kevlar_exit_fullscreen_leaving_watch")&&H&&_.cH(H)};
var SEt=function(){if(_.E("web_watch_add_viewport_meta_tag")){var H=document.querySelector("meta[name=viewport]"),C=document.head;C&&!H&&(H=document.createElement("meta"),H.name="viewport",H.content="width=device-width, initial-scale=1.0, viewport-fit=cover",C.appendChild(H))}};_.ja4=function(H){_.Op.call(this);var C=this;this.JSC$23001_watchApi=H;this.jobId=0;this.pendingRequestId=void 0;var S=this.JSC$23001_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){sac(C)});
this.addOnDisposeCallback(function(){C.JSC$23001_watchApi.unsubscribeByKey(S)});
sac(this)};
_.G(_.ja4,_.Op);var wAr=function(H){_.rT.cancelJob(H.jobId);H.pendingRequestId=void 0},sac=function(H){wAr(H);
var C=HM9(H.JSC$23001_watchApi.getWatchNextResponse());if(C){var S=250,w,A=(w=_.e(C,_.mbW))==null?void 0:w.initialDelayMs;_.E("web_watch_updated_metadata_server_initial_delay")&&A&&(S=A);H.jobId=_.rT.addLowPriorityJob(function(){return H.fetchUpdatedMetadata(C)},S)}};
_.ja4.prototype.fetchUpdatedMetadata=function(H,C){var S=this,w,A,J,c,Y,M,m,W,y,N,b,u,O,d,p;return _.z(function(k){switch(k.nextAddress){case 1:C&&(w={continuation:C});if(!_.E("web_get_updated_metadata_fantasy_panel_continuation_params")){k.jumpTo(2);break}A=_.JA().resolve(_.jD);J="PAsports_fantasy";return k.yield(A.isVisible(J,!0),3);case 3:k.yieldResult&&(m=(Y=(c=A).getUpdatePanelContinuationData)==null?void 0:(M=Y.call(c,J))==null?void 0:M.updatePanelContinuationRequest)&&(w||(w={}),w.clientParams=
{panelContinuationParams:{panelContinuation:m}});case 2:W=_.JA().resolve(_.Lf);if(!W)return _.nC(Error("Uo")),k.return();y={};S.pendingRequestId=y;return k.yield(_.ir(W,H,w),4);case 4:N=k.yieldResult;if(y!==S.pendingRequestId)return k.return();O=(b=N)==null?void 0:(u=b.continuation)==null?void 0:u.timedContinuationData;((d=O)==null?0:d.continuation)&&((p=O)==null?0:p.timeoutMs)&&(S.jobId=_.rT.addLowPriorityJob(function(){return S.fetchUpdatedMetadata(H,O.continuation)},O.timeoutMs));
_.oT(k)}})};
_.ja4.prototype.disposeInternal=function(){_.Op.prototype.disposeInternal.call(this);wAr(this)};var AAT=_.n(function(H){var C=_.um(function(){var w=H.data().videoId;if(H.active())w=_.Zy(w),_.JA().resolve(_.ZQ).resolveCommand(w);else{var A=H.playerApi(),J=A.getAvailableAudioTracks(),c,Y,M=(c=H.sourceVideoConfig().audioTracks)==null?void 0:(Y=c.find(function(m){return m.isDefaultForSource}))==null?void 0:Y.id;
if(J=J.find(function(m){return m.getLanguageInfo().getId()===M}))A.setAudioTrack(J,!0),A.setCompositeParam({activeVideoId:w}),H.setActiveSourceId(w)}}),S={};
return _.q("ytw-composite-source-video-overlay",{class:_.eJ("ytwCompositeSourceVideoOverlayHost",(S.ytwCompositeSourceVideoOverlayActive=H.active,S.ytwCompositeSourceVideoOverlayInteracting=H.interacting,S)),style:_.vb({left:function(){var w;return((w=H.data().topLeftCornerX)!=null?w:0)*100+"%"},
top:function(){var w;return((w=H.data().topLeftCornerY)!=null?w:0)*100+"%"},
width:function(){var w;return((w=H.data().width)!=null?w:0)*100+"%"},
height:function(){var w;return((w=H.data().height)!=null?w:0)*100+"%"}}),
"on:click":C},_.q("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"ml");var JAt=_.n(function(H){var C=_.Z(_.fu(function(){var c,Y=(c=H.data().sources)==null?void 0:c.find(function(M){return M.isActive});
if(Y)return Y.videoId})),S=C.next().value,w=C.next().value;
C=_.Z(_.mB(!1,void 0,"yNRzwd"));var A=C.next().value,J=C.next().value;return _.q("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.um(function(){J(!0)}),
"on:mouseout":_.um(function(){J(!1)})},_.q(_.T,{cond:function(){return H.data().sources},
then:function(c){return _.q(_.Vq,{each:c},function(Y){return _.q(AAT,{data:Y,active:function(){return Y.videoId===S()},
setActiveSourceId:w,interacting:A,playerApi:H.playerApi,sourceVideoConfig:function(){return iMB(H.compositeVideoConfig(),Y.videoId)}})})}}))},"nl");_.cAh=function(H){_.Op.call(this);this.JSC$23017_watchApi=H;H=_.Z(_.mB({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=H.next().value;this.setCompositeVideoOverlayRenderer=H.next().value;H=_.Z(_.mB({},void 0,"OlaJpc"));this.compositeVideoConfig=H.next().value;this.setCompositeVideoConfig=H.next().value;FCr(this);ZvT(this)};
_.G(_.cAh,_.Op);var FCr=function(H){var C=H.JSC$23017_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){ZvT(H)});
H.addOnDisposeCallback(function(){H.JSC$23017_watchApi.unsubscribeByKey(C)})},YEv=function(H){var C;
return _.z(function(S){if(S.nextAddress==1)return S.yield(H.JSC$23017_watchApi.playerApi,2);C=S.yieldResult;C.setCompositeVideoOverlayRendererComponent(H.container);_.oT(S)})},z39=function(H){var C;
return _.z(function(S){if(S.nextAddress==1)return S.yield(H.JSC$23017_watchApi.playerApi,2);C=S.yieldResult;C.setCompositeVideoOverlayRendererComponent(void 0);_.oT(S)})},M$V=function(H){var C,S;
return _.z(function(w){if(w.nextAddress==1)return w.yield(H.JSC$23017_watchApi.playerApi,2);C=w.yieldResult;H.container=document.createElement("div");S=_.dh(H.container,function(){return _.q(JAt,{data:H.compositeVideoOverlayRenderer,compositeVideoConfig:H.compositeVideoConfig,playerApi:C})},"ol");
H.addOnDisposeCallback(S);_.oT(w)})},ZvT=function(H){var C,S,w,A,J,c,Y,M;
_.z(function(m){return m.nextAddress==1?(C=H.JSC$23017_watchApi.getPlayerResponse(),J=_.e((S=C)==null?void 0:(w=S.overlay)==null?void 0:(A=w.playerControlsOverlayRenderer)==null?void 0:A.compositeVideoOverlay,IAT),M=(c=C)==null?void 0:(Y=c.playerConfig)==null?void 0:Y.compositeVideoConfig,J&&H.setCompositeVideoOverlayRenderer(J),M&&H.setCompositeVideoConfig(M),J&&M?H.container?m.jumpTo(6):m.yield(M$V(H),6):qEB(H)?m.yield(z39(H),0):m.jumpTo(0)):qEB(H)?m.jumpTo(0):m.yield(YEv(H),0)})},qEB=function(H){var C;
return!((C=H.container)==null||!C.parentElement)};
_.cAh.prototype.disposeInternal=function(){qEB(this)&&z39(this);_.Op.prototype.disposeInternal.call(this)};_.N4T=function(H){_.Op.call(this);var C=this;this.JSC$23023_watchApi=H;var S=this.JSC$23023_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var w=C.JSC$23023_watchApi.getPlayerResponse();if(w){var A,J;if(w=_.e((A=w.endscreen)==null?void 0:(J=A.endscreenRenderer)==null?void 0:J.hideButton,_.mk)){var c;(c=C.setEndscreenHideButton)==null||c.call(C,w);T4D(C)}}});
this.addOnDisposeCallback(function(){C.JSC$23023_watchApi.unsubscribeByKey(S)});
H=_.Z(_.mB({},void 0,"ER3tqb"));this.endscreenHideButton=H.next().value;this.setEndscreenHideButton=H.next().value;mEt(this);WC4(this);yA4(this)};
_.G(_.N4T,_.Op);
var T4D=function(H){var C,S;_.z(function(w){if(w.nextAddress==1)return H.creatorEndscreenHideButtonContainer?w.return():w.yield(H.JSC$23023_watchApi.playerApi,2);C=w.yieldResult;H.creatorEndscreenHideButtonContainer=document.createElement("div");_.HN(H.creatorEndscreenHideButtonContainer,!1);C.setCreatorEndscreenHideButton(H.creatorEndscreenHideButtonContainer);S=_.dh(H.creatorEndscreenHideButtonContainer,function(){return _.q(_.Jv,{data:H.endscreenHideButton,useOutlinedIcon:!0})},"pl");
H.addOnDisposeCallback(function(){S();var A;(A=C)==null||A.setCreatorEndscreenHideButton(void 0)});
_.oT(w)})},mEt=function(H){var C,S;
_.z(function(w){if(w.nextAddress==1)return w.yield(H.JSC$23023_watchApi.playerApi,2);C=w.yieldResult;S=function(){H.creatorEndscreenHideButtonContainer&&_.HN(H.creatorEndscreenHideButtonContainer,!0)};
C.addEventListener("endscreenelementshown",S);H.addOnDisposeCallback(function(){var A;(A=C)==null||A.removeEventListener("endscreenelementshown",S)});
_.oT(w)})},WC4=function(H){var C=function(){H.creatorEndscreenHideButtonContainer&&_.HN(H.creatorEndscreenHideButtonContainer,!1)},S=H.JSC$23023_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",C),w=H.JSC$23023_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",C);
H.addOnDisposeCallback(function(){H.JSC$23023_watchApi.unsubscribeByKey(S);H.JSC$23023_watchApi.unsubscribeByKey(w)})},yA4=function(H){H.JSC$23023_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(C){var S=_.e(C,K2h);
H.JSC$23023_watchApi.playerApi.then(function(w){w==null||w.setCreatorEndscreenVisibility(!!S.hide)})});
H.addOnDisposeCallback(function(){H.JSC$23023_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.EB2=function(H){_.Op.call(this);this.JSC$23029_watchApi=H;bvv(this)};
_.G(_.EB2,_.Op);var bvv=function(H){var C,S;_.z(function(w){if(w.nextAddress==1)return w.yield(H.JSC$23029_watchApi.playerApi,2);C=w.yieldResult;S=function(A){_.AG().dispatch(_.Md({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:A}}))};
C.addEventListener("onRetroModeChanged",S);H.addOnDisposeCallback(function(){C.removeEventListener("onRetroModeChanged",S)});
_.oT(w)})};var F2V=0,nW=0,cYr=0;var e3P;e3P=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.Qr=function(H){_.Op.call(this);this.JSC$23034_watchApi=H;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;u09(this)};
_.G(_.Qr,_.Op);
var u09=function(H){var C,S,w;_.z(function(A){if(A.nextAddress==1)return A.yield(H.JSC$23034_watchApi.playerApi,2);C=A.yieldResult;if(H.isDisposed())return A.return();H.sessionStorage=_.M2j("yt-sleep-timer");H.sessionStorage||_.Bn(new _.X0("SessionStorage for Sleep Timer is undefined."));((S=H.sessionStorage)==null?void 0:S.get("yt-sleep-timer"))==="true"&&(MnT(),(w=H.sessionStorage)==null||w.remove("yt-sleep-timer"),C.syncVolume());G9t(H,C);fQT(H,C);vBD(H,C);_.oT(A)})},G9t=function(H,C){var S=function(m){H.onSleepTimerSettingsChanged(m,
C)},w=function(m){H.onPlayerStateChange(m,C)},A=function(){H.onLoopChange(C)},J=function(){H.onCloseMiniplayer(C)},c=function(){JY7(C,(0,_.Zt)(),qMB(C),H.selectedOption==="End of video",C.getPlayerState()!==1)},Y=function(){H.onSeekComplete(C)},M=function(){_.rT.cancelJob(nW);
var m=C.getCurrentTime()>=C.getDuration(),W=H.selectedOption==="End of video"||H.selectedOption==="End of playlist"&&!jTT(H.playlistId);m&&W&&lQT(H,C)};
C.addEventListener("onSleepTimerSettingsChanged",S);C.addEventListener("onLoopChange",A);C.addEventListener("onLoopRangeChange",A);C.addEventListener("onStateChange",w);C.addEventListener("onCloseMiniplayer",J);C.addEventListener("onSleepTimerFeatureAvailable",c);C.addEventListener("SEEK_COMPLETE",Y);C.addEventListener("onAdStart",M);H.addOnDisposeCallback(function(){C.removeEventListener("onSleepTimerSettingsChanged",S);C.removeEventListener("onLoopChange",A);C.removeEventListener("onLoopRangeChange",
A);C.removeEventListener("onStateChange",w);C.removeEventListener("onCloseMiniplayer",J);C.removeEventListener("onSleepTimerFeatureAvailable",c);C.removeEventListener("SEEK_COMPLETE",Y);C.removeEventListener("onAdStart",M)})},fQT=function(H,C){var S=H.JSC$23034_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var w=C.getVideoData().video_id,A,J=(A=SMT(H.JSC$23034_watchApi))==null?void 0:A.playlistId;
H.pauseAutonavPlayback&&(C.pauseVideo(),C.syncVolume(),H.pauseAutonavPlayback=!1);if(H.selectedOption==="End of video"&&w!==H.videoId)db(H,C);else{if(H.selectedOption==="End of playlist"){A=jTT(H.playlistId);if(J!==H.playlistId){db(H,C);break a}A?A&&V$v(H,C):oBP(H,C)}H.videoId=w;H.playlistId=J}}});
H.addOnDisposeCallback(function(){H.JSC$23034_watchApi.unsubscribeByKey(S)})},vBD=function(H,C){var S=_.JA().resolve(_.MU),w=_.Uf(S,_.qeD,function(J){J&&H.selectedOption!=="Off"&&db(H,C)}),A=H.JSC$23034_watchApi.subscribeToActiveChanged(function(J){var c,Y;
return _.z(function(M){if(M.nextAddress==1)return M.yield(_.LO().navigationFinishPromise,2);c=!_.PeW();Y=_.JA().resolve(_.Df).isMiniplayerActive();J||!Cf4(H.selectedOption)||Y||c||db(H,C);_.oT(M)})},!1);
S=_.Uf(S,function(J){return J.entities.playlistLoopStateEntity||{}},function(J){J=J===void 0?{}:J;
var c=sT7(H.JSC$23034_watchApi);if(c){var Y;((Y=J[c])==null?void 0:Y.state)==="PLAYLIST_LOOP_STATE_ALL"&&Cf4(H.selectedOption)&&db(H,C)}});
H.addOnDisposeCallback(w);H.addOnDisposeCallback(S);H.addOnDisposeCallback(A)};
_.Qr.prototype.onSleepTimerSettingsChanged=function(H,C){switch(H){case "Off":this.selectedOption!=="Off"&&db(this,C);break;case "End of video":case "End of playlist":Ovv(this,H,C);break;default:Ovv(this,H,C,e3P.get(H))}};
_.Qr.prototype.onLoopChange=function(H){(H.getLoopVideo()||H.getLoopRange())&&Cf4(this.selectedOption)&&db(this,H)};
_.Qr.prototype.onCloseMiniplayer=function(H){Cf4(this.selectedOption)&&db(this,H)};
var Ovv=function(H,C,S,w){XAB(H,S);H.selectedOption=C;H.videoId=S.getVideoData().video_id;H.playlistId="";var A;(A=H.sessionStorage)==null||A.set("yt-sleep-timer","true");H.adjustmentsCount++;JY7(S,(0,_.Zt)(),qMB(S),H.selectedOption==="End of video");if(H.selectedOption==="End of video")oBP(H,S),QaB(H,S);else if(H.selectedOption==="End of playlist"){QaB(H,S);var J,c;H.playlistId=(c=(J=SMT(H.JSC$23034_watchApi))==null?void 0:J.playlistId)!=null?c:"";jTT(H.playlistId)||oBP(H,S)}else w&&(H.presetFadeSchedulerId=
_.dw(_.rT,function(){YMB(S,15E3)},w-15E3),H.presetPauseSchedulerId=_.dw(_.rT,function(){lQT(H,S)},w),ZMv(S,(0,_.Zt)(),w))},lQT=function(H,C){if(H.JSC$23034_watchApi.isActive()){var S={dismissDialogEndpoint:{}};
var w={commandExecutorCommand:{commands:[S,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};S={buttonViewModel:{title:_.fL("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:S}}};w={buttonViewModel:{title:_.fL("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:w}}};var A={dialogHeaderViewModel:{headline:{content:_.fL("SLEEP_TIMER_ENDED_TITLE")}}},
J={basicContentViewModel:{paragraphs:[{text:{content:_.fL("SLEEP_TIMER_ENDED_TEXT")}}]}};S={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:A,content:J,footer:{panelFooterViewModel:{primaryButton:S,secondaryButton:w,shouldHideDivider:!0}}}}}}};_.JA().resolve(_.ZQ).resolveCommand(S,{form:{element:H}})}else MnT();dED(H,!1);P5B(H,C);C.pauseVideo();_.l3.getInstance().getState()===2&&C.getPlayerState()===5&&(H.pauseAutonavPlayback=!0)},db=function(H,C){dED(H,!0);
P5B(H,C);MnT()},P5B=function(H,C){XAB(H,C);
H.selectedOption="Off";H.videoId="";H.playlistId="";H.adjustmentsCount=0;var S;(S=H.sessionStorage)==null||S.remove("yt-sleep-timer");_.rT.cancelJob(F2V);C.resetSleepTimerMenuSettings()},dED=function(H,C){C={timer_length_adjustment_times_during_session:H.adjustmentsCount-1,
is_session_cancelled:C};switch(H.selectedOption){case "Off":C.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":C.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":C.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:C.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",C.option_duration_in_minutes=e3P.get(H.selectedOption)/6E4}_.kI("sleepTimerSessionFinishEvent",C)};
_.Qr.prototype.onPlayerStateChange=function(H,C){H===1?JY7(C,(0,_.Zt)(),qMB(C),this.selectedOption==="End of video"):H===0?(_.rT.cancelJob(nW),C.setVideoTimeLeft(AYB(0,0))):H===2&&_.rT.cancelJob(nW);this.selectedOption==="End of video"?H===0?lQT(this,C):H===2&&z9T(C):this.selectedOption!=="End of playlist"||jTT(this.playlistId)||(H===0?lQT(this,C):H===2&&z9T(C))};
_.Qr.prototype.onSeekComplete=function(H){H.getPlayerState()===2&&JY7(H,(0,_.Zt)(),qMB(H),this.selectedOption==="End of video",!0)};
_.Qr.prototype.onCueRangeEnter=function(H,C){H==="sleep-timer-fade-audio"&&YMB(C,(C.getDuration()-C.getProgressState().current)*1E3)};
_.Qr.prototype.onCueRangeExit=function(H,C){H==="sleep-timer-fade-audio"&&C.getPlayerState()!==0&&z9T(C,!0)};
var oBP=function(H,C){C.addCueRange("sleep-timer-fade-audio",C.getDuration()-15,C.getDuration());C.addEventListener("onCueRangeEnter",function(S){H.onCueRangeEnter(S,C)});
C.addEventListener("onCueRangeExit",function(S){H.onCueRangeExit(S,C)})},V$v=function(H,C){C.removeCueRange("sleep-timer-fade-audio");
C.removeEventListener("onCueRangeEnter",function(S){H.onCueRangeEnter(S,C)});
C.removeEventListener("onCueRangeExit",function(S){H.onCueRangeExit(S,C)})},XAB=function(H,C){Cf4(H.selectedOption)?V$v(H,C):(_.rT.cancelJob(H.presetPauseSchedulerId),_.rT.cancelJob(H.presetFadeSchedulerId),H.presetPauseSchedulerId=0,H.presetFadeSchedulerId=0);
z9T(C,!0)},QaB=function(H,C){C.setLoop(!1);
C.setLoopVideo(!1);C.setLoopRange(null);(H=sT7(H.JSC$23034_watchApi))&&_.JA().resolve(_.MU).dispatch(_.O5("playlistLoopStateEntity",H,{key:H,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.h3v=function(H){_.Op.call(this);this.JSC$23037_watchApi=H;$E9(this);pA9(this);k9c(this);H=H.getRoot();if(H.is==="ytd-watch-flexy"||H.is==="ytd-watch-grid")H.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.l4v();_.E("web_watch_log_theater_mode_cookie_state")&&_.vA.get("wide","0")==="1"&&_.JXE("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.G(_.h3v,_.Op);var $E9=function(H){var C,S;_.z(function(w){if(w.nextAddress==1)return w.yield(H.JSC$23037_watchApi.playerApi,2);C=w.yieldResult;S=function(A){nB2(H,!!A)};
C.addEventListener("SIZE_CLICKED",S);H.addOnDisposeCallback(function(){C.removeEventListener("SIZE_CLICKED",S)});
_.oT(w)})},pA9=function(H){H.JSC$23037_watchApi.registerActionHandler("yt-toggle-theater-mode",function(C,S){nB2(H,C,S===void 0?!0:S)});
H.addOnDisposeCallback(function(){H.JSC$23037_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.h3v.prototype.getState=function(){return _.Dl(_.AG().getState())};
var nB2=function(H,C,S){S=S===void 0?!0:S;var w,A,J,c=_.E("enable_player_resize_transition")&&!!H.JSC$23037_watchApi.getWatchNextResponse()&&!((w=H.JSC$23037_watchApi.getWatchNextResponse())==null?0:(A=w.contents)==null?0:(J=A.twoColumnWatchNextResults)==null?0:J.conversationBar);_.MIp(function(){_.AG().dispatch(_.Md({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:C}}));_.E("theater_mode_scroll_to_top_killswitch")||H.JSC$23037_watchApi.scrollWatchTo(0,!1);_.ZR()&&_.E("external_fullscreen")&&_.cH(document.documentElement);
k9c(H);S&&_.l5("wide",C?"1":"0",-1);_.q3(H.JSC$23037_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);H.JSC$23037_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:C});C&&_.l4v()},{shouldWrap:c})},k9c=function(H){var C;
_.z(function(S){if(S.nextAddress==1)return S.yield(H.JSC$23037_watchApi.playerApi,2);C=S.yieldResult;C.setSizeStyle(!0,H.getState());_.oT(S)})};var DEB=function(H){_.Op.call(this);var C=this;this.playerApi=H;this.timeToPanelSyncKeyMap={};var S;if(H==null?0:(S=H.isReady)==null?0:S.call(H)){S=_.Uf(_.JA().resolve(_.MU),function(A){return A.entities.timedMarkersListSyncEntity||{}},function(A,J){A=A===void 0?{}:A;
J=J===void 0?{}:J;for(var c=_.Z(Object.keys(J)),Y=c.next();!Y.done;Y=c.next())Y=Y.value,A[Y]!==J[Y]&&rA7(C,J[Y]);J=_.Z(Object.keys(A));for(c=J.next();!c.done;c=J.next())c=c.value,Y=A[c],C.timeToPanelSyncKeyMap[c]&&B4h(C,Y)});
this.addOnDisposeCallback(S);var w=function(A){C.onCueRangeEnter(A)};
H.addEventListener("onCueRangeEnter",w);this.addOnDisposeCallback(function(){var A;(A=H.removeEventListener)==null||A.call(H,"onCueRangeEnter",w)})}};
_.G(DEB,_.Op);
var B4h=function(H,C){var S,w;if((S=H.playerApi)==null?0:(w=S.isReady)==null?0:w.call(S)){var A;if((S=C==null?void 0:(A=C.timedListData)==null?void 0:A.sections)&&C!=null&&C.key)for(A=_.Z(S),S=A.next();!S.done;S=A.next())if(S=S.value,S.timedSyncDataList&&S.sectionId)for(w=0;w<S.timedSyncDataList.length;w++){var J=S.timedSyncDataList[w];J.syncItemId&&H.playerApi.addCueRange(S.sectionId+"_"+C.key+"_"+J.syncItemId,Number(J.videoTimeMs)/1E3,w===S.timedSyncDataList.length-1?0x8000000000000:Number(S.timedSyncDataList[w+
1].videoTimeMs)/1E3)}}},rA7=function(H,C){var S,w;
if((S=H.playerApi)==null?0:(w=S.isReady)==null?0:w.call(S)){var A;if((S=C==null?void 0:(A=C.timedListData)==null?void 0:A.sections)&&C!=null&&C.key)for(A=_.Z(S),S=A.next();!S.done;S=A.next())if(S=S.value,S.timedSyncDataList&&S.sectionId){w=_.Z(S.timedSyncDataList);for(var J=w.next();!J.done;J=w.next())J=J.value,J.syncItemId&&H.playerApi.removeCueRange(S.sectionId+"_"+C.key+"_"+J.syncItemId)}}};
DEB.prototype.onCueRangeEnter=function(H){for(var C=_.Z(Object.keys(this.timeToPanelSyncKeyMap)),S=C.next();!S.done;S=C.next()){S=S.value;var w=_.Z(H.split("_"+S+"_")),A=w.next().value;w=w.next().value;if(A&&w){H=_.JA().resolve(_.MU);C=this.timeToPanelSyncKeyMap[S];var J=_.cH7(H.getState(),C);S=KC4(S,A,w);if(S===-1)break;S={activeSyncId:w,activeItemIndex:S,activeSectionInfo:{sectionIdentifier:A}};J?H.dispatch(_.pN("markersEngagementPanelSyncEntity",C,S)):H.dispatch(_.O5("markersEngagementPanelSyncEntity",
C,Object.assign({},{key:C},S)));break}}};
var KC4=function(H,C,S){var w=_.JA().resolve(_.MU),A,J;H=(A=eB9(w.getState(),H))==null?void 0:(J=A.timedListData)==null?void 0:J.sections;if(!H)return-1;A=0;J=_.Z(H);for(H=J.next();!H.done;H=J.next()){H=H.value;w=H.timedSyncDataList||[];if(H.sectionId===C)return C=w.findIndex(function(c){return c.syncItemId===S}),C===-1?C:A+C;
A+=w.length}return-1};_.gBP=function(H){_.Op.call(this);var C=this;this.JSC$23050_watchApi=H;this.unresolvedCommands=[];this.JSC$23050_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(S){t$7(C,S)});
this.addOnDisposeCallback(function(){C.JSC$23050_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
LCt(this)};
_.G(_.gBP,_.Op);var LCt=function(H){var C;_.z(function(S){if(S.nextAddress==1)return S.yield(H.JSC$23050_watchApi.playerApi,2);C=S.yieldResult;if(H.isDisposed())return S.return();H.timedSyncObserver=new DEB(C);H.unresolvedCommands.length&&(H.unresolvedCommands.forEach(function(w){return t$7(H,w)}),H.unresolvedCommands=[]);
_.Nx(H,H.timedSyncObserver);_.oT(S)})},t$7=function(H,C){if(H.timedSyncObserver){var S=_.e(C,L2B);
if(S&&S.timedSyncEntityKey&&S.panelSyncEntityKey){H=H.timedSyncObserver;C=S.timedSyncEntityKey;var w=S.panelSyncEntityKey;S=!!S.isEnabled;S=S===void 0?!0:S;var A=_.JA().resolve(_.MU);A=eB9(A.getState(),C);S?H.timeToPanelSyncKeyMap[C]||(H.timeToPanelSyncKeyMap[C]=w,B4h(H,A)):(delete H.timeToPanelSyncKeyMap[C],rA7(H,A))}}else H.unresolvedCommands.push(C)};var UEt=_.n(function(H){var C=H.data,S=H.maybeLogSmartSkipClientData,w=null,A=null,J=_.E("web_enable_auto_focus_for_timely_action_button"),c=function(){w=document.activeElement},Y=function(){C().smartSkipMetadata&&(w=document.activeElement,_.nXO(function(){return A}))},M=function(W){if(C().smartSkipMetadata&&(!W||W.key!=="Enter")){w&&w.isConnected&&(_.nXO(function(){return w}),w=null);
var y;(y=A)==null||y.blur()}};
H=_.um(function(){S==null||S(!0,C());return!1});
var m=_.Zl(_.Bt(function(){return C().rendererContext},{onTap:function(W,y){y({disableClickTracking:!0})}}),_.c5({visibilityCallback:function(W){if(J)W?A&&C().smartSkipMetadata&&(Y(),document.addEventListener("focusin",c)):(document.removeEventListener("focusin",c),M());
else if(W){W=_.nn(C().rendererContext);var y=Number(C().maxVisibleDurationMilliseconds),N,b=(N=_.e(C().rendererContext,_.VB))==null?void 0:N.label;W&&y&&b&&(N={label:b,command:W,durationMs:y},_.JA().resolve(_.jX).enqueue(N))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.Ph(function(){if(J){var W;if((A=(W=m.value)==null?void 0:W.querySelector("button"))&&C().smartSkipMetadata){var y;(y=m.value)==null||y.addEventListener("keydown",M)}}});
_.PN(function(){J&&(A&&C().smartSkipMetadata&&A.removeEventListener("keydown",M),document.removeEventListener("focusin",c),M())});
return _.q("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:m,"on:click":H},_.q(_.V4,{data:function(){return C().content}},{buttonViewModel:_.rc}))},"ql");var R37=_.n(function(H){var C=H.data,S=H.playerApi,w=_.JA().resolve(_.jO9);H=_.Z(_.fu(function(){C()}));
var A=H.next().value,J=H.next().value,c=function(){return W2t(C(),A())},Y=function(m,W){var y,N,b=(y=_.e(W==null?void 0:W.rendererContext,_.Vh))==null?void 0:(N=y.loggingDirectives)==null?void 0:N.trackingParams;
if((W=W==null?void 0:W.smartSkipMetadata)&&W.loggingData&&(N=W.loggingData,W=N.algorithmId,y=N.startMilliseconds,N=N.endMilliseconds,W&&y!==void 0&&N!==void 0)){var u,O;m={smartSkipData:Object.assign({},{versionName:W,startMediaTimeMs:y,endMediaTimeMs:N},m&&{userInteractionMediaTimeMs:(Math.floor(((u=_.Zz())==null?void 0:(O=u.getPlayer())==null?void 0:O.getCurrentTime())||0)*1E3).toString()})};u=_.Dg();var d;b&&(d=_.Qh(b));u&&d&&_.jp(u,d,m)}},M=function(m,W){var y=W2t(C(),m);
if(y){var N=_.e(y,mO9),b;if(b=W)b=S(),y=_.e(y,mO9),b=y!=null&&y.smartSkipMetadata?!(b==null?0:b.isSameMarkerTypeVisible((y==null?void 0:y.smartSkipMetadata.markerKey)||"")):!0;if(b){var u,O;(N==null?0:(u=N.smartSkipMetadata)==null?0:(O=u.loggingData)==null?0:O.isCounterfactual)||(Y(!1,N),J(m))}else W||A()!==m||J(void 0)}};
_.d6(function(){var m=C().timelyActions;if(m){m=_.Z(m);for(var W=m.next();!W.done;W=m.next()){W=_.e(W.value,mO9);var y=void 0;(y=W)!=null&&y.cueRangeId&&w.timelyActionsMap.set(W.cueRangeId,M)}_.PN(function(){w.timelyActionsMap.clear()})}},"PSaw4c");
return _.q("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.q(_.V4,{data:c},{timelyActionViewModel:function(m){return _.q(UEt,{data:m.data,maybeLogSmartSkipClientData:function(){Y(!0,_.e(c(),mO9))}})}}))},"rl");_.aQT=function(H){_.Op.call(this);this.JSC$23062_watchApi=H;H=_.Z(_.mB({},void 0,"UN7k5e"));this.timelyActionsOverlay=H.next().value;this.setTimelyActionsOverlay=H.next().value;IQ4(this)};
_.G(_.aQT,_.Op);var IQ4=function(H){var C,S,w,A;_.z(function(J){if(J.nextAddress==1)return xEt(H),HVB(H),H.timelyActionsContainer=document.createElement("div"),J.yield(H.JSC$23062_watchApi.playerApi,2);C=J.yieldResult;(w=(S=C).insertTimelyActionUi)==null||w.call(S,H.timelyActionsContainer);A=_.dh(H.timelyActionsContainer,function(){return _.q(R37,{data:H.timelyActionsOverlay,playerApi:C})},"sl");
H.addOnDisposeCallback(A);_.oT(J)})},HVB=function(H){var C=H.JSC$23062_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){xEt(H)});
H.addOnDisposeCallback(function(){H.JSC$23062_watchApi.unsubscribeByKey(C)})},xEt=function(H){var C=H.JSC$23062_watchApi.getWatchNextResponse();
if(C){var S,w;if(C=_.e((S=C.playerOverlays)==null?void 0:(w=S.playerOverlayRenderer)==null?void 0:w.timelyActionsOverlayViewModel,g$T)){var A;(A=H.setTimelyActionsOverlay)==null||A.call(H,C)}}};_.CCB=function(H){_.Op.call(this);this.JSC$23066_watchApi=H;iVD(this)};
_.G(_.CCB,_.Op);var iVD=function(H){var C,S;_.z(function(w){if(w.nextAddress==1)return w.yield(H.JSC$23066_watchApi.playerApi,2);C=w.yieldResult;S=function(A){_.eU.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.e(A,_.nMt)},popupType:"TOAST"}})};
C.addEventListener("onYtShowToast",S);H.addOnDisposeCallback(function(){C.removeEventListener("onYtShowToast",S)});
_.oT(w)})};var Sc9,w9v,cOt,sMD,jMT,ZVc,JOt,FQ7,Yc4,MkB;Sc9=!1;_.AOB=function(H){_.Op.call(this);this.JSC$23069_watchApi=H;this.fullscreen=this.theater=!1;sMD(this);jMT(this);w9v(this)};
_.G(_.AOB,_.Op);w9v=function(H){var C,S,w;_.z(function(A){if(A.nextAddress==1)return A.yield(H.JSC$23069_watchApi.playerApi,2);C=A.yieldResult;if(H.isDisposed())return A.return();S=H.JSC$23069_watchApi.getElement("CINEMATICS");if(!S)return A.return();H.JSC$23069_cinematicController=new _.bv(S,C);_.Nx(H,H.JSC$23069_cinematicController);_.Fjv(H.JSC$23069_cinematicController);JOt(H,_.x$Z());w=H.JSC$23069_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(J){FQ7(H,J)});
H.addOnDisposeCallback(function(){H.JSC$23069_watchApi.unsubscribeByKey(w)});
ZVc(H);FQ7(H,H.JSC$23069_cinematicController.isAllowed());cOt(H);Yc4(H);_.oT(A)})};
cOt=function(H){H.fullscreen=_.Ku(_.AG().getState());H.theater=_.Dl(_.AG().getState());_.z0r(H,H.fullscreen,H.theater);var C=_.Uf(_.AG(),_.Ku,function(w){H.fullscreen=w;_.z0r(H,H.fullscreen,H.theater)}),S=_.Uf(_.AG(),_.Dl,function(w){H.theater=w;
_.z0r(H,H.fullscreen,H.theater)});
H.addOnDisposeCallback(C);H.addOnDisposeCallback(S)};
sMD=function(H){var C=H.JSC$23069_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){ZVc(H)});
H.addOnDisposeCallback(function(){H.JSC$23069_watchApi.unsubscribeByKey(C)})};
jMT=function(H){var C,S;_.z(function(w){if(w.nextAddress==1)return w.yield(H.JSC$23069_watchApi.playerApi,2);C=w.yieldResult;S=function(A){JOt(H,A)};
C.addEventListener("cinematicSettingsToggleChange",S);H.addOnDisposeCallback(function(){C.removeEventListener("cinematicSettingsToggleChange",S)});
_.oT(w)})};
ZVc=function(H){var C=H.JSC$23069_watchApi.getWatchNextResponse(),S;C=_.e(C==null?void 0:(S=C.pageVisualEffects)==null?void 0:S[0],_.Cc);var w;(w=H.JSC$23069_cinematicController)==null||_.c9B(w,C)};
JOt=function(H,C){var S;(S=H.JSC$23069_cinematicController)==null||_.ZrT(S,C);MkB(H)};
FQ7=function(H,C){var S;_.z(function(w){if(w.nextAddress==1)return _.E("kevlar_watch_cinematics_invisible")&&(C=!1),w.yield(H.JSC$23069_watchApi.playerApi,2);S=w.yieldResult;S.updateCinematicSettings(C);MkB(H);_.oT(w)})};
Yc4=function(H){var C=_.VN();if(_.E("kevlar_measure_ambient_mode_idle")&&!C.getFlag(192)&&!Sc9){Sc9=!0;var S=_.X2(_.rT,function(){_.JA().resolve(_.Yl_).start(1E4)},5E3);
H.addOnDisposeCallback(function(){_.rT.cancelJob(S);_.JA().resolve(_.Yl_).stop()})}};
_.z0r=function(H,C,S){H.fullscreen=C;H.theater=S;var w;(w=H.JSC$23069_cinematicController)==null||w.setFullscreen(H.fullscreen,H.theater);if(_.E("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(H.theater||H.fullscreen){var A;(A=H.JSC$23069_cinematicController)==null||_.Y_P(A)}else if((H=H.JSC$23069_cinematicController)!=null){var J;(J=H.currentCinematicEffect)==null||J.pause()}};
MkB=function(H){if(_.E("web_cinematic_theater_mode")||_.E("web_cinematic_fullscreen")){var C;H.JSC$23069_watchApi.getRoot().toggleCinematicsActive(!((C=H.JSC$23069_cinematicController)==null||!C.isEnabled()))}};_.WQ4=function(H){_.Op.call(this);var C=this;this.JSC$23072_watchApi=H;this.commentsReady=!1;this.setCommentsJobId=0;H=_.Uf(_.AG(),_.kX,function(){qch(C)});
this.addOnDisposeCallback(H);var S=this.JSC$23072_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){TTP(C)}),w=this.JSC$23072_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){TTP(C)});
this.addOnDisposeCallback(function(){C.JSC$23072_watchApi.unsubscribeByKey(S);C.JSC$23072_watchApi.unsubscribeByKey(w)});
var A=function(){_.E("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&mz7(C,"false")};
this.JSC$23072_watchApi.getRoot().addEventListener("yt-page-data-will-update",A);this.addOnDisposeCallback(function(){C.JSC$23072_watchApi.getRoot().removeEventListener("yt-page-data-will-update",A)});
TTP(this)};
_.G(_.WQ4,_.Op);var TTP=function(H){H.commentsReady=!1;_.rT.cancelJob(H.setCommentsJobId);H.setCommentsJobId=_.X2(_.rT,function(){qch(H)},1E3)},qch=function(H){if(!H.commentsReady){_.DR("cmi");
_.rT.cancelJob(H.setCommentsJobId);var C,S,w,A,J=(C=H.JSC$23072_watchApi.getWatchNextResponse())==null?void 0:(S=C.contents)==null?void 0:(w=S.twoColumnWatchNextResults)==null?void 0:(A=w.results)==null?void 0:A.results.contents;C=void 0;if(J&&J.length)for(J=_.Z(J),S=J.next();!S.done;S=J.next())if(S=S.value,A=w=void 0,((w=S)==null?void 0:(A=w.itemSectionRenderer)==null?void 0:A.sectionIdentifier)==="comment-item-section"){_.E("web_watch_provide_undefined_comments")?C=S.itemSectionRenderer:H.JSC$23072_watchApi.provideRenderingData("COMMENTS",
S.itemSectionRenderer);mz7(H,"true");break}_.E("web_watch_provide_undefined_comments")&&H.JSC$23072_watchApi.provideRenderingData("COMMENTS",C);H.commentsReady=!0;H.JSC$23072_watchApi.dispatchEvent("yt-watch-comments-ready")}},mz7=function(H,C){var S;
(S=H.JSC$23072_watchApi.getElement("COMMENTS"))==null||S.setAttribute("canScheduleJobs",C)};_.e02=function(H){_.Op.call(this);var C=this;this.JSC$23075_watchApi=H;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.E("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.E("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.E("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.YB("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)yOV(this);
else{var S=this.JSC$23075_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){NT9(C);Pp(C)}),w=this.JSC$23075_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){$O(C);
Pp(C)});
this.JSC$23075_watchApi.getRoot().is==="ytd-watch-grid"&&_.E("swatcheroo_pbs_load_grid")&&(bVr(this),Eu9(this));this.addOnDisposeCallback(function(){C.JSC$23075_watchApi.unsubscribeByKey(S);C.JSC$23075_watchApi.unsubscribeByKey(w);_.rT.cancelJob(C.provideRichGridJobId)});
NT9(this);$O(this)}};
_.G(_.e02,_.Op);var yOV=function(H){var C=H.JSC$23075_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){H.providePlayerJobId=_.mx(_.rT,function(){NT9(H);Pp(H)},H.provideAllDataDelayMs)}),S=H.JSC$23075_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){H.provideWatchNextJobId=_.mx(_.rT,function(){$O(H);
Pp(H)},H.provideAllDataDelayMs)}),w=H.JSC$23075_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){H.provideWatchNextJobId=_.mx(_.rT,function(){$O(H);
Pp(H)},H.provideAllDataDelayMs)});
H.JSC$23075_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.X2(_.rT,function(){NT9(H);$O(H);Pp(H)},100)});
H.JSC$23075_watchApi.addPageDisposeJob(function(){_.rT.cancelJob(H.provideWatchNextJobId);_.rT.cancelJob(H.providePlayerJobId)});
H.addOnDisposeCallback(function(){H.JSC$23075_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");H.JSC$23075_watchApi.unsubscribeByKey(C);H.JSC$23075_watchApi.unsubscribeByKey(S);H.JSC$23075_watchApi.unsubscribeByKey(w);_.rT.cancelJob(H.providePlayerJobId);_.rT.cancelJob(H.provideWatchNextJobId)});
NT9(H);$O(H)},NT9=function(H){var C=H.JSC$23075_watchApi.getPlayerResponse(),S,w,A=(w=C==null?void 0:(S=C.playabilityStatus)==null?void 0:S.messageRenderers)!=null?w:[],J,c;
C=(c=C==null?void 0:(J=C.playabilityStatus)==null?void 0:J.messages)!=null?c:[];J=_.Z(C);for(c=J.next();!c.done;c=J.next())A.push({alertRenderer:{text:_.sx(c.value),type:"WARNING"}});H.JSC$23075_watchApi.provideRenderingData("ALERTS",A)},$O=function(H){var C=[],S,w,A,J=H.JSC$23075_watchApi.getWatchNextResponse(),c,Y,M,m,W=J==null?void 0:(c=J.contents)==null?void 0:(Y=c.twoColumnWatchNextResults)==null?void 0:(M=Y.results)==null?void 0:(m=M.results)==null?void 0:m.contents;
if(W)for(c=_.Z(W),Y=c.next();!Y.done;Y=c.next())if(Y=Y.value,Y.videoPrimaryInfoRenderer)var y=Y;else if(Y.videoSecondaryInfoRenderer){var N=Y;m=M=void 0;Y=Object.assign({},(M=Y.videoSecondaryInfoRenderer)==null?void 0:(m=M.metadataRowContainer)==null?void 0:m.metadataRowContainerRenderer);if(Y.rows&&Y.collapsedItemCount!==void 0){Y.rows=Y.rows.slice(0,Y.collapsedItemCount).filter(function(H3){return!!H3.richMetadataRowRenderer});
Y.collapsedItemCount=Y.rows.length;var b={metadataRowContainerRenderer:Y}}}else if(Y.merchandiseShelfRenderer)var u=Y;else if(Y.ticketShelfRenderer)var O=Y;else if(Y.expandableMetadataRenderer)var d=Y;else if(Y.itemSectionRenderer)if(M=Y.itemSectionRenderer.contents,m=void 0,H.directlyProvideComments&&((m=Y.itemSectionRenderer)==null?void 0:m.sectionIdentifier)==="comment-item-section")_.DR("cmi"),H.JSC$23075_watchApi.provideRenderingData("COMMENTS",Y.itemSectionRenderer);else if(M)for(Y=_.Z(M),M=
Y.next();!M.done;M=Y.next())if(M=M.value,M.commentsEntryPointHeaderRenderer)var p=M;else if(M.clarificationRenderer||M.infoPanelContainerRenderer||M.infoPanelContentRenderer||M.emergencyOneboxRenderer){C.push(M);var k=k||!!N}else M.limitedStateMessageRenderer?w=M:M.videoMetadataCarouselViewModel&&(A=M);if(_.E("web_watch_merch_in_sd_when_ticket_shelf_present")&&u&&O){var R=u;u=void 0}if(H.provideWatchNextSecondaryResults){var L,t,g;H.JSC$23075_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
J==null?void 0:(L=J.contents)==null?void 0:(t=L.twoColumnWatchNextResults)==null?void 0:(g=t.secondaryResults)==null?void 0:g.secondaryResults)}if(H.JSC$23075_watchApi.getRoot().is==="ytd-watch-grid"){var ii,FW;H.JSC$23075_watchApi.provideRenderingData("LIVE_CHAT",J==null?void 0:(ii=J.contents)==null?void 0:(FW=ii.twoColumnWatchNextResults)==null?void 0:FW.conversationBar)}var cZ,eZ,ND,bi;(L=J==null?void 0:(cZ=J.contents)==null?void 0:(eZ=cZ.twoColumnWatchNextResults)==null?void 0:(ND=eZ.secondaryResults)==
null?void 0:(bi=ND.secondaryResults)==null?void 0:bi.offerModule)&&(L.donationShelfRenderer||L.donationUnavailableRenderer)&&H.JSC$23075_watchApi.getRoot().is!=="ytd-watch-grid"&&(S=L);cZ=H.JSC$23075_watchApi.getPlayerResponse();if(!cZ||!_.w6U(cZ.playabilityStatus,J==null?void 0:J.playerOverlays)){var pU;if(J==null?0:(pU=J.contents)==null?0:pU.singleColumnWatchNextResults){var O$,R0;var m1=J==null?void 0:(O$=J.contents.singleColumnWatchNextResults.results)==null?void 0:(R0=O$.results)==null?void 0:
R0.contents}else{var c7,tV,Td,Mi;pU=!!(W==null?0:(c7=W[0])==null?0:(tV=c7.itemSectionRenderer)==null?0:(Td=tV.contents)==null?0:(Mi=Td[0])==null?0:Mi.backgroundPromoRenderer);var fP,eo;c7=!!(J==null?0:(fP=J.contents)==null?0:(eo=fP.twoColumnWatchNextResults)==null?0:eo.secondaryResults);pU&&!c7&&(m1=W)}}W=C[0];fP=C[1];k&&C.length===1&&(fP=W,W=void 0);H.JSC$23075_watchApi.provideRenderingData("PRIMARY_INFO",y);H.JSC$23075_watchApi.provideRenderingData("SECONDARY_INFO",N);H.JSC$23075_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
p);H.JSC$23075_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",A);H.JSC$23075_watchApi.provideRenderingData("CLARIFICATION",W);H.JSC$23075_watchApi.provideRenderingData("RICH_METADATA",b);H.JSC$23075_watchApi.provideRenderingData("MERCH_SHELF",u);_.E("web_watch_merch_in_sd_when_ticket_shelf_present")&&H.JSC$23075_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",R);H.JSC$23075_watchApi.provideRenderingData("TICKET_SHELF",O);H.JSC$23075_watchApi.provideRenderingData("LIMITED_STATE",w);H.JSC$23075_watchApi.getRoot().is!==
"ytd-watch-grid"&&H.JSC$23075_watchApi.provideRenderingData("DONATION_SHELF",S);H.JSC$23075_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",m1);H.JSC$23075_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",fP);H.JSC$23075_watchApi.provideRenderingData("EXPANDABLE_METADATA",d);if(H.swatcherooProvideAllDataOnScheduledJob){var Cr,wu,xE,En,So,qi;y=J==null?void 0:(Cr=J.contents)==null?void 0:(wu=Cr.twoColumnWatchNextResults)==null?void 0:(xE=wu.secondaryResults)==null?void 0:(En=xE.secondaryResults)==
null?void 0:(So=En.results)==null?void 0:(qi=So[0])==null?void 0:qi.richGridRenderer;H.JSC$23075_watchApi.provideRenderingData("RICH_GRID_RENDERER",y)}};
_.e02.prototype.hasCompanionAds=function(H){var C,S;return(S=H==null?void 0:(C=H.adPlacements)==null?void 0:C.some(function(w){var A,J,c,Y;return(w==null?void 0:(A=w.adPlacementRenderer)==null?void 0:(J=A.renderer)==null?void 0:J.actionCompanionAdRenderer)||(w==null?void 0:(c=w.adPlacementRenderer)==null?void 0:(Y=c.renderer)==null?void 0:Y.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?S:!1};
var Pp=function(H){if(!_.E("swaterdoo_ps_wn_handle_ks")){H.swatcherooProvideAllDataOnScheduledJob||Eu9(H,3E3);var C=H.JSC$23075_watchApi.getPlayerResponse(),S,w,A,J,c,Y=(S=H.JSC$23075_watchApi.getWatchNextResponse())==null?void 0:(w=S.contents)==null?void 0:(A=w.twoColumnWatchNextResults)==null?void 0:(J=A.secondaryResults)==null?void 0:(c=J.secondaryResults)==null?void 0:c.offerModule;C=H.hasCompanionAds(C);var M,m;S=(Y==null?void 0:(M=Y.tvfilmOfferModuleRenderer)==null?void 0:M.clientShouldSuppressIfCompanionAdDisplayed)||
(Y==null?void 0:(m=Y.unlimitedOfferModuleRenderer)==null?void 0:m.suppressIfCompanionAds);M=C&&S;H.JSC$23075_watchApi.getRoot().is==="ytd-watch-grid"&&H.JSC$23075_watchApi.provideRenderingData("OFFER_MODULE",M?void 0:Y)}},Eu9=function(H,C){_.E("swatcheroo_pbs_load_grid")&&(H.provideRichGridJobId&&_.rT.cancelJob(H.provideRichGridJobId),H.provideRichGridJobId=_.mx(_.rT,function(){H.provideRichGridJobId=0;
var S,w,A,J,c,Y,M,m=(S=H.JSC$23075_watchApi.getWatchNextResponse())==null?void 0:(w=S.contents)==null?void 0:(A=w.twoColumnWatchNextResults)==null?void 0:(J=A.secondaryResults)==null?void 0:(c=J.secondaryResults)==null?void 0:(Y=c.results)==null?void 0:(M=Y[0])==null?void 0:M.richGridRenderer;m&&H.JSC$23075_watchApi.provideRenderingData("RICH_GRID_RENDERER",m)},C))},bVr=function(H){var C,S;
_.z(function(w){if(w.nextAddress==1)return w.yield(H.JSC$23075_watchApi.playerApi,2);C=w.yieldResult;S=function(){H.onPlaybackStart()};
C.addEventListener("onPlaybackStartExternal",S);H.addOnDisposeCallback(function(){C.removeEventListener("onPlaybackStartExternal",S)});
_.oT(w)})};
_.e02.prototype.onPlaybackStart=function(){Eu9(this)};_.Gfh=function(H){_.Op.call(this);var C=this;this.JSC$23088_watchApi=H;H.playerApi.then(function(S){C.player=S});
this.gestures=new _.mV(this.JSC$23088_watchApi.getRoot(),H.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.uTc(_.AG().getState())&&_.kX(_.AG().getState())<=0)if(_.Ku(_.AG().getState())){var S;(S=C.player)==null||S.toggleFullscreen()}else _.q3(C.JSC$23088_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
u6T(this)};
_.G(_.Gfh,_.Op);var u6T=function(H){var C=_.Uf(_.AG(),_.Ku,function(S){H.onFullscreenChanged(S)});
H.addOnDisposeCallback(C);C=_.Uf(_.AG(),_.kX,function(S){H.gestures&&(S>0?H.gestures.detach():H.gestures.attach())});
H.addOnDisposeCallback(C)};
_.Gfh.prototype.onFullscreenChanged=function(H){this.gestures&&this.gestures.update(H)};_.vuB=function(H){_.Op.call(this);var C=this;this.JSC$23091_watchApi=H;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(H.subscribeToActiveChanged(function(S){C.onActiveChanged(S)}));
ftV(this)};
_.G(_.vuB,_.Op);var lt7=function(H){if(_.E("swatcheroo_page_dispose_all_watch_data"))H.pageDisposalDataTypes=Object.values(Klc).filter(function(S){return S!=="PLAYLIST"});
else if(_.E("swatcheroo_page_dispose_rich_grid")){var C;(C=H.pageDisposalDataTypes)==null||C.push("RICH_GRID_RENDERER")}},ftV=function(H){_.E("swatcheroo_enable_ghost_cards")&&(lt7(H),H.JSC$23091_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.rT.cancelJob(H.clearDataJobId);
H.clearDataJobId=0}),H.runPageDisposeJob=function(){var C=_.JA().resolve(_.JB).getDestinationPageType()==="watch";
H.clearDataJobId=_.mx(_.rT,H.runClearDataJob,C?0:_.YB("web_watch_delay_page_dispose_ms",1E4))},H.runClearDataJob=function(){Vkt(H)},H.runOnYtNavigateAwayFinish=function(){H.clearDataJobId&&(_.rT.cancelJob(H.clearDataJobId),H.clearDataJobId=0,Vkt(H))},document.addEventListener("yt-navigate-finish",H.runOnYtNavigateAwayFinish),H.JSC$23091_watchApi.addPageDisposeJob(H.runPageDisposeJob),H.addOnDisposeCallback(function(){H.JSC$23091_watchApi.removePageDisposeJob(H.runPageDisposeJob);
H.JSC$23091_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",H.runOnYtNavigateAwayFinish)}))},Vkt=function(H){H.pageDisposalDataTypes.forEach(function(C){H.JSC$23091_watchApi.provideRenderingData(C,void 0)});
H.clearDataJobId=0};
_.vuB.prototype.onActiveChanged=function(H){H&&((H=document.querySelector("#watch-page-skeleton"))&&_.f6(H),ouD(this),document.body.removeAttribute("no-y-overflow"),_.Bh("IS_SHELL_LOAD")&&_.JF3())};
var ouD=function(H){_.z(function(C){if(C.nextAddress==1)return C.yield(H.JSC$23091_watchApi.playerApi,2);_.g$();_.oT(C)})};var OVB;OVB=_.E("kevlar_watch_while_counterfactual")?0:.25;_.PCD=function(H){_.Op.call(this);this.JSC$23094_watchApi=H;this.JSC$23094_watchWhileEnabled=_.E("kevlar_watch_while_v2");this.pipEnabled=_.E("web_enable_pip_on_miniplayer");X9h(this);QMh(this);dzc(this)};
_.G(_.PCD,_.Op);var X9h=function(H){H.JSC$23094_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){$zD(H)});
H.addOnDisposeCallback(function(){H.JSC$23094_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},QMh=function(H){var C,S;
_.z(function(w){if(w.nextAddress==1)return w.yield(H.JSC$23094_watchApi.playerApi,2);C=w.yieldResult;S=function(){$zD(H)};
C.addEventListener("onCollapseMiniplayer",S);H.addOnDisposeCallback(function(){C.removeEventListener("onCollapseMiniplayer",S)});
_.oT(w)})},dzc=function(H){var C=H.JSC$23094_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&C&&H.JSC$23094_watchWhileEnabled&&(H.playerIntersectionObserver=new IntersectionObserver(function(S){H.handleIntersect(S)},{threshold:[OVB]}),H.playerIntersectionObserver.observe(C),H.addOnDisposeCallback(function(){var S;
(S=H.playerIntersectionObserver)==null||S.disconnect()}))},$zD=function(H){var C,S,w;
_.z(function(A){if(A.nextAddress==1){C=_.JA().resolve(_.JB);S=C.data;w=_.Pf(S.response,!1,S.playerResponse);_.LO().miniplayerButtonActivation=!0;if(H.pipEnabled)return _.LO().watchPipActivation=!0,A.jumpTo(2);_.JA().resolve(_.Df).collapse();return A.yield(_.LO().navigationFinishPromise,2)}if(A.nextAddress!=4)return _.LO().currentEndpoint=w.watchEndpoint||null,A.yield(_.JA().resolve(_.Df).activate(H.JSC$23094_watchApi.getElement("PLAYER"),w,S),4);_.LO().userActivation=!0;_.oT(A)})};
_.PCD.prototype.handleIntersect=function(H){p9B(this,H[H.length-1])};
var p9B=function(H,C){H.watchWhileJobId&&_.rT.cancelJob(H.watchWhileJobId);H.watchWhileJobId=_.rT.addLowPriorityJob(function(){var S,w;return _.z(function(A){if(A.nextAddress==1)return H.watchWhileJobId=void 0,S=_.JA().resolve(_.Df),C.intersectionRatio>OVB?S.isMiniplayerActive()?A.yield(S.deactivate(),0):A.jumpTo(0):(w=!S.isMiniplayerActive())?A.yield(kft(H),5):A.jumpTo(4);A.nextAddress!=4&&(w=A.yieldResult);if(!w)return A.jumpTo(0);_.LO().watchWhileActivation=!0;return A.yield(h0V(H),0)})},100)},
kft=function(H){return _.z(function(C){return C.nextAddress==1?_.E("kevlar_watch_while_paused")?C.return(!0):C.yield(H.isPlayerPlaying(),2):C.return(C.yieldResult)})};
_.PCD.prototype.isPlayerPlaying=function(){var H=this,C;return _.z(function(S){if(S.nextAddress==1)return S.yield(H.JSC$23094_watchApi.playerApi,2);C=S.yieldResult;return S.return(C.getPlayerStateObject().isPlaying)})};
var h0V=function(H){var C,S;return _.z(function(w){C=_.JA().resolve(_.JB).data;S=_.Pf(C.response,!1,C.playerResponse);_.LO().currentEndpoint=S.watchEndpoint||null;return w.yield(_.JA().resolve(_.Df).activate(H.JSC$23094_watchApi.getElement("PLAYER"),S,C),0)})};_.BT9=function(H){_.Op.call(this);this.JSC$23098_watchApi=H;nu4(this);rOT(this)};
_.G(_.BT9,_.Op);var rOT=function(H){var C,S;_.z(function(w){if(w.nextAddress==1)return w.yield(H.JSC$23098_watchApi.playerApi,2);C=w.yieldResult;S=function(A){var J;A.sessionData&&A.sessionData.itct&&(J=A.sessionData.itct);var c=A.watchEndpoint;if(c&&A.sessionData&&A.sessionData.autonav)c=_.v0w(c,J);else{var Y;c=_.Zy(A.videoId,(Y=A.listId)!=null?Y:void 0,J)}J={endpoint:c};A.sessionData&&(J.tempData=A.sessionData);H.JSC$23098_watchApi.dispatchEvent("yt-navigate",J)};
C.addEventListener("onPlayVideo",S);H.addOnDisposeCallback(function(){C.removeEventListener("onPlayVideo",S)});
_.oT(w)})},nu4=function(H){var C=function(S){H.onYtNavigate(S)};
H.JSC$23098_watchApi.getRoot().addEventListener("yt-navigate",C);H.addOnDisposeCallback(function(){H.JSC$23098_watchApi.getRoot().removeEventListener("yt-navigate",C)})};
_.BT9.prototype.onYtNavigate=function(H){var C=this,S,w,A,J,c,Y,M,m,W;return _.z(function(y){if(y.nextAddress==1){if(!((S=H.detail)==null?0:(w=S.endpoint)==null?0:w.watchEndpoint))return y.return();A=H.detail.endpoint.watchEndpoint;J=C.JSC$23098_watchApi.getWatchNextResponse();Y=_.e((c=J)==null?void 0:c.currentVideoEndpoint,_.sX);if(!Y)return y.return();if(A.videoId!==Y.videoId||A.playlistId&&A.playlistId!==Y.playlistId||typeof A.startTimeSeconds!=="number")return y.jumpTo(0);H.stopPropagation();
(M=_.E("kevlar_watch_while_v2")&&!_.E("kevlar_watch_while_counterfactual"))&&_.JA().resolve(_.Df).isMiniplayerActive()||C.JSC$23098_watchApi.scrollWatchTo(0,!0);return y.yield(C.JSC$23098_watchApi.playerApi,3)}m=y.yieldResult;W=A.startTimeSeconds;m.seekTo(W,void 0,void 0,void 0,84);m.wakeUpControls();W<m.getDuration()&&m.playVideo();_.oT(y)})};_.KQD=function(H){_.Op.call(this);var C=this;this.JSC$23101_watchApi=H;var S=this.JSC$23101_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Dz4(C)});
this.addOnDisposeCallback(function(){C.JSC$23101_watchApi.unsubscribeByKey(S)});
Dz4(this);_.E("enable_ai_companion")&&(H=this.JSC$23101_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&_.qg_(_.JA().resolve(_.JT),H,"WATCH")};
_.G(_.KQD,_.Op);var Dz4=function(H){var C=H.JSC$23101_watchApi.getWatchNextResponse();if(C){var S,w=[].concat(_.k$((S=C==null?void 0:C.engagementPanels)!=null?S:[]));w.unshift.apply(w,_.k$(tk4(C)));H.JSC$23101_watchApi.provideRenderingData("ENGAGEMENT_PANELS",w)}},LQD=function(H){var C,S,w,A=(C=H.engagementPanels)==null?void 0:(S=C.find(function(b){var u;
return((u=b.engagementPanelSectionListRenderer)==null?void 0:u.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(w=S.engagementPanelSectionListRenderer.content)==null?void 0:w.structuredDescriptionContentRenderer,J;
if(_.e(A==null?void 0:(J=A.items)==null?void 0:J.find(function(b){return!!_.e(b,cbV)}),cbV))return!0;
var c,Y,M,m;if(H=(((c=H.contents)==null?void 0:(Y=c.twoColumnWatchNextResults)==null?void 0:(M=Y.results)==null?void 0:(m=M.results)==null?void 0:m.contents)||[]).find(function(b){return b.videoPrimaryInfoRenderer})){var W,y,N;
return(((W=H.videoPrimaryInfoRenderer)==null?void 0:(y=W.videoActions)==null?void 0:(N=y.menuRenderer)==null?void 0:N.flexibleItems)||[]).some(function(b){b=_.e(b,_.h$1);if(!b)return!1;var u,O;b=(u=b.topLevelButton)==null?void 0:(O=u.buttonViewModel)==null?void 0:O.onTap;if(!b)return!1;u=_.L7(b);if(!u)return!1;var d;return((d=_.e(u,_.Qn))==null?void 0:d.panelIdentifier)==="PAyouchat"})}return!1},tk4=function(H){var C=[];
if(!_.E("web_watch_inject_placeholder_fantasy_panel_killswitch")){var S,w,A,J=(S=H.engagementPanels)==null?void 0:(w=S.find(function(Y){var M;return((M=Y.engagementPanelSectionListRenderer)==null?void 0:M.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(A=w.engagementPanelSectionListRenderer.content)==null?void 0:A.structuredDescriptionContentRenderer,c;
_.e(J==null?void 0:(c=J.items)==null?void 0:c.find(function(Y){return!!_.e(Y,rYP)}),rYP)&&(S=_.LM$("PAsports_fantasy"),S.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",C.push(S))}LQD(H)&&(H=_.LM$("PAyouchat"),H.engagementPanelSectionListRenderer.targetId="PAyouchat",H.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",C.push(H));
return C};_.UzB=function(H){_.Op.call(this);this.JSC$23104_watchApi=H;gu2(this)};
_.G(_.UzB,_.Op);var gu2=function(H){H.JSC$23104_watchApi.registerActionHandler("yt-loop-command",function(C){R0r(H,C)});
H.JSC$23104_watchApi.registerActionHandler("yt-repeat-chapter-command",function(C){Itr(H,C)});
H.addOnDisposeCallback(function(){H.JSC$23104_watchApi.unregisterActionHandler("yt-loop-command");H.JSC$23104_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},R0r=function(H,C){var S;
_.z(function(w){if(w.nextAddress==1)return w.yield(H.JSC$23104_watchApi.playerApi,2);S=w.yieldResult;_.e(C,DOr).loop?(S.setLoopRange({startTimeMs:Number(_.e(C,DOr).startTimeMs),endTimeMs:Number(_.e(C,DOr).endTimeMs),postId:_.e(C,DOr).postId,type:"clips"}),S.playVideo()):S.setLoopRange(null);_.oT(w)})},Itr=function(H,C){var S,w;
_.z(function(A){if(A.nextAddress==1)return A.yield(H.JSC$23104_watchApi.playerApi,2);S=A.yieldResult;w=_.e(C,UOc).repeat;w==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(S.setLoopRange({startTimeMs:Number(_.e(C,UOc).startTimeMs),endTimeMs:Number(_.e(C,UOc).endTimeMs),type:"repeatChapter"}),S.playVideo()):w==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&S.setLoopRange(null);_.oT(A)})};_.xzP=function(H){_.Op.call(this);this.JSC$23109_watchApi=H;at9(this)};
_.G(_.xzP,_.Op);var at9=function(H){H.JSC$23109_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(C){HCD(H,C)});
H.addOnDisposeCallback(function(){H.JSC$23109_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},HCD=function(H,C){var S,w,A,J,c,Y,M,m,W,y,N;
_.z(function(b){if(b.nextAddress==1)return b.yield(H.JSC$23109_watchApi.playerApi,2);S=b.yieldResult;if(J=(A=(w=_.e(C,R99))==null?void 0:w.highlightedMenuItemKey)!=null?A:"")(Y=(c=S).highlightSettingsMenuItem)==null||Y.call(c,J);if(W=(m=(M=_.e(C,R99))==null?void 0:M.openMenuItemKey)!=null?m:"")(N=(y=S).openSettingsMenuItem)==null||N.call(y,W);_.oT(b)})};var iCP=_.ba("/youtube/app/watch/player_state","playerStateEntity");_.pz=function(H){_.Op.call(this);this.JSC$23112_watchApi=H;Cb9(this)};
_.G(_.pz,_.Op);var SsV=function(H){switch(H){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"}},Cb9=function(H){var C,S,w,A;
_.z(function(J){if(J.nextAddress==1)return J.yield(H.JSC$23112_watchApi.playerApi,2);C=J.yieldResult;if(H.isDisposed())return J.return();S=function(c){H.onPlayerStateChange(c)};
w=function(c){H.onAdStateChange(c)};
A=function(){H.onAdSkip()};
C.addEventListener("onStateChange",S);C.addEventListener("onAdStateChange",w);C.addEventListener("onAdSkip",A);H.addOnDisposeCallback(function(){C.removeEventListener("onStateChange",S);C.removeEventListener("onAdStateChange",w);C.removeEventListener("onAdSkip",A)});
_.oT(J)})},s8P=function(H){var C=_.wC(),S=C.dispatch;
a:switch(H.adsState){case -1:case 0:var w="ADS_STATE_NONE";break a;case 1:case 2:case 3:w="ADS_STATE_PLAYING";break a;default:w="ADS_STATE_UNKNOWN"}S.call(C,_.O5("playerStateEntity",iCP,{key:iCP,playerState:SsV(H.playerState),adsState:w,videoId:H.videoId}))};
_.pz.prototype.onPlayerStateChange=function(H){var C=this,S;return _.z(function(w){if(w.nextAddress==1)return w.yield(C.JSC$23112_watchApi.playerApi,2);S=w.yieldResult;if(C.isDisposed())return w.return();C.playerState=H;C.videoId=S.getVideoData().video_id;s8P(C);_.oT(w)})};
_.pz.prototype.onAdStateChange=function(H){this.adsState=H;s8P(this)};
_.pz.prototype.onAdSkip=function(){this.adsState=0;s8P(this)};_.wnD=function(H){_.Op.call(this);var C=this;this.JSC$23116_watchApi=H;this.enableExternalPlaylistPanelInPlayer=_.E("delhi_web_player_use_external_playlist_panel");_.JA().resolve(_.qb).setPlayer(this.JSC$23116_watchApi.getElement("PLAYER"));H=this.JSC$23116_watchApi.subscribeToActiveChanged(function(S){C.onActiveChanged(S)});
this.addOnDisposeCallback(H);j8D(this)};
_.G(_.wnD,_.Op);var j8D=function(H){var C,S;_.z(function(w){if(w.nextAddress==1)return H.enableExternalPlaylistPanelInPlayer?w.yield(H.JSC$23116_watchApi.playerApi,2):w.return();C=w.yieldResult;S=function(){if(H.playlistPanelElement)H.playlistPanelElement.onToggleExpanded()};
C.addEventListener("onToggleExternalPlaylistPanel",S);H.addOnDisposeCallback(function(){C.removeEventListener("onToggleExternalPlaylistPanel",S)});
_.oT(w)})};
_.wnD.prototype.onActiveChanged=function(H){var C=this,S=_.JA().resolve(_.qb),w=function(){AtB(C)};
H?(this.playlistPanelElement=this.JSC$23116_watchApi.getElement("PLAYLIST_PANEL"))?(S.setPlaylistComponent(this.playlistPanelElement),S.addEventListener("yt-playlist-data-updated",w),this.addOnDisposeCallback(function(){S.removeEventListener("yt-playlist-data-updated",w)}),AtB(this)):_.Ug(Error("Vo")):(S.removeEventListener("yt-playlist-data-updated",w),S.cancelVideoSkip())};
var AtB=function(H){var C=_.JA().resolve(_.qb);H.JSC$23116_watchApi.provideRenderingData("PLAYLIST",C.getPlaylistData())};_.kO=function(H){_.Op.call(this);var C=this;this.JSC$23119_watchApi=H;this.onPageScroll=function(){C.scrollThrottle.fire();C.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.I$(this.onThrottledScroll,200,this);_.Nx(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.I$(this.onMastheadThrottledScroll,50,this);_.Nx(this,this.mastheadScrollThrottle);this.animation=new _.bc(function(S){C.JSC$23119_watchApi.getRoot().setScrollTop(S)});
H=_.Uf(_.AG(),_.Ku,function(){C.onFullscreenChanged()});
this.addOnDisposeCallback(H);Jtv(this);FvB(this);this.onThrottledScroll()};
_.G(_.kO,_.Op);
_.kO.prototype.onFullscreenChanged=function(){var H=this,C=this.JSC$23119_watchApi.getRoot();!this.pageScrollElement&&C.pageScrollElement?(this.pageScrollElement=C.pageScrollElement,C.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){H.pageScrollElement&&H.pageScrollElement.removeEventListener("scroll",H.onPageScroll)})):this.pageScrollElement&&!C.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var Jtv=function(H){window.addEventListener("scroll",H.onPageScroll);H.addOnDisposeCallback(function(){window.removeEventListener("scroll",H.onPageScroll)})},FvB=function(H){H.JSC$23119_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(C){a:{var S;
if(S=H.JSC$23119_watchApi.getRoot().contains(C)&&!H.animation.isAnimating()){S=C.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var w,A,J=(C==null?void 0:(w=C.parentElement)==null?void 0:(A=w.parentElement)==null?void 0:A.id)==="fixed-secondary";S=!(S&&J)}if(S){if(_.E("kevlar_watch_scroll_manager_absolute_offset_killswitch"))w=C.offsetTop;else for(w=0,A=C;A!==null;)w+=A.offsetTop,w-=A.scrollTop,A=A.offsetParent;A=w;w=A-24;C=A+C.offsetHeight+24;A=H.JSC$23119_watchApi.getRoot().getPageScrollingElement();
S=H.JSC$23119_watchApi.getRoot().getScrollTop();J=S+A.clientHeight-56;if(w<S+56)C=w-56;else if(C>J)C-=A.clientHeight;else break a;H.scrollWatchTo(Math.max(0,C),!0)}}});
H.addOnDisposeCallback(function(){H.JSC$23119_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.kO.prototype.onThrottledScroll=function(){var H=_.AG(),C=H.dispatch,S=this.JSC$23119_watchApi.getRoot().getScrollTop();C.call(H,_.Md({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:S}}))};
_.kO.prototype.onMastheadThrottledScroll=function(){this.JSC$23119_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$23119_watchApi.getRoot().getScrollTop())};
_.kO.prototype.scrollWatchTo=function(H,C){(C===void 0?0:C)?this.animation.start(this.JSC$23119_watchApi.getRoot().getScrollTop(),Math.max(0,H),500):this.JSC$23119_watchApi.getRoot().setScrollTop(H)};_.YsB=function(H){_.Op.call(this);var C=this;this.JSC$23122_watchApi=H;var S=this.JSC$23122_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){ZCt(C)}),w=this.JSC$23122_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){ctV(C)});
this.addOnDisposeCallback(function(){C.JSC$23122_watchApi.unsubscribeByKey(S);C.JSC$23122_watchApi.unsubscribeByKey(w)});
ZCt(this);ctV(this)};
_.G(_.YsB,_.Op);
var ZCt=function(H){var C,S,w,A=(w=(C=H.JSC$23122_watchApi.getPlayerResponse())==null?void 0:(S=C.videoDetails)==null?void 0:S.title)!=null?w:"";H.JSC$23122_watchApi.dispatchEvent("yt-update-title",A)},ctV=function(H){var C,S,w,A,J,c,Y,M=(Y=((c=(C=H.JSC$23122_watchApi.getWatchNextResponse())==null?void 0:(S=C.contents)==null?void 0:(w=S.twoColumnWatchNextResults)==null?void 0:(A=w.results)==null?void 0:(J=A.results)==null?void 0:J.contents)!=null?c:[]).find(function(m){return!!m.videoPrimaryInfoRenderer}))==null?
void 0:Y.videoPrimaryInfoRenderer;
(C=_.jt(M==null?void 0:M.title))&&H.JSC$23122_watchApi.dispatchEvent("yt-update-title",C)};_.Mrr=function(H){_.Op.call(this);this.JSC$23125_watchApi=H;zbP(this)};
_.G(_.Mrr,_.Op);var zbP=function(H){var C,S;_.z(function(w){if(w.nextAddress==1)return w.yield(H.JSC$23125_watchApi.playerApi,2);C=w.yieldResult;S=function(){H.onYpcContentRequest()};
C.addEventListener("onYpcContentRequest",S);H.addOnDisposeCallback(function(){C.removeEventListener("onYpcContentRequest",S)});
_.oT(w)})};
_.Mrr.prototype.onYpcContentRequest=function(){var H,C,S,w,A,J=(H=this.JSC$23125_watchApi.getWatchNextResponse())==null?void 0:(C=H.contents)==null?void 0:(S=C.twoColumnWatchNextResults)==null?void 0:(w=S.secondaryResults)==null?void 0:(A=w.secondaryResults)==null?void 0:A.offerModule,c,Y,M,m;H=(m=(M=(Y=(c=J==null?void 0:J.episodeOfferModuleRenderer)!=null?c:J==null?void 0:J.movieOfferModuleRenderer)!=null?Y:J==null?void 0:J.unlimitedOfferModuleRenderer)!=null?M:J==null?void 0:J.liveOfferModuleRenderer)!=
null?m:J==null?void 0:J.tvfilmOfferModuleRenderer;var W,y,N;J=(N=J==null?void 0:(W=J.tvfilmOfferModuleRenderer)==null?void 0:(y=W.actionButtons)==null?void 0:y.length)!=null?N:0;y=Math.max(J-1,0);var b,u,O;W=(O=H==null?void 0:(b=H.offerButton)==null?void 0:b.buttonRenderer)!=null?O:H==null?void 0:(u=H.actionButtons)==null?void 0:u[y].buttonRenderer;var d,p;(b=(p=(d=W==null?void 0:W.navigationEndpoint)!=null?d:W==null?void 0:W.serviceEndpoint)!=null?p:W==null?void 0:W.command)&&_.eU.instance.resolveCommand(b)};
}catch(e){_._DumpException(e)}
try{
var wHO,SX_,iLp;_.C9p=function(){var H=_.hb.clone(HL_),C;return(new _.Es(function(S,w){H.onSuccess=function(A){_.x36(A)?S(new iLp(A)):w(new _.nI("Request failed, status="+_.WA(A),"net.badstatus",A))};
H.onError=function(A){w(new _.nI("Unknown request error","net.unknown",A))};
H.onTimeout=function(A){w(new _.nI("Request timed out","net.timeout",A))};
C=_.e$("//googleads.g.doubleclick.net/pagead/id",H)})).thenCatch(function(S){if(S instanceof _.KN){var w;
(w=C)==null||w.abort()}return _.kj(S)})};
_.sk_=function(H){a:{var C="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(C="EMBEDDED_PLAYER_MODE_PFL");var S=H.raw_embedded_player_response;if(!S&&(H=H.embedded_player_response))try{S=JSON.parse(H)}catch(A){break a}if(S)b:for(var w in SX_)if(SX_[w]==S.embeddedPlayerMode){C=SX_[w];break b}}return C==="EMBEDDED_PLAYER_MODE_PFL"};
_.jkR=function(){if(_.E("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("tf");if(!_.OH$())return Error("uf");var H=_.rh("PLAYER_VARS",{});if(_.hb.get(H,"privembed",!1)=="1")return Error("vf");if(_.sk_(H))return Error("wf")};
wHO=function(H){switch(H){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:_.KP(H,"unknown result type")}};
_.AMp=function(H,C,S){C=_.$$E[C];S={detected:H===0,source:C.rW1,detectionResult:wHO(H),contentCpn:S};_.kI("biscottiBasedDetection",S);_.GFV.increment(C.rW1,H);C.yZS!==void 0&&_.np("CATSTAT",_.d$E(H,C))};
_.rl=function(H,C){var S={};S.key=H;S.value=C;return _.mv7().then(function(w){return new Promise(function(A,J){try{var c=w.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(S);c.onsuccess=function(){A()};
c.onerror=function(){J()}}catch(Y){J(Y)}})})};
_.F79=function(){var H=_.YB("user_engagement_experiments_rate_limit_ms"),C=JMt.get("last-user-engagement-exp-trigger-timestamp");return!C||(0,_.Zt)()>=C+H?(JMt.set("last-user-engagement-exp-trigger-timestamp",(0,_.Zt)()),!0):!1};
_.B$=function(H,C,S,w,A){C=C===void 0?null:C;S=S===void 0?null:S;w=w===void 0?null:w;A=A===void 0?null:A;H={youThereEventType:H};S&&(H.lactThresholdMs=S.lactThresholdMs,H.mediaPosSec=S.promptDelaySec,H.lactServerRequestMs=S.lactServerRequestMs,H.triggerReason=S.triggerReason);A!=null&&(H.renderingMediaPosSec=Math.round(A));C||(C=_.Dg());C&&(H.clientScreenNonce=C);w&&(H.clientPlaybackNonce=w);_.kI("youThere",H)};
SX_={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"};iLp=function(H){this.xhr=H};
_.nI=function(H,C,S){_.CU.call(this,H+", errorCode="+C);this.errorCode=C;this.xhr=S;this.name="PromiseAjaxError"};
_.G(_.nI,_.CU);var HL_={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var JMt=new _.LV("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.xQ_=function(H){return _.Md({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:H})};
}catch(e){_._DumpException(e)}
try{
var Bp,nIh,Bv9,DKv,KvB,tr2,gID,SWT,sqh,jqV,LvB,rth,aZB,IZ7,JPB;_.hbv=function(){var H=window.location.hash;H.charAt(0)==="#"&&(H=H.charAt(1)==="!"?H.substring(2):H.substring(1));return _.a6(H)};
Bp=function(H,C,S){var w;return _.z(function(A){if(A.nextAddress==1)return A.yield(C(),2);w=A.yieldResult;S(w,H);_.oT(A)})};
nIh=function(){return _.z(function(H){return H.nextAddress==1?H.yield((_.jkR()!==void 0?_.kj(Error("xf")):_.C9p()).then(function(){return 1},function(C){if(C.message==="Biscotti id is disabled")return 3;
_.Bn("Failed fetching bid");return 0}),2):H.return(H.yieldResult)})};
Bv9=function(){var H=_.cU("bHJ5dC1oYXZlbi1lbWJlZC1wbGF5ZXIjb3I0N2R1ZXp2"),C=_.cU("YW1lI3Iya2dtMW92ajA3a2lmcg==");return document.querySelector(C+rth+H)?0:1};
DKv=function(){return _.bT$(_.e8)};
KvB=function(){return _.EoD()===0?0:_.es7()};
tr2=function(){return _.lLW(_.B27([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
gID=function(){return _.zsw(LvB)};
_.UKB=function(H){_.z(function(C){switch(C.nextAddress){case 1:return C.yield(Bp("b.f_",nIh,H),2);case 2:return C.yield(Bp("j.s_",_.c10,H),3);case 3:return C.yield(Bp("r.s_",_.J1Z,H),4);case 4:return C.yield(Bp("e.h_",gID,H),5);case 5:if(!_.E("ab_det_sc_inj")){C.jumpTo(6);break}return C.yield(Bp("s.i_",_.y1W,H),6);case 6:if(_.E("ab_deg_unex_thr")){C.jumpTo(8);break}return C.yield(Bp("a.o_",_.m$E,H),8);case 8:if(_.E("ks_get_o_pp")){C.jumpTo(10);break}return C.yield(Bp("g.o_",_.T9$,H),10);case 10:if(_.E("ks_det_gpbl")){C.jumpTo(12);
break}return C.yield(Bp("p.i_",_.qI$,H),12);case 12:return C.yield(Bp("f.i_",_.I$$,H),14);case 14:return C.yield(Bp("a.b_",_.w_p,H),15);case 15:return C.yield(Bp("p.m_",_.HTZ,H),16);case 16:if(!_.E("ab_det_el_h_v2")){C.jumpTo(17);break}return C.yield(Bp("n.h_",tr2,H),17);case 17:return C.yield(Bp("o.p_",DKv,H),19);case 19:return C.yield(Bp("e.i_",Bv9,H),20);case 20:if(_.E("ab_det_apm"))return C.yield(Bp("o.a_",KvB,H),0);C.jumpTo(0)}})};
_.RbB=function(H,C){H={videoId:H};C&&(H.playlistId=C);return H};
_.xK4=function(){if(_.OH$()){var H=_.rh("PLAYER_VARS",{});if(_.hb.get(H,"privembed",!1)!="1"&&!_.sk_(H)){var C=function(){IZ7=!0;"google_ad_status"in window?_.np("DCLKSTAT",1):_.np("DCLKSTAT",2)};
try{_.Ie(_.BuO,C)}catch(S){}aZB.push(_.rT.addLowPriorityJob(function(){if(!(IZ7||"google_ad_status"in window)){try{_.eJW(_.BuO.toString(),C)}catch(S){}IZ7=!0;_.np("DCLKSTAT",3)}},5E3))}}};
_.HmT=function(H,C,S){S=S===void 0?!1:S;var w=Math.max(H.width,_.z_9);if(_.E("kevlar_watch_feed_big_thumbs")&&H.width>=1550-_.Nm()&&H.height>=800)w-=_.ybt;else if(H.width>=_.KW){var A=_.M2T+_.qlT+_.Du;_.E("kevlar_watch_feed_big_thumbs")&&(A=_.WD2);w-=A}else w-=_.M2T;w=Math.min(w,_.Tx9);A=240;S&&(A=380);C<.5624||(!_.E("kevlar_watch_flexy_disable_small_window_sizing")&&(H.height<630&&H.width>=657||H.height>=630&&H.width>=_.KW&&H.width<1327)?A=360:!_.E("kevlar_watch_flexy_disable_large_window_sizing")&&
H.height>=630&&H.width>=1327&&(A=480));var J=Math.min(w*C,H.height-(56+_.Ylt+_.mH4));J=Math.max(J,A);C<1?w=J/C:H.width>=_.KW&&(w=_.HmT(H,.5625,S).width);return new _.vj(Math.round(w),Math.round(J))};
_.imP=function(H){var C=0;H.indexOf("h")!=-1&&(H=H.split("h"),C=H[0]*60*60,H=H[1]);H.indexOf("m")!=-1&&(H=H.split("m"),C=H[0]*60+C,H=H[1]);H.indexOf("s")!=-1?(H=H.split("s"),C=H[0]*1+C):C=H*1+C;return C};
_.CyV=function(){_.YB("service_worker_push_logged_out_prompt_watches")!=-1&&_.DP("WatchCount").then(function(H){H>=100||_.rl("WatchCount",H+1)})};
SWT=function(H){var C=H.externalVideoId||"";return C?H.isShortsEligible?"https://www.youtube.com/shorts/"+C:"https://www.youtube.com/watch?v="+C:""};
sqh=function(H){var C=[];H.viewCount&&C.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:H.viewCount});H.likeCount&&C.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:H.likeCount});return C};
jqV=function(H){var C,S,w={"@context":"https://schema.org","@type":"VideoObject",description:_.jt(H.description),duration:"PT"+(H.lengthSeconds||"0")+"S",embedUrl:H.embed?H.embed.iframeUrl:"",name:_.jt(H.title),thumbnailUrl:((C=H.thumbnail)==null?void 0:(S=C.thumbnails)==null?void 0:S.map(function(W){return W&&W.url||""}))||[],
uploadDate:H.publishDate};_.E("mweb_video_schema_id_killswitch")||(w["@id"]=SWT(H));C=sqh(H);C.length&&(w.interactionStatistic=C);H.category&&(w.genre=H.category);H.ownerChannelName&&(w.author=H.ownerChannelName);H.liveBroadcastDetails&&(w.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:H.liveBroadcastDetails.startTimestamp,endDate:H.liveBroadcastDetails.endTimestamp}]);if(H.learningResource){H=H.learningResource;w["@type"]=["VideoObject","LearningResource"];var A;if((A=H.learningResourceType)==
null?0:A.length)w.learningResourceType=H.learningResourceType[0];var J;if((J=H.educationalAlignment)==null?0:J.length)w.educationalAlignment={"@type":"AlignmentObject",targetName:H.educationalAlignment[0]};var c;if((c=H.educationalLevel)==null?0:c.length){A=H.educationalLevel[0];var Y;if((Y=H.educationalLevelCountry)==null?0:Y.length)A+=" ("+H.educationalLevelCountry+")";w.educationalLevel=A}var M,m;if(((M=H.learningResourceType)==null?0:M.length)&&H.learningResourceType[0]==="Problem walkthrough"&&
((m=H.problemDescriptions)==null?0:m.length))for(w.hasPart=[],Y=_.Z(H.problemDescriptions),M=Y.next();!M.done;M=Y.next())A=M.value,M=A.problemDescriptionText,m=A.startOffset,A=A.url,M&&m!==void 0&&A&&w.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:M,text:M,startOffset:m,url:A})}return w};
_.w5T=function(H){return _.Md({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:H}})};
LvB=[[["cnkjdHB5Z2Mwc25zcDFkcHJpbWE=",null,null],[null,["cm93c2UtcmVzdWx0cy1yZW5kZXJlciNodXJwd3pubm91Mzd5dGQtdHdvLWNvbHVtbi1i","a3dveDRvYjN2dG5zdHlsZS1zY29wZSNl"],null],["Y21qbGVrb29iZGVtYXN0aGVhZC1hZCM0",["eXRkLXJpY2gtZ3JpZC1yZW5kZXJlciNsOXgwZnM2N2ZkbGo="],null],[null,["eXRkLXJpY2gtZ3JpZC1yZW5kZXJlciN3dDF1ZXFmc28xczY=","a204M3FqcGJmYXdzdHlsZS1zY29wZSNm"],null],[null,["LWJhbm5lci1wcm9tby1yZW5kZXJlciMzdDEzMHU4dXV3d3R5dGQ=","NjVzMXo3a3BvNnVzdHlsZS1zY29wZSMx"],null],[null,["bWh5dGQtYWQtc2xvdC1yZW5kZXJlciNseHVpZmZwZG13"],
null]],[["dno5cWpwM2hjNnd1cGxheWVyLWFkcyM=",null,null]],[["ZGdiZnNkZXNjcmlwdGlvbi1pbm5lciN1MGlqenJq",null,null],[null,null,"ZC1tZXJjaC1zaGVsZi1yZW5kZXJlciNrYmphdWkyNzFtc2h5dA=="],["cG1haW4jdzhybXppcXdjYnk=",["ZC1tZXJjaC1zaGVsZi1yZW5kZXJlciM5YWVjNWNvZG9uMTd5dA=="],null]]];rth="#";aZB=[];IZ7=!1;_.APD=["engagement-panel-ads"];JPB=new _.mi("updateSentimentBarStateCommand");_.FrB=new _.mi("showSurveyCommand");_.DG=new _.mi("changeMarkersVisibilityCommand");var cP7,YW2,Tdv,qWh,Mat,Kz;_.ZmT=function(H,C){this.playerProvider_=H;this.actionSenderElement_=C;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.ZmT.prototype.reset=function(){cP7(this);this.isUserPredictedAbsent_=!1};
cP7=function(H,C){!H.youThereData_||H.showWarningJob_||C!==void 0&&C||(_.B$("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.Dg(),H.youThereData_,H.clientPlaybackNonce_),_.ht());_.rT.cancelJob(H.showWarningJob_);H.showWarningJob_=0;_.rT.cancelJob(H.showBlockingWarningJob_);H.showBlockingWarningJob_=0;_.rT.cancelJob(H.pausePlaybackJob_);H.pausePlaybackJob_=0;H.youThereData_=null;H.clientPlaybackNonce_=void 0;H.inYouThereFlow_=!1};
_.zrT=function(H,C){var S,w,A;_.z(function(J){if(J.nextAddress==1)return H.reset(),J.yield(H.playerProvider_().getPlayerPromise(),2);S=J.yieldResult;H.clientPlaybackNonce_=S.getVideoData().cpn;H.youThereData_=C.configData.youThereData;if(!H.youThereData_)return J.return();if(H.youThereData_.triggerReason&&H.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.F79())return _.B$("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.Dg(),H.youThereData_,H.clientPlaybackNonce_),J.return();w=H.youThereData_.promptDelaySec;
A=S.getCurrentTime();H.showWarningJob_=_.rT.addLowPriorityJob(function(){return _.z(function(c){H.showWarningJob_=0;return c.yield(YW2(H),0)})},Math.max(w-A,0)*1E3);
_.oT(J)})};
YW2=function(H){var C,S,w,A,J,c;return _.z(function(Y){if(Y.nextAddress==1)return Y.yield(H.playerProvider_().getPlayerPromise(),2);if(Y.nextAddress!=3)return C=Y.yieldResult,S=C.getCurrentTime(),Y.yield(Mat(H),3);w=Y.yieldResult;if(!w||!H.youThereData_)return Y.return();if(_.E("check_user_lact_at_prompt_shown_time_on_web")&&(A=parseInt(H.youThereData_.lactThresholdMs,10),_.cn()<A))return _.B$("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.Dg(),H.youThereData_,H.clientPlaybackNonce_),Y.return();if(H.youThereData_.playbackPauseDelayMs<=
0)return qWh(H),Y.return();!_.E("external_fullscreen")&&(J=_.ZR())&&(H.ignoreFullscreenExitUserActivity_=!0,_.rT.addLowPriorityJob(function(){H.ignoreFullscreenExitUserActivity_=!1},2E3),_.cH(J));
H.youThereData_.showToastWarningPrompt&&(Kz(H,H.youThereData_.showWarningActions),H.inYouThereFlow_=!0,_.B$("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.Dg(),H.youThereData_,H.clientPlaybackNonce_,S),_.B$("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.Dg(),H.youThereData_,H.clientPlaybackNonce_,S));c=0;H.youThereData_.blockingPromptDelayMs&&(c=H.youThereData_.blockingPromptDelayMs);H.showBlockingWarningJob_=_.rT.addLowPriorityJob(function(){return _.z(function(M){H.showBlockingWarningJob_=0;return M.yield(Tdv(H),
0)})},c);
_.oT(Y)})};
Tdv=function(H){var C,S,w;return _.z(function(A){if(A.nextAddress==1)return A.yield(Mat(H),2);C=A.yieldResult;if(!H.youThereData_)return A.return();C&&(H.youThereData_.showBlockingWarningAction&&(_.B$("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.Dg(),H.youThereData_,H.clientPlaybackNonce_),(S=_.e(H.youThereData_.showBlockingWarningAction,_.b9))?Kz(H,S.commands):Kz(H,[H.youThereData_.showBlockingWarningAction]),H.inYouThereFlow_=!0),w=H.youThereData_.playbackPauseDelayMs,H.pausePlaybackJob_=
_.rT.addLowPriorityJob(function(){return _.z(function(J){H.pausePlaybackJob_=0;return J.yield(qWh(H),0)})},w));
_.oT(A)})};
qWh=function(H){var C;return _.z(function(S){if(S.nextAddress==1)return S.yield(Mat(H),2);C=S.yieldResult;if(!H.youThereData_)return S.return();C&&(_.B$("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.Dg(),H.youThereData_,H.clientPlaybackNonce_),Kz(H,H.youThereData_.showPausedActions),H.inYouThereFlow_=!0);_.oT(S)})};
_.ZmT.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var H=_.e(this.youThereData_.userActiveDuringFlowAction,_.b9);H?Kz(this,H.commands):Kz(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.B$("YOU_THERE_EVENT_TYPE_LACT_RESET",_.Dg(),this.youThereData_,this.clientPlaybackNonce_),_.ht());cP7(this,!0)}_.m_c(this,!1)};
_.WrT=function(H){_.B$("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.Dg(),H.youThereData_,H.clientPlaybackNonce_)};
Mat=function(H){var C,S;return _.z(function(w){if(w.nextAddress==1)return w.yield(H.playerProvider_().getPlayerPromise(),2);C=w.yieldResult;S=C.getPlayerState();return w.return(S==-1||S==1||S==3)})};
_.m_c=function(H,C){var S;_.z(function(w){if(w.nextAddress==1){if(H.isUserPredictedAbsent_==C)return w.jumpTo(0);H.isUserPredictedAbsent_=C;return w.yield(H.playerProvider_().getPlayerPromise(),3)}S=w.yieldResult;S.setUserEngagement(C);C&&_.B$("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.Dg(),H.youThereData_,H.clientPlaybackNonce_);_.oT(w)})};
Kz=function(H,C){if(_.E("handle_service_request_actions")||_.E("kevlar_youthere_service_endpoint_actions_killswitch"))_.yN(H.actionSenderElement_,C,H.actionSenderElement_);else{C=_.Z(C);for(var S=C.next();!S.done;S=C.next())S=S.value,S.commandMetadata&&S.commandMetadata.webCommandMetadata&&S.commandMetadata.webCommandMetadata.sendPost?_.WH(H.actionSenderElement_,[S]):_.yN(H.actionSenderElement_,[S],H.actionSenderElement_)}};var yPv;var NdT;var tF=function(){var H=_.X.apply(this,arguments)||this;H.systemIcons=_.E("kevlar_system_icons");H.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return H};
_.G(tF,_.X);tF.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var H=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(H=this.data.percentIfLiked||0,this.activated=!0):(H=this.data.percentIfIndifferent||0,this.activated=!1);_.mY(this.hostElement).querySelector("#like-bar").style.width=H+"%"}};
tF.prototype.handleUpdateSentimentBarStateCommand=function(H){this.data&&this.set("data.likeStatus",_.e(H,JPB).likeStatus)};
tF.prototype.observeLikeStatus=tF.prototype.observeLikeStatus;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],tF.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],tF.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],tF.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],tF.prototype,"activated",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],tF.prototype,"systemIcons",void 0);_.D([_.fx("data.likeStatus"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],tF.prototype,"observeLikeStatus",null);_.D([_.h({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],tF);
_.B(tF,"ytd-sentiment-bar-renderer",function(){if(NdT!==void 0)return NdT;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return NdT=H},{mode:1});var bmT;var Lz=function(){var H=_.X.apply(this,arguments)||this;H.small=!0;return H};
_.G(Lz,_.X);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Lz.prototype,"ytComponentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Lz.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Lz.prototype,"small",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],Lz);
_.B(Lz,"ytd-video-view-count-renderer",function(){if(bmT!==void 0)return bmT;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return bmT=H},{mode:_.mn("kevlar_poly_si_batch_j080")?1:2});var gb=function(){var H=_.X.apply(this,arguments)||this;H.infoFormattedStrings=[];H.wrapVideoActions=_.E("kevar_watch_wrap_video_actions");H.hideSentimentBar=_.E("kevlar_watch_hide_sentiment_bar");H.actionMap={};return H};
_.G(gb,_.X);_.F=gb.prototype;_.F.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.E("web_modern_buttons"),forceIconButton:!_.E("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.F.dataChanged=function(){_.E("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.F.computeInfoFormattedStrings=function(H){if(!H)return[];var C=[];H.dateText&&C.push(H.dateText);H.stationName&&C.push(H.stationName);H.rating&&C.push(H.rating);H.startEndTimeTemplate&&H.startTimeUtcMillis&&H.endTimeUtcMillis&&C.push(_.sx(_.Vhh(_.jt(H.startEndTimeTemplate),Number(H.startTimeUtcMillis),Number(H.endTimeUtcMillis))));H.upNextProgramText&&C.push(H.upNextProgramText);return C};
_.F.scheduleInitialUpdatedMetadataRequest=function(){var H,C=(H=this.data)==null?void 0:H.updatedMetadataEndpoint;if(C){var S;H=Number((S=_.e(C,_.mbW))==null?void 0:S.initialDelayMs);S=isNaN(H)?250:H;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),S)}};
_.F.setSentimentBarWidth=function(){var H=this;_.wM(this,function(){var C=_.mY(H.hostElement).querySelector("ytd-menu-renderer");if(C){C=C.topLevelButtons;for(var S=0,w=0;w<C.length;w++){var A=C[w],J=H.get("toggleButtonSupportedData.toggleButtonIdData.id",A.data);if(J==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||J==="TOGGLE_BUTTON_ID_TYPE_LIKE")S+=A.clientWidth+8;else break}S&&(H.sentiment.style.width=S-8+" px")}})};
_.F.fetchUpdatedMetadata=function(H){var C;H&&(C={continuation:H});var S;(H=(S=this.data)==null?void 0:S.updatedMetadataEndpoint)&&_.JA().resolve(_.ZQ).resolveCommand(H,{form:Object.assign({},C,{element:this.hostElement})})};
_.F.onYtServiceRequestSent=function(H,C){C.endpoint&&_.e(C.endpoint,_.DB)&&(this.hasUpdateSentimentBarStateCommands()&&!_.E("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.e(C.endpoint,_.DB).status),this.setSentimentBarWidth())};
_.F.hasUpdateSentimentBarStateCommands=function(){var H,C,S,w,A=(w=(H=this.data)==null?void 0:(C=H.videoActions)==null?void 0:(S=C.menuRenderer)==null?void 0:S.topLevelButtons)!=null?w:[];H=_.Z(A);for(C=H.next();!C.done;C=H.next()){C=C.value;A=w=S=void 0;var J=(S=C.toggleButtonRenderer)==null?void 0:(w=S.toggleButtonSupportedData)==null?void 0:(A=w.toggleButtonIdData)==null?void 0:A.id;if(J==="TOGGLE_BUTTON_ID_TYPE_LIKE"||J==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){w=S=void 0;C=(w=_.e((S=C.toggleButtonRenderer)==
null?void 0:S.defaultServiceEndpoint,_.b9))==null?void 0:w.commands;if(!C)break;C=_.Z(C);for(S=C.next();!S.done;S=C.next())if(_.e(S.value,JPB))return!0}}return!1};
_.F.onYtServiceRequestCompleted=function(H,C){var S;(H=(S=C.data)==null?void 0:S.loggingDirectives)&&_.jP0(_.lJ(),H);this.get("continuation.timedContinuationData",C.data)&&this.data&&this.data.updatedMetadataEndpoint&&(C=C.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,C.continuation),C.timeoutMs))};
_.F.computeHasDateText=function(H){return!!H&&!!H.dateText};
_.JJ.Object.defineProperties(gb.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var H,C,S,w;return!((w=(H=this.data)==null?void 0:(C=H.videoActions)==null?void 0:(S=C.menuRenderer)==null?void 0:S.flexibleItems)==null||!w.length)}}});
gb.prototype.onYtServiceRequestCompleted=gb.prototype.onYtServiceRequestCompleted;gb.prototype.onYtServiceRequestSent=gb.prototype.onYtServiceRequestSent;gb.prototype.dataChanged=gb.prototype.dataChanged;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],gb.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],gb.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],gb.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.o_.YtTaskEmitterBehavior),_.K("design:type",Object)],gb.prototype,"ytTaskEmitterBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],gb.prototype,"data",void 0);_.D([_.V({computed:"computeInfoFormattedStrings(data)"}),_.K("design:type",Array)],gb.prototype,"infoFormattedStrings",void 0);
_.D([_.V({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],gb.prototype,"hasDateText",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],gb.prototype,"wrapVideoActions",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],gb.prototype,"hideSentimentBar",void 0);_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],gb.prototype,"flexMenuEnabled",null);
_.D([_.lA("#sentiment"),_.K("design:type",Object)],gb.prototype,"sentiment",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],gb.prototype,"dataChanged",null);_.D([_.Gz("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.IW]),_.K("design:returntype")],gb.prototype,"onYtServiceRequestSent",null);
_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.j4]),_.K("design:returntype")],gb.prototype,"onYtServiceRequestCompleted",null);
_.B(gb,"ytd-video-primary-info-renderer",function(){if(yPv===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);yPv=H}H=yPv;return H},{mode:1});var Eft;var UB=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return H};
_.G(UB,_.X);_.F=UB.prototype;_.F.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"}}}};
_.F.dataChanged=function(){var H;this.descriptionToggled=!((H=this.data)==null||!H.defaultExpanded);var C;this.collapsed=this.descriptionAlwaysCollapsed||!((C=this.data)==null?0:C.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.y4(110509);this.showLessClientVe=_.y4(110510);H=_.Dg();C=_.BM();H&&C&&_.xR(H,C,[this.showMoreClientVe,this.showLessClientVe])};
_.F.onYtExpanderMoreTapped=function(){var H,C=(H=this.data)==null?void 0:H.showMoreCommand;C&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(C);(H=_.Dg())&&this.showMoreClientVe&&_.Sp(H,this.showMoreClientVe)};
_.F.onYtExpanderLessTapped=function(){var H=_.Dg();H&&this.showLessClientVe&&_.Sp(H,this.showLessClientVe);var C;(H=(C=this.data)==null?void 0:C.showLessCommand)&&this.componentBehavior.resolveCommand(H)};
_.F.handleUpdateDateTextAction=function(H){this.data&&this.data.dateText&&this.set("data.dateText",_.e(H,_.wjB).dateText)};
_.F.handleUpdateDescriptionAction=function(H){if(H=_.e(H,_.mhn))H.isEmpty||!H.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.BI(H.description)):this.set("data.description",H.description)};
_.F.onYtChangeEngagementPanelVisibilityAction=function(H){if(_.E("web_structured_description_show_more")||_.E("web_engagement_panel_open_description")){var C,S=(C=_.e(H,_.EVd))==null?void 0:C.targetId,w;H=((w=_.e(H,_.EVd))==null?void 0:w.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";S==="engagement-panel-structured-description"&&H&&(this.descriptionToggled=!0)}};
_.F.updateCollapsedFromBinding=function(H){this.collapsed=H.detail.value};
_.F.updateDescriptionToggledFromBinding=function(H){this.descriptionToggled=H.detail.value};
_.F.updateCanCollapseFromBinding=function(H){this.canCollapse=H.detail.value};
_.JJ.Object.defineProperties(UB.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var H,C,S=(H=this.data)==null?void 0:(C=H.metadataRowContainer)==null?void 0:C.metadataRowContainerRenderer;return!!S&&!!S.rows&&S.rows.length>S.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.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}}});
UB.prototype.onYtExpanderLessTapped=UB.prototype.onYtExpanderLessTapped;UB.prototype.onYtExpanderMoreTapped=UB.prototype.onYtExpanderMoreTapped;UB.prototype.dataChanged=UB.prototype.dataChanged;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],UB.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],UB.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],UB.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],UB.prototype,"componentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],UB.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Boolean)],UB.prototype,"collapsed",void 0);_.D([_.V(),_.K("design:type",Boolean)],UB.prototype,"descriptionToggled",void 0);
_.D([_.V(),_.K("design:type",Boolean)],UB.prototype,"canCollapse",void 0);_.D([_.V(),_.K("design:type",Object)],UB.prototype,"subscribeButtonData",void 0);_.D([_.V(),_.K("design:type",Number)],UB.prototype,"descriptionCollapsedHeight",void 0);_.D([_.V(),_.K("design:type",Object)],UB.prototype,"structuredDescriptionContentRenderer",void 0);_.D([_.V({value:function(){return _.E("web_watch_description_always_collapsed")}}),
_.K("design:type",Boolean)],UB.prototype,"descriptionAlwaysCollapsed",void 0);_.D([_.lA("#description"),_.K("design:type",HTMLDivElement)],UB.prototype,"description",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],UB.prototype,"dataChanged",null);_.D([_.Gz("yt-expander-more-tapped"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],UB.prototype,"onYtExpanderMoreTapped",null);
_.D([_.Gz("yt-expander-less-tapped"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],UB.prototype,"onYtExpanderLessTapped",null);_.D([_.l("data.metadataRowContainer"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],UB.prototype,"metadataCollapsible",null);_.D([_.l("data","structuredDescriptionContentRenderer"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],UB.prototype,"hasInlineStructuredDescription",null);
_.D([_.l("data.attributedDescription"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],UB.prototype,"hasAttributedDescription",null);_.D([_.l("hasInlineStructuredDescription","collapsed"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],UB.prototype,"loadStructuredDescription",null);_.D([_.l("data","structuredDescriptionContentRenderer","collapsed"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],UB.prototype,"showInlineStructuredDescription",null);
_.D([_.l("data","hasInlineStructuredDescription","metadataCollapsible"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],UB.prototype,"descriptionAlwaysCollapsible",null);
_.B(UB,"ytd-video-secondary-info-renderer",function(){if(Eft===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);Eft=H}H=Eft;return H},{mode:2});var er4;var Rf=function(){return _.X.apply(this,arguments)||this};
_.G(Rf,_.X);Rf.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:_.E("web_modern_buttons"),forceIconButton:!_.E("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
Rf.prototype.activate=function(H){H.appendTo(this.player);H.getPlayerPromise().then(function(C){C.setMinimized(!0)});
this.active=!0};
Rf.prototype.deactivate=function(){var H=this.player.firstElementChild;H.getPlayerPromise().then(function(C){C.setMinimized(!1)});
this.active=!1;return H};
Rf.prototype.onScrollUpTap=function(){var H=_.JA().resolve(_.JB).getCurrentPage();H&&H.setScrollTop(0)};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Rf.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Rf.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Rf.prototype,"componentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Rf.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],Rf.prototype,"active",void 0);
_.D([_.V({reflectToAttribute:!0,value:function(){return _.E("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.K("design:type",Boolean)],Rf.prototype,"darkLaunch",void 0);_.D([_.lA("#player"),_.K("design:type",HTMLDivElement)],Rf.prototype,"player",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],Rf);
_.B(Rf,"ytd-miniplayer-bar-renderer",function(){if(er4!==void 0)return er4;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return er4=H},{mode:1});_.qs(_.n(function(H){var C=_.sW("script");_.d6(function(){var S;if(S=JSON)S=jqV(H.data()),S=_.ws(JSON.stringify(S).replace(/</g,"\\u003C"));var w=H.data(),A=_.jt(w.title).trim().length===0,J=!w.publishDate||w.publishDate.trim().length===0,c,Y,M,m,W=!((c=w.thumbnail)==null?0:(Y=c.thumbnails)==null?0:Y.length)||!((M=w.thumbnail)==null?0:M.thumbnails[0].url)||((m=w.thumbnail)==null?void 0:m.thumbnails[0].url.trim().length)===0;C.value&&S&&!(A||J||W)&&_.AY(C.value,S)},"Vy9K7b");
return _.q("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.q("script",{el:C,type:"application/ld+json"}))},"tl"),"player-microformat-renderer",{props:{data:_.Yb}});
}catch(e){_._DumpException(e)}
try{
var TvB,mKB,ytT;_.qsh=function(H){return H.watch.watchWindowSize};
TvB=function(H,C){var S=document.querySelector(H);S?C(S):setTimeout(function(){TvB(H,C)},1E3)};
mKB=function(H,C,S,w){if(H.isLockupToWatchTransitionEnabled){if(C){var A={};A=(A["watch-next-appears"]="player-watch-next-loaded",A);A["lockup-to-watch"]=H.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";H.viewTransitionCoordinator.registerElement(C,A)}S&&(C={},H.viewTransitionCoordinator.registerElement(S,(C["lockup-to-watch"]="below-lockup-to-watch",C["watch-next-appears"]="below-watch-next-loaded",C)));w&&(S={},H.viewTransitionCoordinator.registerElement(w,
(S["watch-next-appears"]="secondary-watch-next-loaded",S)))}};
_.WvP=function(H){return _.Md({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:H}})};
ytT=new _.mi("webWatchNextResponseExtensionData");var bCr=function(H){_.Op.call(this);var C=this;this.JSC$23129_watchApi=H;this.observer=null;var S=this.JSC$23129_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Nv4(C)});
this.addOnDisposeCallback(function(){C.JSC$23129_watchApi.unsubscribeByKey(S);C.observer&&(C.observer.disconnect(),C.observer=null)});
Nv4(this)};
_.G(bCr,_.Op);
var Nv4=function(H){var C,S,w,A;_.z(function(J){if(J.nextAddress==1){H.observer&&(H.observer.disconnect(),H.observer=null);C=H.JSC$23129_watchApi.getWatchNextResponse();if(!C)return J.return();S=_.e(C,ytT);return((w=S)==null?0:w.enableCreatorChatbot)&&S.creatorChannelId?J.yield((0,_.LRE)("NSzT5"),3):J.jumpTo(0)}A=_.yMj;A(S.creatorChannelId);TvB("ytd-watch-metadata",function(c){H.observer=new MutationObserver(function(){var Y,M;(Y=document.querySelector('ytd-watch-metadata #flexible-item-buttons button[aria-label="Ask"]'))==null||
(M=Y.closest("yt-button-view-model.ytd-menu-renderer"))==null||M.remove()});
H.observer.observe(c,{childList:!0,subtree:!0})});
_.oT(J)})};var ebP=function(H){_.Op.call(this);this.JSC$23133_watchApi=H;EIt(this)};
_.G(ebP,_.Op);var EIt=function(H){_.z(function(C){if(C.nextAddress==1)return C.yield(u2V(H),2);G8T(H);_.oT(C)})},u2V=function(H){var C,S,w,A;
return _.z(function(J){if(J.nextAddress==1)return J.yield(H.JSC$23133_watchApi.playerApi,2);C=J.yieldResult;H.JSC$23133_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){fZ7(H)});
S=H.JSC$23133_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){G8T(H)});
w=function(c){H.onCueRangeEnter(c)};
C.addEventListener("onCueRangeEnter",w);A=function(c){H.onCueRangeExit(c)};
C.addEventListener("onCueRangeExit",A);H.addOnDisposeCallback(function(){H.JSC$23133_watchApi.unsubscribeByKey(S);C.removeEventListener("onCueRangeEnter",w);C.removeEventListener("onCueRangeExit",A)});
_.oT(J)})},vI7=function(H){var C,S,w,A,J,c,Y,M,m;
return(J=(C=H.contents)==null?void 0:(S=C.twoColumnWatchNextResults)==null?void 0:(w=S.results)==null?void 0:(A=w.results)==null?void 0:A.contents)==null?void 0:(c=J.find(function(W){var y,N,b;return(y=W.itemSectionRenderer)==null?void 0:(N=y.contents)==null?void 0:(b=N[0])==null?void 0:b.shoppingTimelyShelfViewModel}))==null?void 0:(Y=c.itemSectionRenderer)==null?void 0:(M=Y.contents)==null?void 0:(m=M[0])==null?void 0:m.shoppingTimelyShelfViewModel},G8T=function(H){var C;
_.z(function(S){if(S.nextAddress==1)return(C=H.JSC$23133_watchApi.getWatchNextResponse())?S.yield(fZ7(H),2):S.return();H.shoppingTimelyShelfViewModel=vI7(C);lZc(H);VrT(H);_.oT(S)})},lZc=function(H){var C,S=(C=H.shoppingTimelyShelfViewModel)==null?void 0:C.offerIdToVariants;
S&&(C=S.filter(function(w){return w.key&&w.value}).map(function(w){return[w.key,
w.value]}),H.variantsMap=new Map(C))},VrT=function(H){var C,S,w,A,J,c;
_.z(function(Y){if(Y.nextAddress==1)return(S=(C=H.shoppingTimelyShelfViewModel)==null?void 0:C.cueRanges)?Y.yield(H.JSC$23133_watchApi.playerApi,2):Y.return();w=Y.yieldResult;H.cueRanges=S;A=_.Z(S);for(J=A.next();!J.done;J=A.next())c=J.value,c.startTime!==void 0&&c.endTime!==void 0&&c.id!==void 0&&w.addCueRange("shopping_timely_shelf"+c.id,oIB(c.startTime),oIB(c.endTime));_.oT(Y)})},oIB=function(H){return Number(H.seconds||0)+(H.nanos||0)/1E9};
ebP.prototype.onCueRangeEnter=function(H){if(H.startsWith("shopping_timely_shelf")){var C=H.substring(21),S,w;H=(S=this.variantsMap)==null?void 0:(w=S.get(C))==null?void 0:w.shelf;if(_.E("web_enable_shopping_timely_shelf_client_overwrite")){var A,J,c,Y,M;S=H==null?void 0:(A=H.shoppingTimelyShelfContentViewModel)==null?void 0:(J=A.button)==null?void 0:(c=J[1])==null?void 0:(Y=c.buttonViewModel)==null?void 0:(M=Y.onTap)==null?void 0:M.innertubeCommand;var m,W;if(S==null?0:(m=S.menuEndpoint)==null?0:
(W=m.menu)==null?0:W.menuRenderer)S.openPopupAction=S.menuEndpoint,S.openPopupAction.popup=S.openPopupAction.menu,S.openPopupAction.popup.menuPopupRenderer=S.openPopupAction.popup.menuRenderer,S.openPopupAction.popupType="DROPDOWN",delete S.menuEndpoint,delete S.openPopupAction.menu,delete S.openPopupAction.popup.menuRenderer;A=H==null?void 0:H.shoppingTimelyShelfContentViewModel;if(A!=null&&A.button)for(J=_.Z(A.button),Y=J.next();!Y.done;Y=J.next())c=void 0,(Y=(c=Y.value)==null?void 0:c.buttonViewModel)&&
!Y.onTap&&(c=void 0,Y.onTap=(c=A.rendererContext)==null?void 0:c.commandContext.onTap)}H&&this.JSC$23133_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",H)}};
ebP.prototype.onCueRangeExit=function(H){H.startsWith("shopping_timely_shelf")&&this.JSC$23133_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{})};
var fZ7=function(H){var C,S,w,A,J;return _.z(function(c){if(c.nextAddress==1)return c.yield(H.JSC$23133_watchApi.playerApi,2);C=c.yieldResult;if(H.cueRanges)for(S=_.Z(H.cueRanges),w=S.next();!w.done;w=S.next())A=w.value,A.id&&(J="shopping_timely_shelf"+A.id,C.removeCueRange(J));H.JSC$23133_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});H.shoppingTimelyShelfViewModel=void 0;H.cueRanges=void 0;H.variantsMap=void 0;_.oT(c)})};var Pbh=function(H){_.Op.call(this);var C=this;this.JSC$23140_watchApi=H;H=_.Uf(_.AG(),_.DoE,function(){OCB(C)});
this.addOnDisposeCallback(H);H=_.Uf(_.AG(),_.qsh,function(){OCB(C)});
this.addOnDisposeCallback(H);Xn2(this);Q8B(this);dK7()};
_.G(Pbh,_.Op);var Xn2=function(H){var C=function(w){_.AG().dispatch(_.Gvh(w.matches))},S=window.matchMedia("(max-width: "+(999+_.Nm())+"px)");
S.addListener(C);H.addOnDisposeCallback(function(){S.removeListener(C)});
C(S)},Q8B=function(H){H.JSC$23140_watchApi.registerActionHandler("yt-window-resized",function(){dK7()});
H.addOnDisposeCallback(function(){H.JSC$23140_watchApi.unregisterActionHandler("yt-window-resized")})},dK7=function(){var H=_.ow();
_.AG().dispatch(_.Md({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:H.width,height:H.height}}}))},OCB=function(H){var C;
_.z(function(S){if(S.nextAddress==1)return S.yield(H.JSC$23140_watchApi.playerApi,2);C=S.yieldResult;C.setSize(NaN,NaN);_.oT(S)})};var $KD=function(H){_.Op.call(this);var C=_.JA().resolve(_.IC);mKB(C,H.getElement("PLAYER_CONTAINER"),H.getElement("BELOW_THE_PLAYER"),H.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var S=H.getElement("PLAYER_CONTAINER"),w=H.getElement("BELOW_THE_PLAYER"),A=H.getElement("SECONDARY");C.isLockupToWatchTransitionEnabled&&(S&&_.tB(C.viewTransitionCoordinator,S),w&&_.tB(C.viewTransitionCoordinator,w),A&&_.tB(C.viewTransitionCoordinator,A))})};
_.G($KD,_.Op);_.hF=function(H){_.KI.call(this);var C=this;this.rootElement=H;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return C.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(S){C.initOrDisposeActiveModules(S)}));
this.onAttached()};
_.G(_.hF,_.KI);_.F=_.hF.prototype;_.F.getRoot=function(){return this.rootElement};
_.F.getElement=function(H){return this.rootElement.getElement(H)};
_.F.setPlayerResponse=function(H){this.playerResponse=H;this.publish("PLAYER_RESPONSE_UPDATED",H)};
_.F.getPlayerResponse=function(){return this.playerResponse};
_.F.setWatchNextResponse=function(H){this.watchNextResponse===H?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=H,this.publish("WATCH_NEXT_RESPONSE_UPDATED",H))};
_.F.getWatchNextResponse=function(){return this.watchNextResponse};
_.F.registerActionHandler=function(H,C){var S=this;if(_.E("web_watch_controller_reg_multiple_handlers_killswitch")){var w={};_.xI(_.a8.getInstance(),(w[H]=C,w),this.getRoot())}else this.actionHandlers.has(H)||(this.actionHandlers.set(H,[]),w={},_.xI(_.a8.getInstance(),(w[H]=function(){var A=_.tc.apply(0,arguments);return(S.actionHandlers.get(H)||[]).map(function(J){return J.apply(null,_.k$(A))})},w),this.getRoot())),this.actionHandlers.get(H).push(C)};
_.F.unregisterActionHandler=function(H){if(_.E("web_watch_controller_reg_multiple_handlers_killswitch")){var C={};_.H5(_.a8.getInstance(),(C[H]=!0,C),this.getRoot())}else(C=this.actionHandlers.get(H))?(C.pop(),C.length===0&&(C={},_.H5(_.a8.getInstance(),(C[H]=!0,C),this.getRoot()),this.actionHandlers.delete(H))):_.Bn(new _.X0("Attempted to unregister an action handler which is not registered.",H))};
_.F.addPageDisposeJob=function(H){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.oEV(this.rootElement.pageDisposeJobs,H)};
_.F.removePageDisposeJob=function(H){this.rootElement.pageDisposeJobs&&_.ru(this.rootElement.pageDisposeJobs,H)};
_.F.dispatchEvent=function(H,C){_.M3(this.rootElement,H,C)};
_.F.provideRenderingData=function(H,C){this.rootElement.provideRenderingData(H,C)};
_.F.scrollWatchTo=function(H,C){var S;(S=this.watchScrollManager)==null||S.scrollWatchTo(H,C)};
_.F.focusOnPlayer=function(){var H=this.getElement("PLAYER");_.wM(H,function(){if(H&&H.firstElementChild){var C=H.querySelector(".html5-video-player");C&&(_.Qz(_.JA().resolve(_.Qi)),C.focus())}else _.Bn(Error("Wo"))})};
_.F.subscribeToActiveChanged=function(H,C){C=C===void 0?!0:C;var S=_.Uf(_.AG(),_.uTc,function(w){H(w)});
C&&H(_.uTc(_.AG().getState()));return S};
_.F.isActive=function(){return _.uTc(_.AG().getState())};
_.F.onAttached=function(){var H=_.E("external_fullscreen");_.E("use_unified_flag_accessor")&&(H=_.JA().resolve(_.L2i).retriever.getFlag(_.QEn));(H||_.Bh("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var pnB=function(H){return H.getRoot().is==="ytd-watch-flexy"||H.getRoot().is==="ytd-watch-grid"},nz=function(H){return H.getRoot().is==="ytd-watch-fixie"};
_.hF.prototype.initPersistentModules=function(){if(nz(this)||pnB(this)&&_.E("kevlar_watch_flexy_theater_manager")){var H=new _.h3v(this);_.Nx(this,H)}H=new _.vuB(this);_.Nx(this,H);H=new _.X5(this);_.Nx(this,H);H=new _.e02(this);_.Nx(this,H);H=new _.pz(this);_.Nx(this,H);H=new _.Qr(this);_.Nx(this,H);if(nz(this)||pnB(this)&&_.E("kevlar_watch_flexy_playlist_manager"))H=new _.wnD(this),_.Nx(this,H);_.E("web_thumbnail_to_watch_transition")&&(H=new $KD(this),_.Nx(this,H))};
_.hF.prototype.initOrDisposeActiveModules=function(H){H?(this.watchScrollManager=new _.kO(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.BT9(this)),_.E("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new ebP(this)),this.activeModules.push(new _.rET(this)),nz(this)&&this.activeModules.push(new Pbh(this)),this.activeModules.push(new _.YsB(this)),this.activeModules.push(new _.PCD(this)),(nz(this)||_.E("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.LlD(this)),this.activeModules.push(new _.UzB(this)),(nz(this)||_.E("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.Mrr(this)),(nz(this)||_.E("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.CCB(this)),_.E("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.AOB(this),this.activeModules.push(this.watchCinematicManager)),_.E("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.xzP(this)),_.E("kevlar_watch_flexy_gestures_manager")&&
this.activeModules.push(new _.Gfh(this)),H=_.E("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.E("kevlar_watch_flexy_comments_manager")&&!H&&this.activeModules.push(new _.WQ4(this)),_.E("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.ja4(this)),this.activeModules.push(new _.gBP(this)),this.activeModules.push(new _.KQD(this)),_.E("web_enable_timely_actions")&&this.activeModules.push(new _.aQT(this)),_.E("web_enable_player_creator_endscreen_manager")&&
this.activeModules.push(new _.N4T(this)),_.E("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.cAh(this)),_.E("web_fullscreen_components")&&this.activeModules.push(new _.IYc(this)),_.E("web_player_rtr_ctrls")&&this.activeModules.push(new _.EB2(this)),_.E("enable_creator_chatbot")&&this.activeModules.push(new bCr(this))):(_.Jk(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.hF.prototype.disposeInternal=function(){_.KI.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.JJ.Object.defineProperties(_.hF.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var Zz9,sP,cF3,YB9,MW_,qB9,zV9,Tb9;Zz9=function(){var H=_.OX();H.info||(H.info={});return H.info};
sP=function(H){return Math.round(_.PH()+H)};
cF3=function(){var H;if(_.E("csi_use_performance_navigation_timing")){var C,S,w,A=_.dV==null?void 0:(H=_.dV.getEntriesByType)==null?void 0:(C=H.call(_.dV,"navigation"))==null?void 0:(S=C[0])==null?void 0:(w=S.toJSON)==null?void 0:w.call(S);A?(A.requestStart=sP(A.requestStart),A.responseEnd=sP(A.responseEnd),A.redirectStart=sP(A.redirectStart),A.redirectEnd=sP(A.redirectEnd),A.domainLookupEnd=sP(A.domainLookupEnd),A.connectStart=sP(A.connectStart),A.connectEnd=sP(A.connectEnd),A.responseStart=sP(A.responseStart),
A.secureConnectionStart=sP(A.secureConnectionStart),A.domainLookupStart=sP(A.domainLookupStart),A.isPerformanceNavigationTiming=!0,H=A):H=_.dV.timing}else H=_.E("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.dV.timing)):_.dV.timing;return H};
YB9=function(){if(_.dV.getEntriesByType){var H=_.dV.getEntriesByType("paint");if(H=_.PZ(H,function(S){return S.name==="first-paint"}))return sP(H.startTime)}var C;
_.E("csi_use_performance_navigation_timing")?C=_.dV.getEntriesByType("first-paint")[0].startTime:C=_.dV.timing.msFirstPaint;return C?Math.max(0,C):0};
MW_=function(){var H=window.location.protocol,C=_.dV.getEntriesByType("resource");C=_.Yv(C,function(S){return S.name.indexOf(H+"//fonts.gstatic.com/s/")===0});
(C=zV9(C,function(S,w){return w.duration>S.duration?w:S}))&&C.startTime>0&&C.responseEnd>0&&(_.$R("wffs",sP(C.startTime)),_.$R("wffe",sP(C.responseEnd)))};
qB9=function(H,C){H=document.querySelector(H);if(!H)return!1;var S="",w=H.nodeName;w==="SCRIPT"?(S=H.src,S||(S=H.getAttribute("data-timing-href"))&&(S=window.location.protocol+S)):w==="LINK"&&(S=H.href);_.Sn(document)&&H.setAttribute("nonce",_.Sn(document));return S?(H=_.dV.getEntriesByName(S))&&H[0]&&(H=H[0],S=_.PH(),_.$R("rsf_"+C,S+Math.round(H.fetchStart)),_.$R("rse_"+C,S+Math.round(H.responseEnd)),H.transferSize!==void 0&&H.transferSize===0)?!0:!1:!1};
_.mXK=function(H,C){_.Lp(function(){_.QN("").info.actionType=H;C&&_.np("TIMING_AFT_KEYS",C);_.np("TIMING_ACTION",H);var S=_.EA0(_.rh("TIMING_INFO",{}));Object.keys(S).length>0&&_.pL(S);S={isNavigation:!0,actionType:_.Fup(_.rh("TIMING_ACTION"))};var w=_.rh("PREVIOUS_ACTION");w&&(S.previousAction=_.Fup(w));if(w=_.rh("CLIENT_PROTOCOL"))S.httpProtocol=w;if(w=_.rh("CLIENT_TRANSPORT"))S.transportProtocol=w;(w=_.Dg())&&w!=="UNDEFINED_CSN"&&(S.clientScreenNonce=w);w=_.blZ();if(w===1||w===-1)S.isVisible=!0;
w=_.ilV().loadType==="cold";var A=Zz9();w||(w=A.yt_lt==="cold");if(w){S.loadType="cold";w=Zz9();A=cF3();var J=_.PH(),c=_.rh("CSI_START_TIMESTAMP_MILLIS",0);c>0&&!_.E("embeds_web_enable_csi_start_override_killswitch")&&(J=c);J&&(_.$R("srt",A.responseStart),w.prerender!==1&&_.Mc0(J));w=YB9();w>0&&_.$R("fpt",w);w=cF3();w.isPerformanceNavigationTiming&&_.pL({performanceNavigationTiming:!0},void 0);_.$R("nreqs",w.requestStart,void 0);_.$R("nress",w.responseStart,void 0);_.$R("nrese",w.responseEnd,void 0);
w.redirectEnd-w.redirectStart>0&&(_.$R("nrs",w.redirectStart,void 0),_.$R("nre",w.redirectEnd,void 0));w.domainLookupEnd-w.domainLookupStart>0&&(_.$R("ndnss",w.domainLookupStart,void 0),_.$R("ndnse",w.domainLookupEnd,void 0));w.connectEnd-w.connectStart>0&&(_.$R("ntcps",w.connectStart,void 0),_.$R("ntcpe",w.connectEnd,void 0));w.secureConnectionStart>=_.PH()&&w.connectEnd-w.secureConnectionStart>0&&(_.$R("nstcps",w.secureConnectionStart,void 0),_.$R("ntcpe",w.connectEnd,void 0));_.dV&&"getEntriesByType"in
_.dV&&MW_();w=[];if(document.querySelector&&_.dV&&_.dV.getEntriesByName)for(var Y in Tb9)Tb9.hasOwnProperty(Y)&&(A=Tb9[Y],qB9(Y,A)&&w.push(A));if(w.length>0)for(S.resourceInfo=[],Y=_.Z(w),w=Y.next();!w.done;w=Y.next())S.resourceInfo.push({resourceCache:w.value})}_.pL(S);S=_.Xw();S.preLoggedGelInfos||(S.preLoggedGelInfos=[]);Y=S.preLoggedGelInfos;S=_.SQp();w=void 0;for(A=0;A<Y.length;A++)if(J=Y[A],J.loadType){w=J.loadType;break}if(_.ilV().loadType==="cold"&&(S.loadType==="cold"||w==="cold")){w=_.CDu();
A=_.Xw();A=A.gelTicks?A.gelTicks:A.gelTicks={};for(var M in w)if(!(M in A))if(typeof w[M]==="number")_.$R(M,_.kR(M));else if(_.E("log_repeated_ytcsi_ticks"))for(J=_.Z(w[M]),c=J.next();!c.done;c=J.next())c=c.value,_.$R(M.slice(1),c);M={};w=!1;Y=_.Z(Y);for(A=Y.next();!A.done;A=Y.next())w=A.value,_.gM(S,w),_.gM(M,w),w=!0;w&&_.pL(M)}_.fC$(!0);M=_.rh("TIMING_ACTION");_.gh("ytglobal.timingready_")&&M&&_.PDD()&&_.GMU()&&_.ynu()})()};
zV9=function(H,C){return Array.prototype.reduce.call(H,C,{duration:0})};
Tb9={'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 Wfj={};Wfj.YtVisibilityRootBehavior=[_.Tg_.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.Ak(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.rh("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var H=_.rh("INNERTUBE_CLIENT_NAME")!=="WEB";_.E("kevlar_use_vimio_behavior")&&H&&_.Tni()}}];_.j6={};_.j6.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(H){H.detail.contextProvider=this;H.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
Wfj.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.Cn();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(H){var C=this;this.pageCount+=1;_.E("kevlar_use_vimio_behavior")&&(_.rh("INNERTUBE_CLIENT_NAME")==="WEB"?_.rT.addJob(function(){C.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(H)},
loadPage_:function(H){this.data=H},
ytPageBehaviorActiveObserver_:function(H){var C=this;_.E("kevlar_use_vimio_behavior")&&(H?_.rh("INNERTUBE_CLIENT_NAME")==="WEB"?_.rT.addJob(function(){C.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(H){if(!this.setScrollTopJobId_){var C=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){C.setScrollTopJobId_=0;var S=_.JA().resolve(_.AA(_.Qi));S&&_.Qz(S);this.getPageScrollingElement().scrollTop=H}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.ni(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var FfO;var S6=function(){var H=_.X.apply(this,arguments)||this;H.playerListenerConfig=null;H.actionMap={"yt-show-watch-page-survey":"openSurvey"};return H};
_.G(S6,_.X);_.F=S6.prototype;_.F.dataChanged=function(){var H=this,C=_.Zz();C&&C.getPlayerPromise().then(function(w){H.maybeRemovePlayerListeners(w)});
var S=this.data&&this.data.survey;S&&((S=(S=S.singleOptionSurveyRenderer||S.checkboxSurveyRenderer||S.multiStageSurveyRenderer)&&S.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(C,S):this.openSurvey())};
_.F.triggerWatchPageSurvey=function(H,C){var S=this,w,A,J,c,Y,M,m,W,y;return _.z(function(N){if(N.nextAddress==1)return H?N.yield(H.getPlayerPromise(),2):N.return();S.player=N.yieldResult;if(!S.player)return N.return();w={};A=_.Z(C);for(J=A.next();!J.done;J=A.next())c=J.value,Y=_.Z(S.createEventListenerPair(c)),M=Y.next().value,m=Y.next().value,W=M,y=m,W&&y&&(w[W]=y,S.ytPlayerListenerBehavior.listenToPlayerEvent(S.player,W,y));S.playerListenerConfig=w;_.oT(N)})};
_.F.createEventListenerPair=function(H){var C=H.playbackEventTrigger;return C?this.handlePlaybackTrigger(C):(H=H.watchTimeTrigger)?this.handleWatchTimeTrigger(H):[void 0,void 0]};
_.F.handleWatchTimeTrigger=function(H){var C=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var S=H.videoWatchFraction,w=H.watchTimeSec;return w&&S?["onVideoProgress",function(){C.player&&C.isWatchTimeConditionMet(C.player,S,w)&&C.showSurvey()}]:[void 0,
void 0]};
_.F.isWatchTimeConditionMet=function(H,C,S){var w=H.getProgressState(),A=w.current-this.lastKnownPlaybackPosition;A<5&&(this.accumulatedMediaTime+=A);this.lastKnownPlaybackPosition=w.current;w=Math.round(this.accumulatedMediaTime/w.duration*1E3)/1E3;return H.getPresentingPlayerType&&H.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>S||w>C)};
_.F.handlePlaybackTrigger=function(H){var C=this;H=H.playbackEvent;if(H==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var S="onStateChange";var w=function(A){A===0&&C.showSurvey()}}else H==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(S="onVideoProgress",w=function(A){C.player&&C.player.getPresentingPlayerType&&C.player.getPresentingPlayerType()===1&&A&&C.showSurvey()}):H==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(S="onAdEnd",w=this.showSurvey);
return[S,w]};
_.F.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.F.openSurvey=function(){var H=this,C=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.xQ_(!!C));_.rT.addJob(function(){H.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:C}})},0,0)};
_.F.maybeRemovePlayerListeners=function(H){if(this.playerListenerConfig){for(var C=_.Z(Object.keys(this.playerListenerConfig)),S=C.next();!S.done;S=C.next())S=S.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(H,S,this.playerListenerConfig[S]);this.playerListenerConfig=null}};
S6.prototype.dataChanged=S6.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],S6.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.OY),_.K("design:type",Object)],S6.prototype,"ytdOpenPopupBehavior",void 0);_.D([_.v(_.fT.YtPlayerListenerBehavior),_.K("design:type",_.v_)],S6.prototype,"ytPlayerListenerBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],S6.prototype,"ytActionHandlerBehavior",void 0);
_.D([_.v(_.q$),_.K("design:type",Object)],S6.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],S6.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],S6.prototype,"playerListenerConfig",void 0);_.D([_.V({value:0}),_.K("design:type",Number)],S6.prototype,"lastKnownPlaybackPosition",void 0);_.D([_.V({value:0}),_.K("design:type",Number)],S6.prototype,"accumulatedMediaTime",void 0);_.D([_.V(),_.K("design:type",Object)],S6.prototype,"player",void 0);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],S6.prototype,"dataChanged",null);_.D([_.h({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],S6);
_.B(S6,"ytd-survey-trigger-renderer",function(){if(FfO!==void 0)return FfO;var H=document.createElement("template");_.f(H,"\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");H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return FfO=H},{mode:1});
}catch(e){_._DumpException(e)}
try{
var j2V=new _.mi("promotedSparklesWebRenderer");var wVV=new _.mi("relatedChipCommand");var AcV;var Jc7;var O3=function(){return _.X.apply(this,arguments)||this};
_.G(O3,_.X);O3.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],O3.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],O3.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],O3.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],O3);
_.B(O3,"ytd-compact-tvfilm-entry-point-renderer",function(){if(Jc7!==void 0)return Jc7;var H=document.createElement("template");_.f(H,'\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>');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return Jc7=H},{mode:1});var FT9;var Z9T;var ccV;var XC=function(){return _.X.apply(this,arguments)||this};
_.G(XC,_.X);XC.prototype.ready=function(){this.initializeDefs()};
XC.prototype.initializeDefs=function(){var H=this.meta.byKey("yt-icons"),C=_.mY(H).querySelector("#star"),S=_.mY(H).querySelector("#star_half");H=_.mY(H).querySelector("#star_border");C&&this.defs.appendChild(C.cloneNode(!0));S&&this.defs.appendChild(S.cloneNode(!0));H&&this.defs.appendChild(H.cloneNode(!0))};
XC.prototype.percentChanged=function(){for(var H=this.rating;H.firstChild;)H.removeChild(H.firstChild);var C=Math.round(this.percent/10);H=Math.floor(C/2);C%=2;var S=5-H-C;this.appendStars("star",H,0);this.appendStars("star_half",C,H);this.appendStars("star_border",S,H+C)};
XC.prototype.appendStars=function(H,C,S){for(var w=0;w<C;w++){var A=(18+this.spacing)*(w+S),J=document.createElementNS("http://www.w3.org/2000/svg","use");_.qEp(J,"#"+H);J.setAttribute("x",""+A);J.setAttribute("y","0");this.rating.appendChild(J)}};
XC.prototype.percentChanged=XC.prototype.percentChanged;_.D([_.lA("#defs"),_.K("design:type",HTMLElement)],XC.prototype,"defs",void 0);_.D([_.lA("#rating"),_.K("design:type",HTMLElement)],XC.prototype,"rating",void 0);_.D([_.V(),_.K("design:type",Number)],XC.prototype,"percent",void 0);_.D([_.V({value:6}),_.K("design:type",Number)],XC.prototype,"spacing",void 0);_.D([_.V({value:_.BW.create("iron-meta",{type:"iconset"})}),_.K("design:type",_.Ll)],XC.prototype,"meta",void 0);
_.D([_.fx("percent"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],XC.prototype,"percentChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-ratings"})],XC);
_.B(XC,"ytd-ratings",function(){if(ccV!==void 0)return ccV;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return ccV=H},{mode:1});var YtP=function(){return _.X.apply(this,arguments)||this};
_.G(YtP,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],YtP.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],YtP.prototype,"data",void 0);_.D([_.h({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],YtP);
_.B(YtP,"ytd-offer-review-renderer",function(){if(Z9T!==void 0)return Z9T;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Z9T=H},{mode:1});var Qc=function(){var H=_.X.apply(this,arguments)||this;H.badges=[{textBadge:{label:_.sx("CC")}}];return H};
_.G(Qc,_.X);_.F=Qc.prototype;_.F.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.F.dataChanged=function(){var H=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(H&&H.commandMetadata&&_.e(H.commandMetadata,_.R4)&&_.e(H.commandMetadata,_.R4).fireAutomatically)_.JA().resolve(_.ZQ).resolveCommand(H,{form:{element:this.hostElement}});else{var C;H&&((C=_.e(H,_.R4))==null?0:C.fireAutomatically)&&_.JA().resolve(_.ZQ).resolveCommand(H,{form:{element:this.hostElement}})}};
_.F.isEmptyContent=function(H){return this.isStorefrontEntryPointEmpty(H)&&this.shouldHideOfferModule(H)};
_.F.isStorefrontEntryPointEmpty=function(H){return!H||!H.storefrontEntryPoint};
_.F.shouldHideOfferModule=function(H){return!!H.hideVideoDetails};
_.F.isOfferModuleNavigationInactive=function(H){return!H.navigationEndpoint&&!H.serviceEndpoint};
_.F.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.JA().resolve(_.ZQ).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
Qc.prototype.dataChanged=Qc.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Qc.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Qc.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Qc.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.K("design:type",Boolean)],Qc.prototype,"hidden",void 0);
_.D([_.V(),_.K("design:type",Object)],Qc.prototype,"badges",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Qc.prototype,"dataChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],Qc);
_.B(Qc,"ytd-movie-offer-module-renderer",function(){if(FT9!==void 0)return FT9;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return FT9=H},{mode:1});var zB9;var Mh2=function(){return _.X.apply(this,arguments)||this};
_.G(Mh2,_.X);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Mh2.prototype,"componentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Mh2.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],Mh2);
_.B(Mh2,"ytd-media-masthead-renderer",function(){if(zB9!==void 0)return zB9;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return zB9=H},{mode:1});var qt7;_.qs(_.LqV,"course-metadata-view-model",{props:{data:_.Yb,isOverlay:_.Yb}});var dF=function(){var H=_.X.apply(this,arguments)||this;H.isMetadataVisible=!1;H.modernPanels=_.E("kevlar_watch_modern_panels");H.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return H};
_.G(dF,_.X);_.F=dF.prototype;
_.F.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"}}}}};
_.F.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.F.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.F.expanderChanged=function(){var H;if((H=this.data)==null?0:H.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.F.isExpandButtonToggled=function(){var H,C;return(C=_.e((H=this.data)==null?void 0:H.expandMetadataButton,_.mk))==null?void 0:C.isToggled};
_.F.onVisibilityButtonClick=function(){var H;if((H=this.data)==null?0:H.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.F.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
dF.prototype.expanderChanged=dF.prototype.expanderChanged;dF.prototype.dataChanged=dF.prototype.dataChanged;dF.prototype.descriptionChanged=dF.prototype.descriptionChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],dF.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],dF.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v([_.Lw.YtActionHandlerBehavior]),_.K("design:type",Object)],dF.prototype,"actionHandlerBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],dF.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],dF.prototype,"isMetadataVisible",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],dF.prototype,"modernPanels",void 0);_.D([_.lA("#expander"),_.K("design:type",Object)],dF.prototype,"expander",void 0);_.D([_.fx("data.description"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dF.prototype,"descriptionChanged",null);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dF.prototype,"dataChanged",null);_.D([_.fx("isMetadataVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dF.prototype,"expanderChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],dF);
_.B(dF,"ytd-tvfilm-offer-module-renderer",function(){if(qt7!==void 0)return qt7;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return qt7=H},{mode:2});var TPh;var P1=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return H};
_.G(P1,_.X);P1.prototype.dataChanged=function(){this.hostElement.hidden=!1};
P1.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
P1.prototype.onThumbnailTap=function(H){this.data&&this.data.serviceEndpoint&&(_.JA().resolve(_.ZQ).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),H.stopPropagation())};
P1.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
P1.prototype.dataChanged=P1.prototype.dataChanged;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],P1.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],P1.prototype,"rendererBehaviors",void 0);_.D([_.v([_.Lw.YtActionHandlerBehavior]),_.K("design:type",Object)],P1.prototype,"actionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],P1.prototype,"data",void 0);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],P1.prototype,"dataChanged",null);_.D([_.h({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],P1);
_.B(P1,"ytd-unlimited-offer-module-renderer",function(){if(TPh!==void 0)return TPh;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return TPh=H},{mode:1});var mrv;var WTT;var $X=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return H};
_.G($X,_.X);$X.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
$X.prototype.handleRelatedChipCommand=function(H){H=_.e(H,wVV);var C=H.contents;C?_.m7(this.hostElement,"yt-item-section-replace-action",[C,H.targetSectionIdentifier]):_.m7(this.hostElement,"yt-item-section-continuation-action",[H.continuationData,H.targetSectionIdentifier])};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],$X.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],$X.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],$X.prototype,"actionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],$X.prototype,"data",void 0);_.D([_.Lx({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],$X);
_.B($X,"yt-related-chip-cloud-renderer",function(){if(WTT===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;mrv===void 0&&(mrv=document.createElement("template"));var w=mrv;S.call(C,w.content.cloneNode(!0),H.content.firstChild);WTT=H}H=WTT;return H},{mode:2});var pW=function(){var H=_.X.apply(this,arguments)||this;H.isTwoColumns=!0;H.watchFeedBigThumbs=_.E("kevlar_watch_feed_big_thumbs");H.watchFeedBigThumbsOnLockup=_.E("web_watch_next_big_thumbs");H.watchNextGridHideChips=_.E("kevlar_watch_grid_hide_chips");H.eligibleToSwitchToGrid=_.E("web_watch_eligible_to_switch_to_grid");H.disableShortsShelfHeightOverride=_.E("web_shorts_wn_shelf_ratio_tuning");H.isWatchNextGrid=!1;H.reuseComponents=!_.E("kevlar_watch_grid");H.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",
contentsArray:"data.results",continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return H};
_.G(pW,_.X);_.F=pW.prototype;
_.F.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]",
useBigThumbs:"[[watchFeedBigThumbsOnLockup]]"}},reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.E("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}}};
_.F.getItemsPath=function(){return"data.results"};
_.F.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.F.created=function(){this.ytLazyListBehavior.initialCount=1};
_.F.ready=function(){_.Ed(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%"})};
_.F.resultsChanged=function(){if(this.data&&this.data.results){for(var H=this.data.results,C=null,S=null,w=0;w<H.length;w++)H[w].relatedChipCloudRenderer?C=H[w].relatedChipCloudRenderer:H[w].itemSectionRenderer&&(S=H[w].itemSectionRenderer);if(C&&S)for(this.set("data.continuations",[]),H=_.e(C.content,_.BHd).chips,C=0;C<H.length;C++)if(w=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",H[C]),w.loadCached||!w.contents){w.contents=S.contents;break}}};
_.F.dataChanged=function(){var H=this,C;if((C=this.data)!=null&&C.results&&this.hasAllowedInstreamAd(this.playerData)){if(C=this.data.results.filter(function(Y){return!!Y.promotedSparklesWebRenderer})){for(var S=0;S<C.length;S++){var w=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",C[S]);
if(w)for(var A=0;A<w.length;A++)w[A]&&w[A].baseUrl&&_.aM(w[A].baseUrl)}this.set("data.results",this.data.results.filter(function(Y){return!Y.promotedSparklesWebRenderer}))}if(C=this.data.results.filter(function(Y){return!!H.getSparklesAd(Y)})){C=_.Z(C);
for(A=C.next();!A.done;A=C.next())if(w=S=void 0,A=(S=this.getSparklesAd(A.value))==null?void 0:(w=S.errorCommand)==null?void 0:w.loggingUrls)for(S=_.Z(A),w=S.next();!w.done;w=S.next())(w=w.value)&&w.baseUrl&&_.aM(w.baseUrl);var J,c;this.set("data.results",(J=this.data)==null?void 0:(c=J.results)==null?void 0:c.filter(function(Y){return!Y.adSlotRenderer}))}}};
_.F.getSparklesAd=function(H){var C,S;H=_.e((C=H.adSlotRenderer)==null?void 0:(S=C.fulfillmentContent)==null?void 0:S.fulfilledLayout,_.NLP);return _.e(H==null?void 0:H.renderingContent,j2V)};
_.F.hasAllowedInstreamAd=function(H){H=this.get("adPlacements",H)||[];for(var C=0;C<H.length;C++){var S=this.get("adPlacementRenderer.config.adPlacementConfig",H[C]);if(S&&S.suppressDisplayAd)return!0}return!1};
_.F.computeHideUnlimitedOfferModule=function(H,C){return H&&H.offerModule&&C&&H.offerModule.unlimitedOfferModuleRenderer&&H.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(C)?!0:!1};
_.F.hideUnlimitedOfferModuleChanged=function(){var H=_.mY(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");H&&(H.hidden=this.hideUnlimitedOfferModule)};
_.F.updateLockupContainerTypes=function(H){if(this.eligibleToSwitchToGrid){var C;(C=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||C.forEach(function(S){S.containerType=H})}};
_.F.computeHideTvfilmOfferModule=function(H,C){var S,w;return!!((H==null?0:(S=H.offerModule)==null?0:(w=S.tvfilmOfferModuleRenderer)==null?0:w.clientShouldSuppressIfCompanionAdDisplayed)&&C&&this.hasCompanionAds(C))};
_.F.hideTvfilmOfferModuleChanged=function(){var H=_.mY(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");H&&(H.hidden=this.hideTvfilmOfferModule)};
_.F.hasCompanionAds=function(H){H=this.get("adPlacements",H)||[];for(var C=0;C<H.length;C++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",H[C]))return!0;var S=void 0,w=void 0,A=void 0;if(!_.E("web_watch_top_banner_companion_check_killswitch")&&((S=H[C])==null?0:(w=S.adPlacementRenderer)==null?0:(A=w.renderer)==null?0:A.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.F.hasSuppressedResults=function(H){return H==null?!0:H.filter(function(C){return!C.continuationItemRenderer&&!C.compactPromotedVideoRenderer&&!C.promotedSparklesWebRenderer}).length===0};
_.F.computeShowButton=function(H,C){return this.isWatchNextGrid?H:H||this.hasSuppressedResults(C)};
_.F.showButtonChanged=function(){if(this.isWatchNextGrid){var H=_.mY(this.hostElement).querySelector("ytd-rich-grid-renderer");H&&this.showButton!==null&&(H.continuationShowButton=this.showButton)}else{H=_.mY(this.hostElement).querySelector("yt-next-continuation");var C=_.mY(this.hostElement).querySelector("ytd-continuation-item-renderer"),S=_.mY(this.hostElement).querySelector("ytd-item-section-renderer");H&&(H.showButton=this.showButton);C&&(C.showButton=this.showButton);S&&(S.continuationShowButton=
this.showButton)}};
_.F.continuationTap=function(H){var C;if(((C=this.data)==null?void 0:C.continuations)!=null&&H.target.tagName==="TP-YT-PAPER-BUTTON")for(H=this.data.continuations,C=0;C<H.length;C++)H[C].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(H[C].nextContinuationData||{})};
_.F.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uQ("shown-items-changed",this.shownItems))};
_.JJ.Object.defineProperties(pW.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.watchFeedBigThumbsOnLockup?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.shownItems)==null||!H.some(function(C){return!!C.lockupViewModel||C.compactVideoRenderer}))}}});
pW.prototype.shownItemsChangedForBinding=pW.prototype.shownItemsChangedForBinding;pW.prototype.showButtonChanged=pW.prototype.showButtonChanged;pW.prototype.hideTvfilmOfferModuleChanged=pW.prototype.hideTvfilmOfferModuleChanged;pW.prototype.updateLockupContainerTypes=pW.prototype.updateLockupContainerTypes;pW.prototype.hideUnlimitedOfferModuleChanged=pW.prototype.hideUnlimitedOfferModuleChanged;pW.prototype.dataChanged=pW.prototype.dataChanged;pW.prototype.resultsChanged=pW.prototype.resultsChanged;
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],pW.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],pW.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.$o.YtLazyListBehavior),_.K("design:type",Object)],pW.prototype,"ytLazyListBehavior",void 0);_.D([_.v(_.eu.YtNextContinuationBehavior),_.K("design:type",Object)],pW.prototype,"ytNextContinuationBehavior",void 0);
_.D([_.v(_.EH),_.K("design:type",Object)],pW.prototype,"ytContinuationHandlerBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],pW.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],pW.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],pW.prototype,"playerData",void 0);_.D([_.V({value:!0}),_.K("design:type",Boolean)],pW.prototype,"autoFill",void 0);_.D([_.V({value:60}),_.K("design:type",Number)],pW.prototype,"targetFramerate",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],pW.prototype,"isTwoColumns",void 0);_.D([_.V(),_.K("design:type",Object)],pW.prototype,"shownItems",void 0);_.D([_.V({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.K("design:type",Boolean)],pW.prototype,"hideUnlimitedOfferModule",void 0);_.D([_.V({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.K("design:type",Boolean)],pW.prototype,"hideTvfilmOfferModule",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],pW.prototype,"watchFeedBigThumbs",void 0);_.D([_.V(),_.K("design:type",Object)],pW.prototype,"watchFeedBigThumbsOnLockup",void 0);_.D([_.V(),_.K("design:type",Object)],pW.prototype,"watchNextGridHideChips",void 0);_.D([_.V(),_.K("design:type",Object)],pW.prototype,"eligibleToSwitchToGrid",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],pW.prototype,"disableShortsShelfHeightOverride",void 0);
_.D([_.V({selector:_.tg,reflectToAttribute:!0}),_.K("design:type",Object)],pW.prototype,"isGridViewEnabled",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],pW.prototype,"showMoreButton",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],pW.prototype,"isWatchNextGrid",void 0);_.D([_.V({computed:"computeShowButton(showMoreButton, data.results)"}),_.K("design:type",Boolean)],pW.prototype,"showButton",void 0);
_.D([_.XJ("data.results.*"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pW.prototype,"resultsChanged",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pW.prototype,"dataChanged",null);_.D([_.fx("hideUnlimitedOfferModule"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pW.prototype,"hideUnlimitedOfferModuleChanged",null);
_.D([_.l("isGridViewEnabled","containsLockups","data"),_.V({reflectToAttribute:!0}),_.K("design:type",Number),_.K("design:paramtypes",[])],pW.prototype,"lockupContainerType",null);_.D([_.fx("lockupContainerType","data"),_.K("design:type",Function),_.K("design:paramtypes",[Number]),_.K("design:returntype")],pW.prototype,"updateLockupContainerTypes",null);
_.D([_.fx("hideTvfilmOfferModule"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pW.prototype,"hideTvfilmOfferModuleChanged",null);_.D([_.fx("showButton"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pW.prototype,"showButtonChanged",null);_.D([_.fx("shownItems"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pW.prototype,"shownItemsChangedForBinding",null);
_.D([_.l("shownItems"),_.V({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],pW.prototype,"containsLockups",null);
_.B(pW,"ytd-watch-next-secondary-results-renderer",function(){if(AcV===void 0){var H=document.createElement("template");_.f(H,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);AcV=H}H=AcV;return H},{mode:1});
}catch(e){_._DumpException(e)}
try{
var adq=new _.mi("replaceFeedContentAction");var xSo;var Hz9;var izj=function(){return _.X.apply(this,arguments)||this};
_.G(izj,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],izj.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],izj.prototype,"data",void 0);_.D([_.h({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],izj);
_.B(izj,"ytd-sub-feed-option-renderer",function(){if(Hz9!==void 0)return Hz9;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Hz9=H},{mode:1});var Cn9;var RP=function(){return _.X.apply(this,arguments)||this};
_.G(RP,_.X);RP.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],RP.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],RP.prototype,"ytRendererStamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],RP.prototype,"data",void 0);_.D([_.h({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],RP);
_.B(RP,"ytd-sub-feed-selector-renderer",function(){if(Cn9!==void 0)return Cn9;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Cn9=H},{mode:1});var IP=function(){return _.X.apply(this,arguments)||this};
_.G(IP,_.X);
IP.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}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],IP.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],IP.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],IP.prototype,"data",void 0);_.D([_.h({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],IP);
_.B(IP,"ytd-browse-feed-actions-renderer",function(){if(xSo!==void 0)return xSo;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return xSo=H},{mode:1});var SBt;var sft;var aP=function(){return _.X.apply(this,arguments)||this};
_.G(aP,_.X);aP.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],aP.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],aP.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],aP.prototype,"data",void 0);_.D([_.h({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],aP);
_.B(aP,"ytd-mini-channel-renderer",function(){if(sft!==void 0)return sft;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return sft=H},{mode:1});var jf_;var xx=function(){return _.X.apply(this,arguments)||this};
_.G(xx,_.X);xx.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],xx.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],xx.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],xx.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],xx);
_.B(xx,"ytd-vertical-channel-section-renderer",function(){if(jf_!==void 0)return jf_;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return jf_=H},{mode:1});var HK=function(){return _.X.apply(this,arguments)||this};
_.G(HK,_.X);HK.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],HK.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],HK.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],HK.prototype,"data",void 0);_.D([_.h({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],HK);
_.B(HK,"ytd-browse-secondary-contents-renderer",function(){if(SBt!==void 0)return SBt;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);
return SBt=H},{mode:1});var wpq;var iX=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};H.notActive=!1;H.isConstrainedList=!1;return H};
_.G(iX,_.X);_.F=iX.prototype;
_.F.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(H){var C;return(H==null?void 0:(C=H.webComponentHint)==null?void 0:C.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":
"ytd-section-list-renderer"}}}},
"data.secondaryContents":{id:"secondary",mapping:{browseFeedActionsRenderer:{component:"ytd-browse-feed-actions-renderer",noInjection:!0},browseSecondaryContentsRenderer:{component:"ytd-browse-secondary-contents-renderer",noInjection:!0},profileColumnRenderer:{component:"ytd-profile-column-renderer",noInjection:!0}}}}};
_.F.getPath=function(H,C){var S="data.tabs.#"+C+".";H.tabs[C].tabRenderer?S+="tabRenderer.":H.tabs[C].expandableTabRenderer&&(S+="expandableTabRenderer.");return S+"content.sectionListRenderer"};
_.F.computeDisplayedContent=function(H){this.unlinkPaths("content");if(H&&H.tabs)for(var C=H.tabs.length,S=0;S<C;S++){var w=H.tabs[S].tabRenderer||H.tabs[S].expandableTabRenderer;if(w.selected&&w.content)return this.linkPaths("content",this.getPath(H,S)),w.content}return null};
_.F.computeHasSecondaryColumnData=function(H){return!!H&&!!H.secondaryContents};
_.F.onRetrieveLocation=function(H,C){C.locationRetrieved(C.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);H.stopPropagation()};
_.F.onYtServiceRequestSent=function(H,C){_.E("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(C)};
_.F.onYtServiceRequestCompleted=function(H,C){_.E("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(C)};
_.F.onReplaceFeedContentAction=function(H){if(!_.E("replace_feed_content_action_killswitch")&&!this.notActive){var C;(H=(C=_.e(H,adq))==null?void 0:C.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(H)}};
_.F.handleServiceRequestActions=function(H){if(H=H.actions){H=_.Z(H);for(var C=H.next();!C.done;C=H.next()){C=C.value;var S=void 0;((S=_.e(C,adq))==null?0:S.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.e(C,adq).items)}}};
iX.prototype.onYtServiceRequestCompleted=iX.prototype.onYtServiceRequestCompleted;iX.prototype.onYtServiceRequestSent=iX.prototype.onYtServiceRequestSent;iX.prototype.onRetrieveLocation=iX.prototype.onRetrieveLocation;_.D([_.v(_.yz),_.K("design:type",Object)],iX.prototype,"ytdGridStateAwareBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],iX.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],iX.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],iX.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],iX.prototype,"data",void 0);_.D([_.V({computed:"computeDisplayedContent(data)"}),_.K("design:type",Object)],iX.prototype,"content",void 0);
_.D([_.V({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],iX.prototype,"hasSecondaryColumnData",void 0);_.D([_.V({value:function(){return window.outerHeight>1024?3:2}}),
_.K("design:type",Number)],iX.prototype,"initialCount",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",String)],iX.prototype,"pageSubtype",void 0);_.D([_.lA("ytd-section-list-renderer"),_.K("design:type",Object)],iX.prototype,"listRenderer",void 0);_.D([_.V(),_.K("design:type",Object)],iX.prototype,"notActive",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],iX.prototype,"isConstrainedList",void 0);
_.D([_.V(),_.K("design:type",String)],iX.prototype,"responsiveSizing",void 0);_.D([_.Gz("yt-retrieve-location"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],iX.prototype,"onRetrieveLocation",null);_.D([_.Gz("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.IW]),_.K("design:returntype")],iX.prototype,"onYtServiceRequestSent",null);
_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.j4]),_.K("design:returntype")],iX.prototype,"onYtServiceRequestCompleted",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],iX);
_.B(iX,"ytd-two-column-browse-results-renderer",function(){if(wpq!==void 0)return wpq;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return wpq=H},{mode:2});
}catch(e){_._DumpException(e)}
try{
var uyr=function(H){if((H==null?void 0:H.value)===void 0||H==null||!H.unit)return"initial";a:{switch(H.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var C="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":C="%";break a}C=void 0}return C?""+H.value+C:"initial"};_.qs(_.n(function(H){var C=_.FH(H,{}).data,S=function(){var w;return((w=C().image)==null?void 0:w.height)||40};
return _.q("yt-shopping-timely-shelf-content-view-model",{el:_.Zl(_.Bt(function(){var w;return(w=C())==null?void 0:w.rendererContext},void 0,void 0,["BUTTON".toString(),
"A".toString()])),class:_.eJ("ytShoppingTimelyShelfContentViewModelHost"),style:_.vb({"--shopping-timely-shelf-content-padding-top":function(){var w;return uyr((w=C().padding)==null?void 0:w.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var w;return uyr((w=C().padding)==null?void 0:w.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var w;return uyr((w=C().padding)==null?void 0:w.start)},
"--shopping-timely-shelf-content-padding-end":function(){var w;return uyr((w=C().padding)==null?void 0:w.end)},
"--yt-shopping-timely-shelf-background-color":function(){return C().backgroundColor!==void 0?_.aw(C().backgroundColor):"initial"}})},_.q(_.T,{cond:function(){var w;
return(w=C().image)==null?void 0:w.image},
then:function(w){return _.q(_.Jg,{preserveHeight:!0,preserveWidth:!0,height:S,data:w,alt:"",className:"ytShoppingTimelyShelfContentViewModelImage"})}}),_.q(_.V4,{data:function(){return C().avatar}},{avatarViewModel:_.ZT}),_.q("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.q(_.V4,{data:function(){return C().line1}},{shoppingContentLineViewModel:function(w){return _.q(_.NA,{data:w.data})}}),_.q(_.V4,{data:function(){return C().line2}},{shoppingContentLineViewModel:function(w){return _.q(_.NA,
{data:w.data})}})),_.q("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.q(_.Vq,{each:function(){var w;
return(w=C().button)!=null?w:[]}},function(w){return _.q(_.V4,{data:function(){return w}},{buttonViewModel:_.rc})})))},"ul"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.GH}});_.GqB={};
_.GqB.YtdWatchBehavior=[_.I.YtRendererBehavior,_.fT.YtPlayerListenerBehavior,_.dc.YtRendererstamperBehavior,_.Lw.YtActionHandlerBehavior,_.j6.YtPageBehavior,_.tZ.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 _.Bh("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.E("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 _.Bh("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isTwoColumnsInitialized:{type:Boolean,value:!1},isSingleColumn:{type:Boolean,reflectToAttribute:!0,computed:"computeIsSingleColumn(isTwoColumns_, isTwoColumnsInitialized)"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},
isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},
showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.E("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 _.YB("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.YB("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},
newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.E("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isSingleColumn)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.E("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.E("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("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 _.E("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("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 _.E("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean},persistentPanelVisible:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);updatePanelsLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var H={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:_.eX(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.eX(["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"||_.E("swa_prov_panels_ks")?H.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(H.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},H.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return H},
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 H=this;this.watchController=void 0;this.pageDisposeJobs=[function(){H.showMetadataPlaceholder_()},
function(){_.E("web_watch_dont_clear_comments")||H.clearComments_()},
function(){H.clearPlayerAds_()},
function(){H.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;_.E("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.E("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.ZmT(function(){return _.F1(H)},this.hostElement);
this.pageDisposeJobs.push(function(){H.youThereManager_.reset()});
_.E("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){H.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.VV;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;_.E("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));_.E("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.uA(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(H){H&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:H}),H.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(H){_.E("kevlar_watch_flexy_theater_manager")&&(this.theater=H,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(H){!_.E("kevlar_watch_while_v2")&&!_.E("web_watch_pip")||H||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(H){this.active!==void 0&&(this.fullscreen=H,_.E("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(H){this.active!==void 0&&(_.M3(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.E("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.E("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(H>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(H){this.initCsi_();this.updatePageData_(H)},
updatePageData_:function(H){var C=this;if(H)if(this.data===H){this.onPageLoadWithSameData_();var S;(S=this.watchController)==null||S.setWatchNextResponse(this.data)}else this.data=H;this.playlist&&_.nL({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.DR("nw");this.loading=!1;_.X2(_.rT,function(){C.initDclkstatus_();var w,A=((w=C.player)==null?void 0:w.getVideoData().cpn)||"";_.UKB(function(J,c){_.AMp(J,c,A)})})},
onPageLoadWithSameData_:function(){_.E("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 H=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!H);this.set("loadingData.playlistLoading",H&&H!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),H=this.watchNextSkeletonEl_.firstElementChild;H;)H.classList.remove("hidden"),H=H.nextElementSibling;if(_.E("kevlar_watch_frame0_loading_state")){var C,S,w;H=(C=this.loadingData)==null?void 0:(S=C.endpoint)==null?void 0:(w=S.watchEndpoint)==null?void 0:w.videoId;var A;H&&(A="https://i.ytimg.com/vi/"+H+"/frame0.jpg");_.mY(this.hostElement).querySelector("#player").style.backgroundImage=A?"url("+A+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var H=_.mY(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&H&&(H.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var C,S;(S=(C=this.watchMetadata).updateSentimentBarWidth)==
null||S.call(C);var w,A;(A=(w=this.watchMetadata).resize)==null||A.call(w)}_.E("kevlar_watch_frame0_loading_state")&&(_.mY(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(H){var C=_.mY(this.hostElement).querySelector(H);C?_.YR(C,!1):_.Bn(new _.X0("Overscroll monitor not found for component: ",H))},
removeSplitScrollMouseTrap:function(H){var C=_.mY(this.hostElement).querySelector(H);C?_.zo(C):_.Bn(new _.X0("Disposal component for  overscroll monitoring not found: ",H))},
onLoadingChanged_:function(H){H?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.E("web_thumbnail_to_watch_transition")&&!_.qpO||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.E("web_thumbnail_to_watch_transition")&&!_.qpO||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(H){var C=this;H?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.rT.addLowPriorityJob(function(){C.onWindowResized_(_.ow(!0))})},
updateTheaterModeState_:function(H){if(!_.E("kevlar_watch_flexy_theater_manager")){H=H||this.fullWindowMode_;if(this.theater!==void 0||H)this.theater=H;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();H&&_.l4v()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var H=this.fullBleedPlayer?_.mY(this.hostElement).querySelector("#player-full-bleed-container"):_.mY(this.hostElement).querySelector("#player-container-inner");var C=this.getPlayerContainer(),S=_.E("kevlar_watch_while_v2")||_.E("web_watch_pip");C.parentElement!==H&&(S&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.F1(this).appendTo(H,C))},
updateErrorScreenLocation:function(){var H=_.mY(this.hostElement).querySelector("#error-screen"),C=this.fullBleedPlayer?_.mY(this.hostElement).querySelector("#player-full-bleed-container"):_.mY(this.hostElement).querySelector("#player");H.parentElement!==C&&C.appendChild(H)},
deactivateMiniplayerAndResetPlayer:function(){var H=this;return _.z(function(C){if(C.nextAddress==1)return C.yield(_.JA().resolve(_.Df).deactivate(),2);H.updatePlayerLocation();_.oT(C)})},
updateCinematicsLocation:function(){var H=this.getElement("CINEMATICS");if(H){var C=this.getCinematicsLocationContainer();H.parentElement!==C&&C.appendChild(H)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.mY(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.mY(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(H,C,S){var w=document.documentElement.hasAttribute("dark"),A=w&&_.E("web_cinematic_theater_mode"),J=w&&_.E("web_cinematic_fullscreen");w=!w&&this.cinematicLightTheme;return S||H&&A||C&&J||(C||H)&&w},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var H=this,C;(C=this.watchController)==null||C.setWatchNextResponse(this.data);_.E("kevlar_watch_flexy_comments_manager")||this.initComments_();_.E("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.JA().resolve(_.qb).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,_.E("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.rT.addLowPriorityJob(function(){_.m7(H.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.E("web_watch_start_chat_in_theater_mode")){var S,w,A;if((S=this.data)==null?0:(w=S.contents)==null?0:(A=w.twoColumnWatchNextResults)==null?0:A.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var J,c;((J=this.data)==null?0:(c=J.contents)==null?0:c.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(H){var C;(C=this.watchController)==null||C.setPlayerResponse(this.playerData);H&&H.playabilityStatus&&(C=this.isVideoPlayable_(H.playabilityStatus,this.getPlayerOverlays_(this.data)),H=this.isLiveStreamOffline_(H.playabilityStatus),C&&!H||_.wM(this,function(){_.DR("pbu")}));
this.setPlayerAds_();_.m7(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(H,C){if((_.E("kevlar_watch_while_v2")||_.E("web_watch_pip"))&&this.playerData&&C)return this.playerData.videoDetails},
watchPageActiveChanged_:function(H){_.AG().dispatch(_.WvP(this.active));H?this.activate_():this.deactivate_()},
attached:function(){var H=this;this.watchController=new _.hF(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);_.E("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var C=_.F1(this);_.E("kevlar_disable_prepare_player")||
C.preparePlayer();_.E("kevlar_watch_flexy_playlist_manager")||_.JA().resolve(_.qb).setPlayer(C);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();C={"--ytd-watch-flexy-scrollbar-width":_.Nm()+"px"};this.is==="ytd-watch-grid"&&(C["--ytd-watch-flexy-sidebar-width"]=_.qlT+"px",C["--ytd-watch-grid-horizontal-page-margins"]=_.Du+"px",C["--ytd-watch-grid-columns-top-margins"]=_.Ylt+"px",C["--ytd-watch-grid-min-player-height-medium"]="360px");!_.YB("kv_pl_mx_sz_ks")&&
_.YB("kevlar_watch_max_player_width")&&(C["--ytd-watch-flexy-max-player-width-wide-screen"]=_.Tx9+"px");_.YB("kevlar_watch_flexy_metadata_height")&&(C["--ytd-watch-flexy-space-below-player"]=_.mH4+"px");this.safeUpdateStyles(C);_.E("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.mV(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return H.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.mY(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var H=_.Nm(),C=_.KW+H,S=C;this.fixedPanels&&(C+=_.qlT);var w=657+H;H=1327+H;_.mY(this.hostElement).querySelector("#two-column-query").query="(min-width: "+C+"px)";_.mY(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(w+"px), (min-height: 630px) and (min-width: ")+(C+"px) and (max-width: ")+(H+"px)");_.mY(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(H+"px)");
_.mY(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+S+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var H=_.mY(this.hostElement).querySelector("#miniplayer-bar").firstChild,C=this.squeezeback&&!_.E("web_watch_squeezeback_player_size_killswitch");return H&&H.active||this.theater||_.E("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||C||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.vj(NaN,NaN):_.HmT(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.HmT(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Ak(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var H=this;this.onWindowResized_(_.ow());_.E("browse_skeleton_removal_on_watch_killswitch")||_.Bh("IS_SHELL_LOAD")&&_.JF3();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var C=_.F1(this);C.addEventListener("yt-player-updated",_.uA(this,this.onPlayerUpdated_));C.getPlayerPromise().then(function(S){H.playerApiReady_(S)});
_.E("kevlar_watch_flexy_playlist_manager")||(C=_.JA().resolve(_.qb),_.E("kevlar_watch_observe_playlist_navigations_killswitch")&&C.addEventListener("yt-navigate",_.uA(this,this.onYtNavigate_)),C.setPlaylistComponent(_.mY(this.hostElement).querySelector("#playlist")),C.addEventListener("yt-playlist-data-updated",_.uA(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.rT.addLowPriorityJob(function(){_.M3(H.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.F1(this).removeEventListener("yt-player-updated",_.uA(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.E("kevlar_watch_flexy_playlist_manager")){var H=_.JA().resolve(_.qb);_.E("kevlar_watch_observe_playlist_navigations_killswitch")&&H.removeEventListener("yt-navigate",_.uA(this,this.onYtNavigate_));
H.cancelVideoSkip();H.removeEventListener("yt-playlist-data-updated",_.uA(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.E("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.M3(this.hostElement,"yt-autonav-pause-player",!1);H=_.ZR();_.E("kevlar_exit_fullscreen_leaving_watch")&&H&&_.cH(H)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(H){this.player&&this.player.updateVideoData({rvs:H.rvs})},
getPageContents:function(H){return H&&H.contents&&H.contents.twoColumnWatchNextResults&&H.contents.twoColumnWatchNextResults.results&&H.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(H){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",H)},
onRetrieveLocation_:function(H,C){C.hasComments?C.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):C.locationRetrieved("/related_ajax",void 0);H.stopPropagation()},
onSubscriptionChanged_:function(H,C){this.player&&(C?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.mXK("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.mY(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.mY(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(H){this.player=H;this.setPlayerState(H.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.E("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.E("kevlar_unified_player")||_.E("kevlar_player_new_bootstrap_adoption"))&&_.g$()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(H,C){C=C===void 0?!0:C;_.ZR()&&_.E("external_fullscreen")&&_.cH(document.documentElement);this.theaterRequested_=H;C&&_.l5("wide",H?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.q3(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.M3(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(H){_.DZ(H,typeof this.player),this.player&&_.DZ(H,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var H;((H=this.player)==null?0:H.isFullscreen())?this.player.toggleFullscreen():_.q3(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(H,C){return this.loading?C:!!Object.keys(H).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(H){if(H){H=_.Z(H);for(var C=H.next();!C.done;C=H.next())C=C.value,C.youThereRenderer&&_.zrT(this.youThereManager_,C.youThereRenderer)}},
setPlaylistData_:function(H){return H||{}},
userEngagementConfigDataChanged_:function(H){if(H)if(H.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var C=this.youThereManager_;_.cn()<H.lowEngagementThresholdMs||_.m_c(C,!0)}else H.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.q3(this.hostElement,"yt-autonav-pause-user-engagement",[H])},
isPlayerUnavailable_:function(H,C,S){return!!H&&!this.isVideoPlayable_(H,S)&&!C},
getPlayerOverlays_:function(H){return(H==null?void 0:H.playerOverlays)||null},
isVideoPlayable_:function(H,C){if(!H)return!1;var S=H.status==="OK"||H.status==="LIVE_STREAM_OFFLINE",w=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",H)||this.get("errorScreen.ypcTrailerRenderer",H);H=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",H);var A;C=C==null?void 0:(A=C.playerOverlayRenderer)==null?void 0:A.gatedActionsOverlayRenderer;return!!S||!!w||!!H||!!C},
hasWatchNextResponseErrorRenderer:function(H){var C=this.getPageContents(H),S,w,A,J,c;return!(H==null?0:(S=H.contents)==null?0:(w=S.twoColumnWatchNextResults)==null?0:w.secondaryResults)&&!!((A=C[0])==null?0:(J=A.itemSectionRenderer)==null?0:(c=J.contents[0])==null?0:c.backgroundPromoRenderer)},
isLiveStreamOffline_:function(H){return H?H.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(H,C,S){var w=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",C),A=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];A=_.E("web_no_skip_video_on_verification_checks")?(H==null?void 0:H.status)&&A.includes(H.status):H&&H.status==="AGE_CHECK_REQUIRED";var J=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",H);J==void 0&&(J=!0);!S||this.isVideoPlayable_(H,this.getPlayerOverlays_(C))||
w||A||!J||_.JA().resolve(_.qb).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.CyV()},
onPlayerFeedbackStartRequest_:function(H){_.q3(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:H}])},
onPlayerFeedbackArticleRequest_:function(H){_.q3(this.hostElement,"yt-help-dialog-requested",[H])},
onPlayerYpcContentRequest_:function(){var H,C,S,w,A,J,c,Y,M=((H=this.data)==null?NaN:(C=H.contents)==null?NaN:(S=C.twoColumnWatchNextResults)==null?NaN:(w=S.secondaryResults)==null?NaN:(A=w.secondaryResults)==null?NaN:(J=A.offerModule)==null?NaN:(c=J.tvfilmOfferModuleRenderer)==null?NaN:(Y=c.actionButtons)==null?NaN:Y.length)-1;H=[".offerButton.buttonRenderer.",".actionButtons."+(M>=0?M:0)+".buttonRenderer."];C=_.Z(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(S=C.next();!S.done;S=C.next())for(S=S.value,w=_.Z(H),A=w.next();!A.done;A=w.next())if(A="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+S+A.value,A=this.get(A+"navigationEndpoint",this.data)||this.get(A+"serviceEndpoint",this.data)||this.get(A+"command",this.data)){_.uJ(A,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(H){_.M3(this.hostElement,"yt-autonav-pause-player",H)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(H){H()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(H){switch(H){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(H){switch(H){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.M3(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(H)},
setPlayerState:function(H){_.AG().dispatch(_.Qv_(H))},
onPlayerSubscribe_:function(H){_.q3(this.hostElement,"yt-player-subscribe",[H])},
onPlayerUnsubscribe_:function(H){_.q3(this.hostElement,"yt-player-unsubscribe",[H])},
onPlayerAdYtShowToast_:function(H){_.q3(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:H.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(H){if(H)return H},
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(H){return!_.E("web_watch_move_summary_to_sd")&&!!H},
computeWatchMetadataRefresh:function(){return _.E("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.E("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var H,C,S,w;this.watchNextSecondaryResults=(H=this.data)==null?void 0:(C=H.contents)==null?void 0:(S=C.twoColumnWatchNextResults)==null?void 0:(w=S.secondaryResults)==null?void 0:w.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.E("swatcheroo_pbs_load_grid")&&!_.E("swatcheroo_provide_all_data_on_scheduled_job")){_.rT.cancelJob(this.setRichGridJobId_);var H,C,S,w,A,J,c;this.setRichGridRendererData((H=this.data)==null?void 0:(C=H.contents)==null?void 0:(S=C.twoColumnWatchNextResults)==null?void 0:(w=S.secondaryResults)==null?void 0:(A=w.secondaryResults)==null?void 0:(J=A.results)==null?void 0:(c=J[0])==null?
void 0:c.richGridRenderer)}},
setRichGridRendererData:function(H){this.richGridRendererData=H},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var H,C=(H=this.data)==null?void 0:H.engagementPanels;if(C==null?0:C.length){H=null;C=_.Z(C);for(var S=C.next();!S.done;S=C.next()){S=S.value;var w=void 0;if(((w=S.engagementPanelSectionListRenderer)==null?void 0:w.targetId)==="engagement-panel-structured-description"){H=S;break}}var A,J,c;H=(A=H)==null?void 0:(J=A.engagementPanelSectionListRenderer)==null?void 0:(c=J.content)==null?void 0:c.structuredDescriptionContentRenderer;if(H==null?0:H.items){A=
[];J=_.Z(H.items);for(c=J.next();!c.done;c=J.next()){c=c.value;if(!_.E("sd_horizontal_list_show_nav_killswitch")){var Y=w=S=C=H=void 0,M=void 0,m=(H=c.horizontalCardListRenderer)==null?void 0:(C=H.header)==null?void 0:(S=C.richListHeaderRenderer)==null?void 0:(w=S.navigationButton)==null?void 0:(Y=w.buttonRenderer)==null?void 0:(M=Y.command)==null?void 0:M.commandExecutorCommand;m&&m.commands&&(m.commands=m.commands.filter(function(W){return!_.e(W,_.OMv)}))}(!c.expandableVideoDescriptionBodyRenderer&&
!c.videoDescriptionHeaderRenderer||_.E("web_delhi_colorful_sd"))&&A.push(c)}return{items:A}}}},
constructWarning_:function(H){return{text:_.sx(H),type:"WARNING"}},
isPlaShelfEnabled_:function(H){if((this.get("adPlacements",H)||[]).length)return!0;H=this.get("playerAds",H)||[];return!(!H.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",H[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var H=this;_.M3(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.E("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var C=this.getScrollTop()>0;this.gestures_&&(C?this.gestures_.detach():this.gestures_.attach());C!==this.showFullerscreenEdu_&&_.E("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=C,_.F1(this).getPlayerPromise().then(function(S){S.updateFullerscreenEduButtonVisibility(H.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.M3(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var H=this;this.commentsReady=!1;_.rT.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.X2(_.rT,function(){H.setComments_()},1E3)},
setComments_:function(){if(!_.E("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.DR("cmi");_.rT.cancelJob(this.setCommentsJobId_);var H=this.getPageContents(this.data);if(H&&H.length){H=_.Z(H);for(var C=H.next();!C.done;C=H.next())if(C=C.value,this.get("itemSectionRenderer.sectionIdentifier",C)==="comment-item-section"){this.comments=C.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.M3(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.E("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.E("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.DR("cmc")},
doRemoveComments_:function(){this.comments={};_.E("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.rT.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.rT.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(H,C){var S=_.e(C.endpoint,_.sX);S&&(!(C=this.get("data.currentVideoEndpoint.watchEndpoint"))||S.videoId!==C.videoId||S.playlistId&&S.playlistId!==C.playlistId||S.index!==void 0&&S.index!==C.index||typeof S.startTimeSeconds!=="number"||(H.stopPropagation(),this.setScrollTop(0),_.F1(this).getPlayerPromise().then(function(w){var A=S.startTimeSeconds;w.seekTo(A);w.wakeUpControls();A<w.getDuration()&&w.playVideo()})))},
updatePlayerStartTime_:function(){var H=_.hbv();"t"in H&&(H=_.imP(H.t),this.player.seekTo(H,!0))},
updateTitleFromWatchNext:function(H){H=this.getPageContents(H);var C,S;(H=_.jt(H==null?void 0:(C=H[0])==null?void 0:(S=C.videoPrimaryInfoRenderer)==null?void 0:S.title))&&_.M3(this.hostElement,"yt-update-title",H)},
updateTitle_:function(H){H=this.get("videoDetails.title",H)||"";_.M3(this.hostElement,"yt-update-title",H)},
syncWithRemoteVideo_:function(H,C,S){if(this.active&&this.player){var w=this.player.getVideoData();if(w.video_id===S&&(S=w.list,_.E("polymer_enable_mdx_queue")&&S&&S.startsWith("RQ")&&(S=void 0),w.video_id!==H||S!=C)){var A;_.E("kevlar_player_watch_endpoint_navigation")?A=_.v0w(_.RbB(H,C)):A=this.buildWatchEndpoint_(H,C);_.M3(this.hostElement,"yt-navigate",{endpoint:A,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(H,C,S){return _.Zy(H,C,S)},
initDclkstatus_:function(){_.xK4()},
attachWatchPageSkeleton_:function(){var H=document.querySelector("#watch-page-skeleton");if(H){var C=H.querySelector("#primary-info"),S=H.querySelector("#secondary-info"),w=H.querySelector("#related");C&&_.mY(this.hostElement).querySelector("#info-skeleton").appendChild(C);S&&_.mY(this.hostElement).querySelector("#meta-skeleton").appendChild(S);w&&(_.mY(this.hostElement).querySelector("#related-skeleton").appendChild(w),this.watchNextSkeletonEl_=w);_.f6(H)}},
handlePlayerUpdated_:function(){_.F1(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(H,C){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof C!=="undefined"){var S=this.watchNextSkeletonEl_.children,w=H&&H.indexSplices.length?H.indexSplices[0].index:0;H=Math.min(this.watchNextShownItems.length,S.length);C||(w=0,H=S.length);for(C=w;C<H;C++)S[C].classList.add("hidden")}},
onPlayerFullscreenChange_:function(H){_.E("external_fullscreen")||_.q3(this.hostElement,"yt-player-fullscreen",[H.fullscreen])},
onFullscreenChange_:function(H){this.fullscreen=H;this.gestures_&&this.gestures_.update(this.fullscreen);var C=_.F1(this);C.getPlayerPromise().then(function(S){S.setFauxFullscreen(!!_.ZR())});
this.updateFullBleedElementLocations();H&&(C.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(H,C){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!C},
computeIsDonationShelfCollapsed_:function(H){return H},
computeShouldShowMerchShelf:function(H,C){return C&&!!H},
computeResponseHasComments:function(H){var C,S,w,A,J;return!!(H==null?0:(C=H.contents)==null?0:(S=C.twoColumnWatchNextResults)==null?0:(w=S.results)==null?0:(A=w.results)==null?0:(J=A.contents)==null?0:J.some(function(c){var Y;return(c==null?void 0:(Y=c.itemSectionRenderer)==null?void 0:Y.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(H,C,S,w){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&w?!1:!!H&&!!Object.keys(H).length&&!C},
identity:_.$E,onWindowResized_:function(H){this.windowSize_=H;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.E("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(H){var C=this;H&&H.type!=="dataloaded"&&H.type!=="dataupdated"||_.F1(this).getPlayerPromise().then(function(S){var w=S.getPlayerState();w!==5&&w!==0&&(S=1/S.getVideoAspectRatio(),C.videoHeightToWidthRatio_!==S&&(C.videoHeightToWidthRatio_=S))})},
schedulePlayerSizeUpdate_:function(H){var C=this,S=_.E("kevlar_watch_while_v2")||_.E("web_watch_pip"),w=function(){if(C.watchMetadata){var A,J;(J=(A=C.watchMetadata).resize)==null||J.call(A)}_.F1(C).getPlayerPromise().then(function(c){if(_.E("kevlar_set_internal_player_size")){if(!S||!C.isMiniplayerActive()){var Y=C.calculateCurrentPlayerSize_();c.setInternalSize(Y.width,Y.height)}}else c.setSize(NaN,NaN);_.E("kevlar_watch_while")&&C.updateWatchWhileScrollThreshold_()})};
H?w():_.mx(_.rT,w)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(H){this.set("data.survey",H.detail)},
onYtShowSurveyCommand_:function(H){this.set("data.survey",_.e(H,_.FrB).survey)},
onDownloadedVideoDeleted:function(H){var C=this,S,w;return _.z(function(A){if(A.nextAddress==1){if(!C.active||(S=C.playerData)==null||!S.offlineState||C.videoId!==H)return A.return();(w=C.player)==null||w.stopVideo();_.LO().navigatingAwayFromWatchDeletedVideo=!0;_.uJ(_.uDi,C.hostElement);return A.yield(_.LO().navigationFinishPromise,2)}_.LO().navigatingAwayFromWatchDeletedVideo=!1;_.oT(A)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var H;this.theater?H=_.$C(.5625*this.windowSize_.width,480,this.windowSize_.height-185):H=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==H&&(this.watchWhileScrollThreshold_=H,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var H=_.mY(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&H){var C=this.windowSize_.height>=624,S=this.active?this.getScrollTop():0;!H.active&&C&&S>=this.watchWhileScrollThreshold_?(H.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):H.active&&(!C||S<this.watchWhileScrollThreshold_&&!_.ZR())&&(H.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var H=_.mY(this.hostElement).querySelector("#secondary-inner");if(H){var C=_.mY(this.hostElement).querySelector("#below"),S=_.mY(this.hostElement).querySelector("#secondary"),w=_.mY(this.hostElement).querySelector("#comments");w&&S&&C&&(this.defaultTwoColumnLayout?(H.appendChild(w),S.appendChild(H)):(C.appendChild(w),_.rF(C,H)))}}},
isTwoColumnsChanged_:function(H,C){if(H!==!0||C!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(H=_.mY(this.hostElement).querySelector("#secondary-inner"))){C=_.mY(this.hostElement).querySelector("#below");var S=_.mY(this.hostElement).querySelector("#secondary"),w=_.mY(this.hostElement).querySelector("#comments");w&&S&&C&&(this.isTwoColumns_?(H.appendChild(w),S.appendChild(H)):(C.appendChild(w),_.rF(C,H)))}}else{H=!_.E("web_watch_enable_fs_squeezeback_panels")||
!(this.fullscreen||this.iMaxTheaterMode&&this.theater);C=_.mY(this.hostElement).querySelector("#panels");var A=_.mY(this.hostElement).querySelector("#alerts"),J=_.mY(this.hostElement).querySelector("#shopping-timely-shelf");S=_.mY(this.hostElement).querySelector("#playlist");w=_.mY(this.hostElement).querySelector("#related");var c=_.mY(this.hostElement).querySelector("#donation-shelf"),Y=_.mY(this.hostElement).querySelector("#comments");this.isTwoColumns_?(A=_.mY(this.hostElement).querySelector("#secondary-inner"),
H&&(A.appendChild(C),A.appendChild(S)),A.appendChild(c),A.appendChild(w)):(H&&(_.tl(C,A),_.tl(S,A),_.tl(J,S)),_.tl(c,A),Y&&_.tl(w,Y));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.E("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.E("web_watch_enable_fs_squeezeback_panels")&&_.E("web_watch_theater_chat")){var H=_.mY(this.hostElement).querySelector("#chat-container"),C=this.theater&&!this.fullscreen||_.E("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&C?(C=_.mY(this.hostElement).querySelector("#columns"),(H==null?void 0:H.parentElement)!==C&&C.append(H),this.fixedPanels=!0):(this.fixedPanels=
!1,C=_.mY(this.hostElement).querySelector("#playlist"),H&&C?_.Li(H,C):_.Bn(new _.X0("Missing element when updating chat location",{"chatContainer defined":!!H,"playlist defined":!!C})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(H,C){return _.E("sw_metadata_vis_toggle_ks")?!0:!!H||!!C},
computeForceDarkPanelTheme:function(H){return _.E("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&H:!1},
safeUpdateStyles:function(H){try{_.Ed(this.hostElement,H)}catch(C){_.Bn(C)}},
videoHeightToWidthRatioChanged_:function(H,C){C&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(H){this.videoHeightToWidthRatio_=1/H},
computeIsVerticalVideo_:function(H){return H>=1},
computeIsFourThreeToSixteenNineVideo_:function(H){return H<=.7501&&H>=.5624},
computeIsExtraWideVideo_:function(H){return H<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.F1(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.F1(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.WrT(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(H){var C=_.BU(H)||0;_.rm(H,C+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var H=_.BU("yt-fullerscreen-edu-button-click-count")||0,C=_.BU("yt-fullerscreen-edu-button-shown-count")||0,S=_.YB("external_fullscreen_button_shown_threshold"),w=H>=_.YB("external_fullscreen_button_click_threshold")||C>=S;_.F1(this).getPlayerPromise().then(function(A){A.updateFullerscreenEduButtonSubtleModeState(w)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(H,C){return C},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.JA().resolve(_.qb).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var H=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.rT.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.rT.addLowPriorityJob(function(){H.fullHeightPanelPositionUpdateJobId=0;var C=_.mY(H.hostElement).querySelector("#secondary"),S=_.mY(H.hostElement).querySelector("#fixed-secondary");C=C.getBoundingClientRect();var w=C.width;H.swatcherooSqueezeback&&
(w+=_.Du);if(H.swatcherooSqueezeback){var A=_.mY(H.hostElement).querySelector("#squeezeback-constraining-container");A.style.width=w+"px";A.style.flex="0 0 "+w+"px"}S.style.width=w+"px";S.style.left=C.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var H=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.rT.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.rT.addLowPriorityJob(function(){H.panelMaxHeightUpdateJob_=0;var C;!H.isTwoColumns_||H.theater||H.fullscreen?C=460:C=H.calculateNormalPlayerSize_().height;var S=C+"px";_.E("live_chat_taller_height")&&!H.theater&&(S="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.E("live_chat_medium_height")&&!H.theater&&(S="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.E("live_chat_scaled_height")&&!H.theater&&(S="calc(100vh - var(--ytd-toolbar-height) - 238px)");H.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":C+"px","--ytd-watch-flexy-chat-max-height":S,"--ytd-watch-flexy-structured-description-max-height":C+"px","--ytd-watch-flexy-comments-panel-max-height":C+"px","--ytd-comments-engagement-panel-content-height":C+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(H){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",H)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.yN(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(H){var C=_.mY(this.hostElement).querySelector("#engagement-panel-scrim");H?C.addEventListener("tap",_.uA(this,this.onEngagementPanelScrimClick_)):C.removeEventListener("tap",_.uA(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(H){if(this.hostElement.contains(H)&&!this.scrollToAnimation_.isAnimating()){var C=H.offsetTop-24;H=H.offsetTop+H.offsetHeight+24;var S=this.getPageScrollingElement(),w=this.getScrollTop(),A=w+S.clientHeight-56;if(C<w+56)C-=56;else if(H>A)C=H-S.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,C),500)}},
onYtSignalActionScrollToComments:function(){var H=this.hostElement.querySelector("#comments");if(H&&!this.scrollToAnimation_.isAnimating()){H=H.offsetTop-56-24;if(_.E("kevlar_comment_teaser_scroll_to_midpoint")&&(H-=_.lR().height/3,H<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,H),500)}},
onYtEngagementPanelVisibleChanged:function(H,C,S){if(this.active&&this.trackEngagementPanelVisibility&&!_.APD.includes(S)){if(C==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.m7(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var w=_.JA().resolve(_.jD);this.visiblePanelIdentifiers_.forEach(function(A){A!==S&&w.hidePanel(A)})}this.visiblePanelIdentifiers_.add(S)}C!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&C!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(S);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(H){return H?"":"watch-active-metadata"},
computeNewMetadataClass:function(H){return H?"watch-active-metadata":""},
computeIsSingleColumn:function(H,C){return C&&!H},
computeFullBleedPlayer:function(H,C,S){return _.E("external_fullscreen")&&H||C||S},
computeDefaultLayout:function(H){return!H},
computeDefaultTwoColumnLayout:function(H,C){return!H&&C},
updatePanelsLocation:function(){if(_.E("web_watch_enable_fs_squeezeback_panels")){var H=_.mY(this.hostElement).querySelector("#below"),C=_.mY(this.hostElement).querySelector("#panels"),S=_.mY(this.hostElement).querySelector("#playlist"),w=_.mY(this.hostElement).querySelector("#chat-container"),A=_.mY(this.hostElement).querySelector("#panels-full-bleed-container"),J=_.mY(this.hostElement).querySelector("#secondary-inner"),c=_.mY(this.hostElement).querySelector("#shopping-timely-shelf");if(H&&C&&S&&
w&&A&&J&&c){var Y=this.fullscreen||this.theater&&this.iMaxTheaterMode,M=this.theater&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;Y?(A.appendChild(C),A.appendChild(w),A.appendChild(S)):this.isTwoColumns_?(M?(H=_.mY(this.hostElement).querySelector("#columns"),(w==null?void 0:w.parentElement)!==H&&H.append(w),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):_.rF(J,w),_.rF(J,C),_.rF(J,S)):(H.appendChild(C),H.appendChild(c),H.appendChild(w),
H.appendChild(S))}}},
swatcherooUpdatePanelsLocation:function(H,C,S,w,A,J){if(this.is==="ytd-watch-grid"){C=H&&!C;this.swatcherooSplitScroll&&(C?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));S=_.mY(this.hostElement).querySelector("#panels");var c=_.mY(this.hostElement).querySelector("#playlist"),Y=_.mY(this.hostElement).querySelector("#fixed-secondary"),M=_.mY(this.hostElement).querySelector("#fixed-below"),
m=_.mY(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),W=_.mY(this.hostElement).querySelector("#chat-container");J&&(H?Y.appendChild(S):M.appendChild(S));A?H?Y.appendChild(W):M.appendChild(W):_.Li(W,m);w?H?Y.appendChild(c):M.appendChild(c):_.Li(c,m);this.swatcherooSplitScroll&&(H=_.mY(this.hostElement).querySelector("#secondary"),w=_.mY(this.hostElement).querySelector("#columns"),A=_.mY(this.hostElement).querySelector("#fixed-columns-secondary"),C?
A.appendChild(H):w.appendChild(H))}},
computeMetadataSkinnyMode:function(H,C,S){return this.is!=="ytd-watch-grid"?!1:H?S:C},
computeWatchWhilePanelsActive:function(H,C){return H||C},
computeNoBorderOnChat:function(H){return _.E("web_watch_theater_chat_no_border")&&H},
computeLiveChatPresentAndExpanded:function(H,C){return H&&!C},
computePanelExpanded:function(H,C,S){return H||C||S},
computeSqueezeback:function(H,C,S,w){if(_.E("web_watch_enable_fs_squeezeback_panels")){var A=this.iMaxTheaterMode&&this.theater;return(H||C||S)&&(w||A)}},
computeSwatcherooSqueezeback:function(H,C,S){return this.is!=="ytd-watch-grid"||_.E("ww_squeezeback_killswitch")?!1:H&&C&&S},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(H){_.F1(this).getPlayerPromise().then(function(C){var S;(S=C.changeMarkerVisibility)==null||S.call(C,_.e(H,_.DG).isVisible||!1,_.e(H,_.DG).entityKeys||[],_.e(H,_.DG).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(H){this.liveChatCollapsed=H.detail;_.AG().dispatch(_.w5T(H.detail));if(!this.liveChatCollapsed&&this.squeezeback){var C=_.JA().resolve(_.jD);this.visiblePanelIdentifiers_.forEach(function(S){C.hidePanel(S)})}},
onSetPlaylistCollapsed:function(H){_.E("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!H)},
provideRenderingData:function(H,C){switch(H){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=C;break;case "PRIMARY_INFO":_.E("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=C);this.videoPrimaryInfoRendererValue=C==null?void 0:C.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.E("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=C);this.videoSecondaryInfoRendererValue=C==null?void 0:C.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
C;break;case "CLARIFICATION":this.clarifyBoxValue=C;break;case "LIVE_CHAT":this.conversationBar=C;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=C;break;case "PLAYLIST":this.externalPlaylistData_=C!=null?C:{};break;case "MERCH_SHELF":this.merchShelfValue=C==null?void 0:C.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=C;break;case "TICKET_SHELF":this.ticket=C;break;case "OFFER_MODULE":this.offerModule=C;break;case "LIMITED_STATE":this.limitedStateValue=
C;break;case "DONATION_SHELF":this.donation=C;break;case "ALERTS":this.alertsValue=C;break;case "COMMENTS":this.comments=C;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=C;break;case "ENGAGEMENT_PANELS":this.engagementPanels=C;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=C;break;case "RICH_GRID_RENDERER":this.richGridRendererData=C;break;case "EXPANDABLE_METADATA":this.expandableMetadata=C;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
C;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=C}},
toggleCinematicsActive:function(H){this.cinematicsActive=H},
isMiniplayerActive:function(){return _.JA().resolve(_.Df).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var cMq;_.ZLi=function(H){if(!(0,_.eOu)(H))throw Error("K``"+String(H));};
_.YXi=function(H){return H.findIndex(function(C){return cMq.indexOf(C.tagName)>-1})>-1};
_.zNK=function(){var H=_.JA().resolve(_.Ri);_.iu6(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(H.isFullscreenEnabled()?_.cH(document.documentElement):_.kT6(document.documentElement))};
cMq=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.tp=new Map;_.tp.set(32,59972);_.tp.set(27,50765);_.tp.set(70,60102);_.tp.set(76,60221);_.tp.set(77,60222);_.tp.set(74,60223);_.tp.set(84,60224);_.tp.set(38,61941);_.tp.set(40,61942);_.tp.set(73,62521);_.tp.set(67,62522);_.tp.set(80,63390);_.tp.set(78,63397);_.tp.set(75,59972);_.tp.set(188,63385);_.tp.set(190,63384);_.tp.set(36,63387);
_.tp.set(35,63386);_.tp.set(37,63388);_.tp.set(39,63389);_.tp.set(79,63423);_.tp.set(87,63424);_.tp.set(107,63426);_.tp.set(109,63425);_.tp.set(65,63428);_.tp.set(83,63430);_.tp.set(68,63429);_.tp.set(221,63431);_.tp.set(219,63432);_.tp.set(97,63439);_.tp.set(98,63440);_.tp.set(99,63441);_.tp.set(100,63442);_.tp.set(101,63443);_.tp.set(102,63444);_.tp.set(103,63445);_.tp.set(104,63446);_.tp.set(105,63447);_.LI=new Map;_.LI.set(80,63390);_.LI.set(78,63397);_.LI.set(188,63400);_.LI.set(190,63401);
_.LI.set(191,60765);_.LI.set(13,247917);_.gl=new Map;_.UK=new Map;
}catch(e){_._DumpException(e)}
try{
var Kl9,gTO,UnR,RtR;_.nT_=function(H){return H.ui.guideIsVisibleButNotPersistent};
_.rEj=function(H){return H.ui.tabGesturesIsActive};
_.BhR=function(){var H=_.z9("service_worker_scope");try{return navigator.serviceWorker.getRegistration(H)}catch(C){return Promise.reject(C)}};
_.Dni=function(H){return!(!H||!H.pushManager)};
Kl9=function(){return _.BhR().then(_.Dni).catch(function(){return!1})};
_.tIr=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?Kl9():Promise.resolve(!1)};
_.Llt=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
gTO=function(){var H,C,S;return _.z(function(w){switch(w.nextAddress){case 1:return w.yield(_.C$.getInstance(),2);case 2:H=w.yieldResult;if(!H){C=void 0;w.jumpTo(3);break}return w.yield(H.get("lmqf"),4);case 4:C=w.yieldResult;case 3:switch((S=C)||(S="SD"),S){case "HD":return w.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return w.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return w.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return w.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return w.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
UnR=function(H){var C,S,w;return _.z(function(A){if(A.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.E("disable_av1_setting")){var J=window.localStorage["yt-player-av1-pref"];J=J==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":J==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else J="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(C=H===J)return A.jumpTo(2);w=S=H;return A.yield(gTO(),3)}A.nextAddress!=2&&(C=w===A.yieldResult);return A.return(C)})};var IY9;var aYp=_.Kl.IronButtonState,xnO=(0,_.re)(HTMLElement);
_.hr({_template:function(){if(IY9!==void 0)return IY9;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;RtR===void 0&&(RtR=document.createElement("template"));var w=RtR;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return IY9=H},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[aYp,_.Ba,_.tn,_.UQ],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(H){var C=(0,_.v5)(this);C.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:H});C.shadowRoot.appendChild(H);return xnO.prototype._attachDom.call(this,H)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var H=this.contentElement;H&&H.selectedItem&&this._setSelectedItem(H.selectedItem)},
get contentElement(){for(var H=_.PM(this.$.content).getDistributedNodes(),C=0,S=H.length;C<S;C++)if(H[C].nodeType===Node.ELEMENT_NODE)return H[C]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(H){this._setSelectedItem(H.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(H){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H)===this&&this.open()},
_selectedItemChanged:function(H){var C="";H?C=H.label||H.getAttribute("label")||H.textContent.trim():C="";this.value=C;this._setSelectedItemLabel(C)},
_computeMenuVerticalOffset:function(H,C){return C?C:H?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var H=this.opened?"true":"false",C=this.contentElement;C&&C.setAttribute("aria-expanded",H)}});_.Qj=new _.mi("navigateAction");var Hvq=new _.mi("formRenderer");var d0=function(){var H=_.oZ.apply(this,arguments)||this;H.showInput=!1;return H};
_.G(d0,_.oZ);_.F=d0.prototype;_.F.detached=function(){this.showInput&&window.removeEventListener("click",_.uA(this,this.closeOnOutsideClick_))};
_.F.stopPropagation_=function(H){this.showInput&&H.stopPropagation()};
_.F.closeOnOutsideClick_=function(H){this.closeOnOutsideClickCondition(H)&&(this.showInput=!1,window.removeEventListener("click",_.uA(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.F.closeOnOutsideClickCondition=function(){return!0};
_.F.closeOnOutsideClickHandler=function(){};
_.F.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.uA(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.F.openOnClickHandler=function(){};
_.F.showInputChanged=function(){};
_.F.setShowInput=function(H){this.showInput=H};
d0.prototype.setShowInput=d0.prototype.setShowInput;d0.prototype.showInputChanged=d0.prototype.showInputChanged;d0.prototype.openOnClickHandler=d0.prototype.openOnClickHandler;d0.prototype.openOnClick_=d0.prototype.openOnClick_;d0.prototype.closeOnOutsideClickHandler=d0.prototype.closeOnOutsideClickHandler;d0.prototype.closeOnOutsideClickCondition=d0.prototype.closeOnOutsideClickCondition;d0.prototype.closeOnOutsideClick_=d0.prototype.closeOnOutsideClick_;d0.prototype.stopPropagation_=d0.prototype.stopPropagation_;
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],d0.prototype,"showInput",void 0);_.D([_.Gz("click"),_.Gz("keydown"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],d0.prototype,"stopPropagation_",null);_.D([_.fx("showInput"),_.K("design:type",Function),_.K("design:paramtypes",[Boolean]),_.K("design:returntype")],d0.prototype,"showInputChanged",null);_.D([_.Od()],d0);_.ivq=[d0.prototype];var C5i;var SE_;var PT=function(){return _.X.apply(this,arguments)||this};
_.G(PT,_.X);_.F=PT.prototype;_.F.computePreselectedOption=function(H,C){return C===this.itemSelected_?H:void 0};
_.F.dataChanged_=function(){var H=this;this.preselectedSubreason=this.itemSelected_=-1;var C;(C=this.data)!=null&&C.key&&_.wM(this,function(){var S,w=Number((S=H.data)==null?void 0:S.key);!Number.isNaN(w)&&(H.itemSelected_=w,S=(S=(H.data.items||[])[w])&&S.optionSelectableItemRenderer&&S.optionSelectableItemRenderer.preselectedIndex)&&(H.preselectedSubreason=S)})};
_.F.isSubReasonHidden_=function(H,C){return H!=C};
_.F.onTopItemSelected_=function(H,C){for(var S=_.mY(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),w=0,A=S.length;w<A;w++)S[w].select(0);_.q3(this.hostElement,"yt-report-form-update",[C.item.value]);H.stopPropagation()};
_.F.onItemSelected_=function(H,C){_.q3(this.hostElement,"yt-report-form-update",[C.item.value]);H.stopPropagation()};
_.F.getItem_=function(H){return H.serviceItem?H.serviceItem:H.navigationItem?H.navigationItem:H.optionSelectableItemRenderer?H.optionSelectableItemRenderer:null};
_.F.computeText_=function(H){return(H=this.getItem_(H))?this.ytRendererBehavior.getSimpleString(H.text):null};
_.F.validate=function(){return this.itemSelected_!==-1};
_.F.computeAriaLabel_=function(H){var C=_.jt(H.text);(H=H.accessibility&&H.accessibility.accessibilityData&&H.accessibility.accessibilityData.label)&&(C+=". "+H);return C};
_.F.computeItemSelected_=function(H){return H};
_.F.preventSelection_=function(H){H.stopPropagation();this.tooltipTapped=!0};
_.F.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.F.updateItemSelectedFromBinding=function(H){this.itemSelected_=H.detail.value};
_.F.save=function(){var H;this.validate()&&(H=this.data)!=null&&H.items&&(H=this.data.items[this.itemSelected_],H!=null&&H.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(H.optionSelectableItemRenderer.submitEndpoint)||_.WH(this.hostElement,[H.optionSelectableItemRenderer.submitEndpoint])))};
PT.prototype.onPaperRippleTransitionEnd_=PT.prototype.onPaperRippleTransitionEnd_;PT.prototype.dataChanged_=PT.prototype.dataChanged_;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],PT.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],PT.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],PT.prototype,"data",void 0);_.D([_.V({value:-1}),_.K("design:type",Number)],PT.prototype,"itemSelected_",void 0);
_.D([_.V({computed:"computeItemSelected_(itemSelected_)"}),_.K("design:type",Number)],PT.prototype,"value",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],PT.prototype,"restoreFocusOnClose",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],PT.prototype,"tooltipTapped",void 0);_.D([_.V({value:-1}),_.K("design:type",Number)],PT.prototype,"preselectedSubreason",void 0);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],PT.prototype,"dataChanged_",null);_.D([_.Gz("transitionend"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],PT.prototype,"onPaperRippleTransitionEnd_",null);_.D([_.Lx({is:"yt-options-renderer",disableElementRegistration:!0})],PT);
_.B(PT,"yt-options-renderer",function(){if(SE_===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;C5i===void 0&&(C5i=document.createElement("template"));var w=C5i;S.call(C,w.content.cloneNode(!0),H.content.firstChild);SE_=H}H=SE_;return H},{mode:2});var sa9;var jaq;var wA9;var AAj;var JA_;var FC9;var $s=function(){return _.X.apply(this,arguments)||this};
_.G($s,_.X);$s.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
$s.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
$s.prototype.onTap=function(H){if(this.hostElement.classList.contains("selected")||_.q3(this.hostElement,"yt-share-panel-can-select-contact-action")[0])H&&H.detail&&(H.detail.x||H.detail.y)&&_.mY(this.hostElement).querySelector("#target").blur(),(H=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),H={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:H?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.q3(this.hostElement,"yt-share-panel-select-contact-action",[H])};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],$s.prototype,"ytRendererBehavior",void 0);_.D([_.V({observer:"onDataChanged"}),_.K("design:type",Object)],$s.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.K("design:type",String)],$s.prototype,"componentTitle",void 0);_.D([_.lA("#thumbnail"),_.K("design:type",Object)],$s.prototype,"thumbnail",void 0);_.D([_.Lx({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],$s);
_.B($s,"yt-enrolled-contact-renderer",function(){if(FC9===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;JA_===void 0&&(JA_=document.createElement("template"));var w=JA_;S.call(C,w.content.cloneNode(!0),H.content.firstChild);FC9=H}H=FC9;return H},{mode:2});var ZvR;var cAo;var pR=function(){return _.X.apply(this,arguments)||this};
_.G(pR,_.X);pR.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
pR.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
pR.prototype.onTap=function(H){if(this.hostElement.classList.contains("selected")||_.q3(this.hostElement,"yt-share-panel-can-select-contact-action")[0])H&&H.detail&&(H.detail.x||H.detail.y)&&_.mY(this.hostElement).querySelector("#target").blur(),(H=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),H={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:H?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.q3(this.hostElement,"yt-share-panel-select-contact-action",[H])};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],pR.prototype,"ytRendererBehavior",void 0);_.D([_.V({observer:"onDataChanged"}),_.K("design:type",Object)],pR.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.K("design:type",String)],pR.prototype,"componentTitle",void 0);_.D([_.lA("#thumbnail"),_.K("design:type",Object)],pR.prototype,"thumbnail",void 0);_.D([_.Lx({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],pR);
_.B(pR,"yt-suggested-contact-renderer",function(){if(cAo===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;ZvR===void 0&&(ZvR=document.createElement("template"));var w=ZvR;S.call(C,w.content.cloneNode(!0),H.content.firstChild);cAo=H}H=cAo;return H},{mode:2});var ks=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-share-panel-reset-action":"onReset"};return H};
_.G(ks,_.X);ks.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"}}}}}};
ks.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.q3(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
ks.prototype.onReset=function(){for(var H=_.mY(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),C=H.length-1;C>=0;C--)H[C].classList.toggle("selected")};
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],ks.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],ks.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],ks.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V({observer:"onDataChanged"}),_.K("design:type",Object)],ks.prototype,"data",void 0);
_.D([_.Lx({is:"yt-contact-section-renderer",disableElementRegistration:!0})],ks);
_.B(ks,"yt-contact-section-renderer",function(){if(AAj===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;wA9===void 0&&(wA9=document.createElement("template"));var w=wA9;S.call(C,w.content.cloneNode(!0),H.content.firstChild);AAj=H}H=AAj;return H},{mode:2});var hq=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return H};
_.G(hq,_.X);_.F=hq.prototype;_.F.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"}}}};
_.F.onYtRefreshFormCommand=function(H){var C;(H=_.e((C=_.e(H,_.Xw7))==null?void 0:C.formRenderer,Hvq))&&this.set("data",H)};
_.F.reset=function(){var H=_.mY(this.hostElement).querySelector("#fields").children;H=_.Z(H);for(var C=H.next();!C.done;C=H.next())C=C.value,C.reset&&C.reset()};
_.F.getForm=function(){var H={},C=_.mY(this.hostElement).querySelector("#fields").children;C=_.Z(C);for(var S=C.next();!S.done;S=C.next()){S=S.value;if(!S.validate())return null;H[S.data.key]=S.value}return H};
_.F.submitFormFields=function(){if(this.fields)for(var H=_.Z(this.fields),C=H.next();!C.done;C=H.next())C=C.value,C.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?C.save():C.nodeName==="YT-OPTIONS-RENDERER"&&C.save()};
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],hq.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],hq.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],hq.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],hq.prototype,"data",void 0);_.D([_.VQ("#fields > *"),_.K("design:type",Array)],hq.prototype,"fields",void 0);
_.D([_.Lx({is:"yt-form-renderer",disableElementRegistration:!0})],hq);
_.B(hq,"yt-form-renderer",function(){if(jaq===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;sa9===void 0&&(sa9=document.createElement("template"));var w=sa9;S.call(C,w.content.cloneNode(!0),H.content.firstChild);jaq=H}H=jaq;return H},{mode:2});var YEO;var nR=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return H};
_.G(nR,_.X);nR.prototype.onCheckboxChange=function(H){this.data&&(H=(this.checked=_.Jr(H).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.JA().resolve(_.ZQ).resolveCommand(H,{form:{element:this.hostElement}})};
nR.prototype.handleUpdateCheckboxCommand=function(H){(H=_.e(H,_.RLP))&&this.data&&this.data.id===H.id&&(this.set("data.disabled",H.disabled),this.set("data.title",H.title))};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],nR.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],nR.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],nR.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Boolean)],nR.prototype,"checked",void 0);_.D([_.h({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],nR);
_.B(nR,"ytd-settings-checkbox-renderer",function(){if(YEO!==void 0)return YEO;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return YEO=H},{mode:1});var z3r;var r0=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return H};
_.G(r0,_.X);r0.prototype.dataChanged=function(){var H=this,C;return _.z(function(S){if(S.nextAddress==1)return H.radio.removeAttribute("checked"),!H.data||!H.data.id||H.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.Llt()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(C=H.data&&H.data.id)?S.yield(UnR(H.data.id),4):S.jumpTo(3):(H.set("data.hidden",!0),S.jumpTo(0));S.nextAddress!=3&&(C=S.yieldResult);C&&_.q3(H.hostElement,"yt-select-settings-radio-option",[H.data.id]);_.oT(S)})};
r0.prototype.onButtonChanged=function(H){_.Jr(H).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.JA().resolve(_.ZQ).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.q3(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
r0.prototype.onSelectOption=function(H){this.data&&this.data.id&&(this.data.id===H?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
r0.prototype.dataChanged=r0.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],r0.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],r0.prototype,"ytActionHandlerBehavior",void 0);_.D([_.lA("#radio"),_.K("design:type",Object)],r0.prototype,"radio",void 0);_.D([_.V(),_.K("design:type",Object)],r0.prototype,"data",void 0);
_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype",Promise)],r0.prototype,"dataChanged",null);_.D([_.h({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],r0);
_.B(r0,"ytd-settings-radio-option-renderer",function(){if(z3r!==void 0)return z3r;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return z3r=H},{mode:1});var M$3;var BT=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return H};
_.G(BT,_.X);
BT.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"}}}};
BT.prototype.handleUpdateTextCommand=function(H){(H=_.e(H,_.IKM))&&this.data&&this.data.id===H.id&&this.set("data",H)};
BT.prototype.handleUpdateConnectedAppRendererCommand=function(H){if(_.e(H,_.H3V)&&this.data){var C,S;if(H=(C=_.e(H,_.H3V))==null?void 0:(S=C.newConnectedAppRenderer)==null?void 0:S.connectedAppRenderer)this.data=H}};
BT.prototype.computeConnectedAppStyle=function(H){return H.style?H.style.toLowerCase().replace(/_/g,"-"):""};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],BT.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],BT.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],BT.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],BT.prototype,"data",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.K("design:type",String)],BT.prototype,"connectedAppStyle",void 0);_.D([_.h({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],BT);
_.B(BT,"ytd-connected-app-renderer",function(){if(M$3!==void 0)return M$3;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return M$3=H},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.hk("iuT5Oc");

_.n6();
}catch(e){_._DumpException(e)}
try{
_.hk("L3n37");
var X5T=function(H){return H.watch.isLearningJourneyActive},QqB=_.y4(115994),d_B=_.y4(115993),Py2=function(H,C,S){var w=this;
var A=S.dragDownAction;this.layer=0;this.JSC$23209_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return w.dragDownAction()}}}};
this.JSC$23209_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return w.dragDownAction()}}}};
this.fullscreen=!1;var J=_.lJ();_.nO(J,QqB,this.layer);_.nO(J,d_B,this.layer);this.dragDownAction=function(){A();_.aW(J,{visualElement:w.fullscreen?QqB:d_B})};
this.gesture=new _.hI(H,C,this.getConfig(!1),"pandown");this.attach()};
Py2.prototype.attach=function(){this.gesture.attach()};
Py2.prototype.detach=function(){this.gesture.detach()};
Py2.prototype.update=function(H){this.fullscreen=H;var C=this.gesture;H=this.getConfig(H);C.config=H};
Py2.prototype.getConfig=function(H){return H?this.JSC$23209_watchFullScreenConfig:this.JSC$23209_watchConfig};var $_B=function(H){_.KI.call(this);var C=this;this.rootElement=H;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return C.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(S){C.initOrDisposeActiveModules(S)}));
this.onAttached()};
_.G($_B,_.KI);_.F=$_B.prototype;_.F.getRoot=function(){return this.rootElement};
_.F.getElement=function(H){return this.rootElement.getElement(H)};
_.F.setPlayerResponse=function(H){this.playerResponse=H;this.publish("PLAYER_RESPONSE_UPDATED",H)};
_.F.getPlayerResponse=function(){return this.playerResponse};
_.F.setWatchNextResponse=function(H){this.watchNextResponse===H?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=H,this.publish("WATCH_NEXT_RESPONSE_UPDATED",H))};
_.F.getWatchNextResponse=function(){return this.watchNextResponse};
_.F.registerActionHandler=function(H,C){var S=this;if(_.E("web_watch_controller_reg_multiple_handlers_killswitch")){var w={};_.xI(_.a8.getInstance(),(w[H]=C,w),this.getRoot())}else this.actionHandlers.has(H)||(this.actionHandlers.set(H,[]),w={},_.xI(_.a8.getInstance(),(w[H]=function(){var A=_.tc.apply(0,arguments);return(S.actionHandlers.get(H)||[]).map(function(J){return J.apply(null,_.k$(A))})},w),this.getRoot())),this.actionHandlers.get(H).push(C)};
_.F.unregisterActionHandler=function(H){if(_.E("web_watch_controller_reg_multiple_handlers_killswitch")){var C={};_.H5(_.a8.getInstance(),(C[H]=!0,C),this.getRoot())}else(C=this.actionHandlers.get(H))?(C.pop(),C.length===0&&(C={},_.H5(_.a8.getInstance(),(C[H]=!0,C),this.getRoot()),this.actionHandlers.delete(H))):_.Bn(new _.X0("Attempted to unregister an action handler which is not registered.",H))};
_.F.addPageDisposeJob=function(H){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.oEV(this.rootElement.pageDisposeJobs,H)};
_.F.removePageDisposeJob=function(H){this.rootElement.pageDisposeJobs&&_.ru(this.rootElement.pageDisposeJobs,H)};
_.F.dispatchEvent=function(H,C){_.M3(this.rootElement,H,C)};
_.F.provideRenderingData=function(H,C){this.rootElement.provideRenderingData(H,C)};
_.F.scrollWatchTo=function(H,C){var S;(S=this.watchScrollManager)==null||S.scrollWatchTo(H,C)};
_.F.focusOnPlayer=function(){var H=this.getElement("PLAYER");_.wM(H,function(){if(H&&H.firstElementChild){var C=H.querySelector(".html5-video-player");C&&(_.Qz(_.JA().resolve(_.Qi)),C.focus())}else _.Bn(Error("Wo"))})};
var p5t=function(H){var C=!!H.rootElement.theater,S=!!H.rootElement.fullscreen,w;(w=H.watchCinematicManager)==null||_.z0r(w,S,C)};
_.F=$_B.prototype;_.F.subscribeToActiveChanged=function(H,C){C=C===void 0?!0:C;var S=_.Uf(_.AG(),X5T,function(w){H(w)});
C&&H(X5T(_.AG().getState()));return S};
_.F.isActive=function(){return X5T(_.AG().getState())};
_.F.onAttached=function(){var H=_.E("external_fullscreen");_.E("use_unified_flag_accessor")&&(H=_.JA().resolve(_.L2i).retriever.getFlag(_.QEn));(H||_.Bh("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.F.initPersistentModules=function(){if(_.E("kevlar_watch_flexy_theater_manager")){var H=new _.h3v(this);_.Nx(this,H)}H=new _.vuB(this);_.Nx(this,H);H=new _.X5(this);_.Nx(this,H);H=new _.e02(this);_.Nx(this,H);H=new _.pz(this);_.Nx(this,H);H=new _.Qr(this);_.Nx(this,H);_.E("kevlar_watch_flexy_playlist_manager")&&(H=new _.wnD(this),_.Nx(this,H))};
_.F.initOrDisposeActiveModules=function(H){H?(this.watchScrollManager=new _.kO(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.BT9(this)),this.activeModules.push(new _.rET(this)),this.activeModules.push(new _.YsB(this)),this.activeModules.push(new _.PCD(this)),_.E("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.LlD(this)),this.activeModules.push(new _.UzB(this)),_.E("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.Mrr(this)),
_.E("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.CCB(this)),_.E("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.AOB(this),this.activeModules.push(this.watchCinematicManager),p5t(this)),_.E("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.xzP(this)),_.E("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.Gfh(this)),H=_.E("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.E("kevlar_watch_flexy_comments_manager")&&
!H&&this.activeModules.push(new _.WQ4(this)),_.E("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.ja4(this)),this.activeModules.push(new _.gBP(this)),this.activeModules.push(new _.KQD(this)),_.E("web_enable_timely_actions")&&this.activeModules.push(new _.aQT(this)),_.E("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.N4T(this)),_.E("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.cAh(this)),_.E("web_fullscreen_components")&&
this.activeModules.push(new _.IYc(this)),_.E("web_player_rtr_ctrls")&&this.activeModules.push(new _.EB2(this))):(_.Jk(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.F.disposeInternal=function(){_.KI.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.JJ.Object.defineProperties($_B.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var kqB={},hrD=["learning-journey-engagement-panel","PAlearning_chat"];
kqB.YtdLearningJourneyWatchBehavior=[_.I.YtRendererBehavior,_.fT.YtPlayerListenerBehavior,_.dc.YtRendererstamperBehavior,_.Lw.YtActionHandlerBehavior,_.j6.YtPageBehavior,_.tZ.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 _.Bh("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.E("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 _.Bh("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 _.E("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.E("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 _.YB("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.YB("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,
reflectToAttribute:!0,value:function(){return _.E("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("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 _.E("web_watch_rounded_player_large")||_.E("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 _.E("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.E("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("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 _.E("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("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:_.eX(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.eX(["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 H=this;this.watchController=void 0;this.pageDisposeJobs=[function(){H.showMetadataPlaceholder_()},
function(){_.E("web_watch_dont_clear_comments")||H.clearComments_()},
function(){H.clearPlayerAds_()},
function(){H.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;_.E("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.E("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.ZmT(function(){return _.F1(H)},this.hostElement);
this.pageDisposeJobs.push(function(){H.youThereManager_.reset()});
_.E("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){H.resetFullerscreenEduButtonForNewPlayback_()}));
_.E("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.VV;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;_.E("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.E("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));_.E("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.uA(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(H){H&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:H}),H.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(H){_.E("kevlar_watch_flexy_theater_manager")&&(this.theater=H,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.E("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(H){!_.E("kevlar_watch_while_v2")&&!_.E("web_watch_pip")||H||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(H){this.active!==void 0&&(this.fullscreen=H,_.E("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(H){this.active!==void 0&&(_.M3(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.E("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.E("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(H>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(H){this.initCsi_();this.updatePageData_(H)},
updatePageData_:function(H){var C=this;if(H)if(this.data===H){this.onPageLoadWithSameData_();var S;(S=this.watchController)==null||S.setWatchNextResponse(this.data)}else this.data=H;this.playlist&&_.nL({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.DR("nw");this.loading=!1;_.X2(_.rT,function(){C.initDclkstatus_();var w,A=((w=C.player)==null?void 0:w.getVideoData().cpn)||"";_.UKB(function(J,c){_.AMp(J,c,A)})})},
onPageLoadWithSameData_:function(){_.E("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 H=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!H);this.set("loadingData.playlistLoading",H&&H!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),H=this.watchNextSkeletonEl_.firstElementChild;H;)H.classList.remove("hidden"),H=H.nextElementSibling;var C,S,w;H=(C=this.loadingData)==null?void 0:(S=C.endpoint)==null?void 0:(w=S.watchEndpoint)==null?void 0:w.videoId;var A;H&&(A="https://i.ytimg.com/vi/"+H+"/frame0.jpg");_.mY(this.hostElement).querySelector("#player").style.backgroundImage=A?"url("+A+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var H=_.mY(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&H&&(H.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var C,S;(S=(C=this.watchMetadata).updateSentimentBarWidth)==
null||S.call(C);var w,A;(A=(w=this.watchMetadata).resize)==null||A.call(w)}_.mY(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(H){var C=_.mY(this.hostElement).querySelector(H);C?_.YR(C,!1):_.Bn(new _.X0("Overscroll monitor not found for component: ",H))},
removeSplitScrollMouseTrap:function(H){var C=_.mY(this.hostElement).querySelector(H);C?_.zo(C):_.Bn(new _.X0("Disposal component for  overscroll monitoring not found: ",H))},
onLoadingChanged_:function(H){H?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(H){var C=this;H?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.rT.addLowPriorityJob(function(){C.onWindowResized_(_.ow(!0))})},
updateTheaterModeState_:function(H){if(!_.E("kevlar_watch_flexy_theater_manager")){H=H||this.fullWindowMode_;if(this.theater!==void 0||H)this.theater=H;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();H&&_.l4v()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var H=this.theater;_.E("external_fullscreen")&&this.fullscreen&&(H=!0);H=H?_.mY(this.hostElement).querySelector("#player-full-bleed-container"):_.mY(this.hostElement).querySelector("#player-container-inner");var C=this.getPlayerContainer(),S=_.E("kevlar_watch_while_v2")||_.E("web_watch_pip");C.parentElement!==H&&(S&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.F1(this).appendTo(H,C),H.appendChild(_.mY(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var H=this;return _.z(function(C){if(C.nextAddress==1)return C.yield(_.JA().resolve(_.Df).deactivate(),2);H.updatePlayerLocation();_.oT(C)})},
updateCinematicsLocation:function(){var H=this.getElement("CINEMATICS");if(H){var C=this.getCinematicsLocationContainer();H.parentElement!==C&&C.appendChild(H);var S;(S=this.watchController)==null||p5t(S)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.mY(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.mY(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(H,C){var S=document.documentElement.hasAttribute("dark"),w=S&&_.E("web_cinematic_theater_mode"),A=S&&_.E("web_cinematic_fullscreen");S=!S&&this.cinematicLightTheme;return H&&w||C&&A||(C||H)&&S},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var H;(H=this.watchController)==null||H.setWatchNextResponse(this.data);_.E("kevlar_watch_flexy_comments_manager")||this.initComments_();_.E("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.JA().resolve(_.qb).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.E("web_watch_start_chat_in_theater_mode")){var C,
S,w;if((C=this.data)==null?0:(S=C.contents)==null?0:(w=S.twoColumnWatchNextResults)==null?0:w.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var A,J;((A=this.data)==null?0:(J=A.contents)==null?0:J.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(H){var C;(C=this.watchController)==null||C.setPlayerResponse(this.playerData);H&&H.playabilityStatus&&(C=this.isVideoPlayable_(H.playabilityStatus,this.getPlayerOverlays_(this.data)),H=this.isLiveStreamOffline_(H.playabilityStatus),C&&!H||_.wM(this,function(){_.DR("pbu")}));
this.setPlayerAds_();_.m7(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(H){_.AG().dispatch(_.Md({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));H?this.activate_():this.deactivate_()},
attached:function(){var H=this;this.watchController=new $_B(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.E("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var C=_.F1(this);_.E("kevlar_disable_prepare_player")||C.preparePlayer();_.E("kevlar_watch_flexy_playlist_manager")||_.JA().resolve(_.qb).setPlayer(C);this.updatePageMediaQueries();C={"--ytd-watch-flexy-scrollbar-width":_.Nm()+
"px"};!_.YB("kv_pl_mx_sz_ks")&&_.YB("kevlar_watch_max_player_width")&&(C["--ytd-watch-flexy-max-player-width-wide-screen"]=_.Tx9+"px");_.YB("kevlar_watch_flexy_metadata_height")&&(C["--ytd-watch-flexy-space-below-player"]=_.mH4+"px");this.safeUpdateStyles(C);_.E("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new Py2(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return H.onPlayerTouchPanDown_()}}));
_.E("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.mY(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var H=_.Nm(),C=_.KW+H,S=C;this.fixedPanels&&(C+=_.qlT);var w=657+H;H=1327+H;_.mY(this.hostElement).querySelector("#two-column-query").query="(min-width: "+C+"px)";_.mY(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(w+"px), (min-height: 630px) and (min-width: ")+(C+"px) and (max-width: ")+(H+"px)");_.mY(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(H+"px)");
_.mY(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+S+"px)"},
calculateCurrentPlayerSize_:function(){var H=_.mY(this.hostElement).querySelector("#miniplayer-bar").firstChild;return H&&H.active||this.theater||_.E("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.vj(NaN,NaN):_.HmT(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.HmT(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Ak(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var H=this;this.onWindowResized_(_.ow());_.E("browse_skeleton_removal_on_watch_killswitch")||_.Bh("IS_SHELL_LOAD")&&_.JF3();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var C=_.F1(this);C.addEventListener("yt-player-updated",_.uA(this,this.onPlayerUpdated_));C.getPlayerPromise().then(function(S){H.playerApiReady_(S)});
_.E("kevlar_watch_flexy_playlist_manager")||(C=_.JA().resolve(_.qb),_.E("kevlar_watch_observe_playlist_navigations_killswitch")&&C.addEventListener("yt-navigate",_.uA(this,this.onYtNavigate_)),C.setPlaylistComponent(_.mY(this.hostElement).querySelector("#playlist")),C.addEventListener("yt-playlist-data-updated",_.uA(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.rT.addLowPriorityJob(function(){_.M3(H.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.F1(this).removeEventListener("yt-player-updated",_.uA(this,this.onPlayerUpdated_));if(!_.E("kevlar_watch_flexy_playlist_manager")){var H=_.JA().resolve(_.qb);_.E("kevlar_watch_observe_playlist_navigations_killswitch")&&H.removeEventListener("yt-navigate",_.uA(this,this.onYtNavigate_));H.cancelVideoSkip();H.removeEventListener("yt-playlist-data-updated",_.uA(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.E("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.M3(this.hostElement,"yt-autonav-pause-player",!1);H=_.ZR();_.E("kevlar_exit_fullscreen_leaving_watch")&&H&&_.cH(H)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(H){this.player&&this.player.updateVideoData({rvs:H.rvs})},
getPageContents:function(H){return H&&H.contents&&H.contents.twoColumnWatchNextResults&&H.contents.twoColumnWatchNextResults.results&&H.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(H){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",H)},
onRetrieveLocation_:function(H,C){C.hasComments?C.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):C.locationRetrieved("/related_ajax",void 0);H.stopPropagation()},
onSubscriptionChanged_:function(H,C){this.player&&(C?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.mXK("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.mY(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.mY(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(H){this.player=H;this.setPlayerState(H.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.E("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.E("kevlar_unified_player")||_.E("kevlar_player_new_bootstrap_adoption"))&&_.g$()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(H,C){C=C===void 0?!0:C;_.ZR()&&_.E("external_fullscreen")&&_.cH(document.documentElement);this.theaterRequested_=H;C&&_.l5("wide",H?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.E("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.q3(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.M3(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(H){_.DZ(H,typeof this.player),this.player&&_.DZ(H,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var H;((H=this.player)==null?0:H.isFullscreen())?this.player.toggleFullscreen():_.q3(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(H,C){return this.loading?C:!!Object.keys(H).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(H){if(H){H=_.Z(H);for(var C=H.next();!C.done;C=H.next())C=C.value,C.youThereRenderer&&_.zrT(this.youThereManager_,C.youThereRenderer)}},
setPlaylistData_:function(H){return H||{}},
userEngagementConfigDataChanged_:function(H){if(H)if(H.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var C=this.youThereManager_;_.cn()<H.lowEngagementThresholdMs||_.m_c(C,!0)}else H.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.q3(this.hostElement,"yt-autonav-pause-user-engagement",[H])},
isPlayerUnavailable_:function(H,C,S){return!!H&&!this.isVideoPlayable_(H,S)&&!C},
getPlayerOverlays_:function(H){return(H==null?void 0:H.playerOverlays)||null},
isVideoPlayable_:function(H,C){if(!H)return!1;var S=H.status==="OK"||H.status==="LIVE_STREAM_OFFLINE",w=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",H)||this.get("errorScreen.ypcTrailerRenderer",H);H=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",H);var A;C=C==null?void 0:(A=C.playerOverlayRenderer)==null?void 0:A.gatedActionsOverlayRenderer;return!!S||!!w||!!H||!!C},
hasWatchNextResponseErrorRenderer:function(H){var C=this.getPageContents(H),S,w,A,J,c;return!(H==null?0:(S=H.contents)==null?0:(w=S.twoColumnWatchNextResults)==null?0:w.secondaryResults)&&!!((A=C[0])==null?0:(J=A.itemSectionRenderer)==null?0:(c=J.contents[0])==null?0:c.backgroundPromoRenderer)},
isLiveStreamOffline_:function(H){return H?H.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(H,C,S){var w=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",C),A=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];A=_.E("web_no_skip_video_on_verification_checks")?(H==null?void 0:H.status)&&A.includes(H.status):H&&H.status==="AGE_CHECK_REQUIRED";var J=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",H);J==void 0&&(J=!0);!S||this.isVideoPlayable_(H,this.getPlayerOverlays_(C))||
w||A||!J||_.JA().resolve(_.qb).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.CyV()},
onPlayerFeedbackStartRequest_:function(H){_.q3(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:H}])},
onPlayerFeedbackArticleRequest_:function(H){_.q3(this.hostElement,"yt-help-dialog-requested",[H])},
onPlayerYpcContentRequest_:function(){var H,C,S,w,A,J,c,Y,M=((H=this.data)==null?NaN:(C=H.contents)==null?NaN:(S=C.twoColumnWatchNextResults)==null?NaN:(w=S.secondaryResults)==null?NaN:(A=w.secondaryResults)==null?NaN:(J=A.offerModule)==null?NaN:(c=J.tvfilmOfferModuleRenderer)==null?NaN:(Y=c.actionButtons)==null?NaN:Y.length)-1;H=[".offerButton.buttonRenderer.",".actionButtons."+(M>=0?M:0)+".buttonRenderer."];C=_.Z(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(S=C.next();!S.done;S=C.next())for(S=S.value,w=_.Z(H),A=w.next();!A.done;A=w.next())if(A="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+S+A.value,A=this.get(A+"navigationEndpoint",this.data)||this.get(A+"serviceEndpoint",this.data)||this.get(A+"command",this.data)){_.uJ(A,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(H){_.M3(this.hostElement,"yt-autonav-pause-player",H)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(H){H()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(H){switch(H){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(H){switch(H){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.M3(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(H)},
setPlayerState:function(H){_.AG().dispatch(_.Qv_(H))},
onPlayerSubscribe_:function(H){_.q3(this.hostElement,"yt-player-subscribe",[H])},
onPlayerUnsubscribe_:function(H){_.q3(this.hostElement,"yt-player-unsubscribe",[H])},
onPlayerAdYtShowToast_:function(H){_.q3(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:H.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(H){if(H)return H},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(H){return!_.E("web_watch_move_summary_to_sd")&&!!H},
computeWatchMetadataRefresh:function(){return _.E("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var H,C,S,w;this.watchNextSecondaryResults=(H=this.data)==null?void 0:(C=H.contents)==null?void 0:(S=C.twoColumnWatchNextResults)==null?void 0:(w=S.secondaryResults)==null?void 0:w.secondaryResults}},
setRichGridRendererData:function(H){this.richGridRendererData=H},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var H,C=(H=this.data)==null?void 0:H.engagementPanels;if(C==null?0:C.length){H=null;C=_.Z(C);for(var S=C.next();!S.done;S=C.next()){S=S.value;var w=void 0;if(((w=S.engagementPanelSectionListRenderer)==null?void 0:w.targetId)==="engagement-panel-structured-description"){H=S;break}}var A,J,c;H=(A=H)==null?void 0:(J=A.engagementPanelSectionListRenderer)==null?void 0:(c=J.content)==null?void 0:c.structuredDescriptionContentRenderer;if(H==null?0:H.items){A=
[];J=_.Z(H.items);for(c=J.next();!c.done;c=J.next()){c=c.value;if(!_.E("sd_horizontal_list_show_nav_killswitch")){var Y=w=S=C=H=void 0,M=void 0,m=(H=c.horizontalCardListRenderer)==null?void 0:(C=H.header)==null?void 0:(S=C.richListHeaderRenderer)==null?void 0:(w=S.navigationButton)==null?void 0:(Y=w.buttonRenderer)==null?void 0:(M=Y.command)==null?void 0:M.commandExecutorCommand;m&&m.commands&&(m.commands=m.commands.filter(function(W){return!_.e(W,_.OMv)}))}c.expandableVideoDescriptionBodyRenderer||
c.videoDescriptionHeaderRenderer||A.push(c)}return{items:A}}}},
constructWarning_:function(H){return{text:_.sx(H),type:"WARNING"}},
isPlaShelfEnabled_:function(H){if((this.get("adPlacements",H)||[]).length)return!0;H=this.get("playerAds",H)||[];return!(!H.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",H[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var H=this;_.M3(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.E("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var C=this.getScrollTop()>0;this.gestures_&&(C?this.gestures_.detach():this.gestures_.attach());C!==this.showFullerscreenEdu_&&_.E("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=C,_.F1(this).getPlayerPromise().then(function(S){S.updateFullerscreenEduButtonVisibility(H.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.M3(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var H=this;this.commentsReady=!1;_.rT.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.X2(_.rT,function(){H.setComments_()},1E3)},
setComments_:function(){if(!_.E("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.DR("cmi");_.rT.cancelJob(this.setCommentsJobId_);var H=this.getPageContents(this.data);if(H&&H.length){H=_.Z(H);for(var C=H.next();!C.done;C=H.next())if(C=C.value,this.get("itemSectionRenderer.sectionIdentifier",C)==="comment-item-section"){this.comments=C.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.M3(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.E("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.E("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.DR("cmc")},
doRemoveComments_:function(){this.comments={};_.E("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.rT.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.rT.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(H,C){var S=_.e(C.endpoint,_.sX);S&&(!(C=this.get("data.currentVideoEndpoint.watchEndpoint"))||S.videoId!==C.videoId||S.playlistId&&S.playlistId!==C.playlistId||S.index!==void 0&&S.index!==C.index||typeof S.startTimeSeconds!=="number"||(H.stopPropagation(),this.setScrollTop(0),_.F1(this).getPlayerPromise().then(function(w){var A=S.startTimeSeconds;w.seekTo(A);w.wakeUpControls();A<w.getDuration()&&w.playVideo()})))},
updatePlayerStartTime_:function(){var H=_.hbv();"t"in H&&(H=_.imP(H.t),this.player.seekTo(H,!0))},
updateTitleFromWatchNext:function(H){H=this.getPageContents(H);var C,S;(H=_.jt(H==null?void 0:(C=H[0])==null?void 0:(S=C.videoPrimaryInfoRenderer)==null?void 0:S.title))&&_.M3(this.hostElement,"yt-update-title",H)},
updateTitle_:function(H){H=this.get("videoDetails.title",H)||"";_.M3(this.hostElement,"yt-update-title",H)},
syncWithRemoteVideo_:function(H,C,S){if(this.active&&this.player){var w=this.player.getVideoData();if(w.video_id===S&&(S=w.list,_.E("polymer_enable_mdx_queue")&&S&&S.startsWith("RQ")&&(S=void 0),w.video_id!==H||S!=C)){var A;_.E("kevlar_player_watch_endpoint_navigation")?A=_.v0w(_.RbB(H,C)):A=this.buildWatchEndpoint_(H,C);_.M3(this.hostElement,"yt-navigate",{endpoint:A,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(H,C,S){return _.Zy(H,C,S)},
initDclkstatus_:function(){_.xK4()},
attachWatchPageSkeleton_:function(){var H=document.querySelector("#watch-page-skeleton");if(H){var C=H.querySelector("#primary-info"),S=H.querySelector("#secondary-info"),w=H.querySelector("#related");C&&_.mY(this.hostElement).querySelector("#info-skeleton").appendChild(C);S&&_.mY(this.hostElement).querySelector("#meta-skeleton").appendChild(S);w&&(_.mY(this.hostElement).querySelector("#related-skeleton").appendChild(w),this.watchNextSkeletonEl_=w);_.f6(H)}},
handlePlayerUpdated_:function(){_.F1(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(H,C){if(this.watchNextSkeletonEl_&&typeof C!=="undefined"){var S=this.watchNextSkeletonEl_.children,w=H&&H.indexSplices.length?H.indexSplices[0].index:0;H=Math.min(this.watchNextShownItems.length,S.length);C||(w=0,H=S.length);for(C=w;C<H;C++)S[C].classList.add("hidden")}},
onPlayerFullscreenChange_:function(H){_.E("external_fullscreen")||_.q3(this.hostElement,"yt-player-fullscreen",[H.fullscreen])},
onFullscreenChange_:function(H){this.fullscreen=H;this.gestures_&&this.gestures_.update(this.fullscreen);var C=_.F1(this);C.getPlayerPromise().then(function(S){S.setFauxFullscreen(!!_.ZR())});
this.updateFullBleedElementLocations();H&&(C.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(H,C){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!C},
computeIsDonationShelfCollapsed_:function(H){return H},
computeShouldShowMerchShelf:function(H,C){return C&&!!H},
computeResponseHasComments:function(H){var C,S,w,A,J;return!!(H==null?0:(C=H.contents)==null?0:(S=C.twoColumnWatchNextResults)==null?0:(w=S.results)==null?0:(A=w.results)==null?0:(J=A.contents)==null?0:J.some(function(c){var Y;return(c==null?void 0:(Y=c.itemSectionRenderer)==null?void 0:Y.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(H,C){this.responseHasComments=this.computeResponseHasComments(this.data);return!!H&&!!Object.keys(H).length&&!C},
identity:_.$E,onWindowResized_:function(H){this.windowSize_=H;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.E("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.E("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(H){var C=this;H&&H.type!=="dataloaded"&&H.type!=="dataupdated"||_.F1(this).getPlayerPromise().then(function(S){var w=S.getPlayerState();w!==5&&w!==0&&(S=1/S.getVideoAspectRatio(),C.videoHeightToWidthRatio_!==S&&(C.videoHeightToWidthRatio_=S))})},
schedulePlayerSizeUpdate_:function(H){var C=this,S=_.E("kevlar_watch_while_v2")||_.E("web_watch_pip"),w=function(){if(C.watchMetadata){var A,J;(J=(A=C.watchMetadata).resize)==null||J.call(A)}_.F1(C).getPlayerPromise().then(function(c){if(_.E("kevlar_set_internal_player_size")){if(!S||!C.isMiniplayerActive()){var Y=C.calculateCurrentPlayerSize_();c.setInternalSize(Y.width,Y.height)}}else c.setSize(NaN,NaN);_.E("kevlar_watch_while")&&C.updateWatchWhileScrollThreshold_()})};
H?w():_.mx(_.rT,w)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(H){this.set("data.survey",H.detail)},
onYtShowSurveyCommand_:function(H){this.set("data.survey",_.e(H,_.FrB).survey)},
onDownloadedVideoDeleted:function(H){var C=this,S,w;return _.z(function(A){if(A.nextAddress==1){if(!C.active||(S=C.playerData)==null||!S.offlineState||C.videoId!==H)return A.return();(w=C.player)==null||w.stopVideo();_.LO().navigatingAwayFromWatchDeletedVideo=!0;_.uJ(_.uDi,C.hostElement);return A.yield(_.LO().navigationFinishPromise,2)}_.LO().navigatingAwayFromWatchDeletedVideo=!1;_.oT(A)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var H;this.theater?H=_.$C(.5625*this.windowSize_.width,480,this.windowSize_.height-185):H=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==H&&(this.watchWhileScrollThreshold_=H,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var H=_.mY(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&H){var C=this.windowSize_.height>=624,S=this.active?this.getScrollTop():0;!H.active&&C&&S>=this.watchWhileScrollThreshold_?(H.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):H.active&&(!C||S<this.watchWhileScrollThreshold_&&!_.ZR())&&(H.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(H,C){if(H!==!0||C!==void 0){H=!_.E("live_chat_over_engagement_panels");C=_.mY(this.hostElement).querySelector("#chat-container");var S=_.mY(this.hostElement).querySelector("#plj-sidebar"),w=_.mY(this.hostElement).querySelector("#panels"),A=_.mY(this.hostElement).querySelector("#plj-panels"),J=_.mY(this.hostElement).querySelector("#plj-playlist"),c=_.mY(this.hostElement).querySelector("#alerts"),Y=_.mY(this.hostElement).querySelector("#playlist"),M=_.mY(this.hostElement).querySelector("#related"),
m=_.mY(this.hostElement).querySelector("#donation-shelf"),W=_.mY(this.hostElement).querySelector("#comments");this.isTwoColumns_?(c=_.mY(this.hostElement).querySelector("#secondary-inner"),c.appendChild(S),S.appendChild(J),J.appendChild(Y),S.appendChild(A),H&&c.appendChild(w),_.E("web_watch_theater_chat")||c.appendChild(C),H||c.appendChild(w),c.appendChild(m),c.appendChild(M)):(H&&_.tl(w,c),_.tl(Y,c),_.E("web_watch_theater_chat")||_.tl(C,c),H||_.tl(w,c),_.tl(m,c),W&&(A&&_.tl(A,W),_.tl(M,W)));_.E("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.E("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.E("web_watch_theater_chat")){var H=_.mY(this.hostElement).querySelector("#chat-container"),C=this.theater&&!this.fullscreen||_.E("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&C?_.E("web_watch_theater_chat_beside_player")?(C=_.mY(this.hostElement).querySelector("#panels-full-bleed-container"),(H==null?void 0:H.parentElement)!==C&&C.append(H),this.panelsBesidePlayer=!0):_.E("web_watch_theater_fixed_chat")&&
(C=_.mY(this.hostElement).querySelector("#columns"),(H==null?void 0:H.parentElement)!==C&&C.append(H),this.fixedPanels=!0):(_.E("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.E("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),C=_.mY(this.hostElement).querySelector("#playlist"),H&&C?_.Li(H,C):_.Bn(new _.X0("Missing element when updating chat location",{"chatContainer defined":!!H,"playlist defined":!!C})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(H,C){return _.E("sw_metadata_vis_toggle_ks")?!0:!!H||!!C},
computeForceDarkPanelTheme:function(H){return _.E("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&H:!1},
safeUpdateStyles:function(H){try{_.Ed(this.hostElement,H)}catch(C){_.Bn(C)}},
videoHeightToWidthRatioChanged_:function(H,C){C&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.E("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(H){this.videoHeightToWidthRatio_=1/H},
computeIsVerticalVideo_:function(H){return H>=1},
computeIsFourThreeToSixteenNineVideo_:function(H){return H<=.7501&&H>=.5624},
computeIsExtraWideVideo_:function(H){return H<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.F1(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.F1(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.WrT(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(H){var C=_.BU(H)||0;_.rm(H,C+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var H=_.BU("yt-fullerscreen-edu-button-click-count")||0,C=_.BU("yt-fullerscreen-edu-button-shown-count")||0,S=_.YB("external_fullscreen_button_shown_threshold"),w=H>=_.YB("external_fullscreen_button_click_threshold")||C>=S;_.F1(this).getPlayerPromise().then(function(A){A.updateFullerscreenEduButtonSubtleModeState(w)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(H,C){return C},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.JA().resolve(_.qb).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var H=this;this.panelMaxHeightUpdateJob_&&_.rT.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.rT.addLowPriorityJob(function(){H.panelMaxHeightUpdateJob_=0;var C;!H.isTwoColumns_||H.theater||H.fullscreen?C=460:C=H.calculateNormalPlayerSize_().height;var S=C+"px";_.E("live_chat_taller_height")&&!H.theater&&(S="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.E("live_chat_medium_height")&&
!H.theater&&(S="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.E("live_chat_scaled_height")&&!H.theater&&(S="calc(100vh - var(--ytd-toolbar-height) - 238px)");H.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":C+"px","--ytd-watch-flexy-chat-max-height":S,"--ytd-watch-flexy-structured-description-max-height":C+"px","--ytd-watch-flexy-comments-panel-max-height":C+"px","--ytd-comments-engagement-panel-content-height":C+"px"})})},
onYtShowEngagementPanelScrimAction_:function(H){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",H)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.yN(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(H){var C=_.mY(this.hostElement).querySelector("#engagement-panel-scrim");H?C.addEventListener("tap",_.uA(this,this.onEngagementPanelScrimClick_)):C.removeEventListener("tap",_.uA(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(H){if(this.hostElement.contains(H)&&!this.scrollToAnimation_.isAnimating()){var C=H.offsetTop-24;H=H.offsetTop+H.offsetHeight+24;var S=this.getPageScrollingElement(),w=this.getScrollTop(),A=w+S.clientHeight-56;if(C<w+56)C-=56;else if(H>A)C=H-S.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,C),500)}},
onYtSignalActionScrollToComments:function(){var H=this.hostElement.querySelector("#comments");if(H&&!this.scrollToAnimation_.isAnimating()){H=H.offsetTop-56-24;if(_.E("kevlar_comment_teaser_scroll_to_midpoint")&&(H-=_.lR().height/3,H<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,H),500)}},
onYtEngagementPanelVisibleChanged:function(H,C,S){this.active&&this.trackEngagementPanelVisibility&&!_.APD.includes(S)&&(C==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(S),C!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&C!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(S),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(H){return H?"":"watch-active-metadata"},
computeNewMetadataClass:function(H){return H?"watch-active-metadata":""},
computeFullBleedPlayer:function(H,C){return H||C},
computeDefaultLayout:function(H){return!H},
computeDefaultTwoColumnLayout:function(H,C){return!H&&C},
computeWatchWhilePanelsActive:function(H,C){return H||C},
computeNoBorderOnChat:function(H){return _.E("web_watch_theater_chat_no_border")&&H},
computeLiveChatPresentAndExpanded:function(H,C){return H&&!C},
computePanelExpanded:function(H,C,S){return H||C||S},
onChangeMarkersVisibility:function(H){_.F1(this).getPlayerPromise().then(function(C){var S;(S=C.changeMarkerVisibility)==null||S.call(C,_.e(H,_.DG).isVisible||!1,_.e(H,_.DG).entityKeys||[],_.e(H,_.DG).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(H){this.liveChatCollapsed=H.detail;_.AG().dispatch(_.w5T(H.detail))},
provideRenderingData:function(H,C){switch(H){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=C;break;case "PRIMARY_INFO":_.E("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=C);this.videoPrimaryInfoRendererValue=C==null?void 0:C.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.E("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=C);this.videoSecondaryInfoRendererValue=C==null?void 0:C.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
C;break;case "CLARIFICATION":this.clarifyBoxValue=C;break;case "LIVE_CHAT":this.conversationBar=C;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=C;break;case "PLAYLIST":this.externalPlaylistData_=C!=null?C:{};break;case "MERCH_SHELF":this.merchShelfValue=C==null?void 0:C.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=C;break;case "OFFER_MODULE":this.offerModule=C;break;case "LIMITED_STATE":this.limitedStateValue=C;break;case "DONATION_SHELF":this.donation=C;break;
case "ALERTS":this.alertsValue=C;break;case "COMMENTS":this.comments=C;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=C;break;case "ENGAGEMENT_PANELS":this.engagementPanels=C;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=C;break;case "RICH_GRID_RENDERER":this.richGridRendererData=C;break;case "EXPANDABLE_METADATA":this.expandableMetadata=C;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=C}},
toggleCinematicsActive:function(H){this.cinematicsActive=H},
isMiniplayerActive:function(){return _.JA().resolve(_.Df).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(H){return hrD.map(function(C){return H.find(function(S){var w;return(S==null?void 0:(w=S.engagementPanelSectionListRenderer)==null?void 0:w.targetId)===C})}).filter(function(C){return C!==void 0})},
getNonLearningJourneyEngagementPanels:function(H){return H.filter(function(C){var S;return!hrD.includes((C==null?void 0:(S=C.engagementPanelSectionListRenderer)==null?void 0:S.targetId)||"")})}}];var nfB;var xO=function(){var H=_.X.apply(this,arguments)||this;H.flexy=!0;H.learningJourney=!0;H.viewTransitionEnabled=_.E("enable_player_resize_transition");H.smallerChatMinHeight=_.E("live_chat_smaller_min_height");H.cinematicTheaterMode=_.E("web_cinematic_theater_mode");H.transparentTheaterMode=_.E("web_transparent_theater_mode");H.cinematicFullscreen=_.E("web_cinematic_fullscreen");H.cinematicFullscreenV2=_.E("web_cinematic_fullscreen_v2");H.isDarkTheme=document.documentElement.hasAttribute("dark");
H.theaterLargerPlayer=_.E("web_watch_theater_larger_player");H.defaultCollapsePlaylist=_.E("web_watch_default_collapse_playlist");H.enableCanvasLayout=_.E("web_enable_canvas_on_learning_journey");return H};
_.G(xO,_.X);_.F=xO.prototype;_.F.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.F.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.F.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.F.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.F.ready=function(){var H=this,C=function(){H.onColumnScroll()};
this.primary.addEventListener("scroll",C);this.secondary.addEventListener("scroll",C)};
_.F.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.F.updateIsTwoColumnsFromBinding=function(H){_.E("web_watch_update_narrow_width_killswitch")||_.AG().dispatch(_.Gvh(!H.detail.value));this.ytdWatchBehavior.isTwoColumns_=H.detail.value};
_.F.updateFlexySmallWindowFromBinding=function(H){this.ytdWatchBehavior.flexySmallWindow_=H.detail.value};
_.F.updateFlexyLargeWindowFromBinding=function(H){this.ytdWatchBehavior.flexyLargeWindow_=H.detail.value};
_.F.updateWatchWhileWindowSizeSufficientFromBinding=function(H){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=H.detail.value};
_.F.updateWatchNextCanShowMoreFromBinding=function(H){this.ytdWatchBehavior.watchNextCanShowMore=H.detail.value};
_.F.updateShownItemsFromBinding=function(H){H.detail.path?this.set(H.detail.path,H.detail.value):this.ytdWatchBehavior.watchNextShownItems=H.detail.value};
_.F.getElement=function(H){switch(H){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23218_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23218_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.JJ.Object.defineProperties(xO.prototype,{showBrowseResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.browseData&&!this.playerData&&this.enableCanvasLayout}},
showWatchResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.playerData||!this.enableCanvasLayout}},
cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.data)==null||!H.pageVisualEffects)return!1;for(var C=0;C<this.data.pageVisualEffects.length;C++)if(H=_.e(this.data.pageVisualEffects[C],_.Cc))return C=void 0,(C=H.config)==null?void 0:C.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.learningJourneyEngagementPanels)==null?void 0:H.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var H,C=(H=this.learningJourneyEngagementPanels)==null?void 0:H.find(function(N){var b;return(N==null?void 0:(b=N.engagementPanelSectionListRenderer)==null?void 0:b.panelIdentifier)==="learning-journey-engagement-panel"});
if(C){var S,w,A,J,c,Y,M,m,W;if(H=(m=((M=(c=((J=C==null?void 0:(S=C.engagementPanelSectionListRenderer)==null?void 0:(w=S.content)==null?void 0:(A=w.sectionListRenderer)==null?void 0:A.contents)!=null?J:[])[0])==null?void 0:(Y=c.itemSectionRenderer)==null?void 0:Y.contents)!=null?M:[])[0])==null?void 0:(W=m.accordionViewModel)==null?void 0:W.onTitleTap){var y=_.L7(H);if(y)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.eU.instance.resolveCommand(y)}}}}}}});
_.JJ.Object.defineProperties(xO,{template:{configurable:!0,enumerable:!0,get:function(){if(nfB===void 0){var H=document.createElement("template");_.f(H,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="watch-content" hidden="[[!showWatchResponse]]" class="style-scope ytd-watch-learning-journey">\n        <div id="player" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n            <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n              <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n                <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n                </ytd-player>\n              </div>\n            </div>\n            <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n              <yt-button-shape data="[[backButtonData]]" hidden$="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n            </yt-button-shape></div>\n          </div>\n          <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n          </yt-playability-error-supported-renderers>\n        </div>\n        <div id="below" class="style-scope ytd-watch-learning-journey">\n          <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n          </ytd-watch-metadata>\n          <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n            <div id="info" class="style-scope ytd-watch-learning-journey">\n              <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n            <div id="meta" class="style-scope ytd-watch-learning-journey">\n              <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n          </div>\n          <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n          \n          <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n            <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-comments>\n        </div>\n      </div>\n      <div id="browse-content" hidden="[[!showBrowseResponse]]" class="style-scope ytd-watch-learning-journey">\n        <ytd-two-column-browse-results-renderer id="ytd-plj-browse" data="[[browseData.contents.twoColumnBrowseResultsRenderer]]" class="style-scope ytd-watch-learning-journey"></ytd-two-column-browse-results-renderer>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);nfB=H}H=nfB;return H}}});
xO.prototype.updateMiniplayerIsActiveValue=xO.prototype.updateMiniplayerIsActiveValue;xO.prototype.updateScrollTopValue=xO.prototype.updateScrollTopValue;xO.prototype.updateFullscreenValue=xO.prototype.updateFullscreenValue;xO.prototype.updateTheaterValue=xO.prototype.updateTheaterValue;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],xO.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],xO.prototype,"ytComponentBehavior",void 0);
_.D([_.v(kqB.YtdLearningJourneyWatchBehavior),_.K("design:type",Object)],xO.prototype,"ytdWatchBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],xO.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],xO.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],xO.prototype,"playerData",void 0);_.D([_.V(),_.K("design:type",Object)],xO.prototype,"browseData",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],xO.prototype,"flexy",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],xO.prototype,"learningJourney",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],xO.prototype,"viewTransitionEnabled",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],xO.prototype,"smallerChatMinHeight",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],xO.prototype,"cinematicTheaterMode",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],xO.prototype,"transparentTheaterMode",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],xO.prototype,"cinematicFullscreen",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],xO.prototype,"cinematicFullscreenV2",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],xO.prototype,"isDarkTheme",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],xO.prototype,"theaterLargerPlayer",void 0);_.D([_.V(),_.K("design:type",Object)],xO.prototype,"defaultCollapsePlaylist",void 0);_.D([_.V(),_.K("design:type",Object)],xO.prototype,"enableCanvasLayout",void 0);_.D([_.V({reflectToAttribute:!0}),_.l("playerData","browseData","enableCanvasLayout"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],xO.prototype,"showBrowseResponse",null);
_.D([_.V({reflectToAttribute:!0}),_.l("playerData","enableCanvasLayout"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],xO.prototype,"showWatchResponse",null);_.D([_.V({selector:_.Dl}),_.K("design:type",Object)],xO.prototype,"theaterValue",void 0);_.D([_.V({selector:_.Ku}),_.K("design:type",Object)],xO.prototype,"fullscreenValue",void 0);_.D([_.V({selector:_.kX}),_.K("design:type",Object)],xO.prototype,"scrollTopValue",void 0);
_.D([_.V({selector:_.Dy}),_.K("design:type",Object)],xO.prototype,"miniplayerIsActiveValue",void 0);_.D([_.lA("#ytd-plj-player"),_.K("design:type",HTMLElement)],xO.prototype,"ytdPlayer",void 0);_.D([_.lA("#playlist"),_.K("design:type",HTMLElement)],xO.prototype,"JSC$23218_ytdPlaylistPanelRenderer",void 0);_.D([_.DS("ytd-comments"),_.K("design:type",HTMLElement)],xO.prototype,"ytdComments",void 0);_.D([_.lA("#primary"),_.K("design:type",HTMLElement)],xO.prototype,"primary",void 0);
_.D([_.lA("#secondary"),_.K("design:type",HTMLElement)],xO.prototype,"secondary",void 0);_.D([_.lA("#player-container"),_.K("design:type",HTMLElement)],xO.prototype,"playerContainer",void 0);_.D([_.lA("#cinematics"),_.K("design:type",HTMLElement)],xO.prototype,"JSC$23218_cinematics",void 0);_.D([_.fx("theaterValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xO.prototype,"updateTheaterValue",null);
_.D([_.fx("fullscreenValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xO.prototype,"updateFullscreenValue",null);_.D([_.fx("scrollTopValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xO.prototype,"updateScrollTopValue",null);_.D([_.fx("miniplayerIsActiveValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xO.prototype,"updateMiniplayerIsActiveValue",null);
_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],xO.prototype,"cinematicLightTheme",null);_.D([_.V({reflectToAttribute:!0}),_.l("learningJourneyEngagementPanels"),_.K("design:type",Object),_.K("design:paramtypes",[])],xO.prototype,"hasLearningJourneyPanels",null);_.D([_.l("learningJourneyEngagementPanels"),_.K("design:type",Object),_.K("design:paramtypes",[])],xO.prototype,"backButtonData",null);_.D([_.h({is:"ytd-watch-learning-journey"})],xO);_.n$.registerService(_.GCE,xO);
_.n6();
}catch(e){_._DumpException(e)}
try{
_.hk("Tm0L3c");
var vf9;var lVt;var VaB=function(){return _.X.apply(this,arguments)||this};
_.G(VaB,_.X);_.D([_.h({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],VaB);
_.B(VaB,"ytd-ghost-comments-renderer",function(){if(lVt===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);lVt=H}H=lVt;return H},{mode:1});var ofT;var OmD=function(){return _.X.apply(this,arguments)||this};
_.G(OmD,_.X);_.D([_.h({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],OmD);
_.B(OmD,"ytd-ghost-watch-metadata-renderer",function(){if(ofT===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);ofT=H}H=ofT;return H},{mode:1});var af=function(){var H=_.X.apply(this,arguments)||this;H.ghostGridRenderer={rows:6};H.smallerChatMinHeight=_.E("live_chat_smaller_min_height");H.cinematicTheaterMode=_.E("web_cinematic_theater_mode");H.transparentTheaterMode=_.E("web_transparent_theater_mode");H.darkerPanels=_.E("web_watch_darker_panels");H.cinematicFullscreen=_.E("web_cinematic_fullscreen");H.cinematicFullscreenV2=_.E("web_cinematic_fullscreen_v2");H.isDarkTheme=document.documentElement.hasAttribute("dark");return H};
_.G(af,_.X);_.F=af.prototype;_.F.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.F.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.F.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.F.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.F.ready=function(){var H=this,C=function(){H.onColumnScroll()};
this.primary.addEventListener("scroll",C);this.secondary.addEventListener("scroll",C)};
_.F.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.F.updateIsTwoColumnsFromBinding=function(H){this.ytdWatchBehavior.isTwoColumns_=H.detail.value};
_.F.updateFlexySmallWindowFromBinding=function(H){this.ytdWatchBehavior.flexySmallWindow_=H.detail.value};
_.F.updateFlexyLargeWindowFromBinding=function(H){this.ytdWatchBehavior.flexyLargeWindow_=H.detail.value};
_.F.updateWatchWhileWindowSizeSufficientFromBinding=function(H){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=H.detail.value};
_.F.updateWatchNextCanShowMoreFromBinding=function(H){this.ytdWatchBehavior.watchNextCanShowMore=H.detail.value};
_.F.updateShownItemsFromBinding=function(H){_.E("swatcheroo_direct_use_rich_grid")||(H.detail.path?this.set(H.detail.path,H.detail.value):this.ytdWatchBehavior.watchNextShownItems=H.detail.value)};
_.F.getElement=function(H){switch(H){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23206_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23206_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.JJ.Object.defineProperties(af.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.data)==null||!H.pageVisualEffects)return!1;for(var C=0;C<this.data.pageVisualEffects.length;C++)if(H=_.e(this.data.pageVisualEffects[C],_.Cc))return C=void 0,(C=H.config)==null?void 0:C.enableInLightTheme;return!1}}});
af.prototype.updateMiniplayerIsActiveValue=af.prototype.updateMiniplayerIsActiveValue;af.prototype.updateScrollTopValue=af.prototype.updateScrollTopValue;af.prototype.updateFullscreenValue=af.prototype.updateFullscreenValue;af.prototype.updateTheaterValue=af.prototype.updateTheaterValue;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],af.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],af.prototype,"ytComponentBehavior",void 0);
_.D([_.v(_.GqB.YtdWatchBehavior),_.K("design:type",Object)],af.prototype,"ytdWatchBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],af.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],af.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],af.prototype,"ghostGridRenderer",void 0);_.D([_.V(),_.K("design:type",Object)],af.prototype,"playerData",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],af.prototype,"smallerChatMinHeight",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],af.prototype,"cinematicTheaterMode",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],af.prototype,"transparentTheaterMode",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],af.prototype,"darkerPanels",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],af.prototype,"cinematicFullscreen",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],af.prototype,"cinematicFullscreenV2",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],af.prototype,"isDarkTheme",void 0);_.D([_.V({selector:_.Dl}),_.K("design:type",Object)],af.prototype,"theaterValue",void 0);_.D([_.V({selector:_.Ku}),_.K("design:type",Object)],af.prototype,"fullscreenValue",void 0);_.D([_.V({selector:_.kX}),_.K("design:type",Object)],af.prototype,"scrollTopValue",void 0);
_.D([_.V({selector:_.Dy}),_.K("design:type",Object)],af.prototype,"miniplayerIsActiveValue",void 0);_.D([_.lA("#ytd-player"),_.K("design:type",HTMLElement)],af.prototype,"ytdPlayer",void 0);_.D([_.lA("#playlist"),_.K("design:type",HTMLElement)],af.prototype,"JSC$23206_ytdPlaylistPanelRenderer",void 0);_.D([_.lA("#ytd-comments"),_.K("design:type",HTMLElement)],af.prototype,"ytdComments",void 0);_.D([_.lA("#primary"),_.K("design:type",HTMLElement)],af.prototype,"primary",void 0);
_.D([_.lA("#secondary"),_.K("design:type",HTMLElement)],af.prototype,"secondary",void 0);_.D([_.lA("#player-container"),_.K("design:type",HTMLElement)],af.prototype,"playerContainer",void 0);_.D([_.lA("#cinematics"),_.K("design:type",HTMLElement)],af.prototype,"JSC$23206_cinematics",void 0);_.D([_.fx("theaterValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],af.prototype,"updateTheaterValue",null);
_.D([_.fx("fullscreenValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],af.prototype,"updateFullscreenValue",null);_.D([_.fx("scrollTopValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],af.prototype,"updateScrollTopValue",null);_.D([_.fx("miniplayerIsActiveValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],af.prototype,"updateMiniplayerIsActiveValue",null);
_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],af.prototype,"cinematicLightTheme",null);
_.B(af,"ytd-watch-grid",function(){if(vf9===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);vf9=H}H=vf9;return H},{mode:2});_.n$.registerService(_.ul0,af);
_.n6();
}catch(e){_._DumpException(e)}
try{
_.hk("CF909");
var fVB;var If=function(){var H=_.X.apply(this,arguments)||this;H.viewTransitionEnabled=_.E("enable_player_resize_transition");H.smallerChatMinHeight=_.E("live_chat_smaller_min_height");H.cinematicTheaterMode=_.E("web_cinematic_theater_mode");H.transparentTheaterMode=_.E("web_transparent_theater_mode");H.cinematicFullscreen=_.E("web_cinematic_fullscreen");H.isDarkTheme=document.documentElement.hasAttribute("dark");H.defaultCollapsePlaylist=_.E("web_watch_default_collapse_playlist");H.retroModeReduxValue=
!1;H.persistentPanelVisibleValue=!1;return H};
_.G(If,_.X);_.F=If.prototype;_.F.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.F.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.F.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.F.updateRetroModeReduxValue=function(){_.E("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.F.updatePersistentPanelVisibleValue=function(){_.E("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.F.ready=function(){var H=this,C=function(){H.onColumnScroll()};
this.primary.addEventListener("scroll",C);this.secondary.addEventListener("scroll",C)};
_.F.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.F.updateIsTwoColumnsFromBinding=function(H){_.E("web_watch_update_narrow_width_killswitch")||_.AG().dispatch(_.Gvh(!H.detail.value));this.ytdWatchBehavior.isTwoColumns_=H.detail.value};
_.F.updateFlexySmallWindowFromBinding=function(H){this.ytdWatchBehavior.flexySmallWindow_=H.detail.value};
_.F.updateFlexyLargeWindowFromBinding=function(H){this.ytdWatchBehavior.flexyLargeWindow_=H.detail.value};
_.F.updateWatchWhileWindowSizeSufficientFromBinding=function(H){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=H.detail.value};
_.F.updateWatchNextCanShowMoreFromBinding=function(H){this.ytdWatchBehavior.watchNextCanShowMore=H.detail.value};
_.F.updateShownItemsFromBinding=function(H){H.detail.path?this.set(H.detail.path,H.detail.value):this.ytdWatchBehavior.watchNextShownItems=H.detail.value};
_.F.getElement=function(H){switch(H){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23201_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23201_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary;case "PERSISTENT_PANEL_CONTAINER":return this.persistentPanelContainer}};
_.JJ.Object.defineProperties(If.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.data)==null||!H.pageVisualEffects)return!1;for(var C=0;C<this.data.pageVisualEffects.length;C++)if(H=_.e(this.data.pageVisualEffects[C],_.Cc))return C=void 0,(C=H.config)==null?void 0:C.enableInLightTheme;return!1}}});
_.JJ.Object.defineProperties(If,{template:{configurable:!0,enumerable:!0,get:function(){if(fVB===void 0){var H=document.createElement("template");_.f(H,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="shopping-timely-shelf" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n      <div id="persistent-panel-container" class="style-scope ytd-watch-flexy"></div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);fVB=H}H=fVB;return H}}});
If.prototype.updatePersistentPanelVisibleValue=If.prototype.updatePersistentPanelVisibleValue;If.prototype.updateRetroModeReduxValue=If.prototype.updateRetroModeReduxValue;If.prototype.updateScrollTopValue=If.prototype.updateScrollTopValue;If.prototype.updateFullscreenValue=If.prototype.updateFullscreenValue;If.prototype.updateTheaterValue=If.prototype.updateTheaterValue;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],If.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],If.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.GqB.YtdWatchBehavior),_.K("design:type",Object)],If.prototype,"ytdWatchBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],If.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],If.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],If.prototype,"playerData",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],If.prototype,"viewTransitionEnabled",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],If.prototype,"smallerChatMinHeight",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],If.prototype,"cinematicTheaterMode",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],If.prototype,"transparentTheaterMode",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],If.prototype,"cinematicFullscreen",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],If.prototype,"isDarkTheme",void 0);_.D([_.V(),_.K("design:type",Object)],If.prototype,"defaultCollapsePlaylist",void 0);_.D([_.V({selector:_.Dl}),_.K("design:type",Object)],If.prototype,"theaterValue",void 0);_.D([_.V({selector:_.Ku}),_.K("design:type",Object)],If.prototype,"fullscreenValue",void 0);
_.D([_.V({selector:_.kX}),_.K("design:type",Object)],If.prototype,"scrollTopValue",void 0);_.D([_.V({selector:_.Dy}),_.K("design:type",Object)],If.prototype,"miniplayerIsActive",void 0);_.D([_.V({selector:function(H){return H.watch.isWatchRetroMode}}),
_.K("design:type",Object)],If.prototype,"retroModeReduxValue",void 0);_.D([_.V({selector:_.R$.persistentPanelVisibleSelector}),_.K("design:type",Object)],If.prototype,"persistentPanelVisibleValue",void 0);_.D([_.DS("ytd-player"),_.K("design:type",HTMLElement)],If.prototype,"ytdPlayer",void 0);_.D([_.lA("#playlist"),_.K("design:type",HTMLElement)],If.prototype,"JSC$23201_ytdPlaylistPanelRenderer",void 0);_.D([_.DS("ytd-comments"),_.K("design:type",HTMLElement)],If.prototype,"ytdComments",void 0);
_.D([_.lA("#primary"),_.K("design:type",HTMLElement)],If.prototype,"primary",void 0);_.D([_.lA("#secondary"),_.K("design:type",HTMLElement)],If.prototype,"secondary",void 0);_.D([_.lA("#player-container"),_.K("design:type",HTMLElement)],If.prototype,"playerContainer",void 0);_.D([_.lA("#below"),_.K("design:type",HTMLElement)],If.prototype,"below",void 0);_.D([_.lA("#cinematics"),_.K("design:type",HTMLElement)],If.prototype,"JSC$23201_cinematics",void 0);
_.D([_.lA("#persistent-panel-container"),_.K("design:type",HTMLElement)],If.prototype,"persistentPanelContainer",void 0);_.D([_.fx("theaterValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],If.prototype,"updateTheaterValue",null);_.D([_.fx("fullscreenValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],If.prototype,"updateFullscreenValue",null);
_.D([_.fx("scrollTopValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],If.prototype,"updateScrollTopValue",null);_.D([_.fx("retroModeReduxValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],If.prototype,"updateRetroModeReduxValue",null);_.D([_.fx("persistentPanelVisibleValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],If.prototype,"updatePersistentPanelVisibleValue",null);
_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],If.prototype,"cinematicLightTheme",null);_.D([_.h({is:"ytd-watch-flexy"})],If);_.n$.registerService(_.eS7,If);
_.n6();
}catch(e){_._DumpException(e)}
try{
_.hk("nmfa2d");
var k8r;var rb=function(){var H=_.X.apply(this,arguments)||this;H.hidden=!1;H.errorScreen=null;H.playlistData={};return H};
_.G(rb,_.X);_.F=rb.prototype;_.F.getPlayer=function(){return this.ytdPlayer};
_.F.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:_.eX(["aa","eocs"])}}};
_.F.onActiveChanged=function(){_.AG().dispatch(_.WvP(this.ytPageBehavior.active))};
_.F.playerDataChanged=function(){var H;(H=this.watchController)==null||H.setPlayerResponse(this.playerData)};
_.F.dataChanged=function(){var H;(H=this.watchController)==null||H.setWatchNextResponse(this.data)};
_.F.sizeChanged=function(){var H,C;(C=(H=this.metadata).resize)==null||C.call(H)};
_.F.attached=function(){this.watchController=new _.hF(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.F.detached=function(){_.Ak(this.watchController);this.watchController=void 0};
_.F.getPlayerContainer=function(){return this.playerContainer};
_.F.getElement=function(H){switch(H){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.F.provideRenderingData=function(H,C){switch(H){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=C;break;case "ERROR_SCREEN":this.errorScreen=C!=null?C:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=C;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=C;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=C;break;case "RICH_METADATA":this.richMetadataRowContainer=C;break;case "CLARIFICATION":this.clarificationData=C;break;case "PLAYLIST":this.playlistData=
C!=null?C:{};break;case "MERCH_SHELF":this.merchShelf=C;break;case "TICKET_SHELF":this.ticketShelf=C;break;case "LIMITED_STATE":this.limitedState=C;break;case "DONATION_SHELF":this.donationShelf=C;break;case "ALERTS":this.alerts=C}};
_.JJ.Object.defineProperties(rb.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var H,C,S;return!this.hidden&&!!((H=this.data)==null?0:(C=H.contents)==null?0:(S=C.twoColumnWatchNextResults)==null?0:S.conversationBar)}}});
rb.prototype.sizeChanged=rb.prototype.sizeChanged;rb.prototype.dataChanged=rb.prototype.dataChanged;rb.prototype.playerDataChanged=rb.prototype.playerDataChanged;rb.prototype.onActiveChanged=rb.prototype.onActiveChanged;_.D([_.v(_.j6.YtPageBehavior),_.K("design:type",Object)],rb.prototype,"ytPageBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],rb.prototype,"ytComponentBehavior",void 0);
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],rb.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],rb.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],rb.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],rb.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],rb.prototype,"playerData",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],rb.prototype,"hidden",void 0);_.D([_.lA("#ytd-player"),_.K("design:type",HTMLElement)],rb.prototype,"ytdPlayer",void 0);_.D([_.lA("#player-container"),_.K("design:type",HTMLElement)],rb.prototype,"playerContainer",void 0);_.D([_.lA("#metadata"),_.K("design:type",Object)],rb.prototype,"metadata",void 0);_.D([_.lA("#playlist"),_.K("design:type",HTMLElement)],rb.prototype,"playlistPanel",void 0);
_.D([_.V({selector:_.f4D,reflectToAttribute:!0}),_.K("design:type",Object)],rb.prototype,"fixie",void 0);_.D([_.V({selector:_.G7h,reflectToAttribute:!0}),_.K("design:type",Object)],rb.prototype,"singleColumn",void 0);_.D([_.V({selector:function(H){return _.Dl(H)&&!_.Ku(H)},
reflectToAttribute:!0}),_.K("design:type",Object)],rb.prototype,"theater",void 0);_.D([_.V({selector:_.Ku,reflectToAttribute:!0}),_.K("design:type",Object)],rb.prototype,"fullscreen",void 0);_.D([_.V({selector:_.qsh}),_.K("design:type",Object)],rb.prototype,"windowSize",void 0);_.D([_.V(),_.K("design:type",Object)],rb.prototype,"singleColumnContents",void 0);_.D([_.V(),_.K("design:type",Object)],rb.prototype,"errorScreen",void 0);_.D([_.V(),_.K("design:type",Object)],rb.prototype,"playlistData",void 0);
_.D([_.V(),_.K("design:type",Object)],rb.prototype,"videoPrimaryInfoRenderer",void 0);_.D([_.V(),_.K("design:type",Object)],rb.prototype,"videoSecondaryInfoRenderer",void 0);_.D([_.V(),_.K("design:type",Object)],rb.prototype,"richMetadataRowContainer",void 0);_.D([_.V(),_.K("design:type",Object)],rb.prototype,"clarificationData",void 0);_.D([_.V(),_.K("design:type",Object)],rb.prototype,"commentsEntryPointHeaderRenderer",void 0);_.D([_.V(),_.K("design:type",Object)],rb.prototype,"ticketShelf",void 0);
_.D([_.V(),_.K("design:type",Object)],rb.prototype,"merchShelf",void 0);_.D([_.V(),_.K("design:type",Object)],rb.prototype,"donationShelf",void 0);_.D([_.V(),_.K("design:type",Object)],rb.prototype,"limitedState",void 0);_.D([_.V(),_.K("design:type",Object)],rb.prototype,"alerts",void 0);_.D([_.l("playlistData"),_.K("design:type",Object),_.K("design:paramtypes",[])],rb.prototype,"hasPlaylistData",null);
_.D([_.l("data","hidden"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],rb.prototype,"hasChat",null);_.D([_.fx("active"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rb.prototype,"onActiveChanged",null);_.D([_.fx("playerData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rb.prototype,"playerDataChanged",null);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rb.prototype,"dataChanged",null);_.D([_.fx("windowSize","singleColumn"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rb.prototype,"sizeChanged",null);
_.B(rb,"ytd-watch-fixie",function(){if(k8r===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);k8r=H}H=k8r;return H},{mode:1});_.n$.registerService(_.E2Z,rb);
_.n6();
}catch(e){_._DumpException(e)}
try{
_.hk("xwEKAe");
var zi2=function(H){return _.jr(H)?H.getAttribute("jsname")==="coFSxe":!1},MoB=function(H,C){C.id||(C.id="ow"+_.I0(C));
H.setAttribute("jsowner",C.id);H.__owner=C;var S=_.tb(C,zi2);S&&(_.gIM.has(S)||_.gIM.set(S,[]),_.gIM.get(S).push(H));(S=_.LvW.get(C))||_.LvW.set(C,S=[]);S.includes(H)||S.push(H);C.setAttribute("__IS_OWNER",!0)},q_D=function(){var H=_.OVi(1);
H=_.w6(H,_.p9i);if(!(_.ouE(H)||H[_.YXp]&&!H.__hasBeenSet))return H.value},TiD=function(H){var C=_.VN();
if(C.getFlag(202))C=C.getFlag(201);else{var S;C=(H==null?void 0:(S=H.config)==null?void 0:S.settingOnByDefault)!==void 0?H.config.settingOnByDefault:!_.E("web_shorts_cinematics_disabled_by_default")}return C},m9B=function(H){var C=_.VN();
_.ok(0,201,H);_.ok(0,202,!0);C.save()},WjV=function(H){return(H=_.tzU(H))?_.gNu(H):0},y99=function(H){return H.shorts.isSmallScreenSqueezeback},NiT=function(H){return H.shorts.isPlaybackStarted},ei9=function(H){var C=_.OVi(2),S=new Set;
_.PN(function(){return void S.forEach(function(w){return void w()})});
return function(w){var A=_.jL(C);try{var J=brB(Etv(H),w);S.add(J);return function(){J();S.delete(J)}}finally{_.jL(A)}}},uRP=function(H){var C=H.children;
var S=H.root;_.Ph(function(){var w=ei9(S)(C);_.PN(w)});
return document.createTextNode("")},brB=function(H,C){var S=GK9(H);
(H=q_D())&&MoB(S,H);_.ml.setUp();C=_.Z(_.PKE(C,!0));H=C.next().value;var w=C.next().value;C=_.Z(H);for(H=C.next();!H.done;H=C.next())S.appendChild(H.value);_.ml.log(S);_.ml.tearDown();return function(){w();S.remove()}},Etv=function(H){if(typeof H==="string")return H=document.querySelector(H),_.ZLi(H),H;
if(_.ch(H)&&H.nodeType===Node.ELEMENT_NODE)return H;if(!H.__value&&!H.__optional){var C=_.MRU.USE_ELEMENT_NOT_ASSIGNED(H.__expectedTagName);H.__hasErrored=!0;throw C;}return H.value},GK9=function(H){var C=document.createElementNS(H.namespaceURI,H.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return H.appendChild(C)},fqt=function(H,C,S,w){H=C-H;
S=w-S;return Math.sqrt(H*H+S*S)},vt2=function(H,C){H&&_.JA().resolve(_.ZQ).resolveCommand(H,{forceClickLogging:!0,
form:{element:C}})},lq9=function(H,C,S,w){H=C-H;
S=w-S;return Math.sqrt(H*H+S*S)},VoT=function(H,C){H&&_.JA().resolve(_.ZQ).resolveCommand(H,{forceClickLogging:!0,
form:{element:C}})},ot9=function(){return _.JA().resolve(_.Ri).dismissedIndices},OrB=function(H,C){var S,w,A,J,c,Y,M,m,W;
return _.z(function(y){if(y.nextAddress==1){S=_.JA().resolve(_.eir);J=(w=S)==null?void 0:(A=w.reelWatchEndpointMap)==null?void 0:A.reelWatchSequence;Y=(c=H.innertubeTransportService)!=null?c:_.JA().resolve(_.Lf);if(!J)return y.jumpTo(2);M=J();return(m=M.JSC$13127_getRequest(C,{}))?y.yield(_.Mb(Y,m.innerTubeRequest,m.input,C.clickTrackingParams,m.config),4):y.jumpTo(2)}return y.nextAddress!=2?(W=y.yieldResult,y.return(W)):y.return(void 0)})},X3T=function(H){return _.Md({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:H}})},QOB=function(H){return _.Md({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:H}})},d99=function(H){return _.Md({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:H}})};var E3=function(H,C){if(H instanceof E3)this.array_=H.array_;else{var S;if(S=_.Dw(H))a:{for(var w=S=0;w<H.length;w++){if(!_.Dw(H[w])||S>0&&H[w].length!=S){S=!1;break a}for(var A=0;A<H[w].length;A++)if(typeof H[w][A]!=="number"){S=!1;break a}S==0&&(S=H[w].length)}S=S!=0}if(S)this.array_=_.BZ(H);else if(H instanceof _.vj)this.array_=Pp4(H.height,H.width);else if(typeof H==="number"&&typeof C==="number"&&H>0&&C>0)this.array_=Pp4(H,C);else throw Error("Jo");}this.size_=new _.vj(this.array_[0].length,
this.array_.length)},$9v=function(H,C,S){for(var w=0;w<H.getSize().height;w++)for(var A=0;A<H.getSize().width;A++)C.call(S,H.array_[w][A],w,A,H)},p3B=function(H,C){var S=new E3(H.getSize());
$9v(H,function(w,A,J){S.array_[A][J]=C.call(void 0,w,A,J,H)});
return S},Pp4=function(H,C){for(var S=[],w=0;w<H;w++){S[w]=[];
for(var A=0;A<C;A++)S[w][A]=0}return S};
E3.prototype.add=function(H){if(!_.hW7(this.size_,H.getSize()))throw Error("Ko");return p3B(this,function(C,S,w){return C+H.array_[S][w]})};
E3.prototype.equals=function(H,C){if(this.size_.width!=H.size_.width||this.size_.height!=H.size_.height)return!1;C=C||0;for(var S=0;S<this.size_.height;S++)for(var w=0;w<this.size_.width;w++)if(!_.kdh(this.array_[S][w],H.array_[S][w],C))return!1;return!0};
E3.prototype.getSize=function(){return this.size_};
var eF=function(H,C,S){return C>=0&&C<H.size_.height&&S>=0&&S<H.size_.width?H.array_[C][S]:null};
E3.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var kKB=function(H,C,S,w){if(!(C>=0&&C<H.size_.height&&S>=0&&S<H.size_.width))throw Error("Lo`"+C+"`"+S+"`"+H.size_.height+"`"+H.size_.width);H.array_[C][S]=w};
E3.prototype.multiply=function(H){if(H instanceof E3){if(this.size_.width!=H.getSize().height)throw Error("Mo");return hiP(this,H)}if(typeof H==="number")return ntD(this,H);throw Error("No");};
var hiP=function(H,C){var S=new E3(H.size_.height,C.getSize().width);$9v(S,function(w,A,J){for(var c=w=0;c<this.size_.width;c++)w+=eF(this,A,c)*eF(C,c,J);kKB(S,A,J,w)},H);
return S},ntD=function(H,C){return p3B(H,function(S){return S*C})};var r9T=new _.mi("inlineSurveyRenderer");var BiP=new _.mi("interstitialViewModel");var D9t=new _.mi("reelNavigateCommand");var Kjr=new _.mi("reelNonVideoContentDismissalCommand");var toV=new _.mi("showReelsCommentsOverlayCommand");var Ljh=new _.mi("shortsSuggestedActionViewModel");var gtv=new _.mi("videoInteractionPopUpRenderer");var U9T;var Rih;var Iqv;var uv=function(){var H=_.X.apply(this,arguments)||this;H.ctaVisualElement=null;H.currentCsn=null;return H};
_.G(uv,_.X);_.F=uv.prototype;_.F.onDataChanged=function(){this.maybeLogShows()};
_.F.computeButtonShape=function(){var H=this;if(this.data)return{buttonText:_.jt(this.data.text),state:"active",onTap:function(){H.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.F.maybeCreateCtaVe=function(){var H;if((H=this.data)!=null&&H.badgeInteractionLogging){var C;if(H=(C=this.data.badgeInteractionLogging)==null?void 0:C.trackingParams)this.ctaVisualElement=_.Qh(H)}};
_.F.maybeLogClicks=function(){this.currentCsn=_.Dg(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Sp(this.currentCsn,this.ctaVisualElement)};
_.F.maybeLogShows=function(){this.currentCsn=_.Dg(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.ia(this.currentCsn,[this.ctaVisualElement])};
_.F.onTap=function(){var H;if((H=this.data)!=null&&H.onClickCommand){var C;this.ytComponentBehavior.resolveCommand((C=this.data)==null?void 0:C.onClickCommand);this.maybeLogClicks()}};
uv.prototype.onDataChanged=uv.prototype.onDataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],uv.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],uv.prototype,"ytComponentBehavior",void 0);_.D([_.V({}),_.K("design:type",Object)],uv.prototype,"data",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],uv.prototype,"onDataChanged",null);
_.D([_.h({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],uv);
_.B(uv,"ytd-shopping-overlay-badge-renderer",function(){if(Iqv!==void 0)return Iqv;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Iqv=H},{mode:1});_.qs(_.YMp,"reel-sound-metadata-view-model",{props:{data:_.Yb,overlayDensity:_.Yb}});_.qs(_.car,"player-disclosure-view-model",{props:{data:_.GH,extractOverlay:_.GH}});_.qs(_.BJP,"pivot-button-view-model",{props:{data:_.Yb,className:_.Yb}});_.qs(_.D1P,"reel-action-bar-view-model",{props:{data:_.GH,buttonShapeOverrideables:_.GH}});_.qs(_.n(function(H){function C(){var FW,cZ,eZ,ND,bi=(cZ=_.e((FW=R())==null?void 0:FW.command,_.D6))==null?void 0:(eZ=cZ.item)==null?void 0:(ND=eZ.notificationTextRenderer)==null?void 0:ND.successResponseText;if(bi)_.q3(w.value,"yt-open-popup-action",[_.FG(bi),w.value]);else if(L())vt2(L(),u.value);else{var pU;vt2((pU=R())==null?void 0:pU.command,u.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var S=H.data;var w=_.sW("yt-player-overlay-video-interactions");H=_.Z(_.mB("0px",void 0,"O3ow6c"));var A=H.next().value,J=H.next().value;H=_.Z(_.mB("0px",void 0,"V0TSYd"));var c=H.next().value,Y=H.next().value;H=_.Z(_.mB(0,void 0,"ipRdDf"));var M=H.next().value,m=H.next().value;H=_.Z(_.mB(0,void 0,"ztYEKb"));var W=H.next().value,y=H.next().value,N=function(){var FW;if(((FW=_.br())==null?void 0:FW.getPlayerState())!==-1){w.value.style.display="inherit";var cZ;(cZ=_.br())==null||cZ.removeEventListener("onStateChange",
N)}b()},b=function(){var FW=document.querySelector("video");
if(FW){m(FW.getBoundingClientRect().width);y(FW.getBoundingClientRect().height);var cZ;J((FW==null?void 0:(cZ=FW.style)==null?void 0:cZ.left)||"0px");var eZ;Y((FW==null?void 0:(eZ=FW.style)==null?void 0:eZ.top)||"0px")}};
_.d6(function(){var FW,cZ,eZ;if(((FW=_.br())==null?void 0:FW.getPlayerState())===-1&&Math.round(((eZ=(cZ=_.br())==null?void 0:cZ.getVideoAspectRatio())!=null?eZ:0)*100)!==Math.round(M()/W()*100)){w.value.style.display="none";var ND,bi;y(M()/((bi=(ND=_.br())==null?void 0:ND.getVideoAspectRatio())!=null?bi:1))}},"ikzYW");
_.Ph(function(){var FW;(FW=_.br())==null||FW.addEventListener("onStateChange",N);window.addEventListener("resize",b);b();var cZ,eZ,ND;if((ND=(cZ=S())==null?void 0:(eZ=cZ.regions)==null?void 0:eZ[0])==null||!ND.transformationMatrix)throw Error("Ro");var bi;if((bi=S())==null?0:bi.trackingParams){var pU;_.lJ().graftServerVe((pU=S().trackingParams)!=null?pU:"")}_.PN(function(){var O$;(O$=_.br())==null||O$.removeEventListener("onStateChange",N);window.removeEventListener("resize",b)})});
var u=_.sW("svg"),O=_.Z(_.mB(!1,void 0,"Thzfnf"));H=O.next().value;var d=O.next().value,p=_.Z(_.mB(!1,void 0,"nsniPd"));O=p.next().value;var k=p.next().value,R=function(){var FW;return _.e((FW=S())==null?void 0:FW.popUp,gtv)},L=function(){var FW;
return(FW=S())==null?void 0:FW.command},t=function(){return _.e(L(),_.X1)!==void 0};
p=_.um(function(){C();return!1});
var g={},ii={};return _.q("yt-player-overlay-video-interactions",{el:w},_.q("svg",{"on:mouseover":_.um(function(){t()&&d(!0);k(!0);return!1}),
"on:mouseout":_.um(function(){d(!1);k(!1);return!1}),
"on:keydown":_.um(function(FW){FW.key==="Enter"&&C();return!1}),
"on:focus":_.um(function(){t()&&d(!0);return!1}),
"on:blur":_.um(function(){t()&&d(!1);return!1}),
el:u,tabindex:0,"aria-label":function(){var FW;return(FW=S())==null?void 0:FW.a11yString},
id:"player-overlay-video-interaction-svg",class:_.eJ("ytPlayerOverlayVideoInteractionsInteractionsSvg",(g.ytPlayerOverlayVideoInteractionsInteractionsSvgHover=H,g),(ii.ytPlayerOverlayVideoInteractionsInteractionsSvgHideOutline=O,ii)),role:"button",style:function(){var FW,cZ,eZ,ND=(eZ=(FW=S())==null?void 0:(cZ=FW.regions)==null?void 0:cZ[0].transformationMatrix)!=null?eZ:[];FW=M();cZ=W();eZ=[];for(var bi=0,pU=-1;bi<ND.length;bi++)bi%3===0&&(pU++,eZ[pU]=[]),eZ[pU].push(ND[bi]);ND=new E3(eZ);eZ=new E3([[0,
1,1,0],[0,0,1,1],[1,1,1,1]]);eZ=ND.multiply(eZ);ND=new E3([[0,0],[0,0],[0,0],[0,0]]);for(bi=0;bi<eZ.getSize().width;bi++){pU=eF(eZ,0,bi);var O$=eF(eZ,1,bi);if(pU===null||O$===null)throw Error("Qo`"+(bi+1).toString());kKB(ND,bi,0,pU*FW);kKB(ND,bi,1,O$*cZ)}FW=eF(ND,0,0);bi=eF(ND,1,0);cZ=eF(ND,0,1);pU=eF(ND,1,1);if(FW===null||bi===null||cZ===null||pU===null)throw Error("Oo");eZ=fqt(FW,bi,cZ,pU);O$=eF(ND,3,0);ND=eF(ND,3,1);if(O$===null||ND===null)throw Error("Po");ND=fqt(FW,O$,cZ,ND);pU=(Number((pU*-1).toFixed(2))-
Number((cZ*-1).toFixed(2)))/(Number(bi.toFixed(2))-Number(FW.toFixed(2)));O$=Math.atan(pU)*180/Math.PI;bi=pU===Number.POSITIVE_INFINITY?-90:pU===Number.NEGATIVE_INFINITY?90:Object.is(pU,-0)?180:pU===0?0:pU>0?O$*-1:FW<bi?O$*-1:Math.abs(O$)+180;return"left:calc("+FW+"px + "+A()+"); top:calc("+(cZ+"px + "+c()+"); width:")+(eZ+"px; height:")+(ND+"px; transform:rotate(")+(bi+"deg);")},
"on:click":p}))},"Fk"),"yt-player-overlay-video-interactions",{props:{data:_.GH}});_.qs(_.T6q,"yt-reel-metapanel-view-model",{props:{data:_.GH,overlayDensity:_.GH,extractOverlay:_.GH}});var aqD=_.n(function(H){var C=H.children;var S=H.region;H=_.Z(_.mB(void 0,void 0,"MsSyte"));var w=H.next().value,A=H.next().value;H=_.Z(_.mB("0px",void 0,"U9Yihd"));var J=H.next().value,c=H.next().value;H=_.Z(_.mB("0px",void 0,"UO1H6d"));var Y=H.next().value,M=H.next().value;H=_.Z(_.mB(0,void 0,"sMVTKb"));var m=H.next().value,W=H.next().value;H=_.Z(_.mB(0,void 0,"kZZV8b"));var y=H.next().value,N=H.next().value,b=function(){var R=w();if(R){var L;if(((L=_.br())==null?void 0:L.getPlayerState())!==-1){R.style.display=
"inherit";var t;(t=_.br())==null||t.removeEventListener("onStateChange",b)}O()}},u=function(){var R=document.querySelectorAll("video");
return Array.from(R).find(function(L){var t;return L==null?void 0:(t=L.style)==null?void 0:t.width})},O=function(){var R=u();
if(R){W(R.getBoundingClientRect().width);N(R.getBoundingClientRect().height);var L;c((R==null?void 0:(L=R.style)==null?void 0:L.left)||"0px");var t;M((R==null?void 0:(t=R.style)==null?void 0:t.top)||"0px")}};
_.d6(function(){var R=w();if(R){var L,t,g;if(((L=_.br())==null?void 0:L.getPlayerState())===-1&&Math.round(((g=(t=_.br())==null?void 0:t.getVideoAspectRatio())!=null?g:0)*100)!==Math.round(m()/y()*100)){R.style.display="none";var ii,FW;N(m()/((FW=(ii=_.br())==null?void 0:ii.getVideoAspectRatio())!=null?FW:1))}}},"jJLfwe");
var d=function(){O()},p;
_.Ph(function(){O();var R;if(!(S==null?0:(R=S())==null?0:R.transformationMatrix))throw Error("Ro");var L;(L=_.br())==null||L.addEventListener("onStateChange",b);if(window.ResizeObserver){if(R=u())p=new ResizeObserver(d),p.observe(R)}else window.addEventListener("resize",O);_.PN(function(){var t;(t=_.br())==null||t.removeEventListener("onStateChange",b);p?p.disconnect():window.removeEventListener("resize",O)})});
var k=function(){var R,L,t=(L=S==null?void 0:(R=S())==null?void 0:R.transformationMatrix)!=null?L:[];R=m();L=y();for(var g=[],ii=0,FW=-1;ii<t.length;ii++)ii%3===0&&(FW++,g[FW]=[]),g[FW].push(t[ii]);t=new E3(g);g=new E3([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);g=t.multiply(g);t=new E3([[0,0],[0,0],[0,0],[0,0]]);for(ii=0;ii<g.getSize().width;ii++){FW=eF(g,0,ii);var cZ=eF(g,1,ii);if(FW===null||cZ===null)throw Error("Qo`"+(ii+1).toString());kKB(t,ii,0,FW*R);kKB(t,ii,1,cZ*L)}R=eF(t,0,0);ii=eF(t,1,0);L=eF(t,0,
1);FW=eF(t,1,1);if(R===null||ii===null||L===null||FW===null)throw Error("Oo");g=lq9(R,ii,L,FW);cZ=eF(t,3,0);t=eF(t,3,1);if(cZ===null||t===null)throw Error("Po");t=lq9(R,cZ,L,t);FW=(Number((FW*-1).toFixed(2))-Number((L*-1).toFixed(2)))/(Number(ii.toFixed(2))-Number(R.toFixed(2)));cZ=Math.atan(FW)*180/Math.PI;ii=FW===Number.POSITIVE_INFINITY?-90:FW===Number.NEGATIVE_INFINITY?90:Object.is(FW,-0)?180:FW===0?0:FW>0?cZ*-1:R<ii?cZ*-1:Math.abs(cZ)+180;return"left:calc("+R+"px + "+J()+"); top:calc("+(L+"px + "+
Y()+"); width:")+(g+"px; height:")+(t+"px; transform:rotate(")+(ii+"deg);")};
return _.q(uRP,{root:"#sticker-layer"},function(){return _.q("yt-overlay-sticker",{el:_.Zl(A),style:k,class:"ytOverlayStickerHost"},C)})},"Gk");var x9v=_.n(function(H){function C(){var b,u,O,d,p=(u=_.e((b=M())==null?void 0:b.command,_.D6))==null?void 0:(O=u.item)==null?void 0:(d=O.notificationTextRenderer)==null?void 0:d.successResponseText;if(p)_.q3(w.value,"yt-open-popup-action",[_.FG(p),w.value]);else if(m())VoT(m(),w.value);else{var k;VoT((k=M())==null?void 0:k.command,w.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var S=H.data;var w=_.sW("svg"),A=_.Z(_.mB(!1,void 0,"i4BL1"));H=A.next().value;var J=A.next().value,c=_.Z(_.mB(!1,void 0,"FzRJKd"));A=c.next().value;var Y=c.next().value,M=function(){var b;return _.e((b=S())==null?void 0:b.popUp,gtv)},m=function(){var b;
return(b=S())==null?void 0:b.command},W=function(){return _.e(m(),_.X1)!==void 0};
c=_.um(function(){C();return!1});
var y={},N={};return _.q("svg",{"on:mouseover":_.um(function(){W()&&J(!0);Y(!0);return!1}),
"on:mouseout":_.um(function(){J(!1);Y(!1);return!1}),
"on:keydown":_.um(function(b){b.key==="Enter"&&C();return!1}),
"on:focus":_.um(function(){W()&&J(!0);return!1}),
"on:blur":_.um(function(){W()&&J(!1);return!1}),
el:w,tabindex:0,"aria-label":function(){var b;return(b=S())==null?void 0:b.a11yString},
id:"player-overlay-video-interaction-svg",class:_.eJ("ytPlayerOverlayInteractionInteractionsSvg",(y.ytPlayerOverlayInteractionInteractionsSvgHover=H,y),(N.ytPlayerOverlayInteractionInteractionsSvgHideOutline=A,N)),role:"button","on:click":c})},"Ik");_.qs(_.n(function(H){var C=H.data;_.Ph(function(){var S;if((S=C())==null?0:S.trackingParams){var w;_.lJ().graftServerVe((w=C().trackingParams)!=null?w:"")}});
return _.q("yt-player-overlay-interaction",null,_.q(aqD,{region:function(){var S,w;return(S=C())==null?void 0:(w=S.regions)==null?void 0:w[0]}},_.q(x9v,Object.assign({},H))))},"Hk"),"yt-player-overlay-interaction",{props:{data:_.GH}});var GD=function(){var H=_.X.apply(this,arguments)||this;H.showScrubber=!1;H.isWatchWhileMode=!1;H.enableAnchoredPanel=_.E("desktop_shorts_v2_anchored_panel");H.enableNewStickers=_.E("use_shorts_sticker_overlay_web");H.anchoredPanelActive=!1;H.enableLivingroomLayout=_.E("reels_enable_livingroom_layout");H.enablePlayerMetadataContainer=_.E("reels_web_enable_metadata_container");H.enableSqueezebackPanels=_.E("web_shorts_enable_squeezeback_panels");H.useAspectRatio=_.E("web_use_aspect_ratio");H.isSqueezebackActive=
!1;H.smallScreenSqueezeback=!1;H.isPlayerStarted=!1;H.overlayDensity=0;H.extractOverlay=!1;H.extractActionBar=!1;H.isOverlay=!1;H.isImmersive=!1;H.isImmersiveHorizontal=!1;H.isFullscreen=!1;H.onWindowResized=function(){var C;H.set("isImmersive",((C=window.getComputedStyle(H.hostElement))==null?void 0:C.getPropertyValue("--immersive-mode-on"))==="1");H.set("isImmersiveHorizontal",H.isImmersive&&H.enableLivingroomLayout&&!H.isWatchWhileMode)};
return H};
_.G(GD,_.X);_.F=GD.prototype;_.F.updateIsOverlay=function(H){this.isOverlay=H.detail.value};
_.F.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.F.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.F.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.F.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.F.onOverlayDensityChange=function(){var H=_.mY(this.hostElement).querySelector("ytd-info-panel-container-renderer");H&&(H.set("extractOverlay",this.extractOverlay),H.set("roundedContainer",this.extractOverlay))};
_.F.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.F.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.F.ready=function(){(_.E("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"))&&(!_.E("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.z9("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.z9("reels_action_justified_content")||"flex-start")};
_.F.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",properties:{roundedContainer:"[[extractOverlay]]",extractOverlay:"[[extractOverlay]]"}}},renderPriority:0}}};
_.F.setFakeLoadingButtons=function(){_.E("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.fL("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.fL("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.fL("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.fL("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.fL("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()};
_.F.setEmptyOverlayMetadata=function(){_.E("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}))};
_.JJ.Object.defineProperties(GD.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.infoPanel)}}});
GD.prototype.onOverlayDensityChange=GD.prototype.onOverlayDensityChange;GD.prototype.onIsActiveChanged=GD.prototype.onIsActiveChanged;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],GD.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],GD.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],GD.prototype,"ytdReduxBehavior",void 0);
_.D([_.v(_.bU.YtdGuideStateAwareBehavior),_.K("design:type",Object)],GD.prototype,"ytdGuideStateAwareBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],GD.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Boolean)],GD.prototype,"isActive",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],GD.prototype,"hidden",void 0);_.D([_.V({value:!0}),_.K("design:type",Boolean)],GD.prototype,"useShortsIcon",void 0);
_.D([_.V({value:"left"}),_.K("design:type",String)],GD.prototype,"buttonTooltipPosition",void 0);_.D([_.V({value:_.E("reels_enable_livingroom_layout")?"top":"left"}),_.K("design:type",String)],GD.prototype,"likeButtonTooltipPosition",void 0);_.D([_.V({value:"none"}),_.K("design:type",String)],GD.prototype,"textTransform",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],GD.prototype,"showScrubber",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],GD.prototype,"isWatchWhileMode",void 0);_.D([_.V({reflectToAttribute:!0}),_.l("data.infoPanel"),_.K("design:type",Object),_.K("design:paramtypes",[])],GD.prototype,"hasInfoPanel",null);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],GD.prototype,"enableAnchoredPanel",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],GD.prototype,"enableNewStickers",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],GD.prototype,"anchoredPanelActive",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],GD.prototype,"enableLivingroomLayout",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],GD.prototype,"enablePlayerMetadataContainer",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],GD.prototype,"enableSqueezebackPanels",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],GD.prototype,"useAspectRatio",void 0);_.D([_.V({selector:_.vWw,reflectToAttribute:!0}),_.K("design:type",Object)],GD.prototype,"isSqueezebackActive",void 0);_.D([_.V({selector:y99,reflectToAttribute:!0}),_.K("design:type",Object)],GD.prototype,"smallScreenSqueezeback",void 0);_.D([_.V({selector:NiT}),_.K("design:type",Object)],GD.prototype,"isPlayerStarted",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],GD.prototype,"overlayDensity",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],GD.prototype,"extractOverlay",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],GD.prototype,"extractActionBar",void 0);_.D([_.V(),_.K("design:type",Object)],GD.prototype,"isOverlay",void 0);_.D([_.V(),_.K("design:type",Object)],GD.prototype,"isImmersive",void 0);
_.D([_.V(),_.K("design:type",Object)],GD.prototype,"isImmersiveHorizontal",void 0);_.D([_.V({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.K("design:type",Boolean)],GD.prototype,"isShortsImmersive",void 0);_.D([_.V({computed:"computeButtonOverride(extractActionBar)"}),_.K("design:type",Object)],GD.prototype,"buttonOverride",void 0);
_.D([_.V({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.K("design:type",Object)],GD.prototype,"actionBarButtonOverride",void 0);_.D([_.V({selector:_.YQ,reflectToAttribute:!0}),_.K("design:type",Object)],GD.prototype,"isFullscreen",void 0);_.D([_.fx("isActive"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],GD.prototype,"onIsActiveChanged",null);
_.D([_.fx("extractOverlay"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],GD.prototype,"onOverlayDensityChange",null);_.D([_.h({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],GD);
_.B(GD,"ytd-reel-player-overlay-renderer",function(){if(Rih!==void 0)return Rih;var H=document.createElement("template");_.f(H,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" extract-overlay="[[extractOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[!extractActionBar]]" overrides="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <template 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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Rih=H},{mode:1});var H92;var fW=function(){var H=_.X.apply(this,arguments)||this;H.videoDuration=0;H.playedTime=0;H.isActive=!1;H.JSC$22396_playerEvents=new Map;return H};
_.G(fW,_.X);_.F=fW.prototype;_.F.created=function(){this.JSC$22396_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22396_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.F.attached=function(){this.getPlayerAndInitializeListeners()};
_.F.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22396_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.uA(this,this.onPageChanged))};
_.F.getPlayerAndInitializeListeners=function(){var H=this,C;return _.z(function(S){if(S.nextAddress==1)return C=_.Zz(),C?S.yield(C.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.uA(H,H.onPageChanged)),S.jumpTo(0));H.player=S.yieldResult;H.initializePlayerListeners();_.oT(S)})};
_.F.onPageChanged=function(H){var C=this;return _.z(function(S){if(S.nextAddress==1)return H.detail.newPageType!=="ytd-shorts"?S.return():S.yield(_.ct().getPlayerPromise(),2);C.player=S.yieldResult;C.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.uA(C,C.onPageChanged));_.oT(S)})};
_.F.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22396_playerEvents)};
_.F.onVideoDataChange=function(H){var C=this;return _.z(function(S){if(!C.player||H.type!=="newdata")return S.return();C.videoDuration=_.E("web_shorts_use_progress_state_for_gapless")?C.player.getProgressState(H.playertype).seekableEnd:C.player.getDuration(H.playertype);C.playedTime=0;_.oT(S)})};
_.F.onVideoProgress=function(H){var C=this,S,w;return _.z(function(A){if(!C.player)return A.return();S=C.player.getPresentingPlayerType();w=C.player.getPlayerState();C.videoDuration=_.E("web_shorts_use_progress_state_for_gapless")?C.player.getProgressState(S).seekableEnd:C.player.getDuration(S);C.playedTime=w===0?C.videoDuration:H;_.oT(A)})};
_.F.getPercentPlayed=function(H,C){return H?_.$C(C/H,0,1):0};
_.JJ.Object.defineProperties(fW.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 H="";return H=this.videoDuration&&this.playedTime?H+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):H+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],fW.prototype,"componentBehavior",void 0);_.D([_.v(_.fT.YtPlayerListenerBehavior),_.K("design:type",_.v_)],fW.prototype,"ytPlayerListenerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],fW.prototype,"player",void 0);_.D([_.V(),_.K("design:type",Object)],fW.prototype,"videoDuration",void 0);_.D([_.V(),_.K("design:type",Object)],fW.prototype,"playedTime",void 0);_.D([_.V(),_.K("design:type",Object)],fW.prototype,"isActive",void 0);
_.D([_.l("videoDuration","playedTime"),_.K("design:type",Number),_.K("design:paramtypes",[])],fW.prototype,"percentPlayed",null);_.D([_.l("videoDuration","playedTime"),_.K("design:type",Object),_.K("design:paramtypes",[])],fW.prototype,"percentPlayedStyle",null);_.D([_.l("videoDuration","isActive"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],fW.prototype,"hideProgressBar",null);
_.B(fW,"ytd-progress-bar-line",function(){if(H92===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);H92=H}H=H92;return H},{mode:_.mn("kevlar_poly_si_batch_j028")?1:2});var i9B;_.qs(_.ht9,"ytm-closed-captioning-button",{props:{captionIconType:_.GH,onClick:_.Yb,ariaLabel:_.GH,ariaPressed:_.GH,isOverlay:_.Yb,isModern:_.Yb}});_.qs(_.Zsi,"desktop-shorts-volume-controls",{props:{orientation:_.GH}});var v1=function(){var H=_.X.apply(this,arguments)||this;H.playerState=null;H.isMuted=!1;H.shortsModernControlsEnabled=_.E("web_shorts_modern_controls");H.volumeControlsOrientationState=_.E("web_shorts_modern_controls")?"vertical_down":"horizontal_right";H.isOverlay=!0;H.captionIconType=-1;H.ariaLabel="";H.overlayDensity=0;H.extractActionBar=!0;H.JSC$22399_playerEvents=new Map;H.onClosedCaptionsButtonClick=function(){H.player&&_.fR(H.player)&&(H.player.toggleSubtitles(),H.updateCaptionIconType())};
return H};
_.G(v1,_.X);_.F=v1.prototype;_.F.created=function(){this.JSC$22399_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22399_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22399_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.F.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.y4(28662);this.playPauseButtonClientVE=_.y4(36842);this.fullscreenButtonToggleOffClientVE=_.y4(222256);this.fullscreenButtonToggleOnClientVE=_.y4(222257);var H=_.Dg(),C=_.BM();H&&C&&(_.E("combine_ve_grafts")?(_.hd(_.lJ(),this.muteButtonClientVE,C),_.hd(_.lJ(),this.playPauseButtonClientVE,C)):_.xR(H,C,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.F.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22399_playerEvents),this.player=null)};
_.F.updateCaptionIconType=function(){var H=-1,C=void 0,S=_.fL("CLOSED_CAPTIONS_DISABLED");this.player&&_.fR(this.player)&&(_.vT3(this.player)?(C=!0,S=_.fL("CLOSED_CAPTIONS_ON"),H=1):(C=!1,S=_.fL("CLOSED_CAPTIONS_OFF"),H=0));this.captionIconType=H;this.ariaPressedState=C;this.ariaLabel=S};
_.F.getPlayerAndInitializeListeners=function(){var H=this,C;return _.z(function(S){if(S.nextAddress==1)return C=_.Zz(),C?S.yield(C.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.uA(H,H.onPageChanged)),S.jumpTo(0));H.player=S.yieldResult;H.initializePlayerListeners();_.oT(S)})};
_.F.onPageChanged=function(H){var C=this;return _.z(function(S){if(S.nextAddress==1)return H.detail.newPageType!=="ytd-shorts"?S.return():S.yield(_.ct().getPlayerPromise(),2);C.player=S.yieldResult;C.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.uA(C,C.onPageChanged));_.oT(S)})};
_.F.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22399_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.F.onPlayerStateChange=function(H){this.playerState=H};
_.F.onPlayerVolumeChange=function(H){this.isMuted=H.muted};
_.F.onPlayPauseButtonClick=function(){var H=this,C,S;return _.z(function(w){if(w.nextAddress==1)return w.yield(_.ct().getPlayerPromise(),2);C=w.yieldResult;(S=_.Dg())&&H.playPauseButtonClientVE&&_.Sp(S,H.playPauseButtonClientVE);C.getPlayerState()!==1?C.playVideo():C.pauseVideo();_.oT(w)})};
_.F.computePlayPauseIcon=function(H){return H===2||H===-1||H===5?_.E("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.E("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.E("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.F.computeFullscreenLabel=function(H){return H?_.fL("FULLSCREEN_EXIT_LABEL"):_.fL("FULLSCREEN_ENTER_LABEL")};
_.F.computePlayPauseLabel=function(H){return H===1||H===3?_.fL("PLAYER_LABEL_PAUSE"):_.fL("PLAYER_LABEL_PLAY")};
_.F.onMuteButtonClick=function(){var H=this,C,S;return _.z(function(w){if(w.nextAddress==1)return w.yield(_.ct().getPlayerPromise(),2);C=w.yieldResult;(S=_.Dg())&&H.muteButtonClientVE&&_.Sp(S,H.muteButtonClientVE);C.isMuted()?C.unMute(!0):C.mute(!0);_.oT(w)})};
_.F.computeMuteIcon=function(H){return H?"miniplayer:volume-off":"miniplayer:volume-up"};
_.F.computeMuteLabel=function(H){return H?_.fL("PLAYER_LABEL_UNMUTE"):_.fL("PLAYER_LABEL_MUTE")};
_.F.onFullscreenButtonClick=function(){var H=_.Dg();H&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.Sp(H,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.Sp(H,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.zNK()};
_.JJ.Object.defineProperties(v1.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var H=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(){H.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?_.E("web_shorts_modern_controls")?"player_full_exit_alt":_.E("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.E("web_shorts_modern_controls")?"player_full_enter_alt":_.E("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],v1.prototype,"componentBehavior",void 0);_.D([_.v(_.fT.YtPlayerListenerBehavior),_.K("design:type",_.v_)],v1.prototype,"ytPlayerListenerBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],v1.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],v1.prototype,"player",void 0);_.D([_.V(),_.K("design:type",Object)],v1.prototype,"playerState",void 0);_.D([_.V(),_.K("design:type",Object)],v1.prototype,"isMuted",void 0);
_.D([_.V({computed:"computePlayPauseIcon(playerState)"}),_.K("design:type",String)],v1.prototype,"playPauseIcon",void 0);_.D([_.V({computed:"computeMuteIcon(isMuted)"}),_.K("design:type",String)],v1.prototype,"muteIcon",void 0);_.D([_.V({selector:_.YQ}),_.K("design:type",Boolean)],v1.prototype,"isFullscreen",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],v1.prototype,"shortsModernControlsEnabled",void 0);
_.D([_.V(),_.K("design:type",Object)],v1.prototype,"volumeControlsOrientationState",void 0);_.D([_.V(),_.K("design:type",Object)],v1.prototype,"isOverlay",void 0);_.D([_.V(),_.K("design:type",Object)],v1.prototype,"captionIconType",void 0);_.D([_.V(),_.K("design:type",Object)],v1.prototype,"ariaLabel",void 0);_.D([_.V(),_.K("design:type",Object)],v1.prototype,"ariaPressedState",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],v1.prototype,"overlayDensity",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],v1.prototype,"extractActionBar",void 0);_.D([_.l("playerState"),_.K("design:type",Object),_.K("design:paramtypes",[])],v1.prototype,"playPauseButtonData",null);_.D([_.l("isFullscreen"),_.K("design:type",Object),_.K("design:paramtypes",[])],v1.prototype,"fullscreenButtonData",null);_.D([_.V(),_.K("design:type",Object)],v1.prototype,"onClosedCaptionsButtonClick",void 0);
_.D([_.l("isFullscreen"),_.K("design:type",String),_.K("design:paramtypes",[])],v1.prototype,"fullscreenIcon",null);
_.B(v1,"ytd-shorts-player-controls",function(){if(i9B===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);i9B=H}H=i9B;return H},{mode:1});var CBT;_.qs(_.Piq,"yt-interstitial-view-model",{props:{data:_.GH}});var StB=_.n(function(H){var C=H.data;return _.q("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.q("h1",{class:"reelWatchBreakViewModelHostTitle"},_.q(_.uZ,{text:function(){return C().title}})),_.q("h2",{class:"reelWatchBreakViewModelHostBody"},_.q(_.uZ,{text:function(){return C().body},
isOverlay:!0})),_.q(_.V4,{data:function(){return C().buttons}},{buttonViewModel:function(S,w){return _.q("div",{class:function(){return w()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.q(_.rc,{data:S.data}))}}))},"Jk");
StB.idomCompat=!0;_.qs(StB,"reel-watch-break-view-model",{props:{data:_.GH}});var lv=function(){return _.X.apply(this,arguments)||this};
_.G(lv,_.X);lv.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}}};
_.JJ.Object.defineProperties(lv.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var H;return!!_.e((H=this.data)==null?void 0:H.renderer,r9T)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var H;return!!_.e((H=this.data)==null?void 0:H.renderer,BiP)}}});
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],lv.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],lv.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],lv.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],lv.prototype,"data",void 0);
_.D([_.V({reflectToAttribute:!0}),_.l("data.renderer"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],lv.prototype,"isSurvey",null);_.D([_.V({reflectToAttribute:!0}),_.l("data.renderer"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],lv.prototype,"isInterstitialViewModel",null);_.D([_.h({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],lv);
_.B(lv,"ytd-reel-non-video-content-renderer",function(){if(CBT!==void 0)return CBT;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);
return CBT=H},{mode:_.mn("kevlar_poly_si_batch_j028")?1:2});var s2t;_.qs(_.FBo,"desktop-shorts-player-controls",{});var Vc=function(){var H=_.X.apply(this,arguments)||this;H.isPlayerPaused=!1;H.isPlayerStarted=!1;H.showPlayerControls=!1;H.showScrubber=!1;H.autoHideJobId=0;H.modern=_.E("web_button_rework");H.overlayType=_.z9("web_shorts_expanded_overlay_type");H.panelData=void 0;H.isWatchWhileMode=!1;H.hasError=!1;H.panelShowDelayMs=1;H.scrubberComponent={};H.isFullscreen=!1;H.shouldHideOverlay=!1;H.enableAnchoredPanel=_.E("desktop_shorts_v2_anchored_panel");H.enablePersistentAnchoredPanel=_.E("desktop_shorts_v2_persistent_anchored_panel");
H.hideWatchWhilePanel=_.E("web_shorts_hide_watch_while_panel");H.useAspectRatio=_.E("web_use_aspect_ratio");H.isPersistentPanelActive=!1;H.anchoredPanelActive=!1;H.isShortsPipActive=!1;H.smallScreenSqueezeback=!1;H.enableFlexibleOverlay=_.E("web_enable_flexible_overlay");H.overlayDensity=0;H.extractOverlay=!1;H.extractActionBar=!1;H.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
H.onWindowResized=function(){_.iJ(H,"calculateOverlayDensity",function(){H.calculateOverlayDensity()},100)};
return H};
_.G(Vc,_.X);_.F=Vc.prototype;_.F.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.F.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.F.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var H=_.JA().resolve(_.jD);this.isWatchWhileMode&&_.rT.addJob(function(){H.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0)}}else this.panelData=void 0};
_.F.handleShowReelsCommentsOverlayCommand=function(H){H=_.e(H,toV);this.isActive&&(H==null?0:H.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))};
_.F.updateEngagementPanelVisibility=function(H,C){H&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:C?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:H}})};
_.F.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.F.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.JA().resolve(_.Ri).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.F.handleWatchWhilePanelScrimClick=function(){var H=_.JA().resolve(_.jD);this.activeWatchWhilePanel&&(H.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.F.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.F.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}},renderPriority:0}}};
_.F.handlePlayerClick=function(H){var C=this,S,w;if((w=(S=window).matchMedia)!=null&&w.call(S,"(any-pointer: coarse)").matches||!H)this.showPlayerControls=!0,_.rT.cancelJob(this.autoHideJobId),this.autoHideJobId=_.X2(_.rT,function(){C.showPlayerControls=!1},4E3)};
_.F.isFirstReel=function(){return this.index===0};
_.F.handleMouseenter=function(){_.rT.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.F.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.F.handleScrubberEnter=function(){this.showScrubber=!0};
_.F.handleScrubberLeave=function(){this.showScrubber=!1};
_.F.maybeLogNonDefaultAspectRatio=function(){var H;(H=this.data)!=null&&H.thumbnail&&this.isActive&&.5625!==WjV(this.data.thumbnail)&&_.JXE("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.F.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var H=document.querySelector("#shorts-container");if(H){var C=!1,S,w=this.playerContainer.offsetWidth;H=H.offsetWidth/2-w/2;H>=368?(H=1,C=S=!0):H>=72?(H=0,S=!0):(H=2,S=!1);w>=600?H=1:window.innerWidth<=599&&(H=2,S=C=!1);this.isPersistentPanelActive&&(H=0,C=!1);this.extractActionBar=S;_.E("web_enable_flexible_overlay")&&(this.overlayDensity=H,this.extractOverlay=C);var A;(A=this.onOverlayDensityChanged)==
null||A.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar)}}};
_.F.onOverlayDensityChange=function(){var H;(H=this.onOverlayDensityChanged)==null||H.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(H=_.mY(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))H.set("overlayDensity",this.overlayDensity),H.set("extractOverlay",this.extractOverlay),H.set("extractActionBar",this.extractActionBar);if(H=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))H.overlayDensity=this.overlayDensity,H.extractOverlay=
this.extractOverlay,H.extractActionBar=this.extractActionBar};
_.F.isVideoContent=function(H){_.JA().resolve(_.Ri);return!!_.e(H,_.Ox)};
_.F.isNonVideoContent=function(H){_.JA().resolve(_.Ri);return!!_.e(H,_.F7)};
_.F.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.JJ.Object.defineProperties(Vc.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var H,C;return _.E("web_enable_format_first")||((H=this.data)==null?void 0:H.adsOverlay)&&_.E("web_enable_format_first_ads_only")||((C=this.data)==null?void 0:C.reelPlayerOverlayRenderer)&&_.E("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.E("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var H;return!this.isActive||!this.isPlayerStarted||(H=this.data)!=null&&H.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var H;if(((H=this.data)==null?0:H.command)&&this.isVideoContent(this.data.command)){var C,S;if(((C=this.data)==null?0:C.adsOverlay)&&Object.keys((S=this.data)==null?void 0:S.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var w,A;if(((w=this.data)==null?0:w.reelPlayerOverlayRenderer)&&Object.keys((A=this.data)==null?void 0:A.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
Vc.prototype.onOverlayDensityChange=Vc.prototype.onOverlayDensityChange;Vc.prototype.calculateOverlayDensity=Vc.prototype.calculateOverlayDensity;Vc.prototype.maybeLogNonDefaultAspectRatio=Vc.prototype.maybeLogNonDefaultAspectRatio;Vc.prototype.onEngagementPanelsChanged=Vc.prototype.onEngagementPanelsChanged;Vc.prototype.onScrubberDataChange=Vc.prototype.onScrubberDataChange;Vc.prototype.updateShouldHideOverlay=Vc.prototype.updateShouldHideOverlay;
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Vc.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Vc.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.bU.YtdGuideStateAwareBehavior),_.K("design:type",Object)],Vc.prototype,"ytdGuideStateAwareBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Vc.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Number)],Vc.prototype,"index",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],Vc.prototype,"isActive",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],Vc.prototype,"isHiddenInDom",void 0);_.D([_.V(),_.K("design:type",Object)],Vc.prototype,"isPlayerPaused",void 0);_.D([_.V({selector:NiT}),_.K("design:type",Object)],Vc.prototype,"isPlayerStarted",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Vc.prototype,"showPlayerControls",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Vc.prototype,"showScrubber",void 0);_.D([_.V(),_.K("design:type",Object)],Vc.prototype,"autoHideJobId",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Vc.prototype,"modern",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Vc.prototype,"overlayType",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],Vc.prototype,"ytdReduxBehavior",void 0);
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],Vc.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Vc.prototype,"watchWhileEngagementPanels",void 0);_.D([_.V(),_.K("design:type",Object)],Vc.prototype,"panelData",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Vc.prototype,"isWatchWhileMode",void 0);_.D([_.V(),_.K("design:type",String)],Vc.prototype,"activeWatchWhilePanel",void 0);
_.D([_.V(),_.K("design:type",Object)],Vc.prototype,"hasError",void 0);_.D([_.V(),_.K("design:type",Object)],Vc.prototype,"panelShowDelayMs",void 0);_.D([_.V(),_.K("design:type",Object)],Vc.prototype,"scrubberComponent",void 0);_.D([_.V({selector:_.YQ,reflectToAttribute:!0}),_.K("design:type",Object)],Vc.prototype,"isFullscreen",void 0);_.D([_.V(),_.K("design:type",Object)],Vc.prototype,"shouldHideOverlay",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Vc.prototype,"enableAnchoredPanel",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Vc.prototype,"enablePersistentAnchoredPanel",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Vc.prototype,"hideWatchWhilePanel",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Vc.prototype,"useAspectRatio",void 0);
_.D([_.V({selector:_.vWw,reflectToAttribute:!0}),_.K("design:type",Object)],Vc.prototype,"isPersistentPanelActive",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Vc.prototype,"anchoredPanelActive",void 0);_.D([_.V({selector:_.z_,reflectToAttribute:!0}),_.K("design:type",Object)],Vc.prototype,"isShortsPipActive",void 0);_.D([_.V({selector:y99,reflectToAttribute:!0}),_.K("design:type",Object)],Vc.prototype,"smallScreenSqueezeback",void 0);
_.D([_.V({reflectToAttribute:!0}),_.l("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vc.prototype,"enableFormatFirst",null);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Vc.prototype,"enableFlexibleOverlay",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Vc.prototype,"overlayDensity",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Vc.prototype,"extractOverlay",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Vc.prototype,"extractActionBar",void 0);_.D([_.V(),_.K("design:type",Function)],Vc.prototype,"onOverlayDensityChanged",void 0);_.D([_.V(),_.l("isActive","hasError","isPlayerStarted"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vc.prototype,"shouldRenderPlayerElements",null);_.D([_.V(),_.l("isActive","isWatchWhileMode"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vc.prototype,"watchWhileOrPersistentActive",null);
_.D([_.fx("isActive","hasError","showingExpandedOverlay"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Vc.prototype,"updateShouldHideOverlay",null);_.D([_.V({reflectToAttribute:!0}),_.l("isActive","isPlayerStarted","data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vc.prototype,"shouldRenderScrubber",null);
_.D([_.fx("shouldRenderScrubber"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Vc.prototype,"onScrubberDataChange",null);_.D([_.l("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vc.prototype,"overlayComponent",null);_.D([_.fx("watchWhileEngagementPanels"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Vc.prototype,"onEngagementPanelsChanged",null);
_.D([_.lA("#player-container"),_.K("design:type",HTMLElement)],Vc.prototype,"playerContainer",void 0);_.D([_.lA("#cinematic-container"),_.K("design:type",HTMLElement)],Vc.prototype,"cinematicContainer",void 0);_.D([_.fx("isPersistentPanelActive","data.thumbnail"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Vc.prototype,"maybeLogNonDefaultAspectRatio",null);
_.D([_.fx("isPersistentPanelActive"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Vc.prototype,"calculateOverlayDensity",null);_.D([_.fx("overlayDensity","extractOverlay","extractActionBar"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Vc.prototype,"onOverlayDensityChange",null);_.D([_.h({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],Vc);
_.B(Vc,"ytd-reel-video-renderer",function(){if(s2t!==void 0)return s2t;var H=document.createElement("template");_.f(H,'\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]]" extract-action-bar="[[extractActionBar]]" 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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return s2t=H},{mode:_.mn("kevlar_poly_si_batch_j028")?1:2});var or=function(){var H=_.X.apply(this,arguments)||this;H.isPreviousPageShorts=!1;H.index=0;H.delayedActiveIndex=0;H.playablePreviousIndex=null;H.isPlayerPaused=!1;H.isPlayerStarted=!1;H.intersectionObserverThreshold=.6;H.fitToVisibleBounds=!1;H.pageSubtype="shorts";H.enablePreviousContinuation=_.E("shorts_in_playlists_web");H.shortsPipEnabled=_.E("web_shorts_pip");H.isDark=document.documentElement.hasAttribute("dark");H.shortsViewTransitions=_.E("web_shorts_view_transitions");H.isFullscreen=!1;H.isShortsPipActive=
!1;H.buttonOverride={iconPosition:"icon-only",size:"XL"};H.anchoredPanelActive=!1;H.isActive=!1;H.smallScreenPersistentPanel=!1;H.isPersistentPanelActive=!1;H.smallScreenSqueezeBack=!1;H.enableScrollIntoViewCenter=_.E("web_scroll_into_view_center");H.formatFirst=_.E("web_enable_format_first")||_.E("web_enable_format_first_ads_only")||_.E("web_enable_format_first_organic_only");H.enableFlexibleOverlay=_.E("web_enable_flexible_overlay");H.extractOverlay=!1;H.useAspectRatio=_.E("web_use_aspect_ratio");
H.isShortsInitialized=!1;H.hidePreviousButtonImmediately=!1;H.showPreviousButtonImmediately=!1;H.endOfNextContinuation=!1;H.currentPlayerIndex=0;H.nextReelVe=_.y4(56921);H.prevReelVe=_.y4(56922);H.loopToggleOffVe=_.y4(198013);H.loopToggleOnVe=_.y4(198014);H.ambientModeToggleVe=_.y4(227860);H.reelPlayerPausedStateRendererVe=_.y4(141313);H.storedPlaybackSpeed=null;H.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"};H.onOverlayDensityChanged=function(C,S,w,A){C=H.getActiveReelVideo(C);H.extractOverlay=!!w;C==null||C.setAttribute("overlay-density",String(S));w===void 0||C!=null&&C.toggleAttribute("extract-overlay",w);A===void 0||C!=null&&C.toggleAttribute("extract-action-bar",A)};
return H};
_.G(or,_.X);_.F=or.prototype;_.F.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.F.deflateInactivePreviousSlides=function(){var H=_.YB("web_shorts_deflate_inactive_slides_aggressive_distance");if(H>0&&this.shortsProcessedSequence&&this.activeIndex){H=this.activeIndex-H;for(var C=0;C<=H;C++){var S=void 0;((S=this.shortsProcessedSequence[C].reelPlayerOverlayRenderer)==null?0:S.metapanel)&&this.set("shortsProcessedSequence."+C+".reelPlayerOverlayRenderer",{});S=void 0;((S=this.shortsProcessedSequence[C].adsOverlay)==null?0:S.adSlotMetadata)&&this.set("shortsProcessedSequence."+
C+".adsOverlay",{})}}};
_.F.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.F.onResize=function(){var H=_.AG(),C=H.dispatch,S=this.calculateIsSmallWidth();C.call(H,_.Md({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:S}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.F.configureRendererStamper=function(){return{"data.overlay.reelPlayerOverlayRenderer.backNavigationButton":{id:"back-nav-button",mapping:{buttonRenderer:"ytd-button-renderer"},renderPriority:0},"data.watchStatus":{id:"offline-container",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer"},renderPriority:0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatchWhilePanel:!0,shortsPanel:!0}}},
renderPriority:0}}};
_.F.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var H=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,C=H,S=0;H<250&&(C=H+this.shortsInnerContainer.clientWidth,S=24);_.Ed(this.hostElement,{"--ytd-shorts-header-width":C+"px","--ytd-shorts-top-spacing":S+"px"})}};
_.F.isFirstShorts=function(H){return H?this.index===-H.length:this.index===0};
_.F.isActiveReel=function(H,C,S){S&&(C=this.calculatePrevIndex(C,S));return H===C};
_.F.onFullscreenChange=function(){if(_.E("web_fullscreen_shorts")){var H;(H=this.getActiveReelVideo(this.activeIndex))==null||H.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.JA().resolve(_.Df).close(!0)}};
_.F.engagementPanelsChanged=function(){var H;this.watchWhileEngagementPanels=(H=this.data)==null?void 0:H.engagementPanels};
_.F.unregisterPanels=function(){var H=_.JA().resolve(_.jD);if(this.watchWhileEngagementPanels)for(var C=_.Z(this.watchWhileEngagementPanels),S=C.next();!S.done;S=C.next()){var w=S.value,A=void 0,J=void 0;S=(A=w.engagementPanelSectionListRenderer)==null?void 0:(J=A.identifier)==null?void 0:J.tag;w=this.getPanelContentIdentifier(w.engagementPanelSectionListRenderer);H&&(S&&H.panelMap.delete(S),w&&_.E("web_shorts_panel_caching_bugfix")&&(A=S=void 0,(A=(S=H).unregisterPanelContent)==null||A.call(S,w)))}};
_.F.isVideoContent=function(H){return this.isVideoContentCommand(H==null?void 0:H.command)};
_.F.getActiveReelVideo=function(H){return _.mY(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+H+'"]')};
_.F.calculatePrevIndex=function(H,C){return C?H-((C==null?void 0:C.length)||0):-1};
_.F.onKeydown=function(H){var C=_.Ar(H)||[];if(!_.YXi(C))if(H.code==="ArrowUp")H.preventDefault(),this.handlePrevButtonClick();else if(H.code==="ArrowDown")H.preventDefault(),this.handleNextButtonClick();else if(H.code==="KeyM")this.toggleMuteUnmuteVideo();else if(H.code==="KeyK"||H.code==="Space")this.togglePlayPauseVideo();else if((H.code==="KeyA"||H.code==="ArrowLeft")&&_.E("web_shorts_keyboard_enable_seek_shortcuts")){var S;(S=this.player)==null||S.seekBy(-5)}else if((H.code==="KeyD"||H.code===
"ArrowRight")&&_.E("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var w;(w=this.player)==null||w.seekBy(5)}};
_.F.onServiceRequestCompleted=function(H,C){H=C.data;H.continuationEndpoint&&H.entries?(this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:H.entries,continuationEndpoint:H.continuationEndpoint}}),_.E("web_enable_shorts_sequence_cache_fix")&&(this.cachedReelWatchSequenceResponse=H)):H.prevContinuationEndpoint&&H.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:H.prevEntries,
prevContinuationEndpoint:H.prevContinuationEndpoint}}):this.shortsProcessedSequence&&this.index>0&&(this.endOfNextContinuation=!0)};
_.F.handleEngagementPanelVisibilityChanged=function(H,C){var S=_.JA().resolve(_.jD);if(H&&S){var w=this.getPanelIdentifier(H);if(C==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==w){S.hidePanel(this.activePanel);var A;this.activePanel=((A=H.identifier)==null?void 0:A.tag)||H.panelIdentifier}else this.isPersistentPanelActive=!0,_.AG().dispatch(X3T(!0)),this.anchoredPanelActive=!0,this.activePanel=w;else C==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&this.activePanel===
w&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.AG().dispatch(X3T(!1)))}};
_.F.handlePanelScrimClick=function(){var H=_.JA().resolve(_.jD);this.activePanel&&(H.hidePanel(this.activePanel),_.AG().dispatch(X3T(!1)))};
_.F.getShortsLoopSetting=function(){var H,C,S,w,A;return _.z(function(J){switch(J.nextAddress){case 1:return _.E("kevlar_shorts_auto_advance")?J.yield(_.C$.getInstance(),2):J.return(!0);case 2:return(H=J.yieldResult)?J.yield(H.get("sfvles"),3):J.return(!0);case 3:return S=(C=J.yieldResult)!=null?C:!1,J.yield(H.get("sfvle"),4);case 4:return A=(w=J.yieldResult)!=null?w:!0,S?J.return(A):J.return(!0)}})};
_.F.handleSignalActionToggleLoopShortsOff=function(){var H=this,C,S,w;return _.z(function(A){switch(A.nextAddress){case 1:if(!H.player)return A.return();H.player.setLoopVideo(!1);C=_.lJ();_.rH(C,H.loopToggleOffVe);return A.yield(_.C$.getInstance(),2);case 2:return(S=A.yieldResult)?A.yield(S.set("sfvle",!1),3):A.return();case 3:return A.yield(S.set("sfvles",!0),4);case 4:w=_.VN(),_.ok(0,203,!1),_.ok(0,204,!0),w.save(),_.oT(A)}})};
_.F.handleSignalActionToggleLoopShortsOn=function(){var H=this,C,S,w;return _.z(function(A){switch(A.nextAddress){case 1:if(!H.player)return A.return();H.player.setLoopVideo(!0);C=_.lJ();_.rH(C,H.loopToggleOnVe);return A.yield(_.C$.getInstance(),2);case 2:return(S=A.yieldResult)?A.yield(S.set("sfvle",!0),3):A.return();case 3:return A.yield(S.set("sfvles",!0),4);case 4:w=_.VN(),_.ok(0,203,!0),_.ok(0,204,!0),w.save(),_.oT(A)}})};
_.F.handleSignalActionToggleCinematicShortsOn=function(){m9B(!0);var H;(H=this.JSC$22423_cinematicController)==null||_.ZrT(H,!0);_.rH(_.lJ(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.F.handleSignalActionToggleCinematicShortsOff=function(){m9B(!1);var H;(H=this.JSC$22423_cinematicController)==null||_.ZrT(H,!1);_.rH(_.lJ(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.F.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.F.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.F.unhideCurrentOverlay=function(){if(this.overlayContainer){var H=this.overlayContainer.querySelector("#experiment-overlay");H&&_.rT.addLowPriorityJob(function(){H.style.display="unset"},100)}};
_.F.getCurrentShort=function(){if(this.currentEndpoint){var H=this.currentEndpoint;if(this.isNonVideoContentCommand(H)){var C=_.e(H,_.F7);return{reelNonVideoContentRenderer:_.e(C==null?void 0:C.renderer,_.OOP),command:H}}if(this.data){var S;C=(S=_.e(this.currentEndpoint,_.Ox))==null?void 0:S.thumbnail;var w;S=(w=this.data.overlay)==null?void 0:w.reelPlayerOverlayRenderer;_.JA().resolve(_.Ri);H=this.data;var A,J;w=(A=H.overlay)==null?void 0:(J=A.shortsAdsRenderer)==null?void 0:J.adSlots;if(w!==void 0)w.length===
0?(_.a$("Shorts ads returned no ad slots."),H=void 0):(w.length>1&&_.a$("Shorts ads has more than one ad slots."),H=_.e(w[0],_.EcW));else{var c,Y;H=_.e((c=H.overlay)==null?void 0:(Y=c.shortsAdsRenderer)==null?void 0:Y.overlay,_.EcW)}c=H;H=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.e(this.currentEndpoint,_.Ox),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:S,thumbnail:C,command:H,adsOverlay:c}}}};
_.F.created=function(){var H=this;this.scrollToVideoThrottle=new _.I$(function(C){var S;(S=H.getActiveReelVideo(C))==null||S.scrollIntoView({behavior:"smooth",block:"nearest",inline:H.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.I$(function(C){var S;(S=H.getActiveReelVideo(C))==null||S.scrollIntoView({behavior:"auto",block:"nearest",inline:H.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.F.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.F.attached=function(){var H=this;_.JA().resolve(_.Ri).registerRootElement(this);this.pageScrollElement=_.mY(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.uA(this,this.processResetAction));_.E("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var C=H.getActiveReelVideo(H.activeIndex);H.maybeCreateIntersectionObserver();C==null||C.scrollIntoView({behavior:"instant",
block:"nearest",inline:H.enableScrollIntoViewCenter?"center":"start"});H.shortsContainer.style.overflowY="scroll"}))};
_.F.updateReelWatchSequenceResponse=function(){var H=this,C;_.E("web_enable_delay_shorts_sequence_call_new")&&this.currentEndpoint&&((C=_.e(this.currentEndpoint,_.Ox))==null?0:C.sequenceParams)&&!this.reelWatchSequenceResponse&&(C=_.JA().resolve(_.Ri))&&OrB(C,this.currentEndpoint).then(function(S){S&&(H.reelWatchSequenceResponse=S,_.rT.addLowPriorityJob(function(){H.observeShorts()}))})};
_.F.calculateSqueezebackPanelSize=function(){var H=this,C=window.innerWidth-456-(window.innerHeight-106)*.5625;_.rT.addLowPriorityJob(function(){C<360?_.AG().dispatch(QOB(!0)):(H.hostElement.style.setProperty("--anchored-panel-width",Math.min(C,480)+"px"),_.AG().dispatch(QOB(!1)))})};
_.F.detached=function(){var H=_.JA().resolve(_.Ri);H.rootElement=void 0;var C;(C=H.unsubscribeFromStore)==null||C.call(H);H.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.uA(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.F.onResizeFinished=function(H,C){var S=this,w=new ResizeObserver(function(){S.shortsContainer.style.overflowY="hidden";_.rT.addLowPriorityJob(function(){C()},100)});
w.observe(H);return w};
_.F.resetDocumentScrollTop=function(){var H,C;if((H=document)==null?0:(C=H.scrollingElement)==null?0:C.scrollTop)document.scrollingElement.scrollTop=0};
_.F.loadPage_=function(H){var C=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),H){var S;!_.E("web_enable_delay_shorts_sequence_call")&&((S=_.e(this.currentEndpoint,_.Ox))==null?0:S.sequenceParams)&&(this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index));this.data=H;this.isPlayerStarted?this.handleOnPlaybackCommand():
this.afterPlayerStarted=function(){C.isPlayerStarted&&(C.handleOnPlaybackCommand(),C.afterPlayerStarted=function(){})};
this.registerPanel(H)}};
_.F.afterPlayerStarted=function(){};
_.F.handleOnPlaybackCommand=function(){if(_.E("web_shorts_comment_stickers")&&this.isPlayerStarted){var H,C=(H=_.e(this.currentEndpoint,_.Ox))==null?void 0:H.onPlaybackCommand;C&&this.ytComponentBehavior.resolveCommand(C)}};
_.F.maybeCreateIntersectionObserver=function(){var H=this,C=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==C){this.intersectionObserverThreshold=C;var S={rootMargin:"0px",threshold:C},w;(w=this.intersectionObserver)==null||w.disconnect();this.intersectionObserver=new IntersectionObserver(function(A){A=_.Z(A);for(var J=A.next();!J.done;J=A.next())if(J=J.value,J.intersectionRatio>C){J=Number(J.target.id);if(isNaN(J))break;if(J===H.index)break;
_.XaE();H.loadVideo(J);_.tM("r_vtc")}},S);
this.observeShorts()}};
_.F.observeShorts=function(){var H=[].concat(_.k$(_.mY(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));H=_.Z(H);for(var C=H.next();!C.done;C=H.next()){C=C.value;var S=void 0;(S=this.intersectionObserver)==null||S.observe(C)}};
_.F.initCsi=function(){_.mXK("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var H={reelInfo:{transitionType:this.isPreviousPageShorts?"LATENCY_REEL_TRANSITION_TYPE_REEL_TO_REEL":"LATENCY_REEL_TRANSITION_TYPE_START",videoType:this.isAd()?"REEL_VIDEO_TYPE_AD":"REEL_VIDEO_TYPE_VIDEO",reelToReelBaseline:"REEL_TO_REEL_BASELINE_VIEW_TRANSITION_START"}},C,S;if((C=this.playerData)==null?0:(S=C.cacheMetadata)==null?0:S.isCacheHit)H.isCacheHit=!0;var w;if(C=(w=_.e(this.currentEndpoint,_.Ox))==null?void 0:
w.prefetchTaskId)H.prefetchInfo={taskId:C};_.nL(H)};
_.F.isAd=function(){var H,C;return!!((H=_.e(this.currentEndpoint,_.Ox))==null?0:(C=H.adClientParams)==null?0:C.isAd)};
_.F.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.F.getPlayerContainer=function(){var H;return(H=_.mY(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:H.playerContainer};
_.F.onPlayerStateChange=function(H){var C=this;this.isPlayerPaused=H===2;H!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?H===1&&this.index===0&&(this.isPlayerStarted||_.AG().dispatch(d99(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.AG().dispatch(d99(!0)));this.player&&!this.player.getLoopVideo()&&_.rT.addLowPriorityJob(function(){C.getShortsLoopSetting().then(function(S){var w;(w=C.player)==null||w.setLoopVideo(S)})});
this.isPlayerPaused&&_.E("web_shorts_paused_state_logging")&&_.ia(_.Dg(),[this.reelPlayerPausedStateRendererVe])};
_.F.isInBackground=function(){var H=window.document.visibilityState;return!(!H||H==="visible")};
_.F.isShortPlayable=function(){if(_.E("kevlar_playable_short_killswitch"))return!0;var H;return(H=this.playerData)!=null&&H.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.F.setNormalPlaybackSpeed=function(){var H=this,C,S;return _.z(function(w){if(w.nextAddress==1)return w.yield(H.getPlayer().getPlayerPromise(),2);C=w.yieldResult;S=C.getPlaybackRate();S!==1&&(H.storedPlaybackSpeed=S,C.setPlaybackRate(1));_.oT(w)})};
_.F.restorePlaybackSpeed=function(){var H=this,C;return _.z(function(S){if(S.nextAddress==1)return H.storedPlaybackSpeed===null?S.jumpTo(0):S.yield(H.getPlayer().getPlayerPromise(),3);C=S.yieldResult;C.setPlaybackRate(H.storedPlaybackSpeed);H.storedPlaybackSpeed=null;_.oT(S)})};
_.F.playerDataChanged=function(){var H=this,C,S,w,A,J,c,Y,M,m;return _.z(function(W){if(W.nextAddress==1){C=H.getPlayer();(S=H.intersectionObserver)==null||S.disconnect();if(H.playerData){if(((w=H.playerData.videoDetails)==null?void 0:w.videoId)!==((A=C.getPlayer())==null?void 0:A.getVideoData().video_id)){J={};if(c=_.e(H.currentEndpoint,_.Ox))J.watch_endpoint=c,c.endTimeSeconds&&(J.end=c.endTimeSeconds);C.loadVideoWithPlayerResponse(H.playerData,J)}}else return W.return();return H.player?W.jumpTo(2):
W.yield(C.getPlayerPromise(),3)}W.nextAddress!=2&&(H.player=W.yieldResult,H.JSC$22423_playerStateChangeListener=H.onPlayerStateChange.bind(H),H.player.addEventListener("onStateChange",H.JSC$22423_playerStateChangeListener),_.E("kevlar_client_enable_shorts_player_bootstrap")&&_.g$(),H.scrollToVideoThrottle.fire(H.index),H.movePlayerToVideo(H.index),_.rT.addLowPriorityJob(function(){H.getShortsLoopSetting().then(function(y){var N;(N=H.player)==null||N.setLoopVideo(y)})}),_.eR7.resolve(H.player),H.player.syncVolume(),
H.getPlayer().focusOnPlayer());
_.rT.addLowPriorityJob(function(){H.observeShorts()},100);
Y=H.player.getPlayerState(H.player.getPresentingPlayerType());Y!==1||H.isPlayerStarted||_.AG().dispatch(d99(!0));H.updateBackNavContainerWidth();M=_.e(H.currentEndpoint,_.Ox);((m=M)==null?0:m.startTimeSeconds)&&H.player.seekTo(M.startTimeSeconds);if(H.JSC$22423_cinematicController||H.cinematicsInitializeJobId)return W.return();H.cinematicsInitializeJobId=_.rT.addLowPriorityJob(function(){H.initCinematicController();H.cinematicsInitializeJobId=void 0});
_.oT(W)})};
_.F.onShortUndoDismiss=function(){var H=this,C=ot9().pop();C!==void 0&&(_.wM(this,function(){H.showCardWithIndex(C)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.F.onShortsDismiss=function(H){if(H=H.detail.reelDismissalActionRenderer)(H=_.e(H.onDismissalCompletionRenderer,_.nMt))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:H}}}),this.scrollAndDismissCard()};
_.F.processReelNonVideoContentDismissalCommand=function(H){var C=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);H=_.e(H,Kjr);this.activeDimissalTimeout=setTimeout(function(){C.scrollAndDismissCard()},Number(H==null?void 0:H.delayMs))};
_.F.scrollAndDismissCard=function(){var H=this,C=this.index;ot9().push(C);_.wM(this,function(){var S=H.getPlayableNextIndex();S!==null&&(S=H.getActiveReelVideo(S),H.hideCardWithIndex(C),S==null||S.scrollIntoView({behavior:"smooth",block:"nearest",inline:H.enableScrollIntoViewCenter?"center":"start"}))})};
_.F.hideCardWithIndex=function(H){if(H=this.getActiveReelVideo(H))H.hidden=!0};
_.F.showCardWithIndex=function(H){if(H=this.getActiveReelVideo(H))H.hidden=!1};
_.F.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.F.activeChanged=function(H){_.AG().dispatch(_.Md({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:H}}));if(H)document.addEventListener("keydown",_.uA(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var C;(C=this.player)==null||C.sendAbandonmentPing()}var S;(S=this.player)==null||S.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.uA(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.F.graftClientVisualElements=function(){if(this.data){var H=_.lJ();_.Nn_(H,_.N3({response:this.reelWatchSequenceResponse}));_.hd(H,this.nextReelVe);_.hd(H,this.prevReelVe);_.E("kevlar_shorts_auto_advance")&&(_.hd(H,this.loopToggleOffVe),_.hd(H,this.loopToggleOnVe));_.hd(H,this.ambientModeToggleVe);_.ia(_.Dg(),[this.nextReelVe,this.prevReelVe]);_.E("web_shorts_paused_state_logging")&&_.hd(H,this.reelPlayerPausedStateRendererVe)}};
_.F.graftNvcRenderer=function(){var H,C,S,w,A=this.index<0?(H=this.shortsProcessedPrevSequence)==null?void 0:(C=H[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:C.command:(S=this.shortsProcessedSequence)==null?void 0:(w=S[this.index])==null?void 0:w.command;if(A&&this.isNonVideoContentCommand(A)){H=_.e(A,_.F7);var J,c;(H=(J=_.e(H==null?void 0:H.renderer,_.OOP))==null?void 0:(c=J.loggingDirectives)==null?void 0:c.trackingParams)&&_.lJ().graftServerVe(H)}};
_.F.setActiveIndex=function(){_.JA().resolve(_.Ri).setActiveIndex(this.index)};
_.F.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.F.lazyUpdateMiniplayerData=function(){var H=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.rT.addLowPriorityJob(function(){H.updateMiniplayerData();H.updateMiniplayerDataJobId=void 0}))};
_.F.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.rT.cancelJob(this.updateMiniplayerDataJobId)};
_.F.updateMiniplayerData=function(){var H,C,S,w=_.JA().resolve(_.Df),A={shortsData:this.getCurrentShort(),previousButtonDisabled:!((H=this.prevButtonData)==null||!H.isDisabled),nextButtonDisabled:!((C=this.nextButtonData)==null||!C.isDisabled),playabilityStatus:(S=this.playerData)==null?void 0:S.playabilityStatus};_.WT(w,A)};
_.F.resetPlayerLocation=function(){var H=this.getPlayer();this.initialPlayerContainer&&H.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.F.movePlayerToVideo=function(H,C){var S=this;C=C===void 0?!0:C;var w=this.getActiveReelVideo(H),A=this.getPlayer();if(w){this.overlayContainer?w.appendChild(this.overlayContainer):(this.overlayContainer=_.mY(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,w.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||A.appendTo(this.overlayContainer.playerContainer,void 0,!0));var J;(J=this.player)==null||J.setSize(NaN,NaN);this.isActive||_.X2(_.rT,function(){S.isActive=
!0});
A.style.visibility="visible";_.E("reels_web_disable_rtr_tick")||_.E("reels_web_use_pbs_first_shorts")&&H===0||_.DR("r_tr");this.currentPlayerIndex=H;w.appendChild(this.errorScreenContainer);var c;(c=this.JSC$22423_cinematicController)==null||_.Y_P(c)}else C?_.rT.addLowPriorityJob(function(){S.movePlayerToVideo(S.index,!1)}):Math.random()<=_.YB("web_shorts_error_logging_threshold")&&_.rv(new _.X0("Trying to movePlayerToVideo with undefined container.",{firstAttempt:C,
index:H}))};
_.F.enableFormatFirst=function(H){return _.E("web_enable_format_first")||H.adsOverlay&&_.E("web_enable_format_first_ads_only")||H.reelPlayerOverlayRenderer&&_.E("web_enable_format_first_organic_only")};
_.F.getAspectRatio=function(H){if(this.enableFormatFirst(H))return(H==null?0:H.thumbnail)&&WjV(H.thumbnail)?"--ytd-shorts-player-ratio: "+WjV(H.thumbnail):"--ytd-shorts-player-ratio: 0.5625"};
_.F.getBackgroundImage=function(H){if(H!=null&&H.thumbnail)return(H=_.m3(H.thumbnail.thumbnails))?'background-image:url("'+H+'");':"background-color:black;"};
_.F.onPersistentPanelActiveChanged=function(){var H=this.getCurrentShort();if(H&&this.enableFormatFirst(H)&&(H==null?0:H.thumbnail)&&WjV(H.thumbnail)!==.5625){var C;(C=this.player)==null||C.setSize(NaN,NaN)}};
_.F.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.F.moveCinematicsToVideo=function(){var H=_.mY(this.hostElement).querySelector("ytd-reel-video-renderer");(H==null?0:H.cinematicContainer)&&H.cinematicContainer!==this.shortsCinematicContainer.parentElement&&H.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.F.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.F.updatePrevButtonData=function(){var H=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(H){var C;this.prevButtonData=H=Object.assign({},H,{accessibility:{label:_.fL("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:H.isDisabled||this.index===-(((C=this.shortsProcessedPrevSequence)==null?void 0:C.length)||0),tooltip:this.isUpArrowHidden?"":_.fL("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=H=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.F.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.F.updateNextButtonData=function(){var H=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(H){var C;this.nextButtonData=H=Object.assign({},H,{accessibility:{label:_.fL("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:H.isDisabled||this.index===((C=this.shortsProcessedSequence)==null?void 0:C.length),tooltip:_.fL("NEXT_VIDEO_LABEL")||""})}};
_.F.getPlayablePreviousIndex=function(){for(var H,C=this.index-1;C>=-(((H=this.prevShortsSequence)==null?void 0:H.length)||0);C--)if(!ot9().includes(C))return C;return null};
_.F.getIndexInSequence=function(H,C){return H.findIndex(function(S){var w;return((w=_.e(S.command,_.Ox))==null?void 0:w.videoId)===C})};
_.F.handlePrevButtonClick=function(H){var C=this,S,w;return _.z(function(A){S=C.getPlayablePreviousIndex();if(S===null)return A.return();C.gestureType=((w=H)==null?void 0:w.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";S===0&&(C.hidePreviousButtonImmediately=!0);if(C.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){C.transitionToVideoThrottle.fire(S)}),A.return();
C.scrollToVideoThrottle.fire(S);_.oT(A)})};
_.F.getPlayableNextIndex=function(){for(var H,C=this.index+1;C<(((H=this.shortsProcessedSequence)==null?void 0:H.length)||0);C++)if(!ot9().includes(C))return C;return null};
_.F.handleNextButtonClick=function(H,C){var S=this,w,A;return _.z(function(J){w=S.getPlayableNextIndex();if(w===null)return J.return();w===1&&(S.showPreviousButtonImmediately=!0);S.gestureType=((A=H)==null?void 0:A.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";C&&(S.gestureType=C);if(S.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){S.transitionToVideoThrottle.fire(w)}),J.return();
S.scrollToVideoThrottle.fire(w);_.oT(J)})};
_.F.handleReelNavigateCommand=function(H,C,S){(H=_.e(H,D9t))&&C&&H.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(S)};
_.F.loadVideo=function(H,C){C=C===void 0?!1:C;if(H!==this.currentPlayerIndex){_.AG().dispatch(d99(!1));if(this.isAd()&&!C){var S;(S=this.player)==null||S.notifyShortsAdSwipeEvent()}if((C=this.JSC$22423_cinematicController)!=null){var w;(w=C.currentCinematicEffect)==null||w.pause()}if((w=this.JSC$22423_cinematicController)!=null){var A;(A=w.currentCinematicEffect)==null||A.clear()}w=H>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(w));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var J,c,Y,M;A=H<0?(J=this.shortsProcessedPrevSequence)==null?void 0:(c=J[this.shortsProcessedPrevSequence.length+H])==null?void 0:c.command:(Y=this.shortsProcessedSequence)==null?void 0:(M=Y[H])==null?void 0:M.command;this.index=H;this.gestureType||(this.gestureType=w?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
A&&this.isVideoContentCommand(A)&&(this.ytComponentBehavior.resolveCommand(A,{form:{createScreenConfig:{clickedVisualElement:w?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(A&&this.isNonVideoContentCommand(A)){this.currentEndpoint=A;this.data=void 0;J=_.lJ();c=_.e(A,_.F7);var m,W;(c=(m=_.e(c==null?void 0:c.renderer,_.OOP))==null?void 0:(W=m.screenLoggingData)==null?void 0:W.screenVeType)&&_.kP(J,c);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo();(m=this.getActiveReelVideo(H))&&m.appendChild(this.overlayContainer)}var y,N;if(((y=this.reelWatchSequenceResponse)==null?0:y.continuationEndpoint)&&((N=this.reelWatchSequenceResponse)==null?0:N.entries)&&H===this.reelWatchSequenceResponse.entries.length-1){var b,u;y={contentPlaybackContext:_.dm({},(u=_.e((b=this.currentEndpoint)==null?void 0:b.commandMetadata,_.u9))==null?void 0:u.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:y})}var O,d,p;((O=this.reelWatchSequenceResponse)==null?0:O.prevContinuationEndpoint)&&H===-(((d=this.reelWatchSequenceResponse)==null?void 0:(p=d.prevEntries)==null?void 0:p.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.F.setMiniplayerPreview=function(H){H=(H===void 0?0:H)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var C,S,w=_.JA().resolve(_.Df),A={shortsData:void 0,shortsPreviewThumbnail:H?(C=this.shortsProcessedSequence)==null?void 0:(S=C[H])==null?void 0:S.thumbnail:void 0};_.WT(w,A)};
_.F.updateTitle=function(H){var C,S;H=(H==null?0:H.adSlots)?"":(S=H==null?void 0:(C=H.videoDetails)==null?void 0:C.title)!=null?S:"";_.M3(this.hostElement,"yt-update-title",H)};
_.F.registerPanel=function(H){var C=_.JA().resolve(_.jD);if(C){H=_.Z(H.engagementPanels||[]);for(var S=H.next();!S.done;S=H.next()){S=S.value;var w=this.getPanelContentIdentifier(S.engagementPanelSectionListRenderer),A=void 0,J=void 0;(J=(A=C).registerPanelContent)==null||J.call(A,w,S)}}};
_.F.getPanelIdentifier=function(H){var C;return(H==null?void 0:(C=H.identifier)==null?void 0:C.tag)||(H==null?void 0:H.panelIdentifier)||(H==null?void 0:H.targetId)};
_.F.getPanelContentIdentifier=function(H){var C;return(H==null?void 0:H.targetId)||(H==null?void 0:H.panelIdentifier)||(H==null?void 0:(C=H.identifier)==null?void 0:C.tag)};
_.F.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;_.AG().dispatch(d99(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.firstShortsData=void 0;_.AG().dispatch(X3T(!1));var H=_.JA().resolve(_.Ri);H.dismissedIndices=[];H.watchWhileIndices.clear();
this.isShortsMiniplayerActive()&&_.JA().resolve(_.Df).close(!0)};
_.F.processAppendReelWatchSequenceContinuationEntriesAction=function(H){var C=this,S;(S=this.intersectionObserver)==null||S.disconnect();H=H.appendReelWatchSequenceContinuationEntriesAction;if(H==null?0:H.entries){var w;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.k$(((w=this.reelWatchSequenceResponse)==null?void 0:w.entries)||[]),_.k$(H.entries)),continuationEndpoint:H.continuationEndpoint})}else if(H==null?0:H.prevEntries){var A;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.k$(((A=this.reelWatchSequenceResponse)==null?void 0:A.prevEntries)||[]),_.k$(H.prevEntries)),prevContinuationEndpoint:H.prevContinuationEndpoint});_.rT.addLowPriorityJob(function(){C.movePlayerToVideo(C.index);var J;(J=C.getActiveReelVideo(C.index))==null||J.scrollIntoView({block:"nearest",inline:C.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.rT.addLowPriorityJob(function(){C.observeShorts()},100)};
_.F.processWatchSequence=function(H){var C=this;return H.map(function(S){S=S.command;if(C.isVideoContentCommand(S)){var w=_.e(S,_.Ox);return{reelPlayerOverlayRenderer:_.e(w==null?void 0:w.overlay,_.Xgd),thumbnail:w.thumbnail,command:S}}return C.isNonVideoContentCommand(S)?(w=_.e(S,_.F7),{reelNonVideoContentRenderer:_.e(w==null?void 0:w.renderer,_.OOP),command:S}):{command:S}})};
_.F.calculateIntersectionObserverThreshold=function(){var H=_.mY(this.hostElement).querySelector("ytd-reel-video-renderer"),C=1;(H==null?0:H.offsetHeight)&&(H==null?0:H.offsetWidth)&&(C=Math.min(H.offsetHeight,this.shortsContainer.offsetHeight)/H.offsetHeight*(Math.min(H.offsetWidth,this.shortsContainer.offsetWidth)/H.offsetWidth));return Math.round(C*.6*10)/10};
_.F.isVideoContentCommand=function(H){_.JA().resolve(_.Ri);return!!_.e(H,_.Ox)};
_.F.isNonVideoContentCommand=function(H){_.JA().resolve(_.Ri);return!!_.e(H,_.F7)};
_.F.initCinematicController=function(){var H=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22423_cinematicController=new _.bv(this.shortsCinematicContainer,this.player);var C,S=_.e((C=this.data)==null?void 0:C.background,_.Cc);_.c9B(this.JSC$22423_cinematicController,S);_.ZrT(this.JSC$22423_cinematicController,TiD(S));_.Fjv(this.JSC$22423_cinematicController);_.rT.addLowPriorityJob(function(){H.moveCinematicsToVideo()})}};
_.F.handleMiniplayerNavigateShorts=function(H){H==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():H==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.F.handleSignalActionToggleShortsPictureInPicture=function(){if(_.JA().resolve(_.Df).pictureInPictureSupported()){var H=_.JA().resolve(_.Ri);if(_.E("web_shorts_pip")){var C=_.JA().resolve(_.Df);H.isShortsPipActive()?C.deactivate():C.isMiniplayerActive()||(_.LO().shortsPipActivation=!0,_.N6_(C))}}else(H=this.player)==null||H.togglePictureInPicture()};
_.JJ.Object.defineProperties(or.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.reelWatchSequenceResponse)!=null&&H.prevEntries)return this.processWatchSequence([].concat(_.k$(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){if(_.E("web_enable_shorts_sequence_refactor"))return this.index>0?this.shortsProcessedPrevSequence:this.shortsProcessedPrevSequence&&this.prevShortsSequence&&this.shortsProcessedPrevSequence.length===this.prevShortsSequence.length?this.shortsProcessedPrevSequence:[].concat(_.k$(this.prevShortsSequence));var H=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!H)return this.shortsProcessedPrevSequence;
if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var C=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.k$(this.prevShortsSequence.slice(0,C)),[H],_.k$(this.prevShortsSequence.slice(C+1)))}C=this.index+this.shortsProcessedPrevSequence.length;H.thumbnail=this.shortsProcessedPrevSequence[C].thumbnail;return[].concat(_.k$(this.shortsProcessedPrevSequence.slice(0,C)),[H],_.k$(this.shortsProcessedPrevSequence.slice(C+
1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.reelWatchSequenceResponse)!=null&&H.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var H=this;if(_.E("web_enable_shorts_sequence_refactor")){if(this.firstShortsData){if(!this.shortsSequence)return[this.firstShortsData];var C;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((C=this.shortsProcessedSequence)==null?void 0:C.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var S,w=_.e((S=this.firstShortsData)==null?void 0:S.command,_.Ox);if(w==null||!w.videoId)return this.shortsProcessedSequence;
w=this.getIndexInSequence(this.shortsSequence,w.videoId);if(w!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=w,_.rT.addLowPriorityJob(function(){H.transitionToVideoThrottle.fire(H.index);H.movePlayerToVideo(H.index)}));
return[].concat(_.k$(this.shortsSequence))}return[this.firstShortsData].concat(_.k$(this.shortsSequence))}}else if(this.data||this.shortsSequence){S=this.getCurrentShort();if(!S||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[S];if(S==null||!S.reelNonVideoContentRenderer)if(C=this.getIndexInSequence(this.shortsSequence,_.e(this.currentEndpoint,_.Ox).videoId),this.index===0&&C!==-1)return this.currentPlayerIndex=this.index=C,this.scrollToVideoThrottle.fire(this.index),
this.movePlayerToVideo(this.index),[].concat(_.k$(this.shortsSequence.slice(0,this.index)),[S],_.k$(this.shortsSequence.slice(this.index+1)));if(this.shortsProcessedSequence){S.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var A,J,c;C=((A=_.e((w=this.shortsProcessedSequence[0])==null?void 0:w.command,_.Ox))==null?void 0:A.videoId)===((c=_.e((J=this.shortsSequence[0])==null?void 0:J.command,_.Ox))==null?void 0:c.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.k$(this.shortsProcessedSequence.slice(0,
this.index)),[S],_.k$(this.shortsSequence.slice(C)))}return[S].concat(_.k$(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var H=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;H&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(H)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 H,C;return this.index===((H=this.reelWatchSequenceResponse)==null?void 0:(C=H.entries)==null?void 0:C.length)}var S;return!((S=this.reelWatchSequenceResponse)==null?0:S.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var H;(H=this.delayedActiveIndexUpdateDebouncer)==null||H.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var H,C,S;return this.isShortPlayable()||((C=_.e((H=this.data)==null?void 0:H.watchStatus,_.rdU))==null?void 0:(S=C.style)==null?void 0:S.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var H=this,C=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),S;if((this.data||C)&&(((S=this.data)==null?0:S.engagementPanels)||this.isAd()||C)){C=!1;this.activePanel="shorts-comments-panel";var w;S=_.Z(((w=this.data)==null?void 0:w.engagementPanels)||[]);for(w=S.next();!w.done;w=S.next())if(this.getPanelIdentifier(w.value.engagementPanelSectionListRenderer)===this.activePanel){C=!0;break}if(this.isPersistentPanelActive){var A=
_.JA().resolve(_.jD);_.X2(_.rT,function(){A.showPanel(H.activePanel,void 0,void 0,void 0,null)},100)}var J;
w=[].concat(_.k$(Object.values(((J=this.data)==null?void 0:J.engagementPanels)||{})));if(_.E("enable_preview_panel_for_shorts_search_suggested_action")){var c,Y,M,m,W;((m=_.e((c=this.data)==null?void 0:(Y=c.overlay)==null?void 0:(M=Y.reelPlayerOverlayRenderer)==null?void 0:M.metapanel,_.oPb))==null?void 0:(W=m.metadataItems)==null?void 0:W.find(function(y){var N,b;return((N=_.e(y,Ljh))==null?void 0:(b=N.icon)==null?void 0:b.iconType)==="SEARCH"}))!==void 0&&w.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}J=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);c=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return J===void 0&&c===void 0||(J==null?0:J.isDisabled)||(c==null?void 0:c.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!C?(C=w==null?void 0:w.findIndex(function(y){var N,
b;return((N=y.engagementPanelSectionListRenderer)==null?void 0:(b=N.identifier)==null?void 0:b.tag)==="shorts-comments-panel"}),C===-1||C===void 0||w!=null&&w.splice(C,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.fL("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.fL("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:_.fL("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.fL("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(_.k$(Object.values(w||
{})))):w}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.shortsProcessedSequence)==null?void 0:H[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var H=this,C,S,w;if((C=this.playerData)==null?0:(S=C.playabilityStatus)==null?0:(w=S.errorScreen)==null?0:w.playerInterstitialRenderer)return _.rT.addLowPriorityJob(function(){H.movePlayerToVideo(H.index)}),this.playerData.playabilityStatus.errorScreen;
var A,J;return((A=this.data)==null?void 0:A.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((J=this.data)==null?0:J.watchStatus)&&_.e(this.data.watchStatus,_.ci7)?(_.rT.addLowPriorityJob(function(){H.movePlayerToVideo(H.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.JJ.Object.defineProperties(or,{template:{configurable:!0,enumerable:!0,get:function(){if(U9T===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);U9T=H}H=U9T;return H}}});
or.prototype.onNextButtonDataChange=or.prototype.onNextButtonDataChange;or.prototype.onPrevButtonDataChange=or.prototype.onPrevButtonDataChange;or.prototype.onPersistentPanelActiveChanged=or.prototype.onPersistentPanelActiveChanged;or.prototype.lazyUpdateMiniplayerData=or.prototype.lazyUpdateMiniplayerData;or.prototype.onShortsPipActiveChanged=or.prototype.onShortsPipActiveChanged;or.prototype.setActiveIndex=or.prototype.setActiveIndex;or.prototype.graftNvcRenderer=or.prototype.graftNvcRenderer;
or.prototype.graftClientVisualElements=or.prototype.graftClientVisualElements;or.prototype.onActiveChanged=or.prototype.onActiveChanged;or.prototype.onShortsDismiss=or.prototype.onShortsDismiss;or.prototype.onShortUndoDismiss=or.prototype.onShortUndoDismiss;or.prototype.playerDataChanged=or.prototype.playerDataChanged;or.prototype.afterPlayerStarted=or.prototype.afterPlayerStarted;or.prototype.updateReelWatchSequenceResponse=or.prototype.updateReelWatchSequenceResponse;
or.prototype.unhideCurrentOverlay=or.prototype.unhideCurrentOverlay;or.prototype.onServiceRequestCompleted=or.prototype.onServiceRequestCompleted;or.prototype.engagementPanelsChanged=or.prototype.engagementPanelsChanged;or.prototype.onFullscreenChange=or.prototype.onFullscreenChange;or.prototype.onResize=or.prototype.onResize;or.prototype.setFirstShortsData=or.prototype.setFirstShortsData;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],or.prototype,"ytComponentBehavior",void 0);
_.D([_.v(_.j6.YtPageBehavior),_.K("design:type",Object)],or.prototype,"ytPageBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],or.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.Ix),_.K("design:type",Object)],or.prototype,"ironResizableBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],or.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.m4),_.K("design:type",Object)],or.prototype,"ytdDismissibleItemBehavior",void 0);
_.D([_.v(_.bU.YtdGuideStateAwareBehavior),_.K("design:type",Object)],or.prototype,"ytdGuideStateAwareBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],or.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],or.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],or.prototype,"playerData",void 0);_.D([_.V(),_.K("design:type",Object)],or.prototype,"reelWatchSequenceResponse",void 0);
_.D([_.V(),_.K("design:type",Object)],or.prototype,"cachedReelWatchSequenceResponse",void 0);_.D([_.V(),_.K("design:type",Object)],or.prototype,"cachedSequenceParams",void 0);_.D([_.V(),_.K("design:type",Object)],or.prototype,"cachedSequenceProvider",void 0);_.D([_.V(),_.K("design:type",Object)],or.prototype,"currentEndpoint",void 0);_.D([_.V(),_.K("design:type",Object)],or.prototype,"nextButtonData",void 0);_.D([_.V(),_.K("design:type",Object)],or.prototype,"prevButtonData",void 0);
_.D([_.V(),_.K("design:type",Object)],or.prototype,"isPreviousPageShorts",void 0);_.D([_.V(),_.K("design:type",Object)],or.prototype,"index",void 0);_.D([_.V(),_.K("design:type",Object)],or.prototype,"delayedActiveIndex",void 0);_.D([_.V(),_.K("design:type",Object)],or.prototype,"playablePreviousIndex",void 0);_.D([_.V(),_.K("design:type",Object)],or.prototype,"player",void 0);_.D([_.V(),_.K("design:type",Object)],or.prototype,"isPlayerPaused",void 0);
_.D([_.V({selector:NiT}),_.K("design:type",Object)],or.prototype,"isPlayerStarted",void 0);_.D([_.V(),_.K("design:type",Object)],or.prototype,"intersectionObserver",void 0);_.D([_.V(),_.K("design:type",Number)],or.prototype,"cinematicsInitializeJobId",void 0);_.D([_.V(),_.K("design:type",Number)],or.prototype,"updateMiniplayerDataJobId",void 0);_.D([_.V(),_.K("design:type",Object)],or.prototype,"fitToVisibleBounds",void 0);_.D([_.V(),_.K("design:type",Object)],or.prototype,"pageSubtype",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],or.prototype,"enablePreviousContinuation",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],or.prototype,"shortsPipEnabled",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],or.prototype,"isDark",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],or.prototype,"shortsViewTransitions",void 0);
_.D([_.V({selector:_.YQ,reflectToAttribute:!0}),_.K("design:type",Object)],or.prototype,"isFullscreen",void 0);_.D([_.V({selector:_.z_,reflectToAttribute:!0}),_.K("design:type",Object)],or.prototype,"isShortsPipActive",void 0);_.D([_.lA("#shorts-inner-container"),_.K("design:type",HTMLElement)],or.prototype,"shortsInnerContainer",void 0);_.D([_.lA("#back-nav-button ytd-button-renderer"),_.K("design:type",_.Qa)],or.prototype,"backNavButton",void 0);
_.D([_.lA("#shorts-container"),_.K("design:type",HTMLElement)],or.prototype,"shortsContainer",void 0);_.D([_.DS("error-screen"),_.K("design:type",HTMLElement)],or.prototype,"errorScreenContainer",void 0);_.D([_.DS("player"),_.K("design:type",Object)],or.prototype,"playerElement",void 0);_.D([_.DS("shorts-cinematic-container"),_.K("design:type",HTMLElement)],or.prototype,"shortsCinematicContainer",void 0);
_.D([_.DS("initial-player-container"),_.K("design:type",HTMLElement)],or.prototype,"initialPlayerContainer",void 0);_.D([_.V(),_.K("design:type",Object)],or.prototype,"buttonOverride",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],or.prototype,"anchoredPanelActive",void 0);_.D([_.V(),_.K("design:type",String)],or.prototype,"activePanel",void 0);_.D([_.V(),_.K("design:type",Object)],or.prototype,"isActive",void 0);
_.D([_.V({selector:y99,reflectToAttribute:!0}),_.K("design:type",Object)],or.prototype,"smallScreenPersistentPanel",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],or.prototype,"isPersistentPanelActive",void 0);_.D([_.V(),_.K("design:type",Object)],or.prototype,"smallScreenSqueezeBack",void 0);_.D([_.V(),_.K("design:type",Object)],or.prototype,"enableScrollIntoViewCenter",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],or.prototype,"formatFirst",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],or.prototype,"enableFlexibleOverlay",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],or.prototype,"extractOverlay",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],or.prototype,"useAspectRatio",void 0);_.D([_.V(),_.K("design:type",Object)],or.prototype,"panelContainer",void 0);_.D([_.V(),_.K("design:type",Object)],or.prototype,"overlayContainer",void 0);
_.D([_.V(),_.K("design:type",Object)],or.prototype,"isShortsInitialized",void 0);_.D([_.V(),_.K("design:type",Object)],or.prototype,"firstShortsData",void 0);_.D([_.l("reelWatchSequenceResponse"),_.K("design:type",Object),_.K("design:paramtypes",[])],or.prototype,"prevShortsSequence",null);_.D([_.l("data","prevShortsSequence"),_.K("design:type",Object),_.K("design:paramtypes",[])],or.prototype,"shortsProcessedPrevSequence",null);
_.D([_.l("reelWatchSequenceResponse"),_.K("design:type",Object),_.K("design:paramtypes",[])],or.prototype,"shortsSequence",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],or.prototype,"setFirstShortsData",null);_.D([_.l("data","shortsSequence","firstShortsData"),_.K("design:type",Object),_.K("design:paramtypes",[])],or.prototype,"shortsProcessedSequence",null);
_.D([_.V({reflectToAttribute:!0}),_.l("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],or.prototype,"isUpArrowHidden",null);_.D([_.V({reflectToAttribute:!0}),_.l("reelWatchSequenceResponse","index","endOfNextContinuation"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],or.prototype,"isDownArrowHidden",null);
_.D([_.V(),_.l("index"),_.K("design:type",Number),_.K("design:paramtypes",[])],or.prototype,"activeIndex",null);_.D([_.l("isShortPlayable","data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],or.prototype,"shouldRenderOfflineContent",null);_.D([_.Gz("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],or.prototype,"onResize",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],or.prototype,"anchoredEngagementPanels",null);
_.D([_.V(),_.K("design:type",Object)],or.prototype,"watchWhileEngagementPanels",void 0);_.D([_.fx("isFullscreen"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],or.prototype,"onFullscreenChange",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],or.prototype,"engagementPanelsChanged",null);
_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.j4]),_.K("design:returntype")],or.prototype,"onServiceRequestCompleted",null);_.D([_.l("data","shortsSequence","index"),_.K("design:type",Object),_.K("design:paramtypes",[])],or.prototype,"activeReel",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],or.prototype,"unhideCurrentOverlay",null);
_.D([_.fx("currentEndpoint"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],or.prototype,"updateReelWatchSequenceResponse",null);_.D([_.fx("isPlayerStarted"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],or.prototype,"afterPlayerStarted",null);_.D([_.l("playerData","reelWatchSequenceResponse","data"),_.K("design:type",Object),_.K("design:paramtypes",[])],or.prototype,"errorScreen",null);
_.D([_.l("errorScreen"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],or.prototype,"hasError",null);_.D([_.fx("playerData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype",Promise)],or.prototype,"playerDataChanged",null);_.D([_.Gz("yt-dismissible-item-undo-feedback"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],or.prototype,"onShortUndoDismiss",null);
_.D([_.Gz("yt-disable-lockup-interaction"),_.K("design:type",Function),_.K("design:paramtypes",[Object]),_.K("design:returntype")],or.prototype,"onShortsDismiss",null);_.D([_.XJ("active"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],or.prototype,"onActiveChanged",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],or.prototype,"graftClientVisualElements",null);
_.D([_.fx("currentPlayerIndex"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],or.prototype,"graftNvcRenderer",null);_.D([_.fx("index"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],or.prototype,"setActiveIndex",null);_.D([_.fx("isShortsPipActive"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],or.prototype,"onShortsPipActiveChanged",null);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],or.prototype,"lazyUpdateMiniplayerData",null);_.D([_.V(),_.K("design:type",Object)],or.prototype,"onOverlayDensityChanged",void 0);_.D([_.fx("isPersistentPanelActive"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],or.prototype,"onPersistentPanelActiveChanged",null);
_.D([_.fx("index","data","isUpArrowHidden"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],or.prototype,"onPrevButtonDataChange",null);_.D([_.fx("index","data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],or.prototype,"onNextButtonDataChange",null);_.D([_.h({is:"ytd-shorts"})],or);_.n$.registerService(_.bcE,or);
_.n6();
}catch(e){_._DumpException(e)}
try{
_.hk("JzFVk");
var ZPv;var c_V;var iv=function(){return _.X.apply(this,arguments)||this};
_.G(iv,_.X);iv.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
iv.prototype.computeBlueBottomLink=function(H){return H};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],iv.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],iv.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],iv.prototype,"data",void 0);_.D([_.V({computed:"computeIcon_(data.bottomIcon)"}),_.K("design:type",String)],iv.prototype,"bottomIcon",void 0);
_.D([_.V({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.K("design:type",Boolean)],iv.prototype,"enableBlueBottomLink",void 0);_.D([_.h({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],iv);
_.B(iv,"ytd-web-answer-renderer",function(){if(c_V!==void 0)return c_V;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return c_V=H},{mode:_.mn("kevlar_poly_si_batch_j035")?1:2});var YnB;var CW=function(){var H=_.X.apply(this,arguments)||this;H.hasChipBar=!1;return H};
_.G(CW,_.X);CW.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}}};
CW.prototype.computeHasChipBar=function(H){return!(H==null||!H.chipBar)};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],CW.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],CW.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],CW.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.K("design:type",Object)],CW.prototype,"hasChipBar",void 0);_.D([_.h({is:"ytd-search-header-renderer",disableElementRegistration:!0})],CW);
_.B(CW,"ytd-search-header-renderer",function(){if(YnB!==void 0)return YnB;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return YnB=H},{mode:1});var zW4;var SF=function(){return _.X.apply(this,arguments)||this};
_.G(SF,_.X);SF.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],SF.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],SF.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],SF.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-page-continuation"})],SF);
_.B(SF,"ytd-page-continuation",function(){if(zW4!==void 0)return zW4;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return zW4=H},{mode:1});var M79;var qnc;var TUh;var mi4=function(){return _.X.apply(this,arguments)||this};
_.G(mi4,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],mi4.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],mi4.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],mi4);
_.B(mi4,"ytd-watch-card-one-vs-one-event",function(){if(TUh!==void 0)return TUh;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return TUh=H},{mode:1});var W1c=function(){return _.X.apply(this,arguments)||this};
_.G(W1c,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],W1c.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],W1c.prototype,"data",void 0);_.D([_.h({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],W1c);
_.B(W1c,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(qnc!==void 0)return qnc;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return qnc=H},{mode:1});var y_P;var NUh=function(){return _.X.apply(this,arguments)||this};
_.G(NUh,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],NUh.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],NUh.prototype,"data",void 0);_.D([_.h({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],NUh);
_.B(NUh,"ytd-banner-and-box-hero-image-renderer",function(){if(y_P!==void 0)return y_P;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return y_P=H},{mode:1});var bPT;var s3=function(){var H=_.X.apply(this,arguments)||this;H.modern=_.E("web_modern_buttons");return H};
_.G(s3,_.X);s3.prototype.computeIcon=function(){var H,C,S=(H=this.data)==null?void 0:(C=H.icon)==null?void 0:C.iconType;if(S)return _.bJ(S)};
s3.prototype.computeButtonShape=function(){var H;return{buttonText:_.jt((H=this.data)==null?void 0:H.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.JJ.Object.defineProperties(s3.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"}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],s3.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],s3.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],s3.prototype,"modern",void 0);_.D([_.V({type:_.E("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.l("data.style"),_.K("design:type",Object),_.K("design:paramtypes",[])],s3.prototype,"buttonColor",null);
_.D([_.h({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],s3);
_.B(s3,"ytd-call-to-action-button-renderer",function(){if(bPT!==void 0)return bPT;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return bPT=H},{mode:1});var EMB;var jF=function(){return _.X.apply(this,arguments)||this};
_.G(jF,_.X);jF.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.mY(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.TG(this.data.leftThumbnail.thumbnails,216)+")")};
jF.prototype.onLeftThumbnailChanged=jF.prototype.onLeftThumbnailChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],jF.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],jF.prototype,"data",void 0);_.D([_.fx("data.leftThumbnail"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],jF.prototype,"onLeftThumbnailChanged",null);_.D([_.h({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],jF);
_.B(jF,"ytd-collage-hero-image-renderer",function(){if(EMB!==void 0)return EMB;var H=document.createElement("template");_.f(H,'\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>');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return EMB=H},{mode:1});var eWt;var wF=function(){return _.X.apply(this,arguments)||this};
_.G(wF,_.X);wF.prototype.computeStyle=function(H){return H};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],wF.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],wF.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.K("design:type",String)],wF.prototype,"componentStyle",void 0);_.D([_.h({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],wF);
_.B(wF,"ytd-single-hero-image-renderer",function(){if(eWt!==void 0)return eWt;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return eWt=H},{mode:1});var udV;var A8=function(){return _.X.apply(this,arguments)||this};
_.G(A8,_.X);_.F=A8.prototype;
_.F.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:_.E("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.F.computeSubtitle=function(H){if(this.data){var C;if(this.data.upcomingEventData){H=_.jt(H.subtitle);var S=Number(this.data.upcomingEventData.startTime);isNaN(S)||(C=_.sx(_.Pt(H,S)))}else C=H.subtitle;return C}};
_.F.onHeroTap=function(H){H.preventDefault();var C=this.data&&this.data.navigationEndpoint;!C||!_.ww(_.Ar(H),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.ww(_.Ar(H),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.E("kevlar_watchcard_hero_video_renderer_killswitch")?_.M3(this.hostElement,"yt-navigate",{navigationEndpoint:C}):this.ytComponentBehavior.resolveCommand(C))};
_.F.computeHeroTabIndex=function(H){return H&&H.simpleText?-1:0};
_.F.computeHeroRole=function(H){return H&&H.simpleText?"":"link"};
_.F.computeIsReminderButtonPresent=function(H){return!(!H||!H.reminderButton)};
_.F.computeHideBottomItems=function(H){return!(this.computeIsReminderButtonPresent(H)||H.subtitle)};
_.F.dataChanged=function(){var H=this.get("data.buttons.buttonRenderer.serviceEndpoint"),C;((C=_.e(H==null?void 0:H.commandMetadata,_.R4))==null?0:C.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(H)};
A8.prototype.dataChanged=A8.prototype.dataChanged;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],A8.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],A8.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],A8.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],A8.prototype,"data",void 0);
_.D([_.V({computed:"computeSubtitle(data)"}),_.K("design:type",String)],A8.prototype,"subtitle",void 0);_.D([_.V({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],A8.prototype,"isReminderButtonPresent",void 0);_.D([_.V({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],A8.prototype,"hideBottomItems",void 0);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],A8.prototype,"dataChanged",null);_.D([_.h({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],A8);
_.B(A8,"ytd-watch-card-hero-video-renderer",function(){if(udV!==void 0)return udV;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return udV=H},{mode:1});var GdV;var J8=function(){return _.X.apply(this,arguments)||this};
_.G(J8,_.X);_.F=J8.prototype;_.F.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"}}}};
_.F.computeTitleBadges=function(H){return H?[H]:[]};
_.F.computeHeaderStyle=function(H){return H?H.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.F.computeAvatarAriaLabel=function(H){if(H){var C,S,w,A;return(A=(C=H.avatar)==null?void 0:(S=C.accessibility)==null?void 0:(w=S.accessibilityData)==null?void 0:w.label)!=null?A:_.jt(H==null?void 0:H.title)}};
_.F.computeAvatarHeight=function(H){return H==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.F.computeBadgeRowClass=function(H){return(H==null?0:H[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],J8.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],J8.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],J8.prototype,"data",void 0);_.D([_.V({computed:"computeTitleBadges(data.titleBadge)"}),_.K("design:type",Array)],J8.prototype,"titleBadges",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.K("design:type",String)],J8.prototype,"headerStyle",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.K("design:type",String)],J8.prototype,"badgeRowClass",void 0);_.D([_.h({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],J8);
_.B(J8,"ytd-watch-card-rich-header-renderer",function(){if(GdV!==void 0)return GdV;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return GdV=H},{mode:1});var f1T;var vMT;var FC=function(){return _.X.apply(this,arguments)||this};
_.G(FC,_.X);FC.prototype.onMetadataTap=function(H){var C=this.data&&this.data.navigationEndpoint;C&&!_.ww(_.Ar(H),this.hostElement,["A".toString()])&&_.M3(this.hostElement,"yt-navigate",{endpoint:C})};
_.JJ.Object.defineProperties(FC.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 H;if(this.data.upcomingEventData){var C=_.jt(this.data.subtitle),S=Number(this.data.upcomingEventData.startTime);isNaN(S)||(H=_.sx(_.Pt(C,S)))}else H=this.data.subtitle;return H}}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],FC.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],FC.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.l("data.style"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],FC.prototype,"isCondensed",null);_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],FC.prototype,"subtitle",null);
_.D([_.h({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],FC);
_.B(FC,"ytd-watch-card-compact-video-renderer",function(){if(vMT!==void 0)return vMT;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return vMT=H},{mode:1});var l1D;var V7T=function(){return _.X.apply(this,arguments)||this};
_.G(V7T,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],V7T.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],V7T.prototype,"data",void 0);_.D([_.h({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],V7T);
_.B(V7T,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(l1D!==void 0)return l1D;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return l1D=H},{mode:1});var Zu=function(){return _.X.apply(this,arguments)||this};
_.G(Zu,_.X);Zu.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}}}}};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Zu.prototype,"ytRendererStamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Zu.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Zu.prototype,"data",void 0);_.D([_.h({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],Zu);
_.B(Zu,"ytd-vertical-watch-card-list-renderer",function(){if(f1T!==void 0)return f1T;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return f1T=H},{mode:1});var oMT;var c1=function(){var H=_.X.apply(this,arguments)||this;H.ariaExpanded="false";return H};
_.G(c1,_.X);_.F=c1.prototype;_.F.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.F.dataChanged=function(){var H;this.currentSeasonIndex=((H=this.data)==null?void 0:H.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.F.computeEpisodesInfo=function(H,C,S){if(H!==void 0&&C.length===H.length)return H[S]};
_.F.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.F.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.F.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.F.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.F.getUppercaseSimpleString=function(H){return this.ytRendererBehavior.getSimpleString(H).toUpperCase()};
_.F.updateCurrentSeasonIndexFromBinding=function(H){this.currentSeasonIndex=H.detail.value};
c1.prototype.onIronOverlayClosed=c1.prototype.onIronOverlayClosed;c1.prototype.currentSeasonIndexChanged=c1.prototype.currentSeasonIndexChanged;c1.prototype.dataChanged=c1.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],c1.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],c1.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],c1.prototype,"data",void 0);
_.D([_.V(),_.K("design:type",String)],c1.prototype,"label",void 0);_.D([_.V({value:0}),_.K("design:type",Number)],c1.prototype,"currentSeasonIndex",void 0);_.D([_.V({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.K("design:type",Object)],c1.prototype,"episodesInfo",void 0);_.D([_.V({value:"false"}),_.K("design:type",Object)],c1.prototype,"ariaExpanded",void 0);_.D([_.lA("#lists"),_.K("design:type",Object)],c1.prototype,"lists",void 0);
_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],c1.prototype,"dataChanged",null);_.D([_.XJ("currentSeasonIndex"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],c1.prototype,"currentSeasonIndexChanged",null);_.D([_.Gz("iron-overlay-closed"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],c1.prototype,"onIronOverlayClosed",null);
_.D([_.h({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],c1);
_.B(c1,"ytd-watch-card-section-dropdown-renderer",function(){if(oMT!==void 0)return oMT;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return oMT=H},{mode:1});var OPD;var YX=function(){var H=_.X.apply(this,arguments)||this;H.isSearch=!1;return H};
_.G(YX,_.X);YX.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}}}}};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],YX.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],YX.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],YX.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],YX.prototype,"isSearch",void 0);_.D([_.h({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],YX);
_.B(YX,"ytd-watch-card-section-sequence-renderer",function(){if(OPD!==void 0)return OPD;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);
return OPD=H},{mode:1});var X7T=_.n(function(H){return _.q("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.q(_.V4,{data:function(){return H.data().ctaButton}},{buttonViewModel:_.rc}),_.q(_.uZ,{text:function(){return H.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"Dk");
X7T.idomCompat=!0;_.qs(X7T,"ytd-button-banner-view-model",{props:{data:_.GH}});var zD=function(){var H=_.X.apply(this,arguments)||this;H.isSearch=!1;return H};
_.G(zD,_.X);
zD.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"}}}};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],zD.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],zD.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],zD.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,value:!0}),_.K("design:type",Boolean)],zD.prototype,"rounded",void 0);_.D([_.V(),_.K("design:type",Object)],zD.prototype,"isSearch",void 0);
_.D([_.h({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],zD);
_.B(zD,"ytd-universal-watch-card-renderer",function(){if(M79!==void 0)return M79;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return M79=H},{mode:1});var QVT;_.qs(_.n(function(H){var C=H.data;var S;H=!((S=_.JA().resolve(_.AA(_.sU)))==null||!S());S={};return _.q("overview-message-view-model",{class:_.eJ("ytwOverviewMessageViewModelHost",(S.ytwOverviewMessageViewModelDarkBackground=H,S.ytwOverviewMessageViewModelLightBackground=!H,S))},_.q(_.T,{cond:function(){return C().primaryImage},
then:function(w){return _.q(_.Jg,{data:w,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.q(_.T,{cond:function(){return C().primaryText},
then:function(){return _.q("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.q(_.uZ,{text:function(){return C().primaryText}}))}}),_.q(_.T,{cond:function(){return C().secondaryText},
then:function(){return _.q("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.q(_.uZ,{text:function(){return C().secondaryText}}))}}))},"Ek"),"overview-message-view-model",{props:{data:_.GH}});_.qs(_.S31,"ytd-overview-answer-view-model",{props:{data:_.GH}});var MY=function(){return _.X.apply(this,arguments)||this};
_.G(MY,_.X);MY.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"}}}};
MY.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],MY.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],MY.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.EH),_.K("design:type",Object)],MY.prototype,"ytContinuationHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],MY.prototype,"data",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],MY.prototype,"isSearch",void 0);
_.D([_.h({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],MY);
_.B(MY,"ytd-secondary-search-container-renderer",function(){if(QVT!==void 0)return QVT;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);
return QVT=H},{mode:1});var dih;var qY=function(){var H=_.X.apply(this,arguments)||this;H.renderSecondarySearchContainer=!1;H.isSearch=!1;return H};
_.G(qY,_.X);_.F=qY.prototype;_.F.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"}}}};
_.F.created=function(){var H=this;this.boundStampSecondarySearchContainerIfFits=function(){H.stampSecondarySearchContainerIfFits()};
_.np("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.F.computeIsSearchFrictionPage=function(H){var C,S,w,A,J;H=H==null?void 0:(C=H.primaryContents)==null?void 0:(S=C.sectionListRenderer)==null?void 0:(w=S.contents)==null?void 0:(A=w[0])==null?void 0:(J=A.itemSectionRenderer)==null?void 0:J.contents;if(!H)return!1;C=_.Z(H);for(S=C.next();!S.done;S=C.next())if(w=void 0,(w=S.value)==null?0:w.searchFrictionViewModel)return!0;return!1};
_.F.computeShowSecondaryColumn=function(H,C){return!!(C&&C.secondaryContents&&H)};
_.F.activeChanged=function(){var H=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.uA(this,this.debounceStampSecondarySearchContainerIfFits)),_.HI(function(){H.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.uA(this,this.debounceStampSecondarySearchContainerIfFits))};
_.F.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.F.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.F.debounceStampSecondarySearchContainerIfFits=function(){_.iJ(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.F.onRetrieveLocation=function(H,C){C.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);H.stopPropagation()};
_.F.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
qY.prototype.dataChanged=qY.prototype.dataChanged;qY.prototype.onRetrieveLocation=qY.prototype.onRetrieveLocation;qY.prototype.persistentGuideChanged=qY.prototype.persistentGuideChanged;qY.prototype.activeChanged=qY.prototype.activeChanged;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],qY.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],qY.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.bU.YtdGuideStateAwareBehavior),_.K("design:type",Object)],qY.prototype,"ytdGuideStateAwareBehavior",void 0);_.D([_.v(_.Ix),_.K("design:type",Object)],qY.prototype,"ironResizableBehavior",void 0);_.D([_.V(),_.K("design:type",Boolean)],qY.prototype,"active",void 0);_.D([_.V(),_.K("design:type",Object)],qY.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,value:function(){return _.E("enable_desktop_search_bigger_thumbs")}}),
_.K("design:type",Boolean)],qY.prototype,"useBiggerThumbs",void 0);_.D([_.V({reflectToAttribute:!0,value:function(){return _.z9("desktop_search_bigger_thumbs_style")}}),
_.K("design:type",String)],qY.prototype,"biggerThumbsStyle",void 0);_.D([_.V(),_.K("design:type",Object)],qY.prototype,"renderSecondarySearchContainer",void 0);_.D([_.V({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.K("design:type",Boolean)],qY.prototype,"showSecondaryColumn",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.K("design:type",Boolean)],qY.prototype,"isSearchFrictionPage",void 0);
_.D([_.V(),_.K("design:type",Object)],qY.prototype,"isSearch",void 0);_.D([_.fx("active"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qY.prototype,"activeChanged",null);_.D([_.fx("guidePersistentAndVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qY.prototype,"persistentGuideChanged",null);
_.D([_.Gz("yt-retrieve-location"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],qY.prototype,"onRetrieveLocation",null);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qY.prototype,"dataChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],qY);
_.B(qY,"ytd-two-column-search-results-renderer",function(){if(dih!==void 0)return dih;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return dih=H},{mode:1});var TD=function(){var H=_.X.apply(this,arguments)||this;H.hasSearchHeader=!1;H.hasSecondaryContent=!1;H.hasBiggerThumbs=_.E("enable_desktop_search_bigger_thumbs");H.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return H};
_.G(TD,_.X);_.F=TD.prototype;_.F.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:_.eX(["aa","eocs"])}}};
_.F.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.F.loadPage_=function(H){this.initCsi();H&&(this.data=H,_.np("REFINEMENTS_TUPLE",["FromSearchResponse",H.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.ss(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.F.initCsi=function(){_.mXK("results",["ol","cpt"])};
_.F.updateTitle=function(){var H=_.Up(window.location.href,"q");H||(H=_.Up(window.location.href,"search_query"));_.M3(this.hostElement,"yt-update-title",H||"")};
_.F.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.F.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.E("web_srp_data_changed_terminate_imp_killswitch")||_.q3(this.hostElement,"yt-terminate-video-preview-action")};
_.F.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.F.computeHasSearchHeader=function(H){var C;H=H==null?void 0:(C=H.header)==null?void 0:C.searchHeaderRenderer;return!!H&&(!!H.searchFilterButton||!!H.chipBar)};
_.F.computeHasSecondaryContent=function(H){var C,S;return!!(H==null?0:(C=H.contents)==null?0:(S=C.twoColumnSearchResultsRenderer)==null?0:S.secondaryContents)};
_.JJ.Object.defineProperties(TD,{template:{configurable:!0,enumerable:!0,get:function(){if(ZPv===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);ZPv=H}H=ZPv;return H}}});
TD.prototype.onReloadContinuationFinish=TD.prototype.onReloadContinuationFinish;TD.prototype.dataChanged=TD.prototype.dataChanged;_.D([_.v(_.j6.YtPageBehavior),_.K("design:type",Object)],TD.prototype,"ytPageBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],TD.prototype,"actionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],TD.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],TD.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.EH),_.K("design:type",Object)],TD.prototype,"ytContinuationHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],TD.prototype,"data",void 0);_.D([_.V({value:!0}),_.K("design:type",Boolean)],TD.prototype,"monitorScroll",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],TD.prototype,"hasSearchHeader",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],TD.prototype,"hasSecondaryContent",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],TD.prototype,"hasBiggerThumbs",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],TD.prototype,"dataChanged",null);
_.D([_.Gz("yt-reload-continuation-finish"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],TD.prototype,"onReloadContinuationFinish",null);_.D([_.h({is:"ytd-search"})],TD);_.n$.registerService(_.N_W,TD);
_.n6();
}catch(e){_._DumpException(e)}
try{
_.hk("h8y2qb");
var yF3=function(H){if(H=_.tzU(H)){var C;(C=H.sources)!=null&&C[0]?(C=_.gNu(H),C=C<1?"VERTICAL":C>1?"HORIZONTAL":"SQUARE"):C=void 0;return C}},w_=function(H){_.hy.call(this,"upload");
this.opts.query=H},bzr=function(H,C){return _.q(NbK,{data:H,
onYtNavigate:C})},EOR=function(H,C){return _.Ea(H.entities,"pageHeaderEntity",C)},u5r=function(H,C){return H.map(function(S){if(S.tabRenderer)return eVo(S.tabRenderer);
if(S.expandableTabRenderer&&C){var w=S.expandableTabRenderer;return{customTabRenderable:function(){return C(w)}}}return{}})},eVo=function(H){return{identifier:H.tabIdentifier,
aTagConfig:_.U4({innertubeCommand:H.endpoint,forceNewState:!0}),title:H.title,selected:H.selected,disabled:H.unselectable,icon:H.icon}},GBK=function(H){return _.Md({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:H})},fGj=function(H){if(!_.Yi(document,"gtm-noscript")){var C=document.createElement("noscript");
C.id="gtm-noscript";C.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+H+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(C)}};_.Zh(w_,_.hy);w_.prototype.JSC$10087_setLabel=function(H){w_.superClass_.JSC$10087_setLabel.call(this,H);return this};
w_.prototype.addUploadMetadata=function(H,C){w_.superClass_.addUploadMetadata.call(this,H,C);return this};var vOt=function(H){if(H!=="youtubebanner"&&H!=="youtube-channel-banner")throw Error("Fo");w_.call(this,H)};
_.G(vOt,w_);vOt.prototype.JSC$10087_setLabel=function(H){w_.prototype.JSC$10087_setLabel.call(this,H);return this};
vOt.prototype.addUploadMetadata=function(H,C){w_.prototype.addUploadMetadata.call(this,H,C);return this};var lG_=[_.Ix,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(H){_.PM(H).path[0]!==this&&(this.resetLayout(),H.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var H=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.vW(this._layoutDebouncer,_.p7,H);_.lk(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var H=this;requestAnimationFrame(function(){H.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(H){this.resizerShouldNotify(H)&&this._notifyDescendant(H)},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 VWp=[_.Ahb,{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(H,C){var S=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[H];if(!S)throw new ReferenceError(this._getUndefinedMsg(H));H=this._boundEffect(S,C||{});H.setUp();return H},
_effectsChanged:function(H,C,S){this._tearDownEffects();H&&S&&(H.split(" ").forEach(function(w){var A;w!==""&&((A=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[w])?this._effects.push(this._boundEffect(A,C[w])):console.warn(this._getUndefinedMsg(w)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(H,C){C=C||{};var S=parseFloat(C.startsAt||0),w=parseFloat(C.endsAt||1),A=w-S,J=function(){};
w=S===0&&w===1?H.run:function(c,Y){H.run.call(this,Math.max(0,(c-S)/A),Y)};
return{setUp:H.setUp?H.setUp.bind(this,C):J,run:H.run?w.bind(this):J,tearDown:H.tearDown?H.tearDown.bind(this):J}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(H){H.setUp()!==!1&&this._effectsRunFn.push(H.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(H){H.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(H,C){this._effectsRunFn&&this._effectsRunFn.forEach(function(S){S(H,C)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var H=this._clampedScrollTop;this._updateScrollState(H);this.threshold>0&&this._setThresholdTriggered(H>=this.threshold)}},
_getDOMRef:function(H){console.warn("_getDOMRef","`"+H+"` is undefined")},
_getUndefinedMsg:function(H){return"Scroll effect `"+H+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+H+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Go`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(H){var C={};H=parseFloat(H.scalar);C.background=this._getDOMRef("background");C.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");C.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");C.deltaBg=C.backgroundFrontLayer.offsetHeight-C.background.offsetHeight;C.deltaBg===0?(isNaN(H)&&(H=.8),C.deltaBg=(this._dHeight||0)*H):(isNaN(H)&&(H=
1),C.deltaBg*=H);this._fxParallaxBackground=C},
run:function(H){var C=this._fxParallaxBackground;this.transform("translate3d(0px, "+C.deltaBg*Math.min(1,H)+"px, 0px)",C.backgroundFrontLayer);C.backgroundRearLayer&&this.transform("translate3d(0px, "+C.deltaBg*Math.min(1,H)+"px, 0px)",C.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var oOp;var Oz9;var XpR=function(){};
_.F=XpR.prototype;_.F._scrollTargetChanged=function(){};
_.F.scroll=function(){};
_.F._isValidScrollTarget=function(){};
_.F._toggleScrollListener=function(){};
_.F.toggleScrollListener=function(){};
_.F.createEffect=function(){};
_.F._effectsChanged=function(){};
_.F._layoutIfDirty=function(){};
_.F._boundEffect=function(){};
_.F._setUpEffect=function(){};
_.F._tearDownEffects=function(){};
_.F._runEffects=function(){};
_.F._scrollHandler=function(){};
_.F._scrollStateChanged=function(){};
_.F._getUndefinedMsg=function(){};
_.F.notifyResize=function(){};
_.F.assignParentResizable=function(){};
_.F.stopResizeNotificationsFor=function(){};
_.F._subscribeIronResize=function(){};
_.F._unsubscribeIronResize=function(){};
_.F.resizerShouldNotify=function(){};
_.F._onDescendantIronResize=function(){};
_.F._fireResize=function(){};
_.F._onIronRequestResizeNotifications=function(){};
_.F._parentResizableChanged=function(){};
_.F._notifyDescendant=function(){};
_.F._requestResizeNotifications=function(){};
_.F._findParent=function(){};
_.F._appResetLayoutHandler=function(){};
_.F.resetLayout=function(){};
_.F._notifyLayoutChanged=function(){};
_.F._notifyDescendantResize=function(){};
_.F._setThresholdTriggered=function(){};
XpR=_.hr({_template:function(){if(Oz9!==void 0)return Oz9;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;oOp===void 0&&(oOp=document.createElement("template"));var w=oOp;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return Oz9=H},
is:"tp-yt-app-header",behaviors:[VWp,lG_],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 H=_.PM(this.$.slot).getDistributedNodes(),C=0,S;S=H[C];C++)if(S.nodeType===Node.ELEMENT_NODE)if(S.hasAttribute("sticky")){this._stickyElRef=S;break}else this._stickyElRef||(this._stickyElRef=S);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var H=this._clampedScrollTop,C=this._height===0||H===0,S=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;C||this._updateScrollState(0,!0);this._mayMove()?this._dHeight=this._stickyEl?this._height-this._stickyEl.offsetHeight:0:this._dHeight=0;this._stickyElTop=this._stickyEl?this._stickyEl.offsetTop:0;this._setUpEffect();C?this._updateScrollState(H,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=S}},
_updateScrollState:function(H,C){if(this._height!==0){var S=0,w=this._top;var A=this._maxHeaderTop;var J=H-this._lastScrollTop,c=Math.abs(J),Y=H>this._lastScrollTop,M=performance.now();this._mayMove()&&(S=this._clamp(this.reveals?w+J:H,0,A));H>=this._dHeight&&(S=this.condenses&&!this.fixed?Math.max(this._dHeight,S):S,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&c<100){if(M-this._initTimestamp>300||this._wasScrollingDown!==Y)this._initScrollTop=H,this._initTimestamp=M;H>=A&&
(Math.abs(this._initScrollTop-H)>30||c>10?(Y&&H>=A?S=A:!Y&&H>=this._dHeight&&(S=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((S-w)/(J/(M-this._lastTimestamp)),0,300)+"ms"):S=this._top)}A=this._dHeight===0?H>0?1:0:S/this._dHeight;C||(this._lastScrollTop=H,this._top=S,this._wasScrollingDown=Y,this._lastTimestamp=M);if(C||A!==this._progress||w!==S||H===0)this._progress=A,this._runEffects(A,S),this._transformHeader(S)}},
_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(H){this.translate3d(0,-H+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&H>=this._stickyElTop?Math.min(H,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(H,C,S){return Math.min(S,Math.max(C,H))},
_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),_.PM(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(H){switch(H){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.PM(this).querySelector("[main-title]");case "condensedTitle":return _.PM(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var Qfq;var dXi;_.hr({_template:function(){if(dXi!==void 0)return dXi;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;Qfq===void 0&&(Qfq=document.createElement("template"));var w=Qfq;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return dXi=H},
is:"tp-yt-app-header-layout",behaviors:[lG_],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.PM(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var H=this.header;if(this.isAttached&&H){this.$.wrapper.classList.remove("initializing");H.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)H.style.left=
"",H.style.right="";else{var C=this.getBoundingClientRect(),S=document.documentElement.clientWidth-C.right;H.style.left=C.left+"px";H.style.right=S+"px"}C=this.$.contentContainer.style;S=H.offsetHeight;H.fixed&&!H.condenses&&this.hasScrollingRegion?(C.marginTop=S+"px",C.paddingTop=""):(C.paddingTop=S+"px",C.marginTop="")}}});var Pnq=new _.mi("alertCommand");var $Xq=new _.mi("manageLabsStateCommand");var ppj=new _.mi("inlineFormRenderer");var kBR=new _.mi("playlistSidebarPrimaryInfoRenderer");var hVO=new _.mi("productDetailsThumbnailRenderer"),nOi=new _.mi("productDetailsVariantRenderer"),rFr=new _.mi("productDetailsVariantOptionRenderer"),BbR=new _.mi("productDetailsOffersContainerRenderer"),DXt=new _.mi("productDetailsOfferRenderer");var Kfi=new _.mi("shoppingFlaggingRenderer");var tW_=new _.mi("playlistBylineRenderer");var Lfp=new _.mi("insertChannelTabCommand");var AW=function(){return _.oZ.apply(this,arguments)||this};
_.G(AW,_.oZ);_.F=AW.prototype;_.F.activeChanged=function(){if(this.active){var H=_.mY(this.hostElement).querySelector("#header");H&&_.M3(H,"iron-resize");window.addEventListener("scroll",_.uA(this,this.onScroll))}else window.removeEventListener("scroll",_.uA(this,this.onScroll)),_.M3(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.F.guideVisibleChanged=function(){var H=_.mY(this.hostElement).querySelector("#header");H&&_.M3(H,"iron-resize")};
_.F.onScroll=function(){var H=this;_.iJ(this,"onScroll",function(){var C=_.mY(H.hostElement).querySelector("#header");C&&C.polymerController&&(C=C.polymerController.getScrollState().progress===1?"standard":"seamed",_.M3(H.hostElement,"yt-request-panel-mode-change",{mode:C}))},10)};
_.F.tabsChanged=function(){if(this.tabs){for(var H=null,C=0,S=this.tabs.length;C<S;++C){var w=this.tabs[C].tabRenderer;if(w&&w.selected){H=C;break}}this.selected=H}};
_.F.onTabsActivate=function(H){_.M3(this.hostElement,"yt-navigate",{endpoint:this.tabs[H.detail.selected].tabRenderer.endpoint})};
AW.prototype.tabsChanged=AW.prototype.tabsChanged;AW.prototype.guideVisibleChanged=AW.prototype.guideVisibleChanged;AW.prototype.activeChanged=AW.prototype.activeChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],AW.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.bU.YtdGuideStateAwareBehavior),_.K("design:type",Object)],AW.prototype,"ytdGuideStateAwareBehavior",void 0);_.D([_.V(),_.K("design:type",Array)],AW.prototype,"tabs",void 0);
_.D([_.V(),_.K("design:type",Object)],AW.prototype,"selected",void 0);_.D([_.V(),_.K("design:type",Boolean)],AW.prototype,"active",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],AW.prototype,"disableHeaderFluidWidth",void 0);_.D([_.fx("active"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],AW.prototype,"activeChanged",null);
_.D([_.fx("guidePersistentAndVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],AW.prototype,"guideVisibleChanged",null);_.D([_.fx("tabs"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],AW.prototype,"tabsChanged",null);_.D([_.Od()],AW);var gOO=[_.I.YtRendererBehavior,_.bU.YtdGuideStateAwareBehavior,AW.prototype];var UX3=2/3,RVj=_.y4(130749),IG_=function(H,C){var S=this;this.element=H;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){S.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:UX3,moveAction:function(w){S.moveAction(w)},
triggerAction:function(){S.element.isReloading=!0;_.aW(_.lJ(),{visualElement:RVj});_.eU.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:S.element}})}}}};
_.nO(_.lJ(),RVj,this.layer);this.gesture=new _.hI(H,C,this.refreshConfig,"pan-down");this.attach()};
_.F=IG_.prototype;_.F.attach=function(){this.gesture.attach()};
_.F.detach=function(){this.gesture.detach()};
_.F.reset=function(){this.element.close()};
_.F.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.F.moveAction=function(H){this.element.rotation=H*360};var aGq=_.y4(130750),HUc=function(H,C,S,w,A){var J=this;this.element=H;this.parent=S;this.channelHeader=w;this.ytdReduxDispatch=A;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){J.tabsStartAtInPx=J.channelHeader.clientHeight-48;var c;(c=J.selectedTab)!=null&&c.title&&(c=_.JA().resolve(_.AA(_.JB)))&&(c=c.getCurrentPage(),J.lastVisitedTabScrollPosition=c.getScrollTop(),J.previousTab&&
((J.lastVisitedTabScrollPosition===void 0?0:J.lastVisitedTabScrollPosition<J.channelHeader.clientHeight-48)?J.scrollPositionForTabs.has(J.selectedTab.title)&&J.scrollPositionForTabs.delete(J.selectedTab.title):J.scrollPositionForTabs.set(J.selectedTab.title,c.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:xXO(),triggerAction:function(){J.navigate(J.previousTab)},
moveAction:function(c,Y){J.moveAction(c,Y)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-xXO(),triggerAction:function(){J.navigate(J.nextTab)},
moveAction:function(c,Y){J.moveAction(c,Y)}}}};
_.nO(_.lJ(),aGq,this.layer);this.gesture=new _.hI(H,C,this.tabConfig);this.attach()};
_.F=HUc.prototype;_.F.attach=function(){this.gesture.attach()};
_.F.detach=function(){this.gesture.detach()};
_.F.tabsChanged=function(H){if(H){var C=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;H=_.Z(H);for(var S=H.next();!S.done;S=H.next()){S=S.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=S);var w=void 0;if((w=S)==null?0:w.selected)this.previousTab=C,this.selectedTab=S;C=S}C=this.gesture;H=this.getConfig();C.config=H;this.scrollPositionNeedsUpdate=!0}};
_.F.getConfig=function(){return this.previousTab?this.nextTab?this.tabConfig:Object.assign({},this.tabConfig,{triggers:{right:this.tabConfig.triggers.right}}):Object.assign({},this.tabConfig,{triggers:{left:this.tabConfig.triggers.left}})};
_.F.moveAction=function(H,C){if(!this.tabsElement){var S;this.tabsElement=(S=this.parent.header)==null?void 0:S.tabsElement;C==="right"&&this.previousTab?_.qRU(_.ai.instance,this.previousTab.endpoint,{},""):C==="left"&&this.nextTab&&_.qRU(_.ai.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}S=this.tabsElement._pos;C==="right"&&(H*=-1);this.tabsElement._positionBar(S.width,S.left*1+S.width*H)};
var xXO=function(){var H,C;return(C=(H=_.JA().resolve(_.JB).getCurrentPage())==null?void 0:H.clientWidth)!=null?C:0};
HUc.prototype.navigate=function(H){this.element.data=void 0;if(H=H==null?void 0:H.endpoint)this.ytdReduxDispatch(GBK(!0)),_.aW(_.lJ(),{visualElement:aGq}),_.eU.instance.resolveCommand({navigateAction:{endpoint:H}},{form:{element:this.element}})};var iU9;var Ci7;var JW=function(){return _.X.apply(this,arguments)||this};
_.G(JW,_.X);JW.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],JW.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],JW.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],JW.prototype,"data",void 0);_.D([_.h({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],JW);
_.B(JW,"ytd-labs-edit-renderer",function(){if(Ci7!==void 0)return Ci7;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Ci7=H},{mode:1});var S$T;var Fl=function(){var H=_.X.apply(this,arguments)||this;H.dark=!1;H.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";H.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";H.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return H};
_.G(Fl,_.X);Fl.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Fl.prototype.ready=function(){var H=document.documentElement.hasAttribute("dark");this.setBackgroundImage(H);this.dark=H};
Fl.prototype.onDarkModeToggledAction=function(H){this.setBackgroundImage(H);this.dark=H};
Fl.prototype.setBackgroundImage=function(H){_.Ed(this.hostElement,{"--yt-labs-header-background":"url("+(H?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Fl.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Fl.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],Fl.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Fl.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Fl.prototype,"dark",void 0);
_.D([_.h({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],Fl);
_.B(Fl,"ytd-labs-header-renderer",function(){if(S$T!==void 0)return S$T;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return S$T=H},{mode:1});var s0P;var Zj=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return H};
_.G(Zj,_.X);Zj.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"}}}}}};
Zj.prototype.onYtToggleButton=function(H){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",H.detail.toggled)};
Zj.prototype.onManageLabsState=function(H){if(H=_.e(H,$Xq))H.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?H.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&H.labsItemId===this.data.labsItemId&&(H.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.q3(this.hostElement,"yt-check-labs-opted-in-state").some(function(C){return C})&&this.data.confirmationDialogCommand?_.yN(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.JA().resolve(_.ZQ).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&H.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.JA().resolve(_.ZQ).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
Zj.prototype.onCheckLabsOptedInState=function(){var H=this.get("data.primaryButton.toggleButtonRenderer");return H?H.isToggled:!1};
_.JJ.Object.defineProperties(Zj.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
Zj.prototype.onYtToggleButton=Zj.prototype.onYtToggleButton;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Zj.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Zj.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],Zj.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Zj.prototype,"data",void 0);
_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Zj.prototype,"itemStyle",null);_.D([_.Gz("yt-toggle-button"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Zj.prototype,"onYtToggleButton",null);_.D([_.h({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],Zj);
_.B(Zj,"ytd-labs-item-renderer",function(){if(s0P!==void 0)return s0P;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return s0P=H},{mode:1});var j0B;var wZ2;var AV7=function(){return _.X.apply(this,arguments)||this};
_.G(AV7,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],AV7.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],AV7.prototype,"data",void 0);_.D([_.h({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],AV7);
_.B(AV7,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(wZ2!==void 0)return wZ2;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return wZ2=H},{mode:1});var JVt;var cK=function(){return _.X.apply(this,arguments)||this};
_.G(cK,_.X);cK.prototype.observeSuperchatChip=function(){if(this.data){var H={"--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)};_.Ed(this.hostElement,H)}};
cK.prototype.colorFromDecimal=function(H){return _.aw(Number(H||0))};
cK.prototype.observeSuperchatChip=cK.prototype.observeSuperchatChip;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],cK.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],cK.prototype,"data",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cK.prototype,"observeSuperchatChip",null);_.D([_.h({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],cK);
_.B(cK,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(JVt!==void 0)return JVt;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return JVt=H},{mode:1});var Y2=function(){return _.X.apply(this,arguments)||this};
_.G(Y2,_.X);Y2.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"}}}};
_.JJ.Object.defineProperties(Y2.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Y2.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Y2.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.m4),_.K("design:type",Object)],Y2.prototype,"ytdDismissibleItemBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Y2.prototype,"data",void 0);_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Y2.prototype,"hideMessageBlock",null);
_.D([_.h({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],Y2);
_.B(Y2,"ytd-live-chat-history-entry-renderer",function(){if(j0B!==void 0)return j0B;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return j0B=H},{mode:1});var FEV;var ZUP=function(){return _.X.apply(this,arguments)||this};
_.G(ZUP,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],ZUP.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],ZUP.prototype,"data",void 0);_.D([_.h({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],ZUP);
_.B(ZUP,"ytd-channel-options-renderer",function(){if(FEV!==void 0)return FEV;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return FEV=H},{mode:1});var cVP;var zC=function(){return _.X.apply(this,arguments)||this};
_.G(zC,_.X);zC.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],zC.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],zC.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],zC.prototype,"data",void 0);_.D([_.h({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],zC);
_.B(zC,"ytd-settings-email-item-renderer",function(){if(cVP!==void 0)return cVP;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return cVP=H},{mode:1});var Y$2;var MC=function(){return _.X.apply(this,arguments)||this};
_.G(MC,_.X);MC.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"}}}};
MC.prototype.getExpansionIcon=function(H){return H?"COLLAPSE":"EXPAND"};
MC.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.JJ.Object.defineProperties(MC.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],MC.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],MC.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],MC.prototype,"data",void 0);_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],MC.prototype,"expanded",void 0);_.D([_.l("expanded"),_.K("design:type",String),_.K("design:paramtypes",[])],MC.prototype,"emailListExpanded",null);
_.D([_.lA("#options"),_.K("design:type",Object)],MC.prototype,"options",void 0);_.D([_.h({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],MC);
_.B(MC,"ytd-settings-email-list-renderer",function(){if(Y$2!==void 0)return Y$2;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Y$2=H},{mode:1});var zpc;var qC=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return H};
_.G(qC,_.X);qC.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"}}}};
qC.prototype.handleSignalActionSubmitForm=function(){var H,C=(H=this.formRenderer)==null?void 0:H.getForm();C&&this.data.serviceEndpoint&&_.JA().resolve(_.ZQ).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},C,{element:this.hostElement})})};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],qC.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],qC.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],qC.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],qC.prototype,"data",void 0);_.D([_.lA("yt-form-renderer"),_.K("design:type",Object)],qC.prototype,"formRenderer",void 0);
_.D([_.h({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],qC);
_.B(qC,"ytd-settings-gaia-link-renderer",function(){if(zpc!==void 0)return zpc;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return zpc=H},{mode:1});var MZ4;var TC=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return H};
_.G(TC,_.X);TC.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.Llt()&&this.set("data.hidden",!1)};
TC.prototype.onSwitchReady=function(){var H=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.E("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.tIr().then(function(C){C&&(Notification.permission==="default"?H.set("data.hidden",!1):Notification.permission==="granted"&&_.DP("NotificationsDisabled").then(function(S){S||_.q3(H.hostElement,"yt-toggle-settings-switch",[H.data.id,!S]);H.set("data.hidden",!1)}).catch(function(){}))})})};
TC.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}}}}};
TC.prototype.handleUpdateOptionsCommand=function(H){(H=_.e(H,_.aK7))&&this.data&&this.data.id===H.id&&(this.set("data.hidden",H.hidden),H.text!==void 0&&this.set("data.text",H.text),H.clearOptions&&this.set("data.options",[]))};
TC.prototype.onSwitchReady=TC.prototype.onSwitchReady;TC.prototype.dataChanged=TC.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],TC.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],TC.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],TC.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],TC.prototype,"data",void 0);
_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],TC.prototype,"dataChanged",null);_.D([_.Gz("yt-settings-switch-ready"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],TC.prototype,"onSwitchReady",null);_.D([_.h({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],TC);
_.B(TC,"ytd-settings-options-renderer",function(){if(MZ4!==void 0)return MZ4;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return MZ4=H},{mode:1});var q$D;var mq=function(){return _.X.apply(this,arguments)||this};
_.G(mq,_.X);mq.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
mq.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
mq.prototype.onYtExpanderMoreTapped=mq.prototype.onYtExpanderMoreTapped;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],mq.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],mq.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],mq.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],mq.prototype,"data",void 0);
_.D([_.Gz("yt-expander-more-tapped"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mq.prototype,"onYtExpanderMoreTapped",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],mq);
_.B(mq,"ytd-product-details-description-renderer",function(){if(q$D!==void 0)return q$D;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return q$D=H},{mode:1});var Tu4;var WK=function(){var H=_.X.apply(this,arguments)||this;H.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";H.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";H.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";H.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return H};
_.G(WK,_.X);WK.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.JJ.Object.defineProperties(WK.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var H,C;return((H=this.data)==null?void 0:(C=H.offerData)==null?void 0:C.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var H,C;return((H=this.data)==null?void 0:H.purchaseButtonRenderers)!==void 0&&((C=this.data)==null?void 0:C.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var H,C;return!((H=this.data)==null||!H.formattedFromMerchantText)&&(!((C=this.data)==null||!C.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],WK.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],WK.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],WK.prototype,"ytComponentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],WK.prototype,"data",void 0);
_.D([_.V({type:_.E("kevlar_property_type_migration_killswitch")?String:void 0}),_.K("design:type",Object)],WK.prototype,"shippingIcon",void 0);_.D([_.V({type:_.E("kevlar_property_type_migration_killswitch")?String:void 0}),_.K("design:type",Object)],WK.prototype,"shippingAddressIcon",void 0);_.D([_.V({type:_.E("kevlar_property_type_migration_killswitch")?String:void 0}),_.K("design:type",Object)],WK.prototype,"googleGuaranteeIcon",void 0);
_.D([_.V({type:_.E("kevlar_property_type_migration_killswitch")?String:void 0}),_.K("design:type",Object)],WK.prototype,"returnPolicyIcon",void 0);_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],WK.prototype,"showAdditionalFees",null);_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],WK.prototype,"showMultiPurchaseButtons",null);
_.D([_.l("data","showMultiPurchaseButtons"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],WK.prototype,"showPurchaseData",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],WK);
_.B(WK,"ytd-product-details-hero-offer-renderer",function(){if(Tu4!==void 0)return Tu4;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Tu4=H},{mode:1});var mDT;var WEr;var y1=function(){return _.X.apply(this,arguments)||this};
_.G(y1,_.X);_.F=y1.prototype;_.F.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.F.onKeyDown=function(H){H=H.keyCode;H!==13&&H!==32||this.handleSelection()};
_.F.onMouseEnterImage=function(){var H;((H=this.data)==null?void 0:H.thumbnailDetails)!==void 0&&_.m7(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.F.onMouseLeaveImage=function(){_.m7(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.F.handleSelection=function(){this.data&&_.M3(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.JJ.Object.defineProperties(y1.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.isSelected)}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],y1.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],y1.prototype,"data",void 0);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],y1.prototype,"isSelected",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],y1);
_.B(y1,"ytd-product-details-thumbnail-renderer",function(){if(WEr!==void 0)return WEr;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return WEr=H},{mode:1});var NC=function(){var H=_.X.apply(this,arguments)||this;var C={};H.actionMap=(C["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",C["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",C);H.selectedThumbnailIndex=0;H.selectItem=function(S){S.target.onKeyDown(S)};
return H};
_.G(NC,_.X);_.F=NC.prototype;_.F.handlePreviewImageSelect=function(H){this.hoverThumbnail=H};
_.F.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.F.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.F.onThumbnailSelected=function(H,C){this.selectedThumbnailIndex=C};
_.F.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.F.updateOffset=function(){var H=_.mY(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-H));this.ytdHorizontalListBehavior.reposition_()};
_.JJ.Object.defineProperties(NC.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.data)==null?0:H.imageRenderer){var C,S;return((C=this.data)==null?void 0:(S=C.imageRenderer)==null?void 0:S.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var H;if((H=this.data)==null?0:H.imageRenderer){var C;return(C=_.e(this.data.imageRenderer[this.selectedThumbnailIndex],hVO))==null?void 0:C.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var H=this,C,S,w,A=(w=(C=this.data)==null?void 0:(S=C.imageRenderer)==null?void 0:S.map(function(J,c){return{productDetailsThumbnailRenderer:Object.assign({},_.e(J,hVO),{index:c,isSelected:c===H.selectedThumbnailIndex})}}))!=null?w:[];
return Object.assign({},this.data,{imageRenderer:A})}}});
NC.prototype.updateOffset=NC.prototype.updateOffset;NC.prototype.dataChanged=NC.prototype.dataChanged;NC.prototype.onThumbnailSelected=NC.prototype.onThumbnailSelected;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],NC.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],NC.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.pT.YtdHorizontalListBehavior),_.K("design:type",Object)],NC.prototype,"ytdHorizontalListBehavior",void 0);
_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],NC.prototype,"componentBehavior",void 0);_.D([_.v([_.Lw.YtActionHandlerBehavior]),_.K("design:type",Object)],NC.prototype,"actionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],NC.prototype,"data",void 0);_.D([_.V({value:"$.items.children"}),_.K("design:type",String)],NC.prototype,"itemsPath",void 0);_.D([_.V({value:3}),_.K("design:type",Number)],NC.prototype,"initialCount",void 0);
_.D([_.lA("#items"),_.K("design:type",Object)],NC.prototype,"items",void 0);_.D([_.V(),_.K("design:type",Object)],NC.prototype,"selectedThumbnailIndex",void 0);_.D([_.V(),_.K("design:type",Object)],NC.prototype,"hoverThumbnail",void 0);_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],NC.prototype,"showThumbnails",null);
_.D([_.Gz("ytd-product-details-thumbnail-renderer-selected"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Number]),_.K("design:returntype")],NC.prototype,"onThumbnailSelected",null);_.D([_.l("data","selectedThumbnailIndex","hoverThumbnail"),_.K("design:type",Object),_.K("design:paramtypes",[])],NC.prototype,"thumbnailDetails",null);_.D([_.l("data","selectedThumbnailIndex"),_.K("design:type",Object),_.K("design:paramtypes",[])],NC.prototype,"populatedData",null);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],NC.prototype,"dataChanged",null);_.D([_.Gz("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],NC.prototype,"updateOffset",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],NC);
_.B(NC,"ytd-product-details-image-carousel-renderer",function(){if(mDT!==void 0)return mDT;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return mDT=H},{mode:_.mn("kevlar_poly_si_batch_j079")?1:2});var yV9;var bX=function(){return _.X.apply(this,arguments)||this};
_.G(bX,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],bX.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],bX.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],bX.prototype,"componentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],bX.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],bX);
_.B(bX,"ytd-product-details-offer-renderer",function(){if(yV9!==void 0)return yV9;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return yV9=H},{mode:1});var Nu2;var EP=function(){var H=_.X.apply(this,arguments)||this;H.isOffersHidden=!0;return H};
_.G(EP,_.X);EP.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var H,C=_.e((H=this.data)==null?void 0:H.viewOffersButton,_.cg);C&&this.ytRendererBehavior.logExplicitClick(C)};
EP.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.JJ.Object.defineProperties(EP.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var H,C,S,w;return(S=_.e((H=this.data)==null?void 0:(C=H.offers)==null?void 0:C[0],DXt))==null?void 0:(w=S.offerData)==null?void 0:w.vendorLogoUrl}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],EP.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],EP.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],EP.prototype,"componentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],EP.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],EP.prototype,"isOffersHidden",void 0);
_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],EP.prototype,"firstOfferVendorLogoUrl",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],EP);
_.B(EP,"ytd-product-details-offers-container-renderer",function(){if(Nu2!==void 0)return Nu2;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Nu2=H},{mode:1});var bUh;var EEV;var e6=function(){return _.X.apply(this,arguments)||this};
_.G(e6,_.X);e6.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
e6.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.m7(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
e6.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.m7(this,"ytd-product-details-variant-image-unselect")};
_.JJ.Object.defineProperties(e6.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 H;return((H=this.data)==null?void 0:H.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var H,C,S;return((H=this.data)==null?void 0:H.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((C=this.data)==null?void 0:C.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((S=this.data)==null?void 0:S.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var H;if(((H=this.data)==null?void 0:H.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var H,C;return this.isUnavailable?(H=this.data)==null?void 0:H.variantOptionUnavailableAccessibilityLabel:(C=this.data)==null?void 0:C.variantOptionAccessibilityLabel}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],e6.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],e6.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],e6.prototype,"componentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],e6.prototype,"data",void 0);_.D([_.V(),_.K("design:type",String)],e6.prototype,"displayType",void 0);
_.D([_.l("displayType","data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],e6.prototype,"isImageButton",null);_.D([_.l("displayType","data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],e6.prototype,"isPillButton",null);_.D([_.l("data"),_.V({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],e6.prototype,"isActive",null);
_.D([_.l("data"),_.V({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],e6.prototype,"isUnavailable",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],e6.prototype,"thumbnailDetails",null);_.D([_.l("isUnavailable","data"),_.K("design:type",Object),_.K("design:paramtypes",[])],e6.prototype,"accessibilityLabel",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],e6);
_.B(e6,"ytd-product-details-variant-option-renderer",function(){if(EEV!==void 0)return EEV;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return EEV=H},{mode:1});var epV;var uX=function(){var H=_.X.apply(this,arguments)||this;H.variantsExpanded=!1;H.hideShowMoreLessVariantButton=!0;H.initialized=!1;H.computeVariantsDebouncer=null;H.computeVariants=function(C){C=C===void 0?!1:C;H.variantsExpanded||H.showOptions()||!C||(H.variantsExpanded=!0);if(H.variantsExpanded){C=_.Z(H.items.children);for(var S=C.next();!S.done;S=C.next())S.value.hidden=!1}H.initialized=!0};
return H};
_.G(uX,_.X);_.F=uX.prototype;_.F.ready=function(){var H=this;setTimeout(function(){H.computeVariants(!0)})};
_.F.showOptions=function(){for(var H=_.Z(this.items.children),C=H.next();!C.done;C=H.next())C.value.hidden=!0;var S=this.container.getBoundingClientRect().width,w=0,A=H=0;C=!1;for(var J=_.Z(this.items.children),c=J.next();!c.done;c=J.next()){c=c.value;c.hidden=!1;var Y=c.getBoundingClientRect().width;if(w+Y<S)w+=Y;else if(++A<2)w=Y;else break;H+=1;c.hasAttribute("is-active")&&(C=!0)}for(S=H;S<this.items.children.length;S++)this.items.children[S].hidden=!0;this.hideShowMoreLessVariantButton=H===this.items.children.length;
return C};
_.F.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.vW(this.computeVariantsDebouncer,_.qZ.after(100),this.computeVariants)};
_.F.onShowMoreLessVariantsButtonClick=function(){var H;(H=this.data)!=null&&H.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.F.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.JJ.Object.defineProperties(uX.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var H,C,S=(H=this.data)==null?void 0:(C=H.variantOptionRenderers)==null?void 0:C.find(function(J){return _.e(J,rFr).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),w,A;
return(A=(w=_.e(S,rFr))==null?void 0:w.name)!=null?A:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.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"}}}});
uX.prototype.debouncedComputeVariants=uX.prototype.debouncedComputeVariants;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],uX.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],uX.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],uX.prototype,"componentBehavior",void 0);_.D([_.v(_.Ix),_.K("design:type",Object)],uX.prototype,"ironResizableBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],uX.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],uX.prototype,"variantsExpanded",void 0);_.D([_.V(),_.K("design:type",Object)],uX.prototype,"hideShowMoreLessVariantButton",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],uX.prototype,"initialized",void 0);_.D([_.lA("#items"),_.K("design:type",HTMLDivElement)],uX.prototype,"items",void 0);_.D([_.lA("#container"),_.K("design:type",HTMLDivElement)],uX.prototype,"container",void 0);
_.D([_.lA("#more-variants-button"),_.K("design:type",HTMLElement)],uX.prototype,"moreVariantsButton",void 0);_.D([_.l("data"),_.K("design:type",String),_.K("design:paramtypes",[])],uX.prototype,"selectedOptionName",null);_.D([_.fx("data","variantsExpanded"),_.Gz("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],uX.prototype,"debouncedComputeVariants",null);
_.D([_.l("data"),_.K("design:type",String),_.K("design:paramtypes",[])],uX.prototype,"displayType",null);_.D([_.l("displayType"),_.K("design:type",Object),_.K("design:paramtypes",[])],uX.prototype,"variantItemsClassname",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],uX);
_.B(uX,"ytd-product-details-variant-renderer",function(){if(epV!==void 0)return epV;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return epV=H},{mode:1});var GC=function(){return _.X.apply(this,arguments)||this};
_.G(GC,_.X);
GC.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"}}}};
_.JJ.Object.defineProperties(GC.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var H,C,S=(C=_.e((H=this.data)==null?void 0:H.offersContainerRenderer,BbR))==null?void 0:C.offers;return S!==void 0&&(S==null?void 0:S.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 H,C,S;return((S=(H=this.data)==null?void 0:(C=H.variants)==null?void 0:C.map(function(w){var A,J;w=(J=(A=_.e(w,nOi))==null?void 0:A.variantOptionRenderers)==null?void 0:J.find(function(Y){var M;return((M=_.e(Y,rFr))==null?void 0:M.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var c;return(c=_.e(w,rFr))==null?void 0:c.name}).filter(function(w){return typeof w==="string"}))!=null?S:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var H,C,S,w=(C=_.e((H=this.data)==null?void 0:H.shoppingFlaggingRenderer,Kfi))==null?void 0:(S=C.reportButton)==null?void 0:S.buttonRenderer;if(w)return{text:w.text,command:w.command,icon:{iconType:"FLAG"},accessibilityData:w.accessibilityData,trackingParams:w.trackingParams,loggingDirectives:w.loggingDirectives}}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],GC.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],GC.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],GC.prototype,"componentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],GC.prototype,"data",void 0);_.D([_.lA("#image-carousel-renderer"),_.K("design:type",Object)],GC.prototype,"imageCarouselRenderer",void 0);
_.D([_.lA("#hero-offer-renderer"),_.K("design:type",Object)],GC.prototype,"productDetailsHeroOfferRenderer",void 0);_.D([_.lA("#variants"),_.K("design:type",Object)],GC.prototype,"productDetailsVariantRenderer",void 0);_.D([_.lA("#offers"),_.K("design:type",Object)],GC.prototype,"productDetailsOffersContainerRenderer",void 0);_.D([_.lA("#description-renderer"),_.K("design:type",Object)],GC.prototype,"productDetailsDescriptionRenderer",void 0);
_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],GC.prototype,"showPurchaseData",null);_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],GC.prototype,"showHeroOfferRenderer",null);_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],GC.prototype,"showBrandText",null);_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],GC.prototype,"showOffers",null);
_.D([_.l("showOffers","showPurchaseData"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],GC.prototype,"showBuySeparator",null);_.D([_.l("showOffers","showPurchaseData"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],GC.prototype,"showBuyCard",null);_.D([_.l("data"),_.K("design:type",String),_.K("design:paramtypes",[])],GC.prototype,"selectedVariantsText",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],GC.prototype,"shoppingReportingButtonData",null);
_.D([_.h({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],GC);
_.B(GC,"ytd-product-details-renderer",function(){if(bUh!==void 0)return bUh;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return bUh=H},{mode:1});var uWP;var G6D;var fwv;var fc=function(){return _.X.apply(this,arguments)||this};
_.G(fc,_.X);fc.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.JJ.Object.defineProperties(fc.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],fc.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],fc.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],fc.prototype,"data",void 0);_.D([_.V(),_.K("design:type",String)],fc.prototype,"formattedAmount",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],fc.prototype,"ariaLabel",void 0);
_.D([_.V({reflectToAttribute:!0}),_.l("data.style"),_.K("design:type",String),_.K("design:paramtypes",[])],fc.prototype,"vcBalanceWidgetStyle",null);_.D([_.Lx({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],fc);
_.B(fc,"yt-vc-balance-renderer",function(){if(fwv===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;G6D===void 0&&(G6D=document.createElement("template"));var w=G6D;S.call(C,w.content.cloneNode(!0),H.content.firstChild);fwv=H}H=fwv;return H},{mode:2});_.hg("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var vK=function(){return _.X.apply(this,arguments)||this};
_.G(vK,_.X);_.JJ.Object.defineProperties(vK.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:""}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],vK.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],vK.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],vK.prototype,"data",void 0);_.D([_.V({selectorArgs:["data.vcBalanceEntityKey"],selector:function(H,C){return _.Ea(H.entities,"vcBalanceEntity",C)}}),
_.K("design:type",Object)],vK.prototype,"vcBalanceEntity",void 0);_.D([_.l("vcBalanceEntity"),_.K("design:type",String),_.K("design:paramtypes",[])],vK.prototype,"formattedAmount",null);_.D([_.l("vcBalanceEntity"),_.K("design:type",String),_.K("design:paramtypes",[])],vK.prototype,"vcBalanceAriaLabel",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],vK);
_.B(vK,"ytd-vc-balance-renderer",function(){if(uWP!==void 0)return uWP;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return uWP=H},{mode:1});var vET;var lX=function(){var H=_.X.apply(this,arguments)||this;H.rotation=0;H.isReloading=!1;return H};
_.G(lX,_.X);lX.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
lX.prototype.reset=function(){this.hostElement.style.opacity=""};
lX.prototype.close=function(){var H=this;return _.z(function(C){if(C.nextAddress==1)return C.yield(H.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);H.hostElement.style.opacity="0";_.oT(C)})};
lX.prototype.rotationChanged=lX.prototype.rotationChanged;_.D([_.V(),_.K("design:type",Object)],lX.prototype,"rotation",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],lX.prototype,"isReloading",void 0);_.D([_.lA("#icon"),_.K("design:type",HTMLElement)],lX.prototype,"icon",void 0);_.D([_.fx("rotation"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lX.prototype,"rotationChanged",null);
_.D([_.h({disableElementRegistration:!0,is:"ytd-refresh"})],lX);
_.B(lX,"ytd-refresh",function(){if(vET!==void 0)return vET;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return vET=H},{mode:1});var lwV;var V1=function(){return _.X.apply(this,arguments)||this};
_.G(V1,_.X);V1.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"}}}};
V1.prototype.dataChanged=function(){if(this.data){var H=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var C=_.TG(this.data.banner.thumbnails,this.hostElement.clientWidth);C&&(C.indexOf("//")===0&&(C="https:"+C),this.hasBannerArt=!0,_.Ed(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+C+")"}))}this.hasBannerArt!==H&&_.mY(this.hostElement).querySelector("#header").fire("iron-resize")}};
V1.prototype.updateSelectedFromBinding=function(H){this.selected=H.detail.value};
V1.prototype.dataChanged=V1.prototype.dataChanged;_.D([_.v(gOO),_.K("design:type",Object)],V1.prototype,"ytdTabbedHeaderBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],V1.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.yz),_.K("design:type",Object)],V1.prototype,"ytdGridStateAwareBehavior",void 0);_.D([_.v(_.bU.YtdGuideStateAwareBehavior),_.K("design:type",Object)],V1.prototype,"ytdGuideStateAwareBehavior",void 0);
_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],V1.prototype,"componentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],V1.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Number)],V1.prototype,"selected",void 0);_.D([_.V(),_.K("design:type",Boolean)],V1.prototype,"active",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],V1.prototype,"hasBannerArt",void 0);
_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],V1.prototype,"dataChanged",null);_.D([_.h({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],V1);
_.B(V1,"ytd-interactive-tabbed-header-renderer",function(){if(lwV!==void 0)return lwV;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return lwV=H},{mode:1});var VZc;var oR=function(){return _.X.apply(this,arguments)||this};
_.G(oR,_.X);oR.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
oR.prototype.computeActionsAlignment=function(H){return(H==null?void 0:H.actionsAlignment)||""};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],oR.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],oR.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],oR.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.K("design:type",String)],oR.prototype,"actionsAlignment",void 0);_.D([_.h({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],oR);
_.B(oR,"ytd-page-footer-renderer",function(){if(VZc!==void 0)return VZc;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return VZc=H},{mode:1});var oEc;var OUT;var OP=function(){var H=_.X.apply(this,arguments)||this;H.isEditing=!1;H.useSlot=!1;H.isMultiline=!1;return H};
_.G(OP,_.X);_.F=OP.prototype;_.F.onKeydown=function(H){if(H.keyCode===13&&!this.isMultiline)this.onSave();else if(H.keyCode===27)this.onCancel()};
_.F.computeComponentStyle=function(H){return(H==null?0:H.style)?H.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.F.computeisMultiline=function(H){if(this.multilineOverride!==void 0)return this.multilineOverride;var C,S;return!!(H==null?0:(C=H.formField)==null?0:(S=C.textInputFormFieldRenderer)==null?0:S.isMultiline)};
_.F.computeTextDisplayed=function(H,C){if(H)return H;if(C)return C};
_.F.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.F.onSave=function(){if(this.textForm.validate()){this.textForm.save();var H=this.textForm.value;if(H)this.set("data.textDisplayed",_.sx(H));else{var C;((C=this.data)==null?0:C.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.uQ("inline-form-changed",this.data));this.isEditing=!1}};
_.F.onCancel=function(){var H=_.jt(this.data.textDisplayed);H===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(H);this.isEditing=!1};
OP.prototype.onKeydown=OP.prototype.onKeydown;_.D([_.v(_.ie.YtEventForwardingBehavior),_.K("design:type",Object)],OP.prototype,"ytEventForwardingBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],OP.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],OP.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],OP.prototype,"data",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],OP.prototype,"isEditing",void 0);_.D([_.V(),_.K("design:type",Object)],OP.prototype,"useSlot",void 0);_.D([_.V(),_.K("design:type",Boolean)],OP.prototype,"multilineOverride",void 0);_.D([_.V(),_.K("design:type",Boolean)],OP.prototype,"enableOverlayTheme",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.K("design:type",String)],OP.prototype,"componentStyle",void 0);
_.D([_.V({computed:"computeisMultiline(data)"}),_.K("design:type",Object)],OP.prototype,"isMultiline",void 0);_.D([_.lA("#text-form"),_.K("design:type",Object)],OP.prototype,"textForm",void 0);_.D([_.Gz("keydown"),_.K("design:type",Function),_.K("design:paramtypes",[KeyboardEvent]),_.K("design:returntype")],OP.prototype,"onKeydown",null);_.D([_.h({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],OP);
_.B(OP,"ytd-inline-form-renderer",function(){if(OUT!==void 0)return OUT;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return OUT=H},{mode:1});var XZB;var Xl=function(){var H=_.X.apply(this,arguments)||this;H.previousSelectValue=void 0;H.selectedItemMessage=void 0;return H};
_.G(Xl,_.X);Xl.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
Xl.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var H,C,S,w,A=(H=this.data)==null?void 0:(C=H.dropdown)==null?void 0:(S=C.dropdownRenderer)==null?void 0:(w=S.entries)==null?void 0:w.map(function(Y){return Y.privacyDropdownItemRenderer});
H=_.Z(A!=null?A:[]);for(C=H.next();!C.done;C=H.next())if((C=C.value)&&C.int32Value===this.selectedValue){this.selectedItemMessage=C.itemMessage;break}}else this.selectedItemMessage=void 0;var J;(J=this.onValueChanged)==null||J.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var c;(c=this.data)!=null&&c.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
Xl.prototype.onValueChangedForSelectedValue=function(H){this.selectedValue=H.detail.value};
Xl.prototype.selectedValueChanged=Xl.prototype.selectedValueChanged;_.D([_.v(_.ie.YtEventForwardingBehavior),_.K("design:type",Object)],Xl.prototype,"ytEventForwardingBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Xl.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Xl.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Xl.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Xl.prototype,"data",void 0);_.D([_.V(),_.K("design:type",String)],Xl.prototype,"theme",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Number)],Xl.prototype,"selectedValue",void 0);_.D([_.V(),_.K("design:type",Function)],Xl.prototype,"onValueChanged",void 0);
_.D([_.XJ("selectedValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Xl.prototype,"selectedValueChanged",null);_.D([_.h({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],Xl);
_.B(Xl,"ytd-dropdown-form-field-renderer",function(){if(XZB!==void 0)return XZB;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return XZB=H},{mode:_.mn("kevlar_poly_si_batch_j025")?1:2});var Q0T;var Q1=function(){return _.X.apply(this,arguments)||this};
_.G(Q1,_.X);_.JJ.Object.defineProperties(Q1.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var H=[],C=_.Z(this.data||[]),S=C.next();!S.done;S=C.next())(S=_.e(S.value,tW_))&&H.push(S);return H}}});
_.D([_.V(),_.K("design:type",Array)],Q1.prototype,"data",void 0);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Q1.prototype,"byline",null);_.D([_.h({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],Q1);
_.B(Q1,"ytd-playlist-byline-renderer",function(){if(Q0T!==void 0)return Q0T;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Q0T=H},{mode:1});var dD7;var d_=function(){var H=_.X.apply(this,arguments)||this;H.rtlBullet=_.E("web_playlist_stats_rtl_bullet_icon_killswitch");H.modern=_.E("web_modern_buttons");H.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return H};
_.G(d_,_.X);_.F=d_.prototype;_.F.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"}}}}};
_.F.attached=function(){};
_.F.computeIsCustomThumbnail=function(H){return H?!!H.playlistCustomThumbnailRenderer:!1};
_.F.onYtNavigate=function(H,C){if(C&&C.actions&&C.actions.indexOf("shuffle")>-1){H=_.JA().resolve(_.qb);var S=C.tempData||{};S.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);C.tempData=S;H.isShuffleNextPlaylist=!0}};
_.F.onUpdatePlaylistAction=function(H){var C;H=(C=_.e(H,_.vVM))==null?void 0:C.updatedRenderer;if(C=_.e(H,kBR))this.data=C};
_.F.computeStyleType=function(H){return H?H.toLowerCase().replace(/_/g,"-"):""};
_.F.computeThumbnailWidth=function(H){return H==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.F.computeHideThumbnailAria=function(H){if(H==null?0:H.thumbnailOverlays)for(var C=0;C<H.thumbnailOverlays.length;C++){var S=void 0;if((S=H.thumbnailOverlays[C])==null?0:S.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
d_.prototype.onYtNavigate=d_.prototype.onYtNavigate;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],d_.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],d_.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],d_.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],d_.prototype,"ytComponentBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],d_.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],d_.prototype,"rtlBullet",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.K("design:type",String)],d_.prototype,"styleType",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.K("design:type",Number)],d_.prototype,"thumbnailWidth",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],d_.prototype,"modern",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.K("design:type",Boolean)],d_.prototype,"isCustomThumbnail",void 0);_.D([_.Gz("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[Event,Object]),_.K("design:returntype")],d_.prototype,"onYtNavigate",null);_.D([_.h({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],d_);
_.B(d_,"ytd-playlist-sidebar-primary-info-renderer",function(){if(dD7!==void 0)return dD7;var H=document.createElement("template");_.f(H,'\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>');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return dD7=H},{mode:1});var Pi4;var PK=function(){return _.X.apply(this,arguments)||this};
_.G(PK,_.X);PK.prototype.computeOwnerVisibility=function(H){return!(!H.videoOwner&&!H.button)};
PK.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"}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],PK.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],PK.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],PK.prototype,"data",void 0);_.D([_.h({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],PK);
_.B(PK,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(Pi4!==void 0)return Pi4;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return Pi4=H},{mode:1});var $D4;var $2=function(){var H=_.X.apply(this,arguments)||this;H.expanded=!1;H.isCompact=!1;return H};
_.G($2,_.X);_.F=$2.prototype;_.F.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.F.dataChanged=function(){this.data&&_.FN(_.mY(this.text),_.sOW(_.A91,_.jt(this.data.text||null)))};
_.F.computeAutoScrollEnabled=function(H,C){return H&&!C};
_.F.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.F.toggleOnTap=function(){this.expanded=!this.expanded};
$2.prototype.expandedChanged=$2.prototype.expandedChanged;$2.prototype.dataChanged=$2.prototype.dataChanged;_.D([_.v(_.E5o),_.K("design:type",Object)],$2.prototype,"ytdAutoScrollBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],$2.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],$2.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],$2.prototype,"expanded",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],$2.prototype,"isCompact",void 0);_.D([_.V({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.K("design:type",Boolean)],$2.prototype,"autoScrollEnabled",void 0);_.D([_.lA("#text"),_.K("design:type",Object)],$2.prototype,"text",void 0);_.D([_.lA("#expander-icon"),_.K("design:type",Object)],$2.prototype,"expanderIcon",void 0);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$2.prototype,"dataChanged",null);_.D([_.fx("expanded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$2.prototype,"expandedChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],$2);
_.B($2,"ytd-channel-legal-info-renderer",function(){if($D4!==void 0)return $D4;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return $D4=H},{mode:1});var pZt;var k6t=_.fL("DOWNLOAD",{},"Download"),hpT=_.fL("DOWNLOADING",{},"Downloading"),nEt=_.fL("DOWNLOADED",{},"Downloaded"),pc=function(){var H=_.X.apply(this,arguments)||this;H.downloadProgress=0;H.isDownloadComplete=!1;H.transferState="TRANSFER_STATE_UNKNOWN";return H};
_.G(pc,_.X);_.F=pc.prototype;_.F.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.F.dataChanged=function(){var H;(H=this.data)!=null&&H.tooltip||(H=_.gB(_.AG().getState(),this.playlistId),this.updateButtonState(H))};
_.F.computePlaylistId=function(H){return H};
_.F.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.F.updateButtonState=function(H){if(this.data&&(this.data.tooltip!==hpT||!_.Oa(H))){this.isDownloadComplete=!1;switch(H){case "TRANSFER_STATE_UNKNOWN":H=k6t;var C="OFFLINE_DOWNLOAD";var S="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":H=nEt;C="OFFLINE_PIN";S="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":H=hpT;C="OFFLINE_DOWNLOADING_ZERO";S="ACTION_REMOVE_WITH_PROMPT";
break;default:H=k6t,C="OFFLINE_DOWNLOAD",S="ACTION_ADD"}var w=Object.assign({},this.data);w.tooltip=H;w.accessibilityData={accessibilityData:{label:H}};w.icon={iconType:C};w.size="SIZE_DEFAULT";_.e(w.command,_.Gb)&&(_.e(w.command,_.Gb).action=S);this.set("data",w)}};
_.F.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var H="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?H="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?H="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?H="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?H="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?H="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(H="OFFLINE_PIN",this.isDownloadComplete=!0);var C;H!==((C=this.data.icon)==null?void 0:C.iconType)&&(C=Object.assign({},this.data),C.tooltip=hpT,C.accessibilityData={accessibilityData:{label:hpT}},C.icon={iconType:H},_.e(C.command,_.Gb)&&(_.e(C.command,_.Gb).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",C))}};
pc.prototype.updateProgress=pc.prototype.updateProgress;pc.prototype.onTransferStateChanged=pc.prototype.onTransferStateChanged;pc.prototype.dataChanged=pc.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],pc.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],pc.prototype,"ytdReduxBehavior",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],pc.prototype,"forceIconButton",void 0);
_.D([_.V({value:!0}),_.K("design:type",Boolean)],pc.prototype,"forceIconOnly",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],pc.prototype,"overrides",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],pc.prototype,"buttonTooltipPosition",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],pc.prototype,"styleActionButton",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],pc.prototype,"disableTextTransform",void 0);
_.D([_.V({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.K("design:type",String)],pc.prototype,"playlistId",void 0);_.D([_.V(),_.K("design:type",Object)],pc.prototype,"data",void 0);_.D([_.V({selector:_.Gm7,selectorArgs:["playlistId"]}),_.K("design:type",Object)],pc.prototype,"downloadProgress",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],pc.prototype,"isDownloadComplete",void 0);
_.D([_.V({selector:_.gB,selectorArgs:["playlistId"]}),_.K("design:type",String)],pc.prototype,"transferState",void 0);_.D([_.V({value:!0}),_.K("design:type",Boolean)],pc.prototype,"showTooltips",void 0);_.D([_.V({value:!0}),_.K("design:type",Boolean)],pc.prototype,"sendCommandWhenDisabled",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],pc.prototype,"disabled",void 0);
_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pc.prototype,"dataChanged",null);_.D([_.XJ("transferState"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pc.prototype,"onTransferStateChanged",null);_.D([_.XJ("downloadProgress"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pc.prototype,"updateProgress",null);
_.D([_.h({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],pc);
_.B(pc,"ytd-download-playlist-button-renderer",function(){if(pZt!==void 0)return pZt;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return pZt=H},{mode:1});var rVt;_.qs(_.zIi,"thumbnail-overlay-button-view-model",{props:{data:_.GH,lockupExperiments:_.GH}});var k2=function(){var H=_.X.apply(this,arguments)||this;H.isSquare=!1;H.isVertical=!1;return H};
_.G(k2,_.X);k2.prototype.computeIsSquare=function(H){return H!=null&&H.thumbnail?yF3(H.thumbnail)==="SQUARE":!1};
k2.prototype.computeIsVertical=function(H){return H!=null&&H.thumbnail?yF3(H.thumbnail)==="VERTICAL":!1};
k2.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],k2.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],k2.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.K("design:type",Object)],k2.prototype,"isSquare",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.K("design:type",Object)],k2.prototype,"isVertical",void 0);
_.D([_.V(),_.K("design:type",Object)],k2.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],k2);
_.B(k2,"ytd-hero-playlist-thumbnail-renderer",function(){if(rVt!==void 0)return rVt;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return rVt=H},{mode:1});var hW=function(){var H=_.X.apply(this,arguments)||this;H.isDarkTheme=!1;H.isUltraWide=!1;H.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return H};
_.G(hW,_.X);_.F=hW.prototype;_.F.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.JA();var H;(H=_.JA().resolve(_.AA(_.hs)))!=null&&(H.headerElement=this.hostElement)};
_.F.detached=function(){var H;(H=_.JA().resolve(_.AA(_.hs)))!=null&&(H.headerElement=void 0)};
_.F.onUpdateHeader=function(H){(H=H.detail)&&this.set("data",H)};
_.F.computeTextDisplayed=function(H){if(H)return H.textDisplayed?H.textDisplayed:H.placeholder};
_.F.gradientColorToLinearGradientStop=function(H){var C=this.isDarkTheme?H.darkThemeColor:H.lightThemeColor;return C?_.aw(C)+" "+((H==null?void 0:H.startLocation)||0)*100+"%":"transparent"};
_.F.onWindowResize=function(){var H;((H=this.data)==null?0:H.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.F.onIronResize=function(H){this.isUltraWide=!H.detail.value};
_.F.onDarkModeToggledAction=function(H){this.isDarkTheme=H};
_.F.onUpdatePlaylistName=function(H){var C=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},H.detail.value));_.wM(this,function(){var S;(S=C.editableTitle)==null||S.resize()})};
_.F.onUpdatePlaylistDescription=function(H){var C=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},H.detail.value));_.wM(this,function(){var S;(S=C.editableDescriptionInlineExpander)==null||S.resize()})};
_.F.getCinematicData=function(H){return _.e(H==null?void 0:H.cinematicContainer,_.Cc)};
_.JJ.Object.defineProperties(hW.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 H,C=(H=this.getCinematicData(this.data))==null?void 0:H.config;return(H=this.isDarkTheme?C==null?void 0:C.darkThemeBackgroundColor:C==null?void 0:C.lightThemeBackgroundColor)?"background-color:"+_.Iw(H)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var H;return _.e((H=this.data)==null?void 0:H.descriptionForm,ppj)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var H=this,C,S,w;return"background:linear-gradient(to bottom, "+(((w=(C=this.getCinematicData(this.data))==null?void 0:(S=C.gradientColorConfig)==null?void 0:S.map(function(A){return H.gradientColorToLinearGradientStop(A)}))==null?void 0:w.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var H;return _.jt((H=this.data)==null?void 0:H.descriptionTapText)}}});
hW.prototype.onUpdateHeader=hW.prototype.onUpdateHeader;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],hW.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],hW.prototype,"actionHandlerBehavior",void 0);_.D([_.lA("#description-inline-expander"),_.K("design:type",Object)],hW.prototype,"descriptionInlineExpander",void 0);
_.D([_.lA("#editable-description-inline-expander"),_.K("design:type",Object)],hW.prototype,"editableDescriptionInlineExpander",void 0);_.D([_.V(),_.K("design:type",Object)],hW.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],hW.prototype,"isUltraWide",void 0);_.D([_.lA("#editable-title-display"),_.K("design:type",Object)],hW.prototype,"editableTitle",void 0);_.D([_.l("isUltraWide"),_.K("design:type",Object),_.K("design:paramtypes",[])],hW.prototype,"maxDescriptionLines",null);
_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],hW.prototype,"noCinematicData",null);_.D([_.Gz("yt-new-playlist-header"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],hW.prototype,"onUpdateHeader",null);_.D([_.l("data","isDarkTheme"),_.K("design:type",Object),_.K("design:paramtypes",[])],hW.prototype,"backgroundStyle",null);
_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],hW.prototype,"descriptionFormData",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],hW.prototype,"getDropdownTheme",null);_.D([_.l("data","isDarkTheme"),_.K("design:type",String),_.K("design:paramtypes",[])],hW.prototype,"gradientStyle",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],hW.prototype,"descriptionTapText",null);
_.D([_.h({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],hW);
_.B(hW,"ytd-playlist-header-renderer",function(){if(oEc!==void 0)return oEc;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return oEc=H},{mode:_.mn("kevlar_poly_si_batch_j078")?1:2});var Buv;var DDV;var nc=function(){return _.X.apply(this,arguments)||this};
_.G(nc,_.X);nc.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],nc.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],nc.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],nc.prototype,"data",void 0);_.D([_.h({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],nc);
_.B(nc,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(DDV!==void 0)return DDV;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return DDV=H},{mode:1});var r_=function(){return _.X.apply(this,arguments)||this};
_.G(r_,_.X);
r_.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}}}}};
r_.prototype.computeUsePremiumShowStyle=function(H){if(!H||!H.items)return!1;for(var C=0;C<H.items.length;C++)if(_.e(H.items[C],kBR)){var S=void 0;return((S=_.e(H.items[C],kBR))==null?void 0:S.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],r_.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],r_.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],r_.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.K("design:type",Boolean)],r_.prototype,"usePremiumShowStyle",void 0);
_.D([_.h({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],r_);
_.B(r_,"ytd-playlist-sidebar-renderer",function(){if(Buv!==void 0)return Buv;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return Buv=H},{mode:1});var KET;var tZB;var LEP=function(H,C,S,w,A,J,c,Y){this.minWidth=H;this.minHeight=C;this.recommendedWidth=S;this.recommendedHeight=w;this.JSC$22205_maxFileSize=A;this.title=J;this.bannerGalleryTitle=c;this.channelId=Y;this.picker_=null;H=_.JTi("yt-banner");C=H.addView;S=(new vOt("youtubebanner")).addUploadMetadata("silo_id","19");S.opts.ytMaxFileSize=this.JSC$22205_maxFileSize;w=this.recommendedHeight;S.opts.ytRecWidth=this.recommendedWidth;S.opts.ytRecHeight=w;C.call(H,S);H.addView(new _.Bw);C=H.addView;S=new _.Bw;
S.opts.type="ytbanner";C.call(H,S.JSC$10087_setLabel(this.bannerGalleryTitle));C=H.setTitle(this.title).setSize(1E3);C.urlParamMap_.set("thumbs","orig");S=this.minWidth;w=this.minHeight;if(isNaN(S)||isNaN(w))throw Error("gb`"+S+"`"+w);C.urlParamMap_.set("minSize",S+"x"+w);C.urlParamMap_.set("cropMode","ytcb");this.builder_=H};
LEP.prototype.open=function(){var H=this;return new _.Es(function(C,S){_.t$d(H.builder_,function(w){w.action=="picked"?C(w):w.action=="cancel"&&S(Error("Ho"))});
H.picker_&&H.picker_.dispose();H.picker_=H.builder_.build();H.picker_.setVisible(!0)})};
LEP.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var gEt=function(H){this.channelId=H};
gEt.prototype.upload=function(H){var C="";H.viewToken&&(C=H.viewToken[2].type);var S=H.docs[0];H=S.crop;C={channel_id:this.channelId,fife_url:S.thumbnails[0].url,photo_id:S.id,is_gallery_image:C=="ytbanner"};H&&(C.crop_top=H.top,C.crop_right=H.right,C.crop_bottom=H.bottom,C.crop_left=H.left);return _.nku("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:C})};var BK=function(){var H=_.X.apply(this,arguments)||this;H.ariaLabel=null;return H};
_.G(BK,_.X);_.F=BK.prototype;_.F.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.F.detached=function(){this.picker&&this.picker.dispose()};
_.F.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.F.computeAriaLabel=function(H){return H};
_.F.onTap=function(){var H=this,C;if((C=this.data)==null||!C.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new LEP(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 S;(S=this.picker)==null||S.open().then(function(w){H.handleBannerPicked(w)},function(){})}};
_.F.handleBannerPicked=function(H){var C=this;this.uploader||(this.uploader=new gEt(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(H).then(function(S){C.handleBannerUploadSucceeded(S)},function(S){C.handleBannerUploadFailed(S)})};
_.F.handleBannerUploadSucceeded=function(H){H&&H.errors?this.handleBannerUploadFailed(H):(_.M3(this.hostElement,"yt-banner-updated",H),this.message=null)};
_.F.handleBannerUploadFailed=function(H){this.message=H&&H.errors&&H.errors.length?H.errors[0]:null};
BK.prototype.dataChanged=BK.prototype.dataChanged;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],BK.prototype,"componentBehavior",void 0);_.D([_.v(_.xA),_.K("design:type",Object)],BK.prototype,"ironButtonState",void 0);_.D([_.V(),_.K("design:type",Object)],BK.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.K("design:type",Object)],BK.prototype,"ariaLabel",void 0);
_.D([_.V(),_.K("design:type",Object)],BK.prototype,"message",void 0);_.D([_.V(),_.K("design:type",Object)],BK.prototype,"picker",void 0);_.D([_.V(),_.K("design:type",Object)],BK.prototype,"uploader",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],BK.prototype,"dataChanged",null);_.D([_.h({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],BK);
_.B(BK,"ytd-channel-banner-editor-renderer",function(){if(tZB!==void 0)return tZB;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return tZB=H},{mode:1});var UDD;var Rph=_.xC(["#"]),Dj=function(){return _.X.apply(this,arguments)||this};
_.G(Dj,_.X);Dj.prototype.computeHrefWithDefault=function(H){return this.ytComponentBehavior.computeHref_(H,!0)||_.weZ(Rph)};
Dj.prototype.dataChanged=function(){var H=this.data;H&&H.targetId&&_.O1_(_.iZ(),H.targetId,this.moreIcon)};
Dj.prototype.dataChanged=Dj.prototype.dataChanged;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Dj.prototype,"ytComponentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Dj.prototype,"data",void 0);_.D([_.lA("#more-icon"),_.K("design:type",Object)],Dj.prototype,"moreIcon",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Dj.prototype,"dataChanged",null);
_.D([_.h({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],Dj);
_.B(Dj,"ytd-channel-tagline-renderer",function(){if(UDD!==void 0)return UDD;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return UDD=H},{mode:1});var IwB;var Kc=function(){return _.X.apply(this,arguments)||this};
_.G(Kc,_.X);_.F=Kc.prototype;_.F.ready=function(){var H=this;_.mY(this.hostElement).querySelector("#form").addEventListener("submit",function(C){H.onSubmit(C)})};
_.F.onDataChanged=function(){var H;((H=this.data)==null?0:H.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.F.onIconButtonKeydown=function(H){H.keyCode===13&&this.iconButton.click()};
_.F.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.F.openOnClickHandler=function(){this.input.focus()};
_.F.onSubmit=function(H){H.preventDefault();return!1};
_.F.submitOnEnterKeyUp=function(H){var C;if(H.keyCode===13&&((C=this.data)==null?0:C.expandedText)){H=this.data.endpoint;C=_.hb.unsafeClone(H);var S;((S=_.e(C==null?void 0:C.commandMetadata,_.u9))==null?0:S.url)?(_.e(C.commandMetadata,_.u9).url=_.tt(_.e(C.commandMetadata,_.u9).url,"query",this.data.expandedText),_.e(C,_.vU)&&(_.e(C,_.vU).query=this.data.expandedText),_.M3(this.hostElement,"yt-navigate",{endpoint:C,tempData:{disableCache:!0}})):(S=new _.X0("Error: Trying to navigate to an endpoint without url",
H),_.nC(S))}};
_.F.updateDataExpandedTextFromBinding=function(H){this.set("data.expandedText",H.detail.value)};
_.JJ.Object.defineProperties(Kc.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.E("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
Kc.prototype.onDataChanged=Kc.prototype.onDataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Kc.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.ivq),_.K("design:type",Object)],Kc.prototype,"ytdExpandableInputBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Kc.prototype,"data",void 0);_.D([_.lA("#input"),_.K("design:type",Object)],Kc.prototype,"input",void 0);_.D([_.lA("#icon-button"),_.K("design:type",HTMLElement)],Kc.prototype,"iconButton",void 0);
_.D([_.V(),_.K("design:type",String),_.K("design:paramtypes",[])],Kc.prototype,"searchIcon",null);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Kc.prototype,"onDataChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],Kc);
var NbK=_.Tp()(Kc,"ytd-expandable-tab-renderer",function(){if(IwB===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);IwB=H}H=IwB;return H},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var awT;var tW=function(){var H=_.X.apply(this,arguments)||this;H.avatarSize=80;H.ariaLabel=_.fL("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return H};
_.G(tW,_.X);tW.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
tW.prototype.computeHref=function(H){var C;return((C=_.e(H,_.R8))==null?0:C.url)?this.componentBehavior.computeHref_(H):null};
tW.prototype.onTap=function(){var H,C;(H=this.data)==null||!H.editAvatarServiceEndpoint||((C=_.e(this.data.editAvatarServiceEndpoint,_.R8))==null?0:C.url)||_.JA().resolve(_.ZQ).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.D([_.v(_.xA),_.K("design:type",Object)],tW.prototype,"ironButtonState",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],tW.prototype,"componentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],tW.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],tW.prototype,"avatarSize",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",String)],tW.prototype,"ariaLabel",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],tW);
_.B(tW,"ytd-channel-avatar-editor",function(){if(awT!==void 0)return awT;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return awT=H},{mode:1});var xDV=_.n(function(H){var C=H.data;var S=H.noPadding;var w=H.enableBanner;var A=H.cinematicContainerTopbarOffset;var J=H.allowCinematicContainerOverflow;var c=H.displayAsSidebar;H=H.className;_.d6(function(){C().tagManagerId&&(_.jx(C().tagManagerId,_.rh("GL")),fGj(C().tagManagerId))},"vUc8md");
var Y=_.fn(EOR,function(){return C().pageHeaderEntityKey});
return _.q("yt-page-header-renderer",{class:_.eJ("pageHeaderRendererHost",H)},_.q(_.V4,{data:function(){var M;return((M=Y())==null?0:M.header)?Y().header:(c==null?0:c())&&C().sidebarContent?C().sidebarContent:C().content}},{pageHeaderViewModel:function(M){return _.q(_.Ij_,{data:M.data,
noPadding:S,enableBanner:w,cinematicContainerTopbarOffset:A,allowCinematicContainerOverflow:J,displayAsSidebar:function(){return(c==null?void 0:c())&&C().enableSidebarView}})}}))},"Bk");
xDV.idomCompat=!0;_.qs(xDV,"yt-page-header-renderer",{props:{data:_.GH,noPadding:_.GH,enableBanner:_.GH,cinematicContainerTopbarOffset:_.GH,allowCinematicContainerOverflow:_.GH,displayAsSidebar:_.GH,className:_.GH}});_.qs(_.md,"yt-image-banner-view-model",{props:{data:_.GH,isPositionRelative:_.GH}});_.qs(_.TFU,"yt-tab-group-shape",{props:{shape:_.GH}});var Lc=function(){var H=_.X.apply(this,arguments)||this;H.expandableCustomTabRenderable=function(C){return bzr(C,function(){return void H.onSearchNavigate()})};
H.isRichGrid=!1;H.isConstrainedList=!1;H.richGridMiniMode=!1;H.richGridStyle="RICH_GRID_STYLE_UNKNOWN";H.isRichGridShorts=!1;H.responsiveSizing="COMPACT";H.disableGridStateAware=!1;H.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return H};
_.G(Lc,_.X);_.F=Lc.prototype;_.F.computeHeaderDisabled=function(H,C){return C||!H||this.tabsHidden};
_.F.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.F.computeIsRichGridShorts=function(H){return H==="RICH_GRID_STYLE_SHORTS_GRID"||H==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.F.computeImageBannerViewModel=function(){var H,C;return _.e((C=_.e((H=this.data)==null?void 0:H.content,_.i47))==null?void 0:C.banner,_.g4b)};
_.F.computeHasCinematicContainer=function(){var H,C;return!((C=_.e((H=this.data)==null?void 0:H.content,_.i47))==null||!C.background)};
_.F.handleHeaderResize=function(){var H=_.mY(this.hostElement).querySelector("#header");H&&_.M3(H,"iron-resize")};
_.F.handleInsertTabCommand=function(H){var C=_.e(H,Lfp);C&&(C.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(S){return S.tabRenderer&&S.tabRenderer.tabIdentifier===C.tabIdentifier})||this.splice("tabs",C.tabIndex||-1,0,C.tab))};
_.F.handleRefreshChannelTabAction=function(H){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===H&&_.M3(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.F.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.Ed(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.F.observerRichGridSlimItemsPerRow=function(){_.Ed(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.F.updateCssVars=function(){this.richGridItemsPerRow&&_.Ed(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.YB("rich_grid_max_item_width",500))+16)-16+"px"})};
_.F.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.Ed(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.F.onDataChanged=function(){this.handleHeaderResize()};
_.F.onWindowResize=function(){this.handleHeaderResize()};
_.F.onFocusedChanged=function(H){(H=_.Jr(H))&&H.is==="tp-yt-paper-tab"&&H.hasRipple()&&(H.getRipple().holdDown=!H.pointerDown&&H.focused)};
_.F.updateSelectedFromBinding=function(H){this.ytdTabbedHeaderBehavior.selected=H.detail.value};
_.F.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.JJ.Object.defineProperties(Lc.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:u5r(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.imageBannerViewModel)==null?void 0:H.style)==="IMAGE_BANNER_STYLE_INSET"}}});
Lc.prototype.onDataChanged=Lc.prototype.onDataChanged;Lc.prototype.updateCssVarsForResponsiveGrid=Lc.prototype.updateCssVarsForResponsiveGrid;Lc.prototype.updateCssVars=Lc.prototype.updateCssVars;Lc.prototype.observerRichGridSlimItemsPerRow=Lc.prototype.observerRichGridSlimItemsPerRow;Lc.prototype.observerRichGridItemsPerRow=Lc.prototype.observerRichGridItemsPerRow;_.D([_.v(_.yz),_.K("design:type",Object)],Lc.prototype,"ytdGridStateAwareBehavior",void 0);
_.D([_.v(gOO),_.K("design:type",Object)],Lc.prototype,"ytdTabbedHeaderBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],Lc.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Lc.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.bU.YtdGuideStateAwareBehavior),_.K("design:type",Object)],Lc.prototype,"ytdGuideStateAwareBehavior",void 0);
_.D([_.v(_.q$),_.K("design:type",Object)],Lc.prototype,"ytdReduxBehavior",void 0);_.D([_.lA("#tabs"),_.K("design:type",Object)],Lc.prototype,"tabsElement",void 0);_.D([_.V(),_.K("design:type",Array)],Lc.prototype,"tabs",void 0);_.D([_.V(),_.K("design:type",Object)],Lc.prototype,"expandableCustomTabRenderable",void 0);_.D([_.l("tabs.*"),_.K("design:type",Object),_.K("design:paramtypes",[])],Lc.prototype,"tabGroupShape",null);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Lc.prototype,"isRichGrid",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Lc.prototype,"isConstrainedList",void 0);_.D([_.V({reflectToAttribute:!0,selector:_.rB}),_.K("design:type",Object)],Lc.prototype,"richGridMiniMode",void 0);_.D([_.V({selector:function(H){return H.ui.richGridStyle}}),
_.K("design:type",Object)],Lc.prototype,"richGridStyle",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.K("design:type",Object)],Lc.prototype,"isRichGridShorts",void 0);_.D([_.V({selector:_.BF}),_.K("design:type",Number)],Lc.prototype,"richGridItemsPerRow",void 0);_.D([_.V({selector:function(H){return H.ui.richGridContainerWidth}}),
_.K("design:type",Number)],Lc.prototype,"richGridContainerWidth",void 0);_.D([_.V({selector:_.c$U}),_.K("design:type",Number)],Lc.prototype,"richGridSlimItemsPerRow",void 0);_.D([_.V(),_.K("design:type",Object)],Lc.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Lc.prototype,"responsiveSizing",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Lc.prototype,"disableGridStateAware",void 0);
_.D([_.V({computed:"computeImageBannerViewModel(data)"}),_.K("design:type",Object)],Lc.prototype,"imageBannerViewModel",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.K("design:type",Boolean)],Lc.prototype,"hasCinematicContainer",void 0);_.D([_.V({selector:_.nT_,reflectToAttribute:!0}),_.K("design:type",Boolean)],Lc.prototype,"guideIsVisibleButNotPersistent",void 0);
_.D([_.V({reflectToAttribute:!0}),_.l("imageBannerViewModel"),_.K("design:type",Object),_.K("design:paramtypes",[])],Lc.prototype,"hasBanner",null);_.D([_.V({reflectToAttribute:!0}),_.l("imageBannerViewModel"),_.K("design:type",Object),_.K("design:paramtypes",[])],Lc.prototype,"hasInsetBanner",null);_.D([_.V({computed:"computeTabsHidden(tabs)",value:!0}),_.K("design:type",Boolean)],Lc.prototype,"tabsHidden",void 0);
_.D([_.fx("richGridItemsPerRow","isRichGrid"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Lc.prototype,"observerRichGridItemsPerRow",null);_.D([_.fx("richGridSlimItemsPerRow"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Lc.prototype,"observerRichGridSlimItemsPerRow",null);
_.D([_.fx("richGridItemsPerRow","richGridMiniMode"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Lc.prototype,"updateCssVars",null);_.D([_.fx("richGridContainerWidth"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Lc.prototype,"updateCssVarsForResponsiveGrid",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Lc.prototype,"onDataChanged",null);
_.D([_.h({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],Lc);
_.B(Lc,"ytd-tabbed-page-header",function(){if(KET!==void 0)return KET;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return KET=H},{mode:1});var HP7;var g_=function(){return _.X.apply(this,arguments)||this};
_.G(g_,_.X);g_.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.Ed(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.JJ.Object.defineProperties(g_.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var H,C;return this.componentBehavior.computeIcon_(((C=_.e((H=this.data)==null?void 0:H.badge,_.Z3_))==null?void 0:C.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var H,C;return(C=_.e((H=this.data)==null?void 0:H.badge,_.Z3_))==null?void 0:C.label}}});
g_.prototype.observerRichGridItemsPerRow=g_.prototype.observerRichGridItemsPerRow;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],g_.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],g_.prototype,"componentBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],g_.prototype,"ytdReduxBehavior",void 0);_.D([_.V({reflectToAttribute:!0,selector:_.rB}),_.K("design:type",Boolean)],g_.prototype,"richGridMiniMode",void 0);
_.D([_.V({selector:_.BF}),_.K("design:type",Number)],g_.prototype,"richGridItemsPerRow",void 0);_.D([_.V(),_.K("design:type",Object)],g_.prototype,"data",void 0);_.D([_.fx("richGridItemsPerRow"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],g_.prototype,"observerRichGridItemsPerRow",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],g_.prototype,"badgeIconName",null);
_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],g_.prototype,"badgeLabel",null);_.D([_.h({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],g_);
_.B(g_,"ytd-member-hub-profile-renderer",function(){if(HP7!==void 0)return HP7;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return HP7=H},{mode:1});var iPT;var UP=function(){return _.X.apply(this,arguments)||this};
_.G(UP,_.X);UP.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],UP.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],UP.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],UP.prototype,"data",void 0);_.D([_.h({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],UP);
_.B(UP,"ytd-settings-sidebar-renderer",function(){if(iPT!==void 0)return iPT;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return iPT=H},{mode:1});var CYc;var RR=function(){var H=_.X.apply(this,arguments)||this;H.expandableCustomTabRenderable=function(C){return bzr(C,function(){return void H.onSearchNavigate()})};
return H};
_.G(RR,_.X);RR.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
RR.prototype.onSearchNavigate=function(){this.selected=void 0};
RR.prototype.onTabsChange=function(){var H,C=(H=this.tabs)==null?void 0:H.findIndex(function(S){var w;return S==null?void 0:(w=S.tabRenderer)==null?void 0:w.selected});
C!==void 0&&(this.selected=C)};
RR.prototype.onTabsActive=function(H){if(this.tabs!==void 0){var C,S;(H=(C=this.tabs[H.detail.selected])==null?void 0:(S=C.tabRenderer)==null?void 0:S.endpoint)&&_.M3(this.hostElement,"yt-navigate",{endpoint:H})}};
_.JJ.Object.defineProperties(RR.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:u5r(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
RR.prototype.onTabsChange=RR.prototype.onTabsChange;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],RR.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.yz),_.K("design:type",Object)],RR.prototype,"ytdGridStateAwareBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],RR.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.bU.YtdGuideStateAwareBehavior),_.K("design:type",Object)],RR.prototype,"ytdGuideStateAwareBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],RR.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Array)],RR.prototype,"tabs",void 0);_.D([_.V(),_.K("design:type",Number)],RR.prototype,"selected",void 0);_.D([_.l("tabs.*"),_.K("design:type",Object),_.K("design:paramtypes",[])],RR.prototype,"tabGroupShape",null);_.D([_.V(),_.K("design:type",Object)],RR.prototype,"expandableCustomTabRenderable",void 0);
_.D([_.l("tabs"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],RR.prototype,"tabsEnabled",null);_.D([_.XJ("tabs"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],RR.prototype,"onTabsChange",null);_.D([_.h({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],RR);
_.B(RR,"ytd-topic-channel-details-renderer",function(){if(CYc!==void 0)return CYc;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return CYc=H},{mode:1});var Snv;var IR=function(){var H=_.X.apply(this,arguments)||this;H.disableGridStateAware=!1;return H};
_.G(IR,_.X);IR.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]]"}}}}}};
IR.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
IR.prototype.updateCssVars=function(){_.Ed(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.YB("rich_grid_max_item_width",500))+16)-16+"px"})};
IR.prototype.updateCssVars=IR.prototype.updateCssVars;IR.prototype.activeChanged=IR.prototype.activeChanged;_.D([_.v(_.bU.YtdGuideStateAwareBehavior),_.K("design:type",Object)],IR.prototype,"ytdGuideStateAwareBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],IR.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],IR.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],IR.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],IR.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Array)],IR.prototype,"tabs",void 0);_.D([_.V(),_.K("design:type",Boolean)],IR.prototype,"active",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],IR.prototype,"disableGridStateAware",void 0);
_.D([_.V({selector:_.BF}),_.K("design:type",Number)],IR.prototype,"richGridItemsPerRow",void 0);_.D([_.V({selector:_.rB}),_.K("design:type",Boolean)],IR.prototype,"richGridMiniMode",void 0);_.D([_.lA("ytd-carousel-item-renderer"),_.K("design:type",Object)],IR.prototype,"carousel",void 0);_.D([_.fx("active"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],IR.prototype,"activeChanged",null);
_.D([_.fx("richGridItemsPerRow","richGridMiniMode"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],IR.prototype,"updateCssVars",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],IR);
_.B(IR,"ytd-carousel-header-renderer",function(){if(Snv!==void 0)return Snv;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return Snv=H},{mode:1});var sVV;var jV4=_.xC(["https://www.google-analytics.com/analytics.js"]),aR=function(){var H=_.X.apply(this,arguments)||this;H.scriptAnalyticsAdded=!1;return H};
_.G(aR,_.X);aR.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var H,C=(H=this.data)==null?void 0:H.tagManagerId;C&&(_.jx(C,_.rh("GL")),fGj(C))};
aR.prototype.sendGoogleAnalyticsPageview=function(H){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var S=_.tc.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(S)};
var C=window.ga;C("set","page",window.location.pathname);C.l=+new Date;C("set","forceSSL",!0);C("create",H,"'auto'");C("send","pageview")};
aR.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var H=_.GZ("SCRIPT");H.name="ga-analytics";var C=_.qH(jV4);_.JY(H,C);H.async=!0;_.mY(this.hostElement).appendChild(H)};
aR.prototype.dataChanged=aR.prototype.dataChanged;_.D([_.V(),_.K("design:type",Object)],aR.prototype,"data",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],aR.prototype,"dataChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],aR);
_.B(aR,"ytd-channel-metadata-renderer",function(){if(sVV!==void 0)return sVV;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return sVV=H},{mode:1});var w7P;var A_P;var x2=function(){var H=_.X.apply(this,arguments)||this;H.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"]);H.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"]);H.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return H};
_.G(x2,_.X);_.F=x2.prototype;_.F.attached=function(){this.requestElementsPerRow()};
_.F.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_]]"}}}}}};
_.F.onUpdateElementsPerRowAction=function(H){H&&this.elementsPerRow!==H&&(this.elementsPerRow=H)};
_.F.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.F.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.F.computeAlertStyle_=function(H){return H};
_.F.observerElementsPerRow=function(){this.elementsPerRow&&_.Ed(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.F.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.F.requestElementsPerRow=function(){_.M3(this.hostElement,"yt-request-elements-per-row")};
x2.prototype.onIsVisibleChanged_=x2.prototype.onIsVisibleChanged_;x2.prototype.observerElementsPerRow=x2.prototype.observerElementsPerRow;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],x2.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],x2.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],x2.prototype,"actionHandlerBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],x2.prototype,"data",void 0);_.D([_.V({value:6,reflectToAttribute:!0}),_.K("design:type",Number)],x2.prototype,"elementsPerRow",void 0);_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],x2.prototype,"wrapButtons",void 0);_.D([_.V({value:_.rh("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.K("design:type",Boolean)],x2.prototype,"isMusic",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.K("design:type",String)],x2.prototype,"alertStyle",void 0);_.D([_.V({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.K("design:type",Function)],x2.prototype,"dismissBoundButtonTap_",void 0);_.D([_.V({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.K("design:type",Function)],x2.prototype,"acceptBoundButtonTap_",void 0);_.D([_.fx("elementsPerRow"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],x2.prototype,"observerElementsPerRow",null);_.D([_.fx("data.isVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],x2.prototype,"onIsVisibleChanged_",null);_.D([_.Lx({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],x2);
_.B(x2,"yt-alert-with-actions-renderer",function(){if(A_P===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;w7P===void 0&&(w7P=document.createElement("template"));var w=w7P;S.call(C,w.content.cloneNode(!0),H.content.firstChild);A_P=H}H=A_P;return H},{mode:2});_.qs(_.n(function(H){function C(N){var b={};return _.q(_.uZ,{text:N,className:_.eJ("ytPersonalGreetingViewModelHeadline",(b.ytPersonalGreetingViewModelHeadlineSmall=function(){return Y()===48},b))})}
function S(N,b){return _.q("span",{el:N,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},C(b))}
var w=_.Zl(_.Bt(function(){var N;return(N=H.data())==null?void 0:N.rendererContext},void 0,void 0,void 0,!0)),A=_.sW("span"),J=_.sW("span"),c=function(){return H.data().canvasPromoData},Y=function(){var N;
return(N=H.data().bannerHeight)!=null?N:56},M=_.qVZ(w,{throttleMs:100}),m=_.qVZ(A,{throttleMs:100}),W=_.qVZ(J,{throttleMs:100}),y=function(){return m.width()-M.width()>1};
return _.q("yt-personal-greeting-view-model",{el:w,"aria-hidden":y,class:_.eJ(H.className,"ytPersonalGreetingViewModelHost"),style:_.vb({height:(0,_.cd)(function(){return y()?0:Y()})})},_.q(_.T,{cond:function(){return H.data().avatar&&!(W.width()+(H.data().avatar?48:0)-M.width()>1)},
then:function(){return _.q(_.V4,{data:function(){return H.data().avatar}},{decoratedAvatarViewModel:function(N){return _.q(_.cG,{data:N.data,
className:_.eJ("ytPersonalGreetingViewModelAvatar")})}})}}),_.q("h1",null,C(function(){var N;
return(c==null?void 0:(N=c())==null?void 0:N.headline)||(W.width()+(H.data().avatar?48:0)-M.width()>1?H.data().shorterGreeting:H.data().greeting)})),S(J,function(){return H.data().greeting}),S(A,function(){return H.data().shorterGreeting}))},"Ck"),"yt-personal-greeting-view-model",{props:{data:_.GH,
className:_.GH}});var H1=function(){var H=_.X.apply(this,arguments)||this;H.hidden=!1;H.isConstrainedList=!1;H.darkerDarkTheme=_.E("web_darker_dark_theme");H.responsiveSizing="COMPACT";H.attachedPlayers=_.E("kevlar_channel_trailer_multi_attach")?[]:void 0;H.player=null;H.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return H};
_.G(H1,_.X);_.F=H1.prototype;
_.F.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}}}}};
_.F.created=function(){var H=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){H.disposeMastheadAd()}]};
_.F.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new IG_(this.refresh,this.contents))};
_.F.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.F.activeChanged=function(){var H=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=H)};
_.F.tabsChanged=function(){var H=this,C,S;if(this.pageSubtype==="channels"||_.E("kevlar_tab_gestures_for_tabbed_header_data")&&((C=this.data)==null?0:(S=C.header)==null?0:S.carouselHeaderRenderer))this.tabGestures=new HUc(this.contents,this.contents,this.hostElement,this.header,function(c){H.ytdReduxBehavior.dispatch(c)});
var w,A,J;C=(w=this.data)==null?void 0:(A=w.contents)==null?void 0:(J=A.twoColumnBrowseResultsRenderer)==null?void 0:J.tabs;this.tabGestures&&this.tabGestures.tabsChanged(C)};
_.F.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.F.engagementPanelsChanged=function(){var H=_.JA().resolve(_.jD);if(H){if(this.engagementPanels)for(var C=_.Z(this.engagementPanels),S=C.next();!S.done;S=C.next()){var w=void 0;(S=(w=S.value.identifier)==null?void 0:w.tag)&&H.panelMap.delete(S)}this.engagementPanels=[];var A;C=_.Z(((A=this.data)==null?void 0:A.panels)||[]);for(A=C.next();!A.done;A=C.next()){A=_.e(A.value,_.q8O);var J=S=void 0,c=void 0,Y=void 0;if(w=((S=A)==null?void 0:S.targetId)||((J=A)==null?void 0:J.panelIdentifier)||((c=A)==
null?void 0:(Y=c.identifier)==null?void 0:Y.tag))J=S=void 0,(J=(S=H).registerPanelContent)==null||J.call(S,w,{engagementPanelSectionListRenderer:A}),this.engagementPanels.push(A)}}};
_.F.onStampFinished=function(){var H=this;_.wM(this,function(){if(H.tabGestures){var C=H.tabGestures;if(C.scrollPositionNeedsUpdate){var S=_.JA().resolve(_.AA(_.JB)),w;if((w=C.selectedTab)!=null&&w.title&&S&&(w=S.getCurrentPage())){if(C.scrollPositionForTabs.has(C.selectedTab.title)){var A,J;S=(J=(A=S.getCurrentPage())==null?void 0:A.clientHeight)!=null?J:0;A=C.scrollPositionForTabs.get(C.selectedTab.title);w.setScrollTop(A);S>A+100&&(C.scrollPositionNeedsUpdate=!1)}else w.setScrollTop(Math.min(C.lastVisitedTabScrollPosition!==
void 0?C.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,C.tabsStartAtInPx)),C.scrollPositionNeedsUpdate=!1;C.ytdReduxDispatch(GBK(!1))}}}})};
_.F.loadPage_=function(H){this.initCsi();H&&(this.data=H);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.F.getTitle=function(H){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",H))return this.get("microformat.microformatDataRenderer.title",H);if(this.get("header.feedTabbedHeaderRenderer.title",H))return _.jt(this.get("header.feedTabbedHeaderRenderer.title",H));if(this.get("header.interactiveTabbedHeaderRenderer.title",H))return this.get("header.interactiveTabbedHeaderRenderer.title",H);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
H))return _.jt(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",H));var C,S;return(H==null?0:(C=H.header)==null?0:(S=C.pageHeaderRenderer)==null?0:S.pageTitle)?H.header.pageHeaderRenderer.pageTitle:""};
_.F.updateTitle=function(H){_.M3(this.hostElement,"yt-update-title",this.getTitle(H))};
_.F.initCsi=function(){_.mXK(this.pageSubtype||"browse",["ol","cpt"])};
_.F.getPlayer=function(){if(_.E("kevlar_channel_trailer_multi_attach")){for(var H=_.Z(this.attachedPlayers),C=H.next();!C.done;C=H.next())if(C=C.value,C.isConnected||_.gS(this.hostElement,C))return C;return null}return this.player};
_.F.getPlayerContainer=function(){return null};
_.F.onPlayerAttached=function(H,C){_.E("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(C):this.player=C};
_.F.onPlayerDetached=function(H,C){_.E("kevlar_channel_trailer_multi_attach")?(H=this.attachedPlayers.indexOf(C),H<0||this.attachedPlayers.splice(H,1)):this.player=null};
_.F.getServiceTrackingParams=function(){var H,C;return((H=this.data)==null?void 0:(C=H.responseContext)==null?void 0:C.serviceTrackingParams)||[]};
_.F.setMastheadAd=function(H){H&&H.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=H&&H.mastheadAd};
_.F.dataChanged=function(){var H=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.JF3();_.wM(this,function(){_.m7(H.hostElement,"ytd-update-grid-state-action")})};
_.F.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.F.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var H=this.data.alerts;return H&&H.find(function(C){return!!C.alertWithActionsRenderer})}};
_.F.computeGreetingData=function(){if(this.data&&this.data.alerts){var H=this.data.alerts;return H&&H.find(function(C){return!!C.personalGreetingViewModel})}};
_.F.computeHasMemberHubProfileRenderer=function(H){var C;return!!(H==null?0:(C=H.header)==null?0:C.memberHubProfileRenderer)};
_.F.handleAlertCommand=function(H){this.get("alertCommand.alert.alertWithActionsRenderer",H)&&(H=_.e(H,Pnq),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",H.alert))};
_.F.handleYtPlaylistDeletionRedirect=function(H){H=this.get("playlistDeletionRedirectCommand.redirectEndpoint",H);_.M3(this.hostElement,"yt-navigate",{endpoint:H})};
_.F.computeFluidWidth=function(H,C,S){if(C==="mini_app"||S)return!0;var w,A,J;H=H==null?void 0:(w=H.contents)==null?void 0:(A=w.twoColumnBrowseResultsRenderer)==null?void 0:(J=A.tabs)==null?void 0:J.find(function(M){var m;return M==null?void 0:(m=M.tabRenderer)==null?void 0:m.selected});
if(!H)return!1;var c,Y;return!!((c=H.tabRenderer)==null?0:(Y=c.content)==null?0:Y.richGridRenderer)&&!["channel","channels","playables"].includes(C)};
_.F.computeHeaderFluidWidth=function(H){return H==="hashtag-landing-page"};
_.F.computeHasSidebar=function(H){var C;return!!(H.sidebar||((C=H.header)==null?0:C.playlistHeaderRenderer))};
_.F.computeHasPageHeaderSidebar=function(H){var C,S;return!!((C=H.header)==null?0:(S=C.pageHeaderRenderer)==null?0:S.enableSidebarView)};
_.F.computeUseUnifiedShowPageLayout=function(H){if(!H||this.pageSubtype!=="show"||!H.sidebar||!H.sidebar.playlistSidebarRenderer)return!1;H=H.sidebar.playlistSidebarRenderer;if(!H.items)return!1;for(var C=0;C<H.items.length;C++)if(_.e(H.items[C],kBR)){var S=void 0;return((S=_.e(H.items[C],kBR))==null?void 0:S.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.F.computeIsConstrainedList=function(H){return _.E("web_enable_constrained_list_subscriptions_channels")&&H==="subscriptions-channels"};
_.F.computeResponsiveSizing=function(H){return H==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.JJ.Object.defineProperties(H1.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var H,C;return((H=this.data)==null?0:(C=H.header)==null?0:C.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var H,C;if(!((H=this.data)==null?0:(C=H.sidebar)==null?0:C.playlistSidebarRenderer))return!1;var S;return(S=this.data)!=null&&S.header?!1:!0}}});
_.JJ.Object.defineProperties(H1,{template:{configurable:!0,enumerable:!0,get:function(){if(iU9===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);iU9=H}H=iU9;return H}}});
H1.prototype.dataChanged=H1.prototype.dataChanged;H1.prototype.onPlayerDetached=H1.prototype.onPlayerDetached;H1.prototype.onPlayerAttached=H1.prototype.onPlayerAttached;H1.prototype.onStampFinished=H1.prototype.onStampFinished;H1.prototype.engagementPanelsChanged=H1.prototype.engagementPanelsChanged;H1.prototype.scrollAtTopChanged=H1.prototype.scrollAtTopChanged;H1.prototype.tabsChanged=H1.prototype.tabsChanged;H1.prototype.activeChanged=H1.prototype.activeChanged;
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],H1.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.OY),_.K("design:type",Object)],H1.prototype,"ytdOpenPopupBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],H1.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],H1.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.j6.YtPageBehavior),_.K("design:type",Object)],H1.prototype,"ytPageBehavior",void 0);
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],H1.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.bU.YtdGuideStateAwareBehavior),_.K("design:type",Object)],H1.prototype,"ytdGuideStateAwareBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],H1.prototype,"ytComponentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],H1.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],H1.prototype,"hidden",void 0);
_.D([_.V(),_.K("design:type",Object)],H1.prototype,"mastheadAdData",void 0);_.D([_.V({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.K("design:type",Object)],H1.prototype,"alertBannerData",void 0);_.D([_.V({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.K("design:type",Object)],H1.prototype,"greetingData",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",String)],H1.prototype,"pageSubtype",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.K("design:type",Boolean)],H1.prototype,"hasMemberHubProfileRenderer",void 0);_.D([_.V({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],H1.prototype,"hasSidebar",void 0);_.D([_.V({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],H1.prototype,"hasPageHeaderSidebar",void 0);
_.D([_.V({reflectToAttribute:!0,value:!0}),_.K("design:type",Boolean)],H1.prototype,"roundedContainer",void 0);_.D([_.V({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],H1.prototype,"useUnifiedShowPageLayout",void 0);_.D([_.V({computed:"computeIsConstrainedList(pageSubtype)"}),_.K("design:type",Object)],H1.prototype,"isConstrainedList",void 0);
_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],H1.prototype,"usePlaylistHeaderRenderer",null);_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],H1.prototype,"useOldPlaylistSidebarRenderer",null);_.D([_.V({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.K("design:type",Boolean)],H1.prototype,"fluidWidth",void 0);_.D([_.V({selector:function(H){return H.ui.scrollAtTop}}),
_.K("design:type",Boolean)],H1.prototype,"scrollAtTop",void 0);_.D([_.V({selector:_.rEj}),_.K("design:type",Boolean)],H1.prototype,"tabGesturesIsActive",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],H1.prototype,"darkerDarkTheme",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.K("design:type",Boolean)],H1.prototype,"disableHeaderFluidWidth",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.K("design:type",String)],H1.prototype,"responsiveSizing",void 0);_.D([_.lA("ytd-two-column-browse-results-renderer"),_.K("design:type",HTMLElement)],H1.prototype,"contents",void 0);_.D([_.lA("#header"),_.K("design:type",HTMLElement)],H1.prototype,"header",void 0);_.D([_.lA("ytd-refresh"),_.K("design:type",Object)],H1.prototype,"refresh",void 0);
_.D([_.fx("active"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],H1.prototype,"activeChanged",null);_.D([_.fx("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],H1.prototype,"tabsChanged",null);_.D([_.fx("scrollAtTop"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],H1.prototype,"scrollAtTopChanged",null);
_.D([_.V(),_.K("design:type",Object)],H1.prototype,"engagementPanels",void 0);_.D([_.fx("data.panels"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],H1.prototype,"engagementPanelsChanged",null);_.D([_.Gz("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],H1.prototype,"onStampFinished",null);
_.D([_.Gz("yt-player-attached"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Element]),_.K("design:returntype")],H1.prototype,"onPlayerAttached",null);_.D([_.Gz("yt-player-detached"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Element]),_.K("design:returntype")],H1.prototype,"onPlayerDetached",null);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],H1.prototype,"dataChanged",null);
_.D([_.h({is:"ytd-browse"})],H1);_.n$.registerService(_.yWp,H1);
_.n6();
}catch(e){_._DumpException(e)}
try{
_.hk("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 Ck,lRO,VRO,oRr,OLr,XH_,QkK,d3O,P9o,$3p,pHi,koi,hNr,rMq,BVo,K79,tRK,L79,U3r,RNK,IRq,aRj,Sq,H8i,sC,i8o,Cao,Sai,suO,juj,Afj,FF9,wF3,nRr,Z8q,cfO,Yao,zD3,MpO,qao,TBp,md_,WFj,NBR,b8K,eDK,Gn_,v6j,lyt,VpO,O8i,QuO,ddj,Pap,$dt,pF9,kni,hDq,n6R,rfp,BBr,Ddj,KFi,tpK,LF9,g6o,UdO,RDO,Iy_,ay3,Hfp,ifO,C4_,Sx9,sw9,jwO,wUi,AGR,JGp,F6R,Zf_,cGi,Yxi,zup,Mtq,qxR,Tmi,m5O,W6r,yGO,Nmr,bfp,EFK,eut,zO,uGK,G5R,loO,pUO,rGt,BmO,gFq,U53,L6i,K6R,x5i,CAK,Jr_,D5o,sZp,Hxi,yI,ZxO,zKK,TEt,MsO,qdO,mTO,bxj,yrR,Ez9,eKi,NEi,WYR,uJi,eq,
ul,ozi,OxK,GO,XYR,QZR,dTp,nzK,rr3,fk,vx,DTt,BEK,KYp,tsi,LYt,gzi,ll,VI,oG,CJ9,S4O,smp,X8,Fn3,jmR,JxK,Z7o,wIq,Y4O,Axo,q4i,zxj,MU9,QI,mWO,TCi,b79,GpK,pk,kL,exp,vj_,uHi,f5p,nk,Bx,De,Kk,UWR,kp9,a5i,xW9,HuK,iuK,SUO,Qmi,dWi,gI,$Wq,tX,Lk,pIt,Cm9,RxO,PJi,RG,cgR,zep,MJ9,YUO,AgO,TWt,yg_,i1,xL,Hc,Ebt,wbj,S5,W33,Jg_,ms3,Zur,jWj,F3K,uB9,GGp,flO,lli,obp,Oui,XbR,QWi,Pmo,dsO,pbi,kGR,nbp,rgo,DsO,K3o,tJj,L3p,gbo,Usj,ReR,alp,IlO,xsR,Hni,wD,in_,CrK,A5,S5t,s$t,j$p,wtK,ABK,JBr,F_o,Zn9,Y53,J5,zXR,M4j,mpO,yBO,NwO,Ei3,bnt,
eX3,u1i,Gb9,vii,lzK,V49,oip,Onr,Xto,Q$t,dpO,Pr9,$pp,ptt,kbr,BwO,DpK,nir,rBi,hX_,K_t,gir,t4i,L_9,IzK,Up3,RXi,azO,xp_,HN3,iNp,Sjo,sJR,jJ3,AhO,Jhi,ZNo,Yj3,MAi,T$K,WRp,N$_,EQi,ueO,vQO,lBi,VAj,ONo,oQt,QJ_,dNR,PKt,$NO,ZI,pQO,k_9,hM9,RMK,aBj,xNr,S6o,sh3,jhi,wft,JNp,ANO,Fxq,Zdi,cNK,Y6t,z8t,M8,M9K,qP,qjR,q6p,TRr,fyo,mIK,WxR,yNo,NRq,bdO,ECp;
Ck=function(H){if(!H)return"browse";var C=H.page,S=H.url,w,A,J,c=(w=H.response)==null?void 0:(A=w.responseContext)==null?void 0:(J=A.webResponseContextExtensionData)==null?void 0:J.pageTheme;if(c)C=c.toLowerCase().replace(/_/g,"-");else if(C!=="watch"&&C!=="learning_journey_watch"){var Y,M;if((C==="browse"||C==="settings")&&((Y=H.response)==null?0:(M=Y.sidebar)==null?0:M.settingsSidebarRenderer))C="WEB_PAGE_TYPE_SETTINGS";else{var m,W;C==="browse"&&((m=H.response)==null?0:(W=m.metadata)==null?0:W.channelMetadataRenderer)?
C="channel":S&&(C=_.B96(S)||C)}}return C};
lRO=function(){var H=_.gh("yt.aba.att");return H?H:_.ny.instance!==void 0?_.ny.instance.b6W.bind(_.ny.instance):null};
VRO=function(H,C){var S;return _.z(function(w){return(S=lRO())?w.return(S(H,C,6E4)):w.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
oRr=function(H,C,S,w,A){C=C===void 0?[]:C;A=A?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:A}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.cF(H),dialogMessages:C.map(function(J){return _.cF(J)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.cF(S),serviceEndpoint:A}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.cF(w)}}}}}};
OLr=function(H){var C=!!_.Nb().queueProxy;var S,w,A;H=H==null?void 0:(S=H.response)==null?void 0:(w=S.currentVideoEndpoint)==null?void 0:(A=w.watchEndpoint)==null?void 0:A.playlistId;return!(!C&&!H)};
XH_=function(H,C){var S=_.LO();if(OLr(H)&&!_.E("web_watch_disable_playlist_auto_miniplayer"))return S.playlistWatchPageActivation=!0;switch(Ck(C)){case "yts-products":return S.productDetailsPageActivation=!0;case "mini_app":return S.miniAppPageActivation=!0;case "playables":return S.playablesDestPageActivation=!0;default:return!1}};
QkK=function(H){H=_.AV6(H);H.length>0&&H[0].focus()};
d3O=function(H,C,S){for(var w=typeof H==="string"?H.split(""):H,A=H.length-1;A>=0;--A)A in w&&C.call(S,w[A],A,H)};
P9o=function(H,C){C=_.lwZ(H,C);C>=0&&_.OUW(H,C)};
$3p=function(H){return Array.prototype.concat.apply([],arguments)};
pHi=function(H){var C=0;C=C===void 0?0:C;if(!_.xM(H))throw _.CP("uint64");var S=typeof H;switch(C){case 512:switch(S){case "string":return _.X7E(H);case "bigint":return String((0,_.q9)(64,H));default:return _.oMW(H)}case 1024:switch(S){case "string":return _.QVW(H);case "bigint":return _.P7((0,_.q9)(64,H));default:return _.OPE(H)}case 0:switch(S){case "string":return _.X7E(H);case "bigint":return _.P7((0,_.q9)(64,H));default:return _.V7E(H)}default:return _.KP(C,"Unknown format requested type for int64")}};
koi=function(H){H!=null&&(H=H.JSC$8834_value_||"",H=typeof H==="string"?H:new Uint8Array(H));return H};
hNr=function(H,C){if(/-[a-z]/.test(C))return null;if(_.EDb&&H.dataset){if(_.yVU()&&!(C in H.dataset))return null;H=H.dataset[C];return H===void 0?null:H}return H.getAttribute("data-"+_.vM(C))};
rMq=function(){var H=nRr;_.gh("yt.ads.biscotti.getId_")||_.AO("yt.ads.biscotti.getId_",H)};
BVo=function(H){_.AO("yt.ads.biscotti.lastId_",H)};
K79=function(){var H={};for(_.pv=new D3q(H.handleError===void 0?_.rv:H.handleError,H.logEvent===void 0?_.kI:H.logEvent);_.kB.length>0;)switch(H=_.kB.shift(),H.type){case "ERROR":_.pv.logError(H.payload);break;case "EVENT":_.pv.logEvent(H.eventType,H.payload)}};
tRK=function(H,C,S){return _.C4$(function(w){return S?w.userIdentifier!==void 0&&!H.includes(w.userIdentifier)&&S.includes(w.publicName):w.userIdentifier!==void 0&&!H.includes(w.userIdentifier)},C)};
L79=function(H){var C,S;return _.z(function(w){if(w.nextAddress==1)return C=_.oa("YtIdbMeta hasAnyMeta other"),w.yield(_.C4$(function(A){return A.userIdentifier!==void 0&&A.userIdentifier!==C},H),2);
S=w.yieldResult;return w.return(S.length>0)})};
U3r=function(H,C){gRK||(gRK=_.rT.addLowPriorityJob(function(){var S,w,A,J,c;return _.z(function(Y){switch(Y.nextAddress){case 1:return Y.yield(_.JO(),2);case 2:S=Y.yieldResult;if(!S)return Y.return();w=!0;_.en(Y,3);return Y.yield(tRK(H,S,C),5);case 5:A=Y.yieldResult;if(!A.length){w=!1;Y.jumpTo(6);break}J=A[0];return Y.yield(_.H9(J.actualName),7);case 7:return Y.yield(_.Sk(J.actualName,S),6);case 6:_.xB(Y,4);break;case 3:c=_.Vx(Y),_.hA(c),w=!1;case 4:_.rT.cancelJob(gRK),gRK=0,w&&U3r(H,C),_.oT(Y)}})}))};
RNK=function(){var H;return _.z(function(C){return C.nextAddress==1?C.yield(_.JO(),2):(H=C.yieldResult)?C.return(L79(H)):C.return(!1)})};
IRq=function(H){var C=100;C=C===void 0?500:C;var S,w,A,J,c,Y;return _.z(function(M){return M.nextAddress==1?(S=_.rh("INNERTUBE_CONTEXT_CLIENT_NAME",0),w=[S,(0,_.Zt)()-2592E6],A=[S,(0,_.Zt)()],J=IDBKeyRange.bound(w,A),M.yield(_.l5Z(H),2)):M.nextAddress!=3?(c=M.yieldResult,Y=[],M.yield(_.CV(c,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(m){Y.length=0;return _.c9(m.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:J,direction:"prev"},function(W){if(W.getValue()&&Y.length<
C)return Y.push(W.getValue()),W.delete().then(function(){return W.continue()})})}),3)):M.return(Y)})};
aRj=function(){var H;return _.z(function(C){if(C.nextAddress==1)return C.yield(_.JO(),2);H=C.yieldResult;if(!H||!_.OE()&&!_.E("nwl_init_require_datasync_id_killswitch")||!_.gjw())return C.jumpTo(0);_.Rx7=!0;_.UWW.isNwlInitialized=_.Rx7;return C.yield(_.kcd().awaitInitialization(),0)})};
Sq=function(H,C){_.zei[H]=!0;var S=_.YI();S&&S.publish.apply(S,arguments);_.zei[H]=!1};
H8i=function(){if(_.DTE()&&!x3K){var H=function(S){S=S.data;if(S.op==="serializedGelBatch"){var w=_.M4E.get(S.key);w&&(_.TwD(S.serializedBatch,w.client,w.resolve,w.networklessOptions,w.isIsolated,w.useVSSEndpoint,w.dangerousLogToVisitorSession,w.requestsOutstanding),_.M4E.delete(S.key))}},C=_.BE6();
C&&(C.addEventListener("message",H),C.onerror=function(){_.M4E.clear()});
x3K=!0}};
sC=function(){this.relativeTimeStart_=_.FF()};
i8o=function(H,C){H!=null&&this.append.apply(this,arguments)};
Cao=function(){return _.Uk("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
Sai=function(H,C,S){S=S===void 0?!1:S;var w,A,J,c,Y;return _.z(function(M){switch(M.nextAddress){case 1:_.l5("SOCS",H,34128E3,"youtube.com",!0);if(_.Wu)return A=fetch(C,{method:"POST",mode:_.i9(C),credentials:_.HH(C),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),J=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.i9("/upgrade_visitor_cookie?eom=1"),credentials:_.HH("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),M.yield(Promise.all([A,J]).then(function(m){return m[1]}),5);
fetch(C,{method:"POST",mode:_.i9(C),credentials:_.HH(C),cache:"no-store",headers:{"Content-Type":"text/plain"}});return M.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.i9("/upgrade_visitor_cookie?eom=1"),credentials:_.HH("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:w=M.yieldResult;M.jumpTo(3);break;case 5:w=c=M.yieldResult;case 3:if(!w.ok)throw Error("sf");return M.yield(w.text(),7);case 7:Y=M.yieldResult,
!Y.includes('"state_switch":true')&&!S||Y.includes("skip_reload_for_test")||window.location.reload(),_.oT(M)}})};
suO=function(H){return _.z(function(C){return C.nextAddress==1?C.yield(Sai(H.socsCookie,H.savePreferenceUrl,!0),2):C.return()})};
juj=function(H){return _.z(function(C){return C.nextAddress==1?C.yield(Sai(H.socsCookie,H.savePreferenceUrl),2):C.return()})};
Afj=function(H){H=H.xhr.responseText;if(!_.AV(H,")]}'"))throw new jq;H=JSON.parse(H.substr(4));if((H.type||1)>1)throw new jq;H=H.id;BVo(H);wI=_.Ef(H);wF3(18E5,2);return H};
FF9=function(H,C){C=new JfK(C);BVo("");wI=_.YI1(C);H>0&&wF3(12E4,H-1);throw C;};
wF3=function(H,C){_.yD(function(){_.C9p().then(Afj,function(S){return FF9(C,S)}).thenCatch(_.Q5)},H)};
nRr=function(){var H=_.jkR();if(H!==void 0)return _.kj(H);wI||(wI=_.C9p().then(Afj).thenCatch(function(C){return FF9(2,C)}));
return wI};
Z8q=function(){var H=document;return _.PZ(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(C){return"on"+C.toLowerCase()in H})};
cfO=function(H){H.addEventListener("click",function(C){var S=C.target;S&&S.getAttribute("href")&&(S=S.getAttribute("href"),_.CM(window,S,"_blank"),C.preventDefault(),C.stopImmediatePropagation())})};
Yao=function(H){var C,S,w,A=(w=(S=((C=H.mainDownloadsListEntity)!=null?C:{})[_.Sew])==null?void 0:S.refresh)!=null?w:"",J;H=(J=H.refresh)==null?void 0:J[A];A=H!=null?H:{};return(A==null?0:A.refreshTime)?Number(A==null?void 0:A.refreshTime):0};
zD3=function(H,C){var S=_.$6(H);return C.every(function(w){var A;w=w==null?void 0:(A=w.playbackDataEntity)==null?void 0:A.key;if(!w)return!1;A=_.ba(_.Tn(w).entityId,"mainVideoEntity");return!!S[A]})};
MpO=function(H){H=_.Qf(H.entities);return _.mcu(H).length};
qao=function(H,C){if(C){var S;H=(S=_.Ea(H.entities,"downloadQualityPickerEntity",C))!=null?S:void 0}else H=void 0;return H};
TBp=function(H){var C=document.getElementsByTagName("ytd-enforcement-message-view-model");C.length===0||getComputedStyle(C[0]).display==="none"?H(0,"p.h_"):H(1,"p.h_")};
md_=function(){AX=0;var H=[_.ow(!0)];JX&&_.m7(JX,"yt-window-resized",H)};
WFj=function(){AX||(AX=_.rT.addLowPriorityJob(md_,200))};
NBR=function(){F8=0;yfr=_.eiP(document);var H=[yfr];JX&&_.m7(JX,"yt-window-scrolled",H)};
b8K=function(){F8||(F8=_.rT.addLowPriorityJob(NBR,200))};
eDK=function(H){H=H===void 0?null:H;E69.push(_.Jt(window,"resize",WFj));E69.push(_.Jt(window,"scroll",b8K));H&&(JX=H)};
Gn_=function(){var H={isWide:_.vA.get("wide","0")==="1"},C=_.VN();if(C=C.getFlag(165)||C.getFlag(174))H.theme=_.$F(!0);if(_.CqW()){var S=_.PU()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";H.systemTheme=S}!C&&_.E("parent_tools_enable_app_settings")&&_.xT(window.location.href).theme!==void 0&&(H.theme=_.$F());if((C=Ze)?!_.hb.equals(C,H):H)C={currentValue:H},u_r&&(C.timeSinceLastSnapshotSecs=Math.round(((0,_.Zt)()-u_r)/1E3)),Ze&&(C.previousValue=Ze),_.kI("appSettingsCaptured",C),Ze=H,u_r=
(0,_.Zt)()};
v6j=function(){var H=_.nf.getLocalStorage();H&&fyo(H,H.mechanism.__iterator__(!0))};
lyt=function(H){_.z(function(C){if(C.nextAddress==1)return C.yield(H.delete("yt-appshell-assets"),2);_.oT(C)})};
VpO=function(H){return _.iC((0,_.nab)(),H)};
O8i=function(){var H;_.z(function(C){return C.nextAddress==1?C.yield(cx.getInstance(),2):(H=C.yieldResult)?C.yield(o6_(H),0):C.jumpTo(0)})};
QuO=function(){var H;_.z(function(C){return C.nextAddress==1?C.yield(YL.getInstance(),2):(H=C.yieldResult)?C.yield(XFr(H),0):C.jumpTo(0)})};
ddj=function(H){lyt(H);O8i();QuO()};
Pap=function(H){var C,S;return _.z(function(w){if(w.nextAddress==1)return w.yield(_.uQW(H),2);if(C=w.yieldResult){var A;a:{if(C.headers&&(A=C.headers.get("date"))&&(A=Date.parse(A),!isNaN(A))){A=Math.round((0,_.Zt)()-A);break a}A=-1}S=A;if(S>-1)return w.return(S)}return w.return(-1)})};
$dt=function(){var H=_.s$.caches,C=_.Bh("IS_SHELL_LOAD"),S,w;_.z(function(A){if(A.nextAddress==1)return S=-1,C?A.yield(Pap(H),3):(w=_.PH(),S=Math.round((0,_.Zt)()-w),A.jumpTo(2));A.nextAddress!=2&&(S=A.yieldResult);S>=0&&S<2147483648&&_.nL({appInstallDataAgeMs:S});_.oT(A)})};
pF9=function(H){var C=_.I7(_.s$.location.href),S={};"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(w){var A=C.JSC$10045_queryData_.getValues(w);if(A==null?0:A.length)S[w]=A});
return _.TV(H,new Map(Object.entries(S)))};
kni=function(H){H=H.match(/(.*)::.*::.*/);if(H!==null)return H[1]};
hDq=function(H){if(_.BzV()){var C=Object.keys(window.localStorage);C=_.Z(C);for(var S=C.next();!S.done;S=C.next()){S=S.value;var w=kni(S);w===void 0||H.includes(w)||self.localStorage.removeItem(S)}}};
n6R=function(){if(!_.BzV())return!1;var H=_.oa(),C=Object.keys(window.localStorage);C=_.Z(C);for(var S=C.next();!S.done;S=C.next())if(S=kni(S.value),S!==void 0&&S!==H)return!0;return!1};
rfp=function(H){return _.rl("NotificationsDisabled",H)};
BBr=function(){return Notification.permission!="granted"?Promise.resolve():_.BhR().then(function(H){return H?H.pushManager.getSubscription().then(function(C){if(C)return Promise.resolve();C={userVisibleOnly:!0,applicationServerKey:_.iY("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return H.pushManager.subscribe(C).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
Ddj=function(H){return _.BhR().then(function(C){if(!C||!C.active)return Promise.reject(new _.X0("serviceworker.postMessage",H,C));try{return C.active.postMessage(H),Promise.resolve()}catch(S){return Promise.reject(S)}})};
KFi=function(){Ddj({type:"notifications_register",data:_.rh("ID_TOKEN")})};
tpK=function(){if(!_.Bh("LOGGED_IN"))return Promise.resolve(!1);var H=_.z9("service_worker_push_force_notification_prompt_tag");return H?_.DP("PromptTags").then(function(C){if(!C)return!0;var S=[];try{S=JSON.parse(C)}catch(w){return!1}return S&&S.indexOf(H)==-1}):Promise.resolve(!1)};
LF9=function(){var H=_.YB("service_worker_push_prompt_delay_microseconds");return H?_.DP("PromptTime").then(function(C){return Promise.resolve(Date.now()-H>(C||0))}):Promise.resolve(!0)};
g6o=function(){var H=_.YB("service_worker_push_logged_out_prompt_watches");return H==-1?Promise.resolve(!1):_.DP("WatchCount").then(function(C){return C>=H})};
UdO=function(){var H=_.Yi(document,"yt-push-prompt-modal-bg");H&&_.f6(H)};
RDO=function(){return _.YB("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.DP("PromptCount").then(function(H){H||(H=0);return Promise.resolve(H<_.YB("service_worker_push_prompt_cap"))})};
Iy_=function(H){return _.Bh("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.Bh("LOGGED_IN")&&(H===void 0?0:H)?tpK().then(function(C){if(C)return!0;C=[RDO(),LF9()];_.Bh("LOGGED_IN")||C.push(g6o());return Promise.all(C).then(function(S){return S.every(function(w){return w})})}):Promise.resolve(!1)};
ay3=function(){_.DP("PromptCount").then(function(H){return _.rl("PromptCount",H+1)}).then(function(){return _.rl("PromptTime",Date.now())}).then(function(){var H=_.z9("service_worker_push_force_notification_prompt_tag");
if(H)return _.DP("PromptTags").then(function(C){var S=[];if(C)try{S=JSON.parse(C)}catch(w){return!1}S||(S=[]);S.push(H);return _.rl("PromptTags",JSON.stringify(S))})})};
Hfp=function(){xdR||UdO()};
ifO=function(H){H.style.zIndex=2147483648;H.style.pointerEvents="auto";H.style.backgroundColor="rgba(0, 0, 0, 0.6)";H.style.width="100%";H.style.height="100vh";H.style.position="absolute";H.style.top="0";H.style.left="0";H.style.border="none"};
C4_=function(){var H=_.Yi(document,"yt-push-prompt-modal-bg");xdR=_.E("service_worker_push_prompt_modal_ignore_click");H?ifO(H):(H=_.r1("div",{id:"yt-push-prompt-modal-bg"}),ifO(H),document.body.appendChild(H),_.Jg$(document,"click",Hfp))};
Sx9=function(){var H=arguments;_.E("service_worker_push_prompt_modal_enable")&&C4_();return Notification.requestPermission().then(function(C){UdO();var S=document.getElementById("ticker");S&&(S.className=S.classList.remove("show"));if(C=="granted")return BBr().then(function(){rfp(!1);KFi();return Promise.resolve(!0)});
C=="denied"&&KFi();return Promise.resolve(!1)}).catch(function(){UdO();
return Promise.reject.apply(Promise,_.k$(H))})};
sw9=function(H){H=H===void 0?!1:H;var C=_.ATZ().client;if(C&&C.browserVersion){var S=C.browserVersion,w=C.browserName=="CHROME"&&_.T6(S,"50.0.0")<0;C=C.browserName=="OPERA"&&_.T6(S,"42.0.0")<0;if(w||C)return Promise.resolve()}return _.tIr().then(function(A){if(!A)return Promise.resolve();A=BBr().then(function(){return Ddj({type:"notifications_check_registration",data:_.rh("ID_TOKEN")})});
return Notification.permission!="default"?A.catch(function(){}):A.then(function(){return Iy_(H)}).then(function(J){if(J)return ay3(),Sx9().then(function(){})}).catch(function(){})})};
jwO=function(H){return _.Dni(H)?sw9():Promise.resolve()};
wUi=function(H){var C=H.installing||H.waiting;return H.active||!C?Promise.resolve(H):new Promise(function(S){var w=function(A){A=A.target;if(A.state==="activated"||A.state==="redundant")C.removeEventListener("statechange",w),S(H)};
C.addEventListener("statechange",w)})};
AGR=function(){var H=new _.ZH6("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.MI(H,{mainAppWeb:_.Ss()});var C=_.sXn;_.E("service_worker_forward_exp_params")&&(C=pF9(C));try{var S=_.JK7(C).catch(function(){_.qI(H,"FAILURE");return new Promise(function(){})});
_.E("service_worker_push_enabled")&&S.then(function(w){_.qI(H,"SUCCESS");return w}).then(wUi).then(jwO)}catch(w){if(_.qI(H,"FAILURE"),w.name!=="SecurityError")throw w;
}};
JGp=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&AGR()};
F6R=function(H,C){var S={};C&&(S.serializedYpcFamilyCreateLoggingParams=C);_.kI(H,S);_.ht()};
Zf_=function(H,C){var S={};S.serializedYpcRefundFlowLoggingParams=C;H&&(S.eventType=H);_.kI("ypcRefundFlowEvent",S);_.ht()};
cGi=function(H){H&&_.ZtZ("transactionFlowSucceeded",H)};
Yxi=function(H){H&&_.ET("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",H,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
zup=function(H){var C,S,w,A,J,c,Y;_.z(function(M){if(M.nextAddress==1)return M.yield(_.Ks6(),2);if(M.nextAddress!=3){if(!M.yieldResult)return M.return(!1);C=[];return M.yield(_.bm.keys(),3)}S=M.yieldResult;w=_.Z(S);for(A=w.next();!A.done;A=w.next())J=A.value,c=_.B8D(J),Y=c.datasyncId,!Y||H.includes(Y)||C.push(_.bm.delete(J));return M.return(Promise.all(C).then(function(m){return m.some(function(W){return W})}))})};
Mtq=function(){var H,C,S,w,A,J,c;return _.z(function(Y){if(Y.nextAddress==1)return Y.yield(_.Ks6(),2);if(Y.nextAddress!=3){if(!Y.yieldResult)return Y.return(!1);H=_.oa("cache contains other");return Y.yield(_.bm.keys(),3)}C=Y.yieldResult;S=_.Z(C);for(w=S.next();!w.done;w=S.next())if(A=w.value,J=_.B8D(A),(c=J.datasyncId)&&c!==H)return Y.return(!0);return Y.return(!1)})};
qxR=function(){var H=_.JA().resolve(_.AA(_.HRU));return H?H.getCurrentTime():0};
Tmi=function(){var H,C,S,w,A,J,c,Y,M,m,W,y,N,b;return _.z(function(u){switch(u.nextAddress){case 1:H={},C=_.tPZ(),S=_.Z(Object.entries(C)),w=S.next();case 4:if(w.done){u.jumpTo(3);break}A=w.value;J=_.Z(A);c=J.next().value;Y=J.next().value;M=c;m=Y;if(!m){u.jumpTo(5);break}return u.yield(m(),8);case 8:H[M]=u.yieldResult;case 5:w=S.next();u.jumpTo(4);break;case 2:W=_.Z(void 0),y=W.next();case 9:if(y.done){u.jumpTo(3);break}N=y.value;b=C[N];if(!b){u.jumpTo(10);break}return u.yield(b(),13);case 13:H[N]=
u.yieldResult;case 10:y=W.next();u.jumpTo(9);break;case 3:return u.return(H)}})};
m5O=function(){var H;_.z(function(C){if(C.nextAddress==1)return C.yield(Tmi(),2);H=C.yieldResult;return C.yield(navigator.clipboard.writeText(JSON.stringify(H,null,2)),0)})};
W6r=function(H,C){return _.Ea(H.entities,"superThanksSelectedTierEntity",C)};
yGO=function(H,C){return{popup:{searchSuggestionReportDialog:{searchQuery:H,title:_.fL("SBOX_INAPPROPRIATE_TITLE"),suggestions:C,categoryLabel:_.fL("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.fL("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.fL("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.fL("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.fL("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.fL("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.fL("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.fL("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.fL("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.fL("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
Nmr=function(H){var C,S,w,A,J,c,Y,M,m,W,y,N,b,u,O,d,p,k,R;return _.z(function(L){switch(L.nextAddress){case 1:return L.yield(_.Gn(),2);case 2:return(C=L.yieldResult)?L.yield(_.QdE(C),3):L.return();case 3:S=L.yieldResult;if(!S)return L.return();A=((w=S.offlineVideos)==null?void 0:w.length)||0;c=((J=S.offlinePlaylists)==null?void 0:J.length)||0;if(A===0&&c===0)return L.return();Y=0;if(S.offlineVideos)for(M=_.Z(S.offlineVideos),m=M.next();!m.done;m=M.next())W=m.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
W.videoState&&(Y+=1);H.offline_videos_count=A.toString();_.E("kevlar_log_offline_current_network_type_ks")||(H.offline_current_network_type=(y=_.o6$())!=null?y:"CONN_INVALID");_.E("kevlar_log_updated_time_for_smart_downloads")&&(N=_.AG().getState().entities,b=_.n8(N),u=Yao(N),H.offline_smart_downloads_last_sync_time_ms=b.toString(),H.offline_smart_downloads_next_sync_time_ms=u.toString());H.offline_videos_playable=Y.toString();H.offline_playlists_count=c.toString();S.offlineVideos&&(O=S.offlineVideos.reduce(function(t,
g){g.downloadedBytes&&(t+=Number(g.downloadedBytes));return t},0).toString())&&(H.offline_used_disk_space_bytes=O);
if(!((d=navigator)==null?0:(p=d.storage)==null?0:p.estimate)){L.jumpTo(4);break}return L.yield(navigator.storage.estimate(),5);case 5:k=L.yieldResult,H.offline_free_disk_space_bytes=(((R=k)==null?void 0:R.quota)||0).toString();case 4:H.offline_client_state=JSON.stringify(S),_.oT(L)}})};
bfp=function(H){H=H.match(/(.*)::.*::.*/);if(H!==null)return H[1]};
EFK=function(H){if(_.tHW()){var C=Object.keys(window.sessionStorage);C=_.Z(C);for(var S=C.next();!S.done;S=C.next()){S=S.value;var w=bfp(S);w===void 0||H.includes(w)||self.sessionStorage.removeItem(S)}}};
eut=function(){if(!_.tHW())return!1;var H=_.oa(),C=Object.keys(window.sessionStorage);C=_.Z(C);for(var S=C.next();!S.done;S=C.next())if(S=bfp(S.value),S!==void 0&&S!==H)return!0;return!1};
zO=function(H,C,S){(_.E("desktop_keyboard_shortcut_usage_log")||S&&_.E("web_shorts_keyboard_shortcut_usage_log"))&&(C?_.LI.get(H):_.tp.get(H))&&(H=C?_.UK.get(H):_.gl.get(H))&&_.Sp(_.Dg(),H)};
uGK=function(H,C){return H.findIndex(function(S){return S.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(C.keyCode):!1};
G5R=function(H,C){C.stack&&(H.stack+="\n"+C.stack);return H};
loO=function(H){var C=M8(H,"Content-Type");if(!C)return null;C=C.toLowerCase();if(C.startsWith("application/json"))return C.startsWith("application/json+protobuf")?new fo9:new _.fl;if(C.startsWith("application/x-protobuf")){H=M8(H,"Content-Transfer-Encoding");if(!H)return new q8;if(H.toLowerCase()=="base64")return new vFi}return null};
pUO=function(H,C,S,w){var A=new Vt9(function(Y,M){return oF3.has(M)?Y.sentinel==="gal"&&Y.event!==void 0:!1},function(Y){Y.event?(Y=Ofr(Y.event),Y=!Y||XUj(w,Y)?!0:_.Gt(H.lastEvent,TO,2,me)?!_.Gt(Y,Wx,1,me)&&!_.Gt(Y,TO,2,me):!_.Gt(Y,Wx,1,me)&&!_.Gt(Y,TO,3,me)):Y=!0;
return Y});
S=_.TV(H.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",Qw9(S)]]));if(H.nestedOrigins!==void 0)for(var J=_.Z(H.nestedOrigins),c=J.next();!c.done;c=J.next())S=_.TV(S,new Map([["origin",c.value]]));return d5_(A,S,C).then(function(Y){Y=P4i(Y.event);if(_.Gt(Y,Wx,1,me)){var M,m=(M=_.n5(Y,Wx,1,me))==null?void 0:_.p5(M,2);m&&w.JSC$19420_logErrorEvent($5i(m));M=_.n5(Y,Wx,1,me);_.p5(M,2)===4?(Y=_.n5(Y,Wx,1,me),Y={statusCode:11,statusMessage:_.$v(Y,
3)}):(Y=_.n5(Y,Wx,1,me),Y={statusCode:12,statusMessage:_.$v(Y,3)});return Y}_.Gt(Y,TO,3,me)?(Y=_.n5(Y,TO,3,me),Y={statusCode:1,consentLanguageKeys:_.$v(Y,2)}):Y={statusCode:1};return Y}).catch(function(Y){return Y.errorCode!==void 0?{statusCode:Y.errorCode,
statusMessage:Y.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
rGt=function(H){var C={};if(H===void 0||H===null)return C;H.getToken()!==void 0&&k53(H.getToken())&&k53(H.getToken()).length>0&&(C.scopes=new Set(k53(H.getToken())));H.getToken()!==void 0&&hu_(H.getToken())&&hu_(H.getToken()).length>0&&(C.capabilities=new Set(hu_(H.getToken())));_.$v(H,3)!==void 0&&(C.consistencyKey=_.$v(H,3));H.getName()!==void 0&&H.getName()!==""&&(C.linkName=H.getName());_.uP(H,nFj,4)&&(H=_.zf(H,nFj,4),H=Object.assign({},_.$v(H,1)&&{userId:_.$v(H,1)},_.$v(H,2)&&{displayName:_.$v(H,
2)},_.$v(H,3)&&{email:_.$v(H,3)},_.$v(H,5)&&{username:_.$v(H,5)},_.$v(H,4)&&{profilePicture:_.$v(H,4)}),C.profile=H);return C};
BmO=function(H,C){var S=H.flowParams,w;return{serviceId:S.serviceId,sessionId:S.sessionId,currentFlow:H.currentFlow,googleScopesString:C,linkingSessionSerialized:H.session.serialize(),consentLanguageKeys:S.consentLanguageKeys,callerState:H.callerState,dynamicUrlParameters:S.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(w=S.partnerConfigMinReadTimestamp)==null?void 0:w.serialize()}};
gFq=function(H){var C=H.googleScopes!==void 0?Array.from(H.googleScopes).join(","):"";D5o(BmO(H,C));C=K6R(H);return C===null?Promise.resolve(tt_):C.start().then(function(S){var w,A=(w=S.link)==null?void 0:w.consistencyKey;return S.statusCode===1&&H.googleScopes!==void 0&&H.googleScopes.size>0&&A!==void 0?(w=H.flowParams,L6i(w.serviceId,w.sessionId,H.googleScopes,A,w.galService,H.config,S)):S})};
U53=function(H){var C=K6R(H);return C===null?Promise.resolve(yI({statusCode:7,statusMessage:"Failed to create flow object"},H.callerState)):C.complete().then(function(S){var w,A=(w=S.link)==null?void 0:w.consistencyKey;return S.statusCode===1&&H.googleScopes!==void 0&&H.googleScopes.size>0&&A!==void 0?(w=H.flowParams,L6i(w.serviceId,w.sessionId,H.googleScopes,A,w.galService,H.config,S)):yI(S,H.callerState)},function(S){return yI({statusCode:12,
statusMessage:"Failed to complete the flow: "+S.message},H.callerState)})};
L6i=function(H,C,S,w,A,J,c){return Rur(A,{serviceId:H,sessionId:C,googleScopes:S,consistencyKey:w}).then(function(){return c},function(Y){return A.deleteLink({serviceId:H,
sessionId:C,accountLinkingEntryPoint:J.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+Y.message}},function(M){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+M.message}})})};
K6R=function(H){switch(H.currentFlow){case 1:var C=H.flowParams;H=_.zf(H.session,IoK,1);return N8.createOAuthFlow(C,H);case 2:case 3:return C=H.flowParams,H=_.zf(H.session,aoo,6),bl.createStreamlinedFlow(C,H);default:return null}};
x5i=function(H,C){H===2&&(H=3);var S=0;EC.indexOf(H)!==-1&&(S=EC.indexOf(H)+1);for(H=S;H<EC.length;H++)if(C.has(EC[H]))return EC[H]};
CAK=function(H){var C=H.serviceId;var S=H.sessionId;var w=H.config;var A=H.galService;var J=H.capabilities;var c=H.scopes;var Y=H.loginHint;var M=H.callerState;var m=H.consentLanguageKeys;var W=H.linkName;var y=H.dynamicUrlParameters;var N=H.partnerConfigMinReadTimestamp;H=w.dataUsageNoticeConfig?w.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return A.startLinkingSession({serviceId:C,sessionId:S,capabilities:J,scopes:c,loginHint:Y,callerState:M,supportedFlows:Hxi(w.supportedFlows),completionUrl:w.completionUrl,
accountLinkingEntryPoint:w.accountLinkingEntryPoint,consentLanguageKeys:m,dataUsageNoticeConfig:H,linkName:W,dynamicUrlParameters:y,partnerConfigMinReadTimestamp:N}).then(function(b){return new ixi(C,S,w,A,b,void 0,M,m,y,N)})};
Jr_=function(H,C,S){var w=(new Sdi).getSession(H);if(w===null)return Promise.resolve({statusCode:2});sZp(H);var A=jZO(w.linkingSessionSerialized),J=w.googleScopesString!==""&&w.googleScopesString!==void 0?new Set(w.googleScopesString.split(",")):void 0,c=w.partnerConfigMinReadTimestampSerialized?wY3(w.partnerConfigMinReadTimestampSerialized):void 0;return ArK(new ixi(H,w.sessionId,C,S,A,J,w.callerState,w.consentLanguageKeys,w.dynamicUrlParameters,c),w.currentFlow,w.consentLanguageKeys)};
D5o=function(H){var C=new Sdi;C.storage!==null&&C.storage.set("SAVED_SESSION",H)};
sZp=function(H){var C=new Sdi;if(C.storage!==null){var S=C.storage.get("SAVED_SESSION");S!==void 0&&S.serviceId===H&&C.storage.remove("SAVED_SESSION")}};
Hxi=function(H){var C=new Set;H=_.Z(H);for(var S=H.next();!S.done;S=H.next())S=S.value,S!==1&&FYO.has(S)&&C.add(FYO.get(S));return C};
yI=function(H,C){C!==void 0&&(H.callerState=C);return H};
ZxO=function(H){switch(H){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
zKK=function(H){return new crR(H,new Yd_(H))};
TEt=function(H,C){C=C===void 0?!1:C;var S=document.createElement("div");H&&(S.style.transform="scaleX(-1)");S.style.backgroundColor=C?"rgba(138,180,248,.24)":"#e8f0fe";S.style.height="4px";S.style.overflow="hidden";S.style.position="absolute";S.style.top="0";S.style.width="100%";S.style.zIndex="1500";S.setAttribute("aria-label","Loading");S.setAttribute("aria-live","polite");H=document.createElement("style");H.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  }";
S.appendChild(H);H=MsO();H.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";H.style.left="-145.166611%";var w=qdO(C);w.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";H.appendChild(w);S.appendChild(H);H=MsO();H.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";H.style.left="-54.888891%";C=qdO(C);C.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
H.appendChild(C);S.appendChild(H);return S};
MsO=function(){var H=document.createElement("div");H.style.height="100%";H.style.position="absolute";H.style.transformOrigin="top left";H.style.width="100%";return H};
qdO=function(H){var C=document.createElement("span");C.style.borderTop=H?"4px solid #669df6":"4px solid #4285f4";C.style.display="inline-block";C.style.position="absolute";C.style.width="100%";return C};
mTO=function(H){return H==null?void 0:_.oDd(H).valueOf()};
bxj=function(H){var C=document.body,S=!1,w=function(){S||(S=!0,WYR(A,J),setTimeout(function(){C.removeChild(J);C.removeChild(A)},150))},A=yrR(H,getComputedStyle(C).direction==="rtl",w),J=NEi(w);
WYR(A,J);C.appendChild(J);C.appendChild(A);window.requestAnimationFrame(function(){J.style.opacity="1";A.style.opacity="1";A.style.transform="translate(-50%, -50%) scale(1)";A.children[0].focus()})};
yrR=function(H,C,S){var w=document.createElement("div");w.style.position="fixed";w.style.alignItems="center";w.style.backgroundColor=H?"rgb(32, 33, 36)":"white";w.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";w.style.display="flex";w.style.flexDirection="column";w.style.justifyContent="center";w.style.left="50%";w.style.top="50%";w.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";w.style.zIndex="2002";document.body.clientWidth>=
660?(w.style.borderRadius="8px",w.style.minHeight="220px",w.style.maxHeight="90%",w.style.maxWidth="90%",w.style.minWidth="540px"):(w.style.height="100%",w.style.width="100%");w.setAttribute("aria-label","Error");w.setAttribute("aria-modal","true");w.setAttribute("role","alertdialog");w.addEventListener("keydown",function(J){J.key==="Escape"&&S()});
C=Ez9(H,C,S);w.appendChild(eKi(C));w.appendChild(C);var A=document.createElement("img");A.src=H?"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";A.style.height="72px";A.style.width="72px";A.style.color="#9aa0a6";A.setAttribute("alt","");w.appendChild(A);A=document.createElement("h1");A.textContent="Something went wrong.  Try again.";
A.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";A.style.lineHeight="24px";A.style.fontSize="16px";A.style.textAlign="center";A.style.letterSpacing="0.1px";A.style.color=H?"rgb(232,234,237)":"#3c4043";w.appendChild(A);w.appendChild(eKi(C));return w};
Ez9=function(H,C,S){var w=document.createElement("button");w.style.backgroundColor="transparent";w.style.border="none";w.style.borderRadius="50%";w.style.cursor="pointer";w.style.outline="none";w.style.padding="12px";w.setAttribute("aria-label","Close dialog");w.style.position="absolute";w.style.top="0";C?w.style.right="0":w.style.left="0";w.addEventListener("focus",function(){w.style.backgroundColor=H?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
w.addEventListener("blur",function(){w.style.backgroundColor="transparent"});
w.addEventListener("mouseenter",function(){w.style.backgroundColor=H?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
w.addEventListener("mouseleave",function(){w.style.backgroundColor="transparent"});
w.addEventListener("click",S);w.addEventListener("keydown",function(A){A.key!=="Enter"&&A.key!=="Space"||S()});
C=document.createElement("img");C.src=H?"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey200-24dp/1x/gm_close_gm_grey200_24dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey600-24dp/1x/gm_close_gm_grey600_24dp.png";C.style.display="block";C.style.height="24px";C.style.width="24px";C.setAttribute("alt","");w.appendChild(C);return w};
eKi=function(H){var C=document.createElement("div");C.setAttribute("tabindex","0");C.setAttribute("aria-hidden","true");C.addEventListener("focus",function(){return void H.focus()});
return C};
NEi=function(H){var C=document.createElement("div");C.style.backgroundColor="rgba(32,33,36,0.6)";C.style.bottom="0";C.style.left="0";C.style.position="fixed";C.style.right="0";C.style.top="0";C.style.transition=" opacity 150 ms linear";C.style.zIndex="2001";C.addEventListener("click",H);return C};
WYR=function(H,C){C.style.opacity="0";H.style.opacity="0";H.style.transform="translate(-50%, -50%) scale(0.8)"};
uJi=function(H,C){H.sandbox&&H.sandbox.add&&(H.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),H.sandbox.add("allow-downloads"));H.src=C};
eq=function(H){GzR.call(this,H)};
ul=function(H,C){C=C===void 0?!1:C;this.parsedImageUrl_=null;H instanceof f2O||(vzp==void 0&&(vzp=new l2O),H=vzp.parse(H.toString(),C));H=this.parsedImageUrl_=H;H.JSC$19632_parsedOptions_==void 0&&((C=H.getOptions())||(C=""),H.JSC$19632_parsedOptions_=(new VsO).parse(C));GzR.call(this,H.JSC$19632_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;H=this.parsedImageUrl_;C=H.uri_.JSC$10045_port_;this.JSC$19634_domain_=H.uri_.JSC$10045_domain_+(C?":"+C:"");this.JSC$19634_query_=
this.parsedImageUrl_.uri_.JSC$10045_queryData_.toString()};
ozi=function(H){this.mode=4;this.data=H;this.parsedData=[];H=0;for(var C=this.data.length;H<C;H++){var S=[],w=this.data.charCodeAt(H);w>65536?(S[0]=240|(w&1835008)>>>18,S[1]=128|(w&258048)>>>12,S[2]=128|(w&4032)>>>6,S[3]=128|w&63):w>2048?(S[0]=224|(w&61440)>>>12,S[1]=128|(w&4032)>>>6,S[2]=128|w&63):w>128?(S[0]=192|(w&1984)>>>6,S[1]=128|w&63):S[0]=w;this.parsedData.push(S)}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))};
OxK=function(H){this.typeNumber=0;this.errorCorrectLevel=H===void 0?2:H;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
GO=function(H,C){if(H.length==void 0)throw Error("Jk`"+H.length+"`"+C);for(var S=0;S<H.length&&H[S]==0;)S++;this.num=Array(H.length-S+C);for(C=0;C<H.length-S;C++)this.num[C]=H[C+S]};
XYR=function(H,C){this.totalCount=H;this.dataCount=C};
QZR=function(){this.buffer=[];this.length=0};
dTp=function(){var H=!1;if(_.epZ()){H=_.WZ();var C="";_.fw7()?(C=/Windows (?:NT|Phone) ([0-9.]+)/,C=(H=C.exec(H))?H[1]:"0.0"):_.XW()?(C=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,C=(H=C.exec(H))&&H[1].replace(/_/g,".")):_.G6E()?(C=/Mac OS X ([0-9_.]+)/,C=(H=C.exec(H))?H[1].replace(/_/g,"."):"10"):_.MD(_.WZ(),"KaiOS")?(C=/(?:KaiOS)\/(\S+)/i,C=(H=C.exec(H))&&H[1]):_.epZ()?(C=/Android\s+([^\);]+)(\)|;)/,C=(H=C.exec(H))&&H[1]):_.vEW()&&(C=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,C=(H=C.exec(H))&&H[1]);H=
C||""}return H};
nzK=function(H,C){this.JSC$19657__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(C)for(var S in C)this.JSC$19657__htOption[S]=C[S];this.JSC$19657__htOption.useSVG&&(PAi=$TK);this.JSC$19657__android=dTp();this.JSC$19657__el=H;this._oQRCode=null;this._oDrawing=new PAi(this.JSC$19657__el,this.JSC$19657__htOption);this.JSC$19657__htOption.text&&(H=this.JSC$19657__htOption.text,this._oQRCode=new OxK(this.JSC$19657__htOption.correctLevel),pY3(this._oQRCode,
H),C=this._oQRCode,kz9(C,!1,hKi(C)),this.JSC$19657__el.title=H,this._oDrawing.draw(this._oQRCode),this.makeImage())};
rr3=function(H,C,S,w,A){H.save();var J=new Path2D;J.roundRect(C,S,w*7,w*7,w*2);J.roundRect(C+w,S+w,w*5,w*5,w*1.3);J.roundRect(C+2*w,S+2*w,w*3,w*3,w);H.clip(J,"evenodd");H.fillStyle=A;H.fillRect(0,0,H.canvas.width,H.canvas.height);H.restore()};
fk=function(H,C){if(typeof H!=="function")throw Error("Mk");return _.s$.setTimeout(function(){H()},C)};
vx=function(){};
DTt=function(H,C,S,w,A){(new vx).debug("TestLoadImageWithRetries: "+A);if(w==0)S(!1);else{var J=A||0;w--;BEK(H,C,function(c){c?S(!0):_.s$.setTimeout(function(){DTt(H,C,S,w,J)},J)})}};
BEK=function(H,C,S){var w=new vx;w.debug("TestLoadImage: loading "+H);var A=new Image;A.onload=function(){try{w.debug("TestLoadImage: loaded"),KYp(A),S(!0)}catch(J){}};
A.onerror=function(){try{w.debug("TestLoadImage: error"),KYp(A),S(!1)}catch(J){}};
A.onabort=function(){try{w.debug("TestLoadImage: abort"),KYp(A),S(!1)}catch(J){}};
A.ontimeout=function(){try{w.debug("TestLoadImage: timeout"),KYp(A),S(!1)}catch(J){}};
_.s$.setTimeout(function(){if(A.ontimeout)A.ontimeout()},C);
A.src=H};
KYp=function(H){H.onload=null;H.onerror=null;H.onabort=null;H.ontimeout=null};
tsi=function(){this.front_=[];this.back_=[]};
LYt=function(H,C){this.action=H;this.params=C||{}};
gzi=function(H,C){_.Op.call(this);this.delay_=new _.Qy(this.JSC$19783_onTick_,0,this);_.Nx(this,this.delay_);this.JSC$19781_interval_=5E3;this.nextTickTime_=0;if(typeof H==="function")C&&(H=(0,_.Xv)(H,C));else if(H&&typeof H.handleEvent==="function")H=(0,_.Xv)(H.handleEvent,H);else throw Error("ya");this.JSC$19783_listener_=H};
ll=function(H,C,S,w,A,J,c,Y,M,m,W,y,N,b){S=S===void 0?!1:S;w=w===void 0?function(){return""}:w;
A=A===void 0?!1:A;J=J===void 0?!1:J;c=c===void 0?!1:c;Y=Y===void 0?function(){return _.N3({})}:Y;
M=M===void 0?!1:M;W=W===void 0?!1:W;y=y===void 0?!1:y;N=N===void 0?!1:N;b=b===void 0?!1:b;this.JSC$19784_pathPrefix_=H;this.defaultQueryParams_=C;this.pubsub_=new _.G9;this.reconnectTimer_=new gzi(this.safeReconnect_,this);this.JSC$19784_channel_=null;this.JSC$19784_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$19784_pendingMessages_=[];this.enableAsyncTest_=S;this.JSC$19784_getXsrfToken_=w;this.useAsyncBrowserChannelHandler_=J;this.getAuthorizationHeader_=
Y;this.getAuthorizationHeaderSync_=m;this.enableCachedUpdateAuthorizationHeader_=c;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.N3();this.enableLoungeTokenRefresh_=A;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=M;this.disableMdxAuthForNonPlaybackMessages_=W;this.disableMdxAuthForAdMessages_=y;this.enableMdxAuthForConnectionOnly_=N;this.disableMdxAuthForShortsMessages_=b;this.JSC$19784_channelOpenedCounter=new UT_;this.JSC$19784_channelClosedCounter=new RK_;this.channelMessageSentCounter=
new I23;this.JSC$19784_channelMessageReceivedCounter=new a2t;this.JSC$19784_channelErrorCounter=new xTi;this.pendingMapsOnClosedCounter=new H7O;this.undeliveredMapsOnClosedCounter=new i7O};
VI=function(H){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;H=H||document.location.href;var C=Number(_.Cv(H)[4]||null)||"";C&&(this.port=":"+C);this.domain=_.S$(H)||"";H=_.WZ();H.search("MSIE")>=0&&_.T6(H.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
oG=function(H){H=H||{};this.name=H.name||"";this.id=H.id||H.screenId||"";this.token=H.token||H.loungeToken||"";this.uuid=H.uuid||H.dialId||"";this.idType=H.screenIdType||"normal"};
CJ9=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(H){var C=Math.random()*16|0;return(H=="x"?C:C&3|8).toString(16)})};
S4O=function(H){return _.nX(H,function(C){return{key:C.id,name:C.name}})};
smp=function(H,C){return _.PZ(H,function(S){return S||C?!S!=!C?!1:S.id==C.id:!0})};
X8=function(H,C){return _.PZ(H,function(S){return OC(S,C)})};
Fn3=function(){var H=jmR(),C=wIq();if(Axo()){var S=H,w=_.$Dw(S,C);w<0&&_.Q0E(S,-(w+1),0,C)}H=JxK(H);if(H.length==0)try{_.fyZ("remote_sid")}catch(A){}else try{_.l5("remote_sid",H.join(","),-1)}catch(A){}};
jmR=function(){var H=_.BU("yt-remote-connected-devices")||[];H.sort(_.Piw);return H};
JxK=function(H){if(H.length==0)return[];var C=H[0].indexOf("#"),S=C==-1?H[0]:H[0].substring(0,C);return _.nX(H,function(w,A){return A==0?w:w.substring(S.length)})};
Z7o=function(H){_.rm("yt-remote-connected-devices",H,86400)};
wIq=function(){if(cxi)return cxi;var H=_.BU("yt-remote-device-id");H||(H=CJ9(),_.rm("yt-remote-device-id",H,31536E3));for(var C=jmR(),S=1,w=H;_.nU(C,w);)S++,w=H+"#"+S;return cxi=w};
Y4O=function(){return _.BU("yt-remote-session-browser-channel")};
Axo=function(){return _.BU("yt-remote-session-screen-id")};
q4i=function(H){H.length>5&&(H=H.slice(H.length-5));var C=_.nX(zxj(),function(w){return w.loungeToken}),S=_.nX(H,function(w){return w.loungeToken});
_.ho6(S,function(w){return!_.nU(C,w)})&&MU9();
_.rm("yt-remote-local-screens",H,31536E3)};
zxj=function(){return _.BU("yt-remote-local-screens")||[]};
MU9=function(){_.rm("yt-remote-lounge-token-expiration",!0,86400)};
QI=function(H){H||(_.Do("yt-remote-session-screen-id"),_.Do("yt-remote-session-video-id"));Fn3();H=jmR();_.ru(H,wIq());Z7o(H)};
mWO=function(){TCi();return dI?!!dI.get("yt-remote-use-staging-server"):!1};
TCi=function(){if(!dI){var H=_.Pai();H&&(dI=new _.QD(H))}};
b79=function(H,C,S,w,A){S=S===void 0?function(){return""}:S;
var J=function(){return new ll(Px(H,"/bc"),C,!1,S,w)};
return _.E("enable_mdx_web_channel_desktop")?new Wn_(function(){return new yxR(Px(H,"/wc"),C,S)}):new NCr(J,A)};
GpK=function(){var H=Ej3;exp();$L.push(H);uHi()};
pk=function(H,C){exp();var S=f5p(H,String(C));$L.length==0?vj_(S):(uHi(),_.I6($L,function(w){w(S)}))};
kL=function(H){pk("CP",H)};
exp=function(){$L||($L=_.gh("yt.mdx.remote.debug.handlers_")||[],_.AO("yt.mdx.remote.debug.handlers_",$L))};
vj_=function(H){var C=(hX+1)%50;hX=C;l5o[C]=H;VUj||(VUj=C==49)};
uHi=function(){var H=$L;if(l5o[0]){var C=VUj?hX:-1,S={};do S={record$jscomp$15:void 0},C=(C+1)%50,S.record$jscomp$15=l5o[C],_.I6(H,function(w){return function(A){A(w.record$jscomp$15)}}(S));
while(C!=hX);l5o=Array(50);hX=-1;VUj=!1}};
f5p=function(H,C){var S=(Date.now()-oj_)/1E3;S.toFixed&&(S=S.toFixed(3));var w=[];w.push("[",S+"s","] ");w.push("[","yt.mdx.remote","] ");w.push(H+": "+C,"\n");return w.join("")};
nk=function(H){_.KI.call(this);this.JSC$19808_logName_=H;this.screens=[]};
Bx=function(H){nk.call(this,"LocalScreenService");this.JSC$19815_http_=H;this.loungeTokenRefreshTimer_=NaN;rI(this);this.info("Initializing with "+O7q(this.screens))};
De=function(H,C){C=C===void 0?!1:C;nk.call(this,"ScreenService");this.JSC$19821_http_=H;this.disableAutomaticScreenCache_=C;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};XI3(this)};
Kk=function(H,C,S){_.KI.call(this);this.JSC$19825_logName_=S;this.JSC$19825_screenService_=H;this.receiver_=C;this.screen_=null};
UWR=function(H,C,S){S.disableCastApi?tX("Cannot initialize because disabled by Mdx config."):Qmi()?dWi(H,S)&&(PJi(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?$Wq(C):(window.__onGCastApiAvailable=function(w,A){w?$Wq(C):(Lk("Failed to load cast API: "+A),pIt(!1),PJi(!1),_.Do("yt-remote-cast-available"),_.Do("yt-remote-cast-receiver"),kp9(),C(!1))},S.loadCastApiSetupScript?_.Ie(hx_):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
njq()>=60&&rxt():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?BCq():njq()>=89?DWK():(Knr(),tUR(Ln9.map(gjq))))):tX("Cannot initialize because not running Chrome")};
kp9=function(){tX("dispose");var H=gI();H&&H.dispose();_.AO("yt.mdx.remote.cloudview.instance_",null);RxO(!1);_.MJD(I5t);I5t.length=0};
a5i=function(){return!!_.BU("yt-remote-cast-installed")};
xW9=function(){var H=_.BU("yt-remote-cast-receiver");return H?H.friendlyName:null};
HuK=function(){tX("clearCurrentReceiver");_.Do("yt-remote-cast-receiver")};
iuK=function(){return a5i()?gI()?gI().getCastSession():(Lk("getCastSelector: Cast is not initialized."),null):(Lk("getCastSelector: Cast API is not installed!"),null)};
SUO=function(H,C){Cm9()?gI().setConnectedScreenStatus(H,C):Lk("setConnectedScreenStatus called before ready.")};
Qmi=function(){var H=_.WZ().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.yK||H};
dWi=function(H,C){var S=!1;gI()||(H=new UC(H,C),H.subscribe("yt-remote-cast2-availability-change",function(w){_.rm("yt-remote-cast-available",w);Sq("yt-remote-cast2-availability-change",w)}),H.subscribe("yt-remote-cast2-receiver-selected",function(w){tX("onReceiverSelected: "+w.friendlyName);
_.rm("yt-remote-cast-receiver",w);Sq("yt-remote-cast2-receiver-selected",w)}),H.subscribe("yt-remote-cast2-receiver-resumed",function(w){tX("onReceiverResumed: "+w.friendlyName);
_.rm("yt-remote-cast-receiver",w);Sq("yt-remote-cast2-receiver-resumed",w)}),H.subscribe("yt-remote-cast2-session-change",function(w){tX("onSessionChange: "+sWK(w));
w||_.Do("yt-remote-cast-receiver");Sq("yt-remote-cast2-session-change",w)}),_.AO("yt.mdx.remote.cloudview.instance_",H),S=!0);
tX("cloudview.createSingleton_: "+S);return S};
gI=function(){return _.gh("yt.mdx.remote.cloudview.instance_")};
$Wq=function(H){pIt(!0);PJi(!1);gI().init(!1,function(C){C?(RxO(!0),_.qUi("yt-remote-cast2-api-ready")):(Lk("Failed to initialize cast API."),pIt(!1),_.Do("yt-remote-cast-available"),_.Do("yt-remote-cast-receiver"),kp9());H(C)})};
tX=function(H){pk("cloudview",H)};
Lk=function(H){pk("cloudview",H)};
pIt=function(H){tX("setCastInstalled_ "+H);_.rm("yt-remote-cast-installed",H)};
Cm9=function(){return!!_.gh("yt.mdx.remote.cloudview.apiReady_")};
RxO=function(H){tX("setApiReady_ "+H);_.AO("yt.mdx.remote.cloudview.apiReady_",H)};
PJi=function(H){_.AO("yt.mdx.remote.cloudview.initializing_",H)};
RG=function(H){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(H)};
cgR=function(H){TCi();if(!dI||!dI.get("yt-remote-disable-remote-module-for-dev")){H=_.rh("MDX_CONFIG")||H;v6j();Fn3();IG||(IG=new VI(H?H.loungeApiHost:void 0),mWO()&&(IG.basePath="/api/loungedev"));aG||(aG=_.gh("yt.mdx.remote.deferredProxies_")||[],_.AO("yt.mdx.remote.deferredProxies_",aG));jWj();var C=xL();if(!C){var S=new De(IG,H?H.disableAutomaticScreenCache||!1:!1);_.AO("yt.mdx.remote.screenService_",S);C=xL();var w={};H&&(w={appId:H.appId,disableDial:H.disableDial,theme:H.theme,loadCastApiSetupScript:H.loadCastApiSetupScript,
disableCastApi:H.disableCastApi,enableDialLoungeToken:H.enableDialLoungeToken,enableCastLoungeToken:H.enableCastLoungeToken,forceMirroring:H.forceMirroring});_.AO("yt.mdx.remote.enableConnectWithInitialState_",H?H.enableConnectWithInitialState||!1:!1);UWR(S,function(J){J?Hc()&&SUO(Hc(),"YouTube TV"):S.subscribe("onlineScreenChange",function(){Sq("yt-remote-receiver-availability-change")})},w)}if(H&&!_.gh("yt.mdx.remote.initialized_")){_.AO("yt.mdx.remote.initialized_",!0);
i1("Initializing: "+(0,_.Kh)(H));CQ.push(_.T8("yt-remote-cast2-api-ready",function(){Sq("yt-remote-api-ready")}));
CQ.push(_.T8("yt-remote-cast2-availability-change",function(){Sq("yt-remote-receiver-availability-change")}));
CQ.push(_.T8("yt-remote-cast2-receiver-selected",function(){wbj();Sq("yt-remote-auto-connect","cast-selector-receiver")}));
CQ.push(_.T8("yt-remote-cast2-receiver-resumed",function(){Sq("yt-remote-receiver-resumed","cast-selector-receiver")}));
CQ.push(_.T8("yt-remote-cast2-session-change",AgO));CQ.push(_.T8("yt-remote-connection-change",function(J){J?SUO(Hc(),"YouTube TV"):Jg_()||(SUO(null,null),HuK())}));
CQ.push(_.T8("yt-remote-cast2-session-failed",function(){Sq("yt-remote-connection-failed")}));
w=F3K();H.isAuto&&(w.id+="#dial");var A=H.capabilities||[];A.length>0&&(w.capabilities=A);w.name=H.device;w.app=H.app;(H=H.theme)&&(w.theme=H);i1(" -- with channel params: "+(0,_.Kh)(w));w?(_.rm("yt-remote-session-app",w.app),_.rm("yt-remote-session-name",w.name)):(_.Do("yt-remote-session-app"),_.Do("yt-remote-session-name"));_.AO("yt.mdx.remote.channelParams_",w);C.start();Hc()||Zur()}}};
zep=function(){var H=xL().instance_.$_gos();var C=YUO();C&&S5()&&(smp(H,C)||H.push(C));return S4O(H)};
MJ9=function(){var H=zep(),C=YUO();C||(C=Jg_());return _.PZ(H,function(S){return C&&OC(C,S.key)?!0:!1})};
YUO=function(){var H=Hc();if(!H)return null;var C=xL().getScreens();return X8(C,H)};
AgO=function(H){i1("remote.onCastSessionChange_: "+sWK(H));if(H){var C=YUO();if(C&&C.id==H.id){if(SUO(C.id,"YouTube TV"),H.idType=="shortLived"&&(H=H.token))qUp&&(qUp.token=H),(C=S5())&&C.setLoungeToken(H)}else C&&TWt(),ms3(H,1)}else S5()&&TWt()};
TWt=function(){Cm9()?gI().stopSession():Lk("stopSession called before API ready.");var H=S5();H&&(H.disconnect(1),W33(null))};
yg_=function(){var H=S5();return H&&H.getProxyState()!=3?new so(S5(),void 0):null};
i1=function(H){pk("remote",H)};
xL=function(){if(!NWR){var H=_.gh("yt.mdx.remote.screenService_");NWR=H?new buO(H):null}return NWR};
Hc=function(){return _.gh("yt.mdx.remote.currentScreenId_")};
Ebt=function(H){_.AO("yt.mdx.remote.currentScreenId_",H)};
wbj=function(){_.AO("yt.mdx.remote.connectData_",null)};
S5=function(){return _.gh("yt.mdx.remote.connection_")};
W33=function(H){var C=S5();wbj();H||Ebt("");_.AO("yt.mdx.remote.connection_",H);aG&&(_.I6(aG,function(S){S(H)}),aG.length=0);
C&&!H?Sq("yt-remote-connection-change",!1):!C&&H&&Sq("yt-remote-connection-change",!0)};
Jg_=function(){var H=Axo();if(!H)return null;var C=xL();if(!C)return null;C=C.getScreens();return X8(C,H)};
ms3=function(H,C){eeO?qUp=H:(Ebt(H.id),H=new j5(IG,H,F3K(),_.gh("yt.mdx.remote.enableConnectWithInitialState_")||!1),H.connect(C,_.gh("yt.mdx.remote.connectData_")),H.subscribe("beforeDisconnect",function(S){Sq("yt-remote-before-disconnect",S)}),H.subscribe("beforeDispose",function(){S5()&&W33(null)}),H.subscribe("browserChannelAuthError",function(){var S=YUO();
S&&S.idType=="shortLived"&&(Cm9()?gI().handleBrowserChannelAuthError():Lk("refreshLoungeToken called before API ready."))}),W33(H))};
Zur=function(){var H=Jg_();H?(i1("Resume connection to: "+sWK(H)),ms3(H,0)):(QI(),HuK(),i1("Skipping connecting because no session screen found."))};
jWj=function(){var H=F3K();if(_.hb.isEmpty(H)){H=wIq();var C=_.BU("yt-remote-session-name")||"",S=_.BU("yt-remote-session-app")||"";H={device:"REMOTE_CONTROL",id:H,name:C,app:S,mdxVersion:3};H.authuser=String(_.rh("SESSION_INDEX","0"));(C=_.rh("DELEGATED_SESSION_ID"))&&(H.pageId=String(C));_.AO("yt.mdx.remote.channelParams_",H)}};
F3K=function(){return _.gh("yt.mdx.remote.channelParams_")||{}};
uB9=function(){var H,C;return _.z(function(S){if(S.nextAddress==1)return(_.I5E()||_.E("use_new_nwl"))&&_.LnD().isNetworkAvailable()?S.yield(_.JO(),2):S.return();if(S.nextAddress!=3)return(H=S.yieldResult)?S.yield(IRq(H),3):S.return();C=S.yieldResult;if(!C.length)return S.return();C.forEach(function(w){var A={timestamp:w.timestamp};w=w.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:w.appShellAssetLoadReport,options:A}:w.clientError?{payloadName:"clientError",payload:w.clientError,
options:A}:void 0;w&&_.kI(w.payloadName,w.payload,w.options)});
C.length===100&&_.rT.addLowPriorityJob(uB9);_.oT(S)})};
GGp=function(H){if(H.playerResponse){if(H=H.playerResponse,H.messages&&H.messages.length>0&&(H=H.messages.find(function(C){return!(!C||!C.mealbarPromoRenderer)}))&&H.mealbarPromoRenderer)return H.mealbarPromoRenderer}else if(H.response&&(H=H.response)&&H.overlay&&H.overlay.mealbarPromoRenderer)return H.overlay.mealbarPromoRenderer};
flO=function(H){if(H.response){var C=H.response;if(C&&C.overlay&&C.overlay.tooltipRenderer)return C.overlay.tooltipRenderer}if(H.playerResponse&&(H=H.playerResponse,H.messages&&H.messages.length>0&&(H=H.messages.find(function(S){return!(!S||!S.tooltipRenderer)}))&&H.tooltipRenderer))return H.tooltipRenderer};
lli=function(H){if(!vb9&&(H=H||_.rh("ZWIEBACK_PING_URLS"))&&H.length){vb9=!0;for(var C=0;C<H.length;C++)_.aM(H[C])}};
obp=function(H){if(_.hb.get(_.rh("PLAYER_VARS",{}),"privembed",!1)!="1"){H&&rMq();try{VJ9().then(function(){},function(){}),_.yD(obp,18E5)}catch(C){_.tE(C)}}};
Oui=function(){var H=_.VN(),C=H.getFlag(119),S=window.devicePixelRatio>1;document.body&&_.s2(document.body,"exp-invert-logo")&&(S&&!_.s2(document.body,"inverted-hdpi")?_.FB(document.body,"inverted-hdpi"):!S&&_.s2(document.body,"inverted-hdpi")&&_.Ag(document.body,"inverted-hdpi"));C!=S&&(_.ok(0,119,S),H.save())};
XbR=function(H){return H.filter(function(C){return"ypcGetCartEndpoint"in C||"ypcFixInstrumentEndpoint"in C})};
QWi=function(H){return H.filter(function(C){return!_.e(C,_.I$n)})};
Pmo=function(H,C){var S,w,A,J,c,Y,M;_.z(function(m){switch(m.nextAddress){case 1:S=_.hG.getInstance();w=_.eU.instance;A=_.xb.instance;if(!A)return dsO(H,w,C),m.return();_.en(m,2);H.onLoadingCommand&&w.resolveCommand(H.onLoadingCommand);return m.yield(S.getCurrentPositionFromGeolocation(),4);case 4:J=m.yieldResult;if(!H.resolveLocationCommand){m.jumpTo(5);break}c=S.createLocationInfo(J);return m.yield(_.ir(A,H.resolveLocationCommand,{locationInfo:c}),6);case 6:Y=m.yieldResult;if(!Y||"error"in Y&&Y.error||
Y.errorMetadata)return dsO(H,w,C),m.return();var W;if(Y==null?0:(W=Y.onResponseReceivedActions)==null?0:W.length){W=_.Z(Y.onResponseReceivedActions);for(var y=W.next();!y.done;y=W.next())w.resolveCommand(y.value)}(_.e(H.onSuccessCommand,_.sX)||_.e(H.onSuccessCommand,_.vU))&&_.M3(C.hostElement,"yt-navigate",{endpoint:H.onSuccessCommand,reload:!0});case 5:_.xB(m,0);break;case 2:M=_.Vx(m);if(M instanceof GeolocationPositionError&&M.code===GeolocationPositionError.PERMISSION_DENIED)return H.onDeniedCommand&&
w.resolveCommand(H.onDeniedCommand),m.return();dsO(H,w,C);_.oT(m)}})};
dsO=function(H,C,S){H.onFailureCommand&&(C.resolveCommand(H.onFailureCommand),_.q3(S.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
pbi=function(H,C){var S=_.e(H,_.lKU);if(S&&C){H=S.videoIds||[S.videoId];var w;C=(w=_.M3(C,"yt-lockup-requested",{videoIds:H}).detail)==null?void 0:w.returnValue;var A;S.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?A=C?C:H.map(function(J){return{videoId:J,navigationEndpoint:S.videoCommand}}):C&&(A=C);
A&&(w=A.map(function(J){var c=Object,Y=c.assign;var M=J.navigationEndpoint;if(!_.e(M,_.Ox)){var m=_.e(M,_.sX);if(m){if(delete m.index,delete m.playlistId,m=_.e(M==null?void 0:M.commandMetadata,_.u9),m==null?0:m.url){var W=m.url;W=_.Fw(W,"list");W=_.Fw(W,"index");m.url=W}}else M=void 0}return Y.call(c,{},J,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:M})}),$sO(w,S))}};
kGR=function(H){var C=_.Nb();if(H=_.e(H,_.VKU))H.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&C.clearQueue(),H.closeMiniplayer&&_.JA().resolve(_.Df).close(!0)};
nbp=function(H){heO(_.Nb(),H)};
rgo=function(H){var C;(H=(C=_.e(H,_.fKi))==null?void 0:C.setVideoIds)&&H.forEach(function(S){_.ZE1(_.Nb(),S)})};
DsO=function(H){BWO(_.Nb(),H)};
K3o=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(H){return!1}};
tJj=function(H){var C=["h","m","s"],S=_.BZ(C);S.reverse();var w={};H=(H.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(c){var Y=(c.match(/[hms]/)||[""])[0];return Y?(w[Y]=parseInt(c.match(/\d+/)[0],10),!1):!0});
for(H.reverse();H.length&&S.length;){var A=S.shift();A in w||(w[A]=parseInt(H.shift(),10))}if(H.length||w.s>59||w.m>59||w.h>9)return null;var J="";C.forEach(function(c){w[c]&&(J+=""+w[c]+c)});
return J||null};
L3p=function(H,C){var S=_.as7(C,{},H,!0);return new Promise(function(w,A){S.listenOnce("n",function(){A(Error("xl`"+S.JSC$29526_getErrorDescription()))});
S.listenOnce("l",function(){var J=S.getResponseCode();if(J!==200)A(Error("yl`"+C+"`"+H.type+"`"+H.size+"`"+J));else try{w(JSON.parse(S.getResponseText()).encryptedBlobId)}catch(c){A(c)}});
S.run()})};
gbo=function(H){return H.substring(H.indexOf(":")+1,H.indexOf(";"))};
Usj=function(H){return new Promise(function(C,S){var w=new FileReader;w.onloadend=function(){try{var A=new Uint8Array(w.result);A.length<8&&S(void 0);var J=A.subarray(0,8);A="";for(var c=0;c<J.length;c++)A+=("0"+J[c].toString(16)).substr(-2);A.startsWith("ffd8ff")?C("image/jpeg"):A.startsWith("47494638")?C("image/gif"):A.startsWith("89504e470d0a1a0a")?C("image/png"):A.startsWith("424d")?C("image/bmp"):C(void 0)}catch(Y){S(Y)}};
w.onerror=S;w.readAsArrayBuffer(H)})};
ReR=function(H){return new Promise(function(C,S){var w=new Image;w.crossOrigin="anonymous";w.onload=function(){var A=document.createElement("canvas");A.width=w.naturalWidth;A.height=w.naturalHeight;var J=A.getContext("2d");if(!J)throw Error("zl");J.drawImage(w,0,0);J=gbo(H);A.toBlob(function(c){c?C(c):S()},J)};
w.src=H})};
alp=function(H,C){var S;if(((S=_.e(H,_.Ox))==null?void 0:S.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var w;_.M3((w=C.hostElement)!=null?w:C,"yt-shorts-reset");_.cjY(_.JA().resolve(_.Ri),H).then(function(J){IlO(J,C,H)})}else{var A;
_.WH((A=C.hostElement)!=null?A:C,[H]).then(function(J){J&&IlO(J.data,C,H)})}};
IlO=function(H,C,S){if(H){var w=_.e(H.replacementEndpoint,_.Ox);if(w){H.sequenceContinuation&&(w.sequenceParams=H.sequenceContinuation);var A;_.M3((A=C.hostElement)!=null?A:C,"yt-navigate",{endpoint:H.replacementEndpoint})}else if((H==null?void 0:H.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(H==null?0:H.watchStatus)&&_.e(H.watchStatus,_.ci7)){var J;_.M3((J=C.hostElement)!=null?J:C,"yt-navigate",{endpoint:S})}}};
xsR=function(H){var C=_.JA().resolve(_.MU),S=_.R$.currentPageTypeSelector(C.getState())||"";C=_.R$.currentPageSubTypeSelector(C.getState())||"";S=S==="ytd-browse"&&C==="home";return _.E("web_guide_entry_enable_cache_for_non_home_pages")?(H=(H==null?void 0:H.navigationEndpoint)&&_.G5(H.navigationEndpoint)==="home",{disableCache:S&&H}):{disableCache:S}};
Hni=function(H){if(!H)return!1;try{if(H.host&&H.host.tagName==="YT-FORMATTED-STRING"&&H.host.id==="contenteditable-textarea"||H.nodeType===Node.ELEMENT_NODE&&H.tagName==="YTD-COMMENT-INPUT")return!0}catch(C){return!1}return Hni(H.parentNode)};
wD=function(H){return H?H.tagName==="A"&&H.href&&H.classList.contains("yt-simple-endpoint"):!1};
in_=function(H){return H?H.tagName==="IMG"&&H.classList.contains("emoji"):!1};
CrK=function(H,C,S){if(!H)return null;var w=wD(H);if(w&&S)return C=H.pathname.substring(H.pathname.indexOf("/channel/")+9),document.createTextNode("@"+C);if(w&&!S)return document.createTextNode("");if(in_(H))return S=H.alt,H=H.dataset.emojiId,!H&&C&&(C=_.qN(C,S))&&C.isCustomEmoji&&(H=C.emojiId),H?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+H+">"):document.createTextNode(S);w=H.cloneNode(!1);for(var A=0;A<H.childNodes.length;++A){var J=CrK(H.childNodes[A],C,S);J&&w.appendChild(J)}return w};
A5=function(H){return H?wD(H)?H:A5(H.lastChild):null};
S5t=function(H){return H?wD(H)?H:S5t(H.firstChild):null};
s$t=function(H){if(!H)return null;for(var C=H.previousSibling;C;)if(C.nodeType===Node.ELEMENT_NODE&&C.nodeName==="BR")C=C.previousSibling;else if(C.nodeType===Node.TEXT_NODE&&/\s+/.test(C.textContent))C=C.previousSibling;else break;(C=A5(C))?H=C:H=(H=H.parentNode)?A5(H.previousElementSibling):null;return H};
j$p=function(H){if(!H)return null;for(var C=H.nextSibling;C;)if(C.nodeType===Node.ELEMENT_NODE&&C.nodeName==="BR")C=C.nextSibling;else if(C.nodeType===Node.TEXT_NODE&&/\s+/.test(C.textContent))C=C.nextSibling;else break;return(C=S5t(C))?C:j$p(H.parentNode)};
wtK=function(H){var C=_.mR(),S=C.JSC$11360_getStartNode();if(!Hni(S.parentNode))return null;C=C.JSC$11360_getStartOffset();if(S.nodeType===Node.TEXT_NODE){var w=_.tb(S,wD);if(w){if(H&&C===0||!H&&C===S.length)return w}else{if(H&&C===S.length)return!S||S.nodeName==="BR"||S.nextElementSibling&&_.WQ(S.nextElementSibling,"display")==="block"?null:S5t(S.nextElementSibling);if(!H&&C===0)return S?A5(S.previousElementSibling):null}}if(S.nodeType===Node.ELEMENT_NODE)if(H){if(0<=C&&C<S.childNodes.length)return S5t(S.childNodes[C])}else if(0<
C&&C<=S.childNodes.length)return A5(S.childNodes[C-1]);return null};
ABK=function(H,C,S){if(!H)return null;if(H.nodeType===Node.TEXT_NODE)if(S){var w=s$t(H);if(w&&!/^\s+\S/.test(H.wholeText.substr(0,C)))return w}else if((w=j$p(H))&&!/\S\s+/.test(H.wholeText.substr(C,H.wholeText.length)))return w;return H.nodeType===Node.ELEMENT_NODE?S?s$t(H.childNodes[C]):j$p(H.childNodes[C]):ABK(H.parentNode,C,S)};
JBr=function(H){if(H.hasChildNodes())switch(H.tagName){case "DIV":case "A":case "SPAN":var C="";for(H=H.firstChild;H;H=H.nextSibling)C+=JBr(H);return C;default:return""}else switch(H.nodeType){case 3:return H.textContent;default:return""}};
F_o=function(H){switch(H){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"}};
Zn9=function(H){return H.map(function(C){return{settingsRadioOptionRenderer:{title:_.zn(C.name),asideText:_.zn(C.approximateSize),id:F_o(C.format)}}})};
Y53=function(H){if(H&&H.length!==0)return H.filter(cB9()).map(function(C){return{settingsRadioOptionRenderer:{title:C.name,asideText:C.approximateSize,id:F_o(C.formatType)}}})};
J5=function(H){if(H)return H.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
zXR=function(H,C){H=new Set(H!=null?H:[]);if(H.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(H.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(H.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(H.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(H.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(C)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
M4j=function(H){var C=H.indexOf("(");return C!==-1?H.substring(C+1,H.length-1):H};
_.Tw9=function(H,C,S,w,A){S||(S=q5q);var J;(J=_.e(S.commandMetadata,_.u9))!=null&&J.url||(S=Error("El`"+JSON.stringify(S)),_.nC(S),S=q5q);S=_.hb.unsafeClone(S);J=_.tt(_.e(S.commandMetadata,_.u9).url,"search_query",H);_.Up(location.href,"sv")==="1"&&(_.e(S,_.l4).params="EgOAAgE%3D",J=_.tt(J,"sv","1"));_.e(S,_.l4)&&(_.e(S,_.l4).query=H);J=J.replace(/%20/g,"+");_.e(S.commandMetadata,_.u9).url=J;A=_.E("desktop_enable_entity_suggest")?{entityMid:A}:{};_.JA().resolve(_.ZQ).resolveCommand(S,{form:{tempData:Object.assign({},
{gs_l:C,oq:w!=null?w:H},A)}})};
mpO=function(H){switch(H){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
yBO=function(H,C,S,w,A,J){var c=_.hb.clone(W_O);c.locale=_.rh("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;c.report={description:A||"<empty>"};A=_.rh("SBOX_SETTINGS",{});C=C.join(",");var Y=Date.now();H={choice_cc:w,choice_id_cc:S,choices_sc:C,gl:A.REQUEST_DOMAIN,hl:A.REQUEST_LANGUAGE,query:H,time:Y};J&&(H.choice_additional_comment_cc=J);_.sY7(c,H)};
NwO=function(H){var C=new Map;C.set("authuser",_.rh("SESSION_INDEX","0"));return _.TV(H,C)};
Ei3=function(H){var C;return _.z(function(S){switch(S.nextAddress){case 1:if(!H||!bnt(H))return S.return(null);C=null;switch(_.rh("INNERTUBE_CLIENT_NAME")){case "WEB":return S.jumpTo(2);case "WEB_REMIX":C=H.getPlayer()}S.jumpTo(3);break;case 2:return S.yield(H.getPlayerPromise(),4);case 4:C=S.yieldResult;S.jumpTo(3);break;case 3:return S.return(C)}})};
bnt=function(H){return["ytd-player","ytmusic-player"].includes(String(H.tagName||"").toLowerCase())};
eX3=function(H){H=Math.round(H);return H%2?H-1:H};
u1i=function(H){H=Math.round(H);return H%2===0?H-1:H};
Gb9=function(H){var C,S,w;if(H=(C=H.createPlaylistDialogFormSchema)==null?void 0:(S=C.fieldSchemas)==null?void 0:(w=S.title)==null?void 0:w.validationSchema)for(C=[H.syncStep,H.asyncStep].filter(function(A){return A!==void 0}),C=_.Z(C),S=C.next();!S.done;S=C.next()){S=S.value.rules;
if(!S)break;S=_.Z(S);for(S=S.next();!S.done;S=S.next())return _.e(S.value,_.FQK)}};
vii=function(H){var C,S,w;if(H=(C=H.createPlaylistDialogFormSchema)==null?void 0:(S=C.fieldSchemas)==null?void 0:(w=S.visibility)==null?void 0:w.validationSchema)for(C=[H.syncStep,H.asyncStep].filter(function(A){return A!==void 0}),C=_.Z(C),S=C.next();!S.done;S=C.next()){S=S.value.rules;
if(!S)break;S=_.Z(S);for(w=S.next();!w.done;w=S.next())if(w=_.e(w.value,fzO))return C=void 0,(C=w.translations)==null?void 0:C.visibilityNotValidErrorMessage}};
lzK=function(){var H,C;return(C=(H=_.JA().resolve(_.AA(_.sU)))==null?void 0:H())!=null?C:!1};
V49=function(H){var C=21;if(!H)return C;C+=H.headerTitle?27:0;C+=H.headerTitle&&H.hasHeaderActionHeader?4:0;return C+=H.headerTitle&&H.headerSubtitle?16:0};
oip=function(H){var C=0;if(!H)return C;C+=H.hasFooterPrimaryButton||H.hasFooterSecondaryButton?48:0;C+=H.footerTrailingLabel||H.footerLeadingLabel?30:0;return C+=H.hasFooterPrimaryButton||H.hasFooterSecondaryButton||!H.footerTrailingLabel&&!H.footerLeadingLabel?0:12};
Onr=function(H){var C=new _.G9,S=H;return{subscribe:function(w){C.subscribe("changed",w)},
dispatch:function(w,A){var J=S;w==="Touch Start"?S=Object.assign({},J,{isAnimating:!1,initialY:A.event.touches[0].clientY}):w==="Touch Move"?(w=Math.min(A.fullContentWrapperHeight,A.contentHeightMap[A.contentWrapperId]+V49(A.header)-oip(A.footer)),S=Object.assign({},J,{currentY:Math.max(A.contentScrollable?-1*(J.initialY-24):0,A.event.touches[0].clientY-J.initialY),maxHeightForContentWrapper:Math.min(w,Math.max(0,(J.isFullScreen?w:A.contentWrapperHeight)-J.currentY))})):S=w==="Snap To Full Screen"?
Object.assign({},J,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:A.maxHeight}):w==="Snap To Neutral Position"?Object.assign({},J,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:A.maxHeight}):w==="Close Sheet"?Object.assign({},J,{isAnimating:!0,currentY:A.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:A.maxHeight}):J;C.publish("changed",S)}}};
Xto=function(H){return _.um(function(C){H(C);return!1})};
Q$t=function(){_.JA().resolve(_.wz).closeSheet()};
dpO=function(H){var C,S,w,A,J,c,Y,M,m,W,y;return{headerTitle:(C=H.headerTitle)==null?void 0:C.call(H),headerSubtitle:(S=H.headerSubtitle)==null?void 0:S.call(H),headerActionHeader:H.headerActionHeader,footerPrimaryButton:H.footerPrimaryButton,footerSecondaryButton:H.footerSecondaryButton,footerButtonType:(w=H.footerButtonType)==null?void 0:w.call(H),footerLeadingLabel:(A=H.footerLeadingLabel)==null?void 0:A.call(H),footerTrailingLabel:(J=H.footerTrailingLabel)==null?void 0:J.call(H),shouldShowIcons:(c=
H.shouldShowIcons)==null?void 0:c.call(H),skipContentClick:(Y=H.skipContentClick)==null?void 0:Y.call(H),additionalClassName:(M=H.additionalClassName)==null?void 0:M.call(H),onClosedCallback:H.onClosedCallback,focusOnClose:(m=H.focusOnClose)==null?void 0:m.call(H),isDisabled:(W=H.isDisabled)==null?void 0:W.call(H),disabledCommand:(y=H.disabledCommand)==null?void 0:y.call(H),headerFn:H.headerFn,contentFn:H.contentFn,footerFn:H.footerFn,hasHeaderFn:H.hasHeaderFn(),hasContentFn:H.hasContentFn(),hasFooterFn:H.hasFooterFn(),
hasFooterPrimaryButton:H.hasFooterPrimaryButton(),hasFooterSecondaryButton:H.hasFooterSecondaryButton(),hasHeaderActionHeader:H.hasHeaderActionHeader()}};
Pr9=function(H){switch(H){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""}};
$pp=function(H){switch(H){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""}};
ptt=function(H){switch(H){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""}};
kbr=function(H,C,S){C.forEach(function(w){_.Bg(_.JA().resolve(_.Av),w)});
_.q3(H,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",S])};
BwO=function(H,C,S,w){var A=_.e(S,_.Wg).commandLifeCycleConfig;A&&A.onStartCommand&&_.yN(H,[A.onStartCommand],C);_.th(C);var J=_.xb.instance;J&&_.Ht(J,S)?_.ir(J,S,w).then(function(c){if(!c||(c==null?0:c.error))return c=_.e(S,_.Wg).serializedTransactionFlowLoggingParams,_.LN(C),_.kj(new Fq("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",c));_.LN(C);return{data:c}}).then(function(c){_.LN(C);
hX_(c.data);var Y=c.data.command;Y&&_.yN(H,[Y],C);Y=nir(S,c.data);if(!Y){var M=c.data;c=!1;if(M&&M.command&&_.e(M.command,_.b9)){var m;M=((m=_.e(M.command,_.b9))==null?void 0:m.commands)||[];for(m=0;m<M.length;m++)if(_.e(M[m],_.Qnd)){c=!0;break}}c||_.wc('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!Y&&A&&A.onSuccessCommand?_.yN(H,[A.onSuccessCommand],C):Y&&A&&A.onFailureCommand&&_.yN(H,[A.onFailureCommand],C)},function(){_.LN(C);
A&&A.onFailureCommand&&_.yN(H,[A.onFailureCommand],C);rBi(S)}):_.nC(Error("Ql"),"ERROR")};
DpK=function(H,C,S){var w=[C];S&&w.push(S);return _.WH(H,w).then(function(A){var J=_.e(C,_.Wg).serializedTransactionFlowLoggingParams,c=A.data,Y=nir(C,c);Y?A=_.kj(new Fq(Y,J)):hX_(c);return A},function(){var A=_.e(C,_.Wg).serializedTransactionFlowLoggingParams;
rBi(C);return _.kj(new Fq("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",A))})};
nir=function(H,C){H=_.e(H,_.Wg).serializedTransactionFlowLoggingParams;var S=null;switch(C.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":S="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":S="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":S="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}S?_.js(S,H):cGi(H);return S};
rBi=function(H){_.js("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.e(H,_.Wg).serializedTransactionFlowLoggingParams)};
hX_=function(H){if(H.trackingParams){var C=_.Dg(),S=_.BM();C&&S&&_.ak(C,S,_.Qh(H.trackingParams))}};
K_t=function(H,C,S){var w=_.xb.instance,A=_.J3V(_.rh("YPC_MB_URL")),J=(new _.wDD).init(),c=_.A37(),Y=_.e(S,_.V3b).languageCode;Y===void 0?_.nC(Error("Ni"),"ERROR"):_.nh([J,A]).then(function(){var M={ctk:_.s6.payments.business.integration.ClientTokenFactory.createClientToken(Y,c)};w&&_.Ht(w,S)?_.ir(w,S,M).then(function(m){return{data:m}}).then(function(m){_.M3(C,"yt-service-request-completed",m);
m.code!=="ERROR"&&(m=m.data.command)&&_.yN(H,[m],C)}):_.nC(Error("Ql"),"ERROR")})};
gir=function(H,C,S,w){var A=_.xb.instance;A&&_.Ht(A,S)?_.ir(A,S,w).then(function(J){return{data:J}}).then(function(J){t4i(H,C,S,J)},function(){L_9(S)}):(A=_.JA().resolve(_.AA(_.tG)))&&A.requestDataForServiceEndpoint(S,w).then(function(J){t4i(H,C,S,J)},function(){L_9(S)})};
t4i=function(H,C,S,w){_.M3(C,"yt-service-request-completed",w);if(w.code&&w.code=="ERROR")L_9(S);else{(w=w.data.commands)&&_.yN(H,w,C);var A;(H=(A=_.e(S,_.PQU))==null?void 0:A.serializedYpcPauseFlowLoggingParams)&&H&&_.ET("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",H)}};
L_9=function(H){var C;(H=(C=_.e(H,_.PQU))==null?void 0:C.serializedYpcPauseFlowLoggingParams)&&H&&_.ET("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",H,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
IzK=function(H,C,S){var w=_.xb.instance;w&&_.Ht(w,S)?_.ir(w,S).then(function(A){return{data:A}}).then(function(A){Up3(H,C,S,A)},function(){RXi(S)}):(w=_.JA().resolve(_.AA(_.tG)))&&w.requestDataForServiceEndpoint(S).then(function(A){Up3(H,C,S,A)},function(){RXi(S)})};
Up3=function(H,C,S,w){_.M3(C,"yt-service-request-completed",w);w.code&&w.code=="ERROR"?RXi(S):((w=w.data.commands)&&_.yN(H,w,C),(H=_.e(S,_.$hd).serializedYpcResumeFlowLoggingParams)&&H&&_.ET("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",H))};
RXi=function(H){(H=_.e(H,_.$hd).serializedYpcResumeFlowLoggingParams)&&H&&_.ET("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",H,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
azO=function(H){H=H===void 0?{}:H;_.JA().resolve(_.lw3).showFeedbackDialog(H.customProductData,H.feedbackContent,H.onFeedbackSubmitted,H.bucket)};
xp_=function(H){H=H===void 0?{}:H;_.JA().resolve(_.lw3).showHelpDialog(H.helpContext,H.articleId,H.productData)};
HN3=function(){xp_()};
iNp=function(){azO()};
Sjo=function(H,C,S){var w,A,J,c,Y,M,m;return _.z(function(W){switch(W.nextAddress){case 1:w=_.e(H,CKo);if((A=w)==null?0:A.productId){M={productId:w.productId,bucket:w.bucket,enableAnonymousFeedback:(Y=w.enableAnonymousFeedback)!=null?Y:!0,allowNonLoggedInFeedback:!0};m={feedbackChoice:S.feedbackChoice};if(!_.E("web_collect_offline_state")){W.jumpTo(8);break}_.en(W,9);return W.yield(Nmr(m),11)}c={bucket:(J=w)==null?void 0:J.bucket};if(!_.E("web_collect_offline_state")){W.jumpTo(4);break}c.customProductData=
{};_.en(W,5);return W.yield(Nmr(c.customProductData),7);case 7:_.xB(W,4);break;case 5:_.Vx(W);case 4:azO(c);W.jumpTo(0);break;case 11:_.xB(W,8);break;case 9:_.Vx(W);case 8:_.gkp(m),_.LOZ("GFEEDBACK",m),w.productId==="5295751"&&(m.client_attestation=Number(_.rh("CATSTAT",0))),w.productId==="5295751"&&(m.client_time=Date.now()/1E3/3600),w.productId==="5295751"&&(m.original_playback_id=_.bE1||""),_.sY7(M,m),_.oT(W)}})};
sJR=function(H){if(H=_.e(H,_.wsV)){var C={bucket:H.bucketIdentifier};H.additionalDatas&&(C.customProductData={},H.additionalDatas.forEach(function(S){if(S=S.userFeedbackEndpointProductSpecificValueData)C.customProductData[S.key]=S.value}));
azO(C)}};
jJ3=function(H){var C=_.a8.getInstance();var S=_.fL("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var w=_.fL("DELETE",void 0,"Delete"),A=_.fL("CANCEL",void 0,"Cancel");S=oRr(S,void 0,w,A,{signal:"DELETE_ALL_DOWNLOADS"});_.HW(C,[{openPopupAction:S}],H)};
AhO=function(){return _.z(function(H){return H.nextAddress==1?H.yield(_.JA().resolve(_.tR),2):H.yield(wQi(),0)})};
Jhi=function(H){var C,S;return _.z(function(w){return w.nextAddress==1?(S=(C=_.e(H,_.gv))==null?void 0:C.targetId)?w.yield(_.JA().resolve(_.tR),3):w.jumpTo(0):w.yield(_.JA().resolve(_.KY).deleteVideo(S),0)})};
ZNo=function(H){var C,S;return _.z(function(w){return w.nextAddress==1?(S=(C=_.e(H,_.gv))==null?void 0:C.targetId)?w.yield(_.JA().resolve(_.tR),3):w.jumpTo(0):w.yield(FR9(_.JA().resolve(_.KY),S),0)})};
Yj3=function(H){var C,S;return _.z(function(w){return(S=(C=_.e(H,_.gv))==null?void 0:C.targetId)?w.yield(ch9(S),0):w.jumpTo(0)})};
MAi=function(){_.E("kevlar_woffle_refresh_dl_load_killswitch")||zMt()};
T$K=function(){_.E("kevlar_woffle")&&_.kF.instance&&qjR()};
WRp=function(H){var C;if((C=_.e(H,_.ur))==null||!C.videoId)return!1;mNi(_.JA().resolve(_.KY),_.e(H,_.ur),H.clickTrackingParams);return!0};
N$_=function(H){var C;if((C=_.e(H,_.Gb))==null||!C.playlistId)return!1;yh9(_.JA().resolve(_.KY),_.e(H,_.Gb),H.clickTrackingParams);return!0};
EQi=function(H){var C=_.e(H,_.y$b);(C==null?void 0:C.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(C==null?void 0:C.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||bNo(_.JA().resolve(_.KY),_.e(H,_.y$b))};
ueO=function(H){H=_.e(H,_.R17);var C;(H==null?0:(C=H.actions)==null?0:C.length)&&eMi(H)};
vQO=function(H){var C,S;return _.z(function(w){C=_.e(H,G_i);return(S=C)!=null&&S.localWatchHistoryCommandType?w.yield(fBo(C),0):w.return()})};
lBi=function(H){setTimeout(function(){requestAnimationFrame(H)},80)};
VAj=function(H){return Object.entries(H).map(function(C){return C.join(":")}).join(";")};
ONo=function(H){var C,S,w;_.z(function(A){if(A.nextAddress==1)return A.yield(oQt(),2);C=A.yieldResult;S=_.eU.instance;switch(C){case "granted":w=H.getLocationCommand;break;case "denied":w=H.openDeniedDialogAction;break;case "prompt":w=H.openCollectionDialogAction;break;default:w=H.openCollectionDialogAction}w&&S.resolveCommand(w);_.oT(A)})};
oQt=function(){var H,C;return _.z(function(S){if(S.nextAddress==1)return H="prompt",navigator.permissions?S.yield(navigator.permissions.query({name:"geolocation"}),3):S.jumpTo(2);S.nextAddress!=2&&(C=S.yieldResult,H=C.state);return S.return(H)})};
QJ_=function(){_.z(function(H){return H.yield(_.XQp(),0)})};
dNR=function(){var H,C,S;return _.z(function(w){if(w.nextAddress==1)return H=_.JA().resolve(_.Lf),H?w.yield(_.ir(H,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.Bn(Error("Tl")),w.return(void 0));if(C=w.yieldResult){if(C.errorMetadata)return _.Bn(Error("Ul`"+C.errorMetadata.status+"`"+C.error)),w.return(void 0);S=C.datasyncIds;_.X7j=S.length;return w.return(S)}_.Bn(Error("Vl"));return w.return(void 0)})};
PKt=function(){dNR().then(function(H){H&&(U3r(H),zup(H),hDq(H),EFK(H))})};
$NO=function(H){_.rT.addLowPriorityJob(function(){var C,S,w,A,J;return _.z(function(c){switch(c.nextAddress){case 1:if(_.E("ytidb_clear_optimizations_killswitch")){c.jumpTo(2);break}C=_.oa("clear");if(C.startsWith("V")&&C.endsWith("||")){var Y=[C];U3r(Y);zup(Y);hDq(Y);EFK(Y);return c.return()}S=n6R();w=eut();return c.yield(Mtq(),3);case 3:return A=c.yieldResult,c.yield(RNK(),4);case 4:if(J=c.yieldResult,!(S||w||A||J))return c.return();case 2:H.isNetworkAvailable()?PKt():H.listenOnce("publicytnetworkstatus-online",
PKt),_.oT(c)}})})};
ZI=function(H){H={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.sx(H)}}}};_.eU.instance&&_.eU.instance.resolveCommand(H)};
pQO=function(H){if(H){var C=_.lJ();_.kP(C,3854,void 0,{layer:0,parentLayer:4});switch(H){case 1:var S=238708;break;case 2:S=238715;break;case 3:S=238710;break;case 6:S=238709}S&&(H=_.vI(C,{veType:S}))&&_.rH(C,H)}};
k_9=function(H){if(H){var C=_.lJ();_.kP(C,3854,void 0,{layer:0,parentLayer:4});switch(H){case 1:var S=238714;break;case 2:S=238711;break;case 8:S=238709;break;case 7:S=238713;break;case 3:case 4:case 5:S=238712}S&&(H=_.vI(C,{veType:S}))&&_.rH(C,H)}};
hM9=function(H){switch(H.latencyType){case 0:_.BH("consent_primitive_flow");_.DR("cpit",H.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.DR("cpist",H.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.DR("cprtif",H.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.DR("cprtli",H.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.DR("cprt",H.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.DR("cpdt",H.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.DR("cpjct",H.timestampEpochMillis,"consent_primitive_flow")}};
RMK=function(H,C){var S,w,A,J,c,Y,M,m,W,y,N,b,u,O,d,p,k,R,L,t;return _.z(function(g){switch(g.nextAddress){case 1:_.en(g,2);(w=(S=_.e(H,nQ_))==null?void 0:S.serializedConsentRequest)||(w=(A=_.e(H,rhi))==null?void 0:A.serializedConsentRequest);w&&(J=B$p(_.iY(w)));if(J===void 0)return g.return();c=DNq(J);c.latencyCallback=hM9;C&&KRO(c,function(){C.then(function(ii){ii.pauseVideo();(new tAO).increment()})});
return((Y=_.e(H,nQ_))==null?void 0:Y.consentAction)==="CONSENT_ACTION_PREWARM"||((M=_.e(H,rhi))==null?void 0:M.consentAction)==="CONSENT_ACTION_PREWARM"?g.yield(LRt(c),5):g.yield(gQ_(c),6);case 6:m=g.yieldResult;W=_.lP(m,cc);if(W===1){if(((y=_.n5(m,Yq,1,cc))==null?void 0:_.p5(y,1))===1||((N=_.n5(m,Yq,1,cc))==null?void 0:_.p5(N,1))===2||((b=_.n5(m,Yq,1,cc))==null?void 0:_.p5(b,1))===3)_.e(H,rhi)?ZI(_.fL("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
ZI(_.fL("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));pQO((u=_.n5(m,Yq,1,cc))==null?void 0:_.p5(u,1),_.Za(m,UNR,3,_.cl()))}else W===2?(((O=zk(m))==null?void 0:_.p5(O,1))===5?_.e(H,rhi)?ZI(_.fL("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):ZI(_.fL("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((d=zk(m))==null?void 0:_.p5(d,1))===1||((p=zk(m))==null?void 0:_.p5(p,1))===4?ZI(_.fL("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((k=zk(m))==null?void 0:_.p5(k,1))===7&&((R=J)==null?void 0:(L=_.zf(R,MP,4))==null?void 0:_.p5(L,4))!==1&&ZI(_.fL("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),k_9((t=zk(m))==null?void 0:_.p5(t,1))):ZI(_.fL("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));g.jumpTo(5);break;case 5:_.xB(g,0);break;case 2:_.Vx(g),ZI(_.fL("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.oT(g)}})};
aBj=function(){if(!IB9.has("Worker")){IB9.set("Worker",!0);var H={api:"BROWSER_API_WEB_WORKER"};H.available="Worker"in window?!0:!1;_.kI("apiTest",H)}};
xNr=function(H){return typeof H==="undefined"?"-1":String(Math.ceil(H/1048576))};
S6o=function(H,C){Hdp(new idr(_.e(C,Cz3).addToken,_.e(C,Cz3).commonToken)).then(function(){_.M3(H,"yt-invoke-instrument-manager-action-completed")},function(S){_.M3(H,"yt-invoke-instrument-manager-action-error",S)})};
sh3=function(){var H,C;return(C=(H=window).matchMedia)==null?void 0:C.call(H,"(prefers-reduced-motion: reduce)").matches};
jhi=function(H){var C=_.JA().resolve(_.AA(_.IC));if(C&&C.isAnyTransitionEnabled){var S={};C.viewTransitionCoordinator.registerElement(H,(S.slide="miniplayer-page-transition",S["lockup-to-watch"]="miniplayer-page-transition",S["learning-journey"]="miniplayer-page-transition",S))}};
wft=function(H,C,S){return{horizontalAlignment:H.x+S.width/2<C.width/2?"west":"east",verticalAlignment:H.y+S.height/2<C.height/2?"north":"south"}};
JNp=function(H,C,S,w,A){A=A===void 0?new _.rx(0,0):A;H=ANO(H,C,S,w);return new _.rx(H.x+A.x,H.y+A.y)};
ANO=function(H,C,S,w){return new _.rx(H==="west"?16:S.width-w.width-16,C==="north"?16:S.height-w.height-16)};
Fxq=function(H,C){var S=0;H&&(S+=76);C&&(S+=285);return S};
Zdi=function(H){return _.tC(H)};
cNK=function(H){var C=1;H=H.split(":");for(var S=[];C>0&&H.length;)S.push(H.shift()),C--;H.length&&S.push(H.join(":"));return S};
Y6t=function(H){var C=new _.G4;return _.rO(C,11,H)};
z8t=function(H){var C={};H=H.getAllResponseHeaders().split("\r\n");for(var S=0;S<H.length;S++)if(!_.YE(H[S])){var w=cNK(H[S]),A=w[0];w=w[1];if(typeof w==="string"){w=w.trim();var J=C[A]||[];C[A]=J;J.push(w)}}return _.hb.map(C,function(c){return c.join(", ")})};
M8=function(H,C){return H.JSC$9809_xhr_?H.JSC$9809_xhr_.getResponseHeader(C):null};
M9K=function(H,C){if(H.isDisposed())throw Error("Ea");H.d6.cN("n");var S=_.Uw(H.d6,function(){return H.twa([C.v5,C.lFK,C.rr6,C.bry])},"n");
H.d6.lYS(S.length);H.d6.jr();return S};
qP=function(H,C,S){Array.isArray(S)||(S=[String(S)]);_.lYd(H.JSC$10045_queryData_,C,S);return H};
qjR=function(){var H=_.kF.instance;_.z(function(C){return H.deferredInstallPrompt?C.yield(H.deferredInstallPrompt.prompt(),0):C.jumpTo(0)})};
q6p=function(H,C,S){if(_.Dw(H))_.I6(H,C,S);else for(H=_.p5n(H);;){var w=H.next();if(w.done)break;C.call(S,w.value,void 0,H)}};
TRr=function(H,C){var S=[];q6p(C,function(w){try{var A=_.mP.prototype.getWrapper.call(this,w,!0)}catch(J){if(J=="Storage: Invalid value was encountered")return;throw J;}A===void 0?S.push(w):_.$_W(A)&&S.push(w)},H);
return S};
fyo=function(H,C){TRr(H,C).forEach(function(S){_.mP.prototype.remove.call(this,S)},H)};
mIK=function(H){var C=_.cJ;C._minimumZ=Math.max(C._minimumZ,H)};
WxR=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];yNo=function(H,C){_.Ak(H.vm);H.vm=C};
NRq=function(H,C,S,w){H.setState(5);var A=!!H.tHS&&WxR.includes(_.S$(H.tHS)||"");try{var J=new _.RY({program:C,globalName:S,hbK:{disable:!_.E("att_web_record_metrics")||!_.E("att_skip_metrics_for_cookieless_domains_ks")&&A,gs:"aGIf"}});J.zaT.then(function(){H.setState(6);w&&w(C)});
yNo(H,J)}catch(c){H.setState(7),c instanceof Error&&_.Bn(c)}};
bdO=function(H,C,S,w,A,J){var c=c===void 0?"trayride":c;S?(H.setState(2),_.Ie(_.Pl(S),function(){if(window[c])NRq(H,w,c,A);else{H.setState(3);var Y=_.uLE(S),M=document.getElementById(Y);M&&(_.msZ(Y),M.parentNode.removeChild(M));_.Bn(new _.X0("BL:ULB",S))}},J)):C?(J=_.GZ("SCRIPT"),C instanceof _.jn?_.AY(J,C):J.textContent=C,J.nonce=_.Sn(document),document.head.appendChild(J),document.head.removeChild(J),window[c]?NRq(H,w,c,A):(H.setState(4),_.Bn(new _.X0("BL:ULBJ")))):_.Bn(new _.X0("BL:ULV"))};
ECp=function(){this.state=1;this.vm=null;this.tHS=void 0};
_.F=ECp.prototype;_.F.initialize=function(H,C,S,w){this.tHS=w;if(H.program){var A;w=(A=H.interpreterUrl)!=null?A:null;if(H.interpreterSafeScript)A=_.kzV(H.interpreterSafeScript);else{var J;A=(J=H.interpreterScript)!=null?J:null}H.interpreterSafeUrl&&(w=_.B9(H.interpreterSafeUrl).toString());bdO(this,A,w,H.program,C,S)}else _.Bn(Error("qf"))};
_.F.isInitialized=function(){return!!this.vm};
_.F.getState=function(){return this.state};
_.F.isLoading=function(){return this.state===2};
_.F.invoke=function(H){H=H===void 0?{}:H;var C;this.vm?C=M9K(this.vm,{v5:H}):C=null;return C};
_.F.dispose=function(){yNo(this,null);this.setState(8)};
_.F.setState=function(H){this.state=H};
var e8_=function(H,C){return H.vm.snapshot(C)},uno=function(H,C){var S=_.YB("botguard_async_snapshot_timeout_ms",3E3);
C=C===void 0?{}:C;S=S===void 0?3E3:S;return H.vm?new Promise(function(w,A){var J=!1,c=_.rT.addJob(function(){J=!0;A(Error("rf"))},1,S);
H.vm?e8_(H,{v5:C}).then(function(Y){_.rT.cancelJob(c);J||w(Y)}).catch(function(Y){_.rT.cancelJob(c);
J||A(Y)}):(_.rT.cancelJob(c),w(null))}):Promise.resolve(null)},GXo=["att/log"],q5q;
q5q={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var ffo={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},vCj=function(H,C){return _.la(H,{mode:"readwrite",enableRetries:!0},function(S){return _.C3u(S,C,"settingEntity")})},lft=function(H,C,S){return _.la(H,{mode:"readonly",
enableRetries:!0},function(w){return _.jvW(w,C,S)})},V99=function(H){if(!H.storage)return!1;
a:{if(H.storage){try{var C=H.storage.get("TLPQtimestamp")}catch(S){}H=Number(C);if(!isNaN(H))break a}H=void 0}return H?Date.now()-H<864E5:!1},oCt=function(H){if(H.storage){try{var C=H.storage.get("TLPQindex")}catch(S){}H=Number(C);
if(!isNaN(H))return H}},Odq=function(H,C){H.queueProxy&&C.forEach(function(S){if(S.videoId&&S.trackingParams&&H.queueProxy instanceof _.Ye){var w=_.Dg();
H.queueProxy.attributionData.set(S.videoId,{enqueueingVe:_.Qh(S.trackingParams).getAsJson(),enqueueingCsn:w?w:void 0,clientEnqueueingTimeMs:Math.floor((0,_.Zt)()).toString()})}})},Xfj=function(H){var C=_.hH1(H);
C!=H.currentSnapState_&&(H.currentSnapState_=C,H.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},Tk=function(H){this.JSC$13180_networkManager_=H;
this.partCallbacks_=[]};
Tk.prototype.getCacheKeyForEndpoint=function(H){return _.goW(H,!1)};
Tk.prototype.onPartsCallback_=function(H){this.partCallbacks_.forEach(function(C){H&&C(H)})};
var mG=function(H,C,S){Tk.call(this,H);this.player_=C;this.autoplayData_=S};
_.G(mG,Tk);mG.prototype.getCacheKeyForEndpoint=function(H){return _.goW(H,!!this.autoplayData_)};
mG.prototype.getTempData=function(H,C){C=C.timeBeforeNextVideo;H={itct:H.clickTrackingParams,lact:_.cn(),pbis:C,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(H.autonav=1);return H};
mG.prototype.getXhrParams=function(H){return Object.assign({pbj:"prefetch"},H)};
mG.prototype.getParams=function(H){H={frags:H.fragmentsRequested.join(",")};_.E("kevlar_droppable_prefetchable_requests")&&(H.prefetch=1);return H};
var Qh_=function(H){H.playerEvents_.forEach(function(C){H.player.removeEventListener(C.eventName,C.callback)});
H.playerEvents_.length=0},Wc=function(H,C,S){this.player=H;
this.JSC$13190_taskManager=C;this.prefetchDelay=S;this.completionResolver_=null;this.playerEvents_=[]};
Wc.prototype.start=function(){var H=this;this.completionResolver_=_.Cn();_.rL(this.completionResolver_.promise,function(){Qh_(H);H.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var dIp=function(H,C,S){H.player.addEventListener(C,S);H.playerEvents_.push({eventName:C,callback:S})},Pzj={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},$Ii={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},pfO=function(H,C,S){Wc.call(this,H,C,S);this.cueId_="playbackTrigger-"+Math.random()};
_.G(pfO,Wc);
pfO.prototype.prepareTrigger=function(H){var C=this,S=this.player.getDuration(),w=this.player.getVideoData(),A=w.isLive&&w.hasProgressBarBoundaries;if(A&&w.progressBarEndPositionUtcTimeMillis){var J=w.progressBarEndPositionUtcTimeMillis/1E3;isNaN(J)||(S=J)}var c=0;this.prefetchDelay>=0?A?w.progressBarStartPositionUtcTimeMillis&&(w=w.progressBarStartPositionUtcTimeMillis/1E3,isNaN(w)||(c=w+this.prefetchDelay)):c=this.prefetchDelay:c=S+this.prefetchDelay;A?this.player.addUtcCueRange(this.cueId_,c,S):
this.player.addCueRange(this.cueId_,c,S);_.rL(H.promise,function(){C.player.removeCueRange(C.cueId_)});
dIp(this,"onCueRangeEnter",function(Y){Y==C.cueId_&&H.resolve(S-c)})};
var kX3=function(H,C){H.fragmentConfiguration_[C].requiredKeys.every(function(S){return!!H.prefetchedData_[S]})&&(H.validatedFragments_.push(C),C=H.missingFragments_.indexOf(C),C!==-1&&H.missingFragments_.splice(C,1))},h8i=function(H){H.prefetchedFragments_.forEach(function(C){kX3(H,C)})},nC_=function(H,C,S){this.pageFragments_=H;
this.prefetchedFragments_=C;this.fragmentConfiguration_=$Ii;this.prefetchedData_=S;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;h8i(this)},rNp=function(){},BR9=function(H){this.JSC$13204_playlistManager_=H};
_.G(BR9,rNp);BR9.prototype.getPrefetchEndpoint=function(){return this.JSC$13204_playlistManager_.getAutoplayEndpoint()};
var DIq=function(H){this.autonavEndpoints_=H};
_.G(DIq,rNp);DIq.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var Kxo=function(H,C,S,w,A){this.autonavEndpoints=H;this.foregroundTrigger=C;this.backgroundTrigger=S;this.pageType=w;this.isInPlaylist=A},t9R=function(H,C){if(H.webPrefetchData&&H.webPrefetchData.navigationEndpoints&&H.webPrefetchData.navigationEndpoints.length){H=H.webPrefetchData.navigationEndpoints;
var S=_.e(H[0],_.sX);if(S.watchEndpointSupportedPrefetchConfig&&S.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var w=S.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;S=w.playbackRelativeSecondsPrefetchCondition;S=typeof S==="number"&&Math.abs(S)<C.videoDuration?S:void 0;w=w.countdownUiRelativeSecondsPrefetchCondition;w=typeof w!=="number"||_.E("prefetch_job_config_cleanup_ks")&&C.inPlaylist?void 0:w;if(typeof w==="number")return new Kxo(H,C.makeUpNextTrigger(w),C.makePlaybackTrigger(w),
"watch",C.inPlaylist);if(typeof S==="number")return new Kxo(H,C.makePlaybackTrigger(S),null,"watch",C.inPlaylist)}}},Lx9=function(H){return H.prefetchJobConfig_.backgroundTrigger?_.Lp(_.blZ)()==0?H.prefetchJobConfig_.backgroundTrigger:H.prefetchJobConfig_.foregroundTrigger:H.prefetchJobConfig_.foregroundTrigger},gC9=function(H){_.$c(document,"visibilitychange",H.onVisibilityChange_,!1,H)},yY=function(H){Tk.call(this,H)};
_.G(yY,Tk);yY.prototype.getCacheKeyForEndpoint=function(H){return Tk.prototype.getCacheKeyForEndpoint.call(this,H)};
yY.prototype.getTempData=function(){return{}};
yY.prototype.getXhrParams=function(H){return H};
yY.prototype.getParams=function(){return{}};
var UI3=function(H,C,S){var w=H.prefetchDelay*1E3;if(Math.abs(w)>C)S.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var A=w,J=C-w;w<0&&(A=C+w,J=Math.abs(w));var c=H.JSC$13190_taskManager.addJob(function(){S.resolve(J/1E3)},10,A);
S.promise.thenCatch(function(){H.JSC$13190_taskManager.cancelJob(c)})}},R8O=function(H,C,S){Wc.call(this,H,C,S)};
_.G(R8O,Wc);R8O.prototype.prepareTrigger=function(H){var C=this;dIp(this,"onAutonavCoundownStarted",function(S){UI3(C,S,H)})};
var Ifo=function(H){H.pendingPrefetchJob_&&(H.pendingPrefetchJob_.cancel(),H.pendingPrefetchJob_=null)},afr=function(H,C,S){if(!H.triggeredTargets.has(C)){var w=_.oaP(H,C);
w.action=S;_.lXU(H,C,w)}},xI3=function(H){_.TY_();
_.dfE("cpt")&&_.Bn(Error("qh"));_.s$.requestAnimationFrame(function(){_.s$.setTimeout(function(){_.DR("cpt");var C=_.LL("vpl"),S=_.LL("cpt");C&&S&&_.DR("ol",Math.max(C,S))})});
try{_.DR("fr_s"),H()}catch(C){_.nC(C)}_.s$.requestAnimationFrame(function(){_.DR("bcp")})},H5p=function(H,C){H.serviceEndpointHandlers.push(C)},i5R=function(H,C){C=H.pendingPages_.indexOf(C);
C>-1&&H.pendingPages_.splice(C,1)},CP_=function(H,C){var S=_.hg1.indexOf(C);
S>-1&&_.hg1.splice(S,1);H.targetPage_==C?(H.abort(),_.rR_(H)):i5R(H,C)},Sbq=function(H,C,S,w){C={challenge:C};
S&&(C.webResponse=S);return _.Mb(H.innertubeTransportService,C,_.JG(GXo),w)},ssO=function(H,C,S){if(!C.challenge)throw Error("vi");
if(C.botguardData&&C.botguardData.program){var w=new ECp;w.initialize(C.botguardData,function(){uno(w,{atr_challenge:C.challenge}).then(function(A){if(!A)throw Error("wi");return Sbq(H,C.challenge,A,S)}).catch(function(A){_.Bn(A);
return Sbq(H,C.challenge,void 0,S)})},void 0)}else Sbq(H,C.challenge,void 0,S)},js3=function(H,C,S){var w={};
C.ids&&(w.ids=[].concat(_.k$(C.ids)));C.engagementType&&(w.engagementType=C.engagementType);return _.Mb(H.innertubeTransportService,w,_.JG(_.bTn),S).then(function(A){if(!A)throw new _.X0("GetAttestationChallenge returned falsy");ssO(H,A,S)}).thenCatch(function(A){_.nC(A)})},wup=function(H,C,S){return new _.Es(function(w,A){var J;
return _.z(function(c){if(c.nextAddress==1){var Y=c.yield,M=C.engagementType,m=C.ids,W={};m=_.Z(m!=null?m:[]);for(var y=m.next();!y.done;y=m.next())y=y.value,y.encryptedVideoId?W.encryptedVideoId=y.encryptedVideoId:y.externalChannelId?W.externalChannelId=y.externalChannelId:y.commentId?W.commentId=y.commentId:y.externalOwnerId?W.externalOwnerId=y.externalOwnerId:y.artistId?W.artistId=y.artistId:y.playlistId?W.playlistId=y.playlistId:y.externalPostId?W.externalPostId=y.externalPostId:y.shareId&&(W.shareId=
y.shareId);return Y.call(c,VRO(M,W),2)}J=c.yieldResult;if(!J.challenge)return _.Bn(Error("xi")),js3(H,C,S).then(w,A),c.return();Y=J;M={challenge:Y.challenge};M.webResponse=Y.webResponse;M.engagementType=C.engagementType;M.ids=C.ids;_.Mb(H.innertubeTransportService,M,_.JG(GXo),S).then(w,A);_.oT(c)})})},BWO=function(H,C){var S,w,A,J;
_.z(function(c){if(c.nextAddress==1){S=_.e(C,_.OqY);if(!(S&&S.listId&&H.response&&H.response.playingVideoId)||H.listId!==S.listId)return c.return();H.index===void 0&&(H.index=0);return c.yield(_.rUY(H.JSC$12937_playlistNetworkManager,S.listId,H.index,H.response.playingVideoId),2)}w=c.yieldResult;if(!w)return c.return();A=w.playlistId;J=w.playlistPanelRenderer;H.setPlaylistData(A,J,w.autoplayRenderer);_.oT(c)})},ACo=function(H,C,S){var w=H.getParams(S),A=_.UpZ(C,w),J=H.getTempData(C,S);
J.endpoint=JSON.stringify(C);_.E("enable_unknown_lact_fix_on_html5")&&(_.JA().resolve(_.Qi),J.lact=_.cn());var c={headers:{"X-YouTube-STS":_.rh("STS"),"x-youtube-csoc":1}};_.JM(A,J);return new _.Es(function(Y,M){var m=H.getXhrParams(w),W;_.E("kevlar_cache_on_ttl_player")&&(W=_.ai.instance);W&&_.AjW(W,C)?_.qRU(W,C,J,window.location.href).then(function(y){y?Y(y):M()},M):_.P__(H.JSC$13180_networkManager_,C,m,H.onPartsCallback_.bind(H),c).then(function(y){y?Y(y):M()},M)})},JCR=function(H,C){H.triggerPromise_=
C.start();
H.triggerPromise_.then(function(S){var w=H.prefetchEndpointProvider_.getPrefetchEndpoint();if(w){var A=Pzj[H.prefetchJobConfig_.pageType].prefetchedFragments;H.prefetchRequestPromise_=ACo(H.JSC$13216_networkPrefetchRequest_,w,{fragmentsRequested:A,timeBeforeNextVideo:S});H.prefetchResponseCacheKey_=H.JSC$13216_networkPrefetchRequest_.getCacheKeyForEndpoint(w);gC9(H);H.prefetchRequestPromise_.then(function(J){H.storePrefetchedDataCallback_(H.prefetchResponseCacheKey_,J);if(_.E("web_prefetch_preload_video")&&
A.length===1&&A[0]==="pl"&&J&&!J.playerAds&&!J.adPlacements){var c=_.e(w,_.Ox),Y=c!=null,M={raw_player_response:J,watch_endpoint:c};(J=_.JA().resolve(Y?_.uXd:_.qp))&&w&&J.then(function(m){Y&&_.E("web_queue_preload_video")?(M.prefer_gapless=!0,m.queueNextVideo(M)):m.preloadVideoByPlayerVars(M)})}})}})},NP=function(H,C,S,w){this.prefetchEndpointProvider_=H;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=C;this.prefetchJobConfig_=S;this.JSC$13216_networkPrefetchRequest_=w;this.prefetchResponseCacheKey_=null};
NP.prototype.enqueue=function(){this.triggerPromise_||(JCR(this,Lx9(this)),_.PI(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
NP.prototype.resolve=function(){this.cancel()};
NP.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.");gC9(this)};
NP.prototype.onVisibilityChange_=function(){var H=this;_.Lp(_.blZ)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){H.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||JCR(this,Lx9(this))};
var FUO=function(H,C,S,w,A){C&&(C==null?0:C.videoId)&&S&&S.entries&&_.E("kevlar_enable_shorts_prefetch_in_sequence")&&(Ifo(H),C=S.entries.map(function(J){var c;return(c=_.e(J.command,_.Ox))==null?void 0:c.videoId}).indexOf(C.videoId),S=S.entries[C+1],S!=null&&S.command&&!_.e(S==null?void 0:S.command,_.F7)&&(w=new Kxo([S.command],new pfO(w,_.rT,1),null,"shorts",!1),H.pendingPrefetchJob_=new NP(new DIq(w.autonavEndpoints),function(){return!1},w,new yY(A)),H.pendingPrefetchJob_.enqueue()))},Z5O=function(H,
C,S,w,A,J){var c=_.l3.getInstance();
if(!_.E("block_all_player_prefetch_requests")){Ifo(H);var Y=!!S.getPlaylistId(),M=S.getVideoData().isLive&&S.getVideoData().hasProgressBarBoundaries;if((c.getState()==2||Y||M)&&(!S.getVideoData().isLive||M)){c={inPlaylist:Y,videoDuration:S.getDuration(),makeUpNextTrigger:function(W){return new R8O(S,_.rT,W)},
makePlaybackTrigger:function(W){return new pfO(S,_.rT,W)}};
var m=t9R(C,c);m&&(H.pendingPrefetchJob_=new NP(m.isInPlaylist?new BR9(A):new DIq(m.autonavEndpoints),function(W,y){y=new nC_(Pzj[m.pageType].pageFragments,Pzj[m.pageType].prefetchedFragments,y);return _.yjb(y)?(H.prefetchCache_.set(W,y),!0):!1},m,new mG(w,S,J,A)),H.pendingPrefetchJob_.enqueue())}}},cCj=function(){var H=_.Nb();
H.signals.parkOrScheduleJob(function(){var C=H.storage;if(C.storage)if(V99(C)){var S=C.getPlaylistId();C=oCt(C);S=!!S&&C!==void 0}else C.clear(),S=!1;else S=!1;if(S){S=H.pageManager.isOnWatch();a:{var w=H.storage;if(w.storage&&V99(w)&&(C=w.getPlaylistId(),w=oCt(w),C&&w!==void 0)){S={recoverPlaylistCommand:{listId:C,index:w,openMiniplayer:!S,openListPanel:S,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}S=void 0}S&&_.HW(H.JSC$12937_actionRouter,[S],null)}},0,"ma")},Ybt=function(H,C,S,w,A,J){var c=
_.y4(7111);
_.hd(H.JSC$18344_screenManager,c,J?_.Qh(J):void 0);_.rH(H.JSC$18344_screenManager,c,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:w,offlineId:C,offlineabilityFormatType:S,isDefaultFormatType:A==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:A}})},z6_=function(H,C,S,w,A){var J,c,Y,M,m;
return _.z(function(W){if(W.nextAddress==1)return W.yield(H.JSC$18344_playerApiPromise,2);J=W.yieldResult;Ybt(H,C,S,"OFFLINE_OBJECT_TYPE_PLAYLIST",w,A);if(Y=_.YHi[H.entityTypeMap.listEntityType])m={},c=(m[Y]={maximumDownloadQuality:(M=S)!=null?M:void 0},m);return W.yield(J.queueOfflineAction(C,H.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",c),0)})},MCK=function(H,C){var S,w,A,J;
return _.z(function(c){if(c.nextAddress==1)return c.yield(H.JSC$18344_persistentStorePromiseAccessor(),2);if(c.nextAddress!=3){S=c.yieldResult;if(!S)return _.Bn(new _.X0("PES is undefined")),c.return();w=_.ba(C,"downloadStatusEntity");return c.yield(lft(S,w,"downloadStatusEntity"),3)}A=c.yieldResult;return c.return((J=A)==null?void 0:J.downloadState)})},qbO=function(H,C,S,w,A){var J,c,Y,M,m,W;
return _.z(function(y){switch(y.nextAddress){case 1:return y.yield(H.JSC$18344_playerApiPromise,2);case 2:J=y.yieldResult;Ybt(H,C,S,"OFFLINE_OBJECT_TYPE_VIDEO",w,A);if(Y=_.YHi[H.entityTypeMap.singleEntityType])m={},c=(m[Y]={maximumDownloadQuality:(M=S)!=null?M:void 0},m);return y.yield(MCK(H,C),3);case 3:W=y.yieldResult;if(W!=="DOWNLOAD_STATE_USER_DELETED"){y.jumpTo(4);break}return y.yield(H.deleteVideo(C),4);case 4:return y.yield(J.queueOfflineAction(C,H.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
c),0)}})},TO_=function(H,C,S,w,A){return _.z(function(J){return J.nextAddress==1?J.yield(H.deleteVideo(C,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):J.yield(qbO(H,C,S,w,A),0)})},myi=function(H,C,S){var w,A;
return _.z(function(J){if(J.nextAddress==1)return J.yield(H.JSC$18344_playerApiPromise,2);w=J.yieldResult;A=_.ba(C,"mainVideoDownloadStateEntity");return J.yield(w.updateDownloadState(A,S),0)})},ch9=function(H){var C=_.JA().resolve(_.KY);
return _.z(function(S){if(S.nextAddress==1)return C.previousDownloadStateForVideo[H]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&C.previousDownloadStateForVideo[H]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?S.jumpTo(2):S.yield(C.resumeVideoDownload(H),2);if(S.nextAddress!=4)return S.yield(myi(C,H,C.previousDownloadStateForVideo[H]),4);delete C.previousDownloadStateForVideo[H];_.oT(S)})},FR9=function(H,C){var S;
return _.z(function(w){if(w.nextAddress==1)return w.yield(H.JSC$18344_playerApiPromise,2);S=w.yieldResult;return w.yield(S.queueOfflineAction(C,H.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},wQi=function(){var H=_.JA().resolve(_.KY),C,S;
return _.z(function(w){if(w.nextAddress==1)return w.yield(H.JSC$18344_playerApiPromise,2);if(w.nextAddress!=3)return C=w.yieldResult,S={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},w.yield(C.queueOfflineAction("!*$_ALL_ENTITIES_!*$",H.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",S),3);var A=H.JSC$18344_commandHandler,J=A.resolveCommand,c=_.fL("DELETING_ALL",void 0,"Downloads are being deleted");J.call(A,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.cF(c)}},
popupType:"TOAST"}});_.oT(w)})},WU3=function(H,C){var S,w,A,J,c,Y;
return _.z(function(M){if(M.nextAddress==1)return M.yield(H.JSC$18344_persistentStorePromiseAccessor(),2);if(M.nextAddress!=3)return S=M.yieldResult,S?M.yield(lft(S,_.p8,"downloadsPageViewConfigurationEntity"),3):(_.Bn(new _.X0("PES is undefined")),M.return());A=(w=M.yieldResult)!=null?w:{};Y=(c=(J=A)==null?void 0:J.downloadsUpsellBannerVisibility)!=null?c:{};return Y.visibleWithConnection?M.yield(C.refreshAllStaleEntities(0),0):M.jumpTo(0)})},yCR=function(H){var C,S;
return _.z(function(w){if(w.nextAddress==1)return w.yield(H.JSC$18344_prefStorage,2);C=w.yieldResult;return w.return((S=C)==null?void 0:S.get("sdois"))})},NOt=function(H){var C,S,w,A,J,c;
return _.z(function(Y){if(Y.nextAddress==1)return Y.yield(H.JSC$18344_persistentStorePromiseAccessor(),2);if(Y.nextAddress!=3){C=Y.yieldResult;if(!C)return _.Bn(new _.X0("PES is undefined")),Y.return();S=_.ba("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return Y.yield(lft(C,S,"settingEntity"),3)}w=Y.yieldResult;return Y.return((c=(A=w)==null?void 0:(J=A.settingOptionValue)==null?void 0:J.boolValue)!=null?c:!1)})},b5r=function(H,C){var S,w,A,J;
return _.z(function(c){switch(c.nextAddress){case 1:return((S=C)==null?void 0:S.formatType)===void 0?c.return():c.yield(H.JSC$18344_prefStorage,2);case 2:w=c.yieldResult;if(w===void 0)return c.return();if(((A=C)==null?void 0:A.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return c.yield(w.set("lmqf",C.formatType),8);if(((J=C)==null?void 0:J.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){c.jumpTo(0);break}return c.yield(w.set("lmqf",C.formatType),6);case 6:return c.yield(w.set("lmqflst",
Math.floor((0,_.Zt)())),0);case 8:return c.yield(w.remove("lmqflst"),0)}})},EvO=function(H){var C,S;
return _.z(function(w){switch(w.nextAddress){case 1:return w.yield(H.JSC$18344_prefStorage,2);case 2:C=w.yieldResult;if(!C){w.jumpTo(3);break}return w.yield(C.get("lmqflst"),4);case 4:if(S=w.yieldResult,S!==void 0)return w.return(S);case 3:return w.return(0)}})},e69=function(H){var C,S;
return _.z(function(w){switch(w.nextAddress){case 1:return w.yield(H.JSC$18344_prefStorage,2);case 2:C=w.yieldResult;if(C===void 0){w.jumpTo(3);break}return w.yield(C.get("lmqf"),4);case 4:if(S=w.yieldResult,S!==void 0)return w.return(S);case 3:return w.return("SD")}})},yh9=function(H,C,S){var w,A,J,c,Y,M,m,W;
_.z(function(y){switch(y.nextAddress){case 1:return y.yield(b5r(H,(w=C)==null?void 0:w.actionParams),2);case 2:A=C.playlistId;if(!A)return y.return();if(C.action==="ACTION_ADD")return((c=C.actionParams)==null?0:c.formatType)?y.yield(z6_(H,A,C.actionParams.formatType,(W=C.actionParams)==null?void 0:W.settingsAction,S),0):y.yield(H.offlineWebClientEligibility,14);if(C.action==="ACTION_REMOVE_WITH_PROMPT"){var N=H.JSC$18344_commandHandler,b=N.resolveCommand,u=_.rh("INNERTUBE_CLIENT_NAME");var O=u===
"WEB_REMIX"?_.fL("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.fL("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var d=u==="WEB_REMIX"?[_.fL("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];u=u==="WEB_REMIX"?_.fL("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.fL("DELETE",void 0,"Delete");var p=_.fL("CANCEL",void 0,"Cancel");O=oRr(O,d,u,p,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:A});b.call(N,{openPopupAction:O});return y.return()}if(C.action===
"ACTION_REMOVE")return y.yield(FR9(H,A),0);if(C.action!=="ACTION_SYNC"){y.jumpTo(0);break}return y.yield(H.JSC$18344_playerApiPromise,9);case 9:return J=y.yieldResult,y.yield(J.queueOfflineAction(A,H.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return Y=y.yieldResult,y.yield(e69(H),15);case 15:return M=y.yieldResult,y.yield(EvO(H),16);case 16:m=y.yieldResult,C.onAddCommand&&H.JSC$18344_commandHandler.resolveCommand(C.onAddCommand,{form:{preferredFormatType:M,
offlineWebClientEligibility:Y,lastOfflineQualitySettingsSavedMs:m.toString()}}),y.jumpTo(0)}})},mNi=function(H,C,S){var w,A,J,c,Y,M,m,W,y,N,b,u,O,d;
_.z(function(p){switch(p.nextAddress){case 1:return p.yield(b5r(H,(w=C)==null?void 0:w.actionParams),2);case 2:A=C.videoId;if(!A)return p.return();if(C.action==="ACTION_REMOVE_WITH_PROMPT"){var k=H.JSC$18344_commandHandler,R=k.resolveCommand,L=_.rh("INNERTUBE_CLIENT_NAME");var t=L==="WEB_REMIX"?_.fL("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.fL("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var g=L==="WEB_REMIX"?[_.fL("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,"This track won't be available to listen offline.")]:
[];L=L==="WEB_REMIX"?_.fL("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.fL("DELETE",void 0,"Delete");var ii=_.fL("CANCEL",void 0,"Cancel");t=oRr(t,g,L,ii,{signal:"DELETE_DOWNLOAD",targetId:A});R.call(k,{openPopupAction:t});return p.return()}if(C.action==="ACTION_ADD")return((N=C.actionParams)==null?0:N.formatType)?p.yield(qbO(H,A,C.actionParams.formatType,(d=C.actionParams)==null?void 0:d.settingsAction,S),0):p.yield(H.offlineWebClientEligibility,23);if(C.action==="ACTION_RETRY")return p.yield(e69(H),
19);if(C.action==="ACTION_PAUSE")return p.yield(H.pauseVideoDownload(A),0);if(C.action==="ACTION_RESUME")return p.yield(H.resumeVideoDownload(A),0);if(C.action!=="ACTION_REMOVE"){p.jumpTo(0);break}return p.yield(MCK(H,A),13);case 13:return J=p.yieldResult,H.previousDownloadStateForVideo[A]=(c=J)!=null?c:"DOWNLOAD_STATE_UNKNOWN",p.yield(myi(H,A,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(H.previousDownloadStateForVideo[A]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&H.previousDownloadStateForVideo[A]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){p.jumpTo(15);break}return p.yield(H.pauseVideoDownload(A),15);case 15:k=_.fL("DELETED_VIDEO",void 0,"Video deleted from downloads.");R=_.fL("UNDO_ACTION",void 0,"Undo");t=_.fL("CLOSE",void 0,"Close");Y={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.cF(k),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.cF(R),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:A}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:k+" "+R}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:A}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:t}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};H.JSC$18344_commandHandler.resolveCommand(Y);
p.jumpTo(0);break;case 19:M=p.yieldResult;M==="UNKNOWN_FORMAT_TYPE"&&(M="SD");m="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((W=C.actionParams)==null?0:W.formatType)M=C.actionParams.formatType,m=(y=C.actionParams)==null?void 0:y.settingsAction;return p.yield(TO_(H,A,M,m,S),20);case 20:return p.return();case 23:return b=p.yieldResult,p.yield(e69(H),24);case 24:return u=p.yieldResult,p.yield(EvO(H),25);case 25:O=p.yieldResult,C.onAddCommand&&H.JSC$18344_commandHandler.resolveCommand(C.onAddCommand,
{form:{preferredFormatType:u,offlineWebClientEligibility:b,lastOfflineQualitySettingsSavedMs:O.toString()}}),p.jumpTo(0)}})},uFt=function(H,C){var S,w,A,J,c,Y,M;
return _.z(function(m){if(m.nextAddress==1)return m.yield(H.JSC$18344_persistentStorePromiseAccessor(),2);S=m.yieldResult;if(!S)return _.Bn(new _.X0("PES is undefined")),m.return();if((w=C)==null||!w.settingItemId)return m.return();A=C;J=A.settingItemId;c=A.boolValue;Y=_.ba(J,"settingEntity");M={key:Y,settingOptionValue:{boolValue:c}};return m.yield(vCj(S,M),0)})},Gt9=function(H,C){var S,w,A,J,c,Y,M;
return _.z(function(m){switch(m.nextAddress){case 1:return m.yield(H.JSC$18344_prefStorage,2);case 2:return S=m.yieldResult,w=_.VN(),m.yield(H.JSC$18344_persistentStorePromiseAccessor(),3);case 3:return A=m.yieldResult,S?A?m.yield(S.get("sdois"),4):(_.Bn(new _.X0("PES is undefined")),m.return()):(_.Bn(new _.X0("prefStorage is undefined")),m.return());case 4:J=m.yieldResult;Y=(c=C)==null?void 0:c.boolValue;Y===void 0||_.E("kevlar_set_sd_enabled_flag_killswitch")||_.ok(0,197,!0);J===void 0&&Y===void 0&&
(Y=!1);if(Y===void 0){m.jumpTo(0);break}return m.yield(S.set("sdois",Y),6);case 6:return _.E("kevlar_set_sd_enabled_flag_killswitch")||(_.ok(0,196,Y),w.save()),M={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:Y},m.yield(uFt(H,M),0)}})},fh3=function(H,C,S){var w,A,J,c,Y;
return _.z(function(M){switch(M.nextAddress){case 1:return M.yield(yCR(H),2);case 2:return w=M.yieldResult,M.yield(Gt9(H,S),3);case 3:return M.yield(yCR(H),4);case 4:return A=M.yieldResult,J=A!==w,M.yield(NOt(H),5);case 5:c=M.yieldResult&&!_.E("kevlar_modern_downloads_page");if((Y=!A&&!c)||J)return M.yield(C.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);M.jumpTo(0)}})},zMt=function(){var H=_.JA().resolve(_.KY),
C;
_.z(function(S){switch(S.nextAddress){case 1:return S.yield(H.JSC$18344_playerApiPromise,2);case 2:C=S.yieldResult;if(!_.E("kevlar_force_refresh_smart_downloads")){S.jumpTo(3);break}return S.yield(C.refreshAllStaleEntities(0),4);case 4:return S.return();case 3:return S.yield(C.refreshAllStaleEntities(),5);case 5:return S.yield(fh3(H,C),6);case 6:if(_.E("enable_download_pep_for_premium_countries_web"))return S.yield(WU3(H,C),0);S.jumpTo(0)}})},bNo=function(H,C){var S,w;
_.z(function(A){switch(A.nextAddress){case 1:return A.yield(H.JSC$18344_playerApiPromise,2);case 2:S=A.yieldResult;switch((w=C)==null?void 0:w.settingItemId){case "SMART_DOWNLOADS_ENABLED":return A.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return A.jumpTo(4)}A.jumpTo(0);break;case 3:return A.yield(fh3(H,S,C),6);case 6:A.jumpTo(0);break;case 4:return A.yield(uFt(H,C),7);case 7:A.jumpTo(0)}})},vv9=function(H,C){var S,w,A;
return _.z(function(J){if(J.nextAddress==1)return J.yield(H.JSC$18344_persistentStorePromiseAccessor(),2);if(J.nextAddress!=3){S=J.yieldResult;if(!S)return _.Bn(new _.X0("PES is undefined")),J.return(!1);if(!C)return J.return(!1);w=_.ba(C,"mainVideoEntity");return J.yield(lft(S,w,"mainVideoEntity"),3)}A=J.yieldResult;return J.return(A!==void 0)})},eMi=function(H){var C=_.JA().resolve(_.KY),S,w,A,J,c,Y,M,m,W,y,N;
_.z(function(b){switch(b.nextAddress){case 1:return b.yield(C.JSC$18344_playerApiPromise,2);case 2:S=b.yieldResult;A=(w=H)==null?void 0:w.actions;if(!A)return b.return();J=_.Z(A);c=J.next();case 3:if(c.done){b.jumpTo(0);break}Y=c.value;m=M=void 0;if(!(((M=Y)==null?0:M.entityKey)&&((m=Y)==null?0:m.actionType))){b.jumpTo(4);break}W=_.Tn(Y.entityKey);y=W.entityId;N=W.entityType;return b.yield(S.queueOfflineAction(y,N,Y.actionType),4);case 4:c=J.next(),b.jumpTo(3)}})},lhi=function(H,C){var S,w,A,J,c;
return _.z(function(Y){if(Y.nextAddress==1)return Y.yield(H.JSC$18344_prefStorage,2);if(Y.nextAddress!=3)return(S=Y.yieldResult)?Y.yield(S.get("psi"),3):Y.return();w=Y.yieldResult;c={isPaused:C,lastSyncTimestamp:(J=(A=w)==null?void 0:A.lastSyncTimestamp)!=null?J:"0"};return Y.yield(S.set("psi",c),0)})},fBo=function(H){var C=_.JA().resolve(_.KY),S,w,A,J,c,Y,M,m;
return _.z(function(W){switch(W.nextAddress){case 1:return W.yield(C.JSC$18344_playerApiPromise,2);case 2:S=W.yieldResult;A=((w=H)==null?void 0:w.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((Y=H)==null?void 0:Y.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":J="!*$_ALL_ENTITIES_!*$";c="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return W.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return W.jumpTo(4)}W.jumpTo(5);break;case 3:return W.yield(lhi(C,A),6);case 6:W.jumpTo(5);break;case 4:return W.yield(vv9(C,(M=H)==null?void 0:M.videoId),7);case 7:W.yieldResult&&(J=(m=H)==null?void 0:m.videoId,c="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");W.jumpTo(5);break;case 5:if(J&&c)return W.yield(S.queueOfflineAction(J,"videoPlaybackPositionEntity",c),0);W.jumpTo(0)}})},VCt=function(H,C){var S;
C!==1||((S=H.currentPersistentToast)==null?0:S.isOpened())?H.openToast():H.currentPersistentToast=void 0},ovr=function(H,C){var S;
return(S=H.transitionTasksMap.get(C))!=null?S:[]},O5r=function(H,C){var S=[];
H.elementTasksMap.forEach(function(w){(w=w.get(C))&&S.push(w)});
return S},XuO=function(H,C,S,w,A){A=A===void 0?{}:A;
var J=C.defaultViewTransitionOptions;return Object.assign({},J,A,{beforeTransition:function(){w.forEach(function(m){m.beforeTransition()});
var c;(c=J.beforeTransition)==null||c.call(J);var Y,M;(M=(Y=A).beforeTransition)==null||M.call(Y);S.forEach(function(m){m.beforeTransition()})},
afterTransition:function(){w.forEach(function(m){m.afterTransition()});
var c;(c=J.afterTransition)==null||c.call(J);var Y,M;(M=(Y=A).afterTransition)==null||M.call(Y);S.forEach(function(m){m.afterTransition()})},
ignoredErrors:H.config.ignoredErrors})},Qsj=function(H,C,S){H.transitionTasksMap.has(C)?H.transitionTasksMap.get(C).push(S):(H=new _.X0("Transition task registered for unknown transition type",C),_.nC(H))},dy9=function(H,C,S){if(H.transitionTasksMap.has(C)){var w=H.transitionTasksMap.get(C).filter(function(A){return A!==S});
H.transitionTasksMap.set(C,w)}},PPq=function(H,C){var S=ovr(H,C);
S=_.Z(S);for(var w=S.next();!w.done;w=S.next())w=w.value,w.runOnce&&dy9(H,C,w);H.elementTasksMap.forEach(function(A,J){A.forEach(function(c,Y){c.runOnce&&C===Y&&(A.delete(Y),A.size===0&&H.elementTasksMap.delete(J))})})},$yj=function(H,C,S){var w,A,J,c,Y,M,m,W,y;
_.z(function(N){if(N.nextAddress==1){if(H.config.disableAllTransitions)return N.return(C());if((w=S)==null||!w.transitionType)return N.return(_.MIp(C,Object.assign({},(A=S)==null?void 0:A.viewTransitionOptions,{ignoredErrors:H.config.ignoredErrors})));J=S;c=J.transitionType;Y=J.viewTransitionOptions;M=H.config.transitionConfigs.get(c);if(!M)return N.return(C());m=ovr(H,c);W=O5r(H,c);y=_.MIp(C,XuO(H,M,m,W,Y));return N.yield(y,2)}PPq(H,c);_.oT(N)})},puO=function(){var H,C,S,w;
return _.z(function(A){if(A.nextAddress==1)return H=navigator,(C=H.storage)!=null&&C.persisted?A.yield((S=H.storage)==null?void 0:S.persisted(),2):A.return("PERSISTED_STATE_NOT_SUPPORTED");w=A.yieldResult;return A.return(w?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},kto=function(){var H,C,S,w;
return _.z(function(A){if(A.nextAddress==1)return H=navigator,(C=H.storage)!=null&&C.persist?A.yield((S=H.storage)==null?void 0:S.persist(),2):A.return("PERSISTED_STATE_NOT_SUPPORTED");w=A.yieldResult;return A.return(w?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},h6p=function(){var H,C;
return _.z(function(S){switch(S.nextAddress){case 1:return H="PERSISTED_STATE_NOT_SUPPORTED",_.en(S,2),S.yield(puO(),4);case 4:H=S.yieldResult;if(H!=="PERSISTED_STATE_NOT_GRANTED"){S.jumpTo(5);break}return S.yield(kto(),6);case 6:H=S.yieldResult;case 5:_.xB(S,3);break;case 2:C=_.Vx(S),C instanceof Error&&_.nC(C);case 3:return _.kI("persistentStorageStateChecked",{persistedState:H}),S.return(H)}})},nvt=function(H,C){var S=[],w=!1;
C=_.Z(C);for(var A=C.next();!A.done;A=C.next()){A=H.moduleRegistry[A.value];var J=void 0,c=void 0;((J=A)==null?0:J.isFetching)&&((c=A)==null?0:c.resolver)?(S.push(A.resolver.promise),w=!0):(A=new _.N5,A.resolve(void 0),S.push(A.promise))}return w?Promise.all(S):void 0},rCj=function(H,C,S){if(H.isAnyTransitionEnabled){var w={beforeTransition:function(){S(!0);
C.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){C.style.viewTransitionName&&(C.style.viewTransitionName="",S(!1))}};
Qsj(H.viewTransitionCoordinator,"slide",w);Qsj(H.viewTransitionCoordinator,"lockup-to-watch",w);Qsj(H.viewTransitionCoordinator,"watch-next-appears",w);Qsj(H.viewTransitionCoordinator,"learning-journey",w)}},BOi=function(H,C){H.isBrowseTransitionEnabled?$yj(H.viewTransitionCoordinator,C,{transitionType:"slide"}):(C(),Promise.resolve())},Dy9=function(H,C){H.isLockupToWatchTransitionEnabled?$yj(H.viewTransitionCoordinator,C,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){H.registeredLockupThumbnail=void 0;H.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(C(),Promise.resolve())},KUO=function(H,C){H.isLockupToWatchTransitionEnabled?$yj(H.viewTransitionCoordinator,C,{transitionType:"watch-next-appears"}):(C(),Promise.resolve())},tCR=function(H,C){H.isLearningJourneyTransitionEnabled?$yj(H.viewTransitionCoordinator,C,{transitionType:"learning-journey"}):(C(),Promise.resolve())},LUi=function(H,C,S){if(H.isInitialized()){var w=
Ck(S),A=w==="watch";
w=w==="shorts";var J=Ck(C)==="watch";if(A)J||(H.backgroundPageData=C),H.watchPipMode&&J||H.deactivate(S.endpoint);else if(w){if(Ck(C)!=="shorts"){var c;(c=H.getPlayerElement())==null||c.pause()}}else J&&!H.watchPipMode&&(XH_(C,S)?(H.watchWhileMode&&_.GRO(H,!1),_.yaO(H,C)):H.isMiniplayerActive()&&H.watchWhileMode&&H.deactivate());J&&_.v1j(H);H.shortsPipMode&&!w&&(window.focus(),H.deactivate());if(H.pictureInPictureEnabled())if(w&&H.shortsPipEnabled||A&&H.watchPipEnabled)_.r3Z(H.handleMediaSessionPipActivation);
else if(!H.isMiniplayerActive()&&(H.shortsPipEnabled||H.watchPipEnabled)&&window.documentPictureInPicture&&_.li()&&_.EEZ("Chromium")>=120){H=_.n8E().mediaSession;try{H.setActionHandler("enterpictureinpicture",null)}catch(Y){}}}},gv_=function(H,C){var S,w;
_.z(function(A){if(A.nextAddress==1){if(!H||!H.navigationEndpoint)return A.return();_.LO().lockupActivation=!0;var J;C?J=_.sx(_.fL("QUEUE",void 0,"Queue")):J=H.longBylineText;w=(S=J)&&H.title?{miniplayerTitle:H.title,miniplayerSubtitle:S,playlistData:null}:void 0;return A.yield(_.QA7(_.JA().resolve(_.Df),H.navigationEndpoint,!0,w),2)}_.LO().userActivation=!0;_.oT(A)})},heO=function(H,C){var S,w,A,J,c,Y;
_.z(function(M){if(M.nextAddress==1){S=_.e(C,_.oVM);if(!S||!S.listId)return M.return();H.index=S.index||H.index||0;w=H.response&&H.response.playingVideoId||void 0;return M.yield(_.rUY(H.JSC$12937_playlistNetworkManager,S.listId,H.index,w),2)}A=M.yieldResult;if(!A)return M.return();J=A.playlistId;c=A.playlistPanelRenderer;!H.queueProxy&&J&&c&&J.startsWith("TLPQ")&&(H.queueProxy=new _.Ye(H.JSC$12937_playlistNetworkManager,J,H.setPlaylistData.bind(H),H.clearQueue.bind(H),_.pmW(c),H.storage));if(S.openMiniplayer&&
(Y=_.khE(c))&&!H.pageManager.isOnWatch()){var m=Y,W=S.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";H.isMiniplayerActive()?H.openToast(m):gv_(m,W)}H.setPlaylistData(J,c,A.autoplayRenderer);_.oT(M)})},$sO=function(H,C){var S=_.Nb();
S.index===void 0&&(S.index=0);S.temporaryItems.push.apply(S.temporaryItems,_.k$(H));if((C.videoId||C.videoIds)&&S.index!==void 0&&C.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!S.queueProxy){var w=[];if(S.response){var A=_.JA().resolve(_.Df).isMiniplayerActive();if(S.response.playlistPanelRenderer&&S.response.playlistId&&!S.response.playlistId.startsWith("TLPQ")){if(S.pageManager.isOnWatch()||A)w=_.pmW(S.response.playlistPanelRenderer)}else S.response.playingVideoId&&!C.openMiniplayer?w.push(S.response.playingVideoId):
A&&S.response.playingVideoId&&C.openMiniplayer&&w.push(S.response.playingVideoId)}S.queueProxy=new _.Ye(S.JSC$12937_playlistNetworkManager,"",S.setPlaylistData.bind(S),S.clearQueue.bind(S),w,S.storage);S.queueProxy.JSC$12883_setCurrentIndex(S.index)}S.queueProxy.addVideos(C.videoIds||[C.videoId],C)}Odq(S,H);S.response&&_.bo(S,_.Ee(S,S.response.autoplayRenderer));S.pageManager.isOnWatch()?S.isMiniplayerActive()&&S.openToast(H[0]):(H=H[0],C=C.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",S.isMiniplayerActive()?
S.openToast(H):gv_(H,C))},UyK=function(H){var C=_.IV(H);
if(C=="object"||C=="array"){if(typeof H.clone==="function")return H.clone();if(typeof Map!=="undefined"&&H instanceof Map)return new Map(H);if(typeof Set!=="undefined"&&H instanceof Set)return new Set(H);C=C=="array"?[]:{};for(var S in H)C[S]=UyK(H[S]);return C}return H},b1=function(H,C){return _.y_u(_.eC(H,C,void 0,_.Eb))},Eo=function(H,C){return _.wi(_.eC(H,C,void 0,_.Eb))},e5=function(H,C){return _.p7E(_.eC(H,C,void 0,_.Eb))},u1=function(H,C){return _.eC(H,C,void 0,_.Eb,_.gU)},R6p=_.cV(function(H,
C,S){if(H.nextWireType_!==0)return!1;
_.YD(C,S,_.K5(H.decoder_,_.miw));return!0},_.T7,_.Rs),Ihj=_.cV(function(H,C,S,w){if(H.nextWireType_!==0)return!1;
_.vu(C,S,w,_.K5(H.decoder_,_.miw));return!0},_.T7,_.Rs),aht=_.cV(function(H,C,S){if(H.nextWireType_!==1)return!1;
var w=H.decoder_;H=_.L5(w);w=_.L5(w);H=_.h_(H,w);_.YD(C,S,H);return!0},_.PBE,_.YBD),xyO=_.cV(function(H,C,S){if(H.nextWireType_!==5)return!1;
_.YD(C,S,_.L5(H.decoder_));return!0},function(H,C,S){C=_.EMp(C);
C!=null&&(_.z7(H,S,5),_.Mr(H.encoder_,C))},_.Ff0),Hi_=_.cV(function(H,C,S){if(H.nextWireType_!==2)return!1;
H=_.USW(H);_.YD(C,S,H===_.oV()?void 0:H);return!0},_.nD7,_.qBV),iip=_.l47(function(H,C,S){if(H.nextWireType_!==0&&H.nextWireType_!==2)return!1;
C=_.C9(C,C[_.A_]|0,S);H.nextWireType_==2?_.ROw(H,Zdi,C):C.push(_.tC(H.decoder_));return!0},function(H,C,S){C=_.vDw(_.wi,C,!0);
if(C!=null&&C.length){S=_.SBE(H,S);for(var w=0;w<C.length;w++)_.XVw(H.encoder_,C[w]);_.sfE(H,S)}},_.TbD),C7i=_.cV(function(H,C,S,w){if(H.nextWireType_!==0)return!1;
_.vu(C,S,w,_.tC(H.decoder_));return!0},_.BPE,_.TbD),Sv3=function(H){return H.previousElementSibling!==void 0?H.previousElementSibling:_.otP(H.previousSibling,!1)},soK=function(H,C){var S=[];
for(C=C||0;C<H.length;C+=2)_.ycM(H[C],H[C+1],S);return S.join("&")},jo9=function(H,C){var S=arguments.length==2?soK(arguments[1],0):soK(arguments,1);
return _.WTd(H,S)},wY3=_.Et(_.kQ),w8O=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(w8O,_.Jc);w8O.prototype.getTypeName=function(){return _.$v(this,1).split("/").pop()};
w8O.prototype.getValue=function(){var H=_.eC(this,2);if(Array.isArray(H)||H instanceof _.Jc)throw Error("W");return _.f5(this,2)};
var UT_=function(){var H=_.T5();this.JSC$9930_streamzService=H;H.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.qx("channel_type"))};
UT_.prototype.increment=function(H){this.JSC$9930_streamzService.JSC$9800_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",H)};
var RK_=function(){var H=_.T5();this.JSC$9933_streamzService=H;H.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.qx("channel_type"))};
RK_.prototype.increment=function(H){this.JSC$9933_streamzService.JSC$9800_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",H)};
var a2t=function(){var H=_.T5();this.JSC$9936_streamzService=H;H.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.qx("channel_type"))};
a2t.prototype.increment=function(H){this.JSC$9936_streamzService.JSC$9800_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",H)};
var I23=function(){var H=_.T5();this.JSC$9939_streamzService=H;H.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
I23.prototype.increment=function(){this.JSC$9939_streamzService.JSC$9800_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var xTi=function(){var H=_.T5();this.JSC$9942_streamzService=H;H.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.qx("channel_type"),_.qx("error_type"))};
xTi.prototype.increment=function(H,C){this.JSC$9942_streamzService.JSC$9800_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",H,C)};
var H7O=function(){var H=_.T5();this.JSC$9945_streamzService=H;H.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
H7O.prototype.increment=function(){this.JSC$9945_streamzService.JSC$9800_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var i7O=function(){var H=_.T5();this.JSC$9948_streamzService=H;H.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
i7O.prototype.increment=function(){this.JSC$9948_streamzService.JSC$9800_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var tAO=function(){var H=_.T5();this.JSC$9954_streamzService=H;H.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
tAO.prototype.increment=function(){this.JSC$9954_streamzService.JSC$9800_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var Al3=function(H){return H.getCount&&typeof H.getCount=="function"?H.getCount():_.Dw(H)||typeof H==="string"?H.length:_.hb.getCount(H)},JlO=function(H,C){if(typeof H.every=="function")return H.every(C,void 0);
if(_.Dw(H)||typeof H==="string")return Array.prototype.every.call(H,C,void 0);for(var S=_.yEM(H),w=_.ML(H),A=w.length,J=0;J<A;J++)if(!C.call(void 0,w[J],S&&S[J],H))return!1;return!0},FJ_=function(H,C,S,w){var A=new _.jR(null);
H&&_.qL(A,H);C&&_.Ta(A,C);S&&_.mh(A,S);w&&_.Ww(A,w);return A},Zip=function(){var H=_.tA&&_.T6(_.QM7,10)>=0,C;
if(C=_.CG6)C=_.T6(_.X97,10)>=0;var S=_.yK&&_.T6(_.QM7,85)>=0;return _.qy||H||C||S},clO=function(H){var C=_.x9b(H);
return C&&Zip()?-H.scrollLeft:C&&_.L6(H,"overflowX")!="visible"?H.scrollWidth-H.clientWidth-H.scrollLeft:H.scrollLeft},Yvr=function(H,C){C=Math.max(C,0);
_.x9b(H)?Zip()?H.scrollLeft=-C:H.scrollLeft=H.scrollWidth-C-H.clientWidth:H.scrollLeft=C},gRK=0,x3K=!1;
sC.prototype.set=function(H){this.relativeTimeStart_=H};
sC.prototype.reset=function(){this.set(_.FF())};
sC.prototype.get=function(){return this.relativeTimeStart_};
var z5t=null,MMi=function(){z5t||(z5t=new sC)},qvO=function(){z5t||(z5t=new sC)};
_.Zh(qvO,MMi);_.F=i8o.prototype;_.F.JSC$11369_buffer_="";_.F.set=function(H){this.JSC$11369_buffer_=""+H};
_.F.append=function(H,C,S){this.JSC$11369_buffer_+=String(H);if(C!=null)for(var w=1;w<arguments.length;w++)this.JSC$11369_buffer_+=arguments[w];return this};
_.F.clear=function(){this.JSC$11369_buffer_=""};
_.F.getLength=function(){return this.JSC$11369_buffer_.length};
_.F.toString=function(){return this.JSC$11369_buffer_};
var T13=!1,JfK=function(H){_.CU.call(this,H.message||H.description||H.name);this.isMissing=H instanceof jq;this.isTimeout=H instanceof _.nI&&H.errorCode=="net.timeout";this.isCanceled=H instanceof _.KN};
_.G(JfK,_.CU);JfK.prototype.name="BiscottiError";var jq=function(){_.CU.call(this,"Biscotti ID is missing from server")};
_.G(jq,_.CU);jq.prototype.name="BiscottiMissingError";var wI=null,VJ9=function(){try{var H=_.gh("yt.ads.biscotti.getId_");return H?H():nRr()}catch(C){return _.kj(C)}},meo=function(H,C){return _.Md({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:H,command:C}})},WJj=function(H){return _.Md({type:"SET_GUIDE_IS_EXPANDED",
payload:H})},yl9=function(H){return _.Md({type:"SET_ONLINE_STATUS",
payload:H})},N1K=function(H,C){return _.Md({type:"SET_TRANSCRIPTION_STATE",
payload:{high:H,low:C}})},bio=function(H){return _.Md({type:"SET_OVERLAY_STATE",
payload:H})},ESO=0,e5O=function(H,C,S){var w=this;
this.priority=C;this.delay=S;this.jobId=0;this.completionCallback=_.Q5;this.wrappedJob=function(){H();w.completionCallback()};
this.id=++ESO};
e5O.prototype.enqueue=function(H){this.completionCallback=H;this.jobId=_.rT.addJob(this.wrappedJob,this.priority,this.delay)};
var Gk=function(){_.bM.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.G(Gk,_.bM);Gk.prototype.addJob=function(H,C,S){H=new e5O(H,C,S);this.taskIdToTask.set(H.id,H);this.isActive?uiO(this,H):this.suspendedTasks.add(H);return H.id};
var uiO=function(H,C){H.scheduledTasks.add(C);C.enqueue(function(){H.scheduledTasks.delete(C)})};
Gk.prototype.cancelJob=function(H){(H=this.taskIdToTask.get(H))&&(this.scheduledTasks.delete(H)?_.rT.cancelJob(H.jobId):this.suspendedTasks.delete(H))};
Gk.prototype.pause=function(){var H=this;this.isActive=!1;this.scheduledTasks.forEach(function(C){_.rT.cancelJob(C.jobId);H.suspendedTasks.add(C)});
this.scheduledTasks.clear()};
Gk.prototype.start=function(){var H=this;this.isActive=!0;this.suspendedTasks.forEach(function(C){uiO(H,C)});
this.suspendedTasks.clear()};
Gk.prototype.reset=function(){this.scheduledTasks.forEach(function(H){_.rT.cancelJob(H.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var fQ=function(H,C){this.JSC$13063_networkService_=H;this.pageRequestPromise=C};
fQ.prototype.fetchData=function(H){Glr(this,this.JSC$13063_networkService_.fetchData(H))};
fQ.prototype.postData=function(H,C){Glr(this,this.JSC$13063_networkService_.postData(H,C))};
fQ.prototype.requestDataForServiceEndpoint=function(H,C){Glr(this,this.JSC$13063_networkService_.requestDataForServiceEndpoint(H,C))};
var Glr=function(H,C){C.then(H.pageRequestPromise.onSuccess,H.pageRequestPromise.onFailure,H.pageRequestPromise)};
fQ.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var vc=function(H){this.buildNetworkRequest_=H;this.pendingRequests_=new Set};
vc.prototype.reset=function(){this.pendingRequests_.forEach(function(H){H.cancel()});
this.pendingRequests_.clear()};
vc.prototype.fetchData=function(H){var C=fs_(this);C.fetchData(H);return C.pageRequestPromise};
vc.prototype.postData=function(H,C){var S=fs_(this);S.postData(H,C);return S.pageRequestPromise};
vc.prototype.requestDataForServiceEndpoint=function(H,C){var S=fs_(this);S.requestDataForServiceEndpoint(H,C);return S.pageRequestPromise};
var fs_=function(H){var C=H.buildNetworkRequest_();H.pendingRequests_.add(C);var S=function(){H.pendingRequests_.delete(C)};
C.pageRequestPromise.then(S,S);return C},vSr=function(H){var C=new Gk;
this.JSC$13070_networkService_=H;this.JSC$13070_taskManager_=C;this.JSC$13070_networkManager_=new vc(this.networkRequestFactory_.bind(this))};
_.F=vSr.prototype;_.F.networkRequestFactory_=function(){return new fQ(this.JSC$13070_networkService_,new _.p$(this.JSC$13070_taskManager_))};
_.F.reset=function(){this.JSC$13070_taskManager_.reset();this.JSC$13070_networkManager_.reset()};
_.F.start=function(){this.JSC$13070_taskManager_.start()};
_.F.pause=function(){this.JSC$13070_taskManager_.pause()};
_.F.getTaskManager=function(){return this.JSC$13070_taskManager_};
_.F.getNetworkManager=function(){return this.JSC$13070_networkManager_};
var yfr=null,E69=[],AX=0,F8=0,JX=null,lsr=!1,Ze=null,u_r=void 0,YL=function(H){this.token=H};
YL.getInstance=function(){var H;return _.z(function(C){if(C.nextAddress==1)return C.yield(_.JO(),2);H=C.yieldResult;if(!H)return C.return();YL.instance||(YL.instance=new YL(H));return C.return(YL.instance)})};
var XFr=function(H){var C;return _.z(function(S){if(S.nextAddress==1)return S.yield(VpO(H.token),2);C=S.yieldResult;return S.return(C.clear("resource-manifest-assets"))})},cx=function(H){this.token=H};
cx.getInstance=function(){var H;return _.z(function(C){if(C.nextAddress==1)return C.yield(_.JO(),2);H=C.yieldResult;if(!H)return C.return();cx.instance||(cx.instance=new cx(H));return C.return(cx.instance)})};
var o6_=function(H){var C;return _.z(function(S){if(S.nextAddress==1)return S.yield(VpO(H.token),2);C=S.yieldResult;return S.yield(C.clear("auth"),0)})},xdR=!1,VMp=function(H){_.CU.call(this,H)};
_.G(VMp,_.Xzd);var njq=function(){var H=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return H?parseInt(H[1],10):0},oSR=function(H){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+H)!=-1||document.currentScript.src.indexOf("&"+H)!=-1)},Oip=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},tUR=function(H){H.length?X8t(H.shift(),function(){tUR(H)}):BCq()},gjq=function(H){return"chrome-extension://"+H+"/cast_sender.js"},X8t=function(H,
C,S){var w=document.createElement("script");
w.onerror=C;S&&(w.onload=S);_.JY(w,_.Pl(H));(document.head||document.documentElement).appendChild(w)},Qoi=function(){var H=njq(),C=[];
if(H>1){var S=H-1;C.push("//www.gstatic.com/eureka/clank/"+H+"/cast_sender.js");C.push("//www.gstatic.com/eureka/clank/"+S+"/cast_sender.js")}return C},BCq=function(){var H=Oip();
H&&H(!1,"No cast extension found")},Knr=function(){if(dep){var H=2,C=Oip(),S=function(){H--;
H==0&&C&&C(!0)};
window.__onGCastApiAvailable=S;X8t("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",BCq,S)}},rxt=function(){Knr();
var H=Qoi();H.push("//www.gstatic.com/eureka/clank/cast_sender.js");tUR(H)},DWK=function(){Knr();
var H=Qoi();H.push.apply(H,_.k$(Ln9.map(gjq)));H.push("//www.gstatic.com/eureka/clank/cast_sender.js");tUR(H)},dep=oSR("loadCastFramework")||oSR("loadCastApplicationFramework"),Ln9=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var P7_=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(P7_,_.Jc);var $eo=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G($eo,_.Jc);var p8_=function(){var H=new $eo;return _.Bu(H,1,3)};var l1=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(l1,_.Jc);var nFj=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(nFj,_.Jc);var klK=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(klK,_.Jc);klK.prototype.getToken=function(){return _.$v(this,1)};
klK.prototype.setToken=function(H){return _.RJ(this,1,H)};
var k53=function(H){return _.IO(H,3,_.E_,_.cl())},hu_=function(H){return _.IO(H,6,_.E_,_.cl())};var VY=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(VY,_.Jc);VY.prototype.getToken=function(){return _.zf(this,klK,2)};
VY.prototype.setToken=function(H){return _.f9(this,2,H)};
VY.prototype.getName=function(){return _.$v(this,6)};
var h5O=_.Et(VY);var nSi=function(H,C,S){this.requestMessage=H;this.methodDescriptor=C;this.metadata=S};
nSi.prototype.getMetadata=function(){return this.metadata};var rlt=function(H,C){C=C===void 0?{}:C;this.responseMessage=H;this.metadata=C;this.status=null};
rlt.prototype.getMetadata=function(){return this.metadata};
rlt.prototype.getStatus=function(){return this.status};var ot=function(H,C,S,w,A){this.name=H;this.methodType="unary";this.requestType=C;this.responseType=S;this.requestSerializeFn=w;this.responseDeserializeFn=A},B1t=function(H,C,S){S=S===void 0?{}:S;
return new nSi(C,H,S)};
ot.prototype.getName=function(){return this.name};var Oo=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(Oo,_.Jc);Oo.prototype.getHeader=function(){return _.zf(this,l1,1)};
Oo.prototype.setHeader=function(H){return _.f9(this,1,H)};
Oo.prototype.hasHeader=function(){return _.uP(this,l1,1)};var DeK=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(DeK,_.Jc);var KJp=new ot("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",Oo,DeK,function(H){return H.serialize()},_.Et(DeK));var Xq=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(Xq,_.Jc);Xq.prototype.getHeader=function(){return _.zf(this,l1,1)};
Xq.prototype.setHeader=function(H){return _.f9(this,1,H)};
Xq.prototype.hasHeader=function(){return _.uP(this,l1,1)};var tMR=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(tMR,_.Jc);var LJi=new ot("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",Xq,tMR,function(H){return H.serialize()},_.Et(tMR));var QY=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(QY,_.Jc);QY.prototype.getHeader=function(){return _.zf(this,l1,1)};
QY.prototype.setHeader=function(H){return _.f9(this,1,H)};
QY.prototype.hasHeader=function(){return _.uP(this,l1,1)};var gS_=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(gS_,_.Jc);gS_.prototype.getLink=function(){return _.zf(this,VY,1)};var UeO=new ot("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",QY,gS_,function(H){return H.serialize()},_.Et(gS_));var dD=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(dD,_.Jc);dD.prototype.getHeader=function(){return _.zf(this,l1,1)};
dD.prototype.setHeader=function(H){return _.f9(this,1,H)};
dD.prototype.hasHeader=function(){return _.uP(this,l1,1)};var R5O=new ot("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",dD,VY,function(H){return H.serialize()},h5O);var Isi=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(Isi,_.Jc);var as3=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(as3,_.Jc);as3.prototype.getUrl=function(){return _.$v(this,2)};
as3.prototype.setUrl=function(H){return _.RJ(this,2,H)};var xei=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(xei,_.Jc);var Hh_=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(Hh_,_.Jc);var ihO=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(ihO,_.Jc);var aoo=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(aoo,_.Jc);var IoK=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(IoK,_.Jc);var Cwo=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(Cwo,_.Jc);var jZO=_.Et(Cwo);var SwR=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(SwR,_.Jc);var sYo=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(sYo,_.Jc);_.F=sYo.prototype;_.F.getHeader=function(){return _.zf(this,l1,1)};
_.F.setHeader=function(H){return _.f9(this,1,H)};
_.F.hasHeader=function(){return _.uP(this,l1,1)};
_.F.getCompletionUrl=function(){return _.$v(this,6)};
_.F.getDeviceId=function(){return _.$v(this,11)};var jYq=new ot("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",sYo,Cwo,function(H){return H.serialize()},jZO);var wC9=new Set(["SAPISIDHASH","APISIDHASH"]);var ASp=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(ASp,_.Jc);ASp.prototype.getMessage=function(){return _.$v(this,2)};
var JSi=_.Et(ASp);var Pc=function(H,C){this.xhrNodeReadableStream_=H.nodeReadableStream;this.grpcResponseDeserializeFn_=C;this.JSC$19346_xhr_=H.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$19346_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&Fai(this)},qwr=function(H,C){var S=new Zhr;
_.PI(H.JSC$19346_xhr_,"complete",function(){if(H.JSC$19346_xhr_.isSuccess()){var w=H.JSC$19346_xhr_.getResponseText();var A;if(A=C)A=H.JSC$19346_xhr_,A.JSC$9809_xhr_&&A.isComplete()?(A=A.JSC$9809_xhr_.getResponseHeader("Content-Type"),A=A===null?void 0:A):A=void 0,A=A==="text/plain";if(A){if(!atob)throw Error("ck");w=atob(w)}try{var J=H.grpcResponseDeserializeFn_(w)}catch(Y){$q(H,G5R(new _.DN(13,"Error when deserializing response data; error: "+Y+(", response: "+w)),S));return}w=_.saV(H.JSC$19346_xhr_.getStatus());
cSt(H,Yw9(H));w==0?zwi(H,J):$q(H,G5R(new _.DN(w,"Xhr succeeded but the status code is not 200"),S))}else{w=H.JSC$19346_xhr_.getResponseText();J=Yw9(H);if(w){var c=MQ_(H,w);w=c.code;A=c.details;c=c.metadata}else w=2,A="Rpc failed due to xhr error. uri: "+String(H.JSC$19346_xhr_.JSC$9809_lastUri_)+", error code: "+H.JSC$19346_xhr_.JSC$9809_lastErrorCode_+", error: "+H.JSC$19346_xhr_.getLastError(),c=J;cSt(H,J);$q(H,G5R(new _.DN(w,A,c),S))}})},Fai=function(H){H.xhrNodeReadableStream_.on("data",function(C){if("1"in
C){var S=C["1"];
try{var w=H.grpcResponseDeserializeFn_(S)}catch(A){$q(H,new _.DN(13,"Error when deserializing response data; error: "+A+(", response: "+S)))}w&&zwi(H,w)}if("2"in C)for(C=MQ_(H,C["2"]),S=0;S<H.onStatusCallbacks_.length;S++)H.onStatusCallbacks_[S](C)});
H.xhrNodeReadableStream_.on("end",function(){cSt(H,Yw9(H));for(var C=0;C<H.onEndCallbacks_.length;C++)H.onEndCallbacks_[C]()});
H.xhrNodeReadableStream_.on("error",function(){if(H.JSC$19346_onErrorCallbacks_.length!=0){var C=H.JSC$19346_xhr_.JSC$9809_lastErrorCode_;C!==0||H.JSC$19346_xhr_.isSuccess()||(C=6);var S=-1;switch(C){case 0:var w=2;break;case 7:w=10;break;case 8:w=4;break;case 6:S=H.JSC$19346_xhr_.getStatus();w=_.saV(S);break;default:w=14}cSt(H,Yw9(H));C=_.I9M(C)+", error: "+H.JSC$19346_xhr_.getLastError();S!=-1&&(C+=", http status code: "+S);$q(H,new _.DN(w,C))}})},Yw9=function(H){var C={},S=z8t(H.JSC$19346_xhr_);
Object.keys(S).forEach(function(w){C[w]=S[w]});
return C},MQ_=function(H,C){var S=2,w={};
try{var A=JSi(C);S=_.YJ(A,1);var J=A.getMessage();_.Za(A,w8O,3,_.cl()).length&&(w["grpc-web-status-details-bin"]=C)}catch(c){H.JSC$19346_xhr_&&H.JSC$19346_xhr_.getStatus()===404?(S=5,J="Not Found: "+String(H.JSC$19346_xhr_.JSC$9809_lastUri_)):(S=14,J="Unable to parse RpcStatus: "+c)}return{code:S,details:J,metadata:w}};
Pc.prototype.on=function(H,C){H=="data"?this.onDataCallbacks_.push(C):H=="metadata"?this.onMetadataCallbacks_.push(C):H=="status"?this.onStatusCallbacks_.push(C):H=="end"?this.onEndCallbacks_.push(C):H=="error"&&this.JSC$19346_onErrorCallbacks_.push(C);return this};
var pQ=function(H,C){C=H.indexOf(C);C>-1&&H.splice(C,1)};
Pc.prototype.removeListener=function(H,C){H=="data"?pQ(this.onDataCallbacks_,C):H=="metadata"?pQ(this.onMetadataCallbacks_,C):H=="status"?pQ(this.onStatusCallbacks_,C):H=="end"?pQ(this.onEndCallbacks_,C):H=="error"&&pQ(this.JSC$19346_onErrorCallbacks_,C);return this};
Pc.prototype.cancel=function(){this.JSC$19346_xhr_.abort()};
var zwi=function(H,C){for(var S=0;S<H.onDataCallbacks_.length;S++)H.onDataCallbacks_[S](C)},cSt=function(H,C){for(var S=0;S<H.onMetadataCallbacks_.length;S++)H.onMetadataCallbacks_[S](C)},$q=function(H,C){for(var S=0;S<H.JSC$19346_onErrorCallbacks_.length;S++)H.JSC$19346_onErrorCallbacks_[S](C)};
Pc.prototype.cancel=Pc.prototype.cancel;Pc.prototype.removeListener=Pc.prototype.removeListener;Pc.prototype.on=Pc.prototype.on;var Zhr=function(){var H=Error.call(this);this.message=H.message;"stack"in H&&(this.stack=H.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.G(Zhr,Error);var kq=function(H){this.JSC$19355_worker_=H.worker||null;this.JSC$19355_streamBinaryChunks_=H.streamBinaryChunks||!1;this.JSC$19355_credentialsMode_=void 0};
_.Zh(kq,_.wAD);kq.prototype.createInstance=function(){var H=new h5(this.JSC$19355_worker_,this.JSC$19355_streamBinaryChunks_);this.JSC$19355_credentialsMode_&&H.setCredentialsMode(this.JSC$19355_credentialsMode_);return H};
kq.prototype.setCredentialsMode=function(H){this.JSC$19355_credentialsMode_=H};
var h5=function(H,C){_.ph.call(this);this.JSC$19359_worker_=H;this.JSC$19359_streamBinaryChunks_=C;this.JSC$19359_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$19359_responseHeaders_=null;this.JSC$19359_method_="GET";this.JSC$19359_url_="";this.inProgress_=!1;this.JSC$19359_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.Zh(h5,_.ph);h5.prototype.open=function(H,C){if(this.readyState!=0)throw this.abort(),Error("dk");this.JSC$19359_method_=H;this.JSC$19359_url_=C;this.readyState=1;nQ(this)};
h5.prototype.send=function(H){if(this.readyState!=1)throw this.abort(),Error("ek");if(this.abortController_.signal.aborted)throw this.abort(),Error("fk");this.inProgress_=!0;var C={headers:this.requestHeaders_,method:this.JSC$19359_method_,credentials:this.JSC$19359_credentialsMode_,cache:void 0,signal:this.abortController_.signal};H&&(C.body=H);(this.JSC$19359_worker_||_.s$).fetch(new Request(this.JSC$19359_url_,C)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
h5.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,rD(this));this.readyState=0};
h5.prototype.handleResponse_=function(H){if(this.inProgress_&&(this.fetchResponse_=H,this.JSC$19359_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19359_responseHeaders_=H.headers,this.readyState=2,nQ(this)),this.inProgress_&&(this.readyState=3,nQ(this),this.inProgress_)))if(this.responseType==="arraybuffer")H.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.s$.ReadableStream!==
"undefined"&&"body"in H){this.currentReader_=H.body.getReader();if(this.JSC$19359_streamBinaryChunks_){if(this.responseType)throw Error("gk");this.response=[]}else this.response=this.responseText="",this.JSC$19359_textDecoder_=new TextDecoder;TL_(this)}else H.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var TL_=function(H){H.currentReader_.read().then(H.handleDataFromStream_.bind(H)).catch(H.handleSendFailure_.bind(H))};
h5.prototype.handleDataFromStream_=function(H){if(this.inProgress_){if(this.JSC$19359_streamBinaryChunks_&&H.value)this.response.push(H.value);else if(!this.JSC$19359_streamBinaryChunks_){var C=H.value?H.value:new Uint8Array(0);if(C=this.JSC$19359_textDecoder_.decode(C,{stream:!H.done}))this.response=this.responseText+=C}H.done?rD(this):nQ(this);this.readyState==3&&TL_(this)}};
h5.prototype.handleResponseText_=function(H){this.inProgress_&&(this.response=this.responseText=H,rD(this))};
h5.prototype.handleResponseArrayBuffer_=function(H){this.inProgress_&&(this.response=H,rD(this))};
h5.prototype.handleSendFailure_=function(){this.inProgress_&&rD(this)};
var rD=function(H){H.readyState=4;H.fetchResponse_=null;H.currentReader_=null;H.JSC$19359_textDecoder_=null;nQ(H)};
h5.prototype.setRequestHeader=function(H,C){this.requestHeaders_.append(H,C)};
h5.prototype.getResponseHeader=function(H){return this.JSC$19359_responseHeaders_?this.JSC$19359_responseHeaders_.get(H.toLowerCase())||"":""};
h5.prototype.getAllResponseHeaders=function(){if(!this.JSC$19359_responseHeaders_)return"";for(var H=[],C=this.JSC$19359_responseHeaders_.entries(),S=C.next();!S.done;)S=S.value,H.push(S[0]+": "+S[1]),S=C.next();return H.join("\r\n")};
h5.prototype.setCredentialsMode=function(H){this.JSC$19359_credentialsMode_=H};
var nQ=function(H){H.onreadystatechange&&H.onreadystatechange.call(H)};
Object.defineProperty(h5.prototype,"withCredentials",{get:function(){return this.JSC$19359_credentialsMode_==="include"},
set:function(H){this.setCredentialsMode(H?"include":"same-origin")}});var mRi=function(H){var C="";_.hb.forEach(H,function(S,w){C+=w;C+=":";C+=S;C+="\r\n"});
return C},Wa_=function(H,C,S){if(_.hb.isEmpty(S))return H;
S=mRi(S);if(typeof H==="string")return _.SQ(H,_.R6(C),S);_.xJ(H,C,S);return H};var ySR=function(){this.isInputValid_=!0;this.JSC$19365_streamPos_=0;this.leftoverInput_=""};
ySR.prototype.isInputValid=function(){return this.isInputValid_};
ySR.prototype.decode=function(H){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("hk`"+this.JSC$19365_streamPos_+"`stream already broken`"+H);this.leftoverInput_+=H;H=Math.floor(this.leftoverInput_.length/4);if(H==0)return null;try{var C=_.FM$(this.leftoverInput_.slice(0,H*4))}catch(S){throw C=this.leftoverInput_,H=S.message,this.isInputValid_=!1,Error("hk`"+this.JSC$19365_streamPos_+"`"+H+"`"+C);}this.JSC$19365_streamPos_+=H*4;this.leftoverInput_=this.leftoverInput_.slice(H*4);return C};var q8=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19368_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
q8.prototype.isInputValid=function(){return this.state_!=3};
var Bc=function(H,C,S,w){H.state_=3;H.errorMessage_="The stream is broken @"+H.JSC$19368_streamPos_+"/"+S+". Error: "+w+". With input:\n"+C;throw Error(H.errorMessage_);};
q8.prototype.acceptsBinaryInput=function(){return!0};
q8.prototype.parse=function(H){function C(M){M&128&&Bc(J,c,Y,"invalid tag");(M&7)!=2&&Bc(J,c,Y,"invalid wire type");J.tag_=M>>>3;J.tag_!=1&&J.tag_!=2&&J.tag_!=15&&Bc(J,c,Y,"unexpected tag");J.state_=1;J.length_=0;J.countLengthBytes_=0}
function S(M){J.countLengthBytes_++;J.countLengthBytes_==5&&M&240&&Bc(J,c,Y,"message length too long");J.length_|=(M&127)<<(J.countLengthBytes_-1)*7;M&128||(J.state_=2,J.countMessageBytes_=0,typeof Uint8Array!=="undefined"?J.messageBuffer_=new Uint8Array(J.length_):J.messageBuffer_=Array(J.length_),J.length_==0&&A())}
function w(M){J.messageBuffer_[J.countMessageBytes_++]=M;J.countMessageBytes_==J.length_&&A()}
function A(){if(J.tag_<15){var M={};M[J.tag_]=J.messageBuffer_;J.result_.push(M)}J.state_=0}
for(var J=this,c=H instanceof Array?H:new Uint8Array(H),Y=0;Y<c.length;){switch(J.state_){case 3:Bc(J,c,Y,"stream already broken");break;case 0:C(c[Y]);break;case 1:S(c[Y]);break;case 2:w(c[Y]);break;default:throw Error("ik`"+J.state_);}J.JSC$19368_streamPos_++;Y++}H=J.result_;J.result_=[];return H.length>0?H:null};var vFi=function(){this.errorMessage_=null;this.JSC$19371_streamPos_=0;this.base64Decoder_=new ySR;this.pbParser_=new q8};
vFi.prototype.isInputValid=function(){return this.errorMessage_===null};
var NLr=function(H,C,S){H.errorMessage_="The stream is broken @"+H.JSC$19371_streamPos_+". Error: "+S+". With input:\n"+C;throw Error(H.errorMessage_);};
vFi.prototype.acceptsBinaryInput=function(){return!1};
vFi.prototype.parse=function(H){this.errorMessage_!==null&&NLr(this,H,"stream already broken");var C=null;try{var S=this.base64Decoder_.decode(H);C=S===null?null:this.pbParser_.parse(S)}catch(w){NLr(this,H,w.message)}this.JSC$19371_streamPos_+=H.length;return C};var fo9=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19374_streamPos_=0;this.result_=[];this.statusParsed_=!1};
fo9.prototype.isInputValid=function(){return this.errorMessage_===null};
fo9.prototype.acceptsBinaryInput=function(){return!1};
fo9.prototype.parse=function(H){function C(M){J.state_=6;J.errorMessage_="The stream is broken @"+J.JSC$19374_streamPos_+"/"+c+". Error: "+M+". With input:\n";throw Error(J.errorMessage_);}
function S(){J.jsonStreamParser_=new _.fl({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function w(M){if(M)for(var m=0;m<M.length;m++){var W={};W[1]=M[m];J.result_.push(W)}}
function A(M){if(M){(J.statusParsed_||M.length>1)&&C("extra status: "+M);J.statusParsed_=!0;var m={};m[2]=M[0];J.result_.push(m)}}
for(var J=this,c=0;c<H.length;){var Y;if(Y=J.state_!==2){a:{for(;c<H.length;){if(!_.GM(H[c])){Y=!0;break a}c++;J.JSC$19374_streamPos_++}Y=!1}Y=!Y}if(Y)return null;switch(J.state_){case 6:C("stream already broken");break;case 0:H[c]==="["?(J.state_=1,c++,J.JSC$19374_streamPos_++):C("unexpected input token");break;case 1:H[c]==="["?(J.state_=2,S()):H[c]===","||H.slice(c,c+5)=="null,"?J.state_=3:H[c]==="]"?(J.state_=5,c++,J.JSC$19374_streamPos_++):C("unexpected input token");break;case 2:Y=J.jsonStreamParser_.parse(H.substring(c));
w(Y);J.jsonStreamParser_.done()?(J.state_=3,Y=J.jsonStreamParser_.JSC$11496_buffer_,J.JSC$19374_streamPos_+=H.length-c-Y.length,H=Y,c=0):(J.JSC$19374_streamPos_+=H.length-c,c=H.length);break;case 3:H[c]===","||H.slice(c,c+5)=="null,"?(J.state_=4,S(),J.jsonStreamParser_.parse("["),c+=H[c]===","?1:5,J.JSC$19374_streamPos_++):H[c]==="]"&&(J.state_=5,c++,J.JSC$19374_streamPos_++);break;case 4:Y=J.jsonStreamParser_.parse(H.substring(c));A(Y);J.jsonStreamParser_.done()?(J.state_=5,Y=J.jsonStreamParser_.JSC$11496_buffer_,
J.JSC$19374_streamPos_+=H.length-c-Y.length,H=Y,c=0):(J.JSC$19374_streamPos_+=H.length-c,c=H.length);break;case 5:C("extra input after stream end")}}return J.result_.length>0?(H=J.result_,J.result_=[],H):null};var bhq=function(H){this.JSC$19377_xhr_=H;this.JSC$19377_parser_=null;this.status_=this.JSC$19377_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19377_textDecoder_=null;this.JSC$19377_eventHandler_=new _.qQ(this);this.JSC$19377_eventHandler_.listen(this.JSC$19377_xhr_,"readystatechange",this.JSC$19379_readyStateChangeHandler_)},DI=function(H,C){H.status_!=C&&(H.status_=C,H.statusHandler_&&H.statusHandler_())},KQ=function(H){H.JSC$19377_eventHandler_.removeAll();
if(H.JSC$19377_xhr_){var C=H.JSC$19377_xhr_;H.JSC$19377_xhr_=null;C.abort();C.dispose()}};
bhq.prototype.getStatus=function(){return this.status_};
bhq.prototype.JSC$19379_readyStateChangeHandler_=function(H){H=H.target;try{if(H==this.JSC$19377_xhr_)a:{var C=_.Lh(this.JSC$19377_xhr_),S=this.JSC$19377_xhr_.JSC$9809_lastErrorCode_,w=this.JSC$19377_xhr_.getStatus(),A=this.JSC$19377_xhr_.getResponseText();H=[];if(this.JSC$19377_xhr_.getResponse()instanceof Array){var J=this.JSC$19377_xhr_.getResponse();J.length>0&&J[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,H=J)}if(!(C<3||C==3&&!A&&H.length==0))if(w=w==200||w==206,C==4&&(S==8?DI(this,
7):S==7?DI(this,8):w||DI(this,3)),this.JSC$19377_parser_||(this.JSC$19377_parser_=loO(this.JSC$19377_xhr_),this.JSC$19377_parser_==null&&DI(this,5)),this.status_>2)KQ(this);else{if(H.length>this.JSC$19377_pos_){var c=H.length;S=[];try{if(this.JSC$19377_parser_.acceptsBinaryInput())for(var Y=0;Y<c;Y++){var M=this.JSC$19377_parser_.parse(Array.from(H[Y]));M&&(S=S.concat(M))}else{M="";if(!this.JSC$19377_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("jk");this.JSC$19377_textDecoder_=new TextDecoder}for(Y=
0;Y<c;Y++)M+=this.JSC$19377_textDecoder_.decode(H[Y],{stream:C==4&&Y==c-1});S=this.JSC$19377_parser_.parse(M)}H.splice(0,c);S&&this.dataHandler_(S)}catch(W){DI(this,5);KQ(this);break a}}else if(A.length>this.JSC$19377_pos_){Y=A.slice(this.JSC$19377_pos_);this.JSC$19377_pos_=A.length;try{var m=this.JSC$19377_parser_.parse(Y);m!=null&&this.dataHandler_&&this.dataHandler_(m)}catch(W){DI(this,5);KQ(this);break a}}C==4?(A.length!=0||this.hasStreamingResponseData_?DI(this,2):DI(this,4),KQ(this)):DI(this,
1)}}}catch(W){DI(this,6),KQ(this)}};var Eci=function(H){H=this.xhrReader_=H;var C=(0,_.Xv)(this.onData_,this);H.dataHandler_=C;H=this.xhrReader_;C=(0,_.Xv)(this.onStatusChange_,this);H.statusHandler_=C;this.JSC$19381_callbackMap_={};this.callbackOnceMap_={}};
_.F=Eci.prototype;_.F.on=function(H,C){var S=this.JSC$19381_callbackMap_[H];S||(S=[],this.JSC$19381_callbackMap_[H]=S);S.push(C);return this};
_.F.addListener=function(H,C){this.on(H,C);return this};
_.F.removeListener=function(H,C){var S=this.JSC$19381_callbackMap_[H];S&&_.ru(S,C);(H=this.callbackOnceMap_[H])&&_.ru(H,C);return this};
_.F.once=function(H,C){var S=this.callbackOnceMap_[H];S||(S=[],this.callbackOnceMap_[H]=S);S.push(C);return this};
_.F.onData_=function(H){var C=this.JSC$19381_callbackMap_.data;C&&ewr(H,C);(C=this.callbackOnceMap_.data)&&ewr(H,C);this.callbackOnceMap_.data=[]};
var ewr=function(H,C){for(var S={},w=0;w<H.length;S={message$jscomp$1005:void 0},w++)S.message$jscomp$1005=H[w],C.forEach(function(A){return function(J){try{J(A.message$jscomp$1005)}catch(c){}}}(S))};
Eci.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:ucO(this,"readable");break;case 5:case 6:case 4:case 7:case 3:ucO(this,"error");break;case 8:ucO(this,"close");break;case 2:ucO(this,"end")}};
var ucO=function(H,C){var S=H.JSC$19381_callbackMap_[C];S&&S.forEach(function(w){try{w()}catch(A){}});
(S=H.callbackOnceMap_[C])&&S.forEach(function(w){w()});
H.callbackOnceMap_[C]=[]};var G4j=function(){var H={format:"jspb"};H=H===void 0?{}:H;this.suppressCorsPreflight=H.suppressCorsPreflight||_.gh("suppressCorsPreflight",H)||!1;this.withCredentials=H.withCredentials||_.gh("withCredentials",H)||!1;this.streamInterceptors=H.streamInterceptors||[];this.unaryInterceptors=H.unaryInterceptors||[];this.workerScope=H.workerScope;this.chunkedServerStreaming=H.useFetchDownloadStreams||!1},lNp=function(H,C,S,w,A,J){J=J===void 0?{}:J;
var c=C.substring(0,C.length-A.name.length),Y,M=(Y=J)==null?void 0:Y.signal;return fNt(function(m){return new Promise(function(W,y){if(M==null?0:M.aborted){var N=new _.DN(1,"Aborted");N.cause=M.reason;y(N)}else{var b={},u=vcj(H,m,c);u.on("error",function(O){return void y(O)});
u.on("metadata",function(O){b=O});
u.on("data",function(O){var d=b;d=d===void 0?{}:d;W(new rlt(O,d))});
M&&M.addEventListener("abort",function(){u.cancel();var O=new _.DN(1,"Aborted");O.cause=M.reason;y(O)})}})},H.unaryInterceptors).call(H,B1t(A,S,w)).then(function(m){return m.responseMessage})},t5=function(H,C,S,w,A,J){J=J===void 0?{}:J;
return lNp(H,C,S,w,A,J)};
G4j.prototype.serverStreaming=function(H,C,S,w){var A=this,J=H.substring(0,H.length-w.name.length);return VQ3(function(c){var Y=c.methodDescriptor,M=c.getMetadata(),m=oco(A,!1);M=Ohi(A,M,m,J+Y.getName());var W=XCj(m,Y.responseDeserializeFn,!0);c=Y.requestSerializeFn(c.requestMessage);m.send(M,"POST",c);return W},this.streamInterceptors).call(this,B1t(w,C,S))};
var vcj=function(H,C,S){var w=C.methodDescriptor,A=C.getMetadata(),J=oco(H,!0);H=Ohi(H,A,J,S+w.getName());S=XCj(J,w.responseDeserializeFn,!1);qwr(S,A["X-Goog-Encode-Response-If-Executable"]==="base64");C=w.requestSerializeFn(C.requestMessage);J.send(H,"POST",C);return S},oco=function(H,C){C=H.chunkedServerStreaming&&!C;
return H.workerScope||C?new _.tS(new kq({worker:H.workerScope,streamBinaryChunks:C})):new _.tS},Ohi=function(H,C,S,w){C["Content-Type"]="application/json+protobuf";
C["X-User-Agent"]="grpc-web-javascript/0.1";var A=C.Authorization;if(A&&wC9.has(A.split(" ")[0])||H.withCredentials)S.JSC$9809_withCredentials_=!0;if(H.suppressCorsPreflight)w=Wa_(w,"$httpHeaders",C);else for(H=_.Z(Object.keys(C)),A=H.next();!A.done;A=H.next())A=A.value,S.headers.set(A,C[A]);return w},XCj=function(H,C,S){if(S){S=new bhq(H);
var w=new Eci(S)}return new Pc({xhr:H,nodeReadableStream:w},C)},VQ3=function(H,C){return C.reduce(function(S,w){return function(A){return w.intercept(A,S)}},H)},fNt=function(H,C){return C.reduce(function(S,w){return function(A){return w.intercept(A,S)}},H)};var QYi=function(H){this.client_=new G4j;this.hostname_=H==void 0?H:H.replace(/\/+$/,"")};
_.F=QYi.prototype;_.F.JSC$19399_depositGoogleCredential=function(H,C,S){return t5(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",H,C||{},LJi,S)};
_.F.deleteLink=function(H,C,S){return t5(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",H,C||{},KJp,S)};
_.F.JSC$19399_finishOAuth=function(H,C,S){return t5(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",H,C||{},UeO,S)};
_.F.getLink=function(H,C,S){return t5(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",H,C||{},R5O,S)};
_.F.startLinkingSession=function(H,C,S){return t5(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",H,C||{},jYq,S)};var dRO=[0,_.SM,1,iip,[0,_.Al,[0,_.jM,-1]],[0,Hi_],[0,_.Zs,-1]];var Pwp=function(){this.storage=new Map},pCK=function(H,C,S,w,A){if(!H.storage.has(C))return null;
H=_.Z(H.storage.get(C));for(C=H.next();!C.done;C=H.next())if(C=C.value,!A||C.linkName===A)if(S&&C.scopes&&$R9(C.scopes,S)||w&&C.capabilities&&$R9(C.capabilities,w))return C;return null},k4t=function(H,C,S){if(!S)H.storage.delete(C);
else if(H.storage.has(C)){var w=H.storage.get(C).filter(function(A){return A.linkName!==S});
w.length>0?H.storage.set(C,w):H.storage.delete(C)}},$R9=function(H,C){C=_.Z(C);
for(var S=C.next();!S.done;S=C.next())if(!H.has(S.value))return!1;return!0};var hw_=function(){var H=_.rh("LINK_GAL_DOMAIN");this.alsDomain1p=_.rh("LINK_GAL_DOMAIN");this.alsDomain3p=H;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},ncO=function(H,C){H.apiKey=C;
return H};
hw_.prototype.build=function(){var H={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("kk");H.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("lk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("mk");H.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(H.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)H.apiKey=
this.apiKey,H.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("nk");H.oauthToken=this.oauthToken;H.alsDomain=this.alsDomain3p}H.clientXd3=this.clientXd3;H.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(H.authUser=this.authUser);this.bucket!==void 0&&(H.bucket=this.bucket);this.completionUrl!==void 0&&(H.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(H.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(H.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(H.locale=this.locale);H.loggerType=this.loggerType;H.clientEnvironment=this.clientEnvironment;H.colorScheme=this.colorScheme;H.showCloseOption=this.showCloseOption;return H};var TO=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(TO,_.Jc);var rSR=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(rSR,_.Jc);var BL3=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(BL3,_.Jc);var Wx=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(Wx,_.Jc);var DR3=function(H){return _.p5(H,1)};var Kat=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(Kat,_.Jc);var P4i=_.Et(Kat),me=[1,2,3,4,5];var Ofr=function(H){try{return P4i(H)}catch(C){return null}},tQ9=function(){},XUj=function(H,C){switch(_.lP(C,me)){case 4:return(C=_.n5(C,BL3,4,me))&&H.logStateTransition(_.p5(C,1)),!0;
case 5:return(C=_.n5(C,rSR,5,me))&&H.logInternalEvent(_.p5(C,1)),!0}return!1},$5i=function(H){switch(H){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.KP(H)}};var Vt9=function(H,C){var S=this;this.validator=H;this.messageListener=C;this.dismissCallback=function(){Lap(S,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19428_receiveMessage=function(w){w.type==="message"&&(w=w.event_,w!==null&&(new URL(S.iframe.src)).origin===w.origin&&S.validator(w.data,w.origin)&&!S.messageListener(w.data)&&(S.JSC$19428_resolveCb!==void 0&&S.JSC$19428_resolveCb(w.data),gcr(S)))}},d5_=function(H,C,S){H.uiHandler!==void 0&&Lap(H,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(w,A){H.JSC$19428_resolveCb=w;H.JSC$19428_rejectCb=A;H.iframe=document.createElement("iframe");_.He(H.iframe,C);H.uiHandler=S.displayContent(H.iframe,H.dismissCallback);_.PI(window,"message",H.JSC$19428_receiveMessage,!1,H)})},Lap=function(H,C){H.JSC$19428_rejectCb!==void 0&&H.JSC$19428_rejectCb(C);
gcr(H)},gcr=function(H){H.uiHandler!==void 0&&H.uiHandler.hideContent();
_.$c(window,"message",H.JSC$19428_receiveMessage,!1,H);H.JSC$19428_resolveCb=void 0;H.JSC$19428_rejectCb=void 0;H.uiHandler=void 0;H.iframe=void 0};var UR3=function(H){if(H===2){var C;H=((C=window)==null?0:C.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return H},Qw9=function(H){H=UR3(H);
switch(H){case 0:return"light";case 1:return"dark";default:_.KP(H)}};var oF3=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),Rw9=function(H,C){this.JSC$19440_linkingSession=H;this.noticeConfig=C;this.displayInfoMap=new Map;var S=new Map;if(_.uP(this.JSC$19440_linkingSession,xei,7))for(H=_.zf(this.JSC$19440_linkingSession,xei,7),H=_.Za(H,as3,1,_.cl()),H=_.Z(H),C=H.next();!C.done;C=H.next())C=C.value,S.set(_.p5(C,1),_.N4W(_.zf(C,_.MTi,3)));if(S.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){C=this.noticeConfig.enabledDataUsageNoticeUis;H=C.has(0)?S.get(1):void 0;C=C.has(1)?S.get(2):void 0;S=H!==void 0&&C!==void 0?S.get(3):void 0;var w=this.noticeConfig.nestedOrigins;var A=new Kat;var J=new TO;A=_.vV(A,2,me,J);J=new Kat;var c=new TO;J=_.vV(J,3,me,c);c=[];H!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:H,lastEvent:A,nestedOrigins:w}]),c.push({trustedUrl:H,lastEvent:A,nestedOrigins:w}));C!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:C,lastEvent:J,nestedOrigins:w}]),c.push({trustedUrl:C,lastEvent:J,nestedOrigins:w}));S!==void 0?this.displayInfoMap.set(3,[{trustedUrl:S,lastEvent:J,nestedOrigins:w}]):this.displayInfoMap.set(3,c)}};var INj=function(H){var C=new Pwp;this.galService=H;this.galCache=C};
INj.prototype.getLink=function(H){var C=H.serviceId;var S=H.scopes;var w=H.capabilities;var A=H.linkName;var J=this,c;return _.z(function(Y){if(w!==void 0&&S!==void 0)throw Error("ok");c=pCK(J.galCache,C,S,w,A);return c!==null?Y.return(c):Y.return(J.galService.getLink({serviceId:C,sessionId:Math.floor(Math.random()*2147483648),scopes:S,capabilities:w,linkName:A}).then(function(M){M=rGt(M);var m=J.galCache;m.storage.has(C)?m.storage.get(C).push(M):m.storage.set(C,[M]);return M}))})};
INj.prototype.deleteLink=function(H,C,S){var w=this;return _.z(function(A){k4t(w.galCache,H,S);return A.return(w.galService.deleteLink({serviceId:H,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:C,linkName:S}).then(function(){return!0}))})};var xRj=function(H,C){var S=this;this.validator=H;this.msgHandler=C;this.closedPopupTimeout=this.JSC$19462_rejectCb=this.JSC$19462_resolveCb=this.popup=null;this.JSC$19462_receiveMessage=function(w){if(w!==null&&(w=w.event_,w.source===S.popup)){var A=w.data;if(S.validator(A,w.origin)){var J;(J=S.msgHandler)!=null&&J.call(S,A)||(S.JSC$19462_resolveCb!==null&&S.JSC$19462_resolveCb(A),aN3(S))}}}};
xRj.prototype.open=function(H,C){var S=this;this.popup!==null&&HqR(this);return new Promise(function(w,A){S.JSC$19462_resolveCb=w;S.JSC$19462_rejectCb=A;S.popup=_.CM(window,H,"",C);_.PI(window,"message",S.JSC$19462_receiveMessage,!1,S);iqr(S)})};
var HqR=function(H,C){H.JSC$19462_rejectCb!==null&&H.JSC$19462_rejectCb(C);aN3(H)},aN3=function(H){H.closedPopupTimeout&&(H.closedPopupTimeout.cancel(),H.closedPopupTimeout=null);
H.popup&&H.popup.close();_.$c(window,"message",H.JSC$19462_receiveMessage,!1,H);H.popup=null;H.JSC$19462_resolveCb=null;H.JSC$19462_rejectCb=null},iqr=function(H){H.closedPopupTimeout=_.t2d(100).then(function(){H.popup?H.popup.closed?C0p(H):iqr(H):HqR(H,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},C0p=function(H){H.closedPopupTimeout=_.t2d(100).then(function(){HqR(H,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var S2K=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),sBp=function(H,C,S,w,A,J,c,Y,M,m){var W=this;this.serviceId=H;this.sessionId=C;this.galService=S;this.oauthDetails=w;this.galLogger=A;this.interactionMode=J;this.redirectServiceUrl=c;this.consentLanguageKeys=Y;this.dynamicUrlParameters=M;this.partnerConfigMinReadTimestamp=m;this.started=!1;this.JSC$19468_dataValidator=function(y,
N){var b=S2K.has(N);b||W.redirectServiceUrl===void 0||(b=W.redirectServiceUrl===N);return b?y.sentinel==="gdi":!1}};
sBp.prototype.complete=function(){var H=this,C;return _.z(function(S){if(H.interactionMode!==1)return S.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));C=N8.getRedirectStateFromUri();return C===null?S.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):S.return(jB9(H,C))})};
sBp.prototype.start=function(){var H=this,C;return _.z(function(S){if(H.started)return S.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.$v(H.oauthDetails,1))return S.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(H.interactionMode===1)return N8.setLocation(_.$v(H.oauthDetails,1)),S.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));H.started=!0;H.galLogger.logStateTransition(5);
C=N8.getPostMessagePopup(H.JSC$19468_dataValidator);return S.return(C.open(_.$v(H.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(w){H.started=!1;var A=H.galLogger;if((w==null?void 0:w.error)!==void 0)throw A.logInternalEvent(59),Error("pk");if((w==null?void 0:w.redirect_state)===void 0)throw A.logInternalEvent(131),Error("qk");return jB9(H,w.redirect_state)}).catch(function(w){H.started=
!1;
return w.errorCode!==void 0?{statusCode:w.errorCode,statusMessage:w.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var jB9=function(H,C){return _.z(function(S){return S.return(wwj(H.galService,{serviceId:H.serviceId,sessionId:H.sessionId,dynamicUrlParameters:H.dynamicUrlParameters,redirectState:C,consentLanguageKeys:H.consentLanguageKeys,partnerConfigMinReadTimestamp:H.partnerConfigMinReadTimestamp}).then(function(w){var A={statusCode:1,link:rGt(w.getLink())};koi(_.f5(w,3))!==void 0&&(A.callerState=koi(_.f5(w,3)));H.galLogger.logInternalEvent(134);return A}))})},N8={getPostMessagePopup:function(H){return new xRj(H)},
getRedirectStateFromUri:function(){var H=_.I7(N8.getLocation()).fragment_;return(new _.E2(H)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(H){_.W2$(window.location,_.D4(H))},
createOAuthFlow:function(H,C){return new sBp(H.serviceId,H.sessionId,H.galService,C,H.galLogger,H.interactionMode,H.redirectServiceUrl,H.consentLanguageKeys,H.dynamicUrlParameters,H.partnerConfigMinReadTimestamp)}};var Ay3=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(Ay3,_.Jc);var Jy9=_.Et(Ay3);var Fh9=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),Zqj=function(H,C,S,w,A,J,c,Y,M){var m=this;this.serviceId=H;this.sessionId=C;this.galService=S;this.gsiWebFlowDetails=w;this.colorScheme=A;this.showCloseOption=J;this.galLogger=c;this.interactionMode=Y;this.redirectServiceUrl=M;this.started=!1;this.JSC$19480_dataValidator=function(W,y){var N=Fh9.has(y);N||m.redirectServiceUrl===
void 0||(N=m.redirectServiceUrl===y);return N?W.sentinel==="gal":!1};
this.logEventProcessor=function(W){return W.result?(W=Ofr(W.result))?XUj(m.galLogger,W):!1:!1}};
Zqj.prototype.complete=function(){var H=this,C,S;return _.z(function(w){if(H.interactionMode!==1)return w.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));C=bl.getRedirectStateFromUri();if(C===void 0)return H.galLogger.JSC$19420_logErrorEvent(131),w.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return S=cy3(H,C),w.return(Y2j(H,S))}catch(A){return w.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
Zqj.prototype.start=function(){var H=this,C;return _.z(function(S){if(H.started)return S.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.$v(H.gsiWebFlowDetails,1))return S.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(H.interactionMode===1)return bl.setLocation(zL3(H,_.$v(H.gsiWebFlowDetails,1))),S.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
H.started=!0;C=bl.getPostMessagePopup(H.JSC$19480_dataValidator,H.logEventProcessor);return S.return(C.open(zL3(H,_.$v(H.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(w){H.started=!1;if((w==null?void 0:w.result)===void 0)throw H.galLogger.JSC$19420_logErrorEvent(131),Error("qk");w=cy3(H,w.result);return Y2j(H,w)}).catch(function(w){H.started=!1;
return w.errorCode!==void 0?{statusCode:w.errorCode,statusMessage:w.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var zL3=function(H,C){H=["result_channel",H.interactionMode===1?"2":"1","color_scheme",Qw9(H.colorScheme),"show_close_option",H.showCloseOption];return jo9(C,H)},Y2j=function(H,C){if(C!==null&&_.uP(C,Wx,2)){var S,w=C==null?void 0:(S=_.zf(C,Wx,2))==null?void 0:_.p5(S,2);
w&&H.galLogger.JSC$19420_logErrorEvent($5i(w));return DR3(_.zf(C,Wx,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 H.galService.getLink({serviceId:H.serviceId,sessionId:H.sessionId,consistencyKey:_.$v(C,1)}).then(function(A){A=rGt(A);H.galLogger.logInternalEvent(134);return{statusCode:1,link:A}})},cy3=function(H,C){C=Jy9(C);
if(!_.uP(C,Wx,2)&&_.$v(C,1)==="")throw H.galLogger.JSC$19420_logErrorEvent(5),Error("rk");return C},bl={getPostMessagePopup:function(H,C){return new xRj(H,C)},
getRedirectStateFromUri:function(){return _.a7(_.I7(bl.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(H){_.W2$(window.location,_.D4(H))},
createStreamlinedFlow:function(H,C){return new Zqj(H.serviceId,H.sessionId,H.galService,C,H.colorScheme,H.showCloseOption,H.galLogger,H.interactionMode,H.redirectServiceUrl)}};var Sdi=function(){var H=_.$dE("GAL");this.storage=H?new _.QD(H):null};
Sdi.prototype.getSession=function(H){if(this.storage!==null)try{var C=this.storage.get("SAVED_SESSION");if(C===void 0)return null;if(C.serviceId===H)return C}catch(S){}return null};var LQ=function(){};
_.G(LQ,tQ9);LQ.prototype.logStateTransition=function(){};
LQ.prototype.logInternalEvent=function(){};
LQ.prototype.JSC$19420_logErrorEvent=function(){};var MKO=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(MKO,_.Jc);MKO.prototype.getCompletionUrl=function(){return _.$v(this,15)};var gD=function(H,C,S,w,A,J){this.serviceId=H;this.environment=C;this.sessionId=S;this.colorSchemeSelected=w;this.colorThemeDisplayed=A;this.JSC$19493_transport=J;this.currentState=1};
_.G(gD,tQ9);gD.prototype.logStateTransition=function(H){var C=q2O(this);C=_.qz(C,3,this.currentState);C=_.qz(C,1,H);this.currentState=H;H=Y6t(1);this.dispatch(C,H)};
gD.prototype.logInternalEvent=function(H){H=Y6t(H);this.dispatch(q2O(this),H)};
gD.prototype.JSC$19420_logErrorEvent=function(H){var C=q2O(this);C=_.qz(C,1,10);H=Y6t(H);this.dispatch(C,H)};
var q2O=function(H){var C=new MKO;C=_.qz(C,1,H.currentState);C=_.XA(C,7,H.serviceId);var S,w;var A=((S=window)==null?0:(w=S.location)==null?0:w.href)?_.I7(window.location.href).JSC$10045_domain_:"NO_PACKAGE_NAME";S=_.XA(C,8,A);S=_.qz(S,6,H.environment);S=_.XA(S,5,"100");S=_.qz(S,11,H.colorSchemeSelected);return _.qz(S,12,H.colorThemeDisplayed)};
gD.prototype.dispatch=function(H,C){C===void 0&&(C=new _.G4);var S=C;H=H.serialize();S=_.XA(S,8,H);_.o8(S,12,this.sessionId);this.JSC$19493_transport.dispatch(C)};var Tap=function(H,C){this.loggerType=H;this.sessionIndex=C!=null?C:0},mLt;
Tap.prototype.create=function(H,C,S,w,A){switch(this.loggerType){case 0:return new LQ;case 1:return mLt||(mLt=(new _.yy(555,this.sessionIndex.toString())).build()),new gD(H,C,S,w,A,mLt);default:_.KP(this.loggerType,"unknown logger type")}};var EC=[6,2,3,1],FYO=new Map([[4,1],[1,6],[2,2],[3,3]]),tt_={statusCode:7,statusMessage:"Failed to create flow object"},ixi=function(H,C,S,w,A,J,c,Y,M,m){this.serviceId=H;this.sessionId=C;this.config=S;this.galService=w;this.JSC$19500_linkingSession=A;this.googleScopes=J;this.callerState=c;this.consentLanguageKeys=Y;this.dynamicUrlParameters=M;this.partnerConfigMinReadTimestamp=m;this.currentFlow=0;w=this.JSC$19500_linkingSession;A=new Set;_.uP(w,IoK,1)&&A.add(1);_.uP(w,ihO,2)&&_.uP(w,aoo,6)&&A.add(2);
_.uP(w,Hh_,3)&&_.uP(w,aoo,6)&&A.add(3);_.uP(w,Isi,4)&&A.add(6);this.supportedFlows=A;w=S.loggerType;A=S.clientEnvironment;a:{J=S.colorScheme;switch(J){case 0:J=1;break a;case 1:J=2;break a;case 2:J=3;break a;default:_.KP(J)}J=void 0}a:{c=S.colorScheme;c=UR3(c);switch(c){case 0:c=1;break a;case 1:c=2;break a;default:_.KP(c)}c=void 0}this.galLogger=(new Tap(w,S.authUser)).create(H,A,C,J,c)},yyp=function(H){return new Promise(function(C){var S,w,A,J,c,Y,M,m,W,y;
return _.z(function(N){switch(N.nextAddress){case 1:S=x5i(H.currentFlow,H.supportedFlows),w=!1,A=new Rw9(H.JSC$19500_linkingSession,H.config.dataUsageNoticeConfig);case 2:if(S===void 0){N.jumpTo(4);break}_.en(N,5);var b=A,u=S,O=void 0;w?u===1&&(O=b.displayInfoMap.get(2)):u===2||u===3?O=b.displayInfoMap.get(1):u===1&&(O=b.displayInfoMap.get(3));J=O?O:[];c=H.consentLanguageKeys;Y=_.Z(J);M=Y.next();case 7:if(M.done)return H.currentFlow=S,N.yield(gFq(Wh3(H,c)),11);m=M.value;return N.yield(pUO(m,H.config.dataUsageNoticeConfig.uiAdapter,
H.config.colorScheme,H.galLogger),10);case 10:W=N.yieldResult;if(W.statusCode!==1)return sZp(H.serviceId),H.currentFlow=0,C(yI({statusCode:W.statusCode,statusMessage:W.statusMessage},H.callerState)),N.return();W.consentLanguageKeys!==void 0&&(c=W.consentLanguageKeys);M=Y.next();N.jumpTo(7);break;case 11:y=N.yieldResult;if(y.statusCode!==10)return y.statusCode!==6&&(sZp(H.serviceId),H.currentFlow=0),y.statusCode!==1&&H.callerState!==void 0&&(y.callerState=H.callerState),C(y),N.return();_.xB(N,6);break;
case 5:_.Vx(N);case 6:S=x5i(H.currentFlow,H.supportedFlows);w=!0;N.jumpTo(2);break;case 4:sZp(H.serviceId),H.currentFlow=0,C(yI({statusCode:12,statusMessage:"Linking failed"},H.callerState)),_.oT(N)}})})},ArK=function(H,C,S){H.currentFlow=C;
return U53(Wh3(H,S)).then(function(w){return w.statusCode===10&&H.config.interactionMode===1&&x5i(H.currentFlow,H.supportedFlows)!==void 0?yyp(H):w})},Wh3=function(H,C){return{flowParams:{serviceId:H.serviceId,
sessionId:H.sessionId,galService:H.galService,galLogger:H.galLogger,interactionMode:H.config.interactionMode,redirectServiceUrl:H.config.redirectServiceUrl,colorScheme:H.config.colorScheme,consentLanguageKeys:C,dynamicUrlParameters:H.dynamicUrlParameters,showCloseOption:H.config.showCloseOption,partnerConfigMinReadTimestamp:H.partnerConfigMinReadTimestamp},currentFlow:H.currentFlow,config:H.config,session:H.JSC$19500_linkingSession,googleScopes:H.googleScopes,callerState:H.callerState}};var crR=function(H,C){this.config=H;this.galService=C.getService();this.JSC$19513_galRepository=C.JSC$19531_galRepository};
crR.prototype.getLink=function(H,C){return NaK(this,H,C)};
var NaK=function(H,C,S){return H.JSC$19513_galRepository.getLink({serviceId:C,scopes:void 0,capabilities:void 0,linkName:S}).then(function(w){return{statusCode:1,link:w}}).catch(function(w){return{statusCode:ZxO(w.code),
statusMessage:w.message}})};
crR.prototype.deleteLink=function(H,C){return this.JSC$19513_galRepository.deleteLink(H,this.config.accountLinkingEntryPoint,C).then(function(){return{statusCode:1}}).catch(function(S){return{statusCode:ZxO(S.code),
statusMessage:S.message}})};
crR.prototype.startLinkingSession=function(H){var C=H.serviceId;var S=H.sessionId;return CAK({serviceId:C,sessionId:S!==void 0?S:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:H.loginHint,callerState:H.callerState,consentLanguageKeys:H.consentLanguageKeys,linkName:H.linkName,dynamicUrlParameters:H.dynamicUrlParameters,partnerConfigMinReadTimestamp:H.partnerConfigMinReadTimestamp})};var Uo=function(H,C,S,w,A,J,c){this.apiKey=C;this.authUser=S;this.oauthToken=w;this.bucket=A;this.locale=J;this.galSdkEventHandler=c;if(w===void 0){if(C===void 0)throw Error("sk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new QYi(H)};
Uo.prototype.deleteLink=function(H){var C=H.serviceId;var S=H.sessionId;var w=H.accountLinkingEntryPoint;var A=H.linkName;var J=this,c;return _.z(function(Y){var M=(new Oo).setHeader(J.getHeader(S));var m=bqo({serviceId:C,linkName:A});M=_.f9(M,2,m);c=_.Bu(M,3,w);return Y.return(J.makeRequest(J.galServiceClient.deleteLink,c,[1,3],[2,4]))})};
var wwj=function(H,C){var S=C.serviceId;var w=C.sessionId;var A=C.dynamicUrlParameters;var J=C.redirectState;var c=C.consentLanguageKeys;var Y=C.partnerConfigMinReadTimestamp;var M;return _.z(function(m){var W=(new QY).setHeader(H.getHeader(w,A));W=_.RJ(W,2,S);M=_.RJ(W,4,J);c!==void 0&&_.RJ(M,5,c);Y!==void 0&&_.f9(M,6,Y);return m.return(H.makeRequest(H.galServiceClient.JSC$19399_finishOAuth,M,[1,3],[2,4]))})};
Uo.prototype.getLink=function(H){var C=H.serviceId;var S=H.sessionId;var w=H.scopes;var A=H.capabilities;var J=H.consistencyKey;var c=H.linkName;var Y=this,M;return _.z(function(m){var W=(new dD).setHeader(Y.getHeader(S)),y=bqo({serviceId:C,scopes:w,capabilities:A,linkName:c});M=_.f9(W,2,y);J!==void 0&&(W=p8_(),W=_.RJ(W,2,J),_.f9(M,3,W));return m.return(Y.makeRequest(Y.galServiceClient.getLink,M,[1,3],[2,4]))})};
var Rur=function(H,C){var S=C.serviceId;var w=C.sessionId;var A=C.googleScopes;var J=C.consistencyKey;var c;return _.z(function(Y){var M=(new Xq).setHeader(H.getHeader(w));M=_.RJ(M,2,S);var m=Array.from(A.values());M=_.HV(M,3,m,_.mj);m=p8_();m=_.RJ(m,2,J);c=_.f9(M,4,m);return Y.return(H.makeRequest(H.galServiceClient.JSC$19399_depositGoogleCredential,c,[1,3],[2,4]))})};
Uo.prototype.startLinkingSession=function(H){var C=H.serviceId;var S=H.sessionId;var w=H.scopes;var A=H.capabilities;var J=H.loginHint;var c=H.supportedFlows;var Y=H.completionUrl;var M=H.usePingPong;var m=H.twoWayLinking;var W=H.accountLinkingEntryPoint;var y=H.callerState;var N=H.consentLanguageKeys;var b=H.googleScopes;var u=H.dataUsageNoticeConfig;var O=H.linkName;var d=H.dynamicUrlParameters;var p=H.partnerConfigMinReadTimestamp;var k=this,R,L;return _.z(function(t){if(A!==void 0&&w!==void 0)throw Error("ok");
var g=(new sYo).setHeader(k.getHeader(S,d));R=_.RJ(g,2,C);O!==void 0&&_.RJ(R,14,O);if(A!==void 0){g=R;var ii=Array.from(A.values());_.HV(g,5,ii,_.mj)}else w!==void 0&&(g=R,ii=Array.from(w.values()),_.HV(g,3,ii,_.mj));Y!==void 0&&_.RJ(R,6,Y);M!==void 0&&_.hJ(R,15,M);c!==void 0&&(g=R,ii=Array.from(c.values()),_.HV(g,4,ii,_.ip));if(m!==void 0){if(m&&(!b||b.size===0))throw Error("tk");_.hJ(R,8,m)}W!==void 0&&_.Bu(R,9,W);J!==void 0&&_.RJ(R,13,J);y!==void 0&&(g=R,ii=(new TextEncoder).encode(y),_.iB(g,12,
_.On(ii,!1),_.oV()));N!==void 0&&_.RJ(R,16,N);p!==void 0&&_.f9(R,18,p);if(u!==void 0&&u.size>0||b!==void 0&&b.size>0)L=new SwR,b!==void 0&&b.size>0&&(g=L,ii=Array.from(b.values()),_.HV(g,1,ii,_.mj)),u!==void 0&&(u.has(0)&&_.r9E(L,2,_.ip,1,_.s_),u.has(1)&&_.r9E(L,2,_.ip,2,_.s_)),_.f9(R,17,L);return t.return(k.makeRequest(k.galServiceClient.startLinkingSession,R,[1],[2]))})};
Uo.prototype.getMetadata=function(){var H=this,C,S;return _.z(function(w){C={};H.useFpa?(C["X-Goog-Api-Key"]=H.apiKey,C["X-Goog-AuthUser"]=H.authUser!==void 0?H.authUser.toString():"0",(S=_.Jx6([]))&&(C.Authorization=S)):C.Authorization="Bearer "+H.oauthToken;H.locale&&(C["accept-language"]=H.locale);return w.return(C)})};
Uo.prototype.makeRequest=function(H,C,S,w){var A=this,J;return _.z(function(c){if(c.nextAddress==1)return c.yield(A.getMetadata(),2);J=c.yieldResult;EVK(A,S);return c.return(H.bind(A.galServiceClient)(C,J).finally(function(){EVK(A,w)}))})};
var EVK=function(H,C){H.galSdkEventHandler!==void 0&&C.forEach(function(S){H.galSdkEventHandler.onEvent(S)})};
Uo.prototype.getHeader=function(H,C){var S=new l1;H=_.iB(S,2,_.jo(H),0);H=_.Bu(H,5,3);C=_.HV(H,8,C,_.mj);this.bucket!==void 0&&_.RJ(C,1,this.bucket);return C};
var bqo=function(H){var C=H.serviceId;var S=H.scopes;var w=H.capabilities;H=H.linkName;if(w!==void 0&&S!==void 0)throw Error("ok");var A=new P7_;C=_.RJ(A,1,C);w!==void 0?(S=Array.from(w.values()),_.HV(C,5,S,_.mj)):S!==void 0&&(S=Array.from(S.values()),_.HV(C,3,S,_.mj));H!==void 0&&_.RJ(C,6,H);return C};var Yd_=function(H){this.galService=new Uo(H.alsDomain,H.apiKey,H.authUser,H.oauthToken,H.bucket,H.locale,H.galSdkEventHandler);this.JSC$19531_galRepository=new INj(this.galService)};
Yd_.prototype.getService=function(){return this.galService};var eLR=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(eLR,_.Jc);var usj=function(H){var C=new eLR;return _.qz(C,1,H)};
eLR.prototype.setErrorMessage=function(H){return _.XA(this,2,H)};var Gao=[0,_.Fi,_.sv,_.Fi];var Rt=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(Rt,_.Jc);var fK9=[0,[1,2,3],_.Jl,[0,R6p,xyO,-1],_.Jl,[0,aht,-1],_.w1];var vVt=[0,_.i7,1,_.Fi,_.sv,-1,1,_.oOi,_.as,_.Fi,-1,fK9];var lKi=[0,_.Fi,[0,_.oOi,_.as,[0,_.sv]],_.Ci,[0,_.Fi,-1]];var MP=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(MP,_.Jc);var VKi=[0,_.sv,_.Fi,-2,_.i7,_.Fi,_.i7,_.Fi,-2,1,_.Ci];var oVt=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(oVt,_.Jc);var Oqp=[0,_.i7];var Xwo=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(Xwo,_.Jc);var QBi=[0,_.Fi,lKi,Oqp,VKi,vVt];var B$p=_.WV(Xwo,QBi);var dL9=[0,dRO];var UNR=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(UNR,_.Jc);var P0r=[0,[1,3],C7i,_.Fi,C7i];var Yq=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(Yq,_.Jc);var $LO=[0,_.Fi];var pwO=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(pwO,_.Jc);var zk=function(H){return _.n5(H,eLR,2,cc)},ka9=function(H){var C=new pwO;
return _.vV(C,2,cc,H)},cc=[1,
2];var hL3=[0,cc,_.Jl,$LO,_.Jl,Gao,_.Al,P0r,1,_.Fi,dL9];var nVi=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(nVi,_.Jc);var Ba9=function(H){var C=new nVi;return _.vV(C,3,ryO,H)},ryO=[2,
3];var It=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(It,_.Jc);var DLK=function(H,C){return _.f9(H,2,C)},Kht=function(H,C){return _.f9(H,8,C)},tKi=function(H,C){return _.f9(H,3,C)};var Lhr=[0,_.Fi,hL3,QBi,_.qR,[0,[5,6,7],[0,_.Fi,-2],[0,_.i7,_.Fi,_.sv],[0,fK9],[0,_.sv,_.Fi,-1,_.MR,_.Fi],_.Jl,[0,[0,_.i7],_.Fi,-1],_.Jl,[0,[3,4],_.Fi,-1,_.Jl,[0,[0,_.Fi,_.Ci]],_.Jl,[0,[0,[0,[1,2],_.Jl,[0],_.Jl,[0]]]]],_.Jl,[0,_.Fi]],_.qR,-1,[0,ryO,_.Fi,_.Jl,$LO,_.Jl,Gao,_.Al,P0r,[0,dRO]]];var gVR=_.WV(It,Lhr),ULt=_.yv(Lhr);var RLr=function(){_.Op.call(this)};
_.G(RLr,_.Op);RLr.prototype.init=function(){};
new RLr;var IKt=_.xC(["data-"]),aKo=_.xC(["aria-"]),xLr=_.xC(["aria-"]),at=function(H,C){this.isLatencyMeasurementExperiment=H===void 0?!1:H;this.enableDialogA11yFix=C===void 0?!1:C;this.JSC$19560_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.MhV(_.s$.location.href)},KRO=function(H,C){H.onConsentPrimitiveShownCallback=C},H3O=function(H,C){return H.overriddenIframeLoadTimeout?H.overriddenIframeLoadTimeout:C!==void 0?C:5E3},LRt=function(H){if(H.prewarmPromise!==void 0)return H.prewarmPromise;
H.prewarmPromise=new Promise(function(C,S){xq(H,1);i33(H,CMp(H,!0),SNp(H));H.iframe?H.prewarmChannel||sS_(H,H.iframe,C):S(Error("uk"))});
H.prewarmPromise.finally(function(){H.prewarmPromise=void 0});
return H.prewarmPromise};
at.prototype.showPrimitive=function(){var H=this;if(this.consentPromise!==void 0)return this.consentPromise;var C=Date.now();jS3(this,C);this.consentPromise=new Promise(function(S,w){xq(H,0,C);var A=H.isDarkTheme();H.isLatencyMeasurementExperiment||H.initialLoadingStrategy===1||H.initialLoadingStrategy===2||(H.loadingBar||(H.loadingBar=TEt(getComputedStyle(document.body).direction==="rtl",A),H.loadingBar.style.position="fixed",H.loadingBar.style.zIndex="15000"),document.body.appendChild(H.loadingBar));
i33(H,CMp(H),SNp(H));H.iframe?H.channel||w4i(H,H.iframe,S,w):(A7p(H),w(Error("uk")))});
this.consentPromise.finally(function(){H.consentPromise=void 0});
return this.consentPromise};
var w4i=function(H,C,S,w){var A,J;_.z(function(c){switch(c.nextAddress){case 1:xq(H,3);A=!1;setTimeout(function(){if(!A){A7p(H);J79(H);FiO(H);var Y=usj(7).setErrorMessage("Timeout connecting to iframe");S(Kht(DLK(new It,ka9(Y)),Ba9(Y)))}},H3O(H,Z39(H)));
if(!H.prewarmPromise){c.jumpTo(2);break}_.en(c,3);return c.yield(H.prewarmPromise,5);case 5:_.xB(c,2);break;case 3:_.Vx(c),J=usj(4).setErrorMessage("Error while prewarming."),S(Kht(DLK(new It,ka9(J)),Ba9(J)));case 2:H.prewarmChannel&&H.prewarmChannel.send(ULt(tKi(new It,H.consentPrimitiveRequest))),H.channel=_.zl({destination:H.JSC$19560_win,iframe:C,origin:c7i(H),channelName:"cpw",onEstablished:function(){A=!0;A7p(H);H.isLatencyMeasurementExperiment||(H.JSC$19560_previousBodyOverflow=document.body.style.overflow,
H.JSC$19560_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,H.JSC$19560_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",H.enableDialogA11yFix&&window.addEventListener("blur",H.focusChangeListener));var Y=H.iframe;Y.style.bottom="0";Y.style.position="fixed";Y.style.right="0";Y.style.border="none";Y.style.left="0";Y.style.top=
"0";Y.style.zIndex="5000";Y.style.pointerEvents="";Y.style.visibility="";H.initialLoadingStrategy===2||H.initialLoadingStrategy===3?xq(H,4):xq(H,6);var M;(M=H.onConsentPrimitiveShownCallback)==null||M.call(H)},
onMessage:function(Y){Y=gVR(Y.data);switch(_.p5(Y,1)){case 1:J79(H);var M=mTO(_.zf(Y,_.kQ,7));M&&(H.initialLoadingStrategy!==2&&H.initialLoadingStrategy!==3||xq(H,6,M),xq(H,5,M));if(M=mTO(_.zf(Y,_.kQ,6)))xq(H,7,M),xq(H,8);var m,W;((m=_.zf(Y,pwO,2))==null?void 0:_.lP(m,cc))!==0&&((W=_.zf(Y,nVi,8))==null?void 0:_.lP(W,ryO))!==0||w(Error("vk"));S(Y);break;case 2:FiO(H)}}}),_.oT(c)}})},sS_=function(H,C,S){H.prewarmChannel=_.zl({destination:H.JSC$19560_win,
iframe:C,origin:c7i(H),channelName:"pwcp",onEstablished:function(){xq(H,2);S()}})},c7i=function(H){var C=_.Qv(H.src).toString();
return C&&C.indexOf("://")<0&&C.indexOf("//")!==0?H.origin:_.MhV(C)},CMp=function(H,C){C=C===void 0?!1:C;
var S,w=new Map([["origin",H.origin],["hl",(S=YN3(H))!=null?S:null]]);C&&w.set("pw","1");C=_.Z([["cpr",H.consentPrimitiveRequest.serialize()]]);for(S=C.next();!S.done;S=C.next()){var A=_.Z(S.value);S=A.next().value;A=A.next().value;w.set(S,A)}H.isDarkTheme()&&w.set("color_scheme","dark");return _.TV(H.src,w)},A7p=function(H){H.isLatencyMeasurementExperiment||H.loadingBar&&document.body.removeChild(H.loadingBar)};
at.prototype.getSrc=function(){var H=_.S$(this.origin),C;var S=(C=_.zf(this.consentPrimitiveRequest,oVt,3))==null?void 0:_.YJ(C,1);C="consent.google.com";S=S?"/u/"+encodeURIComponent(S.toString()):"";(H==null?0:H.endsWith("youtube.com"))?C="consent.youtube.com":(H=H==null?void 0:H.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(C="consent.google."+((H[1]?"co.":"")+encodeURIComponent(H[2])));return _.Ot("https://"+C+"/signedin"+S+"/landing")};
var i33=function(H,C,S){H.iframe||(H.iframe=document.createElement("iframe"),H.iframe.style.width="100%",H.iframe.style.height="100%",S!==112496729&&(H.iframe.style.colorScheme="auto"),H.isLatencyMeasurementExperiment&&(H.iframe.style.display="none"),_.He(H.iframe,C),H.iframe.setAttribute("jsname","C5o1O"),zq_(H.iframe),document.body.appendChild(H.iframe))},zq_=function(H){H.style.bottom="-200vh";
H.style.position="fixed";H.style.right="-200vw";H.style.border="";H.style.left="";H.style.top="";H.style.zIndex="";H.style.pointerEvents="none";H.style.visibility="hidden"},J79=function(H){H.iframe&&(H.isLatencyMeasurementExperiment||(H.JSC$19560_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=H.JSC$19560_previousHtmlOverscroll),H.JSC$19560_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=H.JSC$19560_previousBodyOverscroll),H.JSC$19560_previousBodyOverflow!==
void 0&&(document.body.style.overflow=H.JSC$19560_previousBodyOverflow),H.enableDialogA11yFix&&Mi9(H,!1)),zq_(H.iframe))};
at.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(Mi9(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var Mi9=function(H,C){var S,w,A=(S=H.iframe)==null?void 0:(w=S.parentElement)==null?void 0:w.children;if(A)for(S=0;S<A.length;S++)w=A[S],w!==H.iframe&&(C?(w.hasAttribute("aria-hidden")&&_.ZA([_.cj(IKt)],w,"data-old-aria-hidden",w.getAttribute("aria-hidden")),_.ZA([_.cj(aKo)],w,"aria-hidden","true")):(w.removeAttribute("aria-hidden"),w.hasAttribute("data-old-aria-hidden")&&(_.ZA([_.cj(xLr)],w,"aria-hidden",w.getAttribute("data-old-aria-hidden")),w.removeAttribute("data-old-aria-hidden"))))},xq=function(H,
C,S){var w;
(w=H.latencyCallback)==null||w.call(H,{latencyType:C,timestampEpochMillis:S!=null?S:Date.now()})};var qN3=function(H,C,S){at.call(this,C,S===void 0?!1:S);this.consentPrimitiveRequest=H;H=YN3(this);_.ZLi(H);this.src=this.getSrc();var w;this.initialLoadingStrategy=(w=_.zf(this.consentPrimitiveRequest,MP,4))==null?void 0:_.p5(w,4)},T5O;
_.G(qN3,at);var DNq=function(H){var C=_.E("enable_primitive_dialog_aria_hide_siblings");H={request:H,enableDialogA11yFix:C===void 0?!1:C};T5O||(T5O=new qN3(H.request,H.isLatencyMeasurementExperiment||_.p5(H.request,1)===2,H.enableDialogA11yFix));return T5O},YN3=function(H){var C;
return(C=_.zf(H.consentPrimitiveRequest,MP,4))==null?void 0:_.$v(C,1)},jS3=function(H,C){if(!_.uP(H.consentPrimitiveRequest,Rt,5)){var S=H.consentPrimitiveRequest,w=new Rt;
_.f9(S,5,w)}var A;if((A=_.zf(H.consentPrimitiveRequest,Rt,5))==null||_.PYZ(_.eC(A,8))==null){var J;(J=_.zf(H.consentPrimitiveRequest,Rt,5))!=null&&_.o8(J,8,C)}},SNp=function(H){var C;
return(C=_.zf(H.consentPrimitiveRequest,Rt,5))==null?void 0:_.YJ(C,1)};
qN3.prototype.isDarkTheme=function(){var H;return((H=_.zf(this.consentPrimitiveRequest,MP,4))==null?void 0:_.p5(H,2))===2};
var Z39=function(H){var C;return((C=_.zf(H.consentPrimitiveRequest,MP,4))==null?void 0:_.YJ(C,5))||void 0},FiO=function(H){H.channel=void 0;
H.prewarmChannel=void 0;H.iframe&&(document.body.contains(H.iframe)&&document.body.removeChild(H.iframe),H.iframe=void 0);T5O=void 0},gQ_=function(H){return at.prototype.showPrimitive.call(H).then(function(C){return _.zf(C,pwO,2)})};for(var Hr={},mgR=(Hr[64]="ma",Hr[73]="ogb",Hr[89]="cr",Hr[21]="test",Hr[0]="unkn",Hr[137]="con",Hr[155]="hl",Hr[78]="yt",Hr[171]="lp",Hr[172]="ap",Hr[177]="amo",Hr[178]="pqe",Hr[74]="gg",Hr[1]="gm",Hr[140]="am",Hr[193]="sc",Hr),Wi3=_.Z(Object.keys(mgR)),y79=Wi3.next();!y79.done;y79=Wi3.next());var N5O=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(N5O,_.Jc);var b3i=[0,[2,3,4],_.Fi,Ihj,C7i,_.w1];var EUj=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(EUj,_.Jc);var eqq=_.WV(EUj,[0,_.Zs,_.sv,_.Fi,_.sv,_.Fi,b3i]);var uU9=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(uU9,_.Jc);uU9.prototype.getCommand=function(){return _.p5(this,1)};
var G$O=function(){var H=new uU9;return _.Bu(H,1,0)};var fxR=_.yv([0,_.Zs,_.sv,[0,_.Fi,_.sv,-1]]);var vUq=new _.Ow("s"),lxO=new _.Ow("t"),ViK=new _.Ow("u"),oUO=new _.Ow("v"),O3i=function(H,C,S){_.Xc.call(this,vUq);this.mediaKey=H;this.photoUrl=C;this.photoSource=S};
_.G(O3i,_.Xc);var X43=function(){_.Xc.call(this,lxO)};
_.G(X43,_.Xc);var QSp=function(H){H=H===void 0?!1:H;_.Xc.call(this,ViK);this.isError=H};
_.G(QSp,_.Xc);var dg_=function(){_.Xc.call(this,oUO)};
_.G(dg_,_.Xc);var PMO=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,hqR=function(H){if(typeof H=="string"){if(H.charAt(0)==".")return $gO(H.substr(1));if(H.charAt(0)=="["){var C=PMO.exec(H);H=H.indexOf("=")==-1?void 0:C[3];return p49(C[1],H)}return k$K(H)}return H},$gO=function(H){return function(C){return C.getAttribute&&_.s2(C,H)}},p49=function(H,C){return function(S){return C!==void 0?S.getAttribute&&S.getAttribute(H)==C:S.hasAttribute&&S.hasAttribute(H)}},k$K=function(H){H=H.toUpperCase();
return function(C){return(C=C.tagName)&&C.toUpperCase()==H}},nU_=function(){return!0};var ix=function(H,C){this.JSC$19588_key_=H;this.JSC$19588_value_=C},CZ=function(H){throw Error("wk`"+H.JSC$19588_key_);
},r7R=function(H,C){return new TypeError("xk`"+C+"`"+H.JSC$19588_key_+"`"+H.JSC$19588_value_+"`"+typeof H.JSC$19588_value_)};
ix.prototype.string=function(H){return arguments.length==0?B5j(this):DgO(this,H)};
var DgO=function(H,C){var S;return(S=KiO(H))!=null?S:C},B5j=function(H){var C=KiO(H);
C===null&&CZ(H);return C},KiO=function(H){var C=H.JSC$19588_value_;
if(C==null)return null;if(typeof C==="string")return C;throw r7R(H,"string");};
ix.prototype.bool=function(H){if(arguments.length==0){var C=this.optionalBool();C===null&&CZ(this)}else{var S;C=(S=this.optionalBool())!=null?S:H}return C};
ix.prototype.optionalBool=function(){var H=this.JSC$19588_value_;if(H==null)return null;if(typeof H==="boolean")return H;if(typeof H==="string"){H=H.toLowerCase();if(H==="true"||H==="1")return!0;if(H==="false"||H==="0")return!1}throw r7R(this,"boolean");};
ix.prototype.number=function(H){if(arguments.length==0){var C=tij(this);C===null&&CZ(this)}else C=Lio(this,H);return C};
var Lio=function(H,C){var S;return(S=tij(H))!=null?S:C},tij=function(H){var C=H.JSC$19588_value_;
if(C==null)return null;if(typeof C==="number")return C;if(typeof C==="string"){var S=Number(C);if(!isNaN(S)&&(S!==0||C.trim().length!==0))return S}throw r7R(H,"number");};
ix.prototype.toString=function(){return B5j(this)};
ix.prototype.enum=function(H,C){var S=!0,w=void 0,A;for(A in H){var J=H[A];S&&(S=!1,w=typeof J==="number"?Lio(this,C):DgO(this,C));if(J==w)return w}JSON.stringify(H);return w};
ix.prototype.array=function(H){if(arguments.length==0){var C=gUi(this);C===null&&CZ(this);return C}C=gUi(this);return C==null?H:C};
var gUi=function(H){var C=H.JSC$19588_value_;if(C==null)return null;Array.isArray(C)||(typeof C!=="string"?C=[C]:(C=C.trim(),C=C==""?[]:C.split(",").map(function(S){return S.trim()})));
return Ugt(H,C)},Ugt=function(H,C){var S=H.JSC$19588_key_+"[";
return Array.from(C,function(w,A){return new ix(S+A+"]",w)})};
ix.prototype.object=function(H){var C=this.JSC$19588_value_;if(C==null)return H===void 0&&CZ(this),H;if(typeof C==="object"&&C.constructor===Object){H={};var S=this.JSC$19588_key_+".",w;for(w in C)H[w]=new ix(S+w,C[w]);return H}throw r7R(this,"object");};var Sb=function(H){this.list_=Rqt(H)},Rqt=function(H){if(H instanceof Sb)H=H.list_;
else if(H[0]instanceof Sb){for(var C=new Set,S=0;S<H.length;S++)for(var w=_.Z(H[S].list_),A=w.next();!A.done;A=w.next())C.add(A.value);H=C}return[].concat(_.k$(H))};
_.F=Sb.prototype;_.F.each=function(H,C,S){((S===void 0?0:S)?d3O:_.I6)(this.list_,H,C);return this};
_.F.size=function(){return this.list_.length};
_.F.isEmpty=function(){return this.list_.length===0};
_.F.get=function(H){return this.list_[H]||null};
_.F.el=function(){return this.list_[0]||null};
_.F.map=function(H,C){return _.nX(this.list_,H,C)};
_.F.equals=function(H){return this===H||_.a0(this.list_,H.list_)};
_.F.first=function(){return this.list_.length==0?null:new s9(this.list_[0])};
_.F.last=function(){return this.list_.length==0?null:new s9(this.list_[this.list_.length-1])};
_.F.find=function(H){var C=[];this.each(function(S){S=S.querySelectorAll(String(H));for(var w=0;w<S.length;w++)C.push(S[w])});
return new Sb(C)};
_.F.parent=function(){var H=[];this.each(function(C){(C=C.parentElement||null)&&!_.nU(H,C)&&H.push(C)});
return new Sb(H)};
_.F.children=function(){var H=[];this.each(function(C){C=_.g1(C);for(var S=0;S<C.length;S++)H.push(C[S])});
return new Sb(H)};
_.F.filter=function(H){H=_.Yv(this.list_,hqR(H));return new Sb(H)};
_.F.closest=function(H){var C=[],S=hqR(H),w=function(A){return _.jr(A)&&S(A)};
this.each(function(A){(A=_.tb(A,w,!0))&&!_.nU(C,A)&&C.push(A)});
return new Sb(C)};
_.F.next=function(H){return Ixt(this,_.OrY,H)};
_.F.prev=function(H){return Ixt(this,Sv3,H)};
var Ixt=function(H,C,S){var w=[];var A=S?hqR(S):nU_;H.each(function(J){(J=C(J))&&A(J)&&w.push(J)});
return new Sb(w)};
Sb.prototype.setClass=function(H){return this.each(function(C){_.SK(C,H)})};
var axO=function(H,C){return H.each(function(S){_.FB(S,C)})},xg3=function(H,C){return H.each(function(S){_.Ag(S,C)})};
Sb.prototype.toggleClass=function(H,C){return C===!0?axO(this,H):C===!1?xg3(this,H):this.each(function(S){_.s2(S,H)?_.Ag(S,H):_.FB(S,H)})};
Sb.prototype.setText=function(H){return this.each(function(C){_.Uv(C,H)})};
var HHK=function(H){H.each(function(C){C.removeAttribute("aria-hidden")})};
Sb.prototype.getStyle=function(H){if(this.list_.length>0){var C=this.list_[0],S=C.style[_.ls(H)];return typeof S!=="undefined"?S:C.style[_.Kji(C,H)]||""}};
Sb.prototype.getData=function(H){if(this.list_.length===0)return new ix(H,null);var C=hNr(this.list_[0],H);return new ix(H,C)};
Sb.prototype.focus=function(H){try{H?this.el().focus(H):this.el().focus()}catch(C){}return this};
Sb.prototype.click=function(){var H=_.D9(this.el());if(H.createEvent){var C=H.createEvent("MouseEvents");C.initMouseEvent("click",!0,!0,H.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(C)}else H=H.createEventObject(),H.clientX=0,H.clientY=0,H.screenX=0,H.screenY=0,H.altKey=!1,H.ctrlKey=!1,H.shiftKey=!1,H.button=0,this.el().fireEvent("onclick",H)};
var jb=function(H,C,S,w){function A(Y,M,m){var W=M;M&&M.parentNode&&(W=M.cloneNode(!0));Y(W,m)}
w=w===void 0?!1:w;if(H.list_.length==1){var J=H.list_[0],c=function(Y){return C(Y,J)};
S instanceof Sb?S.each(c,void 0,w):Array.isArray(S)?(w?d3O:_.I6)(S,c):c(S);return H}return H.each(function(Y){S instanceof Sb?S.each(function(M){A(C,M,Y)}):Array.isArray(S)?_.I6(S,function(M){A(C,M,Y)}):A(C,S,Y)})};
_.F=Sb.prototype;_.F.append=function(H){return jb(this,function(C,S){C&&S.appendChild(C)},H)};
_.F.appendTo=function(H){(new Sb([H])).append(this);return this};
_.F.remove=function(){return jb(this,function(H,C){_.f6(C)},null)};
_.F.empty=function(){return jb(this,function(H,C){_.Ki(C)},null)};
_.F.after=function(H,C){return jb(this,function(S,w){S&&_.Li(S,w)},H,!(C===void 0||C))};
_.F.before=function(H){return jb(this,function(C,S){C&&_.tl(C,S)},H)};
_.F.replaceWith=function(H){return jb(this,function(C,S){C&&_.lqP(C,S)},H)};
_.F.toggle=function(H){return this.each(function(C){_.HN(C,H)})};
_.F.show=function(){return this.toggle(!0)};
_.F.hide=function(){return this.toggle(!1)};
_.F.trigger=function(H,C,S,w){return iH9(this,H,C,S,w)};
var iH9=function(H,C,S,w,A){return H.each(function(J){_.lt6(_.D9(J)).triggerWizEventInternal(J,C,S,w,A)})},s9=function(H,C){H instanceof Sb&&(C=H.list_,H=null);
this.list_=Rqt(H!=null?[H]:C)};
_.Zh(s9,Sb);_.F=s9.prototype;_.F.children=function(){return new Sb(Array.prototype.slice.call(_.g1(this.list_[0])))};
_.F.each=function(H,C){H.call(C,this.list_[0],0);return this};
_.F.size=function(){return 1};
_.F.el=function(){return this.list_[0]};
_.F.first=function(){return this};var wp=function(H,C){C=C===void 0?window:C;this.hostId=H;this.JSC$19599_win=C;this.scheme="https";this.domain="myaccount.google.com";this.authUser=this.port=0;this.colorScheme="";this.parentElement=document.body;this.iframePosition="fixed";this.opened=!1;this.JSC$19599_previousHtmlOverscroll=this.JSC$19599_previousBodyOverscroll=this.JSC$19599_previousBodyOverflow="";this.eventTarget=new _.ph;this.JSC$19599_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
sFi=function(H){var C=Ckp(Ckp(Ckp(new SSR(78),"po"),"hppp"),"hhc");
C.authUser=Number(_.rh("SESSION_INDEX","0"));C.colorScheme=H;return C};
wp.prototype.getOrigin=function(){return this.origin?this.origin:_.mh(_.Ta(_.qL(new _.jR,this.JSC$19599_win.location.protocol),this.JSC$19599_win.location.hostname),this.JSC$19599_win.location.port).toString()};
wp.prototype.getTargetOrigin=function(){return _.mh(_.Ta(_.qL(new _.jR,this.scheme),this.domain),this.port)};
wp.prototype.preloadIframe=function(H){var C=this;if(this.iframeLoadPromise===void 0){var S=document.createElement("iframe");this.iframe=S;uJi(S,H);this.iframeLoadPromise=new Promise(function(w,A){var J=!1,c=function(Y){Y.stopPropagation();S.removeEventListener("error",c);S.removeEventListener("securitypolicyviolation",c);A(Error("yk",{cause:Y}))};
S.addEventListener("error",c);S.addEventListener("securitypolicyviolation",c);setTimeout(function(){J||A(Error("zk"))},3E4);
jFi(C,S,function(){J=!0;S.removeEventListener("error",c);S.removeEventListener("securitypolicyviolation",c);w()})});
wWO(this);H=this.getTargetOrigin().toString();S.setAttribute("allow","camera "+H+"; display-capture "+H);this.parentElement.appendChild(S)}return this.iframeLoadPromise};
var F9o=function(H,C){var S,w;return _.z(function(A){if(A.nextAddress==1)return S=TEt(getComputedStyle(H.parentElement).direction==="rtl"),H.parentElement.appendChild(S),document.activeElement instanceof HTMLElement&&(H.elementToFocusAfterClose=document.activeElement),_.en(A,2),A.yield(H.preloadIframe(C),4);if(A.nextAddress!=2){H.parentElement.removeChild(S);H.JSC$19599_previousBodyOverflow=H.parentElement.style.overflow;H.JSC$19599_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
H.JSC$19599_previousBodyOverscroll=H.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";H.parentElement.style.overscrollBehavior="contain";H.parentElement.style.overflow="hidden";var J=H.iframe;J.style.bottom="0";J.style.border="none";J.style.height="100%";J.style.left="0";J.style.position=H.iframePosition;J.style.right="0";J.style.top="0";J.style.width="100%";J.style.zIndex="2202";J.setAttribute("aria-hidden","false");J.setAttribute("aria-modal","true");
H.opened=!0;Aii(H);return _.xB(A,0)}w=_.Vx(A);H.parentElement.removeChild(S);bxj(H.isDarkTheme());Ji3(H,!1);throw Error("Ak",{cause:w});})},Ji3=function(H,C){C=C===void 0?!0:C;
H.iframe!==void 0&&(ZHK(H),document.documentElement.style.overscrollBehavior=H.JSC$19599_previousHtmlOverscroll,H.parentElement.style.overscrollBehavior=H.JSC$19599_previousBodyOverscroll,H.parentElement.style.overflow=H.JSC$19599_previousBodyOverflow,H.elementToFocusAfterClose!==void 0&&(H.elementToFocusAfterClose.focus(),H.elementToFocusAfterClose=void 0),C?wWO(H):(H.parentElement.removeChild(H.iframe),H.iframe=void 0,H.iframeLoadPromise=void 0,H.mainChannel=void 0),H.opened=!1)},ZHK=function(H){H.backgroundElementsAriaHiddenIsNull&&
(HHK(H.backgroundElementsAriaHiddenIsNull),H.backgroundElementsAriaHiddenIsNull=void 0);
H.backgroundElementsAriaHiddenIsFalse&&(H.backgroundElementsAriaHiddenIsFalse.each(function(C){C.setAttribute("aria-hidden","false")}),H.backgroundElementsAriaHiddenIsFalse=void 0);
H.backgroundElementsWithoutInert&&(H.backgroundElementsWithoutInert.each(function(C){C.removeAttribute("inert")}),H.backgroundElementsWithoutInert=void 0)},Aii=function(H){H.backgroundElementsAriaHiddenIsNull=(new s9(H.iframe.parentElement)).children().filter(function(C){return C.getAttribute("aria-hidden")===null&&C!==H.iframe});
H.backgroundElementsAriaHiddenIsNull.each(function(C){C.setAttribute("aria-hidden","true")});
H.backgroundElementsAriaHiddenIsFalse=(new s9(H.iframe.parentElement)).children().filter(function(C){return C.getAttribute("aria-hidden")==="false"&&C!==H.iframe});
H.backgroundElementsAriaHiddenIsFalse.each(function(C){C.setAttribute("aria-hidden","true")});
H.backgroundElementsWithoutInert=(new s9(H.iframe.parentElement)).children().filter(function(C){return!C.hasAttribute("inert")&&C!==H.iframe});
H.backgroundElementsWithoutInert.each(function(C){C.setAttribute("inert","true")})},wWO=function(H){H=H.iframe;
H.style.bottom="-1000px";H.style.position="fixed";H.style.right="-1000px";H.style.border="";H.style.height="";H.style.left="";H.style.top="";H.style.width="";H.style.zIndex="";H.setAttribute("aria-hidden","true");H.setAttribute("aria-modal","false")};
wp.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var SSR=function(H,C){wp.call(this,mgR[H],C);this.options=[];this.style=""};
_.G(SSR,wp);var cio=function(H){H.style="youtube";return H},YSK=function(H,C){H.eventTarget.listen(ViK,C);
return H},zJK=function(H,C){H.eventTarget.listen(vUq,C);
return H},Ckp=function(H,C){H.options.push(C);
return H},Mvj=function(H){var C=[H.getOrigin()];
H.ancestorOrigins&&C.push.apply(C,_.k$(H.ancestorOrigins));var S=new _.jR(H.JSC$19599_win.location.href),w=H.startUrl?H.startUrl:H.options.includes("po")?"profile-picture/art":"profile-picture";C=qP(_.Ww(H.getTargetOrigin(),w),"origin",C);H.startUrl&&_.xJ(C,"startPath",H.startUrl);H.authUser>0&&_.xJ(C,"authuser",H.authUser);H.pageId!==void 0&&_.xJ(C,"pageId",H.pageId);_.xJ(C,"hostId",H.hostId);H.jsMode!==void 0&&_.xJ(C,"jsmode",H.jsMode);H.rectangleRatio!==void 0&&_.xJ(C,"rectangleRatio",H.rectangleRatio);
H.options.length>0&&_.xJ(C,"opts",H.options.join(","));try{for(var A=_.Z(["utm_source","utm_medium","utm_campaign","utm_content"]),J=A.next();!J.done;J=A.next()){var c=J.value;_.a7(S,c)&&_.xJ(C,c,_.a7(S,c))}var Y,M=(Y=H.hl)!=null?Y:_.a7(S,"hl");M!==void 0&&_.xJ(C,"hl",M)}catch(m){if(!(m instanceof URIError))throw m;}H.colorScheme&&_.xJ(C,"theme",H.colorScheme);H.style&&_.xJ(C,"style",H.style);return C},qS_=function(H,C){H.mainChannel=_.zl({destination:H.JSC$19599_win,
iframe:C,origin:H.getTargetOrigin().toString(),channelName:"ow",onMessage:function(S){S=eqq(S.data);if(C===H.iframe)switch(_.p5(S,1)){case 1:H.eventTarget.dispatchEvent(new QSp);Ji3(H);break;case 2:H.eventTarget.dispatchEvent(new O3i(_.$v(S,4),_.$v(S,2),_.p5(S,5),_.zf(S,N5O,6)));break;case 0:var w;H.eventTarget.dispatchEvent(new X43(_.$v(S,2),(w=_.p5(S,3))!=null?w:0));break;case 3:H.eventTarget.dispatchEvent(new QSp(!0));Ji3(H,!1);break;case 4:H.eventTarget.dispatchEvent(new dg_)}}})},jFi=function(H,
C,S){_.zl({destination:H.JSC$19599_win,
iframe:C,origin:_.mh(_.Ta(_.qL(new _.jR,H.scheme),H.domain),H.port).toString(),channelName:"owi",onMessage:function(w){C===H.iframe&&(S!==void 0&&S(),qS_(H,C),H.opened&&H.mainChannel.send(fxR(G$O())),w.reply(),jFi(H,C))}})};
SSR.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?wp.prototype.preloadIframe.call(this,Mvj(this).toString()):this.iframeLoadPromise};
SSR.prototype.openPicker=function(H){var C=this;return _.z(function(S){if(S.nextAddress==1)return C.startUrl=H?H:C.options.includes("po")?"profile-picture/art":"profile-picture",S.yield(F9o(C,Mvj(C).toString()),2);if(C.mainChannel){var w=C.mainChannel,A=w.send;var J=G$O();J=_.XA(J,2,C.startUrl);A.call(w,fxR(J))}_.oT(S)})};var TeK=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(TeK,_.Jc);_.F=TeK.prototype;_.F.getSize=function(){return Eo(this,1)};
_.F.setSize=function(H){return _.rO(this,1,H)};
_.F.getWidth=function(){return Eo(this,12)};
_.F.getHeight=function(){return Eo(this,13)};
_.F.setCenterCrop=function(H){return _.TZ(this,20,H)};
_.F.getHtml=function(){return _.QK(this,4)};
_.F.getToken=function(){return _.ud(this,24)};
_.F.setToken=function(H){return _.XA(this,24,H)};
_.F.getBackgroundColor=function(){return Eo(this,87)};
_.F.hasBackgroundColor=function(){return _.wi(_.eC(this,87))!=null};
_.F.getStoryboardLevel=function(){return Eo(this,109)};var Aw=function(H){this.JSC$19607_value_=void 0;this.childNodes_={};if(H){var C=_.yEM(H);H=_.ML(H);for(var S=0;S<C.length;S++)this.set(C[S],H[S])}};
Aw.prototype.set=function(H,C){mZK(this,H,C,!1)};
Aw.prototype.add=function(H,C){mZK(this,H,C,!0)};
var mZK=function(H,C,S,w){for(var A=0;A<C.length;A++){var J=C.charAt(A);H.childNodes_[J]||(H.childNodes_[J]=new Aw);H=H.childNodes_[J]}if(w&&H.JSC$19607_value_!==void 0)throw Error("Bk`"+C);H.JSC$19607_value_=S},W93=function(H,C){for(var S=0;S<C.length;S++)if(H=H.childNodes_[C.charAt(S)],!H)return;
return H};
Aw.prototype.get=function(H){return(H=W93(this,H))?H.JSC$19607_value_:void 0};
Aw.prototype.getValues=function(){var H=[];yir(this,H);return H};
var yir=function(H,C){H.JSC$19607_value_!==void 0&&C.push(H.JSC$19607_value_);for(var S in H.childNodes_)yir(H.childNodes_[S],C)};
Aw.prototype.getKeys=function(H){var C=[];if(H){for(var S=this,w=0;w<H.length;w++){var A=H.charAt(w);if(!S.childNodes_[A])return[];S=S.childNodes_[A]}Net(S,H,C)}else Net(this,"",C);return C};
var Net=function(H,C,S){H.JSC$19607_value_!==void 0&&S.push(C);for(var w in H.childNodes_)Net(H.childNodes_[w],C+w,S)};
_.F=Aw.prototype;_.F.containsKey=function(H){return this.get(H)!==void 0};
_.F.containsValue=function(H){if(this.JSC$19607_value_===H)return!0;for(var C in this.childNodes_)if(this.childNodes_[C].containsValue(H))return!0;return!1};
_.F.clear=function(){this.childNodes_={};this.JSC$19607_value_=void 0};
_.F.remove=function(H){for(var C=this,S=[],w=0;w<H.length;w++){var A=H.charAt(w);if(!C.childNodes_[A])throw Error("Ck`"+H);S.push([C,A]);C=C.childNodes_[A]}H=C.JSC$19607_value_;for(delete C.JSC$19607_value_;S.length>0;)if(w=S.pop(),C=w[0],w=w[1],C.childNodes_[w].isEmpty())delete C.childNodes_[w];else break;return H};
_.F.clone=function(){return new Aw(this)};
_.F.getCount=function(){return Al3(this.getValues())};
_.F.isEmpty=function(){return this.JSC$19607_value_===void 0&&_.hb.isEmpty(this.childNodes_)};var VsO=function(){if(!bH9){var H=bH9=new Aw,C;for(C in EgK)H.add(C,EgK[C])}},bH9,Jw=function(H,C){this.types=H;
this.setters=C},EgK={a:new Jw([3,
0],[function(H,C){_.TZ(H,21,C)},
function(H,C){_.rO(H,56,C)}]),
al:new Jw([3],[function(H,C){_.TZ(H,74,C)}]),
b:new Jw([3,0],[function(H,C){_.TZ(H,23,C)},
function(H,C){_.rO(H,38,C)}]),
ba:new Jw([0],[function(H,C){_.rO(H,85,C)}]),
bc:new Jw([0],[function(H,C){_.rO(H,87,C)}]),
br:new Jw([0],[function(H,C){_.rO(H,86,C)}]),
c:new Jw([3,0],[function(H,C){_.TZ(H,2,C)},
function(H,C){_.rO(H,39,C)}]),
cc:new Jw([3],[function(H,C){_.TZ(H,51,C)}]),
ci:new Jw([3],[function(H,C){_.TZ(H,32,C)}]),
ckm:new Jw([3],[function(H,C){_.TZ(H,104,C)}]),
cp:new Jw([0],[function(H,C){_.rO(H,92,C)}]),
cr:new Jw([3],[function(H,C){_.TZ(H,108,C)}]),
cv:new Jw([0],[function(H,C){_.rO(H,94,C)}]),
d:new Jw([3],[function(H,C){_.TZ(H,3,C)}]),
dc:new Jw([5],[function(H,C){_.XA(H,99,C)}]),
df:new Jw([3],[function(H,C){_.TZ(H,80,C)}]),
dv:new Jw([3],[function(H,C){_.TZ(H,90,C)}]),
e:new Jw([0],[function(H,C){_.rO(H,15,C)}]),
em:new Jw([0],[function(H,C){_.rO(H,107,C)}]),
f:new Jw([4],[function(H,C){_.XA(H,16,C)}]),
fg:new Jw([3],[function(H,C){_.TZ(H,34,C)}]),
fh:new Jw([3],[function(H,C){_.TZ(H,30,C)}]),
fm:new Jw([3],[function(H,C){_.TZ(H,84,C)}]),
fo:new Jw([2],[function(H,C){_.Tf(H,79,_.t_(C))}]),
ft:new Jw([3],[function(H,C){_.TZ(H,50,C)}]),
fv:new Jw([3],[function(H,C){_.TZ(H,31,C)}]),
g:new Jw([3],[function(H,C){_.TZ(H,14,C)}]),
gce:new Jw([4],[function(H,C){_.XA(H,112,C)}]),
gd:new Jw([3],[function(H,C){_.TZ(H,83,C)}]),
gm:new Jw([3],[function(H,C){_.TZ(H,105,C)}]),
h:new Jw([3,0],[function(H,C){_.TZ(H,4,C)},
function(H,C){_.rO(H,13,C)}]),
i:new Jw([3],[function(H,C){_.TZ(H,22,C)}]),
ic:new Jw([0],[function(H,C){_.rO(H,71,C)}]),
id:new Jw([3],[function(H,C){_.TZ(H,70,C)}]),
il:new Jw([3],[function(H,C){_.TZ(H,96,C)}]),
ip:new Jw([3],[function(H,C){_.TZ(H,54,C)}]),
iv:new Jw([0],[function(H,C){_.o8(H,75,C)}]),
j:new Jw([1],[function(H,C){C=C==null?C:pHi(C);_.Tf(H,29,C)}]),
k:new Jw([3,0],[function(H,C){_.TZ(H,17,C)},
function(H,C){_.rO(H,42,C)}]),
l:new Jw([0],[function(H,C){_.rO(H,44,C)}]),
lf:new Jw([3],[function(H,C){_.TZ(H,65,C)}]),
lo:new Jw([3],[function(H,C){_.TZ(H,97,C)}]),
m:new Jw([0],[function(H,C){_.rO(H,63,C)}]),
md:new Jw([3],[function(H,C){_.TZ(H,91,C)}]),
mm:new Jw([4],[function(H,C){_.XA(H,81,C)}]),
mo:new Jw([3],[function(H,C){_.TZ(H,73,C)}]),
mp:new Jw([0],[function(H,C){_.rO(H,115,C)}]),
mv:new Jw([3],[function(H,C){_.TZ(H,66,C)}]),
n:new Jw([3],[function(H,C){H.setCenterCrop(C)}]),
nc:new Jw([3],[function(H,C){_.TZ(H,55,C)}]),
nd:new Jw([3],[function(H,C){_.TZ(H,53,C)}]),
ng:new Jw([3],[function(H,C){_.TZ(H,95,C)}]),
ngm:new Jw([3],[function(H,C){_.TZ(H,106,C)}]),
no:new Jw([3],[function(H,C){_.TZ(H,37,C)}]),
ns:new Jw([3],[function(H,C){_.TZ(H,40,C)}]),
nt0:new Jw([4],[function(H,C){_.XA(H,36,C)}]),
ntm:new Jw([3],[function(H,C){_.TZ(H,114,C)}]),
nu:new Jw([3],[function(H,C){_.TZ(H,46,C)}]),
nw:new Jw([3],[function(H,C){_.TZ(H,48,C)}]),
o:new Jw([1,3],[function(H,C){C=C==null?C:pHi(C);_.Tf(H,7,C)},
function(H,C){_.TZ(H,27,C)}]),
p:new Jw([3,0],[function(H,C){_.TZ(H,19,C)},
function(H,C){_.rO(H,43,C)}]),
pa:new Jw([3],[function(H,C){_.TZ(H,61,C)}]),
pc:new Jw([0],[function(H,C){_.rO(H,88,C)}]),
pd:new Jw([3],[function(H,C){_.TZ(H,60,C)}]),
pf:new Jw([3],[function(H,C){_.TZ(H,67,C)}]),
pg:new Jw([3],[function(H,C){_.TZ(H,72,C)}]),
pi:new Jw([2],[function(H,C){_.Tf(H,76,_.t_(C))}]),
pp:new Jw([3],[function(H,C){_.TZ(H,52,C)}]),
pt:new Jw([4],[function(H,C){_.XA(H,111,C)}]),
q:new Jw([4],[function(H,C){_.XA(H,28,C)}]),
r:new Jw([3,0],[function(H,C){_.TZ(H,6,C)},
function(H,C){_.rO(H,26,C)}]),
ra:new Jw([3],[function(H,C){_.TZ(H,103,C)}]),
rf:new Jw([3],[function(H,C){_.TZ(H,100,C)}]),
rg:new Jw([3],[function(H,C){_.TZ(H,59,C)}]),
rh:new Jw([3],[function(H,C){_.TZ(H,49,C)}]),
rj:new Jw([3],[function(H,C){_.TZ(H,57,C)}]),
ro:new Jw([2],[function(H,C){_.Tf(H,78,_.t_(C))}]),
rp:new Jw([3],[function(H,C){_.TZ(H,58,C)}]),
rw:new Jw([3],[function(H,C){_.TZ(H,35,C)}]),
rwa:new Jw([3],[function(H,C){_.TZ(H,64,C)}]),
rwu:new Jw([3],[function(H,C){_.TZ(H,41,C)}]),
s:new Jw([3,0],[function(H,C){_.TZ(H,33,C)},
function(H,C){H.setSize(C)}]),
sb:new Jw([0],[function(H,C){_.rO(H,110,C)}]),
sc:new Jw([0],[function(H,C){_.rO(H,89,C)}]),
sg:new Jw([3],[function(H,C){_.TZ(H,82,C)}]),
sl:new Jw([0],[function(H,C){_.rO(H,109,C)}]),
sm:new Jw([3],[function(H,C){_.TZ(H,93,C)}]),
t:new Jw([4],[function(H,C){H.setToken(C)}]),
tm:new Jw([3],[function(H,C){_.TZ(H,113,C)}]),
u:new Jw([3],[function(H,C){_.TZ(H,18,C)}]),
ut:new Jw([3],[function(H,C){_.TZ(H,45,C)}]),
v:new Jw([0],[function(H,C){_.rO(H,62,C)}]),
vb:new Jw([0],[function(H,C){_.o8(H,68,C)}]),
vf:new Jw([4],[function(H,C){_.XA(H,102,C)}]),
vl:new Jw([0],[function(H,C){_.o8(H,69,C)}]),
vm:new Jw([3],[function(H,C){_.TZ(H,98,C)}]),
w:new Jw([0],[function(H,C){_.rO(H,12,C)}]),
x:new Jw([0],[function(H,C){_.rO(H,9,C)}]),
y:new Jw([0],[function(H,C){_.rO(H,10,C)}]),
ya:new Jw([2],[function(H,C){_.Tf(H,77,_.t_(C))}]),
z:new Jw([0],[function(H,C){_.rO(H,11,C)}])};
VsO.prototype.parse=function(H){var C=new TeK,S=new TeK;if(H=="")H=!0;else{H=H.split("-");for(var w=!0,A=0;A<H.length;A++){var J=H[A];if(J.length==0)w=!1;else{var c=J,Y=!1;var M=c;var m=c.charAt(0);m!=m.toLowerCase()&&(Y=!0,M=c.charAt(0).toLowerCase()+c.substring(1));var W=bH9;for(m=1;m<=M.length;++m){var y=W,N=M.substring(0,m);if(N.length==0?y.isEmpty():!W93(y,N))break}M=m==1?null:(M=W.get(M.substring(0,m-1)))?{option:c.substring(0,m-1),value:c.substring(m-1),signed:Y,attributes:M}:null;if(M){c=
[];Y=[];m=!1;for(W=0;W<M.attributes.types.length;W++){y=M.attributes.types[W];var b=M.value;N=A;if(M.signed&&y==1)for(var u=b.length;u<12&&N<H.length-1;)b+="-"+H[N+1],u=b.length,++N;else if(y==2)for(;N<H.length-1&&H[N+1].match(/^[\d\.]/);)b+="-"+H[N+1],++N;u=M.attributes.setters[W];b=eJR(this,y)(M.option,b,C,S,u);if(b===null){m=!0;A=N;break}else c.push(y),Y.push(b)}if(!m)for(M=0;M<Y.length;M++)W=c[M],b=Y[M],uLt(this,W)(J,b);w=w&&m}else w=!1}}H=w}return new GTj(C,S,H)};
var FV=function(H,C,S,w,A,J){A(S,C);H=H.charAt(0);J=J(H==H.toUpperCase());A(w,J)};
_.F=VsO.prototype;_.F.parseAndSetIntOption_=function(H,C,S,w,A){if(C=="")return 0;isFinite(C)&&(C=String(C));C=typeof C==="string"?/^\s*-?0x/i.test(C)?parseInt(C,16):parseInt(C,10):NaN;if(isNaN(C))return 1;FV(H,C,S,w,A,Number);return null};
_.F.logIntParseError_=function(){};
_.F.parseAndSetFloatOption_=function(H,C,S,w,A){if(C=="")return 0;var J=Number(C);C=J==0&&_.YE(C)?NaN:J;if(isNaN(C))return 1;FV(H,C,S,w,A,Number);return null};
_.F.logFloatParseError_=function(){};
_.F.parseAndSetBoolOption_=function(H,C,S,w,A){if(C!="")return 2;FV(H,!0,S,w,A,Boolean);return null};
_.F.logBoolParseError_=function(){};
_.F.parseAndSetStringOption_=function(H,C,S,w,A){if(C=="")return 0;FV(H,C,S,w,A,function(J){return J?"1":""});
return null};
_.F.logStringParseError_=function(){};
_.F.parseAndSetUint64Base64Option_=function(H,C,S,w,A){if(C=="")return 0;FV(H,C,S,w,A,function(J){return J?1:0});
return null};
var eJR=function(H,C){switch(C){case 0:return(0,_.Xv)(H.parseAndSetIntOption_,H);case 2:return(0,_.Xv)(H.parseAndSetFloatOption_,H);case 3:return(0,_.Xv)(H.parseAndSetBoolOption_,H);case 4:return(0,_.Xv)(H.parseAndSetStringOption_,H);case 1:return(0,_.Xv)(H.parseAndSetUint64Base64Option_,H);default:return function(){}}},uLt=function(H,C){switch(C){case 0:return(0,_.Xv)(H.logIntParseError_,H);
case 2:return(0,_.Xv)(H.logFloatParseError_,H);case 3:return(0,_.Xv)(H.logBoolParseError_,H);case 4:case 1:return(0,_.Xv)(H.logStringParseError_,H);default:return function(){}}},GTj=function(H,C,S){this.valueProto_=H;
this.signatureFlagProto_=C;this.JSC$19619_valid_=S};
GTj.prototype.isValid=function(){return this.JSC$19619_valid_};var GzR=function(H){this.JSC$19620_parser_=null;this.JSC$19620_components_=[];this.JSC$19620_parsedOptions_=null;fJo(this,H)},vg_=function(H){H.JSC$19620_parser_==null&&(H.JSC$19620_parser_=new VsO);
return H.JSC$19620_parser_},fJo=function(H,C){H.JSC$19620_parsedOptions_=C?typeof C==="string"?vg_(H).parse(C):C:vg_(H).parse("")},Z8=function(H,C){return H==C?!1:!0};
_.F=GzR.prototype;_.F.JSC$19622_setCrop=function(H){H=H||void 0;var C=this.JSC$19620_parsedOptions_,S=C.valueProto_;Z8(H,_.QK(S,2),_.QK(C.signatureFlagProto_,2))&&_.TZ(S,2,H);return this};
_.F.JSC$19622_setCircleCrop=function(H){H=H||void 0;var C=this.JSC$19620_parsedOptions_,S=C.valueProto_;Z8(H,b1(S,51),b1(C.signatureFlagProto_,51))&&_.TZ(S,51,H);return this};
_.F.JSC$19622_setImageCrop=function(H){H=H||void 0;var C=this.JSC$19620_parsedOptions_,S=C.valueProto_;Z8(H,b1(S,32),b1(C.signatureFlagProto_,32))&&_.TZ(S,32,H);return this};
_.F.JSC$19622_setHeight=function(H){var C=this.JSC$19620_parsedOptions_,S=C.valueProto_;Z8(H,S.getHeight(),C.signatureFlagProto_.getHeight())&&_.rO(S,13,H);return this};
_.F.setCenterCrop=function(H){H=H||void 0;var C=this.JSC$19620_parsedOptions_,S=C.valueProto_;Z8(H,_.QK(S,20),_.QK(C.signatureFlagProto_,20))&&S.setCenterCrop(H);return this};
_.F.JSC$19622_setSmartCrop=function(H){H=H||void 0;var C=this.JSC$19620_parsedOptions_,S=C.valueProto_;Z8(H,_.QK(S,19),_.QK(C.signatureFlagProto_,19))&&_.TZ(S,19,H);return this};
_.F.JSC$19622_setPad=function(H){H=H||void 0;var C=this.JSC$19620_parsedOptions_,S=C.valueProto_;Z8(H,b1(S,60),b1(C.signatureFlagProto_,60))&&_.TZ(S,60,H);return this};
_.F.JSC$19622_setSmartCropUseFace=function(H){H=H||void 0;var C=this.JSC$19620_parsedOptions_,S=C.valueProto_;Z8(H,_.QK(S,67),_.QK(C.signatureFlagProto_,67))&&_.TZ(S,67,H);return this};
_.F.JSC$19622_setSmartCropNoClip=function(H){H=H||void 0;var C=this.JSC$19620_parsedOptions_,S=C.valueProto_;Z8(H,_.QK(S,52),_.QK(C.signatureFlagProto_,52))&&_.TZ(S,52,H);return this};
_.F.setSize=function(H){var C=this.JSC$19620_parsedOptions_,S=C.valueProto_;Z8(H,S.getSize(),C.signatureFlagProto_.getSize())&&S.setSize(H);return this};
_.F.setToken=function(H){H=H||void 0;var C=this.JSC$19620_parsedOptions_,S=C.valueProto_;Z8(H,S.getToken(),C.signatureFlagProto_.getToken())&&S.setToken(H);return this};
_.F.JSC$19622_setWidth=function(H){var C=this.JSC$19620_parsedOptions_,S=C.valueProto_;Z8(H,S.getWidth(),C.signatureFlagProto_.getWidth())&&_.rO(S,12,H);return this};
_.F.clearOptions=function(){fJo(this,"");return this};
_.F.build=function(){this.JSC$19620_components_.length=0;var H=this.JSC$19620_parsedOptions_,C=H.valueProto_;H=H.signatureFlagProto_;cr(this,"s",C.getSize(),H.getSize());cr(this,"w",C.getWidth(),H.getWidth());YW(this,"c",_.QK(C,2),_.QK(H,2));YW(this,"d",_.QK(C,3),_.QK(H,3));cr(this,"h",C.getHeight(),H.getHeight());YW(this,"s",b1(C,33),b1(H,33));YW(this,"h",C.getHtml(),H.getHtml());YW(this,"p",_.QK(C,19),_.QK(H,19));YW(this,"pp",_.QK(C,52),_.QK(H,52));YW(this,"pf",_.QK(C,67),_.QK(H,67));YW(this,"n",
_.QK(C,20),_.QK(H,20));cr(this,"r",Eo(C,26),Eo(H,26));YW(this,"r",_.QK(C,6),_.QK(H,6));YW(this,"o",b1(C,27),b1(H,27));var S=_.XF(C,7,_.Eb);zU(this,"o",S,_.XF(H,7,_.Eb));S=_.XF(C,29,_.Eb);zU(this,"j",S,_.XF(H,29,_.Eb));cr(this,"x",Eo(C,9),Eo(H,9));cr(this,"y",Eo(C,10),Eo(H,10));cr(this,"z",Eo(C,11),Eo(H,11));YW(this,"g",_.QK(C,14),_.QK(H,14));cr(this,"e",Eo(C,15),Eo(H,15));zU(this,"f",_.ud(C,16),_.ud(H,16));YW(this,"k",b1(C,17),b1(H,17));YW(this,"u",b1(C,18),!0);YW(this,"ut",b1(C,45),!0);YW(this,"i",
b1(C,22),!0);YW(this,"a",b1(C,21),b1(H,21));YW(this,"b",_.QK(C,23),_.QK(H,23));cr(this,"b",Eo(C,38),Eo(H,38));cr(this,"c",Eo(C,39),Eo(H,39),16,8);zU(this,"q",_.ud(C,28),_.ud(H,28));YW(this,"fh",b1(C,30),b1(H,30));YW(this,"fv",b1(C,31),b1(H,31));YW(this,"fg",_.QK(C,34),_.QK(H,34));YW(this,"ci",b1(C,32),b1(H,32));zU(this,"t",C.getToken(),H.getToken());zU(this,"nt0",_.ud(C,36),_.ud(H,36));YW(this,"rw",_.QK(C,35),_.QK(H,35));YW(this,"rwu",_.QK(C,41),_.QK(H,41));YW(this,"rwa",_.QK(C,64),_.QK(H,64));YW(this,
"nw",_.QK(C,48),_.QK(H,48));YW(this,"rh",_.QK(C,49),_.QK(H,49));YW(this,"no",_.QK(C,37),_.QK(H,37));YW(this,"ns",b1(C,40),b1(H,40));cr(this,"k",Eo(C,42),Eo(H,42));cr(this,"p",Eo(C,43),Eo(H,43));cr(this,"l",Eo(C,44),Eo(H,44));cr(this,"v",Eo(C,62),Eo(H,62));YW(this,"nu",b1(C,46),b1(H,46));YW(this,"ft",b1(C,50),b1(H,50));YW(this,"cc",b1(C,51),b1(H,51));YW(this,"nd",b1(C,53),b1(H,53));YW(this,"ip",b1(C,54),b1(H,54));YW(this,"nc",b1(C,55),b1(H,55));cr(this,"a",Eo(C,56),Eo(H,56));YW(this,"rj",b1(C,57),
b1(H,57));YW(this,"rp",b1(C,58),b1(H,58));YW(this,"rg",b1(C,59),b1(H,59));YW(this,"pd",b1(C,60),b1(H,60));YW(this,"pa",b1(C,61),b1(H,61));cr(this,"m",Eo(C,63),Eo(H,63));cr(this,"vb",e5(C,68),e5(H,68));cr(this,"vl",e5(C,69),e5(H,69));YW(this,"lf",b1(C,65),b1(H,65));YW(this,"mv",b1(C,66),b1(H,66));YW(this,"id",b1(C,70),b1(H,70));cr(this,"ic",Eo(C,71),!0);YW(this,"pg",_.QK(C,72),_.QK(H,72));YW(this,"mo",b1(C,73),b1(H,73));YW(this,"al",b1(C,74),b1(H,74));cr(this,"iv",e5(C,75),e5(H,75));cr(this,"pi",u1(C,
76),u1(H,76));cr(this,"ya",u1(C,77),u1(H,77));cr(this,"ro",u1(C,78),u1(H,78));cr(this,"fo",u1(C,79),u1(H,79));YW(this,"df",b1(C,80),b1(H,80));zU(this,"mm",_.ud(C,81),_.ud(H,81));YW(this,"sg",b1(C,82),b1(H,82));YW(this,"gd",b1(C,83),b1(H,83));YW(this,"fm",b1(C,84),b1(H,84));cr(this,"ba",Eo(C,85),Eo(H,85));cr(this,"br",Eo(C,86),Eo(H,86));cr(this,"bc",C.getBackgroundColor(),H.getBackgroundColor(),16,8);cr(this,"pc",Eo(C,88),Eo(H,88),16,8);cr(this,"sc",Eo(C,89),Eo(H,89),16,8);YW(this,"dv",b1(C,90),b1(H,
90));YW(this,"md",b1(C,91),b1(H,91));cr(this,"cp",Eo(C,92),Eo(H,92));YW(this,"sm",b1(C,93),b1(H,93));cr(this,"cv",Eo(C,94),Eo(H,94));YW(this,"ng",b1(C,95),b1(H,95));YW(this,"il",b1(C,96),b1(H,96));YW(this,"lo",b1(C,97),b1(H,97));YW(this,"vm",b1(C,98),b1(H,98));zU(this,"dc",_.ud(C,99),_.ud(H,99));YW(this,"rf",b1(C,100),b1(H,100));zU(this,"vf",_.ud(C,102),_.ud(H,102));YW(this,"ra",_.QK(C,103),_.QK(H,103));YW(this,"ckm",b1(C,104),b1(H,104));YW(this,"gm",b1(C,105),b1(H,105));YW(this,"ngm",b1(C,106),b1(H,
106));cr(this,"em",Eo(C,107),Eo(H,107));YW(this,"cr",b1(C,108),b1(H,108));cr(this,"sl",C.getStoryboardLevel(),H.getStoryboardLevel());cr(this,"sb",Eo(C,110),Eo(H,110));zU(this,"pt",_.ud(C,111),_.ud(H,111));zU(this,"gce",_.ud(C,112),_.ud(H,112));YW(this,"tm",b1(C,113),b1(H,113));YW(this,"ntm",b1(C,114),b1(H,114));cr(this,"mp",Eo(C,115),Eo(H,115));return this.JSC$19620_components_.join("-")};
var cr=function(H,C,S,w,A,J){if(S!=null){var c=A==void 0||A!=10&&A!=16?10:A;S=Number(S).toString(c);A=new i8o;A.append(c==16?"0x":"");c=A.append;J==void 0?J="":(J-=S.length,J=J<=0?"":(0,_.zW1)("0",J));c.call(A,J);A.append(S);lJt(H,C,A.toString(),!!Number(w))}},YW=function(H,C,S,w){S&&lJt(H,C,"",!!w)},zU=function(H,C,S,w){S&&lJt(H,C,String(S),!!Number(w))},lJt=function(H,C,S,w){w&&(C=C.charAt(0).toUpperCase()+C.substring(1));
H.JSC$19620_components_.push(C+S)};_.Zh(eq,GzR);_.F=eq.prototype;_.F.JSC$19622_setCrop=function(H){H&&Mu(this);return eq.superClass_.JSC$19622_setCrop.call(this,H)};
_.F.JSC$19622_setHeight=function(H){H=H==null||H<0?void 0:H;H!=null&&this.setSize();return eq.superClass_.JSC$19622_setHeight.call(this,H)};
_.F.JSC$19622_setImageCrop=function(H){H&&Mu(this);return eq.superClass_.JSC$19622_setImageCrop.call(this,H)};
_.F.JSC$19622_setCircleCrop=function(H){H&&Mu(this);return eq.superClass_.JSC$19622_setCircleCrop.call(this,H)};
_.F.setSize=function(H){_.U$(H)&&(H=Math.max(H.width,H.height));H=H==null||H<0?void 0:H;H!=null&&(this.JSC$19622_setWidth(),this.JSC$19622_setHeight());return eq.superClass_.setSize.call(this,H)};
_.F.JSC$19622_setSmartCrop=function(H){H&&Mu(this);return eq.superClass_.JSC$19622_setSmartCrop.call(this,H)};
_.F.JSC$19622_setSmartCropNoClip=function(H){H&&Mu(this);return eq.superClass_.JSC$19622_setSmartCropNoClip.call(this,H)};
_.F.JSC$19622_setSmartCropUseFace=function(H){H&&Mu(this);return eq.superClass_.JSC$19622_setSmartCropUseFace.call(this,H)};
_.F.setCenterCrop=function(H){H&&Mu(this);return eq.superClass_.setCenterCrop.call(this,H)};
_.F.JSC$19622_setPad=function(H){H&&Mu(this);return eq.superClass_.JSC$19622_setPad.call(this,H)};
_.F.JSC$19622_setWidth=function(H){H=H==null||H<0?void 0:H;H!=null&&this.setSize();return eq.superClass_.JSC$19622_setWidth.call(this,H)};
var Vvr=function(H){H.clearOptions();var C=H.JSC$19620_parsedOptions_,S=C.valueProto_;Z8(!0,_.QK(S,3),_.QK(C.signatureFlagProto_,3))&&_.TZ(S,3,!0);return H},Mu=function(H){H.setCenterCrop();
H.JSC$19622_setCircleCrop();H.JSC$19622_setCrop();H.JSC$19622_setImageCrop();H.JSC$19622_setPad();H.JSC$19622_setSmartCrop();H.JSC$19622_setSmartCropNoClip();H.JSC$19622_setSmartCropUseFace()};
eq.prototype.build=function(){var H=this.JSC$19620_parsedOptions_.valueProto_;b1(H,18)||b1(H,45)?H.getSize()||this.setSize(0):(H=this.JSC$19620_parsedOptions_.valueProto_,H.getSize()||H.getWidth()||H.getHeight()||(this.setSize(),this.JSC$19622_setHeight(),this.JSC$19622_setWidth(),Mu(this)));return eq.superClass_.build.call(this)};var ogt=/^[^\/]*\/\//,qu=function(H,C){C=C===void 0?!1:C;this.original_=H;this.originalPrefix_="";(H=this.original_.match(ogt))&&H[0]?(this.originalPrefix_=H[0],H=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):H="http://"+this.original_;this.uri_=_.I7(H,!0);this.isFreeformUrl_=C;this.JSC$19626_valid_=!0;this.obfuscated_=!1},OH_=function(H,C){H.JSC$19628_pathPrefix_=H.JSC$19628_pathPrefix_?H.JSC$19628_pathPrefix_+("/"+C):C},TU=function(H){if(H.JSC$19628_components_==
void 0){var C=H.uri_.getPath().substring(1);
H.JSC$19628_pathPrefix_=null;if(H.isFreeformUrl_){H.JSC$19628_components_=[];if((C.match(/=/g)||[]).length>1)return H.JSC$19626_valid_=!1,H.JSC$19628_components_;var S=C.indexOf("=");S!=-1?(H.JSC$19628_components_.push(C.substr(0,S)),H.JSC$19628_components_.push(C.substr(S+1))):H.JSC$19628_components_.push(C);return H.JSC$19628_components_}H.JSC$19628_components_=C.split("/");C=H.JSC$19628_components_.length;C>2&&H.JSC$19628_components_[0]=="u"&&(OH_(H,H.JSC$19628_components_[0]+"/"+H.JSC$19628_components_[1]),
H.JSC$19628_components_.shift(),H.JSC$19628_components_.shift(),C-=2);if(C==0||C==4||C>7)return H.JSC$19626_valid_=!1,H.JSC$19628_components_;if(C==2)OH_(H,H.JSC$19628_components_[0]);else if(H.JSC$19628_components_[0]=="image")OH_(H,H.JSC$19628_components_[0]);else if(C==7||C==3)return H.JSC$19626_valid_=!1,H.JSC$19628_components_;if(C<=3){H.obfuscated_=!0;C==3&&(OH_(H,H.JSC$19628_components_[1]),H.JSC$19628_components_.shift(),--C);--C;S=H.JSC$19628_components_[C];var w=S.indexOf("=");w!=-1&&(H.JSC$19628_components_[C]=
S.substr(0,w),H.JSC$19628_components_.push(S.substr(w+1)))}}return H.JSC$19628_components_};
qu.prototype.isValid=function(){TU(this);return this.JSC$19626_valid_};
qu.prototype.isObfuscated=function(){TU(this);return this.obfuscated_};
var XWO=function(H){TU(H);return H.isFreeformUrl_},mH=function(H){TU(H);
H.JSC$19628_pathPrefix_==void 0&&(H.JSC$19628_pathPrefix_=null);return H.JSC$19628_pathPrefix_},QF_=function(H){switch(TU(H).length){case 7:return!0;
case 6:return mH(H)==null;case 5:return!1;case 3:return!0;case 2:return mH(H)==null;case 1:return!1;default:return!1}},Wr=function(H,C){if(XWO(H))a:{switch(C){case 7:C=0;
break;case 4:if(!QF_(H)){H=null;break a}C=1;break;default:H=null;break a}H=TU(H)[C]}else if(H.isObfuscated())a:{var S=mH(H)!=null?1:0;switch(C){case 6:C=S;break;case 4:if(!QF_(H)){H=null;break a}C=1+S;break;default:H=null;break a}H=TU(H)[C]}else a:{S=mH(H)!=null?1:0;switch(C){case 0:C=S;break;case 1:C=1+S;break;case 2:C=2+S;break;case 3:C=3+S;break;case 4:if(!QF_(H)){H=null;break a}C=4+S;break;case 5:C=QF_(H)?1:0;C=4+S+C;break;default:H=null;break a}H=TU(H)[C]}return H};
qu.prototype.getOptions=function(){this.options_==void 0&&(this.options_=Wr(this,4));return this.options_};var l2O=function(){};
l2O.prototype.parse=function(H,C){return new f2O(H,C===void 0?!1:C)};
var f2O=function(H,C){qu.call(this,H,C===void 0?!1:C)};
_.G(f2O,qu);_.Zh(ul,eq);var vzp;ul.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
ul.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var H=ul.superClass_.build.call(this),C=[];mH(this.parsedImageUrl_)!=null&&C.push(mH(this.parsedImageUrl_));var S=XWO(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var w=this.parsedImageUrl_;w.obfuscatedData_==void 0&&(w.obfuscatedData_=Wr(w,6));C.push(w.obfuscatedData_+(H?"="+H:""))}else if(S){w=C.push;var A=this.parsedImageUrl_;A.freeformUrlPath_===void 0&&(A.freeformUrlPath_=Wr(A,
7));w.call(C,A.freeformUrlPath_);H&&C.push(H)}else w=C.push,A=this.parsedImageUrl_,A.obfuscatedGaiaId_==void 0&&(A.obfuscatedGaiaId_=Wr(A,0)),w.call(C,A.obfuscatedGaiaId_),w=C.push,A=this.parsedImageUrl_,A.photoId_==void 0&&(A.photoId_=Wr(A,1)),w.call(C,A.photoId_),w=C.push,A=this.parsedImageUrl_,A.imageVersion_==void 0&&(A.imageVersion_=Wr(A,2)),w.call(C,A.imageVersion_),w=C.push,A=this.parsedImageUrl_,A.signature_==void 0&&(A.signature_=Wr(A,3)),w.call(C,A.signature_),H&&C.push(H),H=C.push,w=this.parsedImageUrl_,
w.filename_==void 0&&(w.filename_=Wr(w,5)),H.call(C,w.filename_);C=S?C.join("="):C.join("/");C=_.I7(this.protocolPrefix_+this.JSC$19634_domain_+"/"+C+(this.JSC$19634_query_?"?"+this.JSC$19634_query_:"")).toString();C.startsWith("%3a//")&&(C=C.replace("%3a//","://"));return C};var dZq=_.xC(["viewBox"]),PkO=_.xC(["width"]),$Zi=_.xC(["height"]),pWi=_.xC(["fill"]),kTK=_.xC(["id"]),hJr=_.xC(["x"]),ngR=_.xC(["y"]);ozi.prototype.getLength=function(){return this.parsedData.length};
ozi.prototype.write=function(H){for(var C=0,S=this.parsedData.length;C<S;C++)H.put(this.parsedData[C],8)};
var pY3=function(H,C){var S=new ozi(C);H.dataList.push(S);S=H.errorCorrectLevel;var w=1,A=encodeURI(C).toString().replace(/%[0-9a-fA-F]{2}/g,"a");C=A.length+(A.length!=C?3:0);A=0;for(var J=yd.length;A<=J;A++){var c=0;switch(S){case 1:c=yd[A][0];break;case 0:c=yd[A][1];break;case 3:c=yd[A][2];break;case 2:c=yd[A][3]}if(C<=c)break;else w++}if(w>yd.length)throw Error("Lk");H.typeNumber=w;H.dataCache=null};
OxK.prototype.isDark=function(H,C){if(H<0||this.moduleCount<=H||C<0||this.moduleCount<=C)throw Error("Dk`"+H+"`"+C);return this.modules[H][C]};
for(var kz9=function(H,C,S){H.moduleCount=H.typeNumber*4+17;H.modules=Array(H.moduleCount);for(var w=0;w<H.moduleCount;w++){H.modules[w]=Array(H.moduleCount);for(var A=0;A<H.moduleCount;A++)H.modules[w][A]=null}riK(H,0,0);riK(H,H.moduleCount-7,0);riK(H,0,H.moduleCount-7);w=Bej[H.typeNumber-1];for(A=0;A<w.length;A++)for(var J=0;J<w.length;J++){var c=w[A],Y=w[J];if(H.modules[c][Y]==null)for(var M=-2;M<=2;M++)for(var m=-2;m<=2;m++)H.modules[c+M][Y+m]=M==-2||M==2||m==-2||m==2||M==0&&m==0?!0:!1}for(w=
8;w<H.moduleCount-8;w++)H.modules[w][6]==null&&(H.modules[w][6]=w%2==0);for(w=8;w<H.moduleCount-8;w++)H.modules[6][w]==null&&(H.modules[6][w]=w%2==0);w=H.errorCorrectLevel<<3|S;for(A=w<<10;Nu(A)-Nu(1335)>=0;)A^=1335<<Nu(A)-Nu(1335);w=(w<<10|A)^21522;for(A=0;A<15;A++)J=!C&&(w>>A&1)==1,A<6?H.modules[A][8]=J:A<8?H.modules[A+1][8]=J:H.modules[H.moduleCount-15+A][8]=J;for(A=0;A<15;A++)J=!C&&(w>>A&1)==1,A<8?H.modules[8][H.moduleCount-A-1]=J:A<9?H.modules[8][15-A-1+1]=J:H.modules[8][15-A-1]=J;H.modules[H.moduleCount-
8][8]=!C;if(H.typeNumber>=7){w=H.typeNumber;for(A=w<<12;Nu(A)-Nu(7973)>=0;)A^=7973<<Nu(A)-Nu(7973);w=w<<12|A;for(A=0;A<18;A++)J=!C&&(w>>A&1)==1,H.modules[Math.floor(A/3)][A%3+H.moduleCount-8-3]=J;for(A=0;A<18;A++)J=!C&&(w>>A&1)==1,H.modules[A%3+H.moduleCount-8-3][Math.floor(A/3)]=J}if(H.dataCache==null){A=H.typeNumber;J=H.dataList;C=H.errorCorrectLevel;w=DZO(A,C);if(w==void 0)throw Error("Kk`"+A+"`"+C);c=w.length/3;C=[];for(Y=0;Y<c;Y++){M=w[Y*3];m=w[Y*3+1];for(var W=w[Y*3+2],y=0;y<M;y++)C.push(new XYR(m,
W))}w=new QZR;for(c=0;c<J.length;c++)Y=J[c],w.put(Y.mode,4),w.put(Y.getLength(),K9i(Y.mode,A)),Y.write(w);for(c=A=0;c<C.length;c++)A+=C[c].dataCount;if(w.length>A*8)throw Error("Ek`"+w.length+"`"+A*8);for(w.length+4<=A*8&&w.put(0,4);w.length%8!=0;)tv9(w,!1);for(;!(w.length>=A*8);){w.put(236,8);if(w.length>=A*8)break;w.put(17,8)}J=A=m=0;c=Array(C.length);Y=Array(C.length);for(M=0;M<C.length;M++){y=C[M].dataCount;var N=C[M].totalCount-y;A=Math.max(A,y);J=Math.max(J,N);c[M]=Array(y);for(W=0;W<c[M].length;W++)c[M][W]=
255&w.buffer[W+m];m+=y;W=N;y=new GO([1],0);for(N=0;N<W;N++)y=y.multiply(new GO([1,L9p(N)],0));W=y;y=(new GO(c[M],W.getLength()-1)).mod(W);Y[M]=Array(W.getLength()-1);for(W=0;W<Y[M].length;W++)N=W+y.getLength()-Y[M].length,Y[M][W]=N>=0?y.get(N):0}for(W=w=0;W<C.length;W++)w+=C[W].totalCount;w=Array(w);for(W=m=0;W<A;W++)for(M=0;M<C.length;M++)W<c[M].length&&(w[m++]=c[M][W]);for(W=0;W<J;W++)for(M=0;M<C.length;M++)W<Y[M].length&&(w[m++]=Y[M][W]);H.dataCache=w}C=H.dataCache;w=-1;A=H.moduleCount-1;J=7;c=
0;for(Y=H.moduleCount-1;Y>0;Y-=2)for(Y==6&&Y--;;){for(M=0;M<2;M++)H.modules[A][Y-M]==null&&(m=!1,c<C.length&&(m=(C[c]>>>J&1)==1),ggq(S,A,Y-M)&&(m=!m),H.modules[A][Y-M]=m,J--,J==-1&&(c++,J=7));A+=w;if(A<0||H.moduleCount<=A){A-=w;w=-w;break}}},riK=function(H,C,S){for(var w=-1;w<=7;w++)if(!(C+w<=-1||H.moduleCount<=C+w))for(var A=-1;A<=7;A++)S+A<=-1||H.moduleCount<=S+A||(H.modules[C+w][S+A]=0<=w&&w<=6&&(A==0||A==6)||0<=A&&A<=6&&(w==0||w==6)||2<=w&&w<=4&&2<=A&&A<=4?!0:!1)},hKi=function(H){for(var C=0,
S=0,w=0;w<8;w++){kz9(H,!0,w);
var A=H;for(var J=A.moduleCount,c=0,Y=0;Y<J;Y++)for(var M=0;M<J;M++){for(var m=0,W=A.isDark(Y,M),y=-1;y<=1;y++)if(!(Y+y<0||J<=Y+y))for(var N=-1;N<=1;N++)M+N<0||J<=M+N||(y!=0||N!=0)&&W==A.isDark(Y+y,M+N)&&m++;m>5&&(c+=3+m-5)}for(Y=0;Y<J-1;Y++)for(M=0;M<J-1;M++)if(m=0,A.isDark(Y,M)&&m++,A.isDark(Y+1,M)&&m++,A.isDark(Y,M+1)&&m++,A.isDark(Y+1,M+1)&&m++,m==0||m==4)c+=3;for(Y=0;Y<J;Y++)for(M=0;M<J-6;M++)A.isDark(Y,M)&&!A.isDark(Y,M+1)&&A.isDark(Y,M+2)&&A.isDark(Y,M+3)&&A.isDark(Y,M+4)&&!A.isDark(Y,M+5)&&
A.isDark(Y,M+6)&&(c+=40);for(M=0;M<J;M++)for(Y=0;Y<J-6;Y++)A.isDark(Y,M)&&!A.isDark(Y+1,M)&&A.isDark(Y+2,M)&&A.isDark(Y+3,M)&&A.isDark(Y+4,M)&&!A.isDark(Y+5,M)&&A.isDark(Y+6,M)&&(c+=40);for(M=m=0;M<J;M++)for(Y=0;Y<J;Y++)A.isDark(Y,M)&&m++;A=c+=Math.abs(100*m/J/J-50)/5*10;if(w==0||C>A)C=A,S=w}return S},Bej=[[],
[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]],Nu=function(H){for(var C=0;H!=0;)C++,H>>>=1;return C},ggq=function(H,C,S){switch(H){case 0:return(C+S)%2==0;
case 1:return C%2==0;case 2:return S%3==0;case 3:return(C+S)%3==0;case 4:return(Math.floor(C/2)+Math.floor(S/3))%2==0;case 5:return C*S%2+C*S%3==0;case 6:return(C*S%2+C*S%3)%2==0;case 7:return(C*S%3+(C+S)%2)%2==0;default:throw Error("Fk`"+H);}},K9i=function(H,C){if(1<=C&&C<10)switch(H){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Gk`"+H);}else if(C<27)switch(H){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Gk`"+H);}else if(C<41)switch(H){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Gk`"+H);}else throw Error("Hk`"+C);},bx=function(H){if(H<1)throw Error("Ik`"+H);
return UZO[H]},L9p=function(H){for(;H<0;)H+=255;
for(;H>=256;)H-=255;return E9[H]},E9=Array(256),UZO=Array(256),RJO=0;RJO<8;RJO++)E9[RJO]=1<<RJO;
for(var eb=8;eb<256;eb++)E9[eb]=E9[eb-4]^E9[eb-5]^E9[eb-6]^E9[eb-8];for(var IJo=0;IJo<255;IJo++)UZO[E9[IJo]]=IJo;GO.prototype.get=function(H){return this.num[H]};
GO.prototype.getLength=function(){return this.num.length};
GO.prototype.multiply=function(H){for(var C=Array(this.getLength()+H.getLength()-1),S=0;S<this.getLength();S++)for(var w=0;w<H.getLength();w++)C[S+w]^=L9p(bx(this.get(S))+bx(H.get(w)));return new GO(C,0)};
GO.prototype.mod=function(H){if(this.getLength()-H.getLength()<0)return this;for(var C=bx(this.get(0))-bx(H.get(0)),S=Array(this.getLength()),w=0;w<this.getLength();w++)S[w]=this.get(w);for(w=0;w<H.getLength();w++)S[w]^=L9p(bx(H.get(w))+C);return(new GO(S,0)).mod(H)};
var aJ_=[[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]],DZO=function(H,C){switch(C){case 1:return aJ_[(H-1)*4];case 0:return aJ_[(H-1)*4+1];case 3:return aJ_[(H-1)*4+2];case 2:return aJ_[(H-1)*4+3]}};
QZR.prototype.get=function(H){return(this.buffer[Math.floor(H/8)]>>>7-H%8&1)==1};
QZR.prototype.put=function(H,C){for(var S=0;S<C;S++)tv9(this,(H>>>C-S-1&1)==1)};
var tv9=function(H,C){var S=Math.floor(H.length/8);H.buffer.length<=S&&H.buffer.push(0);C&&(H.buffer[S]|=128>>>H.length%8);H.length++},yd=[[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]],$TK=function(){var H=function(C,S){this.JSC$19654__el=C;this.JSC$19654__htOption=S};
H.prototype.draw=function(C){function S(W,y){W=document.createElementNS("http://www.w3.org/2000/svg",W);for(var N in y)y.hasOwnProperty(N)&&(N==="href"?_.qEp(W,y[N]):_.ZA([_.cj(dZq),_.cj(PkO),_.cj($Zi),_.cj(pWi),_.cj(kTK),_.cj(hJr),_.cj(ngR)],W,N,y[N]));return W}
var w=this.JSC$19654__htOption,A=this.JSC$19654__el,J=C.moduleCount;this.clear();var c=S("svg",{viewBox:"0 0 "+String(J)+" "+String(J),width:"100%",height:"100%",fill:w.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});A.appendChild(c);c.appendChild(S("rect",{fill:w.colorLight,width:"100%",height:"100%"}));c.appendChild(S("rect",{fill:w.colorDark,width:"1",height:"1",id:"template"}));for(var Y=0;Y<J;Y++)for(var M=0;M<J;M++)if(C.isDark(Y,M)){var m=S("use",{x:String(Y),y:String(M),href:"#template"});
c.appendChild(m)}};
H.prototype.clear=function(){for(;this.JSC$19654__el.hasChildNodes();)this.JSC$19654__el.removeChild(this.JSC$19654__el.lastChild)};
return H}(),PAi=document.documentElement.tagName.toLowerCase()==="svg"?$TK:typeof CanvasRenderingContext2D!="undefined"?function(){var H=function(C,S){this._bIsPainted=!1;
dTp();this.JSC$19654__htOption=S;this._elCanvas=document.createElement("canvas");this._elCanvas.width=S.width;this._elCanvas.height=S.height;C.appendChild(this._elCanvas);this.JSC$19654__el=C;this._oContext=this._elCanvas.getContext("2d");this._bIsPainted=!1;this._elImage=document.createElement("img");this._elImage.alt="Scan me!";this._elImage.style.display="none";this.JSC$19654__el.appendChild(this._elImage);this._bSupportDataURI=null};
H.prototype._onMakeImage=function(){var C=this._elCanvas.toDataURL("image/png");this._elImage.src=C;this._elImage.style.display="block";this._elCanvas.style.display="none"};
H.prototype._safeSetDataURI=function(C,S){var w=this;w._fFail=S;w._fSuccess=C;w._bSupportDataURI===null?(C=_.GZ("IMG"),S=function(){w._bSupportDataURI=!1;w._fFail&&w._fFail.call(w)},C.onabort=S,C.onerror=S,C.onload=function(){w._bSupportDataURI=!0;
w._fSuccess&&w._fSuccess.call(w)},C.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):w._bSupportDataURI===!0&&w._fSuccess?w._fSuccess.call(w):w._bSupportDataURI===!1&&w._fFail&&w._fFail.call(w)};
H.prototype.draw=function(C){var S=this._oContext,w=this.JSC$19654__htOption,A=C.moduleCount,J=w.width/A,c=w.height/A,Y=Math.round(J),M=Math.round(c);this._elImage.style.display="none";this.clear();for(var m=0;m<A;m++)for(var W=0;W<A;W++){var y=C.isDark(m,W),N=W*J,b=m*c;S.strokeStyle=y?w.colorDark:w.colorLight;S.lineWidth=1;S.fillStyle=y?w.colorDark:w.colorLight;S.fillRect(N,b,J,c);S.strokeRect(Math.floor(N)+.5,Math.floor(b)+.5,Y,M);S.strokeRect(Math.ceil(N)-.5,Math.ceil(b)-.5,Y,M)}this._bIsPainted=
!0};
H.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
H.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
H.prototype.round=function(C){return C?Math.floor(C*1E3)/1E3:C};
return H}():function(){var H=function(C,S){this.JSC$19654__el=C;
this.JSC$19654__htOption=S};
H.prototype.draw=function(C){for(var S=this.JSC$19654__htOption,w=this.JSC$19654__el,A=C.moduleCount,J=Math.floor(S.width/A),c=Math.floor(S.height/A),Y=['<table style="border:0;border-collapse:collapse;">'],M=0;M<A;M++){Y.push("<tr>");for(var m=0;m<A;m++)Y.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+J+"px;height:"+c+"px;background-color:"+(C.isDark(M,m)?S.colorDark:S.colorLight)+';"></td>');Y.push("</tr>")}Y.push("</table>");C=Y.join("");C=_.sOW(_.w3i,C);_.FN(w,C);
C=w.childNodes[0];A=(S.width-C.offsetWidth)/2;J=(S.height-C.offsetHeight)/2;A>0&&J>0&&(C.style.margin=J+"px "+A+"px")};
H.prototype.clear=function(){this.JSC$19654__el.textContent=""};
return H}();
nzK.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19657__android||this.JSC$19657__android>=3)&&this._oDrawing.makeImage()};
nzK.prototype.clear=function(){this._oDrawing.clear()};
_.s$.QRCode=nzK;var xZO={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var ux=function(){};
ux.prototype.stringify=function(H){return _.s$.JSON.stringify(H,void 0)};
ux.prototype.parse=function(H){return _.s$.JSON.parse(H,void 0)};var HlO=function(){_.Xc.call(this,"z")};
_.Zh(HlO,_.Xc);var il9=function(){_.Xc.call(this,"y")};
_.Zh(il9,_.Xc);var CDi=null,SQi=function(){return CDi=CDi||new _.ph},sxi=function(H){_.Xc.call(this,"serverreachability",H)};
_.Zh(sxi,_.Xc);var GU=function(H){var C=SQi();C.dispatchEvent(new sxi(C,H))},jxj=function(H,C){_.Xc.call(this,"statevent",H);
this.stat=C};
_.Zh(jxj,_.Xc);var fZ=function(H){var C=SQi();C.dispatchEvent(new jxj(C,H))},waj=function(H,C,S,w){_.Xc.call(this,"timingevent",H);
this.size=C;this.rtt=S;this.retries=w};
_.Zh(waj,_.Xc);var AnO=function(H,C,S){var w=SQi();w.dispatchEvent(new waj(w,H,C,S))},vr=function(H,C){if(typeof H!=="function")throw Error("Mk");
return _.s$.setTimeout(function(){H()},C)};var lx=function(){this.redactEnabled_=!0};
lx.prototype.disableRedact=function(){this.redactEnabled_=!1};
var Jnj=function(H,C,S,w,A,J){H.info(function(){if(H.redactEnabled_)if(J){var c="";for(var Y=J.split("&"),M=0;M<Y.length;M++){var m=Y[M].split("=");if(m.length>1){var W=m[0];m=m[1];var y=W.split("_");c=y.length>=2&&y[1]=="type"?c+(W+"="+m+"&"):c+(W+"=redacted&")}}}else c=null;else c=J;return"XMLHTTP REQ ("+w+") [attempt "+A+"]: "+C+"\n"+S+"\n"+c})},Fui=function(H,C,S,w,A,J,c){H.info(function(){return"XMLHTTP RESP ("+w+") [ attempt "+A+"]: "+C+"\n"+S+"\n"+J+" "+c})},Vd=function(H,C,S,w){H.info(function(){return"XMLHTTP TEXT ("+
C+"): "+Zl9(H,S)+(w?" "+w:"")})},cnt=function(H,C){H.info(function(){return"TIMEOUT: "+C})};
lx.prototype.debug=function(){};
lx.prototype.info=function(){};
lx.prototype.warning=function(){};
var Zl9=function(H,C){if(!H.redactEnabled_)return C;if(!C)return null;try{var S=JSON.parse(C);if(S)for(var w=0;w<S.length;w++)if(Array.isArray(S[w])){var A=S[w];if(!(A.length<2)){var J=A[1];if(Array.isArray(J)&&!(J.length<1)){var c=J[0];if(c!="noop"&&c!="stop"&&c!="close")for(var Y=1;Y<J.length;Y++)J[Y]=""}}}return(0,_.Kh)(S)}catch(M){return H.debug("Exception parsing expected JS array - probably was not JS"),C}};var ol=function(H,C,S,w,A){this.JSC$19679_channel_=H;this.JSC$19679_channelDebug_=C;this.sid_=S;this.JSC$19679_rid_=w;this.JSC$19679_retryId_=A||1;this.JSC$19679_eventHandler_=new _.qQ(this);this.timeout_=45E3;this.JSC$19679_extraHeaders_=null;this.JSC$19679_successful_=!1;this.JSC$19679_postData_=this.JSC$19679_requestUri_=this.JSC$19679_baseUri_=this.JSC$19679_type_=this.JSC$19679_requestStartTime_=this.JSC$19679_watchDogTimeoutTime_=this.JSC$19679_watchDogTimerId_=null;this.JSC$19679_pendingMessages_=
[];this.JSC$19679_xmlHttp_=null;this.JSC$19679_xmlHttpChunkStart_=0;this.JSC$19679_lastError_=this.JSC$19679_verb_=null;this.JSC$19679_lastStatusCode_=-1;this.JSC$19679_cancelled_=!1;this.JSC$19679_readyStateChangeThrottleMs_=0;this.JSC$19679_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new YQO},YQO=function(){this.JSC$19681_textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},zZO=function(H,C){switch(H){case 0:return"Non-200 return code ("+C+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},McO={},qQO={};
ol.prototype.setTimeout=function(H){this.timeout_=H};
var mfj=function(H,C,S){H.JSC$19679_type_=1;H.JSC$19679_baseUri_=_.u0(C.clone());H.JSC$19679_postData_=S;H.decodeChunks_=!0;TAq(H,null)},TAq=function(H,C){H.JSC$19679_requestStartTime_=Date.now();
Wu3(H);H.JSC$19679_requestUri_=H.JSC$19679_baseUri_.clone();qP(H.JSC$19679_requestUri_,"t",H.JSC$19679_retryId_);H.JSC$19679_xmlHttpChunkStart_=0;var S=H.JSC$19679_channel_.JSC$19698_supportsCrossDomainXhrs_;H.fetchResponseState_=new YQO;H.JSC$19679_xmlHttp_=yni(H.JSC$19679_channel_,S?C:null,!H.JSC$19679_postData_);H.JSC$19679_readyStateChangeThrottleMs_>0&&(H.JSC$19679_readyStateChangeThrottle_=new _.I$((0,_.Xv)(H.JSC$19683_xmlHttpHandler_,H,H.JSC$19679_xmlHttp_),H.JSC$19679_readyStateChangeThrottleMs_));
H.JSC$19679_eventHandler_.listen(H.JSC$19679_xmlHttp_,"readystatechange",H.JSC$19683_readyStateChangeHandler_);C=H.JSC$19679_extraHeaders_?_.hb.clone(H.JSC$19679_extraHeaders_):{};H.JSC$19679_postData_?(H.JSC$19679_verb_||(H.JSC$19679_verb_="POST"),C["Content-Type"]="application/x-www-form-urlencoded",H.JSC$19679_xmlHttp_.send(H.JSC$19679_requestUri_,H.JSC$19679_verb_,H.JSC$19679_postData_,C)):(H.JSC$19679_verb_="GET",H.JSC$19679_xmlHttp_.send(H.JSC$19679_requestUri_,H.JSC$19679_verb_,null,C));GU(1);
Jnj(H.JSC$19679_channelDebug_,H.JSC$19679_verb_,H.JSC$19679_requestUri_,H.JSC$19679_rid_,H.JSC$19679_retryId_,H.JSC$19679_postData_)};
ol.prototype.JSC$19683_readyStateChangeHandler_=function(H){H=H.target;var C=this.JSC$19679_readyStateChangeThrottle_;C&&_.Lh(H)==3?(this.JSC$19679_channelDebug_.debug("Throttling readystatechange."),C.fire()):this.JSC$19683_xmlHttpHandler_(H)};
ol.prototype.JSC$19683_xmlHttpHandler_=function(H){try{H==this.JSC$19679_xmlHttp_?NAt(this):this.JSC$19679_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(C){this.JSC$19679_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),bl3(this)}finally{}};
var NAt=function(H){var C=_.Lh(H.JSC$19679_xmlHttp_),S=H.JSC$19679_xmlHttp_.JSC$9809_lastErrorCode_,w=H.JSC$19679_xmlHttp_.getStatus();if(!(C<3||C==3&&!bl3(H))){H.JSC$19679_cancelled_||C!=4||S==7||(S==8||w<=0?GU(3):GU(2));EAO(H);var A=H.JSC$19679_xmlHttp_.getStatus();H.JSC$19679_lastStatusCode_=A;S=eZr(H);bl3(H)||H.JSC$19679_channelDebug_.debug(function(){return"No response text for uri "+H.JSC$19679_requestUri_+" status "+A});
H.JSC$19679_successful_=A==200;Fui(H.JSC$19679_channelDebug_,H.JSC$19679_verb_,H.JSC$19679_requestUri_,H.JSC$19679_rid_,H.JSC$19679_retryId_,C,A);if(H.JSC$19679_successful_){if(H.decodeInitialResponse_&&!H.initialResponseDecoded_)if(w=urO(H))Vd(H.JSC$19679_channelDebug_,H.JSC$19679_rid_,w,"Initial handshake response via X-HTTP-Initial-Response"),H.initialResponseDecoded_=!0,GMr(H,w);else{H.JSC$19679_successful_=!1;H.JSC$19679_lastError_=3;fZ(12);H.JSC$19679_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
H.JSC$19679_rid_+")");O9(H);XV(H);return}H.decodeChunks_?fC_(H,C,S):(Vd(H.JSC$19679_channelDebug_,H.JSC$19679_rid_,S,null),GMr(H,S));C==4&&O9(H);H.JSC$19679_successful_&&!H.JSC$19679_cancelled_&&(C==4?vAO(H.JSC$19679_channel_,H):(H.JSC$19679_successful_=!1,Wu3(H)))}else z8t(H.JSC$19679_xmlHttp_),A==400&&S.indexOf("Unknown SID")>0?(H.JSC$19679_lastError_=3,fZ(12),H.JSC$19679_channelDebug_.warning("XMLHTTP Unknown SID ("+H.JSC$19679_rid_+")")):(H.JSC$19679_lastError_=0,fZ(13),H.JSC$19679_channelDebug_.warning("XMLHTTP Bad status "+
A+" ("+H.JSC$19679_rid_+")")),O9(H),XV(H)}},urO=function(H){return H.JSC$19679_xmlHttp_&&(H=M8(H.JSC$19679_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.YE(H)?H:null},eZr=function(H){if(!lCo(H))return H.JSC$19679_xmlHttp_.getResponseText();
var C=H.JSC$19679_xmlHttp_.getResponse();if(C==="")return"";var S="",w=C.length,A=_.Lh(H.JSC$19679_xmlHttp_)==4;if(!H.fetchResponseState_.JSC$19681_textDecoder){if(typeof TextDecoder==="undefined")return O9(H),XV(H),"";H.fetchResponseState_.JSC$19681_textDecoder=new _.s$.TextDecoder}for(var J=0;J<w;J++)H.fetchResponseState_.responseArrivedForFetch=!0,S+=H.fetchResponseState_.JSC$19681_textDecoder.decode(C[J],{stream:!(A&&J==w-1)});C.length=0;H.fetchResponseState_.responseBuffer+=S;H.JSC$19679_xmlHttpChunkStart_=
0;return H.fetchResponseState_.responseBuffer},bl3=function(H){return H.JSC$19679_xmlHttp_?H.fetchResponseState_.responseArrivedForFetch?!0:!(!H.JSC$19679_xmlHttp_.getResponseText()&&!H.JSC$19679_xmlHttp_.getResponse()):!1},lCo=function(H){return H.JSC$19679_xmlHttp_?H.JSC$19679_verb_=="GET"&&H.JSC$19679_type_!=2&&H.JSC$19679_channel_.usesFetchStreams_:!1},fC_=function(H,C,S){for(var w=!0,A;!H.JSC$19679_cancelled_&&H.JSC$19679_xmlHttpChunkStart_<S.length;)if(A=Vcq(H,S),A==qQO){C==4&&(H.JSC$19679_lastError_=
4,fZ(14),w=!1);
Vd(H.JSC$19679_channelDebug_,H.JSC$19679_rid_,null,"[Incomplete Response]");break}else if(A==McO){H.JSC$19679_lastError_=4;fZ(15);Vd(H.JSC$19679_channelDebug_,H.JSC$19679_rid_,S,"[Invalid Chunk]");w=!1;break}else Vd(H.JSC$19679_channelDebug_,H.JSC$19679_rid_,A,null),GMr(H,A);lCo(H)&&H.JSC$19679_xmlHttpChunkStart_!=0&&(H.fetchResponseState_.responseBuffer=H.fetchResponseState_.responseBuffer.slice(H.JSC$19679_xmlHttpChunkStart_),H.JSC$19679_xmlHttpChunkStart_=0);C!=4||S.length!=0||H.fetchResponseState_.responseArrivedForFetch||
(H.JSC$19679_lastError_=1,fZ(16),w=!1);H.JSC$19679_successful_=H.JSC$19679_successful_&&w;w?S.length>0&&!H.firstByteReceived_&&(H.firstByteReceived_=!0,C=H.JSC$19679_channel_,C.JSC$19698_backChannelRequest_==H&&C.detectBufferingProxy_&&!C.bpDetectionDone_&&(C.JSC$19698_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+S.length),oAr(C),C.bpDetectionDone_=!0,fZ(11))):(Vd(H.JSC$19679_channelDebug_,H.JSC$19679_rid_,S,"[Invalid Chunked Response]"),O9(H),XV(H))},Vcq=function(H,C){var S=
H.JSC$19679_xmlHttpChunkStart_,w=C.indexOf("\n",S);
if(w==-1)return qQO;S=Number(C.substring(S,w));if(isNaN(S))return McO;w+=1;if(w+S>C.length)return qQO;C=C.slice(w,w+S);H.JSC$19679_xmlHttpChunkStart_=w+S;return C};
ol.prototype.cancel=function(){this.JSC$19679_cancelled_=!0;O9(this)};
var Wu3=function(H){H.JSC$19679_watchDogTimeoutTime_=Date.now()+H.timeout_;Oli(H,H.timeout_)},Oli=function(H,C){if(H.JSC$19679_watchDogTimerId_!=null)throw Error("Nk");
H.JSC$19679_watchDogTimerId_=vr((0,_.Xv)(H.JSC$19683_onWatchDogTimeout_,H),C)},EAO=function(H){H.JSC$19679_watchDogTimerId_&&(_.s$.clearTimeout(H.JSC$19679_watchDogTimerId_),H.JSC$19679_watchDogTimerId_=null)};
ol.prototype.JSC$19683_onWatchDogTimeout_=function(){this.JSC$19679_watchDogTimerId_=null;var H=Date.now();H-this.JSC$19679_watchDogTimeoutTime_>=0?(cnt(this.JSC$19679_channelDebug_,this.JSC$19679_requestUri_),this.JSC$19679_type_!=2&&(GU(3),fZ(17)),O9(this),this.JSC$19679_lastError_=2,XV(this)):(this.JSC$19679_channelDebug_.warning("WatchDog timer called too early"),Oli(this,this.JSC$19679_watchDogTimeoutTime_-H))};
var XV=function(H){H.JSC$19679_channel_.state_==0||H.JSC$19679_cancelled_||vAO(H.JSC$19679_channel_,H)},O9=function(H){EAO(H);
_.Ak(H.JSC$19679_readyStateChangeThrottle_);H.JSC$19679_readyStateChangeThrottle_=null;H.JSC$19679_eventHandler_.removeAll();if(H.JSC$19679_xmlHttp_){var C=H.JSC$19679_xmlHttp_;H.JSC$19679_xmlHttp_=null;C.abort();C.dispose()}};
ol.prototype.getLastError=function(){return this.JSC$19679_lastError_};
var GMr=function(H,C){try{var S=H.JSC$19679_channel_;if(S.state_!=0&&(S.JSC$19698_backChannelRequest_==H||Xaj(S.forwardChannelRequestPool_,H)))if(!H.initialResponseDecoded_&&Xaj(S.forwardChannelRequestPool_,H)&&S.state_==3){try{var w=S.wireCodec_.JSC$19693_parser_.parse(C)}catch(Y){w=null}if(Array.isArray(w)&&w.length==3){C=w;if(C[0]==0)a:if(S.JSC$19698_channelDebug_.debug("Server claims our backchannel is missing."),S.JSC$19698_backChannelTimerId_)S.JSC$19698_channelDebug_.debug("But we are currently starting the request.");
else{if(S.JSC$19698_backChannelRequest_)if(S.JSC$19698_backChannelRequest_.JSC$19679_requestStartTime_+3E3<H.JSC$19679_requestStartTime_)Qxi(S),dft(S);else break a;else S.JSC$19698_channelDebug_.warning("We do not have a BackChannel established");PD9(S);fZ(18)}else{S.JSC$19698_lastPostResponseArrayId_=C[1];var A=S.JSC$19698_lastPostResponseArrayId_-S.JSC$19698_lastArrayId_;if(0<A){var J=C[2];S.JSC$19698_channelDebug_.debug(J+" bytes (in "+A+" arrays) are outstanding on the BackChannel");J<37500&&
S.enableStreaming_&&S.JSC$19698_backChannelRetryCount_==0&&!S.JSC$19698_deadBackChannelTimerId_&&(S.JSC$19698_deadBackChannelTimerId_=vr((0,_.Xv)(S.JSC$19700_onBackChannelDead_,S),6E3))}}if($f9(S.forwardChannelRequestPool_)<=1&&S.forwardChannelFlushedCallback_){try{S.forwardChannelFlushedCallback_()}catch(Y){}S.forwardChannelFlushedCallback_=void 0}}else S.JSC$19698_channelDebug_.debug("Bad POST response data returned"),Qd(S,11)}else if((H.initialResponseDecoded_||S.JSC$19698_backChannelRequest_==
H)&&Qxi(S),!_.YE(C)){var c=S.wireCodec_.JSC$19693_parser_.parse(C);S.onInput_(c,H)}GU(4)}catch(Y){}};var pai=function(H,C){this.JSC$19686_mapId=H;this.map=C;this.context=null};var kMi=function(H){this.maxPoolSizeConfigured_=H||10;_.s$.PerformanceNavigationTiming?(H=_.s$.performance.getEntriesByType("navigation"),H=H.length>0&&(H[0].nextHopProtocol=="hq"||H[0].nextHopProtocol=="h2")):H=!!(_.s$.chrome&&_.s$.chrome.loadTimes&&_.s$.chrome.loadTimes()&&_.s$.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19689_maxSize_=H?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19689_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19689_request_=null;this.JSC$19689_pendingMessages_=
[]},hZi=function(H){return H.JSC$19689_request_?!0:H.requestPool_?H.requestPool_.size>=H.JSC$19689_maxSize_:!1},$f9=function(H){return H.JSC$19689_request_?1:H.requestPool_?H.requestPool_.size:0},Xaj=function(H,C){return H.JSC$19689_request_?H.JSC$19689_request_==C:H.requestPool_?H.requestPool_.has(C):!1},nAp=function(H,C){H.requestPool_?H.requestPool_.add(C):H.JSC$19689_request_=C},rn_=function(H,C){H.JSC$19689_request_&&H.JSC$19689_request_==C?H.JSC$19689_request_=null:H.requestPool_&&H.requestPool_.has(C)&&
H.requestPool_.delete(C)};
kMi.prototype.cancel=function(){this.JSC$19689_pendingMessages_=BAo(this);if(this.JSC$19689_request_)this.JSC$19689_request_.cancel(),this.JSC$19689_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var H=_.Z(this.requestPool_.values()),C=H.next();!C.done;C=H.next())C.value.cancel();this.requestPool_.clear()}};
var BAo=function(H){if(H.JSC$19689_request_!=null)return H.JSC$19689_pendingMessages_.concat(H.JSC$19689_request_.JSC$19679_pendingMessages_);if(H.requestPool_!=null&&H.requestPool_.size!==0){var C=H.JSC$19689_pendingMessages_;H=_.Z(H.requestPool_.values());for(var S=H.next();!S.done;S=H.next())C=C.concat(S.value.JSC$19679_pendingMessages_);return C}return _.BZ(H.JSC$19689_pendingMessages_)},Dfj=function(H,C){H.JSC$19689_pendingMessages_=H.JSC$19689_pendingMessages_.concat(C)};var KuO=function(H,C){var S=new lx;S.debug("TestLoadImage: loading "+H);if(_.s$.Image){var w=new Image;w.onload=_.l9(dp,S,"TestLoadImage: loaded",!0,C,w);w.onerror=_.l9(dp,S,"TestLoadImage: error",!1,C,w);w.onabort=_.l9(dp,S,"TestLoadImage: abort",!1,C,w);w.ontimeout=_.l9(dp,S,"TestLoadImage: timeout",!1,C,w);_.s$.setTimeout(function(){if(w.ontimeout)w.ontimeout()},1E4);
w.src=H}else C(!1)},tc9=function(H,C){var S=new lx,w=new AbortController,A=setTimeout(function(){w.abort();
dp(S,"TestPingServer: timeout",!1,C)},1E4);
fetch(H,{signal:w.signal}).then(function(J){clearTimeout(A);J.ok?dp(S,"TestPingServer: ok",!0,C):dp(S,"TestPingServer: server error",!1,C)}).catch(function(){clearTimeout(A);
dp(S,"TestPingServer: error",!1,C)})},dp=function(H,C,S,w,A){try{H.debug(C),A&&(A.onload=null,A.onerror=null,A.onabort=null,A.ontimeout=null),w(S)}catch(J){}};var Luq=function(){this.JSC$19693_parser_=new ux};var Pr=function(H,C,S){return S&&S.internalChannelParams?S.internalChannelParams[H]||C:C},$W=function(H){this.serverVersion_=0;
this.JSC$19698_outgoingMaps_=[];this.JSC$19698_channelDebug_=new lx;this.JSC$19698_hostPrefix_=this.JSC$19698_backChannelUri_=this.JSC$19698_forwardChannelUri_=this.JSC$19698_path_=this.JSC$19698_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19698_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19698_extraHeaders_=null;this.JSC$19698_nextMapId_=this.JSC$19698_nextRid_=0;this.JSC$19698_failFast_=Pr("failFast",!1,H);this.enableStreaming_=this.JSC$19698_deadBackChannelTimerId_=
this.JSC$19698_backChannelTimerId_=this.JSC$19698_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19698_lastPostResponseArrayId_=this.JSC$19698_lastArrayId_=-1;this.JSC$19698_backChannelAttemptId_=this.JSC$19698_backChannelRetryCount_=this.JSC$19698_forwardChannelRetryCount_=0;this.JSC$19698_baseRetryDelayMs_=Pr("baseRetryDelayMs",5E3,H);this.JSC$19698_retryDelaySeedMs_=Pr("retryDelaySeedMs",1E4,H);this.JSC$19698_forwardChannelMaxRetries_=
Pr("forwardChannelMaxRetries",2,H);this.JSC$19698_forwardChannelRequestTimeoutMs_=Pr("forwardChannelRequestTimeoutMs",2E4,H);this.JSC$19698_xmlHttpFactory_=H&&H.xmlHttpFactory||void 0;this.networkTestUrl_=H&&H.networkTestUrl||void 0;this.usesFetchStreams_=H&&H.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19698_supportsCrossDomainXhrs_=H&&H.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new kMi(H&&H.concurrentRequestLimit);this.wireCodec_=new Luq;this.fastHandshake_=
H&&H.fastHandshake||!1;this.encodeInitMessageHeaders_=H&&H.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19698_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=H&&H.blockingHandshake||!1;H&&H.disableRedact&&this.JSC$19698_channelDebug_.disableRedact();H&&H.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
H&&H.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;H&&H.longPollingTimeout&&H.longPollingTimeout>0&&(this.longPollingTimeout_=H.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
$W.prototype.JSC$19700_channelVersion_=8;$W.prototype.state_=1;
$W.prototype.connect=function(H,C,S,w){this.JSC$19698_channelDebug_.debug("connect()");fZ(0);this.JSC$19698_path_=H;this.JSC$19698_extraParams_=C||{};S&&w!==void 0&&(this.JSC$19698_extraParams_.OSID=S,this.JSC$19698_extraParams_.OAID=w);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19698_channelDebug_.debug("connectChannel_()");H=gA9(this,null,this.JSC$19698_path_);this.JSC$19698_channelDebug_.debug("GetForwardChannelUri: "+H);this.JSC$19698_forwardChannelUri_=H;Uf3(this)};
$W.prototype.disconnect=function(){this.JSC$19698_channelDebug_.debug("disconnect()");RZR(this);if(this.state_==3){var H=this.JSC$19698_nextRid_++,C=this.JSC$19698_forwardChannelUri_.clone();_.xJ(C,"SID",this.sid_);_.xJ(C,"RID",H);_.xJ(C,"TYPE","terminate");pZ(this,C);H=new ol(this,this.JSC$19698_channelDebug_,this.sid_,H);H.JSC$19679_type_=2;H.JSC$19679_baseUri_=_.u0(C.clone());C=!1;if(_.s$.navigator&&_.s$.navigator.sendBeacon)try{C=_.s$.navigator.sendBeacon(H.JSC$19679_baseUri_.toString(),"")}catch(S){}!C&&
_.s$.Image&&((new Image).src=H.JSC$19679_baseUri_,C=!0);C||(H.JSC$19679_xmlHttp_=yni(H.JSC$19679_channel_,null),H.JSC$19679_xmlHttp_.send(H.JSC$19679_baseUri_));H.JSC$19679_requestStartTime_=Date.now();Wu3(H)}ICR(this)};
var dft=function(H){H.JSC$19698_backChannelRequest_&&(oAr(H),H.JSC$19698_backChannelRequest_.cancel(),H.JSC$19698_backChannelRequest_=null)},RZR=function(H){dft(H);
H.JSC$19698_backChannelTimerId_&&(_.s$.clearTimeout(H.JSC$19698_backChannelTimerId_),H.JSC$19698_backChannelTimerId_=null);Qxi(H);H.forwardChannelRequestPool_.cancel();H.JSC$19698_forwardChannelTimerId_&&(typeof H.JSC$19698_forwardChannelTimerId_==="number"&&_.s$.clearTimeout(H.JSC$19698_forwardChannelTimerId_),H.JSC$19698_forwardChannelTimerId_=null)};
$W.prototype.getState=function(){return this.state_};
var Uf3=function(H){hZi(H.forwardChannelRequestPool_)||H.JSC$19698_forwardChannelTimerId_||(H.JSC$19698_forwardChannelTimerId_=!0,_.hS(H.JSC$19700_onStartForwardChannelTimer_,H),H.JSC$19698_forwardChannelRetryCount_=0)},xfj=function(H,C){if($f9(H.forwardChannelRequestPool_)>=H.forwardChannelRequestPool_.JSC$19689_maxSize_-(H.JSC$19698_forwardChannelTimerId_?1:0))return!1;
if(H.JSC$19698_forwardChannelTimerId_)return H.JSC$19698_channelDebug_.debug("Use the retry request that is already scheduled."),H.JSC$19698_outgoingMaps_=C.JSC$19679_pendingMessages_.concat(H.JSC$19698_outgoingMaps_),!0;if(H.state_==1||H.state_==2||H.JSC$19698_forwardChannelRetryCount_>=(H.JSC$19698_failFast_?0:H.JSC$19698_forwardChannelMaxRetries_))return!1;H.JSC$19698_channelDebug_.debug("Going to retry POST");H.JSC$19698_forwardChannelTimerId_=vr((0,_.Xv)(H.JSC$19700_onStartForwardChannelTimer_,
H,C),aCO(H,H.JSC$19698_forwardChannelRetryCount_));H.JSC$19698_forwardChannelRetryCount_++;return!0};
$W.prototype.JSC$19700_onStartForwardChannelTimer_=function(H){if(this.JSC$19698_forwardChannelTimerId_)if(this.JSC$19698_forwardChannelTimerId_=null,this.JSC$19698_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!H){this.JSC$19698_channelDebug_.debug("open_()");this.JSC$19698_nextRid_=Math.floor(Math.random()*1E5);H=this.JSC$19698_nextRid_++;var C=new ol(this,this.JSC$19698_channelDebug_,"",H),S=this.JSC$19698_extraHeaders_;this.initHeaders_&&(S?(S=_.hb.clone(S),_.hb.extend(S,this.initHeaders_)):
S=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(C.JSC$19679_extraHeaders_=S,S=null);var w;if(this.fastHandshake_)a:{for(var A=w=0;A<this.JSC$19698_outgoingMaps_.length;A++){b:{var J=this.JSC$19698_outgoingMaps_[A];if("__data__"in J.map&&(J=J.map.__data__,typeof J==="string")){J=J.length;break b}J=void 0}if(J===void 0)break;w+=J;if(w>4096){w=A;break a}if(w===4096||A===this.JSC$19698_outgoingMaps_.length-1){w=A+1;break a}}w=1E3}else w=1E3;w=Hoj(this,C,w);
A=this.JSC$19698_forwardChannelUri_.clone();_.xJ(A,"RID",H);_.xJ(A,"CVER",22);this.httpSessionIdParam_&&_.xJ(A,"X-HTTP-Session-Id",this.httpSessionIdParam_);pZ(this,A);S&&(this.encodeInitMessageHeaders_?w="headers="+_.R6(mRi(S))+"&"+w:this.httpHeadersOverwriteParam_&&Wa_(A,this.httpHeadersOverwriteParam_,S));nAp(this.forwardChannelRequestPool_,C);this.blockingHandshake_&&_.xJ(A,"TYPE","init");this.fastHandshake_?(_.xJ(A,"$req",w),_.xJ(A,"SID","null"),C.decodeInitialResponse_=!0,mfj(C,A,null)):mfj(C,
A,w);this.state_=2}}else this.state_==3&&(H?ioi(this,H):this.JSC$19698_outgoingMaps_.length==0?this.JSC$19698_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):hZi(this.forwardChannelRequestPool_)||(ioi(this),this.JSC$19698_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var ioi=function(H,C){var S;C?S=C.JSC$19679_rid_:S=H.JSC$19698_nextRid_++;var w=H.JSC$19698_forwardChannelUri_.clone();_.xJ(w,"SID",H.sid_);_.xJ(w,"RID",S);_.xJ(w,"AID",H.JSC$19698_lastArrayId_);pZ(H,w);H.httpHeadersOverwriteParam_&&H.JSC$19698_extraHeaders_&&Wa_(w,H.httpHeadersOverwriteParam_,H.JSC$19698_extraHeaders_);S=new ol(H,H.JSC$19698_channelDebug_,H.sid_,S,H.JSC$19698_forwardChannelRetryCount_+1);H.httpHeadersOverwriteParam_===null&&(S.JSC$19679_extraHeaders_=H.JSC$19698_extraHeaders_);C&&
(H.JSC$19698_outgoingMaps_=C.JSC$19679_pendingMessages_.concat(H.JSC$19698_outgoingMaps_));C=Hoj(H,S,1E3);S.setTimeout(Math.round(H.JSC$19698_forwardChannelRequestTimeoutMs_*.5)+Math.round(H.JSC$19698_forwardChannelRequestTimeoutMs_*.5*Math.random()));nAp(H.forwardChannelRequestPool_,S);mfj(S,w,C)},pZ=function(H,C){H.JSC$19698_extraParams_&&_.hb.forEach(H.JSC$19698_extraParams_,function(S,w){_.xJ(C,w,S)});
H.handler_&&_.hb.forEach({},function(S,w){_.xJ(C,w,S)})},Hoj=function(H,C,S){S=Math.min(H.JSC$19698_outgoingMaps_.length,S);
var w=H.handler_?(0,_.Xv)(H.handler_.JSC$19704_badMapError,H.handler_,H):null;a:{for(var A=H.JSC$19698_outgoingMaps_,J=-1;;){var c=["count="+S];J==-1?S>0?(J=A[0].JSC$19686_mapId,c.push("ofs="+J)):J=0:c.push("ofs="+J);for(var Y=!0,M=0;M<S;M++){var m=A[M].JSC$19686_mapId,W=A[M].map;m-=J;if(m<0)J=Math.max(0,A[M].JSC$19686_mapId-100),Y=!1;else try{m="req"+m+"_"||"";try{var y=W instanceof Map?W:Object.entries(W);for(var N=_.Z(y),b=N.next();!b.done;b=N.next()){var u=_.Z(b.value),O=u.next().value,d=u.next().value,
p=d;_.U$(d)&&(p=(0,_.Kh)(d));c.push(m+O+"="+encodeURIComponent(p))}}catch(k){throw c.push(m+"type="+encodeURIComponent("_badmap")),k;}}catch(k){w&&w(W)}}if(Y){y=c.join("&");break a}}y=void 0}H=H.JSC$19698_outgoingMaps_.splice(0,S);C.JSC$19679_pendingMessages_=H;return y},CtO=function(H){H.JSC$19698_backChannelRequest_||H.JSC$19698_backChannelTimerId_||(H.JSC$19698_backChannelAttemptId_=1,_.hS(H.JSC$19700_onStartBackChannelTimer_,H),H.JSC$19698_backChannelRetryCount_=0)},PD9=function(H){if(H.JSC$19698_backChannelRequest_||
H.JSC$19698_backChannelTimerId_||H.JSC$19698_backChannelRetryCount_>=3)return!1;
H.JSC$19698_channelDebug_.debug("Going to retry GET");H.JSC$19698_backChannelAttemptId_++;H.JSC$19698_backChannelTimerId_=vr((0,_.Xv)(H.JSC$19700_onStartBackChannelTimer_,H),aCO(H,H.JSC$19698_backChannelRetryCount_));H.JSC$19698_backChannelRetryCount_++;return!0};
$W.prototype.JSC$19700_onStartBackChannelTimer_=function(){this.JSC$19698_backChannelTimerId_=null;Syi(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19698_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19698_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19698_backChannelRequest_+" "+this.handshakeRttMs_);else{var H=4*this.handshakeRttMs_;this.JSC$19698_channelDebug_.info("BP detection timer enabled: "+H);this.bpDetectionTimerId_=vr((0,_.Xv)(this.onBpDetectionTimer_,
this),H)}};
$W.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19698_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19698_backChannelRequest_.JSC$19679_xmlHttp_!=null){var H=this.JSC$19698_backChannelRequest_.JSC$19679_xmlHttp_.getResponseText();H&&this.JSC$19698_channelDebug_.warning("Timer should have been cancelled : "+H)}this.JSC$19698_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;fZ(10);dft(this);Syi(this)}else this.JSC$19698_channelDebug_.warning("Invalid operation.")};
var oAr=function(H){H.bpDetectionTimerId_!=null&&(H.JSC$19698_channelDebug_.debug("Cancel the BP detection timer."),_.s$.clearTimeout(H.bpDetectionTimerId_),H.bpDetectionTimerId_=null)},Syi=function(H){H.JSC$19698_channelDebug_.debug("Creating new HttpRequest");
H.JSC$19698_backChannelRequest_=new ol(H,H.JSC$19698_channelDebug_,H.sid_,"rpc",H.JSC$19698_backChannelAttemptId_);H.httpHeadersOverwriteParam_===null&&(H.JSC$19698_backChannelRequest_.JSC$19679_extraHeaders_=H.JSC$19698_extraHeaders_);H.JSC$19698_backChannelRequest_.JSC$19679_readyStateChangeThrottleMs_=0;var C=H.JSC$19698_backChannelUri_.clone();_.xJ(C,"RID","rpc");_.xJ(C,"SID",H.sid_);_.xJ(C,"AID",H.JSC$19698_lastArrayId_);_.xJ(C,"CI",H.enableStreaming_?"0":"1");!H.enableStreaming_&&H.longPollingTimeout_&&
_.xJ(C,"TO",H.longPollingTimeout_);_.xJ(C,"TYPE","xmlhttp");pZ(H,C);H.httpHeadersOverwriteParam_&&H.JSC$19698_extraHeaders_&&Wa_(C,H.httpHeadersOverwriteParam_,H.JSC$19698_extraHeaders_);H.backChannelRequestTimeoutMs_&&H.JSC$19698_backChannelRequest_.setTimeout(H.backChannelRequestTimeoutMs_);var S=H.JSC$19698_backChannelRequest_,w=H.JSC$19698_hostPrefix_;S.JSC$19679_type_=1;S.JSC$19679_baseUri_=_.u0(C.clone());S.JSC$19679_postData_=null;S.decodeChunks_=!0;TAq(S,w);H.JSC$19698_channelDebug_.debug("New Request created")};
$W.prototype.JSC$19700_onBackChannelDead_=function(){this.JSC$19698_deadBackChannelTimerId_!=null&&(this.JSC$19698_deadBackChannelTimerId_=null,dft(this),PD9(this),fZ(19))};
var Qxi=function(H){H.JSC$19698_deadBackChannelTimerId_!=null&&(_.s$.clearTimeout(H.JSC$19698_deadBackChannelTimerId_),H.JSC$19698_deadBackChannelTimerId_=null)},vAO=function(H,C){H.JSC$19698_channelDebug_.debug("Request complete");
var S=null;if(H.JSC$19698_backChannelRequest_==C){Qxi(H);oAr(H);H.JSC$19698_backChannelRequest_=null;var w=2}else if(Xaj(H.forwardChannelRequestPool_,C))S=C.JSC$19679_pendingMessages_,rn_(H.forwardChannelRequestPool_,C),w=1;else return;if(H.state_!=0)if(C.JSC$19679_successful_)w==1?(AnO(C.JSC$19679_postData_?C.JSC$19679_postData_.length:0,Date.now()-C.JSC$19679_requestStartTime_,H.JSC$19698_forwardChannelRetryCount_),Uf3(H)):CtO(H);else{var A=C.JSC$19679_lastStatusCode_,J=C.getLastError();if(J==3||
J==0&&A>0)H.JSC$19698_channelDebug_.debug("Not retrying due to error type"),A>200&&(H.errorResponseStatusCode_=C.JSC$19679_lastStatusCode_);else{H.JSC$19698_channelDebug_.debug(function(){return"Maybe retrying, last error: "+zZO(J,H.errorResponseStatusCode_)});
if(w==1&&xfj(H,C)||w==2&&PD9(H))return;H.JSC$19698_channelDebug_.debug("Exceeded max number of retries")}S&&S.length>0&&Dfj(H.forwardChannelRequestPool_,S);H.JSC$19698_channelDebug_.debug("Error: HTTP request failed");switch(J){case 1:Qd(H,5);break;case 4:Qd(H,10);break;case 3:Qd(H,6);break;default:Qd(H,2)}}},aCO=function(H,C){var S=H.JSC$19698_baseRetryDelayMs_+Math.floor(Math.random()*H.JSC$19698_retryDelaySeedMs_);
H.isActive()||(H.JSC$19698_channelDebug_.debug("Inactive channel"),S*=2);return S*C};
$W.prototype.onInput_=function(H,C){for(var S=0;S<H.length;S++){var w=H[S],A=w[0];if(A<=this.JSC$19698_lastArrayId_)this.JSC$19698_channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+A+", lastArrayId: "+this.JSC$19698_lastArrayId_);else if(A>this.JSC$19698_lastArrayId_+1&&this.JSC$19698_lastArrayId_>-1&&this.JSC$19698_channelDebug_.warning("Received non-consecutive message with arrayId: "+A+", lastArrayId: "+this.JSC$19698_lastArrayId_),this.JSC$19698_lastArrayId_=A,
w=w[1],this.state_==2)if(w[0]=="c"){this.sid_=w[1];this.JSC$19698_hostPrefix_=w[2];A=w[3];A!=null&&(this.JSC$19700_channelVersion_=A,this.JSC$19698_channelDebug_.info("VER="+this.JSC$19700_channelVersion_));A=w[4];A!=null&&(this.serverVersion_=A,this.JSC$19698_channelDebug_.info("SVER="+this.serverVersion_));w=w[5];w!=null&&typeof w==="number"&&w>0&&(this.backChannelRequestTimeoutMs_=w*=1.5,this.JSC$19698_channelDebug_.info("backChannelRequestTimeoutMs_="+w));if(w=C.JSC$19679_xmlHttp_){var J=M8(w,
"X-Client-Wire-Protocol");J&&(A=this.forwardChannelRequestPool_,!A.requestPool_&&(_.z6(J,"spdy")||_.z6(J,"quic")||_.z6(J,"h2"))&&(A.JSC$19689_maxSize_=A.maxPoolSizeConfigured_,A.requestPool_=new Set,A.JSC$19689_request_&&(nAp(A,A.JSC$19689_request_),A.JSC$19689_request_=null)));this.httpSessionIdParam_&&((w=M8(w,"X-HTTP-Session-Id"))?(this.httpSessionId_=w,_.xJ(this.JSC$19698_forwardChannelUri_,this.httpSessionIdParam_,w)):this.JSC$19698_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=
3;this.handler_&&this.handler_.JSC$19704_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-C.JSC$19679_requestStartTime_,this.JSC$19698_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));w=C;A=gA9(this,this.JSC$19698_supportsCrossDomainXhrs_?this.JSC$19698_hostPrefix_:null,this.JSC$19698_path_);this.JSC$19698_channelDebug_.debug("GetBackChannelUri: "+A);this.JSC$19698_backChannelUri_=A;w.initialResponseDecoded_?(this.JSC$19698_channelDebug_.debug("Upgrade the handshake request to a backchannel."),
rn_(this.forwardChannelRequestPool_,w),A=w,(J=this.backChannelRequestTimeoutMs_)&&A.setTimeout(J),A.JSC$19679_watchDogTimerId_&&(EAO(A),Wu3(A)),this.JSC$19698_backChannelRequest_=w):CtO(this);this.JSC$19698_outgoingMaps_.length>0&&Uf3(this)}else w[0]!="stop"&&w[0]!="close"||Qd(this,7);else this.state_==3&&(w[0]=="stop"||w[0]=="close"?w[0]=="stop"?Qd(this,7):this.disconnect():w[0]!="noop"&&this.handler_&&this.handler_.JSC$19704_channelHandleArray(w),this.JSC$19698_backChannelRetryCount_=0)}};
var Qd=function(H,C){H.JSC$19698_channelDebug_.info("Error code "+C);if(C==2){var S=(0,_.Xv)(H.testNetworkCallback_,H),w=H.networkTestUrl_,A=!w;w=new _.jR(w||"//www.google.com/images/cleardot.gif");_.s$.location&&_.s$.location.protocol=="http"||_.qL(w,"https");_.u0(w);A?KuO(w.toString(),S):tc9(w.toString(),S)}else fZ(2);H.onError_(C)};
$W.prototype.testNetworkCallback_=function(H){H?(this.JSC$19698_channelDebug_.info("Successfully pinged google.com"),fZ(2)):(this.JSC$19698_channelDebug_.info("Failed to ping google.com"),fZ(1))};
$W.prototype.onError_=function(H){this.JSC$19698_channelDebug_.debug("HttpChannel: error - "+H);this.state_=0;this.handler_&&this.handler_.JSC$19704_channelError(H);ICR(this);RZR(this)};
var ICR=function(H){H.state_=0;H.nonAckedMapsAtChannelClose_=[];if(H.handler_){var C=BAo(H.forwardChannelRequestPool_);if(C.length!=0||H.JSC$19698_outgoingMaps_.length!=0)H.JSC$19698_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+C.length+", outgoing: "+H.JSC$19698_outgoingMaps_.length}),_.KU(H.nonAckedMapsAtChannelClose_,C),_.KU(H.nonAckedMapsAtChannelClose_,H.JSC$19698_outgoingMaps_),H.forwardChannelRequestPool_.JSC$19689_pendingMessages_.length=0,_.BZ(H.JSC$19698_outgoingMaps_),
H.JSC$19698_outgoingMaps_.length=0;
H.handler_.JSC$19704_channelClosed()}},s4r=function(H){if(H.state_==0)return H.nonAckedMapsAtChannelClose_;
var C=[];_.KU(C,BAo(H.forwardChannelRequestPool_));_.KU(C,H.JSC$19698_outgoingMaps_);return C},gA9=function(H,C,S){var w=_.I7(S);
w.JSC$10045_domain_!=""?(C&&_.Ta(w,C+"."+w.JSC$10045_domain_),_.mh(w,w.JSC$10045_port_)):(w=_.s$.location,w=FJ_(w.protocol,C?C+"."+w.hostname:w.hostname,+w.port,S));C=H.httpSessionIdParam_;S=H.httpSessionId_;C&&S&&_.xJ(w,C,S);_.xJ(w,"VER",H.JSC$19700_channelVersion_);pZ(H,w);return w},yni=function(H,C,S){if(C&&!H.JSC$19698_supportsCrossDomainXhrs_)throw Error("Ok");
C=H.usesFetchStreams_&&!H.JSC$19698_xmlHttpFactory_?new _.tS(new kq({streamBinaryChunks:S})):new _.tS(H.JSC$19698_xmlHttpFactory_);C.JSC$9809_withCredentials_=H.JSC$19698_supportsCrossDomainXhrs_;return C};
$W.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var j43=function(){};
_.F=j43.prototype;_.F.JSC$19704_channelOpened=function(){};
_.F.JSC$19704_channelHandleArray=function(){};
_.F.JSC$19704_channelError=function(){};
_.F.JSC$19704_channelClosed=function(){};
_.F.isActive=function(){return!0};
_.F.JSC$19704_badMapError=function(){};var wJp=function(){},hw=function(H,C){_.ph.call(this);
this.JSC$19707_channel_=new $W(C);this.JSC$19707_url_=H;this.messageUrlParams_=C&&C.messageUrlParams||null;H=C&&C.messageHeaders||null;C&&C.clientProtocolHeaderRequired&&(H?_.hb.set(H,"X-Client-Protocol","webchannel"):H=_.hb.create("X-Client-Protocol","webchannel"));this.JSC$19707_channel_.JSC$19698_extraHeaders_=H;H=C&&C.initMessageHeaders||null;C&&C.messageContentType&&(H?_.hb.set(H,"X-WebChannel-Content-Type",C.messageContentType):H=_.hb.create("X-WebChannel-Content-Type",C.messageContentType));
C&&C.clientProfile&&(H?_.hb.set(H,"X-WebChannel-Client-Profile",C.clientProfile):H=_.hb.create("X-WebChannel-Client-Profile",C.clientProfile));this.JSC$19707_channel_.initHeaders_=H;(H=C&&C.httpHeadersOverwriteParam)&&!_.YE(H)&&(this.JSC$19707_channel_.httpHeadersOverwriteParam_=H);this.supportsCrossDomainXhr_=C&&C.supportsCrossDomainXhr||!1;this.sendRawJson_=C&&C.sendRawJson||!1;(C=C&&C.httpSessionIdParam)&&!_.YE(C)&&(this.JSC$19707_channel_.httpSessionIdParam_=C,_.hb.containsKey(this.messageUrlParams_,
C)&&_.hb.remove(this.messageUrlParams_,C));this.channelHandler_=new kW(this)};
_.Zh(hw,_.ph);hw.prototype.open=function(){this.JSC$19707_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19707_channel_.JSC$19698_supportsCrossDomainXhrs_=!0);this.JSC$19707_channel_.connect(this.JSC$19707_url_,this.messageUrlParams_||void 0)};
hw.prototype.close=function(){this.JSC$19707_channel_.disconnect()};
hw.prototype.send=function(H){var C=this.JSC$19707_channel_;if(typeof H==="string"){var S={};S.__data__=H;H=S}else this.sendRawJson_&&(S={},S.__data__=(0,_.Kh)(H),H=S);C.JSC$19698_outgoingMaps_.push(new pai(C.JSC$19698_nextMapId_++,H));C.state_==3&&Uf3(C)};
hw.prototype.disposeInternal=function(){this.JSC$19707_channel_.handler_=null;delete this.channelHandler_;this.JSC$19707_channel_.disconnect();delete this.JSC$19707_channel_;hw.superClass_.disposeInternal.call(this)};
var Aor=function(H){HlO.call(this);H.__headers__&&(this.headers=H.__headers__,this.statusCode=H.__status__,delete H.__headers__,delete H.__status__);var C=H.__sm__;C?this.data=(this.metadataKey=_.hb.getAnyKey(C))?_.hb.get(C,this.metadataKey):C:this.data=H};
_.Zh(Aor,HlO);var Joq=function(H){il9.call(this);this.status=1;this.errorCode=H};
_.Zh(Joq,il9);var kW=function(H){this.JSC$19714_channel_=H};
_.Zh(kW,j43);kW.prototype.JSC$19704_channelOpened=function(){this.JSC$19714_channel_.dispatchEvent("w")};
kW.prototype.JSC$19704_channelHandleArray=function(H){this.JSC$19714_channel_.dispatchEvent(new Aor(H))};
kW.prototype.JSC$19704_channelError=function(H){this.JSC$19714_channel_.dispatchEvent(new Joq(H))};
kW.prototype.JSC$19704_channelClosed=function(){this.JSC$19714_channel_.dispatchEvent("x")};
var FyR=function(H,C){this.transportChannel_=H;this.JSC$19717_channel_=C},ZoR=function(H){return s4r(H.JSC$19717_channel_).map(function(C){var S=H.transportChannel_;
C=C.map;"__data__"in C?(C=C.__data__,S=S.sendRawJson_?(0,_.R_W)(C):C):S=C;return S})};
FyR.prototype.commit=function(H){this.JSC$19717_channel_.forwardChannelFlushedCallback_=H};var nZ=function(H){co3.dispatchEvent(new Yy9(co3,H))},co3=new _.ph,Yy9=function(H,C){_.Xc.call(this,"statevent",H);
this.stat=C};
_.G(Yy9,_.Xc);var rp=function(H,C,S,w,A){this.JSC$19722_channel_=H;this.JSC$19722_channelDebug_=C;this.sid_=S;this.JSC$19722_rid_=w;this.JSC$19722_retryId_=A||1;this.timeout_=45E3;this.JSC$19722_eventHandler_=new _.qQ(this);this.pollingTimer_=new _.MQ;this.pollingTimer_.setInterval(250)};
_.F=rp.prototype;_.F.JSC$19724_extraHeaders_=null;_.F.JSC$19724_successful_=!1;_.F.JSC$19724_watchDogTimerId_=null;_.F.JSC$19724_watchDogTimeoutTime_=null;_.F.JSC$19724_requestStartTime_=null;_.F.JSC$19724_type_=null;_.F.JSC$19724_baseUri_=null;_.F.JSC$19724_requestUri_=null;_.F.JSC$19724_postData_=null;_.F.JSC$19724_xmlHttp_=null;_.F.JSC$19724_xmlHttpChunkStart_=0;_.F.trident_=null;_.F.JSC$19724_verb_=null;_.F.JSC$19724_lastError_=null;_.F.JSC$19724_lastStatusCode_=-1;_.F.sendClose_=!0;
_.F.JSC$19724_cancelled_=!1;_.F.JSC$19724_readyStateChangeThrottleMs_=0;_.F.JSC$19724_readyStateChangeThrottle_=null;var z1r=function(H,C){switch(H){case 0:return"Non-200 return code ("+C+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},MB_={},qyO={};
rp.prototype.setTimeout=function(H){this.timeout_=H};
var mJK=function(H,C,S){H.JSC$19724_type_=1;H.JSC$19724_baseUri_=_.u0(C.clone());H.JSC$19724_postData_=S;H.decodeChunks_=!0;TZO(H,null)},WyO=function(H,C,S,w,A){H.JSC$19724_type_=1;
H.JSC$19724_baseUri_=_.u0(C.clone());H.JSC$19724_postData_=null;H.decodeChunks_=S;A&&(H.sendClose_=!1);TZO(H,w)},TZO=function(H,C){H.JSC$19724_requestStartTime_=Date.now();
yor(H);H.JSC$19724_requestUri_=H.JSC$19724_baseUri_.clone();qP(H.JSC$19724_requestUri_,"t",H.JSC$19722_retryId_);H.JSC$19724_xmlHttpChunkStart_=0;H.JSC$19724_xmlHttp_=H.JSC$19722_channel_.JSC$19731_createXhrIo(H.JSC$19722_channel_.JSC$19731_shouldUseSecondaryDomains()?C:null);H.JSC$19724_readyStateChangeThrottleMs_>0&&(H.JSC$19724_readyStateChangeThrottle_=new _.I$((0,_.Xv)(H.JSC$19724_xmlHttpHandler_,H,H.JSC$19724_xmlHttp_),H.JSC$19724_readyStateChangeThrottleMs_));H.JSC$19722_eventHandler_.listen(H.JSC$19724_xmlHttp_,
"readystatechange",H.JSC$19724_readyStateChangeHandler_);C=H.JSC$19724_extraHeaders_?_.hb.clone(H.JSC$19724_extraHeaders_):{};H.JSC$19724_postData_?(H.JSC$19724_verb_="POST",C["Content-Type"]="application/x-www-form-urlencoded",H.JSC$19724_xmlHttp_.send(H.JSC$19724_requestUri_,H.JSC$19724_verb_,H.JSC$19724_postData_,C)):(H.JSC$19724_verb_="GET",H.sendClose_&&!_.Tt&&(C.Connection="close"),H.JSC$19724_xmlHttp_.send(H.JSC$19724_requestUri_,H.JSC$19724_verb_,null,C));H.JSC$19722_channel_.notifyServerReachabilityEvent(1);
C=H.JSC$19722_channelDebug_;var S=H.JSC$19724_postData_;if(S){var w="";S=S.split("&");for(var A=0;A<S.length;A++){var J=S[A].split("=");if(J.length>1){var c=J[0];J=J[1];var Y=c.split("_");w=Y.length>=2&&Y[1]=="type"?w+(c+"="+J+"&"):w+(c+"=redacted&")}}}else w=null;C.info("XMLHTTP REQ ("+H.JSC$19722_rid_+") [attempt "+H.JSC$19722_retryId_+"]: "+H.JSC$19724_verb_+"\n"+H.JSC$19724_requestUri_+"\n"+w)};
rp.prototype.JSC$19724_readyStateChangeHandler_=function(H){H=H.target;var C=this.JSC$19724_readyStateChangeThrottle_;C&&_.Lh(H)==3?(this.JSC$19722_channelDebug_.debug("Throttling readystatechange."),C.fire()):this.JSC$19724_xmlHttpHandler_(H)};
rp.prototype.JSC$19724_xmlHttpHandler_=function(H){try{if(H==this.JSC$19724_xmlHttp_)a:{var C=_.Lh(this.JSC$19724_xmlHttp_),S=this.JSC$19724_xmlHttp_.JSC$9809_lastErrorCode_,w=this.JSC$19724_xmlHttp_.getStatus();if(_.Tt&&!_.mU("420+")){if(C<4)break a}else if(C<3||C==3&&!this.JSC$19724_xmlHttp_.getResponseText())break a;this.JSC$19724_cancelled_||C!=4||S==7||(S==8||w<=0?this.JSC$19722_channel_.notifyServerReachabilityEvent(3):this.JSC$19722_channel_.notifyServerReachabilityEvent(2));NZ9(this);var A=
this.JSC$19724_xmlHttp_.getStatus();this.JSC$19724_lastStatusCode_=A;var J=this.JSC$19724_xmlHttp_.getResponseText();J||this.JSC$19722_channelDebug_.debug("No response text for uri "+this.JSC$19724_requestUri_+" status "+A);this.JSC$19724_successful_=A==200;this.JSC$19722_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19722_rid_+") [ attempt "+this.JSC$19722_retryId_+"]: "+this.JSC$19724_verb_+"\n"+this.JSC$19724_requestUri_+"\n"+C+" "+A);if(this.JSC$19724_successful_){C==4&&Br(this);if(this.decodeChunks_){for(H=
!0;!this.JSC$19724_cancelled_&&this.JSC$19724_xmlHttpChunkStart_<J.length;){var c=boR(this,J);if(c==qyO){C==4&&(this.JSC$19724_lastError_=4,nZ(15),H=!1);D8(this.JSC$19722_channelDebug_,this.JSC$19722_rid_,null,"[Incomplete Response]");break}else if(c==MB_){this.JSC$19724_lastError_=4;nZ(16);D8(this.JSC$19722_channelDebug_,this.JSC$19722_rid_,J,"[Invalid Chunk]");H=!1;break}else D8(this.JSC$19722_channelDebug_,this.JSC$19722_rid_,c,null),EHR(this,c)}C==4&&J.length==0&&(this.JSC$19724_lastError_=1,
nZ(17),H=!1);this.JSC$19724_successful_=this.JSC$19724_successful_&&H;H||(D8(this.JSC$19722_channelDebug_,this.JSC$19722_rid_,J,"[Invalid Chunked Response]"),Br(this),e1O(this))}else D8(this.JSC$19722_channelDebug_,this.JSC$19722_rid_,J,null),EHR(this,J);this.JSC$19724_successful_&&!this.JSC$19724_cancelled_&&(C==4?this.JSC$19722_channel_.JSC$19731_onRequestComplete(this):(this.JSC$19724_successful_=!1,yor(this)))}else A==400&&J.indexOf("Unknown SID")>0?(this.JSC$19724_lastError_=3,nZ(13),this.JSC$19722_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19722_rid_+")")):(this.JSC$19724_lastError_=0,nZ(14),this.JSC$19722_channelDebug_.warning("XMLHTTP Bad status "+A+" ("+this.JSC$19722_rid_+")")),Br(this),e1O(this)}else this.JSC$19722_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(Y){this.JSC$19722_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var boR=function(H,C){var S=H.JSC$19724_xmlHttpChunkStart_,w=C.indexOf("\n",S);if(w==-1)return qyO;S=Number(C.substring(S,w));if(isNaN(S))return MB_;w+=1;if(w+S>C.length)return qyO;C=C.slice(w,w+S);H.JSC$19724_xmlHttpChunkStart_=w+S;return C};
rp.prototype.cancel=function(){this.JSC$19724_cancelled_=!0;Br(this)};
var yor=function(H){H.JSC$19724_watchDogTimeoutTime_=Date.now()+H.timeout_;uOt(H,H.timeout_)},uOt=function(H,C){if(H.JSC$19724_watchDogTimerId_!=null)throw Error("Nk");
H.JSC$19724_watchDogTimerId_=fk((0,_.Xv)(H.JSC$19724_onWatchDogTimeout_,H),C)},NZ9=function(H){H.JSC$19724_watchDogTimerId_&&(_.s$.clearTimeout(H.JSC$19724_watchDogTimerId_),H.JSC$19724_watchDogTimerId_=null)};
rp.prototype.JSC$19724_onWatchDogTimeout_=function(){this.JSC$19724_watchDogTimerId_=null;var H=Date.now();H-this.JSC$19724_watchDogTimeoutTime_>=0?(this.JSC$19722_channelDebug_.info("TIMEOUT: "+this.JSC$19724_requestUri_),this.JSC$19724_type_!=2&&this.JSC$19722_channel_.notifyServerReachabilityEvent(3),Br(this),this.JSC$19724_lastError_=2,nZ(18),e1O(this)):(this.JSC$19722_channelDebug_.warning("WatchDog timer called too early"),uOt(this,this.JSC$19724_watchDogTimeoutTime_-H))};
var e1O=function(H){H.JSC$19722_channel_.JSC$19731_isClosed()||H.JSC$19724_cancelled_||H.JSC$19722_channel_.JSC$19731_onRequestComplete(H)},Br=function(H){NZ9(H);
_.Ak(H.JSC$19724_readyStateChangeThrottle_);H.JSC$19724_readyStateChangeThrottle_=null;H.pollingTimer_.stop();H.JSC$19722_eventHandler_.removeAll();if(H.JSC$19724_xmlHttp_){var C=H.JSC$19724_xmlHttp_;H.JSC$19724_xmlHttp_=null;C.abort();C.dispose()}H.trident_&&(H.trident_=null)};
rp.prototype.getLastError=function(){return this.JSC$19724_lastError_};
var EHR=function(H,C){try{H.JSC$19722_channel_.JSC$19731_onRequestData(H,C),H.JSC$19722_channel_.notifyServerReachabilityEvent(4)}catch(S){}};var D8=function(H,C,S,w){var A=H.info;a:if(S&&S!="y2f%"){try{var J=JSON.parse(S);if(J)for(var c=0;c<J.length;c++)if(Array.isArray(J[c])){var Y=J[c];if(!(Y.length<2)){var M=Y[1];if(Array.isArray(M)&&!(M.length<1)){var m=M[0];if(m!="noop"&&m!="stop")for(var W=1;W<M.length;W++)M[W]=""}}}var y=(0,_.Kh)(J);break a}catch(N){H.debug("Exception parsing expected JS array - probably was not JS");y=S;break a}y=void 0}else y=S;A.call(H,"XMLHTTP TEXT ("+C+"): "+y+(w?" "+w:""))};
vx.prototype.debug=function(H){this.info(H)};
vx.prototype.info=function(){};
vx.prototype.warning=function(){};var Gjq=function(H,C){this.JSC$19729_channel_=H;this.JSC$19729_channelDebug_=C;this.JSC$19729_parser_=new ux};
_.F=Gjq.prototype;_.F.JSC$19731_extraHeaders_=null;_.F.JSC$19731_request_=null;_.F.receivedIntermediateResult_=!1;_.F.JSC$19731_path_=null;_.F.state_=null;_.F.JSC$19731_lastStatusCode_=-1;_.F.JSC$19731_hostPrefix_=null;_.F.blockedPrefix_=null;
_.F.connect=function(H){this.JSC$19731_path_=H;H=f6R(this.JSC$19729_channel_,this.JSC$19731_path_);nZ(3);Date.now();var C=this.JSC$19729_channel_.firstTestResults_;C!=null?(this.JSC$19731_hostPrefix_=C[0],(this.blockedPrefix_=C[1])?(this.state_=1,vHK(this)):(this.state_=2,l6O(this))):(qP(H,"MODE","init"),this.JSC$19731_request_=new rp(this,this.JSC$19729_channelDebug_),this.JSC$19731_request_.JSC$19724_extraHeaders_=this.JSC$19731_extraHeaders_,WyO(this.JSC$19731_request_,H,!1,null,!0),this.state_=
0)};
var vHK=function(H){var C=VBO(H.JSC$19729_channel_,H.blockedPrefix_,"/mail/images/cleardot.gif");_.u0(C);DTt(C.toString(),5E3,(0,_.Xv)(H.checkBlockedCallback_,H),3,2E3);H.notifyServerReachabilityEvent(1)};
Gjq.prototype.checkBlockedCallback_=function(H){if(H)this.state_=2,l6O(this);else{nZ(4);var C=this.JSC$19729_channel_;C.JSC$19732_channelDebug_.debug("Test Connection Blocked");C.JSC$19736_lastStatusCode_=C.connectionTest_.JSC$19731_lastStatusCode_;KZ(C,9)}H&&this.notifyServerReachabilityEvent(2)};
var l6O=function(H){H.JSC$19729_channelDebug_.debug("TestConnection: starting stage 2");var C=H.JSC$19729_channel_.secondTestResults_;C!=null?(H.JSC$19729_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+C?"Buffered":"Unbuffered"),nZ(5),C?(nZ(11),tw(H.JSC$19729_channel_,H,!1)):(nZ(12),tw(H.JSC$19729_channel_,H,!0))):(H.JSC$19731_request_=new rp(H,H.JSC$19729_channelDebug_),H.JSC$19731_request_.JSC$19724_extraHeaders_=H.JSC$19731_extraHeaders_,C=oH3(H.JSC$19729_channel_,
H.JSC$19731_hostPrefix_,H.JSC$19731_path_),nZ(5),qP(C,"TYPE","xmlhttp"),WyO(H.JSC$19731_request_,C,!1,H.JSC$19731_hostPrefix_,!1))};
_.F=Gjq.prototype;_.F.JSC$19731_createXhrIo=function(H){return this.JSC$19729_channel_.JSC$19731_createXhrIo(H)};
_.F.abort=function(){this.JSC$19731_request_&&(this.JSC$19731_request_.cancel(),this.JSC$19731_request_=null);this.JSC$19731_lastStatusCode_=-1};
_.F.JSC$19731_isClosed=function(){return!1};
_.F.JSC$19731_onRequestData=function(H,C){this.JSC$19731_lastStatusCode_=H.JSC$19724_lastStatusCode_;if(this.state_==0)if(this.JSC$19729_channelDebug_.debug("TestConnection: Got data for stage 1"),C){try{var S=this.JSC$19729_parser_.parse(C)}catch(w){OoO(this.JSC$19729_channel_,this);return}this.JSC$19731_hostPrefix_=S[0];this.blockedPrefix_=S[1]}else this.JSC$19729_channelDebug_.debug("TestConnection: Null responseText"),OoO(this.JSC$19729_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(nZ(7),Date.now()):C=="11111"?(nZ(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19731_lastStatusCode_=200,this.JSC$19731_request_.cancel(),this.JSC$19729_channelDebug_.debug("Test connection succeeded; using streaming connection"),nZ(12),tw(this.JSC$19729_channel_,this,!0)):(nZ(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.F.JSC$19731_onRequestComplete=function(){this.JSC$19731_lastStatusCode_=this.JSC$19731_request_.JSC$19724_lastStatusCode_;this.JSC$19731_request_.JSC$19724_successful_?this.state_==0?(this.JSC$19729_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,vHK(this)):(this.state_=2,l6O(this))):this.state_==2&&(this.JSC$19729_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19729_channelDebug_.debug("Test connection succeeded; using streaming connection"),
nZ(12),tw(this.JSC$19729_channel_,this,!0)):(this.JSC$19729_channelDebug_.debug("Test connection failed; not using streaming"),nZ(11),tw(this.JSC$19729_channel_,this,!1))):(this.JSC$19729_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?nZ(9):this.state_==2&&nZ(10),OoO(this.JSC$19729_channel_,this,this.JSC$19731_request_.getLastError()))};
_.F.JSC$19731_shouldUseSecondaryDomains=function(){return this.JSC$19729_channel_.JSC$19731_shouldUseSecondaryDomains()};
_.F.isActive=function(){return this.JSC$19729_channel_.isActive()};
_.F.notifyServerReachabilityEvent=function(H){this.JSC$19729_channel_.notifyServerReachabilityEvent(H)};var LZ=function(H,C,S){this.state_=1;this.JSC$19732_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19732_channelDebug_=new vx;this.JSC$19732_parser_=new ux;this.firstTestResults_=H||null;this.secondTestResults_=C!=null?C:null;this.asyncTest_=S||!1},XJ9=function(H,C){this.JSC$19734_mapId=H;
this.map=C;this.context=null};
_.F=LZ.prototype;_.F.JSC$19736_extraHeaders_=null;_.F.JSC$19736_extraParams_=null;_.F.forwardChannelRequest_=null;_.F.JSC$19736_backChannelRequest_=null;_.F.JSC$19736_path_=null;_.F.JSC$19736_forwardChannelUri_=null;_.F.JSC$19736_backChannelUri_=null;_.F.JSC$19736_hostPrefix_=null;_.F.JSC$19736_nextRid_=0;_.F.JSC$19736_nextMapId_=0;_.F.handler_=null;_.F.JSC$19736_forwardChannelTimerId_=null;_.F.JSC$19736_backChannelTimerId_=null;_.F.JSC$19736_deadBackChannelTimerId_=null;_.F.connectionTest_=null;
_.F.useChunked_=null;_.F.JSC$19736_lastArrayId_=-1;_.F.JSC$19736_lastPostResponseArrayId_=-1;_.F.JSC$19736_lastStatusCode_=-1;_.F.JSC$19736_forwardChannelRetryCount_=0;_.F.JSC$19736_backChannelRetryCount_=0;_.F.JSC$19736_channelVersion_=8;var Q4i={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},dJo=function(H,C,S,w){_.Xc.call(this,"timingevent",H);this.size=C;this.rtt=S;this.retries=w};
_.Zh(dJo,_.Xc);var Ptj=function(H){_.Xc.call(this,"serverreachability",H)};
_.Zh(Ptj,_.Xc);LZ.prototype.connect=function(H,C,S,w,A){this.JSC$19732_channelDebug_.debug("connect()");nZ(0);this.JSC$19736_path_=C;this.JSC$19736_extraParams_=S||{};w&&A!==void 0&&(this.JSC$19736_extraParams_.OSID=w,this.JSC$19736_extraParams_.OAID=A);this.asyncTest_?(fk((0,_.Xv)(this.connectTest_,this,H),100),$J9(this)):this.connectTest_(H)};
LZ.prototype.disconnect=function(){this.JSC$19732_channelDebug_.debug("disconnect()");pJK(this);if(this.state_==3){var H=this.JSC$19736_nextRid_++,C=this.JSC$19736_forwardChannelUri_.clone();_.xJ(C,"SID",this.sid_);_.xJ(C,"RID",H);_.xJ(C,"TYPE","terminate");gp(this,C);H=new rp(this,this.JSC$19732_channelDebug_,this.sid_,H);H.JSC$19724_type_=2;H.JSC$19724_baseUri_=_.u0(C.clone());(new Image).src=H.JSC$19724_baseUri_.toString();H.JSC$19724_requestStartTime_=Date.now();yor(H)}kji(this)};
LZ.prototype.connectTest_=function(H){this.JSC$19732_channelDebug_.debug("connectTest_()");this.connectionTest_=new Gjq(this,this.JSC$19732_channelDebug_);this.connectionTest_.JSC$19731_extraHeaders_=this.JSC$19736_extraHeaders_;this.connectionTest_.JSC$19729_parser_=this.JSC$19732_parser_;this.connectionTest_.connect(H)};
var $J9=function(H){H.JSC$19732_channelDebug_.debug("connectChannel_()");H.JSC$19736_ensureInState_(1,0);H.JSC$19736_forwardChannelUri_=f6R(H,H.JSC$19736_path_);h1p(H)},pJK=function(H){H.connectionTest_&&(H.connectionTest_.abort(),H.connectionTest_=null);
H.JSC$19736_backChannelRequest_&&(H.JSC$19736_backChannelRequest_.cancel(),H.JSC$19736_backChannelRequest_=null);H.JSC$19736_backChannelTimerId_&&(_.s$.clearTimeout(H.JSC$19736_backChannelTimerId_),H.JSC$19736_backChannelTimerId_=null);nHp(H);H.forwardChannelRequest_&&(H.forwardChannelRequest_.cancel(),H.forwardChannelRequest_=null);H.JSC$19736_forwardChannelTimerId_&&(_.s$.clearTimeout(H.JSC$19736_forwardChannelTimerId_),H.JSC$19736_forwardChannelTimerId_=null)},roi=function(H,C){if(H.state_==0)throw Error("Qk");
H.JSC$19732_outgoingMaps_.length==1E3&&H.JSC$19732_parser_.stringify(C);H.JSC$19732_outgoingMaps_.push(new XJ9(H.JSC$19736_nextMapId_++,C));H.state_!=2&&H.state_!=3||h1p(H)};
LZ.prototype.JSC$19731_isClosed=function(){return this.state_==0};
LZ.prototype.getState=function(){return this.state_};
var h1p=function(H){H.forwardChannelRequest_||H.JSC$19736_forwardChannelTimerId_||(H.JSC$19736_forwardChannelTimerId_=fk((0,_.Xv)(H.JSC$19736_onStartForwardChannelTimer_,H),0),H.JSC$19736_forwardChannelRetryCount_=0)};
LZ.prototype.JSC$19736_onStartForwardChannelTimer_=function(H){this.JSC$19736_forwardChannelTimerId_=null;BZR(this,H)};
var BZR=function(H,C){H.JSC$19732_channelDebug_.debug("startForwardChannel_");if(H.state_==1){if(!C){H.JSC$19732_channelDebug_.debug("open_()");H.JSC$19736_nextRid_=Math.floor(Math.random()*1E5);C=H.JSC$19736_nextRid_++;var S=new rp(H,H.JSC$19732_channelDebug_,"",C);S.JSC$19724_extraHeaders_=H.JSC$19736_extraHeaders_;var w=DJ_(H),A=H.JSC$19736_forwardChannelUri_.clone();_.xJ(A,"RID",C);_.xJ(A,"CVER","1");gp(H,A);mJK(S,A,w);H.forwardChannelRequest_=S;H.state_=2}}else H.state_==3&&(C?Kyi(H,C):H.JSC$19732_outgoingMaps_.length==
0?H.JSC$19732_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):H.forwardChannelRequest_||(Kyi(H),H.JSC$19732_channelDebug_.debug("startForwardChannel_ finished, sent request")))},Kyi=function(H,C){if(C)if(H.JSC$19736_channelVersion_>6){H.JSC$19732_outgoingMaps_=H.pendingMaps_.concat(H.JSC$19732_outgoingMaps_);
H.pendingMaps_.length=0;var S=H.JSC$19736_nextRid_-1;C=DJ_(H)}else S=C.JSC$19722_rid_,C=C.JSC$19724_postData_;else S=H.JSC$19736_nextRid_++,C=DJ_(H);var w=H.JSC$19736_forwardChannelUri_.clone();_.xJ(w,"SID",H.sid_);_.xJ(w,"RID",S);_.xJ(w,"AID",H.JSC$19736_lastArrayId_);gp(H,w);S=new rp(H,H.JSC$19732_channelDebug_,H.sid_,S,H.JSC$19736_forwardChannelRetryCount_+1);S.JSC$19724_extraHeaders_=H.JSC$19736_extraHeaders_;S.setTimeout(1E4+Math.round(1E4*Math.random()));H.forwardChannelRequest_=S;mJK(S,w,C)},
gp=function(H,C){H.handler_&&(H=H.handler_.JSC$19743_getAdditionalParams())&&_.hb.forEach(H,function(S,w){_.xJ(C,w,S)})},DJ_=function(H){var C=Math.min(H.JSC$19732_outgoingMaps_.length,1E3),S=["count="+C];
if(H.JSC$19736_channelVersion_>6&&C>0){var w=H.JSC$19732_outgoingMaps_[0].JSC$19734_mapId;S.push("ofs="+w)}else w=0;for(var A={},J=0;J<C;A={mapId$jscomp$3:void 0},J++){A.mapId$jscomp$3=H.JSC$19732_outgoingMaps_[J].JSC$19734_mapId;var c=H.JSC$19732_outgoingMaps_[J].map;A.mapId$jscomp$3=H.JSC$19736_channelVersion_<=6?J:A.mapId$jscomp$3-w;try{_.hb.forEach(c,function(Y){return function(M,m){S.push("req"+Y.mapId$jscomp$3+"_"+m+"="+encodeURIComponent(M))}}(A))}catch(Y){S.push("req"+A.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}H.pendingMaps_=H.pendingMaps_.concat(H.JSC$19732_outgoingMaps_.splice(0,C));
return S.join("&")},tBi=function(H){H.JSC$19736_backChannelRequest_||H.JSC$19736_backChannelTimerId_||(H.JSC$19736_backChannelAttemptId_=1,H.JSC$19736_backChannelTimerId_=fk((0,_.Xv)(H.JSC$19736_onStartBackChannelTimer_,H),0),H.JSC$19736_backChannelRetryCount_=0)},gHr=function(H){if(H.JSC$19736_backChannelRequest_||H.JSC$19736_backChannelTimerId_||H.JSC$19736_backChannelRetryCount_>=3)return!1;
H.JSC$19732_channelDebug_.debug("Going to retry GET");H.JSC$19736_backChannelAttemptId_++;H.JSC$19736_backChannelTimerId_=fk((0,_.Xv)(H.JSC$19736_onStartBackChannelTimer_,H),Ly9(H,H.JSC$19736_backChannelRetryCount_));H.JSC$19736_backChannelRetryCount_++;return!0};
LZ.prototype.JSC$19736_onStartBackChannelTimer_=function(){this.JSC$19736_backChannelTimerId_=null;this.JSC$19732_channelDebug_.debug("Creating new HttpRequest");this.JSC$19736_backChannelRequest_=new rp(this,this.JSC$19732_channelDebug_,this.sid_,"rpc",this.JSC$19736_backChannelAttemptId_);this.JSC$19736_backChannelRequest_.JSC$19724_extraHeaders_=this.JSC$19736_extraHeaders_;this.JSC$19736_backChannelRequest_.JSC$19724_readyStateChangeThrottleMs_=0;var H=this.JSC$19736_backChannelUri_.clone();_.xJ(H,
"RID","rpc");_.xJ(H,"SID",this.sid_);_.xJ(H,"CI",this.useChunked_?"0":"1");_.xJ(H,"AID",this.JSC$19736_lastArrayId_);gp(this,H);_.xJ(H,"TYPE","xmlhttp");WyO(this.JSC$19736_backChannelRequest_,H,!0,this.JSC$19736_hostPrefix_,!1);this.JSC$19732_channelDebug_.debug("New Request created")};
var tw=function(H,C,S){H.JSC$19732_channelDebug_.debug("Test Connection Finished");H.useChunked_=H.secondTestResults_==null?S:!H.secondTestResults_;H.JSC$19736_lastStatusCode_=C.JSC$19731_lastStatusCode_;H.asyncTest_||$J9(H)},OoO=function(H,C){H.JSC$19732_channelDebug_.debug("Test Connection Failed");
H.JSC$19736_lastStatusCode_=C.JSC$19731_lastStatusCode_;KZ(H,2)};
LZ.prototype.JSC$19731_onRequestData=function(H,C){if(this.state_!=0&&(this.JSC$19736_backChannelRequest_==H||this.forwardChannelRequest_==H))if(this.JSC$19736_lastStatusCode_=H.JSC$19724_lastStatusCode_,this.forwardChannelRequest_==H&&this.state_==3)if(this.JSC$19736_channelVersion_>7){try{var S=this.JSC$19732_parser_.parse(C)}catch(w){S=null}if(Array.isArray(S)&&S.length==3)if(C=S,C[0]==0)a:if(this.JSC$19732_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19736_backChannelTimerId_)this.JSC$19732_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19736_backChannelRequest_)if(this.JSC$19736_backChannelRequest_.JSC$19724_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19724_requestStartTime_)nHp(this),this.JSC$19736_backChannelRequest_.cancel(),this.JSC$19736_backChannelRequest_=null;else break a;else this.JSC$19732_channelDebug_.warning("We do not have a BackChannel established");gHr(this);nZ(19)}else this.JSC$19736_lastPostResponseArrayId_=C[1],H=this.JSC$19736_lastPostResponseArrayId_-this.JSC$19736_lastArrayId_,0<
H&&(C=C[2],this.JSC$19732_channelDebug_.debug(C+" bytes (in "+H+" arrays) are outstanding on the BackChannel"),C<37500&&this.useChunked_&&this.JSC$19736_backChannelRetryCount_==0&&!this.JSC$19736_deadBackChannelTimerId_&&(this.JSC$19736_deadBackChannelTimerId_=fk((0,_.Xv)(this.JSC$19736_onBackChannelDead_,this),6E3)));else this.JSC$19732_channelDebug_.debug("Bad POST response data returned"),KZ(this,11)}else C!="y2f%"&&(this.JSC$19732_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
KZ(this,11));else this.JSC$19736_backChannelRequest_==H&&nHp(this),_.YE(C)||(H=this.JSC$19732_parser_.parse(C),this.onInput_(H))};
LZ.prototype.JSC$19736_onBackChannelDead_=function(){this.JSC$19736_deadBackChannelTimerId_!=null&&(this.JSC$19736_deadBackChannelTimerId_=null,this.JSC$19736_backChannelRequest_.cancel(),this.JSC$19736_backChannelRequest_=null,gHr(this),nZ(20))};
var nHp=function(H){H.JSC$19736_deadBackChannelTimerId_!=null&&(_.s$.clearTimeout(H.JSC$19736_deadBackChannelTimerId_),H.JSC$19736_deadBackChannelTimerId_=null)};
LZ.prototype.JSC$19731_onRequestComplete=function(H){this.JSC$19732_channelDebug_.debug("Request complete");if(this.JSC$19736_backChannelRequest_==H){nHp(this);this.JSC$19736_backChannelRequest_=null;var C=2}else if(this.forwardChannelRequest_==H)this.forwardChannelRequest_=null,C=1;else return;this.JSC$19736_lastStatusCode_=H.JSC$19724_lastStatusCode_;if(this.state_!=0)if(H.JSC$19724_successful_)if(C==1){C=H.JSC$19724_postData_?H.JSC$19724_postData_.length:0;H=Date.now()-H.JSC$19724_requestStartTime_;
var S=co3;S.dispatchEvent(new dJo(S,C,H,this.JSC$19736_forwardChannelRetryCount_));h1p(this);this.handler_&&this.handler_.JSC$19743_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else tBi(this);else{S=H.getLastError();if(S==3||S==7||S==0&&this.JSC$19736_lastStatusCode_>0)this.JSC$19732_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19732_channelDebug_.debug("Maybe retrying, last error: "+z1r(S,this.JSC$19736_lastStatusCode_));var w;if(w=C==1)this.forwardChannelRequest_||
this.JSC$19736_forwardChannelTimerId_||this.state_==1||this.JSC$19736_forwardChannelRetryCount_>=2?w=!1:(this.JSC$19732_channelDebug_.debug("Going to retry POST"),this.JSC$19736_forwardChannelTimerId_=fk((0,_.Xv)(this.JSC$19736_onStartForwardChannelTimer_,this,H),Ly9(this,this.JSC$19736_forwardChannelRetryCount_)),this.JSC$19736_forwardChannelRetryCount_++,w=!0);if(w||C==2&&gHr(this))return;this.JSC$19732_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19732_channelDebug_.debug("Error: HTTP request failed");
switch(S){case 1:KZ(this,5);break;case 4:KZ(this,10);break;case 3:KZ(this,6);break;case 7:KZ(this,12);break;default:KZ(this,2)}}};
var Ly9=function(H,C){var S=5E3+Math.floor(Math.random()*1E4);H.isActive()||(H.JSC$19732_channelDebug_.debug("Inactive channel"),S*=2);return S*C};
LZ.prototype.onInput_=function(H){for(var C=0;C<H.length;C++){var S=H[C];this.JSC$19736_lastArrayId_=S[0];S=S[1];this.state_==2?S[0]=="c"?(this.sid_=S[1],this.JSC$19736_hostPrefix_=S[2],S=S[3],S!=null?this.JSC$19736_channelVersion_=S:this.JSC$19736_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19743_channelOpened(),this.JSC$19736_backChannelUri_=oH3(this,this.JSC$19736_hostPrefix_,this.JSC$19736_path_),tBi(this)):S[0]=="stop"&&KZ(this,7):this.state_==3&&(S[0]=="stop"?KZ(this,7):
S[0]!="noop"&&this.handler_&&this.handler_.JSC$19743_channelHandleArray(S),this.JSC$19736_backChannelRetryCount_=0)}};
LZ.prototype.JSC$19736_ensureInState_=function(H){if(!_.nU(arguments,this.state_))throw Error("Rk`"+this.state_);};
var KZ=function(H,C){H.JSC$19732_channelDebug_.info("Error code "+C);if(C==2||C==9){var S=null;H.handler_&&(S=null);var w=(0,_.Xv)(H.testGoogleComCallback_,H);S||(S=new _.jR("//www.google.com/images/cleardot.gif"),_.u0(S));BEK(S.toString(),1E4,w)}else nZ(2);H.onError_(C)};
LZ.prototype.testGoogleComCallback_=function(H){H?(this.JSC$19732_channelDebug_.info("Successfully pinged google.com"),nZ(2)):(this.JSC$19732_channelDebug_.info("Failed to ping google.com"),nZ(1),this.onError_(8))};
LZ.prototype.onError_=function(H){this.JSC$19732_channelDebug_.debug("HttpChannel: error - "+H);this.state_=0;this.handler_&&this.handler_.JSC$19743_channelError(H);kji(this);pJK(this)};
var kji=function(H){H.state_=0;H.JSC$19736_lastStatusCode_=-1;if(H.handler_)if(H.pendingMaps_.length==0&&H.JSC$19732_outgoingMaps_.length==0)H.handler_.JSC$19743_channelClosed();else{H.JSC$19732_channelDebug_.debug("Number of undelivered maps, pending: "+H.pendingMaps_.length+", outgoing: "+H.JSC$19732_outgoingMaps_.length);var C=_.BZ(H.pendingMaps_),S=_.BZ(H.JSC$19732_outgoingMaps_);H.pendingMaps_.length=0;H.JSC$19732_outgoingMaps_.length=0;H.handler_.JSC$19743_channelClosed(C,S)}},f6R=function(H,
C){C=VBO(H,null,C);
H.JSC$19732_channelDebug_.debug("GetForwardChannelUri: "+C);return C},oH3=function(H,C,S){C=VBO(H,H.JSC$19731_shouldUseSecondaryDomains()?C:null,S);
H.JSC$19732_channelDebug_.debug("GetBackChannelUri: "+C);return C},VBO=function(H,C,S){var w=_.I7(S);
if(w.JSC$10045_domain_!="")C&&_.Ta(w,C+"."+w.JSC$10045_domain_),_.mh(w,w.JSC$10045_port_);else{var A=window.location;w=FJ_(A.protocol,C?C+"."+A.hostname:A.hostname,+A.port,S)}H.JSC$19736_extraParams_&&_.hb.forEach(H.JSC$19736_extraParams_,function(J,c){_.xJ(w,c,J)});
_.xJ(w,"VER",H.JSC$19736_channelVersion_);gp(H,w);return w};
LZ.prototype.JSC$19731_createXhrIo=function(H){if(H)throw Error("Ok");H=new _.tS;H.JSC$9809_withCredentials_=!1;return H};
LZ.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
LZ.prototype.notifyServerReachabilityEvent=function(H){var C=co3;C.dispatchEvent(new Ptj(C,H))};
LZ.prototype.JSC$19731_shouldUseSecondaryDomains=function(){return!1};
new qvO;var UJ9=function(){};
_.F=UJ9.prototype;_.F.JSC$19743_channelOpened=function(){};
_.F.JSC$19743_channelHandleArray=function(){};
_.F.JSC$19743_channelSuccess=function(){};
_.F.JSC$19743_channelError=function(){};
_.F.JSC$19743_channelClosed=function(){};
_.F.JSC$19743_getAdditionalParams=function(){return{}};
_.F.isActive=function(){return!0};var R13=function(H){H.front_.length===0&&(H.front_=H.back_,H.front_.reverse(),H.back_=[])};
_.F=tsi.prototype;_.F.enqueue=function(H){this.back_.push(H)};
_.F.peek=function(){R13(this);return _.du(this.front_)};
_.F.getCount=function(){return this.front_.length+this.back_.length};
_.F.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.F.clear=function(){this.front_=[];this.back_=[]};
_.F.contains=function(H){return _.nU(this.front_,H)||_.nU(this.back_,H)};
_.F.remove=function(H){var C=this.front_;var S=Array.prototype.lastIndexOf.call(C,H,C.length-1);S>=0?(_.OUW(C,S),C=!0):C=!1;return C||_.ru(this.back_,H)};
_.F.getValues=function(){for(var H=[],C=this.front_.length-1;C>=0;--C)H.push(this.front_[C]);C=this.back_.length;for(var S=0;S<C;++S)H.push(this.back_[S]);return H};var U9=function(H){this.JSC$19747_map_=new _.VV;this.size=0;H&&this.addAll(H)},I63=function(H){var C=typeof H;
return C=="object"&&H||C=="function"?"o"+_.I0(H):C.charAt(0)+H};
_.F=U9.prototype;_.F.getCount=function(){return this.JSC$19747_map_.size};
_.F.add=function(H){this.JSC$19747_map_.set(I63(H),H);this.size=this.JSC$19747_map_.size};
_.F.addAll=function(H){H=_.ML(H);for(var C=H.length,S=0;S<C;S++)this.add(H[S]);this.size=this.JSC$19747_map_.size};
_.F.removeAll=function(H){H=_.ML(H);for(var C=H.length,S=0;S<C;S++)this.remove(H[S]);this.size=this.JSC$19747_map_.size};
_.F.delete=function(H){H=this.JSC$19747_map_.remove(I63(H));this.size=this.JSC$19747_map_.size;return H};
_.F.remove=function(H){return this.delete(H)};
_.F.clear=function(){this.JSC$19747_map_.clear();this.size=0};
_.F.isEmpty=function(){return this.JSC$19747_map_.size===0};
_.F.has=function(H){return this.JSC$19747_map_.containsKey(I63(H))};
_.F.contains=function(H){return this.JSC$19747_map_.containsKey(I63(H))};
_.F.getValues=function(){return this.JSC$19747_map_.getValues()};
_.F.values=function(){return this.JSC$19747_map_.values()};
_.F.clone=function(){return new U9(this)};
_.F.equals=function(H){return this.getCount()==Al3(H)&&a6_(this,H)};
var a6_=function(H,C){var S=Al3(C);if(H.getCount()>S)return!1;!(C instanceof U9)&&S>5&&(C=new U9(C));return JlO(H,function(w){var A=C;return A.contains&&typeof A.contains=="function"?A.contains(w):A.containsValue&&typeof A.containsValue=="function"?A.containsValue(w):_.Dw(A)||typeof A==="string"?_.nU(A,w):_.hb.containsValue(A,w)})};
U9.prototype.__iterator__=function(){return this.JSC$19747_map_.__iterator__(!1)};
U9.prototype[Symbol.iterator]=function(){return this.values()};var xJK={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(H){return(this._clampValue(H)-this.min)/(this.max-this.min)},
_clampValue:function(H){return Math.min(this.max,Math.max(this.min,this._calcStep(H)))},
_calcStep:function(H){H=parseFloat(H);if(!this.step)return H;H=Math.round((H-this.min)/this.step);return this.step<1?H/(1/this.step)+this.min:H*this.step+this.min},
_validateValue:function(){var H=this._clampValue(this.value);this.value=this.oldValue=isNaN(H)?this.oldValue:H;return this.value!==H},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var HOi;var iOq;_.hr({_template:function(){if(iOq!==void 0)return iOq;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;HOi===void 0&&(HOi=document.createElement("template"));var w=HOi;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return iOq=H},
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(){_.wM(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(H){H.keyCode===27&&(H.preventDefault(),this.close())},
_track:function(H){if(!this.persistent&&!this.disableSwipe)switch(H.preventDefault(),H.detail.state){case "start":this._trackStart(H);break;case "track":this._trackMove(H);break;case "end":this._trackEnd(H)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var H=this.$.contentContainer.getBoundingClientRect();this._savedWidth=H.width;this._translateOffset=this.position==="left"?H.left:H.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(H){this._trackDetails&&(this._translateDrawer(H.detail.dx+this._translateOffset),this._trackDetails.push({dx:H.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(H){if(this._trackDetails){var C=H.detail.dx+this._translateOffset,S=this.getWidth();C=this.position==="left"?C>=0||C<=-S:C<=0||C>=S;if(!C){var w=this._trackDetails;this._trackDetails=null;this._flingDrawer(H,w);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}S/=2;H.detail.dx<-S?this.opened=this.position==="right":H.detail.dx>S&&(this.opened=this.position==="left");C?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(H,C){for(var S=Date.now(),w=S-100,A,J=0,c=C.length-1;J<=c;){var Y=J+c>>1,M=C[Y];M.timeStamp>=w?(A=M,c=Y-1):J=Y+1}return A?(H.detail.dx-A.dx)/(S-A.timeStamp||1):0},
_flingDrawer:function(H,C){C=this._calculateVelocity(H,C);if(!(Math.abs(C)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;H=H.detail.dx+this._translateOffset;var S=this.getWidth(),w=this.position==="left",A=C>0;A?(C=Math.max(C,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(C=Math.min(C,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");C=this._FLING_INITIAL_SLOPE*(!A&&w?-(H+S):A&&!w?S-H:-H)/C;this._styleTransitionDuration(C);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,C)}},
_styleTransitionDuration:function(H){this.style.transitionDuration=H+"ms";this.$.contentContainer.style.transitionDuration=H+"ms";this.$.scrim.style.transitionDuration=H+"ms"},
_styleTransitionTimingFunction:function(H){this.$.contentContainer.style.transitionTimingFunction=H;this.$.scrim.style.transitionTimingFunction=H},
_translateDrawer:function(H){var C=this.getWidth();this.position==="left"?(H=Math.max(-C,Math.min(H,0)),this.$.scrim.style.opacity=1+H/C):(H=Math.max(0,Math.min(H,C)),this.$.scrim.style.opacity=1-H/C);this.translate3d(H+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var H=this._drawerState;H===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;H!==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=""),H!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var H=_.PM(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"])');H.length>0?(this._firstTabStop=H[0],this._lastTabStop=H[H.length-1]):
this._lastTabStop=this._firstTabStop=null;(H=this.getAttribute("tabindex"))&&parseInt(H,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(H){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||H.keyCode!==9||(H.shiftKey?this._firstTabStop&&_.PM(H).localTarget===this._firstTabStop&&(H.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.PM(H).localTarget===this._lastTabStop&&(H.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(H,C){this.toggleClass("visible",H&&!C,this.$.scrim);this.debounce("_resetDrawerState",this._resetDrawerState,this.transitionDuration)},
_MIN_FLING_THRESHOLD:.2,_MIN_TRANSITION_VELOCITY:1.2,_FLING_TIMING_FUNCTION:"cubic-bezier(0.667, 1, 0.667, 1)",_FLING_INITIAL_SLOPE:1.5,_DRAWER_STATE:{INIT:0,OPENED:1,OPENED_PERSISTENT:2,CLOSED:3,TRACKING:4,FLINGING:5}});var C3i;var SfO;_.hr({_template:function(){if(SfO!==void 0)return SfO;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;C3i===void 0&&(C3i=document.createElement("template"));var w=C3i;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return SfO=H},
is:"tp-yt-paper-progress",behaviors:[xJK],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(H){this.toggleClass("indeterminate",H,this.$.primaryProgress)},
_transformProgress:function(H,C){H.style.transform=H.style.webkitTransform="scaleX("+C/100+")"},
_mainRatioChanged:function(H){this._transformProgress(this.$.primaryProgress,H)},
_progressChanged:function(H,C,S,w,A){H=this._clampValue(H);C=this._clampValue(C);var J=this._calcRatio(H)*100,c=this._calcRatio(C)*100;this._setSecondaryRatio(J);this._transformProgress(this.$.secondaryProgress,J);this._transformProgress(this.$.primaryProgress,c);this.secondaryProgress=H;A?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",C);this.setAttribute("aria-valuemin",S);this.setAttribute("aria-valuemax",w)},
_disabledChanged:function(H){this.setAttribute("aria-disabled",H?"true":"false")},
_hideSecondaryProgress:function(H){return H===0}});var syi;var jyK;var wgi=function(){};
_.F=wgi.prototype;_.F.registered=function(){};
_.F.addOwnKeyBinding=function(){};
_.F.removeOwnKeyBindings=function(){};
_.F.keyboardEventMatchesKeys=function(){};
_.F._collectKeyBindings=function(){};
_.F._prepKeyBindings=function(){};
_.F._addKeyBinding=function(){};
_.F._resetKeyEventListeners=function(){};
_.F._listenKeyEventListeners=function(){};
_.F._unlistenKeyEventListeners=function(){};
_.F._onKeyBindingEvent=function(){};
_.F._triggerKeyHandler=function(){};
_.F._tapHandler=function(){};
_.F._focusChanged=function(){};
_.F._detectKeyboardFocus=function(){};
_.F._userActivate=function(){};
_.F._upHandler=function(){};
_.F._spaceKeyDownHandler=function(){};
_.F._spaceKeyUpHandler=function(){};
_.F._asyncClick=function(){};
_.F._pressedChanged=function(){};
_.F._ariaActiveAttributeChanged=function(){};
_.F._activeChanged=function(){};
_.F._controlStateChanged=function(){};
_.F._changedButtonState=function(){};
_.F._focusBlurHandler=function(){};
_.F._disabledChanged=function(){};
_.F._changedControlState=function(){};
_.F._buttonStateChanged=function(){};
_.F._downHandler=function(){};
_.F.ensureRipple=function(){};
_.F.getRipple=function(){};
_.F.hasRipple=function(){};
_.F._noinkChanged=function(){};
_.F._calcRatio=function(){};
_.F._clampValue=function(){};
_.F._calcStep=function(){};
_.F._validateValue=function(){};
_.F._update=function(){};
_.F._setImmediateValue=function(){};
_.F._setExpand=function(){};
_.F._setDragging=function(){};
_.F._setTransiting=function(){};
_.F._setMarkers=function(){};
_.F._setPressed=function(){};
_.F._setPointerDown=function(){};
_.F._setReceivedFocusFromKeyboard=function(){};
_.F._setFocused=function(){};
_.F._setRatio=function(){};
wgi=_.hr({_template:function(){if(jyK!==void 0)return jyK;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;syi===void 0&&(syi=document.createElement("template"));var w=syi;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return jyK=H},
is:"tp-yt-paper-slider",behaviors:[_.rA,_.tn,_.Kx7,xJK],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&&_.B5(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(H,C,S){this.setAttribute("aria-valuemin",C);this.setAttribute("aria-valuemax",S);this.setAttribute("aria-valuenow",H);this._positionKnob(this._calcRatio(H)*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(H){this._setImmediateValue(this._calcStep(this._calcKnobPosition(H)));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(H){return(this.max-this.min)*H/100+this.min},
_onTrack:function(H){H.stopPropagation();switch(H.detail.state){case "start":this._trackStart(H);break;case "track":this._trackX(H);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(H){this.dragging||this._trackStart(H);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,H.detail.dx*(this._isRTL?-1:1)));H=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(H);H=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(H+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var H=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;H.transform=H.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(H){this._expandKnob();H.preventDefault();this.focus()},
_bartrack:function(H){this._allowBarEvent(H)&&this._onTrack(H)},
_barclick:function(H){this._w=this.$.sliderBar.offsetWidth;var C=this.$.sliderBar.getBoundingClientRect();C=(H.detail.x-C.left)/this._w*100;this._isRTL&&(C=100-C);var S=this.ratio;this._setTransiting(!0);this._positionKnob(C);S===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
H.preventDefault();this.focus()},
_bardown:function(H){this._allowBarEvent(H)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(H))},
_knobTransitionEnd:function(H){H.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(H,C,S,w){w||this._setMarkers([]);C=Math.round((S-C)/this.step);C>H&&(C=H);if(C<0||!isFinite(C))C=0;this._setMarkers(Array(C))},
_mergeClasses:function(H){return Object.keys(H).filter(function(C){return H[C]}).join(" ")},
_getClassNames:function(){return this._mergeClasses({disabled:this.disabled,pin:this.pin,snaps:this.snaps,ring:this.immediateValue<=this.min,expand:this.expand,dragging:this.dragging,transiting:this.transiting,editable:this.editable})},
_allowBarEvent:function(H){return!this.ignoreBarTouch||H.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(H){this._isRTL?this._incrementKey(H):this._decrementKey(H)},
_rightKey:function(H){this._isRTL?this._decrementKey(H):this._incrementKey(H)},
_incrementKey:function(H){this.disabled||(H.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),H.preventDefault())},
_decrementKey:function(H){this.disabled||(H.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),H.preventDefault())},
_changeValue:function(H){this.value=H.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(H){H.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.DI1._createRipple.call(this)},
_focusedChanged:function(H){H&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=H?"":"none",this._ripple.holdDown=H)}});var Ado;var JdK;var Rl=null,FkO=function(){};
_.F=FkO.prototype;_.F.fit=function(){};
_.F._discoverInfo=function(){};
_.F.resetFit=function(){};
_.F.refit=function(){};
_.F.position=function(){};
_.F.constrain=function(){};
_.F._sizeDimension=function(){};
_.F.__sizeDimension=function(){};
_.F.center=function(){};
_.F.__getNormalizedRect=function(){};
_.F.__getOffscreenArea=function(){};
_.F.__getPosition=function(){};
_.F.notifyResize=function(){};
_.F.assignParentResizable=function(){};
_.F.stopResizeNotificationsFor=function(){};
_.F._subscribeIronResize=function(){};
_.F._unsubscribeIronResize=function(){};
_.F.resizerShouldNotify=function(){};
_.F._onDescendantIronResize=function(){};
_.F._fireResize=function(){};
_.F._onIronRequestResizeNotifications=function(){};
_.F._parentResizableChanged=function(){};
_.F._notifyDescendant=function(){};
_.F._requestResizeNotifications=function(){};
_.F._findParent=function(){};
_.F.toggle=function(){};
_.F.open=function(){};
_.F.close=function(){};
_.F.cancel=function(){};
_.F.invalidateTabbables=function(){};
_.F._ensureSetup=function(){};
_.F._canceledChanged=function(){};
_.F._withBackdropChanged=function(){};
_.F._prepareRenderOpened=function(){};
_.F._finishRenderOpened=function(){};
_.F._finishRenderClosed=function(){};
_.F._preparePositioning=function(){};
_.F._finishPositioning=function(){};
_.F._applyFocus=function(){};
_.F._onCaptureClick=function(){};
_.F._onCaptureFocus=function(){};
_.F._onCaptureEsc=function(){};
_.F._onCaptureTab=function(){};
_.F._onIronResize=function(){};
_.F._onNodesChange=function(){};
_.F.__ensureFirstLastFocusables=function(){};
_.F.__openedChanged=function(){};
_.F.__deraf=function(){};
_.F.__updateScrollObservers=function(){};
_.F.__addScrollListeners=function(){};
_.F.__removeScrollListeners=function(){};
_.F.__isValidScrollAction=function(){};
_.F.__onCaptureScroll=function(){};
_.F.__saveScrollPosition=function(){};
_.F.__restoreScrollPosition=function(){};
_.F._setCanceled=function(){};
FkO=_.hr({_template:function(){if(JdK!==void 0)return JdK;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;Ado===void 0&&(Ado=document.createElement("template"));var w=Ado;S.call(C,w.content.cloneNode(!0),H.content.firstChild);return JdK=H},
is:"tp-yt-paper-toast",behaviors:[_.zj],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(){_.BW._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.Ao.requestAvailability()},
show:function(H){typeof H=="string"&&(H={text:H});for(var C in H)C.indexOf("_")===0?_.BW._warn('The property "'+C+'" is private and was not set.'):C in this?this[C]=H[C]:_.BW._warn('The property "'+C+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(H){H&&H.target===this&&H.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(Rl&&Rl!==this&&Rl.close(),Rl=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):Rl===this&&(Rl=null);_.YH._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(H){this.positionTarget=H},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var ZOq=new _.mi("disablePersonalizationAction");var nQ_=new _.mi("showDmaConsentFlowCommand");var rhi=new _.mi("showMmgNoticeCommand");var cdp=new _.mi("saveConsentAction");var Yf9=function(H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pr(H)};
_.G(Yf9,_.Jc);var SY_=_.thp(Yf9);var snO=new _.mi("updateTopbarAvatarAction");var jni=new _.mi("channelHandleValidationResultRenderer");var wmi=new _.mi("generateHandleFromNameResultRenderer");var AvO=new _.mi("channelHandleInputRenderer");var Jv3=new _.mi("copyLinkRenderer");var Fwo=new _.mi("timedCommand");var Z4p=new _.mi("clearCookieAction");var cvR=new _.mi("getMultiPageMenuAction");var YYi=new _.mi("addToGuideSectionAction"),zvt=new _.mi("removeFromGuideSectionAction");var M3p=new _.mi("updateNotificationsUnseenCountAction");var qYj=new _.mi("resetChannelUnreadCountCommand");var T2i=new _.mi("resetSubscriptionsUnreadDotCommand");var mh_=new _.mi("selectLanguageCommand");var CKo=new _.mi("sendFeedbackAction");var Wwq=new _.mi("uploadImageToScottyCommand");var yvj=new _.mi("registerPromoCommand");var N2j=new _.mi("setPushNotificationsEnabledCommand");var b4r=new _.mi("desktopTopbarRenderer");var Er9=new _.mi("surveyFollowUpRenderer");var evr=new _.mi("handlesClaimingRadioOptionRenderer");var uE_=new _.mi("hotkeyDialogRenderer");var Gh9=new _.mi("modifyReportFormCommand");var f$i=new _.mi("accountLinkCommand");var vrj=new _.mi("accountUnlinkCommand");var l$o=new _.mi("logAccountLinkingEventCommand");var V3O=new _.mi("guideCollapsibleEntryRenderer");var ori=new _.mi("guideDownloadsEntryRenderer");var O4O=new _.mi("guideEntryRenderer");var Xmr=new _.mi("getLocationCommand");var QnR=new _.mi("locationCollectionCommand");var dh3=new _.mi("storiesItemViewModel");var PQi=new _.mi("addToRemoteQueueAction");var $hR=new _.mi("insertInRemoteQueueAction");var pmR=new _.mi("removeFromRemoteQueueAction");var khj=new _.mi("notificationRenderer");var G_i=new _.mi("localWatchHistoryCommand");var hvi=new _.mi("pdgBuyFlowHeaderRenderer");var nrO=new _.mi("pdgColorSliderRenderer");var rvR=new _.mi("pdgCommentOptionRenderer");var B2O=new _.mi("pdgCommentPreviewRenderer");var Dhp=new _.mi("superVodSelectableItemButtonRenderer");var Kw_=new _.mi("switchButtonRenderer");var t3O=new _.mi("upsellDialogRenderer");var Lw3=new _.mi("feedbackQuestionRenderer"),grO=new _.mi("feedbackOptionRenderer");var UhO=new _.mi("sponsorshipsTierRenderer"),Rv3=new _.mi("sponsorshipsPromotionChannelRenderer");var I$_=new _.mi("simpleSurveyMessageRenderer");var Cz3=new _.mi("invokeInstrumentManagerAction");var a$9=new _.mi("logYpcFlowDismissCommand");var xhK=new _.mi("logYpcFlowStartCommand");var HT3=new _.mi("unlimitedCreateFamilyEndpoint");var iTp=new _.mi("iconBadgeRenderer");var fzO=new _.mi("collaborativePlaylistVisibilityValidationRule");var CUt=function(H){_.Xc.call(this,"channelMessage");this.message=H};
_.G(CUt,_.Xc);var SI3=function(H){_.Xc.call(this,"channelError");this.error=H};
_.G(SI3,_.Xc);var sIi={AUTOPLAY:"atp",SKA_SKIPPABLE_ADS:"ska",QUEUE_SUPPORT:"que",MULTI_USER_SESSIONS:"mus",SINGLE_USER_SESSIONS:"sus",HAS_DISPLAY:"dsp",SCREEN_EXTENDED_QUEUE_SUPPORT:"seq",MIC:"mic",DPAD:"dpa",MULTISTATE_LOOP_MODE:"mlm",DISCONNECT_STRATEGY_DEFFERRED_TO_RECEIVER:"dsdtr",NATIVE_BROWSE:"ntb",VARIABLE_SPEED:"vsp",ENABLE_VIDEO_SOURCE_CLIENT_NAME:"scn",RECEIVER_PLAYLIST_EXPANSION:"rpe",DISABLE_CURRENTINDEX_IN_NOWPLAYING:"dcn",DISABLE_CURRENTINDEX_IN_PLAYLISTMODIFIED:"dcp",PAUSE_AT_START:"pas",DISABLE_QUEUE_FOR_RECEIVER_ONLY_SESSION:"drq",
ONUSERACTIVITY_POLLING_FREQUENCY:"opf",ENABLE_LOUNGE_STATUS_PLAYBACK:"els",ENABLE_IDENTITY_SWITCH_TO_GUEST:"isg",SERVER_QUEUES:"svq",MULTIVIEW_PLAYBACK:"mvp",ACTIVE_DEVICE_STORE_WRITES:"ads",STREAM_TRANSFER_CREATE_PLAYLIST:"stcp",SHORTS_ACTIVE_DEVICE_STORE_WRITES:"sads",DISABLE_LOGGED_OUT_CASTING:"dloc",DUAL_CTT_WRITES:"dcw",ACTIVE_STREAM_WRITES_FOR_CONNECTED_REMOTES:"asw",ACTIVE_PLAYBACK_WRITES_FOR_CONNECTED_REMOTES:"apw",ACTIVE_STREAM_WRITES_FOR_REMOTE_CONNECTION_AND_DISCONNECTION:"wrc",PUNCTUAL_WATCH:"pcw",
IP_VALIDATION:"ipv"},jIO={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},w_i={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},A1q={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},J13={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var Il=function(H){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 _.VV;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;H&&(this.id=H.id||H.name,this.name=H.name,this.clientName=H.clientName?H.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=H.app,this.type=H.type||"REMOTE_CONTROL",this.username=H.user||"",this.avatar=H.userAvatarUri||"",this.obfuscatedGaiaId=H.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=H.ownerObfuscatedGaiaId||"",this.castUserId=H.castUserId||"",this.theme=H.theme||"u",F4K(this,H.capabilities||""),ZTo(this,
H.compatibleSenderThemes||""),c1O(this,H.experiments||""),this.remoteControllerUrl=H.remoteControllerUrl||"",this.localChannelEncryptionKey=H.localChannelEncryptionKey||"",this.deviceContext=H.deviceContext,this.brand=H.brand||"",this.model=H.model||"",this.year=H.year||0,this.os=H.os||"",this.osVersion=H.osVersion||"",this.chipset=H.chipset||"",this.mdxDialServerType=H.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=H.pairingType||"unknown",H=H.deviceInfo)&&(H=JSON.parse(H),this.brand=
H.brand||"",this.model=H.model||"",this.year=H.year||0,this.os=H.os||"",this.osVersion=H.osVersion||"",this.chipset=H.chipset||"",this.clientName=H.clientName?H.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=H.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
Il.prototype.copy=function(){var H={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&&(H.brand=this.brand);
this.model&&(H.model=this.model);this.year&&(H.year=this.year);this.os&&(H.os=this.os);this.osVersion&&(H.osVersion=this.osVersion);this.chipset&&(H.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(H.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(H.mdxDialServerType=this.mdxDialServerType);H=new Il(H);H.connected=this.connected;H.remoteControllerUrl=this.remoteControllerUrl;H.localChannelEncryptionKey=this.localChannelEncryptionKey;H.deviceContext=
this.deviceContext;H.castUserId=this.castUserId;return H};
Il.prototype.equals=function(H){return H?this.id==H.id:!1};
var F4K=function(H,C){H.capabilities.clear();_.Yv(C.split(","),_.l9(_.hb.contains,sIi)).forEach(function(S){H.capabilities.add(S)})},ZTo=function(H,C){H.compatibleSenderThemes.clear();
_.Yv(C.split(","),_.l9(_.hb.contains,jIO)).forEach(function(S){H.compatibleSenderThemes.add(S)})},c1O=function(H,C){H.experiments.clear();
C.split(",").forEach(function(S){H.experiments.add(S)})};_.Zh(gzi,_.Op);_.F=gzi.prototype;_.F.JSC$19783_onTick_=function(){this.JSC$19781_interval_=Math.min(3E5,this.JSC$19781_interval_*2);this.JSC$19783_listener_();this.nextTickTime_&&this.start()};
_.F.start=function(){var H=this.JSC$19781_interval_+15E3*Math.random(),C=this.delay_;C.isActive()||C.start(H);this.nextTickTime_=Date.now()+H};
_.F.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.F.isActive=function(){return this.delay_.isActive()};
_.F.reset=function(){this.delay_.stop();this.JSC$19781_interval_=5E3};_.Zh(ll,UJ9);_.F=ll.prototype;_.F.subscribe=function(H,C,S){return this.pubsub_.subscribe(H,C,S)};
_.F.unsubscribe=function(H,C,S){return this.pubsub_.unsubscribe(H,C,S)};
_.F.unsubscribeByKey=function(H){return this.pubsub_.unsubscribeByKey(H)};
_.F.publish=function(H,C){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.F.dispose=function(){this.JSC$19784_disposed_||(this.JSC$19784_disposed_=!0,_.Ak(this.pubsub_),this.disconnect(),_.Ak(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$19784_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.N3({})})};
_.F.isDisposed=function(){return this.JSC$19784_disposed_};
_.F.connect=function(H,C,S){var w=this,A,J,c,Y;return _.z(function(M){if(M.nextAddress==1)return _.fM(M,2),w.useAsyncBrowserChannelHandler_?M.yield(w.connectPromise_,2):M.jumpTo(2);_.Gv(M);if(w.JSC$19784_disposed_||w.JSC$19784_channel_&&w.JSC$19784_channel_.getState()==2)return M.return();w.sCookie_="";w.reconnectTimer_.stop();w.connectionParams_=H||null;w.connectUi_=C||0;A=w.JSC$19784_pathPrefix_+"/test";J=w.JSC$19784_pathPrefix_+"/bind";c=new LZ(S?S.firstTestResults:null,S?S.secondTestResults:null,
w.enableAsyncTest_);if(Y=w.JSC$19784_channel_)Y.handler_=null;c.handler_=w;w.JSC$19784_channel_=c;if(w.useAsyncBrowserChannelHandler_)return w.connectPromise_=YIq(w).then(function(){return zsq(w,A,J,Y,S)}),M.return(w.connectPromise_.then(function(){w.connectPromise_=_.N3()}));
zsq(w,A,J,Y,S);return _.lf(M,0)})};
var zsq=function(H,C,S,w,A){MwR(H);if(H.JSC$19784_channel_){var J=_.rh("ID_TOKEN"),c=H.JSC$19784_channel_.JSC$19736_extraHeaders_||{};J?c["x-youtube-identity-token"]=J:delete c["x-youtube-identity-token"];H.JSC$19784_channel_.JSC$19736_extraHeaders_=c}qI_(H);w?(w.getState(),H.JSC$19784_channel_.connect(C,S,H.defaultQueryParams_,w.sid_,w.JSC$19736_lastArrayId_)):A?H.JSC$19784_channel_.connect(C,S,H.defaultQueryParams_,A.sessionId,A.arrayId):H.JSC$19784_channel_.connect(C,S,H.defaultQueryParams_)};
ll.prototype.disconnect=function(H){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.N3())}finally{this.disconnectUi_=H||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),MwR(this),this.JSC$19784_channel_&&(this.JSC$19784_channel_.getState()==3&&BZR(this.JSC$19784_channel_),this.JSC$19784_channel_.disconnect()),this.disconnectUi_=0}};
ll.prototype.sendMessage=function(H,C){var S=this,w;return _.z(function(A){switch(A.nextAddress){case 1:_.fM(A,2);if(!S.useAsyncBrowserChannelHandler_){A.jumpTo(2);break}return A.yield(S.connectPromise_,2);case 2:_.Gv(A);if(S.JSC$19784_disposed_)return A.return();w={_sc:H};C&&_.hb.extend(w,C);if(S.reconnectTimer_.isActive()||(S.JSC$19784_channel_?S.JSC$19784_channel_.getState():0)==2){S.JSC$19784_pendingMessages_.push(w);A.jumpTo(6);break}if(!S.isChannelOpened()){A.jumpTo(6);break}_.fM(A,8);if(!S.useAsyncBrowserChannelHandler_||
T9_(S,H)){A.jumpTo(8);break}return A.yield(YIq(S),8);case 8:_.Gv(A,0,0,1);S.isChannelOpened()&&(T9_(S,H)||qI_(S),MwR(S),roi(S.JSC$19784_channel_,w));_.lf(A,6,1);break;case 6:_.lf(A,0)}})};
var T9_=function(H,C){return H.enableMdxAuthForConnectionOnly_?!0:H.disableMdxAuthForAdMessages_?Object.values(w_i).includes(C):H.disableMdxAuthForNonPlaybackMessages_?!Object.values(A1q).includes(C):H.disableMdxAuthForShortsMessages_?Object.values(J13).includes(C):!1};
ll.prototype.JSC$19743_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$19784_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)m$j(this);else{var H=this.JSC$19784_pendingMessages_;this.JSC$19784_pendingMessages_=[];var C=H.length;qI_(this);W4o(this,H,C);y1R(this)}else y1R(this)};
var m$j=function(H){var C,S;_.z(function(w){if(w.nextAddress==1)return _.fM(w,2),w.yield(YIq(H),2);_.Gv(w);C=H.JSC$19784_pendingMessages_;H.JSC$19784_pendingMessages_=[];S=C.length;W4o(H,C,S);y1R(H);return _.lf(w,0)})},W4o=function(H,C,S){for(var w=0;w<S;++w)roi(H.JSC$19784_channel_,C[w]);
y1R(H)},y1R=function(H){H.publish("handlerOpened");
H.JSC$19784_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.F=ll.prototype;_.F.JSC$19743_channelError=function(H){var C=H==2&&this.JSC$19784_channel_.JSC$19736_lastStatusCode_==401;H==4||C||this.reconnectTimer_.start();this.publish("handlerError",H,C);C=Object.keys(Q4i).find(function(S){return Q4i[S]===H});
this.JSC$19784_channelErrorCounter.increment("BROWSER_CHANNEL",C!=null?C:"UNKNOWN")};
_.F.JSC$19743_channelClosed=function(H,C){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(C)for(var S=C.length,w=0;w<S;++w){var A=C[w].map;A&&this.JSC$19784_pendingMessages_.push(A)}this.JSC$19784_channelClosedCounter.increment("BROWSER_CHANNEL");H&&this.pendingMapsOnClosedCounter.JSC$9945_streamzService.JSC$9800_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",H.length);C&&this.undeliveredMapsOnClosedCounter.JSC$9948_streamzService.JSC$9800_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
C.length)};
_.F.JSC$19743_channelSuccess=function(H,C){C!=null&&H!=null&&this.channelMessageSentCounter.increment()};
_.F.JSC$19743_getAdditionalParams=function(){var H={v:2};this.sCookie_&&(H.gsessionid=this.sCookie_);this.connectUi_!=0&&(H.ui=""+this.connectUi_);this.disconnectUi_!=0&&(H.ui=""+this.disconnectUi_);this.connectionParams_&&_.hb.extend(H,this.connectionParams_);return H};
_.F.JSC$19743_channelHandleArray=function(H){H[0]=="S"?this.sCookie_=H[1]:H[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$19784_channel_.disconnect()):this.publish("handlerMessage",new LYt(H[0],H[1]));this.JSC$19784_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.F.isChannelOpened=function(){return!!this.JSC$19784_channel_&&this.JSC$19784_channel_.getState()==3};
var MwR=function(H){if(H.JSC$19784_channel_){var C=H.JSC$19784_getXsrfToken_(),S=H.JSC$19784_channel_.JSC$19736_extraHeaders_||{};C?S["x-youtube-lounge-xsrf-token"]=C:delete S["x-youtube-lounge-xsrf-token"];H.JSC$19784_channel_.JSC$19736_extraHeaders_=S}},YIq=function(H){if(H.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.N3();
if(!H.enableCachedUpdateAuthorizationHeader_)return N9O(H);H.updateAuthorizationHeaderPromise_===null&&(H.updateAuthorizationHeaderPromise_=N9O(H));return H.updateAuthorizationHeaderPromise_},N9O=function(H){return _.rL(H.getAuthorizationHeader_().then(function(C){bT_(H,C)}).thenCatch(function(){}),function(){H.updateAuthorizationHeaderPromise_=null})},bT_=function(H,C){if(H.JSC$19784_channel_){var S=H.JSC$19784_channel_.JSC$19736_extraHeaders_||{};
C&&Object.keys(C).length>0?S=Object.assign({},S,C):delete S.Authorization;H.JSC$19784_channel_.JSC$19736_extraHeaders_=S}},qI_=function(H){H.getAuthorizationHeaderSync_&&!H.useAsyncBrowserChannelHandler_&&bT_(H,H.getAuthorizationHeaderSync_())};
_.F=ll.prototype;_.F.setLoungeToken=function(H){(this.defaultQueryParams_.loungeIdToken=H)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$19784_channel_){var C=this.JSC$19784_channel_.JSC$19736_extraHeaders_||{};H?C["X-YouTube-LoungeId-Token"]=H:delete C["X-YouTube-LoungeId-Token"];this.JSC$19784_channel_.JSC$19736_extraHeaders_=C}};
_.F.getDeviceId=function(){return this.defaultQueryParams_.id};
_.F.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.F.reconnect=function(){var H=this.reconnectTimer_;H.delay_.fire();H.start()};
_.F.safeReconnect_=function(){var H=this.JSC$19784_channel_,C=0;H.JSC$19736_backChannelRequest_&&C++;H.forwardChannelRequest_&&C++;C==0&&this.connect(this.connectionParams_,this.connectUi_)};var Px=function(H,C){var S=H.basePath;H.supportCors&&(S=H.scheme+"://"+H.domain+H.port+H.basePath);return _.i5(S+C,{})};
VI.prototype.sendRequest=function(H,C,S,w,A,J,c){H={format:J?"RAW":"JSON",method:H,context:this,timeout:5E3,withCredentials:!!c,onSuccess:_.l9(this.JSC$19789_onSuccess_,w,!J),onError:_.l9(this.onError_,A),onTimeout:_.l9(this.JSC$19789_onTimeout_,A)};S&&(H.postParams=S,H.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.e$(C,H)};
VI.prototype.JSC$19789_onSuccess_=function(H,C,S,w){C?H(w):H({text:S.responseText})};
VI.prototype.onError_=function(H,C){H(Error("Sk`"+C.status))};
VI.prototype.JSC$19789_onTimeout_=function(H){H(Error("Tk"))};var OC=function(H,C){return!!C&&(H.id==C||H.uuid==C)},Eo9=function(H){return{name:H.name,
screenId:H.id,loungeToken:H.token,dialId:H.uuid,screenIdType:H.idType}},esO=function(H){return new oG(H)},u$i=function(H){return Array.isArray(H)?_.nX(H,esO):[]},sWK=function(H){if(!H)return"null";
var C=H.token?".."+H.token.slice(-6):"-",S=H.uuid?".."+H.uuid.slice(-6):"-";return'{name:"'+H.name+'",id:'+H.id.substr(0,6)+"..,token:"+(C+",uuid:"+S+",idType:"+H.idType+"}")},O7q=function(H){return Array.isArray(H)?"["+_.nX(H,sWK).join(",")+"]":"null"};var cxi="",dI=null;var NCr=function(H,C){_.ph.call(this);var S=this;this.handler=H();this.handler.subscribe("handlerOpened",this.JSC$19796_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(w,A){S.onError(A)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=C};
_.G(NCr,_.ph);_.F=NCr.prototype;_.F.connect=function(H,C,S){this.handler.connect(H,C,S)};
_.F.disconnect=function(H){this.handler.disconnect(H)};
_.F.reconnect=function(){this.handler.reconnect()};
_.F.getDeviceId=function(){return this.handler.getDeviceId()};
_.F.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.F.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.F.JSC$19796_onOpened=function(){this.dispatchEvent("channelOpened");var H=this.handler,C=this.currentScreenId;_.rm("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!H.JSC$19784_channel_.useChunked_,sessionId:H.JSC$19784_channel_.sid_,arrayId:H.JSC$19784_channel_.JSC$19736_lastArrayId_});_.rm("yt-remote-session-screen-id",C);H=jmR();C=wIq();_.nU(H,C)||H.push(C);Z7o(H);Fn3()};
_.F.onClosed=function(){this.dispatchEvent("channelClosed")};
_.F.onMessage=function(H){this.dispatchEvent(new CUt(H))};
_.F.onError=function(H){this.dispatchEvent(new SI3(H?1:0))};
_.F.sendMessage=function(H,C){this.handler.sendMessage(H,C)};
_.F.setLoungeToken=function(H){this.handler.setLoungeToken(H)};
_.F.dispose=function(){this.handler.dispose()};var yxR=function(H,C,S){var w=this;S=S===void 0?function(){return""}:S;
var A=A===void 0?new wJp:A;var J=J===void 0?new _.G9:J;this.pathPrefix=H;this.defaultQueryParams=C;this.getXsrfToken=S;this.JSC$19799_pubsub=J;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new gzi(function(){var c;((c=w.channel)==null?void 0:$f9((new FyR(c,c.JSC$19707_channel_)).JSC$19717_channel_.forwardChannelRequestPool_))===0&&w.connect(w.connectionParams,w.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$19799_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$19799_channelOpenedCounter=new UT_;this.JSC$19799_channelClosedCounter=new RK_;this.JSC$19799_channelMessageReceivedCounter=new a2t;this.JSC$19799_channelErrorCounter=new xTi};
yxR.prototype.connect=function(H,C){H=H===void 0?{}:H;C=C===void 0?0:C;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=H,this.connectUi=C,Gxr(this),(H=_.rh("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=H: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 hw(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,fLi(this))};
var fLi=function(H){_.PI(H.channel,"w",function(){H.channelState=3;H.reconnectTimer.reset();H.connectionParams=null;H.connectUi=0;for(var C=_.Z(H.nonAckedMessagesOnChannelClosed),S=C.next();!S.done;S=C.next())S=S.value,H.channel&&H.channel.send(S);H.nonAckedMessagesOnChannelClosed=[];H.publish("webChannelOpened");H.JSC$19799_channelOpenedCounter.increment("WEB_CHANNEL")});
_.PI(H.channel,"x",function(){H.channelState=0;H.reconnectTimer.isActive()||H.publish("webChannelClosed");var C,S=(C=H.channel)==null?void 0:ZoR(new FyR(C,C.JSC$19707_channel_));S&&(H.nonAckedMessagesOnChannelClosed=[].concat(_.k$(S)));H.JSC$19799_channelClosedCounter.increment("WEB_CHANNEL")});
_.PI(H.channel,"z",function(C){var S=C.data;S[0]==="gracefulReconnect"?(H.reconnectTimer.start(),H.channel&&H.channel.close()):H.publish("webChannelMessage",new LYt(S[0],S[1]));H.lastStatusCode=C.statusCode;H.JSC$19799_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.PI(H.channel,"y",function(){H.lastStatusCode===401||H.reconnectTimer.start();H.publish("webChannelError");H.JSC$19799_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.F=yxR.prototype;_.F.disconnect=function(H){this.disconnectUi=H===void 0?0:H;this.reconnectTimer.stop();Gxr(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.F.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.F.reconnect=function(){var H=this.reconnectTimer;H.delay_.fire();H.start()};
_.F.sendMessage=function(H,C){this.channel&&(Gxr(this),H=Object.assign({},{_sc:H},C),this.channel.send(H))};
_.F.setLoungeToken=function(H){H||this.reconnectTimer.stop();H?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=H:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var Gxr=function(H){var C=H.getXsrfToken();C?H.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=C:delete H.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.F=yxR.prototype;_.F.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.F.publish=function(H){return this.JSC$19799_pubsub.publish.apply(this.JSC$19799_pubsub,[H].concat(_.k$(_.tc.apply(1,arguments))))};
_.F.subscribe=function(H,C,S){return this.JSC$19799_pubsub.subscribe(H,C,S)};
_.F.unsubscribe=function(H,C,S){return this.JSC$19799_pubsub.unsubscribe(H,C,S)};
_.F.unsubscribeByKey=function(H){return this.JSC$19799_pubsub.unsubscribeByKey(H)};
_.F.dispose=function(){this.JSC$19799_disposed||(this.JSC$19799_disposed=!0,_.Ak(this.JSC$19799_pubsub),this.disconnect(),_.Ak(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.F.isDisposed=function(){return this.JSC$19799_disposed};var Wn_=function(H){_.ph.call(this);this.webChannelService=H();this.webChannelService.subscribe("webChannelOpened",this.JSC$19807_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.G(Wn_,_.ph);_.F=Wn_.prototype;_.F.connect=function(H,C){this.webChannelService.connect(H,C)};
_.F.disconnect=function(H){this.webChannelService.disconnect(H)};
_.F.reconnect=function(){this.webChannelService.reconnect()};
_.F.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.F.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.F.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.F.JSC$19807_onOpened=function(){this.dispatchEvent("channelOpened")};
_.F.onClosed=function(){this.dispatchEvent("channelClosed")};
_.F.onMessage=function(H){this.dispatchEvent(new CUt(H))};
_.F.onError=function(){this.dispatchEvent(new SI3(this.webChannelService.lastStatusCode===401?1:0))};
_.F.sendMessage=function(H,C){this.webChannelService.sendMessage(H,C)};
_.F.setLoungeToken=function(H){this.webChannelService.setLoungeToken(H)};
_.F.dispose=function(){this.webChannelService.dispose()};var oj_=Date.now(),$L=null,l5o=Array(50),hX=-1,VUj=!1;_.Zh(nk,_.KI);nk.prototype.getScreens=function(){return this.screens};
nk.prototype.contains=function(H){return!!smp(this.screens,H)};
nk.prototype.get=function(H){return H?X8(this.screens,H):null};
var voO=function(H,C){var S=H.get(C.uuid)||H.get(C.id);if(S)return H=S.name,S.id=C.id||S.id,S.name=C.name,S.token=C.token,S.uuid=C.uuid||S.uuid,S.name!=H;H.screens.push(C);return!0},lLR=function(H,C){var S=H.screens.length!=C.length;
H.screens=_.Yv(H.screens,function(J){return!!smp(C,J)});
for(var w=C.length,A=0;A<w;A++)S=voO(H,C[A])||S;return S},Vwi=function(H,C){var S=H.screens.length;
H.screens=_.Yv(H.screens,function(w){return!(w||C?!w!=!C?0:w.id==C.id:1)});
return H.screens.length<S};
nk.prototype.info=function(H){pk(this.JSC$19808_logName_,H)};var oop=function(H,C,S,w,A){_.KI.call(this);this.JSC$19811_http_=H;this.pairingCode_=C;this.deviceId_=S;this.friendlyName_=w;this.enableShortLivedLoungeToken_=A;this.pollIndex_=0;this.JSC$19811_xhr_=null;this.JSC$19811_timer_=NaN};
_.G(oop,_.KI);_.F=oop.prototype;_.F.start=function(){!this.JSC$19811_xhr_&&isNaN(this.JSC$19811_timer_)&&this.poll_()};
_.F.stop=function(){this.JSC$19811_xhr_&&(this.JSC$19811_xhr_.abort(),this.JSC$19811_xhr_=null);isNaN(this.JSC$19811_timer_)||(_.b5(this.JSC$19811_timer_),this.JSC$19811_timer_=NaN)};
_.F.disposeInternal=function(){this.stop();_.KI.prototype.disposeInternal.call(this)};
_.F.poll_=function(){this.JSC$19811_timer_=NaN;this.JSC$19811_xhr_=_.e$(Px(this.JSC$19811_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.Xv)(this.JSC$19813_onSuccess_,this),onError:(0,_.Xv)(this.onError_,this),onTimeout:(0,_.Xv)(this.JSC$19813_onTimeout_,this)})};
_.F.JSC$19813_onSuccess_=function(H,C){this.JSC$19811_xhr_=null;H=C.screen||{};H.dialId=this.deviceId_;H.name=this.friendlyName_;C=-1;this.enableShortLivedLoungeToken_&&H.shortLivedLoungeToken&&H.shortLivedLoungeToken.value&&H.shortLivedLoungeToken.refreshIntervalMs&&(H.screenIdType="shortLived",H.loungeToken=H.shortLivedLoungeToken.value,C=H.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new oG(H),C)};
_.F.onError_=function(H){this.JSC$19811_xhr_=null;H.status&&H.status==404?this.pollIndex_>=OTK.length?this.publish("pairingFailed",Error("Uk")):(H=OTK[this.pollIndex_],this.JSC$19811_timer_=_.yD((0,_.Xv)(this.poll_,this),H),this.pollIndex_++):this.publish("pairingFailed",Error("Vk`"+H.status))};
_.F.JSC$19813_onTimeout_=function(){this.JSC$19811_xhr_=null;this.publish("pairingFailed",Error("Wk"))};
var OTK=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.Zh(Bx,nk);_.F=Bx.prototype;_.F.start=function(){rI(this)&&this.publish("screenChange");!_.BU("yt-remote-lounge-token-expiration")&&X_j(this);_.b5(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.yD((0,_.Xv)(this.start,this),1E4)};
_.F.add=function(H,C){rI(this);voO(this,H);QIj(this,!1);this.publish("screenChange");C(H);H.token||X_j(this)};
_.F.remove=function(H,C){var S=rI(this);Vwi(this,H)&&(QIj(this,!1),S=!0);C(H);S&&this.publish("screenChange")};
_.F.updateName=function(H,C,S,w){var A=rI(this),J=this.get(H.id);J?(J.name!=C&&(J.name=C,QIj(this,!1),A=!0),S(H)):w(Error("Xk"));A&&this.publish("screenChange")};
_.F.disposeInternal=function(){_.b5(this.loungeTokenRefreshTimer_);Bx.superClass_.disposeInternal.call(this)};
var X_j=function(H){if(H.screens.length){var C=_.nX(H.screens,function(w){return w.id}),S=Px(H.JSC$19815_http_,"/pairing/get_lounge_token_batch");
H.JSC$19815_http_.sendRequest("POST",S,{screen_ids:C.join(",")},(0,_.Xv)(H.handleLoungeTokens_,H),(0,_.Xv)(H.handleLoungeTokenError_,H))}};
Bx.prototype.handleLoungeTokens_=function(H){rI(this);var C=this.screens.length;H=H&&H.screens||[];for(var S=H.length,w=0;w<S;++w){var A=H[w],J=this.get(A.screenId);J&&(J.token=A.loungeToken,--C)}QIj(this,!C);C&&pk(this.JSC$19808_logName_,"Missed "+C+" lounge tokens.")};
Bx.prototype.handleLoungeTokenError_=function(H){pk(this.JSC$19808_logName_,"Requesting lounge tokens failed: "+H)};
var rI=function(H){if(_.E("deprecate_pair_servlet_enabled"))return lLR(H,[]);var C=u$i(zxj());C=_.Yv(C,function(S){return!S.uuid});
return lLR(H,C)},QIj=function(H,C){q4i(_.nX(H.screens,Eo9));
C&&MU9()};var al=function(H,C){_.KI.call(this);this.getScreensToCheck_=C;C=(C=_.BU("yt-remote-online-screen-ids")||"")?C.split(","):[];for(var S={},w=this.getScreensToCheck_(),A=w.length,J=0;J<A;++J){var c=w[J].id;S[c]=_.nU(C,c)}this.screenIdSet_=S;this.JSC$19818_http_=H;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;d$j("Initialized with "+(0,_.Kh)(this.screenIdSet_))};
_.G(al,_.KI);al.prototype.isOnline=function(H){return!!this.screenIdSet_[H]};
al.prototype.start=function(){var H=parseInt(_.BU("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.FF()-144E5<H?0:H)?PU9(this):(this.fastCheckEndTime_=_.FF()+3E5,_.rm("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
al.prototype.isEmpty=function(){return _.hb.isEmpty(this.screenIdSet_)};
al.prototype.update=function(){d$j("Updating availability on schedule.");var H=this.getScreensToCheck_(),C=_.hb.filter(this.screenIdSet_,function(S,w){return S&&!!X8(H,w)},this);
$$t(this,C)};
var p_i=function(H,C,S){var w=Px(H.JSC$19818_http_,"/pairing/get_screen_availability");H.JSC$19818_http_.sendRequest("POST",w,{lounge_token:C.token},(0,_.Xv)(function(A){A=A.screens||[];for(var J=A.length,c=0;c<J;++c)if(A[c].loungeToken==C.token){S(A[c].status=="online");return}S(!1)},H),(0,_.Xv)(function(){S(!1)},H))};
al.prototype.disposeInternal=function(){_.b5(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.KI.prototype.disposeInternal.call(this)};
var $$t=function(H,C){a:if(_.hb.getCount(C)!=_.hb.getCount(H.screenIdSet_))var S=!1;else{S=_.hb.getKeys(C);for(var w=S.length,A=0;A<w;++A)if(!H.screenIdSet_[S[A]]){S=!1;break a}S=!0}S||(d$j("Updated online screens: "+(0,_.Kh)(H.screenIdSet_)),H.screenIdSet_=C,H.publish("screenChange"));kxR(H)},PU9=function(H){isNaN(H.refreshTimer_)||_.b5(H.refreshTimer_);
H.refreshTimer_=_.yD((0,_.Xv)(H.requestScreenAvailability_,H),H.fastCheckEndTime_>0&&H.fastCheckEndTime_<_.FF()?2E4:1E4)};
al.prototype.requestScreenAvailability_=function(){_.b5(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var H=hs_(this);if(_.hb.getCount(H)){var C=Px(this.JSC$19818_http_,"/pairing/get_screen_availability"),S={lounge_token:_.hb.getKeys(H).join(",")};this.currentRequest_=this.JSC$19818_http_.sendRequest("POST",C,S,(0,_.Xv)(this.onScreenAvailability_,this,H),(0,_.Xv)(this.onScreenAvailabilityError_,this))}else $$t(this,{}),PU9(this)};
al.prototype.onScreenAvailability_=function(H,C){this.currentRequest_=null;var S=_.hb.getKeys(hs_(this));if(_.a0(S,_.hb.getKeys(H))){C=C.screens||[];S={};for(var w=C.length,A=0;A<w;++A)S[H[C[A].loungeToken]]=C[A].status=="online";$$t(this,S);PU9(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
al.prototype.onScreenAvailabilityError_=function(H){this.warn_("Screen availability failed: "+H);this.currentRequest_=null;PU9(this)};
var d$j=function(H){pk("OnlineScreenService",H)};
al.prototype.warn_=function(H){pk("OnlineScreenService",H)};
var hs_=function(H){var C={};_.I6(H.getScreensToCheck_(),function(S){S.token?C[S.token]=S.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return C},kxR=function(H){H=_.hb.getKeys(_.hb.filter(H.screenIdSet_,function(C){return C}));
H.sort(_.Piw);H.length?_.rm("yt-remote-online-screen-ids",H.join(","),60):_.Do("yt-remote-online-screen-ids")};_.Zh(De,nk);_.F=De.prototype;_.F.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.F.add=function(H,C,S){this.localScreenService_.add(H,C,S)};
_.F.remove=function(H,C,S){this.localScreenService_.remove(H,C,S);this.onlineScreenService_.update()};
_.F.updateName=function(H,C,S,w){this.localScreenService_.contains(H)?this.localScreenService_.updateName(H,C,S,w):(H="Updating name of unknown screen: "+H.name,pk(this.JSC$19808_logName_,H),w(Error(H)))};
_.F.getScreens=function(H){return H?this.screens:$3p(this.screens,_.Yv(this.automaticScreens_,function(C){return!this.contains(C)},this))};
_.F.JSC$19823_getOnlineScreens=function(){return _.Yv(this.getScreens(!0),function(H){return this.onlineScreenService_.isOnline(H.id)},this)};
var r1i=function(H,C,S,w,A,J){H.info("getAutomaticScreenByIds "+S+" / "+C);S||(S=H.deviceToScreenId_[C]);var c=H.getScreens(),Y=S?X8(c,S):null;S&&(H.disableAutomaticScreenCache_||Y)||(Y=X8(c,C));if(Y){Y.uuid=C;var M=xW(H,Y);p_i(H.onlineScreenService_,M,function(m){A(m?M:null)})}else S?noi(H,S,(0,_.Xv)(function(m){var W=xW(this,new oG({name:w,
screenId:S,loungeToken:m,dialId:C||""}));p_i(this.onlineScreenService_,W,function(y){A(y?W:null)})},H),J):A(null)};
De.prototype.JSC$19823_getScreenByPollingPairingCode=function(H,C,S,w,A,J){var c=this;this.info("getDialScreenByPairingCode "+H+" / "+C);var Y=new oop(this.JSC$19821_http_,H,C,S,w);Y.subscribe("pairingComplete",function(M,m){_.Ak(Y);A(xW(c,M),m)});
Y.subscribe("pairingFailed",function(M){_.Ak(Y);J(M)});
Y.start();return(0,_.Xv)(Y.stop,Y)};
var B9K=function(H,C){for(var S=H.screens.length,w=0;w<S;++w)if(H.screens[w].name==C)return H.screens[w];return null};
De.prototype.JSC$19823_getScreenByPairingCode=function(H,C,S,w){_.e$(Px(this.JSC$19821_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:H},timeout:5E3,onSuccess:(0,_.Xv)(function(A,J){A=new oG(J.screen||{});if(!A.name||B9K(this,A.name)){a:{J=A.name;for(var c=2,Y=C(J,c);B9K(this,Y);){c++;if(c>20)break a;Y=C(J,c)}J=Y}A.name=J}S(xW(this,A))},this),
onError:(0,_.Xv)(function(A){w(Error("Yk`"+A.status))},this),
onTimeout:(0,_.Xv)(function(){w(Error("Zk"))},this)})};
var D$i=function(H,C,S){p_i(H.onlineScreenService_,C,S)};
De.prototype.disposeInternal=function(){_.Ak(this.localScreenService_);_.Ak(this.onlineScreenService_);De.superClass_.disposeInternal.call(this)};
var noi=function(H,C,S,w){H.info("requestLoungeToken_ for "+C);var A={postParams:{screen_ids:C},method:"POST",context:H,onSuccess:function(J,c){J=c&&c.screens||[];J[0]&&J[0].screenId==C?S(J[0].loungeToken):w(Error("$k"))},
onError:function(){w(Error("al"))}};
_.e$(Px(H.JSC$19821_http_,"/pairing/get_lounge_token_batch"),A)},K49=function(H){H.screens=H.localScreenService_.getScreens();
for(var C=_.hb.transpose(H.deviceToScreenId_),S=H.screens.length,w=0;w<S;++w){var A=H.screens[w];A.uuid=C[A.id]||""}H.info("Updated manual screens: "+O7q(H.screens))};
De.prototype.handleScreenChange_=function(){K49(this);this.publish("screenChange");this.onlineScreenService_.update()};
var XI3=function(H){twi(H);H.localScreenService_=new Bx(H.JSC$19821_http_);H.localScreenService_.subscribe("screenChange",(0,_.Xv)(H.handleScreenChange_,H));K49(H);H.disableAutomaticScreenCache_||(H.automaticScreens_=u$i(_.BU("yt-remote-automatic-screen-cache")||[]));twi(H);H.info("Initializing automatic screens: "+O7q(H.automaticScreens_));H.onlineScreenService_=new al(H.JSC$19821_http_,(0,_.Xv)(H.getScreens,H,!0));H.onlineScreenService_.subscribe("screenChange",(0,_.Xv)(function(){this.publish("onlineScreenChange")},
H))},xW=function(H,C){var S=H.get(C.id);
S?(S.uuid=C.uuid,C=S):((S=X8(H.automaticScreens_,C.uuid))?(S.id=C.id,S.token=C.token,C=S):H.automaticScreens_.push(C),H.disableAutomaticScreenCache_||L43(H));twi(H);H.deviceToScreenId_[C.uuid]=C.id;_.rm("yt-remote-device-id-map",H.deviceToScreenId_,31536E3);return C},L43=function(H){H=_.Yv(H.automaticScreens_,function(C){return C.idType!="shortLived"});
_.rm("yt-remote-automatic-screen-cache",_.nX(H,Eo9))},twi=function(H){H.deviceToScreenId_=_.BU("yt-remote-device-id-map")||{}};
De.prototype.dispose=De.prototype.dispose;_.Zh(Kk,_.KI);var Hz=function(H,C){H.screen_=C;H.publish("sessionScreen",H.screen_)},goR=function(H,C){H.screen_&&(H.screen_.token=C,xW(H.JSC$19825_screenService_,H.screen_));
H.publish("sessionScreen",H.screen_)};
Kk.prototype.onSessionStopped=function(H){this.isDisposed()||(H&&(iN(this,""+H),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
Kk.prototype.info=function(H){pk(this.JSC$19825_logName_,H)};
var iN=function(H,C){pk(H.JSC$19825_logName_,C)};
Kk.prototype.JSC$19827_getCastSession=function(){return null};
Kk.prototype.setDisplayStatus=function(H){var C=this.receiver_;H?(C.displayStatus=new chrome.cast.ReceiverDisplayStatus(H,[]),C.displayStatus.showStop=!0):C.displayStatus=null;chrome.cast.setReceiverDisplayStatus(C,(0,_.Xv)(function(){this.info("Updated receiver status for "+C.friendlyName+": "+H)},this),(0,_.Xv)(function(){iN(this,"Failed to update receiver status for: "+C.friendlyName)},this))};
Kk.prototype.disposeInternal=function(){this.setDisplayStatus("");Kk.superClass_.disposeInternal.call(this)};var CF=function(H,C,S){Kk.call(this,H,C,"CastSession");var w=this;this.config_=S;this.JSC$19830_session_=null;this.JSC$19830_boundSessionUpdate_=(0,_.Xv)(this.JSC$19832_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.Xv)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.yD(function(){U$o(w,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$19830_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$19830_isInitLoungeToken_=!1;this.JSC$19830_lastLoungeTokenRefreshError_="unknown"};
_.G(CF,Kk);_.F=CF.prototype;
_.F.setCastSession=function(H){if(this.JSC$19830_session_){if(this.JSC$19830_session_==H)return;iN(this,"Overriding cast session with new session object");Rsp(this);this.JSC$19830_isInitLoungeToken_=!1;this.JSC$19830_lastLoungeTokenRefreshError_="unknown";this.JSC$19830_session_.removeUpdateListener(this.JSC$19830_boundSessionUpdate_);this.JSC$19830_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$19830_session_=H;this.JSC$19830_session_.addUpdateListener(this.JSC$19830_boundSessionUpdate_);this.JSC$19830_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);IL9(this,"getMdxSessionStatus")};
_.F.launchWithParams=function(H){this.info("launchWithParams no-op for Cast: "+(0,_.Kh)(H))};
_.F.stop=function(){if(this.JSC$19830_session_)this.JSC$19830_session_.stop((0,_.Xv)(function(){this.onSessionStopped()},this),(0,_.Xv)(function(){this.onSessionStopped(Error("bl"))},this));
else this.onSessionStopped(Error("cl"))};
_.F.setDisplayStatus=function(){};
_.F.disposeInternal=function(){this.info("disposeInternal");Rsp(this);this.JSC$19830_session_&&(this.JSC$19830_session_.removeUpdateListener(this.JSC$19830_boundSessionUpdate_),this.JSC$19830_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$19830_session_=null;Kk.prototype.disposeInternal.call(this)};
var x$3=function(H,C){_.b5(H.getLoungeTokenTimeoutKey_);H.getLoungeTokenTimeoutKey_=0;C==0?aLj(H):H.getLoungeTokenTimeoutKey_=_.yD(function(){aLj(H)},C)},aLj=function(H){IL9(H,"getLoungeToken");
_.b5(H.onLoungeTokenTimeoutKey_);H.onLoungeTokenTimeoutKey_=_.yD(function(){HJ3(H,null)},3E4)},IL9=function(H,C){H.info("sendYoutubeMessage_: "+C+" "+(0,_.Kh)(void 0));
var S={};S.type=C;H.JSC$19830_session_?H.JSC$19830_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",S,function(){},(0,_.Xv)(function(){iN(this,"Failed to send message: "+C+".")},H)):iN(H,"Sending yt message without session: "+(0,_.Kh)(S))};
CF.prototype.onYoutubeMessage_=function(H,C){if(!this.isDisposed())if(C)if(C=(0,_.k_)(C),_.U$(C))switch(H=""+C.type,C=C.data||{},this.info("onYoutubeMessage_: "+H+" "+(0,_.Kh)(C)),H){case "mdxSessionStatus":U$o(this,C);break;case "loungeToken":HJ3(this,C);break;default:iN(this,"Unknown youtube message: "+H)}else iN(this,"Unable to parse message.");else iN(this,"No data in message.")};
var iJO=function(H,C){if(C)H.info("onConnectedScreenId_: Received screenId: "+C),H.screen_&&H.screen_.id==C||H.getScreen_(C,function(S){Hz(H,S)},function(){return H.onSessionStopped()},5);
else H.onSessionStopped(Error("dl"))},Sup=function(H,C,S){H.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(C));
var w=new oG(C);CqR(H,w,function(A){A?(H.JSC$19830_isInitLoungeToken_=!0,xW(H.JSC$19825_screenService_,w),Hz(H,w),H.JSC$19830_lastLoungeTokenRefreshError_="unknown",x$3(H,S)):(_.tE(Error("el`"+JSON.stringify(C))),H.onSessionStopped())},5)},U$o=function(H,C){_.b5(H.sessionStatusTimeoutKey_);
H.sessionStatusTimeoutKey_=0;if(C)H.config_.enableCastLoungeToken&&C.loungeToken?C.deviceId?H.screen_&&H.screen_.uuid==C.deviceId||(C.loungeTokenRefreshIntervalMs?Sup(H,{name:H.receiver_.friendlyName,screenId:C.screenId,loungeToken:C.loungeToken,dialId:C.deviceId,screenIdType:"shortLived"},C.loungeTokenRefreshIntervalMs):(_.tE(Error("gl`"+JSON.stringify(C))),iJO(H,C.screenId))):(_.tE(Error("fl`"+JSON.stringify(C))),iJO(H,C.screenId)):iJO(H,C.screenId);else H.onSessionStopped(Error("dl"))},HJ3=function(H,
C){_.b5(H.onLoungeTokenTimeoutKey_);
H.onLoungeTokenTimeoutKey_=0;var S=null;if(C)if(C.loungeToken){var w;((w=H.screen_)==null?void 0:w.token)==C.loungeToken&&(S="staleLoungeToken")}else S="missingLoungeToken";else S="noLoungeTokenResponse";S?(H.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(C)+", error: "+S)),H.JSC$19830_lastLoungeTokenRefreshError_=S,x$3(H,3E4)):(goR(H,C.loungeToken),H.JSC$19830_isInitLoungeToken_=!1,H.JSC$19830_lastLoungeTokenRefreshError_="unknown",x$3(H,C.loungeTokenRefreshIntervalMs))};
CF.prototype.getScreen_=function(H,C,S,w){_.b5(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;r1i(this.JSC$19825_screenService_,this.receiver_.label,H,this.receiver_.friendlyName,(0,_.Xv)(function(A){A?C(A):w>=0?(iN(this,"Screen "+H+" appears to be offline. "+w+" retries left."),this.getScreenTimeoutKey_=_.yD((0,_.Xv)(this.getScreen_,this,H,C,S,w-1),300)):S(Error("hl"))},this),S)};
var CqR=function(H,C,S,w){_.b5(H.JSC$19830_checkScreenAvailabilityTimeoutKey_);H.JSC$19830_checkScreenAvailabilityTimeoutKey_=0;D$i(H.JSC$19825_screenService_,C,function(A){A||w<0?S(A):H.JSC$19830_checkScreenAvailabilityTimeoutKey_=_.yD(function(){CqR(H,C,S,w-1)},300)})};
CF.prototype.JSC$19827_getCastSession=function(){return this.JSC$19830_session_};
CF.prototype.JSC$19832_onSessionUpdate_=function(H){this.isDisposed()||H||(iN(this,"Cast session died."),this.onSessionStopped())};
var Rsp=function(H){_.b5(H.getScreenTimeoutKey_);H.getScreenTimeoutKey_=0;_.b5(H.JSC$19830_checkScreenAvailabilityTimeoutKey_);H.JSC$19830_checkScreenAvailabilityTimeoutKey_=0;_.b5(H.sessionStatusTimeoutKey_);H.sessionStatusTimeoutKey_=0;_.b5(H.onLoungeTokenTimeoutKey_);H.onLoungeTokenTimeoutKey_=0;_.b5(H.getLoungeTokenTimeoutKey_);H.getLoungeTokenTimeoutKey_=0};var SG=function(H,C,S,w){Kk.call(this,H,C,"DialSession");this.config_=w;this.JSC$19834_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$19834_theme_=S;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$19834_deferredLaunchDeadlineTimer_=NaN;this.JSC$19834_boundSessionUpdate_=(0,_.Xv)(this.JSC$19836_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$19834_checkScreenAvailabilityTimeoutKey_=0;this.JSC$19834_isInitLoungeToken_=!1;this.JSC$19834_lastLoungeTokenRefreshError_="unknown"};
_.G(SG,Kk);SG.prototype.setCastSession=function(H){this.JSC$19834_session_=H;this.JSC$19834_session_.addUpdateListener(this.JSC$19834_boundSessionUpdate_)};
SG.prototype.launchWithParams=function(H){this.connectData_=H;this.deferredLaunch_()};
SG.prototype.stop=function(){sN3(this);if(this.JSC$19834_session_)this.JSC$19834_session_.stop((0,_.Xv)(this.onSessionStopped,this,null),(0,_.Xv)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
SG.prototype.disposeInternal=function(){sN3(this);this.JSC$19834_session_&&this.JSC$19834_session_.removeUpdateListener(this.JSC$19834_boundSessionUpdate_);this.JSC$19834_session_=null;Kk.prototype.disposeInternal.call(this)};
var jNO=function(H){var C;return!!(H.config_.enableDialLoungeToken&&((C=H.JSC$19834_session_)==null?0:C.getDialAppInfo))},wqp=function(H){H.cancelPolling_=H.JSC$19825_screenService_.JSC$19823_getScreenByPollingPairingCode(H.reversePairingCode_,H.receiver_.label,H.receiver_.friendlyName,jNO(H),function(C,S){H.cancelPolling_=function(){};
H.JSC$19834_isInitLoungeToken_=!0;Hz(H,C);C.idType=="shortLived"&&S>0&&sO(H,S)},function(C){H.cancelPolling_=function(){};
H.onSessionStopped(C)})};
SG.prototype.JSC$19836_onSessionUpdate_=function(H){this.isDisposed()||H||(iN(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var AT3=function(H){var C={};C.pairingCode=H.reversePairingCode_;C.theme=H.JSC$19834_theme_;mWO()&&(C.env_useStageMdx=1);return _.u5(C)},JTp=function(H){return new Promise(function(C){H.reversePairingCode_=CJ9();
if(H.connectData_){var S=new chrome.cast.DialLaunchResponse(!0,AT3(H));C(S);wqp(H)}else H.deferredLaunch_=function(){_.b5(H.JSC$19834_deferredLaunchDeadlineTimer_);H.deferredLaunch_=function(){};
H.JSC$19834_deferredLaunchDeadlineTimer_=NaN;var w=new chrome.cast.DialLaunchResponse(!0,AT3(H));C(w);wqp(H)},H.JSC$19834_deferredLaunchDeadlineTimer_=_.yD(function(){H.deferredLaunch_()},100)})},ZJ9=function(H,C,S){H.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(C));
var w=new oG(C);return(new Promise(function(A){F$p(H,w,function(J){J?(H.JSC$19834_isInitLoungeToken_=!0,xW(H.JSC$19825_screenService_,w),Hz(H,w),sO(H,S)):_.tE(Error("jl`"+JSON.stringify(C)));A(J)},5)})).then(function(A){return A?new chrome.cast.DialLaunchResponse(!1):JTp(H)})},cTt=function(H,C){var S=H.launchData_.receiver.label,w=H.receiver_.friendlyName;
return(new Promise(function(A){r1i(H.JSC$19825_screenService_,S,C,w,function(J){J&&J.token&&Hz(H,J);A(J)},function(J){iN(H,"Failed to get DIAL screen: "+J);
A(null)})})).then(function(A){return A&&A.token?new chrome.cast.DialLaunchResponse(!1):JTp(H)})},F$p=function(H,C,S,w){_.b5(H.JSC$19834_checkScreenAvailabilityTimeoutKey_);
H.JSC$19834_checkScreenAvailabilityTimeoutKey_=0;D$i(H.JSC$19825_screenService_,C,function(A){A||w<0?S(A):H.JSC$19834_checkScreenAvailabilityTimeoutKey_=_.yD(function(){F$p(H,C,S,w-1)},300)})},sO=function(H,C){H.info("getDialAppInfoWithTimeout_ "+C);
jNO(H)&&(_.b5(H.getDialAppInfoTimeoutKey_),H.getDialAppInfoTimeoutKey_=0,C==0?YuR(H):H.getDialAppInfoTimeoutKey_=_.yD(function(){YuR(H)},C))},YuR=function(H){jNO(H)&&H.JSC$19834_session_.getDialAppInfo(function(C){H.info("getDialAppInfo dialLaunchData: "+JSON.stringify(C));
C=C.extraData||{};var S=null;if(C.loungeToken){var w;((w=H.screen_)==null?void 0:w.token)==C.loungeToken&&(S="staleLoungeToken")}else S="missingLoungeToken";S?(H.JSC$19834_lastLoungeTokenRefreshError_=S,sO(H,3E4)):(H.JSC$19834_isInitLoungeToken_=!1,H.JSC$19834_lastLoungeTokenRefreshError_="unknown",goR(H,C.loungeToken),sO(H,C.loungeTokenRefreshIntervalMs))},function(C){H.info("getDialAppInfo error: "+C);
H.JSC$19834_lastLoungeTokenRefreshError_="noLoungeTokenResponse";sO(H,3E4)})},sN3=function(H){_.b5(H.JSC$19834_checkScreenAvailabilityTimeoutKey_);
H.JSC$19834_checkScreenAvailabilityTimeoutKey_=0;_.b5(H.getDialAppInfoTimeoutKey_);H.getDialAppInfoTimeoutKey_=0;H.cancelPolling_();H.cancelPolling_=function(){};
_.b5(H.JSC$19834_deferredLaunchDeadlineTimer_)};var jG=function(H,C){Kk.call(this,H,C,"ManualSession");this.JSC$19838_deferredLaunchDeadlineTimer_=_.yD((0,_.Xv)(this.launchWithParams,this,null),150)};
_.G(jG,Kk);jG.prototype.stop=function(){this.onSessionStopped()};
jG.prototype.setCastSession=function(){};
jG.prototype.launchWithParams=function(){_.b5(this.JSC$19838_deferredLaunchDeadlineTimer_);this.JSC$19838_deferredLaunchDeadlineTimer_=NaN;var H=X8(this.JSC$19825_screenService_.getScreens(),this.receiver_.label);if(H)Hz(this,H);else this.onSessionStopped(Error("kl"))};
jG.prototype.disposeInternal=function(){_.b5(this.JSC$19838_deferredLaunchDeadlineTimer_);this.JSC$19838_deferredLaunchDeadlineTimer_=NaN;Kk.prototype.disposeInternal.call(this)};var UC=function(H,C){_.KI.call(this);this.config_=C;this.JSC$19841_screenService_=H;this.JSC$19841_appId_=C.appId||"233637DE";this.JSC$19841_theme_=C.theme||"cl";this.disableDial_=C.disableCastApi||!1;this.forceMirroring_=C.forceMirroring||!1;this.JSC$19841_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.Xv)(this.onReceiverAction_,this)};
_.G(UC,_.KI);
UC.prototype.init=function(H,C){chrome.cast.timeout.requestSession=3E4;var S=new chrome.cast.SessionRequest(this.JSC$19841_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.E("desktop_enable_cast_connect")&&(S.androidReceiverCompatible=!0);this.disableDial_||(S.dialRequest=new chrome.cast.DialRequest("YouTube"));var w=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;H=H||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var A=(0,_.Xv)(this.onReceiverUpdated_,
this);S=new chrome.cast.ApiConfig(S,(0,_.Xv)(this.onSessionEstablished_,this),A,w,H);S.customDialLaunchCallback=(0,_.Xv)(this.onDialLaunchRequested_,this);chrome.cast.initialize(S,(0,_.Xv)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),GpK(),this.JSC$19841_screenService_.subscribe("onlineScreenChange",(0,_.Xv)(this.JSC$19843_onScreenChange_,this)),this.customReceivers_=zoo(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.Xv)(function(J){this.warn_("Failed to set initial custom receivers: "+(0,_.Kh)(J))},this)),this.publish("yt-remote-cast2-availability-change",wr(this)),C(!0))},this),(0,_.Xv)(function(J){this.warn_("Failed to initialize API: "+(0,_.Kh)(J));
C(!1)},this))};
UC.prototype.setConnectedScreenStatus=function(H,C){Ae("Setting connected screen ID: "+H+" -> "+C);if(this.JSC$19841_session_){var S=this.JSC$19841_session_.screen_;if(!H||S&&S.id!=H)Ae("Unsetting old screen status: "+this.JSC$19841_session_.receiver_.friendlyName),Je(this,null)}if(H&&C){if(!this.JSC$19841_session_){H=X8(this.JSC$19841_screenService_.getScreens(),H);if(!H){Ae("setConnectedScreenStatus: Unknown screen.");return}if(H.idType=="shortLived"){Ae("setConnectedScreenStatus: Screen with id type to be short lived.");
return}S=MDO(this,H);S||(Ae("setConnectedScreenStatus: Connected receiver not custom..."),S=new chrome.cast.Receiver(H.uuid?H.uuid:H.id,H.name),S.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(S),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.Xv)(function(w){this.warn_("Failed to set initial custom receivers: "+(0,_.Kh)(w))},this)));
Ae("setConnectedScreenStatus: new active receiver: "+S.friendlyName);Je(this,new jG(this.JSC$19841_screenService_,S),!0)}this.JSC$19841_session_.setDisplayStatus(C)}else Ae("setConnectedScreenStatus: no screen.")};
var MDO=function(H,C){return C?_.PZ(H.customReceivers_,function(S){return OC(C,S.label)},H):null};
UC.prototype.setLaunchParams=function(H){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$19841_session_?this.JSC$19841_session_.launchWithParams(H):this.warn_("Setting connection data without a session")};
UC.prototype.JSC$19843_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$19841_session_?(this.JSC$19841_session_.stop(),Je(this,null)):Ae("Stopping non-existing session")};
UC.prototype.requestSession=function(){chrome.cast.requestSession((0,_.Xv)(this.onSessionEstablished_,this),(0,_.Xv)(this.onSessionRequestFailed_,this))};
UC.prototype.disposeInternal=function(){this.JSC$19841_screenService_.unsubscribe("onlineScreenChange",(0,_.Xv)(this.JSC$19843_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.ru(_.gh("yt.mdx.remote.debug.handlers_")||[],Ej3);_.Ak(this.JSC$19841_session_);_.KI.prototype.disposeInternal.call(this)};
var Ae=function(H){pk("Controller",H)};
UC.prototype.warn_=function(H){pk("Controller",H)};
var Ej3=function(H){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(H)},wr=function(H){return H.hasCastReceiver_||!!H.customReceivers_.length||!!H.JSC$19841_session_},Je=function(H,C,S){C!=H.JSC$19841_session_&&(_.Ak(H.JSC$19841_session_),(H.JSC$19841_session_=C)?(S?H.publish("yt-remote-cast2-receiver-resumed",C.receiver_):H.publish("yt-remote-cast2-receiver-selected",C.receiver_),C.subscribe("sessionScreen",(0,_.Xv)(H.onSessionScreen_,H,C)),C.subscribe("sessionFailed",
function(){return quO(H,C)}),C.screen_?H.publish("yt-remote-cast2-session-change",C.screen_):S&&H.JSC$19841_session_.launchWithParams(null)):H.publish("yt-remote-cast2-session-change",null))},quO=function(H,C){H.JSC$19841_session_==C&&H.publish("yt-remote-cast2-session-failed")};
_.F=UC.prototype;_.F.onSessionScreen_=function(H,C){this.JSC$19841_session_==H&&(C||Je(this,null),this.publish("yt-remote-cast2-session-change",C))};
_.F.onReceiverAction_=function(H,C){if(!this.isDisposed())if(H)switch(H.friendlyName=chrome.cast.unescape(H.friendlyName),Ae("onReceiverAction_ "+H.label+" / "+H.friendlyName+"-- "+C),C){case chrome.cast.ReceiverAction.CAST:if(this.JSC$19841_session_)if(this.JSC$19841_session_.receiver_.label!=H.label)Ae("onReceiverAction_: Stopping active receiver: "+this.JSC$19841_session_.receiver_.friendlyName),this.JSC$19841_session_.stop();else{Ae("onReceiverAction_: Casting to active receiver.");this.JSC$19841_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$19841_session_.screen_);break}switch(H.receiverType){case chrome.cast.ReceiverType.CUSTOM:Je(this,new jG(this.JSC$19841_screenService_,H));break;case chrome.cast.ReceiverType.DIAL:Je(this,new SG(this.JSC$19841_screenService_,H,this.JSC$19841_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:Je(this,new CF(this.JSC$19841_screenService_,H,this.config_));break;default:this.warn_("Unknown receiver type: "+H.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$19841_session_&&
this.JSC$19841_session_.receiver_.label==H.label?this.JSC$19841_session_.stop():this.warn_("Stopping receiver w/o session: "+H.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.F.onDialLaunchRequested_=function(H){if(this.isDisposed())return Promise.reject(Error("ll"));var C=H.receiver;C.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+C.friendlyName),C.receiverType=chrome.cast.ReceiverType.DIAL);var S=this.JSC$19841_session_?this.JSC$19841_session_.receiver_:null;if(!S||S.label!=C.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+C.friendlyName),Promise.reject(Error("ml"));if(S&&S.label==C.label&&S.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$19841_session_.screen_)return Ae("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$19841_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+S.receiverType+'" to "dial" for '+C.friendlyName);Je(this,new SG(this.JSC$19841_screenService_,C,this.JSC$19841_theme_,this.config_))}C=this.JSC$19841_session_;C.launchData_=H;C.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(H=C.launchData_.extraData||{},S=H.screenId||null,jNO(C)&&H.loungeToken?H.loungeTokenRefreshIntervalMs?H=ZJ9(C,{name:C.receiver_.friendlyName,screenId:H.screenId,loungeToken:H.loungeToken,dialId:C.launchData_.receiver.label,screenIdType:"shortLived"},H.loungeTokenRefreshIntervalMs):(_.tE(Error("il`"+JSON.stringify(H))),H=cTt(C,S)):H=cTt(C,S)):H=JTp(C);return H};
_.F.onSessionEstablished_=function(H){var C=this;if(!this.isDisposed()&&!this.forceMirroring_){Ae("New cast session ID: "+H.sessionId);var S=H.receiver;if(S.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$19841_session_)if(S.receiverType==chrome.cast.ReceiverType.CAST)Ae("Got resumed cast session before resumed mdx connection."),S.friendlyName=chrome.cast.unescape(S.friendlyName),Je(this,new CF(this.JSC$19841_screenService_,S,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var w=this.JSC$19841_session_.receiver_,A=X8(this.JSC$19841_screenService_.getScreens(),w.label);A&&OC(A,S.label)&&w.receiverType!=chrome.cast.ReceiverType.CAST&&S.receiverType==chrome.cast.ReceiverType.CAST&&(Ae("onSessionEstablished_: manual to cast session change "+S.friendlyName),_.Ak(this.JSC$19841_session_),this.JSC$19841_session_=new CF(this.JSC$19841_screenService_,S,this.config_),this.JSC$19841_session_.subscribe("sessionScreen",(0,_.Xv)(this.onSessionScreen_,this,this.JSC$19841_session_)),
this.JSC$19841_session_.subscribe("sessionFailed",function(){return quO(C,C.JSC$19841_session_)}),this.JSC$19841_session_.launchWithParams(null));
this.JSC$19841_session_.setCastSession(H)}}};
_.F.JSC$19843_getCastSession=function(){return this.JSC$19841_session_?this.JSC$19841_session_.JSC$19827_getCastSession():null};
_.F.onSessionRequestFailed_=function(H){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.Kh)(H)),H.code!=chrome.cast.ErrorCode.CANCEL&&Je(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.F.onReceiverUpdated_=function(H){Ae("Receiver availability updated: "+H);if(!this.isDisposed()){var C=wr(this);this.hasCastReceiver_=H==chrome.cast.ReceiverAvailability.AVAILABLE;wr(this)!=C&&this.publish("yt-remote-cast2-availability-change",wr(this))}};
var zoo=function(H){var C=H.JSC$19841_screenService_.JSC$19823_getOnlineScreens(),S=H.JSC$19841_session_&&H.JSC$19841_session_.receiver_;H=_.nX(C,function(w){S&&OC(w,S.label)&&(S=null);var A=w.uuid?w.uuid:w.id,J=MDO(this,w);J?(J.label=A,J.friendlyName=w.name):(J=new chrome.cast.Receiver(A,w.name),J.receiverType=chrome.cast.ReceiverType.CUSTOM);return J},H);
S&&(S.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(S=new chrome.cast.Receiver(S.label,S.friendlyName),S.receiverType=chrome.cast.ReceiverType.CUSTOM),H.push(S));return H};
UC.prototype.JSC$19843_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=zoo(this),Ae("Updating custom receivers: "+(0,_.Kh)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.Xv)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",wr(this)))};
UC.prototype.setLaunchParams=UC.prototype.setLaunchParams;UC.prototype.setConnectedScreenStatus=UC.prototype.setConnectedScreenStatus;UC.prototype.stopSession=UC.prototype.JSC$19843_stopSession;UC.prototype.getCastSession=UC.prototype.JSC$19843_getCastSession;UC.prototype.requestSession=UC.prototype.requestSession;UC.prototype.init=UC.prototype.init;UC.prototype.dispose=UC.prototype.dispose;var Tzi=_.xC(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),I5t=[],hx_=_.qH(Tzi);var mvO=function(H){H.audioTrackId=null;H.trackData=null;H.playerState=-1;H.hasPrevious=!1;H.hasNext=!1;H.playerTime_=0;H.playerTimeAt_=_.FF();H.seekableStart_=0;H.seekableEnd_=0;H.duration_=0;H.loadedTime=0;H.liveIngestionTime_=NaN;H.isLive_=!1};
_.F=RG.prototype;
_.F.reset=function(H){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;H&&(this.index=H.index,this.listId=H.listId,this.videoId=H.videoId,this.playerState=H.playerState,this.volume=H.volume,this.muted=H.muted,this.audioTrackId=H.audioTrackId,this.trackData=H.trackData,this.hasPrevious=H.hasPrevious,this.hasNext=H.hasNext,this.playerTime_=H.playerTime,this.playerTimeAt_=H.playerTimeAt,this.seekableStart_=H.seekableStart,this.seekableEnd_=H.seekableEnd,this.duration_=H.duration,this.loadedTime=
H.loadedTime,this.liveIngestionTime_=H.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.F.stopPlayer=function(){this.index=-1;this.videoId="";mvO(this)};
_.F.isPlaying=function(){return this.playerState==1};
_.F.isBuffering=function(){return this.playerState==3};
_.F.isAdPlaying=function(){return this.playerState==1081};
var FD=function(H,C){H.playerTime_=C;H.playerTimeAt_=_.FF()},W$O=function(H){switch(H.playerState){case 1:case 1081:return(_.FF()-H.playerTimeAt_)/1E3+H.playerTime_;
case -1E3:return 0}return H.playerTime_};
RG.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.FF()-this.playerTimeAt_)/1E3:0):this.duration_};
var yTt=function(H,C,S){var w=H.videoId;H.videoId=C;H.index=S;C!=w&&mvO(H)},Nzi=function(H){var C={};
C.index=H.index;C.listId=H.listId;C.videoId=H.videoId;C.playerState=H.playerState;C.volume=H.volume;C.muted=H.muted;C.audioTrackId=H.audioTrackId;C.trackData=_.hb.unsafeClone(H.trackData);C.hasPrevious=H.hasPrevious;C.hasNext=H.hasNext;C.playerTime=H.playerTime_;C.playerTimeAt=H.playerTimeAt_;C.seekableStart=H.seekableStart_;C.seekableEnd=H.seekableEnd_;C.duration=H.duration_;C.loadedTime=H.loadedTime;C.liveIngestionTime=H.liveIngestionTime_;return C};
RG.prototype.clone=function(){return new RG(Nzi(this))};var so=function(H,C){_.KI.call(this);var S=this;this.state_=0;this.connection_=H;this.contextSubscriptions_=[];this.actionQueue_=new tsi;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.Xv)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.Xv)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.Xv)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.Xv)(this.onCloudviewAvailabilityChange_,this);var w=0;H?(w=H.getProxyState(),
w!=3&&(H.subscribe("proxyStateChange",this.setState_,this),bJO(this))):w=3;w!=0&&(C?this.setState_(w):_.yD(function(){S.setState_(w)},0));
(H=iuK())&&Emp(this,H);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.G(so,_.KI);so.prototype.getState=function(){return this.state_};
so.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
so.prototype.reconnect=function(){this.connection_.reconnect()};
var ZO=function(H){return new RG(H.connection_.getPlayerContextData())};
_.F=so.prototype;_.F.play=function(){cz(this)?(this.castMedia_?this.castMedia_.play(null,_.Q5,eoq(this,"play")):Y3(this,"play"),uQR(this,1,W$O(ZO(this))),this.publish("remotePlayerChange")):zL(this,this.play)};
_.F.pause=function(){cz(this)?(this.castMedia_?this.castMedia_.pause(null,_.Q5,eoq(this,"pause")):Y3(this,"pause"),uQR(this,2,W$O(ZO(this))),this.publish("remotePlayerChange")):zL(this,this.pause)};
_.F.seekTo=function(H){if(cz(this)){if(this.castMedia_){var C=ZO(this),S=new chrome.cast.media.SeekRequest;S.currentTime=H;C.isPlaying()||C.isBuffering()?S.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:S.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(S,_.Q5,eoq(this,"seekTo",{newTime:H}))}else Y3(this,"seekTo",{newTime:H});uQR(this,3,H);this.publish("remotePlayerChange")}else zL(this,_.l9(this.seekTo,H))};
_.F.stop=function(){if(cz(this)){this.castMedia_?this.castMedia_.stop(null,_.Q5,eoq(this,"stopVideo")):Y3(this,"stopVideo");var H=ZO(this);H.stopPlayer();MB(this,H);this.publish("remotePlayerChange")}else zL(this,this.stop)};
_.F.setVolume=function(H,C){if(cz(this)){var S=ZO(this);if(this.castSession_){if(S.volume!=H){var w=Math.round(H)/100;this.castSession_.setReceiverVolumeLevel(w,(0,_.Xv)(function(){kL("set receiver volume: "+w)},this),(0,_.Xv)(function(){this.warn_("failed to set receiver volume.")},this))}S.muted!=C&&this.castSession_.setReceiverMuted(C,(0,_.Xv)(function(){kL("set receiver muted: "+C)},this),(0,_.Xv)(function(){this.warn_("failed to set receiver muted.")},this))}else{var A={volume:H,
muted:C};S.volume!=-1&&(A.delta=H-S.volume);Y3(this,"setVolume",A)}S.muted=C;S.volume=H;MB(this,S)}else zL(this,_.l9(this.setVolume,H,C))};
_.F.setAudioTrack=function(H,C){cz(this)?(C=C.getLanguageInfo().getId(),Y3(this,"setAudioTrack",{videoId:H,audioTrackId:C}),H=ZO(this),H.audioTrackId=C,MB(this,H)):zL(this,_.l9(this.setAudioTrack,H,C))};
_.F.addVideo=function(H){cz(this)?Y3(this,"addVideo",{videoId:H}):zL(this,_.l9(this.addVideo,H))};
_.F.addPlaylist=function(H){cz(this)?Y3(this,"addVideos",{listId:H}):zL(this,_.l9(this.addPlaylist,H))};
_.F.addVideos=function(H){H.length==0?this.warn_("Ignore add videos request due to empty list"):cz(this)?Y3(this,"addVideos",{videoIds:H.join(",")}):zL(this,_.l9(this.addVideos,H))};
_.F.JSC$19853_removeVideo=function(H){cz(this)?Y3(this,"removeVideo",{videoId:H}):zL(this,_.l9(this.JSC$19853_removeVideo,H))};
_.F.JSC$19853_insertVideo=function(H){cz(this)?Y3(this,"insertVideo",{videoId:H}):zL(this,_.l9(this.JSC$19853_insertVideo,H))};
_.F.playVideo=function(H,C,S,w,A,J,c){w=w===void 0?null:w;A=A===void 0?null:A;J=J===void 0?null:J;c=c===void 0?null:c;var Y=ZO(this),M={videoId:H};S!==void 0&&(M.currentIndex=S);yTt(Y,H,S||0);C!==void 0&&(FD(Y,C),M.currentTime=C);w&&(M.listId=w);A&&(M.playerParams=A);J&&(M.clickTrackingParams=J);c&&(M.locationInfo=(0,_.Kh)(c));Y3(this,"setPlaylist",M);w||MB(this,Y)};
_.F.nextVideo=function(H,C){if(cz(this)){if(H&&C){var S=ZO(this);yTt(S,H,C);MB(this,S)}Y3(this,"next")}else zL(this,_.l9(this.nextVideo,H,C))};
_.F.clearPlaylist=function(){if(cz(this)){Y3(this,"clearPlaylist");var H=ZO(this);H.reset();MB(this,H);this.publish("remotePlayerChange")}else zL(this,this.clearPlaylist)};
_.F.dispose=function(){if(this.state_!=3){var H=this.state_;this.state_=3;this.publish("proxyStateChange",H,this.state_)}_.KI.prototype.dispose.call(this)};
_.F.disposeInternal=function(){Gu3(this);this.connection_=null;this.actionQueue_.clear();Emp(this,null);_.KI.prototype.disposeInternal.call(this)};
var bJO=function(H){_.I6("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(C){this.contextSubscriptions_.push(this.connection_.subscribe(C,_.l9(this.onProxyEvent_,C),this))},H)},Gu3=function(H){_.I6(H.contextSubscriptions_,function(C){this.connection_.unsubscribeByKey(C)},H);
H.contextSubscriptions_.length=0},cz=function(H){return H.getState()==1},zL=function(H,C){H.actionQueue_.getCount()<50&&H.actionQueue_.enqueue(C)},uQR=function(H,C,S){var w=ZO(H);
FD(w,S);w.playerState!=-1E3&&(w.playerState=C);MB(H,w)},Y3=function(H,C,S){H.connection_.sendMessage(C,S)},MB=function(H,C){Gu3(H);
H.connection_.setPlayerContextData(Nzi(C));bJO(H)};
so.prototype.setState_=function(H){if((H!=this.state_||H==2)&&this.state_!=3&&H!=0){var C=this.state_;this.state_=H;this.publish("proxyStateChange",C,H);if(H==1)for(;!this.actionQueue_.isEmpty();)H=this.actionQueue_,R13(H),H.front_.pop().apply(this);else H==3&&this.dispose()}};
so.prototype.onProxyEvent_=function(H,C){this.publish(H,C)};
var Emp=function(H,C){H.castSession_&&(H.castSession_.removeUpdateListener(H.boundCastStatusListener_),H.castSession_.removeMediaListener(H.boundCastMediaListener_),H.onCastMediaChange_(null));H.castSession_=C;if(H.castSession_&&(kL("Setting cast session: "+H.castSession_.sessionId),H.castSession_.addUpdateListener(H.boundCastStatusListener_),H.castSession_.addMediaListener(H.boundCastMediaListener_),H.castSession_.media.length))H.onCastMediaChange_(H.castSession_.media[0])};
so.prototype.onCastStatusUpdate_=function(H){if(!H)this.onCastMediaChange_(null),Emp(this,null);else if(this.castSession_.receiver.volume){H=this.castSession_.receiver.volume;var C=ZO(this),S=Math.round(100*H.level||0);if(C.volume!=S||C.muted!=H.muted)kL("Cast volume update: "+H.level+(H.muted?" muted":"")),C.volume=S,C.muted=!!H.muted,MB(this,C)}};
so.prototype.onCastMediaChange_=function(H){kL("Cast media: "+!!H);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=H)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),fk_(this),this.publish("remotePlayerChange")};
var fk_=function(H){var C=H.castMedia_.media,S=H.castMedia_.customData;if(C&&S){var w=ZO(H);C.contentId!=w.videoId&&kL("Cast changing video to: "+C.contentId);w.videoId=C.contentId;w.playerState=S.playerState;FD(w,H.castMedia_.getEstimatedTime());MB(H,w)}else kL("No cast media video. Ignoring state update.")};
so.prototype.onCastMediaUpdate_=function(H){if(H)fk_(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
so.prototype.onCloudviewAvailabilityChange_=function(){var H=iuK();H&&Emp(this,H)};
so.prototype.warn_=function(H){pk("CP",H)};
var eoq=function(H,C,S){return(0,_.Xv)(function(w){this.warn_("Failed to "+C+" with cast v2 channel. Error code: "+w.code);w.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+C+" using MDx browser channel."),Y3(this,C,S))},H)};var j5=function(H,C,S,w){w=w===void 0?!1:w;_.KI.call(this);var A=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$19858_http_=H;this.enableConnectWithInitialState_=w;this.listeners_.push(_.Jt(window,"beforeunload",function(){A.JSC$19861_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new RG;this.currentScreenId_=C.id;this.currentScreenIdType_=C.idType;this.channelService=b79(this.JSC$19858_http_,S,this.JSC$19861_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){vm9(A)});
this.channelService.listen("channelClosed",function(){qB("Channel closed");isNaN(A.connectTimerId_)?QI(!0):QI();A.dispose()});
this.channelService.listen("channelError",function(J){QI();isNaN(A.getReconnectTimeout_())?(J==1&&A.currentScreenIdType_=="shortLived"&&A.publish("browserChannelAuthError",J),qB("Channel error: "+J+" without reconnection"),A.dispose()):(A.reconnecting_=!0,qB("Channel error: "+J+" with reconnection in "+A.getReconnectTimeout_()+" ms"),lkt(A,2))});
this.channelService.listen("channelMessage",function(J){VDi(A,J)});
this.channelService.setLoungeToken(C.token);this.subscribe("remoteQueueChange",function(){var J=A.playerContext_.videoId;Axo()&&_.rm("yt-remote-session-video-id",J)})};
_.G(j5,_.KI);
j5.prototype.connect=function(H,C){if(C){var S=C.listId,w=C.videoId,A=C.videoIds,J=C.playerParams,c=C.clickTrackingParams,Y=C.index,M={videoId:w},m=C.currentTime,W=C.locationInfo;C=C.loopMode;m!==void 0&&(M.currentTime=m<=5?0:m);J&&(M.playerParams=J);W&&(M.locationInfo=W);c&&(M.clickTrackingParams=c);S&&(M.listId=S);A&&A.length>0&&(M.videoIds=A.join(","));Y!==void 0&&(M.currentIndex=Y);this.enableConnectWithInitialState_&&(M.loopMode=C||"LOOP_MODE_OFF");S&&(this.playerContext_.listId=S);this.playerContext_.videoId=
w;this.playerContext_.index=Y||0;this.playerContext_.state=3;FD(this.playerContext_,m);this.autoplayMode_="UNSUPPORTED";S=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";qB("Connecting with "+S+" and params: "+(0,_.Kh)(M));this.channelService.connect({method:S,params:(0,_.Kh)(M)},H,Y4O())}else qB("Connecting without params"),this.channelService.connect({},H,Y4O());omi(this)};
j5.prototype.setLoungeToken=function(H){this.channelService.setLoungeToken(H)};
j5.prototype.dispose=function(){this.isDisposed()||(_.AO("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),lkt(this,3));_.KI.prototype.dispose.call(this)};
j5.prototype.disposeInternal=function(){OJt(this);Xqt(this);QNO(this);_.b5(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.b5(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.Ag0(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.KI.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var dv9=function(H){return _.PZ(H.connectedDevices_,function(C){return C.type=="LOUNGE_SCREEN"})},qB=function(H){pk("conn",H)},lkt=function(H,C){H.publish("proxyStateChange",C)},omi=function(H){H.connectTimerId_=_.yD(function(){qB("Connecting timeout");
H.JSC$19861_disconnect_(1)},2E4)},OJt=function(H){_.b5(H.connectTimerId_);
H.connectTimerId_=NaN},QNO=function(H){_.b5(H.reconnectedCheckScreenTimeout_);
H.reconnectedCheckScreenTimeout_=NaN},PqR=function(H){Xqt(H);
H.playingSyncTimerId_=_.yD(function(){TL(H,"getNowPlaying")},2E4)},Xqt=function(H){_.b5(H.playingSyncTimerId_);
H.playingSyncTimerId_=NaN},vm9=function(H){qB("Channel opened");
H.reconnecting_&&(H.reconnecting_=!1,QNO(H),H.reconnectedCheckScreenTimeout_=_.yD(function(){qB("Timing out waiting for a screen.");H.JSC$19861_disconnect_(1)},15E3))},pqr=function(H,C){var S=null;
if(C){var w=dv9(H);w&&(S={clientName:w.clientName,deviceMake:w.brand,deviceModel:w.model,osVersion:w.osVersion})}_.AO("yt.mdx.remote.remoteClient_",S);C&&(OJt(H),QNO(H));S=H.channelService.isChannelOpened()&&isNaN(H.connectTimerId_);C==S?C&&(lkt(H,1),TL(H,"getSubtitlesTrack")):C?(H.getOtherConnectedRemoteId_()&&H.playerContext_.reset(),lkt(H,1),TL(H,"getNowPlaying"),$vq(H)):H.JSC$19861_disconnect_(1)},kup=function(H,C){var S=C.params.videoId;
delete C.params.videoId;S==H.playerContext_.videoId&&(_.hb.isEmpty(C.params)?H.playerContext_.trackData=null:H.playerContext_.trackData=C.params,H.publish("remotePlayerChange"))},hoK=function(H,C,S){var w=C.params.videoId||C.params.video_id,A=parseInt(C.params.currentIndex,10);
H.playerContext_.listId=C.params.listId||H.playerContext_.listId;yTt(H.playerContext_,w,A);H.publish("remoteQueueChange",S)},nmR=function(H,C){C.params=C.params||{};
hoK(H,C,"NOW_PLAYING_MAY_CHANGE");H.onStateChange_(C);H.publish("autoplayDismissed")};
j5.prototype.onStateChange_=function(H){var C=parseInt(H.params.currentTime||H.params.current_time,10);FD(this.playerContext_,isNaN(C)?0:C);C=parseInt(H.params.state,10);C=isNaN(C)?-1:C;C==-1&&this.playerContext_.playerState==-1E3&&(C=-1E3);this.playerContext_.playerState=C;C=Number(H.params.loadedTime);this.playerContext_.loadedTime=isNaN(C)?0:C;C=Number(H.params.duration);this.playerContext_.duration_=isNaN(C)?0:C;C=this.playerContext_;var S=Number(H.params.liveIngestionTime);C.liveIngestionTime_=
S;C.isLive_=isNaN(S)?!1:!0;C=this.playerContext_;S=Number(H.params.seekableStartTime);H=Number(H.params.seekableEndTime);C.seekableStart_=isNaN(S)?0:S;C.seekableEnd_=isNaN(H)?0:H;this.playerContext_.playerState==1?PqR(this):Xqt(this);this.publish("remotePlayerChange")};
j5.prototype.onAdStateChange_=function(H){if(this.playerContext_.playerState!=-1E3){var C=1085;switch(parseInt(H.params.adState,10)){case 1:C=1081;break;case 2:C=1084;break;case 0:C=1083}this.playerContext_.playerState=C;H=parseInt(H.params.currentTime,10);FD(this.playerContext_,isNaN(H)?0:H);this.publish("remotePlayerChange")}};
var rTO=function(H,C){var S=C.params.muted=="true";H.playerContext_.volume=parseInt(C.params.volume,10);H.playerContext_.muted=S;H.publish("remotePlayerChange")},Bz9=function(H,C){H.autoplayVideoId_=C.params.videoId;
H.publish("nowAutoplaying",parseInt(C.params.timeout,10))},Dv9=function(H,C){H.autoplayVideoId_=C.params.videoId||null;
H.publish("autoplayUpNext",H.autoplayVideoId_)},K$O=function(H,C){H.autoplayMode_=C.params.autoplayMode;
H.publish("autoplayModeChange",H.autoplayMode_);H.autoplayMode_=="DISABLED"&&H.publish("autoplayDismissed")},tDi=function(H,C){var S=C.params.hasNext=="true";
H.playerContext_.hasPrevious=C.params.hasPrevious=="true";H.playerContext_.hasNext=S;H.publish("previousNextChange")};
j5.prototype.isCapabilitySupportedOnConnectedDevices_=function(H){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var C=_.Z(this.connectedDevices_),S=C.next();!S.done;S=C.next())if(!S.value.capabilities.has(H))return!1;return!0};
var VDi=function(H,C){C=C.message;C.params?qB("Received: action="+C.action+", params="+(0,_.Kh)(C.params)):qB("Received: action="+C.action+" {}");switch(C.action){case "loungeStatus":C=(0,_.k_)(C.params.devices);H.connectedDevices_=_.nX(C,function(w){return new Il(w)});
C=!!_.PZ(H.connectedDevices_,function(w){return w.type=="LOUNGE_SCREEN"});
pqr(H,C);C=H.isCapabilitySupportedOnConnectedDevices_("mlm");H.publish("multiStateLoopEnabled",C);break;case "loungeScreenDisconnected":P9o(H.connectedDevices_,function(w){return w.type=="LOUNGE_SCREEN"});
pqr(H,!1);break;case "remoteConnected":var S=new Il((0,_.k_)(C.params.device));_.PZ(H.connectedDevices_,function(w){return w.equals(S)})||_.oEV(H.connectedDevices_,S);
break;case "remoteDisconnected":S=new Il((0,_.k_)(C.params.device));P9o(H.connectedDevices_,function(w){return w.equals(S)});
break;case "gracefulDisconnect":break;case "playlistModified":hoK(H,C,"QUEUE_MODIFIED");break;case "nowPlaying":nmR(H,C);break;case "onStateChange":H.onStateChange_(C);break;case "onAdStateChange":H.onAdStateChange_(C);break;case "onVolumeChanged":rTO(H,C);break;case "onSubtitlesTrackChanged":kup(H,C);break;case "nowAutoplaying":Bz9(H,C);break;case "autoplayDismissed":H.publish("autoplayDismissed");break;case "autoplayUpNext":Dv9(H,C);break;case "onAutoplayModeChanged":K$O(H,C);break;case "onHasPreviousNextChanged":tDi(H,
C);break;case "requestAssistedSignIn":H.publish("assistedSignInRequested",C.params.authCode);break;case "onLoopModeChanged":H.publish("loopModeChange",C.params.loopMode);break;default:qB("Unrecognized action: "+C.action)}};
_.F=j5.prototype;_.F.getProxyState_=function(){var H=3;this.isDisposed()||(H=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(H=1):H=2);return H};
_.F.JSC$19861_disconnect_=function(H){qB("Disconnecting with "+H);_.AO("yt.mdx.remote.remoteClient_",null);OJt(this);this.publish("beforeDisconnect",H);H==1&&QI();this.channelService.disconnect(H);this.dispose()};
_.F.getPlayerContextData_=function(){var H=this.playerContext_;this.clientVideoId_&&(H=this.playerContext_.clone(),yTt(H,this.clientVideoId_,H.index));return Nzi(H)};
_.F.setPlayerContextData_=function(H){var C=this,S=new RG(H);S.videoId&&S.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=S.videoId,_.b5(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.yD(function(){if(C.clientVideoId_){var A=C.clientVideoId_;C.clientVideoId_=null;C.playerContext_.videoId!=A&&TL(C,"getNowPlaying")}},5E3));
var w=[];this.playerContext_.listId==S.listId&&this.playerContext_.videoId==S.videoId&&this.playerContext_.index==S.index||w.push("remoteQueueChange");this.playerContext_.playerState==S.playerState&&this.playerContext_.volume==S.volume&&this.playerContext_.muted==S.muted&&W$O(this.playerContext_)==W$O(S)&&(0,_.Kh)(this.playerContext_.trackData)==(0,_.Kh)(S.trackData)||w.push("remotePlayerChange");this.playerContext_.reset(H);_.I6(w,function(A){this.publish(A)},this)};
_.F.getOtherConnectedRemoteId_=function(){var H=this.channelService.getDeviceId(),C=_.PZ(this.connectedDevices_,function(S){return S.type=="REMOTE_CONTROL"&&S.id!=H});
return C?C.id:""};
_.F.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.F.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.F.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.F.JSC$19861_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var $vq=function(H){_.b5(H.idleDisconnectTimerId_);H.idleDisconnectTimerId_=_.yD(function(){H.JSC$19861_disconnect_(1)},864E5)},TL=function(H,C,S){S?qB("Sending: action="+C+", params="+(0,_.Kh)(S)):qB("Sending: action="+C);
H.channelService.sendMessage(C,S)};
j5.prototype.sendMessageWithUserAction_=function(H,C){TL(this,H,C);$vq(this)};
j5.prototype.JSC$19861_getXsrfToken_=function(){var H=_.vA.get("SAPISID","")||_.vA.get("__Secure-1PAPISID",void 0)||"",C=_.vA.get("__Secure-3PAPISID","")||"";if(!H&&!C)return"";H=_.QO(_.o7(H),2);C=_.QO(_.o7(C),2);return _.QO(_.o7(","+H+","+C),2)};
j5.prototype.subscribe=j5.prototype.subscribe;j5.prototype.unsubscribeByKey=j5.prototype.unsubscribeByKey;j5.prototype.getProxyState=j5.prototype.getProxyState_;j5.prototype.disconnect=j5.prototype.JSC$19861_disconnect_;j5.prototype.getPlayerContextData=j5.prototype.getPlayerContextData_;j5.prototype.setPlayerContextData=j5.prototype.setPlayerContextData_;j5.prototype.getOtherConnectedRemoteId=j5.prototype.getOtherConnectedRemoteId_;j5.prototype.getReconnectTimeout=j5.prototype.getReconnectTimeout_;
j5.prototype.getAutoplayMode=j5.prototype.getAutoplayMode_;j5.prototype.getAutoplayVideoId=j5.prototype.getAutoplayVideoId_;j5.prototype.reconnect=j5.prototype.JSC$19861_reconnect_;j5.prototype.sendMessage=j5.prototype.sendMessageWithUserAction_;j5.prototype.getXsrfToken=j5.prototype.JSC$19861_getXsrfToken_;j5.prototype.isCapabilitySupportedOnConnectedDevices=j5.prototype.isCapabilitySupportedOnConnectedDevices_;var buO=function(H){nk.call(this,"ScreenServiceProxy");this.instance_=H;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.Xv)(this.JSC$19864_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.Xv)(this.onOnlineScreenChange_,this)))};
_.G(buO,nk);_.F=buO.prototype;_.F.getScreens=function(H){return this.instance_.$_gs(H)};
_.F.contains=function(H){return!!this.instance_.$_c(H)};
_.F.get=function(H){return this.instance_.$_g(H)};
_.F.start=function(){this.instance_.$_st()};
_.F.add=function(H,C,S){this.instance_.$_a(H,C,S)};
_.F.remove=function(H,C,S){this.instance_.$_r(H,C,S)};
_.F.updateName=function(H,C,S,w){this.instance_.$_un(H,C,S,w)};
_.F.disposeInternal=function(){for(var H=this.subscriptionKeys_.length,C=0;C<H;++C)this.instance_.$_ubk(this.subscriptionKeys_[C]);this.subscriptionKeys_.length=0;this.instance_=null;nk.prototype.disposeInternal.call(this)};
_.F.JSC$19864_onScreenChange_=function(){this.publish("screenChange")};
_.F.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
De.prototype.$_st=De.prototype.start;De.prototype.$_gspc=De.prototype.JSC$19823_getScreenByPairingCode;De.prototype.$_gsppc=De.prototype.JSC$19823_getScreenByPollingPairingCode;De.prototype.$_c=De.prototype.contains;De.prototype.$_g=De.prototype.get;De.prototype.$_a=De.prototype.add;De.prototype.$_un=De.prototype.updateName;De.prototype.$_r=De.prototype.remove;De.prototype.$_gs=De.prototype.getScreens;De.prototype.$_gos=De.prototype.JSC$19823_getOnlineScreens;De.prototype.$_s=De.prototype.subscribe;
De.prototype.$_ubk=De.prototype.unsubscribeByKey;var qUp=null,eeO=!1,IG=null,aG=null,NWR=null,CQ=[];var L$t=new _.LV("yt-menu"),gmt=function(){},Roj=function(H,C,S){H=C=="right-click"?S.rightClickMenuPopupHint:S.menuPopupHint;
if(!(Uvt(C)>10))return C=C||"default",L$t.set(C+"-impression",Uvt(C)+1),H},Uvt=function(H){return parseInt(L$t.get((H||"default")+"-impression")||0,10)};
_.JC(gmt);var Ikt=function(){this.contexts_=new WeakMap;this.JSC$19870_networkService_=this.activeContext_=null},aki=function(H,C,S){var w=H.contexts_.get(C);
w||(w=new vSr(H.JSC$19870_networkService_),H.contexts_.set(C,w));H.activeContext_=w;S&&H.activeContext_.reset();H.activeContext_.start();return H.activeContext_};var mK=function(){};
mK.prototype.enqueue=function(){var H=this,C;return _.z(function(S){if(H.isCounterfactual())return(C=H.getCounterfactualData())&&H.shouldLogCounterfactualImpression()&&H.sendImpressionEndpoints(C),S.return();H.doEnqueue();_.oT(S)})};
mK.prototype.sendImpressionEndpoints=function(H){_.a8.getInstance().triggerOptionalAction("yt-service-request",{},H[0])};var Wz=function(H,C){this.renderer=H;this.page=C};
_.G(Wz,mK);Wz.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
Wz.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
Wz.prototype.shouldLogCounterfactualImpression=function(){return!0};
Wz.prototype.doEnqueue=function(){var H=_.F1(this.page);H&&H.pause();this.renderer.impressionCommand&&_.a8.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.HW(_.a8.getInstance(),[this.renderer.promoCommand],this.page)};var xvo=function(H,C){this.renderer=H;this.resolver=_.Cn();this.JSC$19882_enforcementCounter=new _.mjP;C?this.JSC$19882_playerManager=_.F1(C):this.JSC$19882_playerManager=null;_.u4(1,!0)};
_.G(xvo,mK);_.F=xvo.prototype;_.F.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var H=[];this.renderer.impressionEndpoints.forEach(function(C){(C=_.L7(C))&&H.push(C)});
return H}};
_.F.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.F.shouldLogCounterfactualImpression=function(){var H=_.SiW();H?(this.JSC$19882_enforcementCounter.increment("POPUP"),_.u4(3)):_.u4(2);return H};
_.F.cancel=function(){this.resolver.promise.cancel()};
_.F.doEnqueue=function(){var H=this;_.SiW()?(this.JSC$19882_enforcementCounter.increment("POPUP"),_.u4(3),Hto(this)):this.JSC$19882_playerManager?(this.resolver.promise.then(function(){Hto(H)}),itp(this.resolver,this.JSC$19882_playerManager)):_.u4(2)};
var itp=function(H,C){var S=_.Cn();C.getPlayerPromise().then(function(w){S.resolve(w)});
S.promise.then(function(w){w.addEventListener("onAbnormalityDetected",H.resolve);_.rL(H.promise,function(){w.removeEventListener("onAbnormalityDetected",H.resolve)})});
H.promise.thenCatch(function(){S.promise.cancel()})},Hto=function(H){_.u4(3);
var C={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:H.renderer}};C=_.a8.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:C},{});Promise.all(C).then(function(){Ceo();H.JSC$19882_playerManager&&H.JSC$19882_playerManager.pause()})},Ceo=function(){TBp(function(H,C){_.AMp(H,C);
H===0?_.u4(7):_.u4(4)})};var Srj=function(H,C){this.renderer=H;this.page=C;this.resolver=_.Cn()};
_.G(Srj,mK);_.F=Srj.prototype;_.F.cancel=function(){this.resolver.promise.cancel()};
_.F.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.F.isCounterfactual=function(){return!this.renderer.isVisible};
_.F.shouldLogCounterfactualImpression=function(){return!0};
_.F.doEnqueue=function(){var H=this;this.resolver.promise.then(function(){var S={popup:{mealbarPromoRenderer:H.renderer},popupType:"MEALBAR"};_.a8.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:S},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var C=_.F1(this.page);C&&sbi(this.resolver,C)}break;default:this.resolver.resolve()}};
var sbi=function(H,C){var S=_.Cn();C.getPlayerPromise().then(function(w){S.resolve(w)});
S.promise.then(function(w){w.addEventListener("onAdEnd",H.resolve);_.rL(H.promise,function(){w.removeEventListener("onAdEnd",H.resolve)})});
H.promise.thenCatch(function(){S.promise.cancel()})};var jbt=function(H,C){this.renderer=H;this.page=C};
_.G(jbt,mK);_.F=jbt.prototype;_.F.cancel=function(){this.JSC$19890_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19890_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19890_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.F.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.F.isCounterfactual=function(){return!this.renderer.isVisible};
_.F.shouldLogCounterfactualImpression=function(){return!0};
_.F.doEnqueue=function(){var H=this,C,S;((C=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(S=C.playbackUpsellDialogTriggerConditionData)==null?void 0:S.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$19890_downloadedVideosCountSelectorUnsubscriber=_.Uf(_.AG(),MpO,function(w,A){w>A&&(wGq(H),H.cancel())}):wGq(this)};
var wGq=function(H){var C={popup:{upsellDialogRenderer:H.renderer},popupType:"MODAL"};_.a8.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:C},{});(H=_.F1(H.page))&&H.pause()};var yo={},AKi=(yo.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",yo.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",yo.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",yo.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",yo.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",yo.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",yo.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",yo),JKO=function(H,C){this.renderer=H;this.targetManager=
C};
_.G(JKO,mK);_.F=JKO.prototype;_.F.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$19897_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19897_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19897_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.F.getCounterfactualData=function(){if(this.isCounterfactual()){var H;return(H=this.renderer.promoConfig)==null?void 0:H.impressionEndpoints}};
_.F.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.F.shouldLogCounterfactualImpression=function(){return!0};
_.F.doEnqueue=function(){var H=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$19897_downloadedVideosCountSelectorUnsubscriber=_.Uf(_.AG(),MpO,function(C,S){H.renderer.targetId&&C>S&&(afr(H.targetManager,H.renderer.targetId,FSt(H)),H.cancel())});
break;default:afr(this.targetManager,this.renderer.targetId,FSt(this))}};
var FSt=function(H){var C;if((C=H.renderer.suggestedPosition)==null?0:C.type)var S=AKi[H.renderer.suggestedPosition.type];S||(S="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:H.renderer},popupType:"HINT",position:S}}};var Zt3=function(){this.previousPage=null},cKi;
Zt3.prototype.registerPromoCommand=function(H,C){Yri(this,void 0,void 0,_.e(H.roadblock,t3O),void 0,void 0,C)};
var Yri=function(H,C,S,w,A,J,c){H.previousPage!==c&&H.pendingTooltipPromo&&H.pendingTooltipPromo.cancel();H.previousPage=c;A?(H.pendingEnforcementPromo&&H.pendingEnforcementPromo.cancel(),H.pendingEnforcementPromo=new xvo(A,c),H.pendingEnforcementPromo.enqueue()):J?(H.pendingCommandWrapperPromo=new Wz(J,c),H.pendingCommandWrapperPromo.enqueue()):w?(H.pendingRoadblockPromo&&H.pendingRoadblockPromo.cancel(),H.pendingRoadblockPromo=new jbt(w,c),H.pendingRoadblockPromo.enqueue()):C?(H.pendingMealbarPromo&&
H.pendingMealbarPromo.cancel(),H.pendingMealbarPromo=new Srj(C,c),H.pendingMealbarPromo.enqueue()):S&&(H.pendingTooltipPromo&&H.pendingTooltipPromo.cancel(),H.pendingTooltipPromo=new JKO(S,_.iZ()),H.pendingTooltipPromo.enqueue())},znr=function(){cKi||(cKi=new Zt3);
return cKi};var vb9=!1;var idr=function(H,C){var S=_.rh("SESSION_INDEX");this.actionToken_=H;this.commonToken_=C;this.sessionIndex_=S},Hdp=function(H){var C=_.Cn(),S=_.gh("payments.business.integration.bootstrap"),w=_.gh("payments.business.integration"),A=w.Style.create().withMaterialDesignStyle(),J=w.mashupMode.popup("instrument-manager");
S.asMashupMode(J).usingUserIndex(H.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(A).inStandaloneContext(w.standaloneContextAuthId.forUserId()).instrumentManager(H.actionToken_,H.commonToken_.length>0?H.commonToken_:void 0,function(c){var Y=c.instrumentId;Y?C.resolve(Y):(Y=_.gh("payments.business.integration.scenario.InstrumentManager"),C.reject(c.errorCode&&c.errorCode===Y.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(c){_.tE(c);
C.reject("instrumentManagerLoadError")});
return C.promise};var Fq=function(H,C,S){this.payloadName="transactionFlowFailed";this.payload={errorType:H,serializedTransactionFlowLoggingParams:C,isUserDismiss:S===void 0?!1:S}};
_.AO("yt.ypc.shared.YpcTransactionFlowError",Fq);var NB=function(){return _.oZ.apply(this,arguments)||this};
_.G(NB,_.oZ);NB.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
NB.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
NB.prototype.onErrorMessageDismiss=NB.prototype.onErrorMessageDismiss;_.D([_.V({readOnly:!0,observer:"errorRendererChanged"}),_.K("design:type",Object)],NB.prototype,"errorRenderer",void 0);_.D([_.Gz("yt-live-chat-error-message-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],NB.prototype,"onErrorMessageDismiss",null);_.D([_.Od()],NB);var M__=[NB.prototype];var qr_;var Tn9;var mqt=new _.LV("yt-live-chat"),WSO=new Map;WSO.set("timestamp_toggle","show-timestamps");WSO.set("reactions_toggle","allow-reactions");var bN=function(){return _.X.apply(this,arguments)||this};
_.G(bN,_.X);_.F=bN.prototype;_.F.menuItemIdentifierChanged=function(){var H;(H=this.data)!=null&&H.menuItemIdentifier&&(H=WSO.get(this.data.menuItemIdentifier))&&(_.E("enable_lwe_web_mute")?(H=mqt.get(H),this.isToggled=!(H===void 0?!this.data.isToggled:!H)):this.isToggled=mqt.get(H))};
_.F.onFocus=function(){this.toggleButton.focus()};
_.F.onTap=function(){var H=this.data.command;H&&this.componentBehavior.resolveCommand(H)};
_.F.computeText=function(H,C,S){return this.componentBehavior.getSimpleString(H?S:C)};
_.F.computeIcon=function(H,C,S){return(H=H?S:C)&&H.iconType?_.bJ(H.iconType):""};
bN.prototype.onTap=bN.prototype.onTap;bN.prototype.onFocus=bN.prototype.onFocus;bN.prototype.menuItemIdentifierChanged=bN.prototype.menuItemIdentifierChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],bN.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],bN.prototype,"componentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],bN.prototype,"data",void 0);
_.D([_.V({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.K("design:type",String)],bN.prototype,"icon",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],bN.prototype,"isToggled",void 0);_.D([_.lA("tp-yt-paper-toggle-button"),_.K("design:type",Object)],bN.prototype,"toggleButton",void 0);_.D([_.fx("data.menuItemIdentifier"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bN.prototype,"menuItemIdentifierChanged",null);
_.D([_.Gz("focus"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bN.prototype,"onFocus",null);_.D([_.Gz("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bN.prototype,"onTap",null);_.D([_.Lx({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],bN);
_.B(bN,"yt-live-chat-toggle-renderer",function(){if(Tn9===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;qr_===void 0&&(qr_=document.createElement("template"));var w=qr_;S.call(C,w.content.cloneNode(!0),H.content.firstChild);Tn9=H}H=Tn9;return H},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var yKO=new _.W4("NAVIGATION_PROGRESS_TOKEN");var Nn9={},btj={},Ent=(btj[QnR.name]=!0,btj),EO=function(){var H=_.oZ.apply(this,arguments)||this;H._noAccessors=!0;H.tabGesturesIsActive=!1;H.actionRouterIsRoot=!0;H.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"};H.pageTitle="";H.titleSuffix="YouTube";H.unseenNotificationCount=
0;H.hasNavigated=!1;H.hasSetScrollTopForNavigation=!1;H.pagePreparer=null;H.zwiebackInitJobId=0;H.dataUpdatePromise=null;H.loadDepsPromise=_.N3();H.hasPendingNavigation=!1;H.pendingPlayerOnResponseReceivedActions=[];return H};
_.G(EO,_.oZ);EO.prototype.attached=function(){en9(this);document.addEventListener("yt-navigate-cache",_.uA(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var H=eG();H.init();H.dispatchElement=this.hostElement};
var en9=function(H,C){C=C===void 0?0:C;var S=_.JA().resolve(_.AA(_.HS));if(S)uxO(H,S);else{if(C>=5)throw Error("nl");setTimeout(function(){en9(H,C+1)},0)}},uxO=function(H,C){C.addEventListener("yt-navigate-start",_.uA(H,H.onYtNavigateStart));
C.addEventListener("yt-navigate-finish",_.uA(H,H.onYtNavigateFinish));C.addEventListener("yt-navigate-error",_.uA(H,H.onYtNavigateError));C.addEventListener("yt-page-data-fetched",_.uA(H,H.onYtPageDataFetched))};
_.F=EO.prototype;_.F.detached=function(){var H=_.JA().resolve(_.HS);H.removeEventListener("yt-navigate-start",_.uA(this,this.onYtNavigateStart));H.removeEventListener("yt-navigate-finish",_.uA(this,this.onYtNavigateFinish));H.removeEventListener("yt-navigate-error",_.uA(this,this.onYtNavigateError));H.removeEventListener("yt-page-data-fetched",_.uA(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.uA(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.F.setPageOffset=function(H,C){H?_.q3(this.hostElement,"yt-set-page-offset",[H,C]):_.nC(Error("ol"))};
_.F.setPageOffsetForNavigation=function(H,C){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(H,C))};
_.F.onYtNavigateSetPageOffset=function(H,C){this.setPageOffsetForNavigation(C.page,C.offset)};
_.F.getPageOffset=function(){var H=_.mY(this.hostElement).querySelector("#page-manager").getCurrentPage(),C=0;H&&(C=_.q3(this.hostElement,"yt-get-page-offset",[H])[0]);return C};
_.F.onYtHistoryPop=function(H,C){if(_.Bh("DISABLE_WARM_LOADS"))H.preventDefault(),window.location.reload();else{var S=_.JA().resolve(_.HS);S.hasPendingNavigation()&&H.preventDefault();S.cancelPendingNavigation();_.m7(this.hostElement,"yt-pending-navigation-cancelled");C.errorMsg&&(H=C.errorMsg.split(" - "),C=Error(H[0]),H.length==2&&H[1]&&(_.DZ(C,H[1]),_.Bn(C)),window.location.reload())}};
_.F.onYtHistoryLoad=function(H,C){var S=this;if(_.Bh("DISABLE_WARM_LOADS"))window.location.reload();else{(H=C.endpoint)&&Object.keys(H).length||(H=null);var w=C.historyEntry,A=_.JA().resolve(_.HS),J=_.JA().resolve(_.JB),c=null;w&&w.rootData&&(c=w.rootData);var Y=c&&GYq(c);!c||Y||c.filler?H?(A.navigate(H,!0),fTr(this,H)):(C.legacyBorder||Y||(C.JSC$30233_savedComponentState==null&&c==null?_.Bn(new _.X0("Incomplete history entry",C.forward)):_.rv(new _.X0("Malformed history entry",C.JSC$30233_savedComponentState,
C.forward,c))),window.location.reload()):(_.XaE({isHot:!0}),_.nL({webInfo:{navigationReason:"h"}}),_.sc7(),_.DR("srt"),_.DR("pdc"),this.cancelPendingTasks(),vni(this,C.forward,c),c.player&&(c.player.loaded=!1),fTr(this,H),_.G0b(A,H||{},c,2,{},!1,C).then(function(){S.setPageOffset(J.getCurrentPage(),w.scrollTop||0)}))}};
_.F.initHistoryManager=function(H){if(!this.hasNavigated){this.hasNavigated=!0;var C=_.mY(this.hostElement).querySelector("#page-manager").getCurrentData();H=isNaN(H)?this.getPageOffset():H;var S=_.JA().resolve(_.HS).currentEndpoint;this.replaceState(S,C,H)}};
_.F.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.F.onYtNavigateStart=function(H,C){this.cancelPendingTasks();C.noProgressBar||(H=_.JA().resolve(_.AA(yKO)))&&H.start();H=this.hasPendingNavigation?null:this.data;var S=_.JA().resolve(_.JB),w,A,J;_.E("kevlar_use_vimio_behavior")&&!((w=C.endpoint)==null?0:(A=w.commandMetadata)==null?0:(J=A.webCommandMetadata)==null?0:J.ignoreNavigation)&&(w=S.getCurrentPage())&&w.disconnectVisibilityRoot();S.prepareForNavigation(C.pageType,C.endpoint);_.E("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.XP(1,
"pcl"),_.Ql(this.pagePreparer,S.preparePage.bind(S,C.pageType,C.endpoint)));w=this.getPageOffset();this.initHistoryManager(w);C.reload||this.hasPendingNavigation?((_.E("web_enable_delay_shorts_sequence_call")||_.E("web_enable_shorts_sequence_cache_fix"))&&C.pageType==="shorts"&&C.reload&&_.M3(this.hostElement,"yt-shorts-reset"),this.replaceState(C.endpoint,H,w)):(H==null?void 0:H.page)==="watch"&&C.pageType==="watch"&&_.E("kevlar_replace_watch_to_watch_history_state")?this.replaceState(C.endpoint,
H,w):(H==null?void 0:H.page)!=="shorts"||C.pageType!=="shorts"||C.endpoint.reelWatchEndpoint.sequenceParams||_.E("short_to_short_back_nav_killswitch")?C.type!="navigate-back"&&C.type!="navigate-forward"&&(C.pageType==="shorts"&&_.M3(this.hostElement,"yt-shorts-reset"),this.saveAndPush(C.url,C.endpoint,H,w)):(_.E("web_enable_delay_shorts_sequence_call")&&(C.endpoint.reelWatchEndpoint.sequenceParams=H==null?void 0:H.cachedSequenceParams,C.endpoint.reelWatchEndpoint.sequenceProvider=H==null?void 0:H.cachedSequenceProvider),
this.replaceState(C.endpoint,H,0));this.hasPendingNavigation=!0};
var lTO=function(H){H.hasPendingNavigation=!1;(H=_.JA().resolve(_.AA(yKO)))&&H.finish()};
EO.prototype.onYtNavigateError=function(H,C){lTO(this);H=this.get("endpoint.commandMetadata.webCommandMetadata.url",C);var S=_.xT(window.location.href);H&&!S.pbjreload&&(C=C.navigationErrorReason||"10",_.E("kevlar_parent_on_pbjreload")&&(S={csn:_.Dg()},this.get("data.endpoint.clickTrackingParams")&&(S.itct=this.data.endpoint.clickTrackingParams),_.JM(H,S)),_.Cx(_.HA(H,{pbjreload:C})))};
EO.prototype.onYtNavigateCache=function(H,C){var S=this,w=C.url,A=C.endpoint,J=C.data;H=!!C.miniplayer;C=!!C.skipHistory;if(w&&A&&J){var c=this.getPageOffset(),Y=this.data||null;C||this.saveAndPush(w,A,Y,c);w=_.G0b(_.JA().resolve(_.HS),A,J,H?4:3,{},H);H&&w.then(function(){S.dataUpdatePromise&&S.dataUpdatePromise.then(function(){var M=_.JA().resolve(_.JB);S.setPageOffset(M.getCurrentPage(),0)})})}};
EO.prototype.onYtNavigateFinish=function(H,C){var S=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){V_t(S,C.fromHistory)})};
var V_t=function(H,C){lTO(H);if(H.pendingPlayerOnResponseReceivedActions){for(var S=_.Z(H.pendingPlayerOnResponseReceivedActions),w=S.next();!w.done;w=S.next())_.uJ(w.value,H.hostElement);H.pendingPlayerOnResponseReceivedActions=[]}S=_.JA().resolve(_.JB);C||!H.hasNavigated||_.E("web_disable_scroll_on_navigate_finish")||((C=S.getCurrentPage())?C.is==="ytd-shorts"||H.tabGesturesIsActive||H.setPageOffsetForNavigation(C,0):_.Bn(Error("pl")));_.HI(function(){_.HI(function(){_.DR("pda")})})};
EO.prototype.onYtNavigate=function(H){if(!H.detail.endpoint){var C=new _.X0("Error: Missing yt-navigate endpoint from target:",H.target,H.target.nodeName);_.nC(C)}if(C=_.E("cold_missing_history"))C=eG(),C.init(!1),C=!(C.browserHistory.boundHistoryReplaceState&&C.browserHistory.boundHistoryPushState);if(C){_.np("DISABLE_WARM_LOADS",!0);C=new _.X0("Failed to initialize history manager",this.getDebugString());var S=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
S?_.Bn(C):_.nC(C)}C=H.detail.endpoint;var w,A;_.E("debug_forward_web_query_parameters")&&((w=C.commandMetadata)==null?0:(A=w.webCommandMetadata)==null?0:A.url)&&(C=JSON.parse(JSON.stringify(C)),C.commandMetadata.webCommandMetadata.url=_.AfE(C.commandMetadata.webCommandMetadata.url,window.location.search));H={type:0,command:C,form:{params:H.detail.params,tempData:H.detail.tempData||{},requestType:H.detail.type,createScreenConfig:H.detail.createScreenConfig,reload:H.detail.reload?H.detail.reload:!1,
requestForm:H.detail}};_.E("kevlar_yt_navigate_command_handler")?(w=_.JA().resolve(_.ZQ),H.form.skipDefaultElement=!0,w.resolveCommand(C,{form:H.form})):this.handleNavigate(H)};
EO.prototype.handleNavigate=function(H){this.hasSetScrollTopForNavigation=!1;var C=_.JA().resolve(_.HS),S=H.form||{};C.navigate(H.command,S.reload,S.params,S.tempData,S.requestType,S.createScreenConfig,S.ignoreConfirmation,S.requestForm)&&fTr(this,H.command,S.tempData)};
EO.prototype.onYtPageDataFetched=function(H,C){try{_.TY_().reset();this.data=C.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.JA().resolve(_.JB).updatePageData(this.data);var S=this.get("playerResponse.onResponseReceivedActions",this.data);S&&(S=oni(this,S));S&&_.yN(this.hostElement,S,this.hostElement);var w=this.get("playerResponse.responseContext.consistencyTokenJar",
this.data),A=this.get("response.responseContext.consistencyTokenJar",this.data);if(w||A){var J=_.wqi(),c=(0,_.hb.getValues)(J.tokenJars);w&&J.replace(c,w);A&&J.replace(c,A)}}catch(Y){_.nC(Y)}};
var fTr=function(H,C,S){try{H.onYtEndpointChangeHandler(C,S)}catch(w){_.nC(w)}};
_.F=EO.prototype;_.F.onYtEndpointChangeHandler=function(){};
_.F.setPageTitle=function(H){H=(this.pageTitle=H)?H+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+H};
_.F.onYtUpdateTitle=function(H,C){this.setPageTitle(C)};
_.F.setUnseenNotificationCount=function(H){this.unseenNotificationCount=H;this.setPageTitle(this.pageTitle)};
_.F.handleUpdateNotificationsUnseenCountAction=function(H){_.e(H,M3p)&&((H=_.e(H,M3p).unseenCount)?this.setUnseenNotificationCount(H):this.setUnseenNotificationCount(0))};
_.F.handleClearCookieAction=function(H){var C;(H=(C=_.e(H,Z4p))==null?void 0:C.cookieName)&&_.fyZ(H)};
_.F.onYtUpdateUnseenNotificationCount=function(H,C){this.setUnseenNotificationCount(C)};
_.F.loadData=function(H){var C=this;this.loadDepsPromise.then(function(){var S=_.JA().resolve(_.AA(_.HS));S||_.nC(Error("ql"));if(H&&H.response){if(!H.endpoint){var w=_.x_(window.document.location.href)||"/",A="";if(w==="/"||w.startsWith("/?"))A="WEB_PAGE_TYPE_BROWSE";H.endpoint={commandMetadata:{webCommandMetadata:{url:w,webPageType:A,rootVe:3854}}}}_.G0b(S,H.endpoint,H,5,{})}else H.endpoint?S.navigate(H.endpoint):S.navigate(_.gH);_.rT.cancelJob(C.zwiebackInitJobId);C.zwiebackInitJobId=_.rT.addLowPriorityJob(lli)})};
var eG=function(){return _.JA().resolve(_.g9)};
EO.prototype.getDebugString=function(){return eG().getDebugString()};
EO.prototype.getThirdPartyManipulationSuspected=function(){return eG().getThirdPartyManipulationSuspected()};
EO.prototype.replaceState=function(H,C,S){eG().saveAndReplace(H,C,S)};
EO.prototype.saveAndPush=function(H,C,S,w){eG().saveAndPush(H,C,S,w)};
var GYq=function(H){return _.e(H.endpoint,_.sX)||_.e(H.endpoint,_.Ox)?!0:!H||isNaN(H.expirationTime)?!1:(0,_.Zt)()>H.expirationTime},vni=function(H,C,S){var w=H.get("response.trackingParams",S),A=_.BM(),J=_.Dg();
if(w&&A&&J&&(w=H.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",S),!w&&S.rootVe&&(w=S.rootVe),A=C?"forwardButton":"backButton",C=H.get("playerResponse.topbar.desktopTopbarRenderer."+A+".buttonRenderer.command.clickTrackingParams",H.data),H=H.get("response.topbar.desktopTopbarRenderer."+A+".buttonRenderer.command.clickTrackingParams",H.data),C=(H=C||H)?_.Qh(H):void 0,H=_.lJ(),A=[_.N3(S)],_.kP(H,w,C,{dataPromises:A,csnToClone:S.csn}),S.graftedVes))for(S=
_.Z(S.graftedVes),w=S.next();!w.done;w=S.next())_.hd(H,w.value)};
EO.prototype.onStoreGraftedVeAction=function(H){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(H)):_.Bn(Error("rl"))};
var oni=function(H,C){return C.filter(function(S){for(var w in S)if(Ent[w])return H.pendingPlayerOnResponseReceivedActions.push(S),!0;return!1})};
_.JJ.Object.defineProperties(EO.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
EO.prototype.onStoreGraftedVeAction=EO.prototype.onStoreGraftedVeAction;EO.prototype.loadData=EO.prototype.loadData;EO.prototype.onYtUpdateUnseenNotificationCount=EO.prototype.onYtUpdateUnseenNotificationCount;EO.prototype.handleClearCookieAction=EO.prototype.handleClearCookieAction;EO.prototype.handleUpdateNotificationsUnseenCountAction=EO.prototype.handleUpdateNotificationsUnseenCountAction;EO.prototype.setUnseenNotificationCount=EO.prototype.setUnseenNotificationCount;
EO.prototype.onYtUpdateTitle=EO.prototype.onYtUpdateTitle;EO.prototype.setPageTitle=EO.prototype.setPageTitle;EO.prototype.onYtEndpointChangeHandler=EO.prototype.onYtEndpointChangeHandler;EO.prototype.onYtPageDataFetched=EO.prototype.onYtPageDataFetched;EO.prototype.handleNavigate=EO.prototype.handleNavigate;EO.prototype.onYtNavigate=EO.prototype.onYtNavigate;EO.prototype.onYtNavigateFinish=EO.prototype.onYtNavigateFinish;EO.prototype.onYtNavigateCache=EO.prototype.onYtNavigateCache;
EO.prototype.onYtNavigateError=EO.prototype.onYtNavigateError;EO.prototype.onYtNavigateStart=EO.prototype.onYtNavigateStart;EO.prototype.cancelPendingTasks=EO.prototype.cancelPendingTasks;EO.prototype.initHistoryManager=EO.prototype.initHistoryManager;EO.prototype.onYtHistoryLoad=EO.prototype.onYtHistoryLoad;EO.prototype.onYtHistoryPop=EO.prototype.onYtHistoryPop;EO.prototype.onYtNavigateSetPageOffset=EO.prototype.onYtNavigateSetPageOffset;EO.prototype.setPageOffset=EO.prototype.setPageOffset;
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],EO.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],EO.prototype,"data",void 0);_.D([_.Gz("yt-navigate-set-page-offset"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],EO.prototype,"onYtNavigateSetPageOffset",null);
_.D([_.Gz("yt-history-pop"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],EO.prototype,"onYtHistoryPop",null);_.D([_.Gz("yt-history-load"),_.K("design:type",Function),_.K("design:paramtypes",[Event,_.Kcd]),_.K("design:returntype")],EO.prototype,"onYtHistoryLoad",null);_.D([_.Gz("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],EO.prototype,"onYtNavigate",null);
_.D([_.Gz("yt-update-title"),_.K("design:type",Function),_.K("design:paramtypes",[Event,String]),_.K("design:returntype")],EO.prototype,"onYtUpdateTitle",null);_.D([_.Gz("yt-update-unseen-notification-count"),_.K("design:type",Function),_.K("design:paramtypes",[Event,Number]),_.K("design:returntype")],EO.prototype,"onYtUpdateUnseenNotificationCount",null);_.D([_.Od()],EO);Nn9.YtdAppBehavior=[_.Lw.YtActionHandlerBehavior,EO.prototype];var uN=function(){var H=_.oZ.apply(this,arguments)||this;H._noAccessors=!0;return H};
_.G(uN,_.oZ);uN.prototype.ready=function(){var H=this;_.mY(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){H.onChange_()})};
uN.prototype.dataChanged_=function(){_.mY(this.hostElement).querySelector("#checkbox").checked=!1};
uN.prototype.onChange_=function(){var H=_.mY(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.M3(this.hostElement,"yt-dismissal-reason-"+H,this.data.feedbackToken)};
uN.prototype.dataChanged_=uN.prototype.dataChanged_;_.D([_.V(),_.K("design:type",Object)],uN.prototype,"data",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],uN.prototype,"dataChanged_",null);_.D([_.Od()],uN);var Ot9=[uN.prototype];var GL=function(){var H=_.oZ.apply(this,arguments)||this;H.timeoutJobId=0;H.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return H};
_.G(GL,_.oZ);GL.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
GL.prototype.startTimeout=function(){var H=this,C=this.data&&this.data.displayDurationSeconds;C&&!this.timeoutJobId&&(this.timeoutJobId=_.X2(_.rT,function(){_.q3(H.hostElement,"yt-close-popup-action",[H.is]);H.timeoutJobId=0},C*1E3))};
GL.prototype.cancelTimeout=function(){_.rT.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
GL.prototype.ytdHatsSurveyBehaviorDataChanged=GL.prototype.ytdHatsSurveyBehaviorDataChanged;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],GL.prototype,"ytActionHandlerBehavior",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],GL.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.D([_.Od()],GL);var XGo=[_.Lw.YtActionHandlerBehavior,GL.prototype];var Qb_=function(H,C){var S;return((S=H.prefixMapping)==null?0:S[C])?H.prefixMapping[C]:H.SHARED_RENDERERS_.hasOwnProperty(C)?"yt":H.prefix},fF={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}};fF.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.E("kevlar_mealbar_above_player"),modern:_.E("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"}};
fF.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};fF.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};fF.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
fF.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)"}};
fF.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};
fF.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};
fF.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};
fF.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};fF.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"}};
fF.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};fF.TOAST={component:null,properties:{}};var dqr=new function(H,C,S){this.supportedPopups=H;this.navigationEndpointPopupMap=C;this.popupTypeMap=S;this.supportedPopups=H;this.navigationEndpointPopupMap=C;this.popupTypeMap=S}({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:_.E("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"}),Pei=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$19948_popupConfig=fF;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 $qo=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.Yo.getInstance()},vz=function(H,C){var S=H.pageNameToElement.get(C);
if(!S){switch(C){case "watch":var w=_.E("web_watch_force_learning_journey_for_testing")?_.OA("ytd-watch-learning-journey"):_.E("kevlar_watch_fixie")?_.OA("ytd-watch-fixie"):_.E("kevlar_watch_grid")?_.OA("ytd-watch-grid"):_.OA("ytd-watch-flexy");break;case "learning_journey_watch":w=_.OA("ytd-watch-learning-journey");break;case "shorts":w=_.OA("ytd-shorts");break;case "search":w=_.OA("ytd-search");break;case "channel":w=_.OA("ytd-browse");w.pageSubtype="channels";break;case "trending":w=_.OA("ytd-browse");
w.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "companion-canvas":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":w=
_.OA("ytd-browse");w.pageSubtype=C;break;case "browse":w=_.OA("ytd-browse");break;default:_.Bn(new _.X0("Error getting page element for type",C))}S=w;H.pageNameToElement.set(C,S)}return S};
$qo.prototype.preparePage=function(H,C,S){S&&(H=_.G5(S)||H);if(H!=="watch"&&H!=="learning_journey_watch"){var w=this.elementPoolPopulator,A=H;A!=w.targetPage_&&w.pendingPages_.indexOf(A)>-1&&(w.targetPage_&&(w.pendingPages_.unshift(w.targetPage_),w.abort()),i5R(w,A),_.n0Y(w,A))}if((w=vz(this,H))||!_.e(S,_.R8)){w.isAttached||w===C||(w.hidden=!0);if(!w.data&&(H!=="watch"&&H!=="learning_journey_watch"||!_.E("swatcheroo_page_pool_dont_provide_filler_data"))){var J;if(H=(J=_.rh("FILLER_DATA",{})[H])==
null?void 0:J.response)w.data=H}return w}};var pGq=function(H){this.JSC$32146_clientRoot=H;this.playlistHandlerActionMap={"yt-add-to-playlist-command":pbi,"yt-end-playlist-command":kGR,"yt-recover-playlist-command":nbp,"yt-refresh-playlist-command":DsO,"yt-playlist-remove-videos-action":rgo};_.xI(_.a8.getInstance(),this.playlistHandlerActionMap,this.JSC$32146_clientRoot);cCj()},kYO;var lN=function(H,C,S){this.apiKey=H;this.endpoint=C;this.confidenceThreshold=S===void 0?.5:S;this.stream=null;this.state=0;this.manuallyClosedChannel=this.channelOpen=!1;this.prefetchResponseSetTimeoutId=-1;this.languageCode="en-us";this.youtubeAssistantRequest=null;this.listeningHandler=function(){};
this.audioDetectedHandler=function(){};
this.completeHandler=function(){};
this.errorHandler=function(){};
this.stopHandler=function(){};
this.transcriptionUpdateHandler=function(){};
this.transcriptionCompleteHandler=function(){};
this.vaaConsentUpdateHandler=function(){};
this.vozEndOfDataTimeout=this.noResponseReceivedTimeout=-1;this.transcribedSpeechResults=[];this.receivedEndOfUtterance=!1;this.startCustomCsiTimeline=!0;this.supportsCrossDomainXhr=!1;this.supportsHttpHeadersOverwriteParam=!0;this.prefetchResponseTimeoutMs=-1;this.isUsingVoz=C==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||C==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
C==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||C==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new wJp};
_.F=lN.prototype;
_.F.start=function(H){if(this.state===0)if(this.isOnline()){H.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=H.supportsHttpHeadersOverwriteParam);H.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=H.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.BH("voice_assistant");_.KL("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=H.languageCode||"en-US";this.supportsCrossDomainXhr=H.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=H.youtubeAssistantRequest||null;this.listeningHandler=H.listeningHandler||this.listeningHandler;this.audioDetectedHandler=H.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=H.stopHandler||this.stopHandler;this.completeHandler=H.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=H.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=H.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
H.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=H.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=H.accessToken;this.additionalHeaders=H.additionalHeaders||{};var C;this.prefetchResponseTimeoutMs=(C=H.prefetchResponseTimeoutMs)!=null?C:this.prefetchResponseTimeoutMs;hno(this);this.startAudio();nnq(this)}else this.errorHandler("OFFLINE")};
_.F.stop=function(H){var C=H===void 0?{}:H;H=C.logCancel===void 0?!0:C.logCancel;var S=C.logMicClosed===void 0?!0:C.logMicClosed;var w=C.handleError===void 0?!0:C.handleError;C=C.handleStop===void 0?!0:C.handleStop;this.state!==0&&(H&&Vo("voz_cx"),oK(this,{logMicClosed:S,handleStop:C}),w&&this.errorHandler("ABORTED"))};
_.F.getState=function(){return this.state};
_.F.isSupported=function(){return!0};
_.F.stopAudio=function(H){(H===void 0||H)&&Vo("voz_mf")};
_.F.startAudio=function(){Vo("voz_vp");return _.N3(null)};
var rKi=function(H,C){H.channelOpen&&(H.state!==2&&(H.state=2,Vo("voz_ss"),H.listeningHandler()),C=new Uint8Array(C),C='{ "audioIn": "'+_.QO(C)+'" }',H.channel.send(C))},oK=function(H,C){var S=C===void 0?{}:C;
C=S.logMicClosed===void 0?!0:S.logMicClosed;S=S.handleStop===void 0?!0:S.handleStop;H.vozEndOfDataTimeout>-1&&(clearTimeout(H.vozEndOfDataTimeout),H.vozEndOfDataTimeout=-1);Bnt(H);H.stopAudio(C);H.channel&&(H.channelOpen=!1,H.manuallyClosedChannel=!0,H.channel.close(),H.channel=void 0);H.transcribedSpeechResults=[];H.state=0;S&&H.stopHandler()},hno=function(H){var C={httpHeadersOverwriteParam:H.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},H.additionalHeaders,H.accessToken&&H.isUsingVoz?{Authorization:"Bearer "+H.accessToken}:{"x-goog-api-key":H.apiKey}),supportsCrossDomainXhr:H.supportsCrossDomainXhr};H.channel=new hw(H.endpoint,C);H.channel.open();_.PI(H.channel,"w",function(){var S=H.channel,w=S.send,A=H.isUsingVoz?"PLACEHOLDER":"example";A={config:{dialogStateIn:{languageCode:H.languageCode},deviceConfig:{deviceId:A,deviceModelId:A},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!H.isUsingVoz)A.config.requestType=4;else if(H.isUsingVoz&&H.youtubeAssistantRequest){var J=JSON.stringify(H.youtubeAssistantRequest);A.config.internalIn={youtubeAssistantS3InputJson:J}}w.call(S,A);H.channelOpen=!0;H.manuallyClosedChannel=!1});
_.PI(H.channel,"x",function(){H.manuallyClosedChannel||(H.channelOpen=!1,H.channel=void 0,oK(H))});
_.PI(H.channel,"z",function(S){if(S.data){Bnt(H);for(var w=0;w<S.data.length;w++){var A=H,J=S.data[w],c=J.speechResults;if(c)a:{var Y=[];J=[];var M=!1;c=_.Z(c);for(var m=c.next();!m.done;m=c.next()){m=m.value;if(m.noSpeech){oK(A);A.errorHandler("NO_SPEECH");break a}m.transcript!==void 0&&m.stability!==void 0&&(m.stability<A.confidenceThreshold&&(M=!0),M?J.push(m.transcript):Y.push(m.transcript))}if(Y.length!==0||J.length!==0)Y=Y.join(" "),J=J.join(" "),A.receivedEndOfUtterance&&!A.isUsingVoz?A.isUsingVoz||
A.completeHandler([Y,J]):(M=A,c=Y,m=J,Vo("voz_sf"),M.transcriptionUpdateHandler(c,m),M.transcribedSpeechResults=[c,m]),A.receivedEndOfUtterance&&(Vo("voz_eou"),A.transcriptionCompleteHandler([Y,J]),A.isUsingVoz&&(A.prefetchResponseTimeoutMs===0?oK(A,{logMicClosed:!1,handleStop:!0}):A.prefetchResponseTimeoutMs>0&&DqO(A)))}else A.isUsingVoz&&(J==null?0:J.internalOut)?(J=JSON.parse(J.internalOut.youtubeAssistantS3OutputJson),J.userHasOptedInToVaa||J.vaaConsent?A.vaaConsentUpdateHandler(!!J.userHasOptedInToVaa,
!!J.vaaConsent):(KSq(A),J&&(Y=A.transcribedSpeechResults,Vo("voz_rqf"),A.completeHandler(Y,J)))):J.eventType==="END_OF_UTTERANCE"?A.receivedEndOfUtterance=!0:(Vo("voz_err"),A.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.Bn(Error("sl")))}}});
_.PI(H.channel,"y",function(S){oK(H);switch(S.status){case 1:S="WEBCHANNEL_NETWORK_ERROR";break;case 2:S="WEBCHANNEL_SERVER_ERROR";break;default:S="WEBCHANNEL_UNKNOWN_ERROR"}H.errorHandler(S);H.logError(Error(S))})};
lN.prototype.logError=function(H){_.nC(H)};
lN.prototype.isOnline=function(){return!0};
var DqO=function(H){KSq(H);H.prefetchResponseSetTimeoutId=setTimeout(function(){oK(H,{logMicClosed:!1,handleStop:!0})},H.prefetchResponseTimeoutMs)},KSq=function(H){H.prefetchResponseSetTimeoutId>-1&&(clearTimeout(H.prefetchResponseSetTimeoutId),H.prefetchResponseSetTimeoutId=-1)},nnq=function(H){Bnt(H);
H.noResponseReceivedTimeout=window.setTimeout(function(){oK(H);H.errorHandler("NO_SPEECH")},11E3)},Bnt=function(H){H.noResponseReceivedTimeout>-1&&(window.clearTimeout(H.noResponseReceivedTimeout),H.noResponseReceivedTimeout=-1)},Vo=function(H){_.DR(H,void 0,"voice_assistant")};var OO=function(){lN.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.G(OO,lN);OO.prototype.isSupported=function(){return K3o()};
OO.prototype.startAudio=function(){var H=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.kj(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(w){t_R(H,w)};
this.processor.connect(this.audioContext.destination);var C=function(w){H.stream=w;if(!H.audioContext)return _.N3(null);w=H.audioContext.createMediaStreamSource(w);H.processor&&w.connect(H.processor);return _.N3(null)},S={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?C(this.stream):(S=navigator.mediaDevices.getUserMedia(S))?S.then(C).catch(function(w){oK(H);w.name&&w.name==="NotAllowedError"?H.errorHandler("NO_MICROPHONE_PERMISSION"):(H.errorHandler("AUDIO_ERROR"),H.logError(w));return _.kj(null)}):(oK(this),this.errorHandler("AUDIO_ERROR"),_.Bn(Error("tl")));
return lN.prototype.startAudio.call(this)};
OO.prototype.stopAudio=function(H){H=H===void 0?!0:H;this.audioContext&&(this.audioContext.state==="running"&&this.processor&&(this.processor.onaudioprocess=function(){}),this.audioContext.close(),this.audioContext=null,this.stream&&(this.stream.getAudioTracks().forEach(function(C){C.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;lN.prototype.stopAudio.call(this,H)};
OO.prototype.isOnline=function(){return navigator.onLine};
var t_R=function(H,C){if(H.audioContext)if(window.OfflineAudioContext){var S=H.audioContext.sampleRate,w=C.inputBuffer.getChannelData(0);C=new window.OfflineAudioContext(1,w.length,16E3);for(var A=C.createBuffer(1,w.length,S),J=A.getChannelData(0),c=0,Y=0;Y<w.length;Y++)J[Y]=w[Y],c+=J[Y]*J[Y];!H.audioDetected&&Math.sqrt(c/w.length)>.01&&(H.audioDetected=!0,H.audioDetectedHandler());w=C.createBufferSource();w.buffer=A;w.connect(C.destination);w.start(0);C.oncomplete=function(M){M=M.renderedBuffer.getChannelData(0);
for(var m=Math.floor(16384E3/S),W=new Int16Array(m),y=0;y<m;++y)W[y]=Math.max(-1,Math.min(1,M[y]))*32767;rKi(H,W.buffer)};
C.startRendering()}else LSq(H,C)},LSq=function(H,C){var S=H.audioContext.sampleRate,w=C.inputBuffer.getChannelData(0),A=Math.floor((S+8E3)/16E3);
S=w.length/A;C=new Float32Array(S);for(var J=0;J<S;++J)C[J]=w[J*A];w=new Int16Array(S);for(A=0;A<S;++A)w[A]=Math.max(-1,Math.min(1,C[A]))*32767;rKi(H,w.buffer)};var gn3={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var Uq9=function(){this.JSC$20013_audioEnabled=!0;this.audioFeedbackHolder={}};
Uq9.prototype.isPlaying=function(H){return H.currentTime>0&&!H.paused&&!H.ended&&H.readyState>2};
var Rn9=function(H){for(var C=_.Z(Object.values(gn3)),S=C.next();!S.done;S=C.next())S=S.value,H.audioFeedbackHolder[S]=new Audio,H.audioFeedbackHolder[S].src="/s/search/audio/"+S+".mp3",H.audioFeedbackHolder[S].load()},XD=function(H,C){if(H.JSC$20013_audioEnabled!==!1&&C in H.audioFeedbackHolder){for(var S=_.Z(Object.values(H.audioFeedbackHolder)),w=S.next();!w.done;w=S.next())w=w.value,H.isPlaying(w)&&w.pause();
H.audioFeedbackHolder[C].currentTime=0;H.audioFeedbackHolder[C].play().catch(function(){})}};var ITr=function(H,C){var S=this;this.store=H;this.service=C;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){S.setState("offline");S.stop()};
this.audioPlayer=new Uq9;var w;(w=this.audioPlayer)==null||Rn9(w)};
_.F=ITr.prototype;_.F.getService=function(){return this.service};
_.F.isEnabled=function(){return!!this.service};
_.F.isSupported=function(){var H;return(H=this.service)==null?void 0:H.isSupported()};
_.F.start=function(){var H=this,C,S,w,A,J,c,Y,M,m,W,y,N,b;return _.z(function(u){switch(u.nextAddress){case 1:H.store.dispatch(N1K("",""));if(!navigator.onLine)return H.setState("offline"),u.return();window.addEventListener("offline",H.handleOfflineEvent);H.stream=null;if(!H.permissionsSupported){u.jumpTo(2);break}_.en(u,3);return u.yield(aTt(H),5);case 5:C=u.yieldResult;if(!C)return(S=H.audioPlayer)==null||XD(S,"failure"),u.return();H.service.stream=H.stream;H.setState("listening");_.xB(u,2);break;
case 3:_.Vx(u),H.permissionsSupported=!1;case 2:w={context:_.XUE(_.Yu())},w.youtubeAssistantParams={searchParams:{inlineSearchResponse:H.enableInlineSearchResponse}},A=function(O,d){H.store.dispatch(bio("transcribing"));H.store.dispatch(N1K(O,d))},J=function(){var O;
(O=H.audioPlayer)==null||XD(O,"open");H.setState("listening")},c=function(){H.setState("transcribing")},Y=function(O){H.setErrorState(O)},M=function(O,d){var p;
(p=H.audioPlayer)==null||XD(p,"success");d&&(_.E("kevlar_voice_search_inline_search")&&(H.responseProcessor=_.JA().resolve(_.QRp),H.responseProcessor&&(p=d.navigationAction,O=d.prefetchedSearchResponse,p&&O&&(p=(new _.QOp).JSC$13134_getStoreKey(p),_.gR(H.responseProcessor,O,p)))),H.JSC$20031_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",d))},m=function(){window.removeEventListener("offline",H.handleOfflineEvent)},W=_.rGE(!1),y=W.Authorization!=null,N=H.enableFirstPartyAuth||
H.enableFPAForSignedInUsers&&y?W:{"X-Goog-Visitor-Id":W["X-Goog-Visitor-Id"]},b={completeHandler:M,
errorHandler:Y,listeningHandler:J,audioDetectedHandler:c,stopHandler:m,transcriptionUpdateHandler:A,youtubeAssistantRequest:w,languageCode:xq9(),additionalHeaders:N,supportsCrossDomainXhr:H.enableFirstPartyAuth||H.enableFPAForSignedInUsers&&y,supportsHttpHeadersOverwriteParam:!H.disableHttpHeadersOverwrite},H.service.start(b),_.oT(u)}})};
_.F.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.F.reset=function(){this.store.dispatch(_.Md({type:"RESET_VOICE_SEARCH_STATE"}))};
_.F.setState=function(H){this.store.dispatch(bio(H))};
_.F.setErrorState=function(H){switch(H){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var C;(C=this.audioPlayer)==null||XD(C,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)aTt(this);else{var S;(S=this.audioPlayer)==null||XD(S,"failure");this.setState("permission-denied")}break;case "ABORTED":var w;(w=this.audioPlayer)==null||XD(w,"no_input");break;default:var A;(A=this.audioPlayer)==
null||XD(A,"no_input");this.setState("timeout")}};
var aTt=function(H){var C,S;return _.z(function(w){switch(w.nextAddress){case 1:return w.yield(navigator.permissions.query({name:"microphone"}),2);case 2:C=w.yieldResult;if(C.state==="granted")return w.return(!0);if(C.state==="denied")return H.setState("permission-denied"),w.return(!1);H.setState("permission");S={audio:{sampleSize:16,channelCount:1},video:!1};_.en(w,3);return w.yield(navigator.mediaDevices.getUserMedia(S),5);case 5:return H.stream=w.yieldResult,w.return(!0);case 3:return _.Vx(w),
H.setState("permission-denied"),w.return(!1)}})},xq9=function(){var H=_.rh("INNERTUBE_CONTEXT_HL"),C=_.rh("INNERTUBE_CONTEXT_GL");
return H.indexOf("-")>-1?H:H+"-"+C};var Hg3=function(H,C,S){ITr.call(this,C,S);this.JSC$20031_actionRouter=H;this.enableInlineSearchResponse=_.E("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.E("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.E("kevlar_voice_search_enable_fpa_signedin_users")},igr;
_.G(Hg3,ITr);
var CI3=function(){if(!igr){var H="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.E("kevlar_voice_search_auth_enabled")||_.E("kevlar_voice_search_use_yt_endpoint")?H="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.E("kevlar_voice_search_use_fp_endpoint")&&(H="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");igr=
new Hg3(_.a8.getInstance(),_.AG(),new OO(_.rh("VOZ_API_KEY"),H,.5))}return igr};var SH9=function(H){this.JSC$20035_clientRoot=H;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$20035_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)]]));H=_.Z(this.eventListeners);for(var C=H.next();!C.done;C=H.next()){var S=_.Z(C.value);C=S.next().value;S=S.next().value;S=_.Z(S);for(var w=S.next();!w.done;w=S.next()){var A=
_.Z(w.value);w=A.next().value;A=A.next().value;C.addEventListener(w,A)}}_.xI(_.a8.getInstance(),this.autonavPauseActionMap,this.JSC$20035_clientRoot)},svt,jvi=function(H){return _.E("kevlar_autonav_popup_filtering")?(H=_.Jr(H))?H.hasAttribute("prevent-autonav"):!0:!0};
_.F=SH9.prototype;_.F.onIronOverlayOpened=function(H){jvi(H)&&(this.autonavPauseReasons.overlayOpen=!0,Qo(this))};
_.F.onIronOverlayClosed=function(H){jvi(H)&&(this.autonavPauseReasons.overlayOpen=!1,Qo(this))};
_.F.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;Qo(this)};
_.F.onYtAutonavPauseBlur=function(){var H=this;_.rT.addJob(function(){H.isInBackground()||(H.autonavPauseReasons.inputBoxFocus=!1,Qo(H))},8,0)};
_.F.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;Qo(this)};
_.F.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;Qo(this)};
_.F.onYtAutonavPauseScroll=function(){var H=_.JA().resolve(_.JB);H.isOnWatch()&&(H=H.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=H.getBoundingClientRect().top<-200,Qo(this))};
_.F.onYtAutonavPauseUserEngagement=function(H){var C=this;if(_.E("user_engagement_enable_autoplay_pause_feature")){var S=Number(H.lowEngagementThresholdMs);isNaN(S)||S<=0||H.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.B$("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.JA().resolve(_.Qi),_.cn()<S?_.X2(_.rT,function(){_.B$("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.F79()?(this.userEngagementCsn=_.Dg(),_.X2(_.rT,function(){_.B$("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
C.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,Qo(this)):_.B$("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.t4p(Error("ul`"+JSON.stringify(H)))};
_.F.onYtAutonavPausePlayer=function(H){this.autonavPauseReasons.requestedByPlayer=!!H.detail;Qo(this)};
_.F.onYtAutonavVisibilityChanged=function(){var H=this,C,S,w;return _.z(function(A){if(A.nextAddress==1)return(C=_.Zz())?A.yield(C.getPlayerPromise(),2):A.return();S=A.yieldResult;w=S.isMuted()||S.getVolume()===0;H.autonavPauseReasons.backgroundAndMute=H.isInBackground()&&w;Qo(H);_.oT(A)})};
_.F.onYtAutonavPausePlayerEnded=function(){_.JA().resolve(_.Qi);var H=144E5;_.E("user_engagement_enable_autoplay_pause_feature")||_.E("is_part_of_any_user_engagement_experiment")||(H=45E5);this.autonavPauseReasons.longIdle=_.cn()>H;wBp(this);Qo(this)};
_.F.onYtUserActivity=function(){var H=this;this.autonavPauseReasons.userEngagement&&(_.X2(_.rT,function(){_.B$("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",H.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,Qo(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.X2(_.rT,function(){_.B$("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",H.userEngagementCsn);_.ht()}),this.autonavPauseReasons.youthereLactExperiment=!1,Qo(this));
this.autonavPauseReasons.longIdle&&!_.E("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,Qo(this))};
_.F.isInBackground=function(){var H=window.document.visibilityState;return!(!H||H==="visible")};
var Qo=function(H){for(var C=!1,S=_.Z(Object.values(H.autonavPauseReasons)),w=S.next();!w.done;w=S.next())w=w.value,C=C||w;C?_.l3.getInstance().pause(H.autonavPauseReasons):(H=_.l3.getInstance(),H.autonavState_==3?(H.setState(2,!1,!1),H.autonavPauseReason_=void 0):H.autonavState_==1&&(H.disabledAutonavPauseReason_=void 0))},wBp=function(H){var C=!1;
if(_.E("enable_autoplay_pause_by_lact")){_.JA().resolve(_.Qi);C=_.YB("autoplay_pause_by_lact_sec")*1E3;var S=_.YB("autoplay_pause_by_lact_sampling_fraction");(C=_.cn()>=C&&Math.random()<S)&&!_.F79()&&(_.X2(_.rT,function(){_.B$("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),C=!1)}C!==H.autonavPauseReasons.youthereLactExperiment&&(H.autonavPauseReasons.youthereLactExperiment=C)&&(H.userEngagementCsn=_.Dg(),_.X2(_.rT,function(){_.B$("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",H.userEngagementCsn)}));
H.autonavPauseReasons.userEngagement&&_.X2(_.rT,function(){_.B$("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",H.userEngagementCsn)})};
SH9.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.B$("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.ht(),this.autonavPauseReasons.youthereLactExperiment=!1,Qo(this));this.autonavPauseReasons.userEngagement&&(_.B$("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,Qo(this))};
SH9.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var AUt=_.R$.persistentPanelVisibleSelector,dr=function(){var H=_.X.apply(this,arguments)||this;H.miniGuideVisible=!1;H.guideOpened=_.E("disable_initial_guide_state_fix")?!1:H.canFitPersistentGuide(H.initialBodyClientWidth);H.guideUserStateOpened=H.getInitialGuideUserStateOpened();H.isFullscreenShorts=!1;H.miniGuideWidthThreshold=_.YB("kevlar_mini_guide_width_threshold",791);H.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");
H.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");H.persistentGuideBlockedPagePathRegex=new RegExp(H.persistentGuideBlockedPagesPatterns.join("|"));H.animationTransitionDuration=0;H.lateDataResolver=_.Cn();H.initialGuideDataFetchFailed=!1;H.initialLoad=!0;H.guideRenderers=new Set;H.isMouseOverGuide=!1;H.sessionUserManuallyExpandedGuideState=
!1;H.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return H};
_.G(dr,_.X);_.F=dr.prototype;_.F.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.F.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.F.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.F.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.F.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.F.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.F.ready=function(){_.JA().addProvider({provide:_.N$,useValue:this.hostElement})};
_.F.attached=function(){var H=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.uA(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.uA(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.uA(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.uA(this,this.onYtGuideShow));_.wM(this,function(){H.animationTransitionDuration=200})};
_.F.detached=function(){document.removeEventListener("yt-navigate-finish",_.uA(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.uA(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.uA(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.uA(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.uA(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.uA(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.uA(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.F.getData=function(){return this.data};
_.F.load=function(){var H=this,C,S,w,A;return _.z(function(J){switch(J.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=H.lateDataResolver.resolve.bind(H),J.return(H.lateDataResolver.promise);if(window.ytInitialGuideData)return C=_.Cn(),C.resolve(window.ytInitialGuideData),J.return(C.promise);w=!1;_.en(J,2);return J.yield(H.fetchGuideData(),4);case 4:S=J.yieldResult;_.xB(J,3);break;case 2:A=_.Vx(J),A.message==="Returned error"&&(w=
!0);case 3:if(S)return J.return(S);H.onYtGuideClose();w||(H.initialGuideDataFetchFailed=!0);return J.return(H.lateDataResolver.promise)}})};
_.F.fetchGuideData=function(){var H=this,C,S,w,A,J,c,Y;return _.z(function(M){if(M.nextAddress==1)return C=_.JA(),H.guidePromise||(S=C.resolve(_.Lf),H.guidePromise=_.ir(S,ffo)),M.yield(H.guidePromise,2);if(M.nextAddress!=3)return w=M.yieldResult,A=C.resolve(_.$0),M.yield(A(),3);(J=M.yieldResult)&&((c=w)==null?void 0:(Y=c.responseContext)==null?void 0:Y.maxAgeSeconds)!==0&&J.put("service:guide:fallback",new _.DL({innertubeResponse:w}));return M.return(w)})};
_.F.initializeGuideDataIfEmpty=function(){var H=this,C,S;return _.z(function(w){if(w.nextAddress==1){if(!H.initialGuideDataFetchFailed||H.data)return w.return();_.en(w,2);return w.yield(H.fetchGuideData(),4)}if(w.nextAddress!=2)return(C=w.yieldResult)&&H.lateDataResolver.resolve(C),_.xB(w,0);S=_.Vx(w);_.Bn(S);_.oT(w)})};
_.F.initializeGuideData=function(){var H=this,C;return _.z(function(S){switch(S.nextAddress){case 1:return _.MI(Cao(),{mainAppWeb:_.Ss()}),_.en(S,2),S.yield(H.load(),4);case 4:H.data=S.yieldResult;_.xB(S,3);break;case 2:_.Vx(S),_.qI(Cao(),"FAILURE");case 3:C=H.data&&H.data.items&&H.data.items.length>0?"SUCCESS":"FAILURE",_.qI(Cao(),C),_.oT(S)}})};
_.F.setGuideData=function(H){var C=this,S,w;return _.z(function(A){if(A.nextAddress==1)return C.disabled?A.return():C.data?(H.data=C.data,C.guideRenderers.add(H),A.return()):A.yield(C.initializeGuideData(),2);C.graftGuideToPage();S=_.Bh("IS_HOMEPAGE_COLD")?"eop":void 0;_.E("disable_element_pool_populator")?C.setGuideDataAfterInit(H):(w=new _.XP(1,S),_.Ql(w,C.setGuideDataAfterInit.bind(C,H)));_.oT(A)})};
_.F.setGuideDataAfterInit=function(H){H.data=this.data;H.markDirty();this.guideRenderers.add(H);_.HI(function(){_.DR("gle")});
_.wM(this,function(){_.DR("gpe")})};
_.F.graftGuideToPage=function(){if(this.data){var H=this.data&&this.data.trackingParams;H&&(H=_.Qh(H),_.nO(_.lJ(),H))}};
_.F.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.uA(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.F.onDrawerOpenedChanged=function(H,C){!C.value&&this.guideOpened&&(this.guideOpened=!1)};
_.F.onYtGuideToggle=function(H){var C=this.guideOpened;this.guideOpened=!C;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var S=_.VN();_.ok(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;S.save()}this.updateGuideDrawerElementState();if(this.guideElement){var w;this.guideOpened&&((w=H.detail)==null?0:w.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.uA(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.uA(this,this.onAppDrawerTransitioned))}C||this.initializeGuideDataIfEmpty()};
_.F.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.uA(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.ss(this.guideElement)};
_.F.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.uA(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(WJj(this.guideOpened))};
_.F.guidePersistentAndVisibleChanged=function(){_.m7(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.F.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.Md({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.F.miniGuideVisibleChanged=function(){_.m7(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.F.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(WJj(this.guideOpened)),this.initialLoad=!1);_.m7(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.F.activeEndpointChanged=function(){_.m7(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.F.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.F.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()};
_.F.cachedClientWidthChanged=function(){this.updateGuideState()};
_.F.persistentPanelVisibleChanged=function(){this.updateGuideState()};
_.F.updateGuideState=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var H=this.canFitPersistentGuide(this.cachedClientWidth);H?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=H}this.updateGuideDrawerElementState()};
_.F.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.F.getGuideOpened=function(){return this.guideOpened};
_.F.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.F.getActiveEndpoint=function(){return this.activeEndpoint};
_.F.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.F.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&&_.M3(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.F.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.E("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.F.handleGuideMouseLeave=function(){var H=this;!this.sessionUserManuallyExpandedGuideState&&_.E("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.iJ(this,"handleGuideMouseLeave",function(){H.isMouseOverGuide||!H.guideOpened||H.miniGuideVisible||(H.guideOpened=!1,H.updateGuideDrawerElementState())},100))};
_.F.computeGuidePersistentAndVisible=function(){var H=this;_.iJ(this,"computeGuidePersistentAndVisible",function(){H.guidePersistentAndVisible=H.guideOpened&&H.guidePersistent;H.guideIsVisibleButNotPersistent=!(!H.guideOpened||H.guidePersistent)})};
_.F.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.F.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.F.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.F.startLoadingWatch=function(){this.closeGuide()};
_.F.startLoadingShorts=function(){_.E("web_hide_guide_on_shorts")&&this.closeGuide()};
_.F.onYtNavigateFinish=function(H,C){if(!_.My||C){this.activeEndpoint=C.endpoint;this.pageType=C.pageType;this.pageUrl=C.response.url;var S,w;H=(w=_.e((S=C.endpoint)==null?void 0:S.commandMetadata,_.u9))==null?void 0:w.url;!this.pageUrl&&H&&(this.pageUrl=H);_.E("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.F.getVisibleGuideRenderer=function(){for(var H=_.Z(this.guideRenderers),C=H.next();!C.done;C=H.next())if(C=C.value,this.miniGuideVisible&&C.is==="ytd-mini-guide-renderer"||this.guideOpened&&C.is==="ytd-guide-renderer")return C;return null};
_.F.markGuideRendererDirty=function(H){if(H){typeof H.markDirty==="function"&&H.markDirty();H=_.Z([].concat(_.k$(_.mY(H).children)));for(var C=H.next();!C.done;C=H.next())this.markGuideRendererDirty(C.value)}};
_.F.persistentGuideEnabled=function(H,C){if(!C||H==="watch"||H==="settings"||H==="shorts"&&this.isFullscreenShorts||_.E("reels_web_disable_persistent_guide_shorts")&&H==="shorts")return!1;var S=_.EE(C)||"";return _.E("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(w){return S===w}):!this.persistentGuideBlockedPagePathRegex.test(S)};
_.F.canFitPersistentGuide=function(H){var C=_.YB("kevlar_persistent_guide_width_threshold",1312);return C===-1||_.E("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:H>this.calculateGuideThreshold(C)};
_.F.calculateGuideThreshold=function(H){return _.E("enable_ai_companion")?H+(this.persistentPanelVisible?400:0):H};
_.F.canFitMiniGuide=function(H){return this.miniGuideWidthThreshold===-1?!1:H>this.calculateGuideThreshold(this.miniGuideWidthThreshold)};
_.F.onResize=function(){var H=this;_.iJ(this,"calculateGuideState",function(){H.onResizeDebounced()})};
_.F.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.F.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.F.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.F.getInitialGuideUserStateOpened=function(){return _.E("web_force_mini_guide_default")?!1:!_.VN().getFlag(109)};
_.JJ.Object.defineProperties(dr.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.rh("initialBodyClientWidth")||window.innerWidth}}});
dr.prototype.onResize=dr.prototype.onResize;dr.prototype.observeForMiniGuideVisible=dr.prototype.observeForMiniGuideVisible;dr.prototype.computeGuidePersistentAndVisible=dr.prototype.computeGuidePersistentAndVisible;dr.prototype.persistentPanelVisibleChanged=dr.prototype.persistentPanelVisibleChanged;dr.prototype.cachedClientWidthChanged=dr.prototype.cachedClientWidthChanged;dr.prototype.resetGuide=dr.prototype.resetGuide;dr.prototype.activeEndpointChanged=dr.prototype.activeEndpointChanged;
dr.prototype.guideOpenedChanged=dr.prototype.guideOpenedChanged;dr.prototype.miniGuideVisibleChanged=dr.prototype.miniGuideVisibleChanged;dr.prototype.guideIsVisibleButNotPersistentChanged=dr.prototype.guideIsVisibleButNotPersistentChanged;dr.prototype.guidePersistentAndVisibleChanged=dr.prototype.guidePersistentAndVisibleChanged;dr.prototype.onGuideElementChanged=dr.prototype.onGuideElementChanged;dr.prototype.onGuidePersistentChanged=dr.prototype.onGuidePersistentChanged;
dr.prototype.onRenderGuideChanged=dr.prototype.onRenderGuideChanged;dr.prototype.onActiveEndpointChanged=dr.prototype.onActiveEndpointChanged;dr.prototype.onMiniGuideVisibleChanged=dr.prototype.onMiniGuideVisibleChanged;dr.prototype.onGuideIsVisibleButNotPersistentChanged=dr.prototype.onGuideIsVisibleButNotPersistentChanged;dr.prototype.onGuidePersistendAndVisibleChanged=dr.prototype.onGuidePersistendAndVisibleChanged;
_.D([_.v(_.Ix),_.K("design:type",Object)],dr.prototype,"ironResizableBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],dr.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],dr.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],dr.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],dr.prototype,"data",void 0);
_.D([_.V(),_.K("design:type",Boolean)],dr.prototype,"disabled",void 0);_.D([_.V(),_.K("design:type",Boolean)],dr.prototype,"guidePersistentAndVisible",void 0);_.D([_.fx("guidePersistentAndVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dr.prototype,"onGuidePersistendAndVisibleChanged",null);_.D([_.V(),_.K("design:type",Boolean)],dr.prototype,"guideIsVisibleButNotPersistent",void 0);
_.D([_.fx("guideIsVisibleButNotPersistent"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dr.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.D([_.V(),_.K("design:type",Object)],dr.prototype,"miniGuideVisible",void 0);_.D([_.fx("miniGuideVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dr.prototype,"onMiniGuideVisibleChanged",null);_.D([_.V(),_.K("design:type",Boolean)],dr.prototype,"forceMiniGuideClose",void 0);
_.D([_.V(),_.K("design:type",Object)],dr.prototype,"activeEndpoint",void 0);_.D([_.fx("activeEndpoint"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dr.prototype,"onActiveEndpointChanged",null);_.D([_.V(),_.K("design:type",Boolean)],dr.prototype,"renderGuide",void 0);_.D([_.fx("renderGuide"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dr.prototype,"onRenderGuideChanged",null);
_.D([_.V({selector:AUt}),_.K("design:type",Boolean)],dr.prototype,"persistentPanelVisible",void 0);_.D([_.V(),_.K("design:type",Object)],dr.prototype,"guideOpened",void 0);_.D([_.V(),_.K("design:type",Boolean)],dr.prototype,"guidePersistent",void 0);_.D([_.fx("guidePersistent"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dr.prototype,"onGuidePersistentChanged",null);_.D([_.V(),_.K("design:type",Object)],dr.prototype,"guideUserStateOpened",void 0);
_.D([_.V(),_.K("design:type",String)],dr.prototype,"pageUrl",void 0);_.D([_.V(),_.K("design:type",String)],dr.prototype,"pageType",void 0);_.D([_.V(),_.K("design:type",Number)],dr.prototype,"cachedClientWidth",void 0);_.D([_.V(),_.K("design:type",Object)],dr.prototype,"guideElement",void 0);_.D([_.V({selector:_.YQ}),_.K("design:type",Object)],dr.prototype,"isFullscreenShorts",void 0);
_.D([_.fx("guideElement"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dr.prototype,"onGuideElementChanged",null);_.D([_.fx("guidePersistentAndVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dr.prototype,"guidePersistentAndVisibleChanged",null);
_.D([_.XJ("guideIsVisibleButNotPersistent"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dr.prototype,"guideIsVisibleButNotPersistentChanged",null);_.D([_.fx("miniGuideVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dr.prototype,"miniGuideVisibleChanged",null);_.D([_.XJ("guideOpened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dr.prototype,"guideOpenedChanged",null);
_.D([_.fx("activeEndpoint"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dr.prototype,"activeEndpointChanged",null);_.D([_.XJ("pageUrl"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dr.prototype,"resetGuide",null);_.D([_.XJ("cachedClientWidth"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dr.prototype,"cachedClientWidthChanged",null);
_.D([_.XJ("persistentPanelVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dr.prototype,"persistentPanelVisibleChanged",null);_.D([_.fx("guideOpened","guidePersistent"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dr.prototype,"computeGuidePersistentAndVisible",null);
_.D([_.XJ("guidePersistentAndVisible","pageUrl","cachedClientWidth","persistentPanelVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dr.prototype,"observeForMiniGuideVisible",null);_.D([_.Gz("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dr.prototype,"onResize",null);_.D([_.h({disableElementRegistration:!0,is:"yt-guide-manager"})],dr);
var JUi=_.B(dr,"yt-guide-manager",void 0,{mode:_.mn("kevlar_poly_si_batch_j081")?1:2});var Pz=function(){var H=_.X.apply(this,arguments)||this;H.JSC$20045_keyboardInUse=!1;H.boundHandleCapturedKeydownEvent=function(C){H.handleCapturedKeydownEvent(C)};
return H};
_.G(Pz,_.X);_.F=Pz.prototype;_.F.attached=function(){this.listenToDocument(document)};
_.F.listenToDocument=function(H){H.addEventListener("keydown",_.uA(this,this.onKeyDownEvent));H.addEventListener("keyup",_.uA(this,this.onKeyUpEvent));H.addEventListener("mousedown",_.uA(this,this.onMouseDownEvent));_.E("desktop_keyboard_capture_keydown_killswitch")||H.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);H.addEventListener("yt-page-data-updated",_.uA(this,this.onPageUpdate))};
_.F.detached=function(){this.unlistenFromDocument(document)};
_.F.unlistenFromDocument=function(H){H.removeEventListener("keydown",_.uA(this,this.onKeyDownEvent));H.removeEventListener("keyup",_.uA(this,this.onKeyUpEvent));H.removeEventListener("mousedown",_.uA(this,this.onMouseDownEvent));_.E("desktop_keyboard_capture_keydown_killswitch")||H.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);H.removeEventListener("yt-page-data-updated",_.uA(this,this.onPageUpdate))};
_.F.ready=function(){_.JA().addProvider({provide:_.PS,useValue:this})};
_.F.isKeyBoardInUse=function(){return this.JSC$20045_keyboardInUse};
_.F.handleCapturedKeydownEvent=function(H){if(H.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(H)};
_.F.onMouseDownEvent=function(){this.JSC$20045_keyboardInUse=!1};
_.F.onPageUpdate=function(){if(_.E("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.E("web_shorts_keyboard_shortcut_usage_log")){_.gl.clear();for(var H=_.Z(_.tp),C=H.next();!C.done;C=H.next()){var S=_.Z(C.value);C=S.next().value;S=S.next().value;S=_.y4(S);_.gl.set(C,S);_.ak(_.Dg(),_.BM(),S)}_.UK.clear();H=_.Z(_.LI);for(C=H.next();!C.done;C=H.next())S=_.Z(C.value),C=S.next().value,S=S.next().value,S=_.y4(S),_.UK.set(C,S),_.ak(_.Dg(),_.BM(),S);_.xR(_.Dg(),_.BM(),[].concat(_.k$(_.UK.values()),
_.k$(_.gl.values())));_.ia(_.Dg(),[].concat(_.k$(_.UK.values()),_.k$(_.gl.values())))}};
_.F.onMiniplayerActiveChange=function(){var H;(H=_.JA().resolve(_.Df).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(H.document):this.unlistenFromDocument(H.document))};
_.F.ignoreKeyEvent=function(H){if(H.ctrlKey||H.altKey)if(_.E("kevlar_macro_markers_keyboard_shortcut")){if(H.keyCode!==37&&H.keyCode!==39)return!0}else return!0;var C=_.Ar(H)||[];return _.YXi(C)?(_.E("web_button_or_anchor_list_item")&&uGK(C,H)&&(this.JSC$20045_keyboardInUse=!0),!0):H.defaultPrevented?(zO(H.keyCode,H.shiftKey,this.isShortsPage),!0):H.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(H):!1};
_.F.isSpacebarClick=function(H){var C=H||window.event;var S;C.composedPath&&typeof C.composedPath==="function"?S=C.composedPath():S=C.path;S&&S.length?C=S[0]:(C=C||window.event,C=C.target||C.srcElement,C.nodeType==3&&(C=C.parentNode));return C&&H.keyCode===32&&(H=C.tagName==="BUTTON"||C.tagName==="A"||C.tagName==="INPUT",C=(C=C.getAttribute("role"))&&(C==="option"||C==="button"||C.indexOf("menuitem")===0),H||C)?!0:!1};
_.F.onKeyDownEvent=function(H){if(!this.ignoreKeyEvent(H)&&(H.keyCode===191&&(H.shiftKey||H.metaKey?H.repeat!=null&&H.repeat||(this.openHotkeyDialog(),zO(H.keyCode,H.shiftKey,this.isShortsPage)):(this.focusSearchBox(),H.preventDefault())),!H.metaKey)){var C=_.JA().resolve(_.Df);switch(H.keyCode){case 9:this.JSC$20045_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(H);break;case 84:C.pipController.getWindow()&&window.focus();this.toggleTheaterMode(H.keyCode,H.shiftKey);break;case 73:C.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(H.keyCode,H.shiftKey);break;case 70:if(this.isShortsPage&&_.E("web_fullscreen_shorts")){_.zNK();break}this.isMiniplayerActive()?C.pipController.getWindow()&&(C.close(!0),window.focus()):this.passEventToPlayer(H);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(H.keyCode,H.shiftKey):this.closeMiniplayer(H.keyCode,H.shiftKey)||this.passEventToPlayer(H);break;case 13:H.shiftKey&&_.JA().resolve(_.jX).activate(H);break;default:this.passEventToPlayer(H)}}};
_.F.onKeyUpEvent=function(H){if(!this.ignoreKeyEvent(H))if(_.E("web_speedmaster_spacebar_control")&&H.keyCode===32)this.handlePlayerSpaceKey(H,!0);else{var C=this.getPlayerManager();C&&(C=C.getPlayer())&&C.handleGlobalKeyUp(H.keyCode,H.shiftKey,H.ctrlKey,H.altKey,H.metaKey,H.key,H.code)}};
_.F.getPlayerManager=function(){var H=_.Zz(),C=_.JA().resolve(_.AA(_.JB));return H&&C&&C.isOnWatch()?H:null};
_.F.passEventToPlayer=function(H,C){var S=this,w,A,J,c;return _.z(function(Y){if(Y.nextAddress==1){if(!_.E("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&S.isMiniplayerActive())w=_.JA().resolve(_.Df).getPlayerElement();else if(S.inlinePreviewIsActive){if(A=_.m7(S.hostElement,"yt-get-inline-preview-player-action"),(J=A)==null?0:J[0])w=A[0]}else w=_.Zz();return w?Y.yield(w.getPlayerPromise(),3):Y.jumpTo(0)}c=Y.yieldResult;C?c.handleGlobalKeyUp(H.keyCode,H.shiftKey,H.ctrlKey,H.altKey,H.metaKey,
H.key,H.code):c.handleGlobalKeyDown(H.keyCode,H.shiftKey,H.ctrlKey,H.altKey,H.metaKey,H.key,H.code,H.repeat);H.keyCode!==38&&H.keyCode!==40&&zO(H.keyCode,H.shiftKey,S.isShortsPage);_.oT(Y)})};
_.F.focusSearchBox=function(){_.M3(this.hostElement,"yt-focus-searchbox")};
_.F.openHotkeyDialog=function(){_.M3(this.hostElement,"yt-open-hotkey-dialog")};
_.F.isMiniplayerActive=function(){return _.JA().resolve(_.Df).isMiniplayerActive()};
_.F.closeMiniplayer=function(H,C){return this.isMiniplayerActive()?(_.JA().resolve(_.Df).close(),zO(H,C,this.isShortsPage),!0):!1};
_.F.toggleTheaterMode=function(H,C){var S=_.Dl(_.AG().getState()),w=this.getPlayerManager(),A=_.E("disable_theater_mode_keyboard")||_.Bh("START_IN_FULL_WINDOW_MODE");w&&!A&&(S=!S,_.ZR()&&_.E("external_fullscreen")&&(S=!0),_.q3(this.hostElement,"yt-toggle-theater-mode",[S]),zO(H,C,this.isShortsPage))};
_.F.toggleMiniplayer=function(H,C){var S=this.getPlayerManager();if(this.isMiniplayerActive()){var w;((w=_.JA().resolve(_.AA(_.JB)))==null?0:w.isOnWatch())?_.JA().resolve(_.Df).close(!0):_.Mm(_.JA().resolve(_.Df));zO(H,C,this.isShortsPage)}else S&&(_.q3(this.hostElement,"yt-activate-miniplayer-from-watch-action"),zO(H,C,this.isShortsPage))};
_.F.handlePlayerSpaceKey=function(H,C){var S=!!_.Zz()||this.isMiniplayerActive();S=_.E("disable_space_scroll_fix")||S;_.E("global_spacebar_pause")&&!this.isKeyBoardInUse()&&S&&(H.preventDefault(),this.passEventToPlayer(H,C))};
_.F.isPresentingTheaterMode=function(){return _.E("web_watch_enable_tm_esc_key")?_.Dl(_.AG().getState())&&!_.ZR():!1};
Pz.prototype.onMiniplayerActiveChange=Pz.prototype.onMiniplayerActiveChange;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Pz.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],Pz.prototype,"ytdReduxBehavior",void 0);_.D([_.V({selector:_.TQp}),_.K("design:type",Boolean)],Pz.prototype,"inlinePreviewIsActive",void 0);_.D([_.V({selector:_.f80}),_.K("design:type",Boolean)],Pz.prototype,"isShortsPage",void 0);
_.D([_.V({selector:_.Dy}),_.K("design:type",Boolean)],Pz.prototype,"miniplayerIsActive",void 0);_.D([_.fx("miniplayerIsActive"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Pz.prototype,"onMiniplayerActiveChange",null);_.D([_.h({disableElementRegistration:!0,is:"yt-hotkey-manager"})],Pz);_.B(Pz,"yt-hotkey-manager",void 0,{mode:_.mn("kevlar_poly_si_batch_j081")?1:2});var $3=function(){var H=_.X.apply(this,arguments)||this;H.loopStateEntityKey_=null;H.playlistLoopStateEntity_=null;H.isShuffleNextPlaylist=!1;H.PLAYER_EVENTS_=new Map;H.playerListenersSetup_=!1;H.videoSkipJob_=0;H.canAutoAdvance_=!1;H.playerManager_=null;H.TEST_ONLY={};return H};
_.G($3,_.X);_.F=$3.prototype;_.F.ready=function(){_.JA().addProvider({provide:_.qb,useValue:this.hostElement})};
_.F.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_)};
_.F.attached=function(){document.addEventListener("yt-navigate-start",_.uA(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.uA(this,this.onYtNavigateFinish_))};
_.F.detached=function(){document.removeEventListener("yt-navigate-start",_.uA(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.uA(this,this.onYtNavigateFinish_))};
_.F.updatePlaylistEventListeners=function(H,C){C&&!this.playerListenersSetup_?(this.playerManager_=H,this.registerPlaylistEventListeners_(H)):!C&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(H))};
_.F.setPlayer=function(H){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=H};
_.F.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.F.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.F.registerPlaylistEventListeners_=function(H){var C=this;H.getPlayerPromise().then(function(S){C.playerListenersSetup_||(C.ytPlayerListenerBehavior.listenToPlayerEvents(S,C.PLAYER_EVENTS_),C.playerListenersSetup_=!0)})};
_.F.removePlaylistEventListeners_=function(H){var C=this;H.getPlayerPromise().then(function(S){C.playerListenersSetup_&&(C.ytPlayerListenerBehavior.unlistenFromPlayerEvents(S,C.PLAYER_EVENTS_),C.playerListenersSetup_=!1)})};
_.F.setPlaylistComponent=function(H){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.uA(this,this.onPlaylistYtNavigate_)),H&&(H.data&&this.playlistComponent.data&&H.data.playlistId==this.playlistComponent.data.playlistId?(H.loopOn=this.playlistComponent.loopOn,H.shuffleOn=this.playlistComponent.shuffleOn):(H.loopOn=!1,H.shuffleOn=!1),this.isShuffleNextPlaylist&&(H.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=H;this.playlistComponent.addEventListener("yt-navigate",
_.uA(this,this.onPlaylistYtNavigate_))};
_.F.setAutoplayRenderer=function(H){this.autoplayData=H};
_.F.setPlaylistData=function(H){this.currentPlaylistData_=H;_.M3(this.hostElement,"yt-playlist-data-updated");_.hb.isEmpty(H)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(H)};
_.F.setPlayerPlaybackControlData=function(H){this.playerManager_&&this.playerManager_.updatePlayerComponents(H.playlistPanelRenderer)};
_.F.getPlaylistData=function(){return this.currentPlaylistData_};
_.F.getTempData_=function(H,C){if(this.playlistComponent==null)return null;H={};this.playlistComponent.shuffleOn&&(H.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(H.loop_on=this.playlistComponent.loopOn);C&&(H.autonav="1",_.JA().resolve(_.Qi),C=_.cn(),C>0&&(H.lact=C),this.playerManager_&&(C=this.playerManager_.getPlayer())&&C.shouldSendVisibilityState()&&(C=C.getVisibilityState(),C!=0&&(H.vis=C)));_.E("enable_unknown_lact_fix_on_html5")&&(_.JA().resolve(_.Qi),H.lact=
_.cn());return H};
_.F.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.F.setLoopStateEntityKey_=function(H){var C;this.loopStateEntityKey_=((C=this.getPlaylistLoopData_(H))==null?void 0:C.playlistLoopStateEntityKey)||null};
_.F.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.F.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.F.skipVideo=function(){var H=this,C=_.E("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||C)C=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.dw(_.rT,function(){H.onPlaylistNext();H.videoSkipJob_=0},C)};
_.F.cancelVideoSkip=function(){this.videoSkipJob_&&(_.rT.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.F.isInBackground_=function(){var H=window.document.visibilityState;return!(!H||H=="visible")};
_.F.onPlaylistIndex_=function(H){this.playlistComponent&&(H=this.playlistComponent.data.contents[H].playlistPanelVideoRenderer.navigationEndpoint,_.M3(this.hostElement,"yt-navigate",{endpoint:H,tempData:this.getTempData_(H)}))};
_.F.onPlayerStateChange_=function(H){if(H=H==0&&this.playlistComponent&&this.canAutoAdvance_)H=_.l3.getInstance(),H=!(H.autonavState_===3?H.autonavPauseReason_&&H.autonavPauseReason_.inputBoxFocus===!0:H.autonavState_===1&&H.disabledAutonavPauseReason_&&H.disabledAutonavPauseReason_.inputBoxFocus===!0);H&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.F.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.F.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.F.navigateToAutoplayWatchEndpoint_=function(H,C,S){var w=this.playlistComponent.data.currentIndex,A=this.getNumPlayableVideos_();H=="NORMAL"&&C=="autoplayVideo"&&w+1>=A&&S||!(H=this.getVideoEndpoint_(H,C))||(S=this.getTempData_(H,S),_.M3(this.hostElement,"yt-navigate",{endpoint:H,tempData:S}))};
_.F.getNumPlayableVideos_=function(){for(var H=0,C=_.Z(this.playlistComponent.data.contents||[]),S=C.next();!S.done;S=C.next())S.value.playlistPanelVideoRenderer&&(H+=1);return H};
_.F.getVideoEndpoint_=function(H,C){if(this.autoplayData&&this.autoplayData.sets)for(var S=0,w=this.autoplayData.sets.length;S<w;S++){var A=this.autoplayData.sets[S];if(A.mode==H){if(A[C])return A[C];break}}else H=new _.X0("AutoplayData is undefined in playlist manager","Mode: "+H+" endpoint: "+C),_.Bn(H)};
_.F.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.F.onPlaylistYtNavigate_=function(H){if(H.detail.endpoint){H.stopPropagation();var C=H.detail;C.tempData=this.getTempData_(H.detail.endpoint);_.M3(this.hostElement,"yt-navigate",C)}};
_.F.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.F.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.F.playlistLoopStateEntityChanged_=function(H){var C=this,S,w,A;return _.z(function(J){if(J.nextAddress==1){if(!H)return J.return();S=H.state==="PLAYLIST_LOOP_STATE_ONE";return C.playerManager_?J.yield(C.playerManager_.getPlayerPromise(),3):J.jumpTo(2)}J.nextAddress!=2&&(w=J.yieldResult,w.setLoopVideo(S));A=H.state==="PLAYLIST_LOOP_STATE_ALL";C.playlistComponent&&(C.playlistComponent.loopOn=A);_.oT(J)})};
_.F.getPlaylistLoopData_=function(H){var C,S;if(H=H==null?void 0:(C=H.playlistButtons)==null?void 0:(S=C.menuRenderer)==null?void 0:S.topLevelButtons)for(C=_.Z(H),S=C.next();!S.done;S=C.next())if(S=S.value,S.playlistLoopButtonRenderer)return S.playlistLoopButtonRenderer};
_.F.getLoopStateCommand_=function(H){var C=this.getPlaylistData(),S;C=((S=this.getPlaylistLoopData_(C))==null?void 0:S.states)||[];var w;H=(w=_.e(C[H?1:2],_.YN7))==null?void 0:w.button;var A;return(A=_.e(H,_.cg))==null?void 0:A.command};
_.F.onPlayerLoopChange_=function(H){this.playlistLoopStateEntity_&&(H?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(H=this.getLoopStateCommand_(H))&&this.ytComponentBehavior.resolveCommand(H)};
_.F.onSleepTimerSettingsChanged_=function(H){this.canAutoAdvance_=H!=="End of video"};
$3.prototype.onPlaylistLoopStateEntityChanged=$3.prototype.onPlaylistLoopStateEntityChanged;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],$3.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.fT.YtPlayerListenerBehavior),_.K("design:type",_.v_)],$3.prototype,"ytPlayerListenerBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],$3.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],$3.prototype,"loopStateEntityKey_",void 0);
_.D([_.V({selectorArgs:["loopStateEntityKey_"],selector:_.EsZ}),_.K("design:type",Object)],$3.prototype,"playlistLoopStateEntity_",void 0);_.D([_.fx("playlistLoopStateEntity_"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$3.prototype,"onPlaylistLoopStateEntityChanged",null);_.D([_.h({disableElementRegistration:!0,is:"yt-playlist-manager"})],$3);_.B($3,"yt-playlist-manager",void 0,{mode:_.mn("kevlar_poly_si_batch_j081")?1:2});var FbK,Zgi=function(){if(FbK!==void 0)return FbK;var H=document.createElement("template");_.f(H,"\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");H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return FbK=H};var pF=function(){var H=_.X.apply(this,arguments)||this;H.lastCallback=null;H.getAccountLinkPromises={};H.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);H.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return H};
_.G(pF,_.X);_.F=pF.prototype;_.F.getLocation=function(){return window.location.href};
_.F.getCompletionUrl=function(){return _.AM(this.getLocation())};
_.F.containsRedirectState=function(H){return(H=_.Vn(_.a_7(H)))?(new URLSearchParams(H)).get("redirect_state")!==null:!1};
_.F.createGalConfig=function(H,C){var S=new hw_;H=S=C?this.getPopupOrRedirectSetting(S,_.rh("LINK_API_KEY"),_.rh("LINK_API_KEY_REDIRECT"),H):ncO(S,_.rh("LINK_API_KEY"));H.authUser=_.rh("SESSION_INDEX")||0;H.supportedFlows=new Set([4]);return H.build()};
_.F.getPopupOrRedirectSetting=function(H,C,S,w){this.isGalInteractionPopupMode(w)?(H.interactionMode=0,H=ncO(H,C)):(H.interactionMode=1,C=this.getCompletionUrl(),H.completionUrl=C,H=ncO(H,S));return H};
_.F.isGalInteractionPopupMode=function(H){if(this.redirectModeProviderAllowlist.has(H))switch(H){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.F.getStatusEntityKeyForProviderId=function(H){return _.ba(H+":all","accountLinkStatusEntity")};
_.F.findNestedPropValue=function(H,C){var S=!1,w=null;JSON.stringify(H,function(A,J){S||A!==C||(S=!0,w=J);return S?null:J});
return w};
_.F.findAccountLinkButtonViewModel=function(H,C){var S=null,w=!1;JSON.stringify(H,function(A,J){w||J.accountLinkStatusEntityKey!==C||J.accountLinkStatusSecondaryEntityKey||(w=!0,S=J);return w?null:J});
return S};
_.F.executeLinkingSuccessOrFailureCommands=function(H,C,S){var w=null,A;(C==null?0:(A=C.url)==null?0:A.includes("account_sharing"))?w=C==null?void 0:C.response:w=C==null?void 0:C.response;(C=this.findAccountLinkButtonViewModel(w,H))?(H=S?this.findNestedPropValue(C,"onSuccessCommand"):this.findNestedPropValue(C,"onFailureCommand"))?_.EX([H],this.hostElement):_.Ug(Error("vl")):_.Ug(Error("wl`"+H))};
_.F.handleInitializeRequest=function(H,C){var S=this,w=zKK(this.createGalConfig(H,!0));this.containsRedirectState(this.getLocation())?Jr_(H,w.config,w.galService).then(function(A){var J=S.getStatusEntityKeyForProviderId(H);if(A.statusCode===1)C&&S.executeLinkingSuccessOrFailureCommands(J,C,!0),A=S.getLocation().indexOf("#"),A!==-1&&window.history.pushState(null,"",S.getLocation().substring(0,A));else return C&&S.executeLinkingSuccessOrFailureCommands(J,C,!1),Promise.reject(Error(A.statusMessage))}).catch(function(A){_.Bn(A);
_.kI("gamingAccountLinkStatusChanged",{serviceId:H,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(A)}):this.getAccountLinkPromises[H]=w.startLinkingSession({serviceId:H})};
_.F.handleAccountLinkCommand=function(H){_.e(H,f$i)&&this.handleLinkRequest(_.e(H,f$i))};
_.F.handleLinkRequest=function(H){var C=this,S=H.thirdPartyId;if(S)if(this.isGalInteractionPopupMode(S)){var w=function(){C.closeAndFire("ytd-gaming-account-link-setting-renderer",H.onFailureCommand)},A=function(){C.closeAndFire("ytd-gaming-account-link-setting-renderer",H.onSuccessCommand)};
this.lastCallback=A;this.getAccountLinkPromises[S].then(function(J){yyp(J).then(function(c){c.statusCode===1?A():w()})}).catch(function(){w()})}else this.getAccountLinkPromises[S].then(function(J){yyp(J).then(function(c){if(c.statusCode!==1)return Promise.reject(Error(c.statusMessage))})}).catch(function(J){_.Bn(J);
_.kI("gamingAccountLinkStatusChanged",{serviceId:S,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(J)})};
_.F.closeAndFire=function(H,C){_.q3(this.hostElement,"yt-close-popup-action",[H]);C&&_.EX([C],this.hostElement)};
_.F.handleAccountUnlinkCommand=function(H){_.e(H,vrj)&&this.handleUnlinkRequest(_.e(H,vrj))};
_.F.handleUnlinkRequest=function(H){var C=this,S=H.thirdPartyId;if(S){var w=function(){C.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",H.onFailureCommand)},A=function(){C.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",H.onSuccessCommand)};
this.lastCallback=A;var J=zKK(this.createGalConfig(S,!1));this.unlinkUserGal(J,S).then(function(c){c.statusCode===1?A():w()}).catch(function(){w()})}};
_.F.unlinkUserGal=function(H,C){return H.deleteLink(C)};
_.F.handleLogAccountLinkingEventCommand=function(H){_.E("enable_gel_log_commands")&&_.e(H,l$o)&&(H=_.e(H,l$o).event)&&_.kI("gamingAccountLinkStatusChanged",H)};
_.JJ.Object.defineProperties(pF,{template:{configurable:!0,enumerable:!0,get:function(){return Zgi()}}});
_.D([_.v(_.Kw.YtOpenPopupBehavior),_.K("design:type",Object)],pF.prototype,"ytOpenPopupBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],pF.prototype,"ytActionHandlerBehavior",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-third-party-manager"})],pF);_.B(pF,"ytd-third-party-manager",function(){return Zgi()},{mode:_.mn("kevlar_poly_si_batch_j081")?1:2});var cUK,YH9=function(){if(cUK!==void 0)return cUK;var H=document.createElement("template");_.f(H,"\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");H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return cUK=H};var k3=function(){var H=_.X.apply(this,arguments)||this;H.currentPage=void 0;H.renderLoadingStateJobId=0;H.updatePageDataJobId=0;H.pageDisposeJobsets=new WeakMap;H.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"};H.shouldApplyLockupToWatchTransition=_.E("web_thumbnail_to_watch_transition");H.shouldApplySlideTransition=_.z9("web_page_transition_type")==="slide"||_.E("enable_plj_landing_page");H.shouldApplyLearningJourneyTransition=_.E("enable_plj_landing_page");H.TEST_ONLY=void 0;return H};
_.G(k3,_.X);_.F=k3.prototype;_.F.ready=function(){var H=_.JA();H.addProvider({provide:_.JB,useValue:this});H.addProvider({provide:_.DXM,useValue:this})};
_.F.created=function(){this.pagePool=new $qo;this.contextSwitcher=new Ikt};
_.F.attached=function(){_.M3(this.hostElement,"attached");var H=_.JA().resolve(_.AA(_.tG));H&&(this.contextSwitcher.JSC$19870_networkService_=H);this.viewTransitionManager=_.JA().resolve(_.IC)};
_.F.getPageOffset=function(H){return H.getScrollTop()};
_.F.setPageOffset=function(H,C){try{H.setScrollTop(C)}catch(S){}};
_.F.setPageOffsetForNavigation=function(H,C){_.M3(this.hostElement,"yt-navigate-set-page-offset",{page:H,offset:C===void 0?0:C})};
_.F.pauseActiveContext=function(){var H=this.contextSwitcher;H.activeContext_&&H.activeContext_.pause()};
_.F.getModuleNameForType=function(H){return H==="watch"?_.E("kevlar_watch_fixie")?"watchFixie":_.E("kevlar_watch_grid")?"watchGrid":"watchFlexy":H==="shorts"||H==="search"?H:"browse"};
_.F.attachPage=function(H){var C,S=!_.E("pc_is_attached_ks")&&(H==null?void 0:(C=H.polymerController)==null?void 0:C.isAttached);if(!H.isAttached&&!S)try{_.mY(this.hostElement).appendChild(H)}catch(A){var w;_.Bn(new _.X0("Error attaching page element for component",{origin:(w=this.currentPage)==null?void 0:w.is,component:H.is}))}};
_.F.setActivePage=function(H,C){var S=this,w=!1,A=function(){var J=S.isOnWatch(),c=S.currentPage;if(H)if(H!==S.currentPage){c&&(c.hidden=!0,c.active=!1,c.removeAttribute("role"));S.currentPage=H;var Y,M=C!=null?C:_.G5((Y=S.data)==null?void 0:Y.endpoint);c&&_.M3(S.hostElement,"yt-page-type-changed",{oldPageType:c.is,newPageType:H.is,newPageSubtype:M});_.wC().dispatch(_.Md({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:H.is}));_.wC().dispatch(_.Md({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:M||""}));
H.hidden=!1;S.attachPage(H);H.active=!0;H.setAttribute("role","main");c&&S.setPageOffsetForNavigation(H,0);_.E("kevlar_remove_page_dom_on_switch")&&!J&&c&&_.mY(S.hostElement).removeChild(c)}else w=!0;else S.handleMissingDestinationPage(c)};
this.shouldRunBrowseTransition(this.currentPage,H)?BOi(this.viewTransitionManager,A):this.shouldRunLearningJourneyTransition(this.currentPage,H)?tCR(this.viewTransitionManager,A):A();return w};
_.F.handleMissingDestinationPage=function(H){if(this.isColdLoadForUnknownPage(H))_.Bn(new _.X0("Cold load for unknown page"));else{var C;H=new _.X0("Unable to set active page",H?H.is:"unknown origin",(C=this.data)==null?void 0:C.endpoint);_.nC(H)}};
_.F.isColdLoadForUnknownPage=function(H){return!H&&Ck(this.data)==="unknown"};
_.F.shouldRunBrowseTransition=function(H,C){return this.shouldApplySlideTransition&&(H==null?void 0:H.is)==="ytd-browse"&&(C==null?void 0:C.is)==="ytd-browse"&&H!==C};
_.F.shouldRunLearningJourneyTransition=function(H,C){return this.shouldApplyLearningJourneyTransition&&(H==null?void 0:H.is)==="ytd-browse"&&((C==null?void 0:C.is)==="ytd-watch-learning-journey"||(C==null?void 0:C.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.F.shouldRunWatchNextLoadedTransition=function(H,C){return this.viewTransitionManager&&H.is==="ytd-watch-flexy"&&C};
_.F.updatePageData=function(H){var C=this,S=this.data;this.updatePageDataJobId&&_.rT.cancelJob(this.updatePageDataJobId);this.data=H;return new _.Es(function(w){var A=function(){H.filler?C.performDataUpdate(H,S):xI3(function(){C.performDataUpdate(H,S)});
var M=_.mN();_.WP(M,"cr")||M.processSignal("cr");w()},J=function(){H&&H.page==="watch"?C.updatePageDataJobId=_.dw(_.rT,A):A()};
if(_.E("kevlar_enable_mss_page_modules_client")&&H){var c=_.JA().resolve(_.tN),Y=C.getModuleNameForType(H.page);(c=nvt(c,[Y]))?c.then(J):J()}else J()})};
_.F.isDownloadsPage=function(H){var C,S;return(H==null?void 0:(C=H.endpoint)==null?void 0:(S=C.browseEndpoint)==null?void 0:S.browseId)==="FEdownloads"};
_.F.setPlayerSyncInterval=function(H){var C;return _.z(function(S){if(S.nextAddress==1)return S.yield(_.JA().resolve(_.qp),2);C=S.yieldResult;C.setUpPositionSyncInterval(H);_.oT(S)})};
_.F.performDataUpdate=function(H,C){_.E("kevlar_early_popup_close")||_.q3(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var S=!H.filler;S&&(_.DR("lps"),_.E("config_age_report_killswitch")||$dt());var w=Ck(H),A,J=!1;if(_.E("kevlar_remove_page_dom_on_switch")){var c=C&&Ck(C);w===c&&(A=this.getCurrentPage())}A||(A=vz(this.pagePool,w));S&&CP_(this.pagePool.elementPoolPopulator,w);S&&!this.renderLoadingStateJobId&&(J=this.setActivePage(A));if(A){c=w==="watch";var Y=
w==="shorts",M=w==="learning_journey_watch";_.E("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(A);if(c||Y||M)A.playerData=H.playerResponse;if(Y)if(_.E("web_enable_delay_shorts_sequence_call")){H.reelWatchSequenceResponse&&(H.reelWatchSequenceResponse.entries||H.reelWatchSequenceResponse.prevEntries)&&(A.reelWatchSequenceResponse=H.reelWatchSequenceResponse);A.currentEndpoint=H.endpoint;var m;A.isPreviousPageShorts=!!(C==null?0:(m=C.endpoint)==null?0:m.reelWatchEndpoint);
var W,y;H.cachedSequenceParams=((W=H.endpoint)==null?void 0:(y=W.reelWatchEndpoint)==null?void 0:y.sequenceParams)||H.cachedSequenceParams||(C==null?void 0:C.cachedSequenceParams);var N,b;H.cachedSequenceProvider=((N=H.endpoint)==null?void 0:(b=N.reelWatchEndpoint)==null?void 0:b.sequenceProvider)||H.cachedSequenceProvider||(C==null?void 0:C.cachedSequenceProvider);A.cachedSequenceParams=H.cachedSequenceParams;A.cachedSequenceProvider=H.cachedSequenceProvider}else if(_.E("web_enable_shorts_sequence_cache_fix")){H.reelWatchSequenceResponse&&
(H.reelWatchSequenceResponse.entries||H.reelWatchSequenceResponse.prevEntries)?A.reelWatchSequenceResponse=H.reelWatchSequenceResponse:A.cachedReelWatchSequenceResponse&&!A.reelWatchSequenceResponse&&(A.reelWatchSequenceResponse=A.cachedReelWatchSequenceResponse);H.reelWatchSequenceResponse&&(C==null?void 0:C.page)!=="shorts"&&(A.cachedReelWatchSequenceResponse=H.reelWatchSequenceResponse);A.currentEndpoint=H.endpoint;var u;A.isPreviousPageShorts=!!(C==null?0:(u=C.endpoint)==null?0:u.reelWatchEndpoint)}else{H.reelWatchSequenceResponse&&
(H.reelWatchSequenceResponse.entries||H.reelWatchSequenceResponse.prevEntries)?A.reelWatchSequenceResponse=H.reelWatchSequenceResponse:H.cachedReelWatchSequenceResponse?A.reelWatchSequenceResponse=H.cachedReelWatchSequenceResponse:_.E("web_enable_cached_reel_sequence_fix")&&A.cachedReelWatchSequenceResponse&&!A.reelWatchSequenceResponse&&(A.reelWatchSequenceResponse=A.cachedReelWatchSequenceResponse);A.currentEndpoint=H.endpoint;var O;A.isPreviousPageShorts=!!(C==null?0:(O=C.endpoint)==null?0:O.reelWatchEndpoint);
H.cachedReelWatchSequenceResponse=H.reelWatchSequenceResponse||H.cachedReelWatchSequenceResponse||(C==null?void 0:C.cachedReelWatchSequenceResponse);A.cachedReelWatchSequenceResponse=H.cachedReelWatchSequenceResponse}m=this.isDownloadsPage(H);W=this.isDownloadsPage(C);m&&!W?this.setPlayerSyncInterval(6E5):!m&&W&&this.setPlayerSyncInterval();_.E("block_all_player_prefetch_requests")||this.preparePrefetchRequest(H,A,S,c,Y,M);LUi(_.JA().resolve(_.Df),C,H);var d;(d=_.JA().resolve(_.AA(_.JT)))==null||
_.nDO(d,this.getPersistentPanelSurface(w));_.Qz(_.JA().resolve(_.Qi));_.E("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(A);S?(S=typeof A.loadPage,S==="function"?(A.pageContext=aki(this.contextSwitcher,A,A.data!==H.response),S=function(){A.loadPage(H.response)},this.shouldApplySlideTransition&&A.is==="ytd-browse"&&J&&(w==="learning"||this.isDifferentBrowseId(H==null?void 0:H.endpoint,C==null?void 0:C.endpoint))?BOi(this.viewTransitionManager,S):this.shouldRunWatchNextLoadedTransition(A,
J)?KUO(this.viewTransitionManager,S):S()):_.rv(new _.X0("b/38014653 ",[w,
A.is,A.nodeName,S,A.isAttached,C&&Ck(C),this.hostElement.children.length])),_.DR("pdl")):(A.hidden=!0,H.response.filler=!0,A.data=H.response,this.attachPage(A));_.M3(this.hostElement,"yt-page-data-updated",{pageType:w})}_.X2(_.rT,function(){_.E("logging_avoid_blocking_during_navigation")&&_.W_0().transition("none");var p=znr(),k=A;if(H){var R=GGp(H),L=flO(H),t;a:{if(H.playerResponse){var g=H.playerResponse,ii;if((t=g.auxiliaryUi)==null?0:(ii=t.messageRenderers)==null?0:ii.upsellDialogRenderer){t=
g.auxiliaryUi.messageRenderers.upsellDialogRenderer;break a}}else if(H.response&&(t=H.response,(g=t.overlay)==null?0:g.upsellDialogRenderer)){t=t.overlay.upsellDialogRenderer;break a}t=void 0}var FW;var cZ;ii=(FW=H.playerResponse)==null?void 0:(cZ=FW.auxiliaryUi)==null?void 0:cZ.messageRenderers;FW=(ii==null?void 0:ii.enforcementMessageViewModel)||(ii==null?void 0:ii.bkaEnforcementMessageViewModel);FW=(FW==null?void 0:FW.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?FW:void 0;
var eZ;a:{if(H.response&&(cZ=H.response,(eZ=cZ.overlay)==null?0:eZ.commandWrapperPromoRenderer)){eZ=cZ.overlay.commandWrapperPromoRenderer;break a}eZ=void 0}Yri(p,R,L,t,FW,eZ,k)}})};
_.F.preparePrefetchRequest=function(H,C,S,w,A,J){var c,Y,M,m,W,y,N,b,u,O,d,p,k,R,L;return _.z(function(t){if(t.nextAddress==1)return!S||!(w||A||J)||_.E("kevlar_disable_background_prefetch")&&_.Lp(_.blZ)()===0?t.return():(c=_.F1(C))?t.yield(c.getPlayerPromise(),2):t.return();Y=t.yieldResult;M=_.JA().resolve(_.AA(_.tG));if(!M)return t.return();if(A)return m=_.j9(_.xe),FUO(m,(W=H.endpoint)==null?void 0:W.reelWatchEndpoint,C.reelWatchSequenceResponse,Y,M),t.return();b=(y=H.response)==null?void 0:(N=y.responseContext)==
null?void 0:N.webResponseContextExtensionData;if(!b)return t.return();k=(u=H.response)==null?void 0:(O=u.contents)==null?void 0:(d=O.twoColumnWatchNextResults)==null?void 0:(p=d.autoplay)==null?void 0:p.autoplay;R=_.JA().resolve(_.qb);L=_.j9(_.xe);Z5O(L,b,Y,M,R,k);_.oT(t)})};
_.F.movePlayerToWatch=function(H){var C=this,S,w;return _.z(function(A){S=vz(C.pagePool,"watch");w=S.getPlayerContainer();H.appendTo(w);_.oT(A)})};
_.F.movePlayerToShorts=function(H){var C=this,S,w,A;return _.z(function(J){S=vz(C.pagePool,"shorts");w=S.getPlayerContainer();(A=H)==null||A.appendTo(w,void 0,!0);_.oT(J)})};
_.F.getPlayerFromWatch=function(){var H=vz(this.pagePool,"watch");return _.F1(H)};
_.F.getPlayerFromShorts=function(){var H=vz(this.pagePool,"shorts");return _.F1(H)};
_.F.startLoadingWatch=function(){var H=this,C=vz(this.pagePool,"watch");this.renderLoadingStateJobId?(_.rT.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.E("web_watch_transition_enable_start_loading_watch_callsite")?Dy9(this.viewTransitionManager,function(){H.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(C,"watch")};
_.F.startLoadingShorts=function(){var H=vz(this.pagePool,"shorts");this.setActivePage(H,"shorts")};
_.F.startLoadingLearningJourney=function(){var H=vz(this.pagePool,"learning_journey_watch");this.setActivePage(H,"learning_journey_watch")};
_.F.getCurrentPage=function(){return this.currentPage};
_.F.getDestinationPageType=function(){return this.destinationPageType};
_.F.getCurrentData=function(){return this.data};
_.F.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.F.isOnShorts=function(){var H;return((H=this.currentPage)==null?void 0:H.is)==="ytd-shorts"};
_.F.isWatchPage=function(H){return!!H&&(H.is==="ytd-watch-flexy"||H.is==="ytd-watch-fixie"||H.is==="ytd-watch-grid")};
_.F.preparePage=function(H,C){var S=this,w=function(){var c=S.pagePool.preparePage(H,S.currentPage,C);c&&S.attachPage(c)},A=function(c){_.DZ(c,C);
_.Bn(c)};
if(_.E("kevlar_enable_mss_page_modules_client")){var J=this.getModuleNameForType(H);if(J=nvt(_.JA().resolve(_.tN),[J])){J.then(w.bind(this)).catch(A.bind(this));return}}try{w()}catch(c){A(c)}};
_.F.lazyPrepareCriticalPages=function(H,C){H=_.G5(C)||H;_.E("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(H).then(this.maybePrepareWatchPage.bind(this,H)):this.maybePrepareWatchPage(H)};
_.F.maybePrepareWatchPage=function(H){H==="watch"||H==="learning_journey_watch"&&_.E("web_watch_learning_journey_disable_lazy_pages")||_.X2(_.rT,this.preparePage.bind(this,"watch"))};
_.F.downloadPageModules=function(H){H=this.getModuleNameForType(H);var C=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);C.delete(H);var S=_.JA().resolve(_.tN);S.JSC$18589_loadModules(H);return S.JSC$18589_loadModules.apply(S,_.k$(C))};
_.F.renderPageLoadingState=function(H,C){this.preparePage(H,C);var S=vz(this.pagePool,H);S.loadingData&&(S.loadingData.endpoint=C);S.loading=!0;this.setActivePage(S,H);H!=="watch"&&H!=="learning_journey_watch"||_.M3(this.hostElement,"yt-guide-close")};
_.F.prepareForNavigation=function(H,C){var S=this;if(this.currentPage&&this.data){var w=_.G5(C)||H;this.destinationPageType=w;Ck(this.data)==w&&_.M3(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((H==="watch"||H==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.rT.cancelJob(this.renderLoadingStateJobId);_.JA().resolve(_.Df).deactivate(C);_.mx(_.rT,function(){var J=S.viewTransitionManager,c=S.currentPage;
if(J.isLockupToWatchTransitionEnabled&&J.isLockupThumbnailRegistrationEnabled&&c)if(J.registeredLockupThumbnail)J.lockupThumbnailRegisteredFromWatchEndpoint&&_.Bn(new _.X0("Lockup thumbnail already registered from watch endpoint."));else{a:{var Y=_.e(C,_.sX);if(Y==null?0:Y.videoId){var M="yt-lockup-view-model ."+_.OQ0(Y.videoId)+" yt-thumbnail-view-model";c=c.querySelectorAll(M);if(c.length===1){Y=c[0];break a}c.length>1?_.Bn(new _.X0("Multiple LockupViewModel thumbnails found for videoId: "+Y.videoId+
". Selector: "+M)):_.E("web_thumbnail_to_watch_transition_debug")&&_.Bn(new _.X0("No LockupViewModel thumbnail found for videoId: "+Y.videoId+". Selector: "+M))}Y=void 0}Y&&(J.registeredLockupThumbnail=Y,J.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.NSi(J,Y))}});
var A=this.data;this.renderLoadingStateJobId=_.mx(_.rT,function(){Dy9(S.viewTransitionManager,function(){if(S.data!=A){var J=vz(S.pagePool,H);S.setActivePage(J)}else S.renderPageLoadingState(H,C);S.renderLoadingStateJobId=0})},150)}};
_.F.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var H=new _.XP(1);this.currentPage.pageDisposeJobs.forEach(function(C){_.Ql(H,C)});
this.pageDisposeJobsets.set(this.currentPage,H)}};
_.F.flushPageDisposeJobset=function(H){var C=this.pageDisposeJobsets.get(H);C&&(C.flushJobs(),this.pageDisposeJobsets.delete(H))};
_.F.onYtStopOldPlayer=function(H,C){C=C===void 0?!1:C;var S,w=_.mC("kevlar_new_stop_old_player_logic_pages");if(_.E("kevlar_check_current_page_on_stop_old_player")&&(w.length===0||this.currentPage&&w.includes(this.currentPage.is)))if(this.data&&(S=Ck(this.data)),Ck(H)===S&&this.currentPage&&Ck(this.currentPage.data)!==S)var A=_.F1(this.currentPage);else S=Ck(this.data),A=vz(this.pagePool,S),A=_.F1(A);else this.data&&(S=Ck(this.data),A=vz(this.pagePool,S),A=_.F1(A));if(A)if(H=Ck(H),w=vz(this.pagePool,
H),w=_.F1(w),A==w)C&&!_.E("kevlar_disable_preemptive_player_reset")&&A.resetForNewPlayback();else if(C=S==="watch"&&H!=="watch",!C||H==="shorts"||_.PeW()&&!OLr(this.data)&&H!=="yts-products"&&H!="mini_app"&&H!="playables")S=_.JA().resolve(_.Df),C&&S.isMiniplayerActive()&&S.pipController.getWindow()||A.stop()};
_.F.isDifferentBrowseId=function(H,C){H=_.e(H,_.vU);C=_.e(C,_.vU);return(H==null?void 0:H.browseId)!==(C==null?void 0:C.browseId)};
_.F.getPersistentPanelSurface=function(H){switch(H){case "watch":return"WATCH";default:return"APP"}};
_.JJ.Object.defineProperties(k3,{template:{configurable:!0,enumerable:!0,get:function(){return YH9()}}});
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],k3.prototype,"ytActionHandlerBehavior",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-page-manager"})],k3);_.B(k3,"ytd-page-manager",function(){return YH9()},{mode:_.mn("kevlar_poly_si_batch_j081")?1:2});var zRt;var he=function(){var H=_.X.apply(this,arguments)||this;H.useListItemStyles=_.E("web_list_item_style_for_menu_items");H.systemIcons=_.E("kevlar_system_icons");return H};
_.G(he,_.X);_.F=he.prototype;_.F.ready=function(){this.hostElement.addEventListener("tap",_.uA(this,this.onEndpointTapExtra))};
_.F.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.F.onFocus=function(){var H;(H=_.mY(this.hostElement).querySelector("tp-yt-paper-item"))==null||H.focus()};
_.F.onEndpointTapExtra=function(H){_.M3(this.hostElement,"iron-activate");var C=this.data.navigationEndpoint;C&&_.e(C,_.wsV)&&(H.stopPropagation(),_.yN(this.hostElement,[C],this.hostElement))};
_.F.computeIcon=function(H){return H&&H.iconType?_.bJ(H.iconType):""};
_.F.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.F.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.F.forceUpdateStylesOnLegacyBrowsers=function(){_.E("kevlar_legacy_browsers")&&_.Ed(this.hostElement)};
he.prototype.forceUpdateStylesOnLegacyBrowsers=he.prototype.forceUpdateStylesOnLegacyBrowsers;he.prototype.onFocus=he.prototype.onFocus;_.D([_.v(_.OY),_.K("design:type",Object)],he.prototype,"ytdOpenPopupBehavior",void 0);_.D([_.v(_.mDR.YtConditionalRendererBehavior),_.K("design:type",Object)],he.prototype,"ytConditionalRendererBehavior",void 0);_.D([_.v(_.tZ.YtEndpointBehavior),_.K("design:type",Object)],he.prototype,"ytEndpointBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],he.prototype,"data",void 0);_.D([_.V({computed:"computeIcon(data.icon)",value:""}),_.K("design:type",String)],he.prototype,"icon",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],he.prototype,"useIcons",void 0);_.D([_.V({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.K("design:type",Boolean)],he.prototype,"hasSeparator",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],he.prototype,"useListItemStyles",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],he.prototype,"systemIcons",void 0);_.D([_.Gz("focus"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],he.prototype,"onFocus",null);_.D([_.fx("useIcons","hasSeparator"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],he.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.B(he,"ytd-menu-navigation-item-renderer",function(){if(zRt===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);zRt=H}H=zRt;return H},{mode:1});var MuO;var qHq=_.sx(_.fL("DOWNLOAD",{},"Download")),To9=_.sx(_.fL("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),ml9=_.sx(_.fL("RETRY",{},"Retry")),Wbi=_.sx(_.fL("PAUSE_DOWNLOADING",{},"Pause downloading")),yUK=_.sx(_.fL("RESUME_DOWNLOAD",{},"Resume download")),nF=function(){var H=_.X.apply(this,arguments)||this;H.primaryText=qHq;H.primaryIconType="OFFLINE_DOWNLOAD";H.hasSecondaryContent=!1;H.hasSeparator=!1;H.transferState="TRANSFER_STATE_UNKNOWN";H.isVideoDeletedByUser=!1;H.isHidden=!1;H.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return H};
_.G(nF,_.X);_.F=nF.prototype;_.F.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.F.onFocus=function(){this.primaryEntry.focus()};
_.F.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.F.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.F.getRemoveAction=function(){return"ACTION_REMOVE"};
_.F.sendOfflineAction=function(H){var C=this.data.serviceEndpoint;if(C){var S=_.e(C,_.ur);S&&H&&(S.action=H);this.ytComponentBehavior.resolveCommand(C)}};
_.F.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=qHq,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=qHq;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=ml9;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=To9;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=yUK;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=To9;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
Wbi;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=To9;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=To9;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=qHq,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.F.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.F.isSecondaryEntryHidden=function(H,C){return H?!0:!C};
_.F.computeHasSeparator=function(){var H;return!((H=this.data)==null||!H.hasSeparator)};
nF.prototype.showHideButton=nF.prototype.showHideButton;nF.prototype.onTransferStateChange=nF.prototype.onTransferStateChange;nF.prototype.onFocus=nF.prototype.onFocus;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],nF.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],nF.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],nF.prototype,"ytComponentBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],nF.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],nF.prototype,"primaryText",void 0);_.D([_.V(),_.K("design:type",String)],nF.prototype,"primaryIconType",void 0);_.D([_.V(),_.K("design:type",String)],nF.prototype,"primaryAction",void 0);_.D([_.V(),_.K("design:type",Object)],nF.prototype,"secondaryText",void 0);_.D([_.V(),_.K("design:type",String)],nF.prototype,"secondaryIconType",void 0);
_.D([_.V(),_.K("design:type",String)],nF.prototype,"secondaryAction",void 0);_.D([_.V(),_.K("design:type",Object)],nF.prototype,"hasSecondaryContent",void 0);_.D([_.V({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.K("design:type",Object)],nF.prototype,"hasSeparator",void 0);_.D([_.V({selector:_.L8,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.K("design:type",String)],nF.prototype,"transferState",void 0);
_.D([_.V({selector:_.dbE,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.K("design:type",Object)],nF.prototype,"isVideoDeletedByUser",void 0);_.D([_.V(),_.K("design:type",Object)],nF.prototype,"isHidden",void 0);_.D([_.V({selector:_.veD,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.K("design:type",Object)],nF.prototype,"offlineabilityState",void 0);_.D([_.lA("#primary-entry"),_.K("design:type",Object)],nF.prototype,"primaryEntry",void 0);
_.D([_.Gz("focus"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],nF.prototype,"onFocus",null);_.D([_.XJ("transferState","isVideoDeletedByUser"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],nF.prototype,"onTransferStateChange",null);_.D([_.XJ("offlineabilityState"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],nF.prototype,"showHideButton",null);
_.B(nF,"ytd-menu-service-item-download-renderer",function(){if(MuO===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);MuO=H}H=MuO;return H},{mode:1});var NoO;var rr=function(){var H=_.X.apply(this,arguments)||this;H.useIcons=!1;H.systemIcons=_.E("kevlar_system_icons");H.useListItemStyles=_.E("web_list_item_style_for_menu_items");return H};
_.G(rr,_.X);_.F=rr.prototype;_.F.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.F.onFocus=function(){var H;(H=_.mY(this.hostElement).querySelector("tp-yt-paper-item"))==null||H.focus()};
_.F.onTap=function(){_.m7(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var H=this.data.serviceEndpoint,C=this.data.command;if(H){var S,w=(S=this.data)==null?void 0:S.trackingParams;S=!!_.e(H,_.KyU);w&&S&&_.AG().dispatch(_.Md({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:w}}));this.ytComponentBehavior.resolveCommand(H)||_.JA().resolve(_.ZQ).resolveCommand(H,{form:{element:this.hostElement}})}C&&(this.ytComponentBehavior.resolveCommand(C)||_.yN(this.hostElement,
[C],this.hostElement))};
_.F.computeIcon=function(H){return H&&H.iconType?_.bJ(H.iconType):""};
_.F.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.F.computeHasSeparator=function(){var H;return!((H=this.data)==null||!H.hasSeparator)};
_.F.forceUpdateStylesOnLegacyBrowsers=function(){_.E("kevlar_legacy_browsers")&&_.Ed(this.hostElement)};
_.F.computeIsSelected=function(){var H;return!((H=this.data)==null||!H.isSelected)};
rr.prototype.forceUpdateStylesOnLegacyBrowsers=rr.prototype.forceUpdateStylesOnLegacyBrowsers;rr.prototype.onTap=rr.prototype.onTap;rr.prototype.onFocus=rr.prototype.onFocus;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],rr.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.OY),_.K("design:type",Object)],rr.prototype,"ytdOpenPopupBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],rr.prototype,"ytComponentBehavior",void 0);
_.D([_.v(_.mDR.YtConditionalRendererBehavior),_.K("design:type",Object)],rr.prototype,"ytConditionalRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],rr.prototype,"data",void 0);_.D([_.V({computed:"computeIcon(data.icon)",value:""}),_.K("design:type",String)],rr.prototype,"icon",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],rr.prototype,"useIcons",void 0);
_.D([_.V({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.K("design:type",Boolean)],rr.prototype,"hasSeparator",void 0);_.D([_.V({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.K("design:type",Boolean)],rr.prototype,"isSelected",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],rr.prototype,"systemIcons",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],rr.prototype,"useListItemStyles",void 0);
_.D([_.Gz("focus"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rr.prototype,"onFocus",null);_.D([_.Gz("tap"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],rr.prototype,"onTap",null);_.D([_.fx("useIcons","hasSeparator"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rr.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.B(rr,"ytd-menu-service-item-renderer",function(){if(NoO===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);NoO=H}H=NoO;return H},{mode:2});var bg9;var Bz=function(){return _.X.apply(this,arguments)||this};
_.G(Bz,_.X);_.F=Bz.prototype;_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.onDataChanged=function(){var H=this;_.wM(this,function(){H.postbox.openDialog();H.focus();_.M3(H.hostElement,"yt-refit")})};
_.F.focus=function(){this.postbox.focus()};
_.F.closePopup=function(){_.q3(this.hostElement,"yt-close-popup-action")};
_.F.onYtCommentboxDismiss=function(){this.closePopup()};
Bz.prototype.onYtCommentboxDismiss=Bz.prototype.onYtCommentboxDismiss;Bz.prototype.onDataChanged=Bz.prototype.onDataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Bz.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Bz.prototype,"data",void 0);_.D([_.V({value:function(){return _.fL("SBOX_INAPPROPRIATE_CANCEL")}}),
_.K("design:type",String)],Bz.prototype,"closeButtonAriaLabel",void 0);_.D([_.lA("#postbox"),_.K("design:type",Object)],Bz.prototype,"postbox",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Bz.prototype,"onDataChanged",null);_.D([_.Gz("yt-commentbox-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Bz.prototype,"onYtCommentboxDismiss",null);
_.D([_.h({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],Bz);
_.B(Bz,"ytd-backstage-post-dialog-popup-renderer",function(){if(bg9!==void 0)return bg9;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return bg9=H},{mode:1});var Ed9;var DO=function(){return _.X.apply(this,arguments)||this};
_.G(DO,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],DO.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],DO.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],DO);
_.B(DO,"ytd-sender-id-section-renderer",function(){if(Ed9!==void 0)return Ed9;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);
return Ed9=H},{mode:1});var eR3;var uXK;var GJ9;var KF=function(){return _.X.apply(this,arguments)||this};
_.G(KF,_.X);KF.prototype.closePopup=function(){_.q3(this.hostElement,"yt-close-popup-action")};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],KF.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],KF.prototype,"data",void 0);_.D([_.Lx({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],KF);
_.B(KF,"yt-community-post-section-renderer",function(){if(GJ9===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;uXK===void 0&&(uXK=document.createElement("template"));var w=uXK;S.call(C,w.content.cloneNode(!0),H.content.firstChild);GJ9=H}H=GJ9;return H},{mode:2});var f0i;var vdK;var l0R;var VuK;var od3;var Ogt;var te=function(){return _.X.apply(this,arguments)||this};
_.G(te,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],te.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],te.prototype,"data",void 0);_.D([_.Lx({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],te);
_.B(te,"yt-share-start-time-with-context-renderer",function(){if(Ogt===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;od3===void 0&&(od3=document.createElement("template"));var w=od3;S.call(C,w.content.cloneNode(!0),H.content.firstChild);Ogt=H}H=Ogt;return H},{mode:2});var LF=function(){return _.X.apply(this,arguments)||this};
_.G(LF,_.X);LF.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],LF.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],LF.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],LF.prototype,"data",void 0);_.D([_.Lx({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],LF);
_.B(LF,"yt-share-panel-title-v15-renderer",function(){if(VuK===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;l0R===void 0&&(l0R=document.createElement("template"));var w=l0R;S.call(C,w.content.cloneNode(!0),H.content.firstChild);VuK=H}H=VuK;return H},{mode:2});var gr=function(){return _.X.apply(this,arguments)||this};
_.G(gr,_.X);gr.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"}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],gr.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],gr.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],gr.prototype,"data",void 0);_.D([_.Lx({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],gr);
_.B(gr,"yt-share-panel-header-renderer",function(){if(vdK===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;f0i===void 0&&(f0i=document.createElement("template"));var w=f0i;S.call(C,w.content.cloneNode(!0),H.content.firstChild);vdK=H}H=vdK;return H},{mode:2});var XB_;var Qv9;var UO=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-open-popup-action":"onOpen"};return H};
_.G(UO,_.X);_.F=UO.prototype;_.F.attached=function(){this.onOpen()};
_.F.updateTimeSecs=function(H){this.currentTimeSecs=H};
_.F.computeTimeString=function(H){H=H.toString();var C=Math.floor(Number(H)/3600),S=Math.floor(Number(H)%3600%60);return(C>0?C+":":"")+_.Tl(Math.floor(Number(H)%3600/60),C>0?2:1)+":"+_.Tl(S,2)};
_.F.computeTimeStringA11y=function(H){return _.r$i({seconds:H})};
_.F.getTimeParam=function(){return tJj(this.timeString)};
_.F.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var H={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},C;_.Bg(_.lJ(),(C=this.data)==null?void 0:C.trackingParams,H,7)};
_.F.onChangeStartAtTimestamp=function(){for(var H=this.startAtTimestamp.value.split(":"),C=0,S=1,w=H.length-1;w>=0;w--)C+=Number(H[w])*S,S*=60;this.updateTimeSecs(C);this.setTimestamp()};
_.F.onOpen=function(){var H=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var C=_.Zz();C?C.getPlayerPromise().then(function(S){S=S.getCurrentTime();H.updateTimeSecs(S)}):qxR()&&this.updateTimeSecs(qxR())};
_.F.setTimestamp=function(){var H=Math.floor(this.currentTimeSecs);_.q3(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!H,timestamp:H||""}])};
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],UO.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],UO.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],UO.prototype,"data",void 0);_.D([_.V({value:!1,notify:!0}),_.K("design:type",Boolean)],UO.prototype,"isStartAtChecked",void 0);_.D([_.V(),_.K("design:type",Number)],UO.prototype,"currentTimeSecs",void 0);
_.D([_.V({computed:"computeTimeString(currentTimeSecs)"}),_.K("design:type",String)],UO.prototype,"timeString",void 0);_.D([_.V({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.K("design:type",String)],UO.prototype,"timeStringA11y",void 0);_.D([_.lA("#start-at-timestamp"),_.K("design:type",Object)],UO.prototype,"startAtTimestamp",void 0);_.D([_.Lx({is:"yt-start-at-renderer",disableElementRegistration:!0})],UO);
_.B(UO,"yt-start-at-renderer",function(){if(Qv9===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;XB_===void 0&&(XB_=document.createElement("template"));var w=XB_;S.call(C,w.content.cloneNode(!0),H.content.firstChild);Qv9=H}H=Qv9;return H},{mode:2});var dl3;var PIO;var $lO=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"]]),pBp=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"]]),kJ9=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var hRO={};hRO.YtBindingExpressionsBehavior={identity:_.$E,msg:function(H,C){C=C===void 0?{}:C;return _.fL(H,C,H)},
msgPlural:function(H,C){return _.vH(H,C)},
getMusicIconFromType:function(H){if(_.E("music_web_enable_icon_wil"))H=_.bJ(H);else if(pBp.has(H))H="yt-sys-icons:"+pBp.get(H);else{var C=$lO.get(H)||_.bJ(H).split(":")[1];C=_.TgV(C);var S;H=((S=kJ9.get(H))!=null?S:"yt-sys-icons:")+C}return H}};var ndi;var rUp;var Bor;var Dlo=document.head,Kb_=Dlo.appendChild,tuq;if(Bor===void 0){var Lb_=document.createElement("template");_.f(Lb_,'\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>');Bor=Lb_}tuq=Bor;Kb_.call(Dlo,tuq.content);var RK=function(){var H=_.X.apply(this,arguments)||this;H.screenLayer=7;return H};
_.G(RK,_.X);RK.prototype.getScreenLayer=function(){return this.screenLayer};
RK.prototype.onTap=function(H){H&&H.detail&&(H.detail.x||H.detail.y)&&_.mY(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.WH(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(H=this.getScreenLayer(),_.M3(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:H}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.JJ.Object.defineProperties(RK.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()}}});
RK.prototype.onTap=RK.prototype.onTap;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],RK.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],RK.prototype,"ytComponentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],RK.prototype,"data",void 0);_.D([_.l("data.title"),_.K("design:type",Object),_.K("design:paramtypes",[])],RK.prototype,"title",null);
_.D([_.l("data.serviceName"),_.K("design:type",String),_.K("design:paramtypes",[])],RK.prototype,"icon",null);_.D([_.Gz("tap"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],RK.prototype,"onTap",null);_.D([_.Lx({is:"yt-share-target-renderer",disableElementRegistration:!0})],RK);
_.B(RK,"yt-share-target-renderer",function(){if(rUp===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;ndi===void 0&&(ndi=document.createElement("template"));var w=ndi;S.call(C,w.content.cloneNode(!0),H.content.firstChild);rUp=H}H=rUp;return H},{mode:2});var gdr;var UlO;var IK=function(){var H=_.X.apply(this,arguments)||this;H.SHARE_TARGET_WIDTH=70;H.SHARE_TARGET_MARGIN_RIGHT=8;H.PAGE_SCROLL_SPEED=9;H.actionMap={"yt-share-panel-reset-action":"onReset_"};return H};
_.G(IK,_.X);_.F=IK.prototype;_.F.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.F.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.mY(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.mY(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.F.onReset_=function(){if(_.mY(this.hostElement).querySelector("#list")){var H=_.mY(this.hostElement).querySelector("#list");var C=_.mY(this.hostElement).querySelector("#list");var S=C.offsetLeft,w=C.offsetParent;w||_.Lj7(C)!="fixed"||(w=_.D9(C).documentElement);if(w){if(_.qy&&!_.mU(58)){var A=_.i9Y(w);S+=A.left}else Number(_.Y8E)>=8&&!(Number(_.Y8E)>=9)&&(A=_.i9Y(w),S-=A.left);C=_.x9b(w)?w.clientWidth-(S+C.offsetWidth):S}else C=S;Yvr(H,C);this.updateScrollButtons_()}};
_.F.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.F.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.F.onScrollWheel_=function(H){H.stopPropagation();H.preventDefault();var C=clO(_.mY(this.hostElement).querySelector("#list"));H=Math.abs(H.deltaX)>Math.abs(H.deltaY)?H.deltaX:H.deltaY;Yvr(_.mY(this.hostElement).querySelector("#list"),C+H);this.updateScrollButtons_()};
_.F.smoothScrollByOnePage_=function(H){var C=_.mY(this.hostElement).querySelector("#list"),S=(Math.floor(C.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,w=clO(C),A=S*(H?1:-1),J=this.PAGE_SCROLL_SPEED,c=this.updateScrollButtons_.bind(this),Y=0,M;(function W(){Y+=J;M=Y/S*2;Yvr(C,w+A*(M<1?M*M:-M*M+4*M-2));Y<S?window.requestAnimationFrame(W):c()})()};
_.F.updateScrollButtons_=function(){var H=clO(_.mY(this.hostElement).querySelector("#list")),C=_.mY(this.hostElement).querySelector("#list").scrollWidth-_.mY(this.hostElement).querySelector("#list").clientWidth;_.mY(this.hostElement).querySelector("#scroll-button-back").hidden=H<=0;_.mY(this.hostElement).querySelector("#scroll-button-forward").hidden=H>=C};
IK.prototype.onScrollWheel_=IK.prototype.onScrollWheel_;IK.prototype.onDataChanged_=IK.prototype.onDataChanged_;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],IK.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],IK.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(hRO.YtBindingExpressionsBehavior),_.K("design:type",Object)],IK.prototype,"ytBindingExpressionsBehavior",void 0);
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],IK.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],IK.prototype,"data",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],IK.prototype,"onDataChanged_",null);_.D([_.Gz("wheel"),_.K("design:type",Function),_.K("design:paramtypes",[WheelEvent]),_.K("design:returntype")],IK.prototype,"onScrollWheel_",null);
_.D([_.Lx({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],IK);
_.B(IK,"yt-third-party-share-target-section-renderer",function(){if(UlO===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;gdr===void 0&&(gdr=document.createElement("template"));var w=gdr;S.call(C,w.content.cloneNode(!0),H.content.firstChild);UlO=H}H=UlO;return H},{mode:2});var aK=function(){return _.X.apply(this,arguments)||this};
_.G(aK,_.X);aK.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"}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],aK.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],aK.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],aK.prototype,"data",void 0);_.D([_.Lx({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],aK);
_.B(aK,"yt-third-party-network-section-renderer",function(){if(PIO===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;dl3===void 0&&(dl3=document.createElement("template"));var w=dl3;S.call(C,w.content.cloneNode(!0),H.content.firstChild);PIO=H}H=PIO;return H},{mode:2});_.qs(_.n(function(H){return _.q("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.q("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.q(_.V4,{data:function(){return H.data().firstPartyItems}},{listItemViewModel:_.MA})))},"rh"),"first-party-network-section-view-model",{props:{data:_.GH}});var RRi=(0,_.Q8p)(_.sK.share,{parentClickTrackingParamsSelector:function(H){return H.parentClickTrackingParams}});var I0o=_.xC(["data:image/svg+xml;charset=UTF-8;base64,",""]),x3=function(){var H=_.X.apply(this,arguments)||this;H.screenLayer=7;H.qrCodeEnabled=_.E("web_enable_sharing_qr_code");H.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return H};
_.G(x3,_.X);_.F=x3.prototype;_.F.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"}}}};
_.F.attached=function(){this.JSC$20111_scroller&&(this.JSC$20111_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20111_scroller.attached&&typeof this.JSC$20111_scroller.attached==="function"&&this.JSC$20111_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.F.onDataChanged=function(){var H=this,C;(C=this.data)!=null&&C.contents&&(this.hostElement.setAttribute("links-only","true"),_.NT(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.wM(this,function(){_.M3(H.hostElement,"yt-refit");H.focusSharePanelHeader()}))};
_.F.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.F.handleSetTimestamp=function(H){var C=this.shortUrl();H.isSet&&(C=_.SQ(C,"t",H.timestamp));this.maybeRenderQrCode(C)};
_.F.shortUrl=function(){var H,C=(H=this.data)==null?void 0:H.contents;if(C)for(H=0;H<C.length;H++){var S=void 0,w=void 0;if((S=C[H])==null?0:(w=S.thirdPartyNetworkSection)==null?0:w.copyLinkContainer){var A=w=S=void 0;return(A=_.e((S=C[H])==null?void 0:(w=S.thirdPartyNetworkSection)==null?void 0:w.copyLinkContainer,Jv3))==null?void 0:A.shortUrl}}};
_.F.maybeRenderQrCode=function(H){var C=this,S,w,A,J,c,Y,M,m,W;return _.z(function(y){if(y.nextAddress==1){S=_.mY(C.hostElement).querySelector("#qr-code");if(!C.qrCodeEnabled||!H)return S&&(S.style.display="none"),y.return();w=_.lF7(_.JA().resolve(_.E4),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});A=document.createElement("div");return typeof w==="function"?(w(A),y.jumpTo(2)):y.yield(w,3)}y.nextAddress!=2&&(J=y.yieldResult,J(A));M=(c=A)==null?void 0:(Y=c.firstChild)==null?void 0:Y.firstChild;
m=document.createElement("img");W=_.weZ(I0o,btoa(M.outerHTML));m.onload=function(){var N={canvas:S,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:m},b=new OxK;pY3(b,H);kz9(b,!1,hKi(b));var u=b.modules,O=Object.assign({},xZO,N);u=structuredClone(u);N=u.length;var d,p=(d=O.canvas)!=null?d:document.createElement("canvas");d=O.cellSize;b=O.logo;var k,R=(k=O.logoSize)!=null?k:Math.floor(N/4);N%2!==R%2&&R++;var L=O.logoPadding,t=O.backgroundColor;k=N*d;var g=
O.width,ii=0;g&&(ii=O.padding,ii=Math.ceil(ii*k/(g-ii*2)),p.style.width=g+"px",p.style.height=g+"px");p.width!==k+ii*2&&(p.width=k+ii*2);p.height!==k+ii*2&&(p.height=k+ii*2);k=p.getContext("2d");O.autoClear&&k.clearRect(0,0,p.width,p.height);k.fillStyle=t;k.beginPath();k.roundRect(0,0,p.width,p.height,O.borderRadius);k.fill();k.save();k.translate(ii,ii);if(b)for(p=Math.floor(N-R)/2-L,L=Math.floor(N+R)/2+L,t=p;t<L;t++)for(g=p;g<L;g++)u[t][g]=!1;for(p=0;p<N;p++)for(L=0;L<N;L++)(p<7&&L<7||p<7&&L>=N-
7||p>=N-7&&L<7)&&(u[p][L]=!1);var FW;p=(FW=O.markerColor)!=null?FW:O.color;rr3(k,0,0,d,p);rr3(k,d*(N-7),0,d,p);rr3(k,0,d*(N-7),d,p);switch(O.cellStyle){case 0:FW=u;u=FW.length;p=O.cellSize;k.beginPath();for(L=0;L<u;L++)for(t=0;t<u;t++)FW[L][t]&&k.rect(L*p,t*p,p,p);k.fillStyle=O.color;k.fill();break;case 1:FW=u;u=FW.length;p=O.cellSize;L=p*O.relativeCircleSize;k.fillStyle=O.color;k.beginPath();for(O=0;O<u;O++)for(t=0;t<u;t++)FW[O][t]&&(k.beginPath(),k.ellipse((O+.5)*p,(t+.5)*p,L/2,L/2,0,0,2*Math.PI),
k.fill());k.fill();break;case 2:FW=u;u=FW.length;p=O.cellSize;k.fillStyle=O.color;O=[[1,1],[-1,1],[-1,-1],[1,-1]];k.beginPath();for(L=0;L<u;L++)for(t=0;t<u;t++)if(FW[L][t])k.roundRect(L*p,t*p,p,p,p/2),L+1<u&&FW[L+1][t]&&k.rect(L*p+p/2,t*p,p,p),t+1<u&&FW[L][t+1]&&k.rect(L*p,t*p+p/2,p,p);else{g=L*p+p/2;ii=t*p+p/2;for(var cZ=0;cZ<4;cZ++){var eZ=_.Z(O[cZ]),ND=eZ.next().value;eZ=eZ.next().value;L+ND>=0&&L+ND<u&&t+eZ>=0&&t+eZ<u&&FW[L+ND][t]&&FW[L][t+eZ]&&FW[L+ND][t+eZ]&&(ND=cZ*Math.PI/2,eZ=p/2,k.moveTo(g+
eZ*Math.cos(ND),ii+eZ*Math.sin(ND)),k.arc(g,ii,p/2,ND,ND+Math.PI/2,!1),k.lineTo(g+eZ*(Math.cos(ND)-Math.sin(ND)),ii+eZ*(Math.cos(ND)+Math.sin(ND))),k.lineTo(g+eZ*Math.cos(ND),ii+eZ*Math.sin(ND)))}}k.fill()}b&&k.drawImage(b,(N-R)*d/2,(N-R)*d/2,R*d,R*d);k.restore();S.style.removeProperty("display")};
m.src=_.kD(W);_.oT(y)})};
_.F.hasCommunityPostRenderer=function(){var H,C,S,w;return!!((H=this.data)==null?0:(C=H.header)==null?0:(S=C.sharePanelHeaderRenderer)==null?0:(w=S.communityPost)==null?0:w.communityPostSectionRenderer)};
_.F.onTapClose=function(){_.q3(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.F.getScreenLayer=function(){return this.screenLayer};
_.F.logSharePanelPage=function(){if(!_.E("enable_share_panel_navigation_logging_fix_on_web")){var H;if((H=this.data)!=null&&H.trackingParams){H=this.data.trackingParams;var C=this.parentClickTrackingParams;C=C?_.Qh(C):void 0;var S=_.lJ();_.kP(S,21760,C,{layer:7,parentLayer:0});S.graftServerVe(H,void 0,7);_.AG().dispatch(_.Md({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
x3.prototype.onDataChanged=x3.prototype.onDataChanged;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],x3.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],x3.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],x3.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],x3.prototype,"ytActionHandlerBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],x3.prototype,"data",void 0);_.D([_.V({value:_.fL("SBOX_INAPPROPRIATE_CANCEL")}),_.K("design:type",String)],x3.prototype,"closeButtonAriaLabel",void 0);_.D([_.lA("yt-share-panel-header-renderer"),_.K("design:type",HTMLElement)],x3.prototype,"header",void 0);_.D([_.V({selector:RRi.parentClickTrackingParamsSelector}),_.K("design:type",String)],x3.prototype,"parentClickTrackingParams",void 0);_.D([_.V(),_.K("design:type",Object)],x3.prototype,"qrCodeEnabled",void 0);
_.D([_.lA("#scroller"),_.K("design:type",Object)],x3.prototype,"JSC$20111_scroller",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],x3.prototype,"onDataChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],x3);
_.B(x3,"ytd-unified-share-panel-renderer",function(){if(eR3!==void 0)return eR3;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return eR3=H},{mode:1});var a0_;var Hi=function(){var H=_.X.apply(this,arguments)||this;H.modernModal=!0;return H};
_.G(Hi,_.X);Hi.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
Hi.prototype.computeShouldHideOldButtons=function(){var H;return!((H=this.data)==null?0:H.button)};
_.JJ.Object.defineProperties(Hi.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var H,C;return(H=this.data)==null?void 0:(C=H.button)==null?void 0:C.buttonRenderer}}});
_.D([_.V(),_.K("design:type",Object)],Hi.prototype,"data",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Hi.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.ie.YtEventForwardingBehavior),_.K("design:type",Object)],Hi.prototype,"ytEventForwardingBehavior",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Hi.prototype,"modernModal",void 0);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Hi.prototype,"buttonRendererData",null);
_.D([_.h({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],Hi);
_.B(Hi,"ytd-modal-with-title-and-button-renderer",function(){if(a0_!==void 0)return a0_;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return a0_=H},{mode:1});var xli;var ih=function(){return _.X.apply(this,arguments)||this};
_.G(ih,_.X);ih.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uQ("page-changed",this.page))};
ih.prototype.pageChangedForBinding=ih.prototype.pageChangedForBinding;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],ih.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],ih.prototype,"data",void 0);_.D([_.V(),_.K("design:type",String)],ih.prototype,"page",void 0);_.D([_.fx("page"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ih.prototype,"pageChangedForBinding",null);
_.D([_.h({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],ih);
_.B(ih,"ytd-account-item-section-header-renderer",function(){if(xli!==void 0)return xli;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return xli=H},{mode:1});var HEO;var CK=function(){return _.X.apply(this,arguments)||this};
_.G(CK,_.X);CK.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"}}}};
CK.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],CK.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],CK.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.EH),_.K("design:type",Object)],CK.prototype,"ytContinuationHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],CK.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!1}),_.K("design:type",Function)],CK.prototype,"onAccountItemTap",void 0);
_.D([_.h({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],CK);
_.B(CK,"ytd-account-item-section-renderer",function(){if(HEO!==void 0)return HEO;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return HEO=H},{mode:1});var iEO;var Cjt;var SE=function(){return _.X.apply(this,arguments)||this};
_.G(SE,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],SE.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],SE.prototype,"data",void 0);_.D([_.h({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],SE);
_.B(SE,"ytd-accounts-dialog-header-renderer",function(){if(Cjt!==void 0)return Cjt;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Cjt=H},{mode:1});var SZ_;var sV=function(){return _.X.apply(this,arguments)||this};
_.G(sV,_.X);sV.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],sV.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],sV.prototype,"data",void 0);_.D([_.h({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],sV);
_.B(sV,"ytd-google-account-header-renderer",function(){if(SZ_!==void 0)return SZ_;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return SZ_=H},{mode:1});var jE=function(){return _.X.apply(this,arguments)||this};
_.G(jE,_.X);jE.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"}}}};
jE.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uQ("page-changed",this.page))};
jE.prototype.pageChangedForBinding=jE.prototype.pageChangedForBinding;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],jE.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],jE.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],jE.prototype,"data",void 0);_.D([_.V(),_.K("design:type",String)],jE.prototype,"page",void 0);
_.D([_.fx("page"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],jE.prototype,"pageChangedForBinding",null);_.D([_.h({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],jE);
_.Tp()(jE,"ytd-account-section-list-renderer",function(){if(iEO===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);iEO=H}H=iEO;return H},{allowedProps:["data"],
mode:1});var sjj;var wJ=function(){var H=_.X.apply(this,arguments)||this;H.enableHandlesAccountMenuSwitcher=_.E("enable_handles_account_menu_switcher");return H};
_.G(wJ,_.X);wJ.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
wJ.prototype.dataChanged=wJ.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],wJ.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],wJ.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],wJ.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.D([_.lA("#avatar"),_.K("design:type",Object)],wJ.prototype,"avatar",void 0);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wJ.prototype,"dataChanged",null);_.D([_.h({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],wJ);
_.Tp()(wJ,"ytd-active-account-header-renderer",function(){if(sjj===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);sjj=H}H=sjj;return H},{allowedProps:["data"],
mode:1});var jjp;var woi;var AQ=function(){return _.X.apply(this,arguments)||this};
_.G(AQ,_.X);AQ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
AQ.prototype.onBackTap=function(){_.M3(this.hostElement,"yt-menu-back-tapped")};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],AQ.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],AQ.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],AQ.prototype,"data",void 0);_.D([_.h({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],AQ);
_.Tp()(AQ,"ytd-simple-menu-header-renderer",function(){if(woi===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);woi=H}H=woi;return H},{allowedProps:["data"],
mode:2});var A0O;var JQ=function(){return _.X.apply(this,arguments)||this};
_.G(JQ,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],JQ.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],JQ.prototype,"data",void 0);_.D([_.h({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],JQ);
_.B(JQ,"ytd-comment-video-thumbnail-header-renderer",function(){if(A0O!==void 0)return A0O;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return A0O=H},{mode:1});var J0O;var FM=function(){return _.X.apply(this,arguments)||this};
_.G(FM,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],FM.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],FM.prototype,"data",void 0);_.D([_.h({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],FM);
_.B(FM,"ytd-abuse-type-selector-renderer",function(){if(J0O!==void 0)return J0O;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return J0O=H},{mode:1});var Fzi;var ZEq=(0,_.Q8p)(_.sK.reportChannelAbuse,{isVideoIdSelectedSelector:function(H,C){return C in H.selectedVideoIds},
additionalContextSelector:function(H){return H.additionalContext},
impersonatedChannelUrlSelector:function(H){return H.impersonatedChannelUrl},
reportChannelAbuseSelector:function(H){return H}});var Z7=function(){return _.X.apply(this,arguments)||this};
_.G(Z7,_.X);Z7.prototype.attached=function(){var H=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){H.additionalContextInput.focusTextInput()})};
Z7.prototype.handleAdditionalContextChanged=function(){var H=this;_.iJ(this,"ytd-report-channel-additional-context-update",function(){H.ytdReduxBehavior.dispatch(_.Md({type:"ADDITIONAL_CONTEXT_UPDATED",payload:H.additionalContext}))},300)};
Z7.prototype.updateAdditionalContextFromBinding=function(H){this.additionalContext=H.detail.value};
Z7.prototype.handleAdditionalContextChanged=Z7.prototype.handleAdditionalContextChanged;_.D([_.v(_.q$),_.K("design:type",Object)],Z7.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",String)],Z7.prototype,"additionalContext",void 0);_.D([_.V({selector:ZEq.additionalContextSelector}),_.K("design:type",String)],Z7.prototype,"additionalContextRedux",void 0);_.D([_.V(),_.K("design:type",Object)],Z7.prototype,"data",void 0);
_.D([_.lA("yt-text-input-form-field-renderer"),_.K("design:type",Object)],Z7.prototype,"additionalContextInput",void 0);_.D([_.fx("additionalContext"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Z7.prototype,"handleAdditionalContextChanged",null);_.D([_.h({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],Z7);
_.B(Z7,"ytd-report-channel-modal-additional-context-renderer",function(){if(Fzi!==void 0)return Fzi;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return Fzi=H},{mode:1});var c0K;var ci=function(){var H=_.X.apply(this,arguments)||this;H.nextButtonDisabled=null;H.submitEndpoint=null;H.navigationEndpoint=null;H.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return H};
_.G(ci,_.X);_.F=ci.prototype;_.F.computeNextButtonData=function(H,C,S){var w={};C&&(w.navigationEndpoint=C);S&&(w.serviceEndpoint=S);H&&H.buttonRenderer&&_.hb.extend(w,H.buttonRenderer);return w};
_.F.handleReportChannelModalDisableNextButtonAction=function(H){this.setNextButtonIsDisabled(H)};
_.F.handleReportFormEndpointUpdateAction=function(H){this.setNextButtonIsDisabled(!!H.disableSubmitButton);this.resetEndpointData();H.submitEndpoint?this.submitEndpoint=H.submitEndpoint:H.submitNavigationEndpoint&&(this.navigationEndpoint=H.submitNavigationEndpoint)};
_.F.handleSignalActionSubmitForm=function(){var H,C=Object.keys(((H=this.reportChannelAbuseForm)==null?void 0:H.selectedVideoIds)||{}),S;H=((S=this.reportChannelAbuseForm)==null?void 0:S.additionalContext)||"";var w;S=((w=this.reportChannelAbuseForm)==null?void 0:w.impersonatedChannelUrl)||"";var A;if((A=this.data)==null?0:A.submitEndpoint){C={impersonated_channel_url:S,text:H,video_ids:C};var J;_.JA().resolve(_.ZQ).resolveCommand((J=this.data)==null?void 0:J.submitEndpoint,{form:Object.assign({},
C,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.F.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.F.onYtServiceRequestError=function(H){this.setNextButtonIsDisabled(!1);_.HQ(this.hostElement,H.detail.error.message)};
_.F.setNextButtonIsDisabled=function(H){this.set("data.nextButton.buttonRenderer.isDisabled",H)};
_.F.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
ci.prototype.onYtServiceRequestError=ci.prototype.onYtServiceRequestError;ci.prototype.onYtServiceRequestCompleted=ci.prototype.onYtServiceRequestCompleted;_.D([_.V(),_.K("design:type",Object)],ci.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],ci.prototype,"nextButtonDisabled",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],ci.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],ci.prototype,"ytActionHandlerBehavior",void 0);
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],ci.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],ci.prototype,"submitEndpoint",void 0);_.D([_.V(),_.K("design:type",Object)],ci.prototype,"navigationEndpoint",void 0);_.D([_.V({selector:ZEq.reportChannelAbuseSelector}),_.K("design:type",Object)],ci.prototype,"reportChannelAbuseForm",void 0);
_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],ci.prototype,"onYtServiceRequestCompleted",null);_.D([_.Gz("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],ci.prototype,"onYtServiceRequestError",null);_.D([_.h({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],ci);
_.B(ci,"ytd-report-channel-modal-footer-renderer",function(){if(c0K!==void 0)return c0K;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return c0K=H},{mode:1});var YZq;var YY=function(){var H=_.X.apply(this,arguments)||this;H.boundOnTapDismissButton=function(){H.closePopup()};
return H};
_.G(YY,_.X);YY.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
YY.prototype.handleDataChanged=function(){_.Sr(this.hostElement)};
YY.prototype.closePopup=function(){_.q3(this.hostElement,"yt-close-popup-action")};
YY.prototype.handleDataChanged=YY.prototype.handleDataChanged;_.D([_.V(),_.K("design:type",Object)],YY.prototype,"boundOnTapDismissButton",void 0);_.D([_.V(),_.K("design:type",Object)],YY.prototype,"data",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],YY.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],YY.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],YY.prototype,"handleDataChanged",null);_.D([_.h({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],YY);
_.B(YY,"ytd-report-channel-modal-header-renderer",function(){if(YZq!==void 0)return YZq;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return YZq=H},{mode:1});var zH9;var zy=function(){var H=_.X.apply(this,arguments)||this;H.autoValidate=!1;H.invalid=!1;H.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return H};
_.G(zy,_.X);_.F=zy.prototype;_.F.attached=function(){var H=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){H.channelUrlInput.focusTextInput()})};
_.F.disableNextButton=function(H){_.q3(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[H])};
_.F.handleImpersonatedChannelUrlChanged=function(){var H=this;this.disableNextButton(!0);this.invalid=!1;_.iJ(this,"ytd-report-channel-impersonated-channel-update",function(){var C=H.impersonatedChannelUrl.trim();H.ytdReduxBehavior.dispatch(_.Md({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:C}));var S;((S=H.data)==null?0:S.submitEndpoint)&&C&&_.JA().resolve(_.ZQ).resolveCommand(H.data.submitEndpoint,{form:{impersonated_channel_url:C,element:H.hostElement}})},500)};
_.F.handleModifyReportFormCommand=function(H){this.invalid=this.get("modifyReportFormCommand.action",H)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.F.updateInvalidFromBinding=function(H){this.invalid=H.detail.value};
_.F.updateImpersonatedChannelUrlFromBinding=function(H){this.impersonatedChannelUrl=H.detail.value};
zy.prototype.handleImpersonatedChannelUrlChanged=zy.prototype.handleImpersonatedChannelUrlChanged;_.D([_.v(_.q$),_.K("design:type",Object)],zy.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],zy.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],zy.prototype,"autoValidate",void 0);_.D([_.V(),_.K("design:type",Object)],zy.prototype,"invalid",void 0);
_.D([_.V(),_.K("design:type",String)],zy.prototype,"impersonatedChannelUrl",void 0);_.D([_.V({selector:ZEq.impersonatedChannelUrlSelector}),_.K("design:type",String)],zy.prototype,"impersonatedChannelUrlRedux",void 0);_.D([_.V(),_.K("design:type",Object)],zy.prototype,"data",void 0);_.D([_.lA("#text-input"),_.K("design:type",Object)],zy.prototype,"channelUrlInput",void 0);
_.D([_.fx("impersonatedChannelUrl"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],zy.prototype,"handleImpersonatedChannelUrlChanged",null);_.D([_.h({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],zy);
_.B(zy,"ytd-report-channel-modal-impersonation-renderer",function(){if(zH9!==void 0)return zH9;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return zH9=H},{mode:1});var MVR;var qZr;var M1=function(){return _.X.apply(this,arguments)||this};
_.G(M1,_.X);M1.prototype.onCheckboxToggled=function(H){var C,S,w=(S=_.e((C=this.data)==null?void 0:C.video,_.zN))==null?void 0:S.videoId;w&&this.ytdReduxBehavior.dispatch(H.target.checked?_.Md({type:"VIDEO_SELECTED",payload:w}):_.Md({type:"VIDEO_UNSELECTED",payload:w}))};
M1.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.JJ.Object.defineProperties(M1.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var H,C=(H=this.data)==null?void 0:H.video;if(!C)return{};var S;H=(S=_.e(C,_.zN))==null?void 0:S.navigationEndpoint;if(!H)return C;_.e(H==null?void 0:H.commandMetadata,_.u9)&&(_.e(H.commandMetadata,_.u9).ignoreNavigation=!0);return C}}});
_.D([_.V({reflectToAttribute:!0,selector:ZEq.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.K("design:type",Boolean)],M1.prototype,"checked",void 0);_.D([_.V(),_.K("design:type",Object)],M1.prototype,"data",void 0);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],M1.prototype,"video",null);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],M1.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],M1.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],M1.prototype,"ytdReduxBehavior",void 0);_.D([_.h({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],M1);
_.B(M1,"ytd-selectable-video-renderer",function(){if(qZr!==void 0)return qZr;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return qZr=H},{mode:1});var q1=function(){var H=_.X.apply(this,arguments)||this;H.monitorScroll=!0;return H};
_.G(q1,_.X);q1.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],q1.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],q1.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],q1.prototype,"data",void 0);_.D([_.h({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],q1);
_.B(q1,"ytd-selectable-video-list-renderer",function(){if(MVR!==void 0)return MVR;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return MVR=H},{mode:1});var Tt9;_.hg("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var Ty=function(){return _.X.apply(this,arguments)||this};
_.G(Ty,_.X);Ty.prototype.onChange=function(H){if(H=_.Jr(H).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.E("kevlar_command_handler_migration_killswitch"))_.yN(this.hostElement,H,this.hostElement);else{H=_.Z(H);for(var C=H.next();!C.done;C=H.next())this.ytComponentBehavior.resolveCommand(C.value)}};
Ty.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
Ty.prototype.updateDataToggledFromBinding=function(H){this.set("data.toggled",H.detail.value)};
_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Ty.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Ty.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Ty.prototype,"data",void 0);_.D([_.V({computed:"isEnabled(data)"}),_.K("design:type",Boolean)],Ty.prototype,"enabled",void 0);_.D([_.h({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],Ty);
_.B(Ty,"ytd-toggle-item-renderer",function(){if(Tt9!==void 0)return Tt9;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return Tt9=H},{mode:1});var mkR;var WzK;var y0R;var mW=function(){var H=_.X.apply(this,arguments)||this;H.setVisible=!1;H.boundOnSubmitButtonClick=function(){H.onSubmitButtonClick()};
H.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return H};
_.G(mW,_.X);mW.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}}}}}};
mW.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
mW.prototype.onSubmitButtonClick=function(){var H;((H=this.data)==null?0:H.submitEndpoint)&&!_.E("enable_ytc_refunds_submit_form_signal_action")&&_.WH(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
mW.prototype.handleSignalActionSubmitForm=function(){var H;((H=this.data)==null?0:H.submitEndpoint)&&_.WH(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.JJ.Object.defineProperties(mW.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.hiddenByDefault)&&!this.setVisible}}});
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],mW.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],mW.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],mW.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],mW.prototype,"setVisible",void 0);_.D([_.V(),_.K("design:type",Object)],mW.prototype,"data",void 0);
_.D([_.V(),_.K("design:type",Object)],mW.prototype,"surveyFeedbackData",void 0);_.D([_.V(),_.K("design:type",Object)],mW.prototype,"boundOnSubmitButtonClick",void 0);_.D([_.V({reflectToAttribute:!0}),_.l("data","setVisible"),_.K("design:type",Object),_.K("design:paramtypes",[])],mW.prototype,"visibilityHidden",null);_.D([_.Lx({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],mW);
_.B(mW,"yt-flow-footer-renderer",function(){if(y0R===void 0){var H=document.createElement("template");_.f(H,'\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>');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;WzK===void 0&&(WzK=document.createElement("template"));var w=WzK;S.call(C,w.content.cloneNode(!0),H.content.firstChild);y0R=H}H=y0R;return H},{mode:2});var Nti=(0,_.Q8p)(_.sK.ypc,{surveyFeedbackDataSelector:function(H){return H.surveyFeedbackData}});var Wi=function(){return _.X.apply(this,arguments)||this};
_.G(Wi,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Wi.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],Wi.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Wi.prototype,"data",void 0);_.D([_.V({selector:Nti.surveyFeedbackDataSelector}),_.K("design:type",Object)],Wi.prototype,"surveyFeedbackData",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],Wi);
_.B(Wi,"ytd-flow-footer-renderer",function(){if(mkR!==void 0)return mkR;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return mkR=H},{mode:_.mn("kevlar_poly_si_batch_j025")?1:2});var bEq;var Eyt;var yH=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return H};
_.G(yH,_.X);_.F=yH.prototype;_.F.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.nu("multiPageMenuSectionItems")}}};
_.F.handleHideEnclosingAction_=function(H){if(this.data&&this.data.items)for(var C=0;C<this.data.items.length;C++){var S=this.data.items[C].notificationRenderer;if(S&&S.notificationId==H.hideEnclosingAction.notificationId){this.splice("data.items",C,1);_.q3(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.F.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.NT(this.hostElement,"hidden",!0)};
_.F.updateMenu_=function(H){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&H&&!H.doNotRefreshInbox){H=this.data.continuations;for(var C=0;C<H.length;C++)if(H[C].invalidationContinuationData){var S=void 0;var w=(S=H[C].invalidationContinuationData)==null?void 0:S.continuation;break}H=_.hb.clone(this.data.continuationUpdateEndpoint||null);H.continuation=w;H.click_tracking_params=this.data.trackingParams;_.WH(this.hostElement,[H])}};
_.F.onServiceRequestCompleted_=function(H,C){if(this.data&&(H=C.actions)){C=0;for(var S=H.length;C<S;C++){var w=_.e(H[C],_.bq7);if(!w)break;if((w.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||w.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&w.continuationItems&&this.data.items){var A=this.data.items.length-1;this.data.items[A].continuationItemRenderer&&(w=["data.items",A,1].concat(w.continuationItems),this.splice.apply(this,w))}}}};
yH.prototype.onServiceRequestCompleted_=yH.prototype.onServiceRequestCompleted_;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],yH.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],yH.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],yH.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],yH.prototype,"data",void 0);
_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.j4]),_.K("design:returntype")],yH.prototype,"onServiceRequestCompleted_",null);_.D([_.Lx({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],yH);
_.Tp()(yH,"yt-multi-page-menu-section-renderer",function(){if(Eyt===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;bEq===void 0&&(bEq=document.createElement("template"));var w=bEq;S.call(C,w.content.cloneNode(!0),H.content.firstChild);Eyt=H}H=Eyt;return H},{allowedProps:["data"],
mode:2});var eHR;var uzp;var N1=function(){return _.X.apply(this,arguments)||this};
_.G(N1,_.X);N1.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.JJ.Object.defineProperties(N1.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.progress)==null?0:this.data.progress*100}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],N1.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],N1.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],N1.prototype,"data",void 0);_.D([_.l("data.progress"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],N1.prototype,"showProgressBar",null);
_.D([_.l("data.progress"),_.K("design:type",Number),_.K("design:paramtypes",[])],N1.prototype,"progress",null);_.D([_.Lx({is:"yt-flow-header-renderer",disableElementRegistration:!0})],N1);
_.B(N1,"yt-flow-header-renderer",function(){if(uzp===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;eHR===void 0&&(eHR=document.createElement("template"));var w=eHR;S.call(C,w.content.cloneNode(!0),H.content.firstChild);uzp=H}H=uzp;return H},{mode:2});var GFO;var fUK;var bh=function(){return _.X.apply(this,arguments)||this};
_.G(bh,_.X);bh.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],bh.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],bh.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],bh.prototype,"data",void 0);_.D([_.Lx({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],bh);
_.B(bh,"yt-post-confirmation-flow-step-renderer",function(){if(fUK===void 0){var H=document.createElement("template");_.f(H,'\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>');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;GFO===void 0&&(GFO=document.createElement("template"));var w=GFO;S.call(C,w.content.cloneNode(!0),H.content.firstChild);fUK=H}H=fUK;return H},{mode:2});var vyi;var lUi;var EV=function(){return _.X.apply(this,arguments)||this};
_.G(EV,_.X);
EV.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"}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],EV.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],EV.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],EV.prototype,"data",void 0);_.D([_.Lx({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],EV);
_.B(EV,"yt-refund-confirmation-flow-step-renderer",function(){if(lUi===void 0){var H=document.createElement("template");_.f(H,'\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>');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;vyi===void 0&&(vyi=document.createElement("template"));var w=vyi;S.call(C,w.content.cloneNode(!0),H.content.firstChild);lUi=H}H=lUi;return H},{mode:2});var VVR=_.n(function(H){var C=H.data;return _.q("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.q("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.q(_.Jg,{data:function(){return{thumbnails:[{url:C().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.q("div",{class:"profileBadgeViewModelContent"},_.q("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return C().badgeDesc}),_.q(_.T,{cond:function(){return C().badgeSubtitle},
then:function(){return _.q("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return C().badgeSubtitle})}})))},"sh");
VVR.idomCompat=!0;var oyR=_.n(function(H){var C=H.data;return _.q("yt-comment-interaction-view-model",{el:_.Zl(_.Bt(function(){return C().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.q("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return C().onTapA11yLabel},
"on:keydown":_.NI7(),tabindex:0},_.q("div",{class:"ytCommentInteractionViewModelHeader"},_.q("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return C().headerPrefix},' "',function(){return C().videoTitle}),_.q("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.q("div",{class:"ytCommentInteractionViewModelContent"},_.q("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return C().commentContent}),_.q("div",{class:"ytCommentInteractionViewModelChevron"},
_.q(_.Jg,{data:function(){return{thumbnails:[{url:C().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"th");
oyR.idomCompat=!0;var OEi=_.n(function(H){var C=H.data;return _.q("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.q(_.V4,{data:function(){return C().avatar}},{avatarViewModel:_.ZT}),_.q("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return C().channelName}))},"uh");
OEi.idomCompat=!0;var $kK=_.n(function(H){var C=H.data;H={};return _.q("yt-profile-info-view-model",{class:_.eJ("ytProfileInfoViewModelHost",(H.ytProfileInfoViewModelWithVideoShelf=function(){return C().videosHorizontalShelf},H))},_.q(XoK,{profileInfo:C}),_.q(_.V4,{data:function(){return C().videosHorizontalShelf}},{horizontalShelfViewModel:function(S){return _.q("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.q(_.TP,{data:S.data}))}}),_.q(_.T,{cond:function(){return C().comments},
then:function(){return _.q(Qj3,{profileInfo:C})}}),_.q(_.T,{cond:function(){return C().sharedSubscriptionsTitle},
then:function(){return _.q(_.T,{cond:function(){return C().subscriptionsAccessButtonCommand},
then:function(){return _.q(dkr,{profileInfo:C})},
else:function(){return _.q(Pjo,{profileInfo:C})}})}}))},"vh");
$kK.idomCompat=!0;var Qj3=_.n(function(H){var C=H.profileInfo;return _.q("div",{class:"ytProfileInfoViewModelActivity"},_.q("div",{class:"ytProfileInfoViewModelHeader"},_.q("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return C().commentsInteractionTitle})),_.q(_.V4,{data:function(){return C().comments}},{commentInteractionViewModel:function(S){return _.q("div",{class:"ytProfileInfoViewModelActivity"},_.q(oyR,{data:S.data}))}}))},"wh"),dkr=_.n(function(H){var C=H.profileInfo;
return _.q("div",{class:"ytProfileInfoViewModelSubSection"},_.q("div",{class:"ytProfileInfoViewModelSubHeader"},_.q(_.$4,{command:function(){return C().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.q("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return C().sharedSubscriptionsTitle}),_.q("div",null,_.q(_.V4,{data:function(){return C().subscriptionsAccessButton}},{buttonViewModel:_.rc})))),_.q(po9,{sharedSubscriptions:function(){var S;
return((S=C().sharedSubscriptions)==null?void 0:S.slice(0,5))||[]}}))},"xh"),Pjo=_.n(function(H){var C=H.profileInfo;
return _.q("div",{class:"ytProfileInfoViewModelSubSection"},_.q("div",{class:"ytProfileInfoViewModelSubHeader"},_.q("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return C().sharedSubscriptionsTitle})),_.q(po9,{sharedSubscriptions:function(){var S;
return((S=C().sharedSubscriptions)==null?void 0:S.slice(0,5))||[]}}))},"yh"),po9=_.n(function(H){return _.q("div",{class:"ytProfileInfoViewModelSubs"},_.q(_.V4,{data:H.sharedSubscriptions},{sharedSubscriptionViewModel:function(C){return _.q("div",{class:"ytProfileInfoViewModelSub"},_.q(OEi,{data:C.data}))}}))},"zh"),XoK=_.n(function(H){var C=H.profileInfo;
return _.q("div",{class:"ytProfileInfoViewModelActivity"},_.q(_.Vq,{each:function(){return[C().profileBadgeInfoYtWide,C().profileBadgeInfoChannelWide].filter(function(S){return!!S})},
keyBy:"INDEX"},function(S){return _.q(_.F9,null,_.q("div",{class:"ytProfileInfoViewModelHeader"},_.q("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return S().profileSectionTitle}),_.q("div",{class:"ytProfileInfoViewModelSectionDesc"},_.q("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var w;
return(w=S().commentBadge)==null?void 0:w.commentDesc}),_.q(_.T,{cond:function(){var w;
return(w=S().commentBadge)==null?void 0:w.blackHeartDesc},
then:function(){return _.q("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.q("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.q(_.Jg,{data:function(){var w;
return{thumbnails:[{url:(w=S().commentBadge)==null?void 0:w.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.q("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var w;return(w=S().commentBadge)==null?void 0:w.blackHeartDesc}))),_.q("div",{class:"ytProfileInfoViewModelBadge"},_.q(_.Vq,{each:function(){return S().badges||[]}},function(w){return _.q(VVR,{data:w})})))}))},"Ah");var kF_=_.n(function(H){var C=H.data;var S=function(){return C().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.q("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.q(_.V4,{data:function(){return C().profileIdentityInfo}},{profileIdentityInfoViewModel:function(w){return _.q(_.DKO,{data:w.data,
hideDivider:S,isChannelInfoCard:S})},
profileInfoViewModel:$kK}),_.q(_.V4,{data:function(){return C().profileInfo}},{profileIdentityInfoViewModel:_.DKO,
profileInfoViewModel:$kK}))},"Bh");
kF_.idomCompat=!0;_.qs(kF_,"yt-profile-card-view-model",{props:{data:_.GH}});var eE=function(){var H=_.X.apply(this,arguments)||this;H.enableFocusFix=_.E("music_web_enable_focus_on_setting_menu_fix")&&_.Bh("IS_MOBILE_WEB",!1);H.covered=!1;H.hideMenu=!1;H.isCommentNotificationOnProfileCard=!1;H.scrolledByTouch=!1;H.disableBackdropFilter=_.E("web_disable_backdrop_filter");H.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return H};
_.G(eE,_.X);_.F=eE.prototype;
_.F.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"}}}};
_.F.ready=function(){var H=this;this.JSC$20212_containerElement.addEventListener("scroll",function(){H.ytRendererBehavior.markDirty()})};
_.F.attributeChanged=function(H,C){H==="menu-style"&&_.q3(this.hostElement,"yt-multi-page-menu-closed-action",[C])};
_.F.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.uA(this,this.focusOnStampFinished))};
_.F.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.uA(this,this.focusOnStampFinished))};
_.F.reset=function(){this.closeJobId&&(_.rT.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.F.focusOnStampFinished=function(H){H.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.uA(this,this.focusOnStampFinished)),this.doFocus())};
_.F.doFocus=function(){var H=_.un7(this.sectionsElement);H.length&&H[0].focus()};
_.F.computeMenuStyle=function(H){return H?H.toLowerCase().replace(/_/g,"-"):""};
_.F.computeIsCommentNotificationOnProfileCard=function(H){return _.E("enable_profile_cards_on_comments")&&H.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.F.computeHideMenu=function(H,C){return H||!(!C||!C.showLoadingSpinner)};
_.F.onPopupClosed=function(){this.isPopUpOpen=!1;_.q3(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.F.onPopupOpened=function(H,C){this.isPopUpOpen=!0;C.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.M3(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.Md({type:"CHANNEL_REPORT_RESET"})))};
_.F.onYtNavigate=function(H,C){this.shouldCloseOnNavigateEvent(C.endpoint)&&_.q3(this.hostElement,"yt-close-all-popups-action")};
_.F.handleEndpoint=function(H){H=_.e(H,_.Ad);!this.isCommentNotificationOnProfileCard&&H&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20212_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.F.handleActions=function(H){for(var C=0,S=H.length;C<S;C++){var w=_.e(H[C],cvR);w&&this.handleGetMultiPageMenuAction(w);(w=_.e(H[C],_.bq7))&&this.handleAppendContinuationItemsAction(w)}};
_.F.onServiceRequestSentOrCompleted=function(H,C){H.detail&&H.detail.endpoint&&this.handleEndpoint(H.detail.endpoint);C.actions&&this.handleActions(C.actions)};
_.F.handleGetMultiPageMenuAction=function(H){var C=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.mY(this.submenuElement).appendChild(C);(H=H.menu.multiPageMenuRenderer)&&this.logSubmenu(H);C.data=H;C.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.F.handleAppendContinuationItemsAction=function(H){if(this.data&&H.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&H.continuationItems&&this.data.sections){var C=this.data.sections.length-1;this.data.sections[C].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),C--);if(this.data.sections[C].multiPageMenuNotificationSectionRenderer&&H.continuationItems){H=_.Z(H==null?void 0:H.continuationItems);for(var S=H.next();!S.done;S=H.next())if(S=S.value,_.e(S,khj)){var w=
void 0,A=void 0,J=void 0,c=void 0,Y=void 0;((w=this)==null?0:(A=w.data)==null?0:(J=A.sections)==null?0:(c=J[C])==null?0:(Y=c.multiPageMenuNotificationSectionRenderer)==null?0:Y.items)&&this.push("data.sections."+C+".multiPageMenuNotificationSectionRenderer.items",S)}else if(_.e(S,_.c7U)||_.e(S,_.S9))this.push("data.sections",S),C++}}};
_.F.logSubmenu=function(H){if(!_.E("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var C=this.ytRendererBehavior.getScreenLayer(),S=_.Dg(C),w=_.BM(C);if((H=H.trackingParams)&&S&&w){var A=_.Qh(H);_.E("combine_ve_grafts")?_.lJ().graftServerVe(H,w,C):_.ak(S,w,A)}}};
_.F.emptySubmenuContainer=function(){for(var H=_.mY(this.submenuElement);H.firstChild;)H.removeChild(H.firstChild)};
_.F.onMenuBackTap=function(H){_.M3(this.hostElement,"yt-submenu-closed");H.stopPropagation()};
_.F.onSubmenuClosed=function(H){_.Jr(H)!==this.hostElement&&(this.covered=!1,_.M3(this.hostElement,"yt-refit"),H.stopPropagation())};
_.F.onRetrieveLocation=function(H,C){C.hasComments&&(C.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),H.stopPropagation())};
_.F.shouldCloseOnNavigateEvent=function(H){if(!H)return!0;if(_.e(H,_.pJd)||_.e(H,_.kjW)||_.e(H,_.$J_)||_.e(H,_.R8))return!1;var C;return((C=_.e(H==null?void 0:H.commandMetadata,_.u9))==null?0:C.ignoreNavigation)?!1:!0};
_.F.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.F.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.F.refitAfterRender=function(){var H=this;_.wM(this,function(){_.M3(H.hostElement,"yt-refit")})};
eE.prototype.refitAfterRender=eE.prototype.refitAfterRender;eE.prototype.onRetrieveLocation=eE.prototype.onRetrieveLocation;eE.prototype.onSubmenuClosed=eE.prototype.onSubmenuClosed;eE.prototype.onMenuBackTap=eE.prototype.onMenuBackTap;eE.prototype.onServiceRequestSentOrCompleted=eE.prototype.onServiceRequestSentOrCompleted;eE.prototype.onYtNavigate=eE.prototype.onYtNavigate;eE.prototype.onPopupOpened=eE.prototype.onPopupOpened;eE.prototype.onPopupClosed=eE.prototype.onPopupClosed;
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],eE.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.ie.YtEventForwardingBehavior),_.K("design:type",Object)],eE.prototype,"ytEventForwardingBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],eE.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],eE.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],eE.prototype,"data",void 0);
_.D([_.V(),_.K("design:type",Object)],eE.prototype,"enableFocusFix",void 0);_.D([_.V(),_.K("design:type",Object)],eE.prototype,"covered",void 0);_.D([_.V({computed:"computeHideMenu(covered, data)"}),_.K("design:type",Object)],eE.prototype,"hideMenu",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.K("design:type",String)],eE.prototype,"menuStyle",void 0);
_.D([_.V({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.K("design:type",Object)],eE.prototype,"isCommentNotificationOnProfileCard",void 0);_.D([_.V(),_.K("design:type",Boolean)],eE.prototype,"isPopUpOpen",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],eE.prototype,"scrolledByTouch",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],eE.prototype,"disableBackdropFilter",void 0);
_.D([_.lA("#sections"),_.K("design:type",HTMLElement)],eE.prototype,"sectionsElement",void 0);_.D([_.lA("#spinner"),_.K("design:type",HTMLElement)],eE.prototype,"spinnerElement",void 0);_.D([_.lA("#header"),_.K("design:type",HTMLElement)],eE.prototype,"headerElement",void 0);_.D([_.lA("#container"),_.K("design:type",HTMLElement)],eE.prototype,"JSC$20212_containerElement",void 0);_.D([_.lA("#submenu"),_.K("design:type",HTMLElement)],eE.prototype,"submenuElement",void 0);
_.D([_.Gz("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],eE.prototype,"onPopupClosed",null);_.D([_.Gz("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],eE.prototype,"onPopupOpened",null);_.D([_.Gz("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],eE.prototype,"onYtNavigate",null);
_.D([_.Gz("yt-service-request-completed"),_.Gz("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.j4]),_.K("design:returntype")],eE.prototype,"onServiceRequestSentOrCompleted",null);_.D([_.Gz("yt-menu-back-tapped"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],eE.prototype,"onMenuBackTap",null);
_.D([_.Gz("yt-submenu-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],eE.prototype,"onSubmenuClosed",null);_.D([_.Gz("yt-retrieve-location"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],eE.prototype,"onRetrieveLocation",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],eE.prototype,"refitAfterRender",null);
_.D([_.h({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],eE);
_.B(eE,"ytd-multi-page-menu-renderer",function(){if(jjp!==void 0)return jjp;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return jjp=H},{mode:1});var hHj;var uh=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return H};
_.G(uh,_.X);_.F=uh.prototype;_.F.created=function(){this.showTooltips=!0};
_.F.computeAccessibility_=function(H){return this.get("accessibility.accessibilityData",H)||null};
_.F.onTap=function(){var H=_.m7(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(H&&H.length===1&&H[0])_.q3(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var C;if((C=this.data)==null?0:C.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var S;((S=this.data)==null?0:S.menuRequest)&&_.WH(this.hostElement,[this.data.menuRequest])}}};
_.F.handleTopbarMenuClosedAction=function(H){var C,S;(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(H)===((C=this.data)==null?void 0:(S=C.icon)==null?void 0:S.iconType)&&this.toggleIconState(!1)};
_.F.toggleIconState=function(H){_.E("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=H)};
_.F.handleUpdateTopbarAvatarAction=function(H){var C;H=(C=_.e(H,snO))==null?void 0:C.avatarUrl;var S,w;C=(S=this.data)==null?void 0:(w=S.avatar)==null?void 0:w.thumbnails;H&&C&&(S={thumbnails:[Object.assign({},C[0],{url:H})]},this.set("data.avatar",S))};
_.JJ.Object.defineProperties(uh.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.mY(this.hostElement).querySelector("#button")}}});
uh.prototype.onTap=uh.prototype.onTap;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],uh.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],uh.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.OY),_.K("design:type",Object)],uh.prototype,"ytdOpenPopupBehavior",void 0);_.D([_.v(_.ysY.YtButtonBehavior),_.K("design:type",Object)],uh.prototype,"ytButtonBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],uh.prototype,"data",void 0);
_.D([_.lA("yt-icon-button#button"),_.K("design:type",Object)],uh.prototype,"iconButton",void 0);_.D([_.Gz("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],uh.prototype,"onTap",null);_.D([_.h({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],uh);
_.Tp()(uh,"ytd-topbar-menu-button-renderer",function(){if(hHj===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);hHj=H}H=hHj;return H},{allowedProps:["data"],
mode:1});var ny_;var Gy=function(){return _.X.apply(this,arguments)||this};
_.G(Gy,_.X);Gy.prototype.getSelected=function(){return this.reasons.selected};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Gy.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Gy.prototype,"data",void 0);_.D([_.lA("#reasons"),_.K("design:type",Object)],Gy.prototype,"reasons",void 0);_.D([_.h({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],Gy);
_.B(Gy,"ytd-ad-feedback-content",function(){if(ny_!==void 0)return ny_;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return ny_=H},{mode:1});var r0t;var fK=function(){return _.X.apply(this,arguments)||this};
_.G(fK,_.X);_.F=fK.prototype;_.F.onPopupOpened=function(){_.q3(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.F.computeConfirmButton=function(H){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:H.confirmLabel}};
_.F.computeCancelButton=function(H){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:H.cancelLabel}};
_.F.onConfirmTap=function(){var H=this.content.getSelected();H!==void 0&&(H=this.data.reasons[H].endpoint)&&(_.JA().resolve(_.ZQ).resolveCommand(H,{form:{element:this.hostElement}}),_.q3(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.F.sendFeedbackSubmitToastAction=function(){var H;(H=this.data)!=null&&H.completionMessage&&_.q3(this.hostElement,"yt-open-popup-action",[_.FG(this.data.completionMessage),this])};
_.F.onCancelTap=function(){_.q3(this.hostElement,"yt-close-popup-action")};
fK.prototype.onPopupOpened=fK.prototype.onPopupOpened;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],fK.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],fK.prototype,"data",void 0);_.D([_.lA("#content"),_.K("design:type",Object)],fK.prototype,"content",void 0);_.D([_.Gz("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],fK.prototype,"onPopupOpened",null);
_.D([_.h({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],fK);
_.B(fK,"ytd-ad-feedback-renderer",function(){if(r0t!==void 0)return r0t;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return r0t=H},{mode:1});var Bt9;var vi=function(){return _.X.apply(this,arguments)||this};
_.G(vi,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],vi.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],vi.prototype,"data",void 0);_.D([_.h({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],vi);
_.B(vi,"ytd-ad-info-dialog-content",function(){if(Bt9!==void 0)return Bt9;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Bt9=H},{mode:1});var Dk3;var lh=function(){return _.X.apply(this,arguments)||this};
_.G(lh,_.X);lh.prototype.computeConfirmButton=function(H){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:H.confirmLabel}};
lh.prototype.onConfirmTap=function(){_.q3(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
lh.prototype.computeShouldShowTitle=function(){var H;return!((H=this.data)==null||!H.title)};
lh.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.JA().resolve(_.ZQ).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
lh.prototype.onPopupClosed=lh.prototype.onPopupClosed;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],lh.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],lh.prototype,"data",void 0);_.D([_.Gz("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],lh.prototype,"onPopupClosed",null);_.D([_.h({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],lh);
_.B(lh,"ytd-ad-info-dialog-renderer",function(){if(Dk3!==void 0)return Dk3;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return Dk3=H},{mode:1});var KzO;var VH=function(){var H=_.X.apply(this,arguments)||this;H.actionButtonClass="action-button";H.dismissButtonId="dismiss-button";H.dialogDismiss=!0;return H};
_.G(VH,_.X);_.F=VH.prototype;_.F.computeInPlayer=function(H){return(H==null?void 0:H.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.F.computedLogo=function(){var H,C;return this.isDarkTheme()?(H=this.data)==null?void 0:H.logoDark:(C=this.data)==null?void 0:C.logo};
_.F.computedHeaderImage=function(){var H,C;return this.isDarkTheme()?(H=this.data)==null?void 0:H.headerImageDark:(C=this.data)==null?void 0:C.headerImage};
_.F.computeLogoIconId=function(){var H,C,S,w=(H=this.computedLogo())==null?void 0:(C=H.sources)==null?void 0:(S=C[0])==null?void 0:S.height;return w&&w%31===0?"logo-icon-with-padding":"logo-icon"};
_.F.computeLogoIconHeight=function(){var H,C,S,w=(H=this.computedLogo())==null?void 0:(C=H.sources)==null?void 0:(S=C[0])==null?void 0:S.height;return w&&w%31===0?"31":"24"};
_.F.onPopupClosed=function(){_.JA().resolve(_.Ly).dispose()};
_.F.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.F.onShow=function(){this.inPlayer&&_.u4(6);this.titleElement.focus()};
_.F.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var H=0;H<this.data.impressionEndpoints.length;H++){var C=_.e(this.data.impressionEndpoints[H],_.tx);C&&this.ytComponentBehavior.resolveCommand(C)}};
_.F.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.q3(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.JJ.Object.defineProperties(VH.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var H,C;return!((H=this.data)==null||!H.headerImageDark)&&!((C=this.data)==null||!C.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.secondaryButton)}}});
VH.prototype.onPopupClosed=VH.prototype.onPopupClosed;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],VH.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],VH.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.NU.YtVisibilityBehavior),_.K("design:type",Object)],VH.prototype,"ytVisibilityBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],VH.prototype,"data",void 0);
_.D([_.V(),_.K("design:type",Object)],VH.prototype,"actionButtonClass",void 0);_.D([_.V(),_.K("design:type",Object)],VH.prototype,"dismissButtonId",void 0);_.D([_.V(),_.K("design:type",Object)],VH.prototype,"dialogDismiss",void 0);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],VH.prototype,"hasHeaderImage",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],VH.prototype,"hasPremiumButton",null);
_.D([_.V({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.K("design:type",Boolean)],VH.prototype,"inPlayer",void 0);_.D([_.lA("#dismiss-button"),_.K("design:type",HTMLElement)],VH.prototype,"dismissButton",void 0);_.D([_.lA("#title"),_.K("design:type",HTMLElement)],VH.prototype,"titleElement",void 0);_.D([_.Gz("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],VH.prototype,"onPopupClosed",null);
_.D([_.h({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],VH);
_.B(VH,"ytd-enforcement-message-view-model",function(){if(KzO!==void 0)return KzO;var H=document.createElement("template");_.f(H,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="fc-dialog-container style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" tabindex="0" role="heading" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return KzO=H},{mode:1});var tVi;var Lz9;var oQ=function(){var H=_.X.apply(this,arguments)||this;H.TEST_ONLY={immediateValidation:function(){H.immediateValidation()},
onValidationResponse:function(C){H.onValidationResponse(C)},
onGenerateHandleFromNameResponse:function(C){H.onGenerateHandleFromNameResponse(C)}};
return H};
_.G(oQ,_.X);_.F=oQ.prototype;_.F.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.F.validate=function(){this.immediateValidation()};
_.F.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.F.setHandleInputValue=function(H){this.handleDir=this.getHandleDir(H);this.handleInput.value=H;this.validationState={status:"PENDING"};this.immediateValidation()};
_.F.getHandleDir=function(H){var C=H===""&&!1;return(C=_.FrW.test.call(_.FrW,H))?"rtl":"ltr"};
_.F.onDataChanged=function(){var H,C;this.handleDir=this.getHandleDir((C=(H=this.data)==null?void 0:H.handle)!=null?C:"");var S;this.validationState=((S=this.data)==null?0:S.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var w;((w=this.data)==null?0:w.validateOnInit)&&this.immediateValidation()};
_.F.stopPropagation=function(H){H.stopPropagation()};
_.F.onInput=function(){var H;this.handleDir=this.getHandleDir((H=this.handleInput.value)!=null?H:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.F.onFocusout=function(H){this.handleInput.contains(H.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.F.delayedValidation=function(){var H,C;this.debouncedValidation((C=(H=this.data)==null?void 0:H.validationDelayMs)!=null?C:1E3)};
_.F.immediateValidation=function(){this.debouncedValidation(0)};
_.F.debouncedValidation=function(H){var C=this;_.iJ(this,"debouncedValidation",function(){var S,w=C.staticValidation((S=C.handleInput.value)!=null?S:"");if(w!==void 0)C.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:w};else{var A;if((A=C.data)!=null&&A.validateChannelHandleCommand){C.validationState={status:"LOADING"};var J;C.ytComponentBehavior.resolveCommand(C.data.validateChannelHandleCommand,{form:{handle:(J=C.handleInput.value)!=null?J:""},commandController:{onSuccess:function(c,
Y){C.onValidationResponse(Y)},
onServerError:function(c,Y){C.onValidationServerError(Y)}}})}else C.handleUnexpectedValidationError(new _.X0("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",C.data))}},H)};
_.F.staticValidation=function(H){var C;if(((C=this.data)==null?void 0:C.channelHandleStaticValidationParams)!==void 0){C=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(H)&&C.validValueRegexpErrorMessage!==void 0)return C.validValueRegexpErrorMessage;if(C.minLength!==void 0&&H.length<C.minLength&&C.minLengthErrorMessage!==void 0)return C.minLengthErrorMessage;if(C.maxLength!==void 0&&H.length>C.maxLength&&C.maxLengthErrorMessage!==void 0)return C.maxLengthErrorMessage}};
_.F.onValidationResponse=function(H){var C=_.e(H.result,jni);C===void 0?this.handleUnexpectedValidationError(new _.X0("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",H)):this.handleValidationResultRenderer(C)};
_.F.onValidationServerError=function(H){this.handleUnexpectedValidationError(new _.X0("ValidateChannelHandle request failed.",H))};
_.F.handleValidationResultRenderer=function(H){if(H.handle===void 0)this.handleUnexpectedValidationError(new _.X0("ChannelHandleValidationResultRenderer does not contain handle.",H));else if(H.handle===this.handleInput.value)switch(H.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:H.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:H.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.X0("Unrecognized ChannelHandleValidationResult",H));break;default:_.KP(H.result)}};
_.F.handleUnexpectedValidationError=function(H){var C;this.validationState={status:"UNKNOWN",handle:(C=this.handleInput.value)!=null?C:""};_.Bn(H)};
_.F.stopEventPropagation=function(H){H.stopPropagation()};
_.F.updateHandleOnChannelNameInputChange=function(H){if(!this.wasEdited){var C,S;this.debouncedGenerateHandleFromName(H,(S=(C=this.data)==null?void 0:C.validationDelayMs)!=null?S:1E3)}};
_.F.debouncedGenerateHandleFromName=function(H,C){var S=this;_.iJ(this,"debouncedGenerateHandleFromName",function(){var w;(w=S.data)!=null&&w.validateChannelHandleCommand?S.ytComponentBehavior.resolveCommand(S.data.validateChannelHandleCommand,{form:{name:H},commandController:{onSuccess:function(A,J){S.onGenerateHandleFromNameResponse(J)},
onServerError:function(A,J){_.Bn(new _.X0("Error calling GenerateHandleFromName",J))}}}):_.Bn(new _.X0("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",S.data))},C)};
_.F.onGenerateHandleFromNameResponse=function(H){this.wasEdited||((H=_.e(H.result,wmi))?this.setHandleInputValue(H.handle):_.Bn(new _.X0("Invalid results when generate handle from name")))};
_.JJ.Object.defineProperties(oQ.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var H;if(H=this.validationState)H=this.validationState,H=H.status==="OK"||H.status==="UNKNOWN";if(H)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var H;if(((H=this.validationState)==null?void 0:H.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 H,C=(H=this.channelHandleEntity)==null?void 0:H.handleEdit;this.handleDir=this.getHandleDir(C!=null?C:"");return C}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var H,C;if(((H=this.data)==null?void 0:(C=H.channelHandleStaticValidationParams)==null?void 0:C.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
oQ.prototype.stopEventPropagation=oQ.prototype.stopEventPropagation;oQ.prototype.onDataChanged=oQ.prototype.onDataChanged;oQ.prototype.applyHandleEdit=oQ.prototype.applyHandleEdit;oQ.prototype.onValueChanged=oQ.prototype.onValueChanged;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],oQ.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],oQ.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],oQ.prototype,"data",void 0);
_.D([_.V(),_.K("design:type",Boolean)],oQ.prototype,"wasEdited",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",String)],oQ.prototype,"handleDir",void 0);_.D([_.lA("#handle-input"),_.K("design:type",Object)],oQ.prototype,"handleInput",void 0);_.D([_.V(),_.l("validationState"),_.K("design:type",Object),_.K("design:paramtypes",[])],oQ.prototype,"value",null);
_.D([_.fx("value"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],oQ.prototype,"onValueChanged",null);_.D([_.l("validationState"),_.K("design:type",Object),_.K("design:paramtypes",[])],oQ.prototype,"errorIndicator",null);_.D([_.V({reflectToAttribute:!0}),_.l("errorIndicator"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],oQ.prototype,"borderErrorIndicator",null);
_.D([_.V({selectorArgs:["data.channelHandleEntityKey"],selector:function(H,C){return _.Ea(H.entities,"channelHandle",C)}}),
_.K("design:type",Object)],oQ.prototype,"channelHandleEntity",void 0);_.D([_.l("channelHandleEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],oQ.prototype,"handleEdit",null);_.D([_.fx("handleEdit"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],oQ.prototype,"applyHandleEdit",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],oQ.prototype,"onDataChanged",null);
_.D([_.l("data.channelHandleStaticValidationParams.validValueRegexp"),_.K("design:type",Object),_.K("design:paramtypes",[])],oQ.prototype,"validValueRegexp",null);_.D([_.Gz("yt-service-request-sent"),_.Gz("yt-service-request-completed"),_.Gz("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],oQ.prototype,"stopEventPropagation",null);_.D([_.h({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],oQ);
_.B(oQ,"ytd-channel-handle-input-renderer",function(){if(Lz9!==void 0)return Lz9;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return Lz9=H},{mode:_.mn("kevlar_poly_si_batch_j025")?1:2});var OV=function(){var H=_.X.apply(this,arguments)||this;H.data=null;H.errorMessage=null;H.isLoading=!0;H.hideContainer=!1;H.enableNewChannelCreationOnIdForAll=_.E("enable_new_channel_creation_for_id4all");H.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"};H.testOnly={setErrorMessage:function(C){H.resetErrorState();
H.setErrorState(C)}};
return H};
_.G(OV,_.X);_.F=OV.prototype;_.F.created=function(){this.logScreenVe()};
_.F.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")};
_.F.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var H;((H=this.zeroStepErrorMessageEntity)==null?0:H.value)&&this.set("errorMessage",_.sx(this.zeroStepErrorMessageEntity.value))};
_.F.onCreateTap=function(){var H=this;if(this.data&&this.data.channelCreationEndpoint){var C,S;if(!((C=this.data.createChannelButton)==null?0:(S=C.buttonRenderer)==null?0:S.isDisabled)){var w;if((w=this.nameInput)!=null&&w.value){this.setLoadingState();var A,J;C=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(A=this.handleInput)==null?void 0:A.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((J=this.handleInput)==null?void 0:J.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:C,commandController:{onSuccess:function(c,Y){H.onChannelCreationEndpointSuccess(Y);H.obakeImageSource&&_.kI("channelCreatedWithObakeImage",{imageSourceType:H.obakeImageSource})},
onServerError:function(){H.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.F.endpointRequiresServiceRequestAction=function(H){return!!_.e(H,_.Qn)||!!_.e(H,snO)};
_.F.isNavigateAction=function(H){var C;return!!_.e(H,_.Qj)||!!_.e((C=_.e(H,Fwo))==null?void 0:C.command,_.Qj)};
_.F.isPlaylistAction=function(H){return!!_.e(H,_.Jd)||!!_.e(H,_.Mc)};
_.F.onChannelCreationEndpointSuccess=function(H){if(H.createChannelError){var C;this.setErrorState((C=H.createChannelError)==null?void 0:C.errorMessage);this.handleInput&&this.handleInput.validate()}else{H.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(H.navigationEndpoint);if(H.actions){C=_.Z(H.actions);for(var S=C.next();!S.done;S=C.next())if(S=S.value,this.endpointRequiresServiceRequestAction(S)&&this.ytComponentBehavior.resolveCommand(S),this.isNavigateAction(S)){var w=void 0;S=_.e((w=
_.e(S,Fwo))==null?void 0:w.command,_.Qj);w=void 0;this.isPlaylistAction((w=S)==null?void 0:w.endpoint)&&(_.q3(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),w=void 0,this.ytComponentBehavior.resolveCommand((w=S)==null?void 0:w.endpoint))}}H.actions&&H.actions.some(function(A){var J;return _.e(A,_.Qj)||_.e((J=_.e(A,Fwo))==null?void 0:J.command,_.Qj)})||_.q3(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.F.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.F.onCancelTap=function(){var H,C,S;if(!((H=this.data)==null?0:(C=H.cancelButton)==null?0:(S=C.buttonRenderer)==null?0:S.isDisabled)){var w,A,J;H=(w=this.data)==null?void 0:(A=w.cancelButton)==null?void 0:(J=A.buttonRenderer)==null?void 0:J.command;if(!H||!_.e(H,_.ZY0)){var c;this.nameInput&&((c=this.data)==null?0:c.name)&&(this.nameInput.value=this.data.name);var Y;this.handleInput&&((Y=this.data)==null?0:Y.channelHandleInput)&&(this.handleInput.data=_.e(this.data.channelHandleInput,AvO));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.F.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.F.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.F.onClearProfilePhotoTap=function(){var H,C,S;((H=this.data)==null?0:(C=H.clearProfilePhotoButton)==null?0:(S=C.buttonRenderer)==null?0:S.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.F.onEditAvatarTap=function(){var H,C,S;((H=this.data)==null?0:(C=H.editAvatarButton)==null?0:(S=C.buttonRenderer)==null?0:S.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.F.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)};
_.F.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var H;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((H=this.data)==null?0:H.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.F.setErrorState=function(H){this.resetErrorState();if(H)this.set("errorMessage",H);else{var C;if((C=this.zeroStepErrorMessageEntity)==null?0:C.value)this.set("errorMessage",_.sx(this.zeroStepErrorMessageEntity.value));else{var S;((S=this.data)==null?0:S.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.F.fetchImageBlobWithAlr=function(H,C){C=C===void 0?5:C;var S=this,w,A,J,c,Y;return _.z(function(M){switch(M.nextAddress){case 1:return M.yield(fetch(H,{method:"GET",mode:"cors"}),2);case 2:w=M.yieldResult;if(w.ok){M.jumpTo(3);break}if(C===0)throw Error();A=S.addJitter(Math.pow(2,5-C));return M.yield(new Promise(function(m){setTimeout(m,A*1E3)}),4);
case 4:return M.return(S.fetchImageBlobWithAlr(H,C-1));case 3:if(!w.headers.get("content-type").split(";").some(function(m){return m.trim()==="text/plain"})){M.jumpTo(5);
break}J=S;c=J.fetchImageBlobWithAlr;return M.yield(w.text(),6);case 6:return M.return(c.call(J,M.yieldResult,C-1));case 5:return M.yield(w.blob(),7);case 7:return Y=M.yieldResult,M.return(Y)}})};
_.F.addJitter=function(H){var C=H*.3*Math.random();Math.random()>.5&&(C*=-1);return H+C};
_.F.openProfilePicturePicker=function(){var H=this,C,S,w,A,J,c;return _.z(function(Y){if(Y.nextAddress==1){C=H.data.scottyUploadUrl;if(!C)return Y.return();S=document.documentElement.hasAttribute("dark");w=document.body.style.colorScheme;S&&(document.body.style.colorScheme="dark");A=YSK(zJK(cio(sFi(S?"dark":"light")),function(M){var m,W,y,N,b;return _.z(function(u){if(u.nextAddress==1)return m=_.SQ(Vvr(new ul(M.photoUrl,!1)).build(),"alr","yes"),H.obakeImageSource=H.pictureChangeSourceToObakeImageSourceType(M.photoSource),
_.en(u,2),H.setLoadingState(),u.yield(H.fetchImageBlobWithAlr(m),4);if(u.nextAddress!=2)return W=u.yieldResult,y=new FileReader,y.addEventListener("load",function(){var O,d,p,k,R,L;return _.z(function(t){if(t.nextAddress==1){if(W.size>15728640)return H.setErrorState((O=H.data)==null?void 0:O.imageSizeErrorMessage),_.Bn(Error("Al")),t.return();if(!y.result)return H.setErrorState((d=H.data)==null?void 0:d.genericImageLoadErrorMessage),_.Bn(Error("Bl")),t.return();p=y.result;_.en(t,2);return t.yield(L3p(W,
C),4)}if(t.nextAddress!=2)return k=t.yieldResult,H.handleImageUpdatedAction(p,k),H.resetErrorState(),_.xB(t,0);R=_.Vx(t);H.setErrorState((L=H.data)==null?void 0:L.uploadErrorMessage);if(R instanceof Error)_.nC(R);else{var g=new _.X0(JSON.stringify(R));_.nC(g)}_.oT(t)})}),y.readAsDataURL(W),_.xB(u,0);
N=_.Vx(u);H.setErrorState((b=H.data)==null?void 0:b.genericImageLoadErrorMessage);N instanceof Error?_.nC(N):_.rv(new _.X0(JSON.stringify(N)));_.oT(u)})}),function(){H.hideContainer=!1;
document.body.style.colorScheme=w});
_.en(Y,2);return((J=H.data)==null?0:J.shouldViewChannelCreationFormForSupex)?Y.yield(A.openPicker("profile-picture/art-selection"),5):Y.yield(A.openPicker(),5)}if(Y.nextAddress!=2)return _.xB(Y,0);_.Vx(Y);H.setErrorState((c=H.data)==null?void 0:c.selectImageErrorMessage);_.oT(Y)})};
_.F.pictureChangeSourceToObakeImageSourceType=function(H){switch(H){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.F.logScreenVe=function(){_.kP(_.lJ(),124448)};
_.F.graftServerVe=function(){var H=_.BM(),C,S,w=(C=this.data)==null?void 0:(S=C.loggingDirectives)==null?void 0:S.trackingParams;w&&H&&(this.channelCreationFormVe=_.lJ().graftServerVe(w,H),H={visualElement:this.channelCreationFormVe},_.f7().reportShown(H))};
_.F.isNameChanged=function(H){var C;return((C=this.data)==null?void 0:C.name)!==H};
_.F.isHandleChanged=function(H){var C,S=_.e((C=this.data)==null?void 0:C.channelHandleInput,AvO);return S&&H?S.handle!==H:!1};
_.F.handleImageUpdatedAction=function(H,C){this.hideContainer=!1;this.previewDataUrl=H;this.encryptedBlobId=C};
_.F.handleImageSelectionErrorAction=function(H){this.hideContainer=!1;this.setErrorState(H)};
_.F.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.F.showContainer=function(){this.hideContainer=!1};
_.F.maybeWipeZeroStepErrorMessage=function(){var H,C=(H=this.data)==null?void 0:H.zeroStepErrorMessageEntityKey,S;C&&((S=this.zeroStepErrorMessageEntity)==null?0:S.value)&&this.ytdReduxBehavior.dispatch(_.O5("stringEntity",C,{key:C,value:""}))};
_.JJ.Object.defineProperties(OV.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 H;return((H=this.photoThumbnail)==null?0:H.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 H;return!((H=this.data)==null||!H.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.descriptionInfo}}});
OV.prototype.dataChanged=OV.prototype.dataChanged;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],OV.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],OV.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],OV.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],OV.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],OV.prototype,"errorMessage",void 0);
_.D([_.V(),_.K("design:type",Object)],OV.prototype,"isLoading",void 0);_.D([_.V(),_.K("design:type",String)],OV.prototype,"previewDataUrl",void 0);_.D([_.V(),_.K("design:type",Number)],OV.prototype,"obakeImageSource",void 0);_.D([_.V(),_.K("design:type",Object)],OV.prototype,"hideContainer",void 0);_.D([_.lA("#title-input"),_.K("design:type",Object)],OV.prototype,"nameInput",void 0);_.D([_.lA("#handle-input"),_.K("design:type",Object)],OV.prototype,"handleInput",void 0);
_.D([_.V(),_.K("design:type",Boolean)],OV.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.D([_.V({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.Lt$}),_.K("design:type",Object)],OV.prototype,"zeroStepErrorMessageEntity",void 0);_.D([_.l("data","data.isDefaultProfilePhoto","previewDataUrl"),_.K("design:type",Object),_.K("design:paramtypes",[])],OV.prototype,"photoThumbnail",null);
_.D([_.l("data","data.isDefaultProfilePhoto","photoThumbnail"),_.K("design:type",Object),_.K("design:paramtypes",[])],OV.prototype,"userSetPhotoThumbnailUrl",null);_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],OV.prototype,"hideProfilePhotoButtonLayer",null);_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],OV.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.D([_.XJ("data","zeroStepErrorMessageEntity"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],OV.prototype,"dataChanged",null);_.D([_.V({reflectToAttribute:!0}),_.l("data.descriptionInfo","zeroStepErrorMessageEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],OV.prototype,"description",null);_.D([_.h({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],OV);
_.B(OV,"ytd-channel-creation-dialog-renderer",function(){if(tVi!==void 0)return tVi;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return tVi=H},{mode:1});var gyq;var XM=function(){var H=_.X.apply(this,arguments)||this;H.isLoading=!1;H.isDisabled=!1;return H};
_.G(XM,_.X);XM.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
XM.prototype.updateDisabled=function(){var H;this.isDisabled=this.isLoading||((H=this.handleInput)==null?void 0:H.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
XM.prototype.onSaveClick=function(){var H=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var C;((C=this.data)==null?void 0:C.editChannelHandleEndpoint)!==void 0&&(this.errorMessage=void 0,this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.editChannelHandleEndpoint,{form:{handle:this.handleInput.value},commandController:{onSuccess:function(){var S;if((S=H.data)==null?0:S.nextEndpoint){var w;H.ytComponentBehavior.resolveCommand((w=H.data)==null?void 0:w.nextEndpoint)}else H.isLoading=
!1,H.closeDialog()},
onServerError:function(){H.isLoading=!1;H.handleInput.validate();var S;H.errorMessage=(S=H.data)==null?void 0:S.errorMessage}}}))}};
XM.prototype.closeDialog=function(){_.q3(this.hostElement,"yt-close-popup-action",[this.is])};
XM.prototype.updateDisabled=XM.prototype.updateDisabled;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],XM.prototype,"ytComponentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],XM.prototype,"data",void 0);_.D([_.lA("#handle-input"),_.K("design:type",Object)],XM.prototype,"handleInput",void 0);_.D([_.fx("isLoading"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],XM.prototype,"updateDisabled",null);
_.D([_.h({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],XM);
_.B(XM,"ytd-channel-handle-edit-dialog-renderer",function(){if(gyq!==void 0)return gyq;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return gyq=H},{mode:1});var Uki;var $Y=function(){return _.X.apply(this,arguments)||this};
_.G($Y,_.X);$Y.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],$Y.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],$Y.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],$Y.prototype,"data",void 0);_.D([_.h({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],$Y);
_.B($Y,"ytd-channel-switcher-footer-renderer",function(){if(Uki!==void 0)return Uki;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return Uki=H},{mode:1});var RH9;var IU_;var pK=function(){return _.X.apply(this,arguments)||this};
_.G(pK,_.X);pK.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
pK.prototype.onIronChange=pK.prototype.onIronChange;_.D([_.V(),_.K("design:type",Object)],pK.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!1}),_.K("design:type",Function)],pK.prototype,"onDontAskAgainChanged",void 0);_.D([_.lA("#checkbox"),_.K("design:type",Object)],pK.prototype,"checkbox",void 0);_.D([_.Gz("iron-change"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pK.prototype,"onIronChange",null);
_.D([_.h({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],pK);
_.B(pK,"ytd-identity-prompt-footer-renderer",function(){if(IU_!==void 0)return IU_;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return IU_=H},{mode:1});var kY=function(){var H=_.X.apply(this,arguments)||this;H.dontAskAgain=!1;H.showPopup=!1;H.boundDontAskAgainChanged=function(C){H.dontAskAgainChanged(C)};
H.boundOnAccountItemTap=function(C){H.onAccountItemTap(C)};
return H};
_.G(kY,_.X);_.F=kY.prototype;
_.F.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]]"}}}}}};
_.F.ready=function(){var H=this;_.mY(this.hostElement).querySelector("#container").addEventListener("scroll",function(){H.ytRendererBehavior.markDirty()})};
_.F.dontAskAgainChanged=function(H){this.dontAskAgain=H};
_.F.onAccountItemTap=function(H){if(H){var C={};this.dontAskAgain&&(C={dont_ask_again:this.dontAskAgain});_.Cx(H,C)}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.F.redirectOnlyAccount=function(H){H.sections&&H.sections.length>0&&(H=_.e(H.sections[0],_.FaW),(H==null?0:H.contents)&&(H==null?void 0:H.contents.length)<=1?(H=_.xT(window.location.href),(H==null?0:H.next)&&_.kou(H.next)?_.Cx(H.next):_.Cx("/")):this.showPopup=!0)};
kY.prototype.dataChanged=kY.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],kY.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],kY.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],kY.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!1}),_.K("design:type",Object)],kY.prototype,"dontAskAgain",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],kY.prototype,"showPopup",void 0);_.D([_.V({reflectToAttribute:!1}),_.K("design:type",Object)],kY.prototype,"boundDontAskAgainChanged",void 0);_.D([_.V({reflectToAttribute:!1}),_.K("design:type",Object)],kY.prototype,"boundOnAccountItemTap",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],kY.prototype,"dataChanged",null);
_.D([_.h({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],kY);
_.B(kY,"ytd-channel-switcher-renderer",function(){if(RH9!==void 0)return RH9;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return RH9=H},{mode:1});var aUi;var hQ=function(){return _.X.apply(this,arguments)||this};
_.G(hQ,_.X);_.JJ.Object.defineProperties(hQ.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.D([_.V(),_.K("design:type",Object)],hQ.prototype,"data",void 0);_.D([_.l("data"),_.K("design:type",Array),_.K("design:paramtypes",[])],hQ.prototype,"steps",null);_.D([_.h({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],hQ);
_.B(hQ,"ytd-channel-transfer-stepper-renderer",function(){if(aUi!==void 0)return aUi;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return aUi=H},{mode:1});var xkr;var nK=function(){var H=_.X.apply(this,arguments)||this;H.data=null;H.isError=!1;H.isLoading=!1;return H};
_.G(nK,_.X);_.F=nK.prototype;_.F.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"}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.F.computeProfileName=function(H){return H?H.givenNameValue+" "+H.familyNameValue:""};
_.F.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)};
_.F.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)};
nK.prototype.onYtServiceRequestError=nK.prototype.onYtServiceRequestError;nK.prototype.onYtServiceRequestSent=nK.prototype.onYtServiceRequestSent;nK.prototype.dataChanged=nK.prototype.dataChanged;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],nK.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],nK.prototype,"data",void 0);
_.D([_.V({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.K("design:type",String)],nK.prototype,"profileName",void 0);_.D([_.V(),_.K("design:type",Object)],nK.prototype,"isError",void 0);_.D([_.V(),_.K("design:type",Object)],nK.prototype,"isLoading",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],nK.prototype,"dataChanged",null);
_.D([_.Gz("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.IW]),_.K("design:returntype")],nK.prototype,"onYtServiceRequestSent",null);_.D([_.Gz("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.IW]),_.K("design:returntype")],nK.prototype,"onYtServiceRequestError",null);_.D([_.h({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],nK);
_.B(nK,"ytd-channel-warm-welcome-cont-renderer",function(){if(xkr!==void 0)return xkr;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return xkr=H},{mode:1});var H1O;var rJ=function(){var H=_.X.apply(this,arguments)||this;H.data=null;return H};
_.G(rJ,_.X);rJ.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
rJ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],rJ.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],rJ.prototype,"data",void 0);_.D([_.h({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],rJ);
_.B(rJ,"ytd-channel-warm-welcome-renderer",function(){if(H1O!==void 0)return H1O;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return H1O=H},{mode:1});var i19;var Bi=function(){return _.X.apply(this,arguments)||this};
_.G(Bi,_.X);_.JJ.Object.defineProperties(Bi.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.authorThumbnail)||{}}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Bi.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Bi.prototype,"data",void 0);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Bi.prototype,"thumbnailDetails",null);_.D([_.h({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],Bi);
_.B(Bi,"ytd-comment-preview-renderer",function(){if(i19!==void 0)return i19;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return i19=H},{mode:1});var CT_;var D7=function(){return _.X.apply(this,arguments)||this};
_.G(D7,_.X);D7.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.JJ.Object.defineProperties(D7.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.submitButton}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],D7.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],D7.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],D7.prototype,"data",void 0);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],D7.prototype,"submitButton",null);_.D([_.h({is:"ytd-notice-renderer",disableElementRegistration:!0})],D7);
_.B(D7,"ytd-notice-renderer",function(){if(CT_!==void 0)return CT_;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return CT_=H},{mode:1});var SRr;var KK=function(){return _.X.apply(this,arguments)||this};
_.G(KK,_.X);KK.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],KK.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],KK.prototype,"data",void 0);_.D([_.h({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],KK);
_.B(KK,"ytd-preview-comment-dialog-content",function(){if(SRr!==void 0)return SRr;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return SRr=H},{mode:1});var sCR;var tQ=function(){return _.X.apply(this,arguments)||this};
_.G(tQ,_.X);tQ.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
tQ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],tQ.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],tQ.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],tQ.prototype,"data",void 0);_.D([_.h({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],tQ);
_.B(tQ,"ytd-preview-comment-dialog-renderer",function(){if(sCR!==void 0)return sCR;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return sCR=H},{mode:1});var jCR;var wLo=_.E("web_button_rework")&&_.Bh("BUTTON_REWORK")||_.E("web_button_rework_with_live"),LK=function(){var H=_.X.apply(this,arguments)||this;H.closeLabel=_.fL("CLOSE");H.selectedAmountIndex=1;H.privacyCheckboxValue=!1;H.useAmsterdamStyle=wLo;H.amountPlaceholderIndex=-1;return H};
_.G(LK,_.X);_.F=LK.prototype;_.F.onAmountClick=function(H){this.selectedAmountIndex=_.mY(this.hostElement).querySelector("#amounts").indexForElement(H.currentTarget)};
_.F.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.q3(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.F.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.q3(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.q3(this.hostElement,"yt-close-popup-action",[this.is]);var H;(H=_.Zz())==null||H.getPlayerPromise().then(function(C){C.pauseVideo()})}};
_.F.donationCallback=function(H){H.success?(this.hostElement.hasAttribute("live-chat")&&H.response&&H.response.data&&H.response.data.actions&&_.q3(this.hostElement,"yt-live-chat-open-popup",[H.response.data.actions[0]]),_.q3(this.hostElement,"yt-close-popup-action",[this.is]),_.q3(this.hostElement,"yt-live-chat-close-buy-flow")):H.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(H.errorMessageRenderer)};
_.F.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.mY(this.hostElement).querySelector("#custom-amount-input").focus()};
_.F.updateConfirmationDialogTextWithAmount=function(H){var C=this.getConfirmDialogRuns();C&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(C),"text"],this.getFormattedAmount(H))};
_.F.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.F.getAmountPlaceholderIndex=function(H){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=H.findIndex(function(C){return C.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.F.getFormattedAmount=function(H){var C;return(new _.x6(4,((C=this.data)==null?void 0:C.currencyCode)||"")).format(H)};
_.F.isAmountValid=function(H){if(H==="")return!1;H=Number(H)*1E6;var C=this.get("minAmountMicros",this.data),S=this.get("maxAmountMicros",this.data);return C&&H<C||S&&H>S?!1:!0};
_.F.setInputError=function(){this.shouldShowValidationError?_.mY(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.mY(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.F.setInitialCheckboxValue=function(){var H;this.privacyCheckboxValue=!((H=this.data)==null||!H.privacyCheckboxInitialState)};
_.F.updateCustomAmountInputFromBinding=function(H){this.customAmountInput=H.detail.value};
_.F.updatePrivacyCheckboxValueFromBinding=function(H){this.privacyCheckboxValue=H.detail.value};
_.JJ.Object.defineProperties(LK.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var H=this,C,S;return((C=this.data)==null?void 0:(S=C.suggestedAmounts)==null?void 0:S.map(function(w,A){return{buttonRenderer:{style:H.selectedAmountIndex===A?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:w.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 H;return!((H=this.data)==null||!H.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 H=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(H&&this.amountMicros!==null)return Object.assign({},H,{ypcGetCartEndpoint:Object.assign({},H.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 H=this.get("confirmLargeAmount",this.data);if(H&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),H}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var H=this.get("donateButton.buttonRenderer",this.data);if(H)return Object.assign({},H,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
LK.prototype.setInitialCheckboxValue=LK.prototype.setInitialCheckboxValue;LK.prototype.setInputError=LK.prototype.setInputError;LK.prototype.setFocusOnCustomAmountInput=LK.prototype.setFocusOnCustomAmountInput;_.D([_.v(M__),_.K("design:type",Object)],LK.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],LK.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],LK.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],LK.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],LK.prototype,"closeLabel",void 0);_.D([_.V(),_.K("design:type",Object)],LK.prototype,"selectedAmountIndex",void 0);_.D([_.V(),_.K("design:type",String)],LK.prototype,"customAmountInput",void 0);_.D([_.V(),_.K("design:type",Object)],LK.prototype,"privacyCheckboxValue",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],LK.prototype,"useAmsterdamStyle",void 0);_.D([_.fx("customAmount"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],LK.prototype,"setFocusOnCustomAmountInput",null);_.D([_.l("data","selectedAmountIndex"),_.K("design:type",Array),_.K("design:paramtypes",[])],LK.prototype,"suggestedAmountButtons",null);
_.D([_.l("data","selectedAmountIndex"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],LK.prototype,"isCustomAmountSelected",null);_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],LK.prototype,"showPrivacyCheckbox",null);_.D([_.l("data","selectedAmountIndex","customAmount"),_.K("design:type",Object),_.K("design:paramtypes",[])],LK.prototype,"amountMicros",null);
_.D([_.l("isCustomAmountSelected","customAmountInput"),_.K("design:type",Object),_.K("design:paramtypes",[])],LK.prototype,"customAmount",null);_.D([_.l("customAmount"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],LK.prototype,"shouldShowValidationError",null);_.D([_.l("customAmount"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],LK.prototype,"isDonateButtonEnabled",null);
_.D([_.l("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.K("design:type",Object),_.K("design:paramtypes",[])],LK.prototype,"donateCommand",null);_.D([_.l("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.K("design:type",Object),_.K("design:paramtypes",[])],LK.prototype,"donateCommandWithConfirmation",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],LK.prototype,"largeDonationThreshold",null);
_.D([_.l("customAmount","donateCommand","amountMicros"),_.K("design:type",Object),_.K("design:paramtypes",[])],LK.prototype,"confirmLargeAmountCommand",null);_.D([_.l("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.K("design:type",Object),_.K("design:paramtypes",[])],LK.prototype,"donateButtonRenderer",null);_.D([_.fx("shouldShowValidationError"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],LK.prototype,"setInputError",null);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],LK.prototype,"setInitialCheckboxValue",null);_.D([_.h({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],LK);
_.B(LK,"ytd-donation-amount-picker-renderer",function(){if(jCR!==void 0)return jCR;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return jCR=H},{mode:1});var Aji;var gJ=function(){return _.X.apply(this,arguments)||this};
_.G(gJ,_.X);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],gJ.prototype,"ytComponentBehavior",void 0);_.D([_.V({}),_.K("design:type",Object)],gJ.prototype,"data",void 0);_.D([_.h({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],gJ);
_.B(gJ,"ytd-donation-post-transaction-content",function(){if(Aji!==void 0)return Aji;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Aji=H},{mode:1});var Jjt;var UV=function(){return _.X.apply(this,arguments)||this};
_.G(UV,_.X);UV.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],UV.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],UV.prototype,"ytRendererBehavior",void 0);_.D([_.V({}),_.K("design:type",Object)],UV.prototype,"data",void 0);_.D([_.h({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],UV);
_.B(UV,"ytd-donation-post-transaction-renderer",function(){if(Jjt!==void 0)return Jjt;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return Jjt=H},{mode:1});var F0i;var Z1O;var RQ=function(){return _.X.apply(this,arguments)||this};
_.G(RQ,_.X);RQ.prototype.computeIsStreamingProvider=function(H){return!!H.isStreamingShelf};
RQ.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],RQ.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],RQ.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],RQ.prototype,"data",void 0);_.D([_.V({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],RQ.prototype,"isStreamingProvider",void 0);
_.D([_.h({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],RQ);
_.B(RQ,"ytd-media-provider-renderer",function(){if(Z1O!==void 0)return Z1O;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Z1O=H},{mode:1});var cjp;var IQ=function(){return _.X.apply(this,arguments)||this};
_.G(IQ,_.X);IQ.prototype.observeLightsourcePalette=function(){var H,C=(H=this.data)==null?void 0:H.vibrantsourceColorPaletteData;C&&_.pu(this.hostElement,C)};
IQ.prototype.observeLightsourcePalette=IQ.prototype.observeLightsourcePalette;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],IQ.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],IQ.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],IQ.prototype,"data",void 0);
_.D([_.fx("data.vibrantsourceColorPaletteData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],IQ.prototype,"observeLightsourcePalette",null);_.D([_.h({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],IQ);
_.B(IQ,"ytd-streaming-pop-up-dialog",function(){if(cjp!==void 0)return cjp;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return cjp=H},{mode:1});var aQ=function(){return _.X.apply(this,arguments)||this};
_.G(aQ,_.X);aQ.prototype.onPopupOpened_=function(){var H;((H=this.data)==null?0:H.serviceEndpoint)&&_.JA().resolve(_.ZQ).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
aQ.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
aQ.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"}}}}};
aQ.prototype.onPopupOpened_=aQ.prototype.onPopupOpened_;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],aQ.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],aQ.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.EH),_.K("design:type",Object)],aQ.prototype,"ytContinuationHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],aQ.prototype,"data",void 0);
_.D([_.Gz("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],aQ.prototype,"onPopupOpened_",null);_.D([_.h({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],aQ);
_.B(aQ,"ytd-brandconnect-popup-renderer",function(){if(F0i!==void 0)return F0i;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return F0i=H},{mode:1});var YR_;var xY=function(){return _.X.apply(this,arguments)||this};
_.G(xY,_.X);_.F=xY.prototype;_.F.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.dataChanged=function(){for(var H=0;H<this.getOptionRenderers().length;H++)this.notifyPath("data.options."+H+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+H+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.F.updateSubmitButton=function(H){this.set("data.submitButton.buttonRenderer.isDisabled",!H)};
_.F.computeAlt=function(H){return _.jt(H)};
_.F.onDismissTap=function(){_.q3(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.JA().resolve(_.ZQ).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.F.getOptionRenderers=function(H){return(H=H||this.data)&&H.options?H.options.reduce(function(C,S){S.checkboxSurveyOptionRenderer&&C.push(S.checkboxSurveyOptionRenderer);return C},[]):[]};
_.F.onOptionChange=function(H){var C=this,S=!1;if(H.detail.checked)for(var w=this.getOptionRenderers().find(function(Y){return Y.value===H.detail.value}),A=this.getOptionRenderers(),J=0;J<A.length;J++){var c=A[J];
this.notifyPath("data.options."+J+".checkboxSurveyOptionRenderer.checked");c.checked&&((w==null?0:w.isExclusiveOption)?!c.isExclusiveOption:c.isExclusiveOption)?this.set("data.options."+J+".checkboxSurveyOptionRenderer.checked",!1):c.checked&&(S=!0)}else S=this.getOptionRenderers().some(function(Y,M){C.notifyPath("data.options."+M+".checkboxSurveyOptionRenderer.checked");return Y.checked});
this.updateSubmitButton(S)};
_.F.onSubmitTap=function(){var H=this.getOptionRenderers().filter(function(J){return J.checked});
if(H.length!==0){var C=H.map(function(J){return J.responseEndpoint});
H=[];for(var S=1;S<C.length;S++){var w=void 0,A=(w=_.e(C[S],_.dR))==null?void 0:w.feedbackToken;A&&H.push(A)}C=[C[0]];H.length&&C.push({extra_feedback_tokens:H});_.WH(this.hostElement,C);_.q3(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);H=this.data&&this.data.submitActions||[];if(_.E("kevlar_command_handler_migration_killswitch"))_.yN(this.hostElement,H,this.hostElement);else for(H=_.Z(H),C=H.next();!C.done;C=H.next())this.ytComponentBehavior.resolveCommand(C.value)}};
xY.prototype.onOptionChange=xY.prototype.onOptionChange;xY.prototype.dataChanged=xY.prototype.dataChanged;_.D([_.v(_.ie.YtEventForwardingBehavior),_.K("design:type",Object)],xY.prototype,"ytEventForwardingBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],xY.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],xY.prototype,"ytComponentBehavior",void 0);
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],xY.prototype,"ytRendererBehavior",void 0);_.D([_.v(XGo),_.K("design:type",Object)],xY.prototype,"ytdHatsSurveyBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],xY.prototype,"data",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xY.prototype,"dataChanged",null);
_.D([_.Gz("ytd-checkbox-survey-option-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],xY.prototype,"onOptionChange",null);_.D([_.h({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],xY);
_.B(xY,"ytd-checkbox-survey-renderer",function(){if(YR_!==void 0)return YR_;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return YR_=H},{mode:1});var za9;var MO9;var HR=function(){return _.X.apply(this,arguments)||this};
_.G(HR,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],HR.prototype,"ytRendererBehavior",void 0);_.D([_.v(Ot9),_.K("design:type",Object)],HR.prototype,"ytdDismissalReasonBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],HR.prototype,"data",void 0);_.D([_.h({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],HR);
_.B(HR,"ytd-dismissal-reason-text-renderer",function(){if(MO9!==void 0)return MO9;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return MO9=H},{mode:1});var qRi;var iF=function(){return _.X.apply(this,arguments)||this};
_.G(iF,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],iF.prototype,"ytRendererBehavior",void 0);_.D([_.v(Ot9),_.K("design:type",Object)],iF.prototype,"ytdDismissalReasonBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],iF.prototype,"data",void 0);_.D([_.h({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],iF);
_.B(iF,"ytd-dismissal-reason-video-renderer",function(){if(qRi!==void 0)return qRi;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return qRi=H},{mode:1});var C_=function(){var H=_.X.apply(this,arguments)||this;H.darkerDarkTheme=_.E("web_darker_dark_theme");return H};
_.G(C_,_.X);_.F=C_.prototype;_.F.created=function(){this.selectedFeedbackTokens=new U9};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.F.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.F.onDismissalReasonSelected=function(H,C){_.M3(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(C);this.hasReasonsSelected=!0};
_.F.onDismissalReasonDeselected=function(H,C){_.M3(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(C);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.F.onCancelTap=function(){_.q3(this.hostElement,"yt-close-popup-action")};
_.F.onSubmitTap=function(){var H=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(H={feedback_tokens:H},_.JA().resolve(_.ZQ).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},H,{element:this.hostElement})}));_.q3(this.hostElement,"yt-close-popup-action")};
C_.prototype.onDismissalReasonDeselected=C_.prototype.onDismissalReasonDeselected;C_.prototype.onDismissalReasonSelected=C_.prototype.onDismissalReasonSelected;C_.prototype.dataChanged=C_.prototype.dataChanged;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],C_.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],C_.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],C_.prototype,"data",void 0);
_.D([_.V(),_.K("design:type",Boolean)],C_.prototype,"hasReasonsSelected",void 0);_.D([_.V(),_.K("design:type",U9)],C_.prototype,"selectedFeedbackTokens",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],C_.prototype,"darkerDarkTheme",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],C_.prototype,"dataChanged",null);
_.D([_.Gz("yt-dismissal-reason-selected"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,String]),_.K("design:returntype")],C_.prototype,"onDismissalReasonSelected",null);_.D([_.Gz("yt-dismissal-reason-deselected"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,String]),_.K("design:returntype")],C_.prototype,"onDismissalReasonDeselected",null);_.D([_.h({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],C_);
_.B(C_,"ytd-dismissal-follow-up-renderer",function(){if(za9!==void 0)return za9;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return za9=H},{mode:1});var TGR;var Se=function(){return _.X.apply(this,arguments)||this};
_.G(Se,_.X);_.F=Se.prototype;_.F.onCheckedChange=function(){this.multiselect||_.M3(this.hostElement,"yt-feedback-single-select-changed");_.mY(this.hostElement).querySelector("#freeform").focus();_.M3(this.hostElement,"yt-refit")};
_.F.showTextBox=function(H,C){return H&&C};
_.F.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))};
_.F.updateDataCheckedFromBinding=function(H){this.set("data.checked",H.detail.value)};
_.F.updateDataResultTextFromBinding=function(H){this.set("data.resultText",H.detail.value)};
Se.prototype.dataChanged=Se.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Se.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Se.prototype,"data",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],Se.prototype,"multiselect",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Se.prototype,"dataChanged",null);
_.D([_.h({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],Se);
_.B(Se,"ytd-feedback-option-renderer",function(){if(TGR!==void 0)return TGR;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return TGR=H},{mode:1});var mwi;var sJ=function(){return _.X.apply(this,arguments)||this};
_.G(sJ,_.X);sJ.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
sJ.prototype.onSingleSelectCheckedChanged=function(H){H=_.Jr(H);for(var C=0;C<this.data.options.length;C++)if(H.data!==_.e(this.data.options[C],grO)){var S="data.options."+C+".feedbackOptionRenderer.checked";this.notifyPath(S);this.set(S,!1)}};
sJ.prototype.onSingleSelectCheckedChanged=sJ.prototype.onSingleSelectCheckedChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],sJ.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],sJ.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],sJ.prototype,"data",void 0);
_.D([_.Gz("yt-feedback-single-select-changed"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],sJ.prototype,"onSingleSelectCheckedChanged",null);_.D([_.h({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],sJ);
_.B(sJ,"ytd-feedback-question-renderer",function(){if(mwi!==void 0)return mwi;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return mwi=H},{mode:1});var W0q;var je=function(){return _.X.apply(this,arguments)||this};
_.G(je,_.X);je.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
je.prototype.getSelectedFeedbackResults=function(){for(var H={},C=0;C<this.data.questions.length;C++)for(var S=_.e(this.data.questions[C],Lw3),w=0;w<S.options.length;w++){var A=_.e(S.options[w],grO);A&&A.checked&&(H[A.optionKey]=A.resultText)}return H};
je.prototype.onKeyUp=function(){var H=this;_.Ns(_.rT,function(){_.M3(H.hostElement,"yt-refit")});
_.rT.start()};
je.prototype.submitSurvey=function(){var H=this.getSelectedFeedbackResults();Object.keys(H).length>0&&this.data.submitFeedbackEndpoint&&(H={survey_results:H,is_feedback_token_unencrypted:!0},_.JA().resolve(_.ZQ).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},H,{element:this.hostElement})}))};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],je.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],je.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],je.prototype,"data",void 0);_.D([_.h({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],je);
_.B(je,"ytd-feedback-survey-renderer",function(){if(W0q!==void 0)return W0q;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return W0q=H},{mode:1});var yjO;var NG_;var wX=function(){return _.X.apply(this,arguments)||this};
_.G(wX,_.X);wX.prototype.computeAlt=function(H){return _.jt(H)};
wX.prototype.submitResponse=function(){var H,C;(H=this.data)!=null&&H.feedbackToken&&((C=this.data)==null?void 0:C.nextStageIndex)!==void 0&&(_.m7(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.m7(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
wX.prototype.onClick=function(){this.submitResponse()};
wX.prototype.onClick=wX.prototype.onClick;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],wX.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],wX.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],wX.prototype,"vertical",void 0);_.D([_.Gz("click"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wX.prototype,"onClick",null);
_.D([_.h({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],wX);
_.B(wX,"ytd-single-select-answer-option-renderer",function(){if(NG_!==void 0)return NG_;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return NG_=H},{mode:1});var b1K;var AL=function(){var H=_.X.apply(this,arguments)||this;H.darkerDarkTheme=_.E("web_darker_dark_theme");H.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return H};
_.G(AL,_.X);AL.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
AL.prototype.dataChanged=function(){var H,C;this.vertical=((C=(H=this.data)==null?void 0:H.answerOrientation)!=null?C:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
AL.prototype.submitFeedback=function(H){var C;((C=this.data)==null?0:C.responseEndpoint)&&H&&_.WH(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[H]}])};
AL.prototype.dataChanged=AL.prototype.dataChanged;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],AL.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.ie.YtEventForwardingBehavior),_.K("design:type",Object)],AL.prototype,"eventForwardingBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],AL.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],AL.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],AL.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],AL.prototype,"vertical",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],AL.prototype,"darkerDarkTheme",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],AL.prototype,"dataChanged",null);_.D([_.h({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],AL);
_.B(AL,"ytd-single-select-question-renderer",function(){if(b1K!==void 0)return b1K;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return b1K=H},{mode:1});var JL=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return H};
_.G(JL,_.X);_.F=JL.prototype;_.F.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"}}}};
_.F.dataChanged=function(){this.jumpToStage(0)};
_.F.jumpToStage=function(H){var C,S;if((C=this.data)==null?0:(S=C.stages)==null?0:S[H])this.currentStage=this.data.stages[H],this.refitAfterRender()};
_.F.computeAlt=function(H){return _.jt(H)};
_.F.computeSimpleMessage=function(H){var C;return(C=_.e(H,I$_))==null?void 0:C.messageText};
_.F.computeHideDismiss=function(H){var C;return(C=_.e(H,Er9))==null?void 0:C.hideParentDismissButton};
_.F.onDismissTap=function(){_.q3(this.hostElement,"yt-close-popup-action");_.e(this.currentStage,I$_)||this.data.dismissalEndpoint&&_.JA().resolve(_.ZQ).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.F.refitAfterRender=function(){var H=this;_.wM(this,function(){_.M3(H.hostElement,"yt-refit")})};
JL.prototype.dataChanged=JL.prototype.dataChanged;_.D([_.v(_.ie.YtEventForwardingBehavior),_.K("design:type",Object)],JL.prototype,"eventForwardingBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],JL.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],JL.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],JL.prototype,"ytActionHandlerBehavior",void 0);
_.D([_.v(XGo),_.K("design:type",Object)],JL.prototype,"ytdHatsSurveyBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],JL.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],JL.prototype,"currentStage",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],JL.prototype,"dataChanged",null);_.D([_.h({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],JL);
_.B(JL,"ytd-multi-stage-survey-renderer",function(){if(yjO!==void 0)return yjO;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return yjO=H},{mode:1});var Ear;var Fo=function(){return _.X.apply(this,arguments)||this};
_.G(Fo,_.X);Fo.prototype.computeAlt=function(H){return _.jt(H)};
Fo.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.JA().resolve(_.ZQ).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.q3(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.xQ_(!1)))};
Fo.prototype.onTap=function(){this.vertical&&this.submitResponse()};
Fo.prototype.onTap=Fo.prototype.onTap;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Fo.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],Fo.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Fo.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],Fo.prototype,"vertical",void 0);
_.D([_.Gz("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Fo.prototype,"onTap",null);_.D([_.h({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],Fo);
_.B(Fo,"ytd-single-option-survey-option-renderer",function(){if(Ear!==void 0)return Ear;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Ear=H},{mode:1});var eao;var Zc=function(){return _.X.apply(this,arguments)||this};
_.G(Zc,_.X);_.F=Zc.prototype;_.F.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.dataChanged=function(){var H,C;this.vertical=(((H=this.data)==null?void 0:(C=H.surveyOrientation)==null?void 0:C.type)||"HORIZONTAL")==="VERTICAL"};
_.F.computeAlt=function(H){return _.jt(H)};
_.F.onDismissTap=function(){_.q3(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.JA().resolve(_.ZQ).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.xQ_(!1))};
Zc.prototype.dataChanged=Zc.prototype.dataChanged;_.D([_.v(_.ie.YtEventForwardingBehavior),_.K("design:type",Object)],Zc.prototype,"eventForwardingBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Zc.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Zc.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(XGo),_.K("design:type",Object)],Zc.prototype,"ytdHatsSurveyBehavior",void 0);
_.D([_.v(_.q$),_.K("design:type",Object)],Zc.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Zc.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],Zc.prototype,"vertical",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Zc.prototype,"dataChanged",null);_.D([_.h({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],Zc);
_.B(Zc,"ytd-single-option-survey-renderer",function(){if(eao!==void 0)return eao;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return eao=H},{mode:1});var u3p;var cR=function(){var H=_.X.apply(this,arguments)||this;H.darkerDarkTheme=_.E("web_darker_dark_theme");return H};
_.G(cR,_.X);cR.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
cR.prototype.onDismissTap=function(){_.q3(this.hostElement,"yt-close-popup-action")};
cR.prototype.onNavigate=function(){_.q3(this.hostElement,"yt-close-popup-action")};
cR.prototype.onNavigate=cR.prototype.onNavigate;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],cR.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.ie.YtEventForwardingBehavior),_.K("design:type",Object)],cR.prototype,"ytEventForwardingBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],cR.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],cR.prototype,"darkerDarkTheme",void 0);
_.D([_.Gz("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cR.prototype,"onNavigate",null);_.D([_.h({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],cR);
_.B(cR,"ytd-survey-follow-up-renderer",function(){if(u3p!==void 0)return u3p;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return u3p=H},{mode:1});var GIO;var fXt;var vat;var Yk=function(){var H=_.X.apply(this,arguments)||this;H.polymer2="Element"in Polymer;return H};
_.G(Yk,_.X);_.F=Yk.prototype;_.F.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.F.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.F.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.F.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uQ("minutes-changed",this.minutes))};
_.F.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uQ("seconds-changed",this.seconds))};
_.F.updateMinutesFromBinding=function(H){this.minutes=H.detail.value};
_.F.updateSecondsFromBinding=function(H){this.seconds=H.detail.value};
Yk.prototype.secondsChangedForBinding=Yk.prototype.secondsChangedForBinding;Yk.prototype.minutesChangedForBinding=Yk.prototype.minutesChangedForBinding;Yk.prototype.secondsChanged=Yk.prototype.secondsChanged;_.D([_.V(),_.K("design:type",String)],Yk.prototype,"minutes",void 0);_.D([_.V(),_.K("design:type",String)],Yk.prototype,"seconds",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],Yk.prototype,"polymer2",void 0);
_.D([_.lA("#seconds"),_.K("design:type",Object)],Yk.prototype,"secondsEl",void 0);_.D([_.fx("seconds"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Yk.prototype,"secondsChanged",null);_.D([_.fx("minutes"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Yk.prototype,"minutesChangedForBinding",null);
_.D([_.fx("seconds"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Yk.prototype,"secondsChangedForBinding",null);_.D([_.Lx({is:"yt-timestamp-input",disableElementRegistration:!0})],Yk);
_.B(Yk,"yt-timestamp-input",function(){if(vat===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;fXt===void 0&&(fXt=document.createElement("template"));var w=fXt;S.call(C,w.content.cloneNode(!0),H.content.firstChild);vat=H}H=vat;return H},{mode:2});var ze=function(){return _.X.apply(this,arguments)||this};
_.G(ze,_.X);_.F=ze.prototype;_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20384_scroller.dialogElement=this.hostElement.parentNode};
_.F.dataChanged=function(){var H=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.ct().getPlayerPromise().then(function(C){C=C.getCurrentTime();H.minutes=Math.floor(C/60).toString();H.seconds=(Math.floor(C)%60).toString()})};
_.F.onTapSubmit=function(H){H.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(H={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(H.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(H.minutes=this.minutes,H.seconds=this.seconds),_.JA().resolve(_.ZQ).resolveCommand(this.serviceEndpoint,{form:Object.assign({},H,{element:this.hostElement})}))};
_.F.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.F.onYtServiceRequestCompleted=function(H,C){C=C.actions;if(Array.isArray(C))for(var S=0,w=C.length;S<w;S++)_.e(C[S],_.Uy)&&(H.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(C[S]))};
_.F.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.F.toggleSubmitButton=function(H){this.set("submitButton.isDisabled",!H)};
_.F.handleInput=function(){var H=this.issueType,C=this.affiliation,S=this.minutes,w=this.seconds;S=!this.showTimestamp||!!S&&!!w;this.toggleSubmitButton(!!this.descriptionText&&!!H&&!!C&&S)};
_.F.computeServiceEndpoint=function(H){return this.get("submitButton.buttonRenderer.serviceEndpoint",H)};
_.F.computeSubmitButton=function(H){(H=this.get("submitButton.buttonRenderer",H))&&(H=Object.assign({},H,{serviceEndpoint:void 0}));return H};
_.F.computeShowTimestamp=function(H){return!!H};
_.F.onValueChangedForIssueType=function(H){this.issueType=H.detail.value};
_.F.onValueChangedForAffiliation=function(H){this.affiliation=H.detail.value};
_.F.updateDescriptionTextFromBinding=function(H){this.descriptionText=H.detail.value};
_.F.updateFullNameTextFromBinding=function(H){this.fullNameText=H.detail.value};
_.F.updateMinutesFromBinding=function(H){this.minutes=H.detail.value};
_.F.updateSecondsFromBinding=function(H){this.seconds=H.detail.value};
ze.prototype.handleInput=ze.prototype.handleInput;ze.prototype.onYtServiceRequestError=ze.prototype.onYtServiceRequestError;ze.prototype.onYtServiceRequestCompleted=ze.prototype.onYtServiceRequestCompleted;ze.prototype.onYtServiceRequestSent=ze.prototype.onYtServiceRequestSent;ze.prototype.dataChanged=ze.prototype.dataChanged;_.D([_.v(_.Kw.YtOpenPopupBehavior),_.K("design:type",Object)],ze.prototype,"ytOpenPopupBehavior",void 0);
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],ze.prototype,"ytRendererBehavior",void 0);_.D([_.lA("#scroller"),_.K("design:type",Object)],ze.prototype,"JSC$20384_scroller",void 0);_.D([_.lA("#description"),_.K("design:type",HTMLInputElement)],ze.prototype,"description",void 0);_.D([_.lA("#full-name"),_.K("design:type",Object)],ze.prototype,"fullName",void 0);_.D([_.V(),_.K("design:type",Object)],ze.prototype,"data",void 0);
_.D([_.V({computed:"computeShowTimestamp(data.timestampLabel)"}),_.K("design:type",Boolean)],ze.prototype,"showTimestamp",void 0);_.D([_.V({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.K("design:type",Object)],ze.prototype,"serviceEndpoint",void 0);_.D([_.V({computed:"computeSubmitButton(data)"}),_.K("design:type",Object)],ze.prototype,"submitButton",void 0);_.D([_.V(),_.K("design:type",String)],ze.prototype,"descriptionText",void 0);
_.D([_.V(),_.K("design:type",Number)],ze.prototype,"issueType",void 0);_.D([_.V(),_.K("design:type",Number)],ze.prototype,"affiliation",void 0);_.D([_.V(),_.K("design:type",String)],ze.prototype,"fullNameText",void 0);_.D([_.V(),_.K("design:type",String)],ze.prototype,"minutes",void 0);_.D([_.V(),_.K("design:type",String)],ze.prototype,"seconds",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ze.prototype,"dataChanged",null);
_.D([_.Gz("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.IW]),_.K("design:returntype")],ze.prototype,"onYtServiceRequestSent",null);_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.j4]),_.K("design:returntype")],ze.prototype,"onYtServiceRequestCompleted",null);
_.D([_.Gz("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],ze.prototype,"onYtServiceRequestError",null);_.D([_.fx("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ze.prototype,"handleInput",null);_.D([_.h({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],ze);
_.B(ze,"ytd-legal-report-details-form-renderer",function(){if(GIO!==void 0)return GIO;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return GIO=H},{mode:1});var lXi;var M2=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return H};
_.G(M2,_.X);M2.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
M2.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var H=this.formRenderer.getForm();H&&this.data.submitEndpoint&&(_.JA().resolve(_.ZQ).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},H,{element:this.hostElement})}),_.q3(this.hostElement,"yt-close-popup-action"))}};
M2.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.q3(this.hostElement,"yt-close-popup-action"))};
M2.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
M2.prototype.onPopupClosed=M2.prototype.onPopupClosed;_.D([_.v(_.ie.YtEventForwardingBehavior),_.K("design:type",Object)],M2.prototype,"ytEventForwardingBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],M2.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],M2.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],M2.prototype,"ytRendererBehavior",void 0);
_.D([_.lA("yt-form-renderer"),_.K("design:type",Object)],M2.prototype,"formRenderer",void 0);_.D([_.V(),_.K("design:type",Object)],M2.prototype,"data",void 0);_.D([_.Gz("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],M2.prototype,"onPopupClosed",null);_.D([_.h({is:"ytd-form-popup-content",disableElementRegistration:!0})],M2);
_.B(M2,"ytd-form-popup-content",function(){if(lXi!==void 0)return lXi;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return lXi=H},{mode:1});var VOi;var q2=function(){return _.X.apply(this,arguments)||this};
_.G(q2,_.X);q2.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
q2.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
q2.prototype.onPopupOpened=function(){_.M3(this.hostElement,"yt-invalidate-popup-tabbables")};
q2.prototype.onYtServiceRequestCompleted=function(H,C){C.data&&C.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.M3(this.hostElement,"yt-invalidate-popup-tabbables"))};
q2.prototype.onYtServiceRequestCompleted=q2.prototype.onYtServiceRequestCompleted;q2.prototype.onPopupOpened=q2.prototype.onPopupOpened;_.D([_.v(_.ie.YtEventForwardingBehavior),_.K("design:type",Object)],q2.prototype,"ytEventForwardingBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],q2.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],q2.prototype,"ytRendererBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],q2.prototype,"data",void 0);_.D([_.Gz("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],q2.prototype,"onPopupOpened",null);_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.j4]),_.K("design:returntype")],q2.prototype,"onYtServiceRequestCompleted",null);_.D([_.h({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],q2);
_.B(q2,"ytd-form-popup-renderer",function(){if(VOi!==void 0)return VOi;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return VOi=H},{mode:1});var oar;var Te=function(){var H=_.X.apply(this,arguments)||this;H.isLoading=!1;return H};
_.G(Te,_.X);_.F=Te.prototype;_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");cfO(this.hostElement)};
_.F.onYtServiceRequestSent=function(){this.isLoading=!0};
_.F.onYtServiceRequestCompleted=function(){_.q3(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.F.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.yN(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.F.closePopupHandler=function(){this.fireOnCloseActions()};
_.F.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var H=this.get("data.headerImage.thumbnails");H&&(H=_.TG(H,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+H+")")}};
_.F.onYtNavigate=function(H){(H=_.Jr(H))&&H.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
Te.prototype.onYtNavigate=Te.prototype.onYtNavigate;Te.prototype.onHeaderImageChanged=Te.prototype.onHeaderImageChanged;Te.prototype.closePopupHandler=Te.prototype.closePopupHandler;Te.prototype.onYtServiceRequestCompleted=Te.prototype.onYtServiceRequestCompleted;Te.prototype.onYtServiceRequestSent=Te.prototype.onYtServiceRequestSent;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Te.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.ie.YtEventForwardingBehavior),_.K("design:type",Object)],Te.prototype,"ytEventForwardingBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Te.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Te.prototype,"isLoading",void 0);_.D([_.lA("#header"),_.K("design:type",HTMLDivElement)],Te.prototype,"header",void 0);_.D([_.lA("#confirm-button"),_.K("design:type",_.sY)],Te.prototype,"confirmButton",void 0);
_.D([_.Gz("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Te.prototype,"onYtServiceRequestSent",null);_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Te.prototype,"onYtServiceRequestCompleted",null);
_.D([_.Gz("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],Te.prototype,"closePopupHandler",null);_.D([_.fx("data.headerImage"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Te.prototype,"onHeaderImageChanged",null);_.D([_.Gz("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Te.prototype,"onYtNavigate",null);
_.D([_.h({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],Te);
_.B(Te,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(oar!==void 0)return oar;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return oar=H},{mode:1});var O19;var mO=function(){var H=_.X.apply(this,arguments)||this;H.isLoading=!1;return H};
_.G(mO,_.X);_.F=mO.prototype;_.F.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"}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);cfO(this.hostElement)};
_.F.onYtServiceRequestCompleted=function(){_.q3(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.F.onYtServiceRequestError=function(H){_.HQ(this.hostElement,H.detail.error.message)};
_.F.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.F.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.q3(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.F.onDataChanged=function(){this.isLoading=!1;var H=this.get("data.headerImage.thumbnails");H&&(H=_.TG(H,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+H+")");H=_.Dg();var C=_.BM(),S=this.get("data.trackingParams");S&&C&&H&&_.ak(H,C,_.Qh(S))};
_.JJ.Object.defineProperties(mO.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
mO.prototype.onDataChanged=mO.prototype.onDataChanged;mO.prototype.onDomChange=mO.prototype.onDomChange;mO.prototype.onYtServiceRequestError=mO.prototype.onYtServiceRequestError;mO.prototype.onYtServiceRequestCompleted=mO.prototype.onYtServiceRequestCompleted;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],mO.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],mO.prototype,"ytRendererBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],mO.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],mO.prototype,"isLoading",void 0);_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],mO.prototype,"hasDescription",null);_.D([_.lA("tp-yt-paper-dialog-scrollable"),_.K("design:type",Object)],mO.prototype,"scrollable",void 0);_.D([_.lA("#header"),_.K("design:type",HTMLElement)],mO.prototype,"header",void 0);
_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],mO.prototype,"onYtServiceRequestCompleted",null);_.D([_.Gz("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],mO.prototype,"onYtServiceRequestError",null);
_.D([_.Gz("dom-change"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],mO.prototype,"onDomChange",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mO.prototype,"onDataChanged",null);_.D([_.h({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],mO);
_.B(mO,"ytd-gaming-account-link-setting-renderer",function(){if(O19!==void 0)return O19;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return O19=H},{mode:1});var XLj;var QC9;var WR=function(){var H=_.X.apply(this,arguments)||this;H.isHeader=!1;H.getEndpointForm=function(){return xsR(H.data)};
return H};
_.G(WR,_.X);_.F=WR.prototype;_.F.triggerHintActions=function(){var H=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var C=_.m7(H.hostElement,"yt-get-opened-popups-action");!(C&&C.length===1?C[0]:[]).some(function(S){S=S.openPopupAction.popupType;return S==="SURVEY"||S==="MEALBAR"||S==="HINT"})&&H.data.hintActions&&H.guideOpened&&(_.yN(H.hostElement,H.data.hintActions,H.hostElement),H.data.hintActions=void 0)})};
_.F.getBadgeIconType=function(H){return H&&H.liveBroadcasting?"live":null};
_.F.onDown=function(){this.interaction.triggerDown()};
_.F.onUp=function(){this.interaction.triggerUp()};
_.F.onTap=function(H){if(this.data.serviceEndpoint){var C;_.E("shorts_controller_retrieve_seedless_sequence_v2")&&((C=_.e(this.data.serviceEndpoint,_.Ox))==null?void 0:C.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):alp(this.data.serviceEndpoint,this);H.preventDefault()}else this.data.navigationEndpoint&&!_.ww(_.Ar(H),this.hostElement,["A".toString()])&&_.M3(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.F.computeActive=function(H,C){if(!H)return!1;var S=H.navigationEndpoint;H=H.serviceEndpoint;if(!S&&!H||!C)return!1;if(S){H=(H=_.G5(C))&&["subscriptions","filteredsubscriptions"].includes(H);if(_.e(S,_.vU)&&_.e(C,_.vU)&&!H){var w=_.e(S,_.vU).browseId;C=_.e(C,_.vU).browseId;return w!==void 0&&C!==void 0&&(w===C||w==="VLWL"&&C==="FEwatch_later"||w==="FEwatch_later"&&C==="VLWL")}var A;S=(A=_.e(S.commandMetadata,_.u9))==null?void 0:A.url;C=(w=_.e(C.commandMetadata,_.u9))==null?void 0:w.url;return!(!S||
!C||S!==C&&S!==_.EE(C))}return this.isActiveShortsTab(H,C)};
_.F.isActiveShortsTab=function(H,C){C=!!_.e(C,_.Ox)||!!_.e(C,_.F7);return(!!_.e(H,_.Ox)||!!_.e(H,_.F7))&&C};
_.F.computeIsPrimary=function(H){return!!H};
_.JJ.Object.defineProperties(WR.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 H=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&H)return H}}});
WR.prototype.onTap=WR.prototype.onTap;WR.prototype.onUp=WR.prototype.onUp;WR.prototype.onDown=WR.prototype.onDown;WR.prototype.triggerHintActions=WR.prototype.triggerHintActions;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],WR.prototype,"componentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],WR.prototype,"rendererBehavior",void 0);_.D([_.v(_.o_.YtTaskEmitterBehavior),_.K("design:type",Object)],WR.prototype,"taskEmitterBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],WR.prototype,"activeEndpoint",void 0);_.D([_.V(),_.K("design:type",Object)],WR.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Boolean)],WR.prototype,"guideOpened",void 0);_.D([_.V(),_.K("design:type",String)],WR.prototype,"type",void 0);_.D([_.lA("yt-interaction"),_.K("design:type",Object)],WR.prototype,"interaction",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],WR.prototype,"isHeader",void 0);
_.D([_.V({reflectToAttribute:!0}),_.l("data","activeEndpoint"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],WR.prototype,"active",null);_.D([_.V({reflectToAttribute:!0}),_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],WR.prototype,"isPrimary",null);_.D([_.V({reflectToAttribute:!0}),_.l("data.count","data.presentationStyle","data.badges.*"),_.K("design:type",String),_.K("design:paramtypes",[])],WR.prototype,"lineEndStyle",null);
_.D([_.l("lineEndStyle"),_.K("design:type",Object),_.K("design:paramtypes",[])],WR.prototype,"ariaLabel",null);_.D([_.fx("data.hintActions","guideOpened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],WR.prototype,"triggerHintActions",null);_.D([_.Gz("down"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],WR.prototype,"onDown",null);
_.D([_.Gz("up"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],WR.prototype,"onUp",null);_.D([_.Gz("tap"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],WR.prototype,"onTap",null);_.D([_.h({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],WR);
_.B(WR,"ytd-guide-entry-renderer",function(){if(QC9!==void 0)return QC9;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return QC9=H},{mode:1});var yk=function(){var H=_.X.apply(this,arguments)||this;H.userToggled=!1;return H};
_.G(yk,_.X);_.F=yk.prototype;_.F.getItemsPath=function(){return"data.expandableItems"};
_.F.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.F.onExpanderItemTapped=function(H){var C=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.E("kevlar_guide_expandable_items_killswitch")&&_.wM(this,function(){_.ss(C.expandableItems)});
H.preventDefault()};
_.F.onCollapserItemTapped=function(H){var C=this;this._setExpanded(!1);this.userToggled=!0;H.preventDefault();this.expandableItems&&!_.E("kevlar_guide_collapsible_items_killswitch")&&_.wM(this,function(){_.Sr(C.hostElement)})};
_.F.observeActiveEndpoint=function(){for(var H=this.activeEndpoint,C=this.data,S=this.expandableItems.children,w=0,A=S.length;w<A;w++)S[w].activeEndpoint=H;C&&C.autoExpandCommand&&H&&!this.userToggled&&(S=this.data.autoExpandCommand,C=!(!_.e(S,_.vU)||!_.e(H,_.vU)||_.e(S,_.vU).browseId!==_.e(H,_.vU).browseId),H=this.get("commandMetadata.webCommandMetadata.url",H),S=this.get("commandMetadata.webCommandMetadata.url",S),C=C||!!(H&&S&&H.includes(S)),this._setExpanded(C),C&&this.ytLazyListBehavior.fillRemainingListItems())};
yk.prototype.observeActiveEndpoint=yk.prototype.observeActiveEndpoint;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],yk.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],yk.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.$o.YtLazyListBehavior),_.K("design:type",Object)],yk.prototype,"ytLazyListBehavior",void 0);_.D([_.lA("#expandable-items"),_.K("design:type",HTMLElement)],yk.prototype,"expandableItems",void 0);
_.D([_.V(),_.K("design:type",Object)],yk.prototype,"data",void 0);_.D([_.V({readOnly:!0,reflectToAttribute:!0}),_.K("design:type",Boolean)],yk.prototype,"expanded",void 0);_.D([_.V({value:0}),_.K("design:type",Number)],yk.prototype,"initialCount",void 0);_.D([_.V(),_.K("design:type",Object)],yk.prototype,"activeEndpoint",void 0);_.D([_.fx("data","activeEndpoint","canShowMore"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],yk.prototype,"observeActiveEndpoint",null);
_.D([_.h({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],yk);
_.B(yk,"ytd-guide-collapsible-entry-renderer",function(){if(XLj!==void 0)return XLj;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return XLj=H},{mode:_.mn("kevlar_poly_si_batch_j079")?1:2});var dwr;var PTp;var N2=function(){var H=_.X.apply(this,arguments)||this;H.allVideosCount=0;H.renderGuideEntry=!1;return H};
_.G(N2,_.X);N2.prototype.observeRenderEntry=function(){var H;this.renderGuideEntry=!((H=this.data)==null||!H.alwaysShow)||!!this.allVideosCount};
N2.prototype.observeRenderEntry=N2.prototype.observeRenderEntry;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],N2.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],N2.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],N2.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],N2.prototype,"activeEndpoint",void 0);_.D([_.V({selector:_.EeV}),_.K("design:type",Object)],N2.prototype,"allVideosCount",void 0);
_.D([_.V(),_.K("design:type",Object)],N2.prototype,"renderGuideEntry",void 0);_.D([_.XJ("allVideosCount","data.alwaysShow"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],N2.prototype,"observeRenderEntry",null);_.D([_.h({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],N2);
_.B(N2,"ytd-guide-downloads-entry-renderer",function(){if(PTp===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);PTp=H}H=PTp;return H},{mode:1});var bF=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return H};
_.G(bF,_.X);_.F=bF.prototype;_.F.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]]"}}}}}};
_.F.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var H=this.sectionItems.children,C=0,S=H.length;C<S;C++)H[C].activeEndpoint=this.activeEndpoint}};
_.F.handleAddToGuideSectionAction=function(H){var C=_.e(H,YYi);if(C&&this.data&&(H=C.items,C=C.handlerData,H&&C&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(C)>-1)){C=0;for(var S=H.length;C<S;C++)H[C].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,H[C])}};
_.F.handleRemoveFromGuideSectionAction=function(H){var C=_.e(H,zvt);C&&this.data&&(H=C.guideEntryId,C=C.handlerData,H&&C&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(C)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(H,this.data.sectionItems),this.removeFromCollapsedSection(H,this.data.sectionItems)))};
_.F.removeFromExpandedSection=function(H,C){H=this.getEntryIndexMatchingId(H,C);H!==-1&&this.splice("data.sectionItems",H,1)};
_.F.removeFromCollapsedSection=function(H,C){var S=C.findIndex(function(w){return!!_.e(w,V3O)});
S&&S!==-1&&C[S]&&_.e(C[S],V3O)&&(C=_.e(C[S],V3O).expandableItems)&&(H=this.getEntryIndexMatchingId(H,C),H!==-1&&this.splice("data.sectionItems."+S+".guideCollapsibleEntryRenderer.expandableItems",H,1))};
_.F.getEntryIndexMatchingId=function(H,C){var S=this;return C.findIndex(function(w){return S.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",w)===H})};
bF.prototype.activeEndpointChanged=bF.prototype.activeEndpointChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],bF.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],bF.prototype,"actionHandlerBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],bF.prototype,"ytRendererstamperBehavior",void 0);_.D([_.lA("#section-items"),_.K("design:type",HTMLDivElement)],bF.prototype,"sectionItems",void 0);
_.D([_.lA("#header-entry"),_.K("design:type",Object)],bF.prototype,"headerEntry",void 0);_.D([_.V(),_.K("design:type",Object)],bF.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],bF.prototype,"activeEndpoint",void 0);_.D([_.fx("activeEndpoint"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bF.prototype,"activeEndpointChanged",null);_.D([_.h({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],bF);
_.B(bF,"ytd-guide-collapsible-section-entry-renderer",function(){if(dwr===void 0){var H=document.createElement("template");_.f(H,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="true" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);dwr=H}H=dwr;return H},{mode:1});var $wO;var pLO;var EJ=function(){var H=_.X.apply(this,arguments)||this;H.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 H};
_.G(EJ,_.X);_.F=EJ.prototype;
_.F.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}}}}};
_.F.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var H=_.m7(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);H&&H.length===1&&H[0]&&_.m7(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.F.handleResetChannelUnreadCountCommand=function(H){var C;(H=(C=_.e(H,qYj))==null?void 0:C.channelId)&&this.data&&this.data.items&&(C=this.getPathToEntryMatchingId(H))&&(this.set(C+".guideEntryRenderer.count",0),this.set(C+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.F.handleResetSubscriptionsUnreadDotCommand=function(H){var C,S=(C=_.e(H,T2i))==null?void 0:C.targetId,w;S&&(w=this.data)!=null&&w.items&&(H=this.data.items.findIndex(function(A){var J;return((J=A.guideEntryRenderer)==null?void 0:J.targetId)===S}),H<0||this.set("data.items."+H+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.F.getPathToEntryMatchingId=function(H){if(this.data&&this.data.items){var C=this.getEntryIndexMatchingId(H,this.data.items);if(C>-1)return"data.items."+C;for(var S=0;S<this.data.items.length;S++)if(C=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[S]))if(C=this.getEntryIndexMatchingId(H,C),C>-1)return"data.items."+S+".guideCollapsibleEntryRenderer.expandableItems."+C}};
_.F.handleAddToGuideSectionAction=function(H){var C=this;if(_.e(H,YYi)){var S=_.e(H,YYi).items;H=_.e(H,YYi).handlerData;var w,A;if(S&&H&&((w=this.data)==null?void 0:(A=w.handlerDatas)==null?void 0:A.indexOf(H))>-1){S=S.filter(function(c){return(c=C.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",c))&&!C.isGuideItemPresent(c)});
var J;if(H==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((J=this.data)==null?0:J.items)&&(w=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),w>-1)){this.splice.apply(this,["data.items",w+1,0].concat(_.k$(S)));return}this.unshift.apply(this,["data.items"].concat(_.k$(S)))}}};
_.F.isGuideItemPresent=function(H){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(H,this.data.items)!==-1)return!0;var C=this.data.items.find(function(S){return!!S.guideCollapsibleEntryRenderer});
if((C==null?0:C.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(H,C.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.F.getEntryIndexMatchingId=function(H,C){var S=this;return C.findIndex(function(w){return S.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",w)===H})};
_.F.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(H,C){var S=this;return C.findIndex(function(w){return S.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",w)===H})};
_.F.handleRemoveFromGuideSectionAction=function(H){if(_.e(H,zvt)){var C=_.e(H,zvt).guideEntryId;H=_.e(H,zvt).handlerData;var S,w;C&&H&&((S=this.data)==null?void 0:(w=S.handlerDatas)==null?void 0:w.indexOf(H))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(C,this.data.items),this.removeFromCollapsedSection(C,this.data.items))}};
_.F.removeFromExpandedSection=function(H,C){H=this.getEntryIndexMatchingId(H,C);H!==-1&&this.splice("data.items",H,1)};
_.F.removeFromCollapsedSection=function(H,C){var S=C.findIndex(function(w){return!!w.guideCollapsibleEntryRenderer});
S!==-1&&(C=C[S].guideCollapsibleEntryRenderer.expandableItems)&&(H=this.getEntryIndexMatchingId(H,C),H!==-1&&this.splice("data.items."+S+".guideCollapsibleEntryRenderer.expandableItems",H,1))};
_.F.activeEndpointChanged=function(){for(var H=_.mY(this.hostElement).querySelector("#items").children,C=0,S=H.length;C<S;C++)H[C].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.F.guideOpenedChanged=function(){for(var H=_.mY(this.hostElement).querySelector("#items").children,C=0,S=H.length;C<S;C++)H[C].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
EJ.prototype.guideOpenedChanged=EJ.prototype.guideOpenedChanged;EJ.prototype.activeEndpointChanged=EJ.prototype.activeEndpointChanged;EJ.prototype.persistentGuideChanged=EJ.prototype.persistentGuideChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],EJ.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],EJ.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],EJ.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.$o.YtLazyListBehavior),_.K("design:type",Object)],EJ.prototype,"ytLazyListBehavior",void 0);_.D([_.v(_.bU.YtdGuideStateAwareBehavior),_.K("design:type",Object)],EJ.prototype,"ytdGuideStateAwareBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],EJ.prototype,"ytComponentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],EJ.prototype,"data",void 0);
_.D([_.V(),_.K("design:type",String)],EJ.prototype,"type",void 0);_.D([_.V({value:20}),_.K("design:type",Number)],EJ.prototype,"initialCount",void 0);_.D([_.V({value:10}),_.K("design:type",Number)],EJ.prototype,"targetFramerate",void 0);_.D([_.V({value:!0}),_.K("design:type",Boolean)],EJ.prototype,"autoFill",void 0);_.D([_.V({value:50}),_.K("design:type",Number)],EJ.prototype,"renderDelay",void 0);
_.D([_.fx("guidePersistentAndVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],EJ.prototype,"persistentGuideChanged",null);_.D([_.XJ("activeEndpoint"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],EJ.prototype,"activeEndpointChanged",null);_.D([_.XJ("guideOpened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],EJ.prototype,"guideOpenedChanged",null);
_.D([_.h({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],EJ);
_.B(EJ,"ytd-guide-section-renderer",function(){if(pLO!==void 0)return pLO;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return pLO=H},{mode:_.mn("kevlar_poly_si_batch_j073")?1:2});var kIr;var ee=function(){return _.X.apply(this,arguments)||this};
_.G(ee,_.X);_.JJ.Object.defineProperties(ee.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],ee.prototype,"rendererBehaviors",void 0);_.D([_.V(),_.K("design:type",Object)],ee.prototype,"data",void 0);_.D([_.V(),_.l("data.signInButton.buttonRenderer.style"),_.K("design:type",Object),_.K("design:paramtypes",[])],ee.prototype,"alignByText",null);_.D([_.h({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],ee);
_.B(ee,"ytd-guide-signin-promo-renderer",function(){if(kIr===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);kIr=H}H=kIr;return H},{mode:1});var uF=function(){var H=_.X.apply(this,arguments)||this;H.showFooter=!1;return H};
_.G(uF,_.X);uF.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}}}}};
uF.prototype.attached=function(){var H=this,C;return _.z(function(S){if(S.nextAddress==1){C=_.JA().resolve(_.AA(_.N$));if(!C)return S.jumpTo(0);C.setGuideData(H.hostElement);return S.yield(0,3)}H.ytLazyListBehavior.initialCount=2;return S.return()})};
uF.prototype.onMouseExit=function(){_.E("web_guide_hover_expansion")&&_.m7(this.hostElement,"yt-guide-mouseleaved",[])};
uF.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
uF.prototype.dataChanged=uF.prototype.dataChanged;uF.prototype.onMouseExit=uF.prototype.onMouseExit;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],uF.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],uF.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.$o.YtLazyListBehavior),_.K("design:type",Object)],uF.prototype,"ytLazyListBehavior",void 0);
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],uF.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],uF.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],uF.prototype,"showFooter",void 0);_.D([_.V({value:!0}),_.K("design:type",Boolean)],uF.prototype,"autoFill",void 0);_.D([_.Gz("mouseleave"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],uF.prototype,"onMouseExit",null);
_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],uF.prototype,"dataChanged",null);_.D([_.h({is:"ytd-guide-renderer",disableElementRegistration:!0})],uF);
_.B(uF,"ytd-guide-renderer",function(){if($wO!==void 0)return $wO;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return $wO=H},{mode:_.mn("kevlar_poly_si_batch_j073")?1:2});var ha_;var Ge=function(){var H=_.X.apply(this,arguments)||this;H.systemIcons=_.E("kevlar_system_icons");H.frostedGlass=_.E("web_frosted_glass");H.getEndpointForm=function(){return xsR(H.data)};
return H};
_.G(Ge,_.X);_.F=Ge.prototype;_.F.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.F.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.jt(this.data.formattedTitle))};
_.F.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.F.onDown=function(){this.interaction.triggerDown()};
_.F.onUp=function(){this.interaction.triggerUp()};
_.F.onTap=function(H){if(this.data.serviceEndpoint){var C;_.E("shorts_controller_retrieve_seedless_sequence_v2")&&((C=_.e(this.data.serviceEndpoint,_.Ox))==null?void 0:C.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):alp(this.data.serviceEndpoint,this);H.preventDefault()}else{var S;((S=this.data)==null?0:S.navigationEndpoint)&&!_.ww(_.Ar(H),this.hostElement,["A".toString()])&&_.M3(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.F.computeActive=function(H,C){if(!H)return!1;var S=H.navigationEndpoint;H=H.serviceEndpoint;if(!S&&!H||!C)return!1;if(S){H=_.e(S,_.vU);var w=_.e(C,_.vU);if(H&&w)return H.browseId===w.browseId&&H.params===w.params;var A;S=(A=_.e(S.commandMetadata,_.u9))==null?void 0:A.url;var J;C=(J=_.e(C.commandMetadata,_.u9))==null?void 0:J.url;return!(!S||!C||S!==C&&S!==_.EE(C))}return this.isActiveShortsTab(H,C)};
_.F.isActiveShortsTab=function(H,C){C=!!_.e(C,_.Ox)||!!_.e(C,_.F7);return(!!_.e(H,_.Ox)||!!_.e(H,_.F7))&&C};
_.F.computeTitle=function(H,C){return C?"":_.jt(H)};
_.JJ.Object.defineProperties(Ge.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
Ge.prototype.onTap=Ge.prototype.onTap;Ge.prototype.onUp=Ge.prototype.onUp;Ge.prototype.onDown=Ge.prototype.onDown;Ge.prototype.onActiveStateChange=Ge.prototype.onActiveStateChange;Ge.prototype.dataChanged=Ge.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Ge.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Ge.prototype,"ytComponentBehavior",void 0);
_.D([_.v(_.xA),_.K("design:type",Object)],Ge.prototype,"ironButtonState",void 0);_.D([_.V(),_.K("design:type",Object)],Ge.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],Ge.prototype,"activeEndpoint",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],Ge.prototype,"noLabels",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.K("design:type",Boolean)],Ge.prototype,"isActive",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Ge.prototype,"systemIcons",void 0);_.D([_.lA("yt-interaction"),_.K("design:type",Object)],Ge.prototype,"interaction",void 0);_.D([_.l("isActive"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ge.prototype,"ariaSelected",null);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Ge.prototype,"frostedGlass",void 0);
_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ge.prototype,"dataChanged",null);_.D([_.fx("isActive"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ge.prototype,"onActiveStateChange",null);_.D([_.Gz("down"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ge.prototype,"onDown",null);
_.D([_.Gz("up"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ge.prototype,"onUp",null);_.D([_.Gz("tap"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Ge.prototype,"onTap",null);_.D([_.h({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],Ge);
_.B(Ge,"ytd-mini-guide-entry-renderer",function(){if(ha_!==void 0)return ha_;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return ha_=H},{mode:_.mn("kevlar_poly_si_batch_j063")?1:2});var naO;var f_=function(){var H=_.X.apply(this,arguments)||this;H.allVideosCount=0;H.noLabels=_.E("kevlar_mini_guide_no_labels")||_.E("kevlar_modern_mini_guide");H.frostedGlass=_.E("web_frosted_glass");return H};
_.G(f_,_.X);_.F=f_.prototype;_.F.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.F.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.F.onMouseEnter=function(){_.E("web_guide_hover_expansion")&&_.m7(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.F.visibleChanged=function(){if(this.visible&&!this.data){var H=_.JA().resolve(_.AA(_.N$));H&&H.setGuideData(this.hostElement)}};
_.F.dataChanged=function(){var H=_.E("kevlar_modern_mini_guide"),C;var S=(C=this.data)==null?void 0:C.items;C=this.allVideosCount;var w=[];if(S){S=_.Z(S);for(var A=S.next();!A.done;A=S.next()){A=A.value;var J=void 0;if((J=A.guideSectionRenderer)==null?0:J.items)for(J=void 0,A=_.Z((J=A.guideSectionRenderer)==null?void 0:J.items),J=A.next();!J.done;J=A.next()){var c=J.value;if(c.guideEntryRenderer)J=c.guideEntryRenderer,J.isPrimary&&w.push({guideEntryRenderer:J});else if(c.guideCollapsibleSectionEntryRenderer){J=
_.e(c.guideCollapsibleSectionEntryRenderer.headerEntry,O4O);c=c.guideCollapsibleSectionEntryRenderer.sectionItems;var Y=void 0;if((Y=J)==null?0:Y.isPrimary){b:{if(c&&c.length){var M=c,m=J.formattedTitle;Y={};m&&(Y.header={panelHeaderViewModel:{title:_.BI(m)}});m=[];M=_.Z(M);for(var W=M.next();!W.done;W=M.next()){W=_.e(W.value,O4O);var y=void 0,N=void 0,b=((y=W)==null?0:y.formattedTitle)?_.BI((N=W)==null?void 0:N.formattedTitle):void 0;y=void 0;N=(y=W)==null?void 0:y.isPrimary;if(W&&b&&!N){b={title:b};
W.navigationEndpoint&&(b.rendererContext={commandContext:{onTap:{innertubeCommand:W.navigationEndpoint}}});y=void 0;if((y=W.icon)==null?0:y.iconType)b.leadingImage={sources:[{clientResource:{imageName:W.icon.iconType||""}}]};m.push({listItemViewModel:b})}}m.length!==0?Y.content={listViewModel:{listItems:m}}:Y=void 0;if(Y){Y={showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:Y}}}};break b}}Y=void 0}H&&Y&&(J.mouseEnterEndpoint=Y,J.mouseLeaveEndpoint={hideSheetCommand:{}});w.push({guideEntryRenderer:J})}if(c)for(J=
_.Z(c),c=J.next();!c.done;c=J.next())c=c.value,m=_.e(c,ori),Y=void 0,m=m&&(m.alwaysShow||C)?_.e((Y=m)==null?void 0:Y.entryRenderer,O4O):_.e(c,O4O),c=void 0,((c=m)==null?0:c.isPrimary)&&w.push({guideEntryRenderer:m})}}}}this.miniGuideItems=w};
_.F.activeEndpointChanged=function(){for(var H=this.items.children,C=0;C<H.length;C++)H[C].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.F.registerWithViewTransitionManager=function(){var H=this;_.X2(_.rT,function(){var C=_.JA().resolve(_.AA(_.IC));if(C&&C.isAnyTransitionEnabled){var S={};C.viewTransitionCoordinator.registerElement(H.hostElement,(S.slide="mini-guide-page-transition",S))}})};
f_.prototype.activeEndpointChanged=f_.prototype.activeEndpointChanged;f_.prototype.dataChanged=f_.prototype.dataChanged;f_.prototype.visibleChanged=f_.prototype.visibleChanged;f_.prototype.onMouseEnter=f_.prototype.onMouseEnter;_.D([_.v(_.q$),_.K("design:type",Object)],f_.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],f_.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],f_.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.bU.YtdGuideStateAwareBehavior),_.K("design:type",Object)],f_.prototype,"ytdGuideStateAwareBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],f_.prototype,"ytComponentBehavior",void 0);_.D([_.lA("#items"),_.K("design:type",Object)],f_.prototype,"items",void 0);_.D([_.V(),_.K("design:type",Object)],f_.prototype,"data",void 0);
_.D([_.V(),_.K("design:type",Boolean)],f_.prototype,"visible",void 0);_.D([_.V(),_.K("design:type",Object)],f_.prototype,"miniGuideItems",void 0);_.D([_.V({selector:_.EeV}),_.K("design:type",Object)],f_.prototype,"allVideosCount",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],f_.prototype,"noLabels",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],f_.prototype,"frostedGlass",void 0);
_.D([_.Gz("mouseenter"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],f_.prototype,"onMouseEnter",null);_.D([_.XJ("visible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],f_.prototype,"visibleChanged",null);_.D([_.XJ("data","allVideosCount"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],f_.prototype,"dataChanged",null);
_.D([_.XJ("activeEndpoint"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],f_.prototype,"activeEndpointChanged",null);_.D([_.h({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],f_);
_.B(f_,"ytd-mini-guide-renderer",function(){if(naO===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);naO=H}H=naO;return H},{mode:1});var rjO;var BGi=/^[\x00-\x7F]+$/,vR=function(){var H=_.X.apply(this,arguments)||this;H.darkerDarkTheme=_.E("web_darker_dark_theme");return H};
_.G(vR,_.X);_.JJ.Object.defineProperties(vR.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var H,C=_.jt((H=this.data)==null?void 0:H.handle);if(C)return _.sx("@"+C)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var H=_.jt(this.displayHandle),C,S=_.jt((C=this.data)==null?void 0:C.handleUrl);if(H&&S)return _.sx(S+H)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var H=_.jt(this.displayHandle);if(H&&!BGi.test(H)){var C;return(C=this.data)==null?void 0:C.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var H=_.jt(this.displayHandleUrl),C,S=_.jt((C=this.data)==null?void 0:C.urlInfoText);if(H&&S)return _.sx(S+" "+H)}}});
_.D([_.V(),_.K("design:type",Object)],vR.prototype,"data",void 0);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],vR.prototype,"displayHandle",null);_.D([_.l("displayHandle"),_.K("design:type",Object),_.K("design:paramtypes",[])],vR.prototype,"displayHandleUrl",null);_.D([_.l("displayHandle"),_.K("design:type",Object),_.K("design:paramtypes",[])],vR.prototype,"warningText",null);
_.D([_.l("displayHandleUrl"),_.K("design:type",Object),_.K("design:paramtypes",[])],vR.prototype,"urlInfoTextWithUrl",null);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],vR.prototype,"darkerDarkTheme",void 0);_.D([_.h({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],vR);
_.B(vR,"ytd-handles-claiming-confirm-dialog-content",function(){if(rjO!==void 0)return rjO;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return rjO=H},{mode:1});var Dwo;var lF=function(){var H=_.X.apply(this,arguments)||this;H.okButtonOverride={style:"mono",type:"outline",size:"M"};return H};
_.G(lF,_.X);lF.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
lF.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],lF.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],lF.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],lF.prototype,"okButtonOverride",void 0);_.D([_.V(),_.K("design:type",Object)],lF.prototype,"data",void 0);_.D([_.h({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],lF);
_.B(lF,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(Dwo!==void 0)return Dwo;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return Dwo=H},{mode:1});var K0i;var tO3=/^[\x00-\x7F]+$/,Vk=function(){var H=_.X.apply(this,arguments)||this;H.isLoading=!1;H.darkerDarkTheme=_.E("web_darker_dark_theme");return H};
_.G(Vk,_.X);Vk.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var H;this.selectedHandle=(H=this.handleInput)==null?void 0:H.value;this.onSelectedHandleChanged(this.selectedHandle);_.m7(this.hostElement,"yt-refit-popups-action")}};
_.JJ.Object.defineProperties(Vk.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var H;return(H=this.data)==null?void 0:H.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.sx("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.sx(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!tO3.test(this.selectedHandle)){var H;return(H=this.data)==null?void 0:H.warningText}}}});
_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Vk.prototype,"ytComponentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Vk.prototype,"data",void 0);_.D([_.V(),_.K("design:type",String)],Vk.prototype,"selectedHandle",void 0);_.D([_.V(),_.K("design:type",Object)],Vk.prototype,"isLoading",void 0);_.D([_.V(),_.K("design:type",Function)],Vk.prototype,"onSelectedHandleChanged",void 0);_.D([_.lA("#channel-handle-input"),_.K("design:type",Object)],Vk.prototype,"handleInput",void 0);
_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vk.prototype,"handleUrlPrefix",null);_.D([_.l("selectedHandle"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vk.prototype,"displayHandle",null);_.D([_.l("selectedHandle"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vk.prototype,"displayHandleUrl",null);_.D([_.l("selectedHandle"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vk.prototype,"warningText",null);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Vk.prototype,"darkerDarkTheme",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Vk.prototype,"ytRendererBehavior",void 0);_.D([_.h({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],Vk);
_.B(Vk,"ytd-handles-claiming-edit-dialog-content",function(){if(K0i!==void 0)return K0i;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return K0i=H},{mode:1});var L09;var o5=function(){var H=_.X.apply(this,arguments)||this;H.actionButtonOverride={style:"mono",type:"filled",size:"M"};H.cancelButtonOverride={style:"mono",type:"text",size:"M"};H.selectButtonDisabled=!1;H.isLoading=!1;H.hasSelectedHandleEventListener=!1;H.selectedHandleChanged=function(C){H.selectedHandle=C};
return H};
_.G(o5,_.X);_.F=o5.prototype;_.F.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.F.onDataChanged=function(){var H,C;this.selectedHandle=(C=_.e((H=this.data)==null?void 0:H.inputField,AvO))==null?void 0:C.handle};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.onCancel=function(){this.selectedHandle="";_.q3(this.hostElement,"yt-close-popup-action",[this.is])};
_.F.onSelectHandle=function(){var H=this;if(this.selectedHandle!==void 0){var C;((C=this.data)==null?void 0:C.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(S,w){if(w.newHandleUpdateStatus!==void 0&&w.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&w.newHandleUpdateStatus.errorMessage)_.HQ(H.hostElement,_.jt(w.newHandleUpdateStatus.errorMessage)),
H.isLoading=!1;else{var A;if((A=H.data)==null?0:A.onChannelUpdateSuccess){S=H.data.onChannelUpdateSuccess;var J,c;if(w=(J=_.e(S,_.Uy))==null?void 0:(c=J.popup)==null?void 0:c.handlesClaimingConfirmDialogRenderer)w.handle=_.sx(H.selectedHandle);H.ytComponentBehavior.resolveCommand(S);_.q3(H.hostElement,"yt-close-popup-action",[H.is])}else H.isLoading=!1}},
onServerError:function(){var S;H.content&&((S=H.content)==null?0:S.handleInput)&&H.content.handleInput.validate();H.isLoading=!1;_.HQ(H.hostElement,_.fL("TRY_AGAIN_LATER"))}}}))}};
_.F.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
o5.prototype.onDataChanged=o5.prototype.onDataChanged;o5.prototype.onSelectedHandleChanged=o5.prototype.onSelectedHandleChanged;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],o5.prototype,"ytComponentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],o5.prototype,"actionButtonOverride",void 0);_.D([_.V(),_.K("design:type",Object)],o5.prototype,"cancelButtonOverride",void 0);_.D([_.V(),_.K("design:type",Object)],o5.prototype,"data",void 0);
_.D([_.V(),_.K("design:type",String)],o5.prototype,"selectedHandle",void 0);_.D([_.V(),_.K("design:type",Object)],o5.prototype,"selectButtonDisabled",void 0);_.D([_.V(),_.K("design:type",Object)],o5.prototype,"isLoading",void 0);_.D([_.V(),_.K("design:type",Object)],o5.prototype,"hasSelectedHandleEventListener",void 0);_.D([_.V(),_.K("design:type",Object)],o5.prototype,"handleInput",void 0);
_.D([_.fx("selectedHandle"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],o5.prototype,"onSelectedHandleChanged",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],o5.prototype,"onDataChanged",null);_.D([_.lA("ytd-handles-claiming-edit-dialog-content"),_.K("design:type",Object)],o5.prototype,"content",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],o5.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],o5.prototype,"ytRendererstamperBehavior",void 0);_.D([_.h({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],o5);
_.B(o5,"ytd-handles-claiming-edit-dialog-renderer",function(){if(L09!==void 0)return L09;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return L09=H},{mode:1});var gat;var OJ=function(){return _.X.apply(this,arguments)||this};
_.G(OJ,_.X);_.JJ.Object.defineProperties(OJ.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.data)==null?0:H.handle){var C;return _.sx("@"+_.jt((C=this.data)==null?void 0:C.handle))}}}});
_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],OJ.prototype,"formattedHandle",null);_.D([_.V(),_.K("design:type",Object)],OJ.prototype,"data",void 0);_.D([_.h({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],OJ);
_.B(OJ,"ytd-handles-claiming-radio-option-renderer",function(){if(gat!==void 0)return gat;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return gat=H},{mode:1});var UwK;var Raj=/^[\x00-\x7F]+$/,Xo=function(){var H=_.X.apply(this,arguments)||this;H.initialRadioIndex="-1";H.isLoading=!1;H.darkerDarkTheme=_.E("web_darker_dark_theme");H.maybeSubmitFeedback=function(){H.feedbackSurveyRenderer.submitSurvey()};
return H};
_.G(Xo,_.X);Xo.prototype.updateSelectedHandleIndexFromBinding=function(H){this.selectedRadioIndex=+H.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(H)};
Xo.prototype.selectedHandleChanged=function(H){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var C;this.selectedHandle=(C=this.handleInput)==null?void 0:C.value;this.onSelectedHandleChanged(H)}};
_.JJ.Object.defineProperties(Xo.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var H;return(((H=this.data)==null?void 0:H.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var H;return this.ytRendererBehavior.getSimpleString((H=this.data)==null?void 0:H.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.sx("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.sx(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!Raj.test(this.selectedHandle)){var H;return(H=this.data)==null?void 0:H.warningText}}}});
_.D([_.V(),_.K("design:type",Object)],Xo.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],Xo.prototype,"initialRadioIndex",void 0);_.D([_.V(),_.K("design:type",Number)],Xo.prototype,"selectedRadioIndex",void 0);_.D([_.V(),_.K("design:type",String)],Xo.prototype,"selectedHandle",void 0);_.D([_.V(),_.K("design:type",Object)],Xo.prototype,"isLoading",void 0);_.D([_.V(),_.K("design:type",Function)],Xo.prototype,"onSelectedHandleChanged",void 0);
_.D([_.V(),_.K("design:type",Function)],Xo.prototype,"onSelectedRadioIndexChanged",void 0);_.D([_.lA("#channel-handle-input"),_.K("design:type",Object)],Xo.prototype,"handleInput",void 0);_.D([_.lA("ytd-feedback-survey-renderer"),_.K("design:type",Object)],Xo.prototype,"feedbackSurveyRenderer",void 0);_.D([_.l("data"),_.K("design:type",Number),_.K("design:paramtypes",[])],Xo.prototype,"radioButtonLength",null);
_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Xo.prototype,"handleUrlPrefix",null);_.D([_.l("selectedHandle"),_.K("design:type",Object),_.K("design:paramtypes",[])],Xo.prototype,"displayHandle",null);_.D([_.l("selectedHandle"),_.K("design:type",Object),_.K("design:paramtypes",[])],Xo.prototype,"displayHandleUrl",null);_.D([_.l("selectedHandle"),_.K("design:type",Object),_.K("design:paramtypes",[])],Xo.prototype,"warningText",null);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Xo.prototype,"darkerDarkTheme",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Xo.prototype,"ytRendererBehavior",void 0);_.D([_.h({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],Xo);
_.B(Xo,"ytd-handles-claiming-select-dialog-content",function(){if(UwK!==void 0)return UwK;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return UwK=H},{mode:1});var IXq;var Qk=function(){var H=_.X.apply(this,arguments)||this;H.actionButtonOverride={style:"mono",type:"filled",size:"M"};H.cancelButtonOverride={style:"mono",type:"text",size:"M"};H.initialRadioIndex="-1";H.selectButtonDisabled=!1;H.isLoading=!1;H.selectedRadioIndexChanged=function(C){H.selectedRadioIndex=Number(C.detail.value)};
H.selectedHandleChanged=function(C){H.selectedHandle=C.detail.value};
H.darkerDarkTheme=_.E("web_darker_dark_theme");return H};
_.G(Qk,_.X);_.F=Qk.prototype;_.F.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.F.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.F.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.m7(this.hostElement,"yt-refit-popups-action")};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.q3(this.hostElement,"yt-close-popup-action",[this.is])};
_.F.onSelectHandle=function(){var H=this;if(this.selectedHandle!==void 0){var C;((C=this.data)==null?void 0:C.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(S,w){if(w.newHandleUpdateStatus!==void 0&&w.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&w.newHandleUpdateStatus.errorMessage)_.HQ(H.hostElement,_.jt(w.newHandleUpdateStatus.errorMessage)),
H.isLoading=!1;else{var A;if((A=H.data)==null?0:A.onChannelUpdateSuccess){S=H.data.onChannelUpdateSuccess;w=_.e(S,_.Uy);var J;if(w==null?0:(J=w.popup)==null?0:J.handlesClaimingConfirmDialogRenderer)w.popup.handlesClaimingConfirmDialogRenderer.handle=_.sx(H.selectedHandle);H.ytComponentBehavior.resolveCommand(S);_.q3(H.hostElement,"yt-close-popup-action",[H.is])}else H.isLoading=!1}},
onServerError:function(){if(H.selectedRadioIndex===H.radioButtonLength){var S;H.content&&((S=H.content)==null?0:S.handleInput)&&H.content.handleInput.validate()}H.isLoading=!1;_.HQ(H.hostElement,_.fL("TRY_AGAIN_LATER"))}}}))}};
_.F.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var H,C;this.selectedHandle=(H=this.content)==null?void 0:(C=H.handleInput)==null?void 0:C.value}else this.selectedRadioIndex>=0&&((H=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(H==null?void 0:H.handle):this.selectedHandle=void 0)};
_.F.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.F.getRadioItem=function(H){if(this.radioButtonLength>H&&H>=0)return _.e(this.data.radioButton[H],evr)};
_.JJ.Object.defineProperties(Qk.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var H;return(((H=this.data)==null?void 0:H.radioButton)||[]).length}}});
Qk.prototype.onSelectedHandleChanged=Qk.prototype.onSelectedHandleChanged;Qk.prototype.onSelectedHandleIndexChanged=Qk.prototype.onSelectedHandleIndexChanged;Qk.prototype.onDataChanged=Qk.prototype.onDataChanged;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Qk.prototype,"ytComponentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Qk.prototype,"actionButtonOverride",void 0);_.D([_.V(),_.K("design:type",Object)],Qk.prototype,"cancelButtonOverride",void 0);
_.D([_.V(),_.K("design:type",Object)],Qk.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],Qk.prototype,"initialRadioIndex",void 0);_.D([_.V(),_.K("design:type",Number)],Qk.prototype,"selectedRadioIndex",void 0);_.D([_.V(),_.K("design:type",String)],Qk.prototype,"selectedHandle",void 0);_.D([_.V(),_.K("design:type",Object)],Qk.prototype,"selectButtonDisabled",void 0);_.D([_.V(),_.K("design:type",Object)],Qk.prototype,"isLoading",void 0);
_.D([_.l("data"),_.K("design:type",Number),_.K("design:paramtypes",[])],Qk.prototype,"radioButtonLength",null);_.D([_.lA("ytd-handles-claiming-select-dialog-content"),_.K("design:type",Object)],Qk.prototype,"content",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Qk.prototype,"onDataChanged",null);
_.D([_.fx("selectedRadioIndex"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Qk.prototype,"onSelectedHandleIndexChanged",null);_.D([_.fx("selectedHandle"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Qk.prototype,"onSelectedHandleChanged",null);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Qk.prototype,"darkerDarkTheme",void 0);
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Qk.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Qk.prototype,"ytRendererstamperBehavior",void 0);_.D([_.h({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],Qk);
_.B(Qk,"ytd-handles-claiming-select-dialog-renderer",function(){if(IXq!==void 0)return IXq;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return IXq=H},{mode:1});var aXO;var xwt;var dX=function(){return _.X.apply(this,arguments)||this};
_.G(dX,_.X);dX.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],dX.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],dX.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],dX.prototype,"data",void 0);_.D([_.h({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],dX);
_.B(dX,"ytd-hotkey-dialog-section-option-renderer",function(){if(xwt!==void 0)return xwt;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return xwt=H},{mode:1});var HSO;var PR=function(){return _.X.apply(this,arguments)||this};
_.G(PR,_.X);PR.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],PR.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],PR.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],PR.prototype,"data",void 0);_.D([_.h({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],PR);
_.B(PR,"ytd-hotkey-dialog-section-renderer",function(){if(HSO!==void 0)return HSO;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return HSO=H},{mode:1});var $k=function(){var H=_.X.apply(this,arguments)||this;H.darkerDarkTheme=_.E("web_darker_dark_theme");return H};
_.G($k,_.X);$k.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],$k.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],$k.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],$k.prototype,"darkerDarkTheme",void 0);_.D([_.h({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],$k);
_.B($k,"ytd-hotkey-dialog-content",function(){if(aXO!==void 0)return aXO;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return aXO=H},{mode:1});var iS9;var p_=function(){return _.X.apply(this,arguments)||this};
_.G(p_,_.X);p_.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var H=document.querySelector("ytd-hotkey-dialog-content #scrollable");H&&(H.dialogElement=this.hostElement.parentElement)};
p_.prototype.onCloseTap=function(){_.q3(this.hostElement,"yt-close-popup-action")};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],p_.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],p_.prototype,"data",void 0);_.D([_.h({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],p_);
_.B(p_,"ytd-hotkey-dialog-renderer",function(){if(iS9!==void 0)return iS9;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return iS9=H},{mode:1});var Cu_;var kk=function(){return _.X.apply(this,arguments)||this};
_.G(kk,_.X);kk.prototype.onYtServiceRequestError=function(){if(this.blocked){var H;var C=(H=this.data)==null?void 0:H.defaultServiceEndpoint}else{var S;C=(S=this.data)==null?void 0:S.toggledServiceEndpoint}var w;(C=(w=_.e(C,_.zJd))==null?void 0:w.onFailureAction)&&this.ytComponentBehavior.resolveCommand(C);this.updateBlockState(!this.blocked)};
kk.prototype.onYtToggleButton=function(H){this.updateBlockState(H.detail.toggled)};
kk.prototype.updateBlockState=function(H){if(H!==this.blocked){var C=this.blockedEntityKey;C&&this.ytdReduxBehavior.dispatch(_.O5("blockStateEntity",C,{key:C,blocked:H}));this.set("data.isToggled",H)}};
_.JJ.Object.defineProperties(kk.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)}}});
kk.prototype.onYtToggleButton=kk.prototype.onYtToggleButton;kk.prototype.onYtServiceRequestError=kk.prototype.onYtServiceRequestError;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],kk.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],kk.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],kk.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],kk.prototype,"blockedEntityKey",void 0);
_.D([_.V({selectorArgs:["blockedEntityKey"],selector:function(H,C){return _.Ea(H.entities,"blockStateEntity",C)}}),
_.K("design:type",Object)],kk.prototype,"blockStateEntity",void 0);_.D([_.l("data","blockStateEntity"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],kk.prototype,"blocked",null);_.D([_.Gz("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],kk.prototype,"onYtServiceRequestError",null);
_.D([_.Gz("yt-toggle-button"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],kk.prototype,"onYtToggleButton",null);_.D([_.h({is:"ytd-block-button",disableElementRegistration:!0})],kk);
_.B(kk,"ytd-block-button",function(){if(Cu_!==void 0)return Cu_;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return Cu_=H},
{mode:1});var SDj;var sX_;var hL=function(){return _.X.apply(this,arguments)||this};
_.G(hL,_.X);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],hL.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],hL.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],hL.prototype,"data",void 0);_.D([_.h({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],hL);
_.B(hL,"ytd-kids-blocklist-picker-item-renderer",function(){if(sX_!==void 0)return sX_;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return sX_=H},{mode:1});var n_=function(){return _.X.apply(this,arguments)||this};
_.G(n_,_.X);n_.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],n_.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],n_.prototype,"data",void 0);_.D([_.h({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],n_);
_.B(n_,"ytd-kids-blocklist-picker-content",function(){if(SDj!==void 0)return SDj;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return SDj=
H},{mode:_.mn("kevlar_poly_si_batch_j025")?1:2});var jXO;var rX=function(){var H=_.X.apply(this,arguments)||this;H.hasAnyRequestSucceeded=!1;H.hasAnyRequestFailed=!1;H.numPendingRequests=0;return H};
_.G(rX,_.X);_.F=rX.prototype;_.F.attached=function(){this.hostElement.setAttribute("dialog","")};
_.F.onDoneButtonTap=function(){_.q3(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.F.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.F.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.F.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.F.onPopupClosed=function(H){var C,S;if(((C=H.detail)==null?void 0:(S=C.popup)==null?void 0:S.is)==="tp-yt-paper-dialog"){var w;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((w=this.data)==null?0:w.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.FG(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
rX.prototype.onPopupClosed=rX.prototype.onPopupClosed;rX.prototype.onYtServiceRequestError=rX.prototype.onYtServiceRequestError;rX.prototype.onYtServiceRequestCompleted=rX.prototype.onYtServiceRequestCompleted;rX.prototype.onYtServiceRequestSent=rX.prototype.onYtServiceRequestSent;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],rX.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],rX.prototype,"ytRendererBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],rX.prototype,"data",void 0);_.D([_.Gz("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rX.prototype,"onYtServiceRequestSent",null);_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rX.prototype,"onYtServiceRequestCompleted",null);
_.D([_.Gz("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rX.prototype,"onYtServiceRequestError",null);_.D([_.Gz("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],rX.prototype,"onPopupClosed",null);_.D([_.h({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],rX);
_.B(rX,"ytd-kids-blocklist-picker-renderer",function(){if(jXO!==void 0)return jXO;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return jXO=H},{mode:1});var wvR;var A6O;var BR=function(){return _.X.apply(this,arguments)||this};
_.G(BR,_.X);BR.prototype.setTip=function(H){var C=this;this.data&&(this.tip=Roj(gmt.getInstance(),H,this.data),_.wM(this,function(){_.M3(C.hostElement,"yt-refit")}))};
BR.prototype.clearTip=function(){this.tip=void 0};
BR.prototype.computeHidden=function(H){return!H};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],BR.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],BR.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.K("design:type",Boolean)],BR.prototype,"hidden",void 0);_.D([_.V(),_.K("design:type",Object)],BR.prototype,"tip",void 0);_.D([_.h({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],BR);
_.B(BR,"ytd-menu-popup-tip-renderer",function(){if(A6O!==void 0)return A6O;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);
return A6O=H},{mode:1});var J6i;var Dc=function(){var H=_.X.apply(this,arguments)||this;H.useIcons=!1;H.systemIcons=_.E("kevlar_system_icons");H.useListItemStyles=_.E("web_list_item_style_for_menu_items");return H};
_.G(Dc,_.X);_.F=Dc.prototype;_.F.onFocus=function(){var H;(H=_.mY(this.hostElement).querySelector("tp-yt-paper-item"))==null||H.focus()};
_.F.onTap=function(){var H=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(H&&_.e(H,_.b9))this.componentBehavior.resolveCommand(H),this.updateToggledStateInEntity();else if(H){this.componentBehavior.resolveCommand(H)||_.JA().resolve(_.ZQ).resolveCommand(H,{form:{element:this.hostElement}});var C;((C=_.e(H,_.eR))==null?void 0:C.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.F.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.F.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.F.updateToggledStateInEntity=function(){var H=this.data.toggleMenuServiceItemEntityKey,C=!this.data.isToggled;H&&this.ytdReduxBehavior.dispatch(_.O5("toggleMenuServiceItemEntity",H,{key:H,isToggled:C}))};
_.F.computeIcon=function(H,C,S){return(H=H?S:C)&&H.iconType?_.bJ(H.iconType):""};
_.F.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.F.isIconActive=function(H){return!_.E("toggle_menu_active_icon_killswitch")&&H};
_.JJ.Object.defineProperties(Dc.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var H,C,S;return((H=this.data)==null?0:H.isToggled)?(C=this.data)==null?void 0:C.toggledText:(S=this.data)==null?void 0:S.defaultText}}});
Dc.prototype.toggledStateEntityChanged=Dc.prototype.toggledStateEntityChanged;Dc.prototype.onYtServiceRequestCompleted=Dc.prototype.onYtServiceRequestCompleted;Dc.prototype.onTap=Dc.prototype.onTap;Dc.prototype.onFocus=Dc.prototype.onFocus;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Dc.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Dc.prototype,"componentBehavior",void 0);
_.D([_.v(_.q$),_.K("design:type",Object)],Dc.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Dc.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Dc.prototype,"useIcons",void 0);_.D([_.V({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.K("design:type",String)],Dc.prototype,"icon",void 0);
_.D([_.V({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(H,C){return _.Ea(H.entities,"toggleMenuServiceItemEntity",C)}}),
_.K("design:type",Object)],Dc.prototype,"toggleMenuServiceItemEntity",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Dc.prototype,"systemIcons",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Dc.prototype,"useListItemStyles",void 0);_.D([_.Gz("focus"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Dc.prototype,"onFocus",null);
_.D([_.l("data.isToggled"),_.K("design:type",Object),_.K("design:paramtypes",[])],Dc.prototype,"toggleButtonText",null);_.D([_.Gz("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Dc.prototype,"onTap",null);_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Dc.prototype,"onYtServiceRequestCompleted",null);
_.D([_.fx("toggleMenuServiceItemEntity.isToggled","data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Dc.prototype,"toggledStateEntityChanged",null);_.D([_.h({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],Dc);
_.B(Dc,"ytd-toggle-menu-service-item-renderer",function(){if(J6i!==void 0)return J6i;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return J6i=H},{mode:1});var FA_;var K_=function(){return _.X.apply(this,arguments)||this};
_.G(K_,_.X);K_.prototype.onFocus=function(){var H;(H=_.mY(this.hostElement).querySelector("tp-yt-paper-item"))==null||H.focus()};
_.JJ.Object.defineProperties(K_.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.D4(this.data.iconUrl)}}});
K_.prototype.onFocus=K_.prototype.onFocus;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],K_.prototype,"rendererBehavior",void 0);_.D([_.v(_.tZ.YtEndpointBehavior),_.K("design:type",Object)],K_.prototype,"ytEndpointBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],K_.prototype,"data",void 0);_.D([_.Gz("focus"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],K_.prototype,"onFocus",null);
_.D([_.l("data.iconUrl"),_.K("design:type",Object),_.K("design:paramtypes",[])],K_.prototype,"imageSource",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],K_);
_.B(K_,"ytd-menu-custom-icon-item-renderer",function(){if(FA_!==void 0)return FA_;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return FA_=H},{mode:_.mn("kevlar_poly_si_batch_j028")?1:2});_.qs(_.MA,"yt-list-item-view-model",{props:{data:_.GH,isMenuItem:_.GH,isCompact:_.GH,onTap:_.Yb,trailingAccessory:_.Yb,hideSelectionTextChevron:_.GH,disabled:_.GH,inPopup:_.GH,disableHorizontalPadding:_.GH,isOverlay:_.GH,isToggled:_.GH,ariaLabel:_.GH,ariaPressed:_.GH}});var tL=function(){var H=_.X.apply(this,arguments)||this;H.disableBackdropFilter=_.E("web_disable_backdrop_filter");return H};
_.G(tL,_.X);_.F=tL.prototype;
_.F.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"}}}};
_.F.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.F.computeAriaLabel=function(H){return H};
_.F.onPopupOpened=function(){this.items.selected=0;for(var H=_.Z(_.mY(this.items).children),C=H.next();!C.done;C=H.next())C.value.popupPositionTarget=this.positionTarget;if(H=this.popupTip||void 0)H.setTip(this.source||""),this.source=void 0;this.veData&&(H=_.Dg())&&_.ia(H,[this.veData])};
_.F.onPopupClosed=function(){var H=this.popupTip||void 0;H&&H.clearTip()};
_.F.onIronActivate=function(H){this.shouldPersist(H)||_.q3(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(H=_.Dg())&&_.Sp(H,this.veData)};
_.F.shouldPersist=function(H){var C,S;if(((C=H.detail)==null?void 0:C.selected)===void 0||(S=this.data)==null||!S.items)return!1;var w,A;return!((A=(w=this.data.items[H.detail.selected])==null?void 0:w.toggleMenuServiceItemRenderer)==null||!A.persistentOnMenuPopup)};
_.F.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(H){return H.menuNavigationItemRenderer?!!H.menuNavigationItemRenderer.icon:H.menuServiceItemRenderer?!!H.menuServiceItemRenderer.icon:H.menuConditionalServiceItemRenderer?!!H.menuConditionalServiceItemRenderer.icon:H.menuConditionalNavigationItemRenderer?!!H.menuConditionalNavigationItemRenderer.icon:H.toggleMenuServiceItemRenderer?!!H.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
tL.prototype.onPopupClosed=tL.prototype.onPopupClosed;tL.prototype.onPopupOpened=tL.prototype.onPopupOpened;_.D([_.v(_.ie.YtEventForwardingBehavior),_.K("design:type",Object)],tL.prototype,"ytEventForwardingBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],tL.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],tL.prototype,"ytRendererBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],tL.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],tL.prototype,"veData",void 0);_.D([_.V({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.K("design:type",String)],tL.prototype,"ariaLabel",void 0);_.D([_.V({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],tL.prototype,"useIcons",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],tL.prototype,"disableBackdropFilter",void 0);_.D([_.lA("#items"),_.K("design:type",Object)],tL.prototype,"items",void 0);_.D([_.lA("ytd-menu-popup-tip-renderer"),_.K("design:type",Object)],tL.prototype,"popupTip",void 0);_.D([_.Gz("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],tL.prototype,"onPopupOpened",null);
_.D([_.Gz("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],tL.prototype,"onPopupClosed",null);_.D([_.h({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],tL);
_.B(tL,"ytd-menu-popup-renderer",function(){if(wvR!==void 0)return wvR;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return wvR=H},{mode:1});var ZSK;var c63=_.n(function(H){H=_.FH(H,{icon:void 0});var C=H.data;H=H.icon;var S=function(){return C().iconBadgeText},w={},A=_.eJ("yt-spec-icon-badge-shape",function(){a:switch(C().iconBadgeType){case "notification":var J="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":J="yt-spec-icon-badge-shape--type-cart";break a;default:J=""}return J},function(){a:switch(C().iconBadgeStyle){case "overlay":var J="yt-spec-icon-badge-shape--style-overlay";
break a;default:J=""}return J},(w["yt-spec-icon-badge-shape--text-size-small"]=function(){var J=S();
return!!((J==null?0:J.length)&&J.length>2)},w));
return _.q("yt-icon-badge-shape",null,_.q(_.T,{cond:H,then:function(J){return _.q("div",{class:A},_.q("div",{class:"yt-spec-icon-badge-shape__icon"},_.q(_.lm,{icon:J})),_.q(_.T,{cond:S,then:function(c){return _.q("div",{class:"yt-spec-icon-badge-shape__badge"},c)}}))}}))},"Ch");
c63.idomCompat=!0;_.qs(c63,"yt-icon-badge-shape",{props:{data:_.GH,icon:_.GH}});var L_=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};H.unseenCount=0;H.isOverlay=!1;return H};
_.G(L_,_.X);_.F=L_.prototype;_.F.attached=function(){var H=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(C){H.onServiceWorkerMessage(C)})};
_.F.onDataChanged=function(){this.isAttached&&!this.JSC$20517_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20517_lastData=this.data};
_.F.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.F.computeIcon=function(){var H,C;return(H=this.data)==null?void 0:(C=H.icon)==null?void 0:C.iconType};
_.F.onServiceWorkerMessage=function(H){H.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.F.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.e(this.data.updateUnseenCountEndpoint,_.eR)&&_.e(this.data.updateUnseenCountEndpoint,_.eR).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.F.handleUpdateNotificationsUnseenCountAction=function(H){var C=this;H=_.e(H,M3p);H!=null&&H.unseenCount&&H.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(H.unseenCount),_.rT.addLowPriorityJob(function(){C.data.updateUnseenCountEndpoint&&C.ytComponentBehavior.resolveCommand(C.data.updateUnseenCountEndpoint)},H.timeoutMs))};
_.F.onClick=function(){_.M3(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var H=_.m7(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),C=this.data.menuRequest;H&&H.length===1&&H[0]?_.q3(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):C&&this.ytComponentBehavior.resolveCommand(C)};
_.F.handleTopbarMenuClosedAction=function(H){H==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.F.toggleIconState=function(H){this.iconButton&&(this.iconButton.pressed=H)};
_.F.sendUnseenCountRequest=function(H){var C=this;_.X2(_.rT,function(){C.ytComponentBehavior.resolveCommand(H)})};
_.F.updateCountUI=function(H){this.set("unseenCount",H<9?H:"9+")};
_.JJ.Object.defineProperties(L_.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
L_.prototype.handleUpdateNotificationsUnseenCountAction=L_.prototype.handleUpdateNotificationsUnseenCountAction;L_.prototype.onDataChanged=L_.prototype.onDataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],L_.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],L_.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.OY),_.K("design:type",Object)],L_.prototype,"ytdOpenPopupBehavior",void 0);
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],L_.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],L_.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],L_.prototype,"unseenCount",void 0);_.D([_.V(),_.K("design:type",Object)],L_.prototype,"isOverlay",void 0);_.D([_.V({value:!0}),_.K("design:type",Boolean)],L_.prototype,"showTooltips",void 0);_.D([_.lA("yt-icon-button"),_.K("design:type",Object)],L_.prototype,"iconButton",void 0);
_.D([_.l("unseenCount"),_.K("design:type",Object),_.K("design:paramtypes",[])],L_.prototype,"showNotificationCount",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],L_.prototype,"onDataChanged",null);_.D([_.Gz("yt-update-notifications-unseen-count-action"),_.K("design:type",Function),_.K("design:paramtypes",[Object]),_.K("design:returntype")],L_.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.D([_.h({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],L_);
_.B(L_,"ytd-notification-topbar-button-renderer",function(){if(ZSK!==void 0)return ZSK;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return ZSK=H},{mode:_.mn("kevlar_poly_si_batch_j025")?1:2});var YD3;var gX=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return H};
_.G(gX,_.X);gX.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}}}}}};
gX.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
gX.prototype.onDarkModeToggled=function(H){this.dark=H};
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],gX.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],gX.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],gX.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],gX.prototype,"data",void 0);_.D([_.V({value:!0,reflectToAttribute:!0}),_.K("design:type",Boolean)],gX.prototype,"dark",void 0);
_.D([_.h({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],gX);
_.B(gX,"yt-pdg-buy-flow-header-renderer",function(){if(YD3!==void 0)return YD3;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return YD3=H},{mode:1});var zAt;var MSi;var UJ=function(){var H=_.X.apply(this,arguments)||this;H.immediateValue=0;H.isDarkTheme=!1;H.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return H};
_.G(UJ,_.X);_.F=UJ.prototype;_.F.created=function(){_.Ao.requestAvailability()};
_.F.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.F.dataChanged=function(){var H=_.mY(this.hostElement).querySelector("#color-slider");H.immediateValue&&this.updateSliderKnobAndGradientStyles(H.immediateValue);this.data.notches[0].knobColorArgb&&_.Ed(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.aw(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.rh("HTML_DIR")==="rtl"&&_.mY(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.F.onSliderImmediateChange=function(){var H=_.mY(this.hostElement).querySelector("#color-slider");H.dragging&&(H.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(H.immediateValue),this.updateSliderKnobAndGradientStyles(H.immediateValue)),this.updateSliderAria())};
_.F.onSliderChange=function(){var H=_.mY(this.hostElement).querySelector("#color-slider");H.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(H.immediateValue),this.updateSliderKnobAndGradientStyles(H.immediateValue));this.updateSliderAria()};
_.F.updateSliderAria=function(){var H=_.mY(this.hostElement).querySelector("#color-slider"),C=_.mY(this.hostElement).querySelector("#color-slider");C=_.jt(this.data.notches[C.immediateValue].tierValue);_.WED()&&_.M3(this.hostElement,"iron-announce",{text:C});H.setAttribute("aria-valuetext",C)};
_.F.updateSuperThanksSelectedTierEntity=function(H){if(H!==this.immediateValue){var C,S,w=this==null?void 0:(C=this.data)==null?void 0:(S=C.superThanksSelectedTierEntity)==null?void 0:S.key;w&&w.length>0&&this.ytdReduxBehavior.dispatch(_.O5("superThanksSelectedTierEntity",w,{key:w,index:H}))}};
_.F.onDarkModeToggledAction=function(H){this.isDarkTheme=H};
_.F.updateSliderKnobAndGradientStyles=function(H){this.immediateValue=H;H=this.data.notches[H];if(H==null?0:H.knobColorArgb)var C={"--ytd-pdg-color-slider-knob-color":_.aw(H.knobColorArgb)};(H==null?0:H.linearGradientCssStyle)&&C!==null&&(C=Object.assign({},C,{"--ytd-pdg-color-slider-active-color":H==null?void 0:H.linearGradientCssStyle}));C!==null&&_.Ed(this.hostElement,C)};
UJ.prototype.onSliderChange=UJ.prototype.onSliderChange;UJ.prototype.onSliderImmediateChange=UJ.prototype.onSliderImmediateChange;UJ.prototype.dataChanged=UJ.prototype.dataChanged;_.D([_.V(),_.K("design:type",Object)],UJ.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],UJ.prototype,"immediateValue",void 0);_.D([_.V(),_.K("design:type",Number)],UJ.prototype,"maxMarkers",void 0);
_.D([_.V({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:W6r}),_.K("design:type",Object)],UJ.prototype,"superThanksSelectedTierEntity",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],UJ.prototype,"isDarkTheme",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],UJ.prototype,"ytdReduxBehavior",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],UJ.prototype,"dataChanged",null);
_.D([_.Gz("immediate-value-change"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],UJ.prototype,"onSliderImmediateChange",null);_.D([_.Gz("change"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],UJ.prototype,"onSliderChange",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],UJ);
_.B(UJ,"ytd-pdg-color-slider-renderer",function(){if(MSi!==void 0)return MSi;var H=document.createElement("template");_.f(H,'\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>');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return MSi=H},{mode:1});var qDj;var T3R;var R5=null;
_.hr({is:"ytd-comment-input",_template:function(){if(T3R!==void 0)return T3R;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return T3R=H},
behaviors:[_.BoU.YtHostElementBehavior,_.rA,_.mL.YtComponentBehavior,_.dc.YtRendererstamperBehavior,_.a_b.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 _.Nh}},
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",_.uA(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;_.XL();this.focus()},
detached:function(){document.removeEventListener("tap",_.uA(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(H){H=H.detail;H=H.isCustomEmoji?H.shortcuts[0]:H.emojiId;var C=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(C,H);this.maybeUpdateTextDirection_();_.M3(this.hostElement,"input")},
getInputRange_:function(){var H=_.mR();if(H){H=H.getBrowserRangeObject();for(var C=H.commonAncestorContainer;C;){if(C===this.getEditableTextArea_())return H;C=C.parentNode}}H=this.getEditableTextArea_();H=_.Cl(H,H.childNodes.length);H.select();return H.getBrowserRangeObject()},
insertTextWithEmojis_:function(H,C,S){(C=this.emojiManager.createDocumentFragment(C,!0,!1,S===void 0?!0:S))&&C.childNodes.length!==0&&(H.collapsed||H.deleteContents(),S=C.lastChild,H.insertNode(C),_.NEU(S).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var H=_.mR();if(H){var C=H.JSC$11360_getStartNode(),S=H.JSC$11360_getEndNode();if(Hni(C)&&Hni(S)){var w=H.JSC$11360_getStartOffset(),A;if(_.Wu&&C.nodeType===Node.ELEMENT_NODE&&(A=_.Ni1(C)))_.Cl(A,0).select();else{A=wD(C)?C:_.tb(C,wD);var J=wD(S)?S:_.tb(S,wD);if(A||J)if(H.isCollapsed()){if(C.nodeType===Node.TEXT_NODE){H=!0;w===C.length&&(H=!1);if(R5==="end"||R5==="right")H=!1;C=C.parentNode;H=[].concat(_.k$(C.parentNode.childNodes)).indexOf(C)+(H?0:1);_.Cl(C.parentNode,
H).select()}}else A?A.previousSibling&&A.previousSibling.length>0?_.Sc(S,H.JSC$11360_getEndOffset(),A.previousSibling,A.previousSibling.length-1).select():(C=document.createTextNode("\u200b"),A.parentNode.insertBefore(C,A),_.Sc(S,H.JSC$11360_getEndOffset(),C,0).select()):J&&(J.nextSibling&&J.nextSibling.length>0?_.Sc(C,H.JSC$11360_getStartOffset(),J.nextSibling,1).select():(S=document.createTextNode("\u200b"),J.parentNode.insertBefore(S,J.nextSibling),_.Sc(C,H.JSC$11360_getStartOffset(),S,S.length).select()));
R5=null}}else R5=null}else R5=null},
leftKeyPressed_:function(){R5="left"},
rightKeyPressed_:function(){R5="right"},
endKeyPressed_:function(){R5="end"},
maybeDeleteChip_:function(){var H=wtK(!0);if(H){var C=_.mR(),S=C.JSC$11360_getStartNode();C=C.JSC$11360_getStartOffset();_.IF(S,C,H,H.childNodes.length).select()}},
maybeBackspaceChip_:function(){var H=wtK(!1);if(H){var C=_.mR(),S=C.JSC$11360_getStartNode();C=C.JSC$11360_getStartOffset();_.IF(S,C,H,0).select()}},
maybeBackspaceChipWordMode_:function(H){var C=_.mR();if(C.isCollapsed()){var S=C.JSC$11360_getStartNode();C=C.JSC$11360_getStartOffset();var w=ABK(S,C,!0);w&&(_.IF(S,C,w,0).select(),document.execCommand("delete"),H.preventDefault(),H.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(H){var C=_.mR();if(C.isCollapsed()){var S=C.JSC$11360_getStartNode();C=C.JSC$11360_getStartOffset();var w=ABK(S,C,!1);w&&(_.IF(S,C,w,w.childNodes.length).select(),document.execCommand("delete"),H.preventDefault(),H.stopImmediatePropagation())}},
onContentClick:function(H){H.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(H){H.defaultPrevented||H.currentTarget.tagName==="YTD-COMMENT-INPUT"&&wD(H.target)&&H.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.mY(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.mY(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(H,C){H=CrK(H,this.emojiManager,C).cloneNode(!0);for(C=H.firstChild;C;)if(C.nodeType!==1)C=C.nextSibling;else switch(C.tagName){case "BR":var S=_.B8();_.lqP(S,C);C=S.nextSibling;break;case "DIV":(S=C.lastChild)&&C.nextSibling&&_.Li(_.B8(),S);C.previousSibling&&(C.previousSibling.nodeType===1||C.previousSibling.nodeType===3&&!C.previousSibling.textContent.endsWith("\n"))&&_.tl(_.B8(),C);S&&S.nodeName==="BR"&&_.f6(S);S=C;C.hasChildNodes()?(C=C.firstChild,
_.Vo1(S)):(C=C.nextSibling,_.f6(S));break;default:C=C.nextSibling}return JBr(H)},
setTextAreaValue:function(H){H||(H="");var C=this.getEditableFormattedString_();C.text="";this.getEditableTextArea_().innerText="";typeof H==="string"&&(H={runs:[{text:H}]});C.text=H},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();R5=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var H=this.getEditableTextArea_();H&&(_.Cl(H,H.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.rh("HTML_DIR")==="rtl"){var H=this.getEditableTextArea_(),C=this.getTextAreaValue()!==""?"auto":"rtl";H.setAttribute("dir",C)}},
handleInputEvent_:function(){var H=null;if(this.isEmojiButtonDisplayed){var C=this.getInputRange_();C&&(H=this.emojiInput.retrieveTextBeforeRange(C))}this.insertText_(H,!0);this.updateCharCount_();H=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=H.scrollHeight>H.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var H=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:H})},
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(H){this.isEmojiButtonDisplayed&&(H.preventDefault(),H.stopImmediatePropagation(),H=H.clipboardData.getData("text/plain"),this.insertText_(H,!1,!1),_.M3(this.hostElement,"input"))},
insertText_:function(H,C,S){C=C===void 0?!1:C;S=S===void 0?!0:S;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&H){var w=this.getInputRange_().cloneRange();this.emojiManager&&w&&(C&&this.emojiInput.offsetStartOfRangeBy(w,H.length),this.insertTextWithEmojis_(w,H,S),in_(this.getEditableTextArea_().lastChild)||(w=this.getInputRange_().cloneRange()),w&&(this.emojiInput.updateSuggestions(w,H),this.updateSuggestionOffset_(w)))}},
getSimpleString:_.jt,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(H){return H?"focused":"not-focused"},
computePlaceholderText_:function(H){return this.getSimpleString(H)},
computeEditableText_:function(H){return this.getSimpleString(H)},
onPrefilledContentDismissed_:function(H){H.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(H,C){H?this.fire("yt-autonav-pause-focus"):C!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(H){var C=this.getEditableTextArea_();[].concat(_.k$(H.dataTransfer.items)).forEach(function(S){S.kind==="string"&&S.type.match("^text/plain")&&S.getAsString(function(w){C.appendChild(document.createTextNode(w))})});
H.preventDefault()},
preventDefault_:function(H){H.preventDefault()},
onSuggestionInsert_:function(H){this.insertTextWithEmojis_(H.detail.range,H.detail.text)},
onEmojiSuggestionClick_:function(H){this.emojiInput.insertSuggestion(H.detail)},
updateSuggestionOffset_:function(H){if(this.emojiInput&&_.mY(this.emojiInput).querySelector("#dropdown")){var C=this.getEditableTextArea_().getBoundingClientRect().bottom,S=H.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(C-S)+5;C=this.getEditableTextArea_().getBoundingClientRect().left;H=H.getBoundingClientRect().left-C;_.mY(this.emojiInput).querySelector("#dropdown").style.marginLeft=H+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.LV("yt-post"));return this.localStorage}});var I5=function(){var H=_.X.apply(this,arguments)||this;H.currentCommentOptionIndex=0;H.isEmojiPickerDisplayed=!1;H.emojiManager=_.Nh;H.isUgcEmpty=!1;H.userGeneratedCommentChangedHandler=function(){_.M3(H.hostElement,"ytd-pdg-user-generated-comment-changed");H.isEmojiYtdCommentInputEnabled&&(H.isUgcEmpty=!H.ytdCommentInputEl.getTextAreaValue())};
H.pasteHandler=function(C){C.preventDefault();C.stopImmediatePropagation();var S;if(C=(S=C.clipboardData)==null?void 0:S.getData("text/plain"))S=document.getSelection().getRangeAt(0),S.collapsed||S.deleteContents(),C=document.createTextNode(C),S.insertNode(C),S.selectNodeContents(C),S.collapse(!1),C=window.getSelection(),C.removeAllRanges(),C.addRange(S)};
H.onDocumentClick=function(C){if(H.isEmojiPickerDisplayed){var S,w,A;!(C.target instanceof Node)||(S=C.composedPath())!=null&&S.includes(H.editableTextEl)||(w=C.composedPath())!=null&&w.includes(H.emojiButtonEl)||(A=C.composedPath())!=null&&A.includes(H.emojiPickerEl)||(H.isEmojiPickerDisplayed=!1)}};
return H};
_.G(I5,_.X);_.F=I5.prototype;_.F.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.F.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.F.detached=function(){var H;(H=this.contentEl)==null||H.removeEventListener("input",this.userGeneratedCommentChangedHandler);var C;(C=this.contentEl)==null||C.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.F.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.F.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var H;this.contentEl.textContent=this.rendererBehavior.getSimpleString((H=this.data)==null?void 0:H.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.F.reloadEmojis=function(){this.emojiPickerEl&&_.e(this.emojiPicker,_.L9Y)&&this.emojiPickerEl.updateEmojiCategories()};
_.F.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.Ed(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.F.handleBackgroundColorStyling=function(){var H;if((H=this.currentCommentOption)==null?0:H.commentBackgroundColorArgb){var C;_.Ed(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.aw((C=this.currentCommentOption)==null?void 0:C.commentBackgroundColorArgb)})}else _.Ed(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.F.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var H;(H=this.contentEl)==null||H.focus()}};
_.F.onEditButtonClick=function(H){var C=document.getSelection();C&&this.contentEl&&(H.stopPropagation(),H.preventDefault(),C.selectAllChildren(this.contentEl),C.collapseToEnd())};
_.F.onContentDrop=function(H){var C=this;if(H.dataTransfer){H=_.Z(H.dataTransfer.items);for(var S=H.next();!S.done;S=H.next())S=S.value,S.kind==="string"&&S.type.match("^text/plain")&&S.getAsString(function(w){var A;(A=C.contentEl)==null||A.appendChild(document.createTextNode(w))})}};
_.F.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.F.getUserGeneratedCommentText=function(){var H,C=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(H=this.contentEl)==null?void 0:H.textContent;return C?C.trim():""};
_.F.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.F.onEmojiSelect=function(H){this.ytdCommentInputEl.onEmojiSelect(H)};
_.JJ.Object.defineProperties(I5.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.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 H;return!((H=this.currentCommentOption)==null||!H.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var H;if(_.e((H=this.currentCommentOption)==null?void 0:H.chipRenderer,_.z$1)){var C;return _.e((C=this.currentCommentOption)==null?void 0:C.chipRenderer,_.z$1)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var H,C;return((H=this.data)==null?0:H.commentOptionRenderers)?_.e((C=this.data)==null?void 0:C.commentOptionRenderers[this.superThanksSelectedTierEntity.index],rvR):void 0}var S,w;return((S=this.data)==null?0:S.commentOptionRenderers)?_.e((w=this.data)==null?void 0:w.commentOptionRenderers[this.currentCommentOptionIndex],rvR):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var H;return this.rendererBehavior.getSimpleString((H=this.data)==null?void 0:H.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var H;return this.rendererBehavior.getSimpleString((H=this.data)==null?void 0:H.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var H,C;return(C=_.e((H=this.data)==null?void 0:H.commentDialog,_.MKb))==null?void 0:C.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var H,C;return(C=_.e((H=this.data)==null?void 0:H.commentDialog,_.MKb))==null?void 0:C.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var H,C;return(C=_.e((H=this.data)==null?void 0:H.commentDialog,_.MKb))==null?void 0:C.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var H,C,S=(C=_.e((H=this.data)==null?void 0:H.commentDialog,_.MKb))==null?void 0:C.emojiPicker;if(!_.e(S,_.L9Y)||!_.e(S,_.L9Y).categories)return!1;H=function(J){return J.emojiPickerCategoryRenderer?J.emojiPickerCategoryRenderer.emojiIds&&J.emojiPickerCategoryRenderer.emojiIds.length>0:J.emojiPickerUpsellCategoryRenderer?J.emojiPickerUpsellCategoryRenderer.emojis&&J.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var w,A;return((w=_.e(S,_.L9Y))==null?0:(A=w.categories)==null?0:A.find(H))?!0:!1}}});
I5.prototype.onEmojiSelect=I5.prototype.onEmojiSelect;I5.prototype.dataChanged=I5.prototype.dataChanged;I5.prototype.currentCommentOptionChanged=I5.prototype.currentCommentOptionChanged;_.D([_.v(_.q$),_.K("design:type",Object)],I5.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],I5.prototype,"rendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],I5.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.lA("#content-dom-if"),_.K("design:type",_.rE)],I5.prototype,"contentDomIfEl",void 0);_.D([_.lA("#content-no-emojis"),_.K("design:type",HTMLElement)],I5.prototype,"contentEl",void 0);_.D([_.lA("#container"),_.K("design:type",HTMLElement)],I5.prototype,"containerEl",void 0);_.D([_.lA("#comment-chip-container"),_.K("design:type",HTMLElement)],I5.prototype,"paidCommentChipContainerEl",void 0);_.D([_.lA("#text-input"),_.K("design:type",HTMLElement)],I5.prototype,"editableTextEl",void 0);
_.D([_.lA("#emoji-button"),_.K("design:type",HTMLElement)],I5.prototype,"emojiButtonEl",void 0);_.D([_.lA("#emoji-picker > yt-emoji-picker-renderer"),_.K("design:type",Object)],I5.prototype,"emojiPickerEl",void 0);_.D([_.lA("#text-input > ytd-comment-input"),_.K("design:type",Object)],I5.prototype,"ytdCommentInputEl",void 0);_.D([_.V(),_.K("design:type",Object)],I5.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],I5.prototype,"currentCommentOptionIndex",void 0);
_.D([_.V({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:W6r}),_.K("design:type",Object)],I5.prototype,"superThanksSelectedTierEntity",void 0);_.D([_.V(),_.K("design:type",Object)],I5.prototype,"isEmojiPickerDisplayed",void 0);_.D([_.V(),_.K("design:type",Object)],I5.prototype,"emojiManager",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],I5.prototype,"isUgcEmpty",void 0);
_.D([_.fx("currentCommentOption"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],I5.prototype,"currentCommentOptionChanged",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],I5.prototype,"dataChanged",null);_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],I5.prototype,"isEmojiYtdCommentInputEnabled",null);
_.D([_.l("data.title"),_.K("design:type",Object),_.K("design:paramtypes",[])],I5.prototype,"title",null);_.D([_.l("data.authorText"),_.K("design:type",Object),_.K("design:paramtypes",[])],I5.prototype,"channelName",null);_.D([_.l("data.commentOptionRenderers","currentCommentOption"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],I5.prototype,"shouldShowPaidCommentChipRenderer",null);
_.D([_.l("data.commentOptionRenderers","currentCommentOption"),_.K("design:type",Object),_.K("design:paramtypes",[])],I5.prototype,"paidCommentChipRenderer",null);_.D([_.l("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],I5.prototype,"currentCommentOption",null);
_.D([_.l("data.defaultCommentText","superThanksSelectedTierEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],I5.prototype,"commentText",null);_.D([_.l("data.placeholderText"),_.K("design:type",Object),_.K("design:paramtypes",[])],I5.prototype,"placeholderText",null);_.D([_.l("data.commentDialog.commentDialogRenderer.editableText"),_.K("design:type",Object),_.K("design:paramtypes",[])],I5.prototype,"editableText",null);
_.D([_.l("data.commentDialog.commentDialogRenderer.emojiButton"),_.K("design:type",Object),_.K("design:paramtypes",[])],I5.prototype,"emojiButton",null);_.D([_.l("data.commentDialog.commentDialogRenderer.emojiPicker"),_.K("design:type",Object),_.K("design:paramtypes",[])],I5.prototype,"emojiPicker",null);
_.D([_.l("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],I5.prototype,"isEmojiButtonDisplayed",null);_.D([_.Gz("yt-emoji-select"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],I5.prototype,"onEmojiSelect",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],I5);
_.B(I5,"ytd-pdg-comment-preview-renderer",function(){if(qDj!==void 0)return qDj;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return qDj=H},{mode:2});var m6_;var a5=function(){var H=_.X.apply(this,arguments)||this;H.selected=!1;return H};
_.G(a5,_.X);_.F=a5.prototype;_.F.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.F.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.F.dataChanged=function(){this.data&&(_.WY(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.Ed(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.aw(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.aw(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.F.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.F.onClick=function(){this.logClick()};
_.F.onKeyboardSelect=function(){_.M3(this.hostElement,"tap");this.onClick()};
_.F.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
a5.prototype.onClick=a5.prototype.onClick;a5.prototype.selectedChanged=a5.prototype.selectedChanged;a5.prototype.dataChanged=a5.prototype.dataChanged;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],a5.prototype,"componentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],a5.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.rA),_.K("design:type",Object)],a5.prototype,"ironA11yKeysBehavior",void 0);
_.D([_.v(_.SU),_.K("design:type",Object)],a5.prototype,"ironSelectableBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],a5.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],a5.prototype,"shownThumbnail",void 0);_.D([_.V(),_.K("design:type",Object)],a5.prototype,"basePriceText",void 0);_.D([_.V(),_.K("design:type",Object)],a5.prototype,"purchaseCommand",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],a5.prototype,"selected",void 0);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],a5.prototype,"dataChanged",null);_.D([_.fx("selected"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],a5.prototype,"selectedChanged",null);_.D([_.Gz("click"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],a5.prototype,"onClick",null);
_.D([_.h({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],a5);
_.B(a5,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(m6_!==void 0)return m6_;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return m6_=H},{mode:1});var xk=function(){var H=_.X.apply(this,arguments)||this;H.selectedItemIndex=0;H.buyButtonDisabled=!1;return H};
_.G(xk,_.X);_.F=xk.prototype;
_.F.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]]"}}}}}};
_.F.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var H;var C=(H=_.e(this.data.colorSlider,nrO))==null?void 0:H.notches[this.selectedItemIndex].purchaseCommand}else{var S;C=(S=_.e(this.data.selectableItemButtons[this.selectedItemIndex],Dhp))==null?void 0:S.purchaseCommand}if(C){H=_.e(C,_.I$n);H.productData||(H.productData={});var w;H.productData={pdgData:{commentMessageText:(w=this.commentPreviewRenderer)==null?void 0:w.getUserGeneratedCommentText()}};
_.M3(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(C)}}};
_.F.dataChanged=function(){if(this.data){_.Nh.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.vhd(_.Nh,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.Nh.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var H;this.buyButtonDisabled=!((H=_.e(this.data.commentPreview,B2O))==null||!H.placeholderText);this.updatePriceSelectorStatus();var C;if((C=this.data)==null?0:C.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;H=[];this.data.preloadImages&&(H=this.data.preloadImages);
H=H.map(function(S){return _.TG(S.thumbnails,1920)});
H=_.Z(H);for(C=H.next();!C.done;C=H.next())(C=C.value)&&_.bYu(C).thenCatch(function(){_.Bn(Error("Cl"))})}};
_.F.superThanksSelectedTierEntityChanged=function(){var H;(this==null?void 0:(H=this.superThanksSelectedTierEntity)==null?void 0:H.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.F.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.F.updatePriceSelectorStatus=function(){this.isColorSlider?(_.mY(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.mY(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.mY(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.mY(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.F.closeBuyFlow=function(){_.q3(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.F.onUserGeneratedContentChanged=function(){var H;this.buyButtonDisabled=!((H=this.commentPreviewRenderer)==null?0:H.getUserGeneratedCommentText())};
_.F.updateSelectedItemIndexFromBinding=function(H){this.selectedItemIndex=H.detail.value};
_.JJ.Object.defineProperties(xk.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var H;return!((H=this.data)==null||!H.disclaimerText)}}});
xk.prototype.onUserGeneratedContentChanged=xk.prototype.onUserGeneratedContentChanged;xk.prototype.closeBuyFlow=xk.prototype.closeBuyFlow;xk.prototype.selectedItemIndexChanged=xk.prototype.selectedItemIndexChanged;xk.prototype.superThanksSelectedTierEntityChanged=xk.prototype.superThanksSelectedTierEntityChanged;xk.prototype.dataChanged=xk.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],xk.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],xk.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],xk.prototype,"ytComponentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],xk.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],xk.prototype,"selectedItemIndex",void 0);_.D([_.V(),_.K("design:type",Boolean)],xk.prototype,"isColorSlider",void 0);
_.D([_.V(),_.K("design:type",Object)],xk.prototype,"buyButtonDisabled",void 0);_.D([_.V({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:W6r}),_.K("design:type",Object)],xk.prototype,"superThanksSelectedTierEntity",void 0);_.D([_.lA("ytd-pdg-comment-preview-renderer"),_.K("design:type",Object)],xk.prototype,"commentPreviewRenderer",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],xk.prototype,"ytdReduxBehavior",void 0);
_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xk.prototype,"dataChanged",null);_.D([_.fx("superThanksSelectedTierEntity"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xk.prototype,"superThanksSelectedTierEntityChanged",null);_.D([_.fx("selectedItemIndex"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xk.prototype,"selectedItemIndexChanged",null);
_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xk.prototype,"closeBuyFlow",null);_.D([_.Gz("ytd-pdg-user-generated-comment-changed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xk.prototype,"onUserGeneratedContentChanged",null);_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],xk.prototype,"isDisclaimerTextShown",null);
_.D([_.h({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],xk);
_.B(xk,"yt-super-vod-buy-flow-content-renderer",function(){if(zAt!==void 0)return zAt;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return zAt=H},{mode:1});var WAK;var HX=function(){var H=_.X.apply(this,arguments)||this;H.lottieAnimationRef={};return H};
_.G(HX,_.X);_.F=HX.prototype;_.F.created=function(){_.Ao.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.uA(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.F.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.M3(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.F.detached=function(){this.autoCloseJobId&&_.rT.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.uA(this,this.onPopupIronOverlayOpened))};
_.F.dataChanged=function(){var H=this;this.data&&this.data.autoCloseDelay&&(_.q3(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.Ns(_.rT,function(){H.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.Ed(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.F.onDOMLoadedLottie=function(){var H=this,C,S,w=Number((C=this.data)==null?void 0:(S=C.autoCloseDelay)==null?void 0:S.seconds)||0;this.fadeOutJobId=_.Ns(_.rT,function(){H.lottiePlayerEl.classList.add("fadeout")},(w-.25)*1E3);
this.autoCloseJobId=_.Ns(_.rT,function(){H.closePopup()},w*1E3)};
_.F.openPopup=function(){this.ironOverlayBehavior.open()};
_.F.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.q3(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.yN(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.JA().resolve(_.ZQ).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.rT.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.rT.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.F.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var H,C;(H=this.lottieAnimationRef)==null||(C=H.lottieEl)==null||C.destroy();H=this.data.lottie;var S,w;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:H.url+"_"+Math.random(),path:H.url,autoplay:!0,loop:(w=(S=H.settings)==null?void 0:S.loop)!=null?w:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.JJ.Object.defineProperties(HX.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var H,C;return!!((H=this.data)==null?0:(C=H.lottie)==null?0:C.url)}}});
HX.prototype.maybeInitializeLottie=HX.prototype.maybeInitializeLottie;HX.prototype.dataChanged=HX.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],HX.prototype,"rendererBehavior",void 0);_.D([_.v(_.zj),_.K("design:type",Object)],HX.prototype,"ironOverlayBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],HX.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],HX.prototype,"lottiePlayerProps",void 0);
_.D([_.V(),_.K("design:type",Object)],HX.prototype,"lottieAnimationRef",void 0);_.D([_.lA("ytd-lottie-player"),_.K("design:type",HTMLElement)],HX.prototype,"lottiePlayerEl",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],HX.prototype,"dataChanged",null);_.D([_.l("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],HX.prototype,"hasLottieAnimation",null);
_.D([_.fx("data.lottie.url"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],HX.prototype,"maybeInitializeLottie",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],HX);
_.B(HX,"ytd-desktop-image-overlay-renderer",function(){if(WAK!==void 0)return WAK;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return WAK=H},{mode:1});var y63;var iO=function(){return _.X.apply(this,arguments)||this};
_.G(iO,_.X);_.F=iO.prototype;_.F.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"}}}}};
_.F.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",_.uA(this,this.closePopup))};
_.F.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.uA(this,this.closePopup))};
_.F.dataChanged=function(){_.m7(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.e(this.data.header,hvi)&&(this.hasBackgroundBanner=!!_.e(this.data.header,hvi).backgroundBanner)};
_.F.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.uA(this,this.closePopup))};
_.F.closePopup=function(){this.data&&this.data.onCloseCommand&&_.WH(this.hostElement,[this.data.onCloseCommand])};
iO.prototype.handleBuyflowSelectionSubmitted=iO.prototype.handleBuyflowSelectionSubmitted;iO.prototype.dataChanged=iO.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],iO.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],iO.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],iO.prototype,"data",void 0);
_.D([_.V({value:!0,reflectToAttribute:!0}),_.K("design:type",Boolean)],iO.prototype,"hasBackgroundBanner",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],iO.prototype,"dataChanged",null);_.D([_.Gz("yt-pdg-buy-flow-selection-submitted"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],iO.prototype,"handleBuyflowSelectionSubmitted",null);
_.D([_.h({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],iO);
_.B(iO,"ytd-pdg-buy-flow-renderer",function(){if(y63!==void 0)return y63;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return y63=H},{mode:1});var N3O;var Ca=function(){var H=_.X.apply(this,arguments)||this;H.isOpen=!1;H.isPlaylistCreated=!1;return H};
_.G(Ca,_.X);_.F=Ca.prototype;_.F.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.F.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.M3(this.hostElement,"yt-refit")};
_.F.onCreateTap=function(){var H=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.WH(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(C,S){if(!_.E("killswitch_ep_in_create_playlist_response")&&(S==null?0:S.actions))for(C=_.Z(S.actions),S=C.next();!S.done;S=C.next())S=S.value,_.e(S,_.Qn)&&H.ytComponentBehavior.resolveCommand(S)}}]),this.isPlaylistCreated=!0)};
_.F.onKeydown=function(H){if(H.keyCode===13)this.onCreateTap()};
_.F.onServiceRequestCompleted=function(H){H.stopPropagation();_.q3(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.F.computePrivacyBadge=function(H){return H?[{metadataBadgeRenderer:H}]:[]};
Ca.prototype.onServiceRequestCompleted=Ca.prototype.onServiceRequestCompleted;Ca.prototype.onKeydown=Ca.prototype.onKeydown;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Ca.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Ca.prototype,"ytComponentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Ca.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],Ca.prototype,"isOpen",void 0);
_.D([_.V(),_.K("design:type",Object)],Ca.prototype,"isPlaylistCreated",void 0);_.D([_.V({value:{REQUIRED_LABEL:_.fL("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.fL("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.K("design:type",Object)],Ca.prototype,"addToStrings",void 0);_.D([_.V({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.K("design:type",Array)],Ca.prototype,"privacyBadge",void 0);
_.D([_.lA("#privacy-input"),_.K("design:type",Object)],Ca.prototype,"privacyInput",void 0);_.D([_.lA("#name-input"),_.K("design:type",Object)],Ca.prototype,"nameInput",void 0);_.D([_.Gz("keydown"),_.K("design:type",Function),_.K("design:paramtypes",[KeyboardEvent]),_.K("design:returntype")],Ca.prototype,"onKeydown",null);_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Ca.prototype,"onServiceRequestCompleted",null);
_.D([_.h({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],Ca);
_.B(Ca,"ytd-add-to-playlist-create-renderer",function(){if(N3O!==void 0)return N3O;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return N3O=H},{mode:1});var bSj;var Epi;var ST=function(){var H=_.X.apply(this,arguments)||this;H.transferState="TRANSFER_STATE_UNKNOWN";return H};
_.G(ST,_.X);ST.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
ST.prototype.onCheckboxChange=function(H){var C=this;this.data&&_.iJ(this,"yt-playlist-checkbox-changed",function(){var S=_.Jr(H).checked?C.data.addToPlaylistServiceEndpoint:C.data.removeFromPlaylistServiceEndpoint;S&&_.JA().resolve(_.ZQ).resolveCommand(S,{form:{element:C.hostElement}});_.E("dl_playlist_killswitch")||C.transferState!=="TRANSFER_STATE_UNKNOWN"&&C.transferState!=="TRANSFER_STATE_FAILED"&&C.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:C.data.playlistId,action:"ACTION_SYNC"}})},
100)};
ST.prototype.computeIconType=function(H){return H?"yt-icons:"+H.toLowerCase():null};
ST.prototype.dataChanged=ST.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],ST.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],ST.prototype,"data",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],ST.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],ST.prototype,"ytComponentBehavior",void 0);_.D([_.lA("#checkbox"),_.K("design:type",HTMLInputElement)],ST.prototype,"checkbox",void 0);
_.D([_.V({selector:_.gB,selectorArgs:["data.playlistId"]}),_.K("design:type",String)],ST.prototype,"transferState",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ST.prototype,"dataChanged",null);_.D([_.h({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],ST);
_.B(ST,"ytd-playlist-add-to-option-renderer",function(){if(Epi!==void 0)return Epi;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Epi=H},{mode:1});var eA3=_.n(function(H){var C=H.data;return _.q("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.q("div",null,_.q(_.uZ,{text:function(){return C().title}})),_.q(_.T,{cond:function(){return C().subtitle},
then:function(S){return _.q("div",{class:"ytdMenuTitleRendererSubtitle"},_.q(_.uZ,{text:S}))}}))},"Dh");
eA3.idomCompat=!0;_.qs(eA3,"ytd-menu-title-renderer",{props:{data:_.GH}});var si=function(){var H=_.X.apply(this,arguments)||this;H.addToStrings={ADD_TO_DROPDOWN_LABEL:_.fL("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};H.closeButtonAriaLabel=_.fL("SBOX_INAPPROPRIATE_CANCEL");H.dialog=_.E("desktop_add_to_playlist_renderer_dialog_popup");return H};
_.G(si,_.X);_.F=si.prototype;_.F.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"}}}};
_.F.onPopupOpened=function(){_.yQ(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.F.onPopupClosed=function(){_.yQ(this.playlists,"scrollable",!1)};
_.F.computeAriaLabel=function(){var H;if(this==null?0:(H=this.data)==null?0:H.actions){H=_.Z(this.data.actions);for(var C=H.next();!C.done;C=H.next())if(C=C.value,C.menuTitleRenderer)return _.jt(C.menuTitleRenderer.title)}};
_.F.onTapClose=function(){_.q3(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.JJ.Object.defineProperties(si.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var H;if(this==null?0:(H=this.data)==null?0:H.actions){H=_.Z(this.data.actions);for(var C=H.next();!C.done;C=H.next())if(C=C.value,C.menuTitleRenderer)return C.menuTitleRenderer}return!1}}});
si.prototype.onPopupClosed=si.prototype.onPopupClosed;si.prototype.onPopupOpened=si.prototype.onPopupOpened;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],si.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.ie.YtEventForwardingBehavior),_.K("design:type",Object)],si.prototype,"ytEventForwardingBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],si.prototype,"ytRendererStamperBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],si.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],si.prototype,"addToStrings",void 0);_.D([_.V({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.K("design:type",String)],si.prototype,"ariaLabel",void 0);_.D([_.V(),_.K("design:type",String)],si.prototype,"closeButtonAriaLabel",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],si.prototype,"dialog",void 0);
_.D([_.lA("#playlists"),_.K("design:type",HTMLElement)],si.prototype,"playlists",void 0);_.D([_.lA("ytd-add-to-playlist-create-renderer"),_.K("design:type",Object)],si.prototype,"createRenderer",void 0);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],si.prototype,"menuTitleRenderer",null);_.D([_.Gz("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],si.prototype,"onPopupOpened",null);
_.D([_.Gz("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],si.prototype,"onPopupClosed",null);_.D([_.h({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],si);
_.B(si,"ytd-add-to-playlist-renderer",function(){if(bSj!==void 0)return bSj;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return bSj=H},{mode:1});var uhR;var jT=function(){var H=_.X.apply(this,arguments)||this;H.isPlaylistEditComplete=!1;H.isCollabEngagementDisabled=!1;H.closeButtonAriaLabel=_.fL("SBOX_INAPPROPRIATE_CANCEL");H.saveButton={title:_.fL("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"};H.onValueChanged=function(){H.updateSaveButtonState();H.computeCollabEngagementDisabled()};
return H};
_.G(jT,_.X);_.F=jT.prototype;_.F.attached=function(){this.JSC$20571_scroller&&(this.JSC$20571_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20571_scroller.attached&&typeof this.JSC$20571_scroller.attached==="function"&&this.JSC$20571_scroller.attached())};
_.F.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.F.onPopupClosed=function(){this.reset()};
_.F.close=function(){_.q3(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.F.onClickSave=function(){var H=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var C=[];this.nameInput.value!==null&&C.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&C.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var S=Number(this.privacyInput.value);isNaN(S)||C.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:S})}this.votingInput.value!==null&&(S=this.votingInput.value)&&C.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:S});if(C.length>0){var w;_.e((w=this.data)==null?void 0:w.updateSettingsEndpoint,_.Jd).actions=C;var A;if((A=this.data)==null?0:A.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){H.close()}}}),this.isPlaylistEditComplete=!0}}};
_.F.computePrivacyBadge=function(H){return H?[{metadataBadgeRenderer:H}]:[]};
_.F.computeEditorData=function(H){var C,S;return H==null?void 0:(C=H.sections)==null?void 0:(S=C[0])==null?void 0:S.playlistSettingsEditorCasualSectionRenderer};
_.F.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.F.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}}}}}};
_.F.computeAriaLabel=function(){var H,C,S,w=(H=this.data)==null?void 0:(C=H.sections)==null?void 0:(S=C[0])==null?void 0:S.playlistSettingsEditorCasualSectionRenderer;return _.jt(w==null?void 0:w.title)};
_.F.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"}))};
_.F.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.F.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.F.isNameChanged=function(){var H,C,S;return(((H=this.editorData)==null?void 0:(C=H.name)==null?void 0:(S=C.textInputFormFieldRenderer)==null?void 0:S.value)||"")!==(this.nameInput.value||"")};
_.F.isDescriptionChanged=function(){var H,C,S;return(((H=this.editorData)==null?void 0:(C=H.description)==null?void 0:(S=C.textInputFormFieldRenderer)==null?void 0:S.value)||"")!==(this.descriptionInput.value||"")};
_.F.isPrivacyChanged=function(){var H,C,S,w,A,J,c,Y;return((c=(H=this.editorData)==null?void 0:(C=H.privacy)==null?void 0:(S=C.dropdownFormFieldRenderer)==null?void 0:(w=S.dropdown)==null?void 0:(A=w.dropdownRenderer)==null?void 0:(J=A.entries)==null?void 0:J.find(function(M){var m;return M==null?void 0:(m=M.privacyDropdownItemRenderer)==null?void 0:m.isSelected}))==null?void 0:(Y=c.privacyDropdownItemRenderer)==null?void 0:Y.int32Value)!==this.privacyInput.value};
_.F.isVotingChanged=function(){var H,C,S,w,A,J,c,Y;return((c=(H=this.editorData)==null?void 0:(C=H.voting)==null?void 0:(S=C.dropdownFormFieldRenderer)==null?void 0:(w=S.dropdown)==null?void 0:(A=w.dropdownRenderer)==null?void 0:(J=A.entries)==null?void 0:J.find(function(M){var m;return M==null?void 0:(m=M.privacyDropdownItemRenderer)==null?void 0:m.isSelected}))==null?void 0:(Y=c.privacyDropdownItemRenderer)==null?void 0:Y.int32Value)!==this.votingInput.value};
jT.prototype.onPopupClosed=jT.prototype.onPopupClosed;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],jT.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],jT.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.ie.YtEventForwardingBehavior),_.K("design:type",Object)],jT.prototype,"ytEventForwardingBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],jT.prototype,"ytRendererStamperBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],jT.prototype,"data",void 0);_.D([_.V({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.K("design:type",Array)],jT.prototype,"privacyBadge",void 0);_.D([_.V({computed:"computeEditorData(data)"}),_.K("design:type",Object)],jT.prototype,"editorData",void 0);_.D([_.V(),_.K("design:type",Object)],jT.prototype,"isPlaylistEditComplete",void 0);_.D([_.V(),_.K("design:type",Object)],jT.prototype,"isCollabEngagementDisabled",void 0);
_.D([_.V({value:{REQUIRED_LABEL:_.fL("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.fL("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.K("design:type",Object)],jT.prototype,"addToStrings",void 0);_.D([_.V({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.K("design:type",String)],jT.prototype,"ariaLabel",void 0);_.D([_.V(),_.K("design:type",String)],jT.prototype,"closeButtonAriaLabel",void 0);
_.D([_.V(),_.K("design:type",Object)],jT.prototype,"saveButton",void 0);_.D([_.lA("#name-input"),_.K("design:type",Object)],jT.prototype,"nameInput",void 0);_.D([_.lA("#description-input"),_.K("design:type",Object)],jT.prototype,"descriptionInput",void 0);_.D([_.lA("#privacy-input"),_.K("design:type",Object)],jT.prototype,"privacyInput",void 0);_.D([_.lA("#voting-input"),_.K("design:type",Object)],jT.prototype,"votingInput",void 0);
_.D([_.lA("#scroller"),_.K("design:type",Object)],jT.prototype,"JSC$20571_scroller",void 0);_.D([_.Gz("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],jT.prototype,"onPopupClosed",null);_.D([_.V(),_.K("design:type",Object)],jT.prototype,"onValueChanged",void 0);_.D([_.h({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],jT);
_.B(jT,"ytd-playlist-settings-editor-renderer",function(){if(uhR===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);uhR=H}H=uhR;return H},{mode:1});var Ggi;_.hg("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var wN=function(){return _.X.apply(this,arguments)||this};
_.G(wN,_.X);_.F=wN.prototype;_.F.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}}}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.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 H=this.get("data.nextButton.buttonRenderer.navigationEndpoint");H&&(this.nextNavigationEndpoint=H,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.F.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 H={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",H)}}};
_.F.onPopupOpened=function(H){H.detail!==this&&H.detail!==this.hostElement||!_.E("enable_premium_voluntary_pause")||_.q3(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.F.onNextButtonTap=function(){var H=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);H&&this.ytdOpenPopupBehavior.openPopup(H)};
_.F.updateSelectedResponseIndexFromBinding=function(H){this.selectedResponseIndex=H.detail.value};
wN.prototype.onPopupOpened=wN.prototype.onPopupOpened;wN.prototype.onSelectedResponseIndexChange=wN.prototype.onSelectedResponseIndexChange;wN.prototype.dataChanged=wN.prototype.dataChanged;_.D([_.v(_.OY),_.K("design:type",Object)],wN.prototype,"ytdOpenPopupBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],wN.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],wN.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],wN.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Number)],wN.prototype,"selectedResponseIndex",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wN.prototype,"dataChanged",null);_.D([_.fx("selectedResponseIndex"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wN.prototype,"onSelectedResponseIndexChange",null);
_.D([_.Gz("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],wN.prototype,"onPopupOpened",null);_.D([_.h({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],wN);
_.B(wN,"ytd-red-cancel-survey-renderer",function(){if(Ggi!==void 0)return Ggi;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Ggi=H},{mode:1});var frO;var Au=function(){var H=_.X.apply(this,arguments)||this;H.closeButtonAriaLabel=_.fL("SBOX_INAPPROPRIATE_CANCEL");return H};
_.G(Au,_.X);Au.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
Au.prototype.onClickClose=function(){_.q3(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Au.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Au.prototype,"rendererStamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Au.prototype,"data",void 0);_.D([_.V(),_.K("design:type",String)],Au.prototype,"closeButtonAriaLabel",void 0);_.D([_.h({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],Au);
_.B(Au,"ytd-search-filter-options-dialog-renderer",function(){if(frO!==void 0)return frO;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return frO=H},{mode:1});var vpO;var cB9=function(){return function(H){H=H.availabilityType;return H===void 0||H==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||H==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var Ju=function(){var H=_.X.apply(this,arguments)||this;H.qualityOptions=[];H.upsellOptions=[];H.showUpsellSection=!1;H.darkerDarkTheme=_.E("web_darker_dark_theme");H.rememberSettingsChecked=!1;return H};
_.G(Ju,_.X);_.F=Ju.prototype;_.F.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}}}}};
_.F.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.F.updateQualityOptions=function(){if(this.formats===void 0)_.q3(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var H=[],C=[];this.showUpsellSection=!1;for(var S=_.Z(this.formats),w=S.next();!w.done;w=S.next())(w=w.value)&&(w.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?C.push(w):H.push(w));H.length&&(this.qualityOptions=Zn9(H));C.length&&(this.showUpsellSection=!0,this.upsellOptions=Zn9(C))}};
_.F.updateRememberString=function(){if(this.downloadQualityPickerEntity)var H=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var C;H=(C=this.data)==null?void 0:C.premiumRememberSettingString}else{var S;H=(S=this.data)==null?void 0:S.rememberSettingString}H=H===void 0?_.fL("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):H;this.rememberSettingsCheckboxRenderer={title:_.cF(H),disabled:!1}};
_.F.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.JJ.Object.defineProperties(Ju.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var H;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(H=this.data)==null?void 0:H.qualityFormats}}});
Ju.prototype.updateRememberString=Ju.prototype.updateRememberString;Ju.prototype.updateQualityOptions=Ju.prototype.updateQualityOptions;Ju.prototype.dataChanged=Ju.prototype.dataChanged;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Ju.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Ju.prototype,"ytComponentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Ju.prototype,"data",void 0);
_.D([_.v(_.q$),_.K("design:type",Object)],Ju.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Boolean)],Ju.prototype,"selectedUpsellQuality",void 0);_.D([_.V({computed:"computeIcon_(data.premiumIcon)",value:""}),_.K("design:type",String)],Ju.prototype,"premiumIcon",void 0);_.D([_.V({selector:qao,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.K("design:type",Object)],Ju.prototype,"downloadQualityPickerEntity",void 0);
_.D([_.V(),_.K("design:type",Array)],Ju.prototype,"qualityOptions",void 0);_.D([_.V(),_.K("design:type",Array)],Ju.prototype,"upsellOptions",void 0);_.D([_.V(),_.K("design:type",Object)],Ju.prototype,"showUpsellSection",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Ju.prototype,"darkerDarkTheme",void 0);_.D([_.V(),_.K("design:type",Object)],Ju.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.D([_.lA("#remember-settings"),_.K("design:type",HTMLInputElement)],Ju.prototype,"rememberSettingsCheckbox",void 0);_.D([_.V(),_.K("design:type",Object)],Ju.prototype,"rememberSettingsChecked",void 0);_.D([_.V(),_.K("design:type",Function)],Ju.prototype,"onRememberSettingsCheckedChanged",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ju.prototype,"dataChanged",null);
_.D([_.fx("downloadQualityPickerEntity"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ju.prototype,"updateQualityOptions",null);_.D([_.fx("selectedUpsellQuality"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ju.prototype,"updateRememberString",null);_.D([_.h({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],Ju);
_.B(Ju,"ytd-download-quality-selector-content",function(){if(vpO!==void 0)return vpO;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return vpO=H},{mode:1});var lrt;var FZ=function(){var H=_.X.apply(this,arguments)||this;H.selectedUpsellQuality=!1;H.qualityOptions=[];H.darkerDarkTheme=_.E("web_darker_dark_theme");H.useUpsellDismissAlternate=_.E("use_not_now_dl_upsell_dismiss_cta");H.shouldShowAlternateUpsellDimiss=!1;H.rememberSettings=!1;H.rememberSettingsChecked=!1;H.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};H.rememberSettingsCheckedChanged=function(C){H.rememberSettingsChecked=C};
return H};
_.G(FZ,_.X);_.F=FZ.prototype;
_.F.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.cF(_.fL("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.cF(_.fL("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.cF(_.fL("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.cF(_.fL("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.F.updateQualityOptions=function(){this.formats===void 0?_.q3(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=Zn9(this.formats)};
_.F.onQualityOptionsSelect=function(H){if(this.qualityOptions&&H){H!==void 0&&(this.downloadButtonRenderer&&(this.downloadButtonRenderer=Object.assign({},this.downloadButtonRenderer,{isDisabled:!1})),this.upsellButtonRenderer&&(this.upsellButtonRenderer=Object.assign({},this.upsellButtonRenderer,{isDisabled:!1})),this.upsellCancelButtonRenderer&&(this.upsellCancelButtonRenderer=Object.assign({},this.upsellCancelButtonRenderer,{isDisabled:!1})));for(var C=_.Z(this.qualityOptions.entries()),S=C.next();!S.done;S=
C.next()){S=_.Z(S.value);var w=S.next().value;S=S.next().value;var A=void 0,J=void 0;if(((A=S)==null?void 0:(J=A.settingsRadioOptionRenderer)==null?void 0:J.id)===H){this.selectedQualityIndex=w;H=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((H=this.formats[w])==null?void 0:H.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.F.onClickSubmit=function(){var H;if((H=this.downloadButtonRenderer)==null||!H.isDisabled){var C,S;H=(S=(C=this.data)==null?void 0:C.onSubmitEndpoint)!=null?S:{};var w,A;if(this.formats&&(((w=_.e(H,_.ur))==null?0:w.videoId)||((A=_.e(H,_.Gb))==null?0:A.playlistId))){var J,c,Y,M,m,W;C={formatType:(M=(J=this.formats)==null?void 0:(c=J[(Y=this.selectedQualityIndex)!=null?Y:0])==null?void 0:c.format)!=null?M:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(m=this.getOfflineEndpoint(H))==null?void 0:(W=m.actionParams)==null?void 0:W.settingsAction)};this.getOfflineEndpoint(H).actionParams=C;this.ytComponentBehavior.resolveCommand(H)}_.q3(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.F.onClickUpsell=function(){var H;if((H=this.upsellButtonRenderer)==null||!H.isDisabled){var C,S;H=(S=(C=this.data)==null?void 0:C.upsellEndpoint)!=null?S:{};this.ytComponentBehavior.resolveCommand(H);_.q3(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);C="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var w,A,J,c;C=(c=(w=this.formats)==null?void 0:(A=w[(J=this.selectedQualityIndex)!=null?J:0])==null?void 0:A.format)!=null?c:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:C}})}};
_.F.onClickClose=function(){_.q3(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.F.getOfflineSettingsAction=function(H,C){return H?C===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":C:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.F.getOfflineEndpoint=function(H){return _.e(H,_.ur)?_.e(H,_.ur):_.e(H,_.Gb)};
_.JJ.Object.defineProperties(FZ.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.cF(_.fL("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var H;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(H=this.data)==null?void 0:H.qualityFormats}}});
FZ.prototype.updateQualityOptions=FZ.prototype.updateQualityOptions;FZ.prototype.dataChanged=FZ.prototype.dataChanged;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],FZ.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],FZ.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],FZ.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],FZ.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],FZ.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Number)],FZ.prototype,"selectedQualityIndex",void 0);_.D([_.V(),_.K("design:type",Object)],FZ.prototype,"selectedUpsellQuality",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],FZ.prototype,"ytdReduxBehavior",void 0);
_.D([_.V({selector:qao,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.K("design:type",Object)],FZ.prototype,"downloadQualityPickerEntity",void 0);_.D([_.V(),_.K("design:type",Array)],FZ.prototype,"qualityOptions",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],FZ.prototype,"darkerDarkTheme",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],FZ.prototype,"useUpsellDismissAlternate",void 0);
_.D([_.V(),_.K("design:type",Object)],FZ.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.D([_.V(),_.K("design:type",Object)],FZ.prototype,"downloadButtonRenderer",void 0);_.D([_.V(),_.K("design:type",Object)],FZ.prototype,"upsellButtonRenderer",void 0);_.D([_.V(),_.K("design:type",Object)],FZ.prototype,"cancelButtonRenderer",void 0);_.D([_.V(),_.K("design:type",Object)],FZ.prototype,"upsellCancelButtonRenderer",void 0);_.D([_.V(),_.K("design:type",Object)],FZ.prototype,"rememberSettings",void 0);
_.D([_.V(),_.K("design:type",Object)],FZ.prototype,"rememberSettingsChecked",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],FZ.prototype,"dataChanged",null);_.D([_.fx("downloadQualityPickerEntity"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],FZ.prototype,"updateQualityOptions",null);_.D([_.h({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],FZ);
_.B(FZ,"ytd-download-quality-selector-renderer",function(){if(lrt!==void 0)return lrt;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return lrt=H},{mode:1});var VSR;var Zn=function(){var H=_.X.apply(this,arguments)||this;H.darkerDarkTheme=_.E("web_darker_dark_theme");return H};
_.G(Zn,_.X);Zn.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Zn.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"}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Zn.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Zn.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Zn.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Zn.prototype,"darkerDarkTheme",void 0);_.D([_.V({computed:"computeIcon_(data.infoIcon)"}),_.K("design:type",Object)],Zn.prototype,"infoIcon",void 0);
_.D([_.V({computed:"computeIcon_(data.warningIcon)"}),_.K("design:type",Object)],Zn.prototype,"warningIcon",void 0);_.D([_.h({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],Zn);
_.B(Zn,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(VSR!==void 0)return VSR;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return VSR=H},{mode:1});var opo;var cX=function(){var H=_.X.apply(this,arguments)||this;H.darkerDarkTheme=_.E("web_darker_dark_theme");return H};
_.G(cX,_.X);cX.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
cX.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"}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],cX.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],cX.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],cX.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],cX.prototype,"darkerDarkTheme",void 0);_.D([_.h({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],cX);
_.B(cX,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(opo!==void 0)return opo;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return opo=H},{mode:1});var OS_;var YG=function(){var H=_.X.apply(this,arguments)||this;H.darkerDarkTheme=_.E("web_darker_dark_theme");return H};
_.G(YG,_.X);YG.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
YG.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"}}}}};
YG.prototype.onServiceRequestSentOrCompleted=function(H,C){C&&C.actions&&C.actions.length>0&&_.q3(this.hostElement,"yt-close-popup-action",[this.is])};
YG.prototype.onServiceRequestSentOrCompleted=YG.prototype.onServiceRequestSentOrCompleted;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],YG.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],YG.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],YG.prototype,"darkerDarkTheme",void 0);_.D([_.V(),_.K("design:type",Object)],YG.prototype,"data",void 0);
_.D([_.Gz("yt-service-request-completed"),_.Gz("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.j4]),_.K("design:returntype")],YG.prototype,"onServiceRequestSentOrCompleted",null);_.D([_.h({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],YG);
_.B(YG,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(OS_!==void 0)return OS_;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return OS_=H},{mode:1});var Xvi;var z1=function(){var H=_.X.apply(this,arguments)||this;H.darkerDarkTheme=_.E("web_darker_dark_theme");H.submitButtonDisabled=!0;return H};
_.G(z1,_.X);_.F=z1.prototype;_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.F.onDataChanged=function(){var H,C,S;if(((H=this.data)==null?void 0:(C=H.confirmButton)==null?void 0:(S=C.buttonRenderer)==null?void 0:S.isDisabled)!==void 0){var w,A,J;this.submitButtonDisabled=(w=this.data)==null?void 0:(A=w.confirmButton)==null?void 0:(J=A.buttonRenderer)==null?void 0:J.isDisabled}};
_.F.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.F.updateSubmitButtonDisabledFromBinding=function(H){this.submitButtonDisabled=H.detail.value};
_.F.updateSubmitButtonDisabledFromConfirmCheckbox=function(H){this.submitButtonDisabled=!H.detail.value};
z1.prototype.onDataChanged=z1.prototype.onDataChanged;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],z1.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],z1.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],z1.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],z1.prototype,"darkerDarkTheme",void 0);
_.D([_.V(),_.K("design:type",Object)],z1.prototype,"submitButtonDisabled",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],z1.prototype,"onDataChanged",null);_.D([_.h({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],z1);
_.B(z1,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(Xvi!==void 0)return Xvi;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Xvi=H},{mode:1});var QXj;var M0=function(){return _.X.apply(this,arguments)||this};
_.G(M0,_.X);_.JJ.Object.defineProperties(M0.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var H,C,S;return((H=this.data)==null?void 0:H.title)+" "+((C=this.data)==null?void 0:C.metadataPrimary)+" "+((S=this.data)==null?void 0:S.metadataSecondary)}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],M0.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],M0.prototype,"ytComponentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],M0.prototype,"data",void 0);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],M0.prototype,"ariaLabel",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],M0);
_.B(M0,"ytd-compact-product-list-item-renderer",function(){if(QXj!==void 0)return QXj;var H=document.createElement("template");_.f(H,'\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>');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return QXj=H},{mode:1});var d6i;var q0=function(){return _.X.apply(this,arguments)||this};
_.G(q0,_.X);q0.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]]"}}}}}};
_.JJ.Object.defineProperties(q0.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],q0.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],q0.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],q0.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],q0.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],q0);
_.B(q0,"ytd-compact-product-list-renderer",function(){if(d6i!==void 0)return d6i;var H=document.createElement("template");_.f(H,'\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>');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return d6i=H},{mode:1});var PuO;var T1=function(){var H=_.X.apply(this,arguments)||this;H.darkerDarkTheme=_.E("web_darker_dark_theme");return H};
_.G(T1,_.X);_.F=T1.prototype;_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.F.getBackgroundUrl=function(){var H=this.get("data.headerImage.thumbnails");return H?"url("+_.TG(H,this.hostElement.clientWidth)+")":""};
_.F.onDataChanged=function(){var H=this.getBackgroundUrl();H&&(this.header.style.backgroundImage=H);H=_.Dg();var C=_.BM(),S=this.get("data.trackingParams");S&&C&&H&&_.ak(H,C,_.Qh(S));H=_.Z(this.hostElement.querySelectorAll("yt-img-shadow"));for(C=H.next();!C.done;C=H.next())C.value.onShow()};
_.F.onPopupClosed=function(H){_.Jr(H).localName==="ytd-membership-post-cancel-renderer"&&_.q3(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
T1.prototype.onPopupClosed=T1.prototype.onPopupClosed;T1.prototype.onDataChanged=T1.prototype.onDataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],T1.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],T1.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],T1.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],T1.prototype,"darkerDarkTheme",void 0);
_.D([_.lA("#header"),_.K("design:type",HTMLDivElement)],T1.prototype,"header",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],T1.prototype,"onDataChanged",null);_.D([_.Gz("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],T1.prototype,"onPopupClosed",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],T1);
_.B(T1,"ytd-membership-post-cancel-renderer",function(){if(PuO!==void 0)return PuO;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return PuO=H},{mode:1});var $6R;var mM=function(){var H=_.X.apply(this,arguments)||this;H.darkerDarkTheme=_.E("web_darker_dark_theme");return H};
_.G(mM,_.X);mM.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
mM.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],mM.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],mM.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],mM.prototype,"darkerDarkTheme",void 0);_.D([_.lA("ytd-feedback-survey-renderer"),_.K("design:type",Object)],mM.prototype,"feedbackSurveyRenderer",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],mM);
_.B(mM,"ytd-sponsorship-confirm-cancel-content",function(){if($6R!==void 0)return $6R;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return $6R=H},{mode:1});var pv9;var WX=function(){var H=_.X.apply(this,arguments)||this;H.darkerDarkTheme=_.E("web_darker_dark_theme");H.maybeSubmitFeedback=function(){H.content&&H.content.maybeSubmitFeedback()};
return H};
_.G(WX,_.X);_.F=WX.prototype;_.F.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.F.onYtPopupOpened=function(H,C){C===this&&this.data&&this.data.onOpenCommands&&_.yN(this.hostElement,this.data.onOpenCommands,this.hostElement);_.q3(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.F.onYtPopupClosed=function(H,C){(C&&C.canceled===!0||C&&C.canceled===!1&&C.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.yN(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.F.onYtServiceRequestCompleted=function(){_.q3(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.F.onYtServiceRequestError=function(H){_.HQ(this.hostElement,H.detail.error.message)};
_.F.onDataChanged=function(){if(this.isAttached){var H=this.backgroundUrl;H&&(_.mY(this.hostElement).querySelector("#header").style.backgroundImage=H)}};
_.JJ.Object.defineProperties(WX.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var H=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return H?"url("+_.TG(H,this.hostElement.clientWidth)+")":""}}});
WX.prototype.onDataChanged=WX.prototype.onDataChanged;WX.prototype.onYtServiceRequestError=WX.prototype.onYtServiceRequestError;WX.prototype.onYtServiceRequestCompleted=WX.prototype.onYtServiceRequestCompleted;WX.prototype.onYtPopupClosed=WX.prototype.onYtPopupClosed;WX.prototype.onYtPopupOpened=WX.prototype.onYtPopupOpened;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],WX.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],WX.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],WX.prototype,"data",void 0);_.D([_.V({value:function(){return _.fL("SBOX_INAPPROPRIATE_CANCEL")}}),
_.K("design:type",String)],WX.prototype,"closeButtonAriaLabel",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],WX.prototype,"darkerDarkTheme",void 0);_.D([_.lA("#scrollable"),_.K("design:type",Object)],WX.prototype,"scrollable",void 0);_.D([_.lA("ytd-sponsorship-confirm-cancel-content"),_.K("design:type",Object)],WX.prototype,"content",void 0);
_.D([_.Gz("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],WX.prototype,"onYtPopupOpened",null);_.D([_.Gz("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],WX.prototype,"onYtPopupClosed",null);
_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],WX.prototype,"onYtServiceRequestCompleted",null);_.D([_.Gz("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],WX.prototype,"onYtServiceRequestError",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],WX.prototype,"onDataChanged",null);
_.D([_.h({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],WX);
_.B(WX,"ytd-sponsorship-confirm-cancel-renderer",function(){if(pv9!==void 0)return pv9;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return pv9=H},{mode:_.mn("kevlar_poly_si_batch_j081")?1:2});var kgK;var yW=function(){var H=_.X.apply(this,arguments)||this;H.darkerDarkTheme=_.E("web_darker_dark_theme");return H};
_.G(yW,_.X);yW.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],yW.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],yW.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],yW.prototype,"darkerDarkTheme",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],yW);
_.B(yW,"ytd-sponsorships-celebration-content",function(){if(kgK!==void 0)return kgK;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return kgK=
H},{mode:1});var hA9;var npt=_.xC(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),N0=function(){var H=_.X.apply(this,arguments)||this;H.scriptsAppended=!1;H.useFullWidthPrimaryButton=!1;H.buttonOverrides={type:"tonal",style:"overlay-dark"};return H};
_.G(N0,_.X);_.F=N0.prototype;_.F.dataChanged=function(){var H;this.useFullWidthPrimaryButton=!((H=this.data)==null||!H.useFullWidthPrimaryButton)};
_.F.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:_.E("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.onDataChanged=function(){var H;(H=this.header)==null||H.style.setProperty("background-color",this.backgroundColor);if(H=this.headerImageUrl){var C;(C=this.header)==null||C.style.setProperty("background-image",H)}C=_.Dg(4);H=_.BM(4);var S=this.get("data.trackingParams");if(S&&H&&C){var w=_.Qh(S);_.ak(C,H,w);_.E("combine_ve_grafts")?_.lJ().graftServerVe(S,H,4):_.ak(C,H,w)}C=_.Z(this.hostElement.querySelectorAll("yt-img-shadow"));for(H=C.next();!H.done;H=C.next())H.value.onShow();if(C=this.get("data.gtmId"))_.jx(C,
_.rh("GL","")),this.setupConversionTracking()};
_.F.setupConversionTracking=function(){if(!this.scriptsAppended){var H=document.createElement("script");var C=_.ws(npt.join(""));_.AY(H,C);document.head.appendChild(H);H=document.createElement("noscript");H.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(H);this.scriptsAppended=!0}};
_.F.onPopupClosed=function(H){if(_.Jr(H).localName==="ytd-sponsorships-celebration-renderer"){_.q3(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var C;this.data&&((C=this.data)==null?0:C.dismissCommand)&&_.eU.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.JJ.Object.defineProperties(N0.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var H=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.aw(H)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var H=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return H?"url("+_.TG(H,this.hostElement.getBoundingClientRect().width)+")":""}}});
N0.prototype.onPopupClosed=N0.prototype.onPopupClosed;N0.prototype.onDataChanged=N0.prototype.onDataChanged;N0.prototype.dataChanged=N0.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],N0.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],N0.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],N0.prototype,"data",void 0);
_.D([_.lA("#header"),_.K("design:type",HTMLElement)],N0.prototype,"header",void 0);_.D([_.V(),_.K("design:type",Object)],N0.prototype,"scriptsAppended",void 0);_.D([_.V({type:Boolean,reflectToAttribute:!0}),_.K("design:type",Object)],N0.prototype,"useFullWidthPrimaryButton",void 0);_.D([_.V(),_.K("design:type",Object)],N0.prototype,"buttonOverrides",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],N0.prototype,"dataChanged",null);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],N0.prototype,"onDataChanged",null);_.D([_.Gz("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],N0.prototype,"onPopupClosed",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],N0);
_.B(N0,"ytd-sponsorships-celebration-renderer",function(){if(hA9!==void 0)return hA9;var H=document.createElement("template");_.f(H,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return hA9=H},{mode:1});var r6_;var bO=function(){var H=_.X.apply(this,arguments)||this;H.isToggleChecked=!1;return H};
_.G(bO,_.X);bO.prototype.onDataChanged=function(){var H;this.isToggleChecked=((H=this.data)==null?void 0:H.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
bO.prototype.close=function(){var H;((H=this.data)==null?0:H.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
bO.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var H,C=_.e((H=this.data)==null?void 0:H.switchButton,Kw_);C&&(this.isToggleChecked&&C.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(C.switchOnInnertubeCommand),!this.isToggleChecked&&C.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(C.switchOffInnertubeCommand))};
bO.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
bO.prototype.onDataChanged=bO.prototype.onDataChanged;_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],bO.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],bO.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],bO.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],bO.prototype,"isToggleChecked",void 0);_.D([_.V({value:_.fL("CLOSE")}),_.K("design:type",String)],bO.prototype,"closeButtonAriaLabel",void 0);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bO.prototype,"onDataChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],bO);
_.B(bO,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(r6_!==void 0)return r6_;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return r6_=H},{mode:1});var B3p;var Ei=function(){return _.X.apply(this,arguments)||this};
_.G(Ei,_.X);_.F=Ei.prototype;_.F.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"}}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.detached=function(){this.playerElement.stop()};
_.F.onYtServiceRequestCompleted=function(){_.q3(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.F.onYtServiceRequestError=function(H){_.HQ(this.hostElement,H.detail.error.message)};
_.F.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.F.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.F.getTier=function(H,C){return!H||!H.tiers||C<0?null:_.e(H.tiers[C],UhO)};
_.F.moreThanOne=function(H){return!!(H&&H.length>1)};
_.F.tierOverviewTap=function(H){var C=this;this.selectedTier=H.model.index;_.wM(this,function(){_.M3(C.hostElement,"yt-refit")})};
_.F.computeSelectedClass=function(H,C){return this.isSelected(H,C)?"selected":""};
_.F.computeButtonAriaPressed=function(H,C){return this.isSelected(H,C)?"true":"false"};
_.F.isSelected=function(H,C){return H===C};
_.F.onDataChanged=function(){_.mY(this.hostElement).querySelector("#header-overlay").style.visibility="";_.mY(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 H=_.Z(this.hostElement.querySelectorAll("yt-img-shadow")),
C=H.next();!C.done;C=H.next())C.value.onShow();var S;this.set("selectedTier",(S=this.get("data.targetTierIndex"))!=null?S:0);var w;(H=(w=this.data)==null?void 0:w.onVisible)&&this.ytComponentBehavior.resolveCommand(H)};
_.F.initializeVe=function(H){var C=_.Dg(),S=_.BM(),w=this.get("data.trackingParams");S&&C&&(this.screenLayer=4,C=_.Lp(_.Ku7)(void 0,69877,{clientScreenNonce:C,visualElement:S},void 0,void 0,void 0),_.tJ(C,69877,4),S=_.BM(4),w&&S&&(w=_.Qh(w),_.ak(C,S,w),H&&(this.offerVideoVe=_.y4(74659),_.ak(C,w,this.offerVideoVe))))};
_.F.setHeaderBackground=function(){var H=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.mY(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.aw(H);if(H=this.getHeaderImage())H=_.TG(H,screen.width),_.mY(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+H+")"};
_.F.getHeaderImage=function(){var H=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&H?H:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.F.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.F.setupVideoPlayer=function(H){var C=this,S,w,A,J;return _.z(function(c){if(c.nextAddress==1)return S=C.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),w=C.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.E("kevlar_player_update_killswitch")?C.playerElement.update({args:{autoplay:S,video_id:H,player_params:w}}):C.playerElement.loadVideoWithPlayerVars({autoplay:S,video_id:H,player_params:w}),
c.yield(C.playerElement.getPlayerPromise(),2);A=c.yieldResult;A.addEventListener("onStateChange",function(Y){C.onPlayerStateChange(Y)});
A.setScreenLayer(C.screenLayer);(J=_.Dg(4))&&C.offerVideoVe&&_.HF(J,C.offerVideoVe);S&&(C.pauseOtherPlayers(),C.playerElement.focusOnPlayer(),C.playerElement.getPlayer().hideControls(),_.X2(_.rT,function(){C.fadeOutHeaderOverlay()},4E3));
_.oT(c)})};
_.F.onPlayerStateChange=function(H){H===1?this.backgroundPlayerElement&&(H=this.backgroundPlayerElement.player_.getPlayerState(),H!==1&&H!==3||this.backgroundPlayerElement.pause()):H===0&&(_.mY(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.mY(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.F.fadeOutHeaderOverlay=function(){_.mY(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.F.onHeaderTap=function(){if(this.offerVideo){_.mY(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var H;((H=this.playerElement.player_)==null?void 0:H.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(H=_.Dg(4))&&this.offerVideoVe&&_.Sp(H,this.offerVideoVe)}};
_.F.getBackgroundImageLayerClass=function(H){return H?"background-image-layer-with-video":""};
_.F.getHeaderClass=function(H){return H?"header-with-video":""};
_.F.getHeaderOverlayClass=function(H){return H?"header-overlay-with-video":""};
_.F.getTitleContainerClass=function(H,C){return H?"title-container-with-video":C?"title-container-without-video-flexible":"title-container-without-video"};
_.F.tierTitleDisplayStatus=function(H){return this.moreThanOne(H)?"hide":"show"};
_.F.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.JA().resolve(_.Df).getPlayerElement():this.backgroundPlayerElement=_.Zz();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var H=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=H===1||H===3;this.backgroundPlayerElement.pause()}};
_.F.isMiniplayerActive=function(){return _.JA().resolve(_.Df).isMiniplayerActive()};
_.F.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uQ("selected-tier-changed",this.selectedTier))};
Ei.prototype.selectedTierChangedForBinding=Ei.prototype.selectedTierChangedForBinding;Ei.prototype.onDataChanged=Ei.prototype.onDataChanged;Ei.prototype.onYtPopupClosed=Ei.prototype.onYtPopupClosed;Ei.prototype.onYtPopupOpened=Ei.prototype.onYtPopupOpened;Ei.prototype.onYtServiceRequestError=Ei.prototype.onYtServiceRequestError;Ei.prototype.onYtServiceRequestCompleted=Ei.prototype.onYtServiceRequestCompleted;
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Ei.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Ei.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Ei.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Ei.prototype,"data",void 0);_.D([_.V({value:0}),_.K("design:type",Number)],Ei.prototype,"selectedTier",void 0);
_.D([_.V({value:""}),_.K("design:type",String)],Ei.prototype,"offerVideo",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],Ei.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.D([_.V({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.I0(this)}}),
_.K("design:type",String)],Ei.prototype,"playerId",void 0);_.D([_.lA("tp-yt-paper-dialog-scrollable"),_.K("design:type",Object)],Ei.prototype,"scrollable",void 0);_.D([_.lA("ytd-sponsorships-tier-renderer"),_.K("design:type",Object)],Ei.prototype,"tierRenderer",void 0);_.D([_.lA("#player"),_.K("design:type",Object)],Ei.prototype,"playerElement",void 0);
_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Ei.prototype,"onYtServiceRequestCompleted",null);_.D([_.Gz("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Ei.prototype,"onYtServiceRequestError",null);
_.D([_.Gz("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ei.prototype,"onYtPopupOpened",null);_.D([_.Gz("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ei.prototype,"onYtPopupClosed",null);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ei.prototype,"onDataChanged",null);
_.D([_.fx("selectedTier"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ei.prototype,"selectedTierChangedForBinding",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],Ei);
_.B(Ei,"ytd-sponsorships-offer-renderer",function(){if(B3p!==void 0)return B3p;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return B3p=H},{mode:_.mn("kevlar_poly_si_batch_j077")?1:2});var D6p;var eT=function(){var H=_.X.apply(this,arguments)||this;H.buttonOverrides={type:"filled",style:"mono"};return H};
_.G(eT,_.X);eT.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}}}}}};
eT.prototype.backgroundColorChanged=function(){var H,C,S,w=(C=_.e((H=this.data)==null?void 0:H.content,Rv3))==null?void 0:(S=C.backgroundColor)==null?void 0:S.backgroundColor;w&&(H=_.Iw(w),_.mY(this.hostElement).querySelector("#banner").style.backgroundColor=H,_.mY(this.hostElement).querySelector("#abstract-art").style.backgroundColor=H)};
eT.prototype.attached=function(){this.JSC$20657_scroller&&(this.JSC$20657_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20657_scroller.attached&&typeof this.JSC$20657_scroller.attached==="function"&&this.JSC$20657_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
eT.prototype.backgroundColorChanged=eT.prototype.backgroundColorChanged;_.D([_.V(),_.K("design:type",Object)],eT.prototype,"data",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],eT.prototype,"ytRendererstamperBehavior",void 0);_.D([_.lA("#scroller"),_.K("design:type",Object)],eT.prototype,"JSC$20657_scroller",void 0);_.D([_.V(),_.K("design:type",Object)],eT.prototype,"buttonOverrides",void 0);
_.D([_.fx("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],eT.prototype,"backgroundColorChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],eT);
_.B(eT,"ytd-sponsorships-promotion-celebration-renderer",function(){if(D6p!==void 0)return D6p;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return D6p=H},{mode:_.mn("kevlar_poly_si_batch_j077")?1:2});var KA9;var tSt;var uO=function(){return _.X.apply(this,arguments)||this};
_.G(uO,_.X);uO.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
uO.prototype.computeIsInitiallyChecked=function(H){return H===1};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],uO.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],uO.prototype,"data",void 0);_.D([_.lA("#checkbox"),_.K("design:type",Object)],uO.prototype,"checkbox",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],uO);
_.B(uO,"ytd-subscription-toggle-option-renderer",function(){if(tSt!==void 0)return tSt;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return tSt=H},{mode:1});var G1=function(){var H=_.X.apply(this,arguments)||this;H.darkerDarkTheme=_.E("web_darker_dark_theme");H.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return H};
_.G(G1,_.X);G1.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"}}}};
G1.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
G1.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var H=_.mY(this.hostElement).querySelector("#options").selected;H=this.data.options[H].subscriptionRadioOptionRenderer.serviceEndpoint;var C=_.mY(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");C&&H&&H.modifyChannelNotificationPreferenceEndpoint&&(C=C.getValue())&&(H.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[C]);_.JA().resolve(_.ZQ).resolveCommand(H,{form:{element:this.hostElement}});
_.q3(this.hostElement,"yt-close-popup-action")};
_.JJ.Object.defineProperties(G1.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var H=this.data.options,C=0;C<H.length;C++){var S=H[C].subscriptionRadioOptionRenderer;if(S&&S.selected)return C}return null}}});
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],G1.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],G1.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.ie.YtEventForwardingBehavior),_.K("design:type",Object)],G1.prototype,"eventForwardingBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],G1.prototype,"ytRendererBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],G1.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],G1.prototype,"darkerDarkTheme",void 0);_.D([_.l("data.options"),_.K("design:type",Object),_.K("design:paramtypes",[])],G1.prototype,"initialIndex",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],G1);
_.B(G1,"ytd-subscription-notification-options-renderer",function(){if(KA9!==void 0)return KA9;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return KA9=H},{mode:1});var LA3;var fa=function(){return _.X.apply(this,arguments)||this};
_.G(fa,_.X);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],fa.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],fa.prototype,"data",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],fa);
_.B(fa,"ytd-tvfilm-offer-groups-renderer",function(){if(LA3!==void 0)return LA3;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return LA3=H},{mode:1});var gp_;var vX=function(){var H=_.X.apply(this,arguments)||this;H.darkerDarkTheme=_.E("web_darker_dark_theme");return H};
_.G(vX,_.X);_.F=vX.prototype;_.F.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"}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.F.computeThumbnailClass=function(H){return H.thumbnailOverlays?H.isShow?"thumbnail-show":"thumbnail-movie":H.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.F.computeCommerceSectionClass=function(H){return H.offers&&H.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.F.computeTitleClass=function(H){return H.offers&&H.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.F.onDataChanged=function(){[].concat(_.k$(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(H){H.onShow()})};
vX.prototype.onDataChanged=vX.prototype.onDataChanged;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],vX.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],vX.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],vX.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],vX.prototype,"darkerDarkTheme",void 0);
_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vX.prototype,"onDataChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],vX);
_.B(vX,"ytd-ypc-offers-overlay-renderer",function(){if(gp_!==void 0)return gp_;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return gp_=H},{mode:_.mn("kevlar_poly_si_batch_j028")?1:2});var U6O;var RAj=function(){this.usedMethods=new Set};
RAj.prototype.add=function(H){this.usedMethods.add(H)};
RAj.prototype.reset=function(){this.usedMethods.clear()};var x6_=function(H,C){this.query=H;this.previousSearchQuery=C;this.id=IrK++;if(!arp){C=_.rh("SBOX_SETTINGS");H="https://"+((C==null?void 0:C.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var S=C==null?void 0:C.REQUEST_LANGUAGE;S&&(H+="&hl="+S);(S=C==null?void 0:C.REQUEST_DOMAIN)&&(H+="&gl="+S);H+="&client=youtube&gs_ri=youtube";(S=C==null?void 0:C.SUGG_EXP_ID)&&(H+="&sugexp="+encodeURIComponent(S));(S=C==null?void 0:C.PSUGGEST_TOKEN)&&(H+="&tok="+S);(C=
C==null?void 0:C.SESSION_INDEX)&&(H+="&authuser="+C);_.E("desktop_enable_visual_suggest")&&(H+="&h=180&w=320&ytvs=1");arp=H}},H09=function(H){var C="q="+encodeURIComponent(H.query);
H.previousSearchQuery&&(C+="&pq="+encodeURIComponent(H.previousSearchQuery));return C},i0K=function(){var H=_.rh("SBOX_SETTINGS"),C={};
if(H==null?0:H.SEND_VISITOR_DATA)C["X-Goog-Visitor-Id"]=H==null?void 0:H.VISITOR_DATA;return C},C6o=function(H){var C=arp;
C+="&gs_id="+H.id.toString(36);C+="&q="+encodeURIComponent(H.query);C+="&cp="+H.query.length;H.previousSearchQuery&&(C+="&pq="+encodeURIComponent(H.previousSearchQuery));(H=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(C+="&video_id="+H);return C},IrK=0,arp="";var Sqi=_.k9.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,s9O=_.k9.SEARCH_ENTITY_SUGGESTION_MOVIE,j9O=_.k9.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,wdq=_.k9.SEARCH_ENTITY_SUGGESTION_TV_SHOW,Amr=function(H,C){this.text=H;this.bold=C},Jmp=function(H,C,S){this.input=C;
this.index=S;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=H[0];this.type=H[1];this.subtypes=H[2];var w;this.displayText=J5((w=H[3])==null?void 0:w.b);var A;this.ignoredPrefix=J5((A=H[3])==null?void 0:A.a);var J,c;this.hasNewVideo=((J=H[3])==null?void 0:(c=J.zam)==null?void 0:c.toString())==="true"?!0:!1;var Y;this.visualSuggestUrl=(Y=H[3])==null?void 0:Y.zai;var M;this.entityType=J5((M=H[3])==null?void 0:M.zap);var m;this.entityName=J5((m=H[3])==null?void 0:m.zao);var W;C=J5((W=
H[3])==null?void 0:W.zaf);var y;this.entityMid=(y=H[3])==null?void 0:y.zae;W=zXR(this.subtypes,this.entityMid);if(C&&W){if(C){y="";switch(W){case "YOUTUBE_ENTITY_TYPE_SONG":y=j9O;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":y=Sqi;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":y=wdq;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":y=s9O}W=W==="YOUTUBE_ENTITY_TYPE_SONG"||W==="YOUTUBE_ENTITY_TYPE_ALBUM"?y+" \u2022  \u2022 "+C:C}else W="";this.entitySubtitle=W}var N;this.externalChannelId=(N=H[3])==null?void 0:N.zav;var b;
this.entityThumbnailAttributionUrl=(b=H[3])==null?void 0:b.zaq},Z0_=function(H,C){var S=[],w,A=(w=H.displayText)!=null?w:H.text;
(C==null?0:C.useEntityName)&&Fd3(H)&&H.entityName&&(A=H.entityName);if(H.type===33)return S.push(new Amr(A,!1)),S;if(A.length>=H.input.length&&A.substring(0,H.input.length)===H.input)S.push(new Amr(H.input,!1)),S.push(new Amr(A.substring(H.input.length),!0));else{var J=new Set(H.input.split(/\s/)),c=A.split(/\s/);S=c.map(function(Y,M){return new Amr(Y.trim()+(M===c.length-1?"":" "),!J.has(Y))})}return S},Fd3=function(H){var C=!!zXR(H.subtypes);
H=!!H.entityMid;return C||H};var cmK=function(H){this.rawResponse=["",[],{}];this.suggestions=[];try{var C=JSON.parse(M4j(H));if(typeof C==="object"&&C!==null)this.rawResponse=C;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(w){console.log("Suggest: Failed to parse SuggestResponse!");return}var S=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(w,A){return new Jmp(w,S,A)})};var YqO=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new RAj;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$20694_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},z2i,Mgi=function(){z2i||(z2i=new YqO);
return z2i};
YqO.prototype.updateSuggestions=function(H){var C=this;this.availableSuggestions.forEach(function(S){C.previousSuggestions[S]=!0});
this.availableSuggestions=H.map(function(S){var w=S.type.toString();S.subtypes.length>0&&(w+="i"+S.subtypes.join("i"),w+="k"+S.suggestionSources.COMPLETE_SERVER.toString());return w})};
var qq3=function(H,C){var S=Date.now();H.firstEditTime<0&&(H.firstEditTime=S);C&&(H.lastQueryBuildTime=S);H.lastEditTime=S};
YqO.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$20694_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var Tg9=function(H){var C="";H.availableSuggestions.forEach(function(A){delete H.previousSuggestions[A]});
for(var S=_.Z(Object.keys(H.previousSuggestions)),w=S.next();!w.done;w=S.next())w=w.value,H.previousSuggestions[w]&&(C+=(C?"j":"")+w);return C},mAj=function(H,C){var S=[];
C&&(S[1]=C.toString());S[0]="youtube";S[7]=Date.now()-H.startTime;S[6]=H.sessionNumber;H.zeroPrefixSuggestionCount>=0&&(S[33]=H.zeroPrefixSuggestionCount);S[13]=H.outOfSyncResponseCount;if(H.availableSuggestions.length>0){for(var w=C="",A=0,J=_.Z(H.availableSuggestions),c=J.next();!c.done;c=J.next())c=c.value,c!==w&&(A>1&&(C+="l"+A),C+=(w?"j":"")+c,A=0,w=c),A+=1;A>1&&(C+="l"+A);S[3]=C}S[35]=Tg9(H);H.selectedSuggestionIndex>=0&&(S[2]=H.selectedSuggestionIndex);var Y;if(C=(Y=_.rh("SBOX_SETTINGS"))==
null?void 0:Y.SUGG_EXP_ID)S[19]=H.normalize(C),Y=0,H.experimentTriggeredBeforeFinal&&(Y|=1),H.experimentTriggeredFinal&&(Y|=2),S[20]=Y;S[26]=Array.from(H.inputMethodsTracker.usedMethods).join("j");if(H.JSC$20694_totalRoundTripTime>0){S[15]=H.JSC$20694_totalRoundTripTime;S[14]=H.maxRoundTripTime;Y=[];for(A=C=0;A<10;A++)w=H.roundTripTimeHistogram[A],w===0?C++:(C>1?Y.push(A+"-"+w):C===1?Y.push("0j"+w):Y.push(w.toString()),C=0);Y=Y.join("j");S[16]=Y}H.zeroPrefixRoundTripTime>0&&(S[36]=H.zeroPrefixRoundTripTime);
H.lastQueryBuildTime>0&&(S[18]=H.lastQueryBuildTime-H.startTime);H.firstEditTime>0&&(S[4]=H.firstEditTime-H.startTime);H.lastEditTime>0&&(S[5]=H.lastEditTime-H.startTime);return S.join(".")};
YqO.prototype.normalize=function(H){return H.replaceAll(".","-")};
var Wd9=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var lO=function(){var H=_.X.apply(this,arguments)||this;H.microphoneSpinnerActive=!1;H.noAnimations=!1;H.boundExitClick=function(){H.onExitButtonClick()};
H.speechOverlayClassName="";H.isLevelAnimating=!1;H.playCloseDialogAudioFeedback=!0;H.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return H};
_.G(lO,_.X);_.F=lO.prototype;_.F.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.F.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=CI3()};
_.F.dataChanged=function(){this.logDialog()};
_.F.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var H;(H=this.manager.audioPlayer)!=null&&(H.JSC$20013_audioEnabled=!1)}this.manager.stop();(H=this.manager.audioPlayer)!=null&&(H.JSC$20013_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.F.handleSpeechQueryCompleteAction=function(H){var C=H.navigationAction;C&&(H.trackingParams&&_.lJ().graftServerVe(H.trackingParams,this.dialogVe,5),_.M3(this.hostElement,"yt-navigate",{endpoint:C,tempData:this.getNavigationParams(C),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.F.onExitButtonClick=function(){this.closeDialog()};
_.F.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var H;if((H=this.manager)!=null){var C;(C=H.audioPlayer)==null||XD(C,"failure");H.setState("microphone-off");H.stop()}}else(H=this.manager)==null||H.start()};
_.F.transcriptionChanged=function(){var H,C;(((H=this.transcription)==null?0:H.low)||((C=this.transcription)==null?0:C.high))&&this.setState("transcribing",this.transcription)};
_.F.stateChanged=function(){this.setState(this.state,this.transcription)};
_.F.logDialog=function(){var H;(H=this.data)!=null&&H.trackingParams&&(H=_.lJ(),_.kP(H,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=H.graftServerVe(this.data.trackingParams,void 0,5))};
_.F.getNavigationParams=function(H){var C={};if(_.E("web_yt_searchbox")){var S=Mgi();S.inputMethodsTracker.add(6);S=mAj(S,15);C.gs_l=S;var w;C.oq=((w=_.e(H,_.l4))==null?void 0:w.query)||""}else if(H=window.ytvoicesearchloggingparams){if(H=H())C.oq=H.oq,C.gs_l=H.gs_l}else _.Ug(Error("Dl"));return C};
_.F.closeDialog=function(){_.q3(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.F.setState=function(H,C){if(this.data){var S=this.data,w={};switch(H){case "listening":w={headerText:S.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:S.microphoneButtonAriaLabel};break;case "timeout":w={headerText:S.promptHeader,microphoneState:"try-again",microphoneLabel:S.promptMicrophoneLabel,microphoneAriaLabel:S.promptMicrophoneLabel};break;case "microphone-off":w={headerText:S.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:S.promptMicrophoneLabel,
microphoneAriaLabel:S.promptMicrophoneLabel};break;case "transcribing":(C==null?0:C.low)||(C==null?0:C.high)?w={transcriptionLow:C==null?void 0:C.low,transcriptionHigh:C==null?void 0:C.high,microphoneState:"speaking",microphoneAriaLabel:S.microphoneButtonAriaLabel}:w={headerText:S.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:S.microphoneButtonAriaLabel};break;case "processing":w={headerText:S.loadingHeader,microphoneState:"processing",microphoneAriaLabel:S.microphoneButtonAriaLabel};
break;case "offline":w={headerText:S.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:S.connectionErrorMicrophoneLabel,microphoneAriaLabel:S.connectionErrorMicrophoneLabel};break;case "permission":w={headerText:S.permissionsHeader,bodyLine1:S.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:S.permissionsSubtext};break;case "permission-denied":w={headerText:S.disabledHeader,bodyLine1:S.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:S.disabledSubtext}}w.className=
H;this.speechOverlayState=w;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.F.setMicrophoneState=function(H){var C=this.isLevelAnimating;this.isLevelAnimating=H==="speaking";!C&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=H==="processing"&&!this.noAnimations};
_.F.setClass=function(H){this.speechOverlayClassName&&_.yQ(this.hostElement,this.speechOverlayClassName,!1);H&&(this.speechOverlayClassName=H,_.yQ(this.hostElement,H,!0))};
_.F.runLevelAnimation=function(){var H=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var C=1+Math.random()*.75,S=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+S/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+C+")");_.rT.addJob(function(){H.runLevelAnimation()},3,S)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
lO.prototype.stateChanged=lO.prototype.stateChanged;lO.prototype.transcriptionChanged=lO.prototype.transcriptionChanged;lO.prototype.onPopupClosed=lO.prototype.onPopupClosed;lO.prototype.dataChanged=lO.prototype.dataChanged;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],lO.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],lO.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],lO.prototype,"rendererStamperBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],lO.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.ie.YtEventForwardingBehavior),_.K("design:type",Object)],lO.prototype,"eventForwardingBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],lO.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],lO.prototype,"speechOverlayState",void 0);
_.D([_.V(),_.K("design:type",Object)],lO.prototype,"microphoneSpinnerActive",void 0);_.D([_.V({type:_.E("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.K("design:type",Object)],lO.prototype,"noAnimations",void 0);_.D([_.V({selector:function(H){var C;return(C=H.voiceSearch)==null?void 0:C.transcription}}),
_.K("design:type",Object)],lO.prototype,"transcription",void 0);_.D([_.V({selector:function(H){var C;return(C=H.voiceSearch)==null?void 0:C.overlay}}),
_.K("design:type",String)],lO.prototype,"state",void 0);_.D([_.V(),_.K("design:type",Object)],lO.prototype,"boundExitClick",void 0);_.D([_.lA("#microphone-levels"),_.K("design:type",HTMLElement)],lO.prototype,"level",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lO.prototype,"dataChanged",null);_.D([_.Gz("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lO.prototype,"onPopupClosed",null);
_.D([_.XJ("transcription"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lO.prototype,"transcriptionChanged",null);_.D([_.XJ("state"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lO.prototype,"stateChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],lO);
_.B(lO,"ytd-voice-search-dialog-renderer",function(){if(U6O!==void 0)return U6O;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return U6O=H},{mode:1});var ym9;var VW=function(){var H=_.X.apply(this,arguments)||this;H.isOverlay=!1;H.hidden=!1;return H};
_.G(VW,_.X);_.F=VW.prototype;_.F.onPopupClosed=function(){this.toggleIconState(!1)};
_.F.computeIcon=function(){var H,C,S;return(C=_.e((H=this.data)==null?void 0:H.icon,iTp))==null?void 0:(S=C.icon)==null?void 0:S.iconType};
_.F.computeIconBadgeShape=function(){var H;return{iconBadgeType:"cart",iconBadgeText:(H=this.iconBadgeEntity)==null?void 0:H.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.F.onClick=function(){var H;(H=this.data)!=null&&H.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.F.computeHidden=function(H){return!H};
_.F.toggleIconState=function(H){this.iconButton&&(this.iconButton.pressed=H)};
VW.prototype.onPopupClosed=VW.prototype.onPopupClosed;_.D([_.v(_.q$),_.K("design:type",Object)],VW.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],VW.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],VW.prototype,"ytComponentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],VW.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],VW.prototype,"isOverlay",void 0);
_.D([_.V({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.K("design:type",Object)],VW.prototype,"hidden",void 0);_.D([_.V({selectorArgs:["data.iconBadgeEntityKey"],selector:function(H,C){return _.Ea(H.entities,"iconBadgeEntity",C)}}),
_.K("design:type",Object)],VW.prototype,"iconBadgeEntity",void 0);_.D([_.lA("yt-icon-button"),_.K("design:type",HTMLButtonElement)],VW.prototype,"iconButton",void 0);_.D([_.Gz("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],VW.prototype,"onPopupClosed",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],VW);
_.B(VW,"ytd-icon-badge-topbar-button-renderer",function(){if(ym9!==void 0)return ym9;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return ym9=H},{mode:1});var Ng_;var oH=function(){var H=_.X.apply(this,arguments)||this;H.premiumOptions=[];H.darkerDarkTheme=_.E("web_darker_dark_theme");return H};
_.G(oH,_.X);oH.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.JJ.Object.defineProperties(oH.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],oH.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],oH.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Array)],oH.prototype,"premiumOptions",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],oH.prototype,"darkerDarkTheme",void 0);_.D([_.l("premiumOptions"),_.K("design:type",Object),_.K("design:paramtypes",[])],oH.prototype,"hasPremiumOptions",null);
_.D([_.h({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],oH);
_.B(oH,"ytd-offline-promo-content",function(){if(Ng_!==void 0)return Ng_;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Ng_=H},{mode:1});var b0p;var Oi=function(){var H=_.X.apply(this,arguments)||this;H.premiumOptions=[];return H};
_.G(Oi,_.X);Oi.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var H;this.premiumOptions=Y53((H=this.data)==null?void 0:H.formats)};
Oi.prototype.onClickSubmit=function(){_.q3(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var H;(H=_.Zz())==null||H.pause()};
Oi.prototype.attached=function(){this.JSC$20714_scroller&&(this.JSC$20714_scroller.dialogElement=this.hostElement.parentNode)};
_.JJ.Object.defineProperties(Oi.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
Oi.prototype.dataChanged=Oi.prototype.dataChanged;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Oi.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Oi.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Oi.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Oi.prototype,"data",void 0);
_.D([_.V({computed:"computeIcon_(data.headersIcon)",value:""}),_.K("design:type",String)],Oi.prototype,"headersIcon",void 0);_.D([_.V(),_.K("design:type",Array)],Oi.prototype,"premiumOptions",void 0);_.D([_.lA("#scroller"),_.K("design:type",Object)],Oi.prototype,"JSC$20714_scroller",void 0);_.D([_.l("headersIcon"),_.K("design:type",Object),_.K("design:paramtypes",[])],Oi.prototype,"showIcon",null);
_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Oi.prototype,"dataChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],Oi);
_.B(Oi,"ytd-offline-promo-renderer",function(){if(b0p!==void 0)return b0p;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return b0p=H},{mode:1});var E7O;var XZ=function(){var H=_.X.apply(this,arguments)||this;H.playbackPauseInterval=NaN;H.isLoading=!1;H.hasError=!1;H.dialogClass="";H.youtubeLabel=_.fL("LOGO_ALT_LABEL",{},"YouTube Home");H.logoName="yt-logos-ext:yt-logo-updated";H.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return H};
_.G(XZ,_.X);_.F=XZ.prototype;_.F.onDataChange=function(){var H;if(this.showEOMV1Text=!((H=this.data)==null||!H.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.F.attached=function(){this.pausePlayer()};
_.F.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.F.handleLangSelect=function(H){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[H.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.F.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.F.handleSaveConsent=function(H){var C=this;this.showLoadingSpinner();this.showLoadingSpinner();suO(_.e(H,cdp)).catch(function(S){_.Bn(new _.X0("Something went wrong when save consent "+(S.message?S.message:S)+"."));C.hideLoadingSpinner();C.showErrorMessage()})};
_.F.handleDisablePersonalization=function(H){var C=this;this.showLoadingSpinner();juj(_.e(H,ZOq)).then(function(){C.dialog.close();C.resumePlayer()}).catch(function(S){_.Bn(new _.X0("Something went wrong when disable personalization "+(S.message?S.message:S)+"."));
C.hideLoadingSpinner();C.showErrorMessage()})};
_.F.showLoadingSpinner=function(){var H=this;this.showSpinnerJobId=_.rT.addLowPriorityJob(function(){H.isLoading=!0},500)};
_.F.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.rT.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.F.showErrorMessage=function(){var H=this;this.hasError=!0;_.rT.addLowPriorityJob(function(){H.hasError=!1},2E3)};
_.F.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.NE(function(){try{var H=_.Zz();H&&H.pause()}catch(C){}},100))};
_.F.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var H=_.Zz();H&&H.play()}catch(C){}};
_.JJ.Object.defineProperties(XZ.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.data)==null||!H.eomV1Text)return[];H=[];for(var C=["SHIELD","WARNING","BAR_CHART"],S=this.data.eomV1Text.essentialCookieMsg.items,w=0;w<C.length&&w<S.length;w++)H.push({icon:C[w],text:S[w]});return H}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var H;if((H=this.data)==null||!H.eomV1Text)return[];H=[];for(var C=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],S=this.data.eomV1Text.nonEssentialCookieMsg.items,w=0;w<C.length&&w<S.length;w++)H.push({icon:C[w],text:S[w]});return H}}});
XZ.prototype.onDataChange=XZ.prototype.onDataChange;_.D([_.V(),_.K("design:type",Object)],XZ.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Boolean)],XZ.prototype,"showEOMV1Text",void 0);_.D([_.V(),_.K("design:type",Object)],XZ.prototype,"isLoading",void 0);_.D([_.V(),_.K("design:type",Object)],XZ.prototype,"hasError",void 0);_.D([_.V(),_.K("design:type",Number)],XZ.prototype,"showSpinnerJobId",void 0);_.D([_.V(),_.K("design:type",Object)],XZ.prototype,"dialogClass",void 0);
_.D([_.lA("#dialog"),_.K("design:type",Object)],XZ.prototype,"dialog",void 0);_.D([_.lA("#cb-header"),_.K("design:type",HTMLElement)],XZ.prototype,"header",void 0);_.D([_.lA("#lang-select"),_.K("design:type",HTMLElement)],XZ.prototype,"langSelect",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],XZ.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],XZ.prototype,"ytComponentBehavior",void 0);
_.D([_.V(),_.K("design:type",String)],XZ.prototype,"youtubeLabel",void 0);_.D([_.V(),_.K("design:type",Object)],XZ.prototype,"logoName",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],XZ.prototype,"onDataChange",null);_.D([_.l("data"),_.K("design:type",Array),_.K("design:paramtypes",[])],XZ.prototype,"eomEssentialCookieMsgItems",null);
_.D([_.l("data"),_.K("design:type",Array),_.K("design:paramtypes",[])],XZ.prototype,"eomNonEssentialCookieMsgItems",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],XZ);
_.B(XZ,"ytd-consent-bump-v2-lightbox",function(){if(E7O!==void 0)return E7O;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return E7O=H},{mode:1});var e2p;var QW=function(){return _.X.apply(this,arguments)||this};
_.G(QW,_.X);QW.prototype.ready=function(){if(!_.VD()||T13)var H=!0;else T13=!0,H=!1;H||(H=document.querySelector("ytd-app"),H||(H=document.body),this.internalLightBox=_.mY(H).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.D([_.V(),_.K("design:type",Object)],QW.prototype,"data",void 0);_.D([_.lA("#lightbox"),_.K("design:type",Object)],QW.prototype,"lightBox",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],QW);
_.B(QW,"ytd-consent-bump-v2-renderer",function(){if(e2p!==void 0)return e2p;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return e2p=H},{mode:1});var uYp;var GPi;var fD_;var dN=function(){return _.X.apply(this,arguments)||this};
_.G(dN,_.X);_.F=dN.prototype;_.F.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&VCt(this.toastManager,this.toastType)};
_.F.open=function(H){this.toast&&(this.ephemeralAction&&_.JA().resolve(_.jX).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=H!=null?H:0,this.toastManager.enqueue(this.toast,H)):this.toast.open())};
_.F.close=function(H){var C;(C=this.toast)==null||C.close();this.toastManager&&H===1&&VCt(this.toastManager,H)};
_.F.refit=function(){var H;(H=this.toast)==null||H.refit()};
_.F.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var H;(H=this.toast)==null||H.close()}};
_.F.setVerticalOffset=function(H){this.toast&&(this.toast.verticalOffset=H,this.toast.fit())};
_.F.computeButtonClass_=function(H){return H?"toast-button":""};
_.F.computeText_=function(H){return _.jt(H)};
_.F.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uQ("toast-opened-changed",this.toastOpened))};
_.F.updateToastOpenedFromBinding=function(H){this.toastOpened=H.detail.value};
_.JJ.Object.defineProperties(dN.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var H,C,S=(H=this.data)==null?void 0:(C=H.actionButton)==null?void 0:C.buttonRenderer;return(S==null?void 0:S.command)||(S==null?void 0:S.serviceEndpoint)||(S==null?void 0:S.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 H=[],C;((C=this.data)==null?0:C.responseText)&&H.push(_.jt(this.data.responseText));var S;((S=this.data)==null?0:S.subText)&&H.push(_.jt(this.data.subText));var w,A;if((w=this.data)==null?0:(A=w.actionButton)==null?0:A.buttonRenderer){var J,c;H.push(((J=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(c=J.accessibilityData)==null?void 0:c.label)||_.jt(this.data.actionButton.buttonRenderer.text))}return H.filter(function(Y){return Y}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var H,C;return(C=(H=this.toast)==null?void 0:H.opened)!=null?C:!1}}});
dN.prototype.toastOpenedChangedForBinding=dN.prototype.toastOpenedChangedForBinding;dN.prototype.toastOpenedChanged=dN.prototype.toastOpenedChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],dN.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.ie.YtEventForwardingBehavior),_.K("design:type",Object)],dN.prototype,"ytEventForwardingBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],dN.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],dN.prototype,"duration",void 0);
_.D([_.V(),_.K("design:type",Number)],dN.prototype,"toastType",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],dN.prototype,"useCloseButton",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],dN.prototype,"closeToastOnActionButtonClick",void 0);_.D([_.V({value:function(){return _.fL("SBOX_INAPPROPRIATE_CANCEL")}}),
_.K("design:type",String)],dN.prototype,"closeButtonAriaLabel",void 0);_.D([_.V(),_.K("design:type",Boolean)],dN.prototype,"toastOpened",void 0);_.D([_.V(),_.K("design:type",Boolean)],dN.prototype,"hasOpened",void 0);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],dN.prototype,"command",null);_.D([_.l("labelText","command","duration"),_.K("design:type",Object),_.K("design:paramtypes",[])],dN.prototype,"ephemeralAction",null);
_.D([_.l("ephemeralAction"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],dN.prototype,"hasEphemeralAction",null);_.D([_.lA("#toast"),_.K("design:type",Object)],dN.prototype,"toast",void 0);_.D([_.V({value:function(){return{style:"call-to-action-inverse"}}}),
_.K("design:type",Object)],dN.prototype,"buttonOverrides",void 0);_.D([_.V({value:{style:"mono-inverse"}}),_.K("design:type",Object)],dN.prototype,"closeButtonOverrides",void 0);_.D([_.V({value:function(){return _.JA().resolve(_.AA(_.HT))}}),
_.K("design:type",Object)],dN.prototype,"toastManager",void 0);_.D([_.l("data.responseText","data.subText","data.actionButton"),_.K("design:type",Object),_.K("design:paramtypes",[])],dN.prototype,"labelText",null);_.D([_.fx("toastOpened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dN.prototype,"toastOpenedChanged",null);
_.D([_.fx("toastOpened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dN.prototype,"toastOpenedChangedForBinding",null);_.D([_.Lx({is:"yt-notification-action-renderer",disableElementRegistration:!0})],dN);
_.B(dN,"yt-notification-action-renderer",function(){if(fD_===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;GPi===void 0&&(GPi=document.createElement("template"));var w=GPi;S.call(C,w.content.cloneNode(!0),H.content.firstChild);fD_=H}H=fD_;return H},{mode:2});var PX=function(){var H=_.X.apply(this,arguments)||this;H.duration=4E3;H.downloadingCount=0;H.downloadedCount=0;H.downloadingOnlySmartDownloads=!1;H.sessionTotalDownloads=0;H.sessionDownloaded=0;H.previousSessionsDownloaded=0;H.totalDownloadPercentage=0;H.currentDownloadProgress=0;H.currentDownloadPercentage=0;H.isLeaderTab=!0;H.isFullScreen=!1;H.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};H.boundBeforeUnload=function(C){H.isLeaderTab&&H.downloadingCount>0&&(C.preventDefault(),
C.returnValue=!0)};
return H};
_.G(PX,_.X);_.F=PX.prototype;
_.F.open=function(){this.updateDownloadState();if(this.data){var H=this.sessionDownloaded+1,C=this.sessionTotalDownloads>1?_.fL("VIDEOS_DOWNLOADING_RATIO",{downloaded:H.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+H+"/"+this.sessionTotalDownloads):_.fL("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(C=this.sessionTotalDownloads>1?_.fL("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:H.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
H+"/"+this.sessionTotalDownloads):_.fL("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));H=this.isLeaderTab?_.fL("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.jt(this.data.responseText)!==C||_.jt(this.data.subText)!==H)this.set("data.responseText",_.sx(C)),this.set("data.subText",_.sx(H)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.F.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.F.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.F.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.F.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var H=this.downloadedCount-this.previousSessionsDownloaded;H<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-H);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.F.handleFullscreenChange=function(H){(this.isFullScreen=H)||this.updatePopup()};
PX.prototype.updateCurrentDownloadProgress=PX.prototype.updateCurrentDownloadProgress;PX.prototype.updatePopup=PX.prototype.updatePopup;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],PX.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],PX.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.ie.YtEventForwardingBehavior),_.K("design:type",Object)],PX.prototype,"ytEventForwardingBehavior",void 0);
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],PX.prototype,"actionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],PX.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],PX.prototype,"duration",void 0);_.D([_.V({selector:function(H){return _.bO0(H.entities).length}}),
_.K("design:type",Object)],PX.prototype,"downloadingCount",void 0);_.D([_.V({selector:MpO}),_.K("design:type",Object)],PX.prototype,"downloadedCount",void 0);_.D([_.V({selector:function(H){var C=_.bO0(H.entities);return zD3(H.entities,C)}}),
_.K("design:type",Object)],PX.prototype,"downloadingOnlySmartDownloads",void 0);_.D([_.V(),_.K("design:type",Object)],PX.prototype,"sessionTotalDownloads",void 0);_.D([_.V(),_.K("design:type",Object)],PX.prototype,"sessionDownloaded",void 0);_.D([_.V(),_.K("design:type",Object)],PX.prototype,"previousSessionsDownloaded",void 0);_.D([_.V(),_.K("design:type",Object)],PX.prototype,"totalDownloadPercentage",void 0);
_.D([_.V({selector:function(H){var C;H=(C=_.bO0(H.entities))!=null?C:[];return H.length>0?_.ZOw(H.slice(-1)):0}}),
_.K("design:type",Object)],PX.prototype,"currentDownloadProgress",void 0);_.D([_.V(),_.K("design:type",Object)],PX.prototype,"currentDownloadPercentage",void 0);_.D([_.V({selector:_.fb$}),_.K("design:type",Object)],PX.prototype,"isLeaderTab",void 0);_.D([_.lA("yt-notification-action-renderer"),_.K("design:type",Object)],PX.prototype,"notificationActionRenderer",void 0);
_.D([_.XJ("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],PX.prototype,"updatePopup",null);_.D([_.XJ("currentDownloadProgress"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],PX.prototype,"updateCurrentDownloadProgress",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],PX);
_.B(PX,"ytd-video-download-toast-renderer",function(){if(uYp!==void 0)return uYp;var H=document.createElement("template");_.f(H,'\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>');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return uYp=H},{mode:1});var v7o;var lDp;var $G=function(){return _.X.apply(this,arguments)||this};
_.G($G,_.X);$G.prototype.computeIsRedLogo=function(H,C){!H&&C&&(H=C);return H==="YOUTUBE_RED_LOGO"||H==="YOUTUBE_PREMIUM_LOGO"};
$G.prototype.computeLogoName=function(H){H=this.componentBehavior.computeIcon_(H);return H===""?"yt-logos-ext:yt-logo-updated":H};
_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],$G.prototype,"componentBehavior",void 0);_.D([_.V({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.K("design:type",Boolean)],$G.prototype,"isRedLogo",void 0);_.D([_.V({computed:"computeLogoName(data)"}),_.K("design:type",String)],$G.prototype,"logoName",void 0);_.D([_.V({value:{}}),_.K("design:type",Object)],$G.prototype,"data",void 0);
_.D([_.V(),_.K("design:type",Object)],$G.prototype,"logoType",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-logo"})],$G);
_.B($G,"ytd-logo",function(){if(lDp!==void 0)return lDp;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return lDp=H},{mode:_.mn("kevlar_poly_si_batch_j074")?1:2});var pa=function(){var H=_.X.apply(this,arguments)||this;H.animationRef={};return H};
_.G(pa,_.X);_.F=pa.prototype;_.F.attached=function(){document.addEventListener("yt-navigate-finish",_.uA(this,this.logYoodle))};
_.F.detached=function(){document.removeEventListener("yt-navigate-finish",_.uA(this,this.logYoodle))};
_.F.logYoodle=function(){var H,C;if((H=this.data)==null?0:(C=H.loggingDirectives)==null?0:C.trackingParams)this.ytRendererBehavior.markDirty(),_.lJ().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.F.computeHideImg=function(H,C){return!!H||!!C};
_.F.computeHideYtdLogo=function(H,C){return!H||!!C};
_.F.computeHideLottie=function(H){return!H};
_.F.computeIsRedLogo=function(H){return H==="YOUTUBE_RED_LOGO"||H==="YOUTUBE_PREMIUM_LOGO"};
_.F.renderLogoEntity=function(){var H=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),C=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),S=this.getLogoTitleText(this.data),w=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==H&&(this.url=H);this.animatedUrl!==C&&(this.animatedUrl=C);this.logoTitleText!==S&&(this.logoTitleText=S);this.lottieUrl!==w&&(this.lottieUrl=w,this.lottiePlayerProps=this.computeLottiePlayerProps(w))};
_.F.getSanitizedThumbnail=function(H){return H&&H.thumbnails?_.Q3w(H.thumbnails,122)||"":""};
_.F.getThumbnailUrl=function(H,C){if(!C)return"";var S,w;H=H?(S=C.darkThemeLogo)==null?void 0:S.thumbnail:(w=C.lightThemeLogo)==null?void 0:w.thumbnail;return this.getSanitizedThumbnail(H)};
_.F.getAnimatedThumbnailUrl=function(H,C){return C?this.getSanitizedThumbnail(H?C.darkThemeAnimatedLogo:C.lightThemeAnimatedLogo):""};
_.F.getLogoTitleText=function(H){if(H)return _.jt(H.tooltipText)};
_.F.computeLogoIcon=function(H,C){if(C){var S,w;return H?(S=C.darkThemeLogo)==null?void 0:S.icon:(w=C.lightThemeLogo)==null?void 0:w.icon}};
_.F.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.F.getLottieUrl=function(H,C){var S,w,A,J;return H?C==null?void 0:(S=C.darkThemeLogo)==null?void 0:(w=S.lottieAnimation)==null?void 0:w.url:C==null?void 0:(A=C.lightThemeLogo)==null?void 0:(J=A.lottieAnimation)==null?void 0:J.url};
_.F.computeLottiePlayerProps=function(H){if(H){var C;if((C=this.animationRef)==null?0:C.lottieEl){var S;(S=this.animationRef)==null||S.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:H,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.F.onLottieError=function(){this.data&&this.lottieUrl&&_.M3(this.hostElement,"yoodle-error")};
_.F.onImgError=function(){this.data&&!this.lottieUrl&&_.M3(this.hostElement,"yoodle-error")};
pa.prototype.playAnimation=pa.prototype.playAnimation;pa.prototype.renderLogoEntity=pa.prototype.renderLogoEntity;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],pa.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],pa.prototype,"data",void 0);_.D([_.V({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.K("design:type",Boolean)],pa.prototype,"hideImg",void 0);
_.D([_.V({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.K("design:type",Boolean)],pa.prototype,"hideYtdLogo",void 0);_.D([_.V({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.K("design:type",Boolean)],pa.prototype,"hideLottie",void 0);_.D([_.V({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.K("design:type",Boolean)],pa.prototype,"isRedLogo",void 0);
_.D([_.V(),_.K("design:type",Boolean)],pa.prototype,"useDarkThemeYoodle",void 0);_.D([_.V(),_.K("design:type",String)],pa.prototype,"url",void 0);_.D([_.V(),_.K("design:type",String)],pa.prototype,"animatedUrl",void 0);_.D([_.V(),_.K("design:type",String)],pa.prototype,"logoTitleText",void 0);_.D([_.V({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.K("design:type",Object)],pa.prototype,"logoIcon",void 0);_.D([_.V(),_.K("design:type",Object)],pa.prototype,"logoType",void 0);
_.D([_.V(),_.K("design:type",String)],pa.prototype,"lottieUrl",void 0);_.D([_.V(),_.K("design:type",Object)],pa.prototype,"lottiePlayerProps",void 0);_.D([_.V(),_.K("design:type",Object)],pa.prototype,"animationRef",void 0);_.D([_.fx("data"),_.fx("useDarkThemeYoodle"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pa.prototype,"renderLogoEntity",null);
_.D([_.Gz("click"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],pa.prototype,"playAnimation",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],pa);
_.B(pa,"ytd-yoodle-renderer",function(){if(v7o!==void 0)return v7o;var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return v7o=H},{mode:_.mn("kevlar_poly_si_batch_j074")?1:2});var Vg9;var o7R;var O09=_.R$.currentPageTypeSelector,Xdt=_.R$.currentPageSubTypeSelector,kG=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return H};
_.G(kG,_.X);_.F=kG.prototype;_.F.onYoodleError=function(){_.E("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.F.computeLogoName=function(H){H=this.componentBehavior.computeIcon_(H);return H===""?"yt-logos-ext:yt-logo-updated":H};
_.F.computeTitle=function(H,C,S){return S&&(C==null?0:C.tooltipText)?_.jt(C.tooltipText):_.jt(H)};
_.F.computeAriaLabel=function(H,C,S){return S&&(C==null?0:C.tooltipText)?_.jt(H):""};
_.F.computeShowYoodle=function(H,C,S){return!H||!C&&!!S&&!_.hb.isEmpty(S)};
_.F.onNavigateHomeAction=function(){if(_.E("kevlar_miniplayer_navigate_home_from_app_killswitch")){var H;(H=_.mY(this.hostElement).querySelector(".yt-simple-endpoint"))==null||H.click()}};
_.F.computeLogoHref=function(H,C,S){var w;(S==null?0:S.onTapCommand)?w=this.componentBehavior.computeHref_(S.onTapCommand):H&&(w=this.componentBehavior.computeHref_(H));return w?w:C};
_.F.computeCommand=function(H,C){return(C==null?void 0:C.onTapCommand)||H};
_.F.getEndpointForm=function(){if(_.E("kevlar_topbar_disable_cache_only_home")){var H=_.JA().resolve(_.MU),C=O09(H.getState())||"";H=Xdt(H.getState())||"";return{disableCache:C==="ytd-browse"&&H==="home"}}return{disableCache:!0}};
kG.prototype.onYoodleError=kG.prototype.onYoodleError;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],kG.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],kG.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],kG.prototype,"componentBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],kG.prototype,"ytdReduxBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],kG.prototype,"data",void 0);_.D([_.V(),_.K("design:type",String)],kG.prototype,"countryCode",void 0);_.D([_.V({selectorArgs:["data.overrideEntityKey"],selector:function(H,C){return _.Ea(H.entities,"logoEntity",C)}}),
_.K("design:type",Object)],kG.prototype,"logoEntity",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.K("design:type",Boolean)],kG.prototype,"showYoodle",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],kG.prototype,"yoodleError",void 0);_.D([_.V({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.K("design:type",String)],kG.prototype,"titleText",void 0);
_.D([_.V({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.K("design:type",String)],kG.prototype,"ariaLabelText",void 0);_.D([_.V({value:"/"}),_.K("design:type",String)],kG.prototype,"defaultEndpointUrl",void 0);_.D([_.V({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.K("design:type",String)],kG.prototype,"endpointUrl",void 0);
_.D([_.V({computed:"computeCommand(data.endpoint, logoEntity)"}),_.K("design:type",String)],kG.prototype,"command",void 0);_.D([_.V(),_.K("design:type",Object)],kG.prototype,"logoType",void 0);_.D([_.V({}),_.K("design:type",Boolean)],kG.prototype,"useDarkThemeYoodle",void 0);_.D([_.Gz("yoodle-error"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],kG.prototype,"onYoodleError",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],kG);
_.B(kG,"ytd-topbar-logo-renderer",function(){if(o7R!==void 0)return o7R;var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return o7R=H},{mode:_.mn("kevlar_poly_si_batch_j027")?1:2});var Q9K=0;var dAR=_.k9.SEARCH_APPEND_LABEL,P6j=_.k9.SUGGESTION_NEW_VIDEOS_TEXT,$Ar=_.k9.SUGGESTION_THUMBNAIL_LABEL,pd_=_.k9.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,kPi=_.n(function(H){function C(Gd){var W3,sM;return _.z(function(M9){if(M9.nextAddress==1)return W3=new Request(Gd),_.en(M9,2),M9.yield(fetch(W3,{credentials:"include"}),4);if(M9.nextAddress!=2)return eo(!0),_.xB(M9,0);sM=_.Vx(M9);_.Bn(sM);_.oT(M9)})}
var S=H.isHighlighted;var w=H.suggestion;var A=H.onClickCallback;var J=H.onHoverUpdateCallback;var c=H.labels;var Y=H.queryBuilderFunction;var M=H.onRemoveCallback;var m=H.suggestionIndex;var W=H.generateUniqueId;var y=H.highlightedId;var N=H.useScrollMargin;var b=H.isKeyboardMode;var u=null,O=null,d=_.sW("div"),p=_.sW("span");H=_.Z(_.mB(!1,void 0,"mxSc0e"));var k=H.next().value,R=H.next().value,L=_.ja("a",function(Gd){Gd&&_.Oj(237477,Gd,O,function(W3){O=W3})}),t=_.ja("button",function(Gd){Gd&&_.Oj(237477,
Gd,O,function(W3){O=W3})}),g=_.um(function(Gd){if((Gd==null?void 0:Gd.button)===2)return Gd.preventDefault(),!1;
var W3=_.Dg();W3&&u&&_.sa(W3,u,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var sM;A(Gd,w().text,w().index,w().entityMid,Gd==null?void 0:(sM=Gd.detail)==null?void 0:sM.wasSelectedByKeyboard);return!1}),ii=function(){return w().type===35},FW=function(){return _.E("desktop_enable_single_suggestion_highlight")},cZ=function(){return _.YB("desktop_suggestions_panel_row_height")||0},eZ=function(){var Gd;
return _.E("desktop_enable_new_video_metadata")&&((Gd=w())==null?void 0:Gd.hasNewVideo)===!0},ND=function(){return _.E("desktop_enable_visual_suggest")},bi=function(){return _.E("desktop_enable_entity_suggest")&&Fd3(w())},pU=function(){return w().entitySubtitle},O$=function(){return FW()?(S==null?void 0:S())||xE()&&!(b==null?0:b()):(S==null?void 0:S())||xE()},R0=function(){var Gd=_.rh("SBOX_SETTINGS");
return ii()&&!(Gd==null?0:Gd.HIDE_REMOVE_LINK)},m1=function(){return Z0_(w(),{useEntityName:bi()})},c7,tV=!((c7=_.JA().resolve(_.AA(_.sU)))==null||!c7()),Td=function(){return ii()?_.E("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},Mi=function(){return c==null?void 0:c().SUGGESTION_DISMISS_LABEL},fP=function(){return c==null?void 0:c().SUGGESTION_DISMISSED_LABEL};
H=_.Z(_.mB(!1,void 0,"WMms1e"));c7=H.next().value;var eo=H.next().value;H=_.Z(_.mB(!1,void 0,"PyL0t"));var Cr=H.next().value,wu=H.next().value,xE=Cr,En=_.um(function(){Y(p.value.innerText);return!1}),So=_.um(function(Gd){Gd.preventDefault();
return!1}),qi=_.um(function(Gd){var W3=w().text,sM=_.rh("SBOX_SETTINGS"),M9="https://"+(sM.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
M9+="&delq="+encodeURIComponent(W3);(W3=sM==null?void 0:sM.PSUGGEST_TOKEN)&&(M9+="&tok="+W3);(sM=sM==null?void 0:sM.SESSION_INDEX)&&(M9+="&authuser="+sM);C(M9);Gd.preventDefault();(Gd=_.Dg())&&O&&_.sa(Gd,O,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");M(m==null?void 0:m());return!1}),H3=_.um(function(){if(FW()&&(b==null?0:b()))return!1;
wu(!0);J(!0);return!1}),I2=_.um(function(){wu(!1);
J(!1);return!1}),RV=_.um(function(){R(!0);
return!1}),YM=_.um(function(){R(!1);
return!1}),LP=_.um(function(Gd){Gd.preventDefault();
if(w().entityThumbnailAttributionUrl){Gd=w().entityThumbnailAttributionUrl;var W3=w().entityName,sM={urlEndpoint:{url:Gd},commandMetadata:{webCommandMetadata:{url:Gd}}};Gd={buttonViewModel:{title:_.fL("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:{dismissDialogEndpoint:{}}}}};sM={buttonViewModel:{title:_.fL("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:sM}}};
W3={dialogHeaderViewModel:{headline:{content:W3!=null?W3:_.fL("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var M9={basicContentViewModel:{paragraphs:[{text:{content:_.fL("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};Gd={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:W3,footer:{panelFooterViewModel:{primaryButton:sM,secondaryButton:Gd,shouldHideDivider:!0}},content:M9}}}}};_.JA().resolve(_.ZQ).resolveCommand(Gd)}return!1});
H=_.Z(_.mB("",void 0,"yG5Sx"));var yO=H.next().value,lY=H.next().value;_.Ph(function(){R0()&&lY(W==null?void 0:W(m==null?void 0:m()));d.value&&_.Oj(12453,d.value,u,function(Gd){u=Gd})});
return _.q(_.T,{cond:c7,then:function(){var Gd={};return _.q("div",{class:_.eJ("ytSuggestionComponentRemovedText",(Gd.ytSuggestionComponentLargerRemovedText=function(){return ND()},Gd)),
style:function(){return cZ()>0?"height: "+cZ()+"px;":""},
role:"button"},fP)},
else:function(){var Gd={},W3={};return _.q("div",{class:_.eJ("ytSuggestionComponentSuggestion",(Gd.ytSuggestionComponentSuggestionHover=function(){return!FW()},Gd.ytSuggestionComponentHighlighted=O$,Gd.ytSuggestionComponentPersonalizedSuggestion=ii,Gd.ytSuggestionComponentMweb=!1,Gd.ytSuggestionComponentLargerSuggestion=function(){return eZ()||ND()},Gd.ytSuggestionComponentThumbnailSuggestion=function(){return ND()},Gd.ytSuggestionComponentRoundedSuggestion=function(){return _.E("desktop_enable_scrollable_suggestions_panel")&&
_.E("desktop_enable_suggestions_panel_padding")},Gd.ytSuggestionComponentThumbnailPadding=function(){return ND()&&!ii()},Gd)),
style:function(){return cZ()>0?"height: "+cZ()+"px;":""},
role:"presentation","on:mousedown":g,"on:mouseover":H3,"on:mouseout":I2,el:d},_.q("div",{class:_.eJ("ytSuggestionComponentText",(W3.ytSuggestionComponentScrollMargin=N,W3)),"aria-label":function(){return eZ()?w().text+" "+P6j:w().text},
id:function(){return W==null?void 0:W(m==null?void 0:m())},
"on:mousedown":g,role:"option"},_.q(_.T,{cond:function(){return w().type!==33},
then:function(){return _.q(_.lm,{icon:Td,className:"ytSuggestionComponentIcon"})}}),_.q("div",{class:"ytSuggestionComponentLeftContainer"},_.q("span",{el:p,
role:"button",tabindex:0},_.q(_.Vq,{each:m1},function(sM){return sM.bold?_.q("span",{class:"ytSuggestionComponentBold"},sM.text):_.q("span",null,sM.text)})),_.q(_.T,{cond:function(){return bi()&&!!w().entitySubtitle||eZ()},
then:function(){return _.q("div",{class:"ytSuggestionComponentMetadataContainer"},_.q(_.T,{cond:function(){return bi()&&!!w().entitySubtitle},
then:function(){return _.q("div",{class:"ytSuggestionComponentEntitySubtitle"},pU)}}),_.q(_.T,{cond:function(){return eZ()},
then:function(){return _.q("div",{class:"ytSuggestionComponentNewVideoContainer"},_.q("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.q("div",{class:"ytSuggestionComponentNewVideoText"},P6j))}}))}}))),_.q("div",{class:"ytSuggestionComponentRightContainer"},_.q(_.T,{cond:function(){return ND()&&w().visualSuggestUrl!==void 0},
then:function(){var sM={};return _.q("div",{class:"ytSuggestionComponentThumbnailContainer"},_.q("img",{"aria-label":$Ar,class:_.eJ("ytSuggestionComponentVisualSuggestThumbnail",(sM.ytSuggestionComponentCircularFrame=function(){return bi()&&w().subtypes.includes(790)},sM.ytSuggestionComponentEntitySuggestThumbnail=function(){return bi()},sM)),
src:function(){return w().visualSuggestUrl}}),_.q(_.T,{cond:function(){return bi()&&!!w().entityThumbnailAttributionUrl},
then:function(){var M9={};return _.q("span",{title:pd_,role:"tooltip"},_.q("div",{"on:mouseover":RV,"on:mouseout":YM,"on:mousedown":LP,class:_.eJ("ytSuggestionComponentThumbnailOverlay",(M9.ytSuggestionComponentThumbnailOverlayHidden=function(){return!k()},M9))},_.q(_.lm,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.q(_.X9,null,_.q(_.o6,{when:function(){return ND()&&R0()}},function(){var sM={};
return _.q("button",{class:_.eJ("ytSuggestionComponentRemoveLinkClearButton",(sM.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return yO()&&yO()===(y==null?void 0:y())},sM.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!O$()},sM)),
el:t,"on:mousedown":qi,"aria-label":Mi,id:function(){return yO()}},_.q(_.lm,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.q(_.o6,{when:function(){return!(ND()&&w().visualSuggestUrl!==void 0)&&R0()}},function(){var sM={};
return _.q("a",{class:_.eJ("ytSuggestionComponentRemoveLink",(sM.ytSuggestionComponentRemoveLinkDark=tV,sM.ytSuggestionComponentRemoveLinkSelected=function(){return yO()&&yO()===(y==null?void 0:y())},sM)),
el:L,"on:mousedown":qi,"aria-label":Mi,tabindex:0,role:"button",id:function(){return yO()}},Mi)}),_.q(_.o6,{when:function(){return!1}},function(){return _.q("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":En,"on:mousedown":So,role:"button","aria-label":dAR},_.q(_.lm,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"Eh");var h2j=_.xC(["//www.google.com/textinputassistant/","/","_tia.js"]),n7j=_.n(function(){return _.q("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.q("button",{class:"ytdTextInputAssistantButton","on:click":_.um(function(){Mgi().inputMethodsTracker.add(3);var H,C=(H=_.rh("SBOX_SETTINGS"))==null?void 0:H.REQUEST_LANGUAGE;if(C)return _.Ie(_.qH(h2j,14,C)),!1})},_.q("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"Fh");var rmi=function(){this.cache=new Map},Bgi=function(H){for(var C=_.Z(H.cache.entries()),S=C.next();!S.done;S=C.next()){var w=_.Z(S.value);
S=w.next().value;w=w.next().value;w.suggestions.some(function(A){return A.type===35})&&H.cache.delete(S)}};var DAq=_.k9.SEARCH,Kdt=_.k9.SEARCH_CLEAR_LABEL,tgR=new _.W4("FAKE_SUGGEST_RESPONSE");_.qs(_.n(function(H){function C(){RV||(RV=setTimeout(function(){LP()},1E3))}
function S(uY,e7,di){if(uY.trim()){I2=uY;_.np("REFINEMENTS_TUPLE",void 0);qi=!0;var bB;e7=mAj(Cr,e7);var yb=(bB=H.searchEndpoint)==null?void 0:bB.call(H);_.Tw9(uY,e7,yb,Td.value.value,di);LP();Td.value.value=uY;Td.value.blur();Cr.reset()}}
function w(uY){return _.z(function(e7){return e7.return(new Promise(function(di){var bB=new XMLHttpRequest;bB.open("GET",C6o(uY),!0);bB.withCredentials=!0;var yb=_.rh("SBOX_SETTINGS");(yb==null?0:yb.SEND_VISITOR_DATA)&&bB.setRequestHeader("X-Goog-Visitor-Id",yb==null?void 0:yb.VISITOR_DATA);bB.onload=function(){di(bB.responseText)};
bB.onerror=function(){_.Bn(Error("Fl"));di(null)};
setTimeout(function(){bB.abort()},1E4);
bB.send(null)}))})}
function A(uY){var e7,di,bB,yb;return _.z(function(VX){switch(VX.nextAddress){case 1:return e7={credentials:"include",headers:i0K()},window.AbortController&&(di=new AbortController,setTimeout(function(){di.abort("ytsbox-suggest-timeout")},1E4),e7.signal=di.signal),_.en(VX,2),VX.yield(fetch(C6o(uY),e7),4);
case 4:bB=VX.yieldResult.text();_.xB(VX,3);break;case 2:return yb=_.Vx(VX),yb!=="ytsbox-abort-last"&&yb!=="ytsbox-suggest-timeout"&&_.Bn(yb),VX.return(null);case 3:return VX.return(bB)}})}
function J(uY){var e7,di,bB;return _.z(function(yb){switch(yb.nextAddress){case 1:if(e7=_.JA().resolve(_.AA(tgR)))return yb.return(e7);di=Date.now();C();return _.E("yt_searchbox_xhr")?yb.yield(w(uY),5):yb.yield(A(uY),4);case 4:bB=yb.yieldResult;yb.jumpTo(3);break;case 5:bB=yb.yieldResult;case 3:if(bB){RV&&(clearTimeout(RV),RV=null);var VX=Cr,dS=di,rP=uY.query.length===0;dS=Date.now()-dS;rP?VX.zeroPrefixRoundTripTime=dS:(VX.JSC$20694_totalRoundTripTime+=dS,VX.maxRoundTripTime=Math.max(VX.maxRoundTripTime,
dS),rP=Math.floor(dS/100),rP>=Wd9.length?++VX.roundTripTimeHistogram[9]:++VX.roundTripTimeHistogram[Wd9[rP]])}return yb.return(bB)}})}
function c(uY){var e7,di,bB;return _.z(function(yb){if(yb.nextAddress==1)return(e7=eo.cache.get(H09(uY)))?yb.return(e7):yb.yield(J(uY),2);di=yb.yieldResult;if(di===null)return yb.return(null);bB=new cmK(di);uY.query.length===0&&bB.suggestions.length===0||eo.cache.set(H09(uY),bB);return yb.return(bB)})}
function Y(uY){var e7,di;return _.z(function(bB){if(bB.nextAddress==1){H3=!1;var yb=I2;yb=_.Cxp()==="search"?(_.Up(location.href,"search_query")||_.Up(location.href,"q"))===yb:!1;e7=new x6_(uY,yb?I2:null);return bB.yield(c(e7),2)}di=bB.yieldResult;if(di===null)return bB.return();e7.query.length===0&&(Cr.zeroPrefixSuggestionCount=di.suggestions.length);if(e7.id<=YM)return Cr.outOfSyncResponseCount++,bB.return();if(document.activeElement!==Td.value)return bB.return();YM=e7.id;var VX=Cr,dS=di.rawResponse[2]||
{};VX.experimentTriggeredBeforeFinal||(VX.experimentTriggeredBeforeFinal=VX.experimentTriggeredFinal);VX.experimentTriggeredFinal=!!dS.e;Cr.updateSuggestions(di.suggestions);d(-1);R0([]);di.suggestions!==b()&&qE(di.suggestions.length);u(di.suggestions);FW(di.suggestions.length>0&&di.suggestions[0].type===33);fP&&(fP.hidden=di.suggestions.length===0,ii()?(fP.style.minWidth="",VX=fP.style,dS=(yb=b()[0])==null?void 0:yb.ignoredPrefix,VX.marginLeft=(dS?Math.min(dS.length*6,Mi.value.offsetWidth):0).toString()+
"px"):(fP.style.minWidth=Mi.value.offsetWidth+"px",fP.style.marginLeft="0"),NH());_.oT(bB)})}
function M(){if(!qi)return!1;var uY=_.rh("REFINEMENTS_TUPLE");return uY?(uY=uY[1].map(function(e7,di){return new Jmp([e7,0,[71]],Td.value.value,di)}),b()!==uY&&qE(uY.length),R0([]),u(uY),Cr.updateSuggestions(uY),qi=!1,fP.hidden=uY.length===0,H3=uY.length>0,!0):!1}
function m(){var uY=Td.value.value;(typeof uY==="string"||uY instanceof String)&&uY!==""?L(!0):L(!1)}
function W(){if(_.Cxp()==="search"){var uY=window.location.href;try{var e7=_.Up(uY,"search_query")||_.Up(uY,"q")||""}catch(di){e7=""}e7&&(Td.value.value=e7,L(!0))}}
var y=_.Z(_.mB([],void 0,"OC8EPc")),N=y.next().value;y=y.next().value;var b=N,u=y;N=_.Z(_.mB(-1,void 0,"t2tVQb"));var O=N.next().value,d=N.next().value;N=_.Z(_.mB(-1,void 0,"v0RZCe"));var p=N.next().value,k=N.next().value;N=_.Z(_.mB(!1,void 0,"rjAnI"));var R=N.next().value,L=N.next().value;N=_.Z(_.mB(!1,void 0,"SyGLvb"));var t=N.next().value,g=N.next().value;y=_.Z(_.mB(!1,void 0,"tL09Cb"));N=y.next().value;y=y.next().value;var ii=N,FW=y;y=_.Z(_.mB(!1,void 0,"FlH7mc"));N=y.next().value;var cZ=y.next().value;
y=_.Z(_.mB(!1,void 0,"ea3fwe"));var eZ=y.next().value,ND=y.next().value;y=_.Z(_.mB(1,void 0,"vSK1xe"));var bi=y.next().value,pU=y.next().value;y=_.Z(_.mB([],void 0,"ijlw4b"));var O$=y.next().value,R0=y.next().value;y=_.Z(_.mB(!1,void 0,"HcRey"));var m1=y.next().value,c7=y.next().value;y=_.E("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var tV=_.sW("yt-searchbox"),Td=_.sW("input"),Mi=_.sW("div"),fP,eo=
new rmi,Cr=Mgi(),wu=_.JA().resolve(_.AA(_.sU)),xE=function(){var uY;return((uY=H.forceDarkMode)==null?void 0:uY.call(H))||!(wu==null||!wu())},En=function(){return _.E("desktop_enable_scrollable_suggestions_panel")},So="i"+Q9K++,qi=!1,H3=!1,I2="",RV=null,YM=-1,LP=function(){R0([]);
u([]);FW(!1);fP&&(fP.hidden=!0);RV&&(clearTimeout(RV),RV=null);d(-1)},yO=function(uY,e7){uY.preventDefault();
c7(!0);fP&&(fP.hidden=!1);var di=O();uY=b();var bB=O$();e7=mpO(e7);di+=e7;for(di>=uY.length?di=-1:di<-1&&(di=uY.length-1);di!==-1&&(bB.includes(di)||di>=uY.length||di<0);)di+=e7,di>=uY.length&&(di=-1);d(di);O()>=0&&(Td.value.value=b()[O()].text,k(0),m(),uY=O(),bB=p(),(bB=document.getElementById(yX[uY][bB]))&&En()&&(uY===b().length-1?fP.scrollTop=fP.scrollHeight:bB.scrollIntoView({block:"nearest",inline:"start"})))},lY=_.um(function(uY){if(!(uY.relatedTarget instanceof Element&&uY.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){g(!0);
var e7;(e7=H.focusCallback)==null||e7.call(H,!0);M()||(H3?fP.hidden=!1:(_.M3(tV.value,"yt-autonav-pause-focus",{}),Y(uY.target.value)))}}),Gd=_.um(function(uY){if(!(uY.relatedTarget instanceof Element&&uY.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){g(!1);
var e7;(e7=H.focusCallback)==null||e7.call(H,!1);fP.scrollTop=0;fP.hidden=!0;_.M3(tV.value,"yt-autonav-pause-blur",{})}}),W3=function(uY){uY=mpO(uY);
var e7;((e7=yX[O()])==null?0:e7[p()+uY])&&k(p()+uY)},sM=_.um(function(uY){var e7=uY.target;
switch(uY.keyCode){case 13:uY.preventDefault();var di;if((di=yX[O()])==null?0:di[p()]){var bB;(bB=document.getElementById(yX[O()][p()]))==null||bB.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}uY=uY.shiftKey?4:3;di=Cr;bB=O();di.selectedSuggestionIndex=bB;S(e7.value,uY);break;case 27:fP&&(fP.hidden=!0);break;case 40:yO(uY,40);break;case 38:yO(uY,38);break;case 39:W3(39);break;case 37:W3(37);break;case 229:Cr.inputMethodsTracker.add(4);break;default:Cr.inputMethodsTracker.add(1),
qq3(Cr)}return!1}),M9=_.um(function(uY){Y(uY.target.value);
m();En()&&fP&&(fP.scrollTop=0);return!1}),QX=_.um(function(){Cr.inputMethodsTracker.add(2);
qq3(Cr);return!1});
_.Ph(function(){if(fP){Cr.reset();if(window.ResizeObserver){var uY=new ResizeObserver(function(){ii()||(fP.style.minWidth=Mi.value.offsetWidth+"px")});
uY.observe(Mi.value);(new ResizeObserver(function(){NH()})).observe(fP);
_.PN(function(){uY.disconnect()})}W();
window.addEventListener("yt-navigate-finish",W);window.addEventListener("yt-focus-searchbox",function(){Td.value.focus()});
var e7;cZ((e7=_.rh("SBOX_SETTINGS"))==null?void 0:e7.HAS_ON_SCREEN_KEYBOARD)}else _.nC(new _.X0("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var P5=_.um(function(uY){uY.preventDefault();S(Td.value.value,12);return!1}),nP=_.um(function(uY){uY.preventDefault();
var e7,di;(e7=Td)==null||(di=e7.value)==null||di.focus();var bB,yb;((bB=Td)==null?void 0:(yb=bB.value)==null?void 0:yb.value)!==""&&(Td.value.value="",Td.value.dispatchEvent(new Event("input")));return!1}),Kr=_.um(function(){var uY=yGO(Td.value.value,b().filter(function(e7){return e7.type!==35}).map(function(e7){return{label:e7.text}}));
_.q3(tV.value,"yt-open-popup-action",[{openPopupAction:uY},document.body]);return!1}),U_=_.um(function(){Td.value.focus();
return!1}),Nr=function(uY,e7,di,bB,yb){Cr.selectedSuggestionIndex=di;
S(e7,yb?3:1,bB)},ME=function(uY){Td.value.value=uY;
Td.value.dispatchEvent(new Event("input"));Cr.inputMethodsTracker.add(5);qq3(Cr,!0)},yX=[[]],Mz=function(uY){var e7="searchbox-suggestion"+_.IB(_.ZD);
yX[uY].push(e7);return e7},qE=function(uY){if(b()){yX=[[]];
for(var e7=0;e7<uY;e7++)yX.push([])}},NH=function(){if(En()){var uY=fP,e7=uY.scrollTop;
uY=uY.scrollHeight-uY.clientHeight;ND(e7>=uY);e7=Math.abs(uY-e7);e7<=40?pU(1-(40-e7)/40):pU(1)}},X6=function(){return"opacity: "+bi()*100+"%"},V7=_.um(function(){NH();
return!1}),kE=_.um(function(){c7(!1);
return!1}),LU,Ni={},TK={},XT={},GK={};
return _.q("yt-searchbox",{class:_.eJ("ytSearchboxComponentHost",(Ni.ytSearchboxComponentMweb=!1,Ni.ytSearchboxComponentDesktop=!0,Ni["yt-searchbox-filled-query"]=function(){return R()},Ni["ytd-masthead"]=function(){return!t()},Ni.ytSearchboxComponentHostDark=xE,Ni)),
role:"search",el:tV,"client-ve-type":10349},_.q("div",{el:Mi,"on:click":U_,class:_.eJ("ytSearchboxComponentInputBox",(TK.ytSearchboxComponentInputBoxDark=xE,TK.ytSearchboxComponentInputBoxHasFocus=t,TK))},_.q("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":P5},_.q(_.T,{cond:t,then:function(){return _.q("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.q(_.lm,{icon:"SEARCH"}))}}),_.q("input",{el:Td,
class:_.eJ("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":So,"aria-expanded":!((LU=fP)==null?0:LU.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":Gd,"on:focus":lY,"on:input":M9,"on:keydown":sM,"on:paste":QX,placeholder:H.placeholderText,"aria-activedescendant":function(){var uY;return(uY=yX[O()])==null?void 0:uY[p()]},
"aria-autocomplete":"list",role:"combobox"})),_.q(_.T,{cond:N,then:function(){return _.q("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.q(n7j,null))}}),_.q(_.T,{cond:R,
then:function(){return _.q("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.q("button",{class:"ytSearchboxComponentClearButton","on:click":nP,"aria-label":H.clearButtonAriaLabel||Kdt},_.q(_.lm,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.q(_.pw,{model:{}})))}})),_.q("button",{class:_.eJ("ytSearchboxComponentSearchButton",(XT.ytSearchboxComponentSearchButtonDark=xE,XT)),
"on:click":P5,"aria-label":DAq,title:H.placeholderText},_.q(_.lm,{icon:"SEARCH"})),_.q(_.T,{cond:function(){if(K3o()&&_.E("mweb_voice_search")&&H.voiceSearchButton)return H.voiceSearchButton()},
then:function(uY){var e7={};return _.q("div",{class:_.eJ("ytSearchboxComponentVoiceSearchWrapper",(e7.ytSearchboxComponentHideVoiceSearchButton=function(){return R()},e7))},_.q(_.V4,{data:uY},{buttonRenderer:function(di){return _.q(_.ft,{data:di.data,
onButtonClickCallback:function(){}})}}))}}),_.q("div",{el:_.Zl(function(uY){return void(fP=uY)}),
id:So,class:_.eJ("ytSearchboxComponentSuggestionsContainer",(GK.ytSearchboxComponentSuggestionsContainerDark=xE,GK["yt-searchbox-suggestions-container"]=!1,GK.ytSearchboxComponentSuggestionsContainerScrollable=En(),GK.ytSearchboxComponentSuggestionsContainerAnimated=y,GK)),"on:scroll":V7,"on:mousemove":kE,role:"listbox",hidden:!0},_.q(_.Vq,{each:b},function(uY,e7){return _.q(kPi,{suggestion:uY,isHighlighted:function(){return e7()===O()},
onClickCallback:Nr,onHoverUpdateCallback:function(di){if(_.E("desktop_enable_single_suggestion_highlight")){var bB=e7();di&&(k(0),d(bB))}},
onRemoveCallback:function(di){Bgi(eo);di===void 0||di<0||O$().includes(di)||R0([].concat(_.k$(O$()),[di]))},
labels:H.labels,queryBuilderFunction:ME,suggestionIndex:e7,generateUniqueId:Mz,highlightedId:function(){var di;return(di=yX[O()])==null?void 0:di[p()]},
useScrollMargin:En(),isKeyboardMode:m1})}),_.q(_.T,{cond:function(){return!ii()&&b().find(function(uY){return uY.type!==35})&&_.E("searchbox_reporting")},
then:function(){return _.q("button",{class:"ytSearchboxComponentReportButton","on:mousedown":Kr},_.fL("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.q(_.T,{cond:function(){return!eZ()&&En()},
then:function(){return _.q("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.q("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:X6}))}})))},"Gh"),"yt-searchbox",{props:{searchEndpoint:_.GH,
placeholderText:_.GH,labels:_.GH,voiceSearchButton:_.GH,focusCallback:_.Yb,clearButtonAriaLabel:_.GH,forceDarkMode:_.GH}});var hu=function(){var H=_.X.apply(this,arguments)||this;H.menuButtonTargetId="topbar-guide-menu";H.narrow=!1;H.menuStrings={BACK_ALT_LABEL:_.fL("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.fL("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.fL("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.fL("SBOX_PLACEHOLDER",void 0,"Search")};H.pageDarkTheme=document.documentElement.hasAttribute("dark");H.watchPageScrollTop=0;H.theater=!1;H.fullscreen=!1;H.disableFrostedGlassDuringViewTransition=
!1;H.desktopUnifiedSearchPanelMode=_.E("desktop_enable_unified_search_panel");H.cinematicTheaterMode=_.E("web_cinematic_theater_mode");H.aiCompanionEnabled=_.E("enable_ai_companion");H.ytSearchboxFocused=!1;H.searchboxLabels=_.rh("SBOX_LABELS");H.topbarIsAboveChipbar=!1;H.isDarkThemeForced=!1;H.areGhostCardsHidden=!1;H.guideKeyboardToggle=!1;H.voiceSearchManager=CI3();H.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};H.setYtSearchboxFocused=
function(C){H.ytSearchboxFocused=C};
H.toggleFrostedGlassDuringViewTransition=function(C){H.disableFrostedGlassDuringViewTransition=C};
return H};
_.G(hu,_.X);_.F=hu.prototype;_.F.computeSimpleText=function(H){return _.jt(H)};
_.F.onDarkChanged=function(){for(var H=_.Z(this.buttons||[]),C=H.next();!C.done;C=H.next())C.value.isOverlay=!!this.dark;H=_.Z(this.buttonRenderers||[]);for(C=H.next();!C.done;C=H.next())C.value.overrides=this.computeButtonOverride()};
_.F.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.F.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.aiCompanionButton":{id:"ai-companion-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},
"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}},notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},
initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.F.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var H=_.WP(_.mN(),"aa");_.yQ(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||H||(this.isDarkThemeForced=this.dark=!0);this.logoType?(H=this.hostElement.querySelector("#masthead-logo"))&&(_.E("polymer_on_demand_shady_dom")?H.setAttribute("slot","masthead-logo-old"):_.f6(H)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.uA(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.uA(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.F.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.uA(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.uA(this,this.onSetTheaterModeEnabled))};
_.F.dataChanged=function(){var H=this.data;H&&(this.voiceEnabled=H.voiceSearchButton?CI3().isSupported():!1,_.O1_(_.iZ(),this.menuButtonTargetId,this.guideButton),H.onReceivedActions&&H.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.yN(this.hostElement,H.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&H&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.yQ(this.hostElement,"dark",!1),_.yQ(this.hostElement,"theater",!1),
(H=this.hostElement.querySelector("#masthead-logo"))&&(_.E("polymer_on_demand_shady_dom")?H.setAttribute("slot","masthead-logo-old"):_.f6(H))))};
_.F.computeCenterHidden=function(){var H;return this.data&&!((H=this.data.searchbox)==null?0:H.fusionSearchboxRenderer)};
_.F.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.yQ(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.F.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.F.onWatchScroll=function(H){this.watchPageScrollTop=H.detail||0;this.updateMastheadBackgroundOpacity()};
_.F.onFullscreenChangeAction=function(H){H||(this.watchPageScrollTop=0);this.fullscreen=H;this.updateMastheadBackgroundOpacity()};
_.F.onSetTheaterModeEnabled=function(H){this.theater=H.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.F.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.F.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.F.setBackgroundOpacity=function(H){H=this.calculateBackgroundOpacity(H);this.background.style.opacity=""+H};
_.F.calculateBackgroundOpacity=function(H){var C=this.theater&&this.cinematicTheaterMode?.6:0,S=this.hostElement.clientHeight/2;return Math.min(Math.max(H,0),S)/S*(1-C)+C};
_.F.shouldShowCinematicMastHead=function(){var H=_.E("kevlar_watch_grid")&&!_.E("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(H||this.pageDarkTheme)};
_.F.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.F.focusGuide=function(){this.guideButton.focus()};
_.F.onGuideToggleTap=function(){_.M3(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.F.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.F.onGuideToggleHover=function(){_.M3(this.hostElement,"yt-guide-hover")};
_.F.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.F.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.F.closeOnOutsideClickCondition=function(H){for(H=_.Ar(H);H[0];){var C=H.shift();if(C instanceof Element&&C.id==="kbd")return!1}return!0};
_.F.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.F.pausePlayer=function(){var H;(H=_.Zz())==null||H.pause();this.pauseMiniplayer()};
_.F.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var H;(H=_.JA().resolve(_.Df).getPlayerElement())==null||H.pause()}};
_.F.isMiniplayerActive=function(){return _.JA().resolve(_.Df).isMiniplayerActive()};
_.F.updateNarrowFromBinding=function(H){this.narrow=H.detail.value};
_.F.onYtSendFeedbackAction=function(){_.q3(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.F.registerWithViewTransitionManager=function(){rCj(_.JA().resolve(_.IC),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.JJ.Object.defineProperties(hu.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.E("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
shouldShowAiCompanionButton:{configurable:!0,enumerable:!0,get:function(){var H;return!!(this.aiCompanionEnabled&&((H=this.data)==null?0:H.aiCompanionButton))}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var H;return(H=this.data)==null?void 0:H.voiceSearchButton}}},
narrowQuery:{configurable:!0,enumerable:!0,get:function(){return"max-width: "+(this.aiCompanionEnabled?750:656)+"px"}}});
hu.prototype.narrowChanged=hu.prototype.narrowChanged;hu.prototype.onWatchPageChange=hu.prototype.onWatchPageChange;hu.prototype.onRendererStamperFinished=hu.prototype.onRendererStamperFinished;hu.prototype.dataChanged=hu.prototype.dataChanged;hu.prototype.onDarkChanged=hu.prototype.onDarkChanged;_.D([_.v(_.Ix),_.K("design:type",Object)],hu.prototype,"ironResizableBehavior",void 0);_.D([_.v(_.ivq),_.K("design:type",Object)],hu.prototype,"ytdExpandableInputBehavior",void 0);
_.D([_.v(_.bU.YtdGuideStateAwareBehavior),_.K("design:type",Object)],hu.prototype,"ytdGuideStateAwareBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],hu.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],hu.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],hu.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],hu.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.q$),_.K("design:type",Object)],hu.prototype,"ytdReduxBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],hu.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],hu.prototype,"narrow",void 0);_.D([_.V(),_.K("design:type",Object)],hu.prototype,"logoType",void 0);_.D([_.V(),_.K("design:type",Boolean)],hu.prototype,"voiceEnabled",void 0);
_.D([_.V(),_.K("design:type",Object)],hu.prototype,"menuStrings",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],hu.prototype,"dark",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],hu.prototype,"pageDarkTheme",void 0);_.D([_.V(),_.K("design:type",Object)],hu.prototype,"watchPageScrollTop",void 0);_.D([_.V({reflectToAttribute:!0,selector:_.M8$}),_.K("design:type",Boolean)],hu.prototype,"isWatchPage",void 0);
_.D([_.V({reflectToAttribute:!0,selector:_.qeD}),_.K("design:type",Boolean)],hu.prototype,"isShortsPage",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],hu.prototype,"theater",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],hu.prototype,"fullscreen",void 0);_.D([_.V({reflectToAttribute:!0,selector:_.y$7}),_.K("design:type",String)],hu.prototype,"frostedGlassMode",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],hu.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],hu.prototype,"aiCompanionEnabled",void 0);_.D([_.V(),_.K("design:type",Object)],hu.prototype,"ytSearchboxFocused",void 0);_.D([_.VQ("#buttons > *"),_.K("design:type",Array)],hu.prototype,"buttons",void 0);_.D([_.VQ("ytd-button-renderer"),_.K("design:type",Array)],hu.prototype,"buttonRenderers",void 0);
_.D([_.lA("#background"),_.K("design:type",HTMLDivElement)],hu.prototype,"background",void 0);_.D([_.lA("#guide-button"),_.K("design:type",Object)],hu.prototype,"guideButton",void 0);_.D([_.lA("#logo"),_.K("design:type",Object)],hu.prototype,"logo",void 0);_.D([_.V({computed:"computeButtonOverride(dark)"}),_.K("design:type",Object)],hu.prototype,"buttonOverrides",void 0);
_.D([_.XJ("dark"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hu.prototype,"onDarkChanged",null);_.D([_.V({value:function(){return this.onVoiceTap.bind(this)}}),
_.K("design:type",Function)],hu.prototype,"boundOnTapVoiceButton",void 0);_.D([_.V(),_.K("design:type",Object)],hu.prototype,"topbarIsAboveChipbar",void 0);_.D([_.V(),_.K("design:type",String),_.K("design:paramtypes",[])],hu.prototype,"guideIcon",null);_.D([_.l("voiceEnabled"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],hu.prototype,"shouldShowVoiceSearchButton",null);
_.D([_.l("data.aiCompanionButton","aiCompanionEnabled"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],hu.prototype,"shouldShowAiCompanionButton",null);_.D([_.l("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],hu.prototype,"voiceSearchButton",null);_.D([_.l("aiCompanionEnabled"),_.K("design:type",String),_.K("design:paramtypes",[])],hu.prototype,"narrowQuery",null);
_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hu.prototype,"dataChanged",null);_.D([_.Gz("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hu.prototype,"onRendererStamperFinished",null);_.D([_.XJ("isWatchPage"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hu.prototype,"onWatchPageChange",null);
_.D([_.XJ("narrow"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hu.prototype,"narrowChanged",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-masthead"})],hu);
_.B(hu,"ytd-masthead",function(){if(Vg9!==void 0)return Vg9;var H=document.createElement("template");_.f(H,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="[[narrowQuery]]" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n    <div id="ai-companion-button" hidden="[[!shouldShowAiCompanionButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return Vg9=H},{mode:_.mn("kevlar_poly_si_batch_j036")?1:2});var Ldp;var g7p={},UAR={},R2_={},IDR={},aDo=(IDR.OFFLINE=(g7p["publicytnetworkstatus-online"]="BACK_ONLINE",g7p),IDR.ONLINE=(UAR["publicytnetworkstatus-offline"]="OFFLINE",UAR),IDR.BACK_ONLINE=(R2_["publicytnetworkstatus-offline"]="OFFLINE",R2_.TIMER_TRIGGER="ONLINE",R2_),IDR),na=function(){var H=_.X.apply(this,arguments)||this;H.currentState="ONLINE";H.scheduledJobId=0;H.bannerString="";H.bannerVe=null;H.networkStatusManagerInstance=new _.Hn;return H};
_.G(na,_.X);_.F=na.prototype;_.F.attached=function(){var H=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){H.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){H.stateChangeHandler("publicytnetworkstatus-offline")})};
_.F.detached=function(){var H=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){H.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){H.stateChangeHandler("publicytnetworkstatus-offline")})};
_.F.enterState=function(H){var C=this;this.scheduledJobId&&_.rT.cancelJob(this.scheduledJobId);H==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):H==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.fL("NO_INTERNET_CONNECTION",void 0,"No internet connection")):H==="BACK_ONLINE"&&(this.bannerString=_.fL("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.X2(_.rT,function(){C.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=H};
_.F.stateChangeHandler=function(H){(H=aDo[this.currentState][H])&&this.enterState(H)};
_.F.logVisibility=function(H){var C=_.Dg();this.createBannerVe(H);C&&this.bannerVe&&(H?_.ia(C,[this.bannerVe]):_.C8(C,[this.bannerVe]))};
_.F.createBannerVe=function(H){!this.bannerVe&&H&&(this.bannerVe=_.y4(37929),_.nO(_.lJ(),this.bannerVe))};
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",String)],na.prototype,"currentState",void 0);_.D([_.V(),_.K("design:type",Object)],na.prototype,"scheduledJobId",void 0);_.D([_.V(),_.K("design:type",Object)],na.prototype,"bannerString",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-network-status-banner"})],na);
_.B(na,"ytd-network-status-banner",function(){if(Ldp!==void 0)return Ldp;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return Ldp=
H},{mode:1});var xA9;var rN=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};H.hidden=!0;H.frostedGlass=_.E("web_frosted_glass");return H};
_.G(rN,_.X);rN.prototype.computeHidden=function(H){return H&&H.status?!1:!0};
rN.prototype.handleUpdatePermissionRoleCommand=function(H){if(H=_.e(H,_.qf1))if(H=_.e(H.renderer,_.Mfi))this.data=H};
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],rN.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],rN.prototype,"componentBehavior",void 0);_.D([_.V({value:!0,computed:"computeHidden(data)"}),_.K("design:type",Object)],rN.prototype,"hidden",void 0);_.D([_.V(),_.K("design:type",Object)],rN.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],rN.prototype,"frostedGlass",void 0);
_.D([_.h({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],rN);
_.B(rN,"ytd-permission-role-bottom-bar-renderer",function(){if(xA9!==void 0)return xA9;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return xA9=H},{mode:1});var Hyo;var iy9;var W_O={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var BX=function(){return _.X.apply(this,arguments)||this};
_.G(BX,_.X);_.F=BX.prototype;_.F.attached=function(){this.JSC$20810_scroller&&(this.JSC$20810_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20810_scroller.attached&&typeof this.JSC$20810_scroller.attached==="function"&&this.JSC$20810_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(S){S.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var H=_.mY(this.hostElement);H.querySelector("tp-yt-paper-radio-group").selected="";var C=H.querySelector("#reason-text");C&&(C.value="");H.querySelector("#description-text").value=""}};
_.F.canSubmit=function(H,C){_.M3(this.hostElement,"yt-invalidate-popup-tabbables");return!(H&&C)};
_.F.onCancel=function(){_.q3(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.F.onSubmit=function(){var H=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(J){return J.active}).map(function(J){return J.innerText.trim()}),C=this.hostElement.querySelector("tp-yt-paper-radio-group"),S=C.selectedItem,w=S.name;
S=S.innerText.trim();var A=C.querySelector("#reason-text");C=void 0;A&&(C=A.value);(A=this.descriptionText.value)&&(A=A.trim());yBO(this.data.searchQuery,H,w,S,A,C);_.q3(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.F.sendFormSubmitToast=function(){var H=_.Zo(_.fL("SBOX_INAPPROPRIATE_TOAST"));_.q3(this.hostElement,"yt-open-popup-action",[H,this])};
_.F.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(H){return H.active})};
_.F.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
BX.prototype.onIronSelect=BX.prototype.onIronSelect;BX.prototype.onIronChange=BX.prototype.onIronChange;BX.prototype.dataChanged=BX.prototype.dataChanged;_.D([_.V(),_.K("design:type",Object)],BX.prototype,"data",void 0);_.D([_.V({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.K("design:type",Boolean)],BX.prototype,"submitDisabled",void 0);_.D([_.V(),_.K("design:type",Boolean)],BX.prototype,"suggestionSelected",void 0);
_.D([_.V(),_.K("design:type",Boolean)],BX.prototype,"catagorySelected",void 0);_.D([_.lA("#scroller"),_.K("design:type",Object)],BX.prototype,"JSC$20810_scroller",void 0);_.D([_.lA("#description-text"),_.K("design:type",Object)],BX.prototype,"descriptionText",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],BX.prototype,"dataChanged",null);
_.D([_.Gz("iron-change"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],BX.prototype,"onIronChange",null);_.D([_.Gz("iron-select"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],BX.prototype,"onIronSelect",null);_.D([_.h({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],BX);
_.B(BX,"ytd-search-suggestion-report-dialog",function(){if(iy9!==void 0)return iy9;var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);return iy9=H},{mode:1});var Dn=function(H){var C=H.openPopupAction;var S=H.target;var w=H.container;var A=H.popupContainerConfig;var J=H.getElement;H=H.removeWhenClosed===void 0?!1:H.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=C;this.target=S;this.container=w;this.popupContainerConfig=A;this.getElement=J;this.JSC$20816_popupConfig=this.popupContainerConfig.JSC$19948_popupConfig[this.openPopupAction.popupType];this.rendererName=(C=this.getName())?_.az0(C,Qb_(this.popupContainerConfig,
C)):"";_.E("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=H);this.createPopup()};
Dn.prototype.updatePopup=function(H){this.openPopupAction=H;this.JSC$20816_popupConfig=this.popupContainerConfig.JSC$19948_popupConfig[this.openPopupAction.popupType];CcR(this);_.E("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
Dn.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var jDt=function(H,C,S){(C=C&&H.JSC$20816_popupConfig.narrowProperties?H.JSC$20816_popupConfig.narrowProperties:H.JSC$20816_popupConfig.properties)&&S!==void 0&&(C.isAriaModal=S);Sho(H,C);H.isRtl()&&Sho(H,H.JSC$20816_popupConfig.rtlProperties);sD9(H)};
Dn.prototype.createPopup=function(){var H=this.JSC$20816_popupConfig.component;if(this.popupContent=wyR(this,this.rendererName)){if(H){this.popup=wyR(this,H);var C=this.popupContent;_.E("web_enable_wrapper_for_cow_component_in_popup")&&(C=document.createElement("div"),C.appendChild(this.popupContent));_.E("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$20816_popupConfig.slotName&&C.setAttribute("slot",this.JSC$20816_popupConfig.slotName);H=this.popup;var S=this.container.tagName.toLowerCase(),
w=_.FJ(C);_.KSw(_.cY(H),_.MT(C,S,w));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.E("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.mY(this.container).appendChild(this.popup)}};
var CcR=function(H){var C,S,w=(C=H.openPopupAction.accessibilityData)==null?void 0:(S=C.accessibilityData)==null?void 0:S.label;w&&(H.popup.ariaLabel=w);var A;((A=H.popupContent.polymerController)!=null?A:H.popupContent).data=(0,_.hb.unsafeClone)(H.openPopupAction.popup[H.getName()]);H.popupContent.duration=A2i(H);H.popupContent.positionType=H.openPopupAction.position;var J=H.openPopupAction.properties;J&&Object.keys(J).forEach(function(c){H.popupContent[c]=J[c]})},Sho=function(H,C){if(C)for(var S=
_.Z(Object.keys(C)),w=S.next();!w.done;w=S.next())w=w.value,H.popup[w]=C[w]},sD9=function(H){if(H.openPopupAction.position){var C=H.JSC$20816_popupConfig.positionalProperties&&H.JSC$20816_popupConfig.positionalProperties[H.openPopupAction.position],S=H.JSC$20816_popupConfig.rtlPositionalProperties&&H.JSC$20816_popupConfig.rtlPositionalProperties[H.openPopupAction.position];
C=H.isRtl()&&S?S:C;C.shiftedHorizontalOffset&&(S=H.popup.style.display,H.popup.style.display="block",H.popupContent&&H.popup.positionTarget&&H.popupContent.clientWidth>H.popup.positionTarget.clientWidth&&(C.horizontalOffset=H.popup.positionTarget.clientWidth/2-C.shiftedHorizontalOffset),H.popup.style.display=S);Sho(H,C)}},J2_=function(H,C){if(C)for(var S=_.Z(Object.keys(C)),w=S.next();!w.done;w=S.next())w=w.value,H.popup.style[w]=C[w]};
Dn.prototype.getName=function(){return _.kT(this.openPopupAction.popup,"renderer")||_.kT(this.openPopupAction.popup,"dialog")||_.kT(this.openPopupAction.popup,"model")||void 0};
var A2i=function(H){H=H.openPopupAction.durationHintMs;return H===0?H:Math.max(4E3,H||4E3)};
Dn.prototype.isRtl=function(){return _.rh("HTML_DIR")==="rtl"};
var wyR=function(H,C){H=H.getElement(C,H.target);H==null&&_.Bn(new _.X0("popup getElement returned null",C));return H};var Fop={};
Fop.YtPopupContainerBehavior=[_.mL.YtComponentBehavior,_.Lw.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_);_.YR(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.zo(this.hostElement)},
closePopup:function(H){var C=this.createCacheKey(void 0,H);this.popups_[C]&&this.handleClosePopupAction_(void 0,H)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.rT.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.rT.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(H){H.opened&&H.keepBelowPlayer&&this.ensurePopupBelowPlayer(H)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var H in this.popups_){var C=this.popups_[H];if(C.popup.scrollAction==="refit"){var S=C.popup.positionTarget.getBoundingClientRect(),w=C.popup;S=S.top;var A=C;if(!A.naturalHeight){A.popup.hidden=!1;A.popup.style.position="fixed";A.popup.style.top="0px";A.popup.style.left="0px";var J=A.popup.getBoundingClientRect();A.naturalHeight=J.bottom-J.top;A.popup.refit()}w.hidden=!(S>=A.naturalHeight+60);C.popupContent.clientHeight===0&&C.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(H){this.popupContainerConfig=H},
handleOpenPopupAction:function(H,C){var S=H.openPopupAction,w=_.JA().resolve(_.AA(_.HT))&&S.popupType==="TOAST";w&&!S.uniqueId&&(S.uniqueId=_.yj());if(!_.E("popup_container_parent_target_killswitch")){var A;C=(A=this.getParentTarget(C))!=null?A:C}var J=this.ensurePopup_(S,C);return new _.Es(function(c){J.then(function(Y){if(!Y)return c();this.maybeCreateNarrowMediaQuery_();var M=this.createCacheKey(Y.rendererName,Y.openPopupAction.uniqueId);if(S.showOncePerUniqueId){if(this.shownPopupKeys_.has(M))return c();
this.shownPopupKeys_.add(M)}M=this.popups_[M];var m=!(!M||!M.openPopupAction.beReused);m=!!S.reusePopup||m;if(Y.popup.opened&&!m){w&&!Y.openPopupAction.replacePopup||this.handleClosePopupAction_(Y.rendererName,Y.openPopupAction.uniqueId);m=S.popupType==="DIALOG"&&!_.E("popup_container_dialog_reopen_killswitch");if(!w&&!m&&M&&M.target==C&&!Y.openPopupAction.replacePopup)return c();_.wM(Y.popup,function(){this.completeOpenPopupAction_(S,C,Y);c()}.bind(this))}else Y.popup.opened?Y.updatePopup(S):this.completeOpenPopupAction_(S,
C,Y),c()}.bind(this))}.bind(this))},
getParentTarget:function(H){if(H&&H instanceof HTMLElement)for(var C=_.Z(Object.entries(this.popups_)),S=C.next();!S.done;S=C.next())if(S=_.Z(S.value),S.next(),S=S.next().value,this.popupClosesOnClick(S)&&S.popup.contains(H))return S.target},
popupClosesOnClick:function(H){return H.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER"].includes(H.rendererName.toUpperCase())},
completeOpenPopupAction_:function(H,C,S){S.updatePopup(H);H=this.narrowMediaQuery_.queryMatches;var w=this.isAriaModal;S.target=C;var A;C=((A=S.target.polymerController)!=null?A:S.target).popupPositionTarget||S.target;S.JSC$20816_popupConfig.targetContainer&&(C=S.container);S.popup.positionTarget=C;S.popupContent.positionTarget=C;sD9(S);S.JSC$20816_popupConfig.forceFocus&&(S.popupContent.style.outline="none");S.popupContent.tabIndex=-1;S.JSC$20816_popupConfig.narrowProperties&&(S.popup.style.position=
"static");S.JSC$20816_popupConfig.preventAutonav&&S.popup.setAttribute("prevent-autonav",!0);S.JSC$20816_popupConfig.forceCloseOnOutsideClick&&S.popup.setAttribute("force-close-on-outside-click",!0);jDt(S,H,w);J2_(S,S.JSC$20816_popupConfig.styles);S.isRtl()&&J2_(S,S.JSC$20816_popupConfig.rtlStyles);if(!S.openPopupAction.shouldStopParentSignal){var J;A=(J=S.target.polymerController)!=null?J:S.target;(S.popupContent.startForwardingEvents||S.popupContainerConfig.forwardingEnabledPopups.has(S.rendererName))&&
A.parentComponent!==S.popupContent&&S.popupContent!==S.target&&S.target!==document.body&&(S.popupContent.startForwardingEvents?S.popupContent.startForwardingEvents(S.popupContainerConfig.forwardedEvents,S.target):(S.JSC$20816_eventForwarder||(S.JSC$20816_eventForwarder=new _.cf(S.popupContent)),S.JSC$20816_eventForwarder.start(S.popupContainerConfig.forwardedEvents,S.target)))}S=S.popup;S.addEventListener("iron-overlay-opened",_.uA(this,this.onPopupIronOverlayOpened_));S.addEventListener("iron-overlay-closed",
_.uA(this,this.onPopupIronOverlayClosed_));S.addEventListener("iron-overlay-canceled",_.uA(this,this.onPopupIronOverlayCanceled_));S.addEventListener("yt-refit",_.uA(this,this.refitPopup_));S.addEventListener("yt-invalidate-popup-tabbables",_.uA(this,this.handleInvalidatePopupTabbables_));S.open()},
getPopupDurationMs_:function(H){return H.durationHintMs===0?H.durationHintMs:Math.max(4E3,H.durationHintMs||4E3)},
handleClosePopupAction_:function(H,C){var S=_.E("web_popup_cache_key_killswitch")||!!C;if(H||S){var w=this.createCacheKey(H,C);H=(H=this.popups_[w])&&H.popup}else H=_.vC1(_.cJ);if(H&&H.close){if(C=_.JA().resolve(_.AA(_.PS)))H.restoreFocusOnClose=C.isKeyBoardInUse();H.close();this.removePopup_(H,w)}},
handleClosePopupCommand_:function(H){H.closePopupCommand&&H.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,H.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(H){var C={},S;for(S in this.popups_)if(C={key$jscomp$1213:C.key$jscomp$1213},C.key$jscomp$1213=S,!H||!H.some(function(J){return function(c){return c==J.key$jscomp$1213}}(C))){var w=this.popups_[C.key$jscomp$1213],A=w.popup;
_.JA().resolve(_.AA(_.HT))&&w.openPopupAction.popupType==="TOAST"||(A&&A.close&&A.close(),this.removePopup_(A,C.key$jscomp$1213))}},
handleClosePopupsAction_:function(H){H.forEach(function(C){var S=this.popups_[C];S&&((S=S.popup)&&S.close&&S.close(),this.removePopup_(S,C))}.bind(this))},
handleGetPopupOpenedAction_:function(H,C){return(C=this.createCacheKey(H,C))&&this.popups_[C]?this.popups_[H].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var H=[],C;for(C in this.popups_){var S=this.popups_[C];S.popup.opened&&H.push(S)}return H},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(H,C){_.E("ytpopup_disable_default_html_caching")&&H&&H.removeWhenClosed&&(_.mY(this.hostElement).removeChild(H),C&&this.popups_[C]&&delete this.popups_[C])},
shouldReusePopup_:function(H){return!(!H||!H.reusePopup)||!(!H||!H.beReused)},
ensurePopup_:function(H,C){this.maybeCreateNarrowMediaQuery_();var S=_.kT(H.popup,"renderer")||_.kT(H.popup,"dialog")||_.kT(H.popup,"model");if(!S)return _.N3();S=_.az0(S,Qb_(this.popupContainerConfig,S));return _.N3(this.getAndMaybeCreatePopup_(H,S,C))},
getAndMaybeCreatePopup_:function(H,C,S){var w=this.createCacheKey(C,H.uniqueId);if(this.popups_[w])return this.popups_[w];H=new Dn({openPopupAction:H,target:S,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(C)});return this.popups_[w]=H},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(H){return _.E("ytpopup_disable_default_html_caching")?H&&H.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",_.uA(this,this.openPopupQueryMatchesChanged_)),_.mY(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(H){H=H.detail.value;for(var C in this.popups_)jDt(this.popups_[C],H)},
onPopupIronOverlayClosed_:function(H){var C=H.currentTarget,S=_.cU6(C);S=S.length>0?S[0]:C;if(S.is!=="ytd-reel-watch-while-dialog-renderer"||H.target.is!=="tp-yt-iron-dropdown"){H.detail.popup=C;H.detail.popupRenderer=S;var w,A={context:{openingElement:((w=this.popups_[(S==null?void 0:S.is)||""])==null?void 0:w.target)||void 0}};Object.assign(A,H.detail);var J;_.M3((J=S.hostElement)!=null?J:S,"yt-popup-closed",A);C.removeEventListener("yt-refit",_.uA(this,this.refitPopup_));C.removeEventListener("yt-invalidate-popup-tabbables",
_.uA(this,this.handleInvalidatePopupTabbables_));C.removeEventListener("iron-overlay-canceled",_.uA(this,this.onPopupIronOverlayCanceled_));C.removeEventListener("iron-overlay-closed",_.uA(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(C)}},
onPopupIronOverlayCanceled_:function(H,C){var S=H.currentTarget,w=_.cU6(S);w=w.length>0?w[0]:S;if(w.is!=="ytd-reel-watch-while-dialog-renderer"||H.target.is!=="tp-yt-iron-dropdown"){var A;_.M3((A=w.hostElement)!=null?A:w,"yt-popup-canceled",H.detail);A=C?_.Ar(C):null;(!C||["click","tap"].includes(C.type))&&!S.hasAttribute("force-close-on-outside-click")&&S.positionTarget&&A&&A.includes(S.positionTarget)&&H.preventDefault();S.restoreFocusOnClose=_.rA.keyboardEventMatchesKeys(C,"esc")}},
onPopupIronOverlayOpened_:function(H){H=H.currentTarget;var C=_.cU6(H);C=C.length>0?C[0]:H;var S,w;_.M3((S=C.hostElement)!=null?S:C,"yt-popup-opened",(w=C.hostElement)!=null?w:C);H.keepBelowPlayer&&(this.ensurePopupBelowPlayer(H,!0),this.dynamicallyPositionedElements_.add(H));S=_.JA().resolve(_.AA(_.PS));w=!!C.querySelector("#toast");S&&S.isKeyBoardInUse()&&!w&&(typeof C.focusFirstItem==="function"?C.focusFirstItem():(C=_.un7(H),C.length&&C[0].focus()));H.removeEventListener("iron-overlay-opened",
_.uA(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(H){H=H.currentTarget;H.refit&&H.refit()},
refitPopups_:function(){for(var H in this.popups_)this.popups_[H].refit()},
handleInvalidatePopupTabbables_:function(H){H=H.currentTarget;H.invalidateTabbables&&H.invalidateTabbables()},
createCacheKey:function(H,C){return _.E("web_popup_cache_key_killswitch")?C?H+"#"+C:H:C?"#"+C:H},
openSheet:function(H,C){var S=H==null?void 0:H.openPopupActionCommand;!S&&(H==null?0:H.viewModel)&&(S={openPopupAction:{popup:{sheetViewModel:H.viewModel},popupType:"CONTEXTUAL_SHEET"}});S&&this.handleOpenPopupAction(S,C)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var H=this;return _.z(function(C){return C.return(H.handleGetOpenedPopupsAction_().filter(function(S){var w;return((w=S.openPopupAction)==null?void 0:w.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(H,C,S){if(_.E("web_dialog_utils_killswitch")){var w=H==null?void 0:H.openPopupActionCommand,A=(S==null?0:S.ariaLabel)?{accessibilityData:{accessibilityData:{label:S.ariaLabel}}}:void 0;!w&&(H==null?0:H.viewModel)&&(w={openPopupAction:Object.assign({},{popup:{dialogViewModel:H.viewModel},popupType:(S==null?0:S.isModal)?"MODAL":"DIALOG"},A&&A)});w&&this.handleOpenPopupAction(w,C)}else{if(A=H==null?void 0:H.viewModel){var J=S=S===void 0?{}:S;S=J.ariaLabel;A={popup:{dialogViewModel:A},
popupType:J.isModal?"MODAL":"DIALOG"};J={accessibilityData:{label:S}};S&&(A.accessibilityData=J);A={openPopupAction:A}}else A=void 0;if(A=(w=A)!=null?w:H==null?void 0:H.openPopupActionCommand)this.isAriaModal=_.E("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(A,C)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var H=this;return _.z(function(C){return C.return(H.handleGetOpenedPopupsAction_().filter(function(S){var w;return((w=S.openPopupAction)==null?void 0:w.popupType)==="DIALOG"}).length>0)})}}];var Zyj;var c2o;var Yh9=_.xC(["about:blank"]),Ka=function(){var H=_.X.apply(this,arguments)||this;H.isMuted=!1;H.pageLoadTimeoutId=void 0;return H};
_.G(Ka,_.X);_.F=Ka.prototype;_.F.dataChanged=function(){var H=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var C=this.data.url,S=_.B9(C);_.E("enable_yt_ata_iframe_authuser")?(S=_.B9(C),_.He(this.iframe,NwO(S))):_.He(this.iframe,S);this.pageLoadTimeoutId=_.X2(_.oh(),function(){return void H.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.zl({destination:window,iframe:this.iframe,origin:_.MhV(S.toString()),channelName:"ataiframe",onMessage:_.WEi(Yf9,function(w){SY_(w.data)?(w=_.IO(w.data,1,_.s_,_.cl()),w.length!==1?_.Bn(Error("Gl")):(w=w[0],w===3?(H.isMuted=!0,H.logStateChanged({adMuteRequested:!0})):w===1&&H.close())):_.Bn(Error("Hl"))}),
onEstablished:function(){H.cancelPageLoadTimeout();H.logStateChanged({pageLoadSucceeded:!0})}})}};
_.F.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.oh().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.F.logStateChanged=function(H){var C;if((C=this.data)==null?0:C.trackingParams)H={adsClientData:{aboutThisAdData:H}},_.lJ().stateChanged(this.data.trackingParams,H)};
_.F.close=function(){_.q3(this.hostElement,"yt-close-popup-action",[this.is])};
_.F.handlesPopupClosed=function(H,C){var S=this,w,A;return _.z(function(J){if(J.nextAddress==1)return _.rh("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.q3(S.hostElement,"on-about-this-ad-popup-closed",[S.isMuted,C]),J.jumpTo(0)):H&&bnt(H)?J.yield(Ei3(H),4):(S.isMuted&&_.q3(S.hostElement,"yt-mute-ad-action",[S.is,S]),J.jumpTo(0));if(w=J.yieldResult){var c=A=new _.ju(w),Y=S.isMuted;c.getOptions().includes("onAboutThisAdPopupClosed")?_.ZFP(c,"onAboutThisAdPopupClosed",{isMuted:Y,layoutId:C}):_.a$("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.oT(J)})};
_.F.onPopupClosed=function(H){var C=this,S,w;return _.z(function(A){S=_.qH(Yh9);_.He(C.iframe,S);C.cancelPageLoadTimeout();if(!C.data)return A.jumpTo(0);C.ytRendererBehavior.markDirty();w=H.detail.context.openingElement;return A.yield(C.handlesPopupClosed(w,C.data.layoutId),0)})};
_.F.detached=function(){this.cancelPageLoadTimeout()};
_.F.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Ka.prototype.onPopupClosed=Ka.prototype.onPopupClosed;Ka.prototype.dataChanged=Ka.prototype.dataChanged;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Ka.prototype,"ytRendererBehavior",void 0);_.D([_.lA("#iframe"),_.K("design:type",HTMLIFrameElement)],Ka.prototype,"iframe",void 0);_.D([_.V(),_.K("design:type",Object)],Ka.prototype,"data",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ka.prototype,"dataChanged",null);
_.D([_.Gz("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype",Promise)],Ka.prototype,"onPopupClosed",null);_.D([_.Lx({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],Ka);
_.B(Ka,"yt-about-this-ad-renderer",function(){if(c2o===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;Zyj===void 0&&(Zyj=document.createElement("template"));var w=Zyj;S.call(C,w.content.cloneNode(!0),H.content.firstChild);c2o=H}H=c2o;return H},{mode:2});var zG3;var Mz9;var tu=function(H){var C=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=C.message;"stack"in C&&(this.stack=C.stack);this.maxFileSizeMB=H;Object.setPrototypeOf(this,tu.prototype)};
_.G(tu,Error);var qhj=function(H,C){var S=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=S.message;"stack"in S&&(this.stack=S.stack);this.minWidth=H;this.minHeight=C;Object.setPrototypeOf(this,qhj.prototype)};
_.G(qhj,Error);var TY9=function(H){this.requirements=H;this.JSC$20843_maxFileSize=H.maxFileSizeMB*1024*1024},m43=function(H,C){if(C.size>H.JSC$20843_maxFileSize)throw new tu(H.requirements.maxFileSizeMB);
};var WoR=function(H,C){this.canvas=H;this.imageEditorBuilder=C};
WoR.prototype.addEventListeners=function(H){var C=function(A){y2K(H,A)};
this.JSC$20849_mouseDownEvent=C;var S=function(A){NYt(H,A)};
this.JSC$20849_mouseMoveEvent=S;var w=function(){by3(H)};
this.JSC$20849_mouseUpEvent=w;this.canvas.addEventListener("mousedown",C);this.canvas.addEventListener("mousemove",S);document.addEventListener("mouseup",w)};
WoR.prototype.removeEventListeners=function(){this.JSC$20849_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$20849_mouseDownEvent);this.JSC$20849_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$20849_mouseMoveEvent);this.JSC$20849_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$20849_mouseUpEvent)};
var ENp=function(H,C){H.removeEventListeners();return new Promise(function(S){var w=new Image;w.crossOrigin="anonymous";w.onload=function(){var A=H.imageEditorBuilder(H.canvas,w);H.addEventListeners(A);S(A)};
w.src=C})},La=function(H,C,S,w,A,J,c,Y){this.canvas=H;
this.image=C;this.requiredRatio=S;this.minImageCropDimension=w;this.minOutputImageResolution=A;this.component=J;this.styleFocusedCorner=Y===void 0?!0:Y;this.action=2;this.focusedCorner=this.resizeCorner=0;H=this.canvas.getContext("2d");if(!H)throw Error("Il");this.ctx=H;this.canvasMargin=c!=null?c:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;c=this.image;H=this.canvasInnerWidth/c.width;c.height*H>912&&(H=c.width/c.height*912/c.width);c=H;this.scaledImageWidth=this.canvas.width%2?
u1i(this.image.width*c):eX3(this.image.width*c);this.scaledImageHeight=Math.round(this.image.height*c);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$20852_overlayMarginBottom=this.JSC$20852_overlayMarginTop=this.canvasMargin;this.JSC$20852_overlayMarginRight=this.JSC$20852_overlayMarginLeft=this.horizontalMargin;this.JSC$20852_overlayWidth=this.scaledImageWidth;this.JSC$20852_overlayHeight=this.scaledImageHeight;
H=this.image.width/this.image.height;H>this.requiredRatio?(this.JSC$20852_overlayWidth=this.canvas.width%2?u1i(this.scaledImageHeight*this.requiredRatio):eX3(this.scaledImageHeight*this.requiredRatio),this.JSC$20852_overlayMarginRight=this.JSC$20852_overlayMarginLeft=(this.canvas.width-this.JSC$20852_overlayWidth)/2):H<this.requiredRatio&&(this.JSC$20852_overlayHeight=this.canvas.height%2?u1i(this.scaledImageWidth/this.requiredRatio):eX3(this.scaledImageWidth/this.requiredRatio),this.JSC$20852_overlayMarginBottom=
this.JSC$20852_overlayMarginTop=(this.canvas.height-this.JSC$20852_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*c,this.scaledImageWidth);eGp(this)};
La.prototype.getContext=function(){return this.ctx};
var y2K=function(H,C){C={x:Math.round(C.pageX-H.canvas.getBoundingClientRect().left),y:Math.round(C.pageY-H.canvas.getBoundingClientRect().top)};H.dragStart=C;umr(H,C)!==0?(H.action=1,GQK(H,C),H.resizeCorner=umr(H,C)):C.x>H.JSC$20852_overlayMarginLeft&&C.x<H.JSC$20852_overlayMarginLeft+H.JSC$20852_overlayWidth&&C.y>H.JSC$20852_overlayMarginTop&&C.y<H.JSC$20852_overlayMarginTop+H.JSC$20852_overlayHeight&&(H.action=0)},fWi=function(H,C){switch(C){case 1:return{x:H.JSC$20852_overlayMarginLeft,
y:H.JSC$20852_overlayMarginTop};case 2:return{x:H.JSC$20852_overlayMarginLeft,y:H.JSC$20852_overlayMarginTop+H.JSC$20852_overlayHeight};case 3:return{x:H.JSC$20852_overlayMarginLeft+H.JSC$20852_overlayWidth,y:H.JSC$20852_overlayMarginTop};case 4:return{x:H.JSC$20852_overlayMarginLeft+H.JSC$20852_overlayWidth,y:H.JSC$20852_overlayMarginTop+H.JSC$20852_overlayHeight};default:throw Error("Jl");}},lWr=function(H,C){if(H.focusedCorner!==0){H.dragStart=fWi(H,H.focusedCorner);
H.action=1;H.resizeCorner=H.focusedCorner;var S=H.dragStart.x,w=H.dragStart.y;switch(C){case 0:H.focusedCorner===1||H.focusedCorner===4?(S-=10,w-=10):(S-=10,w+=10);break;case 1:H.focusedCorner===1||H.focusedCorner===4?(S+=10,w+=10):(S+=10,w-=10);break;case 2:S=H.focusedCorner===1||H.focusedCorner===4?S-10:S+10;w-=10;break;case 3:S=H.focusedCorner===1||H.focusedCorner===4?S+10:S-10;w+=10;break;default:throw Error("Kl");}vNr(H,{x:S,y:w});eGp(H);H.action=2;H.dragStart=void 0}},NYt=function(H,C){C={x:Math.round(C.pageX-
H.canvas.getBoundingClientRect().left),
y:Math.round(C.pageY-H.canvas.getBoundingClientRect().top)};GQK(H,C);switch(H.action){case 1:vNr(H,C);break;case 0:H.dragStart&&(H.JSC$20852_overlayMarginLeft=Math.max(H.horizontalMargin,Math.min(H.JSC$20852_overlayMarginLeft-(H.dragStart.x-C.x),H.horizontalMargin+H.scaledImageWidth-H.JSC$20852_overlayWidth)),H.JSC$20852_overlayMarginRight=H.canvas.width-H.JSC$20852_overlayMarginLeft-H.JSC$20852_overlayWidth,H.JSC$20852_overlayMarginTop=Math.max(H.canvasMargin,Math.min(H.JSC$20852_overlayMarginTop-
(H.dragStart.y-C.y),H.scaledImageHeight-H.JSC$20852_overlayHeight+H.canvasMargin)),H.JSC$20852_overlayMarginBottom=H.canvas.height-(H.JSC$20852_overlayMarginTop+H.JSC$20852_overlayHeight));break;default:return}eGp(H);H.dragStart=C},by3=function(H){H.action=2;
H.dragStart=void 0;document.body.style.cursor="auto"},GQK=function(H,C){switch(umr(H,C)){case 1:document.body.style.cursor="nw-resize";
break;case 3:document.body.style.cursor="ne-resize";break;case 2:document.body.style.cursor="sw-resize";break;case 4:document.body.style.cursor="se-resize";break;default:H.action!==1&&(document.body.style.cursor="auto")}},umr=function(H,C){var S=H.JSC$20852_overlayMarginLeft-5,w=H.JSC$20852_overlayMarginTop-5,A=H.JSC$20852_overlayMarginLeft+H.JSC$20852_overlayWidth-5;
H=H.JSC$20852_overlayMarginTop+H.JSC$20852_overlayHeight-5;return Vzj(C,{x:S,y:w})?1:Vzj(C,{x:A,y:w})?3:Vzj(C,{x:S,y:H})?2:Vzj(C,{x:A,y:H})?4:0},Vzj=function(H,C){return H.x>=C.x&&H.x<=C.x+10&&H.y>=C.y&&H.y<=C.y+10},vNr=function(H,C){if(H.dragStart)switch(H.resizeCorner){case 2:Math.abs((H.JSC$20852_overlayMarginLeft+H.JSC$20852_overlayWidth-C.x)/(C.y-H.JSC$20852_overlayMarginTop))>=H.requiredRatio?oN9(H,C.x):Oy3(H,C.y);
break;case 1:Math.abs((H.JSC$20852_overlayMarginLeft+H.JSC$20852_overlayWidth-C.x)/(H.JSC$20852_overlayMarginTop+H.JSC$20852_overlayHeight-C.y))>=H.requiredRatio?Xyo(H,C.x):Oy3(H,C.y);break;case 4:Math.abs((C.x-H.JSC$20852_overlayMarginLeft)/(C.y-H.JSC$20852_overlayMarginTop))>=H.requiredRatio?oN9(H,C.x):QDj(H,C.y);break;case 3:Math.abs((C.x-H.JSC$20852_overlayMarginLeft)/(H.JSC$20852_overlayMarginTop+H.JSC$20852_overlayHeight-C.y))>=H.requiredRatio?Xyo(H,C.x):QDj(H,C.y);break;default:throw Error("Ll");
}},oN9=function(H,C){var S=H.JSC$20852_overlayMarginTop;
H.JSC$20852_overlayMarginBottom=d4R(H,C);H.JSC$20852_overlayHeight=H.canvas.height-H.JSC$20852_overlayMarginBottom-S;H.JSC$20852_overlayWidth=Math.round(H.JSC$20852_overlayHeight*H.requiredRatio);Pci(H)},Xyo=function(H,C){var S=H.JSC$20852_overlayMarginTop+H.JSC$20852_overlayHeight;
H.JSC$20852_overlayMarginTop=d4R(H,C);H.JSC$20852_overlayHeight=S-H.JSC$20852_overlayMarginTop;H.JSC$20852_overlayWidth=Math.round(H.JSC$20852_overlayHeight*H.requiredRatio);Pci(H)},Pci=function(H){switch(H.resizeCorner){case 2:case 1:H.JSC$20852_overlayMarginLeft=H.canvas.width-H.JSC$20852_overlayMarginRight-H.JSC$20852_overlayWidth;
break;case 4:case 3:H.JSC$20852_overlayMarginRight=H.canvas.width-H.JSC$20852_overlayMarginLeft-H.JSC$20852_overlayWidth;break;default:throw Error("Ll");}},Oy3=function(H,C){var S=H.JSC$20852_overlayMarginLeft+H.JSC$20852_overlayWidth;
H.JSC$20852_overlayMarginLeft=$49(H,C);H.JSC$20852_overlayWidth=S-H.JSC$20852_overlayMarginLeft;H.JSC$20852_overlayHeight=Math.round(H.JSC$20852_overlayWidth/H.requiredRatio);pyr(H)},QDj=function(H,C){var S=H.JSC$20852_overlayMarginLeft;
H.JSC$20852_overlayMarginRight=$49(H,C);H.JSC$20852_overlayWidth=H.canvas.width-H.JSC$20852_overlayMarginRight-S;H.JSC$20852_overlayHeight=Math.round(H.JSC$20852_overlayWidth/H.requiredRatio);pyr(H)},pyr=function(H){switch(H.resizeCorner){case 2:case 4:H.JSC$20852_overlayMarginBottom=H.canvas.height-H.JSC$20852_overlayMarginTop-H.JSC$20852_overlayHeight;
break;case 1:case 3:H.JSC$20852_overlayMarginTop=H.canvas.height-H.JSC$20852_overlayMarginBottom-H.JSC$20852_overlayHeight;break;default:throw Error("Ll");}},d4R=function(H,C){switch(H.resizeCorner){case 2:C=H.canvas.height-(H.JSC$20852_overlayMarginTop+kQ_(H,C));
break;case 4:C=H.canvas.height-(H.JSC$20852_overlayMarginTop+hG_(H,C));break;case 1:C=H.JSC$20852_overlayMarginTop+H.JSC$20852_overlayHeight-kQ_(H,C);break;case 3:C=H.JSC$20852_overlayMarginTop+H.JSC$20852_overlayHeight-hG_(H,C);break;default:throw Error("Ll");}return Math.max(C,H.canvasMargin)},kQ_=function(H,C){C=H.JSC$20852_overlayMarginLeft+H.JSC$20852_overlayWidth-Math.max(C,H.horizontalMargin);
C=C<0?H.JSC$20852_overlayWidth:Math.max(C,H.minOverlayWidth);return Math.round(C/H.requiredRatio)},hG_=function(H,C){C=H.canvas.width-Math.max(H.canvas.width-C,H.horizontalMargin)-H.JSC$20852_overlayMarginLeft;
C=C<0?H.JSC$20852_overlayWidth:Math.max(C,H.minOverlayWidth);return Math.round(C/H.requiredRatio)},$49=function(H,C){switch(H.resizeCorner){case 2:C=H.canvas.width-H.JSC$20852_overlayMarginRight-nNt(H,C);
break;case 4:C=H.canvas.width-H.JSC$20852_overlayMarginLeft-nNt(H,C);break;case 1:C=H.canvas.width-H.JSC$20852_overlayMarginRight-r2p(H,C);break;case 3:C=H.canvas.width-H.JSC$20852_overlayMarginLeft-r2p(H,C);break;default:throw Error("Ll");}return Math.max(C,H.horizontalMargin)},nNt=function(H,C){C=H.canvas.height-Math.max(H.canvas.height-C,H.canvasMargin)-H.JSC$20852_overlayMarginTop;
return C<0?H.JSC$20852_overlayWidth:Math.max(Math.round(C*H.requiredRatio),H.minOverlayWidth)},r2p=function(H,C){C=H.JSC$20852_overlayMarginTop+H.JSC$20852_overlayHeight-Math.max(C,H.canvasMargin);
return C<0?H.JSC$20852_overlayWidth:Math.max(Math.round(C*H.requiredRatio),H.minOverlayWidth)},eGp=function(H){H.ctx.clearRect(0,0,H.canvas.width,H.canvas.height);
H.ctx.drawImage(H.image,0,0,H.image.width,H.image.height,H.horizontalMargin,H.canvasMargin,H.canvas.width-2*H.horizontalMargin,H.scaledImageHeight);H.ctx.fillStyle="rgba(0, 0, 0, 0.7)";H.ctx.fillRect(H.horizontalMargin,H.JSC$20852_overlayMarginTop,H.JSC$20852_overlayMarginLeft-H.horizontalMargin,H.JSC$20852_overlayHeight);H.ctx.fillRect(H.JSC$20852_overlayMarginLeft+H.JSC$20852_overlayWidth,H.JSC$20852_overlayMarginTop,H.JSC$20852_overlayMarginRight-H.horizontalMargin,H.JSC$20852_overlayHeight);H.ctx.fillRect(H.horizontalMargin,
H.canvasMargin,H.scaledImageWidth,H.JSC$20852_overlayMarginTop-H.canvasMargin);H.ctx.fillRect(H.horizontalMargin,H.JSC$20852_overlayMarginTop+H.JSC$20852_overlayHeight,H.scaledImageWidth,H.JSC$20852_overlayMarginBottom-H.canvasMargin);H.drawOverlay();H.component&&_.M3(H.component,"image-updated")};
La.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$20852_overlayMarginLeft,this.JSC$20852_overlayMarginTop,this.JSC$20852_overlayWidth,this.JSC$20852_overlayHeight);BY9(this)};
var BY9=function(H){var C=H.JSC$20852_overlayMarginLeft-5,S=H.JSC$20852_overlayMarginTop-5,w=H.JSC$20852_overlayMarginLeft+H.JSC$20852_overlayWidth-5,A=H.JSC$20852_overlayMarginTop+H.JSC$20852_overlayHeight-5;H.ctx.fillStyle="#FFF";H.ctx.fillRect(C,S,10,10);H.ctx.strokeRect(C,S,10,10);H.ctx.fillRect(w,S,10,10);H.ctx.strokeRect(w,S,10,10);H.ctx.fillRect(C,A,10,10);H.ctx.strokeRect(C,A,10,10);H.ctx.fillRect(w,A,10,10);H.ctx.strokeRect(w,A,10,10);if(H.focusedCorner!==0&&H.styleFocusedCorner){H.ctx.lineWidth=
4;H.ctx.strokeStyle="#3EA6FF";switch(H.focusedCorner){case 1:--C;--S;break;case 2:--C;S=A-1;break;case 3:C=w-1;--S;break;case 4:C=w-1;S=A-1;break;default:return}H.ctx.strokeRect(C,S,12,12)}};
La.prototype.crop=function(H,C){C=C===void 0?!0:C;var S=this.image.width/this.scaledImageWidth,w=document.createElement("canvas"),A=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],J=this.JSC$20852_overlayWidth*S,c=this.JSC$20852_overlayHeight*S;w.width=Math.max(J,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);w.height=Math.max(c,A);H&&(w.width=Math.min(w.width,w.height),w.height=Math.min(w.width,w.height));
H=w.getContext("2d");if(!H)throw Error("zl");A=(this.JSC$20852_overlayMarginLeft-this.horizontalMargin)*S;S*=this.JSC$20852_overlayMarginTop-this.canvasMargin;C||(H.fillStyle="white",H.fillRect(0,0,w.width,w.height));H.drawImage(this.image,A,S,J,c,0,0,w.width,w.height);return w};var D49=function(H,C,S,w,A){La.call(this,H,C,S,w,void 0,A,8,!1)};
_.G(D49,La);D49.prototype.drawOverlay=function(){var H=this.getContext(),C=this.JSC$20852_overlayWidth,S=this.JSC$20852_overlayHeight,w=this.JSC$20852_overlayMarginTop,A=this.JSC$20852_overlayMarginLeft;H.lineWidth=2;H.strokeStyle="#3EA6FF";H.beginPath();H.arc(A+C/2,w+S/2,C/2,0,2*Math.PI);H.stroke();H.strokeRect(A,w,C,S);BY9(this)};
var Koo={maxFileSizeMB:15,minWidth:98,minHeight:98},tzr=["image/png","image/jpeg","image/gif"],gN=function(){var H=_.X.apply(this,arguments)||this;H.fileSelectorFocusListener=null;H.errorMessage=null;H.isLoading=!0;H.hideContainer=!0;H.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return H};
_.G(gN,_.X);_.F=gN.prototype;_.F.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.F.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.F.computePlaylistThumbnail=function(H){return H==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.F.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.q3(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.F.setErrorState=function(H){this.resetErrorState();H&&(this.errorMessage=H)};
_.F.showPopup=function(){var H=this;this.hideContainer=!1;_.X2(_.rT,function(){_.M3(H.hostElement,"yt-refit")});
this.isLoading=!1};
_.F.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.F.closePopup=function(){this.resetFileSelector();_.q3(this.hostElement,"yt-close-popup-action",[this.is])};
_.F.onCancelTap=function(){this.isPlaylistThumbnail||_.q3(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.F.openFileSelector=function(){var H=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.X2(_.rT,function(){setTimeout(function(){if(!H.fileSelector.files||H.fileSelector.files.length===0)H.onCancelTap();H.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(C){C instanceof Error?_.nC(C):_.rv(new _.X0(JSON.stringify(C)))}};
_.F.handleFileSelection=function(){var H=this,C,S,w,A,J,c;return _.z(function(Y){switch(Y.nextAddress){case 1:_.en(Y,2);if(!H.fileSelector.files||!H.imageEditorCanvas)return H.onCancelTap(),Y.return();C=H.fileSelector.files[0];m43(H.imageChecker,C);_.en(Y,4);return Y.yield(Usj(C),6);case 6:H.mimeType=Y.yieldResult;_.xB(Y,5,2);break;case 4:_.Vx(Y,2),_.q3(H.hostElement,"yt-image-selection-error-action",[(S=H.data)==null?void 0:S.genericImageLoadErrorMessage]),H.onCancelTap();case 5:w=new FileReader;
w.addEventListener("load",function(){var M,m;return _.z(function(W){if(W.nextAddress==1){if(!w.result)return _.Bn(Error("Bl")),W.return();M=w.result;m=new Image;m.src=M;m.onload=function(){try{var y=H.imageChecker;if(m.width<y.requirements.minWidth||m.height<y.requirements.minHeight)throw new qhj(y.requirements.minWidth,y.requirements.minHeight);}catch(b){if(b instanceof qhj){var N;_.q3(H.hostElement,"yt-image-selection-error-action",[(N=H.data)==null?void 0:N.imageDimensionErrorMessage]);H.logImageDimensionErrorVe()}else b instanceof
Error?_.nC(b):(y=new _.X0(JSON.stringify(b)),_.nC(y));H.onCancelTap()}H.showPopup()};
m.onerror=function(){var y;_.q3(H.hostElement,"yt-image-selection-error-action",[(y=H.data)==null?void 0:y.genericImageLoadErrorMessage]);H.onCancelTap()};
return W.yield(ENp(H.imageEditorCanvas,M),2)}H.imageEditor=W.yieldResult;H.updatePositionOfAllCorners();H.addEventListeners(H.imageEditor);_.oT(W)})},!1);
w.readAsDataURL(C);_.xB(Y,0);break;case 2:A=_.Vx(Y),A instanceof tu?_.q3(H.hostElement,"yt-image-selection-error-action",[(J=H.data)==null?void 0:J.imageSizeErrorMessage]):(A instanceof Error?_.nC(A):_.rv(new _.X0(JSON.stringify(A))),_.q3(H.hostElement,"yt-image-selection-error-action",[(c=H.data)==null?void 0:c.genericImageLoadErrorMessage])),H.onCancelTap(),_.oT(Y)}})};
_.F.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var H=_.vI(_.lJ(),{veType:232707,visualElement:_.y4(232707)});H&&(H={visualElement:H},_.f7().reportShown(H))}};
_.F.handleImageSelectionErrorAction=function(H){this.isPlaylistThumbnail&&_.UPZ(this.hostElement,H)};
_.F.convertToImageFormatBundle=function(H){var C=this,S,w,A;return _.z(function(J){switch(J.nextAddress){case 1:return S=H.toDataURL(C.outputMimeType,1),J.yield(ReR(S),2);case 2:w=J.yieldResult;_.en(J,3);m43(C.imageChecker,w);_.xB(J,4);break;case 3:A=_.Vx(J);if(!(A instanceof tu))throw A;_.Bn(new _.X0("Output size is bigger than input size for image",C.mimeType,C.outputMimeType,w.size));S=H.toDataURL("image/jpeg",.95);return J.yield(ReR(S),6);case 6:w=J.yieldResult;case 4:return J.return({dataUrl:S,
imageFile:w})}})};
_.F.handleUploadImageToScottyCommand=function(H){var C=this,S,w,A,J,c,Y,M,m,W,y;return _.z(function(N){switch(N.nextAddress){case 1:if(!C.imageEditor||!_.e(H,Wwq))return N.return();S=_.e(H,Wwq).scottyUploadUrl;if(!S){var b=new _.X0("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.nC(b);return N.return()}_.en(N,2);C.setLoadingState();w=C.imageEditor.crop(!1,!1);return N.yield(C.convertToImageFormatBundle(w),4);case 4:return A=N.yieldResult,N.yield(L3p(A.imageFile,S),5);
case 5:J=N.yieldResult;((c=C.data)==null?0:c.onUploadEndpoint)?(Y=C.buildUploadServiceEndpoint(J),C.ytComponentBehavior.resolveCommand(Y),M=_.e(Y,_.Jd),((m=M)==null?0:m.params)?C.closePopup():C.resetFileSelector()):(_.q3(C.hostElement,"yt-image-updated-action",[A.dataUrl,J]),C.closePopup());_.xB(N,0);break;case 2:W=_.Vx(N),C.setErrorState((y=C.data)==null?void 0:y.uploadErrorMessage),W instanceof Error?_.nC(W):(b=new _.X0(JSON.stringify(W)),_.nC(b)),_.oT(N)}})};
_.F.buildUploadServiceEndpoint=function(H){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",H),this.data.onUploadEndpoint):null};
_.F.dataChanged=function(){var H=this,C;return _.z(function(S){if(S.nextAddress==1){if(!H.data||!H.canvasElement)return S.return();H.data.imageRatio&&H.data.minImageCropWidth||_.rv(new _.X0("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));C=function(w,A){return H.data.imageType==="IMAGE_TYPE_AVATAR"?new D49(w,A,H.data.imageRatio,[H.data.minImageCropWidth,H.data.minImageCropWidth/H.data.imageRatio],H.hostElement):new La(w,A,H.data.imageRatio,[H.data.minImageCropWidth,
H.data.minImageCropWidth/H.data.imageRatio],void 0,H.hostElement,8,!1)};
H.imageEditorCanvas=new WoR(H.canvasElement,C);return H.data.url?S.yield(ENp(H.imageEditorCanvas,H.data.url),3):(H.hideContainer=!0,H.openFileSelector(),S.jumpTo(0))}H.imageEditor=S.yieldResult;H.showPopup();H.addEventListeners(H.imageEditor);_.oT(S)})};
_.F.addEventListeners=function(H){this.removeEventListeners();var C=function(A){y2K(H,A)};
this.JSC$20860_mouseDownEvent=C;var S=function(A){NYt(H,A)};
this.JSC$20860_mouseMoveEvent=S;var w=function(){by3(H)};
this.JSC$20860_mouseUpEvent=w;this.topLeftCorner.addEventListener("mousedown",C);this.topLeftCorner.addEventListener("mousemove",S);this.topLeftCorner.addEventListener("mouseup",w);this.topRightCorner.addEventListener("mousedown",C);this.topRightCorner.addEventListener("mousemove",S);this.topRightCorner.addEventListener("mouseup",w);this.bottomLeftCorner.addEventListener("mousedown",C);this.bottomLeftCorner.addEventListener("mousemove",S);this.bottomLeftCorner.addEventListener("mouseup",w);this.bottomRightCorner.addEventListener("mousedown",
C);this.bottomRightCorner.addEventListener("mousemove",S);this.bottomRightCorner.addEventListener("mouseup",w)};
_.F.removeEventListeners=function(){this.JSC$20860_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$20860_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$20860_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$20860_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$20860_mouseDownEvent));this.JSC$20860_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$20860_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$20860_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$20860_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$20860_mouseMoveEvent));this.JSC$20860_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$20860_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$20860_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$20860_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$20860_mouseUpEvent))};
_.F.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var H=document.activeElement;H&&H.shadowRoot&&H.shadowRoot.activeElement;)H=H.shadowRoot.activeElement;switch(H){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};
_.F.updatePositionOfCorner=function(H,C){var S=H.y-C.offsetHeight/2+4;C.style.left=H.x-C.offsetWidth/2+16+"px";C.style.top=S+"px"};
_.F.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var H=_.Z([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),C=H.next();!C.done;C=H.next()){C=C.value;var S=fWi(this.imageEditor,C.corner);this.updatePositionOfCorner(S,C.div)}};
_.F.onLeft=function(H){this.imageEditor&&this.setFocusInImageEditor()&&(lWr(this.imageEditor,0),this.updatePositionOfAllCorners(),H.preventDefault())};
_.F.onRight=function(H){this.imageEditor&&this.setFocusInImageEditor()&&(lWr(this.imageEditor,1),this.updatePositionOfAllCorners(),H.preventDefault())};
_.F.onUp=function(H){this.imageEditor&&this.setFocusInImageEditor()&&(lWr(this.imageEditor,2),this.updatePositionOfAllCorners(),H.preventDefault())};
_.F.onDown=function(H){this.imageEditor&&this.setFocusInImageEditor()&&(lWr(this.imageEditor,3),this.updatePositionOfAllCorners(),H.preventDefault())};
_.F.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.JJ.Object.defineProperties(gN.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&tzr.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var H,C,S;((C=this.data)==null?0:C.imageRatio)&&((S=this.data)==null?0:S.minImageCropWidth)?H={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:H=Koo;return new TY9(H)}}});
gN.prototype.updatePositionOfAllCorners=gN.prototype.updatePositionOfAllCorners;gN.prototype.dataChanged=gN.prototype.dataChanged;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],gN.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],gN.prototype,"ytComponentBehavior",void 0);_.D([_.v(_.rA),_.K("design:type",Object)],gN.prototype,"ironA11yKeysBehavior",void 0);
_.D([_.lA("#canvas"),_.K("design:type",HTMLCanvasElement)],gN.prototype,"canvasElement",void 0);_.D([_.lA("#file-selector"),_.K("design:type",HTMLInputElement)],gN.prototype,"fileSelector",void 0);_.D([_.lA("#top-left-corner"),_.K("design:type",HTMLDivElement)],gN.prototype,"topLeftCorner",void 0);_.D([_.lA("#top-right-corner"),_.K("design:type",HTMLDivElement)],gN.prototype,"topRightCorner",void 0);
_.D([_.lA("#bottom-left-corner"),_.K("design:type",HTMLDivElement)],gN.prototype,"bottomLeftCorner",void 0);_.D([_.lA("#bottom-right-corner"),_.K("design:type",HTMLDivElement)],gN.prototype,"bottomRightCorner",void 0);_.D([_.V(),_.K("design:type",Object)],gN.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],gN.prototype,"errorMessage",void 0);_.D([_.V(),_.K("design:type",Object)],gN.prototype,"isLoading",void 0);_.D([_.V(),_.K("design:type",Object)],gN.prototype,"hideContainer",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.K("design:type",Boolean)],gN.prototype,"isPlaylistThumbnail",void 0);_.D([_.XJ("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype",Promise)],gN.prototype,"dataChanged",null);_.D([_.Gz("image-updated"),_.Gz("yt-refit"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],gN.prototype,"updatePositionOfAllCorners",null);
_.D([_.Lx({is:"yt-image-editor-renderer",disableElementRegistration:!0})],gN);
_.B(gN,"yt-image-editor-renderer",function(){if(Mz9===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;zG3===void 0&&(zG3=document.createElement("template"));var w=zG3;S.call(C,w.content.cloneNode(!0),H.content.firstChild);Mz9=H}H=Mz9;return H},{mode:2});var Loj;var gNi;var Ui=function(){return _.X.apply(this,arguments)||this};
_.G(Ui,_.X);Ui.prototype.updateMinutesFromBinding=function(H){this.handleMinutesChanged&&this.handleMinutesChanged(H)};
Ui.prototype.updateSecondsFromBinding=function(H){this.handleSecondsChanged&&this.handleSecondsChanged(H)};
Ui.prototype.updateDescriptionFromBinding=function(H){this.handleDescriptionChanged&&this.handleDescriptionChanged(H)};
_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Ui.prototype,"ytComponentBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Ui.prototype,"data",void 0);_.D([_.V(),_.K("design:type",String)],Ui.prototype,"minutes",void 0);_.D([_.V(),_.K("design:type",String)],Ui.prototype,"seconds",void 0);_.D([_.V(),_.K("design:type",String)],Ui.prototype,"description",void 0);_.D([_.V(),_.K("design:type",Function)],Ui.prototype,"handleMinutesChanged",void 0);
_.D([_.V(),_.K("design:type",Function)],Ui.prototype,"handleSecondsChanged",void 0);_.D([_.V(),_.K("design:type",Function)],Ui.prototype,"handleDescriptionChanged",void 0);_.D([_.V(),_.K("design:type",Number)],Ui.prototype,"characterLimit",void 0);_.D([_.V(),_.K("design:type",Number)],Ui.prototype,"textNumRows",void 0);_.D([_.Lx({is:"yt-report-details-form-content",disableElementRegistration:!0})],Ui);
_.B(Ui,"yt-report-details-form-content",function(){if(gNi===void 0){var H=document.createElement("template");_.f(H,'\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>');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;Loj===void 0&&(Loj=document.createElement("template"));var w=Loj;S.call(C,w.content.cloneNode(!0),H.content.firstChild);gNi=H}H=gNi;return H},{mode:2});var U4p;var RGo;var RH=function(){var H=_.X.apply(this,arguments)||this;H.updateMinutesFromBinding=function(C){H.minutes=C.detail.value};
H.updateSecondsFromBinding=function(C){H.seconds=C.detail.value};
H.updateDescriptionFromBinding=function(C){H.description=C.detail.value};
return H};
_.G(RH,_.X);_.F=RH.prototype;_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.F.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"}}}};
_.F.ready=function(){_.mY(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.F.onSubmitYtAction=function(H){var C=H.detail;C.actionName==="yt-service-request"&&(C=C.args[1],C.flagEndpoint&&(H.stopPropagation(),this.refireAction(C)))};
_.F.refireAction=function(H){var C={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(C.vss_id=this.vssId);_.WH(this.hostElement,[H,C]);this.submitDisabled=!0};
_.F.dataChanged=function(){var H=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var C=_.Zz();C&&C.getPlayerPromise().then(function(S){var w=S.getOption("cc","track")||S.getOption("captions","track");w&&(H.vssId=w.vss_id);S=S.getCurrentTime();H.minutes=Math.floor(S/60).toString();H.seconds=(Math.floor(S)%60).toString()})};
_.F.updateSubmitButtonState=function(){var H;((H=this.data)==null?0:H.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==="")};
_.F.onYtServiceRequestCompleted=function(){_.q3(this.hostElement,"yt-close-popup-action")};
_.F.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.JJ.Object.defineProperties(RH.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var H;return((H=this.data)==null?void 0:H.textNumRows)||4}}});
RH.prototype.onYtServiceRequestError=RH.prototype.onYtServiceRequestError;RH.prototype.onYtServiceRequestCompleted=RH.prototype.onYtServiceRequestCompleted;RH.prototype.updateSubmitButtonState=RH.prototype.updateSubmitButtonState;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],RH.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],RH.prototype,"ytRendererBehavior",void 0);
_.D([_.V({observer:"dataChanged"}),_.K("design:type",Object)],RH.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Boolean)],RH.prototype,"submitDisabled",void 0);_.D([_.V(),_.K("design:type",String)],RH.prototype,"minutes",void 0);_.D([_.V(),_.K("design:type",String)],RH.prototype,"seconds",void 0);_.D([_.V(),_.K("design:type",String)],RH.prototype,"description",void 0);_.D([_.V(),_.K("design:type",String)],RH.prototype,"vssId",void 0);
_.D([_.V({value:_.rh("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.K("design:type",Boolean)],RH.prototype,"isMusic",void 0);_.D([_.l("data"),_.K("design:type",Number),_.K("design:paramtypes",[])],RH.prototype,"characterLimit",null);_.D([_.l("data"),_.K("design:type",Number),_.K("design:paramtypes",[])],RH.prototype,"textNumRows",null);
_.D([_.XJ("minutes","seconds","description","submitDisabled"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],RH.prototype,"updateSubmitButtonState",null);_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],RH.prototype,"onYtServiceRequestCompleted",null);
_.D([_.Gz("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],RH.prototype,"onYtServiceRequestError",null);_.D([_.Lx({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],RH);
_.B(RH,"yt-report-details-form-renderer",function(){if(RGo===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;U4p===void 0&&(U4p=document.createElement("template"));var w=U4p;S.call(C,w.content.cloneNode(!0),H.content.firstChild);RGo=H}H=RGo;return H});var IWq;var aWi;var x4O;var HB_;var IH=function(){return _.X.apply(this,arguments)||this};
_.G(IH,_.X);
IH.prototype.onCheckedChanged_=function(){if(this.data){var H=_.mY(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.q3(this.hostElement,"yt-additional-detail-checkbox-update",[H]):this.data.identifier==="yt-hide-user-checkbox"?_.q3(this.hostElement,"yt-hide-user-checkbox-update",[H]):H&&this.data.enableCommand?_.q3(this.hostElement,"yt-modify-report-form-command",[_.e(this.data.enableCommand,Gh9)]):!H&&this.data.disableCommand&&_.q3(this.hostElement,
"yt-modify-report-form-command",[_.e(this.data.enableCommand,Gh9)])}};
IH.prototype.onLabelTap_=function(H){H.target.tagName!="A"&&(_.mY(this.hostElement).querySelector("#checkbox").checked=!_.mY(this.hostElement).querySelector("#checkbox").checked)};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],IH.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],IH.prototype,"data",void 0);_.D([_.Lx({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],IH);
_.B(IH,"yt-boolean-form-field-v2-renderer",function(){if(HB_===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;x4O===void 0&&(x4O=document.createElement("template"));var w=x4O;S.call(C,w.content.cloneNode(!0),H.content.firstChild);HB_=H}H=HB_;return H});var aH=function(){var H=_.X.apply(this,arguments)||this;H.canShowAdditionalDetailCheckbox=!1;H.canShowCheckbox=!1;H.keepDropdownFocusedAfterSelection=!0;return H};
_.G(aH,_.X);aH.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}}}}};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],aH.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],aH.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],aH.prototype,"canShowAdditionalDetailCheckbox",void 0);_.D([_.V(),_.K("design:type",Object)],aH.prototype,"canShowCheckbox",void 0);_.D([_.V(),_.K("design:type",Object)],aH.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.D([_.Lx({is:"yt-report-form-modal-content",disableElementRegistration:!0})],aH);
_.B(aH,"yt-report-form-modal-content",function(){if(aWi===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;IWq===void 0&&(IWq=document.createElement("template"));var w=IWq;S.call(C,w.content.cloneNode(!0),H.content.firstChild);aWi=H}H=aWi;return H},{mode:2});var iBj;var CSO;var xG=function(){var H=_.X.apply(this,arguments)||this;H.submitting=!1;H.submitButtonDisabled=!0;H.command=null;H.canShowCheckbox=!1;H.canShowAdditionalDetailCheckbox=!1;H.canShowNextButton=!1;H.additionalDetailCheckboxChecked=!1;H.refitJob=0;H.keepDropdownFocusedAfterSelection=!0;H.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 H};
_.G(xG,_.X);_.F=xG.prototype;_.F.created=function(){this.refitJob=0};
_.F.attached=function(){this.JSC$20883_scroller&&(this.JSC$20883_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20883_scroller.attached&&typeof this.JSC$20883_scroller.attached==="function"&&this.JSC$20883_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.dataChanged=function(H){H&&(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,H.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),H.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.F.onYtPopupOpened=function(){var H=_.Zz();H&&H.getPlayerPromise().then(function(C){C.pauseVideo()})};
_.F.onYtNavigate=function(H){_.e(H.detail.endpoint,_.BL7)&&(H.stopPropagation(),this.hideReportForm=!0)};
_.F.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.F.onYtServiceRequestCompleted=function(H,C){var S=C.actions;if(S){if(S.length===1&&_.e(S[0],_.b9)){var w;S=((w=_.e(S[0],_.b9))==null?void 0:w.commands)||[]}w=0;for(var A=S.length;w<A;w++)_.e(S[w],_.Uy)&&(H.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(S[w]))}if(C.data&&(H=this.get("feedbackResponses",C.data)))for(C=0;C<H.length;C++)if(H[C].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.F.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.F._onDescendantIronResize=function(H){H.stopPropagation();return!1};
_.F.handleReportFormEndpointUpdateAction=function(H){if(H.submitEndpoint){var C=this.command=H.submitEndpoint;C=_.e(C,_.nUn);if(C==null?0:C.additionalDetailCheckboxChecked)C.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else H.submitNavigationEndpoint?(this.command=H.submitNavigationEndpoint,this.toggleSubmitButton(!1)):H.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:H.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;H.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",H));this.refit()};
_.F.handleConfirmDialogCloseAction=function(H){H.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.F.submitButtonDisabledChanged=function(){var H=this.hostElement.parentElement;H&&H.invalidateTabbables&&H.invalidateTabbables()};
_.F.handleModifyReportFormCommand=function(H){H=this.get("action",H);H==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:H==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:H==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:H==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:H==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:H==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.F.updateDialogStyling=function(){var H,C,S,w,A,J=((A=(H=this.data)==null?void 0:(C=H.optionsSupportedRenderers)==null?void 0:(S=C.optionsRenderer)==null?void 0:(w=S.items)==null?void 0:w.length)!=null?A:0)<=2?0:240;_.Ed(this.hostElement,{"--yt-report-form-modal-renderer-min-width":J+"px"})};
_.F.toggleSubmitButton=function(H){this.submitButtonDisabled=!H;this.submitButtonDisabled=H};
_.F.computeSubmitButtonData=function(H,C){var S={};_.e(C,_.BL7)?S.navigationEndpoint=C:S.command=C||void 0;H&&H.buttonRenderer&&_.hb.extend(S,H.buttonRenderer);return S};
_.F.computeNextButtonData=function(H,C){var S={};if(!H||!H.buttonRenderer)return S;_.hb.extend(S,H.buttonRenderer);if(!C)return S;if(_.e(C,_.BL7))S.navigationEndpoint=UyK(C);else if(S.command=UyK(C),H=_.e(S.command,_.nUn))H.legalCheckboxChecked=!0;return S};
_.F.computeShowNextButton=function(H,C,S){return!!H&&C&&S};
_.F.refit=function(){var H=this;this.refitJob||(this.refitJob=_.rT.addLowPriorityJob(function(){_.M3(H.hostElement,"yt-refit");H.refitJob=0}))};
_.F.handleAdditionalDetailCheckboxUpdateAction=function(H){this.additionalDetailCheckboxChecked=H;_.e(this.command,_.nUn).additionalDetailCheckboxChecked=H};
_.JJ.Object.defineProperties(xG,{template:{configurable:!0,enumerable:!0,get:function(){if(CSO===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;iBj===void 0&&(iBj=document.createElement("template"));var w=iBj;S.call(C,w.content.cloneNode(!0),H.content.firstChild);CSO=H}H=CSO;return H}}});
xG.prototype.onYtServiceRequestError=xG.prototype.onYtServiceRequestError;xG.prototype.onYtServiceRequestCompleted=xG.prototype.onYtServiceRequestCompleted;xG.prototype.onYtServiceRequestSent=xG.prototype.onYtServiceRequestSent;xG.prototype.onYtNavigate=xG.prototype.onYtNavigate;xG.prototype.onYtPopupOpened=xG.prototype.onYtPopupOpened;_.D([_.v(_.Kw.YtOpenPopupBehavior),_.K("design:type",Object)],xG.prototype,"openPopupBehavior",void 0);
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],xG.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],xG.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.ie.YtEventForwardingBehavior),_.K("design:type",Object)],xG.prototype,"eventForwardingBehavior",void 0);_.D([_.v(_.Ix),_.K("design:type",Object)],xG.prototype,"ironResizableBehavior",void 0);_.D([_.V({observer:"dataChanged"}),_.K("design:type",Object)],xG.prototype,"data",void 0);
_.D([_.V(),_.K("design:type",Object)],xG.prototype,"submitting",void 0);_.D([_.V({observer:"submitButtonDisabledChanged"}),_.K("design:type",Object)],xG.prototype,"submitButtonDisabled",void 0);_.D([_.V(),_.K("design:type",Object)],xG.prototype,"command",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],xG.prototype,"hideReportForm",void 0);_.D([_.V(),_.K("design:type",Object)],xG.prototype,"canShowCheckbox",void 0);
_.D([_.V(),_.K("design:type",Object)],xG.prototype,"canShowAdditionalDetailCheckbox",void 0);_.D([_.V(),_.K("design:type",Object)],xG.prototype,"canShowNextButton",void 0);_.D([_.V(),_.K("design:type",Object)],xG.prototype,"additionalDetailCheckboxChecked",void 0);_.D([_.V(),_.K("design:type",Object)],xG.prototype,"refitJob",void 0);_.D([_.V(),_.K("design:type",Object)],xG.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.D([_.lA("#scroller"),_.K("design:type",Object)],xG.prototype,"JSC$20883_scroller",void 0);_.D([_.Gz("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xG.prototype,"onYtPopupOpened",null);_.D([_.Gz("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],xG.prototype,"onYtNavigate",null);
_.D([_.Gz("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.IW]),_.K("design:returntype")],xG.prototype,"onYtServiceRequestSent",null);_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.j4]),_.K("design:returntype")],xG.prototype,"onYtServiceRequestCompleted",null);
_.D([_.Gz("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],xG.prototype,"onYtServiceRequestError",null);_.D([_.Lx({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],xG);var S0_;var s3r;var HD=function(){return _.X.apply(this,arguments)||this};
_.G(HD,_.X);_.F=HD.prototype;_.F.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.F.onVisible=function(){var H,C;(C=_.JA().resolve(_.AA(_.jX)))==null||C.enqueue({label:_.jt((H=this.data)==null?void 0:H.messageTitle),elementToFocus:this.hostElement})};
_.F.onThumbnailLoaded=function(){_.M3(this.hostElement,"yt-refit")};
_.F.onDismissTap=function(){_.q3(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.F.computeAlternateIcon=function(H){return H?H==="BACKSTAGE_ARTWORK"?"backstage:artwork":H:null};
_.F.computeFontFamily=function(H){return H==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.F.computeBackgroundStyle=function(H,C){if(H=this.computeBackgroundImage(H,C))if(H=_.m3(H.thumbnails))return'background-image: url("'+H+'");'};
_.F.computeHasFullHeightImage=function(H){return!(!(H&&H.thumbnails&&H.thumbnails.length>0)||this.modern)};
_.F.isModernStyle=function(H){return H.style==="STYLE_MODERN"};
_.F.computeIcon=function(H,C){if(H&&H.icon)return C?H.iconDark:H.icon};
_.F.computeBackgroundImage=function(H,C){if(H&&H.backgroundImage)return C?H.backgroundImageDark:H.backgroundImage};
_.F.computeLogo=function(H,C){if(H&&H.logo)return C?H.logoDark:H.logo};
_.F.computeShouldShowModernIcon=function(H,C){return H&&!!C};
_.F.getLogoContainerClassName=function(H){return this.logoWithPadding(H)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.F.getLogoImageId=function(H){return this.logoWithPadding(H)?"mealbar-logo-with-padding":"mealbar-logo"};
_.F.logoWithPadding=function(H){var C,S,w;return(H=(C=this.computeLogo(H,this.isDarkTheme))==null?void 0:(S=C.thumbnails)==null?void 0:(w=S[0])==null?void 0:w.height)&&H%31===0?!0:!1};
HD.prototype.onThumbnailLoaded=HD.prototype.onThumbnailLoaded;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],HD.prototype,"ytRendererBehavior",void 0);_.D([_.V({}),_.K("design:type",Object)],HD.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.K("design:type",Boolean)],HD.prototype,"modern",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],HD.prototype,"isDarkTheme",void 0);
_.D([_.V({computed:"computeIcon(data, isDarkTheme)"}),_.K("design:type",Object)],HD.prototype,"icon",void 0);_.D([_.V({computed:"computeLogo(data, isDarkTheme)"}),_.K("design:type",Object)],HD.prototype,"logo",void 0);_.D([_.V({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.K("design:type",Object)],HD.prototype,"backgroundStyle",void 0);_.D([_.V({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.K("design:type",Object)],HD.prototype,"alternateIcon",void 0);
_.D([_.V({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.K("design:type",Boolean)],HD.prototype,"hasFullHeightImage",void 0);_.D([_.V({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.K("design:type",Boolean)],HD.prototype,"useYoutubeSans",void 0);_.D([_.V({computed:"computeShouldShowModernIcon(modern, icon)"}),_.K("design:type",Boolean)],HD.prototype,"shouldShowModernIcon",void 0);
_.D([_.Gz("yt-img-shadow-loaded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],HD.prototype,"onThumbnailLoaded",null);_.D([_.Lx({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],HD);
_.B(HD,"yt-mealbar-promo-renderer",function(){if(s3r===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;S0_===void 0&&(S0_=document.createElement("template"));var w=S0_;S.call(C,w.content.cloneNode(!0),H.content.firstChild);s3r=H}H=s3r;return H},{mode:2});var j3i;var wO3;var iL=function(){return _.X.apply(this,arguments)||this};
_.G(iL,_.X);_.F=iL.prototype;_.F.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]]"}}}}}};
_.F.computeHasButtons_=function(H){return!(!H.dismissButton&&!H.acceptButton)};
_.F.computeStyle_=function(H){return H||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.F.observeImpressionEndpoints_=function(){var H=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(C){C.clickTrackingParams&&delete C.clickTrackingParams;_.WH(H.hostElement,[C])})};
_.F.onTap_=function(){_.q3(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
iL.prototype.observeImpressionEndpoints_=iL.prototype.observeImpressionEndpoints_;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],iL.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.ie.YtEventForwardingBehavior),_.K("design:type",Object)],iL.prototype,"ytEventForwardingBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],iL.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],iL.prototype,"data",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],iL.prototype,"positionType",void 0);_.D([_.V({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.K("design:type",Boolean)],iL.prototype,"hasButtons_",void 0);_.D([_.V({value:function(){return this.onTap_.bind(this)}}),
_.K("design:type",Function)],iL.prototype,"boundOnTap_",void 0);_.D([_.V({value:{style:"mono-inverse"}}),_.K("design:type",Object)],iL.prototype,"buttonOverride",void 0);_.D([_.fx("data.promoConfig.impressionEndpoints"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],iL.prototype,"observeImpressionEndpoints_",null);_.D([_.Lx({is:"yt-tooltip-renderer",disableElementRegistration:!0})],iL);
_.B(iL,"yt-tooltip-renderer",function(){if(wO3===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;j3i===void 0&&(j3i=document.createElement("template"));var w=j3i;S.call(C,w.content.cloneNode(!0),H.content.firstChild);wO3=H}H=wO3;return H},{mode:2});var Aso;var JsO;var FsR={},ZBO=(FsR.WEB_REMIX="music.youtube.com",FsR),C2=function(){var H=_.X.apply(this,arguments)||this;H.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return H};
_.G(C2,_.X);_.F=C2.prototype;_.F.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.created=function(){this.embedHost_=ZBO[_.rh("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.F.ready=function(){_.mY(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.F.computeEmbedCode_=function(H,C,S,w,A){if(!H)return"";var J=H.videoId,c=H.fullListId,Y=[];H.attributionId&&Y.push("si="+H.attributionId);w||Y.push("controls=0");S&&Number(C)>0&&Y.push("start="+C);c&&(J="videoseries",Y.push("list="+c));S="https://"+(A?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+J;H.clipId&&(Y.push("clip="+H.clipId),Y.push("clipt="+H.clipTiming));C=Y.length>0?S+"?"+Y.join("&amp;"):S;H.encryptedEmbedConfig&&Y.push("embed_config="+JSON.stringify({enc:H.encryptedEmbedConfig}));
Y=Y.length>0?S+"?"+Y.join("&amp;"):S;_.E("web_sharing_embed_preview_killswitch")?_.mY(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(Y,H.previewWidth||854,H.previewHeight||480):(_.Ki(this.videoPreviewContainer),_.mY(this.videoPreviewContainer).appendChild(this.buildIframeElement(Y)));return this.getEmbedCode_(C,H.width||560,H.height||315)};
_.F.buildIframeElement=function(H){var C=document.createElement("iframe"),S,w;C.width=""+((w=(S=this.data)==null?void 0:S.previewWidth)!=null?w:854);var A,J;C.height=""+((J=(A=this.data)==null?void 0:A.previewHeight)!=null?J:480);_.YMi(C,2,H);C.title="YouTube video player";C.frameBorder="0";C.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";C.referrerPolicy="strict-origin-when-cross-origin";C.allowFullscreen=!0;return C};
_.F.computeIsSquareAspectRatio_=function(H){return H.previewHeight&&H.previewWidth?H.previewHeight==H.previewWidth:!1};
_.F.computeShowEmbedOptions_=function(H){return!!H.enablePrivacyModeOptionLabel||!!H.showPlayerControlsOptionLabel};
_.F.getEmbedCode_=function(H,C,S){return'<iframe width="'+C+'" height="'+S+'" src="'+H+'" 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>'};
_.F.handleSignalActionCopyShareEmbedUrl_=function(){_.mY(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.F.handleSetTimestamp_=function(H){this.startAtTimeStamp_=(this.startAtChecked_=H.isSet)?H.timestamp:0};
_.F.closePanel_=function(){_.q3(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.F.onEmbedCode_=function(){_.mY(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.F.onYtPopupClosed_=function(){_.Ki(_.mY(this.hostElement).querySelector("#video-preview"))};
_.F.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.e(this.data.actionButtons[0],_.cg)&&this.ytRendererBehavior.logExplicitClick(_.e(this.data.actionButtons[0],_.cg))};
C2.prototype.onYtPopupClosed_=C2.prototype.onYtPopupClosed_;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],C2.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],C2.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],C2.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],C2.prototype,"data",void 0);
_.D([_.V({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.K("design:type",String)],C2.prototype,"embedCode_",void 0);_.D([_.V({value:!0}),_.K("design:type",Boolean)],C2.prototype,"isPlayerControlsOptionChecked_",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],C2.prototype,"isPrivacyModeOptionChecked_",void 0);_.D([_.V({value:!1,notify:!0}),_.K("design:type",Boolean)],C2.prototype,"startAtChecked_",void 0);
_.D([_.V({value:0}),_.K("design:type",Number)],C2.prototype,"startAtTimeStamp_",void 0);_.D([_.V({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],C2.prototype,"isSquareAspectRatio_",void 0);_.D([_.lA("#video-preview"),_.K("design:type",HTMLElement)],C2.prototype,"videoPreviewContainer",void 0);_.D([_.Gz("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],C2.prototype,"onYtPopupClosed_",null);
_.D([_.Lx({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],C2);
_.B(C2,"yt-sharing-embed-renderer",function(){if(JsO===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;Aso===void 0&&(Aso=document.createElement("template"));var w=Aso;S.call(C,w.content.cloneNode(!0),H.content.firstChild);JsO=H}H=JsO;return H},{mode:2});var csi={};
csi.YtUnlimitedFamilyInterstitialBehavior=[_.Kw.YtOpenPopupBehavior,_.Lw.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(H){H=_.D9n(_.Jr(H),"yt-button-renderer");return H?H.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(H){this.dialogHistory_.push(H)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var H=this.popFromHistory();if(H){var C={openPopupAction:{popupType:"DIALOG",popup:{}}};C.openPopupAction.popup[H.renderer]=H.data;this.showingPreviousDialog_=!0;this.openPopup(C)}},
handleOpenPopupAction_:function(H){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var C=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(w){return!!H.openPopupAction.popup[w]}),S=this.getElementName_();
C&&this.data&&(this.pushToHistory({renderer:S,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(H){if(H=_.e(H,HT3))this.loading=!0,_.q3(this.hostElement,"yt-open-create-family-dialog",[H,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var H=this.hostElement.nodeName.split("-").slice(1).map(function(C){return""+C[0].toUpperCase()+C.slice(1).toLowerCase()}).join("");
return H[0].toLowerCase()+H.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var Y0o;var zPo;var Sy=function(){return _.X.apply(this,arguments)||this};
_.G(Sy,_.X);_.F=Sy.prototype;_.F.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}}}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.q3(this.hostElement,"yt-register-create-family-dialog");_.mY(this.hostElement).querySelector("#thumbnail").onShow()};
_.F.fireOnCloseCommand_=function(){var H;((H=this.data)==null?0:H.onCloseCommand)&&_.yN(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.F.onYtServiceRequestSent_=function(H,C){C&&C.endpoint&&_.e(C.endpoint,_.eR)||(this.loading=!0)};
_.F.onYtServiceRequestCompleted_=function(){var H=this.hostElement.parentElement;H.close&&H.close();this.loading=!1};
_.F.openPopupHandler_=function(H){if(H.detail==this){var C;((C=this.data)==null?0:C.onOpenCommands)&&_.yN(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.F.closePopupHandler_=function(H,C){this.fireOnCloseCommand_();if(C&&C.canceled===!0||C&&C.canceled===!1&&C.confirmed===!1){var S;((S=this.data)==null?0:S.onDismissCommands)&&_.yN(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.F.dataChanged_=function(){this.loading=!1};
Sy.prototype.dataChanged_=Sy.prototype.dataChanged_;Sy.prototype.closePopupHandler_=Sy.prototype.closePopupHandler_;Sy.prototype.openPopupHandler_=Sy.prototype.openPopupHandler_;Sy.prototype.onYtServiceRequestCompleted_=Sy.prototype.onYtServiceRequestCompleted_;Sy.prototype.onYtServiceRequestSent_=Sy.prototype.onYtServiceRequestSent_;_.D([_.v(_.ie.YtEventForwardingBehavior),_.K("design:type",Object)],Sy.prototype,"ytEventForwardingBehavior",void 0);
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Sy.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(csi.YtUnlimitedFamilyInterstitialBehavior),_.K("design:type",Object)],Sy.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Sy.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Sy.prototype,"data",void 0);
_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Sy.prototype,"loading",void 0);_.D([_.Gz("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.IW]),_.K("design:returntype")],Sy.prototype,"onYtServiceRequestSent_",null);_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.j4]),_.K("design:returntype")],Sy.prototype,"onYtServiceRequestCompleted_",null);
_.D([_.Gz("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],Sy.prototype,"openPopupHandler_",null);_.D([_.Gz("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],Sy.prototype,"closePopupHandler_",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Sy.prototype,"dataChanged_",null);
_.D([_.Lx({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],Sy);
_.B(Sy,"yt-unlimited-family-message-interstitial-renderer",function(){if(zPo===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;Y0o===void 0&&(Y0o=document.createElement("template"));var w=Y0o;S.call(C,w.content.cloneNode(!0),H.content.firstChild);zPo=H}H=zPo;return H},{mode:2});var MYi;var q0K;var s7=function(){return _.X.apply(this,arguments)||this};
_.G(s7,_.X);s7.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"}}}};
s7.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.mY(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(H){H.onShow()});
_.mY(this.hostElement).querySelector("#main-thumbnail").onShow()};
s7.prototype.onButtonTap_=function(H){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(H)};
s7.prototype.computeMainThumbnailWidth_=function(H){return H&&H.length!==0?72:96};
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],s7.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],s7.prototype,"ytRendererBehavior",void 0);_.D([_.v(csi.YtUnlimitedFamilyInterstitialBehavior),_.K("design:type",Object)],s7.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],s7.prototype,"data",void 0);
_.D([_.V({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.K("design:type",Number)],s7.prototype,"mainThumbnailWidth_",void 0);_.D([_.V({value:function(){return this.onButtonTap_.bind(this)}}),
_.K("design:type",Function)],s7.prototype,"boundButtonTap_",void 0);_.D([_.Lx({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],s7);
_.B(s7,"yt-unlimited-family-profile-interstitial-renderer",function(){if(q0K===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;MYi===void 0&&(MYi=document.createElement("template"));var w=MYi;S.call(C,w.content.cloneNode(!0),H.content.firstChild);q0K=H}H=q0K;return H},{mode:2});var T8R;var mG3;var jy=function(){var H=_.X.apply(this,arguments)||this;H.sliderAriaValueText_=null;H.selectedIndex_=0;H.messages={PAUSE_SLIDER:_.fL("PAUSE_SLIDER",void 0,"Pause Duration")};return H};
_.G(jy,_.X);_.F=jy.prototype;_.F.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_]]"}}}}}};
_.F.onPopupOpened_=function(H){H.detail==this&&_.E("enable_premium_voluntary_pause")&&(_.q3(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.setDialogData=function(H){this.data=H;this.resetSlider_()};
_.F.dataChanged_=function(){this.data&&this.resetSlider_()};
_.F.onSubmitTap_=function(){if(this.data.confirmCommand){var H=this.data.confirmCommand;_.e(H,_.PQU)&&_.WH(this.hostElement,[H,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.F.onExitButtonTap_=function(){_.q3(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.F.closePopupHandler_=function(H,C){(C&&C.canceled===!0||C.canceled===!1&&C.confirmed===!1)&&this.handleOnDismissCommands_()};
_.F.onSliderChange_=function(){this.selectedIndex_=_.mY(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.F.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.F.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.F.resetSlider_=function(){if(this.data){var H=this.data.defaultEndOptionIndex||0,C=_.mY(this.hostElement).querySelector("#id-pause-slider");if(C.immediateValue<H)for(;C.immediateValue!=H;)C.increment();else if(H<C.immediateValue)for(;C.immediateValue!=H;)C.decrement();this.selectedIndex_=H;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.F.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.yN(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.F.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.yN(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.F.onYtServiceRequestSent=function(){this.loading=!0};
_.F.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
jy.prototype.onYtServiceRequestCompleted=jy.prototype.onYtServiceRequestCompleted;jy.prototype.onYtServiceRequestSent=jy.prototype.onYtServiceRequestSent;jy.prototype.closePopupHandler_=jy.prototype.closePopupHandler_;jy.prototype.dataChanged_=jy.prototype.dataChanged_;jy.prototype.onPopupOpened_=jy.prototype.onPopupOpened_;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],jy.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],jy.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],jy.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],jy.prototype,"loading",void 0);_.D([_.V(),_.K("design:type",Number)],jy.prototype,"selectIndexMax_",void 0);_.D([_.V(),_.K("design:type",Object)],jy.prototype,"selectedData_",void 0);
_.D([_.V(),_.K("design:type",Object)],jy.prototype,"sliderAriaValueText_",void 0);_.D([_.V({value:function(){return this.onSubmitTap_.bind(this)}}),
_.K("design:type",Function)],jy.prototype,"onButtonTap_",void 0);_.D([_.V({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.K("design:type",Function)],jy.prototype,"onSecondaryTap_",void 0);_.D([_.V(),_.K("design:type",Object)],jy.prototype,"messages",void 0);_.D([_.Gz("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],jy.prototype,"onPopupOpened_",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],jy.prototype,"dataChanged_",null);
_.D([_.Gz("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],jy.prototype,"closePopupHandler_",null);_.D([_.Gz("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.IW]),_.K("design:returntype")],jy.prototype,"onYtServiceRequestSent",null);
_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.j4]),_.K("design:returntype")],jy.prototype,"onYtServiceRequestCompleted",null);_.D([_.Lx({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],jy);
_.B(jy,"yt-unplugged-pause-membership-dialog-renderer",function(){if(mG3===void 0){var H=document.createElement("template");_.f(H,'\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>');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;T8R===void 0&&(T8R=document.createElement("template"));var w=T8R;S.call(C,w.content.cloneNode(!0),H.content.firstChild);mG3=H}H=mG3;return H},{mode:2});var Wsj;var ysp;var wj=function(){return _.X.apply(this,arguments)||this};
_.G(wj,_.X);wj.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.nu("vcBalanceRenderer")}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],wj.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],wj.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],wj.prototype,"data",void 0);_.D([_.Lx({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],wj);
_.B(wj,"yt-vc-offer-layout-header-renderer",function(){if(ysp===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;Wsj===void 0&&(Wsj=document.createElement("template"));var w=Wsj;S.call(C,w.content.cloneNode(!0),H.content.firstChild);ysp=H}H=ysp;return H},{mode:2});var N83;var bBp;var EZO;var eP9;var A3=function(){return _.X.apply(this,arguments)||this};
_.G(A3,_.X);A3.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.JJ.Object.defineProperties(A3.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)}}});
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],A3.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],A3.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.TKn.YtTappableItemBehavior),_.K("design:type",Object)],A3.prototype,"ytTappableItemBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],A3.prototype,"data",void 0);
_.D([_.V({reflectToAttribute:!0}),_.l("data.accessibilityText"),_.K("design:type",String),_.K("design:paramtypes",[])],A3.prototype,"ariaLabel",null);_.D([_.V({reflectToAttribute:!0}),_.l("data.style"),_.K("design:type",String),_.K("design:paramtypes",[])],A3.prototype,"vcOfferStyle",null);_.D([_.l("data.style","data.titleText"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],A3.prototype,"showTitleText",null);_.D([_.Lx({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],A3);
_.B(A3,"yt-vc-offer-renderer",function(){if(eP9===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;EZO===void 0&&(EZO=document.createElement("template"));var w=EZO;S.call(C,w.content.cloneNode(!0),H.content.firstChild);eP9=H}H=eP9;return H},{mode:2});var J3=function(){return _.X.apply(this,arguments)||this};
_.G(J3,_.X);J3.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}}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],J3.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],J3.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],J3.prototype,"data",void 0);_.D([_.Lx({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],J3);
_.B(J3,"yt-vc-offer-layout-renderer",function(){if(bBp===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;N83===void 0&&(N83=document.createElement("template"));var w=N83;S.call(C,w.content.cloneNode(!0),H.content.firstChild);bBp=H}H=bBp;return H},{mode:2});var uIR;var GEt;var fHK;var vZi;var F4=function(){return _.X.apply(this,arguments)||this};
_.G(F4,_.X);F4.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}}}}}};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],F4.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],F4.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],F4.prototype,"data",void 0);_.D([_.Lx({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],F4);
_.B(F4,"yt-ypc-offers-modal-top-bar-renderer",function(){if(vZi===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;fHK===void 0&&(fHK=document.createElement("template"));var w=fHK;S.call(C,w.content.cloneNode(!0),H.content.firstChild);vZi=H}H=vZi;return H},{mode:2});var Zi=function(){return _.X.apply(this,arguments)||this};
_.G(Zi,_.X);Zi.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"}}}}};
Zi.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
Zi.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var H=this.scrollable;H.attached&&typeof H.attached==="function"&&H.attached()};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Zi.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Zi.prototype,"ytRendererstamperBehavior",void 0);_.D([_.lA("#scrollable"),_.K("design:type",Object)],Zi.prototype,"scrollable",void 0);_.D([_.V(),_.K("design:type",Object)],Zi.prototype,"data",void 0);_.D([_.Lx({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],Zi);
_.B(Zi,"yt-ypc-offers-modal-renderer",function(){if(GEt===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;uIR===void 0&&(uIR=document.createElement("template"));var w=uIR;S.call(C,w.content.cloneNode(!0),H.content.firstChild);GEt=H}H=GEt;return H},{mode:2});var lHR;var VYp;var cD=function(){return _.X.apply(this,arguments)||this};
_.G(cD,_.X);_.F=cD.prototype;_.F.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}}}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.mY(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.F.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.q3(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.F.onYtPopupOpened_=function(H,C){(C==null?void 0:C.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.yN(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.F.onYtPopupClosed_=function(H,C){this.continueButtonTapped||C&&(C.canceled===!0||C.canceled===!1&&C.confirmed===!1)&&this.data.onDismissCommands&&_.yN(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.F.onYtServiceRequestError_=function(H){this.set("showSpinner",!1);_.HQ(this.hostElement,H.detail.error.message)};
_.F.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.E("enable_ypc_spinners")?_.q3(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
cD.prototype.onYtServiceRequestError_=cD.prototype.onYtServiceRequestError_;cD.prototype.onYtPopupClosed_=cD.prototype.onYtPopupClosed_;cD.prototype.onYtPopupOpened_=cD.prototype.onYtPopupOpened_;cD.prototype.onYtServiceRequestCompleted_=cD.prototype.onYtServiceRequestCompleted_;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],cD.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],cD.prototype,"ytRendererstamperBehavior",void 0);
_.D([_.V(),_.K("design:type",Object)],cD.prototype,"data",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],cD.prototype,"showSpinner",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],cD.prototype,"continueButtonTapped",void 0);_.D([_.V({value:function(){return this.onContinueTapped_.bind(this)}}),
_.K("design:type",Function)],cD.prototype,"bindOnContinueTapped_",void 0);_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],cD.prototype,"onYtServiceRequestCompleted_",null);_.D([_.Gz("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],cD.prototype,"onYtPopupOpened_",null);
_.D([_.Gz("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],cD.prototype,"onYtPopupClosed_",null);_.D([_.Gz("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],cD.prototype,"onYtServiceRequestError_",null);_.D([_.Lx({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],cD);
_.B(cD,"yt-ypc-upgrade-dialog-renderer",function(){if(VYp===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;lHR===void 0&&(lHR=document.createElement("template"));var w=lHR;S.call(C,w.content.cloneNode(!0),H.content.firstChild);VYp=H}H=VYp;return H},{mode:2});var oZR;var OBi;var Y8=function(){return _.X.apply(this,arguments)||this};
_.G(Y8,_.X);Y8.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Y8.prototype.computeHasButtons_=function(H){return!(!H.dismissButton&&!H.confirmButton)};
Y8.prototype.computeStyle_=function(H){return H||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Y8.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.ie.YtEventForwardingBehavior),_.K("design:type",Object)],Y8.prototype,"ytEventForwardingBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],Y8.prototype,"ytRendererstamperBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Y8.prototype,"data",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],Y8.prototype,"positionType",void 0);
_.D([_.V({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.K("design:type",Boolean)],Y8.prototype,"hasButtons_",void 0);_.D([_.V({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Y8.prototype,"style_",void 0);_.D([_.Lx({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],Y8);
_.B(Y8,"yt-bubble-hint-renderer",function(){if(OBi===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;oZR===void 0&&(oZR=document.createElement("template"));var w=oZR;S.call(C,w.content.cloneNode(!0),H.content.firstChild);OBi=H}H=OBi;return H},{mode:2});var XOK;var Q3q;var zS=function(){var H=_.Fj.apply(this,arguments)||this;H.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return H};
_.G(zS,_.Fj);_.F=zS.prototype;_.F.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.F.attached=function(){var H=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){H.$.thumbnail.onShow();H.$["header-image"].onShow()})};
_.F.handleCheckBoxUpdateAction_=function(H){this.canShowCheckboxEnabledConfirmButton=H};
_.F.computeUseOverlayForSpinner_=function(H,C){return!!H&&C};
_.F.computeShowSpinner_=function(H,C){return H||!!C};
_.F.fireOnCloseActions_=function(){var H,C=_.Z(((H=this.data)==null?void 0:H.onClosedActions)||[]);for(H=C.next();!H.done;H=C.next())this.ytRendererBehavior.resolveCommand(H.value)};
_.F.fireOnOpenCommands_=function(H){var C,S=(C=this.data)==null?void 0:C.onOpenCommands;if(S)for(H.stopImmediatePropagation(),H=_.Z(S),C=H.next();!C.done;C=H.next())this.ytRendererBehavior.resolveCommand(C.value)};
_.F.fireOnDismissCommands_=function(H){var C,S=(C=this.data)==null?void 0:C.onDismissCommands;if(S)for(H.stopImmediatePropagation(),H=_.Z(S),C=H.next();!C.done;C=H.next())this.ytRendererBehavior.resolveCommand(C.value)};
_.F.openPopupHandler_=function(H){H.detail==this&&this.fireOnOpenCommands_(H)};
_.F.closePopupHandler_=function(H,C){_.m7(this,"yt-confirm-dialog-close-action",[C]);this.fireOnCloseActions_();(C&&C.canceled===!0||C&&C.canceled===!1&&C.confirmed===!1)&&this.fireOnDismissCommands_(H)};
_.F.onHeaderImageChanged_=function(){var H;((H=this.data)==null?0:H.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.F.computeHasHeaderImageWidth_=function(H){return H!=void 0};
_.F.computeHasLoadingMessage=function(H){return!!H};
_.F.onHeaderImageWidthChanged_=function(){var H,C=(H=this.data)==null?void 0:H.headerImageWidth;if(C){if(H=1.25*C*2+C,this.$.main.style.width=H+"px",C=this.$.scroller.firstElementChild)C.style.minWidth=H+"px"}else this.$.main.style.width="100%"};
_.F.onThumbnailChanged_=function(){var H;((H=this.data)==null?0:H.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")};
_.F.onYtNavigate_=function(H){H=_.Jr(H);H instanceof Node&&_.WY(this.$["confirm-button"]).contains(H)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.F.computePrimaryIsCancel_=function(H){return H};
_.F.computeIsCancelButtonHidden_=function(H){return H.skipCancelButton||!H.cancelButton};
_.F.computeIsCheckboxHidden_=function(H){return!H.checkbox};
_.F.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.F.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.F.onYtServiceRequestCompleted_=function(){var H;((H=this.data)==null?0:H.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.JJ.Object.defineProperties(zS,{template:{configurable:!0,enumerable:!0,get:function(){if(Q3q===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;XOK===void 0&&(XOK=document.createElement("template"));var w=XOK;S.call(C,w.content.cloneNode(!0),H.content.firstChild);Q3q=H}H=Q3q;return H}}});
zS.prototype.onYtServiceRequestCompleted_=zS.prototype.onYtServiceRequestCompleted_;zS.prototype.onYtServiceRequestSent_=zS.prototype.onYtServiceRequestSent_;zS.prototype.onThumbnailLoaded_=zS.prototype.onThumbnailLoaded_;zS.prototype.onYtNavigate_=zS.prototype.onYtNavigate_;zS.prototype.onThumbnailChanged_=zS.prototype.onThumbnailChanged_;zS.prototype.onHeaderImageWidthChanged_=zS.prototype.onHeaderImageWidthChanged_;zS.prototype.onHeaderImageChanged_=zS.prototype.onHeaderImageChanged_;
zS.prototype.closePopupHandler_=zS.prototype.closePopupHandler_;zS.prototype.openPopupHandler_=zS.prototype.openPopupHandler_;_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],zS.prototype,"ytActionHandlerBehavior",void 0);_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],zS.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],zS.prototype,"ytRendererBehavior",void 0);
_.D([_.v(_.ie.YtEventForwardingBehavior),_.K("design:type",Object)],zS.prototype,"ytEventForwardingBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],zS.prototype,"data",void 0);_.D([_.V({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.K("design:type",Boolean)],zS.prototype,"primaryIsCancel",void 0);_.D([_.V({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.K("design:type",Boolean)],zS.prototype,"isCancelButtonHidden",void 0);
_.D([_.V({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.K("design:type",Boolean)],zS.prototype,"isCheckboxHidden",void 0);_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],zS.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.D([_.V({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.K("design:type",Boolean)],zS.prototype,"useOverlayForSpinner_",void 0);
_.D([_.V({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.K("design:type",Boolean)],zS.prototype,"showSpinner_",void 0);_.D([_.V({value:!1}),_.K("design:type",Boolean)],zS.prototype,"isActionInProgress_",void 0);_.D([_.V({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.K("design:type",Boolean)],zS.prototype,"hasHeaderImageWidth_",void 0);
_.D([_.V({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.K("design:type",Boolean)],zS.prototype,"hasLoadingMessage",void 0);_.D([_.Gz("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],zS.prototype,"openPopupHandler_",null);_.D([_.Gz("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],zS.prototype,"closePopupHandler_",null);
_.D([_.fx("data.headerImage"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],zS.prototype,"onHeaderImageChanged_",null);_.D([_.fx("data.headerImageWidth"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],zS.prototype,"onHeaderImageWidthChanged_",null);_.D([_.fx("data.thumbnail"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],zS.prototype,"onThumbnailChanged_",null);
_.D([_.Gz("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],zS.prototype,"onYtNavigate_",null);_.D([_.Gz("yt-img-shadow-loaded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],zS.prototype,"onThumbnailLoaded_",null);_.D([_.Gz("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.IW]),_.K("design:returntype")],zS.prototype,"onYtServiceRequestSent_",null);
_.D([_.Gz("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.j4]),_.K("design:returntype")],zS.prototype,"onYtServiceRequestCompleted_",null);_.D([_.Lx({is:"yt-confirm-dialog-renderer",noInjection:!0})],zS);var dGr;var PSt;var Ma=function(){return _.X.apply(this,arguments)||this};
_.G(Ma,_.X);Ma.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.mY(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
Ma.prototype.computeConfirmButton_=function(H){var C={text:H.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};H.confirmNavigationEndpoint?C.navigationEndpoint=H.confirmNavigationEndpoint:H.confirmServiceEndpoint&&(C.serviceEndpoint=H.confirmServiceEndpoint);return C};
Ma.prototype.computeShowTitle_=function(H){return!(H==null||!H.title)};
_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],Ma.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],Ma.prototype,"data",void 0);_.D([_.V({computed:"computeShowTitle_(data)"}),_.K("design:type",Boolean)],Ma.prototype,"showTitle",void 0);_.D([_.Lx({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],Ma);
_.B(Ma,"yt-fancy-dismissible-dialog-renderer",function(){if(PSt===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;dGr===void 0&&(dGr=document.createElement("template"));var w=dGr;S.call(C,w.content.cloneNode(!0),H.content.firstChild);PSt=H}H=PSt;return H});var $Gq;var pO9;var qa=function(){var H=_.X.apply(this,arguments)||this;H.spinnerActive=!1;return H};
_.G(qa,_.X);qa.prototype.created=function(){mIK(2201)};
qa.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
qa.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
qa.prototype.onIronOverlayClosed=qa.prototype.onIronOverlayClosed;qa.prototype.onIronOverlayOpened=qa.prototype.onIronOverlayOpened;_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],qa.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.zj),_.K("design:type",Object)],qa.prototype,"tpYtIronOverlayBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],qa.prototype,"data",void 0);_.D([_.V(),_.K("design:type",Object)],qa.prototype,"spinnerActive",void 0);
_.D([_.Gz("iron-overlay-opened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qa.prototype,"onIronOverlayOpened",null);_.D([_.Gz("iron-overlay-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qa.prototype,"onIronOverlayClosed",null);_.D([_.Lx({is:"yt-loading-renderer",disableElementRegistration:!0})],qa);
_.B(qa,"yt-loading-renderer",function(){if(pO9===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;$Gq===void 0&&($Gq=document.createElement("template"));var w=$Gq;S.call(C,w.content.cloneNode(!0),H.content.firstChild);pO9=H}H=pO9;return H},{mode:2});var kE9;var hPO;var TS=function(){var H=_.X.apply(this,arguments)||this;H.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);H.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);H.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";H.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return H};
_.G(TS,_.X);_.F=TS.prototype;_.F.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.F.onDarkModeToggledAction=function(H){this.isDarkTheme=H};
_.F.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.F.openPopupHandler_=function(H){H.detail===this.hostElement&&this.hostElement.hidden&&_.q3(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.F.onDismissButtonTap_=function(){var H;this.closeOnDismissButton_.has(((H=this.data)==null?void 0:H.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.q3(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.F.onAcceptButtonTap_=function(){var H;this.closeOnAcceptButton_.has(((H=this.data)==null?void 0:H.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.q3(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.F.computeHasHeader_=function(H){return!!H.headerBackgroundImage};
_.F.computeLayoutStyle_=function(H){return H};
_.F.computePopupSize_=function(H){return H};
_.F.computeIconType_=function(H){return H.dialogIcon&&H.dialogIcon.iconType?H.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":H.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":H.dialogIcon.iconType:""};
_.F.computeIsLogo_=function(H){return!!H.dialogIcon&&!!H.dialogIcon.iconType&&(H.dialogIcon.iconType==="YOUTUBE_LOGO"||H.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||H.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.F.computeHasCustomLogo=function(H){return!(H==null||!H.headerForegroundImage)};
_.F.computeCustomLogo=function(H,C){if(H!=null&&H.headerForegroundImage)return H.headerForegroundImageDark?C?H.headerForegroundImageDark:H.headerForegroundImage:H.headerForegroundImage};
_.F.computeHeaderBackgroundImage=function(H,C){if(H!=null&&H.headerBackgroundImage)return C&&(H==null?0:H.headerBackgroundImageDark)?H.headerBackgroundImageDark:H.headerBackgroundImage};
_.F.shouldShowIconContainer=function(H,C){return H&&!C};
_.F.shouldShowNonYouTubeIcon=function(H,C){return!H&&!C};
_.F.getLogoImageId=function(H){var C,S,w;return(H=(C=this.computeCustomLogo(H,this.isDarkTheme))==null?void 0:(S=C.thumbnails)==null?void 0:(w=S[0])==null?void 0:w.height)&&H%31===0?"custom-logo-with-padding":"custom-logo"};
TS.prototype.openPopupHandler_=TS.prototype.openPopupHandler_;TS.prototype.dataChanged_=TS.prototype.dataChanged_;_.D([_.v(_.dc.YtRendererstamperBehavior),_.K("design:type",Object)],TS.prototype,"ytRendererstamperBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],TS.prototype,"ytRendererBehavior",void 0);_.D([_.V(),_.K("design:type",Boolean)],TS.prototype,"isDarkTheme",void 0);
_.D([_.V({computed:"computeCustomLogo(data, isDarkTheme)"}),_.K("design:type",Object)],TS.prototype,"customLogo",void 0);_.D([_.V({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.K("design:type",Object)],TS.prototype,"headerBackgroundImage",void 0);_.D([_.V(),_.K("design:type",Object)],TS.prototype,"data",void 0);_.D([_.V({computed:"computeHasHeader_(data)"}),_.K("design:type",Boolean)],TS.prototype,"hasHeader",void 0);
_.D([_.V({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.K("design:type",Object)],TS.prototype,"layoutStyle",void 0);_.D([_.V({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.K("design:type",Object)],TS.prototype,"popupSize",void 0);_.D([_.V({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],TS.prototype,"hasLogo",void 0);
_.D([_.V({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],TS.prototype,"hasCustomLogo",void 0);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],TS.prototype,"dataChanged_",null);_.D([_.Gz("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],TS.prototype,"openPopupHandler_",null);
_.D([_.Lx({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],TS);
_.B(TS,"yt-upsell-dialog-renderer",function(){if(hPO===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;kE9===void 0&&(kE9=document.createElement("template"));var w=kE9;S.call(C,w.content.cloneNode(!0),H.content.firstChild);hPO=H}H=hPO;return H},{mode:2});var nZR=_.n(function(H){return _.q("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.q(_.T,{cond:H.title,then:function(C){return _.q("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},C)}}))},"Hh"),rs_=_.n(function(H){return _.q("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.q(_.V4,{data:H.closeButton},{buttonViewModel:function(C){return _.q("div",null,_.q(_.rc,{data:C.data}))}}))},"Ih"),B89=_.n(function(H){var C=H.data;
return _.q(_.F9,null,_.q("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.q("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.q(_.T,{cond:function(){return!!C().image&&!!C().title},
then:function(){return _.q(_.Jg,{data:function(){return C().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.q("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.q(_.T,{cond:function(){return C().title},
then:function(S){return _.q("h3",{class:"miniAppGameInfoDialogViewModelTitle"},S)}}),_.q(_.T,{cond:function(){return C().primaryGenre},
then:function(S){return _.q("span",{class:"miniAppGameInfoDialogViewModelGenre"},S)}}))),_.q(_.T,{cond:function(){var S=C().description;
return S&&S.length<=150},
then:function(){return _.q("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.q("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return C().description}))}}))},"Jh"),DGj=_.n(function(H){H=H.infoRows;
var C=_.JA().resolve(_.Eh),S=_.E("enable_displaying_ppn");return _.q("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.q(_.Vq,{each:H},function(w){return _.q("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.q(_.T,{cond:function(){return w.label},
then:function(A){return _.q("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},A)}}),_.q(_.T,{cond:function(){return w.attributedLabel},
then:function(A){return _.q("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.q(_.uZ,{text:A,noPreWrap:!0}))}}),_.q(_.T,{cond:function(){return w.value},
then:function(A){return _.q("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},A)}}),_.q(_.T,{cond:function(){return w.attributedValue},
then:function(A){return _.q("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.q(_.uZ,{text:A,noPreWrap:!0}))}}))}),_.q(_.T,{cond:function(){return S&&C.clientData.has("post_play_nonce")},
then:function(){return _.q("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.q("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.q("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},C.getData("post_play_nonce")))}}))},"Kh"),KsK=_.n(function(H){var C=H.data;
return _.q("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.q(nZR,{title:function(){return C().dialogTitle}}),_.q(B89,{data:C}),_.q(_.T,{cond:function(){return C().infoRow},
then:function(S){return _.q(DGj,{infoRows:S})}}),_.q(rs_,{closeButton:function(){return C().closeButton}}))},"Lh");
KsK.idomCompat=!0;_.qs(KsK,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.GH}});_.qs(_.n(function(H){var C=H.data;return _.q("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.q(_.Jg,{data:function(){return C().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.q("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.q("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.q(_.T,{cond:function(){var S=C().ytLogo;return S?S.iconType:null},
then:function(S){return _.q(_.lm,{icon:S,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.q("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.q("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.q(_.uZ,{text:function(){return C().title}})),_.q("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.q(_.uZ,{text:function(){return C().body}})),_.q("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.q(_.uZ,{text:function(){return C().verifyStateText}}))),
_.q("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.q("div",null,_.q(_.V4,{data:function(){return C().dismissButton}},{buttonViewModel:_.rc})),_.q("div",null,_.q(_.V4,{data:function(){return C().linkParentButton}},{buttonViewModel:_.rc})))))},"Mh"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.GH}});var tY9=_.n(function(H){var C=H.data;H=_.Jx(function(){return C().agreements},[]);
return _.q("installment-agreements-view-model",{class:_.eJ("ytInstallmentAgreementsViewModelHost")},_.q(_.Vq,{each:H},function(S){return _.q("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.q("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.q(_.uZ,{text:S.label})),_.q("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.q(_.V4,{data:function(){return S.openButton}},{buttonViewModel:_.rc})))}))},"Nh");
tY9.idomCompat=!0;var LsR=_.n(function(H){var C=_.Z(_.fu(function(){var g,ii;return((g=H.data().createPlaylistDialogFormSchema)==null?0:(ii=g.initialValues)==null?0:ii.title)?H.data().createPlaylistDialogFormSchema.initialValues.title:""})),S=C.next().value,w=C.next().value;
C=_.Z(_.fu(function(){H.data();return!1}));
var A=C.next().value,J=C.next().value;C=_.Z(_.fu(function(){H.data();return!1}));
var c=C.next().value,Y=C.next().value;C=_.Z(_.fu(function(){var g,ii;return(g=H.data().createPlaylistDialogFormSchema)==null?void 0:(ii=g.initialValues)==null?void 0:ii.visibility}));
var M=C.next().value,m=C.next().value;C=_.Z(_.fu(function(){H.data();return!1}));
var W=C.next().value,y=C.next().value;C=_.Z(_.fu(function(){var g,ii;return(g=H.data().createPlaylistDialogFormSchema)==null?void 0:(ii=g.initialValues)==null?void 0:ii.isCollaborative}));
var N=C.next().value,b=C.next().value,u=_.sW("div");_.d6(function(){var g=u.value.querySelector("textarea");g&&(g.value=S())},"sgS9sc");
_.$T(function(){var g;_.yAq((g=H.data().createPlaylistDialogFormSchema)==null?void 0:g.id,{onSubmit:function(){var ii=S();var FW=M(),cZ=N(),eZ=H.data();ii={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:ii,privacyStatus:FW,videoIds:eZ.videoIds,sourcePlaylistId:eZ.sourcePlaylistId,params:cZ?eZ.createPlaylistParamsCollaborationEnabled:eZ.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.JA().resolve(_.ZQ).resolveCommand(ii)},
isValid:function(){return A()&&!c()&&!W()}})});
var O=function(g){if(g!==void 0&&(w(g),!A()&&g.length>0&&J(!0),A())){var ii=Gb9(H.data());if(ii){var FW=ii.minLength;ii=ii.maxLength;FW&&g.length<FW?Y(!0):ii&&g.length>ii?Y(!0):Y(!1)}}},d=function(){var g=!(!N()||M()!=="PRIVATE");
y(g)},p=function(g){g!==void 0&&(m(g),d())},k=function(){if(W())return vii(H.data())},R=function(){b(!N());
d()},L=function(){return{validate:function(g){if(A()){var ii=Gb9(H.data());
if(ii){var FW=ii.minLength;ii=ii.translations;if(FW&&g.length<FW)return ii==null?void 0:ii.minLengthErrorMessage}}}}},t=function(){var g=Gb9(H.data()),ii=g==null?void 0:g.maxLength,FW;
g=g==null?void 0:(FW=g.translations)==null?void 0:FW.maxLengthErrorMessage;if(ii&&g)return{maxChars:ii,errorMessage:g}};
return _.q("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.q("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:u},_.q(_.V4,{data:function(){return H.data().playlistTitle}},{textFormFieldViewModel:function(g){return _.q(_.ZDi,{data:g.data,
text:S,onInput:O,validation:L,characterLimit:t})},
textFieldViewModel:function(g){return _.q(_.FP3,{data:g.data,text:S,onInput:O,validation:L,characterLimit:t})}})),_.q("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.q(_.V4,{data:function(){return H.data().playlistVisibility}},{dropdownViewModel:function(g){return _.q(_.bDO,{data:g.data,
onSelected:p,error:k})}})),_.q(_.T,{cond:function(){return!!H.data().playlistCollaborate},
then:function(){return _.q("div",null,_.q(_.V4,{data:function(){return H.data().playlistCollaborate}},{switchListItemViewModel:function(g){return _.q(_.cWb,{data:g.data,
onTap:R})}}))}}))},"Oh");var gZi=_.n(function(H){var C=H.data;return _.q("upsell-offer-table-cell-content-view-model",null,_.q("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.q(_.X9,null,_.q(_.o6,{when:function(){return C().iconType}},function(){return _.q("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.q(_.lm,{icon:function(){return C().iconType.toString()}}))}),_.q(_.o6,{when:function(){return C().title}},function(){return _.q(_.uZ,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return C().title}})}),_.q(_.o6,{when:function(){return C().subtitle}},function(){return _.q(_.uZ,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return C().subtitle}})}),_.q(_.o6,{when:function(){return C().infoText}},function(){return _.q(_.uZ,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return C().infoText}})}),_.q(_.o6,{when:function(){return C().featureDescription}},function(){return _.q(_.uZ,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return C().featureDescription}})}),_.q(_.o6,{when:function(){return C().note}},function(){return _.q(_.uZ,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return C().note}})}))))},"Ph");
gZi.idomCompat=!0;var UGO=_.n(function(H){var C=H.data;return _.q("upsell-offer-table-cell-view-model",null,_.q("div",{class:_.eJ("ytUpsellOfferTableCellViewModelCellWrapper",function(){return C().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.q(_.V4,{data:function(){return C().contents}},{upsellOfferTableCellContentViewModel:gZi})))},"Qh");
UGO.idomCompat=!0;var RP9=_.n(function(H){var C=H.data;var S=H.upsellTableIsFirstRow;var w=function(){return(S==null?0:S())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},A=function(){return(S==null?0:S())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.q("ytm-upsell-offer-table-row-view-model",null,_.q("div",{class:"ytUpsellOfferTableRowViewModelHost"},_.q(_.V4,{data:function(){return C().rowHeaderCell}},{upsellOfferTableCellViewModel:function(J){return _.q("div",{class:w},_.q(UGO,{data:J.data}))}}),_.q(_.V4,{data:function(){return C().contentCells}},{upsellOfferTableCellViewModel:function(J){return _.q("div",{class:A},_.q(UGO,{data:J.data}))}})))},"Rh");
RP9.idomCompat=!0;var IH9=_.n(function(H){var C=H.data;return _.q("ytm-upsell-offer-table-view-model",null,_.q("div",{class:"ytUpsellOfferTableViewModelHost"},_.q("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.q(_.V4,{data:function(){return C().rows}},{upsellOfferTableRowViewModel:function(S,w){return _.q(RP9,{data:S.data,
upsellTableIsFirstRow:function(){return w()===0}})}}))))},"Sh");
IH9.idomCompat=!0;var aHo=_.n(function(H){var C=_.Jx(H.noPadding,!1),S=function(){var J,c;return(c=(J=H.data().logo.accessibilityData)==null?void 0:J.label)!=null?c:""},w=function(){return H.data().offerTable},A={};
return _.q("upsell-view-model",{class:_.eJ("ytUpsellViewModelHost",(A.ytUpsellViewModelHostNoPadding=function(){return C()},A.ytUpsellViewModelHostWide=function(){return w()!==void 0},A))},_.q("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.q(_.T,{cond:function(){return _.U5(H.data().logo)},
then:function(J){return _.q(_.Jg,{data:J,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:S})}})),_.q("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.q(_.uZ,{text:function(){return H.data().title}})),_.q("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.q(_.Vq,{each:function(){var J;
return(J=H.data().subtitles)!=null?J:[]},
keyBy:"INDEX"},function(J){var c={};return _.q("div",{class:_.eJ("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(c.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return w()!==void 0},c))},_.q(_.uZ,{text:J}))})),_.q("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.q(_.Vq,{each:function(){var J;
return(J=H.data().benefitInfos)!=null?J:[]},
keyBy:"INDEX"},function(J){return _.q(_.T,{cond:function(){return J().info},
then:function(c){return _.q("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.q(_.lm,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.q(_.uZ,{text:c}))}})})),_.q(_.T,{cond:function(){return w()!==void 0},
then:function(){return _.q("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.q(IH9,{data:w}))}}),_.q("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.q(_.Vq,{each:function(){var J;
return(J=H.data().legalInfos)!=null?J:[]},
keyBy:"INDEX"},function(J){var c={};return _.q("div",{class:_.eJ("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(c.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return w()!==void 0},c))},_.q(_.uZ,{text:J}))})))},"Th");var xGO=_.n(function(H){var C=H.data;H={};H=(H.ytMiniAppScoreChallengeViewModelScoreRadial=!0,H.ytMiniAppScoreChallengeViewModelDarkScoreRadial=lzK(),H);return _.q("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.q("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return C().title}),_.q("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return C().subtitle}),_.q("div",{class:_.pn(H)},_.q("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return C().score})),_.q("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return C().prompt}))},"Uh");var HAr=function(){this.store=_.wC();this.formId=""};
HAr.prototype.onInit=function(H){H.formId&&(this.formId=H.formId,this.store.dispatch(_.Md({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var iA_=_.n(function(H){function C(Y){if(Y&&(Y=_.e(Y,_.Q4)))return Object.assign({},Y,{isSelected:J()})}
var S=_.Z(_.fu(function(){var Y,M;return(M=(Y=_.e(H.data().option,_.Q4))==null?void 0:Y.isSelected)!=null?M:!1})),w=S.next().value,A=S.next().value,J=w;
_.$T(function(){var Y;_.yAq((Y=H.data().formSchema)==null?void 0:Y.id,{onSubmit:function(){var M=_.JA().resolve(_.ZQ),m=!!H.data().selectedCommand,W=!!H.data().unselectedCommand;if(J()){if(m)var y=H.data().selectedCommand}else W&&(y=H.data().unselectedCommand);y=_.L7(y);C(H.data().option)&&!y?(M="",!m&&W?M="selected ":m&&!W&&(M="unselected "),m=new _.X0("No "+M+"command found for SelectionListItemFormViewModel"),_.nC(m)):y&&M.resolveCommand(y)},
isValid:function(){return!0}})});
var c=function(){A(!J())};
_.PN(function(){var Y,M,m=(Y=H.data())==null?void 0:(M=Y.formSchema)==null?void 0:M.id;m&&_.vt()().delete(m)});
return _.q("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.q("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.q(_.uZ,{text:function(){return H.data().paragraph}})),_.q(_.T,{cond:function(){return C(H.data().option)},
then:function(Y){return _.q(_.MA,{data:Y,isCompact:!0,hideSelectionTextChevron:!0,onTap:c,disableHorizontalPadding:!0})}}))},"Vh");var C_q=_.n(function(H){var C=H.data;var S=H.disablePadding;var w=H.className;var A=_.sW("yt-dialog-header-view-model"),J=function(){var Y=C().imageBanner;a:switch(C().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var M="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:M="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:Y,style:M,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},c=function(){return C().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.$T(function(){var Y=function(){_.q3(A.value,"yt-refit-popups-action")},M;
(M=A.value)==null||M.addEventListener("image-loaded",Y);_.PN(function(){var m;(m=A.value)==null||m.removeEventListener("image-loaded",Y)})});
H={};return _.q("yt-dialog-header-view-model",{el:A,class:_.eJ(w,(H.ytDialogHeaderViewModelHost=!0,H.ytDialogHeaderViewModelHostDisablePadding=S,H))},_.q(_.T,{cond:function(){return C().imageBanner},
then:function(){var Y={};return _.q("div",{class:_.eJ(w,(Y.ytDialogHeaderViewModelBanner=!0,Y.ytDialogHeaderViewModelBannerFullBleed=c,Y)),style:_.vb({"max-height":function(){return C().assetContainerMaxHeight!==void 0?C().assetContainerMaxHeight+"px":void 0}})},_.q(_.$n,{data:J,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.q(_.T,{cond:function(){return C().headerBlock},
then:function(){return _.q("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.q(_.V4,{data:function(){return C().headerBlock}},{contentPreviewImageViewModel:function(Y){return _.q(_.$n,{data:Y.data,
notifyOnLoaded:!0})}}))}}),_.q(_.T,{cond:function(){return C().customBanner},
then:function(Y){return _.q("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.q(_.V4,{data:Y},{avatarStackViewModel:_.Yn}))}}),_.q(_.T,{cond:function(){return C().headline},
then:function(Y){return _.q("h2",null,_.q(_.uZ,{text:Y,className:"ytDialogHeaderViewModelText"}))}}))},"Wh");
C_q.idomCompat=!0;var SGq=_.n(function(H){var C=_.SK0(function(){return H.data().formId}),S=C.submitForm,w=C.isValid;
return _.q("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.q(_.V4,{data:function(){return H.data().panelFooter}},{panelFooterViewModel:function(A){return _.q(_.Xt,{data:A.data,
disablePadding:!0,disablePrimaryButton:function(){return!w()},
onClickPrimaryButton:function(){S()}})}}))},"Xh");var sg_=_.n(function(H){var C=function(){var S,w;return(w=(S=_.e(H.data().rendererContext,_.VB))==null?void 0:S.label)!=null?w:""};
return _.q("yt-dialog-image-content-view-model",{class:_.eJ("ytDialogImageContentViewModelHost",H.className)},_.q(_.T,{cond:function(){return _.U5(H.data().image)},
then:function(S){var w={};return _.q("div",{style:_.vb((w.width=(0,_.cd)(function(){var A;return(A=H.data().imageMaxWidth)!=null?A:""}),w)),
class:"ytDialogImageContentViewModelImage"},_.q(_.Jg,{data:S,alt:C,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.q(_.uZ,{text:function(){return H.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Yh");var Azj=_.n(function(H){var C=_.FH(H,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),S=C.elRefCallback;H=C.iconWiz;var w=C.assetWiz,A=C.assetType,J=C.titleWiz,c=C.leadingActionHeaderWiz,Y=C.trailingActionHeaderWiz,M=C.headerPosition,m=C.contentWiz,W=C.buttonLayout,y=C.buttonStyle,N=C.primaryButtonWiz,b=C.secondaryButtonWiz,u=C.contentAlignment,O=C.isFullscreen,d=C.width,p=C.maxHeight,k=C.isHeaderWizDefined,
R=C.headerWiz,L=C.isFooterWizDefined,t=C.footerWiz;C=_.sW("dialog-layout",function(O$){S==null||S(O$)});
var g=w?function(){return w({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,ii=N?function(){var O$={};
return N({buttonOverrides:function(){return{style:(y==null?void 0:y())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.eJ((O$["yt-spec-dialog-layout__dialog-layout-button"]=!0,O$["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(W==null?void 0:W())===0||(W==null?void 0:W())===2},O$))})}:void 0,FW=b?function(){var O$={};
return b({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.eJ((O$["yt-spec-dialog-layout__dialog-layout-button"]=!0,O$["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(W==null?void 0:W())===0||(W==null?void 0:W())===2},O$))})}:void 0,cZ=function(){return(!!J||!!c||!!Y)&&M()===0},eZ={},ND={},bi={},pU={};
return _.q("dialog-layout",{el:C,class:_.eJ((eZ["yt-spec-dialog-layout"]=!0,eZ["yt-spec-dialog-layout--dialog-layout-fullscreen"]=O,eZ["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!O()},eZ["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return p()===1},eZ["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(A==null?void 0:A())===1},eZ)),
style:function(){return(d==null?void 0:d())!==void 0?"width: "+d+"px;":""}},H?_.q("div",{class:_.eJ((ND["yt-spec-dialog-layout__dialog-layout-icon"]=!0,ND["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!w&&M()===1},ND["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return u()===1},ND))},_.q(H,null)):null,_.q(_.T,{cond:k,
then:function(){return R?_.q("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.q(R,null)):null},
else:function(){return _.q(_.F9,null,_.q(_.T,{cond:cZ,then:function(){return _.q(jgR,{contentAlignment:u,LeadingActionHeader:c,TrailingActionHeader:Y,Title:J,isAboveAsset:!!g})}}),g?_.q("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.q(g,null)):null)}}),_.q("div",{class:_.eJ((bi["yt-spec-dialog-layout__dialog-layout-container"]=!0,bi["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(u==null?void 0:u())===1},bi["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=
function(){return!J&&!(R&&k())||!!g&&(M==null?void 0:M())===0},bi))},_.q(_.T,{cond:function(){return J&&!R&&(M==null?void 0:M())===1},
then:function(){return _.q(jgR,{contentAlignment:u,LeadingActionHeader:c,TrailingActionHeader:Y,Title:J,isAboveAsset:!1})}}),m?_.q("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.q("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.q(m,null))):null,_.q(_.T,{cond:L,
then:function(){return t?_.q("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.q(t,null)):null}}),ii||FW?_.q(wkr,{footerClasses:_.eJ((pU["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,pU["yt-spec-dialog-layout__dialog-layout-footer"]=!0,pU["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(W==null?void 0:W())===2},pU["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(W==null?void 0:W())===1},pU)),
PrimaryButton:ii,SecondaryButton:FW}):null))},"Zh"),jgR=_.n(function(H){var C=_.FH(H,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),S=C.contentAlignment,w=C.LeadingActionHeader;H=C.Title;var A=C.TrailingActionHeader,J=C.isAboveAsset,c=C.enableLeadingActionHeader;C={};return _.q("div",{class:_.eJ((C["yt-spec-dialog-layout__dialog-header-container"]=!0,C["yt-spec-dialog-layout__dialog-header"]=!0,C["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=J,C["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(S==null?void 0:S())===1&&c()},C))},_.q(_.T,{cond:function(){return c()},
then:function(){return w?_.q("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.q(w,null)):null}}),H?_.q("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.q(H,null)):null,A?_.q("div",null,_.q(A,null)):null)},"$h"),wkr=_.n(function(H){var C=H.footerClasses;
var S=H.PrimaryButton;H=H.SecondaryButton;return _.q("div",{class:C},H?_.q(H,null):null,S?_.q(S,null):null)},"ai");var JzO=_.n(function(H){var C=H.data;return _.q("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.q("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.q(_.V4,{data:function(){return C().avatar}},{avatarViewModel:_.ZT})),_.q("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.q(_.uZ,{text:function(){return C().title}})),_.q(_.uZ,{text:function(){return C().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"bi");var FXt=_.n(function(H){return _.q("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.q("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.q(_.uZ,{text:function(){return H.data().inviteMessage}})),_.q("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.q(_.uZ,{text:function(){return H.data().attributedAccountSectionHeaderText}})),_.q("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.q(_.V4,{data:function(){return H.data().accountAvatar}},{avatarViewModel:_.ZT}),_.q("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.q(_.uZ,{text:function(){return H.data().accountName}}),_.q("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.q(_.uZ,{text:function(){return H.data().handle}}))),_.q(_.V4,{data:function(){return H.data().trailingButton}},{buttonViewModel:_.rc})),_.q("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.q(_.uZ,{text:function(){return H.data().termsOfService}})))},"ci");var ZAR=_.n(function(H){var C=H.data;return _.q("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.q("div",{class:"ytAccessConfirmationViewModelContent"},_.q(_.V4,{data:function(){var S;return(S=C().avatar)!=null?S:C().dualAvatar}},{dualAvatarViewModel:function(S){return _.q(_.iUr,{data:S.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(S){return _.q(_.cG,{data:S.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.q("h2",{class:"ytAccessConfirmationViewModelTitle"},_.q(_.uZ,{text:function(){return C().title}})),_.q(_.uZ,{text:function(){return C().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"di");var czp=_.n(function(H){var C=H.data;var S=void 0;H=_.Z(_.fu(function(){var m;return((m=_.e(C().content,_.CI))==null?void 0:m.defaultSelectedKey)||""}));
var w=H.next().value,A=H.next().value,J,c=function(){A("");var m;(m=S)!=null&&m.store.dispatch(_.Md({type:"RESET_COMMAND_MAP"}))};
_.$T(function(){S=new HAr;window.addEventListener("yt-popup-closed",c)});
_.d6(function(){if(S&&J!==C().formId&&(S.onInit(C()),(J=C().formId)&&w())){var m=S,W={key:w()};W.command&&m.store.dispatch(meo(J,W.command))}},"c2n8Gf");
_.PN(function(){window.removeEventListener("yt-popup-closed",c)});
var Y=function(m,W,y){W.key&&y&&W.key!==w()&&(A(W.key),S&&W.command&&S.store.dispatch(meo(y,W.command)))},M=function(){if(_.e(C().content,_.CI))return!(w==null?0:w())};
return _.q("yt-dialog-view-model",{class:_.eJ("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.q(Azj,{headerWiz:function(){return _.q("span",{skip:!0},_.q(_.V4,{data:function(){return C().header}},{dialogHeaderViewModel:function(m){return _.q(C_q,{data:m.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!C().header},
contentWiz:function(){return _.q("span",{skip:!0},_.q(_.V4,{data:function(){return C().customContent?C().customContent:C().content}},{basicContentViewModel:_.HcP,
createPlaylistDialogFormViewModel:LsR,collaborativePlaylistInviteMessageViewModel:FXt,miniAppScoreChallengeViewModel:xGO,radioButtonGroupViewModel:function(m){var W=m.data;return _.q(_.jep,{data:W,selectedKey:w,onSelected:Y,groupName:function(){return W().formId}})},
selectionListItemFormViewModel:iA_,upsellViewModel:function(m){return _.q(aHo,{data:m.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:JzO,installmentAgreementsViewModel:tY9,accessConfirmationViewModel:ZAR,listViewModel:function(m){return _.q(_.yWW,{data:m.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:sg_}))},
footerWiz:function(){return _.q("span",{skip:!0},_.q(_.V4,{data:function(){return C().footer}},{panelFooterViewModel:function(m){return _.q(_.Xt,{data:m.data,
disablePadding:!0,disablePrimaryButton:M})},
formPanelFooterViewModel:SGq,formFooterViewModel:function(m){return _.q(_.HDR,{data:m.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!C().footer}}))},"ei");
czp.idomCompat=!0;_.qs(czp,"yt-dialog-view-model",{props:{data:_.GH},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var YGt=_.n(function(H){var C=H.data;var S=_.EYw(function(){return C().rendererContext});
H={};return _.q("yt-panel-header-view-model",{class:_.eJ("ytPanelHeaderViewModelHost",(H.ytPanelHeaderViewModelHostHideDivider=function(){return!!C().shouldHideDivider},H.ytPanelHeaderViewModelHostCompact=function(){return!!C().subtitle},H)),
"aria-label":function(){var w;return(w=S())==null?void 0:w.label}},_.q("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.q(_.T,{cond:function(){return C().title},
then:function(w){return _.q("h2",{class:"ytPanelHeaderViewModelTitleHeader"},_.q(_.uZ,{text:w,className:"ytPanelHeaderViewModelTitle"}))}}),_.q(_.T,{cond:function(){return C().subtitle},
then:function(w){return _.q(_.uZ,{text:w,className:"ytPanelHeaderViewModelSubtitle"})}})),_.q("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.q(_.V4,{data:function(){return C().trailingButtons}},{buttonViewModel:function(w){return _.q(_.rc,{data:w.data,
className:"ytPanelHeaderViewModelButton"})}})))},"fi");
YGt.idomCompat=!0;var zdo=_.n(function(H){var C=_.um(function(J){var c;if((c=H.skipContentClick)==null?0:c.call(H))return!1;H.onContentWrapperClick(J);return!0}),S,w,A;
return _.q("div",{class:_.eJ("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return H.isAnimating()?"transform: translateY("+H.currentY()+"px);transition: 0.2s":""}},(S=H.header)==null?void 0:S.call(H),_.q("div",{id:H.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.vb({"max-height":(0,_.cd)(H.maxHeightForContentWrapper)}),"on:scroll":Xto(H.onScroll),"on:touchmove":Xto(function(J){return void J.stopPropagation()})},_.q("div",{el:{onRender:H.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":C},(w=H.body)==null?void 0:w.call(H))),(A=H.footer)==null?void 0:A.call(H))},"gi");
zdo.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var M0q=_.n(function(H){var C=_.Jx(H.leadingLabel),S=_.Jx(H.trailingLabel),w=_.Jx(H.footerButtonType),A=function(){return C()||S()||H.hasPrimaryButton()||H.hasSecondaryButton()},J={},c=_.eJ("yt-spec-bottom-sheet-layout__primary-button",(J["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return w()===0&&H.hasPrimaryButton()},J["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return w()===1&&H.hasPrimaryButton()},J["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return w()===2&&H.hasPrimaryButton()},J["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return w()===3&&H.hasPrimaryButton()},J));
J={};var Y=_.eJ("yt-spec-bottom-sheet-layout__secondary-button",(J["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return w()===1&&H.hasSecondaryButton()},J["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return w()===2&&H.hasSecondaryButton()},J["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return w()===3&&H.hasPrimaryButton()},J));
return _.q(_.T,{cond:H.hasFooterOverride,then:function(){var M;return _.q(_.F9,null,(M=H.footerOverride)==null?void 0:M.call(H))},
else:function(){return _.q(_.T,{cond:A,then:function(){return _.q("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.q(_.T,{cond:function(){return C()||S()},
then:function(){var M={};return _.q("div",{class:_.eJ("yt-spec-bottom-sheet-layout__footer-label-wrapper",(M["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!H.hasPrimaryButton()},M))},_.q(_.T,{cond:C,
then:function(){return _.q("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},C)}}),_.q(_.T,{cond:S,
then:function(){return _.q("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},S)}}))}}),_.q(_.T,{cond:function(){return H.hasPrimaryButton()||H.hasSecondaryButton()},
then:function(){var M={};return _.q("div",{class:_.eJ("yt-spec-bottom-sheet-layout__footer-button-wrapper",(M["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.Sh7,M))},_.q(_.T,{cond:function(){return H.hasSecondaryButton()&&w()!==0},
then:function(){var m;return _.q("div",{class:Y},(m=H.secondaryButton)==null?void 0:m.call(H))}}),_.q(_.T,{cond:H.hasPrimaryButton,
then:function(){var m;return _.q("div",{class:c},(m=H.primaryButton)==null?void 0:m.call(H))}}))}}))}})}})},"hi");
M0q.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var qGo=_.n(function(H){var C=_.Jx(H.title),S=_.Jx(H.subtitle);return _.q("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:H.headerId,"on:touchstart":_.um(function(w){var A;(A=H.touchstart)==null||A.call(H,w);return!1}),
"on:touchmove":_.um(function(w){var A;(A=H.touchmove)==null||A.call(H,w);return!1}),
"on:touchend":_.um(function(w){var A;(A=H.touchend)==null||A.call(H,w);return!1})},_.q("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.q(_.T,{cond:H.hasHeaderOverride,
then:function(){var w;return _.q(_.F9,null,(w=H.headerOverride)==null?void 0:w.call(H))},
else:function(){var w={};return _.q("div",{class:_.eJ((w["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,w["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=C,w))},_.q("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.q(_.T,{cond:C,then:function(){return _.q(_.F9,null,_.q("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},C),_.q(_.T,{cond:S,then:function(){return _.q("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
S)}}))}})),_.q(_.T,{cond:function(){return C()&&H.hasActionHeader()},
then:function(){var A;return _.q("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(A=H.actionHeader)==null?void 0:A.call(H))}}))}}))},"ii");
qGo.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.n(function(H){function C(g){if(!p&&typeof MutationObserver!=="undefined"){var ii={childList:!0};"MutationObserver"in window&&(p=new MutationObserver(S.bind(void 0,g)),p.observe(g,ii))}}
function S(g){typeof p!=="undefined"&&(k["content-wrapper"]===void 0&&(k["content-wrapper"]=g.children[0].clientHeight),b(k["content-wrapper"]),N()>u()||O(N()))}
function w(){y(window.innerHeight);N()>u()||O(N());R.isFullScreen[0]()&&N()>u()?L().dispatch("Snap To Full Screen",{maxHeight:d()}):L().dispatch("Snap To Neutral Position",{maxHeight:u()})}
function A(g){document.body.style.overscrollBehavior="none";g.preventDefault();L().dispatch("Touch Start",{event:g})}
function J(g){g.preventDefault();L().dispatch("Touch Move",{event:g,contentScrollable:N()>u(),fullContentWrapperHeight:d(),contentWrapperHeight:u(),contentHeightMap:k,contentWrapperId:"content-wrapper",header:dpO(H),footer:dpO(H)})}
function c(){document.body.style.overscrollBehavior="";R.isFullScreen[0]()?R.currentY[0]()>=60?L().dispatch("Snap To Neutral Position",{maxHeight:u()}):L().dispatch("Snap To Full Screen",{maxHeight:d()}):R.currentY[0]()>=60?Y():R.currentY[0]()<=-60&&N()>u()?L().dispatch("Snap To Full Screen",{maxHeight:d()}):L().dispatch("Snap To Neutral Position",{maxHeight:u()})}
function Y(){L().dispatch("Close Sheet",{clientHeight:W(),maxHeight:0});setTimeout(function(){Q$t()},250)}
var M=_.Z(_.mB(window.innerHeight,void 0,"Q6Nekc")),m=M.next().value;M=M.next().value;var W=m,y=M;M=_.Z(_.mB(0,void 0,"vjnlmb"));m=M.next().value;M=M.next().value;var N=m,b=M;M=_.Z(_.fu(function(){var g=dpO(H);return.6*W()-V49(g)-oip(g)}));
m=M.next().value;M=M.next().value;var u=m,O=M,d=function(){var g=dpO(H);return W()-V49(g)-oip(g)-24-24},p=null,k={},R={initialY:_.mB(0,void 0,"B0aY2c"),
currentY:_.mB(0,void 0,"nLPMcf"),isAnimating:_.mB(!1,void 0,"lXnnZ"),isFullScreen:_.mB(!1,void 0,"rZZoFe"),maxHeightForContentWrapper:_.fu(u)},L=function(){var g=null;return function(){if(!g){var ii={initialY:R.initialY[0](),currentY:R.currentY[0](),isAnimating:R.isAnimating[0](),isFullScreen:R.isFullScreen[0](),maxHeightForContentWrapper:R.maxHeightForContentWrapper[0]()};g=Onr(ii)}return g}}();
_.$T(function(){window.addEventListener("resize",w);L().subscribe(function(g){R.initialY[1](g.initialY);R.currentY[1](g.currentY);R.isAnimating[1](g.isAnimating);R.isFullScreen[1](g.isFullScreen);R.maxHeightForContentWrapper[1](g.maxHeightForContentWrapper)})});
_.PN(function(){window.removeEventListener("resize",w);p&&(p.disconnect(),p=null)});
var t=_.eJ({"bottom-sheet-content-without-icon":function(){var g;return!((g=H.shouldShowIcons)==null?0:g.call(H))}});
return _.q("bottom-sheet-layout",null,_.q(zdo,{contentWrapperId:"content-wrapper",isAnimating:function(){return R.isAnimating[0]()},
currentY:function(){return R.currentY[0]()},
maxHeightForContentWrapper:function(){return R.maxHeightForContentWrapper[0]()},
shouldShowIcons:H.shouldShowIcons,skipContentClick:H.skipContentClick,onScroll:function(){var g=document.getElementById("header-wrapper"),ii=document.getElementById("content-wrapper");if(g&&ii){var FW={};FW=(FW["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,FW["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,FW);g.className=ii.scrollTop>1?_.pn(FW):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:Q$t,contentWrapperEl:function(g){C(g);requestAnimationFrame(function(){S(g)})},
header:function(){return _.q(qGo,{touchstart:A,touchmove:J,touchend:c,title:H.headerTitle,subtitle:H.headerSubtitle,headerId:"header-wrapper",headerOverride:H.headerFn,hasHeaderOverride:H.hasHeaderFn,actionHeader:H.headerActionHeader,hasActionHeader:H.hasHeaderActionHeader})},
footer:function(){return _.q(M0q,{footerButtonType:H.footerButtonType,leadingLabel:H.footerLeadingLabel,trailingLabel:H.footerTrailingLabel,primaryButton:H.footerPrimaryButton,hasPrimaryButton:H.hasFooterPrimaryButton,secondaryButton:H.footerSecondaryButton,hasSecondaryButton:H.hasFooterSecondaryButton,footerOverride:H.footerFn,hasFooterOverride:H.hasFooterFn})},
body:function(){return _.q(_.T,{cond:H.hasContentFn,then:function(){var g;return _.q("div",{class:t},(g=H.contentFn)==null?void 0:g.call(H))}})}}))},"ji").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var TfO=_.n(function(H){var C=_.JA().resolve(_.wz);return _.q("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.um(function(){return void C.closeSheet()})},_.q(_.T,{cond:function(){return!!H.header},
then:function(){return _.q("div",{class:"ytContextualSheetLayoutHeaderContainer"},H.header())}}),_.q(_.T,{cond:function(){return!!H.content},
then:function(){return _.q("div",{class:"ytContextualSheetLayoutContentContainer"},H.content())}}),_.q(_.T,{cond:function(){return!!H.footer},
then:function(){return _.q("div",{class:"ytContextualSheetLayoutFooterContainer"},H.footer())}}))},"ki");
TfO.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var mFi=_.n(function(H){H=H.data;var C=_.sW("yt-sheet-view-model",function(w){if(_.E("web_focus_first_element_sheet")||!_.E("sheet_focus_first_killswitch"))return w.addEventListener("focus",function(){QkK(w)}),function(){w.removeEventListener("focus",function(){QkK(w)})}}),S={};
return _.q("yt-sheet-view-model",{"on:mousedown":_.um(function(w){_.E("sheet_focus_first_killswitch")||w.currentTarget!==w.target&&w.preventDefault()}),
"on:focus":_.um(function(){_.E("sheet_focus_first_killswitch")||QkK(C.value)}),
class:_.eJ("ytSheetViewModelHost",(S.ytSheetViewModelContextual=!0,S.ytSheetViewModelDisableBackdropFilter=_.E("web_disable_backdrop_filter"),S)),el:C,tabindex:-1},_.q(_.T,{cond:H,then:function(w){return _.q(TfO,{header:function(){return _.q(_.V4,{data:function(){return w().header}},{panelHeaderViewModel:YGt})},
content:function(){return _.q(_.V4,{data:function(){return w().content}},{listViewModel:function(A){return _.q(_.yWW,{data:A.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:aHo,miniAppScoreChallengeViewModel:xGO})},
footer:function(){return _.q(_.V4,{data:function(){return w().footer}},{panelFooterViewModel:_.Xt})}})}}))},"li");
mFi.idomCompat=!0;_.qs(mFi,"yt-sheet-view-model",{props:{data:_.GH}});var yzK=_.n(function(H){var C=function(){var S;return(S=H.data().enableDebuggingFeatures)!=null?S:!1};
return _.q("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.q(_.Vq,{each:function(){var S;return(S=H.data().stickers)!=null?S:[]}},function(S){return _.q(WXR,{data:function(){return S},
debugMode:C})}))},"mi"),WXR=_.n(function(H){var C=_.FH(H,{debugMode:!1}).debugMode,S=_.Jx(function(){var M;
return(M=H.data().region)==null?void 0:M.w},0),w=_.Jx(function(){var M;
return(M=H.data().region)==null?void 0:M.h},0),A=_.Jx(function(){var M;
return(M=H.data().region)==null?void 0:M.x},0),J=_.Jx(function(){var M;
return(M=H.data().region)==null?void 0:M.y},0),c=_.um(function(){var M=H.data().onTap;
M&&_.Im(M)}),Y={};
return _.q("div",{class:_.eJ("ytStoriesStickerLayerViewModelSticker",(Y.ytStoriesStickerLayerViewModelDebugMode=C,Y)),style:_.vb({width:function(){return 100*S()+"%"},
height:function(){return 100*w()+"%"},
left:function(){return 100*A()+"%"},
top:function(){return 100*J()+"%"},
"flex-direction":function(){return Pr9(H.data().flexDirection)},
"justify-content":function(){return $pp(H.data().justifyContent)},
"align-items":function(){return ptt(H.data().alignItems)}}),
"on:click":c},_.q(_.V4,{data:function(){return H.data().button||H.data().toggleButton}},{buttonViewModel:function(M){return _.q(_.rc,{data:M.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(M){return _.q(_.Jv,{data:M.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"ni");var bAO=_.n(function(H){var C=function(){return H.data()},S={},w=_.Jx(function(){return C().backgroundColor},0),A=_.Jx(function(){return C().actionButtons},[]),J=_.Jx(function(){return C().stickerLayer},{}),c=function(){var M,m;
return{animationRef:S,animationConfig:{autoplay:!1,loop:!1,path:(m=(M=C().foregroundAnimation)==null?void 0:M.url)!=null?m:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){H.navigateToNextItemOnLottieComplete()}}}},Y=function(){var M,m,W,y,N,b,u,O;
return{animationConfig:{autoplay:(b=(M=C().backgroundAnimation)==null?void 0:(m=M.settings)==null?void 0:m.autoplay)!=null?b:!1,loop:(u=(W=C().backgroundAnimation)==null?void 0:(y=W.settings)==null?void 0:y.loop)!=null?u:!1,path:(O=(N=C().backgroundAnimation)==null?void 0:N.url)!=null?O:"",name:"stories_item_background_animation"}}};
_.d6(function(){if(H.isVisible()){var M;(M=S.lottieEl)==null||M.play();H.animationRef()&&(H.animationRef().lottieEl=S.lottieEl)}else{var m;(m=S.lottieEl)==null||m.stop()}},"AvUgVe");
return _.q("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.vb({"background-color":function(){return _.aw(w())+";"}})},_.q("div",{class:"ytStoriesItemViewModelAssetContent"},_.q(_.T,{cond:function(){return!!C().backgroundAnimation},
then:function(){return _.q(_.UA,{data:Y,animationName:function(){return Y().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.q(_.T,{cond:function(){return!!C().backgroundImage},
then:function(){return _.q(_.Jg,{data:function(){return C().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.q(_.T,{cond:function(){return!!C().foregroundAnimation},
then:function(){return _.q(_.UA,{data:c,animationName:function(){return c().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.q(_.T,{cond:function(){return!!C().foregroundImage},
then:function(){return _.q(_.Jg,{data:function(){return C().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.q("div",{class:"ytStoriesItemViewModelTopShadow"}),_.q(_.V4,{data:function(){return J()}},{storiesStickerLayerViewModel:yzK})),_.q("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.vb({"background-color":function(){return _.aw(w())}})},_.q("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.q(_.Vq,{each:A},function(M){return _.q(Nf9,{data:function(){return M},
pauseAutoNavigation:H.pauseAutoNavigation})}))))},"oi"),Ehi={style:"overlay",
type:"outline"},Nf9=_.n(function(H){var C={};return _.q("div",{class:_.eJ("ytStoriesItemViewModelActionButton",(C.ytStoriesItemViewModelStretchedActionButton=function(){return H.data().size==="STORIES_BUTTON_SIZE_STRETCH"},C)),
"on:click":_.um(H.pauseAutoNavigation)},_.q(_.V4,{data:function(){return H.data().button}},{buttonViewModel:function(S){return _.q(_.rc,{data:S.data,
buttonOverrides:Ehi})}}))},"pi");var edj={sources:[{url:"https://www.gstatic.com/music/image_composition/dna_recap/youtube_logo_full_color_278x60.png"}]};_.qs(_.n(function(H){var C=function(){var ND;return(ND=H.data().startIndex)!=null?ND:0},S=_.Z(_.fu(C)),w=S.next().value,A=S.next().value;
S=_.Z(_.mB(!1,void 0,"hu8VSd"));var J=S.next().value,c=S.next().value,Y=function(){var ND;return(ND=H.data().storyItems)!=null?ND:[]},M={},m=_.sW("yt-stories-viewer-view-model"),W=function(){return H.data().dismissButton},y=function(){var ND;
return _.L7((ND=_.e(W(),_.qc))==null?void 0:ND.onTap)},N=_.sW("div"),b,u,O=!1,d=function(){var ND;
(ND=b)==null||ND.cancel();b=p(w()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});b.onfinish=function(){var bi=_.e(Y()[w()],dh3),pU,O$;bi!=null&&bi.foregroundAnimation&&((bi==null?0:(pU=bi.foregroundAnimation)==null?0:pU.url)||(bi==null?0:(O$=bi.foregroundAnimation)==null?0:O$.payload))||(w()!==Y().length-1?(A(w()+1),d()):y()&&_.gC(y()))}},p=function(ND){return N.value.children[ND].children[0]},k=function(){for(var ND=0;ND<w();ND++)p(ND).style.transform=
"scaleX(1)"},R=function(){O||(J()?c(!1):(w()===Y().length-1&&y()&&_.gC(y()),p(w()).style.transform="scaleX(1)",w()!==Y().length-1&&(A(w()+1),d())))},L=function(){O||(J()?c(!1):(p(w()).style.transform="scaleX(0)",w()!==0&&A(w()-1),d()))},t=function(){c(!0)},g=function(){p(w()).style.transform="scaleX(1)";
w()!==Y().length-1?(A(w()+1),d()):y()&&_.gC(y())};
S=function(){O=!1;u=setTimeout(function(){c(!0);O=!0},300)};
var ii=function(){clearTimeout(u);O&&J()&&c(!1)};
_.d6(function(){if(J()){var ND;(ND=b)==null||ND.pause();var bi;(bi=M.lottieEl)==null||bi.pause()}else{var pU;(pU=b)==null||pU.play();var O$;(O$=M.lottieEl)==null||O$.play()}},"iO2i3d");
_.d6(function(){k();w()===C()&&d()},"lE01H");
var FW=function(ND){ND.key==="ArrowLeft"?L():ND.key==="ArrowRight"&&R()},cZ=function(ND){if(ND.target===m.value){(ND=y())&&_.gC(ND);
clearTimeout(u);var bi;(bi=b)==null||bi.cancel();window.removeEventListener("keydown",FW);window.removeEventListener("yt-popup-closed",cZ)}},eZ=function(ND){ND.target===m.value&&(window.addEventListener("keydown",FW),window.addEventListener("yt-popup-closed",cZ))};
_.$T(function(){k();d();window.addEventListener("yt-popup-opened",eZ)});
return _.q("yt-stories-viewer-view-model",{el:m,class:_.eJ("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.q("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.q("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.um(L),"on:mousedown":_.um(S),"on:mouseup":_.um(ii),"on:mouseleave":_.um(ii)}),_.q("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.um(R),"on:mousedown":_.um(S),"on:mouseup":_.um(ii),"on:mouseleave":_.um(ii)})),
_.q("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.q(_.V4,{data:Y},{storiesItemViewModel:function(ND,bi){var pU=ND.data;return _.q(_.T,{cond:function(){return Math.abs(bi()-w())<=1},
then:function(){var O$={};return _.q("div",{class:_.eJ("ytStoriesViewerViewModelStoryItem",(O$.ytStoriesViewerViewModelActiveStoryItem=function(){return bi()===w()},O$))},_.q(bAO,{data:pU,
pauseAutoNavigation:t,navigateToNextItemOnLottieComplete:g,isVisible:function(){return bi()===w()},
animationRef:M}))}})}})),_.q("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:N},_.q(_.Vq,{each:Y},function(){return _.q("div",{class:"ytStoriesViewerViewModelProgressBar"},_.q("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.q("div",{class:"ytStoriesViewerViewModelTopBarContainer"},_.q(_.Jg,{data:edj,
alt:"YouTube Logo",className:"ytStoriesViewerViewModelYouTubeLogo"}),_.q("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.q(_.V4,{data:W},{buttonViewModel:_.rc}))))},"qi"),"yt-stories-viewer-view-model",{props:{data:_.GH}});_.qs(_.n(function(H){var C=H.data;var S=_.sW("yt-gen-ai-feedback-form-view-model"),w=[];return _.q("yt-gen-ai-feedback-form-view-model",{el:S,class:"ytGenAiFeedbackFormViewModelHost"},_.q(_.uZ,{text:function(){return C().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.q("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.q(_.V4,{data:function(){return C().feedbackChips}},{toggleButtonViewModel:function(A){var J=A.data;
return _.q(_.Jv,{data:J,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(c){var Y=J();Y=_.e(Y,_.mk);Y=_.e(Y==null?void 0:Y.defaultButtonViewModel,_.qc).trackingParams;c?w.push(Y):(c=w.indexOf(Y),c>-1&&w.splice(c,1))}})}})),_.q(_.uZ,{text:function(){return C().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.q("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.q(_.V4,{data:function(){return C().submitButton}},{buttonViewModel:function(A){return _.q(_.rc,{data:A.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){kbr(S.value,w,C().uniqueId)}})}}),_.q(_.V4,{data:function(){return C().moreFeedbackButton}},{buttonViewModel:function(A){return _.q(_.rc,{data:A.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"ri"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.GH},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var mI=function(){return _.X.apply(this,arguments)||this};
_.G(mI,_.X);mI.prototype.created=function(){mIK(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(Pei);var H=_.JA().resolve(_.$ri);H&&(H.container=this.ytPopupContainerBehavior);if(H=_.JA().resolve(_.wz))H.container=this.ytPopupContainerBehavior;if(H=_.JA().resolve(_.AT)){var C=this.ytPopupContainerBehavior;H.containerWasInjected?_.Bn(Error("mj")):H.container=C}};
mI.prototype.ensurePopupBelowPlayer=function(H,C){var S=_.JA().resolve(_.AA(_.JB));if(!S||!S.isOnWatch()||!_.Zz())return!1;S=S.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.ow().height>S+this.getPopupHeight(H,C)?(H.style.top="auto",H.style.bottom="0px"):(H.style.top=S+"px",H.style.bottom="auto");return!0};
mI.prototype.getPopupHeight=function(H,C){C&&(H.cachedPopupHeight=0);if(!H.cachedPopupHeight){C=0;var S=H.clientHeight,w=window.getComputedStyle(H);C+=parseInt(w.marginTop,10);C+=parseInt(w.marginBottom,10);H.cachedPopupHeight=S+C}return H.cachedPopupHeight};
mI.prototype.getElement=function(H){return document.createElement(H)};
_.D([_.v(Fop.YtPopupContainerBehavior),_.K("design:type",Object)],mI.prototype,"ytPopupContainerBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],mI.prototype,"ytComponentBehavior",void 0);_.D([_.h({disableElementRegistration:!0,is:"ytd-popup-container"})],mI);
_.B(mI,"ytd-popup-container",function(){if(Hyo!==void 0)return Hyo;var H=document.createElement("template");_.f(H,"\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");H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);return Hyo=H},{mode:1});var ukR;var G3O={};G3O.YtLogYpcFlowCommandsBehavior=[_.Lw.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(H){_.e(H,xhK)&&(H=_.e(H,xhK))&&(H.serializedTransactionFlowLoggingParams?_.cKp(H.serializedTransactionFlowLoggingParams):H.serializedYpcCancelFlowLoggingParams?(H=H.serializedYpcCancelFlowLoggingParams)&&_.ET("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",H):H.serializedYpcResumeFlowLoggingParams?(H=H.serializedYpcResumeFlowLoggingParams)&&_.ET("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",H):H.serializedYpcPauseFlowLoggingParams?(H=H.serializedYpcPauseFlowLoggingParams)&&
_.ET("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",H):H.serializedYpcRefundFlowLoggingParams?(H=H.serializedYpcRefundFlowLoggingParams)&&Zf_("YPC_EVENT_TYPE_START",H):H.serializedYpcDeactivateFlowLoggingParams?(H=H.serializedYpcDeactivateFlowLoggingParams)&&_.ET("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",H):H.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(H=H.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.ET("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",H))},
handleLogYpcFlowDismiss_:function(H){_.e(H,a$9)&&(H=_.e(H,a$9),H.serializedTransactionFlowLoggingParams?_.Yru(H.serializedTransactionFlowLoggingParams):H.serializedYpcCancelFlowLoggingParams?(H=H.serializedYpcCancelFlowLoggingParams)&&_.ET("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",H):H.serializedYpcResumeFlowLoggingParams?(H=H.serializedYpcResumeFlowLoggingParams)&&_.ET("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",H):H.serializedYpcPauseFlowLoggingParams?(H=
H.serializedYpcPauseFlowLoggingParams)&&_.ET("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",H):H.serializedYpcRefundFlowLoggingParams&&(H=H.serializedYpcRefundFlowLoggingParams)&&Zf_("YPC_EVENT_TYPE_CANCEL",H))}}];var fEj={};fEj.YtCancelRecurrenceBehavior=[_.mL.YtComponentBehavior,_.UFd,{attached:function(){var H=this;H5p(this,function(C,S){return H.ypcCancelRecurrenceHandler(C,S)})},
ypcCancelRecurrenceHandler:function(H,C){var S=this;if(!C||!C.ypcCancelRecurrenceEndpoint)return!1;if(!C.ypcCancelRecurrenceEndpoint.params)return _.tE(Error("Ml")),!0;_.th(this.hostElement);var w=_.xb.instance,A=_.JA().resolve(_.AA(_.tG));w&&_.Ht(w,C)?_.ir(w,C).then(function(J){S.ypcCancelRecurrenceSuccess_(H,C,{data:J})},function(J){S.ypcCancelRecurrenceFailure_(H,C,J)}).thenCatch(function(){_.tE(Error("Nl"))}):A?A.requestDataForServiceEndpoint(C).then(function(J){S.ypcCancelRecurrenceSuccess_(H,
C,J)},function(J){S.ypcCancelRecurrenceFailure_(H,C,J)}).thenCatch(function(){_.tE(Error("Nl"))}):_.tE(Error("Ol"));
return!0},
ypcCancelRecurrenceSuccess_:function(H,C,S){_.LN(this.hostElement);S.data||(S={data:S});S.data&&S.data.actions&&_.yN(this.hostElement,S.data.actions,this.hostElement);S.data.messageRenderer?Yxi(C.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(C=C.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.ET("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",C);_.M3(H,"yt-service-request-completed",S)},
ypcCancelRecurrenceFailure_:function(H,C,S){_.LN(this.hostElement);Yxi(C.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.M3(H,"yt-service-request-error",{error:S,params:[H,C]})}}];var vhK=function(H,C){_.CU.call(this,C)};
_.G(vhK,VMp);var lEK={};lEK.YtCompleteTransactionBehavior=[_.mL.YtComponentBehavior,_.UFd,{attached:function(){var H=this;H5p(this,function(C,S){return H.ypcCompleteTransactionHandler(C,S)})},
completeTransaction:function(H,C){var S=this;C={payments_payload:window.btoa(C.integratorData),buybucket_params:H.data.buybucketParams,offer_params:H.data.offerParams};var w=_.JA().resolve(_.tG),A=H.data.completeTransactionEndpoint,J=this.get("ypcCompleteTransactionEndpoint.actions",A);J&&_.yN(this.hostElement,J,this.hostElement);return(J=_.xb.instance)&&_.Ht(J,A)?_.ir(J,A,C).then(function(c){return!c||(c==null?0:c.error)?(c=S.get("data.serializedTransactionFlowLoggingParams",H),_.kj(new Fq("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
c))):{data:c}}).then(function(c){return S.handleCompleteTransactionSuccess_(c,H)},function(){return S.handleCompleteTransactionFailure_(H)}):w.requestDataForServiceEndpoint(A,C).then(function(c){return S.handleCompleteTransactionSuccess_(c,H)},function(){return S.handleCompleteTransactionFailure_(H)})},
handleCompleteTransactionSuccess_:function(H,C){H.data||(H={data:H});if(H.data.messageRenderer)return _.kj(new vhK(H.data.messageRenderer));if(H.data.trackingParams){var S=_.Dg(),w=_.BM();S&&w&&_.ak(S,w,_.Qh(H.data.trackingParams))}C=this.get("data.serializedTransactionFlowLoggingParams",C);cGi(C);return _.N3(H)},
handleCompleteTransactionFailure_:function(H){H=this.get("data.serializedTransactionFlowLoggingParams",H);_.js("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",H);return _.kj(new Fq("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",H))},
ypcCompleteTransactionHandler:function(H,C){var S=this;if(!C.ypcCompleteTransactionEndpoint)return!1;if(!C.ypcCompleteTransactionEndpoint.transactionParams)return _.tE(Error("Pl")),!0;C.ypcCompleteTransactionEndpoint&&C.ypcCompleteTransactionEndpoint.gtmData&&_.wc(C.ypcCompleteTransactionEndpoint.gtmData);var w=_.JA().resolve(_.AA(_.tG));if(w){_.th(this.hostElement);var A=_.xb.instance;A&&_.Ht(A,C)?_.ir(A,C).then(function(J){return!J||(J==null?0:J.error)?(J=S.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
C),_.kj(new Fq("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",J))):{data:J}}).then(function(J){_.M3(H,"yt-service-request-completed");
S.ypcCompleteTransactionSuccess_(C,J)},function(){return S.ypcCompleteTransactionFailure_(C)}):w.requestDataForServiceEndpoint(C).then(function(J){_.M3(H,"yt-service-request-completed");
S.ypcCompleteTransactionSuccess_(C,J)},function(){return S.ypcCompleteTransactionFailure_(C)})}return!0},
ypcCompleteTransactionSuccess_:function(H,C){_.LN(this.hostElement);C.data||(C={data:C});_.q3(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);C.data.messageRenderer||C.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(H):(_.wc('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",H));C.data.actions&&(H=XbR(C.data.actions),C=QWi(C.data.actions),H.length&&_.WH(this.hostElement,
H),C.length&&_.yN(this.hostElement,C,this.hostElement))},
ypcCompleteTransactionFailure_:function(H){_.LN(this.hostElement);_.q3(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",H,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(H,C,S){if(C=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",C))C={serializedTransactionFlowLoggingParams:C},S&&(C.errorType=S),_.kI(H,C),_.ht()}}];var V0o={};V0o.YtEndpointHandlerWithYpcBehavior=[_.UFd,_.Lw.YtActionHandlerBehavior,[{openWalletDialog:function(H,C,S,w,A,J,c){var Y=this,M=_.Cn();C=C.replace(/-/g,"+").replace(/_/g,"/");var m=_.VN().get("hl");_.c3W(_.j9(_.wE),C,M.resolve,A,function(W){J&&J();M.reject(W)},m,function(W){return Y.onServerBackendAnalyticEvent_(H,S,W)},this.onDialogClose_.bind(this),w,c);
return M.promise},
openFixFlowDialog:function(H,C,S,w){H=H.replace(/-/g,"+").replace(/_/g,"/");_.j9(_.wE).openFixFlowDialog(H,C,S,w)},
onDialogClose_:function(){_.q3(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(H,C,S){_.M3(H,"yt-commerce-action-init-done");C&&_.WH(this.hostElement,[C,{backend_analytics:S}])}}],
_.Kw.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(H,C){H=this.get("data.nativeFlowEndpoint",C);C=this.get("data.fallbackEndpoint",C);H?_.WH(this.hostElement,[H]):C&&_.M3(this.hostElement,"yt-navigate",{endpoint:C})}}],
fEj.YtCancelRecurrenceBehavior,lEK.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 H=this;H5p(this,function(C,S,w){return H.handleYPCEndpoint(C,S,w)});
this.ypcRegisterActionMapJobId_=_.X2(_.rT,function(){H.registerActionMap(H.buyFlowActionMap_)})},
detached:function(){var H=this;_.rT.cancelJob(this.ypcRegisterActionMapJobId_);_.X2(_.rT,function(){H.unregisterActionMap(H.buyFlowActionMap_)})},
handleYPCEndpoint:function(H,C,S){var w=C.ypcGetCartEndpoint;if(w){_.BH("commerce_transaction");var A=w.gtmId;A&&_.jx(A);(w=w.gtmData)&&_.wc(w)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",C)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(H,C),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",C)!=null?(this.handleYPCFixInstrumentEndpoint_(H,C),!0):C.ypcPauseSubscriptionCommand?(gir(this.hostElement,H,C,S),
!0):C.ypcResumeSubscriptionCommand?(IzK(this.hostElement,H,C),!0):C.getPaymentInstrumentsParamsCommand?(K_t(this.hostElement,H,C),!0):C.ypcHandleTransactionEndpoint?(BwO(this.hostElement,H,C,S),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(H,C){var S=this;_.DR("ttcr",void 0,"commerce_transaction");C=C.ypcGetCartEndpoint;var w=C.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,A=w.encryptedPurchaseParams,J=w.serializedTransactionFlowLoggingParams,c=w.serializedPaymentsClientParams,Y=this.createGetCartResponseFromParams_(w,C.offerParams,J);this.changeButtonState(H,!0);_.rL(this.openWalletDialog(H,A,w.ypcLogWalletAnalyticDataEndpoint,J,function(){S.changeButtonState(H,!1)},function(){S.changeButtonState(H,
!1)},c).then(function(M){return S.handleBuyFlowCompleteCallback_(H,Y,M)},function(){return S.handleOnLoadError(Y)}).then(function(M){return void S.handlePostPurchaseSuccess_(H,Y,M)},function(M){return void S.handlePostPurchaseError_(M)}),function(){S.changeButtonState(H,!1);
H instanceof Element&&_.M3(H,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(H,C,S){var w=H.completeTransactionEndpoint,A=H.handleTransactionEndpoint;C={data:{offerParams:window.btoa(C),serializedTransactionFlowLoggingParams:S}};A?C.data.handleTransactionEndpoint=A:C.data.completeTransactionEndpoint=w;H.onCartDismissCommand&&(C.data.onCartDismissCommand=H.onCartDismissCommand);return C},
onGetCartServiceRequestCompleted_:function(H,C){var S=this,w=H.target;if(C&&C.data&&C.data.messageRenderer)_.LN(this.hostElement),this.handleMessageRenderer_(C.data.messageRenderer),this.changeButtonState(w,!1);else{var A=this.get("data.encryptedPurchaseParams",C),J=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",C),c=this.get("data.ypcLogWalletAnalyticDataEndpoint",C),Y=this.get("data.serializedPaymentsClientParams",C),M=this.getLoggingParams_(C);if(M||A||J)H.stopPropagation(),_.DR("ttcr",
void 0,"commerce_transaction"),A||_.LN(this.hostElement),this.changeButtonState(w,!1),J?_.q3(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.rh("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:J}}},this]):A&&(this.changeButtonState(w,!0),H=null,H=this.openWalletDialog(w,A,c,M,function(){_.LN(S.hostElement);S.changeButtonState(w,!1)},function(){_.LN(S.hostElement);
S.changeButtonState(w,!1)},Y),_.rL(H.then(function(m){return S.handleBuyFlowCompleteCallback_(w,C,m)},function(){return S.handleOnLoadError(C)}).then(function(m){return S.handlePostPurchaseSuccess_(w,C,m)},function(m){return S.handlePostPurchaseError_(m)}),function(){S.changeButtonState(w,!1);
_.M3(w,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(H,C){C&&C.endpoint&&C.endpoint.ypcGetCartEndpoint&&!C.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",C.endpoint.ypcGetCartEndpoint)&&_.yN(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",C.endpoint.ypcGetCartEndpoint)],H.target),_.th(this.hostElement),this.changeButtonState(H.target,!0))},
onServiceRequestError_:function(H,C){if(C&&C.params&&C.params.length){C=_.Z(C.params);for(var S=C.next();!S.done;S=C.next())if((S=S.value)&&S.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",S.ypcGetCartEndpoint)&&_.yN(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",S.ypcGetCartEndpoint)],H.target);_.LN(this.hostElement);this.changeButtonState(H.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(H,C,S){var w=S.integratorData;return w==null||w===""||S.error!=null?(w=this.getLoggingParams_(C),String(S.error)==="-1"?(C.data.onCartDismissCommand&&_.yN(this.hostElement,[C.data.onCartDismissCommand],H),_.kj(new Fq("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",w,!0))):_.kj(new Fq("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",w))):C.data.handleTransactionEndpoint?DpK(this.hostElement,C.data.handleTransactionEndpoint,{payments_payload:w,funds_guarantee_callback_client_data:S.integratorClientCallbackData}):
this.completeTransaction(C,S)},
handlePostPurchaseSuccess_:function(H,C,S){C=S.data;var w=!1,A,J;if(C&&((A=C.command)==null?0:(J=A.commandExecutorCommand)==null?0:J.commands)){var c,Y;A=(c=C.command)==null?void 0:(Y=c.commandExecutorCommand)==null?void 0:Y.commands;for(c=0;c<A.length;c++)if(_.e(A[c],_.Qnd)){w=!0;break}}w||(C&&C.gtmDatas&&C.gtmDatas.length?_.wc(C.gtmDatas[0]):_.wc('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));S.data&&S.data.actions&&(C=XbR(S.data.actions),S=QWi(S.data.actions),C.length&&
_.WH(this.hostElement,C),S.length&&_.yN(this.hostElement,S,H))},
handlePostPurchaseError_:function(H){H&&H.payload&&H.payload.isUserDismiss||_.nC(Error("Rl"))},
handleOnLoadError:function(H){H=this.getLoggingParams_(H);return _.kj(new Fq("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",H))},
getLoggingParams_:function(H){return this.get("data.serializedTransactionFlowLoggingParams",H)},
handleMessageRenderer_:function(H){var C=_.kT(H,"renderer"),S=_.rh("openPopupConfig");C==="confirmDialogRenderer"&&S&&_.q3(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:S.popupTypeMap[C],popup:H}},this])},
handleYPCFixInstrumentEndpoint_:function(H,C){var S=this,w=C.ypcFixInstrumentEndpoint;C=w.encryptedFixInstrumentParameters;this.logFixFopEvent_(w,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(H,!0);this.openFixFlowDialog(C,function(A,J){S.onFixFlowCompleteCallback_(w,A,J)},function(){return S.changeButtonState(H,!1)},function(){S.changeButtonState(H,!1);
S.logFixFopEvent_(w,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(H,C,S){var w=_.gh("payments.business.integration.scenario.FixInstrument");if(C==w.IntegratorCallbackType.ON_COMPLETE){C="FIX_FOP_EVENT_TYPE_CANCEL";var A=null;S.error!=null?S.error!=w.OnCompleteCallbackError.USER_CANCELLED&&(_.yN(this.hostElement,[H.errorAction],this.hostElement),C="FIX_FOP_EVENT_TYPE_FAILURE",A="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.yN(this.hostElement,[H.successAction],this.hostElement),C="FIX_FOP_EVENT_TYPE_SUCCESS");_.yN(this.hostElement,[H.onFinishAction],
this.hostElement);this.logFixFopEvent_(H,C,A)}},
logFixFopEvent_:function(H,C,S){(H=H.serializedFixFopLoggingParams)?(C={eventType:C,serializedFixFopLoggingParams:H},S!=null&&(C.errorType=S),_.kI("fixFopFlow",C),_.ht()):_.nC(Error("Sl"))},
changeButtonState:function(H,C){_.E("enable_ypc_spinners")&&H&&(H.is==="yt-button-renderer"||H.is==="ytd-button-renderer")&&(H.disabled=C)}}];var ohK=function(H){this.JSC$32431_clientRoot=H;this.feedbackCollectorActionMap={"yt-help-dialog-requested":xp_,"yt-feedback-dialog-requested":azO,"yt-signal-action-help":HN3,"yt-signal-action-send-feedback":iNp,"yt-send-feedback-action":Sjo,"yt-user-feedback-endpoint":sJR};_.xI(_.a8.getInstance(),this.feedbackCollectorActionMap,this.JSC$32431_clientRoot)},OAO;var XkK=function(H){this.JSC$32436_clientRoot=H;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":jJ3.bind(null,this.JSC$32436_clientRoot),"yt-signal-action-delete-all-downloads":AhO,"yt-signal-action-delete-download":Jhi,"yt-signal-action-delete-playlist-download":ZNo,"yt-signal-action-install-pwa":T$K,"yt-signal-action-refresh-downloads":MAi,"yt-offline-video-endpoint":WRp,"yt-offline-playlist-endpoint":N$_,"yt-update-local-app-setting-command":EQi,"yt-offline-orchestration-action-command":ueO,
"yt-signal-action-undo-delete-download":Yj3,"yt-local-watch-history-command":vQO};_.xI(_.a8.getInstance(),this.downloadManagerActionMap,this.JSC$32436_clientRoot);_.kF.instance=new _.kF},Qg9;var WD=function(){var H=_.X.apply(this,arguments)||this;H.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_"};H.remoteApi_=null;return H};
_.G(WD,_.X);_.F=WD.prototype;
_.F.ready=function(){_.E("polymer_enable_mdx")&&(cgR({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.E("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.E("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.E("enable_cast_short_lived_lounge_token")}),_.T8("yt-remote-connection-change",this.handleConnectionChange_,this),_.T8("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=yg_())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.F.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.F.handleConnectionChange_=function(H){(this.mdxConnected=H)?(H=MJ9(),!H&&a5i()&&xW9()&&(H={key:"cast-selector-receiver",name:xW9()}),H=H.name):H=null;this.receiverName=H;_.Ak(this.remoteApi_);(this.remoteApi_=yg_())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.F.handleReceiverAvailabilityChange_=function(){var H=zep();a5i()&&_.BU("yt-remote-cast-available")&&H.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=H.length>0};
_.F.handleRemoteQueueChange_=function(){var H=this.currentVideoId_,C=this.currentListId_,S=ZO(this.remoteApi_);this.currentVideoId_=S.videoId;this.currentListId_=S.listId;this.currentVideoId_&&_.q3(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.E("polymer_enable_mdx_queue")?this.currentListId_:null,H,C])};
_.F.handleAddToQueueAction_=function(H){H=_.e(H,PQi);this.remoteApi_&&(H.videoId?this.remoteApi_.addVideo(H.videoId):H.playlistId&&this.remoteApi_.addPlaylist(H.playlistId))};
_.F.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.F.handleInsertInQueueAction_=function(H){H=_.e(H,$hR);this.remoteApi_&&H.videoId&&this.remoteApi_.JSC$19853_insertVideo(H.videoId)};
_.F.handleRemoveFromQueueAction_=function(H){H=_.e(H,pmR);this.remoteApi_&&H.videoId&&this.remoteApi_.JSC$19853_removeVideo(H.videoId)};
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],WD.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V(),_.K("design:type",Object)],WD.prototype,"appId",void 0);_.D([_.V(),_.K("design:type",Boolean)],WD.prototype,"mdxConnected",void 0);_.D([_.V(),_.K("design:type",Boolean)],WD.prototype,"receiverAvailable",void 0);_.D([_.V(),_.K("design:type",Object)],WD.prototype,"receiverName",void 0);_.D([_.V(),_.K("design:type",Object)],WD.prototype,"currentVideoId_",void 0);
_.D([_.V(),_.K("design:type",Object)],WD.prototype,"currentListId_",void 0);_.D([_.Lx({is:"yt-mdx-manager",disableElementRegistration:!0})],WD);_.B(WD,"yt-mdx-manager",void 0,{mode:2});var dFO;var P_9;var y$=function(){var H=_.X.apply(this,arguments)||this;H.APP_IDS={ytr:3,ytm:5};H.JSC$21074_timeoutId_=0;H.actionMap={"yt-open-create-family-dialog":"open"};return H};
_.G(y$,_.X);_.F=y$.prototype;_.F.created=function(){mIK(2200)};
_.F.detached=function(){this.observer_&&this.observer_.disconnect()};
_.F.open=function(H,C){var S=this,w=H.serializedYpcFamilyCreateLoggingParams;this.JSC$21074_timeoutId_=setTimeout(this.abort_.bind(this,H.postFlowErrorEndpoint,w),3E4);C&&(this.onReadyCallback_=C);var A=_.mY(this.hostElement).querySelector("#unicorn-iframe");w&&w&&F6R("ypcFamilyCreateFlowStarted",w);_.K9u("family_creation",function(){var J=_.gh("gapi.family_creation.render");_.gh("gapi.config.update")("iframes/family_creation/url",S.getFamilyCreationUrlWithUnicornParams_());var c=3;H.appId&&H.appId in
S.APP_IDS&&(c=S.APP_IDS[H.appId]);c={authUser:_.rh("SESSION_INDEX")||0,clientId:c,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.rh("HL"),initialflow:[4,5,6,7],m:S.isMobile?1:0,onFlowComplete:S.onUnicornFlowComplete_.bind(S,H.postFlowSuccessEndpoint,w),onError:S.onUnicornFlowError_.bind(S,H.postFlowErrorEndpoint,w),onReady:S.onUnicornFlowReady_.bind(S,H.referencePcidParams)};J(A,c)})};
_.F.close=function(){_.mY(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.F.onUnicornFlowComplete_=function(H,C){this.close();C&&C&&F6R("ypcFamilyCreateFlowSucceeded",C);_.M3(this.hostElement,"yt-navigate",{endpoint:H})};
_.F.onUnicornFlowError_=function(H,C){this.close();C&&F6R("ypcFamilyCreateFlowCancelled",C);_.M3(this.hostElement,"yt-navigate",{endpoint:H})};
_.F.onUnicornFlowReady_=function(H){var C=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();H&&_.gh("gapi.family_creation.setConfig")(0,H);this.observer_=new MutationObserver(function(){_.mY(C.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.mY(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.mY(this.hostElement).querySelector("#dialog").open()};
_.F.getFamilyCreationUrlWithUnicornParams_=function(){return _.rh("YTR_FAMILY_CREATION_URL")};
_.F.getCurrentUrl_=function(){return document.location.href};
_.F.abort_=function(H,C){this.clearTimeout_();this.onUnicornFlowError_(H,C)};
_.F.clearTimeout_=function(){clearTimeout(this.JSC$21074_timeoutId_)};
_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],y$.prototype,"ytActionHandlerBehavior",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],y$.prototype,"isMobile",void 0);_.D([_.V(),_.K("design:type",Object)],y$.prototype,"onReadyCallback_",void 0);_.D([_.V(),_.K("design:type",Object)],y$.prototype,"observer_",void 0);_.D([_.Lx({is:"yt-create-family-dialog",disableElementRegistration:!0})],y$);
_.B(y$,"yt-create-family-dialog",function(){if(P_9===void 0){var H=document.createElement("template");_.f(H,'\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');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);var C=H.content,S=C.insertBefore;dFO===void 0&&(dFO=document.createElement("template"));var w=dFO;S.call(C,w.content.cloneNode(!0),H.content.firstChild);P_9=H}H=P_9;return H},{mode:2});var $Ft;var pkR;var Na=function(){var H=_.X.apply(this,arguments)||this;H.STEP=1;H.BLOCK_ON=80;H.MIN_PROGESS=0;H.MAX_PROGESS=100;return H};
_.G(Na,_.X);_.F=Na.prototype;_.F.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.F.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));_.JA().addProvider({provide:yKO,useValue:this})};
_.F.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.F.finish=function(){var H=this;this.progress=this.MAX_PROGESS;lBi(function(){H.progress==H.MAX_PROGESS&&(H.hostElement.hidden=!0)})};
_.F.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.JJ.Object.defineProperties(Na.prototype,{progress:{configurable:!0,enumerable:!0,set:function(H){this.progress_=H;var C="scaleX("+H/this.MAX_PROGESS+")",S=_.mY(this.hostElement).querySelector("#progress").style;S.transform=C;S.webkitTransform=C;this.hostElement.setAttribute("aria-valuenow",String(H))},
get:function(){return this.progress_}}});
_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],Na.prototype,"ytComponentBehavior",void 0);_.D([_.Lx({is:"yt-page-navigation-progress",disableElementRegistration:!0})],Na);
_.B(Na,"yt-page-navigation-progress",function(){if(pkR===void 0){var H=document.createElement("template");_.f(H,'\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');H.content.insertBefore(_.U().content.cloneNode(!0),
H.content.firstChild);var C=H.content,S=C.insertBefore;$Ft===void 0&&($Ft=document.createElement("template"));var w=$Ft;S.call(C,w.content.cloneNode(!0),H.content.firstChild);pkR=H}H=pkR;return H},{mode:2});var k3i={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"},hdq={"font-size":"12px","font-style":"italic"},nho={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.XQp=function(){return _.z(function(H){_.oT(H)})};var rz_=_.n(function(H){var C=function(){return H.data().subtext},S={};
return _.q("snackbar-view-model",{class:_.eJ("snackbarViewModelHost",H.className)},_.q("div",{class:_.eJ("snackbarViewModelEngagementBarWrapper",H.className)},_.q(_.T,{cond:function(){return H.data().image},
then:function(w){return _.q(_.Jg,{data:w,alt:"",targetWidth:86,preserveWidth:!0,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",className:"snackbarViewModelImageContainer"})}}),_.q(_.T,{cond:function(){return H.data().imageContent},
then:function(){return _.q("div",{class:"snackbarViewModelAvatarContainer"},_.q(_.V4,{data:function(){return H.data().imageContent}},{decoratedAvatarViewModel:_.cG}))}}),_.q("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.q("div",{class:_.eJ((S.snackbarViewModelTitle=!0,S.snackbarViewModelTitleWithSubtext=C,S))},_.q(_.uZ,{text:function(){return H.data().text}})),_.q(_.T,{cond:C,
then:function(){return _.q("div",{class:"snackbarViewModelSubtext"},_.q(_.uZ,{text:function(){return C()}}))}})),_.q(_.T,{cond:function(){return H.data().buttons},
then:function(){return _.q("div",{class:"snackbarViewModelButtonClassWrapper"},_.q(_.V4,{data:function(){return H.data().buttons}},{buttonViewModel:function(w){return _.q(_.rc,{data:w.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:H.target})}}))}})))},"si");_.qs(_.n(function(){function H(k,R,L){u(k);d(L);N("in");W(!0);C(k,R);c=setTimeout(function(){S()},R)}
function C(k,R){var L,t=(L=k.text)==null?void 0:L.content;k=_.nn(k.rendererContext);t&&(R={label:t,command:k,durationMs:R},_.JA().resolve(_.jX).enqueue(R))}
function S(k){N("out");k&&clearTimeout(c)}
function w(){S(!0)}
function A(k){if(k){var R=k.snackbarViewModel,L=k.durationMs,t=k.target;L||(L=3E3);R&&(k=_.JA().resolve(_.AA(_.HT)))&&k.enqueue({isOpened:m,open:function(){H(R,L,t)},
close:S},0)}}
var J=_.ja("snackbar-container"),c=void 0,Y=_.Z(_.mB(!1,void 0,"mDc5N")),M=Y.next().value;Y=Y.next().value;var m=M,W=Y;M=_.Z(_.mB("out",void 0,"FpOs5e"));var y=M.next().value,N=M.next().value;M=_.Z(_.mB(void 0,void 0,"jIDRob"));var b=M.next().value,u=M.next().value;M=_.Z(_.mB(void 0,void 0,"kOA3Mb"));var O=M.next().value,d=M.next().value,p=_.um(function(){if(y()==="out"){W(!1);u(void 0);d(void 0);var k=_.JA().resolve(_.AA(_.HT));k&&VCt(k,0)}});
_.$T(function(){var k=_.JA().resolve(_.AA(_.S_3));k&&(k.showSnackbarFn=A,k.closeSnackbarFn=w)});
return _.q("snackbar-container",{class:"ytSnackbarContainerHost",el:J},_.q(_.T,{cond:function(){return m()&&!!b()},
then:function(){var k={};return _.q("div",{class:_.eJ("ytSnackbarContainerSnackbarContainer",(k.ytSnackbarContainerMobile=!1,k.ytSnackbarContainerPivotBar=function(){var R;return!((R=_.JA().resolve(_.AA(_.sOi)))==null||!R())},k.ytSnackbarContainerOpened=function(){return m()&&y()==="in"},k.ytSnackbarContainerClosed=function(){return m()&&y()==="out"},k)),
"on:animationend":p},_.q(rz_,{data:function(){return b()},
target:function(){return O()}}))}}))},"ti"),"snackbar-container");_.qs(_.U4Y,"yt-tooltip");var Bft=_.b9t.ephemeralActionSelector;_.qs(_.n(function(){var H=_.Lu(Bft);return _.q("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var C;return(C=H())==null?void 0:C.announcement})},"ui"),"yt-ephemeral-actions");var IB9=new Map;var D3q=function(H,C){var S=this;this.handleError=H;this.logEventInternal=C;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){S.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
D3q.prototype.logError=function(H){this.handleError(H)};
D3q.prototype.logEvent=function(H,C){switch(H){case "IDB_DATA_CORRUPTED":_.E("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",C);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",C);break;case "IS_SUPPORTED_COMPLETED":_.E("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",C);break;case "QUOTA_EXCEEDED":DFp(this,C);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",C);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":H=Object.assign({},C,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",H)}};
var DFp=function(H,C){_.Aq.getInstance().estimate().then(function(S){S=Object.assign({},C,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:xNr(S==null?void 0:S.usage),deviceStorageQuotaMbytes:xNr(S==null?void 0:S.quota)});H.logEventInternal("idbQuotaExceeded",S)})};var KX3=_.n(function(H){var C=_.sW("yt-draggable"),S=H.onDrag,w=H.onDragStart,A=H.onDragEnd,J=_.FH(H,{allowClicks:!1,dragThreshold:5}),c=J.dragThreshold,Y=J.allowClicks;H=J.children;J=J.className;var M=void 0,m=void 0,W=new _.rx(0,0),y=!1;_.$T(function(){M=new _.iM(C.value);m=new _.cM(b);N(M,m);if(Y()){_.rOd(M,c());var O;(O=C.value)==null||O.addEventListener("click",u,{capture:!0})}_.PN(function(){var d;(d=M)==null||d.dispose();if(Y()){var p;(p=C.value)==null||p.removeEventListener("click",u,{capture:!0})}})});
var N=function(O,d){_.PI(O,"earlycancel",function(){Y()&&(y=!1)});
_.PI(O,"start",function(p){w==null||w(p);p.defaultPrevented||Y()&&(y=!0)});
_.PI(O,"beforedrag",function(p){M&&m&&(p.preventDefault(),W=new _.rx(p.clientX-M.startX,p.clientY-M.startY),m.start())});
_.PI(O,"end",function(){d.stop();A==null||A();W=new _.rx(0,0)})},b=function(){W&&S(W)},u=function(O){y&&(y=!1,O.stopPropagation(),O.preventDefault())};
return _.q("yt-draggable",{el:C,class:_.eJ("ytDraggableComponentHost",J)},H)},"vi");var t0j=_.n(function(H){var C=_.Z(_.mB(0,void 0,"Qf0tbc")),S=C.next().value,w=C.next().value;C=function(A){var J={},c={};return _.q(KX3,{className:_.eJ("ytdMiniplayerComponentResizer",(J.ytdMiniplayerComponentResizerDisabled=function(){return A===H.horizontalAlignment()||A===H.verticalAlignment()},J.ytdMiniplayerComponentResizerNorth=A==="north",J.ytdMiniplayerComponentResizerEast=A==="east",J.ytdMiniplayerComponentResizerSouth=A==="south",J.ytdMiniplayerComponentResizerWest=A==="west",J)),
onDragStart:function(){w(H.currentMiniplayerSize());if(H.onResizeStart)H.onResizeStart()},
onDrag:function(Y){A!=="north"&&A!=="west"||Y.scale(-1);var M;Y=(M=A==="north"||A==="south")?Y.y:Y.x;var m=H.currentAspectRatio();M&&m>=1?Y*=m:!M&&m<1&&(Y/=m);M=Y;H.onResize(S()+M)}},_.q("div",{class:_.eJ("ytdMiniplayerComponentResizerCorner",(c.ytdMiniplayerComponentResizerNorthCorner=A==="north",c.ytdMiniplayerComponentResizerEastCorner=A==="east",c.ytdMiniplayerComponentResizerSouthCorner=A==="south",c.ytdMiniplayerComponentResizerWestCorner=A==="west",c))}))};
return _.q("div",{class:"ytdMiniplayerComponentResizers"},C("north"),C("east"),C("south"),C("west"))},"wi");var LXi=16/9;_.qs(_.n(function(){var H=_.sW("ytd-miniplayer"),C=_.Z(_.mB(new _.vj(NaN,NaN),void 0,"GhwGi")),S=C.next().value,w=C.next().value;C=_.Z(_.mB(!1,void 0,"YCGMub"));var A=C.next().value,J=C.next().value;C=_.Z(_.mB(!1,void 0,"tMABIb"));var c=C.next().value,Y=C.next().value;C=_.Z(_.mB(!1,void 0,"XAbRxc"));var M=C.next().value,m=C.next().value;C=_.Z(_.mB(!1,void 0,"qcycIb"));var W=C.next().value,y=C.next().value;C=_.Z(_.mB(!1,void 0,"HJauAf"));var N=C.next().value,b=C.next().value;C=_.Z(_.mB(!1,void 0,"P0Rfsf"));
var u=C.next().value,O=C.next().value;C=_.Z(_.mB(LXi,void 0,"mfCCDe"));var d=C.next().value,p=C.next().value,k=_.Z(_.mB(!1,void 0,"QfcC7b"));C=k.next().value;var R=k.next().value;k=_.Z(_.mB(!1,void 0,"armgtc"));var L=k.next().value,t=k.next().value;k=_.Z(_.mB(void 0,void 0,"yK0pGf"));var g=k.next().value,ii=k.next().value;k=_.Z(_.mB(_.rh("HTML_DIR")==="rtl"?"west":"east",void 0,"GHCzub"));var FW=k.next().value,cZ=k.next().value;k=_.Z(_.mB("south",void 0,"aWTWh"));var eZ=k.next().value,ND=k.next().value;
k=_.Z(_.mB(400,void 0,"IY6bpb"));var bi=k.next().value,pU=k.next().value,O$=_.JA().resolve(_.Df).miniplayerPropSignalMap[0],R0=O$.data,m1=O$.externalPlaylistData;k=O$.toastData;var c7=O$.playabilityStatus,tV=O$.isReadyToResume,Td=O$.isDisabled,Mi=O$.watchWhile,fP=O$.playerVe,eo=O$.expandVe,Cr=O$.closeVe,wu=O$.readyToResumeVe,xE=O$.readyToResumeCloseVe,En=O$.repositionVe,So=O$.resizeVe;O$=_.Z(_.fu(tV));var qi=O$.next().value,H3=O$.next().value,I2=!1,RV=!1,YM;_.$T(function(){w(_.ow());H.value.addEventListener("animationend",
function(nP){nP.target===H.value&&(b(!1),O(!1))});
jhi(H.value)});
_.iy("yt-window-resized",function(nP){nP&&w(nP)});
var LP=function(){YM&&p(YM.getVideoAspectRatio())},yO=function(){if(YM){var nP=YM.getPlayerState()===1;
qi()&&nP&&H3(!1)}},lY=function(){var nP=eo();
if(nP){var Kr=_.Dg(3);Kr&&_.Sp(Kr,nP)}},Gd=function(){var nP=Cr(),Kr=xE();
nP&&_.Sp(_.Dg(3),nP);tV()&&Kr&&_.Sp(_.Dg(3),Kr)};
_.iy("yt-activate-miniplayer",function(nP){var Kr;return _.z(function(U_){if(U_.nextAddress==1)return A()?U_.return():U_.yield((Kr=_.JA().resolve(_.Df).getPlayerElement())==null?void 0:Kr.getPlayerPromise(),2);YM=U_.yieldResult;if(!YM)return U_.return();!L()&&_.E("kevlar_watch_while_v2")&&(ND(nP&&!_.E("kevlar_watch_while_bottom_align")?"north":"south"),cZ(_.rh("HTML_DIR")==="rtl"?"west":"east"));var Nr=YM;Nr.addEventListener("onVideoDataChange",LP);Nr.addEventListener("onStateChange",yO);Nr.addEventListener("onExpandMiniplayer",
lY);Nr.addEventListener("onCloseMiniplayer",Gd);p(YM.getVideoAspectRatio());J(!0);sh3()||b(!0);_.oT(U_)})});
_.iy("yt-deactivate-miniplayer",function(nP){return _.z(function(Kr){if(!A())return Kr.return();J(!1);H3(!1);O(nP);y(!1);Y(!1);if(YM){var U_=YM;U_.removeEventListener("onVideoDataChange",LP);U_.removeEventListener("onStateChange",yO);U_.removeEventListener("onExpandMiniplayer",lY);U_.removeEventListener("onCloseMiniplayer",Gd)}sh3()||b(!0);_.oT(Kr)})});
var W3=function(){return!(Mi()&&_.E("kevlar_watch_while_modern"))},sM=function(){var nP;
return!((nP=m1())==null||!nP.contents)},M9=function(){var nP=bi();
var Kr=S();Kr=Math.min(Math.min(Kr.width,Kr.height)-32,720);var U_=d(),Nr=W3(),ME=sM()&&c(),yX=Math.min(nP,Kr);nP=new _.vj(192,Nr?116:192);U_=new _.vj(ME?LXi:U_,1);yX=new _.vj(yX,Nr?yX-76:yX);yX=U_.aspectRatio()>yX.aspectRatio()?yX.width/U_.width:yX.height/U_.height;U_=U_.scale(yX);nP.width<=U_.width&&nP.height<=U_.height||(nP=U_.aspectRatio()<=nP.aspectRatio()?nP.width/U_.width:nP.height/U_.height,U_.scale(nP),U_.width=Math.min(U_.width,Kr),U_.height=Math.min(U_.height,Kr));return new _.vj(U_.width,
_.$C(192,U_.height+Fxq(Nr,ME),720))},QX=function(){var nP=M9(),Kr=W3(),U_=sM()&&c();
return new _.vj(nP.width,nP.height-Fxq(Kr,U_))},P5=function(){var nP=function(Kr){Kr.target===H.value&&W()&&(y(!1),H.value.removeEventListener("transitionend",nP))};
sh3()||(H.value.addEventListener("transitionend",nP),y(!0));Y(!c())};
_.d6(function(){var nP=fP(),Kr=_.Dg(3),U_=_.BM(3);if(Kr&&U_&&nP){_.ak(Kr,U_,nP);U_=En();var Nr=So(),ME=eo(),yX=Cr(),Mz=xE();ME&&yX&&Mz&&(_.xR(Kr,nP,[ME,yX,Mz]),_.ia(Kr,[ME,yX]));U_&&Nr&&_.xR(Kr,nP,[U_,Nr])}},"DuFzOc");
_.d6(function(){var nP=wu();if(nP){var Kr=_.Dg(0),U_=_.BM(0);Kr&&U_&&(_.ak(Kr,U_,nP),_.ia(Kr,[nP]))}},"vwRnmc");
O$={};return _.q("ytd-miniplayer",{el:H,class:_.eJ("ytdMiniplayerComponentHost",(O$.ytdMiniplayerComponentVisible=function(){return A()||N()},O$.ytdMiniplayerComponentAnimatingSnap=M,O$.ytdMiniplayerComponentAnimatingPlaylistExpand=W,O$.ytdMiniplayerComponentAnimatingFade=N,O$),function(){if(N()){var nP=eZ();
var Kr=A(),U_=u();nP=Kr?nP==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":U_?nP==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":nP==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else nP="";return nP}),
style:_.vb({top:function(){return eZ()==="north"?"16px":""},
right:function(){return FW()==="east"?"16px":""},
bottom:function(){return eZ()==="south"?"16px":""},
left:function(){return FW()==="west"?"16px":""},
width:function(){return M9().width+"px"},
height:function(){return M9().height+"px"},
transform:function(){var nP=g();return nP?"translate("+nP.x+"px, "+nP.y+"px)":""}})},_.q("div",{class:"ytdMiniplayerComponentContent"},_.q(KX3,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(nP){var Kr=JNp(FW(),eZ(),S(),M9(),g()),U_=QX();Math.abs(nP.clientY-(Kr.y+U_.height))>15?(R(!0),nP=_.Dg(3),Kr=En(),I2||(I2=!0,nP&&Kr&&_.ia(nP,[Kr])),nP&&Kr&&_.Sp(nP,Kr)):nP.preventDefault()},
onDrag:function(nP){ii(nP)},
onDragEnd:function(){var nP=wft(JNp(FW(),eZ(),S(),M9(),g()),S(),M9()),Kr=ANO(FW(),eZ(),S(),M9()),U_=ANO(nP.horizontalAlignment,nP.verticalAlignment,S(),M9());U_=new _.rx(U_.x-Kr.x,U_.y-Kr.y);var Nr;Kr=Kr.y+(((Nr=g())==null?void 0:Nr.y)||0)+M9().height/2;var ME=function(){FW()===nP.horizontalAlignment&&eZ()===nP.verticalAlignment||t(!0);cZ(nP.horizontalAlignment);ND(nP.verticalAlignment);ii(void 0)},yX=function(Mz){Mz.target===H.value&&M()&&(m(!1),ME(),H.value.removeEventListener("transitionend",yX))};
R(!1);eZ()==="south"&&Kr>S().height?(ME(),_.JA().resolve(_.Df).close()):(H.value.addEventListener("transitionend",yX),m(!0),ii(U_))}},_.q(_.T,{cond:A,
then:function(){return _.q(_.uvi,{isDisabled:Td,playabilityStatus:c7,size:QX})}}),_.q(_.T,{cond:W3,
then:function(){return _.q(_.EJi,{isReadyToResume:qi,data:R0,expanded:c,onExpandClick:P5,playlistData:m1})}}),_.q(_.T,{cond:C,
then:function(){return _.q("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.q(_.T,{cond:function(){return sM()&&c()||W()},
then:function(){return _.q(_.MZq,{className:"ytdMiniplayerComponentPlaylistPanel",data:m1,hideHeaderText:!0,withinMiniplayer:!0})}}),_.q("div",{class:"ytdMiniplayerComponentToast"},_.q(_.GZp,{toastData:k}))),_.q(t0j,{onResize:function(nP){pU(_.$C(192,nP,720))},
onResizeStart:function(){var nP=_.Dg(3),Kr=So();RV||(RV=!0,nP&&Kr&&_.ia(nP,[Kr]));nP&&Kr&&_.Sp(nP,Kr)},
currentAspectRatio:d,currentMiniplayerSize:bi,horizontalAlignment:FW,verticalAlignment:eZ}))},"xi"),"ytd-miniplayer",{});var gh3=_.R$.persistentPanelVisibleSelector,bL=function(){var H=_.X.apply(this,arguments)||this;H.tabGesturesIsActive=!1;H.persistentPanelEnabled=_.E("enable_ai_companion");H.hasDelegation=!1;H.darkerDarkTheme=_.E("web_darker_dark_theme");H.isFrostedGlassInitialized=!1;H.frostedGlassExp=_.E("web_frosted_glass");H.hasPendingNavigation=!1;H.mastheadHiddenFocusWithinKillswitch=_.E("web_masthead_hidden_focus_within_killswitch");H.clientOnlyWizTooltipsEnabled=_.E("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
H.scrollAtTop=!0;H.guideScrollTop=0;H.isTheaterModeSession=_.Bh("START_IN_THEATER_MODE");H.iMaxTheaterMode=_.E("web_watch_imax_theater_mode");H.isFullWindowSession=_.Bh("START_IN_FULL_WINDOW_MODE");H.hasCreateFamilyDialog=!1;H.mastheadHeight=56;H.networkStatusManager=new _.Hn;H.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"};H.dynamicActionMap={"yt-run-attestation-command":function(C){var S=_.iPj.instance,w=_.e(C,_.jY1);return w?_.E("use_rta_manager_for_async")&&
lRO()?wup(S,w,C.clickTrackingParams):js3(S,w,C.clickTrackingParams):_.kj(Error("ui"))}};
H.isFrostedGlassDisabled=!1;H.isChannelOrPlaylistPage=!1;return H};
_.G(bL,_.X);_.F=bL.prototype;_.F.created=function(){var H=_.JA();_.E("kevlar_clear_duplicate_pref_cookie")&&_.X2(_.rT,function(){var C=_.vA.get("PREF");C&&!/f\d=/.test(C)&&(C=_.z9("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=C?"PREF=null;domain="+C+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.E("gzip_gel_with_worker")&&_.gzp();_.E("jspb_serialize_with_worker")&&H8i();_.E("web_worker_availability_check")&&aBj();_.E("nwl_init_killswitch")||aRj().then(function(){_.rT.addLowPriorityJob(uB9)});
this.pageManagerAttachedPromise=_.Cn();this.ytdAppBehavior.loadDepsPromise=_.nh([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.I$(this.onThrottledScroll,200,this);_.E("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);K79();lsr=!!_.gh("ytappsettings.initialized");Ze=_.gh("ytappsettings.previousValue");u_r=_.gh("ytappsettings.previousSnapshotTime");lsr||(lsr=!0,Gn_());obp();Oui();_.np("DEFERRED_DETACH",
_.E("kevlar_tuner_should_defer_detach"));_.np("REUSE_COMPONENTS",!0);_.np("STAMPER_STABLE_LIST",!0);_.np("SCHEDULED_LAZY_LIST",!0);_.np("openPopupConfig",dqr);_.np("useClickHandler",!0);_.E("kevlar_shell_cleanup")&&_.rT.addLowPriorityJob(ddj.bind(this,_.s$.caches));_.Bh("IS_SHELL_LOAD")&&_.nL({shellStartupDurationMs:Math.round((0,_.Zt)()-_.PH())});$NO(this.networkStatusManager);_.E("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",VAj(k3i)),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!",
VAj(hdq)),console.log("%cVisit http://go/join-youtube-web to apply today.",VAj(nho)));_.Fvp(H.resolve(_.SX),1E3)};
_.F.ready=function(){var H=this;this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var C=Z8q();C&&!_.E("external_fullscreen_killswitch")&&document.addEventListener(C,this.setFullscreen.bind(this));(C=window.matchMedia("(prefers-color-scheme: dark)"))&&C.addEventListener&&C.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged();if(C=_.JA().resolve(_.AA(_.ZI7)))C.subscribe("navigation-start",
function(){H.hasPendingNavigation=!0}),C.subscribe("navigation-end",function(){H.hasPendingNavigation=!1})};
_.F.attached=function(){var H=this;_.mN().processSignal("ci");_.E("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.Y$V?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.qI(_.ciZ(),"SUCCESS");this.updateIconSet();_.YR(this.guideInnerContent,!1);_.iZ().initVisibilityObserver();this.guideService.guideElement=this.guide;var C=document.createElement("ytd-miniplayer"),S=_.mY(this.hostElement).querySelector("#content");
_.mY(this.hostElement).insertBefore(C,S);_.mN().processSignal("ma");_.JA().resolve(_.Df).init(C);this.persistentPanelEnabled&&_.qg_(_.JA().resolve(_.JT),this.persistentPanelContainer,"APP");_.Bh("IS_SHELL_LOAD")&&(S=document.createElement("ytd-network-status-banner"),_.mY(this.hostElement).insertBefore(S,C));_.E("kevlar_right_click_on_lockups")&&_.cJ._onCaptureClick&&document.addEventListener("contextmenu",_.cJ._onCaptureClick.bind(_.cJ),!0);var w=function(){var A=_.OA("yt-page-navigation-progress");
_.mY(H.hostElement).appendChild(A)};
setTimeout(function(){_.mN().parkOrScheduleJob(w,0,"eocs",16)},0);
_.E("service_worker_push_enabled")&&_.X2(_.rT,JGp);_.xI(_.a8.getInstance(),this.dynamicActionMap,this.hostElement);_.M3(this.hostElement,"ytd-app-attached");_.mN().processSignal("aa");eDK(this.hostElement);_.AO("gapi.load",_.K9u);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.X2(_.rT,
function(){var A=document.createElement("ytd-video-preview");_.mY(_.mY(H.hostElement).querySelector("#video-preview")).appendChild(A)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.X2(_.rT,function(){QJ_();H.registerWithViewTransitionManager()});
if(_.pf()&&this.isAppDarkTheme()!==_.PU())this.onDarkModeToggledAction();else C=_.$F()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==C&&(_.E("enable_dark_theme_only_on_shorts")?_.Cx(_.E("enable_dark_theme_only_on_shorts_control")?window.location.href:_.HA(window.location.href,{theme:"dark"})):_.Bn(new _.X0("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(kYO=new pGq(this.hostElement)),Qg9=new XkK(this.hostElement),OAO=new ohK(this.hostElement),svt=new SH9(this.hostElement)};
_.F.getThemeSettingsToLog=function(){var H=_.$F()==="USER_INTERFACE_THEME_DARK";H=_.pf()?_.PU()?"os-dark":"os-light":H?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:H,cookiesEnabled:_.VD()}};
_.F.detached=function(){_.zo(this.guideInnerContent);_.rT.cancelJob(AX);AX=0;_.rT.cancelJob(F8);F8=0;_.Ag0(E69);E69.length=0;yfr=_.twp=null;_.iZ().dispose();_.E("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.H5(_.a8.getInstance(),kYO.playlistHandlerActionMap,kYO.JSC$32146_clientRoot);_.H5(_.a8.getInstance(),Qg9.downloadManagerActionMap,Qg9.JSC$32436_clientRoot);_.H5(_.a8.getInstance(),OAO.feedbackCollectorActionMap,OAO.JSC$32431_clientRoot);
for(var H=_.Z(svt.eventListeners),C=H.next();!C.done;C=H.next()){var S=_.Z(C.value);C=S.next().value;S=S.next().value;S=_.Z(S);for(var w=S.next();!w.done;w=S.next()){var A=_.Z(w.value);w=A.next().value;A=A.next().value;C.removeEventListener(w,A)}}_.H5(_.a8.getInstance(),svt.autonavPauseActionMap,svt.JSC$20035_clientRoot)};
_.F.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.VN().getFlag(186)};
_.F.computeIsInlinePreviewEnabled=function(H,C,S){return!S&&_.j8t({miniplayerIsActive:H,miniplayerPlaybackState:C})};
_.F.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.Md({type:"SET_FROSTED_GLASS_MODE",payload:!_.E("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"}))};
_.F.computeIsFrostedGlassDisabled=function(H,C,S,w){return H||C||S||w&&_.E("web_frosted_glass_disable_watch")};
_.F.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.E("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.F.computeIsHomePage=function(H,C){if(!H||C==null||!C.endpoint)return!1;var S;return((S=_.e(C.endpoint,_.vU))==null?void 0:S.browseId)==="FEwhat_to_watch"};
_.F.updateIsChannelOrPlaylistPage=function(){if(_.E("web_frosted_glass")){var H,C,S=(C=(H=_.JA().resolve(_.AA(_.JB)))==null?void 0:H.getCurrentPage())==null?void 0:C.pageSubtype;this.isChannelOrPlaylistPage=S?["channel","channels","playlist"].includes(S):!1}};
_.F.scheduleFrostedGlassInitialization=function(){var H=this;_.E("web_frosted_glass")&&_.mN().parkOrScheduleJob(function(){H.isFrostedGlassInitialized=!0},0,_.eX(["eocs",
"cr"]),300)};
_.F.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.OgM(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.Md({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.Md({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.F.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(yl9(!0))};
_.F.onYtSignalActionRequestPersistentStorage=function(){if(!_.E("request_persistent_storage_killswitch")){var H=_.JA().resolve(_.HMr);H.cachedPersistStatePromise||(H.cachedPersistStatePromise=h6p())}};
_.F.handleYtChannelCreationFormEndpoints=function(H){H&&this.ytComponentBehavior.resolveCommand(H)};
_.F.handleShowEngagementPanelEndpoint=function(H){H&&this.ytComponentBehavior.resolveCommand(H)};
_.F.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(yl9(!1))};
_.F.initIconDefs=function(H,C){var S=document.createElement("iron-iconset-svg");S.name=H;H=document.createElementNS("http://www.w3.org/2000/svg","svg");S.appendChild(H);H.appendChild(C);document.body.appendChild(S);return S};
_.F.onWindowResized=function(){_.q3(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var H=_.QC.getInstance();H.documentWidth_=document.body.clientWidth;Xfj(H)};
_.F.onWindowScrolled=function(){var H=_.JA().resolve(_.JB).getCurrentPage();if(H!=null&&H.getScrollTop){var C=this.ytdReduxBehavior,S=C.dispatch;H=H.getScrollTop()<=0;S.call(C,_.Md({type:"SET_SCROLL_AT_TOP",payload:H}))}};
_.F.guideIsVisibleButNotPersistentSelectorChanged=function(){var H=_.JA().resolve(_.JB).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=H.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"),
H.setScrollTop(this.guideScrollTop));_.m7(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.F.getCurrentPageScrollableElementType=function(){var H=_.JA().resolve(_.JB).getCurrentPage();if(H&&H.getPageScrollingElement())return H.getPageScrollingElement().nodeName};
_.F.observeGuideVisibility=function(){var H=_.QC.getInstance(),C=this.miniGuideVisible;H.guidePersistentAndVisible_=this.guidePersistentAndVisible;H.miniGuideVisible_=C;Xfj(H)};
_.F.observePersistentPanelVisibility=function(){var H=_.QC.getInstance();H.persistentPanelVisible_=this.persistentPanelVisible;Xfj(H)};
_.F.handleEduDismissAction=function(H){H&&H.eduDismissAction&&(_.q3(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.Pj7.getInstance(),_.Oe.set(H.eduDismissAction.key+"-dismissed",!0))};
_.F.handleEduImpressionAction=function(H){if(H&&H.eduImpressionAction){var C=_.Pj7.getInstance();H=H.eduImpressionAction.key;C.JSC$13035_eduDisplayedThisLoad_[_.dkP[H].setKey||H]=!0;_.Oe.set(H+"-impression",parseInt(_.Oe.get(H+"-impression")||0,10)+1)}};
_.F.onYtSignalActionConfirmMentionsEdu=function(){_.q3(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.PP.getInstance();_.dQ.set("edu-dismissed",!0)};
_.F.onYtSignalActionRecordMentionsEduImpression=function(){_.PP.getInstance();var H=_.dQ.set,C=parseInt(_.dQ.get("edu-impressions"),10);H.call(_.dQ,"edu-impressions",(isFinite(C)?C:0)+1)};
_.F.onYtPageManagerAttached=function(H){var C;((C=_.Jr(H))==null?void 0:C.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.F.onInvokeInstrumentManagerAction=function(H,C){S6o(C,H)};
_.F.updateIconSet=function(){var H=this.hostElement.querySelector("#masthead");if(H){var C=_.WY(H),S=C.querySelector("g#yt-logo-updated");S&&(H=document.createElementNS("http://www.w3.org/2000/svg","defs"),H.appendChild(S.cloneNode(!0)),(C=C.querySelector("g#yt-logo-red-updated"))&&H.appendChild(C.cloneNode(!0)),this.initIconDefs("yt-logos-ext",H))}};
_.F.updateMastheadData=function(){var H=this,C,S,w,A,J;return _.z(function(c){if(c.nextAddress==1){C=H.data;S=H.hostElement.querySelector("#masthead");if(!S)return c.return();_.wM(H,function(){S.data=H.topbarData});
if(!H.get("response.topbar",C)||H.get("response.topbar.responseContext.maxAgeSeconds",C)===0)return c.jumpTo(0);if(w=_.JA().resolve(_.$0))return c.yield(w(),6);A=_.JA().resolve(_.B_);return c.yield(A.put("service:topbar:fallback",new _.DL({innertubeResponse:H.get("response.topbar",C)})),0)}return(J=c.yieldResult)?c.yield(J.put("service:topbar:fallback",new _.DL({innertubeResponse:H.get("response.topbar",C)})),0):c.jumpTo(0)})};
_.F.computeTopbarData=function(H){if(!H)return null;var C;return this.isShortsPage&&this.topbarData&&!_.e((C=H.response)==null?void 0:C.topbar,b4r)?this.topbarData:H.response&&"topbar"in H.response?_.e(H.response.topbar,b4r)||null:null};
_.F.onSetTheaterModeEnabled=function(H,C){this.isTheaterModeSession=C.enabled;this.setTheaterModeStyles(C.enabled)};
_.F.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.F.onDarkModeToggledAction=function(){var H=_.EE(window.location.href);if(!_.Sui(H)){(H=!!_.xT(window.location.href).themeRefresh)&&_.Bn(new _.X0("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!H){Gn_();H={themeRefresh:1};var C=_.JA().resolve(_.JB);if(C.isOnWatch()){var S,w;C=((S=C.getPlayerFromWatch())==null?void 0:(w=S.getPlayer())==null?void 0:w.getCurrentTime())||0;C>=1&&(H.time_continue=Math.floor(C))}_.VD()||_.$F()!=="USER_INTERFACE_THEME_DARK"||(H.theme="dark");_.Cx(_.HA(window.location.href,
H))}_.E("web_appshell_refresh_trigger")&&_.s$.caches&&this.refreshAppShellResponse();S=_.x_(window.location.href);_.LT(_.JA().resolve(_.g9),_.Fw(S,"theme"))}};
_.F.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.F.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.F.onPlayerFullscreen=function(H){_.ZR();this.playerFullscreen=H};
_.F.setRestrictedMode=function(H){var C=_.VN();_.ok(0,58,H);C.save();_.JA().resolve(_.HS).reload()};
_.F.onPageChanged=function(H){H.detail.newPageType==="ytd-watch-flexy"||H.detail.newPageType==="ytd-watch-fixie"||H.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.O6("WEB_PAGE_TYPE_WATCH")):H.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.O6("WEB_PAGE_TYPE_SHORTS")):H.detail.newPageType==="ytd-browse"&&H.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.O6("WEB_PAGE_TYPE_MINI_APP")):_.E("web_frosted_glass")&&H.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.O6("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.O6("WEB_PAGE_TYPE_UNKNOWN"));H.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.F.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.F.onGuideToggleTap=function(){_.M3(this.hostElement,"yt-guide-toggle")};
_.F.onGuideToggleHover=function(){_.M3(this.hostElement,"yt-guide-hover")};
_.F.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.F.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.F.setMastheadTheme=function(){var H=_.WY(this.hostElement).querySelector("#masthead");H&&(H.dark=H.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),H.isDarkThemeForced=!1)};
_.F.onRequestPanelModeChange=function(H,C){this.hideHeaderShadow=C.mode!=="seamed"};
_.F.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.F.onDrawerIronSelect=function(H){_.Jr(H).id==="guide"&&this.processDrawerIronSelect()};
_.F.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var H="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(H="opened"));_.M3(this.hostElement,"yt-autonav-pause-guide-"+H)};
_.F.onAddElementToApp=function(H){_.mY(this.hostElement).appendChild(H.detail)};
_.F.onThrottledScroll=function(){var H=_.JA().resolve(_.JB).getCurrentPage();H&&(this.scrollAtTop=H.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.F.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.F.setFullscreen=function(){if(_.E("external_fullscreen")||!this.isWatchPage){var H=_.E("kevlar_fullerscreen_root_only_killswitch")?!!_.ZR():!!_.ZR()&&_.ZR()===document.documentElement;H=(this.isWatchPage||_.E("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(H||this.isFullWindowSession);this.fullscreen!==H&&((this.fullscreen=H)&&_.m7(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.AG().dispatch(_.NoV(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.q3(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.F.setFullscreenLoggingForShorts=function(H){var C,S,w;return _.z(function(A){if(A.nextAddress==1)return A.yield((C=_.Zz())==null?void 0:C.getPlayerPromise(),2);S=A.yieldResult;(w=S)==null||w.setAppFullscreen(H);_.oT(A)})};
_.F.updateMastheadCssHeight=function(){var H=this.mastheadHeight;this.fullscreen&&(H=0);_.Ed(this.hostElement,{"--ytd-masthead-height":H+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.F.updateNetworkStatusBannerDisplayStatus=function(){var H="unset";this.fullscreen&&(H="none");_.Ed(this.hostElement,{"--ytd-network-status-banner-display":H})};
_.F.updateNetworkStatusBannerCssHeight=function(){var H="unset";this.fullscreen&&(H="0px");_.Ed(this.hostElement,{"--ytd-network-status-banner-max-height":H})};
_.F.updateScrollAndMasthead=function(H,C,S,w){this.iMaxTheaterMode||(w=!1);var A=_.JA().resolve(_.JB).getCurrentPage();H||C||w?(document.body.classList.add("no-scroll"),A.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.uA(this,this.onScroll)),A.setScrollTop(0),_.Ed(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.Nm()+"px"})):S?_.M3(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.M3(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
A.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.uA(this,this.onScroll)));this.mastheadHidden=H||C||S;this.updateMastheadCssHeight();_.E("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.F.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.F.onYtNavigateAction=function(H){H=this.get("navigateAction.endpoint",H);_.M3(this.hostElement,"yt-navigate",{endpoint:H})};
_.F.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var H=document.createElement("yt-create-family-dialog");_.mY(this.hostElement).appendChild(H);this.hasCreateFamilyDialog=!0}};
_.F.onSetPushNotificationsEnabledCommand=function(H){var C=this,S=_.e(H,N2j);S&&typeof S.enabled==="boolean"&&(Notification.permission!=="granted"?Sx9().then(function(){Notification.permission==="granted"?(rfp(!S.enabled).then(KFi),S.successAction&&_.WH(C.hostElement,[S.successAction])):S.failureAction&&_.WH(C.hostElement,[S.failureAction])}):(rfp(!S.enabled).then(KFi),S.successAction&&_.WH(this.hostElement,[S.successAction])))};
_.F.onYtSignalActionEnableChromeNotifications=function(){sw9(!0)};
_.F.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.e(this.topbarData.hotkeyDialog,uE_)}}})};
_.F.onYtSignalActionShowKeyboardShortcutDialog=function(){_.q3(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.F.onYtEndpointChangeHandler=function(H,C){var S=_.j9(_.xe);S.pendingPrefetchJob_&&(C=!(!C||C.autonav!="1"),S.pendingPrefetchJob_.resolve(H&&_.L4Z(H)?_.goW(H,C):""),S.pendingPrefetchJob_=null);_.q3(this.hostElement,"yt-pause-active-page-context");_.q3(this.hostElement,"ytd-log-youthere-nav");_.q3(this.hostElement,"yt-prepare-page-dispose")};
_.F.handleCommandWithCommandHandler=function(H,C){_.eU.instance.resolveCommand(H,{form:{element:C}})};
_.F.onYtTimedCommand=function(H){var C=this;H=_.e(H,Fwo);var S=H.command;S&&_.mx(_.rT,function(){var w=_.e(S,_.a3n);w?(_.eU.instance.resolveCommand(S),C.maybeLogGetAnswerRequestTick(w)):_.yN(C.hostElement,[S],C.hostElement)},H.timeoutMs||0)};
_.F.maybeLogGetAnswerRequestTick=function(H){H&&H.isFirstRequest&&(_.BH("search_overview_answer"),_.DR("so_rq",void 0,"search_overview_answer"))};
_.F.onYtSignalActionSkipNavigation=function(){var H=_.JA().resolve(_.JB).getCurrentPage();_.ss(H)};
_.F.onYtSignalActionCopyDebugData=function(){m5O()};
_.F.handleEntityUpdateCommand=function(H){_.vF(_.e(H,_.fxd).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.F.logFlowLoggingEventCommand=function(H){if(H=_.e(H,_.dAW))if(H.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var C=H.flowEventNamespace,S=H.flowEventType,w=H.flowType;w&&C&&S&&_.kxW(_.b4(C,S,H.flowEventMetadata),w)}else{C=_.et();S=H.flowEventNamespace;w=H.flowEventType;var A=H.flowType;A&&S&&w&&_.Ex(C,_.b4(S,w,H.flowEventMetadata),A,H.flowNonce)}};
_.F.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.F.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.F.onTouchStart=function(){var H=_.Cw();_.Dg()&&_.aW(H.JSC$13263_screenManager,{visualElement:H.ve})};
_.F.handleSelectLanguageCommand=function(H){if(H=_.e(H,mh_).hl){var C=_.VN();C.set("hl",H);C.save();_.JA().resolve(_.HS).reload()}};
_.F.handleConfirmDialogEndpoint=function(H){(H=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(H))&&this.ytOpenPopupBehavior.openPopup(H)};
_.F.handleOpenPopupNavigationEndpoints=function(H,C){_.E("web_button_rework")&&(H=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(H))&&this.ytOpenPopupBehavior.openPopup(H,C)};
_.F.handleSaveCommandToSessionStorage=function(H){if(H=_.e(H,_.cSM)){var C=H.key;C&&H.command&&window.sessionStorage.setItem(C,JSON.stringify(H.command))}};
_.F.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(H){H&&H.active&&H.active.postMessage({type:"refresh_shell"})}).catch(function(H){H.name!=="SecurityError"&&_.nC(H)})};
_.F.onDeviceThemeChanged=function(){var H=_.PU();_.ok(_.VN(),185,H);_.VN().save()};
_.F.handleYtRegisterPromoCommand=function(H){if(_.e(H,yvj)){var C=_.JA().resolve(_.JB).getCurrentPage()||this.hostElement;znr().registerPromoCommand(_.e(H,yvj),C)}};
_.F.onYtNavigateHomeAction=function(){if(!_.E("kevlar_miniplayer_navigate_home_from_app_killswitch")){var H,C,S,w,A=(w=(H=this.topbarData)==null?void 0:(C=H.logo)==null?void 0:(S=C.topbarLogoRenderer)==null?void 0:S.endpoint)!=null?w:_.gH;this.ytComponentBehavior.resolveCommand(A)}};
_.F.onYtLocationCollectionCommand=function(H){ONo(_.e(H,QnR))};
_.F.onYtGetLocationCommand=function(H){Pmo(_.e(H,Xmr),this)};
_.F.updateRenderGuideFromBinding=function(H){this.renderGuide=H.detail.value};
_.F.updateGuidePersistentAndVisibleFromBinding=function(H){this.guidePersistentAndVisible=H.detail.value};
_.F.updateMiniGuideVisibleFromBinding=function(H){this.miniGuideVisible=H.detail.value};
_.F.onThemeSelected=function(H,C){var S=_.VN(),w=H||C?H:_.PU(),A=(w&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!w&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.Sui(_.EE(window.location.href));_.ok(0,165,H);_.ok(0,174,C);S.save();A&&_.q3(this.hostElement,"yt-dark-mode-toggled-action",[w]);_.q3(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.F.getCurrentTheme=function(){return _.pf()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.$F()};
_.F.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.F.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.F.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.F.handleShowConsentPrimitive=function(H){var C=this,S,w;return _.z(function(A){if(A.nextAddress==1){try{S=(w=_.Zz())==null?void 0:w.getPlayerPromise()}catch(J){}return A.yield(RMK(H,S),2)}_.q3(C.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.oT(A)})};
_.F.handleSelectActiveIdentityEndpointInternal=function(H){_.HY();H=_.e(H,_.M8n);if(H!=null&&H.supportedTokens){H=_.Z(H.supportedTokens);for(var C=H.next();!C.done;C=H.next())C=C.value,C.accountSigninToken&&_.Cx(C.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.F.handleUpdatePermissionRoleCommand=function(H){if(H=_.e(H,_.qf1)){var C;this.hasDelegation=!((C=_.e(H.renderer,_.Mfi))==null||!C.status)}};
_.F.registerWithViewTransitionManager=function(){var H=_.JA().resolve(_.AA(_.IC));if(H){var C,S=(C=this.guide)==null?void 0:C.querySelector("#scrim"),w;C=(w=this.guide)==null?void 0:w.querySelector("#contentContainer");S&&C&&H.isAnyTransitionEnabled&&(w={},H.viewTransitionCoordinator.registerElement(S,(w.slide="app-drawer-scrim-page-transition",w["lockup-to-watch"]="app-drawer-scrim-page-transition",w["learning-journey"]="app-drawer-scrim-page-transition",w)),S={},H.viewTransitionCoordinator.registerElement(C,
(S.slide="app-drawer-container-page-transition",S["lockup-to-watch"]="app-drawer-container-page-transition",S["learning-journey"]="app-drawer-container-page-transition",S)))}};
_.JJ.Object.defineProperties(bL.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.E("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.JJ.Object.defineProperties(bL,{template:{configurable:!0,enumerable:!0,get:function(){if(ukR===void 0){var H=document.createElement("template");_.f(H,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n  <div id="persistent-panel-container" hidden="[[!persistentPanelEnabled]]" class="style-scope ytd-app"></div>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n<template is="dom-if" if="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
H.content.insertBefore(_.U().content.cloneNode(!0),H.content.firstChild);ukR=H}H=ukR;return H}}});
bL.prototype.onOpenHotkeyDialog=bL.prototype.onOpenHotkeyDialog;bL.prototype.setFullscreen=bL.prototype.setFullscreen;bL.prototype.onAddElementToApp=bL.prototype.onAddElementToApp;bL.prototype.onDrawerIronSelect=bL.prototype.onDrawerIronSelect;bL.prototype.onGuideOpenButtonHover=bL.prototype.onGuideOpenButtonHover;bL.prototype.onRequestPanelModeChange=bL.prototype.onRequestPanelModeChange;bL.prototype.onPageDataUpdated=bL.prototype.onPageDataUpdated;bL.prototype.onPageChanged=bL.prototype.onPageChanged;
bL.prototype.onSetTheaterModeEnabled=bL.prototype.onSetTheaterModeEnabled;bL.prototype.updateMastheadData=bL.prototype.updateMastheadData;bL.prototype.onYtPageManagerAttached=bL.prototype.onYtPageManagerAttached;bL.prototype.observePersistentPanelVisibility=bL.prototype.observePersistentPanelVisibility;bL.prototype.observeGuideVisibility=bL.prototype.observeGuideVisibility;bL.prototype.guideIsVisibleButNotPersistentSelectorChanged=bL.prototype.guideIsVisibleButNotPersistentSelectorChanged;
bL.prototype.isInlinePreviewEnabledChanged=bL.prototype.isInlinePreviewEnabledChanged;bL.prototype.isWatchPageChanged=bL.prototype.isWatchPageChanged;bL.prototype.dispatchFrostedGlassMode=bL.prototype.dispatchFrostedGlassMode;_.D([_.v(_.q$),_.K("design:type",Object)],bL.prototype,"ytdReduxBehavior",void 0);_.D([_.v(_.ie.YtEventForwardingBehavior),_.K("design:type",Object)],bL.prototype,"ytEventForwardingBehavior",void 0);
_.D([_.v(_.Kw.YtOpenPopupBehavior),_.K("design:type",Object)],bL.prototype,"ytOpenPopupBehavior",void 0);_.D([_.v(_.Lw.YtActionHandlerBehavior),_.K("design:type",Object)],bL.prototype,"ytActionHandlerBehavior",void 0);
_.D([_.v({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.a8.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.E("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var H;((H=this.actionRouterNode.hostElement)!=null?H:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var H;((H=this.actionRouterNode.hostElement)!=null?H:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(H){this.actionRouter_.handleAction(H.detail)}}),
_.K("design:type",Object)],bL.prototype,"ytActionRouterBehavior",void 0);_.D([_.v(Nn9.YtdAppBehavior),_.K("design:type",Object)],bL.prototype,"ytdAppBehavior",void 0);_.D([_.v(_.tZ.YtEndpointBehavior),_.K("design:type",Object)],bL.prototype,"ytEndpointBehavior",void 0);_.D([_.v(V0o.YtEndpointHandlerWithYpcBehavior),_.K("design:type",Object)],bL.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.D([_.v(G3O.YtLogYpcFlowCommandsBehavior),_.K("design:type",Object)],bL.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.D([_.v(_.I.YtRendererBehavior),_.K("design:type",Object)],bL.prototype,"ytRendererBehavior",void 0);_.D([_.v(_.mL.YtComponentBehavior),_.K("design:type",Object)],bL.prototype,"ytComponentBehavior",void 0);_.D([_.V({selector:_.rEj}),_.K("design:type",Object)],bL.prototype,"tabGesturesIsActive",void 0);_.D([_.V(),_.K("design:type",Boolean)],bL.prototype,"renderGuide",void 0);
_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],bL.prototype,"guidePersistentAndVisible",void 0);_.D([_.V({selector:_.nT_}),_.K("design:type",Boolean)],bL.prototype,"guideIsVisibleButNotPersistent",void 0);_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],bL.prototype,"standalone",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],bL.prototype,"miniGuideVisible",void 0);
_.D([_.V(),_.K("design:type",Object)],bL.prototype,"persistentPanelEnabled",void 0);_.D([_.V({selector:gh3,reflectToAttribute:!0}),_.K("design:type",Boolean)],bL.prototype,"persistentPanelVisible",void 0);_.D([_.V({selector:_.WNZ}),_.K("design:type",Number)],bL.prototype,"miniplayerPlaybackState",void 0);_.D([_.V({selector:_.Dy,reflectToAttribute:!0}),_.K("design:type",Boolean)],bL.prototype,"miniplayerIsActive",void 0);
_.D([_.V({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.K("design:type",Boolean)],bL.prototype,"isInlinePreviewEnabled",void 0);_.D([_.V(),_.K("design:type",Boolean)],bL.prototype,"isInlinePreviewDisabled",void 0);_.D([_.V({reflectToAttribute:!0,value:function(){return _.Bh("START_IN_FULL_WINDOW_MODE")}}),
_.K("design:type",Boolean)],bL.prototype,"mastheadHidden",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],bL.prototype,"playerFullscreen",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],bL.prototype,"fullscreen",void 0);_.D([_.V({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],bL.prototype,"hideHeaderShadow",void 0);
_.D([_.V({value:{GUIDE_ALT_LABEL:_.fL("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.K("design:type",Object)],bL.prototype,"menuStrings",void 0);_.D([_.V({computed:"computeTopbarData(data)"}),_.K("design:type",Object)],bL.prototype,"topbarData",void 0);_.D([_.V({selector:_.M8$,reflectToAttribute:!0}),_.K("design:type",Boolean)],bL.prototype,"isWatchPage",void 0);_.D([_.V({selector:_.qeD,reflectToAttribute:!0}),_.K("design:type",Boolean)],bL.prototype,"isShortsPage",void 0);
_.D([_.V({selector:function(H){return _.K8(H)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.K("design:type",Boolean)],bL.prototype,"isMiniAppPage",void 0);_.D([_.V({selector:function(H){return _.K8(H)==="WEB_PAGE_TYPE_BROWSE"}}),
_.K("design:type",Boolean)],bL.prototype,"isBrowsePage",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Boolean)],bL.prototype,"scrolling",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],bL.prototype,"hasDelegation",void 0);_.D([_.V({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],bL.prototype,"guideScrolledByTouch",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],bL.prototype,"darkerDarkTheme",void 0);
_.D([_.V(),_.K("design:type",Object)],bL.prototype,"isFrostedGlassInitialized",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],bL.prototype,"frostedGlassExp",void 0);_.D([_.V({selector:function(H){return H.ui.chipBarIsSticky}}),
_.K("design:type",Boolean)],bL.prototype,"chipBarIsSticky",void 0);_.D([_.V({computed:"computeIsHomePage(isBrowsePage, data)"}),_.K("design:type",Boolean)],bL.prototype,"isHomePage",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],bL.prototype,"hasPendingNavigation",void 0);_.D([_.V({reflectToAttribute:!0}),_.K("design:type",Object)],bL.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.D([_.V(),_.K("design:type",Object)],bL.prototype,"clientOnlyWizTooltipsEnabled",void 0);
_.D([_.DS("guide"),_.K("design:type",Object)],bL.prototype,"guide",void 0);_.D([_.DS("guide-service"),_.K("design:type",JUi)],bL.prototype,"guideService",void 0);_.D([_.DS("guide-inner-content"),_.K("design:type",HTMLDivElement)],bL.prototype,"guideInnerContent",void 0);_.D([_.lA("#persistent-panel-container"),_.K("design:type",HTMLElement)],bL.prototype,"persistentPanelContainer",void 0);_.D([_.V({selector:_.y$7}),_.K("design:type",String)],bL.prototype,"frostedGlassMode",void 0);
_.D([_.fx("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bL.prototype,"dispatchFrostedGlassMode",null);_.D([_.V({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.K("design:type",Object)],bL.prototype,"isFrostedGlassDisabled",void 0);
_.D([_.fx("isWatchPage"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bL.prototype,"isWatchPageChanged",null);_.D([_.l("isHomePage","chipBarIsSticky"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],bL.prototype,"applyFrostedGlassToChipBar",null);_.D([_.V(),_.K("design:type",Object)],bL.prototype,"isChannelOrPlaylistPage",void 0);
_.D([_.XJ("isInlinePreviewEnabled"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bL.prototype,"isInlinePreviewEnabledChanged",null);_.D([_.fx("guideIsVisibleButNotPersistent"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bL.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.D([_.fx("guidePersistentAndVisible","miniGuideVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bL.prototype,"observeGuideVisibility",null);_.D([_.fx("persistentPanelVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bL.prototype,"observePersistentPanelVisibility",null);
_.D([_.Gz("attached"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],bL.prototype,"onYtPageManagerAttached",null);_.D([_.fx("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype",Promise)],bL.prototype,"updateMastheadData",null);_.D([_.Gz("yt-set-theater-mode-enabled"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],bL.prototype,"onSetTheaterModeEnabled",null);
_.D([_.Gz("yt-page-type-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],bL.prototype,"onPageChanged",null);_.D([_.Gz("yt-page-data-updated"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bL.prototype,"onPageDataUpdated",null);_.D([_.Gz("yt-request-panel-mode-change"),_.K("design:type",Function),_.K("design:paramtypes",[Event,Object]),_.K("design:returntype")],bL.prototype,"onRequestPanelModeChange",null);
_.D([_.Gz("yt-guide-hover"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bL.prototype,"onGuideOpenButtonHover",null);_.D([_.Gz("app-drawer-transitioned"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],bL.prototype,"onDrawerIronSelect",null);_.D([_.Gz("yt-add-element-to-app"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],bL.prototype,"onAddElementToApp",null);
_.D([_.Gz("yt-set-fullerscreen-styles"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bL.prototype,"setFullscreen",null);_.D([_.Gz("yt-open-hotkey-dialog"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bL.prototype,"onOpenHotkeyDialog",null);_.D([_.h({is:"ytd-app"})],bL);_.mN().processSignal("eor");
_.n6();
}catch(e){_._DumpException(e)}
try{
_.hk("NSzT5");
var MRr;_.RU=function(H){var C=document.createElement("link");_.ce(C,H,"stylesheet");document.head.appendChild(C)};
_.IU=function(H,C){var S,w;return _.z(function(A){S=document.createElement("div");S.id=H.id;H.className&&(S.className=H.className);w=H.element;if(!w)throw Error("ak");if(H.location==="prepend")w.prepend(S);else if(H.location==="appendChild")w.appendChild(S);else if(H.location==="after")w.after(S);else throw Error("bk");return A.return(_.dh(S,C,"lh"))})};
_.aU=function(H){var C;return _.z(function(S){(C=document.getElementById(H))&&C.remove();_.oT(S)})};
_.x9=function(H,C){var S=document.querySelector(H);S?C(S):setTimeout(function(){_.x9(H,C)},1E3)};
_.qXj=function(H,C,S){var w;_.z(function(A){if(A.nextAddress==1)return(w=document.getElementById(H))?A.jumpTo(2):A.yield(MRr(H,C,S),2);if(w=document.getElementById(H))w.style.display="block";_.oT(A)})};
MRr=function(H,C,S){return _.z(function(w){return w.return(new Promise(function(A){_.x9("div #panels",function(J){_.IU({element:J,location:"appendChild",id:H,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+S},C);A()})}))})};
_.yMj=function(H){H=H===void 0?"":H;_.aU("creator_chatbots-entry-point");_.aU("creator_chatbots-panel");_.RU(TVR);_.x9("ytd-watch-metadata #top-level-buttons-computed",function(C){document.getElementById("creator_chatbots-entry-point")||(_.IU({element:C,location:"appendChild",id:"creator_chatbots-entry-point",className:"ytprotoCreatorChatbotsExtensionExtensionMountPoint"},function(){return _.q(m3_,{creatorChannelId:H})}),_.qXj("creator_chatbots-panel",function(){return _.q(W7o,{usePlayerHeight:!0,
creatorChannelId:H})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint"))})};_.Hx=_.n(function(H){var C=H.text;var S=H.onClick;var w=H.color;var A=H.backgroundColor;var J=H.buttonSize;var c=H.disabled;var Y=H.iconName;var M=H.iconSize;H=H.className;var m=_.um(function(y){S(y)}),W={};
return _.q("button",{class:_.eJ("ytpStandardButtonsHost",(W.ytpStandardButtonsLarge=function(){return(J==null?void 0:J())==="large"},W),H),
"on:click":m,style:_.vb({color:w,"background-color":A}),disabled:c}," ",_.q(_.T,{cond:Y,then:function(){return _.q(_.lm,{className:"ytpStandardButtonsIconContainer",icon:Y,size:M})}}),C)},"kh");_.NVq=_.n(function(H){var C;return _.q("div",{class:_.eJ("ytprototypesEngagementPanelComponentHost",H.className),id:H.id},_.q("div",{class:_.eJ("ytprototypesEngagementPanelComponentEngagementPanelHeader",H.headerClassName)},_.q("div",null,H.header()),_.q("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.q("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(C=H.HeaderButton)==null?void 0:C.call(H)),_.q(_.Hx,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",
onClick:function(){var S;(S=H.onHide)==null||S.call(H);S=H.id();if(S=document.getElementById(S))S.style.display="none"}}))),_.q("div",{class:_.eJ("ytprototypesEngagementPanelComponentEngagementPanelContent",H.contentClassName),
style:function(){var S;return"height: "+(((S=H.height)==null?void 0:S.call(H))||"800px")+";"}},H.content()))},"mh");var bLj=_.xC(["https://portraits.google.com"]),ERj=_.xC(["https://labs-characters.teams.x20web.corp.google.com"]),eNr=_.xC(["https://portraits.google.com/gallery?ytChannelId=",""]),uwi=_.qH(bLj),il=_.qH(ERj),W7o=_.n(function(H){function C(N){var b;if(N=(b=N.detail)==null?void 0:b.endpoint){b=_.e(N,_.vU);var u;b&&((u=b.browseId)==null?0:u.startsWith("UC"))&&b.browseId!==A()&&(_.aU("creator_chatbots-panel-persistent"),W.removeEventListener("yt-navigate-start",C))}}
var S=H.usePlayerHeight;var w=H.isPersistentPanel;var A=H.creatorChannelId;var J=_.E("enable_creator_chatbots_extension_dev_server"),c=document.createElement("iframe"),Y=J?il:uwi;_.Ph(function(){var N=A();N=J?il:_.qH(eNr,N);_.YMi(c,1,N)});
c.className="ytprotoCreatorChatbotsAppLabsIframe";c.allow="microphone; clipboard-read; clipboard-write self "+Y;var M=function(){var N;return _.z(function(b){if(b.nextAddress==1)return b.yield(_.JA().resolve(_.qp),2);(N=b.yieldResult)&&N.pauseVideo();_.oT(b)})},m=function(){var N,b,u;
return _.z(function(O){return O.nextAddress==1?O.yield(_.JA().resolve(_.qp),2):(N=O.yieldResult)?O.return({video_id:(u=(b=N.getVideoData())==null?void 0:b.video_id)!=null?u:"",timestamp_sec:N.getCurrentTime().toString()}):O.return({})})};
window.addEventListener("message",function(N){var b,u,O,d,p,k;return _.z(function(R){if(R.nextAddress==1){b=J?il.toString():uwi.toString();if(N.origin!==b)return console.warn("Received message from untrusted origin:",N.origin),R.return();u=N.data;if(typeof u!=="object"||u===null||!u.action)return R.return();if(u.action==="pause")return R.yield(M(),0);if(u.action!=="getYouTubeContext"||!N.source)return R.jumpTo(0);O=N.source;d=O.postMessage;p=JSON;k=p.stringify;return R.yield(m(),7)}d.call(O,k.call(p,
{youTubeContext:R.yieldResult}),{targetOrigin:N.origin});return R.jumpTo(0)})});
_.Fy("yt-page-type-changed",function(){if(w==null?0:w()){var N;((N=_.JA().resolve(_.JB).getCurrentPage())==null?void 0:N.pageSubtype)!=="channels"&&(N=document.getElementById("creator_chatbots-panel-persistent"))&&(N.style.display="none")}});
var W=_.JA().resolve(_.HS),y;(y=W)==null||y.addEventListener("yt-navigate-start",C);_.PN(function(){var N;(N=W)==null||N.removeEventListener("yt-navigate-start",C)});
return _.q("div",{class:"ytprotoCreatorChatbotsAppHost",style:function(){return(S==null?0:S())?"height: var(--ytd-watch-flexy-panel-max-height);":"height: 100%;"}},_.q(_.NVq,{id:function(){return(w==null?0:w())?"creator_chatbots-panel-persistent":"creator_chatbots-panel"},
height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",onHide:function(){var N=J?il.toString():uwi.toString(),b;(b=c.contentWindow)==null||b.postMessage("ep_closed",N)},
header:function(){return _.q("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.q("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to the Creator"),_.q(_.Tu,{data:{text:"AI experiment",type:0}}))},
HeaderButton:function(){return _.q(_.Hx,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",onClick:function(){_.CM(window,_.n9(J?il.toString():Y.toString()+"/gallery?ytChannelId="+A()),"_blank")}})},
content:function(){return c}}))},"nh");var Goi,TVR,m3_;Goi=_.xC(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]);TVR=_.qH(Goi);m3_=_.n(function(H){var C=H.creatorChannelId;var S=function(){_.qXj("creator_chatbots-panel",function(){return _.q(W7o,{usePlayerHeight:!0,creatorChannelId:C})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")};
return _.q("div",{class:"ytd-menu-renderer"},_.q(_.nw,{data:function(){return{style:"mono",type:"tonal",state:"active",iconPosition:"leading",size:"M",buttonText:"Chat now",onTap:S}},
icon:function(){return _.q(_.lm,{icon:"SPARK"})}}))},"oh");
_.glR=function(H){H=H===void 0?"":H;var C;return _.z(function(S){return(C=document.getElementById("creator_chatbots-panel-persistent"))?(C.style.display==="none"&&(C.style.display="block"),S.jumpTo(0)):S.yield(new Promise(function(w){_.x9("ytd-app",function(A){_.IU({element:A,location:"appendChild",id:"creator_chatbots-panel-persistent",className:"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint ytprotoCreatorChatbotsExtensionPersistentEngagementPanel"},function(){return _.q(W7o,{isPersistentPanel:!0,
creatorChannelId:H})});
w()})}),0)})};
_.n6();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
